PageSourceSearch

https://asklly.ai/static/js/main.4991c89b.js

js asklly.ai collected 2026-10-05 11:52:23 UTC 3,969,888 bytes, 205 lines download raw bytes

1/*! For license information please see main.4991c89b.js.LICENSE.txt */
2(function(){var __webpack_modules__={10095:function(e,t,n){"use strict";n.d(t,{Ay:function(){return d},B:function(){return I},Bf:function(){return w},Bt:function(){return l},EB:function(){return H},EI:function(){return A},Eo:function(){return Q},F5:function(){return $},Gx:function(){return c},Ir:function(){return j},Mn:function(){return W},No:function(){return X},O0:function(){return N},Ot:function(){return x},Pq:function(){return D},QA:function(){return Y},Ql:function(){return z},TJ:function(){return g},TW:function(){return U},To:function(){return T},V0:function(){return L},VN:function(){return S},Vr:function(){return v},Ww:function(){return p},XO:function(){return y},YP:function(){return E},Zg:function(){return ne},bH:function(){return M},bN:function(){return ie},c$:function(){return q},cx:function(){return O},ec:function(){return B},fP:function(){return k},fS:function(){return te},hb:function(){return f},iD:function(){return b},ki:function(){return F},mX:function(){return ee},ms:function(){return P},n7:function(){return C},o4:function(){return re},oh:function(){return m},pd:function(){return R},qM:function(){return oe},qX:function(){return K},qf:function(){return V},qw:function(){return Z},uS:function(){return G},vt:function(){return _},ws:function(){return h},xP:function(){return s},xf:function(){return u},yM:function(){return J}});var r=n(29246),i=n(27232);const o="https://fast.asklly.ai",a=new Date;a.getDate().toString(),a.getMonth().toString(),a.getFullYear().toString();async function s(e){try{const{data:t}=await r.A.post(`${o}/update_bot`,e);return(0,i.oR)("Bot updated succesfully",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}),t.data}catch(t){console.error(t)}}async function l(e,t,n){try{const a={"X-User-Id":n,"Content-Type":"application/x-www-form-urlencoded"},s=new URLSearchParams;s.append("id",e),s.append("file_ids",t);const{data:l}=await r.A.post(`${o}/delete_training_files`,s,{headers:a});return(0,i.oR)("Training files deleted successfully",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}),l.data}catch(a){console.error(a),i.oR.error("Failed to delete training files",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"})}}async function c(e,t){try{const n={"X-User-Id":t},{data:a}=await r.A.post(`${o}/delete_bot`,e,{headers:n});return(0,i.oR)("Bot deleted Succesfully",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}),a.data}catch(n){console.error(n)}}async function u(e,t){try{const n=new FormData;n.append("email",e);const{data:i}=await r.A.post(`${o}/decrypt-email`,n);return null!==i&&void 0!==i&&i.email||t("/404"),i}catch(n){console.log(n),n.response?i.oR.error(`${n.response.data.detail}`,{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}):i.oR.error("There was an error in uploading data",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"})}}async function d(e){try{const t={uid:e},{data:n}=await r.A.post(`${o}/user_info`,t);return localStorage.setItem("usr",n),n||null}catch(t){console.log(t)}}async function p(e){try{const{data:t}=await r.A.post(`${o}/add_kb_upload`,e,{timeout:3e5});return(0,i.oR)("Documents have been successfully uploaded",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}),!0}catch(t){return console.log(t),t.response?401===t.response.status?i.oR.error("File already exists",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}):i.oR.error(`${t.response.data.detail||"There was an error in uploading data"}`,{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}):i.oR.error("There was an error in uploading data",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}),!1}}async function h(e){try{const{data:t}=await r.A.post(`${o}/add_kb_data`,e);return(0,i.oR)("Document have been successfully uploaded",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}),!0}catch(t){return console.log(t),t.response?401===t.response.status?i.oR.error("File already exists",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}):i.oR.error(`${t.response.data.detail||"There was an error in uploading data"}`,{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}):i.oR.error("There was an error in uploading data",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}),!1}}async function f(e){try{const{data:t}=await r.A.post(`${o}/add_kb_qa`,e);return(0,i.oR)("Document have been successfully uploaded",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}),!0}catch(t){return console.log(t),t.response?401===t.response.status?i.oR.error("File already exists",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}):i.oR.error(`${t.response.data.detail||"There was an error in uploading data"}`,{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}):i.oR.error("There was an error in uploading data",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}),!1}}async function m(e){try{const t=localStorage.getItem("organization");if(!e)return alert("no uid");const n={"X-User-Id":e,"X-Org":t},{data:i}=await r.A.get(`${o}/getmybots`,{headers:n});return{ok:!0,data:i.res}}catch(t){console.log(t)}}async function g(e,t){try{const n={"X-User-Id":e,"X-Chat-Id":t},{data:i}=await r.A.get(`${o}/apis/v1/chat/id/${t}`,{headers:n});return i}catch(n){console.log(n)}}async function b(e){try{const t={"X-User-Id":e},{data:n}=await r.A.get(`${o}/notify/get`,{headers:t});return n}catch(t){console.log(t)}}async function v(e){try{const{data:t}=await r.A.delete(`${o}/notify/delete/${e}`);return!0}catch(t){console.log(t)}}async function y(e){try{const{data:t}=await r.A.post(`${o}/user/edit`,e);return(0,i.oR)("Profile has been updated succesfully",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}),t}catch(t){console.log(t),i.oR.error("There was an error in uploading data",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"})}}async function x(e){try{const{data:t}=await r.A.post(`${o}/get_kb_details`,e);return t}catch(t){console.log(t)}}async function w(e){try{const t={"X-Kb-Id":e},{data:n}=await r.A.post(`${o}/kb/delete`,e,{headers:t});return i.oR.success("Document has been removed succesfully",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}),n}catch(t){i.oR.error("Something went wrong",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}}async function A(e){try{const t=new FormData;t.append("uid",e);const{data:n}=await r.A.post(`${o}/get_bots`,t);return n}catch(t){i.oR.error("Something went wrong",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}}async function E(e){try{const{data:t}=await r.A.post(`${o}/chat/changeName`,e);return t}catch(t){i.oR.error("Something went wrong",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}}async function S(e){try{const{data:t}=await r.A.post(`${o}/team/create`,e);return t}catch(t){console.error(t),i.oR.error("Something went wrong",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}}async function _(e){try{const{data:t}=await r.A.post(`${o}/team/getall`,e);return t}catch(t){console.error(t),i.oR.error("Something went wrong",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}}async function k(e){try{const{data:t}=await r.A.post(`${o}/team/getmembers`,e);return t}catch(t){console.error(t),i.oR.error("Something went wrong",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}}async function T(e){try{const{data:t}=await r.A.post(`${o}/team/delete`,e);return i.oR.success("Team has been deleted succesfully",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}catch(t){console.error(t),i.oR.error("Something went wrong",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}}async function C(e){try{const{data:t}=await r.A.post(`${o}/team/update`,e);return t}catch(t){console.error(t),i.oR.error("Something went wrong",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}}async function O(e){try{const{data:t}=await r.A.post(`${o}/team/delete/member`,e);return t}catch(t){console.error(t),i.oR.error("Something went wrong",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}}async function N(){try{const{data:e}=await r.A.get(`${o}/teams/get_roles`);return e}catch(e){console.error(e),i.oR.error("Something went wrong",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}}async function I(e){try{const{data:t}=await r.A.post(`${o}/team/member/get_role`,e);return t}catch(n){var t;if(console.error(n),404===(null===n||void 0===n||null===(t=n.response)||void 0===t?void 0:t.status))return"no-org"}}async function R(e){try{console.log(e);const{data:t}=await r.A.post(`${o}/add_review`,e);return i.oR.success(t.message,{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}catch(t){console.error(t),i.oR.error("Something went wrong",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}}async function P(e){try{const{data:t}=await r.A.post(`${o}/metrics`,e);return t}catch(t){console.error(t),i.oR.error("Something went wrong",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}}async function j(e){try{const{data:t}=await r.A.post(`${o}/add_main_url`,e);return t}catch(t){console.error(t),i.oR.error("Something went wrong",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}}async function M(e){try{const{data:t}=await r.A.post(`${o}/add_kb_url`,e);return i.oR.success("Url has been scraped and saved succesfully",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}),!0}catch(t){console.error(t),i.oR.error("Something went wrong",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}}async function D(e){try{const{data:t}=await r.A.post(`${o}/edit_kb_name`,e);return i.oR.success("Knowledge Hub name changed successfully",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}catch(t){console.error(t),i.oR.error("Something went wrong",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}}async function L(e,t){try{const{data:n}=await r.A.post(`${o}/team/member/edit`,e);i.oR.success(null===n||void 0===n?void 0:n.message,{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}),t(!1)}catch(n){console.error(n),i.oR.error("Something went wrong",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}}async function F(e,t,n){try{const{data:a}=await r.A.post(`${o}/team/edit`,e);i.oR.success(null===a||void 0===a?void 0:a.message,{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}),t(!1),n()}catch(a){console.error(a),i.oR.error("Something went wrong",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}}const B=async e=>{try{const{data:t}=await r.A.post(`${o}/change_password`,e);return i.oR.success("Password changed successfully",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}catch(t){console.error(t),t.response?401===t.response.status?i.oR.error("Old password doen't Match",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}):403===t.response.status?i.oR.error("Please enter an new password that doesn't match the old password",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}):i.oR.error(`${t.response.data.detail||"Something went wrong"}`,{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}):i.oR.error("Something went worng",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"})}};async function U(e){try{const{data:t}=await r.A.post(`${o}/decrypt_token`,e);return t}catch(t){return console.log(t),t.response?i.oR.error(`${t.response.data.detail||"There was an error in uploading data"}`,{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}):i.oR.error("There was an error in uploading data",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}),!1}}async function z(e){try{const{data:t}=await r.A.post(`${o}/team/accept_invite`,e);return t}catch(t){return console.log(t),t.response?i.oR.error(`${t.response.data.detail||"There was an error in uploading data"}`,{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}):i.oR.error("There was an error in uploading data",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}),!1}}async function H(e){try{const{data:t}=await r.A.post(`${o}/team/access`,e);return t.access}catch(t){if(t.response){if(404===t.response.status)return!1;console.log(t),i.oR.error(`${t.response.data.detail||"There was an error in getting teams"}`,{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"})}else i.oR.error("There was an error in getting teams",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"li
2ght"});return!1}}async function $(e,t){try{const{data:n}=await r.A.get(`${o}/notify/audit`,{params:{uid:t,orgn:e}});return n}catch(n){console.log(n),n.response?i.oR.error(`${n.response.data.detail||"There was an error in uploading data"}`,{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}):i.oR.error("There was an error in uploading data",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"})}}const V=async e=>{try{const{data:t}=await r.A.post(`${o}/get/member/asklly`,e);return t}catch(t){console.error(t)}},G=async(e,t)=>{try{const{data:n}=await r.A.post(`${o}/tenants/add`,e);return t(),i.oR.success("Tenant has been onboarded succesfully",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}catch(n){n.response&&401===n.response.status?i.oR.error("Tenant already exists",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}):console.error(n)}},W=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{const{data:t}=await r.A.get(`${o}/tenants?name=${e}`);return t}catch(t){console.error(t)}},q=async e=>{try{const{data:t}=await r.A.get(`${o}/tenants/?name=${e}`);return t}catch(t){console.error(t)}},Y=async e=>{try{const{data:t}=await r.A.delete(`${o}/tenants/delete?tenant_name=${e}`);return i.oR.success("Tenant has been removed successfully",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}catch(t){t.response&&404===t.response.status?i.oR.error("Tenant not found",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}):console.error(t)}},K=async e=>{try{const{data:t}=await r.A.get(`${o}/apis/v1/chat/share/${e}`);return t}catch(t){console.error("Error sharing chat:",t),i.oR.error("Failed to share chat",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}},X=async e=>{try{const{data:t}=await r.A.post(`${o}/collections/create`,e);return t}catch(t){if(console.error("Error sharing chat:",t),t.response&&403===t.response.status)return i.oR.error("Collection already exists",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});i.oR.error("Failed to create collection",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}},Z=async(e,t)=>{try{const t={"X-User-Id":e},{data:n}=await r.A.get(`${o}/collections/get`,{headers:t});return n}catch(n){if(console.error("Error sharing chat:",n),n.response&&404===n.response.status)return t("/404");i.oR.error("Failed to get collection",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}},Q=async(e,t,n)=>{try{const a={"X-User-Id":t},{data:s}=await r.A.post(`${o}/collections/insert/${e}`,n,{headers:a});return i.oR.success("Added the message to collection",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}catch(a){console.error("Error sharing chat:",a),i.oR.error("Failed to get collection",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}},J=async(e,t)=>{try{const n={"X-User-Id":t},{data:i}=await r.A.get(`${o}/collections/get/${e}`,{headers:n});return i}catch(n){console.error("Error sharing chat:",n),i.oR.error("Failed to get collection",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}},ee=async(e,t,n)=>{try{const i={"X-User-Id":t},{data:a}=await r.A.put(`${o}/collections/edit/${e}`,n,{headers:i});return a}catch(a){console.error("Error sharing chat:",a),i.oR.error("Failed to get collection",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}},te=async e=>{try{const{data:t}=await r.A.get(`${o}/collections/get/share/${e}`);return null===t||void 0===t?void 0:t.collection}catch(t){console.error("Error sharing chat:",t),i.oR.error("Failed to get collection",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}},ne=async(e,t,n)=>{try{const a={"X-User-Id":n},{data:s}=await r.A.delete(`${o}/collections/delete/${e}/messages/${t}`,{headers:a});return i.oR.success("Message deleted successfully",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}catch(a){throw console.error("Error deleting message:",a),i.oR.error("Failed to delete message",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}),a}},re=async(e,t)=>{try{const n={"X-User-Id":t},{data:a}=await r.A.delete(`${o}/collections/delete/${e}`,{headers:n});return i.oR.success("Collection deleted successfully",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}catch(n){throw console.error("Error deleting collection:",n),i.oR.error("Failed to delete collection",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}),n}},ie=async(e,t)=>{try{const{data:n}=await r.A.put(`${o}/tenants/edit`,t,{headers:{"Content-Type":"multipart/form-data"},params:{tenant_id:e}});return i.oR.success("Tenant updated successfully",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}catch(n){throw console.error("Error updating tenant:",n),n.response?404===n.response.status?i.oR.error("Tenant not found",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}):400===n.response.status?i.oR.error("New tenant name already exists",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}):i.oR.error("Failed to update tenant",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}):i.oR.error("An error occurred while updating tenant",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}),n}},oe=async()=>{try{const e=localStorage.getItem("uid"),t={"X-User-Id":e,"X-Org":localStorage.getItem("organization")},{data:n}=await r.A.get(`${o}/get_favorites`,{headers:t});return{ok:!0,favorites:n.favorites}}catch(e){throw console.error(e),i.oR.error("Failed to fetch favorites",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}),e}}},67875:function(e,t,n){"use strict";var r=n(9950),i=n(14857),o=n(48089),a=n(45180),s=n(82053),l=n(74745),c=n(50704),u=n(44414);const d={"& .MuiCardHeader-action":{mr:0}},p=(0,r.forwardRef)(((e,t)=>{let{border:n=!0,boxShadow:r,children:p,content:h=!0,contentClass:f="",contentSX:m={},darkTitle:g,secondary:b,shadow:v,sx:y={},title:x,...w}=e;const A=(0,i.A)();return(0,u.jsxs)(o.A,{ref:t,...w,sx:{border:n?"1px solid":"none",borderColor:A.palette.primary[200]+25,":hover":{boxShadow:r?v||"0 2px 14px 0 rgb(32 40 45 / 8%)":"inherit"},...y},children:[x&&(0,u.jsx)(a.A,{sx:d,title:g?(0,u.jsx)(s.A,{variant:"h3",children:x}):x,action:b}),x&&(0,u.jsx)(l.A,{}),h&&(0,u.jsx)(c.A,{sx:m,className:f,children:p}),!h&&p]})}));t.A=p},58603:function(e,t,n){"use strict";n.d(t,{A:function(){return ie}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepe
vendor: 1,058 bytes, line 2
2nd?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEac
vendor: 5,047 bytes, line 2
2h((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),i=Math.abs,o=String.fromCharCode,a=Object.assign;function s(e){return e.trim()}function l(e,t,n){return e.replace(t,n)}function c(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function p(e){return e.length}function h(e){return e.length}function f(e,t){return t.push(e),e}var m=1,g=1,b=0,v=0,y=0,x="";function w(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:m,column:g,length:a,return:""}}function A(e,t){return a(w("",null,null,"",null,null,0),e,{length:-e.length},t)}function E(){return y=v>0?u(x,--v):0,g--,10===y&&(g=1,m--),y}function S(){return y=v<b?u(x,v++):0,g++,10===y&&(g=1,m++),y}function _(){return u(x,v)}function k(){return v}function T(e,t){return d(x,e,t)}function C(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function O(e){return m=g=1,b=p(x=e),v=0,[]}function N(e){return x="",e}function I(e){return s(T(v-1,j(91===e?e+2:40===e?e+1:e)))}function R(e){for(;(y=_())&&y<33;)S();return C(e)>2||C(y)>3?"":" "}function P(e,t){for(;--t&&S()&&!(y<48||y>102||y>57&&y<65||y>70&&y<97););return T(e,k()+(t<6&&32==_()&&32==S()))}function j(e){for(;S();)switch(y){case e:return v;case 34:case 39:34!==e&&39!==e&&j(y);break;case 40:41===e&&j(e);break;case 92:S()}return v}function M(e,t){for(;S()&&e+y!==57&&(e+y!==84||47!==_()););return"/*"+T(t,v-1)+"*"+o(47===e?e:S())}function D(e){for(;!C(_());)S();return T(e,v)}var L="-ms-",F="-moz-",B="-webkit-",U="comm",z="rule",H="decl",$="@keyframes";function V(e,t){for(var n="",r=h(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function G(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case H:return e.return=e.return||e.value;case U:return"";case $:return e.return=e.value+"{"+V(e.children,r)+"}";case z:e.value=e.props.join(",")}return p(n=V(e.children,r))?e.return=e.value+"{"+n+"}":""}function W(e){return N(q("",null,null,null,[""],e=O(e),0,[0],e))}function q(e,t,n,r,i,a,s,d,h){for(var m=0,g=0,b=s,v=0,y=0,x=0,w=1,A=1,T=1,C=0,O="",N=i,j=a,L=r,F=O;A;)switch(x=C,C=S()){case 40:if(108!=x&&58==u(F,b-1)){-1!=c(F+=l(I(C),"&","&\f"),"&\f")&&(T=-1);break}case 34:case 39:case 91:F+=I(C);break;case 9:case 10:case 13:case 32:F+=R(x);break;case 92:F+=P(k()-1,7);continue;case 47:switch(_()){case 42:case 47:f(K(M(S(),k()),t,n),h);break;default:F+="/"}break;case 123*w:d[m++]=p(F)*T;case 125*w:case 59:case 0:switch(C){case 0:case 125:A=0;case 59+g:-1==T&&(F=l(F,/\f/g,"")),y>0&&p(F)-b&&f(y>32?X(F+";",r,n,b-1):X(l(F," ","")+";",r,n,b-2),h);break;case 59:F+=";";default:if(f(L=Y(F,t,n,m,g,i,d,O,N=[],j=[],b),a),123===C)if(0===g)q(F,t,L,L,N,a,b,d,j);else switch(99===v&&110===u(F,3)?100:v){case 100:case 108:case 109:case 115:q(e,L,L,r&&f(Y(e,L,L,0,0,i,d,O,i,N=[],b),j),i,j,b,d,r?N:j);break;default:q(F,L,L,L,[""],j,0,d,j)}}m=g=y=0,w=T=1,O=F="",b=s;break;case 58:b=1+p(F),y=x;default:if(w<1)if(123==C)--w;else if(125==C&&0==w++&&125==E())continue;switch(F+=o(C),C*w){case 38:T=g>0?1:(F+="\f",-1);break;case 44:d[m++]=(p(F)-1)*T,T=1;break;case 64:45===_()&&(F+=I(S())),v=_(),g=b=p(O=F+=D(k())),C++;break;case 45:45===x&&2==p(F)&&(w=0)}}return a}function Y(e,t,n,r,o,a,c,u,p,f,m){for(var g=o-1,b=0===o?a:[""],v=h(b),y=0,x=0,A=0;y<r;++y)for(var E=0,S=d(e,g+1,g=i(x=c[y])),_=e;E<v;++E)(_=s(x>0?b[E]+" "+S:l(S,/&\f/g,b[E])))&&(p[A++]=_);return w(e,t,n,0===o?z:u,p,f,m)}function K(e,t,n){return w(e,t,n,U,o(y),d(e,2,-2),0)}function X(e,t,n,r){return w(e,t,n,H,d(e,0,r),d(e,r+1,-1),r)}var Z=function(e,t,n){for(var r=0,i=0;r=i,i=_(),38===r&&12===i&&(t[n]=1),!C(i);)S();return T(e,v)},Q=function(e,t){return N(function(e,t){var n=-1,r=44;do{switch(C(r)){case 0:38===r&&12===_()&&(t[n]=1),e[n]+=Z(v-1,t,n);break;case 2:e[n]+=I(r);break;case 4:if(44===r){e[++n]=58===_()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}}while(r=S());return e}(O(e),t))},J=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||J.get(n))&&!r){J.set(e,!0);for(var i=[],o=Q(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ne(e,t){switch(function(e,t){return 45^u(e,0)?(((t<<2^u(e,0))<<2^u(e,1))<<2^u(e,2))<<2^u(e,3):0}(e,t)){case 5103:return B+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return B+e+e;
vendor: 6,736 bytes, line 2
2case 5349:case 4246:case 4810:case 6968:case 2756:return B+e+F+e+L+e+e;case 6828:case 4268:return B+e+L+e+e;case 6165:return B+e+L+"flex-"+e+e;case 5187:return B+e+l(e,/(\w+).+(:[^]+)/,B+"box-$1$2"+L+"flex-$1$2")+e;case 5443:return B+e+L+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return B+e+L+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return B+e+L+l(e,"shrink","negative")+e;case 5292:return B+e+L+l(e,"basis","preferred-size")+e;case 6060:return B+"box-"+l(e,"-grow","")+B+e+L+l(e,"grow","positive")+e;case 4554:return B+l(e,/([^-])(transform)/g,"$1"+B+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,B+"$1"),/(image-set)/,B+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,B+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,B+"box-pack:$3"+L+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+B+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,B+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(p(e)-1-t>6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+B+"$2-$3$1"+F+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?ne(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,p(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+B)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+B+(45===u(e,14)?"inline-":"")+"box$3$1"+B+"$2$3$1"+L+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return B+e+L+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+L+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+L+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+L+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case H:e.return=ne(e.value,e.length);break;case $:return V([A(e,{value:l(e.value,"@","@"+B)})],r);case z:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return V([A(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return V([A(e,{props:[l(t,/:(plac\w+)/,":"+B+"input-$1")]}),A(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),A(e,{props:[l(t,/:(plac\w+)/,L+"input-$1")]})],r)}return""}))}}],ie=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i,o,a=e.stylisPlugins||re,s={},l=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;l.push(e)}));var c,u,d=[G,(u=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],p=function(e){var t=h(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}([ee,te].concat(a,d));o=function(e,t,n,r){c=n,V(W(e?e+"{"+t.styles+"}":t.styles),p),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new r({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return f.sheet.hydrate(l),f}},57923:function(e,t,n){"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:function(){return r}})},57370:function(e,t,n){"use strict";n.d(t,{C:function(){return c},E:function(){return g},T:function(){return d},c:function(){return f},h:function(){return p},w:function(){return u}});var r=n(9950),i=n(58603),o=n(71783),a=n(89015),s=n(96477),l=r.createContext("undefined"!==typeof HTMLElement?(0,i.A)({key:"css"}):null),c=l.Provider,u=function(e){return(0,r.forwardRef)((function(t,n){var i=(0,r.useContext)(l);return e(t,i,n)}))},d=r.createContext({});var p={}.hasOwnProperty,h="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",f=function(e,t){var n={};for(var r in t)p.call(t,r)&&(n[r]=t[r]);return n[h]=e,n},m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,o.SF)(t,n,r),(0,s.s)((function(){return(0,o.sk)(t,n,r)})),null},g=u((function(e,t,n){var i=e.css;"string"===typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var s=e[h],l=[i],c="";"string"===typeof e.className?c=(0,o.Rk)(t.registered,l,e.className):null!=e.className&&(c=e.className+" ");var u=(0,a.J)(l,void 0,r.useContext(d));c+=t.key+"-"+u.name;var f={};for(var g in e)p.call(e,g)&&"css"!==g&&g!==h&&(f[g]=e[g]);return f.className=c,n&&(f.ref=n),r.createElement(r.Fragment,null,r.createElement(m,{cache:t,serialized:u,isStringTag:"string"===typeof s}),r.createElement(s,f))}))},88283:function(e,t,n){"use strict";n.d(t,{AH:function(){return u},i7:function(){return d},mL:function(){return c}});var r=n(57370),i=n(9950),o=n(71783),a=n(96477),s=n(89015),l=(n(58603),n(23876),function(e,t){var n=arguments;if(null==t||!r.h.call(t,"css"))return i.createElement.apply(void 0,n);var o=n.length,a=new Array(o);a[0]=r.E,a[1]=(0,r.c)(e,t);for(var s=2;s<o;s++)a[s]=n[s];return i.createElement.apply(null,a)});!function(e){var t;t||(t=e.JSX||(e.JSX={}))}(l||(l={}));var c=(0,r.w)((function(e,t){var n=e.styles,l=(0,s.J)([n],void 0,i.useContext(r.T)),c=i.useRef();return(0,a.i)((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,i=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(r=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),c.current=[n,r],function(){n.flush()}}),[t]),(0,a.i)((function(){var e=c.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,o.sk)(t,l.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",l,n,!1)}}),[t,l.name]),null}));function u(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,s.J)(t)}function d(){var e=u.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},89015:function(e,t,n){"use strict";n.d(t,{J:function(){return g}});var r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGr
2idRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},i=n(57923),o=!1,a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!==typeof e},u=(0,i.A)((function(e){return l(e)?e:e.replace(a,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(s,(function(e,t,n){return f={name:t,styles:n,next:f},t}))}return 1===r[e]||l(e)||"number"!==typeof t||0===t?t:t+"px"},p="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function h(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return f={name:i.name,styles:i.styles,next:f},i.name;var a=n;if(void 0!==a.styles){var s=a.next;if(void 0!==s)for(;void 0!==s;)f={name:s.name,styles:s.styles,next:f},s=s.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=h(e,t,n[i])+";";else for(var a in n){var s=n[a];if("object"!==typeof s){var l=s;null!=t&&void 0!==t[l]?r+=a+"{"+t[l]+"}":c(l)&&(r+=u(a)+":"+d(a,l)+";")}else{if("NO_COMPONENT_SELECTOR"===a&&o)throw new Error(p);if(!Array.isArray(s)||"string"!==typeof s[0]||null!=t&&void 0!==t[s[0]]){var f=h(e,t,s);switch(a){case"animation":case"animationName":r+=u(a)+":"+f+";";break;default:r+=a+"{"+f+"}"}}else for(var m=0;m<s.length;m++)c(s[m])&&(r+=u(a)+":"+d(a,s[m])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var l=f,m=n(e);return f=l,h(e,t,m)}}var g=n;if(null==t)return g;var b=t[g];return void 0!==b?b:g}var f,m=/label:\s*([^\s;{]+)\s*(;|$)/g;function g(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";f=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=h(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++){if(i+=h(n,t,e[a]),r)i+=o[a]}m.lastIndex=0;for(var s,l="";null!==(s=m.exec(i));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:f}}},96477:function(e,t,n){"use strict";var r;n.d(t,{i:function(){return s},s:function(){return a}});var i=n(9950),o=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,a=o||function(e){return e()},s=o||i.useLayoutEffect},71783:function(e,t,n){"use strict";n.d(t,{Rk:function(){return r},SF:function(){return i},sk:function(){return o}});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},o=function(e,t,n){i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}},92696:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)([(0,o.jsx)("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3zM7 9H4V5h3zm10 6h3v4h-3zm0-10h3v4h-3z"},"0"),(0,o.jsx)("path",{d:"M7 5v4H4V5zm13 0v4h-3V5zm0 10v4h-3v-4z",opacity:".3"},"1")],"AccountTreeTwoTone")},99532:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)((0,o.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add")},18703:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)((0,o.jsx)("path",{d:"M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4zM17 11h-4v4h-2v-4H7V9h4V5h2v4h4z"}),"AddComment")},86456:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)((0,o.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward")},75054:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)((0,o.jsx)("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight")},42209:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel")},47063:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)((0,o.jsx)("path",{d:"M5 13h14v-2H5zm-2 4h14v-2H3zM7 7v2h14V7z"}),"ClearAll")},96319:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)((0,o.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},74032:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)((0,o.jsx)("path",{d:"M3 3h18v2H3zm0 16h18v2H3z"}),"DensityLarge")},18832:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)((0,o.jsx)("path",{d:"M3 3h18v2H3zm0 16h18v2H3zm0-8h18v2H3z"}),"DensityMedium")},59192:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)((0,o.jsx)("path",{d:"M3 2h18v2H3zm0 18h18v2H3zm0-6h18v2H3zm0-6h18v2H3z"}),"DensitySmall")},61447:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)((0,o.jsx)("path",{d:"M20 9H4v2h16zM4 15h16v-2H4z"}),"DragHandle")},6894:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)([(0,o.jsx)("path",{d:"M8 8H6v7c0 1.1.9 2 2 2h9v-2H8z"},"0"),(0,o.jsx)("path",{d:"M20 3h-8c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 8h-8V7h8zM4 12H2v7c0 1.1.9 2 2 2h9v-2H4z"},"1")],"DynamicFeed")},7999:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)((0,o.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit")},18726:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)((0,o.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")},2334:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)((0,o.jsx)("circle",{cx:"12",cy:"12",r:"8"}),"FiberManualRecord")},98350:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)((0,o.jsx)("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61"}),"FilterAlt")},51069:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)((0,o.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList")},35172:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)((0,o.jsx)("path",{d:"M10.83 8H21V6H8.83zm5 5H18v-2h-4.17zM14 16.83V18h-4v-2h3.17l-3-3H6v-2h2.17l-3-3H3V6h.17L1.39 4.22 2.8 2.81l18.38 18.38-1.41 1.41z"}),"FilterListOff")},16702:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)((0,o.jsx)("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"}),"Fullscreen")},79953:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)((0,o.jsx)("path",{d:"M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"}),"FullscreenExit")},9768:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)((0,o.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home")},89988:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)([(0,o.jsx)("path",{d:"M12 3 2 12h3v8h6v-6h2v6h6v-8h3zm5 15h-2v-6H9v6H7v-7.81l5-4.5 5 4.5z"},"0"),(0,o.jsx)("path",{d:"M7 10.19V18h2v-6h6v6h2v-7.81l-5-4.5z",opacity:".3"},"1")],"HomeTwoTone")},70544:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)((0,o.jsx)("path",{d:"M8.4 18.2c.38.5.6 1.12.6 1.8 0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3c.44 0 .85.09 1.23.26l1.41-1.77c-.92-1.03-1.29-2.39-1.09-3.69l-2.03-.68c-.54.83-1.46 1.38-2.52 1.38-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3c0 .07 0 .14-.01.21l2.03.68c.64-1.21 1.82-2.09 3.22-2.32V5.91C9.96 5.57 9 4.4 9 3c0-1.
266 1.34-3 3-3s3 1.34 3 3c0 1.4-.96 2.57-2.25 2.91v2.16c1.4.23 2.58 1.11 3.22 2.32L18 9.71V9.5c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3c-1.06 0-1.98-.55-2.52-1.37l-2.03.68c.2 1.29-.16 2.65-1.09 3.69l1.41 1.77c.38-.18.79-.27 1.23-.27 1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3c0-.68.22-1.3.6-1.8l-1.41-1.77c-1.35.75-3.01.76-4.37 0z"}),"Hub")},60694:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)([(0,o.jsx)("path",{d:"M18 6.41 16.59 5 12 9.58 7.41 5 6 6.41l6 6z"},"0"),(0,o.jsx)("path",{d:"m18 13-1.41-1.41L12 16.17l-4.59-4.58L6 13l6 6z"},"1")],"KeyboardDoubleArrowDown")},99624:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)((0,o.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu")},4422:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)((0,o.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreHoriz")},94453:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)((0,o.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert")},41328:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)((0,o.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow")},30444:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)((0,o.jsx)("path",{fillRule:"evenodd",d:"M16 9V4h1c.55 0 1-.45 1-1s-.45-1-1-1H7c-.55 0-1 .45-1 1s.45 1 1 1h1v5c0 1.66-1.34 3-3 3v2h5.97v7l1 1 1-1v-7H19v-2c-1.66 0-3-1.34-3-3"}),"PushPin")},71333:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)((0,o.jsx)("path",{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8m-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91"}),"RestartAlt")},92098:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)((0,o.jsx)("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save")},19223:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)((0,o.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search")},39854:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)([(0,o.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3 6.08 3 3.28 5.64 3.03 9h2.02C5.3 6.75 7.18 5 9.5 5 11.99 5 14 7.01 14 9.5S11.99 14 9.5 14c-.17 0-.33-.03-.5-.05v2.02c.17.02.33.03.5.03 1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19z"},"0"),(0,o.jsx)("path",{d:"M6.47 10.82 4 13.29l-2.47-2.47-.71.71L3.29 14 .82 16.47l.71.71L4 14.71l2.47 2.47.71-.71L4.71 14l2.47-2.47z"},"1")],"SearchOff")},44564:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)((0,o.jsx)("path",{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3M7.5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S9.83 13 9 13s-1.5-.67-1.5-1.5M16 17H8v-2h8zm-1-4c-.83 0-1.5-.67-1.5-1.5S14.17 10 15 10s1.5.67 1.5 1.5S15.83 13 15 13"}),"SmartToy")},89463:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)((0,o.jsx)("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"}),"Sort")},6939:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)((0,o.jsx)("path",{d:"M14 17H4v2h10zm6-8H4v2h16zM4 15h16v-2H4zM4 5v2h16V5z"}),"Subject")},18116:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)((0,o.jsx)("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}),"ViewColumn")},62375:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)((0,o.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility")},62462:function(e,t,n){"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),o=n(44414);t.A=(0,i.default)((0,o.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff")},68476:function(e,t,n){"use strict";var r=n(23235),i=n(44414);t.A=(0,r.A)((0,i.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight")},98692:function(e,t,n){"use strict";var r=n(23235),i=n(44414);t.A=(0,r.A)((0,i.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home")},49715:function(e,t,n){"use strict";var r=n(23235),i=n(44414);t.A=(0,r.A)((0,i.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search")},79526:function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(75865)},55158:function(e,t,n){"use strict";n.d(t,{A:function(){return b}});var r=n(98587),i=n(58168),o=n(9950),a=n(72004),s=n(88465),l=n(59254),c=n(18463),u=n(57191),d=n(1763),p=n(423);function h(e){return(0,p.Ay)("MuiBackdrop",e)}(0,d.A)("MuiBackdrop",["root","invisible"]);var f=n(44414);const m=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],g=(0,l.Ay)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((e=>{let{ownerState:t}=e;return(0,i.A)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})}));var b=o.forwardRef((function(e,t){var n,o,l;const d=(0,c.b)({props:e,name:"MuiBackdrop"}),{children:p,className:b,component:v="div",components:y={},componentsProps:x={},invisible:w=!1,open:A,slotProps:E={},slots:S={},TransitionComponent:_=u.A,transitionDuration:k}=d,T=(0,r.A)(d,m),C=(0,i.A)({},d,{component:v,invisible:w}),O=(e=>{const{classes:t,invisible:n}=e,r={root:["root",n&&"invisible"]};return(0,s.A)(r,h,t)})(C),N=null!=(n=E.root)?n:x.root;return(0,f.jsx)(_,(0,i.A)({in:A,timeout:k},T,{children:(0,f.jsx)(g,(0,i.A)({"aria-hidden":!0},N,{as:null!=(o=null!=(l=S.root)?l:y.Root)?o:v,className:(0,a.A)(O.root,b,null==N?void 0:N.className),ownerState:(0,i.A)({},C,null==N?void 0:N.ownerState),classes:O,ref:t,children:p}))}))}))},53011:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(12639),i=n(44501),o=n(79525),a=n(67550);var s=(0,n(1763).A)("MuiBox",["root"]);const l=(0,o.A)();var c=(0,r.A)({themeId:a.A,defaultTheme:l,defaultClassName:s.root,generateClassName:i.A.generate})},10226:function(e,t,n){"use strict";n.d(t,{A:function(){return T}});var r=n(98587),i=n(58168),o=n(9950),a=n(72004),s=n(45537),l=n(88465),c=n(99269),u=n(59254),d=n(19608),p=n(18463),h=n(8079),f=n(61676),m=n(1763),g=n(423);function b(e){return(0,g.Ay)("MuiButton",e)}var v=(0,m.A)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var y=o.createContext({});var x=o.createContext(void 0),w=n(44414);const A=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],E=e=>(0,i.A)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),S=(0,u.Ay)(h.A,{shouldForwardProp:e=>(0,d.A)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,f.A)(n.color)}`],t[`size${(0,f.A)(n.size)}`],t[`${n.variant}Size${(0,f.A)(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((e=>{let{theme:t,ownerState:n}=e;var r,o;const a="light"===t.palette.mode?t.palette.grey[300]:t.palette.grey[800],s="light"===t.palette.mode?t.palette.grey.A100:t.palette.grey[700];return(0,i.A)({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":(0,i.A)({textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,c.X4)(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===n.variant&&"inherit"!==n.color&&{backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainCh
2annel} / ${t.vars.palette.action.hoverOpacity})`:(0,c.X4)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===n.variant&&"inherit"!==n.color&&{border:`1px solid ${(t.vars||t).palette[n.color].main}`,backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,c.X4)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===n.variant&&{backgroundColor:t.vars?t.vars.palette.Button.inheritContainedHoverBg:s,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},"contained"===n.variant&&"inherit"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[n.color].main}}),"&:active":(0,i.A)({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[8]}),[`&.${v.focusVisible}`]:(0,i.A)({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[6]}),[`&.${v.disabled}`]:(0,i.A)({color:(t.vars||t).palette.action.disabled},"outlined"===n.variant&&{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"contained"===n.variant&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},"text"===n.variant&&{padding:"6px 8px"},"text"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main},"outlined"===n.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main,border:t.vars?`1px solid rgba(${t.vars.palette[n.color].mainChannel} / 0.5)`:`1px solid ${(0,c.X4)(t.palette[n.color].main,.5)}`},"contained"===n.variant&&{color:t.vars?t.vars.palette.text.primary:null==(r=(o=t.palette).getContrastText)?void 0:r.call(o,t.palette.grey[300]),backgroundColor:t.vars?t.vars.palette.Button.inheritContainedBg:a,boxShadow:(t.vars||t).shadows[2]},"contained"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].contrastText,backgroundColor:(t.vars||t).palette[n.color].main},"inherit"===n.color&&{color:"inherit",borderColor:"currentColor"},"small"===n.size&&"text"===n.variant&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"text"===n.variant&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"outlined"===n.variant&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"outlined"===n.variant&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"contained"===n.variant&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"contained"===n.variant&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},n.fullWidth&&{width:"100%"})}),(e=>{let{ownerState:t}=e;return t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${v.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${v.disabled}`]:{boxShadow:"none"}}})),_=(0,u.Ay)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${(0,f.A)(n.size)}`]]}})((e=>{let{ownerState:t}=e;return(0,i.A)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},E(t))})),k=(0,u.Ay)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${(0,f.A)(n.size)}`]]}})((e=>{let{ownerState:t}=e;return(0,i.A)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},E(t))}));var T=o.forwardRef((function(e,t){const n=o.useContext(y),c=o.useContext(x),u=(0,s.A)(n,e),d=(0,p.b)({props:u,name:"MuiButton"}),{children:h,color:m="primary",component:g="button",className:v,disabled:E=!1,disableElevation:T=!1,disableFocusRipple:C=!1,endIcon:O,focusVisibleClassName:N,fullWidth:I=!1,size:R="medium",startIcon:P,type:j,variant:M="text"}=d,D=(0,r.A)(d,A),L=(0,i.A)({},d,{color:m,component:g,disabled:E,disableElevation:T,disableFocusRipple:C,fullWidth:I,size:R,type:j,variant:M}),F=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:s}=e,c={root:["root",a,`${a}${(0,f.A)(t)}`,`size${(0,f.A)(o)}`,`${a}Size${(0,f.A)(o)}`,`color${(0,f.A)(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${(0,f.A)(o)}`],endIcon:["icon","endIcon",`iconSize${(0,f.A)(o)}`]},u=(0,l.A)(c,b,s);return(0,i.A)({},s,u)})(L),B=P&&(0,w.jsx)(_,{className:F.startIcon,ownerState:L,children:P}),U=O&&(0,w.jsx)(k,{className:F.endIcon,ownerState:L,children:O}),z=c||"";return(0,w.jsxs)(S,(0,i.A)({ownerState:L,className:(0,a.A)(n.className,F.root,v,z),component:g,disabled:E,focusRipple:!C,focusVisibleClassName:(0,a.A)(F.focusVisible,N),ref:t,type:j},D,{classes:F,children:[B,h,U]}))}))},8079:function(e,t,n){"use strict";n.d(t,{A:function(){return W}});var r=n(58168),i=n(98587),o=n(9950),a=n(72004),s=n(88465),l=n(59254),c=n(18463),u=n(31506),d=n(1976),p=n(41573);var h=n(25540),f=n(28555);function m(e,t){var n=Object.create(null);return e&&o.Children.map(e,(function(e){return e}
vendor: 1,584 bytes, line 2
2)).forEach((function(e){n[e.key]=function(e){return t&&(0,o.isValidElement)(e)?t(e):e}(e)})),n}function g(e,t,n){return null!=n[t]?n[t]:e.props[t]}function b(e,t,n){var r=m(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];s[i[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach((function(a){var s=i[a];if((0,o.isValidElement)(s)){var l=a in t,c=a in r,u=t[a],d=(0,o.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,o.isValidElement)(u)&&(i[a]=(0,o.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:g(s,"exit",e),enter:g(s,"enter",e)})):i[a]=(0,o.cloneElement)(s,{in:!1}):i[a]=(0,o.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:g(s,"exit",e),enter:g(s,"enter",e)})}})),i}var v=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},y=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}(0,h.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,a=t.handleExited;
vendor: 9,310 bytes, lines 2-75
2return{children:t.firstRender?(n=e,r=a,m(n.children,(function(e){return(0,o.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:g(e,"appear",n),enter:g(e,"enter",n),exit:g(e,"exit",n)})}))):b(e,i,a),firstRender:!1}},n.handleExited=function(e,t){var n=m(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,r.A)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,i.A)(e,["component","childFactory"]),a=this.state.contextValue,s=v(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o.createElement(f.A.Provider,{value:a},s):o.createElement(f.A.Provider,{value:a},o.createElement(t,r,s))},t}(o.Component);y.propTypes={},y.defaultProps={component:"div",childFactory:function(e){return e}};var x=y,w=n(88283),A=n(71824),E=n(44414);var S=function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:s,rippleSize:l,in:c,onExited:u,timeout:d}=e,[p,h]=o.useState(!1),f=(0,a.A)(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:l,height:l,top:-l/2+s,left:-l/2+i},g=(0,a.A)(n.child,p&&n.childLeaving,r&&n.childPulsate);return c||p||h(!0),o.useEffect((()=>{if(!c&&null!=u){const e=setTimeout(u,d);return()=>{clearTimeout(e)}}}),[u,c,d]),(0,E.jsx)("span",{className:f,style:m,children:(0,E.jsx)("span",{className:g})})},_=n(1763);var k=(0,_.A)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const T=["center","classes","className"];let C,O,N,I,R=e=>e;const P=(0,w.i7)(C||(C=R`
3  0% {
4    transform: scale(0);
5    opacity: 0.1;
6  }
7
8  100% {
9    transform: scale(1);
10    opacity: 0.3;
11  }
12`)),j=(0,w.i7)(O||(O=R`
13  0% {
14    opacity: 1;
15  }
16
17  100% {
18    opacity: 0;
19  }
20`)),M=(0,w.i7)(N||(N=R`
21  0% {
22    transform: scale(1);
23  }
24
25  50% {
26    transform: scale(0.92);
27  }
28
29  100% {
30    transform: scale(1);
31  }
32`)),D=(0,l.Ay)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),L=(0,l.Ay)(S,{name:"MuiTouchRipple",slot:"Ripple"})(I||(I=R`
33  opacity: 0;
34  position: absolute;
35
36  &.${0} {
37    opacity: 0.3;
38    transform: scale(1);
39    animation-name: ${0};
40    animation-duration: ${0}ms;
41    animation-timing-function: ${0};
42  }
43
44  &.${0} {
45    animation-duration: ${0}ms;
46  }
47
48  & .${0} {
49    opacity: 1;
50    display: block;
51    width: 100%;
52    height: 100%;
53    border-radius: 50%;
54    background-color: currentColor;
55  }
56
57  & .${0} {
58    opacity: 0;
59    animation-name: ${0};
60    animation-duration: ${0}ms;
61    animation-timing-function: ${0};
62  }
63
64  & .${0} {
65    position: absolute;
66    /* @noflip */
67    left: 0px;
68    top: 0;
69    animation-name: ${0};
70    animation-duration: 2500ms;
71    animation-timing-function: ${0};
72    animation-iteration-count: infinite;
73    animation-delay: 200ms;
74  }
75`),k.rippleVisible,P,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),k.ripplePulsate,(e=>{let{theme:t}=e;return t.transitions.duration.shorter}),k.child,k.childLeaving,j,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),k.childPulsate,M,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut})),F=o.forwardRef((function(e,t){const n=(0,c.b)({props:e,name:"MuiTouchRipple"}),{center:s=!1,classes:l={},className:u}=n,d=(0,i.A)(n,T),[p,h]=o.useState([]),f=o.useRef(0),m=o.useRef(null);o.useEffect((()=>{m.current&&(m.current(),m.current=null)}),[p]);const g=o.useRef(!1),b=(0,A.A)(),v=o.useRef(null),y=o.useRef(null),w=o.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:o}=e;h((e=>[...e,(0,E.jsx)(L,{classes:{ripple:(0,a.A)(l.ripple,k.ripple),rippleVisible:(0,a.A)(l.rippleVisible,k.rippleVisible),ripplePulsate:(0,a.A)(l.ripplePulsate,k.ripplePulsate),child:(0,a.A)(l.child,k.child),childLeaving:(0,a.A)(l.childLeaving,k.childLeaving),childPulsate:(0,a.A)(l.childPulsate,k.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},f.current)])),f.current+=1,m.current=o}),[l]),S=o.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};const{pulsate:r=!1,center:i=s||t.pulsate,fakeElement:o=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&g.current)return void(g.current=!1);"touchstart"===(null==e?void 0:e.type)&&(g.current=!0);const a=o?null:y.current,l=a?a.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2===0&&(d+=1);else{const e=2*Math.max(Math.abs((a?a.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((a?a.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===v.current&&(v.current=()=>{w({pulsate:r,rippleX:c,rippleY:u,rippleSize:d,cb:n})},b.start(80,(()=>{v.current&&(v.current(),v.current=null)}))):w({pulsate:r,rippleX:c,rippleY:u,rippleSize:d,cb:n})}),[s,w,b]),_=o.useCallback((()=>{S({},{pulsate:!0})}),[S]),C=o.useCallback(((e,t)=>{if(b.clear(),"touchend"===(null==e?void 0:e.type)&&v.current)return v.current(),v.current=null,void b.start(0,(()=>{C(e,t)}));v.current=null,h((e=>e.length>0?e.slice(1):e)),m.current=t}),[b]);return o.useImperativeHandle(t,(()=>({pulsate:_,start:S,stop:C})),[_,S,C]),(0,E.jsx)(D,(0,r.A)({className:(0,a.A)(k.root,l.root,u),ref:y},d,{children:(0,E.jsx)(x,{component:null,exit:!0,children:p})}))}));var B=F,U=n(423);function z(e){return(0,U.Ay)("MuiButtonBase",e)}var H=(0,_.A)("MuiButtonBase",["root","disabled","focusVisible"]);const $=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],V=(0,l.Ay)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${H.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),G=o.forwardRef((function(e,t){const n=(0,c.b)({props:e,name:"MuiButtonBase"}),{action:l,centerRipple:h=!1,children:f,className:m,component:g="button",disabled:b=!1,disableRipple:v=!1,disableTouchRipple:y=!1,focusRipple:x=!1,LinkComponent:w="a",onBlur:A,onClick:S,onContextMenu:_,onDragLeave:k,onFocus:T,onFocusVisible:C,onKeyDown:O,onKeyUp:N,onMouseDown:I,onMouseLeave:R,onMouseUp:P,onTouchEnd:j,onTouchMove:M,onTouchStart:D,tabIndex:L=0,TouchRippleProps:F,touchRippleRef:U,type:H}=n,G=(0,i.A)(n,$),W=o.useRef(null),q=o.useRef(null),Y=(0,u.A)(q,U),{isFocusVisibleRef:K,onFocus:X,onBlur:Z,ref:Q}=(0,p.A)(),[J,ee]=o.useState(!1);b&&J&&ee(!1),o.useImperativeHandle(l,(()=>({focusVisible:()=>{ee(!0),W.current.focus()}})),[]);const[te,ne]=o.useState(!1);o.useEffect((()=>{ne(!0)}),[]);const re=te&&!v&&!b;function ie(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;return(0,d.A)((r=>{t&&t(r);return!n&&q.current&&q.current[e](r),!0}))}o.useEffect((()=>{J&&x&&!v&&te&&q.current.pulsate()}),[v,x,J,te]);const oe=ie("start",I),ae=ie("stop",_),se=ie("stop",k),le=ie("stop",P),ce=ie("stop",(e=>{J&&e.preventDefault(),R&&R(e)})),ue=ie("start",D),de=ie("stop",j),pe=ie("stop",M),he=ie("stop",(e=>{Z(e),!1===K.current&&ee(!1),A&&A(e)}),!1),fe=(0,d.A)((e=>{W.current||(W.current=e.currentTarget),X(e),!0===K.current&&(ee(!0),C&&C(e)),T&&T(e)})),me=()=>{const e=W.current;return g&&"button"!==g&&!("A"===e.tagName&&e.href)},ge=o.useRef(!1),be=(0,d.A)((e=>{x&&!ge.current&&J&&q.current&&" "===e.key&&(ge.current=!0,q.current.stop(e,(()=>{q.current.start(e)}))),e.target===e.currentTarget&&me()&&" "===e.key&&e.preventDefault(),O&&O(e),e.target===e.currentTarget&&me()&&"Enter"===e.key&&!b&&(e.preventDefault(),S&&S(e))})),ve=(0,d.A)((e=>{x&&" "===e.key&&q.current&&J&&!e.defaultPrevented&&(ge.current=!1,q.current.stop(e,(()=>{q.current.pulsate(e)}))),N&&N(e),S&&e.target===e.currentTarget&&me()&&" "===e.key&&!e.defaultPrevented&&S(e)}));let ye=g;"button"===ye&&(G.href||G.to)&&(ye=w);const xe={};"button"===ye?(xe.type=void 0===H?"button":H,xe.disabled=b):(G.href||G.to||(xe.role="button"),b&&(xe["aria-disabled"]=b));const we=(0,u.A)(t,Q,W);const Ae=(0,r.A)({},n,{centerRipple:h,component:g,disabled:b,disableRipple:v,disableTouchRipple:y,focusRipple:x,tabIndex:L,focusVisible:J}),Ee=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o={root:["root",t&&"disabled",n&&"focusVisible"]}
75,a=(0,s.A)(o,z,i);return n&&r&&(a.root+=` ${r}`),a})(Ae);return(0,E.jsxs)(V,(0,r.A)({as:ye,className:(0,a.A)(Ee.root,m),ownerState:Ae,onBlur:he,onClick:S,onContextMenu:ae,onFocus:fe,onKeyDown:be,onKeyUp:ve,onMouseDown:oe,onMouseLeave:ce,onMouseUp:le,onDragLeave:se,onTouchEnd:de,onTouchMove:pe,onTouchStart:ue,ref:we,tabIndex:b?-1:L,type:H},xe,G,{children:[f,re?(0,E.jsx)(B,(0,r.A)({ref:Y,center:h},F)):null]}))}));var W=G},48089:function(e,t,n){"use strict";n.d(t,{A:function(){return b}});var r=n(58168),i=n(98587),o=n(9950),a=n(72004),s=n(88465),l=n(59254),c=n(18463),u=n(2235),d=n(1763),p=n(423);function h(e){return(0,p.Ay)("MuiCard",e)}(0,d.A)("MuiCard",["root"]);var f=n(44414);const m=["className","raised"],g=(0,l.Ay)(u.A,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({overflow:"hidden"})));var b=o.forwardRef((function(e,t){const n=(0,c.b)({props:e,name:"MuiCard"}),{className:o,raised:l=!1}=n,u=(0,i.A)(n,m),d=(0,r.A)({},n,{raised:l}),p=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"]},h,t)})(d);return(0,f.jsx)(g,(0,r.A)({className:(0,a.A)(p.root,o),elevation:l?8:void 0,ref:t,ownerState:d},u))}))},50704:function(e,t,n){"use strict";n.d(t,{A:function(){return g}});var r=n(58168),i=n(98587),o=n(9950),a=n(72004),s=n(88465),l=n(59254),c=n(18463),u=n(1763),d=n(423);function p(e){return(0,d.Ay)("MuiCardContent",e)}(0,u.A)("MuiCardContent",["root"]);var h=n(44414);const f=["className","component"],m=(0,l.Ay)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({padding:16,"&:last-child":{paddingBottom:24}})));var g=o.forwardRef((function(e,t){const n=(0,c.b)({props:e,name:"MuiCardContent"}),{className:o,component:l="div"}=n,u=(0,i.A)(n,f),d=(0,r.A)({},n,{component:l}),g=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"]},p,t)})(d);return(0,h.jsx)(m,(0,r.A)({as:l,className:(0,a.A)(g.root,o),ownerState:d,ref:t},u))}))},45180:function(e,t,n){"use strict";n.d(t,{A:function(){return w}});var r=n(98587),i=n(58168),o=n(9950),a=n(72004),s=n(88465),l=n(82053),c=n(18463),u=n(59254),d=n(1763),p=n(423);function h(e){return(0,p.Ay)("MuiCardHeader",e)}var f=(0,d.A)("MuiCardHeader",["root","avatar","action","content","title","subheader"]),m=n(44414);const g=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],b=(0,u.Ay)("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>(0,i.A)({[`& .${f.title}`]:t.title,[`& .${f.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),v=(0,u.Ay)("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),y=(0,u.Ay)("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),x=(0,u.Ay)("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"});var w=o.forwardRef((function(e,t){const n=(0,c.b)({props:e,name:"MuiCardHeader"}),{action:o,avatar:u,className:d,component:p="div",disableTypography:f=!1,subheader:w,subheaderTypographyProps:A,title:E,titleTypographyProps:S}=n,_=(0,r.A)(n,g),k=(0,i.A)({},n,{component:p,disableTypography:f}),T=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},h,t)})(k);let C=E;null==C||C.type===l.A||f||(C=(0,m.jsx)(l.A,(0,i.A)({variant:u?"body2":"h5",className:T.title,component:"span",display:"block"},S,{children:C})));let O=w;return null==O||O.type===l.A||f||(O=(0,m.jsx)(l.A,(0,i.A)({variant:u?"body2":"body1",className:T.subheader,color:"text.secondary",component:"span",display:"block"},A,{children:O}))),(0,m.jsxs)(b,(0,i.A)({className:(0,a.A)(T.root,d),as:p,ref:t,ownerState:k},_,{children:[u&&(0,m.jsx)(v,{className:T.avatar,ownerState:k,children:u}),(0,m.jsxs)(x,{className:T.content,ownerState:k,children:[C,O]}),o&&(0,m.jsx)(y,{className:T.action,ownerState:k,children:o})]}))}))},18463:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});n(9950);var r=n(6171);n(44414);function i(e){return(0,r.b)(e)}},74745:function(e,t,n){"use strict";var r=n(98587),i=n(58168),o=n(9950),a=n(72004),s=n(88465),l=n(99269),c=n(59254),u=n(18463),d=n(40777),p=n(44414);const h=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],f=(0,c.Ay)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((e=>{let{theme:t,ownerState:n}=e;return(0,i.A)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},n.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},n.light&&{borderColor:t.vars?`rgba(${t.vars.palette.dividerChannel} / 0.08)`:(0,l.X4)(t.palette.divider,.08)},"inset"===n.variant&&{marginLeft:72},"middle"===n.variant&&"horizontal"===n.orientation&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},"middle"===n.variant&&"vertical"===n.orientation&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},"vertical"===n.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},n.flexItem&&{alignSelf:"stretch",height:"auto"})}),(e=>{let{ownerState:t}=e;return(0,i.A)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})}),(e=>{let{theme:t,ownerState:n}=e;return(0,i.A)({},n.children&&"vertical"!==n.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(t.vars||t).palette.divider}`,borderTopStyle:"inherit"}})}),(e=>{let{theme:t,ownerState:n}=e;return(0,i.A)({},n.children&&"vertical"===n.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(t.vars||t).palette.divider}`,borderLeftStyle:"inherit"}})}),(e=>{let{ownerState:t}=e;return(0,i.A)({},"right"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})})),m=(0,c.Ay)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((e=>{let{theme:t,ownerState:n}=e;
75return(0,i.A)({display:"inline-block",paddingLeft:`calc(${t.spacing(1)} * 1.2)`,paddingRight:`calc(${t.spacing(1)} * 1.2)`},"vertical"===n.orientation&&{paddingTop:`calc(${t.spacing(1)} * 1.2)`,paddingBottom:`calc(${t.spacing(1)} * 1.2)`})})),g=o.forwardRef((function(e,t){const n=(0,u.b)({props:e,name:"MuiDivider"}),{absolute:o=!1,children:l,className:c,component:g=(l?"div":"hr"),flexItem:b=!1,light:v=!1,orientation:y="horizontal",role:x=("hr"!==g?"separator":void 0),textAlign:w="center",variant:A="fullWidth"}=n,E=(0,r.A)(n,h),S=(0,i.A)({},n,{absolute:o,component:g,flexItem:b,light:v,orientation:y,role:x,textAlign:w,variant:A}),_=(e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:l,variant:c}=e,u={root:["root",t&&"absolute",c,o&&"light","vertical"===a&&"vertical",i&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]};return(0,s.A)(u,d.K,r)})(S);return(0,p.jsx)(f,(0,i.A)({as:g,className:(0,a.A)(_.root,c),role:x,ref:t,ownerState:S},E,{children:l?(0,p.jsx)(m,{className:_.wrapper,ownerState:S,children:l}):null}))}));g.muiSkipListHighlight=!0,t.A=g},40777:function(e,t,n){"use strict";n.d(t,{K:function(){return o}});var r=n(1763),i=n(423);function o(e){return(0,i.Ay)("MuiDivider",e)}const a=(0,r.A)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);t.A=a},57191:function(e,t,n){"use strict";var r=n(58168),i=n(98587),o=n(9950),a=n(32448),s=n(52253),l=n(14857),c=n(70576),u=n(31506),d=n(44414);const p=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],h={entering:{opacity:1},entered:{opacity:1}},f=o.forwardRef((function(e,t){const n=(0,l.A)(),f={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:m,appear:g=!0,children:b,easing:v,in:y,onEnter:x,onEntered:w,onEntering:A,onExit:E,onExited:S,onExiting:_,style:k,timeout:T=f,TransitionComponent:C=a.Ay}=e,O=(0,i.A)(e,p),N=o.useRef(null),I=(0,u.A)(N,(0,s.A)(b),t),R=e=>t=>{if(e){const n=N.current;void 0===t?e(n):e(n,t)}},P=R(A),j=R(((e,t)=>{(0,c.q)(e);const r=(0,c.c)({style:k,timeout:T,easing:v},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),x&&x(e,t)})),M=R(w),D=R(_),L=R((e=>{const t=(0,c.c)({style:k,timeout:T,easing:v},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),E&&E(e)})),F=R(S);return(0,d.jsx)(C,(0,r.A)({appear:g,in:y,nodeRef:N,onEnter:j,onEntered:M,onEntering:P,onExit:L,onExited:F,onExiting:D,addEndListener:e=>{m&&m(N.current,e)},timeout:T},O,{children:(e,t)=>o.cloneElement(b,(0,r.A)({style:(0,r.A)({opacity:0,visibility:"exited"!==e||y?void 0:"hidden"},h[e],k,b.props.style),ref:I},t))}))}));t.A=f},85685:function(e,t,n){"use strict";var r=n(98587),i=n(58168),o=n(9950),a=n(87483),s=n(88465),l=n(22302),c=n(59254),u=n(19608),d=n(18463),p=n(22797),h=n(44414);const f=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],m=(0,c.Ay)(l.Sh,{shouldForwardProp:e=>(0,u.A)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...(0,l.WC)(e,t),!n.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:n}=e;var r;const o="light"===t.palette.mode,a=o?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",s=o?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",l=o?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",c=o?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,i.A)({position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:l,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s}},[`&.${p.A.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s},[`&.${p.A.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:c}},!n.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(t.vars||t).palette[n.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${p.A.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${p.A.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroun
75dChannel} / ${t.vars.opacity.inputUnderline})`:a}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${p.A.disabled}, .${p.A.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${p.A.disabled}:before`]:{borderBottomStyle:"dotted"}},n.startAdornment&&{paddingLeft:12},n.endAdornment&&{paddingRight:12},n.multiline&&(0,i.A)({padding:"25px 12px 8px"},"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17},n.hiddenLabel&&"small"===n.size&&{paddingTop:8,paddingBottom:9}))})),g=(0,c.Ay)(l.f3,{name:"MuiFilledInput",slot:"Input",overridesResolver:l.Oj})((e=>{let{theme:t,ownerState:n}=e;return(0,i.A)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0},n.hiddenLabel&&"small"===n.size&&{paddingTop:8,paddingBottom:9},n.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})})),b=o.forwardRef((function(e,t){var n,o,c,u;const b=(0,d.b)({props:e,name:"MuiFilledInput"}),{components:v={},componentsProps:y,fullWidth:x=!1,inputComponent:w="input",multiline:A=!1,slotProps:E,slots:S={},type:_="text"}=b,k=(0,r.A)(b,f),T=(0,i.A)({},b,{fullWidth:x,inputComponent:w,multiline:A,type:_}),C=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},o=(0,s.A)(r,p.N,t);return(0,i.A)({},t,o)})(b),O={root:{ownerState:T},input:{ownerState:T}},N=(null!=E?E:y)?(0,a.A)(O,null!=E?E:y):O,I=null!=(n=null!=(o=S.root)?o:v.Root)?n:m,R=null!=(c=null!=(u=S.input)?u:v.Input)?c:g;return(0,h.jsx)(l.Ay,(0,i.A)({slots:{root:I,input:R},componentsProps:N,fullWidth:x,inputComponent:w,multiline:A,ref:t,type:_},k,{classes:C}))}));b.muiName="Input",t.A=b},22797:function(e,t,n){"use strict";n.d(t,{N:function(){return s}});var r=n(58168),i=n(1763),o=n(423),a=n(63589);function s(e){return(0,o.Ay)("MuiFilledInput",e)}const l=(0,r.A)({},a.A,(0,i.A)("MuiFilledInput",["root","underline","input"]));t.A=l},25979:function(e,t,n){"use strict";n.d(t,{A:function(){return x}});var r=n(98587),i=n(58168),o=n(9950),a=n(72004),s=n(88465),l=n(18463),c=n(59254),u=n(43317),d=n(61676),p=n(3828),h=n(15866),f=n(1763),m=n(423);function g(e){return(0,m.Ay)("MuiFormControl",e)}(0,f.A)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var b=n(44414);const v=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],y=(0,c.Ay)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return(0,i.A)({},t.root,t[`margin${(0,d.A)(n.margin)}`],n.fullWidth&&t.fullWidth)}})((e=>{let{ownerState:t}=e;return(0,i.A)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===t.margin&&{marginTop:16,marginBottom:8},"dense"===t.margin&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})}));var x=o.forwardRef((function(e,t){const n=(0,l.b)({props:e,name:"MuiFormControl"}),{children:c,className:f,color:m="primary",component:x="div",disabled:w=!1,error:A=!1,focused:E,fullWidth:S=!1,hiddenLabel:_=!1,margin:k="none",required:T=!1,size:C="medium",variant:O="outlined"}=n,N=(0,r.A)(n,v),I=(0,i.A)({},n,{color:m,component:x,disabled:w,error:A,fullWidth:S,hiddenLabel:_,margin:k,required:T,size:C,variant:O}),R=(e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root","none"!==n&&`margin${(0,d.A)(n)}`,r&&"fullWidth"]};return(0,s.A)(i,g,t)})(I),[P,j]=o.useState((()=>{let e=!1;
75return c&&o.Children.forEach(c,(t=>{if(!(0,p.A)(t,["Input","Select"]))return;const n=(0,p.A)(t,["Select"])?t.props.input:t;n&&(0,u.gr)(n.props)&&(e=!0)})),e})),[M,D]=o.useState((()=>{let e=!1;return c&&o.Children.forEach(c,(t=>{(0,p.A)(t,["Input","Select"])&&((0,u.lq)(t.props,!0)||(0,u.lq)(t.props.inputProps,!0))&&(e=!0)})),e})),[L,F]=o.useState(!1);w&&L&&F(!1);const B=void 0===E||w?L:E;let U;const z=o.useMemo((()=>({adornedStart:P,setAdornedStart:j,color:m,disabled:w,error:A,filled:M,focused:B,fullWidth:S,hiddenLabel:_,size:C,onBlur:()=>{F(!1)},onEmpty:()=>{D(!1)},onFilled:()=>{D(!0)},onFocus:()=>{F(!0)},registerEffect:U,required:T,variant:O})),[P,m,w,A,M,B,S,_,U,T,C,O]);return(0,b.jsx)(h.A.Provider,{value:z,children:(0,b.jsx)(y,(0,i.A)({as:x,ownerState:I,className:(0,a.A)(R.root,f),ref:t},N,{children:c}))})}))},15866:function(e,t,n){"use strict";const r=n(9950).createContext(void 0);t.A=r},68624:function(e,t,n){"use strict";function r(e){let{props:t,states:n,muiFormControl:r}=e;return n.reduce(((e,n)=>(e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e)),{})}n.d(t,{A:function(){return r}})},39766:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(9950),i=n(15866);function o(){return r.useContext(i.A)}},24516:function(e,t,n){"use strict";n.d(t,{A:function(){return w}});var r=n(98587),i=n(58168),o=n(9950),a=n(72004),s=n(88465),l=n(68624),c=n(39766),u=n(59254),d=n(61676),p=n(1763),h=n(423);function f(e){return(0,h.Ay)("MuiFormHelperText",e)}var m,g=(0,p.A)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),b=n(18463),v=n(44414);const y=["children","className","component","disabled","error","filled","focused","margin","required","variant"],x=(0,u.Ay)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${(0,d.A)(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})((e=>{let{theme:t,ownerState:n}=e;return(0,i.A)({color:(t.vars||t).palette.text.secondary},t.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${g.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${g.error}`]:{color:(t.vars||t).palette.error.main}},"small"===n.size&&{marginTop:4},n.contained&&{marginLeft:14,marginRight:14})}));var w=o.forwardRef((function(e,t){const n=(0,b.b)({props:e,name:"MuiFormHelperText"}),{children:o,className:u,component:p="p"}=n,h=(0,r.A)(n,y),g=(0,c.A)(),w=(0,l.A)({props:n,muiFormControl:g,states:["variant","size","disabled","error","filled","focused","required"]}),A=(0,i.A)({},n,{component:p,contained:"filled"===w.variant||"outlined"===w.variant,variant:w.variant,size:w.size,disabled:w.disabled,error:w.error,filled:w.filled,focused:w.focused,required:w.required}),E=(e=>{const{classes:t,contained:n,size:r,disabled:i,error:o,filled:a,focused:l,required:c}=e,u={root:["root",i&&"disabled",o&&"error",r&&`size${(0,d.A)(r)}`,n&&"contained",l&&"focused",a&&"filled",c&&"required"]};return(0,s.A)(u,f,t)})(A);return(0,v.jsx)(x,(0,i.A)({as:p,ownerState:A,className:(0,a.A)(E.root,u),ref:t},h,{children:" "===o?m||(m=(0,v.jsx)("span",{className:"notranslate",children:"\u200b"})):o}))}))},29277:function(e,t,n){"use strict";var r=n(98587),i=n(58168),o=n(9950),a=n(72004),s=n(88465),l=n(68624),c=n(39766),u=n(61676),d=n(18463),p=n(59254),h=n(44789),f=n(44414);const m=["children","className","color","component","disabled","error","filled","focused","required"],g=(0,p.Ay)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return(0,i.A)({},t.root,"secondary"===n.color&&t.colorSecondary,n.filled&&t.filled)}})((e=>{let{theme:t,ownerState:n}=e;return(0,i.A)({color:(t.vars||t).palette.text.secondary},t.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${h.A.focused}`]:{color:(t.vars||t).palette[n.color].main},[`&.${h.A.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${h.A.error}`]:{color:(t.vars||t).palette.error.main}})})),b=(0,p.Ay)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{let{theme:t}=e;return{[`&.${h.A.error}`]:{color:(t.vars||t).palette.error.main}}})),v=o.forwardRef((function(e,t){const n=(0,d.b)({props:e,name:"MuiFormLabel"}),{children:o,className:p,component:v="label"}=n,y=(0,r.A)(n,m),x=(0,c.A)(),w=(0,l.A)({props:n,muiFormControl:x,states:["color","required","focused","disabled","error","filled"]}),A=(0,i.A)({},n,{color:w.color||"primary",component:v,disabled:w.disabled,error:w.error,filled:w.filled,focused:w.focused,required:w.required}),E=(e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:a,required:l}=e,c={root:["root",`color${(0,u.A)(n)}`,i&&"disabled",o&&"error",a&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",o&&"error"]};return(0,s.A)(c,h.Z,t)})(A);return(0,f.jsxs)(g,(0,i.A)({as:v,ownerState:A,className:(0,a.A)(E.root,p),ref:t},y,{children:[o,w.required&&(0,f.jsxs)(b,{ownerState:A,"aria-hidden":!0,
75className:E.asterisk,children:["\u2009","*"]})]}))}));t.A=v},44789:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(1763),i=n(423);function o(e){return(0,i.Ay)("MuiFormLabel",e)}const a=(0,r.A)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);t.A=a},71777:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var r=n(58168),i=(n(9950),n(33158)),o=n(7148),a=n(44414);var s=function(e){let{styles:t,themeId:n,defaultTheme:r={}}=e;const s=(0,o.A)(r),l="function"===typeof t?t(n&&s[n]||s):t;return(0,a.jsx)(i.A,{styles:l})},l=n(60195),c=n(67550);var u=function(e){return(0,a.jsx)(s,(0,r.A)({},e,{defaultTheme:l.A,themeId:c.A}))}},40165:function(e,t,n){"use strict";var r=n(58168),i=n(98587),o=n(9950),a=n(71824),s=n(52253),l=n(32448),c=n(14857),u=n(70576),d=n(31506),p=n(44414);const h=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function f(e){return`scale(${e}, ${e**2})`}const m={entering:{opacity:1,transform:f(1)},entered:{opacity:1,transform:"none"}},g="undefined"!==typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),b=o.forwardRef((function(e,t){const{addEndListener:n,appear:b=!0,children:v,easing:y,in:x,onEnter:w,onEntered:A,onEntering:E,onExit:S,onExited:_,onExiting:k,style:T,timeout:C="auto",TransitionComponent:O=l.Ay}=e,N=(0,i.A)(e,h),I=(0,a.A)(),R=o.useRef(),P=(0,c.A)(),j=o.useRef(null),M=(0,d.A)(j,(0,s.A)(v),t),D=e=>t=>{if(e){const n=j.current;void 0===t?e(n):e(n,t)}},L=D(E),F=D(((e,t)=>{(0,u.q)(e);const{duration:n,delay:r,easing:i}=(0,u.c)({style:T,timeout:C,easing:y},{mode:"enter"});let o;"auto"===C?(o=P.transitions.getAutoHeightDuration(e.clientHeight),R.current=o):o=n,e.style.transition=[P.transitions.create("opacity",{duration:o,delay:r}),P.transitions.create("transform",{duration:g?o:.666*o,delay:r,easing:i})].join(","),w&&w(e,t)})),B=D(A),U=D(k),z=D((e=>{const{duration:t,delay:n,easing:r}=(0,u.c)({style:T,timeout:C,easing:y},{mode:"exit"});let i;"auto"===C?(i=P.transitions.getAutoHeightDuration(e.clientHeight),R.current=i):i=t,e.style.transition=[P.transitions.create("opacity",{duration:i,delay:n}),P.transitions.create("transform",{duration:g?i:.666*i,delay:g?n:n||.333*i,easing:r})].join(","),e.style.opacity=0,e.style.transform=f(.75),S&&S(e)})),H=D(_);return(0,p.jsx)(O,(0,r.A)({appear:b,in:x,nodeRef:j,onEnter:F,onEntered:B,onEntering:L,onExit:z,onExited:H,onExiting:U,addEndListener:e=>{"auto"===C&&I.start(R.current||0,e),n&&n(j.current,e)},timeout:"auto"===C?null:C},N,{children:(e,t)=>o.cloneElement(v,(0,r.A)({style:(0,r.A)({opacity:0,transform:f(.75),visibility:"exited"!==e||x?void 0:"hidden"},m[e],T,v.props.style),ref:M},t))}))}));b.muiSupportAuto=!0,t.A=b},25333:function(e,t,n){"use strict";n.d(t,{A:function(){return x}});var r=n(98587),i=n(58168),o=n(9950),a=n(72004),s=n(88465),l=n(99269),c=n(59254),u=n(18463),d=n(8079),p=n(61676),h=n(1763),f=n(423);function m(e){return(0,f.Ay)("MuiIconButton",e)}var g=(0,h.A)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),b=n(44414);const v=["edge","children","className","color","disabled","disableFocusRipple","size"],y=(0,c.Ay)(d.A,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,p.A)(n.color)}`],n.edge&&t[`edge${(0,p.A)(n.edge)}`],t[`size${(0,p.A)(n.size)}`]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,i.A)({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,l.X4)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===n.edge&&{marginLeft:"small"===n.size?-3:-12},"end"===n.edge&&{marginRight:"small"===n.size?-3:-12})}),(e=>{let{theme:t,ownerState:n}=e;var r;const o=null==(r=(t.vars||t).palette)?void 0:r[n.color];return(0,i.A)({},"inherit"===n.color&&{color:"inherit"},"inherit"!==n.color&&"default"!==n.color&&(0,i.A)({color:null==o?void 0:o.main},!n.disableRipple&&{"&:hover":(0,i.A)({}
75,o&&{backgroundColor:t.vars?`rgba(${o.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,l.X4)(o.main,t.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===n.size&&{padding:5,fontSize:t.typography.pxToRem(18)},"large"===n.size&&{padding:12,fontSize:t.typography.pxToRem(28)},{[`&.${g.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}})}));var x=o.forwardRef((function(e,t){const n=(0,u.b)({props:e,name:"MuiIconButton"}),{edge:o=!1,children:l,className:c,color:d="default",disabled:h=!1,disableFocusRipple:f=!1,size:g="medium"}=n,x=(0,r.A)(n,v),w=(0,i.A)({},n,{edge:o,color:d,disabled:h,disableFocusRipple:f,size:g}),A=(e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,a={root:["root",n&&"disabled","default"!==r&&`color${(0,p.A)(r)}`,i&&`edge${(0,p.A)(i)}`,`size${(0,p.A)(o)}`]};return(0,s.A)(a,m,t)})(w);return(0,b.jsx)(y,(0,i.A)({className:(0,a.A)(A.root,c),centerRipple:!0,focusRipple:!f,disabled:h,ref:t},x,{ownerState:w,children:l}))}))},82321:function(e,t,n){"use strict";var r=n(98587),i=n(58168),o=n(9950),a=n(88465),s=n(87483),l=n(22302),c=n(59254),u=n(19608),d=n(18463),p=n(10465),h=n(44414);const f=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],m=(0,c.Ay)(l.Sh,{shouldForwardProp:e=>(0,u.A)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...(0,l.WC)(e,t),!n.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:n}=e;let r="light"===t.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(r=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),(0,i.A)({position:"relative"},n.formControl&&{"label + &":{marginTop:16}},!n.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[n.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${p.A.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${p.A.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${p.A.disabled}, .${p.A.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${p.A.disabled}:before`]:{borderBottomStyle:"dotted"}})})),g=(0,c.Ay)(l.f3,{name:"MuiInput",slot:"Input",overridesResolver:l.Oj})({}),b=o.forwardRef((function(e,t){var n,o,c,u;const b=(0,d.b)({props:e,name:"MuiInput"}),{disableUnderline:v,components:y={},componentsProps:x,fullWidth:w=!1,inputComponent:A="input",multiline:E=!1,slotProps:S,slots:_={},type:k="text"}=b,T=(0,r.A)(b,f),C=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},o=(0,a.A)(r,p.B,t);return(0,i.A)({},t,o)})(b),O={root:{ownerState:{disableUnderline:v}}},N=(null!=S?S:x)?(0,s.A)(null!=S?S:x,O):O,I=null!=(n=null!=(o=_.root)?o:y.Root)?n:m,R=null!=(c=null!=(u=_.input)?u:y.Input)?c:g;return(0,h.jsx)(l.Ay,(0,i.A)({slots:{root:I,input:R},slotProps:N,fullWidth:w,inputComponent:A,multiline:E,ref:t,type:k},T,{classes:C}))}));b.muiName="Input",t.A=b},10465:function(e,t,n){"use strict";n.d(t,{B:function(){return s}});var r=n(58168),i=n(1763),o=n(423),a=n(63589);function s(e){return(0,o.Ay)("MuiInput",e)}const l=(0,r.A)({},a.A,(0,i.A)("MuiInput",["root","underline","input"]));t.A=l},2046:function(e,t,n){"use strict";n.d(t,{A:function(){return A}});var r=n(98587),i=n(58168),o=n(9950),a=n(72004),s=n(88465),l=n(61676),c=n(82053),u=n(15866),d=n(39766),p=n(59254),h=n(1763),f=n(423);function m(e){return(0,f.Ay)("MuiInputAdornment",e)}var g,b=(0,h.A)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),v=n(18463),y=n(44414);const x=["children","className","component","disablePointerEvents","disableTypography","position","variant"],w=(0,p.Ay)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${(0,l.A)(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((e=>{let{theme:t,ownerState:n}=e;
75return(0,i.A)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===n.variant&&{[`&.${b.positionStart}&:not(.${b.hiddenLabel})`]:{marginTop:16}},"start"===n.position&&{marginRight:8},"end"===n.position&&{marginLeft:8},!0===n.disablePointerEvents&&{pointerEvents:"none"})}));var A=o.forwardRef((function(e,t){const n=(0,v.b)({props:e,name:"MuiInputAdornment"}),{children:p,className:h,component:f="div",disablePointerEvents:b=!1,disableTypography:A=!1,position:E,variant:S}=n,_=(0,r.A)(n,x),k=(0,d.A)()||{};let T=S;S&&k.variant,k&&!T&&(T=k.variant);const C=(0,i.A)({},n,{hiddenLabel:k.hiddenLabel,size:k.size,disablePointerEvents:b,position:E,variant:T}),O=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:a}=e,c={root:["root",n&&"disablePointerEvents",i&&`position${(0,l.A)(i)}`,a,r&&"hiddenLabel",o&&`size${(0,l.A)(o)}`]};return(0,s.A)(c,m,t)})(C);return(0,y.jsx)(u.A.Provider,{value:null,children:(0,y.jsx)(w,(0,i.A)({as:f,ownerState:C,className:(0,a.A)(O.root,h),ref:t},_,{children:"string"!==typeof p||A?(0,y.jsxs)(o.Fragment,{children:["start"===E?g||(g=(0,y.jsx)("span",{className:"notranslate",children:"\u200b"})):null,p]}):(0,y.jsx)(c.A,{color:"text.secondary",children:p})}))})}))},22302:function(e,t,n){"use strict";n.d(t,{f3:function(){return j},Sh:function(){return P},Ay:function(){return L},Oj:function(){return R},WC:function(){return I}});var r=n(98587),i=n(58168),o=n(78099),a=n(9950),s=n(72004),l=n(88465),c=n(31467),u=n(5393),d=n(28635),p=n(61399),h=n(21927),f=n(44414);const m=["onChange","maxRows","minRows","style","value"];function g(e){return parseInt(e,10)||0}const b={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};var v=a.forwardRef((function(e,t){const{onChange:n,maxRows:o,minRows:s=1,style:l,value:c}=e,v=(0,r.A)(e,m),{current:y}=a.useRef(null!=c),x=a.useRef(null),w=(0,u.A)(t,x),A=a.useRef(null),E=a.useRef(null),S=a.useCallback((()=>{const t=x.current,n=(0,d.A)(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0,overflowing:!1};const r=E.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const i=n.boxSizing,a=g(n.paddingBottom)+g(n.paddingTop),l=g(n.borderBottomWidth)+g(n.borderTopWidth),c=r.scrollHeight;r.value="x";const u=r.scrollHeight;let p=c;s&&(p=Math.max(Number(s)*u,p)),o&&(p=Math.min(Number(o)*u,p)),p=Math.max(p,u);return{outerHeightStyle:p+("border-box"===i?a+l:0),overflowing:Math.abs(p-c)<=1}}),[o,s,e.placeholder]),_=a.useCallback((()=>{const e=S();if(void 0===(t=e)||null===t||0===Object.keys(t).length||0===t.outerHeightStyle&&!t.overflowing)return;var t;const n=e.outerHeightStyle,r=x.current;A.current!==n&&(A.current=n,r.style.height=`${n}px`),r.style.overflow=e.overflowing?"hidden":""}),[S]);(0,p.A)((()=>{const e=()=>{_()};let t;const n=(0,h.A)(e),r=x.current,i=(0,d.A)(r);let o;return i.addEventListener("resize",n),"undefined"!==typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(r)),()=>{n.clear(),cancelAnimationFrame(t),i.removeEventListener("resize",n),o&&o.disconnect()}}),[S,_]),(0,p.A)((()=>{_()}));return(0,f.jsxs)(a.Fragment,{children:[(0,f.jsx)("textarea",(0,i.A)({value:c,onChange:e=>{y||_(),n&&n(e)},ref:w,rows:s,style:l},v)),(0,f.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:E,tabIndex:-1,style:(0,i.A)({},b,l,{paddingTop:0,paddingBottom:0})})]})})),y=n(68624),x=n(15866),w=n(39766),A=n(59254),E=n(18463),S=n(61676),_=n(31506),k=n(79044),T=n(71777),C=n(43317),O=n(63589);const N=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],I=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${(0,S.A)(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},R=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},P=(0,A.Ay)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:I})((e=>{let{theme:t,ownerState:n}=e;return(0,i.A)({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",curs
75or:"text",display:"inline-flex",alignItems:"center",[`&.${O.A.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},n.multiline&&(0,i.A)({padding:"4px 0 5px"},"small"===n.size&&{paddingTop:1}),n.fullWidth&&{width:"100%"})})),j=(0,A.Ay)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:R})((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode,o=(0,i.A)({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),a={opacity:"0 !important"},s=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return(0,i.A)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${O.A.formControl} &`]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus:-ms-input-placeholder":s,"&:focus::-ms-input-placeholder":s},[`&.${O.A.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===n.size&&{paddingTop:1},n.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===n.type&&{MozAppearance:"textfield"})})),M=(0,f.jsx)(T.A,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),D=a.forwardRef((function(e,t){var n;const u=(0,E.b)({props:e,name:"MuiInputBase"}),{"aria-describedby":d,autoComplete:p,autoFocus:h,className:m,components:g={},componentsProps:b={},defaultValue:A,disabled:T,disableInjectingGlobalStyles:I,endAdornment:R,fullWidth:D=!1,id:L,inputComponent:F="input",inputProps:B={},inputRef:U,maxRows:z,minRows:H,multiline:$=!1,name:V,onBlur:G,onChange:W,onClick:q,onFocus:Y,onKeyDown:K,onKeyUp:X,placeholder:Z,readOnly:Q,renderSuffix:J,rows:ee,slotProps:te={},slots:ne={},startAdornment:re,type:ie="text",value:oe}=u,ae=(0,r.A)(u,N),se=null!=B.value?B.value:oe,{current:le}=a.useRef(null!=se),ce=a.useRef(),ue=a.useCallback((e=>{0}),[]),de=(0,_.A)(ce,U,B.ref,ue),[pe,he]=a.useState(!1),fe=(0,w.A)();const me=(0,y.A)({props:u,muiFormControl:fe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});me.focused=fe?fe.focused:pe,a.useEffect((()=>{!fe&&T&&pe&&(he(!1),G&&G())}),[fe,T,pe,G]);const ge=fe&&fe.onFilled,be=fe&&fe.onEmpty,ve=a.useCallback((e=>{(0,C.lq)(e)?ge&&ge():be&&be()}),[ge,be]);(0,k.A)((()=>{le&&ve({value:se})}),[se,ve,le]);a.useEffect((()=>{ve(ce.current)}),[]);let ye=F,xe=B;$&&"input"===ye&&(xe=ee?(0,i.A)({type:void 0,minRows:ee,maxRows:ee},xe):(0,i.A)({type:void 0,maxRows:z,minRows:H},xe),ye=v);a.useEffect((()=>{fe&&fe.setAdornedStart(Boolean(re))}),[fe,re]);const we=(0,i.A)({},u,{color:me.color||"primary",disabled:me.disabled,endAdornment:R,error:me.error,focused:me.focused,formControl:fe,fullWidth:D,hiddenLabel:me.hiddenLabel,multiline:$,size:me.size,startAdornment:re,type:ie}),Ae=(e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:c,hiddenLabel:u,multiline:d,readOnly:p,size:h,startAdornment:f,type:m}=e,g={root:["root",`color${(0,S.A)(n)}`,r&&"disabled",i&&"error",c&&"fullWidth",a&&"focused",s&&"formControl",h&&"medium"!==h&&`size${(0,S.A)(h)}`,d&&"multiline",f&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",d&&"inputMultiline","small"===h&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",o&&"inputAdornedEnd",p&&"readOnly"]};return(0,l.A)(g,O.g,t)})(we),Ee=ne.root||g.Root||P,Se=te.root||b.root||{},_e=ne.input||g.Input||j;return xe=(0,i.A)({},xe,null!=(n=te.input)?n:b.input),(0,f.jsxs)(a.Fragment,{children:[!I&&M,(0,f.jsxs)(Ee,(0,i.A)({},Se,!(0,c.A)(Ee)&&{ownerState:(0,i.A)({},we,Se.ownerState)},{ref:t,onClick:e=>{ce.current&&e.currentTarget===e.target&&ce.current.focus(),q&&q(e)}},ae,{className:(0,s.A)(Ae.root,Se.className,m,Q&&"MuiInputBase-readOnly"),children:[re,(0,f.jsx)(x.A.Provider,{value:null,children:(0,f.jsx)(_e,(0,i.A)({ownerState:we,"aria-invalid":me.error,"aria-describedby":d,autoComplete:p,autoFocus:h,defaultValue:A,disabled:me.disabled,id:L,onAnimationStart:e=>{ve("mui-auto-fill-cancel"===e.animationName?ce.current:{value:"x"})},name:V,placeholder:Z,readOnly:Q,required:me.required,rows:ee,value:se,onKeyDown:K,onKeyUp:X,type:ie},xe,!(0,c.A)(_e)&&{as:ye,ownerState:(0,i.A)({},we,xe.ownerState)},{ref:de,className:(0,s.A)(Ae.input,xe.className,Q&&"MuiInputBase-readOnly"),onBlur:e=>{G&&G(e),B.onBlur&&B.onBlur(e),fe&&fe.onBlur?fe.onBlur(e):he(!1)},onChange:function(e){if(!le){const t=e.target||ce.current;if(null==t)throw new Error((0,o.A)(1));ve({value:t.value})}for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];B.onChange&&B.onChange(e,...n),W&&W(e,...n)},onFocus:e=>{me.disabled?e.stopPropagation():(Y&&Y(e),B.onFocus&&B.onFocus(e),fe&&fe.onFocus?fe.onFocus(e):he(!0))}}))}),R,J?J((0,i.A)({},me,{startAdornment:re})):null]}))]})}));var L=D},63589:function(e,t,n){"use strict";n.d(t,{g:function(){return o}});var r=n(1763),i=n(423);function o(e){return(0,i.Ay)("MuiInputBase",e)}const a=(0,r.A)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);t.A=a},43317:function(e,t,n){"use strict";function r(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function i(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function o(e){return e.startAdornment}n.d(t,{gr:function(){return o},lq:function(){return i}})},19647:function(e,t,n){"use strict";n.d(t,{A:function(){return A}});var r=n(98587),i=n(58168),o=n(9950),a=n(88465),s=n(72004),l=n(68624),c=n(39766),u=n(29277),d=n(44789),p=n(18463),h=n(61676),f=n(59254),m=n(19608),g=n(1763),b=n(423);function v(e){return(0,b.Ay)("MuiInputLabel",e)}(0,g.A)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);var y=n(44414);const x=["disableAnimation","margin","shrink","variant","className"],w=(0,f.Ay)(u.A,{shouldForwardProp:e=>(0,m.A)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${d.A.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focu
75sed,t[n.variant]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,i.A)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},n.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===n.size&&{transform:"translate(0, 17px) scale(1)"},n.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!n.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===n.variant&&(0,i.A)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(12px, 13px) scale(1)"},n.shrink&&(0,i.A)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===n.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===n.variant&&(0,i.A)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(14px, 9px) scale(1)"},n.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))}));var A=o.forwardRef((function(e,t){const n=(0,p.b)({name:"MuiInputLabel",props:e}),{disableAnimation:o=!1,shrink:u,className:d}=n,f=(0,r.A)(n,x),m=(0,c.A)();let g=u;"undefined"===typeof g&&m&&(g=m.filled||m.focused||m.adornedStart);const b=(0,l.A)({props:n,muiFormControl:m,states:["size","variant","required","focused"]}),A=(0,i.A)({},n,{disableAnimation:o,formControl:m,shrink:g,size:b.size,variant:b.variant,required:b.required,focused:b.focused}),E=(e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:s,variant:l,required:c}=e,u={root:["root",n&&"formControl",!s&&"animated",o&&"shrink",r&&"normal"!==r&&`size${(0,h.A)(r)}`,l],asterisk:[c&&"asterisk"]},d=(0,a.A)(u,v,t);return(0,i.A)({},t,d)})(A);return(0,y.jsx)(w,(0,i.A)({"data-shrink":g,ownerState:A,ref:t,className:(0,s.A)(E.root,d)},f,{classes:E}))}))},249:function(e,t,n){"use strict";n.d(t,{A:function(){return b}});var r=n(98587),i=n(58168),o=n(9950),a=n(72004),s=n(88465),l=n(59254),c=n(18463),u=n(13372),d=n(1763),p=n(423);function h(e){return(0,p.Ay)("MuiList",e)}(0,d.A)("MuiList",["root","padding","dense","subheader"]);var f=n(44414);const m=["children","className","component","dense","disablePadding","subheader"],g=(0,l.Ay)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((e=>{let{ownerState:t}=e;return(0,i.A)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})}));var b=o.forwardRef((function(e,t){const n=(0,c.b)({props:e,name:"MuiList"}),{children:l,className:d,component:p="ul",dense:b=!1,disablePadding:v=!1,subheader:y}=n,x=(0,r.A)(n,m),w=o.useMemo((()=>({dense:b})),[b]),A=(0,i.A)({},n,{component:p,dense:b,disablePadding:v}),E=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e,o={root:["root",!n&&"padding",r&&"dense",i&&"subheader"]};return(0,s.A)(o,h,t)})(A);return(0,f.jsx)(u.A.Provider,{value:w,children:(0,f.jsxs)(g,(0,i.A)({as:p,className:(0,a.A)(E.root,d),ref:t,ownerState:A},x,{children:[y,l]}))})}))},13372:function(e,t,n){"use strict";const r=n(9950).createContext({});t.A=r},26050:function(e,t,n){"use strict";n.d(t,{Ay:function(){return C}});var r=n(98587),i=n(58168),o=n(9950),a=n(72004),s=n(88465),l=n(99269),c=n(31467),u=n(59254),d=n(18463),p=n(8079),h=n(3828),f=n(79044),m=n(31506),g=n(13372),b=n(1763),v=n(423);function y(e){return(0,v.Ay)("MuiListItem",e)}var x=(0,b.A)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),w=n(19813),A=n(71378),E=n(44414);const S=["className"],_=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","
75slots"],k=(0,u.Ay)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((e=>{let{theme:t,ownerState:n}=e;return(0,i.A)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!n.disablePadding&&(0,i.A)({paddingTop:8,paddingBottom:8},n.dense&&{paddingTop:4,paddingBottom:4},!n.disableGutters&&{paddingLeft:16,paddingRight:16},!!n.secondaryAction&&{paddingRight:48}),!!n.secondaryAction&&{[`& > .${w.A.root}`]:{paddingRight:48}},{[`&.${x.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${x.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,l.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${x.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:(0,l.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${x.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"flex-start"===n.alignItems&&{alignItems:"flex-start"},n.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},n.button&&{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${x.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:(0,l.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,l.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}}},n.hasSecondaryAction&&{paddingRight:48})})),T=(0,u.Ay)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"});var C=o.forwardRef((function(e,t){const n=(0,d.b)({props:e,name:"MuiListItem"}),{alignItems:l="center",autoFocus:u=!1,button:b=!1,children:v,className:w,component:C,components:O={},componentsProps:N={},ContainerComponent:I="li",ContainerProps:{className:R}={},dense:P=!1,disabled:j=!1,disableGutters:M=!1,disablePadding:D=!1,divider:L=!1,focusVisibleClassName:F,secondaryAction:B,selected:U=!1,slotProps:z={},slots:H={}}=n,$=(0,r.A)(n.ContainerProps,S),V=(0,r.A)(n,_),G=o.useContext(g.A),W=o.useMemo((()=>({dense:P||G.dense||!1,alignItems:l,disableGutters:M})),[l,G.dense,P,M]),q=o.useRef(null);(0,f.A)((()=>{u&&q.current&&q.current.focus()}),[u]);const Y=o.Children.toArray(v),K=Y.length&&(0,h.A)(Y[Y.length-1],["ListItemSecondaryAction"]),X=(0,i.A)({},n,{alignItems:l,autoFocus:u,button:b,dense:W.dense,disabled:j,disableGutters:M,disablePadding:D,divider:L,hasSecondaryAction:K,selected:U}),Z=(e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:o,disableGutters:a,disablePadding:l,divider:c,hasSecondaryAction:u,selected:d}=e,p={root:["root",i&&"dense",!a&&"gutters",!l&&"padding",c&&"divider",o&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",d&&"selected"],container:["container"]};return(0,s.A)(p,y,r)})(X),Q=(0,m.A)(q,t),J=H.root||O.Root||k,ee=z.root||N.root||{},te=(0,i.A)({className:(0,a.A)(Z.root,ee.className,w),disabled:j},V);let ne=C||"li";return b&&(te.component=C||"div",te.focusVisibleClassName=(0,a.A)(x.focusVisible,F),ne=p.A),K?(ne=te.component||C?ne:"div","li"===I&&("li"===ne?ne="div":"li"===te.component&&(te.component="div")),(0,E.jsx)(g.A.Provider,{value:W,children:(0,E.jsxs)(T,(0,i.A)({as:I,className:(0,a.A)(Z.container,R),ref:Q,ownerState:X},$,{children:[(0,E.jsx)(J,(0,i.A)({},ee,!(0,c.A)(J)&&{as:ne,ownerState:(0,i.A)({},X,ee.ownerState)},te,{children:Y})),Y.pop()]}))})):(0,E.jsx)(g.A.Provider,{value:W,children:(0,E.jsxs)(J,(0,i.A)({},ee,{as:ne,ref:Q},!(0,c.A)(J)&&{ownerState:(0,i.A)({},X,ee.ownerState)},te,{children:[Y,B&&(0,E.jsx)(A.A,{children:B})]}))})}))},19813:function(e,t,n){"use strict";n.d(t,{Y:function(){return o}});var r=n(1763),i=n(423);function o(e){return(0,i.Ay)("MuiListItemButton",e)}const a=(0,r.A)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);t.A=a},92455:function(e,t,n){"use strict";n.d(t,{f:function(){return o}});var r=n(1763),i=n(423);function o(e){return(0,i.Ay)("MuiListItemIcon",e)}const a=(0,r.A)("MuiListItemIcon",["root","alignItemsFlexStart"]);t.A=a},71378:function(e,t,n){"use strict";n.d(t,{A:function(){return v}});var r=n(98587),i=n(58168),o=n(9950),a=n(72004),s=n(88465),l=n(59254),c=n(18463),u=n(13372),d=n(1763),p=n(423);function h(e){return(0,p.Ay)("MuiListItemSecondaryAction",e)}(0,d.A)("MuiListItemSecondaryAction",["root","disableGutters"]);var f=n(44414);const m=["className"],g=(0,l.Ay)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((e=>{let{ownerState:t}=e;return(0,i.A)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},t.disableGutters&&{right:0})})),b=o.forwardRef((function(e,t){const n=(0,c.b)({props:e,name:"MuiListItemSecondaryAction"}),{className:l}=n,d=(0,r.A)(n,m),p=o.useContext(u.A),b=(0,i.A)({},n,{disableGutters:p.disableGutters}),v=(e=>{const{disableGutters:t,classes:n}=e,r={root:["root",t&&"disableGutters"]};return(0,s.A)(r,h,n)})(b);return(0,f.jsx)(g,(0,i.A)({className:(0,a.A)(v.root,l),ownerState:b,ref:t},d))}));b.muiName="ListItemSecondaryAction";var v=b},83563:function(e,t,n){"use strict";var r=n(98587),i=n(58168),o=n(9950),a=n(72004),s=n(88465),l=n(82053),c=n(13372),u=n(18463),d=n(59254),p=n(88543),h=n(44414);const f=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],m=(0,d.Ay)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${p.A.primary}`]:t.primary},{[`& .${p.A.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((e=>{let{ownerState:t}=e;return(0,i.A)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},t.primary&&t.secondary&&{marginTop:6,marginBottom:6},t.inset&&{paddingLeft:56})})),g=o.forwardRef((function(e,t){const n=(0,u.b)({props:e,name:"MuiListItemText"}),{children:d,className:g,disableTypography:b=!1,inset:v=!1,primary:y,primaryTypographyProps:x,secondary:w,secondaryTypographyProps:A}=n,E=(0,r.A)(n,f),{dense:S}=o.useContext(c.A);let _=null!=y?y:d,k=w;const T=(0,i.A)({},n,{disableTypography:b,inset:v,primary:!!_,secondary:!!k,dense:S}),C=(e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e,a={root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]};return(0,s.A)(a,p.b,t)})(T);return null==_||_.type===l.A||b||(_=(0,h.jsx)(l.A,(0,i.A)({variant:S?"body2":"body1",className:C.primary,component:null!=x&&x.variant?void 0:"span",display:"block"},x,{children:_}))),null==k||k.type===l.A||b||(k=(0,h.jsx)(l.A,(0,i.A)({variant:"body2",className:C.secondary,color:"text.secondary",display:"block"},A,{children:k}))),(0,h.jsxs)(m,(0,i.A)({className:(0,a.A)(C.root,g),ownerState:T,ref:t},E,{children:[_,k]}))}));t.A=g},88543:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var r=n(1763),i=n(423);function o(e){return(0,i.Ay)("MuiListItemText",e)}const a=(0,r.A)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);t.A=a},97591:function(e,t,n){"use strict";n.d(t,{A:function(){return D}});var r=n(58168),i=n(98587),o=n(9950),a=n(72004),s=n(88465),l=n(44730),c=n(59063),u=n(27402),d=n(249),p=n(69259).A,h=n(31506),f=n(79044),m=n(44414);const g=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function b(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}
vendor: 8,327 bytes, line 75
75function v(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function y(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function x(e,t,n,r,i,o){let a=!1,s=i(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&y(s,o)&&!t)return s.focus(),!0;s=i(e,s,n)}return!1}var w=o.forwardRef((function(e,t){const{actions:n,autoFocus:a=!1,autoFocusItem:s=!1,children:l,className:c,disabledItemsFocusable:w=!1,disableListWrap:A=!1,onKeyDown:E,variant:S="selectedMenu"}=e,_=(0,i.A)(e,g),k=o.useRef(null),T=o.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,f.A)((()=>{a&&k.current.focus()}),[a]),o.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{let{direction:n}=t;const r=!k.current.style.width;if(e.clientHeight<k.current.clientHeight&&r){const t=`${p((0,u.A)(e))}px`;k.current.style["rtl"===n?"paddingLeft":"paddingRight"]=t,k.current.style.width=`calc(100% + ${t})`}return k.current}})),[]);const C=(0,h.A)(k,t);let O=-1;o.Children.forEach(l,((e,t)=>{o.isValidElement(e)?(e.props.disabled||("selectedMenu"===S&&e.props.selected||-1===O)&&(O=t),O===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(O+=1,O>=l.length&&(O=-1))):O===t&&(O+=1,O>=l.length&&(O=-1))}));const N=o.Children.map(l,((e,t)=>{if(t===O){const t={};return s&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===S&&(t.tabIndex=0),o.cloneElement(e,t)}return e}));return(0,m.jsx)(d.A,(0,r.A)({role:"menu",ref:C,className:c,onKeyDown:e=>{const t=k.current,n=e.key,r=(0,u.A)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),x(t,r,A,w,b);else if("ArrowUp"===n)e.preventDefault(),x(t,r,A,w,v);else if("Home"===n)e.preventDefault(),x(t,null,A,w,b);else if("End"===n)e.preventDefault(),x(t,null,A,w,v);else if(1===n.length){const i=T.current,o=n.toLowerCase(),a=performance.now();i.keys.length>0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);const s=r&&!i.repeating&&y(r,i);i.previousKeyMatched&&(s||x(t,r,!1,w,b,i))?e.preventDefault():i.previousKeyMatched=!1}E&&E(e)},tabIndex:a?0:-1},_,{children:N}))})),A=n(72362),E=n(59254),S=n(19608),_=n(18463),k=n(1763),T=n(423);function C(e){return(0,T.Ay)("MuiMenu",e)}(0,k.A)("MuiMenu",["root","paper","list"]);const O=["onEntering"],N=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],I={vertical:"top",horizontal:"right"},R={vertical:"top",horizontal:"left"},P=(0,E.Ay)(A.Ay,{shouldForwardProp:e=>(0,S.A)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),j=(0,E.Ay)(A.IJ,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),M=(0,E.Ay)(w,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var D=o.forwardRef((function(e,t){var n,u;const d=(0,_.b)({props:e,name:"MuiMenu"}),{autoFocus:p=!0,children:h,className:f,disableAutoFocusItem:g=!1,MenuListProps:b={},onClose:v,open:y,PaperProps:x={},PopoverClasses:w,transitionDuration:A="auto",TransitionProps:{onEntering:E}={},variant:S="selectedMenu",slots:k={},slotProps:T={}}=d,D=(0,i.A)(d.TransitionProps,O),L=(0,i.A)(d,N),F=(0,l.I)(),B=(0,r.A)({},d,{autoFocus:p,disableAutoFocusItem:g,MenuListProps:b,onEntering:E,PaperProps:x,transitionDuration:A,TransitionProps:D,variant:S}),U=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"],paper:["paper"],list:["list"]},C,t)})(B),z=p&&!g&&y,H=o.useRef(null);let $=-1;o.Children.map(h,((e,t)=>{o.isValidElement(e)&&(e.props.disabled||("selectedMenu"===S&&e.props.selected||-1===$)&&($=t))}));const V=null!=(n=k.paper)?n:j,G=null!=(u=T.paper)?u:x,W=(0,c.A)({elementType:k.root,externalSlotProps:T.root,ownerState:B,className:[U.root,f]}),q=(0,c.A)({elementType:V,externalSlotProps:G,ownerState:B,className:U.paper});return(0,m.jsx)(P,(0,r.A)({onClose:v,anchorOrigin:{vertical:"bottom",horizontal:F?"right":"left"},transformOrigin:F?I:R,slots:{paper:V,root:k.root},slotProps:{root:W,paper:q},open:y,ref:t,transitionDuration:A,TransitionProps:(0,r.A)({onEntering:(e,t)=>{H.current&&H.current.adjustStyleForScrollbar(e,{direction:F?"rtl":"ltr"}),E&&E(e,t)}},D),ownerState:B},L,{classes:w,children:(0,m.jsx)(M,(0,r.A)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),v&&v(e,"tabKeyDown"))},actions:H,autoFocus:p&&(-1===$||g),autoFocusItem:z,variant:S},b,{className:(0,a.A)(U.list,b.className),children:h}))}))}))},23266:function(e,t,n){"use strict";n.d(t,{A:function(){return k}});var r=n(98587),i=n(58168),o=n(9950),a=n(72004),s=n(88465),l=n(99269),c=n(59254),u=n(19608),d=n(18463),p=n(13372),h=n(8079),f=n(79044),m=n(31506),g=n(40777),b=n(92455),v=n(88543),y=n(1763),x=n(423);function w(e){return(0,x.Ay)("MuiMenuItem",e)}var A=(0,y.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),E=n(44414);const S=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],_=(0,c.Ay)(h.A,{shouldForwardProp:e=>(0,u.A)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((e=>{let{theme:t,ownerState:n}=e;return(0,i.A)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${A.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,l.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${A.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:(0,l.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${A.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:(0,l.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,l.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${A.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${A.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${g.A.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${g.A.inset}`]:{marginLeft:52},[`& .${v.A.root}`]:{marginTop:0,marginBottom:0},[`& .${v.A.inset}`]:{paddingLeft:36},[`& .${b.A.root}`]:{minWidth:36}},!n.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},n.dense&&(0,i.A)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{[`& .${b.A.root} svg`]:{fontSize:"1.25rem"}}))}));var k=o.forwardRef((function(e,t){const n=(0,d.b)({props:e,name:"MuiMenuItem"}),{autoFocus:l=!1,component:c="li",dense:u=!1,divider:h=!1,disableGutters:g=!1,focusVisibleClassName:b,role:v="menuitem",tabIndex:y,className:x}=n,A=(0,r.A)(n,S),k=o.useContext(p.A),T=o.useMemo((()=>({dense:u||k.dense||!1,disableGutters:g})),[k.dense,u,g]),C=o.useRef(null);(0,f.A)((()=>{l&&C.current&&C.current.focus()}),[l]);const O=(0,i.A)({},n,{dense:T.dense,divider:h,disableGutters:g}),N=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:l}=e,c={root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divi
75der",a&&"selected"]},u=(0,s.A)(c,w,l);return(0,i.A)({},l,u)})(n),I=(0,m.A)(C,t);let R;return n.disabled||(R=void 0!==y?y:-1),(0,E.jsx)(p.A.Provider,{value:T,children:(0,E.jsx)(_,(0,i.A)({ref:I,role:v,tabIndex:R,component:c,focusVisibleClassName:(0,a.A)(N.focusVisible,b),className:(0,a.A)(N.root,x)},A,{ownerState:O,classes:N}))})}))},66633:function(e,t,n){"use strict";n.d(t,{A:function(){return B}});var r=n(98587),i=n(58168),o=n(9950),a=n(72004),s=n(88465),l=n(59063),c=n(5393),u=n(52253),d=n(26907),p=n(44414);const h=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function f(e){const t=[],n=[];return Array.from(e.querySelectorAll(h)).forEach(((e,r)=>{const i=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function m(){return!0}var g=function(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=f,isEnabled:s=m,open:l}=e,h=o.useRef(!1),g=o.useRef(null),b=o.useRef(null),v=o.useRef(null),y=o.useRef(null),x=o.useRef(!1),w=o.useRef(null),A=(0,c.A)((0,u.A)(t),w),E=o.useRef(null);o.useEffect((()=>{l&&w.current&&(x.current=!n)}),[n,l]),o.useEffect((()=>{if(!l||!w.current)return;const e=(0,d.A)(w.current);return w.current.contains(e.activeElement)||(w.current.hasAttribute("tabIndex")||w.current.setAttribute("tabIndex","-1"),x.current&&w.current.focus()),()=>{i||(v.current&&v.current.focus&&(h.current=!0,v.current.focus()),v.current=null)}}),[l]),o.useEffect((()=>{if(!l||!w.current)return;const e=(0,d.A)(w.current),t=t=>{E.current=t,!r&&s()&&"Tab"===t.key&&e.activeElement===w.current&&t.shiftKey&&(h.current=!0,b.current&&b.current.focus())},n=()=>{const t=w.current;if(null===t)return;if(!e.hasFocus()||!s()||h.current)return void(h.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==g.current&&e.activeElement!==b.current)return;if(e.activeElement!==y.current)y.current=null;else if(null!==y.current)return;if(!x.current)return;let n=[];if(e.activeElement!==g.current&&e.activeElement!==b.current||(n=a(w.current)),n.length>0){var i,o;const e=Boolean((null==(i=E.current)?void 0:i.shiftKey)&&"Tab"===(null==(o=E.current)?void 0:o.key)),t=n[0],r=n[n.length-1];"string"!==typeof t&&"string"!==typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const i=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(i),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,i,s,l,a]);const S=e=>{null===v.current&&(v.current=e.relatedTarget),x.current=!0};return(0,p.jsxs)(o.Fragment,{children:[(0,p.jsx)("div",{tabIndex:l?0:-1,onFocus:S,ref:g,"data-testid":"sentinelStart"}),o.cloneElement(t,{ref:A,onFocus:e=>{null===v.current&&(v.current=e.relatedTarget),x.current=!0,y.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,p.jsx)("div",{tabIndex:l?0:-1,onFocus:S,ref:b,"data-testid":"sentinelEnd"})]})},b=n(96039),v=n(59254),y=n(18463),x=n(55158),w=n(92529),A=n(85511),E=n(24701),S=n(28635),_=n(69259);function k(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function T(e){return parseInt((0,S.A)(e).getComputedStyle(e).paddingRight,10)||0}function C(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===o.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&k(e,i)}))}function O(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function N(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,d.A)(e);return t.body===e?(0,S.A)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=(0,_.A)((0,d.A)(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${T(r)+e}px`;const t=(0,d.A)(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${T(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=(0,d.A)(r).body;else{const t=r.parentElement,n=(0,S.A)(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>
vendor: 7,023 bytes, line 75
75{n.forEach((e=>{let{value:t,el:n,property:r}=e;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}const I=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&k(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);C(t,e.mount,e.modalRef,r,!0);const i=O(this.containers,(e=>e.container===t));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=O(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=N(r,t))}remove(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=this.modals.indexOf(e);if(-1===n)return n;const r=O(this.containers,(t=>-1!==t.modals.indexOf(e))),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&k(e.modalRef,t),C(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&k(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};var R=function(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:a=I,closeAfterTransition:s=!1,onTransitionEnter:l,onTransitionExited:u,children:p,onClose:h,open:f,rootRef:m}=e,g=o.useRef({}),b=o.useRef(null),v=o.useRef(null),y=(0,c.A)(v,m),[x,S]=o.useState(!f),_=function(e){return!!e&&e.props.hasOwnProperty("in")}(p);let T=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(T=!1);const C=()=>(g.current.modalRef=v.current,g.current.mount=b.current,g.current),O=()=>{a.mount(C(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},N=(0,w.A)((()=>{const e=function(e){return"function"===typeof e?e():e}(t)||(0,d.A)(b.current).body;a.add(C(),e),v.current&&O()})),R=o.useCallback((()=>a.isTopModal(C())),[a]),P=(0,w.A)((e=>{b.current=e,e&&(f&&R()?O():v.current&&k(v.current,T))})),j=o.useCallback((()=>{a.remove(C(),T)}),[T,a]);o.useEffect((()=>()=>{j()}),[j]),o.useEffect((()=>{f?N():_&&s||j()}),[f,j,_,s,N]);const M=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&R()&&(n||(t.stopPropagation(),h&&h(t,"escapeKeyDown")))},D=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&h&&h(t,"backdropClick")};return{getRootProps:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=(0,E.A)(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=(0,i.A)({},n,t);return(0,i.A)({role:"presentation"},r,{onKeyDown:M(r),ref:y})},getBackdropProps:function(){const e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.A)({"aria-hidden":!0},e,{onClick:D(e),open:f})},getTransitionProps:()=>({onEnter:(0,A.A)((()=>{S(!1),l&&l()}),null==p?void 0:p.props.onEnter),onExited:(0,A.A)((()=>{S(!0),u&&u(),s&&j()}),null==p?void 0:p.props.onExited)}),rootRef:y,portalRef:P,isTopModal:R,exited:x,hasTransition:_}},P=n(1763),j=n(423);function M(e){return(0,j.Ay)("MuiModal",e)}(0,P.A)("MuiModal",["root","hidden","backdrop"]);const D=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],L=(0,v.Ay)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((e=>{let{theme:t,ownerState:n}=e;return(0,i.A)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!n.open&&n.exited&&{visibility:"hidden"})})),F=(0,v.Ay)(x.A,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1});var B=o.forwardRef((function(e,t){var n,c,u,d,h,f;const m=(0,y.b)({name:"MuiModal",props:e}),{BackdropComponent:v=F,BackdropProps:x,className:w,closeAfterTransition:A=!1,children:E,container:S,component:_,components:k={},componentsProps:T={},disableAutoFocus:C=!1,disableEnforceFocus:O=!1,disableEscapeKeyDown:N=!1,disablePortal:I=!1,disableRestoreFocus:P=!1,disableScrollLock:j=!1,hideBackdrop:B=!1,keepMounted:U=!1,onBackdropClick:z,open:H,slotProps:$,slots:V}=m,G=(0,r.A)(m,D),W=(0,i.A)({},m,{closeAfterTransition:A,disableAutoFocus:C,disableEnforceFocus:O,disableEscapeKeyDown:N,disablePortal:I,disableRestoreFocus:P,disableScrollLock:j,hideBackdrop:B,keepMounted:U}),{getRootProps:q,getBackdropProps:Y,getTransitionProps:K,portalRef:X,isTopModal:Z,exited:Q,hasTransition:J}=R((0,i.A)({},W,{rootRef:t})),ee=(0,i.A)({},W,{exited:Q}),te=(e=>{const{open:t,exited:n,classes:r}=e,i={root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]};return(0,s.A)(i,M,r)})(ee),ne={};if(void 0===E.props.tabIndex&&(ne.tabIndex="-1"),J){const{onEnter:e,onExited:t}=K();ne.onEnter=e,ne.onExited=t}const re=null!=(n=null!=(c=null==V?void 0:V.root)?c:k.Root)?n:L,ie=null!=(u=null!=(d=null==V?void 0:V.backdrop)?d:k.Backdrop)?u:v,oe=null!=(h=null==$?void 0:$.root)?h:T.root,ae=null!=(f=null==$?void 0:$.backdrop)?f:T.backdrop,se=(0,l.A)({elementType:re,externalSlotProps:oe,externalForwardedProps:G,getSlotProps:q,additionalProps:{ref:t,as:_},ownerState:ee,className:(0,a.A)(w,null==oe?void 0:oe.className,null==te?void 0:te.root,!ee.open&&ee.exited&&(null==te?void 0:te.hidden))}),le=(0,l.A)({elementType:ie,externalSlotProps:ae,additionalProps:x,getSlotProps:e=>Y((0,i.A)({},e,{onClick:t=>{z&&z(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,a.A)(null==ae?void 0:ae.className,null==x?void 0:x.className,null==te?void 0:te.backdrop),ownerState:ee});return U||H||J&&!Q?(0,p.jsx)(b.A,{ref:X,container:S,disablePortal:I,children:(0,p.jsxs)(re,(0,i.A)({},se,{children:[!B&&v?(0,p.jsx)(ie,(0,i.A)({},le)):null,(0,p.jsx)(g,{disableEnforceFocus:O,disableAutoFocus:C,disableRestoreFocus:P,isEnabled:Z,open:H,children:o.cloneElement(E,ne)})]}))}):null}))},2660:function(e,t,n){"use strict";n.d(t,{A:function(){return S}});var r,i=n(98587),o=n(58168),a=n(9950),s=n(88465),l=n(59254),c=n(19608),u=n(44414);const d=["children","classes","className","label","notched"],p=(0,l.Ay)("fieldset",{shouldForwardProp:c.A})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),h=(0,l.Ay)("legend",{shouldForwardProp:c.A})((e=>{let{ownerState:t,theme:n}=e;return(0,o.A)({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:n.transitions.create("width",{duration:150,easing:n.transitions.easing.easeOut})}
75,t.withLabel&&(0,o.A)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:n.transitions.create("max-width",{duration:50,easing:n.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:n.transitions.create("max-width",{duration:100,easing:n.transitions.easing.easeOut,delay:50})}))}));var f=n(39766),m=n(68624),g=n(79229),b=n(22302),v=n(18463);const y=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],x=(0,l.Ay)(b.Sh,{shouldForwardProp:e=>(0,c.A)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:b.WC})((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,o.A)({position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${g.A.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${g.A.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${g.A.focused} .${g.A.notchedOutline}`]:{borderColor:(t.vars||t).palette[n.color].main,borderWidth:2},[`&.${g.A.error} .${g.A.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${g.A.disabled} .${g.A.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}},n.startAdornment&&{paddingLeft:14},n.endAdornment&&{paddingRight:14},n.multiline&&(0,o.A)({padding:"16.5px 14px"},"small"===n.size&&{padding:"8.5px 14px"}))})),w=(0,l.Ay)((function(e){const{className:t,label:n,notched:a}=e,s=(0,i.A)(e,d),l=null!=n&&""!==n,c=(0,o.A)({},e,{notched:a,withLabel:l});return(0,u.jsx)(p,(0,o.A)({"aria-hidden":!0,className:t,ownerState:c},s,{children:(0,u.jsx)(h,{ownerState:c,children:l?(0,u.jsx)("span",{children:n}):r||(r=(0,u.jsx)("span",{className:"notranslate",children:"\u200b"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((e=>{let{theme:t}=e;const n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:n}})),A=(0,l.Ay)(b.f3,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:b.Oj})((e=>{let{theme:t,ownerState:n}=e;return(0,o.A)({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===n.size&&{padding:"8.5px 14px"},n.multiline&&{padding:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0})})),E=a.forwardRef((function(e,t){var n,r,l,c,d;const p=(0,v.b)({props:e,name:"MuiOutlinedInput"}),{components:h={},fullWidth:E=!1,inputComponent:S="input",label:_,multiline:k=!1,notched:T,slots:C={},type:O="text"}=p,N=(0,i.A)(p,y),I=(e=>{const{classes:t}=e,n=(0,s.A)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},g.v,t);return(0,o.A)({},t,n)})(p),R=(0,f.A)(),P=(0,m.A)({props:p,muiFormControl:R,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),j=(0,o.A)({},p,{color:P.color||"primary",disabled:P.disabled,error:P.error,focused:P.focused,formControl:R,fullWidth:E,hiddenLabel:P.hiddenLabel,multiline:k,size:P.size,type:O}),M=null!=(n=null!=(r=C.root)?r:h.Root)?n:x,D=null!=(l=null!=(c=C.input)?c:h.Input)?l:A;return(0,u.jsx)(b.Ay,(0,o.A)({slots:{root:M,input:D},renderSuffix:e=>(0,u.jsx)(w,{ownerState:j,className:I.notchedOutline,label:null!=_&&""!==_&&P.required?d||(d=(0,u.jsxs)(a.Fragment,{children:[_,"\u2009","*"]})):_,notched:"undefined"!==typeof T?T:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:E,inputComponent:S,multiline:k,ref:t,type:O},N,{classes:(0,o.A)({},I,{notchedOutline:null})}))}));E.muiName="Input";var S=E},79229:function(e,t,n){"use strict";n.d(t,{v:function(){return s}});var r=n(58168),i=n(1763),o=n(423),a=n(63589);function s(e){return(0,o.Ay)("MuiOutlinedInput",e)}const l=(0,r.A)({},a.A,(0,i.A)("MuiOutlinedInput",["root","notchedOutline","input"]));t.A=l},2235:function(e,t,n){"use strict";n.d(t,{A:function(){return v}});var r=n(98587),i=n(58168),o=n(9950),a=n(72004),s=n(88465),l=n(99269),c=n(59254);var u=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},d=n(18463),p=n(1763),h=n(423);function f(e){return(0,h.Ay)("MuiPaper",e)}(0,p.A)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var m=n(44414);const g=["className","component","elevation","square","variant"],b=(0,c.Ay)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;
vendor: 4,475 bytes, line 75
75return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((e=>{let{theme:t,ownerState:n}=e;var r;return(0,i.A)({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!n.square&&{borderRadius:t.shape.borderRadius},"outlined"===n.variant&&{border:`1px solid ${(t.vars||t).palette.divider}`},"elevation"===n.variant&&(0,i.A)({boxShadow:(t.vars||t).shadows[n.elevation]},!t.vars&&"dark"===t.palette.mode&&{backgroundImage:`linear-gradient(${(0,l.X4)("#fff",u(n.elevation))}, ${(0,l.X4)("#fff",u(n.elevation))})`},t.vars&&{backgroundImage:null==(r=t.vars.overlays)?void 0:r[n.elevation]}))}));var v=o.forwardRef((function(e,t){const n=(0,d.b)({props:e,name:"MuiPaper"}),{className:o,component:l="div",elevation:c=1,square:u=!1,variant:p="elevation"}=n,h=(0,r.A)(n,g),v=(0,i.A)({},n,{component:l,elevation:c,square:u,variant:p}),y=(e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]};return(0,s.A)(o,f,i)})(v);return(0,m.jsx)(b,(0,i.A)({as:l,ownerState:v,className:(0,a.A)(y.root,o),ref:t},h))}))},72362:function(e,t,n){"use strict";n.d(t,{IJ:function(){return I},Ay:function(){return R}});var r=n(58168),i=n(98587),o=n(9950),a=n(72004),s=n(88465),l=n(59063),c=n(31467),u=n(59254),d=n(18463),p=n(21209),h=n(27402),f=n(70827),m=n(31506),g=n(40165),b=n(66633),v=n(2235),y=n(1763),x=n(423);function w(e){return(0,x.Ay)("MuiPopover",e)}(0,y.A)("MuiPopover",["root","paper"]);var A=n(44414);const E=["onEntering"],S=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],_=["slotProps"];function k(e,t){let n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function T(e,t){let n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function C(e){return[e.horizontal,e.vertical].map((e=>"number"===typeof e?`${e}px`:e)).join(" ")}function O(e){return"function"===typeof e?e():e}const N=(0,u.Ay)(b.A,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),I=(0,u.Ay)(v.A,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var R=o.forwardRef((function(e,t){var n,u,b;const v=(0,d.b)({props:e,name:"MuiPopover"}),{action:y,anchorEl:x,anchorOrigin:R={vertical:"top",horizontal:"left"},anchorPosition:P,anchorReference:j="anchorEl",children:M,className:D,container:L,elevation:F=8,marginThreshold:B=16,open:U,PaperProps:z={},slots:H,slotProps:$,transformOrigin:V={vertical:"top",horizontal:"left"},TransitionComponent:G=g.A,transitionDuration:W="auto",TransitionProps:{onEntering:q}={},disableScrollLock:Y=!1}=v,K=(0,i.A)(v.TransitionProps,E),X=(0,i.A)(v,S),Z=null!=(n=null==$?void 0:$.paper)?n:z,Q=o.useRef(),J=(0,m.A)(Q,Z.ref),ee=(0,r.A)({},v,{anchorOrigin:R,anchorReference:j,elevation:F,marginThreshold:B,externalPaperSlotProps:Z,transformOrigin:V,TransitionComponent:G,transitionDuration:W,TransitionProps:K}),te=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"],paper:["paper"]},w,t)})(ee),ne=o.useCallback((()=>{if("anchorPosition"===j)return P;const e=O(x),t=(e&&1===e.nodeType?e:(0,h.A)(Q.current).body).getBoundingClientRect();return{top:t.top+k(t,R.vertical),left:t.left+T(t,R.horizontal)}}),[x,R.horizontal,R.vertical,P,j]),re=o.useCallback((e=>({vertical:k(e,V.vertical),horizontal:T(e,V.horizontal)})),[V.horizontal,V.vertical]),ie=o.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=re(t);if("none"===j)return{top:null,left:null,transformOrigin:C(n)};const r=ne();let i=r.top-n.vertical,o=r.left-n.horizontal;const a=i+t.height,s=o+t.width,l=(0,f.A)(O(x)),c=l.innerHeight-B,u=l.innerWidth-B;if(null!==B&&i<B){const e=i-B;i-=e,n.vertical+=e}else if(null!==B&&a>c){const e=a-c;i-=e,n.vertical+=e}if(null!==B&&o<B){const e=o-B;o-=e,n.horizontal+=e}else if(s>u){const e=s-u;o-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(o)}px`,transformOrigin:C(n)}}),[x,j,ne,re,B]),[oe,ae]=o.useState(U),se=o.useCallback((()=>{const e=Q.current;if(!e)return;const t=ie(e);
75null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,ae(!0)}),[ie]);o.useEffect((()=>(Y&&window.addEventListener("scroll",se),()=>window.removeEventListener("scroll",se))),[x,Y,se]);o.useEffect((()=>{U&&se()})),o.useImperativeHandle(y,(()=>U?{updatePosition:()=>{se()}}:null),[U,se]),o.useEffect((()=>{if(!U)return;const e=(0,p.A)((()=>{se()})),t=(0,f.A)(x);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[x,U,se]);let le=W;"auto"!==W||G.muiSupportAuto||(le=void 0);const ce=L||(x?(0,h.A)(O(x)).body:void 0),ue=null!=(u=null==H?void 0:H.root)?u:N,de=null!=(b=null==H?void 0:H.paper)?b:I,pe=(0,l.A)({elementType:de,externalSlotProps:(0,r.A)({},Z,{style:oe?Z.style:(0,r.A)({},Z.style,{opacity:0})}),additionalProps:{elevation:F,ref:J},ownerState:ee,className:(0,a.A)(te.paper,null==Z?void 0:Z.className)}),he=(0,l.A)({elementType:ue,externalSlotProps:(null==$?void 0:$.root)||{},externalForwardedProps:X,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:ce,open:U},ownerState:ee,className:(0,a.A)(te.root,D)}),{slotProps:fe}=he,me=(0,i.A)(he,_);return(0,A.jsx)(ue,(0,r.A)({},me,!(0,c.A)(ue)&&{slotProps:fe,disableScrollLock:Y},{children:(0,A.jsx)(G,(0,r.A)({appear:!0,in:U,onEntering:(e,t)=>{q&&q(e,t),se()},onExited:()=>{ae(!1)},timeout:le},K,{children:(0,A.jsx)(de,(0,r.A)({},pe,{children:M}))}))}))}))},96039:function(e,t,n){"use strict";var r=n(9950),i=n(17119),o=n(5393),a=n(52253),s=n(61399),l=n(75587),c=n(44414);const u=r.forwardRef((function(e,t){const{children:n,container:u,disablePortal:d=!1}=e,[p,h]=r.useState(null),f=(0,o.A)(r.isValidElement(n)?(0,a.A)(n):null,t);if((0,s.A)((()=>{d||h(function(e){return"function"===typeof e?e():e}(u)||document.body)}),[u,d]),(0,s.A)((()=>{if(p&&!d)return(0,l.A)(t,p),()=>{(0,l.A)(t,null)}}),[t,p,d]),d){if(r.isValidElement(n)){const e={ref:f};return r.cloneElement(n,e)}return(0,c.jsx)(r.Fragment,{children:n})}return(0,c.jsx)(r.Fragment,{children:p?i.createPortal(n,p):p})}));t.A=u},70006:function(e,t,n){"use strict";n.d(t,{A:function(){return ne}});var r=n(58168),i=n(98587),o=n(9950),a=n(72004),s=n(87483),l=n(52253),c=n(78099),u=n(88465),d=n(93539),p=n(27402),h=n(61676),f=n(97591),m=n(1763),g=n(423);function b(e){return(0,g.Ay)("MuiNativeSelect",e)}var v=(0,m.A)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),y=n(59254),x=n(19608),w=n(44414);const A=["className","disabled","error","IconComponent","inputRef","variant"],E=e=>{let{ownerState:t,theme:n}=e;return(0,r.A)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,r.A)({},n.vars?{backgroundColor:`rgba(${n.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===n.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${v.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(n.vars||n).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===t.variant&&{"&&&":{paddingRight:32}},"outlined"===t.variant&&{borderRadius:(n.vars||n).shape.borderRadius,"&:focus":{borderRadius:(n.vars||n).shape.borderRadius},"&&&":{paddingRight:32}})},S=(0,y.Ay)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:x.A,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${v.multiple}`]:t.multiple}]}})(E),_=e=>{let{ownerState:t,theme:n}=e;return(0,r.A)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(n.vars||n).palette.action.active,[`&.${v.disabled}`]:{color:(n.vars||n).palette.action.disabled}},t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},k=(0,y.Ay)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,h.A)(n.variant)}`],n.open&&t.iconOpen]}})(_);var T=o.forwardRef((function(e,t){const{className:n,disabled:s,error:l,IconComponent:c,inputRef:d,variant:p="standard"}=e,f=(0,i.A)(e,A),m=(0,r.A)({},e,{disabled:s,variant:p,error:l}),g=(e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,s={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${(0,h.A)(n)}`,o&&"iconOpen",r&&"disabled"]};return(0,u.A)(s,b,t)})(m);
75return(0,w.jsxs)(o.Fragment,{children:[(0,w.jsx)(S,(0,r.A)({ownerState:m,className:(0,a.A)(g.select,n),disabled:s,ref:d||t},f)),e.multiple?null:(0,w.jsx)(k,{as:c,ownerState:m,className:g.icon})]})})),C=n(43317),O=n(61960),N=n(31506),I=n(48733);function R(e){return(0,g.Ay)("MuiSelect",e)}var P,j=(0,m.A)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const M=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],D=(0,y.Ay)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${j.select}`]:t.select},{[`&.${j.select}`]:t[n.variant]},{[`&.${j.error}`]:t.error},{[`&.${j.multiple}`]:t.multiple}]}})(E,{[`&.${j.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),L=(0,y.Ay)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,h.A)(n.variant)}`],n.open&&t.iconOpen]}})(_),F=(0,y.Ay)("input",{shouldForwardProp:e=>(0,O.A)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function B(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function U(e){return null==e||"string"===typeof e&&!e.trim()}var z=o.forwardRef((function(e,t){var n;const{"aria-describedby":s,"aria-label":l,autoFocus:m,autoWidth:g,children:b,className:v,defaultOpen:y,defaultValue:x,disabled:A,displayEmpty:E,error:S=!1,IconComponent:_,inputRef:k,labelId:T,MenuProps:O={},multiple:j,name:z,onBlur:H,onChange:$,onClose:V,onFocus:G,onOpen:W,open:q,readOnly:Y,renderValue:K,SelectDisplayProps:X={},tabIndex:Z,value:Q,variant:J="standard"}=e,ee=(0,i.A)(e,M),[te,ne]=(0,I.A)({controlled:Q,default:x,name:"Select"}),[re,ie]=(0,I.A)({controlled:q,default:y,name:"Select"}),oe=o.useRef(null),ae=o.useRef(null),[se,le]=o.useState(null),{current:ce}=o.useRef(null!=q),[ue,de]=o.useState(),pe=(0,N.A)(t,k),he=o.useCallback((e=>{ae.current=e,e&&le(e)}),[]),fe=null==se?void 0:se.parentNode;o.useImperativeHandle(pe,(()=>({focus:()=>{ae.current.focus()},node:oe.current,value:te})),[te]),o.useEffect((()=>{y&&re&&se&&!ce&&(de(g?null:fe.clientWidth),ae.current.focus())}),[se,g]),o.useEffect((()=>{m&&ae.current.focus()}),[m]),o.useEffect((()=>{if(!T)return;const e=(0,p.A)(ae.current).getElementById(T);if(e){const t=()=>{getSelection().isCollapsed&&ae.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[T]);const me=(e,t)=>{e?W&&W(t):V&&V(t),ce||(de(g?null:fe.clientWidth),ie(e))},ge=o.Children.toArray(b),be=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(j){n=Array.isArray(te)?te.slice():[];const t=te.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),te!==n&&(ne(n),$)){const r=t.nativeEvent||t,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:n,name:z}}),$(i,e)}j||me(!1,t)}},ve=null!==se&&re;let ye,xe;delete ee["aria-invalid"];const we=[];let Ae=!1,Ee=!1;((0,C.lq)({value:te})||E)&&(K?ye=K(te):Ae=!0);const Se=ge.map((e=>{if(!o.isValidElement(e))return null;let t;if(j){if(!Array.isArray(te))throw new Error((0,c.A)(2));t=te.some((t=>B(t,e.props.value))),t&&Ae&&we.push(e.props.children)}else t=B(te,e.props.value),t&&Ae&&(xe=e.props.children);return t&&(Ee=!0),o.cloneElement(e,{"aria-selected":t?"true":"false",onClick:be(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));Ae&&(ye=j?0===we.length?null:we.reduce(((e,t,n)=>(e.push(t),n<we.length-1&&e.push(", "),e)),[]):xe);let _e,ke=ue;!g&&ce&&se&&(ke=fe.clientWidth),_e="undefined"!==typeof Z?Z:A?null:0;const Te=X.id||(z?`mui-component-select-${z}`:void 0),Ce=(0,r.A)({},e,{variant:J,value:te,open:ve,error:S}),Oe=(e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,s={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${(0,h.A)(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return(0,u.A)(s,R,t)})(Ce),Ne=(0,r.A)({},O.PaperProps,null==(n=O.slotProps)?void 0:n.paper),Ie=(0,d.A)();return(0,w.jsxs)(o.Fragment,{children:[(0,w.jsx)(D,(0,r.A)({ref:he,tabIndex:_e,role:"combobox","aria-controls":Ie,"aria-disabled":A?"true":void 0,"aria-expanded":ve?"true":"false","aria-haspopup":"listbox","aria-label":l,"aria-labelledby":[T,Te].filter(
75Boolean).join(" ")||void 0,"aria-describedby":s,onKeyDown:e=>{if(!Y){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),me(!0,e))}},onMouseDown:A||Y?null:e=>{0===e.button&&(e.preventDefault(),ae.current.focus(),me(!0,e))},onBlur:e=>{!ve&&H&&(Object.defineProperty(e,"target",{writable:!0,value:{value:te,name:z}}),H(e))},onFocus:G},X,{ownerState:Ce,className:(0,a.A)(X.className,Oe.select,v),id:Te,children:U(ye)?P||(P=(0,w.jsx)("span",{className:"notranslate",children:"\u200b"})):ye})),(0,w.jsx)(F,(0,r.A)({"aria-invalid":S,value:Array.isArray(te)?te.join(","):te,name:z,ref:oe,"aria-hidden":!0,onChange:e=>{const t=ge.find((t=>t.props.value===e.target.value));void 0!==t&&(ne(t.props.value),$&&$(e,t))},tabIndex:-1,disabled:A,className:Oe.nativeInput,autoFocus:m,ownerState:Ce},ee)),(0,w.jsx)(L,{as:_,className:Oe.icon,ownerState:Ce}),(0,w.jsx)(f.A,(0,r.A)({id:`menu-${z||""}`,anchorEl:fe,open:ve,onClose:e=>{me(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},O,{MenuListProps:(0,r.A)({"aria-labelledby":T,role:"listbox","aria-multiselectable":j?"true":void 0,disableListWrap:!0,id:Ie},O.MenuListProps),slotProps:(0,r.A)({},O.slotProps,{paper:(0,r.A)({},Ne,{style:(0,r.A)({minWidth:ke},null!=Ne?Ne.style:null)})}),children:Se}))]})})),H=n(68624),$=n(39766),V=n(63976),G=n(82321),W=n(85685),q=n(2660),Y=n(18463);const K=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],X=["root"],Z={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,x.A)(e)&&"variant"!==e,slot:"Root"},Q=(0,y.Ay)(G.A,Z)(""),J=(0,y.Ay)(q.A,Z)(""),ee=(0,y.Ay)(W.A,Z)(""),te=o.forwardRef((function(e,t){const n=(0,Y.b)({name:"MuiSelect",props:e}),{autoWidth:c=!1,children:u,classes:d={},className:p,defaultOpen:h=!1,displayEmpty:f=!1,IconComponent:m=V.A,id:g,input:b,inputProps:v,label:y,labelId:x,MenuProps:A,multiple:E=!1,native:S=!1,onClose:_,onOpen:k,open:C,renderValue:O,SelectDisplayProps:I,variant:R="outlined"}=n,P=(0,i.A)(n,K),j=S?T:z,M=(0,$.A)(),D=(0,H.A)({props:n,muiFormControl:M,states:["variant","error"]}),L=D.variant||R,F=(0,r.A)({},n,{variant:L,classes:d}),B=(e=>{const{classes:t}=e;return t})(F),U=(0,i.A)(B,X),G=b||{standard:(0,w.jsx)(Q,{ownerState:F}),outlined:(0,w.jsx)(J,{label:y,ownerState:F}),filled:(0,w.jsx)(ee,{ownerState:F})}[L],W=(0,N.A)(t,(0,l.A)(G));return(0,w.jsx)(o.Fragment,{children:o.cloneElement(G,(0,r.A)({inputComponent:j,inputProps:(0,r.A)({children:u,error:D.error,IconComponent:m,variant:L,type:void 0,multiple:E},S?{id:g}:{autoWidth:c,defaultOpen:h,displayEmpty:f,labelId:x,MenuProps:A,onClose:_,onOpen:k,open:C,renderValue:O,SelectDisplayProps:(0,r.A)({id:g},I)},v,{classes:v?(0,s.A)(U,v.classes):U},b?b.props.inputProps:{})},(E&&S||f)&&"outlined"===L?{notched:!0}:{},{ref:W,className:(0,a.A)(G.props.className,p,B.root)},!b&&{variant:L},P))})}));te.muiName="Select";var ne=te},12257:function(e,t,n){"use strict";var r=n(22876),i=n(59254),o=n(18463);const a=(0,r.A)({createStyledComponent:(0,i.Ay)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,o.b)({props:e,name:"MuiStack"})});t.A=a},8145:function(e,t,n){"use strict";n.d(t,{A:function(){return _}});var r=n(58168),i=n(98587),o=n(9950),a=n(72004),s=n(88465),l=n(93539),c=n(59254),u=n(18463),d=n(82321),p=n(85685),h=n(2660),f=n(19647),m=n(25979),g=n(24516),b=n(70006),v=n(1763),y=n(423);function x(e){return(0,y.Ay)("MuiTextField",e)}(0,v.A)("MuiTextField",["root"]);var w=n(44414);const A=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],E={standard:d.A,filled:p.A,outlined:h.A}
75,S=(0,c.Ay)(m.A,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({});var _=o.forwardRef((function(e,t){const n=(0,u.b)({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:c=!1,children:d,className:p,color:h="primary",defaultValue:m,disabled:v=!1,error:y=!1,FormHelperTextProps:_,fullWidth:k=!1,helperText:T,id:C,InputLabelProps:O,inputProps:N,InputProps:I,inputRef:R,label:P,maxRows:j,minRows:M,multiline:D=!1,name:L,onBlur:F,onChange:B,onFocus:U,placeholder:z,required:H=!1,rows:$,select:V=!1,SelectProps:G,type:W,value:q,variant:Y="outlined"}=n,K=(0,i.A)(n,A),X=(0,r.A)({},n,{autoFocus:c,color:h,disabled:v,error:y,fullWidth:k,multiline:D,required:H,select:V,variant:Y}),Z=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"]},x,t)})(X);const Q={};"outlined"===Y&&(O&&"undefined"!==typeof O.shrink&&(Q.notched=O.shrink),Q.label=P),V&&(G&&G.native||(Q.id=void 0),Q["aria-describedby"]=void 0);const J=(0,l.A)(C),ee=T&&J?`${J}-helper-text`:void 0,te=P&&J?`${J}-label`:void 0,ne=E[Y],re=(0,w.jsx)(ne,(0,r.A)({"aria-describedby":ee,autoComplete:o,autoFocus:c,defaultValue:m,fullWidth:k,multiline:D,name:L,rows:$,maxRows:j,minRows:M,type:W,value:q,id:J,inputRef:R,onBlur:F,onChange:B,onFocus:U,placeholder:z,inputProps:N},Q,I));return(0,w.jsxs)(S,(0,r.A)({className:(0,a.A)(Z.root,p),disabled:v,error:y,fullWidth:k,ref:t,required:H,color:h,variant:Y,ownerState:X},K,{children:[null!=P&&""!==P&&(0,w.jsx)(f.A,(0,r.A)({htmlFor:J,id:te},O,{children:P})),V?(0,w.jsx)(b.A,(0,r.A)({"aria-describedby":ee,id:J,labelId:te,value:q,input:re},G,{children:d})):re,T&&(0,w.jsx)(g.A,(0,r.A)({id:ee},_,{children:T}))]}))}))},82053:function(e,t,n){"use strict";n.d(t,{A:function(){return x}});var r=n(98587),i=n(58168),o=n(9950),a=n(72004),s=n(80237),l=n(88465),c=n(59254),u=n(18463),d=n(61676),p=n(1763),h=n(423);function f(e){return(0,h.Ay)("MuiTypography",e)}(0,p.A)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var m=n(44414);const g=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],b=(0,c.Ay)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${(0,d.A)(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((e=>{let{theme:t,ownerState:n}=e;return(0,i.A)({margin:0},"inherit"===n.variant&&{font:"inherit"},"inherit"!==n.variant&&t.typography[n.variant],"inherit"!==n.align&&{textAlign:n.align},n.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n.gutterBottom&&{marginBottom:"0.35em"},n.paragraph&&{marginBottom:16})})),v={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},y={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var x=o.forwardRef((function(e,t){const n=(0,u.b)({props:e,name:"MuiTypography"}),o=(e=>y[e]||e)(n.color),c=(0,s.A)((0,i.A)({},n,{color:o})),{align:p="inherit",className:h,component:x,gutterBottom:w=!1,noWrap:A=!1,paragraph:E=!1,variant:S="body1",variantMapping:_=v}=c,k=(0,r.A)(c,g),T=(0,i.A)({},c,{align:p,color:o,className:h,component:x,gutterBottom:w,noWrap:A,paragraph:E,variant:S,variantMapping:_}),C=x||(E?"p":_[S]||v[S])||"span",O=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,"inherit"!==e.align&&`align${(0,d.A)(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return(0,l.A)(s,f,a)})(T);return(0,m.jsx)(b,(0,i.A)({as:C,ref:t,ownerState:T,className:(0,a.A)(O.root,h)},k))}))},63359:function(e,t){"use strict";t.A={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"}},54153:function(e,t){"use strict";t.A={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"}},63976:function(e,t,n){"use strict";n(9950);var r=n(23235),i=n(44414);t.A=(0,r.A)((0,i.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown")},22064:function(e,t,n){"use strict";n.d(t,{Ay:function(){return x},BB:function(){return b}});var r=n(58168),i=n(98587),o=n(78099),a=n(87483),s=n(99269);var l={black:"#000",white:"#fff"};var c={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},u=n(54153);var d={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var p={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},h=n(63359);var f={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var m={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const g=["mode","contrastThreshold","tonalOffset"],b={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:l.white,default:l.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackgroun
75d:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},v={text:{primary:l.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:l.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function y(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,s.a)(e.main,i):"dark"===t&&(e.dark=(0,s.e$)(e.main,o)))}function x(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:x=.2}=e,w=(0,i.A)(e,g),A=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:h.A[200],light:h.A[50],dark:h.A[400]}:{main:h.A[700],light:h.A[400],dark:h.A[800]}}(t),E=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:u.A[200],light:u.A[50],dark:u.A[400]}:{main:u.A[500],light:u.A[300],dark:u.A[700]}}(t),S=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:d[500],light:d[300],dark:d[700]}:{main:d[700],light:d[400],dark:d[800]}}(t),_=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:f[400],light:f[300],dark:f[700]}:{main:f[700],light:f[500],dark:f[900]}}(t),k=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[400],light:m[300],dark:m[700]}:{main:m[800],light:m[500],dark:m[900]}}(t),T=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:p[400],light:p[300],dark:p[700]}:{main:"#ed6c02",light:p[500],dark:p[900]}}(t);function C(e){return(0,s.eM)(e,v.text.primary)>=n?v.text.primary:b.text.primary}const O=e=>{let{color:t,name:n,mainShade:i=500,lightShade:a=300,darkShade:s=700}=e;if(t=(0,r.A)({},t),!t.main&&t[i]&&(t.main=t[i]),!t.hasOwnProperty("main"))throw new Error((0,o.A)(11,n?` (${n})`:"",i));if("string"!==typeof t.main)throw new Error((0,o.A)(12,n?` (${n})`:"",JSON.stringify(t.main)));return y(t,"light",a,x),y(t,"dark",s,x),t.contrastText||(t.contrastText=C(t.main)),t},N={dark:v,light:b};return(0,a.A)((0,r.A)({common:(0,r.A)({},l),mode:t,primary:O({color:A,name:"primary"}),secondary:O({color:E,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:O({color:S,name:"error"}),warning:O({color:T,name:"warning"}),info:O({color:_,name:"info"}),success:O({color:k,name:"success"}),grey:c,contrastThreshold:n,getContrastText:C,augmentColor:O,tonalOffset:x},N[t]),w)}},79525:function(e,t,n){"use strict";n.d(t,{A:function(){return w}});var r=n(58168),i=n(98587),o=n(78099),a=n(87483),s=n(98076),l=n(70505),c=n(12860);var u=n(22064);const d=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const p={textTransform:"uppercase"},h='"Roboto", "Helvetica", "Arial", sans-serif';function f(e,t){const n="function"===typeof t?t(e):t,{fontFamily:o=h,fontSize:s=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:f=700,htmlFontSize:m=16,allVariants:g,pxToRem:b}=n,v=(0,i.A)(n,d);const y=s/14,x=b||(e=>e/m*y+"rem"),w=(e,t,n,i,a)=>{return(0,r.A)({fontFamily:o,fontWeight:e,fontSize:x(t),lineHeight:n},o===h?{letterSpacing:(s=i/t,Math.round(1e5*s)/1e5)+"em"}:{},a,g);var s},A={h1:w(l,96,1.167,-1.5),h2:w(l,60,1.2,-.5),h3:w(c,48,1.167,0),h4:w(c,34,1.235,.25),h5:w(c,24,1.334,0),h6:w(u,20,1.6,.15),subtitle1:w(c,16,1.75,.15),subtitle2:w(u,14,1.57,.1),body1:w(c,16,1.5,.15),body2:w(c,14,1.43,.15),button:w(u,14,1.75,.4,p),caption:w(c,12,1.66,.4),overline:w(c,12,2.66,1,p),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,a.A)((0,r.A)({htmlFontSize:m,pxToRem:x,fontFamily:o,fontSize:s,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:f},A),v,{clone:!1})}function m(){return[`${arguments.length<=0?void 0:arguments[0]}px ${arguments.length<=1?void 0:arguments[1]}px ${arguments.length<=2?void 0:arguments[2]}px ${arguments.length<=3?void 0:arguments[3]}px rgba(0,0,0,0.2)`,`${arguments.length<=4?void 0:arguments[4]}px ${arguments.length<=5?void 0:arguments[5]}px ${arguments.length<=6?void 0:arguments[6]}px ${arguments.length<=7?void 0:arguments[7]}
75px rgba(0,0,0,0.14)`,`${arguments.length<=8?void 0:arguments[8]}px ${arguments.length<=9?void 0:arguments[9]}px ${arguments.length<=10?void 0:arguments[10]}px ${arguments.length<=11?void 0:arguments[11]}px rgba(0,0,0,0.12)`].join(",")}var g=["none",m(0,2,1,-1,0,1,1,0,0,1,3,0),m(0,3,1,-2,0,2,2,0,0,1,5,0),m(0,3,3,-2,0,3,4,0,0,1,8,0),m(0,2,4,-1,0,4,5,0,0,1,10,0),m(0,3,5,-1,0,5,8,0,0,1,14,0),m(0,3,5,-1,0,6,10,0,0,1,18,0),m(0,4,5,-2,0,7,10,1,0,2,16,1),m(0,5,5,-3,0,8,10,1,0,3,14,2),m(0,5,6,-3,0,9,12,1,0,3,16,2),m(0,6,6,-3,0,10,14,1,0,4,18,3),m(0,6,7,-4,0,11,15,1,0,4,20,3),m(0,7,8,-4,0,12,17,2,0,5,22,4),m(0,7,8,-4,0,13,19,2,0,5,24,4),m(0,7,9,-4,0,14,21,2,0,5,26,4),m(0,8,9,-5,0,15,22,2,0,6,28,5),m(0,8,10,-5,0,16,24,2,0,6,30,5),m(0,8,11,-5,0,17,26,2,0,6,32,5),m(0,9,11,-5,0,18,28,2,0,7,34,6),m(0,9,12,-6,0,19,29,2,0,7,36,6),m(0,10,13,-6,0,20,31,3,0,8,38,7),m(0,10,13,-6,0,21,33,3,0,8,40,7),m(0,10,14,-6,0,22,35,3,0,8,42,7),m(0,11,14,-7,0,23,36,3,0,9,44,8),m(0,11,15,-7,0,24,38,3,0,9,46,8)],b=n(75361);var v={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const y=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function x(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mixins:t={},palette:n={},transitions:d={},typography:p={}}=e,h=(0,i.A)(e,y);if(e.vars)throw new Error((0,o.A)(18));const m=(0,u.Ay)(n),x=(0,c.A)(e);let w=(0,a.A)(x,{mixins:(A=x.breakpoints,E=t,(0,r.A)({toolbar:{minHeight:56,[A.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[A.up("sm")]:{minHeight:64}}},E)),palette:m,shadows:g.slice(),typography:f(m,p),transitions:(0,b.Ay)(d),zIndex:(0,r.A)({},v)});var A,E;w=(0,a.A)(w,h);for(var S=arguments.length,_=new Array(S>1?S-1:0),k=1;k<S;k++)_[k-1]=arguments[k];return w=_.reduce(((e,t)=>(0,a.A)(e,t)),w),w.unstable_sxConfig=(0,r.A)({},s.A,null==h?void 0:h.unstable_sxConfig),w.unstable_sx=function(e){return(0,l.A)({sx:e,theme:this})},w}var w=x},75361:function(e,t,n){"use strict";n.d(t,{Ay:function(){return u},p0:function(){return s}});var r=n(98587),i=n(58168);const o=["duration","easing","delay"],a={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},s={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function l(e){return`${Math.round(e)}ms`}function c(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function u(e){const t=(0,i.A)({},a,e.easing),n=(0,i.A)({},s,e.duration);return(0,i.A)({getAutoHeightDuration:c,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{duration:a=n.standard,easing:s=t.easeInOut,delay:c=0}=i;(0,r.A)(i,o);return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"===typeof a?a:l(a)} ${s} ${"string"===typeof c?c:l(c)}`)).join(",")}},e,{easing:t,duration:n})}},60195:function(e,t,n){"use strict";const r=(0,n(79525).A)();t.A=r},67550:function(e,t){"use strict";t.A="$$material"},19608:function(e,t,n){"use strict";var r=n(61960);t.A=e=>(0,r.A)(e)&&"classes"!==e},61960:function(e,t){"use strict";t.A=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}},59254:function(e,t,n){"use strict";var r=n(37295),i=n(60195),o=n(67550),a=n(19608);const s=(0,r.Ay)({themeId:o.A,defaultTheme:i.A,rootShouldForwardProp:a.A});t.Ay=s},14857:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});n(9950);var r=n(7148),i=n(60195),o=n(67550);function a(){const e=(0,r.A)(i.A);return e[o.A]||e}},70576:function(e,t,n){"use strict";n.d(t,{c:function(){return i},q:function(){return r}});const r=e=>e.scrollTop;function i(e,t){var n,r;const{timeout:i,easing:o,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"===typeof i?i:i[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"===typeof o?o[t.mode]:o,delay:a.transitionDelay}}},61676:function(e,t,n){"use strict";var r=n(35501);t.A=r.A},25920:function(e,t,n){"use strict";var r=n(85511);t.A=r.A},23235:function(e,t,n){"use strict";n.d(t,{A:function(){return y}});var r=n(58168),i=n(9950),o=n(98587),a=n(72004),s=n(88465),l=n(61676),c=n(18463),u=n(59254),d=n(1763),p=n(423);function h(e){return(0,p.Ay)("MuiSvgIcon",e)}(0,d.A)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var f=n(44414);const m=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],g=(0,u.Ay)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${(0,l.A)(n.color)}`],t[`fontSize${(0,l.A)(n.fontSize)}`]]}})((e=>{let{theme:t,ownerState:n}=e;var r,i,o,a,s,l,c,u,d,p,h,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:n.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=t.transitions)||null==(i=r.create)?void 0:i.call(r,"fill",{duration:null==(o=t.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(a=t.typography)||null==(s=a.pxToRem)?void 0:s.call(a,20))||"1.25rem",medium:(null==(l=t.typography)||null==(c=l.pxToRem)?void 0:c.call(l,24))||"1.5rem",large:(null==(u=t.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"}[n.fontSize],color:null!=(p=null==(h=(t.vars||t).palette)||null==(h=h[n.c
75olor])?void 0:h.main)?p:{action:null==(f=(t.vars||t).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(t.vars||t).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[n.color]}})),b=i.forwardRef((function(e,t){const n=(0,c.b)({props:e,name:"MuiSvgIcon"}),{children:u,className:d,color:p="inherit",component:b="svg",fontSize:v="medium",htmlColor:y,inheritViewBox:x=!1,titleAccess:w,viewBox:A="0 0 24 24"}=n,E=(0,o.A)(n,m),S=i.isValidElement(u)&&"svg"===u.type,_=(0,r.A)({},n,{color:p,component:b,fontSize:v,instanceFontSize:e.fontSize,inheritViewBox:x,viewBox:A,hasSvgAsChild:S}),k={};x||(k.viewBox=A);const T=(e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root","inherit"!==t&&`color${(0,l.A)(t)}`,`fontSize${(0,l.A)(n)}`]};return(0,s.A)(i,h,r)})(_);return(0,f.jsxs)(g,(0,r.A)({as:b,className:(0,a.A)(T.root,d),focusable:"false",color:y,"aria-hidden":!w||void 0,role:w?"img":void 0,ref:t},k,E,S&&u.props,{ownerState:_,children:[S?u.props.children:u,w?(0,f.jsx)("title",{children:w}):null]}))}));b.muiName="SvgIcon";var v=b;function y(e,t){function n(n,i){return(0,f.jsx)(v,(0,r.A)({"data-testid":`${t}Icon`,ref:i},n,{children:e}))}return n.muiName=v.muiName,i.memo(i.forwardRef(n))}},21209:function(e,t,n){"use strict";var r=n(21927);t.A=r.A},75865:function(e,t,n){"use strict";n.r(t),n.d(t,{capitalize:function(){return i.A},createChainedFunction:function(){return o.A},createSvgIcon:function(){return a.A},debounce:function(){return s.A},deprecatedPropType:function(){return l},isMuiElement:function(){return c.A},ownerDocument:function(){return u.A},ownerWindow:function(){return d.A},requirePropFactory:function(){return p},setRef:function(){return h},unstable_ClassNameGenerator:function(){return w},unstable_useEnhancedEffect:function(){return f.A},unstable_useId:function(){return m.A},unsupportedProp:function(){return g},useControlled:function(){return b.A},useEventCallback:function(){return v.A},useForkRef:function(){return y.A},useIsFocusVisible:function(){return x.A}});var r=n(44501),i=n(61676),o=n(25920),a=n(23235),s=n(21209);var l=function(e,t){return()=>null},c=n(3828),u=n(27402),d=n(70827);n(58168);var p=function(e,t){return()=>null},h=n(75587).A,f=n(79044),m=n(31014);var g=function(e,t,n,r,i){return null},b=n(48733),v=n(1976),y=n(31506),x=n(41573);const w={configure:e=>{r.A.configure(e)}}},3828:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(9950);var i=function(e,t){var n,i;return r.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(i=e.type)||null==(i=i._payload)||null==(i=i.value)?void 0:i.muiName)}},27402:function(e,t,n){"use strict";var r=n(26907);t.A=r.A},70827:function(e,t,n){"use strict";var r=n(28635);t.A=r.A},48733:function(e,t,n){"use strict";var r=n(63931);t.A=r.A},79044:function(e,t,n){"use strict";var r=n(61399);t.A=r.A},1976:function(e,t,n){"use strict";var r=n(92529);t.A=r.A},31506:function(e,t,n){"use strict";var r=n(5393);t.A=r.A},31014:function(e,t,n){"use strict";var r=n(93539);t.A=r.A},41573:function(e,t,n){"use strict";var r=n(91375);t.A=r.A},33158:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});n(9950);var r=n(88283),i=n(44414);function o(e){const{styles:t,defaultTheme:n={}}=e,o="function"===typeof t?e=>{return t(void 0===(r=e)||null===r||0===Object.keys(r).length?n:e);var r}:t;return(0,i.jsx)(r.mL,{styles:o})}},50600:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});n(9950);var r=n(57370),i=n(58603),o=n(44414);let a;function s(e){const{injectFirst:t,children:n}=e;return t&&a?(0,o.jsx)(r.C,{value:a,children:n}):n}"object"===typeof document&&(a=(0,i.A)({key:"css",prepend:!0}))},2199:function(e,t,n){"use strict";n.r(t),n.d(t,{GlobalStyles:function(){return y.A},StyledEngineProvider:function(){return v.A},ThemeContext:function(){return i.T},css:function(){return b.AH},default:function(){return x},internal_processStyles:function(){return w},keyframes:function(){return b.i7}});var r=n(58168),i=n(57370),o=n(89015),a=n(96477),s=n(71783),l=n(9950),c=n(57923),u=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInl
75ine|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,d=(0,c.A)((function(e){return u.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),p=function(e){return"theme"!==e},h=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?d:p},f=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,s.SF)(t,n,r),(0,a.s)((function(){return(0,s.sk)(t,n,r)})),null},g=function e(t,n){var a,c,u=t.__emotion_real===t,d=u&&t.__emotion_base||t;void 0!==n&&(a=n.label,c=n.target);var p=f(t,n,u),g=p||h(d),b=!g("as");return function(){var v=arguments,y=u&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==a&&y.push("label:"+a+";"),null==v[0]||void 0===v[0].raw)y.push.apply(y,v);else{var x=v[0];y.push(x[0]);for(var w=v.length,A=1;A<w;A++)y.push(v[A],x[A])}var E=(0,i.w)((function(e,t,n){var r=b&&e.as||d,a="",u=[],f=e;if(null==e.theme){for(var v in f={},e)f[v]=e[v];f.theme=l.useContext(i.T)}"string"===typeof e.className?a=(0,s.Rk)(t.registered,u,e.className):null!=e.className&&(a=e.className+" ");var x=(0,o.J)(y.concat(u),t.registered,f);a+=t.key+"-"+x.name,void 0!==c&&(a+=" "+c);var w=b&&void 0===p?h(r):g,A={};for(var E in e)b&&"as"===E||w(E)&&(A[E]=e[E]);return A.className=a,n&&(A.ref=n),l.createElement(l.Fragment,null,l.createElement(m,{cache:t,serialized:x,isStringTag:"string"===typeof r}),l.createElement(r,A))}));return E.displayName=void 0!==a?a:"Styled("+("string"===typeof d?d:d.displayName||d.name||"Component")+")",E.defaultProps=t.defaultProps,E.__emotion_real=E,E.__emotion_base=d,E.__emotion_styles=y,E.__emotion_forwardProp=p,Object.defineProperty(E,"toString",{value:function(){return"."+c}}),E.withComponent=function(t,i){return e(t,(0,r.A)({},n,i,{shouldForwardProp:f(E,i,!0)})).apply(void 0,y)},E}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){g[e]=g(e)}));var b=n(88283),v=n(50600),y=n(33158);function x(e,t){return g(e,t)}const w=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},99269:function(e,t,n){"use strict";var r=n(24994);t.X4=h,t.e$=f,t.tL=g,t.eM=function(e,t){const n=p(e),r=p(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.a=m;var i=r(n(89234)),o=r(n(19344));function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,o.default)(e,t,n)}function s(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function l(e){if(e.type)return e;if("#"===e.charAt(0))return l(s(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,i.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,i.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const c=e=>{const t=l(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};function u(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n}
75 ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function d(e){e=l(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-o*Math.max(Math.min(t-3,9-t,1),-1)};let s="rgb";const c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",c.push(t[3])),u({type:s,values:c})}function p(e){let t="hsl"===(e=l(e)).type||"hsla"===e.type?l(d(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function h(e,t){return e=l(e),t=a(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,u(e)}function f(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return u(e)}function m(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return u(e)}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return p(e)>.5?f(e,t):m(e,t)}},37295:function(e,t,n){"use strict";var r=n(24994);t.Ay=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n=m,rootShouldForwardProp:r=f,slotShouldForwardProp:l=f}=e,u=e=>(0,c.default)((0,i.default)({},e,{theme:b((0,i.default)({},e,{defaultTheme:n,themeId:t}))}));return u.__mui_systemSx=!0,function(e){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:d,slot:h,skipVariantsResolver:m,skipSx:x,overridesResolver:w=v(g(h))}=c,A=(0,o.default)(c,p),E=void 0!==m?m:h&&"Root"!==h&&"root"!==h||!1,S=x||!1;let _=f;"Root"===h||"root"===h?_=r:h?_=l:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(_=void 0);const k=(0,a.default)(e,(0,i.default)({shouldForwardProp:_,label:undefined},A)),T=e=>"function"===typeof e&&e.__emotion_real!==e||(0,s.isPlainObject)(e)?r=>y(e,(0,i.default)({},r,{theme:b({theme:r.theme,defaultTheme:n,themeId:t})})):e,C=function(r){let o=T(r);for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];const c=s?s.map(T):[];d&&w&&c.push((e=>{const r=b((0,i.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[d]||!r.components[d].styleOverrides)return null;const o=r.components[d].styleOverrides,a={};return Object.entries(o).forEach((t=>{let[n,o]=t;a[n]=y(o,(0,i.default)({},e,{theme:r}))})),w(e,a)})),d&&!E&&c.push((e=>{var r;const o=b((0,i.default)({},e,{defaultTheme:n,themeId:t}));return y({variants:null==o||null==(r=o.components)||null==(r=r[d])?void 0:r.variants},(0,i.default)({},e,{theme:o}))})),S||c.push(u);const p=c.length-s.length;if(Array.isArray(r)&&p>0){const e=new Array(p).fill("");o=[...r,...e],o.raw=[...r.raw,...e]}const h=k(o,...c);return e.muiName&&(h.muiName=e.muiName),h};return k.withConfig&&(C.withConfig=k.withConfig),C}};var i=r(n(94634)),o=r(n(54893)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(2199)),s=n(7785),l=(r(n(7923)),r(n(8399)),r(n(49904))),c=r(n(28807));const u=["ownerState"],d=["variants"],p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}function f(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const m=(0,l.default)(),g=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function b(e){let{defaultTheme:t,theme:n,themeId:r}=e;return i=n,0===Object.keys(i).length?t:n[r]||n;var i}function v(e){return e?(t,n)=>n[e]:null}function y(e,t){let{ownerState:n}=t,r=(0,o.default)(t,u);const a="function"===typeof e?e((0,i.default)({ownerState:n},r)):e;if(Array.isArray(a))return a.flatMap((e=>y(e,(0,i.default)({ownerState:n},r))));
75if(a&&"object"===typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let t=(0,o.default)(a,d);return e.forEach((e=>{let o=!0;"function"===typeof e.props?o=e.props((0,i.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"===typeof e.style?e.style((0,i.default)({ownerState:n},r,n)):e.style))})),t}return a}},6171:function(e,t,n){"use strict";n.d(t,{b:function(){return s}});var r=n(9950),i=n(45537),o=n(44414);const a=r.createContext(void 0);function s(e){let{props:t,name:n}=e;return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?(0,i.A)(o.defaultProps,r):o.styleOverrides||o.variants?r:(0,i.A)(o,r)}({props:t,name:n,theme:{components:r.useContext(a)}})}t.A=function(e){let{value:t,children:n}=e;return(0,o.jsx)(a.Provider,{value:t,children:n})}},44730:function(e,t,n){"use strict";n.d(t,{I:function(){return c}});var r=n(58168),i=n(98587),o=n(9950),a=n(44414);const s=["value"],l=o.createContext();const c=()=>{const e=o.useContext(l);return null!=e&&e};t.A=function(e){let{value:t}=e,n=(0,i.A)(e,s);return(0,a.jsx)(l.Provider,(0,r.A)({value:null==t||t},n))}},22876:function(e,t,n){"use strict";n.d(t,{A:function(){return S}});var r=n(98587),i=n(58168),o=n(9950),a=n(72004),s=n(87483),l=n(423),c=n(88465),u=n(70146),d=n(51522),p=n(7148);var h=n(80237),f=n(12860),m=n(28286),g=n(47937),b=n(44414);const v=["component","direction","spacing","divider","children","className","useFlexGap"],y=(0,f.A)(),x=(0,u.A)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function w(e){return function(e){let{props:t,name:n,defaultTheme:r,themeId:i}=e,o=(0,p.A)(r);return i&&(o=o[i]||o),(0,d.A)({theme:o,name:n,props:t})}({props:e,name:"MuiStack",defaultTheme:y})}function A(e,t){const n=o.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,i)=>(e.push(r),i<n.length-1&&e.push(o.cloneElement(t,{key:`separator-${i}`})),e)),[])}const E=e=>{let{ownerState:t,theme:n}=e,r=(0,i.A)({display:"flex",flexDirection:"column"},(0,m.NI)({theme:n},(0,m.kW)({values:t.direction,breakpoints:n.breakpoints.values}),(e=>({flexDirection:e}))));if(t.spacing){const e=(0,g.LX)(n),i=Object.keys(n.breakpoints.values).reduce(((e,n)=>(("object"===typeof t.spacing&&null!=t.spacing[n]||"object"===typeof t.direction&&null!=t.direction[n])&&(e[n]=!0),e)),{}),o=(0,m.kW)({values:t.direction,base:i}),a=(0,m.kW)({values:t.spacing,base:i});"object"===typeof o&&Object.keys(o).forEach(((e,t,n)=>{if(!o[e]){const r=t>0?o[n[t-1]]:"column";o[e]=r}}));const l=(n,r)=>{return t.useFlexGap?{gap:(0,g._W)(e,n)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${i=r?o[r]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[i]}`]:(0,g._W)(e,n)}};var i};r=(0,s.A)(r,(0,m.NI)({theme:n},a,l))}return r=(0,m.iZ)(n.breakpoints,r),r};function S(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createStyledComponent:t=x,useThemeProps:n=w,componentName:s="MuiStack"}=e,u=t(E),d=o.forwardRef((function(e,t){const o=n(e),d=(0,h.A)(o),{component:p="div",direction:f="column",spacing:m=0,divider:g,children:y,className:x,useFlexGap:w=!1}=d,E=(0,r.A)(d,v),S={direction:f,spacing:m,useFlexGap:w},_=(0,c.A)({root:["root"]},(e=>(0,l.Ay)(s,e)),{});return(0,b.jsx)(u,(0,i.A)({as:p,ownerState:S,ref:t,className:(0,a.A)(_.root,x)},E,{children:g?A(y,g):y}))}));return d}},28286:function(e,t,n){"use strict";n.d(t,{EU:function(){return s},NI:function(){return a},iZ:function(){return c},kW:function(){return u},vf:function(){return l},zu:function(){return i}});var r=n(87483);const i={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${i[e]}px)`};function a(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||o;return t.reduce(((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r)),{})}if("object"===typeof t){const e=r.breakpoints||o;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||i).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function l(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function c(e){const t=s(e);for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];const a=[t,...i].reduce(((e,t)=>(0,r.A)(e,t)),{});return l(Object.keys(t),a)}function u(e){let{values:t,breakpoints:n,base:r}=e;const i=r||function(e,t){if("object"!==typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(t,n),o=Object.keys(i);if(0===o.length)return t;let a;return o.reduce(((e,n,r)=>(Array.isArray(t)?(e[n]=null!=t[r]?t[r]:t[a],a=r):"object"===typeof t?(e[n]=null!=t[n]?t[n]:t[a],a=n):e[n]=t,e)),{})}},12639:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var r=n(58168),i=n(98587),o=n(9950),a=n(72004),s=n(2199),l=n(70505),c=n(80237),u=n(7148),d=n(44414);const p=["className","component"];function h(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n,defaultClassName:h="MuiBox-root",generateClassName:f}=e,m=(0,s.default)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(l.A);return o.forwardRef((function(e,o){const s=(0,u.A)(n),l=(0,c.A)(e),{className:g,component:b="div"}=l,v=(0,i.A)(l,p);return(0,d.jsx)(m,(0,r.A)({as:b,ref:o,className:(0,a.A)(g,f?f(h):h),theme:t&&s[t]||s},v))}))}},30086:function(e,t,n){"use strict";function r(e,t){const n=this;if(n.vars&&"function"===typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}n.d(t,{A:function(){return r}})},83628:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(98587),i=n(58168);const o=["values","unit","step"],a=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]}
75)))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,i.A)({},e,{[t.key]:t.val})),{})};function s(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:s=5}=e,l=(0,r.A)(e,o),c=a(t),u=Object.keys(c);function d(e){return`@media (min-width:${"number"===typeof t[e]?t[e]:e}${n})`}function p(e){return`@media (max-width:${("number"===typeof t[e]?t[e]:e)-s/100}${n})`}function h(e,r){const i=u.indexOf(r);return`@media (min-width:${"number"===typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"===typeof t[u[i]]?t[u[i]]:r)-s/100}${n})`}return(0,i.A)({keys:u,values:c,up:d,down:p,between:h,only:function(e){return u.indexOf(e)+1<u.length?h(e,u[u.indexOf(e)+1]):d(e)},not:function(e){const t=u.indexOf(e);return 0===t?d(u[1]):t===u.length-1?p(u[t]):h(e,u[u.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},l)}},12860:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var r=n(58168),i=n(98587),o=n(87483),a=n(83628);var s={borderRadius:4},l=n(47937);var c=n(70505),u=n(98076),d=n(30086);const p=["breakpoints","palette","spacing","shape"];var h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{breakpoints:t={},palette:n={},spacing:h,shape:f={}}=e,m=(0,i.A)(e,p),g=(0,a.A)(t),b=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;const t=(0,l.LX)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0===n.length?[1]:n).map((e=>{const n=t(e);return"number"===typeof n?`${n}px`:n})).join(" ")};return n.mui=!0,n}(h);let v=(0,o.A)({breakpoints:g,direction:"ltr",components:{},palette:(0,r.A)({mode:"light"},n),spacing:b,shape:(0,r.A)({},s,f)},m);v.applyStyles=d.A;for(var y=arguments.length,x=new Array(y>1?y-1:0),w=1;w<y;w++)x[w-1]=arguments[w];return v=x.reduce(((e,t)=>(0,o.A)(e,t)),v),v.unstable_sxConfig=(0,r.A)({},u.A,null==m?void 0:m.unstable_sxConfig),v.unstable_sx=function(e){return(0,c.A)({sx:e,theme:this})},v}},49904:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r.A},private_createBreakpoints:function(){return i.A},unstable_applyStyles:function(){return o.A}});var r=n(12860),i=n(83628),o=n(30086)},46206:function(e,t,n){"use strict";var r=n(87483);t.A=function(e,t){return t?(0,r.A)(e,t,{clone:!1}):e}},47937:function(e,t,n){"use strict";n.d(t,{LX:function(){return f},MA:function(){return h},_W:function(){return m},Lc:function(){return v},Ms:function(){return y}});var r=n(28286),i=n(12703),o=n(46206);const a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,n]=e.split(""),r=a[t],i=s[n]||"";return Array.isArray(i)?i.map((e=>r+e)):[r+i]})),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p=[...u,...d];function h(e,t,n,r){var o;const a=null!=(o=(0,i.Yn)(e,t,!1))?o:n;return"number"===typeof a?e=>"string"===typeof e?e:a*e:Array.isArray(a)?e=>"string"===typeof e?e:a[e]:"function"===typeof a?a:()=>{}}function f(e){return h(e,"spacing",8)}function m(e,t){if("string"===typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:`-${n}`}function g(e,t,n,i){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=m(t,n),e)),{})}(c(n),i),a=e[n];return(0,r.NI)(e,a,o)}function b(e,t){const n=f(e.theme);return Object.keys(e).map((r=>g(e,t,r,n))).reduce(o.A,{})}function v(e){return b(e,u)}function y(e){return b(e,d)}function x(e){return b(e,p)}v.propTypes={},v.filterProps=u,y.propTypes={},y.filterProps=d,x.propTypes={},x.filterProps=p},12703:function(e,t,n){"use strict";n.d(t,{BO:function(){return a},Yn:function(){return o}});var r=n(35501),i=n(28286);function o(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function a(e,t,n){let r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||i:o(e,n)||i,t&&(r=t(r,i,e)),r}t.Ay=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:s,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],u=o(e.theme,s)||{};return(0,i.NI)(e,c,(e=>{let i=a(u,l,e);return e===i&&"string"===typeof e&&(i=a(u,l,`${t}${"default"===e?"":(0,r.A)(e)}`,e)),!1===n?i:{[n]:i}}))};return c.propTypes={},c.filterProps=[t],c}},98076:function(e,t,n){"use strict";n.d(t,{A:function(){return j}});var r=n(47937),i=n(12703),o=n(46206);var a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),i=e=>Object.keys(e).reduce(((t,n)=>r[n]?(0,o.A)(t,r[n](e)):t),{});return i.propTypes={},i.filterProps=t.reduce(((e,t)=>e.concat(t.filterProps)),[]),i},s=n(28286);function l(e){return"number"!==typeof e?e:`${e}px solid`}function c(e,t){return(0,i.Ay)({prop:e,themeKey:"borders",transform:t})}const u=c("border",l),d=c("borderTop",l),p=c("borderRight",l),h=c("borderBottom",l),f=c("borderLeft",l),m=c("borderColor"),g=c("borderTopColor"),b=c("borderRightColor"),v=c("borderBottomColor"),y=c("borderLeftColor"),x=c("outline",l),w=c("outlineColor"),A=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,r.MA)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,r._W)(t,e)});return(0,s.NI)(e,e.borderRadius,n)}return null};A.propTypes={},A.filterProps=["borderRadius"];a(u,d,p,h,f,m,g,b,v,y,A,x,w);const E=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,r.MA)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,r._W)(t,e)});return(0,s.NI)(e,e.gap,n)}return null};E.propTypes={},E.filterProps=["gap"];const S=e=>
vendor: 7,375 bytes, line 75
75{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,r.MA)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,r._W)(t,e)});return(0,s.NI)(e,e.columnGap,n)}return null};S.propTypes={},S.filterProps=["columnGap"];const _=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,r.MA)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,r._W)(t,e)});return(0,s.NI)(e,e.rowGap,n)}return null};_.propTypes={},_.filterProps=["rowGap"];a(E,S,_,(0,i.Ay)({prop:"gridColumn"}),(0,i.Ay)({prop:"gridRow"}),(0,i.Ay)({prop:"gridAutoFlow"}),(0,i.Ay)({prop:"gridAutoColumns"}),(0,i.Ay)({prop:"gridAutoRows"}),(0,i.Ay)({prop:"gridTemplateColumns"}),(0,i.Ay)({prop:"gridTemplateRows"}),(0,i.Ay)({prop:"gridTemplateAreas"}),(0,i.Ay)({prop:"gridArea"}));function k(e,t){return"grey"===t?t:e}a((0,i.Ay)({prop:"color",themeKey:"palette",transform:k}),(0,i.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:k}),(0,i.Ay)({prop:"backgroundColor",themeKey:"palette",transform:k}));function T(e){return e<=1&&0!==e?100*e+"%":e}const C=(0,i.Ay)({prop:"width",transform:T}),O=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const i=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||s.zu[t];return i?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:T(t)}};return(0,s.NI)(e,e.maxWidth,t)}return null};O.filterProps=["maxWidth"];const N=(0,i.Ay)({prop:"minWidth",transform:T}),I=(0,i.Ay)({prop:"height",transform:T}),R=(0,i.Ay)({prop:"maxHeight",transform:T}),P=(0,i.Ay)({prop:"minHeight",transform:T});(0,i.Ay)({prop:"size",cssProperty:"width",transform:T}),(0,i.Ay)({prop:"size",cssProperty:"height",transform:T}),a(C,O,N,I,R,P,(0,i.Ay)({prop:"boxSizing"}));var j={border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:A},color:{themeKey:"palette",transform:k},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:k},backgroundColor:{themeKey:"palette",transform:k},p:{style:r.Ms},pt:{style:r.Ms},pr:{style:r.Ms},pb:{style:r.Ms},pl:{style:r.Ms},px:{style:r.Ms},py:{style:r.Ms},padding:{style:r.Ms},paddingTop:{style:r.Ms},paddingRight:{style:r.Ms},paddingBottom:{style:r.Ms},paddingLeft:{style:r.Ms},paddingX:{style:r.Ms},paddingY:{style:r.Ms},paddingInline:{style:r.Ms},paddingInlineStart:{style:r.Ms},paddingInlineEnd:{style:r.Ms},paddingBlock:{style:r.Ms},paddingBlockStart:{style:r.Ms},paddingBlockEnd:{style:r.Ms},m:{style:r.Lc},mt:{style:r.Lc},mr:{style:r.Lc},mb:{style:r.Lc},ml:{style:r.Lc},mx:{style:r.Lc},my:{style:r.Lc},margin:{style:r.Lc},marginTop:{style:r.Lc},marginRight:{style:r.Lc},marginBottom:{style:r.Lc},marginLeft:{style:r.Lc},marginX:{style:r.Lc},marginY:{style:r.Lc},marginInline:{style:r.Lc},marginInlineStart:{style:r.Lc},marginInlineEnd:{style:r.Lc},marginBlock:{style:r.Lc},marginBlockStart:{style:r.Lc},marginBlockEnd:{style:r.Lc},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:E},rowGap:{style:_},columnGap:{style:S},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:T},maxWidth:{style:O},minWidth:{transform:T},height:{transform:T},maxHeight:{transform:T},minHeight:{transform:T},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}}},80237:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(58168),i=n(98587),o=n(87483),a=n(98076);const s=["sx"],l=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:a.A;return Object.keys(e).forEach((t=>{i[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function c(e){const{sx:t}=e,n=(0,i.A)(e,s),{systemProps:a,otherProps:c}=l(n);let u;return u=Array.isArray(t)?[a,...t]:"function"===typeof t?function(){const e=t(...arguments);return(0,o.Q)(e)?(0,r.A)({},a,e):a}:(0,r.A)({},a,t),(0,r.A)({},c,{sx:u})}},28807:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r.A},extendSxProp:function(){return i.A},unstable_createStyleFunctionSx:function(){return r.k},unstable_defaultSxConfig:function(){return o.A}});var r=n(70505),i=n(80237),o=n(98076)},70505:function(e,t,n){"use strict";n.d(t,{k:function(){return l}});var r=n(35501),i=n(46206),o=n(12703),a=n(28286),s=n(98076);function l(){function e(e,t,n,i){const s={[e]:t,theme:n},l=i[e];if(!l)return{[e]:t};const{cssProperty:c=e,themeKey:u,transform:d,style:p}=l;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};const h=(0,o.Yn)(n,u)||{};if(p)return p(s);return(0,a.NI)(s,t,(t=>{let n=(0,o.BO)(h,d,t);return t===n&&"string"===typeof t&&(n=(0,o.BO)(h,d,`${e}${"default"===t?"":(0,r.A)(t)}`,t)),!1===c?n:{[c]:n}}))}return function t(n){var r;const{sx:o,theme:l={}}=n||{};if(!o)return null;const c=null!=(r=l.unstable_sxConfig)?r:s.A;function u(n){let r=n;if("function"===typeof n)r=n(l);else if("object"!==typeof n)return n;if(!r)return null;const o=(0,a.EU)(l.breakpoints),s=Object.keys(o);let u=o;return Object.keys(r).forEach((n=>{const o=(s=r[n],d=l,"function"===typeof s?s(d):s);var s,d;if(null!==o&&void 0!==o)if("object"===typeof o)if(c[n])u=(0,i.A)(u,e(n,o,l,c));else{const e=(0,a.NI)({theme:l},o,(e=>({[n]:e})));!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(((e,t)=>e.concat(Object.keys(t))),[]),i=new Set(r);return t.every((e=>i.size===Object.keys(e).length))}(e,o)?u=(0,i.A)(u,e):u[n]=t({sx:o,theme:l})}else u=(0,i.A)(u,e(n,o,l,c))})),(0,a.vf)(s,u)}return Array.isArray(o)?o.map(u):u(o)}}const c=l();c.filterProps=["sx"],t.A=c},70146:function(e,t,n){"use strict";n.d(t,{A:function(){return y}});var r=n(58168),i=n(98587),o=n(2199),a=n(87483),s=n(12860),l=n(70505);const c=["ownerState"],u=["variants"],d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const h=(0,s.A)(),f=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function m(e){let{defaultTheme:t,theme:n,themeId:r}=e;return i=n,0===Object.keys(i).length?t:n[r]||n;var i}function g(e){return e?(t,n)=>n[e]:null}function b(e,t){let{ownerState:n}=t,o=(0,i.A)(t,c);const a="function"===typeof e?e((0,r.A)({ownerState:n},o)):e;if(Array.isArray(a))return a.flatMap((e=>b(e,(0,r.A)({ownerState:n},o))));
75if(a&&"object"===typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let t=(0,i.A)(a,u);return e.forEach((e=>{let i=!0;"function"===typeof e.props?i=e.props((0,r.A)({ownerState:n},o,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)})),i&&(Array.isArray(t)||(t=[t]),t.push("function"===typeof e.style?e.style((0,r.A)({ownerState:n},o,n)):e.style))})),t}return a}const v=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n=h,rootShouldForwardProp:s=p,slotShouldForwardProp:c=p}=e,u=e=>(0,l.A)((0,r.A)({},e,{theme:m((0,r.A)({},e,{defaultTheme:n,themeId:t}))}));return u.__mui_systemSx=!0,function(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,o.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:h,slot:v,skipVariantsResolver:y,skipSx:x,overridesResolver:w=g(f(v))}=l,A=(0,i.A)(l,d),E=void 0!==y?y:v&&"Root"!==v&&"root"!==v||!1,S=x||!1;let _=p;"Root"===v||"root"===v?_=s:v?_=c:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(_=void 0);const k=(0,o.default)(e,(0,r.A)({shouldForwardProp:_,label:undefined},A)),T=e=>"function"===typeof e&&e.__emotion_real!==e||(0,a.Q)(e)?i=>b(e,(0,r.A)({},i,{theme:m({theme:i.theme,defaultTheme:n,themeId:t})})):e,C=function(i){let o=T(i);for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];const c=s?s.map(T):[];h&&w&&c.push((e=>{const i=m((0,r.A)({},e,{defaultTheme:n,themeId:t}));if(!i.components||!i.components[h]||!i.components[h].styleOverrides)return null;const o=i.components[h].styleOverrides,a={};return Object.entries(o).forEach((t=>{let[n,o]=t;a[n]=b(o,(0,r.A)({},e,{theme:i}))})),w(e,a)})),h&&!E&&c.push((e=>{var i;const o=m((0,r.A)({},e,{defaultTheme:n,themeId:t}));return b({variants:null==o||null==(i=o.components)||null==(i=i[h])?void 0:i.variants},(0,r.A)({},e,{theme:o}))})),S||c.push(u);const d=c.length-s.length;if(Array.isArray(i)&&d>0){const e=new Array(d).fill("");o=[...i,...e],o.raw=[...i.raw,...e]}const p=k(o,...c);return e.muiName&&(p.muiName=e.muiName),p};return k.withConfig&&(C.withConfig=k.withConfig),C}}();var y=v},7148:function(e,t,n){"use strict";var r=n(12860),i=n(90357);const o=(0,r.A)();t.A=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return(0,i.A)(e)}},51522:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(45537);function i(e){const{theme:t,name:n,props:i}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.A)(t.components[n].defaultProps,i):i}},90357:function(e,t,n){"use strict";var r=n(9950),i=n(57370);t.A=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=r.useContext(i.T);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}},25329:function(e,t,n){"use strict";t.A=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(9950)),i=n(2199);function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}t.A=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=r.useContext(i.ThemeContext);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}},44501:function(e,t){"use strict";const n=e=>e,r=(()=>{let e=n;return{configure(t){e=t},generate(t){return e(t)},reset(){e=n}}})();t.A=r},94589:function(e,t,n){"use strict";var r=n(58168),i=n(31467);t.A=function(e,t,n){return void 0===e||(0,i.A)(e)?t:(0,r.A)({},t,{ownerState:(0,r.A)({},t.ownerState,n)})}},35501:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(78099);function i(e){if("string"!==typeof e)throw new Error((0,r.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},7923:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r.A}});var r=n(35501)},26747:function(e,t){"use strict";t.A=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MIN_SAFE_INTEGER,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_SAFE_INTEGER;return Math.max(t,Math.min(e,n))}},19344:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r.A}});var r=n(26747)},88465:function(e,t,n){"use strict";function r(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r={};return Object.keys(e).forEach((i=>{r[i]=e[i].reduce(((e,r)=>{if(r){const i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}n.d(t,{A:function(){return r}})},85511:function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(((e,t)=>null==t?e:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}),(()=>{}))}n.d(t,{A:function(){return r}})},21927:function(e,t,n){"use strict";function r(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];clearTimeout(t),t=setTimeout((()=>{e.apply(this,i)}),n)}return r.clear=()=>{clearTimeout(t)},r}n.d(t,{A:function(){return r}})},87483:function(e,t,n){"use strict";n.d(t,{A:function(){return s},Q:function(){return o}});var r=n(58168),i=n(9950);function o(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function a(e){if(i.isValidElement(e)||!o(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=a(e[n])})),t}function s(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0};const l=n.clone?(0,r.A)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((r=>{i.isValidElement(t[r])?l[r]=t[r]:o(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&o(e[r])?l[r]=s(e[r],t[r],n):n.clone?l[r]=o(t[r])?a(t[r]):t[r]:l[r]=t[r]})),l}},7785:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r.A},isPlainObject:function(){return r.Q}});var r=n(87483)},24701:function(e,t){"use strict";t.A=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"===typeof e[n]&&!t.includes(n))).forEac
75h((t=>{n[t]=e[t]})),n}},78099:function(e,t,n){"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{A:function(){return r}})},89234:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r.A}});var r=n(78099)},423:function(e,t,n){"use strict";n.d(t,{Ay:function(){return o}});var r=n(44501);const i={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const o=i[t];return o?`${n}-${o}`:`${r.A.generate(e)}-${t}`}},1763:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(423);function i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const i={};return t.forEach((t=>{i[t]=(0,r.Ay)(e,t,n)})),i}},8399:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l},getFunctionName:function(){return o}});var r=n(86879);const i=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function o(e){const t=`${e}`.match(i);return t&&t[1]||""}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||o(e)||t}function s(e,t,n){const r=a(t);return e.displayName||(""!==r?`${n}(${r})`:n)}function l(e){if(null!=e){if("string"===typeof e)return e;if("function"===typeof e)return a(e,"Component");if("object"===typeof e)switch(e.$$typeof){case r.vM:return s(e,e.render,"ForwardRef");case r.lD:return s(e,e.type,"memo");default:return}}}},52253:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(9950);function i(e){var t;return parseInt(r.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}},69259:function(e,t,n){"use strict";function r(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}n.d(t,{A:function(){return r}})},31467:function(e,t){"use strict";t.A=function(e){return"string"===typeof e}},67313:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(58168),i=n(72004),o=n(24701);var a=function(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"===typeof e[t]))).forEach((n=>{t[n]=e[n]})),t};var s=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:s,externalForwardedProps:l,className:c}=e;if(!t){const e=(0,i.A)(null==n?void 0:n.className,c,null==l?void 0:l.className,null==s?void 0:s.className),t=(0,r.A)({},null==n?void 0:n.style,null==l?void 0:l.style,null==s?void 0:s.style),o=(0,r.A)({},n,l,s);return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}const u=(0,o.A)((0,r.A)({},l,s)),d=a(s),p=a(l),h=t(u),f=(0,i.A)(null==h?void 0:h.className,null==n?void 0:n.className,c,null==l?void 0:l.className,null==s?void 0:s.className),m=(0,r.A)({},null==h?void 0:h.style,null==n?void 0:n.style,null==l?void 0:l.style,null==s?void 0:s.style),g=(0,r.A)({},h,n,p,d);return f.length>0&&(g.className=f),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:h.ref}}},26907:function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{A:function(){return r}})},28635:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(26907);function i(e){return(0,r.A)(e).defaultView||window}},91011:function(e,t){"use strict";t.A=function(e,t,n){return"function"===typeof e?e(t,n):e}},45537:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(58168);function i(e,t){const n=(0,r.A)({},t);return Object.keys(e).forEach((o=>{if(o.toString().match(/^(components|slots)$/))n[o]=(0,r.A)({},e[o],n[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){const a=e[o]||{},s=t[o];n[o]={},s&&Object.keys(s)?a&&Object.keys(a)?(n[o]=(0,r.A)({},s),Object.keys(a).forEach((e=>{n[o][e]=i(a[e],s[e])}))):n[o]=s:n[o]=a}else void 0===n[o]&&(n[o]=e[o])})),n}},75587:function(e,t,n){"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{A:function(){return r}})},63931:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(9950);
75function i(e){let{controlled:t,default:n,name:i,state:o="value"}=e;const{current:a}=r.useRef(void 0!==t),[s,l]=r.useState(n);return[a?t:s,r.useCallback((e=>{a||l(e)}),[])]}},61399:function(e,t,n){"use strict";var r=n(9950);const i="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;t.A=i},92529:function(e,t,n){"use strict";var r=n(9950),i=n(61399);t.A=function(e){const t=r.useRef(e);return(0,i.A)((()=>{t.current=e})),r.useRef((function(){return(0,t.current)(...arguments)})).current}},5393:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(9950),i=n(75587);function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{(0,i.A)(t,e)}))}),t)}},93539:function(e,t,n){"use strict";var r;n.d(t,{A:function(){return s}});var i=n(9950);let o=0;const a=(r||(r=n.t(i,2)))["useId".toString()];function s(e){if(void 0!==a){const t=a();return null!=e?e:t}return function(e){const[t,n]=i.useState(e),r=e||t;return i.useEffect((()=>{null==t&&(o+=1,n(`mui-${o}`))}),[t]),r}(e)}},91375:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var r=n(9950),i=n(71824);let o=!0,a=!1;const s=new i.E,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(e){e.metaKey||e.altKey||e.ctrlKey||(o=!0)}function u(){o=!1}function d(){"hidden"===this.visibilityState&&a&&(o=!0)}function p(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return o||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!l[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function h(){const e=r.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",u,!0),t.addEventListener("pointerdown",u,!0),t.addEventListener("touchstart",u,!0),t.addEventListener("visibilitychange",d,!0))}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!p(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,s.start(100,(()=>{a=!1})),t.current=!1,!0)},ref:e}}},59063:function(e,t,n){"use strict";var r=n(58168),i=n(98587),o=n(5393),a=n(94589),s=n(67313),l=n(91011);const c=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];t.A=function(e){var t;const{elementType:n,externalSlotProps:u,ownerState:d,skipResolvingSlotProps:p=!1}=e,h=(0,i.A)(e,c),f=p?{}:(0,l.A)(u,d),{props:m,internalRef:g}=(0,s.A)((0,r.A)({},h,{externalSlotProps:f})),b=(0,o.A)(g,null==f?void 0:f.ref,null==(t=e.additionalProps)?void 0:t.ref);return(0,a.A)(n,(0,r.A)({},m,{ref:b}),d)}},71824:function(e,t,n){"use strict";n.d(t,{E:function(){return a},A:function(){return s}});var r=n(9950);const i={};const o=[];class a{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new a}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function s(){const e=function(e,t){const n=r.useRef(i);return n.current===i&&(n.current=e(t)),n}(a.create).current;var t;return t=e.disposeEffect,r.useEffect(t,o),e}},67243:function(e,t,n){"use strict";var r=n(59660),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,a,s,l,c,u=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[t.format]||i.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),a()}return u}},44441:function(e,t,n){var r;!function(){"use strict";
vendor: 14,612 bytes, line 75
75var i,o=1e9,a={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},s=!0,l="[DecimalError] ",c=l+"Invalid argument: ",u=l+"Exponent out of range: ",d=Math.floor,p=Math.pow,h=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,f=1e7,m=9007199254740991,g=d(1286742750677284.5),b={};function v(e,t){var n,r,i,o,a,l,c,u,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),s?C(t,p):t;if(c=e.d,u=t.d,a=e.e,i=t.e,c=c.slice(),o=a-i){for(o<0?(r=c,o=-o,l=u.length):(r=u,i=a,l=c.length),o>(l=(a=Math.ceil(p/7))>l?a+1:l+1)&&(o=l,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for((l=c.length)-(o=u.length)<0&&(o=l,r=u,u=c,c=r),n=0;o;)n=(c[--o]=c[o]+u[o]+n)/f|0,c[o]%=f;for(n&&(c.unshift(n),++i),l=c.length;0==c[--l];)c.pop();return t.d=c,t.e=i,s?C(t,p):t}function y(e,t,n){if(e!==~~e||e<t||e>n)throw Error(c+e)}function x(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)(n=7-(r=e[t]+"").length)&&(o+=_(n)),o+=r;(n=7-(r=(a=e[t])+"").length)&&(o+=_(n))}else if(0===a)return"0";for(;a%10===0;)a/=10;return o+a}b.absoluteValue=b.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},b.comparedTo=b.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(t=0,n=(r=o.d.length)<(i=e.d.length)?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1},b.decimalPlaces=b.dp=function(){var e=this,t=e.d.length-1,n=7*(t-e.e);if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},b.dividedBy=b.div=function(e){return w(this,new this.constructor(e))},b.dividedToIntegerBy=b.idiv=function(e){var t=this.constructor;return C(w(this,new t(e),0,1),t.precision)},b.equals=b.eq=function(e){return!this.cmp(e)},b.exponent=function(){return E(this)},b.greaterThan=b.gt=function(e){return this.cmp(e)>0},b.greaterThanOrEqualTo=b.gte=function(e){return this.cmp(e)>=0},b.isInteger=b.isint=function(){return this.e>this.d.length-2},b.isNegative=b.isneg=function(){return this.s<0},b.isPositive=b.ispos=function(){return this.s>0},b.isZero=function(){return 0===this.s},b.lessThan=b.lt=function(e){return this.cmp(e)<0},b.lessThanOrEqualTo=b.lte=function(e){return this.cmp(e)<1},b.logarithm=b.log=function(e){var t,n=this,r=n.constructor,o=r.precision,a=o+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(i))throw Error(l+"NaN");if(n.s<1)throw Error(l+(n.s?"NaN":"-Infinity"));return n.eq(i)?new r(0):(s=!1,t=w(k(n,a),k(e,a),a),s=!0,C(t,o))},b.minus=b.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?O(t,e):v(t,(e.s=-e.s,e))},b.modulo=b.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(!(e=new r(e)).s)throw Error(l+"NaN");return n.s?(s=!1,t=w(n,e,0,1).times(e),s=!0,n.minus(t)):C(new r(n),i)},b.naturalExponential=b.exp=function(){return A(this)},b.naturalLogarithm=b.ln=function(){return k(this)},b.negated=b.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},b.plus=b.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?v(t,e):O(t,(e.s=-e.s,e))},b.precision=b.sd=function(e){var t,n,r,i=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(c+e);if(t=E(i)+1,n=7*(r=i.d.length-1)+1,r=i.d[r]){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},b.squareRoot=b.sqrt=function(){var e,t,n,r,i,o,a,c=this,u=c.constructor;if(c.s<1){if(!c.s)return new u(0);throw Error(l+"NaN")}for(e=E(c),s=!1,0==(i=Math.sqrt(+c))||i==1/0?(((t=x(c.d)).length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=d((e+1)/2)-(e<0||e%2),r=new u(t=i==1/0?"5e"+e:(t=i.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new u(i.toString()),i=a=(n=u.precision)+3;;)if(r=(o=r).plus(w(c,o,a+2)).times(.5),x(o.d).slice(0,a)===(t=x(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&"4999"==t){if(C(o,n+1,0),o.times(o).eq(c)){r=o;break}}else if("9999"!=t)break;a+=4}return s=!0,C(r,n)},b.times=b.mul=function(e){var t,n,r,i,o,a,l,c,u,d=this,p=d.constructor,h=d.d,m=(e=new p(e)).d;if(!d.s||!e.s)return new p(0);for(e.s*=d.s,n=d.e+e.e,(c=h.length)<(u=m.length)&&(o=h,h=m,m=o,a=c,c=u,u=a),o=[],r=a=c+u;r--;)o.push(0);for(r=u;--r>=0;){for(t=0,i=c+r;i>r;)l=o[i]+m[r]*h[i-r-1]+t,o[i--]=l%f|0,t=l/f|0;o[i]=(o[i]+t)%f|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,s?C(e,p.precision):e},b.toDecimalPlaces=b.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(y(e,0,o),void 0===t?t=r.rounding:y(t,0,8),C(n,e+E(n)+1,t))},b.toExponential=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=N(r,!0):(y(e,0,o),void 0===t?t=i.rounding:y(t,0,8),n=N(r=C(new i(r),e+1,t),!0,e+1)),n},b.toFixed=function(e,t){var n,r,i=this,a=i.constructor;return void 0===e?N(i):(y(e,0,o),void 0===t?t=a.rounding:y(t,0,8),n=N((r=C(new a(i),e+E(i)+1,t)).abs(),!1,e+E(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)},b.toInteger=b.toint=function(){var e=this,t=e.constructor;return C(new t(e),E(e)+1,t.rounding)},b.toNumber=function(){return+this},b.toPower=b.pow=function(e){var t,n,r,o,a,c,u=this,p=u.constructor,h=+(e=new p(e));if(!e.s)return new p(i);if(!(u=new p(u)).s){if(e.s<1)throw Error(l+"Infinity");return u}if(u.eq(i))return u;if(r=p.precision,e.eq(i))return C(u,r);if(c=(t=e.e)>=(n=e.d.length-1),a=u.s,c){if((n=h<0?-h:h)<=m){for(o=new p(i),t=Math.ceil(r/7+4),s=!1;n%2&&I((o=o.times(u)).d,t),0!==(n=d(n/2));)I((u=u.times(u)).d,t);return s=!0,e.s<0?new p(i).div(o):C(o,r)}}else if(a<0)throw Error(l+"NaN");return a=a<0&&1&e.d[Math.max(t,n)]?-1:1,u.s=1,s=!1,o=e.times(k(u,r+12)),s=!0,(o=A(o)).s=a,o},b.toPrecision=function(e,t){var n,r,i=this,a=i.constructor;return void 0===e?r=N(i,(n=E(i))<=a.toExpNeg||n>=a.toExpPos):(y(e,1,o),void 0===t?t=a.rounding:y(t,0,8),r=N(i=C(new a(i),e,t),e<=(n=E(i))||n<=a.toExpNeg,e)),r},b.toSignificantDigits=b.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(y(e,1,o),void 0===t?t=n.rounding:y(t,0,8)),C(new n(this),e,t)},b.toString=b.valueOf=b.val=b.toJSON=function(){var e=this,t=E(e),n=e.constructor;return N(e,t<=n.toExpNeg||t>=n.toExpPos)};var w=function(){function e(e,t){var n,r=0,i=e.length;for(e=e.slice();i--;)n=e[i]*t+r,e[i]=n%f|0,r=n/f|0;return r&&e.unshift(r),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*f+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,o,a){var s,c,u,d,p,h,m,g,b,v,y,x,w,A,S,_,k,T,O=r.constructor,N=r.s==i.s?1:-1,I=r.d,R=i.d;if(!r.s)return new O(r);if(!i.s)throw Error(l+"Division by zero");for(c=r.e-i.e,k=R.length,S=I.length,g=(m=new O(N)).d=[],u=0;R[u]==(I[u]||0);)++u;if(R[u]>(I[u]||0)&&--c,(x=null==o?o=O.precision:a?o+(E(r)-E(i))+1:o)<0)return new O(0);if(x=x/7+2|0,u=0,1==k)for(d=0,R=R[0],x++;(u<S||d)&&x--;u++)w=d*f+(I[u]||0),g[u]=w/R|0,d=w%R|0;else{for((d=f/(R[0]+1)|0)>1&&(R=e(R,d),I=e(I,d),k=R.length,S=I.length),A=k,v=(b=I.slice(0,k)).length;v<k;)b[v++]=0;(T=R.slice()).unshift(0),_=R[0],R[1]>=f/2&&++_;do{d=0,(s=t(R,b,k,v))<0?(y=b[0],k!=v&&(y=y*f+(b[1]||0)),(d=y/_|0)>1?(d>=f&&(d=f-1),1==(s=t(p=e(R,d),b,h=p.length,v=b.length))&&(d--,n(p,k<h?T:R,h))):(0==d&&(s=d=1),p=R.slice()),(h=p.length)<v&&p.unshift(0),n(b,p,v),-1==s&&(s=t(R,b,k,v=b.length))<1&&(d++,n(b,k<v?T:R,v)),v=b.length):0===s&&(d++,b=[0]),g[u++]=d,s&&b[0]?b[v++]=I[A]||0:(b=[I[A]],v=1)}while((A++<S||void 0!==b[0])&&x--)}return g[0]||g.shift(),m.e=c,C(m,a?o+E(m)+1:o)}}();function A(e,t){var n,r,o,a,l,c=0,d=0,h=e.constructor,f=h.precision;if(E(e)>16)throw Error(u+E(e));if(!e.s)return new h(i);for(null==t?(s=!1,l=f):l=t,a=new h(.03125);e.abs().gte(.1);)e=e.times(a),d+=5;for(l+=Math.log(p(2,d))/Math.LN10*2+5|0,n=r=o=new h(i),h.precision=l;;){if(r=C(r.times(e),l),n=n.times(++c),x((a=o.plus(w(r,n,l))).d).slice(0,l)===x(o.d).slice(0,l)){for(;d--;)o=C(o.times(o),l);return h.precision=f,null==t?(s=!0,C(o,f)):o}o=a}}function E(e){for(var t=7*e.e,n=e.d[0];n>=10;n/=10)t++;return t}function S(e,t,n){if(t>e.LN10.sd())throw s=!0,n&&(e.precision=n),Error(l+"LN10 precision limit exceeded");return C(new e(e.LN10),t)}function _(e){for(var t="";e--;)t+="0";return t}function k(e,t){var n,r,o,a,c,u,d,p,h,f=1,m=e,g=m.d,b=m.constructor,v=b.precision;if(m.s<1)throw Error(l+(m.s?"NaN":"-Infinity"));if(m.eq(i))return new b(0);if(null==t?(s=!1,p=v):p=t,m.eq(10))return null==t&&(s=!0),S(b,p);if(p+=10,b.precision=p,r=(n=x(g)).charAt(0),a=E(m),!(Math.abs(a)<15e14))return d=S(b,p+2,v).times(a+""),m=k(new b(r+"."+n.slice(1)),p-10).plus(d),b.precision=v,null==t?(s=!0,C(m,v)):m;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=x((m=m.times(e)).d)).charAt(0),f++;for(a=E(m),r>1?(m=new b("0."+n),a++):m=new b(r+"."+n.slice(1)),u=c=m=w(m.minus(i),m.plus(i),p),h=C(m.times(m),p),o=3;;){if(c=C(c.times(h),p),x((d=u.plus(w(c,new b(o),p))).d).slice(0,p)===x(u.d).slice(0,p))return u=u.times(2),0!==a&&(u=u.plus(S(b,p+2,v).times(a+""))),u=w(u,new b(f),p),b.precision=v,null==t?(s=!0,C(u,v)):u;u=d,o+=2}}function T(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(i=t.length;48===t.charCodeAt(i-1);)--i;if(t=t.slice(r,i)){if(i-=r,n=n-r-1,e.e=d(n/7),e.d=[],r=(n+1)%7,n<0&&(r+=7),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=7;r<i;)e.d.push(+t.slice(r,r+=7));r=7-(t=t.slice(r)).length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),s&&(e.e>g||e.e<-g))throw Error(u+n)}else e.s=0,e.e=0,e.d=[0];return e}function C(e,t,n){var r,i,o,a,l,c,h,m,b=e.d;for(a=1,o=b[0];o>=10;o/=10)a++;if((r=t-a)<0)r+=7,i=t,h=b[m=0];else{if((m=Math.ceil((r+1)/7))>=(o=b.length))return e;for(h=o=b[m],a=1;o>=10;o/=10)a++;i=(r%=7)-7+a}if(void 0!==n&&(l=h/(o=p(10,a-i-1))%10|0,c=t<0||void 0!==b[m+1]||h%o,c=n<4?(l||c)&&(0==n||n==(e.s<0?3:2)):l>5||5==l&&(4==n||c||6==n&&(r>0?i>0?h/p(10,a-i):0:b[m-1])%10&1||n==(e.s<0?8:7))),t<1||!b[0])return c?(o=E(e),b.length=1,t=t-o-1,b[0]=p(10,(7-t%7)%7),e.e=d(-t/7)||0):(b.length=1,b[0]=e.e=e.s=0),e;if(0==r?(b.length=m,o=1,m--):(b.length=m+1,o=p(10,7-r),b[m]=i>0?(h/p(10,a-i)%p(10,i)|0)*o:0),c)for(;;){if(0==m){(b[0]+=o)==f&&(b[0]=1,++e.e);break}if(b[m]+=o,b[m]!=f)break;b[m--]=0,o=1}for(r=b.length;0===b[--r];)b.pop();if(s&&(e.e>g||e.e<-g))throw Error(u+E(e));return e}function O(e,t){var n,r,i,o,a,l,c,u,d,p,h=e.constructor,m=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),s?C(t,m):t;if(c=e.d,p=t.d,r=t.e,u=e.e,c=c.slice(),a=u-r){for((d=a<0)?(n=c,a=-a,l=p.length):(n=p,r=u,l=c.length),a>(i=Math.max(Math.ceil(m/7),l)+2)&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for((d=(i=c.length)<(l=p.length))&&(l=i),i=0;i<l;i++)if(c[i]!=p[i]){d=c[i]<p[i];break}a=0}for(d&&(n=c,c=p,p=n,t.s=-t.s),l=c.length,i=p.length-l;i>0;--i)c[l++]=0;for(i=p.length;i>a;){if(c[--i]<p[i]){for(o=i;o&&0===c[--o];)c[o]=f-1;--c[o],c[i]+=f}c[i]-=p[i]}for(;0===c[--l];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(t.d=c,t.e=r,s?C(t,m):t):new h(0)}function N(e,t,n){var r,i=E(e),o=x(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+_(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+_(-i-1)+o,n&&(r=n-a)>0&&(o+=_(r))):i>=a?(o+=_(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+_(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=_(r))),e.s<0?"-"+o:o}function I(e,t){if(e.length>t)return e.length=t,!0}function R(e){if(!e||"object"!==typeof e)throw Error(l+"Object expected");var t,n,r,i=["precision",1,o,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if(void 0!==(r=e[n=i[t]])){if(!(d(r)===r&&r>=i[t+1]&&r<=i[t+2]))throw Error(c+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(c+n+": "+r);this[n]=new this(r)}return this}a=function e(t){var n,r,i;function o(e){var t=this;if(!(t instanceof o))return new o(e);if(t.constructor=o,e instanceof o)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"===typeof e){if(0*e!==0)throw Error(c+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):T(t,e.toString())}if("string"!==typeof e)throw Error(c+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!h.test(e))throw Error(c+e);T(t,e)}if(o.prototype=b,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=e,o.config=o.set=R,void 0===t&&(t={}),t)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<i.length;)t.hasOwnProperty(r=i[n++])||(t[r]=this[r]);return o.config(t),o}(a),a.default=a.Decimal=a,i=new a(1),void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()},74879:function(e,t,n){e.exports=n(88146).get},29035:function(e,t,n){e.exports=n(47723).isEqual},52540:function(e,t,n){e.exports=n(43177).isPlainObject},76667:function(e,t,n){e.exports=n(76928).last},98354:function(e,t,n){e.exports=n(77774).range},30830:function(e,t,n){e.exports=n(85497).sortBy},76135:function(e,t,n){e.exports=n(96633).throttle},52239:function(e,t,n){e.exports=n(27384).uniqBy},14195:function(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isUnsafeProperty=function(e){return"__proto__"===e}},98897:function(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.flatten=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=[],r=Math.floor(t),i=(e,t)=>{for(let o=0;o<e.length;o++){const a=e[o];Array.isArray(a)&&t<r?i(a,t+1):n.push(a)}};return i(e,0),n}},91047:function(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.last=function(e){return e[e.length-1]}},70011:function(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.uniqBy=function(e,t){const n=new Map;for(let r=0;r<e.length;r++){const i=e[r],o=t(i);n.has(o)||n.set(o,i)}return Array.from(n.values())}},85698:function(e,t){"use strict";function n(e){return"symbol"===typeof e?1:null===e?2:void 0===e?3:e!==e?4:0}Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});t.compareValues=(e,t,r)=>{if(e!==t){const i=n(e),o=n(t);if(i===o&&0===i){if(e<t)return"desc"===r?1:-1;if(e>t)return"desc"===r?-1:1}return"desc"===r?o-i:i-o}return 0}},39190:function(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.getSymbols=function(e){return Object.getOwnPropertySymbols(e).filter((t=>Object.prototype.propertyIsEnumerable.call(e,t)))}},9223:function(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}
75),t.getTag=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}},71098:function(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isDeepKey=function(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e.includes(".")||e.includes("[")||e.includes("]")}}},97431:function(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=/^(?:0|[1-9]\d*)$/;t.isIndex=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_SAFE_INTEGER;switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<t;case"symbol":return!1;case"string":return n.test(e)}}},52718:function(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(97431),i=n(57740),o=n(43539),a=n(19115);t.isIterateeCall=function(e,t,n){return!!o.isObject(n)&&(!!("number"===typeof t&&i.isArrayLike(n)&&r.isIndex(t)&&t<n.length||"string"===typeof t&&t in n)&&a.eq(n[t],e))}},69696:function(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(97108),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;t.isKey=function(e,t){return!Array.isArray(e)&&(!("number"!==typeof e&&"boolean"!==typeof e&&null!=e&&!r.isSymbol(e))||("string"===typeof e&&(o.test(e)||!i.test(e))||null!=t&&Object.hasOwn(t,e)))}},3470:function(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});t.argumentsTag="[object Arguments]",t.arrayBufferTag="[object ArrayBuffer]",t.arrayTag="[object Array]",t.bigInt64ArrayTag="[object BigInt64Array]",t.bigUint64ArrayTag="[object BigUint64Array]",t.booleanTag="[object Boolean]",t.dataViewTag="[object DataView]",t.dateTag="[object Date]",t.errorTag="[object Error]",t.float32ArrayTag="[object Float32Array]",t.float64ArrayTag="[object Float64Array]",t.functionTag="[object Function]",t.int16ArrayTag="[object Int16Array]",t.int32ArrayTag="[object Int32Array]",t.int8ArrayTag="[object Int8Array]",t.mapTag="[object Map]",t.numberTag="[object Number]",t.objectTag="[object Object]",t.regexpTag="[object RegExp]",t.setTag="[object Set]",t.stringTag="[object String]",t.symbolTag="[object Symbol]",t.uint16ArrayTag="[object Uint16Array]",t.uint32ArrayTag="[object Uint32Array]",t.uint8ArrayTag="[object Uint8Array]",t.uint8ClampedArrayTag="[object Uint8ClampedArray]"},225:function(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.toArray=function(e){return Array.isArray(e)?e:Array.from(e)}},41083:function(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.toKey=function(e){return"string"===typeof e||"symbol"===typeof e?e:Object.is(e?.valueOf?.(),-0)?"-0":String(e)}},76928:function(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(91047),i=n(225),o=n(57740);t.last=function(e){if(o.isArrayLike(e))return r.last(i.toArray(e))}},59363:function(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(85698),i=n(69696),o=n(35031);t.orderBy=function(e,t,n,a){if(null==e)return[];n=a?void 0:n,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=null==t?[null]:[t]),0===t.length&&(t=[null]),Array.isArray(n)||(n=null==n?[]:[n]),n=n.map((e=>String(e)));const s=(e,t)=>{let n=e;for(let r=0;r<t.length&&null!=n;++r)n=n[t[r]];return n},l=t.map((e=>(Array.isArray(e)&&1===e.length&&(e=e[0]),null==e||"function"===typeof e||Array.isArray(e)||i.isKey(e)?e:{key:e,path:o.toPath(e)})));return e.map((e=>({original:e,criteria:l.map((t=>((e,t)=>null==t||null==e?t:"object"===typeof e&&"key"in e?Object.hasOwn(t,e.key)?t[e.key]:s(t,e.path):"function"===typeof e?e(t):Array.isArray(e)?s(t,e):"object"===typeof t?t[e]:t)(t,e)))}))).slice().sort(((e,t)=>{for(let i=0;i<l.length;i++){const o=r.compareValues(e.criteria[i],t.criteria[i],n[i]);if(0!==o)return o}return 0})).map((e=>e.original))}},85497:function(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(59363),i=n(98897),o=n(52718);t.sortBy=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];const s=n.length;return s>1&&o.isIterateeCall(e,n[0],n[1])?n=[]:s>2&&o.isIterateeCall(n[0],n[1],n[2])&&(n=[n[0]]),r.orderBy(e,i.flatten(n),["asc"])}},27384:function(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(70011),i=n(51810),o=n(13787),a=n(71640);t.uniqBy=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.identity;return o.isArrayLikeObject(e)?r.uniqBy(Array.from(e),a.iteratee(t)):[]}},2742:function(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.debounce=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"!==typeof n&&(n={});let r,i=null,o=null,a=null,s=0,l=null;const{leading:c=!1,trailing:u=!0,maxWait:d}=n,p="maxWait"in n,h=p?Math.max(Number(d)||0,t):0,f=t=>(null!==i&&(r=e.apply(o,i)),i=o=null,s=t,r),m=e=>(l=null,u&&null!==i?f(e):r),g=e=>{if(null===a)return!0;const n=e-a;return n>=t||n<0||p&&e-s>=h},b=()=>{const e=Date.now();if(g(e))return m(e);l=setTimeout(b,(e=>{const n=t-(null===a?0:e-a),r=h-(e-s);return p?Math.min(n,r):n})(e))},v=function(){const e=Date.now(),n=g(e);for(var u=arguments.length,d=new Array(u),h=0;h<u;h++)d[h]=arguments[h];if(i=d,o=this,a=e,n){if(null===l)return s=m=e,l=setTimeout(b,t),c&&null!==i?f(m):r;if(p)return clearTimeout(l),l=setTimeout(b,t),f(e)}var m;return null===l&&(l=setTimeout(b,t)),r};return v.cancel=()=>{null!==l&&clearTimeout(l),s=0,a=i=o=l=null},v.flush=()=>null===l?r:m(Date.now()),v}},96633:function(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(2742);t.throttle=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{leading:i=!0,trailing:o=!0}=n;return r.debounce(e,t,{leading:i,maxWait:t,trailing:o})}},77774:function(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(52718),i=n(46567);t.range=function(e,t,n){n&&"number"!==typeof n&&r.isIterateeCall(e,t,n)&&(t=n=void 0),e=i.toFinite(e),void 0===t?(t=e,e=0):t=i.toFinite(t),n=void 0===n?e<t?1:-1:i.toFinite(n);const o=Math.max(Math.ceil((t-e)/(n||1)),0),a=new Array(o);for(let r=0;r<o;r++)a[r]=e,e+=n;return a}},65573:function(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(56537);t.cloneDeep=function(e){return r.cloneDeepWith(e)}},56537:function(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(69690),i=n(3470);t.cloneDeepWith=function(e,t){return r.cloneDeepWith(e,((n,o,a,s)=>{const l=t?.(n,o,a,s);if(null!=l)return l;if("object"===typeof e)switch(Object.prototype.toString.call(e)){case i.numberTag:case i.stringTag:case i.booleanTag:{const t=new e.constructor(e?.valueOf());return r.copyProperties(t,e),t}case i.argumentsTag:{const t={};return r.copyProperties(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}))}},88146:function(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(14195),i=n(71098),o=n(41083),a=n(35031);t.get=function e(t,n,s){if(null==t)return s;
75switch(typeof n){case"string":{if(r.isUnsafeProperty(n))return s;const o=t[n];return void 0===o?i.isDeepKey(n)?e(t,a.toPath(n),s):s:o}case"number":case"symbol":{"number"===typeof n&&(n=o.toKey(n));const e=t[n];return void 0===e?s:e}default:{if(Array.isArray(n))return function(e,t,n){if(0===t.length)return n;let i=e;for(let o=0;o<t.length;o++){if(null==i)return n;if(r.isUnsafeProperty(t[o]))return n;i=i[t[o]]}if(void 0===i)return n;return i}(t,n,s);if(n=Object.is(n?.valueOf(),-0)?"-0":String(n),r.isUnsafeProperty(n))return s;const e=t[n];return void 0===e?s:e}}}},75942:function(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(71098),i=n(97431),o=n(25230),a=n(35031);t.has=function(e,t){let n;if(n=Array.isArray(t)?t:"string"===typeof t&&r.isDeepKey(t)&&null==e?.[t]?a.toPath(t):[t],0===n.length)return!1;let s=e;for(let r=0;r<n.length;r++){const e=n[r];if(null==s||!Object.hasOwn(s,e)){if(!((Array.isArray(s)||o.isArguments(s))&&i.isIndex(e)&&e<s.length))return!1}s=s[e]}return!0}},85825:function(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(88146);t.property=function(e){return function(t){return r.get(t,e)}}},25230:function(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9223);t.isArguments=function(e){return null!==e&&"object"===typeof e&&"[object Arguments]"===r.getTag(e)}},57740:function(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(41111);t.isArrayLike=function(e){return null!=e&&"function"!==typeof e&&r.isLength(e.length)}},13787:function(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(57740),i=n(58316);t.isArrayLikeObject=function(e){return i.isObjectLike(e)&&r.isArrayLike(e)}},75399:function(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(41311);t.isMatch=function(e,t){return r.isMatchWith(e,t,(()=>{}))}},41311:function(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(75399),i=n(43539),o=n(51214),a=n(19115);function s(e,t,n,r){if(t===e)return!0;switch(typeof t){case"object":return function(e,t,n,r){if(null==t)return!0;if(Array.isArray(t))return l(e,t,n,r);if(t instanceof Map)return function(e,t,n,r){if(0===t.size)return!0;if(!(e instanceof Map))return!1;for(const[i,o]of t.entries()){if(!1===n(e.get(i),o,i,e,t,r))return!1}return!0}(e,t,n,r);if(t instanceof Set)return c(e,t,n,r);const i=Object.keys(t);if(null==e)return 0===i.length;if(0===i.length)return!0;if(r&&r.has(t))return r.get(t)===e;r&&r.set(t,e);try{for(let a=0;a<i.length;a++){const s=i[a];if(!o.isPrimitive(e)&&!(s in e))return!1;if(void 0===t[s]&&void 0!==e[s])return!1;if(null===t[s]&&null!==e[s])return!1;if(!n(e[s],t[s],s,e,t,r))return!1}return!0}finally{r&&r.delete(t)}}(e,t,n,r);case"function":return Object.keys(t).length>0?s(e,{...t},n,r):a.eq(e,t);default:return i.isObject(e)?"string"!==typeof t||""===t:a.eq(e,t)}}function l(e,t,n,r){if(0===t.length)return!0;if(!Array.isArray(e))return!1;const i=new Set;for(let o=0;o<t.length;o++){const a=t[o];let s=!1;for(let l=0;l<e.length;l++){if(i.has(l))continue;let c=!1;if(n(e[l],a,o,e,t,r)&&(c=!0),c){i.add(l),s=!0;break}}if(!s)return!1}return!0}function c(e,t,n,r){return 0===t.size||e instanceof Set&&l([...e],[...t],n,r)}t.isMatchWith=function(e,t,n){return"function"!==typeof n?r.isMatch(e,t):s(e,t,(function e(t,r,i,o,a,l){const c=n(t,r,i,o,a,l);return void 0!==c?Boolean(c):s(t,r,e,l)}),new Map)},t.isSetMatch=c},43539:function(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isObject=function(e){return null!==e&&("object"===typeof e||"function"===typeof e)}},58316:function(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isObjectLike=function(e){return"object"===typeof e&&null!==e}},43177:function(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isPlainObject=function(e){if("object"!==typeof e)return!1;if(null==e)return!1;if(null===Object.getPrototypeOf(e))return!0;
75if("[object Object]"!==Object.prototype.toString.call(e)){const t=e[Symbol.toStringTag];if(null==t)return!1;return!!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable&&e.toString()===`[object ${t}]`}let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}},97108:function(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isSymbol=function(e){return"symbol"===typeof e||e instanceof Symbol}},63679:function(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(75399),i=n(99358);t.matches=function(e){return e=i.cloneDeep(e),t=>r.isMatch(t,e)}},94090:function(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(75399),i=n(41083),o=n(65573),a=n(88146),s=n(75942);t.matchesProperty=function(e,t){switch(typeof e){case"object":Object.is(e?.valueOf(),-0)&&(e="-0");break;case"number":e=i.toKey(e)}return t=o.cloneDeep(t),function(n){const i=a.get(n,e);return void 0===i?s.has(n,e):void 0===t?void 0===i:r.isMatch(i,t)}}},19115:function(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.eq=function(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}},71640:function(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(51810),i=n(85825),o=n(63679),a=n(94090);t.iteratee=function(e){if(null==e)return r.identity;switch(typeof e){case"function":return e;case"object":return Array.isArray(e)&&2===e.length?a.matchesProperty(e[0],e[1]):o.matches(e);case"string":case"symbol":case"number":return i.property(e)}}},46567:function(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(91921);t.toFinite=function(e){if(!e)return 0===e?e:0;if((e=r.toNumber(e))===1/0||e===-1/0){return(e<0?-1:1)*Number.MAX_VALUE}return e===e?e:0}},91921:function(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(97108);t.toNumber=function(e){return r.isSymbol(e)?NaN:Number(e)}},35031:function(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.toPath=function(e){const t=[],n=e.length;if(0===n)return t;let r=0,i="",o="",a=!1;for(46===e.charCodeAt(0)&&(t.push(""),r++);r<n;){const s=e[r];o?"\\"===s&&r+1<n?(r++,i+=e[r]):s===o?o="":i+=s:a?'"'===s||"'"===s?o=s:"]"===s?(a=!1,t.push(i),i=""):i+=s:"["===s?(a=!0,i&&(t.push(i),i="")):"."===s?i&&(t.push(i),i=""):i+=s,r++}return i&&t.push(i),t}},51810:function(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.identity=function(e){return e}},78448:function(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.noop=function(){}},99358:function(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(69690);t.cloneDeep=function(e){return r.cloneDeepWithImpl(e,void 0,e,new Map,void 0)}},69690:function(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(39190),i=n(9223),o=n(3470),a=n(51214),s=n(61558);function l(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Map,u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;const d=u?.(e,t,n,r);if(null!=d)return d;if(a.isPrimitive(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){const t=new Array(e.length);r.set(e,t);for(let i=0;i<e.length;i++)t[i]=l(e[i],i,n,r,u);return Object.hasOwn(e,"index")&&(t.index=e.index),Object.hasOwn(e,"input")&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){const t=new Map;r.set(e,t);for(const[i,o]of e)t.set(i,l(o,i,n,r,u));return t}if(e instanceof Set){const t=new Set;r.set(e,t);for(const i of e)t.add(l(i,void 0,n,r,u));return t}if("undefined"!==typeof Buffer&&Buffer.isBuffer(e))return e.subarray();if(s.isTypedArray(e)){const t=new(Object.getPrototypeOf(e).constructor)(e.length);r.set(e,t);for(let i=0;i<e.length;i++)t[i]=l(e[i],i,n,r,u);return t}if(e instanceof ArrayBuffer||"undefined"!==typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),c(t,e,n,r,u),t}if("undefined"!==typeof File&&e instanceof File){const t=new File([e],e.name,{type:e.type});return r.set(e,t),c(t,e,n,r,u),t}if(e instanceof Blob){const t=new Blob([e],{type:e.type});return r.set(e,t),c(t,e,n,r,u),t}if(e instanceof Error){const t=new e.constructor;return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,c(t,e,n,r,u),t}if("object"===typeof e&&function(e){switch(i.getTag(e)){case o.argumentsTag:case o.arrayTag:case o.arrayBufferTag:case o.dataViewTag:case o.booleanTag:case o.dateTag:case o.float32ArrayTag:case o.float64ArrayTag:case o.int8ArrayTag:case o.int16ArrayTag:case o.int32ArrayTag:case o.mapTag:case o.numberTag:case o.objectTag:case o.regexpTag:case o.setTag:case o.stringTag:case o.symbolTag:case o.uint8ArrayTag:case o.uint8ClampedArrayTag:case o.uint16ArrayTag:case o.uint32ArrayTag:return!0;default:return!1}}(e)){const t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),c(t,e,n,r,u),t}return e}function c(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;const a=[...Object.keys(t),...r.getSymbols(t)];for(let r=0;r<a.length;r++){const s=a[r],c=Object.getOwnPropertyDescriptor(e,s);(null==c||c.writable)&&(e[s]=l(t[s],s,n,i,o))}}t.cloneDeepWith=function(e,t){return l(e,void 0,e,new Map,t)},t.cloneDeepWithImpl=l,t.copyProperties=c},47723:function(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(80515),i=n(78448);t.isEqual=function(e,t){return r.isEqualWith(e,t,i.noop)}},80515:function(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(45628),i=n(39190),o=n(9223),a=n(3470),s=n(19115);function l(e,t,n,r,i,o,a){const s=a(e,t,n,r,i,o);if(void 0!==s)return s;if(typeof e===typeof t)switch(typeof e){case"bigint":case"string":case"boolean":case"symbol":case"undefined":case"function":return e===t;case"number":return e===t||Object.is(e,t);case"object":return c(e,t,o,a)}return c(e,t,o,a)}function c(e,t,n,u){if(Object.is(e,t))return!0;let d=o.getTag(e),p=o.getTag(t);if(d===a.argumentsTag&&(d=a.objectTag),p===a.argumentsTag&&(p=a.objectTag),d!==p)return!1;switch(d){case a.stringTag:return e.toString()===t.toString();case a.numberTag:{const n=e.valueOf(),r=t.valueOf();return s.eq(n,r)}case a.booleanTag:case a.dateTag:case a.symbolTag:return Object.is(e.valueOf(),t.valueOf());case a.regexpTag:return e.source===t.source&&e.flags===t.flags;case a.functionTag:return e===t}const h=(n=n??new Map).get(e),f=n.get(t);if(null!=h&&null!=f)return h===t;n.set(e,t),n.set(t,e);
75try{switch(d){case a.mapTag:if(e.size!==t.size)return!1;for(const[r,i]of e.entries())if(!t.has(r)||!l(i,t.get(r),r,e,t,n,u))return!1;return!0;case a.setTag:{if(e.size!==t.size)return!1;const r=Array.from(e.values()),i=Array.from(t.values());for(let o=0;o<r.length;o++){const a=r[o],s=i.findIndex((r=>l(a,r,void 0,e,t,n,u)));if(-1===s)return!1;i.splice(s,1)}return!0}case a.arrayTag:case a.uint8ArrayTag:case a.uint8ClampedArrayTag:case a.uint16ArrayTag:case a.uint32ArrayTag:case a.bigUint64ArrayTag:case a.int8ArrayTag:case a.int16ArrayTag:case a.int32ArrayTag:case a.bigInt64ArrayTag:case a.float32ArrayTag:case a.float64ArrayTag:if("undefined"!==typeof Buffer&&Buffer.isBuffer(e)!==Buffer.isBuffer(t))return!1;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!l(e[r],t[r],r,e,t,n,u))return!1;return!0;case a.arrayBufferTag:return e.byteLength===t.byteLength&&c(new Uint8Array(e),new Uint8Array(t),n,u);case a.dataViewTag:return e.byteLength===t.byteLength&&e.byteOffset===t.byteOffset&&c(new Uint8Array(e),new Uint8Array(t),n,u);case a.errorTag:return e.name===t.name&&e.message===t.message;case a.objectTag:{if(!(c(e.constructor,t.constructor,n,u)||r.isPlainObject(e)&&r.isPlainObject(t)))return!1;const o=[...Object.keys(e),...i.getSymbols(e)],a=[...Object.keys(t),...i.getSymbols(t)];if(o.length!==a.length)return!1;for(let r=0;r<o.length;r++){const i=o[r],a=e[i];if(!Object.hasOwn(t,i))return!1;if(!l(a,t[i],i,e,t,n,u))return!1}return!0}default:return!1}}finally{n.delete(e),n.delete(t)}}t.isEqualWith=function(e,t,n){return l(e,t,void 0,void 0,void 0,void 0,n)}},41111:function(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isLength=function(e){return Number.isSafeInteger(e)&&e>=0}},45628:function(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isPlainObject=function(e){if(!e||"object"!==typeof e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t))&&"[object Object]"===Object.prototype.toString.call(e)}},51214:function(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isPrimitive=function(e){return null==e||"object"!==typeof e&&"function"!==typeof e}},61558:function(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isTypedArray=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}},30962:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExportToCsv=t.ConfigDefaults=t.CsvConfigConsts=void 0;var n=function(){function e(){}return e.EOL="\r\n",e.BOM="\ufeff",e.DEFAULT_FIELD_SEPARATOR=",",e.DEFAULT_DECIMAL_SEPARATOR=".",e.DEFAULT_QUOTE='"',e.DEFAULT_SHOW_TITLE=!1,e.DEFAULT_TITLE="My Generated Report",e.DEFAULT_FILENAME="generated",e.DEFAULT_SHOW_LABELS=!1,e.DEFAULT_USE_TEXT_FILE=!1,e.DEFAULT_USE_BOM=!0,e.DEFAULT_HEADER=[],e.DEFAULT_KEYS_AS_HEADERS=!1,e}();t.CsvConfigConsts=n,t.ConfigDefaults={filename:n.DEFAULT_FILENAME,fieldSeparator:n.DEFAULT_FIELD_SEPARATOR,quoteStrings:n.DEFAULT_QUOTE,decimalSeparator:n.DEFAULT_DECIMAL_SEPARATOR,showLabels:n.DEFAULT_SHOW_LABELS,showTitle:n.DEFAULT_SHOW_TITLE,title:n.DEFAULT_TITLE,useTextFile:n.DEFAULT_USE_TEXT_FILE,useBom:n.DEFAULT_USE_BOM,headers:n.DEFAULT_HEADER,useKeysAsHeaders:n.DEFAULT_KEYS_AS_HEADERS};var r=function(){function e(e){this._csv="";var n=e||{};this._options=a({},t.ConfigDefaults,n),this._options.useKeysAsHeaders&&this._options.headers&&this._options.headers.length>0&&console.warn("Option to use object keys as headers was set, but headers were still passed!")}return Object.defineProperty(e.prototype,"options",{get:function(){return this._options},set:function(e){this._options=a({},t.ConfigDefaults,e)},enumerable:!1,configurable:!0}),e.prototype.generateCsv=function(e,t){if(void 0===t&&(t=!1),this._csv="",this._parseData(e),this._options.useBom&&(this._csv+=n.BOM),this._options.showTitle&&(this._csv+=this._options.title+"\r\n\n"),this._createHeaders(),this._createBody(),""!=this._csv){if(t)return this._csv;var r=this._options.useTextFile?"plain":"csv",i=this._options.useTextFile?".txt":".csv",o=new Blob([this._csv],{type:"text/"+r+";charset=utf8;"}),a=document.createElement("a");a.href=URL.createObjectURL(o),a.setAttribute("visibility","hidden"),a.download=this._options.filename.replace(/ /g,"_")+i,document.body.appendChild(a),a.click(),document.body.removeChild(a)}else console.log("Invalid data")},e.prototype._getHeaders=function(){if(this._options.showLabels||this._options.useKeysAsHeaders)return this._options.useKeysAsHeaders?Object.keys(this._data[0]):this._options.headers},e.prototype._createHeaders=function(){var e=this._getHeaders();if(e.length>0){for(var t="",r=0;r<e.length;r++)t+=e[r]+this._options.fieldSeparator;t=t.slice(0,-1),this._csv+=t+n.EOL}},e.prototype._createBody=function(){for(var e=this._getHeaders(),t=0;t<this._data.length;t++){for(var r="",i=0;i<e.length;i++){var o=e[i];r+=this._formatData(this._data[t][o])+this._options.fieldSeparator}r=r.slice(0,-1),this._csv+=r+n.EOL}},e.prototype._formatData=function(e){return"locale"===this._options.decimalSeparator&&this._isFloat(e)?e.toLocaleStr
75ing():"."!==this._options.decimalSeparator&&this._isFloat(e)?e.toString().replace(".",this._options.decimalSeparator):"string"===typeof e?(e=e.replace(/"/g,'""'),(this._options.quoteStrings||e.indexOf(",")>-1||e.indexOf("\n")>-1||e.indexOf("\r")>-1)&&(e=this._options.quoteStrings+e+this._options.quoteStrings),e):"boolean"===typeof e?e?"TRUE":"FALSE":e},e.prototype._isFloat=function(e){return+e===e&&(!isFinite(e)||Boolean(e%1))},e.prototype._parseData=function(e){return this._data="object"!=typeof e?JSON.parse(e):e,this._data},e}();t.ExportToCsv=r;var i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];for(var a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in t=Object(arguments[l]))i.call(t,c)&&(s[c]=t[c]);if(Object.getOwnPropertySymbols){a=Object.getOwnPropertySymbols(t);for(var u=0;u<a.length;u++)o.call(t,a[u])&&(s[a[u]]=t[a[u]])}}return s}},77139:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(30962),t)},80755:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return"undefined"===typeof r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,d=arguments[0],p=1,h=arguments.length,f=!1;for("boolean"===typeof d&&(f=d,d=arguments[1]||{},p=2),(null==d||"object"!==typeof d&&"function"!==typeof d)&&(d={});p<h;++p)if(null!=(t=arguments[p]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(f&&i&&(a(i)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(f,u,i)})):"undefined"!==typeof i&&s(d,{name:n,newValue:i}));return d}},59482:function(e){"use strict";e.exports=function(e,n){var r,i,o,a=e||"",s=n||"div",l={},c=0;for(;c<a.length;)t.lastIndex=c,o=t.exec(a),(r=a.slice(c,o?o.index:a.length))&&(i?"#"===i?l.id=r:l.className?l.className.push(r):l.className=[r]:s=r,c+=r.length),o&&(i=o[0],c++);return{type:"element",tagName:s,properties:l,children:[]}};var t=/[#.]/g},36818:function(e,t,n){"use strict";var r=n(50011),i=n(58245),o=n(59482),a=n(94509).q,s=n(4882).q;e.exports=function(e,t,n){var i=n?function(e){var t,n=e.length,r=-1,i={};for(;++r<n;)i[(t=e[r]).toLowerCase()]=t;return i}(n):null;return function(e,n){var r,a=o(e,t),s=Array.prototype.slice.call(arguments,2),u=a.tagName.toLowerCase();a.tagName=i&&l.call(i,u)?i[u]:u,n&&function(e,t){return"string"===typeof e||"length"in e||function(e,t){var n=t.type;if("input"===e||!n||"string"!==typeof n)return!1;if("object"===typeof t.children&&"length"in t.children)return!0;if(n=n.toLowerCase(),"button"===e)return"menu"!==n&&"submit"!==n&&"reset"!==n&&"button"!==n;return"value"in t}(t.tagName,e)}(n,a)&&(s.unshift(n),n=null);if(n)for(r in n)d(a.properties,r,n[r]);c(a.children,s),"template"===a.tagName&&(a.content={type:"root",children:a.children},a.children=[]);return a};function d(t,n,i){var o,l,c;null!==i&&void 0!==i&&i===i&&(l=(o=r(e,n)).property,"string"===typeof(c=i)&&(o.spaceSeparated?c=a(c):o.commaSeparated?c=s(c):o.commaOrSpaceSeparated&&(c=a(s(c).join(" ")))),"style"===l&&"string"!==typeof i&&(c=function(e){var t,n=[];for(t in e)n.push([t,e[t]].join(": "));return n.join("; ")}(c)),"className"===l&&t.className&&(c=t.className.concat(c)),t[l]=function(e,t,n){var r,i,o;if("object"!==typeof n||!("length"in n))return u(e,t,n);i=n.length,r=-1,o=[];for(;++r<i;)o[r]=u(e,t,n[r]);return o}(o,l,c))}};var l={}.hasOwnProperty;function c(e,t){var n,r;if("string"!==typeof t&&"number"!==typeof t)if("object"===typeof t&&"length"in t)for(n=-1,r=t.length;++n<r;)c(e,t[n]);else{if("object"!==typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");e.push(t)}else e.push({type:"text",value:String(t)})}function u(e,t,n){var r=n;return e.number||e.positiveNumber?isNaN(r)||""===r||(r=Number(r)):(e.boolean||e.overloadedBoolean)&&("string"!==typeof r||""!==r&&i(n)!==i(t)||(r=!0)),r}},44099:function(e,t,n){"use strict";var r=n(41893),i=n(36818)(r,"div");i.displayName="html",e.exports=i},2292:function(e,t,n){"use strict";e.exports=n(44099)},4882:function(e,t){"use strict";t.q=function(e){var t,r=[],o=String(e||i),a=o.indexOf(n),s=0,l=!1;for(;!l;)-1===a&&(a=o.length,l=!0),!(t=o.slice(s,a).trim())&&l||r.push(t),s=a+1,a=o.indexOf(n,s);return r};var n=",",r=" ",i=""},50011:function(e,t,n){"use strict";var r=n(58245),i=n(89715),o=n(84907),a="data";e.exports=function(e,t){var n=r(t),p=t,h=o;if(n in e.normal)return e.property[e.normal[n]];n.length>4&&n.slice(0,4)===a&&s.test(t)&&("-"===t.charAt(4)?p=function(e){var t=e.slice(5).replace(l,d);return a+t.charAt(0).toUpperCase()+t.slice(1)}(t):t=function(e){var t=e.slice(4);if(l.test(t))return e;t=t.replace(c,u),"-"!==t.charAt(0)&&(t="-"+t);return a+t}(t),h=i);return new h(p,t)};var s=/^data[-\w.:]+$/i,l=/-[a-z]/g,c=/[A-Z]/g;function u(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},41893:function(e,t,n){"use strict";var r=n(16619),i=n(73470),o=n(83551),a=n(53464),s=n(24013),l=n(42785);e.exports=r([o,i,a,s,l])},24013:function(e,t,n){"use strict";
75var r=n(38146),i=n(81299),o=r.booleanish,a=r.number,s=r.spaceSeparated;e.exports=i({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:o,ariaAutoComplete:null,ariaBusy:o,ariaChecked:o,ariaColCount:a,ariaColIndex:a,ariaColSpan:a,ariaControls:s,ariaCurrent:null,ariaDescribedBy:s,ariaDetails:null,ariaDisabled:o,ariaDropEffect:s,ariaErrorMessage:null,ariaExpanded:o,ariaFlowTo:s,ariaGrabbed:o,ariaHasPopup:null,ariaHidden:o,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:s,ariaLevel:a,ariaLive:null,ariaModal:o,ariaMultiLine:o,ariaMultiSelectable:o,ariaOrientation:null,ariaOwns:s,ariaPlaceholder:null,ariaPosInSet:a,ariaPressed:o,ariaReadOnly:o,ariaRelevant:null,ariaRequired:o,ariaRoleDescription:s,ariaRowCount:a,ariaRowIndex:a,ariaRowSpan:a,ariaSelected:o,ariaSetSize:a,ariaSort:null,ariaValueMax:a,ariaValueMin:a,ariaValueNow:a,ariaValueText:null,role:null}})},42785:function(e,t,n){"use strict";var r=n(38146),i=n(81299),o=n(11946),a=r.boolean,s=r.overloadedBoolean,l=r.booleanish,c=r.number,u=r.spaceSeparated,d=r.commaSeparated;e.exports=i({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:o,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:a,allowPaymentRequest:a,allowUserMedia:a,alt:null,as:null,async:a,autoCapitalize:null,autoComplete:u,autoFocus:a,autoPlay:a,capture:a,charSet:null,checked:a,cite:null,className:u,cols:c,colSpan:null,content:null,contentEditable:l,controls:a,controlsList:u,coords:c|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:a,defer:a,dir:null,dirName:null,disabled:a,download:s,draggable:l,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:a,formTarget:null,headers:u,height:c,hidden:a,high:c,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:a,itemId:null,itemProp:u,itemRef:u,itemScope:a,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:a,low:c,manifest:null,max:null,maxLength:c,media:null,method:null,min:null,minLength:c,multiple:a,muted:a,name:null,nonce:null,noModule:a,noValidate:a,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:a,optimum:c,pattern:null,ping:u,placeholder:null,playsInline:a,poster:null,preload:null,readOnly:a,referrerPolicy:null,rel:u,required:a,reversed:a,rows:c,rowSpan:c,sandbox:u,scope:null,scoped:a,seamless:a,selected:a,shape:null,size:c,sizes:null,slot:null,span:c,spellCheck:l,src:null,srcDoc:null,srcLang:null,srcSet:d,start:c,step:null,style:null,tabIndex:c,target:null,title:null,translate:null,type:null,typeMustMatch:a,useMap:null,value:l,width:c,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:c,borderColor:null,bottomMargin:c,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:a,declare:a,event:null,face:null,frame:null,frameBorder:null,hSpace:c,leftMargin:c,link:null,longDesc:null,lowSrc:null,marginHeight:c,marginWidth:c,noResize:a,noHref:a,noShade:a,noWrap:a,object:null,profile:null,prompt:null,rev:null,rightMargin:c,rules:null,scheme:null,scrolling:l,standby:null,summary:null,text:null,topMargin:c,valueType:null,version:null,vAlign:null,vLink:null,vSpace:c,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:a,disableRemotePlayback:a,prefix:null,property:null,results:c,security:null,unselectable:null}})},11946:function(e,t,n){"use strict";var r=n(49639);e.exports=function(e,t){return r(e,t.toLowerCase())}},49639:function(e){"use strict";e.exports=function(e,t){return t in e?e[t]:t}},81299:function(e,t,n){"use strict";var r=n(58245),i=n(29360),o=n(89715);e.exports=function(e){var t,n,a=e.space,s=e.mustUseProperty||[],l=e.attributes||{},c=e.properties,u=e.transform,d={},p={};for(t in c)n=new o(t,u(l,t),c[t],a),-1!==s.indexOf(t)&&(n.mustUseProperty=!0),d[t]=n,p[r(t)]=t,p[r(n.attribute)]=t;return new i(d,p,a)}},89715:function(e,t,n){"use strict";var r=n(84907),i=n(38146);e.exports=s,s.prototype=new r,s.prototype.defined=!0;var o=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],a=o.length;function s(e,t,n,s){var c,u=-1;for(l(this,"space",s),r.call(this,e,t);++u<a;)l(this,c=o[u],(n&i[c])===i[c])}function l(e,t,n){n&&(e[t]=n)}},84907:function(e){"use strict";e.exports=n;var t=n.prototype;function n(e,t){this.property=e,this.attribute=t}t.space=null,t.attribute=null,t.property=null,t.boolean=!1,t.booleanish=!1,t.overloadedBoolean=!1,t.number=!1,t.commaSeparated=!1,t.spaceSeparated=!1,t.commaOrSpaceSeparated=!1,t.mustUseProperty=!1,t.defined=!1},16619:function(e,t,n){"use strict";var r=n(95644),i=n(29360);e.exports=function(e){var t,n,o=e.length,a=[],s=[],l=-1;for(;++l<o;)t=e[l],a.push(t.property),s.push(t.normal),n=t.space;return new i(r.apply(null,a),r.apply(null,s),n)}},29360:function(e){"use strict";e.exports=n;var t=n.prototype;function n(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}t.space=null,t.normal={},t.property={}},38146:function(e,t){"use strict";var n=0;function r(){return Math.pow(2,++n)}t.boolean=r(),t.booleanish=r(),t.overloadedBoolean=r(),t.number=r(),t.spaceSeparated=r(),t.commaSeparated=r(),t.commaOrSpaceSeparated=r()},73470:function(e,t,n){"use strict";var r=n(81299);
75e.exports=r({space:"xlink",transform:function(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}})},83551:function(e,t,n){"use strict";var r=n(81299);e.exports=r({space:"xml",transform:function(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}})},53464:function(e,t,n){"use strict";var r=n(81299),i=n(11946);e.exports=r({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:i,properties:{xmlns:null,xmlnsXLink:null}})},58245:function(e){"use strict";e.exports=function(e){return e.toLowerCase()}},94509:function(e,t){"use strict";t.q=function(e){var t=String(e||n).trim();return t===n?[]:t.split(i)};var n="",r=" ",i=/[ \t\n\r\f]+/g},56201:function(e,t,n){"use strict";n.d(t,{AO:function(){return p},Rr:function(){return h},rc:function(){return r},zR:function(){return l}});var r,i=n(58168);!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(r||(r={}));var o=function(e){return e};var a="beforeunload",s="popstate";function l(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,l=n.history;function f(){var e=n.location,t=e.pathname,r=e.search,i=e.hash,a=l.state||{};return[a.idx,o({pathname:t,search:r,hash:i,state:a.usr||null,key:a.key||"default"})]}var m=null;n.addEventListener(s,(function(){if(m)w.call(m),m=null;else{var e=r.Pop,t=f(),n=t[0],i=t[1];if(w.length){if(null!=n){var o=v-n;o&&(m={action:e,location:i,retry:function(){T(-1*o)}},T(o))}}else k(e)}}));var g=r.Pop,b=f(),v=b[0],y=b[1],x=u(),w=u();function A(e){return"string"===typeof e?e:p(e)}function E(e,t){return void 0===t&&(t=null),o((0,i.A)({pathname:y.pathname,hash:"",search:""},"string"===typeof e?h(e):e,{state:t,key:d()}))}function S(e,t){return[{usr:e.state,key:e.key,idx:t},A(e)]}function _(e,t,n){return!w.length||(w.call({action:e,location:t,retry:n}),!1)}function k(e){g=e;var t=f();v=t[0],y=t[1],x.call({action:g,location:y})}function T(e){l.go(e)}null==v&&(v=0,l.replaceState((0,i.A)({},l.state,{idx:v}),""));
75var C={get action(){return g},get location(){return y},createHref:A,push:function e(t,i){var o=r.Push,a=E(t,i);if(_(o,a,(function(){e(t,i)}))){var s=S(a,v+1),c=s[0],u=s[1];try{l.pushState(c,"",u)}catch(d){n.location.assign(u)}k(o)}},replace:function e(t,n){var i=r.Replace,o=E(t,n);if(_(i,o,(function(){e(t,n)}))){var a=S(o,v),s=a[0],c=a[1];l.replaceState(s,"",c),k(i)}},go:T,back:function(){T(-1)},forward:function(){T(1)},listen:function(e){return x.push(e)},block:function(e){var t=w.push(e);return 1===w.length&&n.addEventListener(a,c),function(){t(),w.length||n.removeEventListener(a,c)}}};return C}function c(e){e.preventDefault(),e.returnValue=""}function u(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function d(){return Math.random().toString(36).substr(2,8)}function p(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,i=void 0===r?"":r,o=e.hash,a=void 0===o?"":o;return i&&"?"!==i&&(n+="?"===i.charAt(0)?i:"?"+i),a&&"#"!==a&&(n+="#"===a.charAt(0)?a:"#"+a),n}function h(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}},23876:function(e,t,n){"use strict";var r=n(50630),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(f){var i=h(n);i&&i!==f&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var b=a[g];if(!o[b]&&(!r||!r[b])&&(!m||!m[b])&&(!s||!s[b])){var v=p(n,b);try{c(t,b,v)}catch(y){}}}}return t}},72138:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case l:return e;default:return t}}case i:return t}}}function A(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return A(e)||w(e)===u},t.isConcurrentMode=A,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===d||e===s||e===a||e===h||e===f||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===v||e.$$typeof===y||e.$$typeof===x||e.$$typeof===b)},t.typeOf=w},50630:function(e,t,n){"use strict";e.exports=n(72138)},24814:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;
vendor: 4,475 bytes, line 75
75\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!==typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,p=1;function h(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function f(){var e={line:d,column:p};return function(t){return t.position=new m(e),y(),t}}function m(e){this.start=e,this.end={line:d,column:p},this.source=l.source}m.prototype.content=e;var g=[];function b(t){var n=new Error(l.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=p,n.source=e,!l.silent)throw n;g.push(n)}function v(t){var n=t.exec(e);if(n){var r=n[0];return h(r),e=e.slice(r.length),n}}function y(){v(r)}function x(e){var t;for(e=e||[];t=w();)!1!==t&&e.push(t);return e}function w(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return b("End of comment missing");var r=e.slice(2,n-2);return p+=2,h(r),e=e.slice(n),p+=2,t({type:"comment",comment:r})}}function A(){var e=f(),n=v(i);if(n){if(w(),!v(o))return b("property missing ':'");var r=v(a),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return v(s),l}}return y(),function(){var e,t=[];for(x(t);e=A();)!1!==e&&(t.push(e),x(t));return t}()}},22434:function(e,t,n){var r=n(20220)(n(14759),"DataView");e.exports=r},1111:function(e,t,n){var r=n(76958),i=n(41176),o=n(1787),a=n(70231),s=n(27455);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},85661:function(e,t,n){var r=n(5088),i=n(10150),o=n(7889),a=n(44349),s=n(33077);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},81465:function(e,t,n){var r=n(20220)(n(14759),"Map");e.exports=r},54467:function(e,t,n){var r=n(40738),i=n(70708),o=n(26823),a=n(20475),s=n(77859);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},30202:function(e,t,n){var r=n(20220)(n(14759),"Promise");e.exports=r},57887:function(e,t,n){var r=n(20220)(n(14759),"Set");e.exports=r},36669:function(e,t,n){var r=n(54467),i=n(62274),o=n(69757);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},25535:function(e,t,n){var r=n(85661),i=n(44710),o=n(78384),a=n(87379),s=n(80799),l=n(12791);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},4635:function(e,t,n){var r=n(14759).Symbol;e.exports=r},48246:function(e,t,n){var r=n(14759).Uint8Array;e.exports=r},94801:function(e,t,n){var r=n(20220)(n(14759),"WeakMap");e.exports=r},46860:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},37405:function(e,t,n){var r=n(44102),i=n(24578),o=n(12279),a=n(6794),s=n(97059),l=n(71641),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),u=!n&&i(e),d=!n&&!u&&a(e),p=!n&&!u&&!d&&l(e),h=n||u||d||p,f=h?r(e.length,String):[],m=f.length;for(var g in e)!t&&!c.call(e,g)||h&&("length"==g||d&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||f.push(g);return f}},61570:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},87518:function(e){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},61516:function(e){e.exports=function(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}},56010:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},29508:function(e){e.exports=function(e){return e.split("")}},71443:function(e){var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},45099:function(e,t,n){var r=n(44206);e.exports=function(e,t){for(var n=e.length;n--;
vendor: 1,758 bytes, line 75
75)if(r(e[n][0],t))return n;return-1}},10366:function(e,t,n){var r=n(88925);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},93031:function(e,t,n){var r=n(45211)();e.exports=r},70423:function(e,t,n){var r=n(93031),i=n(65724);e.exports=function(e,t){return e&&r(e,t,i)}},10052:function(e,t,n){var r=n(26463),i=n(92535);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},54761:function(e,t,n){var r=n(87518),i=n(12279);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},22022:function(e,t,n){var r=n(4635),i=n(81581),o=n(65336),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},22320:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e,n){return null!=e&&t.call(e,n)}},14591:function(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},73012:function(e,t,n){var r=n(22022),i=n(39248);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},1404:function(e,t,n){var r=n(92130),i=n(39248);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!==t&&n!==n:r(t,n,o,a,e,s))}},92130:function(e,t,n){var r=n(25535),i=n(49757),o=n(21416),a=n(16195),s=n(25531),l=n(12279),c=n(6794),u=n(71641),d="[object Arguments]",p="[object Array]",h="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,b){var v=l(e),y=l(t),x=v?p:s(e),w=y?p:s(t),A=(x=x==d?h:x)==h,E=(w=w==d?h:w)==h,S=x==w;if(S&&c(e)){if(!c(t))return!1;v=!0,A=!1}if(S&&!A)return b||(b=new r),v||u(e)?i(e,t,n,m,g,b):o(e,t,x,n,m,g,b);if(!(1&n)){var _=A&&f.call(e,"__wrapped__"),k=E&&f.call(t,"__wrapped__");
vendor: 5,093 bytes, line 75
75if(_||k){var T=_?e.value():e,C=k?t.value():t;return b||(b=new r),g(T,C,n,m,b)}}return!!S&&(b||(b=new r),a(e,t,n,m,g,b))}},24489:function(e,t,n){var r=n(25535),i=n(1404);e.exports=function(e,t,n,o){var a=n.length,s=a,l=!o;if(null==e)return!s;for(e=Object(e);a--;){var c=n[a];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var u=(c=n[a])[0],d=e[u],p=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var h=new r;if(o)var f=o(d,p,u,e,t,h);if(!(void 0===f?i(p,d,3,o,h):f))return!1}}return!0}},57949:function(e,t,n){var r=n(93008),i=n(73306),o=n(24567),a=n(29131),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?p:s).test(a(e))}},38183:function(e,t,n){var r=n(22022),i=n(5776),o=n(39248),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},15127:function(e,t,n){var r=n(79769),i=n(44104),o=n(69002),a=n(12279),s=n(78857);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},37462:function(e,t,n){var r=n(82161),i=n(25112),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},79769:function(e,t,n){var r=n(24489),i=n(13334),o=n(14243);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},44104:function(e,t,n){var r=n(1404),i=n(87946),o=n(15321),a=n(65916),s=n(29794),l=n(14243),c=n(92535);e.exports=function(e,t){return a(e)&&s(t)?l(c(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},29343:function(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},84753:function(e,t,n){var r=n(10052);e.exports=function(e){return function(t){return r(t,e)}}},42106:function(e){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},4978:function(e){e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},44102:function(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},91582:function(e,t,n){var r=n(4635),i=n(61570),o=n(12279),a=n(50184),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},35639:function(e){e.exports=function(e){return function(t){return e(t)}}},63445:function(e){e.exports=function(e,t){return e.has(t)}},26463:function(e,t,n){var r=n(12279),i=n(65916),o=n(17044),a=n(31627);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},16212:function(e,t,n){var r=n(4978);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},64123:function(e,t,n){var r=n(14759)["__core-js_shared__"];e.exports=r},45211:function(e){e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}},66689:function(e,t,n){var r=n(16212),i=n(21536),o=n(10078),a=n(31627);e.exports=function(e){return function(t){t=a(t);var n=i(t)?o(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}},59189:function(e,t,n){var r=n(61516),i=n(91454),o=n(71047),a=RegExp("['\u2019]","g");e.exports=function(e){return function(t){return r(o(i(t).replace(a,"")),e,"")}}},2269:function(e,t,n){var r=n(42106)({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"
75c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"});e.exports=r},88925:function(e,t,n){var r=n(20220),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=i},49757:function(e,t,n){var r=n(36669),i=n(56010),o=n(63445);e.exports=function(e,t,n,a,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var p=l.get(e),h=l.get(t);if(p&&h)return p==t&&h==e;var f=-1,m=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++f<u;){var b=e[f],v=t[f];if(a)var y=c?a(v,b,f,t,e,l):a(b,v,f,e,t,l);if(void 0!==y){if(y)continue;m=!1;break}if(g){if(!i(t,(function(e,t){if(!o(g,t)&&(b===e||s(b,e,n,a,l)))return g.push(t)}))){m=!1;break}}else if(b!==v&&!s(b,v,n,a,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},21416:function(e,t,n){var r=n(4635),i=n(48246),o=n(44206),a=n(49757),s=n(90943),l=n(26557),c=r?r.prototype:void 0,u=c?c.valueOf
vendor: 5,076 bytes, line 75
75:void 0;e.exports=function(e,t,n,r,c,d,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var f=1&r;if(h||(h=l),e.size!=t.size&&!f)return!1;var m=p.get(e);if(m)return m==t;r|=2,p.set(e,t);var g=a(h(e),h(t),r,c,d,p);return p.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},16195:function(e,t,n){var r=n(93660),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var p=c[d];if(!(l?p in t:i.call(t,p)))return!1}var h=s.get(e),f=s.get(t);if(h&&f)return h==t&&f==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=l;++d<u;){var b=e[p=c[d]],v=t[p];if(o)var y=l?o(v,b,p,t,e,s):o(b,v,p,e,t,s);if(!(void 0===y?b===v||a(b,v,n,o,s):y)){m=!1;break}g||(g="constructor"==p)}if(m&&!g){var x=e.constructor,w=t.constructor;x==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(m=!1)}return s.delete(e),s.delete(t),m}},16658:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},93660:function(e,t,n){var r=n(54761),i=n(98194),o=n(65724);e.exports=function(e){return r(e,o,i)}},77101:function(e,t,n){var r=n(94672);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},13334:function(e,t,n){var r=n(29794),i=n(65724);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},20220:function(e,t,n){var r=n(57949),i=n(98166);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},81581:function(e,t,n){var r=n(4635),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},98194:function(e,t,n){var r=n(46860),i=n(71515),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},25531:function(e,t,n){var r=n(22434),i=n(81465),o=n(30202),a=n(57887),s=n(94801),l=n(22022),c=n(29131),u="[object Map]",d="[object Promise]",p="[object Set]",h="[object WeakMap]",f="[object DataView]",m=c(r),g=c(i),b=c(o),v=c(a),y=c(s),x=l;(r&&x(new r(new ArrayBuffer(1)))!=f||i&&x(new i)!=u||o&&x(o.resolve())!=d||a&&x(new a)!=p||s&&x(new s)!=h)&&(x=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case m:return f;case g:return u;case b:return d;case v:return p;case y:return h}return t}),e.exports=x},98166:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},10964:function(e,t,n){var r=n(26463),i=n(24578),o=n(12279),a=n(97059),s=n(5776),l=n(92535);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var p=l(t[c]);if(!(d=null!=e&&n(e,p)))break;e=e[p]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(p,u)&&(o(e)||i(e))}},21536:function(e){var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},98300:function(e){var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},76958:function(e,t,n){var r=n(73616);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},41176:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},1787:function(e,t,n){var r=n(73616),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},70231:function(e,t,n){var r=n(73616),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},27455:function(e,t,n){var r=n(73616);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},97059:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},65916:function(e,t,n){var r=n(12279),i=n(50184),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}},94672:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},73306:function(e,t,n){var r=n(64123),i=function(){var e=/[^.]+$/.exec(r&&r.ke
75ys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!i&&i in e}},82161:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},29794:function(e,t,n){var r=n(24567);e.exports=function(e){return e===e&&!r(e)}},5088:function(e){e.exports=function(){this.__data__=[],this.size=0}},10150:function(e,t,n){var r=n(45099),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},7889:function(e,t,n){var r=n(45099);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},44349:function(e,t,n){var r=n(45099);e.exports=function(e){return r(this.__data__,e)>-1}},33077:function(e,t,n){var r=n(45099);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},40738:function(e,t,n){var r=n(1111),i=n(85661),o=n(81465);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},70708:function(e,t,n){var r=n(77101);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},26823:function(e,t,n){var r=n(77101);e.exports=function(e){return r(this,e).get(e)}},20475:function(e,t,n){var r=n(77101);e.exports=function(e){return r(this,e).has(e)}},77859:function(e,t,n){var r=n(77101);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},90943:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},14243:function(e){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},23734:function(e,t,n){var r=n(42434);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},73616:function(e,t,n){var r=n(20220)(Object,"create");e.exports=r},25112:function(e,t,n){var r=n(62621)(Object.keys,Object);e.exports=r},82479:function(e,t,n){e=n.nmd(e);var r=n(16658),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s},65336:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},62621:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},14759:function(e,t,n){var r=n(16658),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},62274:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},69757:function(e){e.exports=function(e){return this.__data__.has(e)}},26557:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},44710:function(e,t,n){var r=n(85661);e.exports=function(){this.__data__=new r,this.size=0}},78384:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},87379:function(e){e.exports=function(e){return this.__data__.get(e)}},80799:function(e){e.exports=function(e){return this.__data__.has(e)}},12791:function(e,t,n){var r=n(85661),i=n(81465),o=n(54467);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},10078:function(e,t,n){var r=n(29508),i=n(21536),o=n(29892);e.exports=function(e){return i(e)?o(e):r(e)}},17044:function(e,t,n){var r=n(23734),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},92535:function(e,t,n){var r=n(50184);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},29131:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},29892:function(e){var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+i+")"+"?",c="[\\ufe0e\\ufe0f]?",u=c+l+("(?:\\u200d(?:"+[o,a,s].join("|")+")"+c+l+")*"),d="(?:"+[o+r+"?",r,a,s,n].join("|")+")",p=RegExp(i+"(?="+i+")|"+d+u,"g");e.exports=function(e){return e.match(p)||[]}},3315:function(e){var t="\\ud800-\\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",a="["+o+"]",s="\\d+",l="["+n+"]",c="["+r+"]",u="[^"+t+o+s+n+r+i+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",h="["+i+"]",f="(?:"+c+"|"+u+")",m="(?:"+h+"|"+u+")",g="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",b="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",v="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",y="[\\ufe0e\\ufe0f]?",x=y+v+("(?:\\u200d(?:"+["[^"+t+"]",d,p].join("|")+")"+y+v+")*"),w="(?:"+[l,d,p].join("|")+")"+x,A=RegExp([h+"?"+c+"+"+g+"(?="+[a,h,"$"].join("|")+")",m+"+"+b+"(?="+[a,h+f,"$"].join("|")+")",h+"?"+f+"+"+g,h+"+"+b,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",s,w].join("|"),"g");e.exports=function(e){return e.match(A)||[]}},56808:function(e,t,n){var r=n(36014),i=n(59189)((function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)}));e.exports=i},36014:function(e,t,n){var r=n(31627),i=n(3414);e.exports=function(e){return i(r(e).toLowerCase())}},91454:function(e,t,n){var r=n(2269),i=n(31627),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
757f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(o,r).replace(a,"")}},44206:function(e){e.exports=function(e,t){return e===t||e!==e&&t!==t}},87946:function(e,t,n){var r=n(10052);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},26094:function(e,t,n){var r=n(22320),i=n(10964);e.exports=function(e,t){return null!=e&&i(e,t,r)}},15321:function(e,t,n){var r=n(14591),i=n(10964);e.exports=function(e,t){return null!=e&&i(e,t,r)}},69002:function(e){e.exports=function(e){return e}},24578:function(e,t,n){var r=n(73012),i=n(39248),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},12279:function(e){var t=Array.isArray;e.exports=t},97840:function(e,t,n){var r=n(93008),i=n(5776);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},6794:function(e,t,n){e=n.nmd(e);var r=n(14759),i=n(63721),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l},59418:function(e,t,n){var r=n(1404);e.exports=function(e,t){return r(e,t)}},93008:function(e,t,n){var r=n(22022),i=n(24567);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},5776:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},24567:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},39248:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},50184:function(e,t,n){var r=n(22022),i=n(39248);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},71641:function(e,t,n){var r=n(38183),i=n(35639),o=n(82479),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},65724:function(e,t,n){var r=n(37405),i=n(37462),o=n(97840);e.exports=function(e){return o(e)?r(e):i(e)}},6540:function(e,t,n){var r=n(10366),i=n(70423),o=n(15127);e.exports=function(e,t){var n={};return t=o(t,3),i(e,(function(e,i,o){r(n,t(e,i,o),e)})),n}},6638:function(e,t,n){var r=n(10366),i=n(70423),o=n(15127);e.exports=function(e,t){var n={};return t=o(t,3),i(e,(function(e,i,o){r(n,i,t(e,i,o))})),n}},42434:function(e,t,n){var r=n(54467);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},78857:function(e,t,n){var r=n(29343),i=n(84753),o=n(65916),a=n(92535);e.exports=function(e){return o(e)?r(a(e)):i(e)}},51170:function(e,t,n){var r=n(59189)((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));e.exports=r},71515:function(e){e.exports=function(){return[]}},63721:function(e){e.exports=function(){return!1}},31627:function(e,t,n){var r=n(91582);e.exports=function(e){return null==e?"":r(e)}},3414:function(e,t,n){var r=n(66689)("toUpperCase");e.exports=r},71047:function(e,t,n){var r=n(71443),i=n(98300),o=n(31627),a=n(3315);e.exports=function(e,t,n){return e=o(e),void 0===(t=n?void 0:t)?i(e)?a(e):r(e):e.match(t)||[]}},36230:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(9950);const i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(((e,t,n)=>Boolean(e)&&n.indexOf(e)===t)).join(" ")};var o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const a=(0,r.forwardRef)(((e,t)=>{let{color:n="currentColor",size:a=24,strokeWidth:s=2,absoluteStrokeWidth:l,className:c="",children:u,iconNode:d,...p}=e;return(0,r.createElement)("svg",{ref:t,...o,width:a,height:a,stroke:n,strokeWidth:l?24*Number(s)/Number(a):s,className:i("lucide",c),...p},[...d.map((e=>{let[t,n]=e;return(0,r.createElement)(t,n)})),...Array.isArray(u)?u:[u]])}
75)),s=(e,t)=>{const n=(0,r.forwardRef)(((n,o)=>{let{className:s,...l}=n;return(0,r.createElement)(a,{ref:o,iconNode:t,className:i(`lucide-${c=e,c.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,s),...l});var c}));return n.displayName=`${e}`,n}},40978:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});const r=(0,n(36230).A)("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]])},58950:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.anchorRef=function(e){let{setAnchorEl:t}=e;return e=>{e&&t(e)}},t.bindContextMenu=function(e){return{...a(e),onContextMenu:t=>{t.preventDefault(),e.open(t)}}},t.bindDialog=function(e){let{isOpen:t,close:n}=e;return{open:t,onClose:n}},t.bindDoubleClick=function(e){let{isOpen:t,open:n,popupId:r,variant:i}=e;return{["popover"===i?"aria-controls":"aria-describedby"]:t?r:null,"aria-haspopup":"popover"===i||void 0,onDoubleClick:n}},t.bindFocus=function(e){const{open:t,onBlur:n}=e;return{...a(e),onFocus:t,onBlur:n}},t.bindHover=function(e){const{open:t,onMouseLeave:n}=e;return{...a(e),onTouchStart:t,onMouseOver:t,onMouseLeave:n}},t.bindMenu=function(e){let{isOpen:t,anchorEl:n,anchorPosition:r,close:i,popupId:o,onMouseLeave:a,disableAutoFocus:s,_openEventType:l}=e;return{id:o,anchorEl:n,anchorPosition:r,anchorReference:"contextmenu"===l?"anchorPosition":"anchorEl",open:t,onClose:i,onMouseLeave:a,...s&&{autoFocus:!1,disableAutoFocusItem:!0,disableAutoFocus:!0,disableEnforceFocus:!0,disableRestoreFocus:!0}}},t.bindPopover=function(e){let{isOpen:t,anchorEl:n,anchorPosition:r,close:i,popupId:o,onMouseLeave:a,disableAutoFocus:s,_openEventType:l}=e;return{id:o,anchorEl:n,anchorPosition:r,anchorReference:"contextmenu"===l?"anchorPosition":"anchorEl",open:t,onClose:i,onMouseLeave:a,...s&&{disableAutoFocus:!0,disableEnforceFocus:!0,disableRestoreFocus:!0}}},t.bindPopper=function(e){let{isOpen:t,anchorEl:n,popupId:r,onMouseLeave:i}=e;return{id:r,anchorEl:n,open:t,onMouseLeave:i}},t.bindToggle=function(e){return{...a(e),onClick:e.toggle,onTouchStart:e.toggle}},t.bindTrigger=function(e){return{...a(e),onClick:e.open,onTouchStart:e.open}},t.createPopupState=function(e){let{state:t,setState:n,parentPopupState:r,popupId:o,variant:a,disableAutoFocus:l}=e;const{isOpen:c,setAnchorElUsed:u,anchorEl:d,anchorPosition:p,hovered:h,focused:f,_openEventType:m,_childPopupState:g,_deferNextOpen:b,_deferNextClose:v}=t;let y=t;const x=e=>{(function(e,t){for(let n in t)if(Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==t[n])return!0;return!1})(y,e)&&n(y={...y,...e})},w=e=>{const t=e&&e.type,n=e&&e.currentTarget,o=e&&e.clientX,a=e&&e.clientY,s="number"===typeof o&&"number"===typeof a?{left:o,top:a}:void 0;if("touchstart"===t)return void x({_deferNextOpen:!0});const l=()=>{if(e||u||function(e,t){if(i[e])return;i[e]=!0,console.error("[material-ui-popup-state] WARNING",t)}("missingEventOrAnchorEl","eventOrAnchorEl should be defined if setAnchorEl is not used"),r){if(!r.isOpen)return;r._setChildPopupState(E)}const o={isOpen:!0,anchorPosition:s,hovered:"mouseover"===t||h,focused:"focus"===t||f,_openEventType:t};n?u||(o.anchorEl=n):e&&(o.anchorEl=e),x(o)};b?(x({_deferNextOpen:!1}),setTimeout(l,0)):l()},A=e=>{if("touchstart"===(e&&e.type))return void x({_deferNextClose:!0});const t=()=>{g&&g.close(),r&&r._setChildPopupState(null),x({isOpen:!1,hovered:!1,focused:!1})};v?(x({_deferNextClose:!1}),setTimeout(t,0)):t()},E={anchorEl:d,anchorPosition:p,setAnchorEl:e=>{x({setAnchorElUsed:!0,anchorEl:e})},setAnchorElUsed:u,popupId:o,variant:a,isOpen:c,open:w,close:A,toggle:e=>{c?A(e):w(e)},setOpen:(e,t)=>{e?w(t):A(t)},onBlur:e=>{const t=e.relatedTarget;f&&!s(t,E)&&(h?x({focused:!1}):A(e))},onMouseLeave:e=>{const t=e.relatedTarget;h&&!s(t,E)&&(f?x({hovered:!1}):A(e))},disableAutoFocus:null!==l&&void 0!==l?l:Boolean(h||f),_openEventType:m,_childPopupState:g,_setChildPopupState:e=>x({_childPopupState:e})};return E},t.initCoreState=void 0;
75!function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=e[a]}i.default=e,n&&n.set(e,i)}(n(9950));function r(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}const i={};const o={isOpen:!1,setAnchorElUsed:!1,anchorEl:null,anchorPosition:void 0,hovered:!1,focused:!1,_openEventType:null,_childPopupState:null,_deferNextOpen:!1,_deferNextClose:!1};function a(e){let{isOpen:t,open:n,popupId:r,variant:i}=e;return{..."popover"===i?{"aria-haspopup":!0,"aria-controls":t&&null!=r?r:void 0}:"popper"===i?{"aria-describedby":t&&null!=r?r:void 0}:void 0}}function s(e,t){const{anchorEl:n,_childPopupState:r}=t;return l(n,e)||l(function(e){let{popupId:t}=e;return t&&"undefined"!==typeof document?document.getElementById(t):null}(t),e)||null!=r&&s(e,r)}function l(e,t){if(!e)return!1;for(;t;){if(t===e)return!0;t=t.parentElement}return!1}t.initCoreState=o},89073:function(e,t,n){"use strict";Object.defineProperty(t,"_4",{enumerable:!0,get:function(){return a.bindPopper}}),Object.defineProperty(t,"o2",{enumerable:!0,get:function(){return a.bindToggle}}),t.Ay=void 0;var r,i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(n(9950)),o=(r=n(11942))&&r.__esModule?r:{default:r},a=n(58950);function s(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class c extends i.Component{constructor(){super(...arguments),l(this,"state",a.initCoreState),l(this,"_mounted",!0),l(this,"_setStateIfMounted",(e=>{this._mounted&&this.setState(e)}))}componentWillUnmount(){this._mounted=!1}componentDidUpdate(e,t){const{popupId:n,disableAutoFocus:r}=this.props;if(!r&&"object"===typeof document&&n&&(n!==e.popupId||this.state.anchorEl!==t.anchorEl)){const e=document.getElementById(n);e&&e.focus()}}render(){const{children:e,popupId:t,variant:n,parentPopupState:r,disableAutoFocus:i}=this.props,o=e((0,a.createPopupState)({state:this.state,setState:this._setStateIfMounted,popupId:t,variant:n,parentPopupState:r,disableAutoFocus:i}));return null==o?null:o}}t.Ay=c,l(c,"propTypes",{children:o.default.func.isRequired,popupId:o.default.string,variant:o.default.oneOf(["popover","popper"]).isRequired,parentPopupState:o.default.object,disableAutoFocus:o.default.bool})},73114:function(module,__unused_webpack_exports,__webpack_require__){var root,factory;root=globalThis,factory=()=>(()=>{"use strict";var __webpack_modules__=[,(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VerbosityLevel=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.RenderingIntentFlag=t.PromiseCapability=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.MAX_IMAGE_SIZE_TO_CACHE=t.LINE_FACTOR=t.LINE_DESCENT_FACTOR=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FeatureTest=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.BASELINE_FACTOR=t.AnnotationType=t.AnnotationReplyType=t.AnnotationPrefix=t.AnnotationMode=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationEditorType=t.AnnotationEditorPrefix=t.AnnotationEditorParamsType=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void 0,t.assert=function(e,t){e||s(t)},t.bytesToString=u,t.createValidAbsoluteUrl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e)return null;try{if(n&&"string"===typeof e){if(n.addDefaultProtocol&&e.startsWith("www.")){const t=e.match(/\./g);t?.length>=2&&(e=`http://${e}`)}if(n.tryConvertEncoding)try{e=f(e)}catch{}}const r=t?new URL(e,t):new URL(e);if(function(e){switch(e?.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(r))return r}catch{}return null},t.getModificationDate=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")].join("")},t.getUuid=function(){if("undefined"!==typeof crypto&&"function"===typeof crypto?.randomUUID)return crypto.randomUUID();const e=new Uint8Array(32);if("undefined"!==typeof crypto&&"function"===typeof crypto?.getRandomValues)crypto.getRandomValues(e);else for(let t=0;t<32;t++)e[t]=Math.floor(255*Math.random());return u(e)},t.getVerbosityLevel=function(){return o},t.info=function(e){o>=i.INFOS&&console.log(`Info: ${e}`)},t.isArrayBuffer=function(e){return"object"===typeof e&&void 0!==e?.byteLength},t.isArrayEqual=function(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0},t.isNodeJS=void 0,t.normalizeUnicode=function(e){return m||(m=/([\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,g=new Map([["\ufb05","\u017ft"]])),e.replaceAll(m,((e,t,n
75)=>t?t.normalize("NFKC"):g.get(n)))},t.objectFromMap=function(e){const t=Object.create(null);for(const[n,r]of e)t[n]=r;return t},t.objectSize=function(e){return Object.keys(e).length},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(o=e)},t.shadow=l,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=d,t.stringToPDFString=function(e){if(e[0]>="\xef"){let t;if("\xfe"===e[0]&&"\xff"===e[1]?t="utf-16be":"\xff"===e[0]&&"\xfe"===e[1]?t="utf-16le":"\xef"===e[0]&&"\xbb"===e[1]&&"\xbf"===e[2]&&(t="utf-8"),t)try{const n=new TextDecoder(t,{fatal:!0}),r=d(e);return n.decode(r)}catch(n){a(`stringToPDFString: "${n}".`)}}const t=[];for(let r=0,i=e.length;r<i;r++){const n=h[e.charCodeAt(r)];t.push(n?String.fromCharCode(n):e.charAt(r))}return t.join("")},t.stringToUTF8String=f,t.unreachable=s,t.utf8StringToString=function(e){return unescape(encodeURIComponent(e))},t.warn=a;const n="object"===typeof process&&process+""==="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&"browser"!==process.type);t.isNodeJS=n,t.IDENTITY_MATRIX=[1,0,0,1,0,0],t.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],t.MAX_IMAGE_SIZE_TO_CACHE=1e7,t.LINE_FACTOR=1.35,t.LINE_DESCENT_FACTOR=.35;const r=.35/1.35;t.BASELINE_FACTOR=r,t.RenderingIntentFlag={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256},t.AnnotationMode={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},t.AnnotationEditorPrefix="pdfjs_internal_editor_",t.AnnotationEditorType={DISABLE:-1,NONE:0,FREETEXT:3,STAMP:13,INK:15},t.AnnotationEditorParamsType={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23},t.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},t.TextRenderingMode={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},t.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},t.AnnotationType={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},t.AnnotationReplyType={GROUP:"Group",REPLY:"R"},t.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},t.AnnotationFieldFlag={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},t.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},t.AnnotationActionEventType={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"},t.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},t.PageActionEventType={O:"PageOpen",C:"PageClose"};const i={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=i,t.CMapCompressionType={NONE:0,BINARY:1},t.OPS={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},t.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let o=i.WARNINGS;function a(e){o>=i.WARNINGS&&console.log(`Warning: ${e}`)}function s(e){throw new Error(e)}function l(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!0,writable:!1}),n}const c=function(){function e(t,n){this.constructor===e&&s("Cannot initialize BaseException."),this.message=t,this.name=n}return e.prototype=new Error,e.constructor=e,e}();function u(e){"object"===typeof e&&void 0!==e?.length||s("Invalid argument for bytesToString");const t=e.length,n=8192;if(t<n)return String.fromCharCode.apply(null,e);const r=[];for(let i=0;i<t;i+=n){const o=Math.min(i+n,t),a=e.subarray(i,o);
75r.push(String.fromCharCode.apply(null,a))}return r.join("")}function d(e){"string"!==typeof e&&s("Invalid argument for stringToBytes");const t=e.length,n=new Uint8Array(t);for(let r=0;r<t;++r)n[r]=255&e.charCodeAt(r);return n}t.BaseException=c,t.PasswordException=class extends c{constructor(e,t){super(e,"PasswordException"),this.code=t}},t.UnknownErrorException=class extends c{constructor(e,t){super(e,"UnknownErrorException"),this.details=t}},t.InvalidPDFException=class extends c{constructor(e){super(e,"InvalidPDFException")}},t.MissingPDFException=class extends c{constructor(e){super(e,"MissingPDFException")}},t.UnexpectedResponseException=class extends c{constructor(e,t){super(e,"UnexpectedResponseException"),this.status=t}},t.FormatError=class extends c{constructor(e){super(e,"FormatError")}},t.AbortException=class extends c{constructor(e){super(e,"AbortException")}},t.FeatureTest=class{static get isLittleEndian(){return l(this,"isLittleEndian",function(){const e=new Uint8Array(4);return e[0]=1,1===new Uint32Array(e.buffer,0,1)[0]}())}static get isEvalSupported(){return l(this,"isEvalSupported",function(){try{return new Function(""),!0}catch{return!1}}())}static get isOffscreenCanvasSupported(){return l(this,"isOffscreenCanvasSupported","undefined"!==typeof OffscreenCanvas)}static get platform(){return"undefined"===typeof navigator?l(this,"platform",{isWin:!1,isMac:!1}):l(this,"platform",{isWin:navigator.platform.includes("Win"),isMac:navigator.platform.includes("Mac")})}static get isCSSRoundSupported(){return l(this,"isCSSRoundSupported",globalThis.CSS?.supports?.("width: round(1.5px, 1px)"))}};const p=[...Array(256).keys()].map((e=>e.toString(16).padStart(2,"0")));t.Util=class{static makeHexColor(e,t,n){return`#${p[e]}${p[t]}${p[n]}`}static scaleMinMax(e,t){let n;e[0]?(e[0]<0&&(n=t[0],t[0]=t[1],t[1]=n),t[0]*=e[0],t[1]*=e[0],e[3]<0&&(n=t[2],t[2]=t[3],t[3]=n),t[2]*=e[3],t[3]*=e[3]):(n=t[0],t[0]=t[2],t[2]=n,n=t[1],t[1]=t[3],t[3]=n,e[1]<0&&(n=t[2],t[2]=t[3],t[3]=n),t[2]*=e[1],t[3]*=e[1],e[2]<0&&(n=t[0],t[0]=t[1],t[1]=n),t[0]*=e[2],t[1]*=e[2]),t[0]+=e[4],t[1]+=e[4],t[2]+=e[5],t[3]+=e[5]}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static applyTransform(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}static applyInverseTransform(e,t){const n=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/n,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/n]}static getAxialAlignedBoundingBox(e,t){const n=this.applyTransform(e,t),r=this.applyTransform(e.slice(2,4),t),i=this.applyTransform([e[0],e[3]],t),o=this.applyTransform([e[2],e[1]],t);return[Math.min(n[0],r[0],i[0],o[0]),Math.min(n[1],r[1],i[1],o[1]),Math.max(n[0],r[0],i[0],o[0]),Math.max(n[1],r[1],i[1],o[1])]}static inverseTransform(e){const t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static singularValueDecompose2dScale(e){const t=[e[0],e[2],e[1],e[3]],n=e[0]*t[0]+e[1]*t[2],r=e[0]*t[1]+e[1]*t[3],i=e[2]*t[0]+e[3]*t[2],o=e[2]*t[1]+e[3]*t[3],a=(n+o)/2,s=Math.sqrt((n+o)**2-4*(n*o-i*r))/2,l=a+s||1,c=a-s||1;return[Math.sqrt(l),Math.sqrt(c)]}static normalizeRect(e){const t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){const n=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),r=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(n>r)return null;const i=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),o=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return i>o?null:[n,i,r,o]}static bezierBoundingBox(e,t,n,r,i,o,a,s){const l=[],c=[[],[]];let u,d,p,h,f,m,g,b;for(let w=0;w<2;++w)if(0===w?(d=6*e-12*n+6*i,u=-3*e+9*n-9*i+3*a,p=3*n-3*e):(d=6*t-12*r+6*o,u=-3*t+9*r-9*o+3*s,p=3*r-3*t),Math.abs(u)<1e-12){if(Math.abs(d)<1e-12)continue;h=-p/d,0<h&&h<1&&l.push(h)}else g=d*d-4*p*u,b=Math.sqrt(g),g<0||(f=(-d+b)/(2*u),0<f&&f<1&&l.push(f),m=(-d-b)/(2*u),0<m&&m<1&&l.push(m));let v,y=l.length;const x=y;for(;y--;)h=l[y],v=1-h,c[0][y]=v*v*v*e+3*v*v*h*n+3*v*h*h*i+h*h*h*a,c[1][y]=v*v*v*t+3*v*v*h*r+3*v*h*h*o+h*h*h*s;
75return c[0][x]=e,c[1][x]=t,c[0][x+1]=a,c[1][x+1]=s,c[0].length=c[1].length=x+2,[Math.min(...c[0]),Math.min(...c[1]),Math.max(...c[0]),Math.max(...c[1])]}};const h=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,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,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,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function f(e){return decodeURIComponent(escape(e))}t.PromiseCapability=class{#e=!1;constructor(){this.promise=new Promise(((e,t)=>{this.resolve=t=>{this.#e=!0,e(t)},this.reject=e=>{this.#e=!0,t(e)}}))}get settled(){return this.#e}};let m=null,g=null;t.AnnotationPrefix="pdfjs_internal_id_"},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{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;function getDocument(e){if("string"===typeof e||e instanceof URL?e={url:e}:(0,_util.isArrayBuffer)(e)&&(e={data:e}),"object"!==typeof e)throw new Error("Invalid parameter in getDocument, need parameter object.");if(!e.url&&!e.data&&!e.range)throw new Error("Invalid parameter object: need either .data, .range or .url");const t=new PDFDocumentLoadingTask,{docId:n}=t,r=e.url?getUrlProp(e.url):null,i=e.data?getDataProp(e.data):null,o=e.httpHeaders||null,a=!0===e.withCredentials,s=e.password??null,l=e.range instanceof PDFDataRangeTransport?e.range:null,c=Number.isInteger(e.rangeChunkSize)&&e.rangeChunkSize>0?e.rangeChunkSize:DEFAULT_RANGE_CHUNK_SIZE;let u=e.worker instanceof PDFWorker?e.worker:null;const d=e.verbosity,p="string"!==typeof e.docBaseUrl||(0,_display_utils.isDataScheme)(e.docBaseUrl)?null:e.docBaseUrl,h="string"===typeof e.cMapUrl?e.cMapUrl:null,f=!1!==e.cMapPacked,m=e.CMapReaderFactory||DefaultCMapReaderFactory,g="string"===typeof e.standardFontDataUrl?e.standardFontDataUrl:null,b=e.StandardFontDataFactory||DefaultStandardFontDataFactory,v=!0!==e.stopAtErrors,y=Number.isInteger(e.maxImageSize)&&e.maxImageSize>-1?e.maxImageSize:-1,x=!1!==e.isEvalSupported,w="boolean"===typeof e.isOffscreenCanvasSupported?e.isOffscreenCanvasSupported:!_util.isNodeJS,A=Number.isInteger(e.canvasMaxAreaInBytes)?e.canvasMaxAreaInBytes:-1,E="boolean"===typeof e.disableFontFace?e.disableFontFace:_util.isNodeJS,S=!0===e.fontExtraProperties,_=!0===e.enableXfa,k=e.ownerDocument||globalThis.document,T=!0===e.disableRange,C=!0===e.disableStream,O=!0===e.disableAutoFetch,N=!0===e.pdfBug,I=l?l.length:e.length??NaN,R="boolean"===typeof e.useSystemFonts?e.useSystemFonts:!_util.isNodeJS&&!E,P="boolean"===typeof e.useWorkerFetch?e.useWorkerFetch:m===_display_utils.DOMCMapReaderFactory&&b===_display_utils.DOMStandardFontDataFactory&&h&&g&&(0,_display_utils.isValidFetchUrl)(h,document.baseURI)&&(0,_display_utils.isValidFetchUrl)(g,document.baseURI),j=e.canvasFactory||new DefaultCanvasFactory({ownerDocument:k}),M=e.filterFactory||new DefaultFilterFactory({docId:n,ownerDocument:k});(0,_util.setVerbosityLevel)(d);const D={canvasFactory:j,filterFactory:M};if(P||(D.cMapReaderFactory=new m({baseUrl:h,isCompressed:f}),D.standardFontDataFactory=new b({baseUrl:g})),!u){const e={verbosity:d,port:_worker_options.GlobalWorkerOptions.workerPort};u=e.port?PDFWorker.fromPort(e):new PDFWorker(e),t._worker=u}const L={docId:n,apiVersion:"3.11.174",data:i,password:s,disableAutoFetch:O,rangeChunkSize:c,length:I,docBaseUrl:p,enableXfa:_,evaluatorOptions:{maxImageSize:y,disableFontFace:E,ignoreErrors:v,isEvalSupported:x,isOffscreenCanvasSupported:w,canvasMaxAreaInBytes:A,fontExtraProperties:S,useSystemFonts:R,cMapUrl:P?h:null,standardFontDataUrl:P?g:null}},F={ignoreErrors:v,isEvalSupported:x,disableFontFace:E,fontExtraProperties:S,enableXfa:_,ownerDocument:k,disableAutoFetch:O,pdfBug:N,styleElement:null};return u.promise.then((function(){if(t.destroyed)throw new Error("Loading aborted");const e=_fetchDocument(u,L),s=new Promise((function(e){let t;var n;l?t=new _transport_stream.PDFDataTransportStream({length:I,initialData:l.initialData,progressiveDone:l.progressiveDone,contentDispositionFilename:l.contentDispositionFilename,disableRange:T,disableStream:C},l):i||(n={url:r,length:I,httpHeaders:o,withCredentials:a,rangeChunkSize:c,disableRange:T,disableStream:C},t=_util.isNodeJS?new _displayNode_stream.PDFNodeStream(n):(0,_display_utils.isValidFetchUrl)(n.url)?new _displayFetch_stream.PDFFetchStream(n):new _displayNetwork.PDFNetworkStream(n)),e(t)}
75));return Promise.all([e,s]).then((function(e){let[r,i]=e;if(t.destroyed)throw new Error("Loading aborted");const o=new _message_handler.MessageHandler(n,r,u.port),a=new WorkerTransport(o,t,i,F,D);t._transport=a,o.send("Ready",null)}))})).catch(t._capability.reject),t}async function _fetchDocument(e,t){if(e.destroyed)throw new Error("Worker was destroyed");const n=await e.messageHandler.sendWithPromise("GetDocRequest",t,t.data?[t.data.buffer]:null);if(e.destroyed)throw new Error("Worker was destroyed");return n}function getUrlProp(e){if(e instanceof URL)return e.href;try{return new URL(e,window.location).href}catch{if(_util.isNodeJS&&"string"===typeof e)return e}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function getDataProp(e){if(_util.isNodeJS&&"undefined"!==typeof Buffer&&e instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(e instanceof Uint8Array&&e.byteLength===e.buffer.byteLength)return e;if("string"===typeof e)return(0,_util.stringToBytes)(e);if("object"===typeof e&&!isNaN(e?.length)||(0,_util.isArrayBuffer)(e))return new Uint8Array(e);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory;class PDFDocumentLoadingTask{static#t=0;constructor(){this._capability=new _util.PromiseCapability,this._transport=null,this._worker=null,this.docId="d"+PDFDocumentLoadingTask.#t++,this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}async destroy(){this.destroyed=!0;try{this._worker?.port&&(this._worker._pendingDestroy=!0),await(this._transport?.destroy())}catch(e){throw this._worker?.port&&delete this._worker._pendingDestroy,e}this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}}exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;class PDFDataRangeTransport{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.length=e,this.initialData=t,this.progressiveDone=n,this.contentDispositionFilename=r,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=new _util.PromiseCapability}addRangeListener(e){this._rangeListeners.push(e)}addProgressListener(e){this._progressListeners.push(e)}addProgressiveReadListener(e){this._progressiveReadListeners.push(e)}addProgressiveDoneListener(e){this._progressiveDoneListeners.push(e)}onDataRange(e,t){for(const n of this._rangeListeners)n(e,t)}onDataProgress(e,t){this._readyCapability.promise.then((()=>{for(const n of this._progressListeners)n(e,t)}))}onDataProgressiveRead(e){this._readyCapability.promise.then((()=>{for(const t of this._progressiveReadListeners)t(e)}))}onDataProgressiveDone(){this._readyCapability.promise.then((()=>{for(const e of this._progressiveDoneListeners)e()}))}transportReady(){this._readyCapability.resolve()}requestDataRange(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(e,t){this._pdfInfo=e,this._transport=t,Object.defineProperty(this,"getJavaScript",{value:()=>((0,_display_utils.deprecated)("`PDFDocumentProxy.getJavaScript`, please use `PDFDocumentProxy.getJSActions` instead."),this.getJSActions().then((e=>{if(!e)return e;const t=[];for(const n in e)t.push(...e[n]);return t})))})}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(e){return this._transport.getPage(e)}getPageIndex(e){return this._transport.getPageIndex(e)}
75getDestinations(){return this._transport.getDestinations()}getDestination(e){return this._transport.getDestination(e)}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(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._transport.startCleanup(e||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{#n=null;#r=!1;constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this._pageIndex=e,this._pageInfo=t,this._transport=n,this._stats=r?new _display_utils.StatTimer:null,this._pdfBug=r,this.commonObjs=n.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(){let{scale:e,rotation:t=this.rotate,offsetX:n=0,offsetY:r=0,dontFlip:i=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new _display_utils.PageViewport({viewBox:this.view,scale:e,rotation:t,offsetX:n,offsetY:r,dontFlip:i})}getAnnotations(){let{intent:e="display"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this._transport.getRenderingIntent(e);return this._transport.getAnnotations(this._pageIndex,t.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(){return this._transport._htmlForXfa?.children[this._pageIndex]||null}render(e){let{canvasContext:t,viewport:n,intent:r="display",annotationMode:i=_util.AnnotationMode.ENABLE,transform:o=null,background:a=null,optionalContentConfigPromise:s=null,annotationCanvasMap:l=null,pageColors:c=null,printAnnotationStorage:u=null}=e;this._stats?.time("Overall");const d=this._transport.getRenderingIntent(r,i,u);this.#r=!1,this.#i(),s||(s=this._transport.getOptionalContentConfig());let p=this._intentStates.get(d.cacheKey);p||(p=Object.create(null),this._intentStates.set(d.cacheKey,p)),p.streamReaderCancelTimeout&&(clearTimeout(p.streamReaderCancelTimeout),p.streamReaderCancelTimeout=null);const h=!!(d.renderingIntent&_util.RenderingIntentFlag.PRINT);p.displayReadyCapability||(p.displayReadyCapability=new _util.PromiseCapability,p.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(d));const f=e=>{p.renderTasks.delete(m),(this._maybeCleanupAfterRender||h)&&(this.#r=!0),this.#o(!h),e?(m.capability.reject(e),this._abortOperatorList({intentState:p,reason:e instanceof Error?e:new Error(e)})):m.capability.resolve(),this._stats?.timeEnd("Rendering"),this._stats?.timeEnd("Overall")},m=new InternalRenderTask({callback:f,params:{canvasContext:t,viewport:n,transform:o,background:a},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:l,operatorList:p.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!h,pdfBug:this._pdfBug,page
75Colors:c});(p.renderTasks||=new Set).add(m);const g=m.task;return Promise.all([p.displayReadyCapability.promise,s]).then((e=>{let[t,n]=e;this.destroyed?f():(this._stats?.time("Rendering"),m.initializeGraphics({transparency:t,optionalContentConfig:n}),m.operatorListChanged())})).catch(f),g}getOperatorList(){let{intent:e="display",annotationMode:t=_util.AnnotationMode.ENABLE,printAnnotationStorage:n=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=this._transport.getRenderingIntent(e,t,n,!0);let i,o=this._intentStates.get(r.cacheKey);return o||(o=Object.create(null),this._intentStates.set(r.cacheKey,o)),o.opListReadCapability||(i=Object.create(null),i.operatorListChanged=function(){o.operatorList.lastChunk&&(o.opListReadCapability.resolve(o.operatorList),o.renderTasks.delete(i))},o.opListReadCapability=new _util.PromiseCapability,(o.renderTasks||=new Set).add(i),o.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(r)),o.opListReadCapability.promise}streamTextContent(){let{includeMarkedContent:e=!1,disableNormalization:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:!0===e,disableNormalization:!0===t},{highWaterMark:100,size(e){return e.items.length}})}getTextContent(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._transport._htmlForXfa)return this.getXfa().then((e=>_xfa_text.XfaText.textContent(e)));const t=this.streamTextContent(e);return new Promise((function(e,n){const r=t.getReader(),i={items:[],styles:Object.create(null)};!function t(){r.read().then((function(n){let{value:r,done:o}=n;o?e(i):(Object.assign(i.styles,r.styles),i.items.push(...r.items),t())}),n)}()}))}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const e=[];for(const t of this._intentStates.values())if(this._abortOperatorList({intentState:t,reason:new Error("Page was destroyed."),force:!0}),!t.opListReadCapability)for(const n of t.renderTasks)e.push(n.completed),n.cancel();return this.objs.clear(),this.#r=!1,this.#i(),Promise.all(e)}cleanup(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.#r=!0;const t=this.#o(!1);return e&&t&&(this._stats&&=new _display_utils.StatTimer),t}#o(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.#i(),!this.#r||this.destroyed)return!1;if(e)return this.#n=setTimeout((()=>{this.#n=null,this.#o(!1)}),DELAYED_CLEANUP_TIMEOUT),!1;for(const{renderTasks:t,operatorList:n}of this._intentStates.values())if(t.size>0||!n.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),this.#r=!1,!0}#i(){this.#n&&(clearTimeout(this.#n),this.#n=null)}_startRenderPage(e,t){const n=this._intentStates.get(t);n&&(this._stats?.timeEnd("Page Request"),n.displayReadyCapability?.resolve(e))}_renderPageChunk(e,t){for(let n=0,r=e.length;n<r;n++)t.operatorList.fnArray.push(e.fnArray[n]),t.operatorList.argsArray.push(e.argsArray[n]);t.operatorList.lastChunk=e.lastChunk,t.operatorList.separateAnnots=e.separateAnnots;for(const n of t.renderTasks)n.operatorListChanged();e.lastChunk&&this.#o(!0)}_pumpOperatorList(e){let{renderingIntent:t,cacheKey:n,annotationStorageSerializable:r}=e;const{map:i,transfers:o}=r,a=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:t,cacheKey:n,annotationStorage:i},o).getReader(),s=this._intentStates.get(n);s.streamReader=a;const l=()=>{a.read().then((e=>{let{value:t,done:n}=e;n?s.streamReader=null:this._transport.destroyed||(this._renderPageChunk(t,s),l())}),(e=>{if(s.streamReader=null,!this._transport.destroyed){if(s.operatorList){s.operatorList.lastChunk=!0;for(const e of s.renderTasks)e.operatorListChanged();this.#o(!0)}if(s.displayReadyCapability)s.displayReadyCapability.reject(e);else{if(!s.opListReadCapability)throw e;s.opListReadCapability.reject(e)}}}))};l()}_abortOperatorList(e){let{intentState:t,reason:n,force:r=!1}=e;if(t.streamReader){if(t.streamReaderCancelTimeout&&(clearTimeout(t.streamReaderCancelTimeout),t.streamReaderCancelTimeout=null),!r){if(t.renderTasks.size>0)return;if(n instanceof _display_utils.RenderingCancelledException){let e=RENDERING_CANCELLED_TIMEOUT;return n.extraDelay>0&&n.extraDelay<1e3&&(e+=n.extraDelay),void(t.streamReaderCancelTimeout=setTimeout((()=>{t.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:t,reason:n,force:!0})}),e))}}if(t.streamReader.cancel(new _util.AbortException(n.message)).catch((()=>{})),t.streamReader=null,!this._transport.destroyed){for(const[e,n]of this._intentStates)if(n===t){this._intentStates.delete(e);break}this.cleanup()}}}get stats(){return this._stats}}exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{#a=(()=>new Set)();#s=(()=>Promise.resolve())();postMessage(e,t){const n={data:structuredClone(e,t?{transfer:t}:null)};this.#s.then((()=>{for(const e of this.#a)e.call(this,n)}))}addEventListener(e,t){this.#a.add(t)}removeEventListener(e,t){this.#a.delete(t)}terminate(){this.#a.clear()}}exports.LoopbackPort=LoopbackPort;const PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};if(exports.PDFWorkerUtil=PDFWorkerUtil,_util.isNodeJS)PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if("object"===typeof document){const e=document?.currentScript?.src;e&&(PDFWorkerUtil.fallbackWorkerSrc=e.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(e,t){let n;try{if(n=new URL(e),!n.origin||"null"===n.origin)return!1}catch{return!1}
75const r=new URL(t,n);return n.origin===r.origin},PDFWorkerUtil.createCDNWrapper=function(e){const t=`importScripts("${e}");`;return URL.createObjectURL(new Blob([t]))};class PDFWorker{static#l;constructor(){let{name:e=null,port:t=null,verbosity:n=(0,_util.getVerbosityLevel)()}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.name=e,this.destroyed=!1,this.verbosity=n,this._readyCapability=new _util.PromiseCapability,this._port=null,this._webWorker=null,this._messageHandler=null,t){if(PDFWorker.#l?.has(t))throw new Error("Cannot use more than one PDFWorker per port.");return(PDFWorker.#l||=new WeakMap).set(t,this),void this._initializeFromPort(t)}this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(e){this._port=e,this._messageHandler=new _message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",(function(){})),this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})}_initialize(){if(!PDFWorkerUtil.isWorkerDisabled&&!PDFWorker._mainThreadWorkerMessageHandler){let{workerSrc:e}=PDFWorker;try{PDFWorkerUtil.isSameOrigin(window.location.href,e)||(e=PDFWorkerUtil.createCDNWrapper(new URL(e,window.location).href));const t=new Worker(e),n=new _message_handler.MessageHandler("main","worker",t),r=()=>{t.removeEventListener("error",i),n.destroy(),t.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},i=()=>{this._webWorker||r()};t.addEventListener("error",i),n.on("test",(e=>{t.removeEventListener("error",i),this.destroyed?r():e?(this._messageHandler=n,this._port=t,this._webWorker=t,this._readyCapability.resolve(),n.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),n.destroy(),t.terminate())})),n.on("ready",(e=>{if(t.removeEventListener("error",i),this.destroyed)r();else try{o()}catch{this._setupFakeWorker()}}));const o=()=>{const e=new Uint8Array;n.send("test",e,[e.buffer])};return void o()}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((e=>{if(this.destroyed)return void this._readyCapability.reject(new Error("Worker was destroyed"));const t=new LoopbackPort;this._port=t;const n="fake"+PDFWorkerUtil.fakeWorkerId++,r=new _message_handler.MessageHandler(n+"_worker",n,t);e.setup(r,t);const i=new _message_handler.MessageHandler(n,n+"_worker",t);this._messageHandler=i,this._readyCapability.resolve(),i.send("configure",{verbosity:this.verbosity})})).catch((e=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${e.message}".`))}))}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),PDFWorker.#l?.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(e){if(!e?.port)throw new Error("PDFWorker.fromPort - invalid method signature.");const t=this.#l?.get(e.port);if(t){if(t._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return t}return new PDFWorker(e)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(null!==PDFWorkerUtil.fallbackWorkerSrc)return _util.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _mainThreadWorkerMessageHandler(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch{return null}}static get _setupFakeWorkerGlobal(){const loader=async()=>{const mainWorkerMessageHandler=this._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_util.isNodeJS){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())}}exports.PDFWorker=PDFWorker;class WorkerTransport{#c=(()=>new Map)();#u=(()=>new Map)();#d=(()=>new Map)();#p=null;constructor(e,t,n,r,i){this.messageHandler=e,this.loadingTask=t,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({ownerDocument:r.ownerDocument,styleElement:r.styleElement}
75),this._params=r,this.canvasFactory=i.canvasFactory,this.filterFactory=i.filterFactory,this.cMapReaderFactory=i.cMapReaderFactory,this.standardFontDataFactory=i.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=new _util.PromiseCapability,this.setupMessageHandler()}#h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=this.#c.get(e);if(n)return n;const r=this.messageHandler.sendWithPromise(e,t);return this.#c.set(e,r),r}get annotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}getRenderingIntent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_util.AnnotationMode.ENABLE,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=_util.RenderingIntentFlag.DISPLAY,o=_annotation_storage.SerializableEmpty;switch(e){case"any":i=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":i=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)(`getRenderingIntent - invalid intent: ${e}`)}switch(t){case _util.AnnotationMode.DISABLE:i+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:i+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:i+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE,o=(i&_util.RenderingIntentFlag.PRINT&&n instanceof _annotation_storage.PrintAnnotationStorage?n:this.annotationStorage).serializable;break;default:(0,_util.warn)(`getRenderingIntent - invalid annotationMode: ${t}`)}return r&&(i+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:i,cacheKey:`${i}_${o.hash}`,annotationStorageSerializable:o}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=new _util.PromiseCapability,this.#p?.reject(new Error("Worker was destroyed during onPassword callback"));const e=[];for(const n of this.#u.values())e.push(n._destroy());this.#u.clear(),this.#d.clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const t=this.messageHandler.sendWithPromise("Terminate",null);return e.push(t),Promise.all(e).then((()=>{this.commonObjs.clear(),this.fontLoader.clear(),this.#c.clear(),this.filterFactory.destroy(),this._networkStream?.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:e,loadingTask:t}=this;e.on("GetReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=e=>{this._lastProgress={loaded:e.loaded,total:e.total}},t.onPull=()=>{this._fullReader.read().then((function(e){let{value:n,done:r}=e;r?t.close():((0,_util.assert)(n instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(n),1,[n]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{this._fullReader.cancel(e),t.ready.catch((e=>{if(!this.destroyed)throw e}))}})),e.on("ReaderHeadersReady",(e=>{const n=new _util.PromiseCapability,r=this._fullReader;return r.headersReady.then((()=>{r.isStreamingSupported&&r.isRangeSupported||(this._lastProgress&&t.onProgress?.(this._lastProgress),r.onProgress=e=>{t.onProgress?.({loaded:e.loaded,total:e.total})}),n.resolve({isStreamingSupported:r.isStreamingSupported,isRangeSupported:r.isRangeSupported,contentLength:r.contentLength})}),n.reject),n.promise})),e.on("GetRangeReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const n=this._networkStream.getRangeReader(e.begin,e.end);n?(t.onPull=()=>{n.read().then((function(e){let{value:n,done:r}=e;r?t.close():((0,_util.assert)(n instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(n),1,[n]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{n.cancel(e),t.ready.catch((e=>{if(!this.destroyed)throw e}))}):t.close()})),e.on("GetDoc",(e=>{let{pdfInfo:n}=e;this._numPages=n.numPages,this._htmlForXfa=n.htmlForXfa,delete n.htmlForXfa,t._capability.resolve(new PDFDocumentProxy(n,this))})),e.on("DocException",(function(e){let n;switch(e.name){case"PasswordException":n=new _util.PasswordException(e.message,e.code);break;case"InvalidPDFException":n=new _util.InvalidPDFException(e.message);break;case"MissingPDFException":n=new _util.MissingPDFException(e.message);break;case"UnexpectedResponseException":n=new _util.UnexpectedResponseException(e.message,e.status);break;case"UnknownErrorException":n=new _util.UnknownErrorException(e.message,e.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}t._capability.reject(n)})),e.on("PasswordRequest",(e=>{if(this.#p=new _util.PromiseCapability,t.onPassword){const r=e=>{e instanceof Error?this.#p.reject(e):this.#p.resolve({password:e})};try{t.onPassword(r,e.code)}catch(n){this.#p.reject(n)}}else this.#p.reject(new _util.PasswordException(e.message,e.code));return this.#p.promise})),e.on("DataLoaded",(e=>{t.onProgress?.({loaded:e.length,total:e.length}),this.downloadInfoCapability.resolve(e)})),e.on("StartRenderPage",(e=>{this.destroyed||this.#u.get(e.pageIndex)._startRenderPage(e.transparency,e.cacheKey)})),e.on("commonobj",(t=>{let[n,r,i]=t;if(!this.destroyed&&!this.commonObjs.has(n))switch(r){case"Font":const t=this._params;if("error"in i){const e=i.error;(0,_util.warn)(`Error during font loading: ${e}`),this.commonObjs.resolve(n,e);break}const o=t.pdfBug&&globalThis.FontInspector?.enabled?(e,t)=>globalThis.FontInspector.fontAdded(e,t):null,a=new _font_loader.FontFaceObject(i,{isEvalSupported:t.isEvalSupported,disableFontFace:t.disableFontFace,ignoreErrors:t.ignoreErrors,inspectFont:o});this.fontLoader.bind(a).catch((t=>
75e.sendWithPromise("FontFallback",{id:n}))).finally((()=>{!t.fontExtraProperties&&a.data&&(a.data=null),this.commonObjs.resolve(n,a)}));break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(n,i);break;default:throw new Error(`Got unknown common object type ${r}`)}})),e.on("obj",(e=>{let[t,n,r,i]=e;if(this.destroyed)return;const o=this.#u.get(n);if(!o.objs.has(t))switch(r){case"Image":if(o.objs.resolve(t,i),i){let e;if(i.bitmap){const{width:t,height:n}=i;e=t*n*4}else e=i.data?.length||0;e>_util.MAX_IMAGE_SIZE_TO_CACHE&&(o._maybeCleanupAfterRender=!0)}break;case"Pattern":o.objs.resolve(t,i);break;default:throw new Error(`Got unknown object type ${r}`)}})),e.on("DocProgress",(e=>{this.destroyed||t.onProgress?.({loaded:e.loaded,total:e.total})})),e.on("FetchBuiltInCMap",(e=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.cMapReaderFactory?this.cMapReaderFactory.fetch(e):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter.")))),e.on("FetchStandardFontData",(e=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.standardFontDataFactory?this.standardFontDataFactory.fetch(e):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter."))))}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){this.annotationStorage.size<=0&&(0,_util.warn)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:e,transfers:t}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:e,filename:this._fullReader?.filename??null},t).finally((()=>{this.annotationStorage.resetModified()}))}getPage(e){if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request."));const t=e-1,n=this.#d.get(t);if(n)return n;const r=this.messageHandler.sendWithPromise("GetPage",{pageIndex:t}).then((e=>{if(this.destroyed)throw new Error("Transport destroyed");const n=new PDFPageProxy(t,e,this,this._params.pdfBug);return this.#u.set(t,n),n}));return this.#d.set(t,r),r}getPageIndex(e){return"object"!==typeof e||null===e||!Number.isInteger(e.num)||e.num<0||!Number.isInteger(e.gen)||e.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:e.num,gen:e.gen})}getAnnotations(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}getFieldObjects(){return this.#h("GetFieldObjects")}hasJSActions(){return this.#h("HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(e){return"string"!==typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}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 this.#h("GetDocJSActions")}getPageJSActions(e){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:e})}getStructTree(e){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:e})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then((e=>new _optional_content_config.OptionalContentConfig(e)))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const e="GetMetadata",t=this.#c.get(e);if(t)return t;
75const n=this.messageHandler.sendWithPromise(e,null).then((e=>({info:e[0],metadata:e[1]?new _metadata.Metadata(e[1]):null,contentDispositionFilename:this._fullReader?.filename??null,contentLength:this._fullReader?.contentLength??null})));return this.#c.set(e,n),n}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const e of this.#u.values())if(!e.cleanup())throw new Error(`startCleanup: Page ${e.pageNumber} is currently rendering.`);this.commonObjs.clear(),e||this.fontLoader.clear(),this.#c.clear(),this.filterFactory.destroy(!0)}}get loadingParams(){const{disableAutoFetch:e,enableXfa:t}=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:e,enableXfa:t})}}class PDFObjects{#f=(()=>Object.create(null))();#m(e){return this.#f[e]||={capability:new _util.PromiseCapability,data:null}}get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t){const n=this.#m(e);return n.capability.promise.then((()=>t(n.data))),null}const n=this.#f[e];if(!n?.capability.settled)throw new Error(`Requesting object that isn't resolved yet ${e}.`);return n.data}has(e){const t=this.#f[e];return t?.capability.settled||!1}resolve(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=this.#m(e);n.data=t,n.capability.resolve()}clear(){for(const e in this.#f){const{data:t}=this.#f[e];t?.bitmap?.close()}this.#f=Object.create(null)}}class RenderTask{#g=null;constructor(e){this.#g=e,this.onContinue=null}get promise(){return this.#g.capability.promise}cancel(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.#g.cancel(null,e)}get separateAnnots(){const{separateAnnots:e}=this.#g.operatorList;if(!e)return!1;const{annotationCanvasMap:t}=this.#g;return e.form||e.canvas&&t?.size>0}}exports.RenderTask=RenderTask;class InternalRenderTask{static#b=(()=>new WeakSet)();constructor(e){let{callback:t,params:n,objs:r,commonObjs:i,annotationCanvasMap:o,operatorList:a,pageIndex:s,canvasFactory:l,filterFactory:c,useRequestAnimationFrame:u=!1,pdfBug:d=!1,pageColors:p=null}=e;this.callback=t,this.params=n,this.objs=r,this.commonObjs=i,this.annotationCanvasMap=o,this.operatorListIdx=null,this.operatorList=a,this._pageIndex=s,this.canvasFactory=l,this.filterFactory=c,this._pdfBug=d,this.pageColors=p,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===u&&"undefined"!==typeof window,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=n.canvasContext.canvas}get completed(){return this.capability.promise.catch((function(){}))}initializeGraphics(e){let{transparency:t=!1,optionalContentConfig:n}=e;if(this.cancelled)return;if(this._canvas){if(InternalRenderTask.#b.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.");InternalRenderTask.#b.add(this._canvas)}this._pdfBug&&globalThis.StepperManager?.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:r,viewport:i,transform:o,background:a}=this.params;this.gfx=new _canvas.CanvasGraphics(r,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:n},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:o,viewport:i,transparency:t,background:a}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback?.()}cancel(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.running=!1,this.cancelled=!0,this.gfx?.endDrawing(),InternalRenderTask.#b.delete(this._canvas),this.callback(e||new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,t))}operatorListChanged(){this.graphicsReady?(this.stepper?.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||=this._continueBound}_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)}
75)):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(),InternalRenderTask.#b.delete(this._canvas),this.callback())))}}const version="3.11.174";exports.version=version;const build="ce8716743";exports.build=build},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SerializableEmpty=t.PrintAnnotationStorage=t.AnnotationStorage=void 0;var r=n(1),i=n(4),o=n(8);const a=Object.freeze({map:null,hash:"",transfers:void 0});t.SerializableEmpty=a;class s{#v=!1;#y=(()=>new Map)();constructor(){this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(e,t){const n=this.#y.get(e);return void 0===n?t:Object.assign(t,n)}getRawValue(e){return this.#y.get(e)}remove(e){if(this.#y.delete(e),0===this.#y.size&&this.resetModified(),"function"===typeof this.onAnnotationEditor){for(const e of this.#y.values())if(e instanceof i.AnnotationEditor)return;this.onAnnotationEditor(null)}}setValue(e,t){const n=this.#y.get(e);let r=!1;if(void 0!==n)for(const[i,o]of Object.entries(t))n[i]!==o&&(r=!0,n[i]=o);else r=!0,this.#y.set(e,t);r&&this.#x(),t instanceof i.AnnotationEditor&&"function"===typeof this.onAnnotationEditor&&this.onAnnotationEditor(t.constructor._type)}has(e){return this.#y.has(e)}getAll(){return this.#y.size>0?(0,r.objectFromMap)(this.#y):null}setAll(e){for(const[t,n]of Object.entries(e))this.setValue(t,n)}get size(){return this.#y.size}#x(){this.#v||(this.#v=!0,"function"===typeof this.onSetModified&&this.onSetModified())}resetModified(){this.#v&&(this.#v=!1,"function"===typeof this.onResetModified&&this.onResetModified())}get print(){return new l(this)}get serializable(){if(0===this.#y.size)return a;const e=new Map,t=new o.MurmurHash3_64,n=[],r=Object.create(null);let s=!1;for(const[o,a]of this.#y){const n=a instanceof i.AnnotationEditor?a.serialize(!1,r):a;n&&(e.set(o,n),t.update(`${o}:${JSON.stringify(n)}`),s||=!!n.bitmap)}if(s)for(const i of e.values())i.bitmap&&n.push(i.bitmap);return e.size>0?{map:e,hash:t.hexdigest(),transfers:n}:a}}t.AnnotationStorage=s;class l extends s{#w;constructor(e){super();const{map:t,hash:n,transfers:r}=e.serializable,i=structuredClone(t,r?{transfer:r}:null);this.#w={map:i,hash:n,transfers:r}}get print(){(0,r.unreachable)("Should not call PrintAnnotationStorage.print")}get serializable(){return this.#w}}t.PrintAnnotationStorage=l},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditor=void 0;var r=n(5),i=n(1),o=n(6);class a{#A="";#E=!1;#S=null;#_=null;#k=null;#T=!1;#C=null;#O=this.focusin.bind(this);#N=this.focusout.bind(this);#I=!1;#R=!1;#P=!1;_initialOptions=(()=>Object.create(null))();_uiManager=null;_focusEventsAllowed=!0;_l10nPromise=null;#j=!1;#M=(()=>a._zIndex++)();static _borderLineWidth=-1;static _colorManager=(()=>new r.ColorManager)();static _zIndex=1;static SMALL_EDITOR_SIZE=0;constructor(e){this.constructor===a&&(0,i.unreachable)("Cannot initialize AnnotationEditor."),this.parent=e.parent,this.id=e.id,this.width=this.height=null,this.pageIndex=e.parent.pageIndex,this.name=e.name,this.div=null,this._uiManager=e.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=e.isCentered,this._structTreeParentId=null;const{rotation:t,rawDims:{pageWidth:n,pageHeight:r,pageX:o,pageY:s}}=this.parent.viewport;this.rotation=t,this.pageRotation=(360+t-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[n,r],this.pageTranslation=[o,s];const[l,c]=this.parentDimensions;this.x=e.x/l,this.y=e.y/c,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get _defaultLineColor(){return(0,i.shadow)(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(e){const t=new s({id:e.parent.getNextId(),parent:e.parent,uiManager:e._uiManager});t.annotationElementId=e.annotationElementId,t.deleted=!0,t._uiManager.addToAnnotationStorage(t)}
75static initialize(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(a._l10nPromise||=new Map(["editor_alt_text_button_label","editor_alt_text_edit_button_label","editor_alt_text_decorative_tooltip"].map((t=>[t,e.get(t)]))),t?.strings)for(const r of t.strings)a._l10nPromise.set(r,e.get(r));if(-1!==a._borderLineWidth)return;const n=getComputedStyle(document.documentElement);a._borderLineWidth=parseFloat(n.getPropertyValue("--outline-width"))||0}static updateDefaultParams(e,t){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(e){return!1}static paste(e,t){(0,i.unreachable)("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return this.#j}set _isDraggable(e){this.#j=e,this.div?.classList.toggle("draggable",e)}center(){const[e,t]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*t/(2*e),this.y+=this.width*e/(2*t);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*t/(2*e),this.y-=this.width*e/(2*t);break;default:this.x-=this.width/2,this.y-=this.height/2}this.fixAndSetPosition()}addCommands(e){this._uiManager.addCommands(e)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=this.#M}setParent(e){null!==e&&(this.pageIndex=e.pageIndex,this.pageDimensions=e.pageDimensions),this.parent=e}focusin(e){this._focusEventsAllowed&&(this.#I?this.#I=!1:this.parent.setSelected(this))}focusout(e){if(!this._focusEventsAllowed)return;if(!this.isAttachedToDOM)return;const t=e.relatedTarget;t?.closest(`#${this.id}`)||(e.preventDefault(),this.parent?.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(e,t,n,r){const[i,o]=this.parentDimensions;[n,r]=this.screenToPageTranslation(n,r),this.x=(e+n)/i,this.y=(t+r)/o,this.fixAndSetPosition()}#D(e,t,n){let[r,i]=e;[t,n]=this.screenToPageTranslation(t,n),this.x+=t/r,this.y+=n/i,this.fixAndSetPosition()}translate(e,t){this.#D(this.parentDimensions,e,t)}translateInPage(e,t){this.#D(this.pageDimensions,e,t),this.div.scrollIntoView({block:"nearest"})}drag(e,t){const[n,r]=this.parentDimensions;if(this.x+=e/n,this.y+=t/r,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:e,y:t}=this.div.getBoundingClientRect();this.parent.findNewParent(this,e,t)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:i,y:o}=this;const[a,s]=this.#L();i+=a,o+=s,this.div.style.left=`${(100*i).toFixed(2)}%`,this.div.style.top=`${(100*o).toFixed(2)}%`,this.div.scrollIntoView({block:"nearest"})}#L(){const[e,t]=this.parentDimensions,{_borderLineWidth:n}=a,r=n/e,i=n/t;switch(this.rotation){case 90:return[-r,i];case 180:return[r,i];case 270:return[r,-i];default:return[-r,-i]}}fixAndSetPosition(){const[e,t]=this.pageDimensions;let{x:n,y:r,width:i,height:o}=this;switch(i*=e,o*=t,n*=e,r*=t,this.rotation){case 0:n=Math.max(0,Math.min(e-i,n)),r=Math.max(0,Math.min(t-o,r));break;case 90:n=Math.max(0,Math.min(e-o,n)),r=Math.min(t,Math.max(i,r));break;case 180:n=Math.min(e,Math.max(i,n)),r=Math.min(t,Math.max(o,r));break;case 270:n=Math.min(e,Math.max(o,n)),r=Math.max(0,Math.min(t-i,r))}this.x=n/=e,this.y=r/=t;const[a,s]=this.#L();n+=a,r+=s;const{style:l}=this.div;l.left=`${(100*n).toFixed(2)}%`,l.top=`${(100*r).toFixed(2)}%`,this.moveInDOM()}static#F(e,t,n){switch(n){case 90:return[t,-e];case 180:return[-e,-t];case 270:return[-t,e];default:return[e,t]}}screenToPageTranslation(e,t){return a.#F(e,t,this.parentRotation)}pageTranslationToScreen(e,t){return a.#F(e,t,360-this.parentRotation)}#B(e){switch(e){case 90:{const[e,t]=this.pageDimensions;return[0,-e/t,t/e,0]}case 180:return[-1,0,0,-1];case 270:{const[e,t]=this.pageDimensions;return[0,e/t,-t/e,0]}default:return[1,0,0,1]}}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:e,pageDimensions:[t,n]}=this,r=t*e,o=n*e;return i.FeatureTest.isCSSRoundSupported?[Math.round(r),Math.round(o)]:[r,o
75]}setDims(e,t){const[n,r]=this.parentDimensions;this.div.style.width=`${(100*e/n).toFixed(2)}%`,this.#T||(this.div.style.height=`${(100*t/r).toFixed(2)}%`),this.#S?.classList.toggle("small",e<a.SMALL_EDITOR_SIZE||t<a.SMALL_EDITOR_SIZE)}fixDims(){const{style:e}=this.div,{height:t,width:n}=e,r=n.endsWith("%"),i=!this.#T&&t.endsWith("%");if(r&&i)return;const[o,a]=this.parentDimensions;r||(e.width=`${(100*parseFloat(n)/o).toFixed(2)}%`),this.#T||i||(e.height=`${(100*parseFloat(t)/a).toFixed(2)}%`)}getInitialTranslation(){return[0,0]}#U(){if(this.#C)return;this.#C=document.createElement("div"),this.#C.classList.add("resizers");const e=["topLeft","topRight","bottomRight","bottomLeft"];this._willKeepAspectRatio||e.push("topMiddle","middleRight","bottomMiddle","middleLeft");for(const t of e){const e=document.createElement("div");this.#C.append(e),e.classList.add("resizer",t),e.addEventListener("pointerdown",this.#z.bind(this,t)),e.addEventListener("contextmenu",o.noContextMenu)}this.div.prepend(this.#C)}#z(e,t){t.preventDefault();const{isMac:n}=i.FeatureTest.platform;if(0!==t.button||t.ctrlKey&&n)return;const r=this.#H.bind(this,e),o=this._isDraggable;this._isDraggable=!1;const a={passive:!0,capture:!0};window.addEventListener("pointermove",r,a);const s=this.x,l=this.y,c=this.width,u=this.height,d=this.parent.div.style.cursor,p=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(t.target).cursor;const h=()=>{this._isDraggable=o,window.removeEventListener("pointerup",h),window.removeEventListener("blur",h),window.removeEventListener("pointermove",r,a),this.parent.div.style.cursor=d,this.div.style.cursor=p;const e=this.x,t=this.y,n=this.width,i=this.height;e===s&&t===l&&n===c&&i===u||this.addCommands({cmd:()=>{this.width=n,this.height=i,this.x=e,this.y=t;const[r,o]=this.parentDimensions;this.setDims(r*n,o*i),this.fixAndSetPosition()},undo:()=>{this.width=c,this.height=u,this.x=s,this.y=l;const[e,t]=this.parentDimensions;this.setDims(e*c,t*u),this.fixAndSetPosition()},mustExec:!0})};window.addEventListener("pointerup",h),window.addEventListener("blur",h)}#H(e,t){const[n,r]=this.parentDimensions,i=this.x,o=this.y,s=this.width,l=this.height,c=a.MIN_SIZE/n,u=a.MIN_SIZE/r,d=e=>Math.round(1e4*e)/1e4,p=this.#B(this.rotation),h=(e,t)=>[p[0]*e+p[2]*t,p[1]*e+p[3]*t],f=this.#B(360-this.rotation);let m,g,b=!1,v=!1;switch(e){case"topLeft":b=!0,m=(e,t)=>[0,0],g=(e,t)=>[e,t];break;case"topMiddle":m=(e,t)=>[e/2,0],g=(e,t)=>[e/2,t];break;case"topRight":b=!0,m=(e,t)=>[e,0],g=(e,t)=>[0,t];break;case"middleRight":v=!0,m=(e,t)=>[e,t/2],g=(e,t)=>[0,t/2];break;case"bottomRight":b=!0,m=(e,t)=>[e,t],g=(e,t)=>[0,0];break;case"bottomMiddle":m=(e,t)=>[e/2,t],g=(e,t)=>[e/2,0];break;case"bottomLeft":b=!0,m=(e,t)=>[0,t],g=(e,t)=>[e,0];break;case"middleLeft":v=!0,m=(e,t)=>[0,t/2],g=(e,t)=>[e,t/2]}const y=m(s,l),x=g(s,l);let w=h(...x);const A=d(i+w[0]),E=d(o+w[1]);let S=1,_=1,[k,T]=this.screenToPageTranslation(t.movementX,t.movementY);var C,O;if([k,T]=(C=k/n,O=T/r,[f[0]*C+f[2]*O,f[1]*C+f[3]*O]),b){const e=Math.hypot(s,l);S=_=Math.max(Math.min(Math.hypot(x[0]-y[0]-k,x[1]-y[1]-T)/e,1/s,1/l),c/s,u/l)}else v?S=Math.max(c,Math.min(1,Math.abs(x[0]-y[0]-k)))/s:_=Math.max(u,Math.min(1,Math.abs(x[1]-y[1]-T)))/l;const N=d(s*S),I=d(l*_);w=h(...g(N,I));const R=A-w[0],P=E-w[1];this.width=N,this.height=I,this.x=R,this.y=P,this.setDims(n*N,r*I),this.fixAndSetPosition()}async addAltTextButton(){if(this.#S)return;const e=this.#S=document.createElement("button");e.className="altText";const t=await a._l10nPromise.get("editor_alt_text_button_label");if(e.textContent=t,e.setAttribute("aria-label",t),e.tabIndex="0",e.addEventListener("contextmenu",o.noContextMenu),e.addEventListener("pointerdown",(e=>e.stopPropagation())),e.addEventListener("click",(e=>{e.preventDefault(),this._uiManager.editAltText(this)}),{capture:!0}),e.addEventListener("keydown",(t=>{t.target===e&&"Enter"===t.key&&(t.preventDefault(),this._uiManager.editAltText(this))})),this.#$(),this.div.append(e),!a.SMALL_EDITOR_SIZE){const t=40;a.SMALL_EDITOR_SIZE=Math.min(128,Math.round(e.getBoundingClientRect().width*(1+t/100)))}}async#$(){const e=this.#S;if(!e)return;if(!this.#A&&!this.#E)return e.classList.remove("done"),void this.#_?.remove();a._l10nPromise.get("editor_alt_text_edit_button_label").then((t=>
75{e.setAttribute("aria-label",t)}));let t=this.#_;if(!t){this.#_=t=document.createElement("span"),t.className="tooltip",t.setAttribute("role","tooltip");const n=t.id=`alt-text-tooltip-${this.id}`;e.setAttribute("aria-describedby",n);const r=100;e.addEventListener("mouseenter",(()=>{this.#k=setTimeout((()=>{this.#k=null,this.#_.classList.add("show"),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"alt_text_tooltip"}}})}),r)})),e.addEventListener("mouseleave",(()=>{clearTimeout(this.#k),this.#k=null,this.#_?.classList.remove("show")}))}e.classList.add("done"),t.innerText=this.#E?await a._l10nPromise.get("editor_alt_text_decorative_tooltip"):this.#A,t.parentNode||e.append(t)}getClientDimensions(){return this.div.getBoundingClientRect()}get altTextData(){return{altText:this.#A,decorative:this.#E}}set altTextData(e){let{altText:t,decorative:n}=e;this.#A===t&&this.#E===n||(this.#A=t,this.#E=n,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",this.#O),this.div.addEventListener("focusout",this.#N);const[e,t]=this.parentDimensions;this.parentRotation%180!==0&&(this.div.style.maxWidth=`${(100*t/e).toFixed(2)}%`,this.div.style.maxHeight=`${(100*e/t).toFixed(2)}%`);const[n,i]=this.getInitialTranslation();return this.translate(n,i),(0,r.bindEvents)(this,this.div,["pointerdown"]),this.div}pointerdown(e){const{isMac:t}=i.FeatureTest.platform;0!==e.button||e.ctrlKey&&t?e.preventDefault():(this.#I=!0,this.#V(e))}#V(e){if(!this._isDraggable)return;const t=this._uiManager.isSelected(this);let n,r;this._uiManager.setUpDragSession(),t&&(n={passive:!0,capture:!0},r=e=>{const[t,n]=this.screenToPageTranslation(e.movementX,e.movementY);this._uiManager.dragSelectedEditors(t,n)},window.addEventListener("pointermove",r,n));const o=()=>{if(window.removeEventListener("pointerup",o),window.removeEventListener("blur",o),t&&window.removeEventListener("pointermove",r,n),this.#I=!1,!this._uiManager.endDragSession()){const{isMac:t}=i.FeatureTest.platform;e.ctrlKey&&!t||e.shiftKey||e.metaKey&&t?this.parent.toggleSelected(this):this.parent.setSelected(this)}};window.addEventListener("pointerup",o),window.addEventListener("blur",o)}moveInDOM(){this.parent?.moveEditorInDOM(this)}_setParentAndPosition(e,t,n){e.changeParent(this),this.x=t,this.y=n,this.fixAndSetPosition()}getRect(e,t){const n=this.parentScale,[r,i]=this.pageDimensions,[o,a]=this.pageTranslation,s=e/n,l=t/n,c=this.x*r,u=this.y*i,d=this.width*r,p=this.height*i;switch(this.rotation){case 0:return[c+s+o,i-u-l-p+a,c+s+d+o,i-u-l+a];case 90:return[c+l+o,i-u+s+a,c+l+p+o,i-u+s+d+a];case 180:return[c-s-d+o,i-u+l+a,c-s+o,i-u+l+p+a];case 270:return[c-l-p+o,i-u-s-d+a,c-l+o,i-u-s+a];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(e,t){const[n,r,i,o]=e,a=i-n,s=o-r;switch(this.rotation){case 0:return[n,t-o,a,s];case 90:return[n,t-r,s,a];case 180:return[i,t-r,a,s];case 270:return[i,t-o,s,a];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){this.#P=!0}disableEditMode(){this.#P=!1}isInEditMode(){return this.#P}shouldGetKeyboardEvents(){return!1}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){this.div?.addEventListener("focusin",this.#O),this.div?.addEventListener("focusout",this.#N)}serialize(){(0,i.unreachable)("An editor must be serializable")}static deserialize(e,t,n){const r=new this.prototype.constructor({parent:t,id:t.getNextId(),uiManager:n});r.rotation=e.rotation;const[i,o]=r.pageDimensions,[a,s,l,c]=r.getRectInCurrentCoords(e.rect,o);
75return r.x=a/i,r.y=s/o,r.width=l/i,r.height=c/o,r}remove(){this.div.removeEventListener("focusin",this.#O),this.div.removeEventListener("focusout",this.#N),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),this.#S?.remove(),this.#S=null,this.#_=null}get isResizable(){return!1}makeResizable(){this.isResizable&&(this.#U(),this.#C.classList.remove("hidden"))}select(){this.makeResizable(),this.div?.classList.add("selectedEditor")}unselect(){this.#C?.classList.add("hidden"),this.div?.classList.remove("selectedEditor"),this.div?.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus()}updateParams(e,t){}disableEditing(){this.#S&&(this.#S.hidden=!0)}enableEditing(){this.#S&&(this.#S.hidden=!1)}enterInEditMode(){}get contentDiv(){return this.div}get isEditing(){return this.#R}set isEditing(e){this.#R=e,this.parent&&(e?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(e,t){this.#T=!0;const n=e/t,{style:r}=this.div;r.aspectRatio=n,r.height="auto"}static get MIN_SIZE(){return 16}}t.AnnotationEditor=a;class s extends a{constructor(e){super(e),this.annotationElementId=e.annotationElementId,this.deleted=!0}serialize(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.KeyboardManager=t.CommandManager=t.ColorManager=t.AnnotationEditorUIManager=void 0,t.bindEvents=function(e,t,n){for(const r of n)t.addEventListener(r,e[r].bind(e))},t.opacityToHex=function(e){return Math.round(Math.min(255,Math.max(1,255*e))).toString(16).padStart(2,"0")};var r=n(1),i=n(6);class o{#G=0;getId(){return`${r.AnnotationEditorPrefix}${this.#G++}`}}class a{#W=(()=>(0,r.getUuid)())();#G=0;#q=null;static get _isSVGFittingCanvas(){const e=new OffscreenCanvas(1,3).getContext("2d"),t=new Image;t.src='data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" style="fill:red;"/></svg>';const n=t.decode().then((()=>(e.drawImage(t,0,0,1,1,0,0,1,3),0===new Uint32Array(e.getImageData(0,0,1,1).data.buffer)[0])));return(0,r.shadow)(this,"_isSVGFittingCanvas",n)}async#Y(e,t){this.#q||=new Map;let n=this.#q.get(e);if(null===n)return null;if(n?.bitmap)return n.refCounter+=1,n;try{let e;if(n||={bitmap:null,id:`image_${this.#W}_${this.#G++}`,refCounter:0,isSvg:!1},"string"===typeof t){n.url=t;const r=await fetch(t);if(!r.ok)throw new Error(r.statusText);e=await r.blob()}else e=n.file=t;if("image/svg+xml"===e.type){const t=a._isSVGFittingCanvas,r=new FileReader,i=new Image,o=new Promise(((e,o)=>{i.onload=()=>{n.bitmap=i,n.isSvg=!0,e()},r.onload=async()=>{const e=n.svgUrl=r.result;i.src=await t?`${e}#svgView(preserveAspectRatio(none))`:e},i.onerror=r.onerror=o}));r.readAsDataURL(e),await o}else n.bitmap=await createImageBitmap(e);n.refCounter=1}catch(r){console.error(r),n=null}return this.#q.set(e,n),n&&this.#q.set(n.id,n),n}async getFromFile(e){const{lastModified:t,name:n,size:r,type:i}=e;return this.#Y(`${t}_${n}_${r}_${i}`,e)}async getFromUrl(e){return this.#Y(e,e)}async getFromId(e){this.#q||=new Map;const t=this.#q.get(e);return t?t.bitmap?(t.refCounter+=1,t):t.file?this.getFromFile(t.file):this.getFromUrl(t.url):null}getSvgUrl(e){const t=this.#q.get(e);return t?.isSvg?t.svgUrl:null}deleteId(e){this.#q||=new Map;const t=this.#q.get(e);t&&(t.refCounter-=1,0===t.refCounter&&(t.bitmap=null))}isValidId(e){return e.startsWith(`image_${this.#W}_`)}}class s{#K=[];#X=!1;#Z;#Q=-1;constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:128;this.#Z=e}add(e){let{cmd:t,undo:n,mustExec:r,type:i=NaN,overwriteIfSameType:o=!1,keepUndo:a=!1}=e;if(r&&t(),this.#X)return;const s={cmd:t,undo:n,type:i};if(-1===this.#Q)return this.#K.length>0&&(this.#K.length=0),this.#Q=0,void this.#K.push(s);if(o&&this.#K[this.#Q].type===i)return a&&(s.undo=this.#K[this.#Q].undo),void(this.#K[this.#Q]=s);const l=this.#Q+1;l===this.#Z?this.#K.splice(0,1):(this.#Q=l,l<this.#K.length&&this.#K.splice(l)),this.#K.push(s)}undo(){-1!==this.#Q&&(this.#X=!0,this.#K[this.#Q].undo(),this.#X=!1,this.#Q-=1)}redo(){this.#Q<this.#K.length-1&&(this.#Q+=1,this.#X=!0,this.#K[this.#Q].cmd(),this.#X=!1)}hasSomethingToUndo(){return-1!==this.#Q}hasSomethingToRedo(){return this.#Q<this.#K.length-1}destroy(){this.#K=null}}t.CommandManager=s;class l{constructor(e){this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const{isMac:t}=r.FeatureTest.platform;for(const[n,r,i={}]of e)for(const e of n){const n=e.startsWith("mac+");t&&n?(this.callbacks.set(e.slice(4),{callback:r,options:i}),this.allKeys.add(e.split("+").at(-1))):t||n||(this.callbacks.set(e,{callback:r,options:i}),this.allKeys.add(e.split("+").at(-1)))}}#J(e){e.altKey&&this.buffer.push("alt"),e.ctrlKey&&this.buffer.push("ctrl"),e.metaKey&&this.buffer.push("meta"),e.shiftKey&&this.buffer.push("shift"),this.buffer.push(e.key);const t=this.buffer.join("+");return this.buffer.length=0,t}exec(e,t){if(!this.allKeys.has(t.key))return;const n=this.callbacks.get(this.#J(t));if(!n)return;const{callback:r,options:{bubbles:i=!1,args:o=[],checker:a=null}}=n;a&&!a(e,t)||(r.bind(e,...o)(),i||(t.stopPropagation(),t.preventDefault()))}}t.KeyboardManager=l;class c{static _colorsMapping=(()=>new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]))();get _colors(){const e=new Map([["CanvasText",null],["Canvas",null]]);return(0,i.getColorValues)(e),(0,r.shadow)(this,"_colors",e)}convert(e){const t=(0,i.getRGB)(e);if(!window.matchMedia("(forced-colors: active)").matches)return t;for(const[n,r]of this._colors)if(r.every(((e,n)=>e===t[n])))return c._colorsMapping.get(n);return t}getHexCode(e){const t=this._colors.get(e);return t?r.Util.makeHexColor(...t):e}}t.ColorManager=c;class u{#ee=null;#te=(()=>new Map)();#ne=(()=>new Map)();#re=null;#ie=null;#oe=(()=>new s)();#ae=0;#se=(()=>new Set)();#le=null;#ce=null;#ue=(()=>new Set)();#de=null;#pe=(()=>new o)();#he=!1;#fe=!1;#me=null;#ge=(()=>r.AnnotationEditorType.NONE)();#be=(()=>new Set)();#ve=null;#ye=this.blur.bind(this);#xe=this.focus.bind(this);#we=this.copy.bind(this);#Ae=this.cut.bind(this);#Ee=this.paste.bind(this);#Se=this.keydown.bind(this);#_e=this.onEditingAction.bind(this);#ke=this.onPageChanging.bind(this);#Te=this.onScaleChanging.bind(this);#Ce=this.onRotationChanging.bind(this);#Oe={isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1};#Ne=[0,0];#Ie=null;#Re=null;#Pe=null;static TRANSLATE_SMALL=1;static TRANSLATE_BIG=10;static get _keyboardManager(){const e=u.prototype,t=e=>{const{activeElement:t}=document;return t&&e.#Re.contains(t)&&e.hasSomethingToControl()},n=this.TRANSLATE_SMALL,i=this.TRANSLATE_BIG;return(0,r.shadow)(this,"_keyboardManager",new l([[["ctrl+a","mac+meta+a"],e.selectAll],[["ctrl+z","mac+meta+z"],e.undo],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],e.redo],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],e.delete],[["Escape","mac+Escape"],e.unselectAll],[["ArrowLeft","mac+ArrowLeft"],e.translateSelectedEditors,{args:[-n,0],checker:t}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e.translateSelectedEditors,{args:[-i,0],checker:t}],[["ArrowRight","mac+ArrowRight"],e.translateSelectedEditors,{args:[n,0],checker:t}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e.translateSelectedEditors,{args:[i,0],checker:t}],[["ArrowUp","mac+ArrowUp"],e.translateSelectedEditors,{args:[0,-n],checker:t}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e.translateSelectedEditors,{args:[0,-i],checker:t}],[["ArrowDown","mac+ArrowDown"],e.translateSelectedEditors,{args:[0,n],checker:t}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e.translateSelectedEditors,{args:[0,i],checker:t}]]))}constructor(e,t,n,r,o,a){this.#Re=e,this.#Pe=t,this.#re=n,this._eventBus=r,this._eventBus._on("editingaction",this.#_e),this._eventBus._on("pagechanging",this.#ke),this._eventBus._on("scalechanging",this.#Te),this._eventBus._on("rotationchanging",this.#Ce),this.#ie=o.annotationStorage,this.#de=o.filterFactory,this.#ve=a,this.viewParameters={realScale:i.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:0}}destroy(){this.#je(),this.#Me(),this._eventBus._off("editingaction",this.#_e),this._eventBus._off("pagechanging",this.#ke),this._eventBus._off("scalechanging",this.#Te),this._eventBus._off("rotationchanging",this.#Ce);for(const e of this.#ne.values())e.destroy();this.#ne.clear(),this.#te.clear(),this.#ue.clear(),this.#ee=null,this.#be.clear(),this.#oe.destroy(),this.#re.destroy()}get hcmFilter(){return(0,r.shadow)(this,"hcmFilter",this.#ve?this.#de.addHCMFilter(this.#ve.foreground,this.#ve.background):"none")}get direction(){return(0,r.shadow)(this,"direction",getComputedStyle(this.#Re).direction)}editAltText(e){this.#re?.editAltText(this,e)}onPageChanging(e){let{pageNumber:t}=e;this.#ae=t-1}focusMainContainer(){this.#Re.focus()}findParent(e,t){for(const n of this.#ne.values()){const{x:r,y:i,width:o,height:a}=n.div.getBoundingClientRect();if(e>=r&&e<=r+o&&t>=i&&t<=i+a)return n}return null}disableUserSelect(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.#Pe.classList.toggle("noUserSelect",e)}addShouldRescale(e){this.#ue.add(e)}removeShouldRescale(e){this.#ue.delete(e)}onScaleChanging(e){let{scale:t}=e;this.commitOrRemove(),this.viewParameters.realScale=t*i.PixelsPerInch.PDF_TO_CSS_UNITS;for(const n of this.#ue)n.onScaleChanging()}onRotationChanging(e){let{pagesRotation:t}=e;this.commitOrRemove(),this.viewParameters.rotation=t}addToAnnotationStorage(e){e.isEmpty()||!this.#ie||this.#ie.has(e.id)||this.#ie.setValue(e.id,e)}#De(){window.addEventListener("focus",this.#xe),window.addEventListener("blur",this.#ye)}#Me(){window.removeEventListener("focus",this.#xe),window.removeEventListener("blur",this.#ye)}blur(){if(!this.hasSelection)return;const{activeElement:e}=document;for(const t of this.#be)if(t.div.contains(e)){this.#me=[t,e],t._focusEventsAllowed=!1;break}}focus(){if(!this.#me)return;const[e,t]=this.#me;this.#me=null,t.addEventListener("focusin",(()=>{e._focusEventsAllowed=!0}),{once:!0}),t.focus()}#Le(){window.addEventListener("keydown",this.#Se,{capture:!0})}#je(){window.removeEventListener("keydown",this.#Se,{capture:!0})}#Fe(){document.addEventListener("copy",this.#we),document.addEventListener("cut",this.#Ae),document.addEventListener("paste",this.#Ee)}#Be(){document.removeEventListener("copy",this.#we),document.removeEventListener("cut",this.#Ae),document.removeEventListener("paste",this.#Ee)}addEditListeners(){this.#Le(),this.#Fe()}removeEditListeners(){this.#je(),this.#Be()}copy(e){if(e.preventDefault(),this.#ee?.commitOrRemove(),!this.hasSelection)return;const t=[];for(const n of this.#be){const e=n.serialize(!0);e&&t.push(e)}0!==t.length&&e.clipboardData.setData("application/pdfjs",JSON.stringify(t))}cut(e){this.copy(e),this.delete()}paste(e){e.preventDefault();const{clipboardData:t}=e;for(const r of t.items)for(const e of this.#ce)if(e.isHandlingMimeForPasting(r.type))return void e.paste(r,this.currentLayer);let n=t.getData("application/pdfjs");if(!n)return;try{n=JSON.parse(n)}catch(o){return void(0,r.warn)(`paste: "${o.message}".`)}if(!Array.isArray(n))return;this.unselectAll();const i=this.currentLayer;try{const e=[];for(const o of n){const t=i.deserialize(o);if(!t)return;e.push(t)}const t=()=>{for(const t of e)this.#Ue(t);this.#ze(e)},r=()=>{for(const t of e)t.remove()};this.addCommands({cmd:t,undo:r,mustExec:!0})}catch(o){(0,r.warn)(`paste: "${o.message}".`)}}keydown(e){this.getActive()?.shouldGetKeyboardEvents()||u._keyboardManager.exec(this,e)}onEditingAction(e){["undo","redo","delete","selectAll"].includes(e.name)&&this[e.name]()}#He(e){Object.entries(e).some((e=>{let[t,n]=e;return this.#Oe[t]!==n}))&&this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(this.#Oe,e)})}#$e(e){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:e})}setEditingState(e){e?(this.#De(),this.#Le(),this.#Fe(),this.#He({isEditing:this.#ge!==r.AnnotationEditorType.NONE,isEmpty:this.#Ve(),hasSomethingToUndo:this.#oe.hasSomethingToUndo(),hasSomethingToRedo:this.#oe.hasSomethingToRedo(),hasSelectedEditor:!1})):(this.#Me(),this.#je(),this.#Be(),this.#He({isEditing:!1}),this.disableUserSelect(!1))}
75registerEditorTypes(e){if(!this.#ce){this.#ce=e;for(const e of this.#ce)this.#$e(e.defaultPropertiesToUpdate)}}getId(){return this.#pe.getId()}get currentLayer(){return this.#ne.get(this.#ae)}getLayer(e){return this.#ne.get(e)}get currentPageIndex(){return this.#ae}addLayer(e){this.#ne.set(e.pageIndex,e),this.#he?e.enable():e.disable()}removeLayer(e){this.#ne.delete(e.pageIndex)}updateMode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.#ge!==e){if(this.#ge=e,e===r.AnnotationEditorType.NONE)return this.setEditingState(!1),void this.#Ge();this.setEditingState(!0),this.#We(),this.unselectAll();for(const t of this.#ne.values())t.updateMode(e);if(t)for(const e of this.#te.values())if(e.annotationElementId===t){this.setSelected(e),e.enterInEditMode();break}}}updateToolbar(e){e!==this.#ge&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:e})}updateParams(e,t){if(this.#ce)if(e!==r.AnnotationEditorParamsType.CREATE){for(const n of this.#be)n.updateParams(e,t);for(const n of this.#ce)n.updateDefaultParams(e,t)}else this.currentLayer.addNewEditor(e)}enableWaiting(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.#fe!==e){this.#fe=e;for(const t of this.#ne.values())e?t.disableClick():t.enableClick(),t.div.classList.toggle("waiting",e)}}#We(){if(!this.#he){this.#he=!0;for(const e of this.#ne.values())e.enable()}}#Ge(){if(this.unselectAll(),this.#he){this.#he=!1;for(const e of this.#ne.values())e.disable()}}getEditors(e){const t=[];for(const n of this.#te.values())n.pageIndex===e&&t.push(n);return t}getEditor(e){return this.#te.get(e)}addEditor(e){this.#te.set(e.id,e)}removeEditor(e){this.#te.delete(e.id),this.unselect(e),e.annotationElementId&&this.#se.has(e.annotationElementId)||this.#ie?.remove(e.id)}addDeletedAnnotationElement(e){this.#se.add(e.annotationElementId),e.deleted=!0}isDeletedAnnotationElement(e){return this.#se.has(e)}removeDeletedAnnotationElement(e){this.#se.delete(e.annotationElementId),e.deleted=!1}#Ue(e){const t=this.#ne.get(e.pageIndex);t?t.addOrRebuild(e):this.addEditor(e)}setActiveEditor(e){this.#ee!==e&&(this.#ee=e,e&&this.#$e(e.propertiesToUpdate))}toggleSelected(e){if(this.#be.has(e))return this.#be.delete(e),e.unselect(),void this.#He({hasSelectedEditor:this.hasSelection});this.#be.add(e),e.select(),this.#$e(e.propertiesToUpdate),this.#He({hasSelectedEditor:!0})}setSelected(e){for(const t of this.#be)t!==e&&t.unselect();this.#be.clear(),this.#be.add(e),e.select(),this.#$e(e.propertiesToUpdate),this.#He({hasSelectedEditor:!0})}isSelected(e){return this.#be.has(e)}unselect(e){e.unselect(),this.#be.delete(e),this.#He({hasSelectedEditor:this.hasSelection})}get hasSelection(){return 0!==this.#be.size}undo(){this.#oe.undo(),this.#He({hasSomethingToUndo:this.#oe.hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:this.#Ve()})}redo(){this.#oe.redo(),this.#He({hasSomethingToUndo:!0,hasSomethingToRedo:this.#oe.hasSomethingToRedo(),isEmpty:this.#Ve()})}addCommands(e){this.#oe.add(e),this.#He({hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:this.#Ve()})}#Ve(){if(0===this.#te.size)return!0;if(1===this.#te.size)for(const e of this.#te.values())return e.isEmpty();return!1}delete(){if(this.commitOrRemove(),!this.hasSelection)return;const e=[...this.#be];this.addCommands({cmd:()=>{for(const t of e)t.remove()},undo:()=>{for(const t of e)this.#Ue(t)},mustExec:!0})}commitOrRemove(){this.#ee?.commitOrRemove()}hasSomethingToControl(){return this.#ee||this.hasSelection}#ze(e){this.#be.clear();for(const t of e)t.isEmpty()||(this.#be.add(t),t.select());this.#He({hasSelectedEditor:!0})}selectAll(){for(const e of this.#be)e.commit();this.#ze(this.#te.values())}unselectAll(){if(this.#ee)this.#ee.commitOrRemove();else if(this.hasSelection){for(const e of this.#be)e.unselect();this.#be.clear(),this.#He({hasSelectedEditor:!1})}}translateSelectedEditors(e,t){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2]||this.commitOrRemove(),!this.hasSelection)return;this.#Ne[0]+=e,this.#Ne[1]+=t;const[n,r]=this.#Ne,i=[...this.#be];this.#Ie&&clearTimeout(this.#Ie),this.#Ie=setTimeout((()=>{this.#Ie=null,this.#Ne[0]=this.#Ne[1]=0,this.addCommands({cmd:()=>{for(const e of i)this.#te.has(e.id)&&e.translateInPage(n,r)},undo:()=>{for(const e of i)this.#te.has(e.id)&&e.translateInPage(-n,-r)},mustExec:!1})}),1e3);for(const o of i)o.translateInPage(e,t)}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),this.#le=new Map;for(const e of this.#be)this.#le.set(e,{savedX:e.x,savedY:e.y,savedPageIndex:e.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!this.#le)return!1;this.disableUserSelect(!1);const e=this.#le;this.#le=null;let t=!1;for(const[{x:r,y:i,pageIndex:o},a]of e)a.newX=r,a.newY=i,a.newPageIndex=o,t||=r!==a.savedX||i!==a.savedY||o!==a.savedPageIndex;if(!t)return!1;const n=(e,t,n,r)=>{if(this.#te.has(e.id)){const i=this.#ne.get(r);i?e._setParentAndPosition(i,t,n):(e.pageIndex=r,e.x=t,e.y=n)}};return this.addCommands({cmd:()=>{for(const[t,{newX:r,newY:i,newPageIndex:o}]of e)n(t,r,i,o)},undo:()=>{for(const[t,{savedX:r,savedY:i,savedPageIndex:o}]of e)n(t,r,i,o)},mustExec:!0}),!0}dragSelectedEditors(e,t){if(this.#le)for(const n of this.#le.keys())n.drag(e,t)}rebuild(e){if(null===e.parent){const t=this.getLayer(e.pageIndex);t?(t.changeParent(e),t.addOrRebuild(e)):(this.addEditor(e),this.addToAnnotationStorage(e),e.rebuild())}else e.parent.addOrRebuild(e)}isActive(e){return this.#ee===e}getActive(){return this.#ee}getMode(){return this.#ge}get imageManager(){return(0,r.shadow)(this,"imageManager",new a)}}t.AnnotationEditorUIManager=u},(e,t,n)=>
75{Object.defineProperty(t,"__esModule",{value:!0}),t.StatTimer=t.RenderingCancelledException=t.PixelsPerInch=t.PageViewport=t.PDFDateString=t.DOMStandardFontDataFactory=t.DOMSVGFactory=t.DOMFilterFactory=t.DOMCanvasFactory=t.DOMCMapReaderFactory=void 0,t.deprecated=function(e){console.log("Deprecated API usage: "+e)},t.getColorValues=function(e){const t=document.createElement("span");t.style.visibility="hidden",document.body.append(t);for(const n of e.keys()){t.style.color=n;const r=window.getComputedStyle(t).color;e.set(n,v(r))}t.remove()},t.getCurrentTransform=function(e){const{a:t,b:n,c:r,d:i,e:o,f:a}=e.getTransform();return[t,n,r,i,o,a]},t.getCurrentTransformInverse=function(e){const{a:t,b:n,c:r,d:i,e:o,f:a}=e.getTransform().invertSelf();return[t,n,r,i,o,a]},t.getFilenameFromUrl=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t||([e]=e.split(/[#?]/,1)),e.substring(e.lastIndexOf("/")+1)},t.getPdfFilenameFromUrl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"document.pdf";if("string"!==typeof e)return t;if(m(e))return(0,i.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),t;const n=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,r=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/.exec(e);let o=n.exec(r[1])||n.exec(r[2])||n.exec(r[3]);if(o&&(o=o[0],o.includes("%")))try{o=n.exec(decodeURIComponent(o))[0]}catch{}return o||t},t.getRGB=v,t.getXfaPageViewport=function(e,t){let{scale:n=1,rotation:r=0}=t;const{width:i,height:o}=e.attributes.style,a=[0,0,parseInt(i),parseInt(o)];return new h({viewBox:a,scale:n,rotation:r})},t.isDataScheme=m,t.isPdfFile=function(e){return"string"===typeof e&&/\.pdf$/i.test(e)},t.isValidFetchUrl=g,t.loadScript=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise(((n,r)=>{const i=document.createElement("script");i.src=e,i.onload=function(e){t&&i.remove(),n(e)},i.onerror=function(){r(new Error(`Cannot load script at: ${i.src}`))},(document.head||document.documentElement).append(i)}))},t.noContextMenu=function(e){e.preventDefault()},t.setLayerDimensions=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t instanceof h){const{pageWidth:r,pageHeight:o}=t.rawDims,{style:a}=e,s=i.FeatureTest.isCSSRoundSupported,l=`var(--scale-factor) * ${r}px`,c=`var(--scale-factor) * ${o}px`,u=s?`round(${l}, 1px)`:`calc(${l})`,d=s?`round(${c}, 1px)`:`calc(${c})`;n&&t.rotation%180!==0?(a.width=d,a.height=u):(a.width=u,a.height=d)}r&&e.setAttribute("data-main-rotation",t.rotation)};var r=n(7),i=n(1);const o="http://www.w3.org/2000/svg";class a{static CSS=96;static PDF=72;static PDF_TO_CSS_UNITS=(()=>this.CSS/this.PDF)()}t.PixelsPerInch=a;class s extends r.BaseFilterFactory{#qe;#Ye;#t;#Ke;#Xe;#Ze;#Qe;#Je;#et;#tt;#G=0;constructor(){let{docId:e,ownerDocument:t=globalThis.document}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this.#t=e,this.#Ke=t}get#q(){return this.#qe||=new Map}get#nt(){if(!this.#Ye){const e=this.#Ke.createElement("div"),{style:t}=e;t.visibility="hidden",t.contain="strict",t.width=t.height=0,t.position="absolute",t.top=t.left=0,t.zIndex=-1;const n=this.#Ke.createElementNS(o,"svg");n.setAttribute("width",0),n.setAttribute("height",0),this.#Ye=this.#Ke.createElementNS(o,"defs"),e.append(n),n.append(this.#Ye),this.#Ke.body.append(e)}return this.#Ye}addFilter(e){if(!e)return"none";let t,n,r,i,o=this.#q.get(e);if(o)return o;if(1===e.length){const o=e[0],a=new Array(256);for(let e=0;e<256;e++)a[e]=o[e]/255;i=t=n=r=a.join(",")}else{const[o,a,s]=e,l=new Array(256),c=new Array(256),u=new Array(256);for(let e=0;e<256;e++)l[e]=o[e]/255,c[e]=a[e]/255,u[e]=s[e]/255;t=l.join(","),n=c.join(","),r=u.join(","),i=`${t}${n}${r}`}if(o=this.#q.get(i),o)return this.#q.set(e,o),o;const a=`g_${this.#t}_transfer_map_${this.#G++}`,s=`url(#${a})`;this.#q.set(e,s),this.#q.set(i,s);const l=this.#rt(a);return this.#it(t,n,r,l),s}addHCMFilter(e,t){const n=`${e}-${t}`;if(this.#Ze===n)return this.#Qe;if(this.#Ze=n,this.#Qe="none",this.#Xe?.remove(),!e||!t)return this.#Qe;const r=this.#ot(e);e=i.Util.makeHexColor(...r);const o=this.#ot(t);if(t=i.Util.makeHexColor(...o),this.#nt.style.color="","#000000"===e&&"#ffffff"===t||e===t)return this.#Qe;const a=new Array(256);for(let i=0;i<=255;i++){const e=i/255;a[i]=e<=.03928?e/12.92:((e+.055)/1.055)**2.4}const s=a.join(","),l=`g_${this.#t}_hcm_filter`,c=this.#Je=this.#rt(l);this.#it(s,s,s,c),this.#at(c);const u=(e,t)=>
75{const n=r[e]/255,i=o[e]/255,a=new Array(t+1);for(let r=0;r<=t;r++)a[r]=n+r/t*(i-n);return a.join(",")};return this.#it(u(0,5),u(1,5),u(2,5),c),this.#Qe=`url(#${l})`,this.#Qe}addHighlightHCMFilter(e,t,n,r){const i=`${e}-${t}-${n}-${r}`;if(this.#et===i)return this.#tt;if(this.#et=i,this.#tt="none",this.#Je?.remove(),!e||!t)return this.#tt;const[o,a]=[e,t].map(this.#ot.bind(this));let s=Math.round(.2126*o[0]+.7152*o[1]+.0722*o[2]),l=Math.round(.2126*a[0]+.7152*a[1]+.0722*a[2]),[c,u]=[n,r].map(this.#ot.bind(this));l<s&&([s,l,c,u]=[l,s,u,c]),this.#nt.style.color="";const d=(e,t,n)=>{const r=new Array(256),i=(l-s)/n,o=e/255,a=(t-e)/(255*n);let c=0;for(let l=0;l<=n;l++){const e=Math.round(s+l*i),t=o+l*a;for(let n=c;n<=e;n++)r[n]=t;c=e+1}for(let s=c;s<256;s++)r[s]=r[c-1];return r.join(",")},p=`g_${this.#t}_hcm_highlight_filter`,h=this.#Je=this.#rt(p);return this.#at(h),this.#it(d(c[0],u[0],5),d(c[1],u[1],5),d(c[2],u[2],5),h),this.#tt=`url(#${p})`,this.#tt}destroy(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(this.#Qe||this.#tt)||(this.#Ye&&(this.#Ye.parentNode.parentNode.remove(),this.#Ye=null),this.#qe&&(this.#qe.clear(),this.#qe=null),this.#G=0)}#at(e){const t=this.#Ke.createElementNS(o,"feColorMatrix");t.setAttribute("type","matrix"),t.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"),e.append(t)}#rt(e){const t=this.#Ke.createElementNS(o,"filter");return t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("id",e),this.#nt.append(t),t}#st(e,t,n){const r=this.#Ke.createElementNS(o,t);r.setAttribute("type","discrete"),r.setAttribute("tableValues",n),e.append(r)}#it(e,t,n,r){const i=this.#Ke.createElementNS(o,"feComponentTransfer");r.append(i),this.#st(i,"feFuncR",e),this.#st(i,"feFuncG",t),this.#st(i,"feFuncB",n)}#ot(e){return this.#nt.style.color=e,v(getComputedStyle(this.#nt).getPropertyValue("color"))}}t.DOMFilterFactory=s;class l extends r.BaseCanvasFactory{constructor(){let{ownerDocument:e=globalThis.document}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this._document=e}_createCanvas(e,t){const n=this._document.createElement("canvas");return n.width=e,n.height=t,n}}async function c(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(g(e,document.baseURI)){const n=await fetch(e);if(!n.ok)throw new Error(n.statusText);return t?new Uint8Array(await n.arrayBuffer()):(0,i.stringToBytes)(await n.text())}return new Promise(((n,r)=>{const o=new XMLHttpRequest;o.open("GET",e,!0),t&&(o.responseType="arraybuffer"),o.onreadystatechange=()=>{if(o.readyState===XMLHttpRequest.DONE){if(200===o.status||0===o.status){let e;if(t&&o.response?e=new Uint8Array(o.response):!t&&o.responseText&&(e=(0,i.stringToBytes)(o.responseText)),e)return void n(e)}r(new Error(o.statusText))}},o.send(null)}))}t.DOMCanvasFactory=l;class u extends r.BaseCMapReaderFactory{_fetchData(e,t){return c(e,this.isCompressed).then((e=>({cMapData:e,compressionType:t})))}}t.DOMCMapReaderFactory=u;class d extends r.BaseStandardFontDataFactory{_fetchData(e){return c(e,!0)}}t.DOMStandardFontDataFactory=d;class p extends r.BaseSVGFactory{_createSVG(e){return document.createElementNS(o,e)}}t.DOMSVGFactory=p;class h{constructor(e){let{viewBox:t,scale:n,rotation:r,offsetX:i=0,offsetY:o=0,dontFlip:a=!1}=e;this.viewBox=t,this.scale=n,this.rotation=r,this.offsetX=i,this.offsetY=o;const s=(t[2]+t[0])/2,l=(t[3]+t[1])/2;let c,u,d,p,h,f,m,g;switch(r%=360,r<0&&(r+=360),r){case 180:c=-1,u=0,d=0,p=1;break;case 90:c=0,u=1,d=1,p=0;break;case 270:c=0,u=-1,d=-1,p=0;break;case 0:c=1,u=0,d=0,p=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}a&&(d=-d,p=-p),0===c?(h=Math.abs(l-t[1])*n+i,f=Math.abs(s-t[0])*n+o,m=(t[3]-t[1])*n,g=(t[2]-t[0])*n):(h=Math.abs(s-t[0])*n+i,f=Math.abs(l-t[1])*n+o,m=(t[2]-t[0])*n,g=(t[3]-t[1])*n),this.transform=[c*n,u*n,d*n,p*n,h-c*n*s-d*n*l,f-u*n*s-p*n*l],this.width=m,this.height=g}get rawDims(){const{viewBox:e}=this;return(0,i.shadow)(this,"rawDims",{pageWidth:e[2]-e[0],pageHeight:e[3]-e[1],pageX:e[0],pageY:e[1]})}clone(){let{scale:e=this.scale,rotation:t=this.rotation,offsetX:n=this.offsetX,offsetY:r=this.offsetY,dontFlip:i=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new h({viewBox:this.viewBox.slice(),scale:e,rotation:t,offsetX:n,offsetY:r,dontFlip:i})}convertToViewportPoint(e,t){return i.Util.applyTransform([e,t],this.transform)}convertToViewportRectangle(e){const t=i.Util.applyTransform([e[0],e[1]],this.transform),n=i.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],n[0],n[1]]}convertToPdfPoint(e,t){return i.Util.applyInverseTransform([e,t],this.transform)}}t.PageViewport=h;class f extends i.BaseException{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;super(e,"RenderingCancelledException"),this.extraDelay=t}}function m(e){const t=e.length;let n=0;for(;n<t&&""===e[n].trim();)n++;return"data:"===e.substring(n,n+5).toLowerCase()}function g(e,t){try{const{protocol:n}=t?new URL(e,t):new URL(e);return"http:"===n||"https:"===n}catch{return!1}}let b;function v(e){if(e.startsWith("#")){const t=parseInt(e.slice(1),16);return[(16711680&t)>>16,(65280&t)>>8,255&t]}return e.startsWith("rgb(")?e.slice(4,-1).split(",").map((e=>parseInt(e))):e.startsWith("rgba(")?e.slice(5,-1).split(",").map((e=>parseInt(e))).slice(0,3):((0,i.warn)(`Not a valid color format: "${e}"`),[0,0,0])}t.RenderingCancelledException=f,t.StatTimer=class{started=(()=>Object.create(null))();times=[];time(e){e in this.started&&(0,i.warn)(`Timer is already running for ${e}`),this.started[e]=Date.now()}timeEnd(e){e in this.started||(0,i.warn)(`Timer has not been started for ${e}`),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}toString(){const e=[];let t=0;for(const{name:n}of this.times)t=Math.max(n.length,t);for(const{name:n,start:r,end:i}of this.times)e.push(`${n.padEnd(t)} ${i-r}ms\n`);return e.join("")}}
75,t.PDFDateString=class{static toDateObject(e){if(!e||"string"!==typeof e)return null;b||=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?");const t=b.exec(e);if(!t)return null;const n=parseInt(t[1],10);let r=parseInt(t[2],10);r=r>=1&&r<=12?r-1:0;let i=parseInt(t[3],10);i=i>=1&&i<=31?i:1;let o=parseInt(t[4],10);o=o>=0&&o<=23?o:0;let a=parseInt(t[5],10);a=a>=0&&a<=59?a:0;let s=parseInt(t[6],10);s=s>=0&&s<=59?s:0;const l=t[7]||"Z";let c=parseInt(t[8],10);c=c>=0&&c<=23?c:0;let u=parseInt(t[9],10)||0;return u=u>=0&&u<=59?u:0,"-"===l?(o+=c,a+=u):"+"===l&&(o-=c,a-=u),new Date(Date.UTC(n,r,i,o,a,s))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseStandardFontDataFactory=t.BaseSVGFactory=t.BaseFilterFactory=t.BaseCanvasFactory=t.BaseCMapReaderFactory=void 0;var r=n(1);class i{constructor(){this.constructor===i&&(0,r.unreachable)("Cannot initialize BaseFilterFactory.")}addFilter(e){return"none"}addHCMFilter(e,t){return"none"}addHighlightHCMFilter(e,t,n,r){return"none"}destroy(){}}t.BaseFilterFactory=i;class o{constructor(){this.constructor===o&&(0,r.unreachable)("Cannot initialize BaseCanvasFactory.")}create(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");const n=this._createCanvas(e,t);return{canvas:n,context:n.getContext("2d")}}reset(e,t,n){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||n<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=n}destroy(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}_createCanvas(e,t){(0,r.unreachable)("Abstract method `_createCanvas` called.")}}t.BaseCanvasFactory=o;class a{constructor(e){let{baseUrl:t=null,isCompressed:n=!0}=e;this.constructor===a&&(0,r.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=t,this.isCompressed=n}async fetch(e){let{name:t}=e;if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!t)throw new Error("CMap name must be specified.");const n=this.baseUrl+t+(this.isCompressed?".bcmap":""),i=this.isCompressed?r.CMapCompressionType.BINARY:r.CMapCompressionType.NONE;return this._fetchData(n,i).catch((e=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${n}`)}))}_fetchData(e,t){(0,r.unreachable)("Abstract method `_fetchData` called.")}}t.BaseCMapReaderFactory=a;class s{constructor(e){let{baseUrl:t=null}=e;this.constructor===s&&(0,r.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=t}async fetch(e){let{filename:t}=e;if(!this.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!t)throw new Error("Font filename must be specified.");const n=`${this.baseUrl}${t}`;return this._fetchData(n).catch((e=>{throw new Error(`Unable to load font data at: ${n}`)}))}_fetchData(e){(0,r.unreachable)("Abstract method `_fetchData` called.")}}t.BaseStandardFontDataFactory=s;class l{constructor(){this.constructor===l&&(0,r.unreachable)("Cannot initialize BaseSVGFactory.")}create(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e<=0||t<=0)throw new Error("Invalid SVG dimensions");const r=this._createSVG("svg:svg");return r.setAttribute("version","1.1"),n||(r.setAttribute("width",`${e}px`),r.setAttribute("height",`${t}px`)),r.setAttribute("preserveAspectRatio","none"),r.setAttribute("viewBox",`0 0 ${e} ${t}`),r}createElement(e){if("string"!==typeof e)throw new Error("Invalid SVG element type");return this._createSVG(e)}_createSVG(e){(0,r.unreachable)("Abstract method `_createSVG` called.")}}t.BaseSVGFactory=l},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0;var r=n(1);const i=3285377520,o=4294901760,a=65535;t.MurmurHash3_64=class{constructor(e){this.h1=e?4294967295&e:i,this.h2=e?4294967295&e:i}update(e){let t,n;if("string"===typeof e){t=new Uint8Array(2*e.length),n=0;for(let r=0,i=e.length;r<i;r++){const i=e.charCodeAt(r);i<=255?t[n++]=i:(t[n++]=i>>>8,t[n++]=255&i)}}else{if(!(0,r.isArrayBuffer)(e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");t=e.slice(),n=t.byteLength}const i=n>>2,s=n-4*i,l=new Uint32Array(t.buffer,0,i);let c=0,u=0,d=this.h1,p=this.h2;const h=3432918353,f=461845907,m=11601,g=13715;for(let r=0;r<i;r++)1&r?(c=l[r],c=c*h&o|c*m&a,c=c<<15|c>>>17,c=c*f&o|c*g&a,d^=c,d=d<<13|d>>>19,d=5*d+3864292196):(u=l[r],u=u*h&o|u*m&a,u=u<<15|u>>>17,u=u*f&o|u*g&a,p^=u,p=p<<13|p>>>19,p=5*p+3864292196);switch(c=0,s){case 3:c^=t[4*i+2]<<16;case 2:c^=t[4*i+1]<<8;case 1:c^=t[4*i],c=c*h&o|c*m&a,c=c<<15|c>>>17,c=c*f&o|c*g&a,1&i?d^=c:p^=c}this.h1=d,this.h2=p}hexdigest(){let e=this.h1,t=this.h2;return e^=t>>>1,e=3981806797*e&o|36045*e&a,t=4283543511*t&o|(2950163797*(t<<16|e>>>16)&o)>>>16,e^=t>>>1,e=444984403*e&o|60499*e&a,t=3301882366*t&o|(3120437893*(t<<16|e>>>16)&o)>>>16,e^=t>>>1,(e>>>0).toString(16).padStart(8,"0")+(t>>>0).toString(16).padStart(8,"0")}}},(e,t,n)=>
75{Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var r=n(1);t.FontLoader=class{#lt=(()=>new Set)();constructor(e){let{ownerDocument:t=globalThis.document,styleElement:n=null}=e;this._document=t,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(e){this.nativeFontFaces.add(e),this._document.fonts.add(e)}removeNativeFontFace(e){this.nativeFontFaces.delete(e),this._document.fonts.delete(e)}insertRule(e){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const t=this.styleElement.sheet;t.insertRule(e,t.cssRules.length)}clear(){for(const e of this.nativeFontFaces)this._document.fonts.delete(e);this.nativeFontFaces.clear(),this.#lt.clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont(e){if(e&&!this.#lt.has(e.loadedName))if((0,r.assert)(!this.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){const{loadedName:t,src:n,style:i}=e,o=new FontFace(t,n,i);this.addNativeFontFace(o);try{await o.load(),this.#lt.add(t)}catch{(0,r.warn)(`Cannot load system font: ${e.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(o)}}else(0,r.unreachable)("Not implemented: loadSystemFont without the Font Loading API.")}async bind(e){if(e.attached||e.missingFile&&!e.systemFontInfo)return;if(e.attached=!0,e.systemFontInfo)return void await this.loadSystemFont(e.systemFontInfo);if(this.isFontLoadingAPISupported){const t=e.createNativeFontFace();if(t){this.addNativeFontFace(t);try{await t.loaded}catch(n){throw(0,r.warn)(`Failed to load font '${t.family}': '${n}'.`),e.disableFontFace=!0,n}}return}const t=e.createFontFaceRule();if(t){if(this.insertRule(t),this.isSyncFontLoadingSupported)return;await new Promise((t=>{const n=this._queueLoadingCallback(t);this._prepareFontLoadEvent(e,n)}))}}get isFontLoadingAPISupported(){const e=!!this._document?.fonts;return(0,r.shadow)(this,"isFontLoadingAPISupported",e)}get isSyncFontLoadingSupported(){let e=!1;return(r.isNodeJS||"undefined"!==typeof navigator&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(e=!0),(0,r.shadow)(this,"isSyncFontLoadingSupported",e)}_queueLoadingCallback(e){const{loadingRequests:t}=this,n={done:!1,complete:function(){for((0,r.assert)(!n.done,"completeRequest() cannot be called twice."),n.done=!0;t.length>0&&t[0].done;){const e=t.shift();setTimeout(e.callback,0)}},callback:e};return t.push(n),n}get _loadTestFont(){const e=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return(0,r.shadow)(this,"_loadTestFont",e)}_prepareFontLoadEvent(e,t){function n(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function i(e,t,n,r){return e.substring(0,t)+r+e.substring(t+n)}let o,a;const s=this._document.createElement("canvas");s.width=1,s.height=1;const l=s.getContext("2d");let c=0;const u=`lt${Date.now()}${this.loadTestFontId++}`;let d=this._loadTestFont;d=i(d,976,u.length,u);const p=1482184792;let h=n(d,16);for(o=0,a=u.length-3;o<a;o+=4)h=h-p+n(u,o)|0;o<u.length&&(h=h-p+n(u+"XXX",o)|0),d=i(d,16,4,(0,r.string32)(h));const f=`@font-face {font-family:"${u}";src:url(data:font/opentype;base64,${btoa(d)});}`;this.insertRule(f);const m=this._document.createElement("div");m.style.visibility="hidden",m.style.width=m.style.height="10px",m.style.position="absolute",m.style.top=m.style.left="0px";for(const r of[e.loadedName,u]){const e=this._document.createElement("span");e.textContent="Hi",e.style.fontFamily=r,m.append(e)}this._document.body.append(m),function e(t,n){if(++c>
7530)return(0,r.warn)("Load test font never loaded."),void n();l.font="30px "+t,l.fillText(".",0,20),l.getImageData(0,0,1,1).data[3]>0?n():setTimeout(e.bind(null,t,n))}(u,(()=>{m.remove(),t.complete()}))}},t.FontFaceObject=class{constructor(e,t){let{isEvalSupported:n=!0,disableFontFace:r=!1,ignoreErrors:i=!1,inspectFont:o=null}=t;this.compiledGlyphs=Object.create(null);for(const a in e)this[a]=e[a];this.isEvalSupported=!1!==n,this.disableFontFace=!0===r,this.ignoreErrors=!0===i,this._inspectFont=o}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let e;if(this.cssFontInfo){const t={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(t.style=`oblique ${this.cssFontInfo.italicAngle}deg`),e=new FontFace(this.cssFontInfo.fontFamily,this.data,t)}else e=new FontFace(this.loadedName,this.data,{});return this._inspectFont?.(this),e}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const e=(0,r.bytesToString)(this.data),t=`url(data:${this.mimetype};base64,${btoa(e)});`;let n;if(this.cssFontInfo){let e=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(e+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),n=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${e}src:${t}}`}else n=`@font-face {font-family:"${this.loadedName}";src:${t}}`;return this._inspectFont?.(this,t),n}getPathGenerator(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];let n;try{n=e.get(this.loadedName+"_path_"+t)}catch(i){if(!this.ignoreErrors)throw i;return(0,r.warn)(`getPathGenerator - ignoring character: "${i}".`),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&r.FeatureTest.isEvalSupported){const e=[];for(const t of n){const n=void 0!==t.args?t.args.join(","):"";e.push("c.",t.cmd,"(",n,");\n")}return this.compiledGlyphs[t]=new Function("c","size",e.join(""))}return this.compiledGlyphs[t]=function(e,t){for(const r of n)"scale"===r.cmd&&(r.args=[t,-t]),e[r.cmd].apply(e,r.args)}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NodeStandardFontDataFactory=t.NodeFilterFactory=t.NodeCanvasFactory=t.NodeCMapReaderFactory=void 0;var r=n(7);n(1);const i=function(e){return new Promise(((t,n)=>{__webpack_require__(23237).readFile(e,((e,r)=>{!e&&r?t(new Uint8Array(r)):n(new Error(e))}))}))};class o extends r.BaseFilterFactory{}t.NodeFilterFactory=o;class a extends r.BaseCanvasFactory{_createCanvas(e,t){return __webpack_require__(17640).createCanvas(e,t)}}t.NodeCanvasFactory=a;class s extends r.BaseCMapReaderFactory{_fetchData(e,t){return i(e).then((e=>({cMapData:e,compressionType:t})))}}t.NodeCMapReaderFactory=s;class l extends r.BaseStandardFontDataFactory{_fetchData(e){return i(e)}}t.NodeStandardFontDataFactory=l},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0;var r=n(1),i=n(6),o=n(12),a=n(13);const s=4096,l=16;class c{constructor(e){this.canvasFactory=e,this.cache=Object.create(null)}getCanvas(e,t,n){let r;return void 0!==this.cache[e]?(r=this.cache[e],this.canvasFactory.reset(r,t,n)):(r=this.canvasFactory.create(t,n),this.cache[e]=r),r}delete(e){delete this.cache[e]}clear(){for(const e in this.cache){const t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}}function u(e,t,n,r,o,a,s,l,c,u){const[d,p,h,f,m,g]=(0,i.getCurrentTransform)(e);if(0===p&&0===h){const i=s*d+m,b=Math.round(i),v=l*f+g,y=Math.round(v),x=(s+c)*d+m,w=Math.abs(Math.round(x)-b)||1,A=(l+u)*f+g,E=Math.abs(Math.round(A)-y)||1;return e.setTransform(Math.sign(d),0,0,Math.sign(f),b,y),e.drawImage(t,n,r,o,a,0,0,w,E),e.setTransform(d,p,h,f,m,g),[w,E]}if(0===d&&0===f){const i=l*h+m,b=Math.round(i),v=s*p+g,y=Math.round(v),x=(l+u)*h+m,w=Math.abs(Math.round(x)-b)||1,A=(s+c)*p+g,E=Math.abs(Math.round(A)-y)||1;return e.setTransform(0,Math.sign(p),Math.sign(h),0,b,y),e.drawImage(t,n,r,o,a,0,0,E,w),e.setTransform(d,p,h,f,m,g),[E,w]}return e.drawImage(t,n,r,o,a,s,l,c,u),[Math.hypot(d,p)*c,Math.hypot(h,f)*u]}class d{constructor(e,t){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=r.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=r.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=r.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,e,t])}clone(){const e=Object.create(this);return e.clipBox=this.clipBox.slice(),e}setCurrentPoint(e,t){this.x=e,this.y=t}updatePathMinMax(e,t,n){[t,n]=r.Util.applyTransform([t,n],e),this.minX=Math.min(this.minX,t),this.minY=Math.min(this.minY,n),this.maxX=Math.max(this.maxX,t),this.maxY=Math.max(this.maxY,n)}updateRectMinMax(e,t){const n=r.Util.applyTransform(t,e),i=r.Util.applyTransform(t.slice(2),e);this.minX=Math.min(this.minX,n[0],i[0]),this.minY=Math.min(this.minY,n[1],i[1]),this.maxX=Math.max(this.maxX,n[0],i[0]),this.maxY=Math.max(this.maxY,n[
751],i[1])}updateScalingPathMinMax(e,t){r.Util.scaleMinMax(e,t),this.minX=Math.min(this.minX,t[0]),this.maxX=Math.max(this.maxX,t[1]),this.minY=Math.min(this.minY,t[2]),this.maxY=Math.max(this.maxY,t[3])}updateCurvePathMinMax(e,t,n,i,o,a,s,l,c,u){const d=r.Util.bezierBoundingBox(t,n,i,o,a,s,l,c);if(u)return u[0]=Math.min(u[0],d[0],d[2]),u[1]=Math.max(u[1],d[0],d[2]),u[2]=Math.min(u[2],d[1],d[3]),void(u[3]=Math.max(u[3],d[1],d[3]));this.updateRectMinMax(e,d)}getPathBoundingBox(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.PathType.FILL,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=[this.minX,this.minY,this.maxX,this.maxY];if(e===o.PathType.STROKE){t||(0,r.unreachable)("Stroke bounding box must include transform.");const e=r.Util.singularValueDecompose2dScale(t),i=e[0]*this.lineWidth/2,o=e[1]*this.lineWidth/2;n[0]-=i,n[1]-=o,n[2]+=i,n[3]+=o}return n}updateClipFromPath(){const e=r.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(e||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(e){this.clipBox=e,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.PathType.FILL,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return r.Util.intersect(this.clipBox,this.getPathBoundingBox(e,t))}}function p(e,t){if("undefined"!==typeof ImageData&&t instanceof ImageData)return void e.putImageData(t,0,0);const n=t.height,i=t.width,o=n%l,a=(n-o)/l,s=0===o?a:a+1,c=e.createImageData(i,l);let u,d=0;const p=t.data,h=c.data;let f,m,g,b;if(t.kind===r.ImageKind.GRAYSCALE_1BPP){const t=p.byteLength,n=new Uint32Array(h.buffer,0,h.byteLength>>2),b=n.length,v=i+7>>3,y=4294967295,x=r.FeatureTest.isLittleEndian?4278190080:255;for(f=0;f<s;f++){for(g=f<a?l:o,u=0,m=0;m<g;m++){const e=t-d;let r=0;const o=e>v?i:8*e-7,a=-8&o;let s=0,l=0;for(;r<a;r+=8)l=p[d++],n[u++]=128&l?y:x,n[u++]=64&l?y:x,n[u++]=32&l?y:x,n[u++]=16&l?y:x,n[u++]=8&l?y:x,n[u++]=4&l?y:x,n[u++]=2&l?y:x,n[u++]=1&l?y:x;for(;r<o;r++)0===s&&(l=p[d++],s=128),n[u++]=l&s?y:x,s>>=1}for(;u<b;)n[u++]=0;e.putImageData(c,0,f*l)}}else if(t.kind===r.ImageKind.RGBA_32BPP){for(m=0,b=i*l*4,f=0;f<a;f++)h.set(p.subarray(d,d+b)),d+=b,e.putImageData(c,0,m),m+=l;f<s&&(b=i*o*4,h.set(p.subarray(d,d+b)),e.putImageData(c,0,m))}else{if(t.kind!==r.ImageKind.RGB_24BPP)throw new Error(`bad image kind: ${t.kind}`);for(g=l,b=i*g,f=0;f<s;f++){for(f>=a&&(g=o,b=i*g),u=0,m=b;m--;)h[u++]=p[d++],h[u++]=p[d++],h[u++]=p[d++],h[u++]=255;e.putImageData(c,0,f*l)}}}function h(e,t){if(t.bitmap)return void e.drawImage(t.bitmap,0,0);const n=t.height,r=t.width,i=n%l,o=(n-i)/l,s=0===i?o:o+1,c=e.createImageData(r,l);let u=0;const d=t.data,p=c.data;for(let h=0;h<s;h++){const t=h<o?l:i;({srcPos:u}=(0,a.convertBlackAndWhiteToRGBA)({src:d,srcPos:u,dest:p,width:r,height:t,nonBlackColor:0})),e.putImageData(c,0,h*l)}}function f(e,t){const n=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"];for(const r of n)void 0!==e[r]&&(t[r]=e[r]);void 0!==e.setLineDash&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}function m(e){if(e.strokeStyle=e.fillStyle="#000000",e.fillRule="nonzero",e.globalAlpha=1,e.lineWidth=1,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=10,e.globalCompositeOperation="source-over",e.font="10px sans-serif",void 0!==e.setLineDash&&(e.setLineDash([]),e.lineDashOffset=0),!r.isNodeJS){const{filter:t}=e;"none"!==t&&""!==t&&(e.filter="none")}}function g(e,t,n,r){const i=e.length;for(let o=3;o<i;o+=4){const i=e[o];if(0===i)e[o-3]=t,e[o-2]=n,e[o-1]=r;else if(i<255){const a=255-i;e[o-3]=e[o-3]*i+t*a>>8,e[o-2]=e[o-2]*i+n*a>>8,e[o-1]=e[o-1]*i+r*a>>8}}}function b(e,t,n){const r=e.length,i=1/255;for(let o=3;o<r;o+=4){const r=n?n[e[o]]:e[o];t[o]=t[o]*r*i|0}}function v(e,t,n){const r=e.length;for(let i=3;i<r;i+=4){const r=77*e[i-3]+152*e[i-2]+28*e[i-1];t[i]=n?t[i]*n[r>>8]>>8:t[i]*r>>16}}function y(e,t,n,r){const i=r[0],o=r[1],a=r[2]-i,s=r[3]-o;0!==a&&0!==s&&(function(e,t,n,r,i,o,a,s,l,c,u){const d=!!o,p=d?o[0]:0,h=d?o[1]:0,f=d?o[2]:0,m="Luminosity"===i?v:b,y=Math.min(r,Math.ceil(1048576/n));for(let b=0;b<r;b+=y){const i=Math.min(y,r-b),o=e.getImageData(s-c,b+(l-u),n,i),v=t.getImageData(s,b+l,n,i);d&&g(o.data,p,h,f),m(o.data,v.data,a),t.putImageData(v,s,b+l)}}(t.context,n,a,s,t.subtype,t.backdrop,t.transferMap,i,o,t.offsetX,t.offsetY),e.save(),e.globalAlpha=1,e.globalCompositeOperation="source-over",e.setTransform(1,0,0,1,0,0),e.drawImage(n.canvas,0,0),e.restore(
75))}function x(e,t){const n=r.Util.singularValueDecompose2dScale(e);n[0]=Math.fround(n[0]),n[1]=Math.fround(n[1]);const o=Math.fround((globalThis.devicePixelRatio||1)*i.PixelsPerInch.PDF_TO_CSS_UNITS);return void 0!==t?t:n[0]<=o||n[1]<=o}const w=["butt","round","square"],A=["miter","round","bevel"],E={},S={};class _{constructor(e,t,n,r,i,o,a,s){let{optionalContentConfig:l,markedContentStack:u=null}=o;this.ctx=e,this.current=new d(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=t,this.objs=n,this.canvasFactory=r,this.filterFactory=i,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=u||[],this.optionalContentConfig=l,this.cachedCanvases=new c(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=a,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=s,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"string"===typeof e?e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e):t}beginDrawing(e){let{transform:t,viewport:n,transparency:r=!1,background:o=null}=e;const a=this.ctx.canvas.width,s=this.ctx.canvas.height,l=this.ctx.fillStyle;if(this.ctx.fillStyle=o||"#ffffff",this.ctx.fillRect(0,0,a,s),this.ctx.fillStyle=l,r){const e=this.cachedCanvases.getCanvas("transparent",a,s);this.compositeCtx=this.ctx,this.transparentCanvas=e.canvas,this.ctx=e.context,this.ctx.save(),this.ctx.transform(...(0,i.getCurrentTransform)(this.compositeCtx))}this.ctx.save(),m(this.ctx),t&&(this.ctx.transform(...t),this.outputScaleX=t[0],this.outputScaleY=t[0]),this.ctx.transform(...n.transform),this.viewportScale=n.scale,this.baseTransform=(0,i.getCurrentTransform)(this.ctx)}executeOperatorList(e,t,n,i){const o=e.argsArray,a=e.fnArray;let s=t||0;const l=o.length;if(l===s)return s;const c=l-s>10&&"function"===typeof n,u=c?Date.now()+15:0;let d=0;const p=this.commonObjs,h=this.objs;let f;for(;;){if(void 0!==i&&s===i.nextBreakPoint)return i.breakIt(s,n),s;if(f=a[s],f!==r.OPS.dependency)this[f].apply(this,o[s]);else for(const e of o[s]){const t=e.startsWith("g_")?p:h;if(!t.has(e))return t.get(e,n),s}if(s++,s===l)return s;if(c&&++d>10){if(Date.now()>u)return n(),s;d=0}}}#ct(){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)}endDrawing(){this.#ct(),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const e of this._cachedBitmapsMap.values()){for(const t of e.values())"undefined"!==typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement&&(t.width=t.height=0);e.clear()}this._cachedBitmapsMap.clear(),this.#ut()}#ut(){if(this.pageColors){const e=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if("none"!==e){const t=this.ctx.filter;this.ctx.filter=e,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=t}}}_scaleImage(e,t){const n=e.width,r=e.height;let i,o,a=Math.max(Math.hypot(t[0],t[1]),1),s=Math.max(Math.hypot(t[2],t[3]),1),l=n,c=r,u="prescale1";for(;a>2&&l>1||s>2&&c>1;){let t=l,n=c;a>2&&l>1&&(t=l>=16384?Math.floor(l/2)-1||1:Math.ceil(l/2),a/=l/t),s>2&&c>1&&(n=c>=16384?Math.floor(c/2)-1||1:Math.ceil(c)/2,s/=c/n),i=this.cachedCanvases.getCanvas(u,t,n),o=i.context,o.clearRect(0,0,t,n),o.drawImage(e,0,0,l,c,0,0,t,n),e=i.canvas,l=t,c=n,u="prescale1"===u?"prescale2":"prescale1"}return{img:e,paintWidth:l,paintHeight:c}}_createMaskCanvas(e){const t=this.ctx,{width:n,height:a}=e,s=this.current.fillColor,l=this.current.patternFill,c=(0,i.getCurrentTransform)(t);let d,p,f,m;if((e.bitmap||e.data)&&e.count>1){const t=e.bitmap||e.data.buffer;p=JSON.stringify(l?c:[c.slice(0,4),s]),d=this._cachedBitmapsMap.get(t),d||(d=new Map,this._cachedBitmapsMap.set(t,d));const n=d.get(p);if(n&&!l)return{canvas:n,offsetX:Math.round(Math.min(c[0],c[2])+c[4]),offsetY:Math.round(Math.min(c[1],c[3])+c[5])};f=n}
vendor: 10,955 bytes, line 75
75f||(m=this.cachedCanvases.getCanvas("maskCanvas",n,a),h(m.context,e));let g=r.Util.transform(c,[1/n,0,0,-1/a,0,0]);g=r.Util.transform(g,[1,0,0,1,0,-a]);const b=r.Util.applyTransform([0,0],g),v=r.Util.applyTransform([n,a],g),y=r.Util.normalizeRect([b[0],b[1],v[0],v[1]]),w=Math.round(y[2]-y[0])||1,A=Math.round(y[3]-y[1])||1,E=this.cachedCanvases.getCanvas("fillCanvas",w,A),S=E.context,_=Math.min(b[0],v[0]),k=Math.min(b[1],v[1]);S.translate(-_,-k),S.transform(...g),f||(f=this._scaleImage(m.canvas,(0,i.getCurrentTransformInverse)(S)),f=f.img,d&&l&&d.set(p,f)),S.imageSmoothingEnabled=x((0,i.getCurrentTransform)(S),e.interpolate),u(S,f,0,0,f.width,f.height,0,0,n,a),S.globalCompositeOperation="source-in";const T=r.Util.transform((0,i.getCurrentTransformInverse)(S),[1,0,0,1,-_,-k]);return S.fillStyle=l?s.getPattern(t,this,T,o.PathType.FILL):s,S.fillRect(0,0,n,a),d&&!l&&(this.cachedCanvases.delete("fillCanvas"),d.set(p,E.canvas)),{canvas:E.canvas,offsetX:Math.round(_),offsetY:Math.round(k)}}setLineWidth(e){e!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=e,this.ctx.lineWidth=e}setLineCap(e){this.ctx.lineCap=w[e]}setLineJoin(e){this.ctx.lineJoin=A[e]}setMiterLimit(e){this.ctx.miterLimit=e}setDash(e,t){const n=this.ctx;void 0!==n.setLineDash&&(n.setLineDash(e),n.lineDashOffset=t)}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(const[t,n]of e)switch(t){case"LW":this.setLineWidth(n);break;case"LC":this.setLineCap(n);break;case"LJ":this.setLineJoin(n);break;case"ML":this.setMiterLimit(n);break;case"D":this.setDash(n[0],n[1]);break;case"RI":this.setRenderingIntent(n);break;case"FL":this.setFlatness(n);break;case"Font":this.setFont(n[0],n[1]);break;case"CA":this.current.strokeAlpha=n;break;case"ca":this.current.fillAlpha=n,this.ctx.globalAlpha=n;break;case"BM":this.ctx.globalCompositeOperation=n;break;case"SMask":this.current.activeSMask=n?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(n)}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const e=this.inSMaskMode;this.current.activeSMask&&!e?this.beginSMaskMode():!this.current.activeSMask&&e&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const e=this.ctx.canvas.width,t=this.ctx.canvas.height,n="smaskGroupAt"+this.groupLevel,r=this.cachedCanvases.getCanvas(n,e,t);this.suspendedCtx=this.ctx,this.ctx=r.context;const o=this.ctx;o.setTransform(...(0,i.getCurrentTransform)(this.suspendedCtx)),f(this.suspendedCtx,o),function(e,t){if(e._removeMirroring)throw new Error("Context is already forwarding operations.");e.__originalSave=e.save,e.__originalRestore=e.restore,e.__originalRotate=e.rotate,e.__originalScale=e.scale,e.__originalTranslate=e.translate,e.__originalTransform=e.transform,e.__originalSetTransform=e.setTransform,e.__originalResetTransform=e.resetTransform,e.__originalClip=e.clip,e.__originalMoveTo=e.moveTo,e.__originalLineTo=e.lineTo,e.__originalBezierCurveTo=e.bezierCurveTo,e.__originalRect=e.rect,e.__originalClosePath=e.closePath,e.__originalBeginPath=e.beginPath,e._removeMirroring=()=>{e.save=e.__originalSave,e.restore=e.__originalRestore,e.rotate=e.__originalRotate,e.scale=e.__originalScale,e.translate=e.__originalTranslate,e.transform=e.__originalTransform,e.setTransform=e.__originalSetTransform,e.resetTransform=e.__originalResetTransform,e.clip=e.__originalClip,e.moveTo=e.__originalMoveTo,e.lineTo=e.__originalLineTo,e.bezierCurveTo=e.__originalBezierCurveTo,e.rect=e.__originalRect,e.closePath=e.__originalClosePath,e.beginPath=e.__originalBeginPath,delete e._removeMirroring},e.save=function(){t.save(),this.__originalSave()},e.restore=function(){t.restore(),this.__originalRestore()},e.translate=function(e,n){t.translate(e,n),this.__originalTranslate(e,n)},e.scale=function(e,n){t.scale(e,n),this.__originalScale(e,n)},e.transform=function(e,n,r,i,o,a){t.transform(e,n,r,i,o,a),this.__originalTransform(e,n,r,i,o,a)},e.setTransform=function(e,n,r,i,o,a){t.setTransform(e,n,r,i,o,a),this.__originalSetTransform(e,n,r,i,o,a)},e.resetTransform=function(){t.resetTransform(),this.__originalResetTransform()},e.rotate=function(e){t.rotate(e),this.__originalRotate(e)},e.clip=function(e){t.clip(e),this.__originalClip(e)},e.moveTo=function(e,n){t.moveTo(e,n),this.__originalMoveTo(e,n)},e.lineTo=function(e,n){t.lineTo(e,n),this.__originalLineTo(e,n)},e.bezierCurveTo=function(e,n,r,i,o,a){t.bezierCurveTo(e,n,r,i,o,a),this.__originalBezierCurveTo(e,n,r,i,o,a)},e.rect=function(e,n,r,i){t.rect(e,n,r,i),this.__originalRect(e,n,r,i)},e.closePath=function(){t.closePath(),this.__originalClosePath()},e.beginPath=function(){t.beginPath(),this.__originalBeginPath()}}(o,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(),f(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(e){if(!this.current.activeSMask)return;e?(e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.ceil(e[2]),e[3]=Math.ceil(e[3])):e=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const t=this.current.activeSMask;y(this.suspendedCtx,t,this.ctx,e),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?(f(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const e=this.current;this.stateStack.push(e),this.current=e.clone()}restore(){0===this.stateStack.length&&this.inSMaskMode&&this.endSMaskMode(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),f(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(e,t,n,r,i,o){this.ctx.transform(e,t,n,r,i,o),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(e,t,n){const o=this.ctx,a=this.current;let s,l,c=a.x,u=a.y;const d=(0,i.getCurrentTransform)(o),p=0===d[0]&&0===d[3]||0===d[1]&&0===d[2],h=p?n.slice(0):null;for(let i=0,f=0,m=e.length;i<m;i++)switch(0|e[i]){case r.OPS.rectangle:c=t[f++],u=t[f++];const e=t[f++],n=t[f++],i=c+e,m=u+n;o.moveTo(c,u),0===e||0===n?o.lineTo(i,m):(o.lineTo(i,u),o.lineTo(i,m),o.lineTo(c,m)),p||a.updateRectMinMax(d,[c,u,i,m]),o.closePath();break;case r.OPS.moveTo:c=t[f++],u=t[f++],o.moveTo(c,u),p||a.updatePathMinMax(d,c,u);break;case r.OPS.lineTo:c=t[f++],u=t[f++],o.lineTo(c,u),p||a.updatePathMinMax(d,c,u);break;case r.OPS.curveTo:s=c,l=u,c=t[f+4],u=t[f+5],o.bezierCurveTo(t[f],t[f+1],t[f+2],t[f+3],c,u),a.updateCurvePathMinMax(d,s,l,t[f],t[f+1],t[f+2],t[f+3],c,u,h),f+=6;break;case r.OPS.curveTo2:s=c,l=u,o.bezierCurveTo(c,u,t[f],t[f+1],t[f+2],t[f+3]),a.updateCurvePathMinMax(d,s,l,c,u,t[f],t[f+1],t[f+2],t[f+3],h),c=t[f+2],u=t[f+3],f+=4;break;case r.OPS.curveTo3:s=c,l=u,c=t[f+2],u=t[f+3],o.bezierCurveTo(t[f],t[f+1],c,u,c,u),a.updateCurvePathMinMax(d,s,l,t[f],t[f+1],c,u,c,u,h),f+=4;break;case r.OPS.closePath:o.closePath()}p&&a.updateScalingPathMinMax(d,h),a.setCurrentPoint(c,u)}closePath(){this.ctx.closePath()}stroke(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.ctx,n=this.current.strokeColor;t.globalAlpha=this.current.strokeAlpha,this.contentVisible&&("object"===typeof n&&n?.getPattern?(t.save(),t.strokeStyle=n.getPattern(t,this,(0,i.getCurrentTransformInverse)(t),o.PathType.STROKE),this.rescaleAndStroke(!1),t.restore()):this.rescaleAndStroke(!0)),e&&this.consumePath(this.current.getClippedPathBoundingBox()),t.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.ctx,n=this.current.fillColor;let r=!1;this.current.patternFill&&(t.save(),t.fillStyle=n.getPattern(t,this,(0,i.getCurrentTransformInverse)(t),o.PathType.FILL),r=!0);const a=this.current.getClippedPathBoundingBox();this.contentVisible&&null!==a&&(this.pendingEOFill?(t.fill("evenodd"),this.pendingEOFill=!1):t.fill()),r&&t.restore(),e&&this.consumePath(a)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=E}eoClip(){this.pendingClip=S}beginText(){this.current.textMatrix=r.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const e=this.pendingTextPaths,t=this.ctx;if(void 0!==e){t.save(),t.beginPath();for(const n of e)t.setTransform(...n.transform),t.translate(n.x,n.y),n.addToPath(t,n.fontSize);t.restore(),t.clip(),t.beginPath(),delete this.pendingTextPaths}else t.beginPath()}setCharSpacing(e){this.current.charSpacing=e}setWordSpacing(e){this.current.wordSpacing=e}setHScale(e){this.current.textHScale=e/100}setLeading(e){this.current.leading=-e}setFont(e,t){const n=this.commonObjs.get(e),i=this.current;if(!n)throw new Error(`Can't find font for ${e}`);if(i.fontMatrix=n.fontMatrix||r.FONT_IDENTITY_MATRIX,0!==i.fontMatrix[0]&&0!==i.fontMatrix[3]||(0,r.warn)("Invalid font matrix for font "+e),t<0?(t=-t,i.fontDirection=-1):i.fontDirection=1,this.current.font=n,this.current.fontSize=t,n.isType3Font)return;const o=n.loadedName||"sans-serif",a=n.systemFontInfo?.css||`"${o}", ${n.fallbackName}`;let s="normal";n.black?s="900":n.bold&&(s="bold");const l=n.italic?"italic":"normal";let c=t;t<16?c=16:t>100&&(c=100),this.current.fontSizeScale=t/c,this.ctx.font=`${l} ${s} ${c}px ${a}`}setTextRenderingMode(e){this.current.textRenderingMode=e}setTextRise(e){this.current.textRise=e}moveText(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t}setLeadingMoveText(e,t){this.setLeading(-t),this.moveText(e,t)}setTextMatrix(e,t,n,r,i,o){this.current.textMatrix=[e,t,n,r,i,o],this.current.textMatrixScale=Math.hypot(e,t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(e,t,n,o){const a=this.ctx,s=this.current,l=s.font,c=s.textRenderingMode,u=s.fontSize/s.fontSizeScale,d=c&r.TextRenderingMode.FILL_STROKE_MASK,p=!!(c&r.TextRenderingMode.ADD_TO_PATH_FLAG),h=s.patternFill&&!l.missingFile;let f;(l.disableFontFace||p||h)&&(f=l.getPathGenerator(this.commonObjs,e)),l.disableFontFace||h?(a.save(),a.translate(t,n),a.beginPath(),f(a,u),o&&a.setTransform(...o),d!==r.TextRenderingMode.FILL&&d!==r.TextRenderingMode.FILL_STROKE||a.fill(),d!==r.TextRenderingMode.STROKE&&d!==r.TextRenderingMode.FILL_STROKE||a.stroke(),a.restore(
75)):(d!==r.TextRenderingMode.FILL&&d!==r.TextRenderingMode.FILL_STROKE||a.fillText(e,t,n),d!==r.TextRenderingMode.STROKE&&d!==r.TextRenderingMode.FILL_STROKE||a.strokeText(e,t,n)),p&&(this.pendingTextPaths||=[]).push({transform:(0,i.getCurrentTransform)(a),x:t,y:n,fontSize:u,addToPath:f})}get isFontSubpixelAAEnabled(){const{context:e}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);e.scale(1.5,1),e.fillText("I",0,10);const t=e.getImageData(0,0,10,10).data;let n=!1;for(let r=3;r<t.length;r+=4)if(t[r]>0&&t[r]<255){n=!0;break}return(0,r.shadow)(this,"isFontSubpixelAAEnabled",n)}showText(e){const t=this.current,n=t.font;if(n.isType3Font)return this.showType3Text(e);const a=t.fontSize;if(0===a)return;const s=this.ctx,l=t.fontSizeScale,c=t.charSpacing,u=t.wordSpacing,d=t.fontDirection,p=t.textHScale*d,h=e.length,f=n.vertical,m=f?1:-1,g=n.defaultVMetrics,b=a*t.fontMatrix[0],v=t.textRenderingMode===r.TextRenderingMode.FILL&&!n.disableFontFace&&!t.patternFill;let y;if(s.save(),s.transform(...t.textMatrix),s.translate(t.x,t.y+t.textRise),d>0?s.scale(p,-1):s.scale(p,1),t.patternFill){s.save();const e=t.fillColor.getPattern(s,this,(0,i.getCurrentTransformInverse)(s),o.PathType.FILL);y=(0,i.getCurrentTransform)(s),s.restore(),s.fillStyle=e}let x=t.lineWidth;const w=t.textMatrixScale;if(0===w||0===x){const e=t.textRenderingMode&r.TextRenderingMode.FILL_STROKE_MASK;e!==r.TextRenderingMode.STROKE&&e!==r.TextRenderingMode.FILL_STROKE||(x=this.getSinglePixelWidth())}else x/=w;if(1!==l&&(s.scale(l,l),x/=l),s.lineWidth=x,n.isInvalidPDFjsFont){const n=[];let r=0;for(const t of e)n.push(t.unicode),r+=t.width;return s.fillText(n.join(""),0,0),t.x+=r*b*p,s.restore(),void this.compose()}let A,E=0;for(A=0;A<h;++A){const t=e[A];if("number"===typeof t){E+=m*t*a/1e3;continue}let r=!1;const i=(t.isSpace?u:0)+c,o=t.fontChar,p=t.accent;let h,x,w=t.width;if(f){const e=t.vmetric||g,n=-(t.vmetric?e[1]:.5*w)*b,r=e[2]*b;w=e?-e[0]:w,h=n/l,x=(E+r)/l}else h=E/l,x=0;if(n.remeasure&&w>0){const e=1e3*s.measureText(o).width/a*l;if(w<e&&this.isFontSubpixelAAEnabled){const t=w/e;r=!0,s.save(),s.scale(t,1),h/=t}else w!==e&&(h+=(w-e)/2e3*a/l)}if(this.contentVisible&&(t.isInFont||n.missingFile))if(v&&!p)s.fillText(o,h,x);else if(this.paintChar(o,h,x,y),p){const e=h+a*p.offset.x/l,t=x-a*p.offset.y/l;this.paintChar(p.fontChar,e,t,y)}E+=f?w*b-i*d:w*b+i*d,r&&s.restore()}f?t.y-=E:t.x+=E*p,s.restore(),this.compose()}showType3Text(e){const t=this.ctx,n=this.current,i=n.font,o=n.fontSize,a=n.fontDirection,s=i.vertical?1:-1,l=n.charSpacing,c=n.wordSpacing,u=n.textHScale*a,d=n.fontMatrix||r.FONT_IDENTITY_MATRIX,p=e.length;let h,f,m,g;if(n.textRenderingMode!==r.TextRenderingMode.INVISIBLE&&0!==o){for(this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,t.save(),t.transform(...n.textMatrix),t.translate(n.x,n.y),t.scale(u,a),h=0;h<p;++h){if(f=e[h],"number"===typeof f){g=s*f*o/1e3,this.ctx.translate(g,0),n.x+=g*u;continue}const a=(f.isSpace?c:0)+l,p=i.charProcOperatorList[f.operatorListId];p?(this.contentVisible&&(this.processingType3=f,this.save(),t.scale(o,o),t.transform(...d),this.executeOperatorList(p),this.restore()),m=r.Util.applyTransform([f.width,0],d)[0]*o+a,t.translate(m,0),n.x+=m*u):(0,r.warn)(`Type3 character "${f.operatorListId}" is not available.`)}t.restore(),this.processingType3=null}}setCharWidth(e,t){}setCharWidthAndBounds(e,t,n,r,i,o){this.ctx.rect(n,r,i-n,o-r),this.ctx.clip(),this.endPath()}getColorN_Pattern(e){let t;if("TilingPattern"===e[0]){const n=e[1],r=this.baseTransform||(0,i.getCurrentTransform)(this.ctx),a={createCanvasGraphics:e=>new _(e,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};t=new o.TilingPattern(e,n,this.ctx,a,r)}else t=this._getPattern(e[1],e[2]);return t}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(e,t,n){const i=r.Util.makeHexColor(e,t,n);this.ctx.strokeStyle=i,this.current.strokeColor=i}setFillRGBColor(e,t,n){const i=r.Util.makeHexColor(e,t,n);this.ctx.fillStyle=i,this.current.fillColor=i,this.current.patternFill=!1}_getPattern(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.cachedPatterns.has(e)?t=this.cachedPatterns.get(e):(t=(0,o.getShadingPattern)(this.getObject(e)),this.cachedPatterns.set(e,t)),n&&(t.matrix=n),t}shadingFill(e){if(!this.contentVisible)return;const t=this.ctx;this.save();const n=this._getPattern(e);t.fillStyle=n.getPattern(t,this,(0,i.getCurrentTransformInverse)(t),o.PathType.SHADING);const a=(0,i.getCurrentTransformInverse)(t);if(a){const{width:e,height:n}=t.canvas,[i,o,s,l]=r.Util.getAxialAlignedBoundingBox([0,0,e,n],a);this.ctx.fillRect(i,o,s-i,l-o)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore(
vendor: 6,240 bytes, line 75
75)}beginInlineImage(){(0,r.unreachable)("Should not call beginInlineImage")}beginImageData(){(0,r.unreachable)("Should not call beginImageData")}paintFormXObjectBegin(e,t){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(e)&&6===e.length&&this.transform(...e),this.baseTransform=(0,i.getCurrentTransform)(this.ctx),t)){const e=t[2]-t[0],n=t[3]-t[1];this.ctx.rect(t[0],t[1],e,n),this.current.updateRectMinMax((0,i.getCurrentTransform)(this.ctx),t),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(e){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const t=this.ctx;e.isolated||(0,r.info)("TODO: Support non-isolated groups."),e.knockout&&(0,r.warn)("Knockout groups not supported.");const n=(0,i.getCurrentTransform)(t);if(e.matrix&&t.transform(...e.matrix),!e.bbox)throw new Error("Bounding box is required.");let o=r.Util.getAxialAlignedBoundingBox(e.bbox,(0,i.getCurrentTransform)(t));const a=[0,0,t.canvas.width,t.canvas.height];o=r.Util.intersect(o,a)||[0,0,0,0];const l=Math.floor(o[0]),c=Math.floor(o[1]);let u=Math.max(Math.ceil(o[2])-l,1),d=Math.max(Math.ceil(o[3])-c,1),p=1,h=1;u>s&&(p=u/s,u=s),d>s&&(h=d/s,d=s),this.current.startNewPathAndClipBox([0,0,u,d]);let m="groupAt"+this.groupLevel;e.smask&&(m+="_smask_"+this.smaskCounter++%2);const g=this.cachedCanvases.getCanvas(m,u,d),b=g.context;b.scale(1/p,1/h),b.translate(-l,-c),b.transform(...n),e.smask?this.smaskStack.push({canvas:g.canvas,context:b,offsetX:l,offsetY:c,scaleX:p,scaleY:h,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(l,c),t.scale(p,h),t.save()),f(t,b),this.ctx=b,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++}endGroup(e){if(!this.contentVisible)return;this.groupLevel--;const t=this.ctx,n=this.groupStack.pop();if(this.ctx=n,this.ctx.imageSmoothingEnabled=!1,e.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const e=(0,i.getCurrentTransform)(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...e);const n=r.Util.getAxialAlignedBoundingBox([0,0,t.canvas.width,t.canvas.height],e);this.ctx.drawImage(t.canvas,0,0),this.ctx.restore(),this.compose(n)}}beginAnnotation(e,t,n,o,a){if(this.#ct(),m(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),Array.isArray(t)&&4===t.length){const o=t[2]-t[0],s=t[3]-t[1];if(a&&this.annotationCanvasMap){(n=n.slice())[4]-=t[0],n[5]-=t[1],(t=t.slice())[0]=t[1]=0,t[2]=o,t[3]=s;const[a,l]=r.Util.singularValueDecompose2dScale((0,i.getCurrentTransform)(this.ctx)),{viewportScale:c}=this,u=Math.ceil(o*this.outputScaleX*c),d=Math.ceil(s*this.outputScaleY*c);this.annotationCanvas=this.canvasFactory.create(u,d);const{canvas:p,context:h}=this.annotationCanvas;this.annotationCanvasMap.set(e,p),this.annotationCanvas.savedCtx=this.ctx,this.ctx=h,this.ctx.save(),this.ctx.setTransform(a,0,0,-l,0,s*l),m(this.ctx)}else m(this.ctx),this.ctx.rect(t[0],t[1],o,s),this.ctx.clip(),this.endPath()}this.current=new d(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...n),this.transform(...o)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),this.#ut(),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(e){if(!this.contentVisible)return;const t=e.count;(e=this.getObject(e.data,e)).count=t;const n=this.ctx,r=this.processingType3;if(r&&(void 0===r.compiled&&(r.compiled=function(e){const{width:t,height:n}=e;if(t>1e3||n>1e3)return null;const r=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),i=t+1;let o,a,s,l=new Uint8Array(i*(n+1));const c=t+7&-8;let u=new Uint8Array(c*n),d=0;for(const m of e.data){let e=128;for(;e>0;)u[d++]=m&e?0:255,e>>=1}let p=0;for(d=0,0!==u[d]&&(l[0]=1,++p),a=1;a<t;a++)u[d]!==u[d+1]&&(l[a]=u[d]?2:1,++p),d++;for(0!==u[d]&&(l[a]=2,++p),o=1;o<n;o++){d=o*c,s=o*i,u[d-c]!==u[d]&&(l[s]=u[d]?1:8,++p);let e=(u[d]?4:0)+(u[d-c]?8:0);for(a=1;a<t;a++)e=(e>>2)+(u[d+1]?4:0)+(u[d-c+1]?8:0),r[e]&&(l[s+a]=r[e],++p),d++;if(u[d-c]!==u[d]&&(l[s+a]=u[d]?2:4,++p),p>1e3)return null}for(d=c*(n-1),s=o*i,0!==u[d]&&(l[s]=8,++p),a=1;a<t;a++)u[d]!==u[d+1]&&(l[s+a]=u[d]?4:8,++p),d++;if(0!==u[d]&&(l[s+a]=4,++p),p>1e3)return null;const h=new Int32Array([0,i,-1,0,-i,0,0,0,1]),f=new Path2D;for(o=0;p&&o<=n;o++){let e=o*i;const n=e+t;for(;e<n&&!l[e];)e++;if(e===n)continue;f.moveTo(e%i,o);const r=e;let a=l[e];do{const t=h[a];do{e+=t}while(!l[e]);const n=l[e];5!==n&&10!==n?(a=n,l[e]=0):(a=n&51*a>>4,l[e]&=a>>2|a<<2),f.lineTo(e%i,e/i|0),l[e]||--p}while(r!==e);--o}return u=null,l=null,function(e){e.save(),e.scale(1/t,-1/n),e.translate(0,-n),e.fill(f),e.beginPath(),e.restore()}}(e)),r.compiled))return void r.compiled(n);const i=this._createMaskCanvas(e),o=i.canvas;n.save(),n.setTransform(1,0,0,1,0,0),n.drawImage(o,i.offsetX,i.offsetY),n.restore(),this.compose()}paintImageMaskXObjectRepeat(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;if(!this.contentVisible)return;e=this.getObject(e.data,e);const l=this.ctx;l.save();const c=(0,i.getCurrentTransform)(l);l.transform(t,n,o,a,0,0);const u=this._createMaskCanvas(e);l.setTransform(1,0,0,1,u.offsetX-c[4],u.offsetY-c[5]);for(let i=0,d=s.length;i<d;i+=2){const e=r.Util.transform(c,[t,n,o,a,s[i],s[i+1]]),[d,p]=r.Util.applyTransform([0,0],e);l.drawImage(u.canvas,d,p)}l.restore(),this.compose()}paintImageMaskXObjectGroup(e){if(!this.contentVisible)return;const t=this.ctx,n=this.current.fillColor,r=this.current.patternFill;for(const a of e){const{data:e,width:s,height:l,transform:c}=a,d=this.cachedCanvases.getCanvas("maskCanvas",s,l),p=d.context;p.save(),h(p,this.getObject(e,a)),p.globalCompositeOperation="source-in",p.fillStyle=r?n.getPattern(p,this,(0,i.getCurrentTransformInverse)(t),o.PathType.FILL):n,p.fillRect(0,0,s,l),p.restore(
75),t.save(),t.transform(...c),t.scale(1,-1),u(t,d.canvas,0,0,s,l,0,-1,1,1),t.restore()}this.compose()}paintImageXObject(e){if(!this.contentVisible)return;const t=this.getObject(e);t?this.paintInlineImageXObject(t):(0,r.warn)("Dependent image isn't ready yet")}paintImageXObjectRepeat(e,t,n,i){if(!this.contentVisible)return;const o=this.getObject(e);if(!o)return void(0,r.warn)("Dependent image isn't ready yet");const a=o.width,s=o.height,l=[];for(let r=0,c=i.length;r<c;r+=2)l.push({transform:[t,0,0,n,i[r],i[r+1]],x:0,y:0,w:a,h:s});this.paintInlineImageXObjectGroup(o,l)}applyTransferMapsToCanvas(e){return"none"!==this.current.transferMaps&&(e.filter=this.current.transferMaps,e.drawImage(e.canvas,0,0),e.filter="none"),e.canvas}applyTransferMapsToBitmap(e){if("none"===this.current.transferMaps)return e.bitmap;const{bitmap:t,width:n,height:r}=e,i=this.cachedCanvases.getCanvas("inlineImage",n,r),o=i.context;return o.filter=this.current.transferMaps,o.drawImage(t,0,0),o.filter="none",i.canvas}paintInlineImageXObject(e){if(!this.contentVisible)return;const t=e.width,n=e.height,o=this.ctx;if(this.save(),!r.isNodeJS){const{filter:e}=o;"none"!==e&&""!==e&&(o.filter="none")}let a;if(o.scale(1/t,-1/n),e.bitmap)a=this.applyTransferMapsToBitmap(e);else if("function"===typeof HTMLElement&&e instanceof HTMLElement||!e.data)a=e;else{const r=this.cachedCanvases.getCanvas("inlineImage",t,n).context;p(r,e),a=this.applyTransferMapsToCanvas(r)}const s=this._scaleImage(a,(0,i.getCurrentTransformInverse)(o));o.imageSmoothingEnabled=x((0,i.getCurrentTransform)(o),e.interpolate),u(o,s.img,0,0,s.paintWidth,s.paintHeight,0,-n,t,n),this.compose(),this.restore()}paintInlineImageXObjectGroup(e,t){if(!this.contentVisible)return;const n=this.ctx;let r;if(e.bitmap)r=e.bitmap;else{const t=e.width,n=e.height,i=this.cachedCanvases.getCanvas("inlineImage",t,n).context;p(i,e),r=this.applyTransferMapsToCanvas(i)}for(const i of t)n.save(),n.transform(...i.transform),n.scale(1,-1),u(n,r,i.x,i.y,i.w,i.h,0,-1,1,1),n.restore();this.compose()}paintSolidColorImageMask(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(e){}markPointProps(e,t){}beginMarkedContent(e){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(e,t){"OC"===e?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(t)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(e){const t=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(e);const n=this.ctx;this.pendingClip&&(t||(this.pendingClip===S?n.clip("evenodd"):n.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),n.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const e=(0,i.getCurrentTransform)(this.ctx);if(0===e[1]&&0===e[2])this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(e[0]),Math.abs(e[3]));else{const t=Math.abs(e[0]*e[3]-e[2]*e[1]),n=Math.hypot(e[0],e[2]),r=Math.hypot(e[1],e[3]);this._cachedGetSinglePixelWidth=Math.max(n,r)/t}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(-1===this._cachedScaleForStroking[0]){const{lineWidth:e}=this.current,{a:t,b:n,c:r,d:i}=this.ctx.getTransform();let o,a;if(0===n&&0===r){const n=Math.abs(t),r=Math.abs(i);if(n===r)if(0===e)o=a=1/n;else{const t=n*e;o=a=t<1?1/t:1}else if(0===e)o=1/n,a=1/r;else{const t=n*e,i=r*e;o=t<1?1/t:1,a=i<1?1/i:1}}else{const s=Math.abs(t*i-n*r),l=Math.hypot(t,n),c=Math.hypot(r,i);if(0===e)o=c/s,a=l/s;else{const t=e*s;o=c>t?c/t:1,a=l>t?l/t:1}}this._cachedScaleForStroking[0]=o,this._cachedScaleForStroking[1]=a}return this._cachedScaleForStroking}rescaleAndStroke(e){const{ctx:t}=this,{lineWidth:n}=this.current,[r,i]=this.getScaleForStroking();if(t.lineWidth=n||1,1===r&&1===i)return void t.stroke();const o=t.getLineDash();if(e&&t.save(),t.scale(r,i),o.length>0){const e=Math.max(r,i);t.setLineDash(o.map((t=>t/e))),t.lineDashOffset/=e}
vendor: 4,532 bytes, line 75
75t.stroke(),e&&t.restore()}isContentVisible(){for(let e=this.markedContentStack.length-1;e>=0;e--)if(!this.markedContentStack[e].visible)return!1;return!0}}t.CanvasGraphics=_;for(const k in r.OPS)void 0!==_.prototype[k]&&(_.prototype[r.OPS[k]]=_.prototype[k])},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TilingPattern=t.PathType=void 0,t.getShadingPattern=function(e){switch(e[0]){case"RadialAxial":return new l(e);case"Mesh":return new d(e);case"Dummy":return new p}throw new Error(`Unknown IR type: ${e[0]}`)};var r=n(1),i=n(6);const o={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function a(e,t){if(!t)return;const n=t[2]-t[0],r=t[3]-t[1],i=new Path2D;i.rect(t[0],t[1],n,r),e.clip(i)}t.PathType=o;class s{constructor(){this.constructor===s&&(0,r.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,r.unreachable)("Abstract method `getPattern` called.")}}class l extends s{constructor(e){super(),this._type=e[1],this._bbox=e[2],this._colorStops=e[3],this._p0=e[4],this._p1=e[5],this._r0=e[6],this._r1=e[7],this.matrix=null}_createGradient(e){let t;"axial"===this._type?t=e.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):"radial"===this._type&&(t=e.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const n of this._colorStops)t.addColorStop(n[0],n[1]);return t}getPattern(e,t,n,s){let l;if(s===o.STROKE||s===o.FILL){const o=t.current.getClippedPathBoundingBox(s,(0,i.getCurrentTransform)(e))||[0,0,0,0],c=Math.ceil(o[2]-o[0])||1,u=Math.ceil(o[3]-o[1])||1,d=t.cachedCanvases.getCanvas("pattern",c,u,!0),p=d.context;p.clearRect(0,0,p.canvas.width,p.canvas.height),p.beginPath(),p.rect(0,0,p.canvas.width,p.canvas.height),p.translate(-o[0],-o[1]),n=r.Util.transform(n,[1,0,0,1,o[0],o[1]]),p.transform(...t.baseTransform),this.matrix&&p.transform(...this.matrix),a(p,this._bbox),p.fillStyle=this._createGradient(p),p.fill(),l=e.createPattern(d.canvas,"no-repeat");const h=new DOMMatrix(n);l.setTransform(h)}else a(e,this._bbox),l=this._createGradient(e);return l}}function c(e,t,n,r,i,o,a,s){const l=t.coords,c=t.colors,u=e.data,d=4*e.width;let p;l[n+1]>l[r+1]&&(p=n,n=r,r=p,p=o,o=a,a=p),l[r+1]>l[i+1]&&(p=r,r=i,i=p,p=a,a=s,s=p),l[n+1]>l[r+1]&&(p=n,n=r,r=p,p=o,o=a,a=p);const h=(l[n]+t.offsetX)*t.scaleX,f=(l[n+1]+t.offsetY)*t.scaleY,m=(l[r]+t.offsetX)*t.scaleX,g=(l[r+1]+t.offsetY)*t.scaleY,b=(l[i]+t.offsetX)*t.scaleX,v=(l[i+1]+t.offsetY)*t.scaleY;if(f>=v)return;const y=c[o],x=c[o+1],w=c[o+2],A=c[a],E=c[a+1],S=c[a+2],_=c[s],k=c[s+1],T=c[s+2],C=Math.round(f),O=Math.round(v);let N,I,R,P,j,M,D,L;for(let F=C;F<=O;F++){if(F<g){const e=F<f?0:(f-F)/(f-g);N=h-(h-m)*e,I=y-(y-A)*e,R=x-(x-E)*e,P=w-(w-S)*e}else{let e;e=F>v?1:g===v?0:(g-F)/(g-v),N=m-(m-b)*e,I=A-(A-_)*e,R=E-(E-k)*e,P=S-(S-T)*e}let e;e=F<f?0:F>v?1:(f-F)/(f-v),j=h-(h-b)*e,M=y-(y-_)*e,D=x-(x-k)*e,L=w-(w-T)*e;const t=Math.round(Math.min(N,j)),n=Math.round(Math.max(N,j));let r=d*F+4*t;for(let i=t;i<=n;i++)e=(N-i)/(N-j),e<0?e=0:e>1&&(e=1),u[r++]=I-(I-M)*e|0,u[r++]=R-(R-D)*e|0,u[r++]=P-(P-L)*e|0,u[r++]=255}}function u(e,t,n){const r=t.coords,i=t.colors;let o,a;switch(t.type){case"lattice":const s=t.verticesPerRow,l=Math.floor(r.length/s)-1,u=s-1;for(o=0;o<l;o++){let t=o*s;for(let o=0;o<u;o++,t++)c(e,n,r[t],r[t+1],r[t+s],i[t],i[t+1],i[t+s]),c(e,n,r[t+s+1],r[t+1],r[t+s],i[t+s+1],i[t+1],i[t+s])}break;case"triangles":for(o=0,a=r.length;o<a;o+=3)c(e,n,r[o],r[o+1],r[o+2],i[o],i[o+1],i[o+2]);break;default:throw new Error("illegal figure")}}class d extends s{constructor(e){super(),this._coords=e[2],this._colors=e[3],this._figures=e[4],this._bounds=e[5],this._bbox=e[7],this._background=e[8],this.matrix=null}_createMeshCanvas(e,t,n){const r=Math.floor(this._bounds[0]),i=Math.floor(this._bounds[1]),o=Math.ceil(this._bounds[2])-r,a=Math.ceil(this._bounds[3])-i,s=Math.min(Math.ceil(Math.abs(o*e[0]*1.1)),3e3),l=Math.min(Math.ceil(Math.abs(a*e[1]*1.1)),3e3),c=o/s,d=a/l,p={coords:this._coords,colors:this._colors,offsetX:-r,offsetY:-i,scaleX:1/c,scaleY:1/d},h=s+4,f=l+4,m=n.getCanvas("mesh",h,f,!1),g=m.context,b=g.createImageData(s,l);if(t){const e=b.data;for(let n=0,r=e.length;n<r;n+=4)e[n]=t[0],e[n+1]=t[1],e[n+2]=t[2],e[n+3]=255}for(const v of this._figures)u(b,v,p);return g.putImageData(b,2,2),{canvas:m.canvas,offsetX:r-2*c,offsetY:i-2*d,scaleX:c,scaleY:d}}getPattern(e,t,n,s){let l;if(a(e,this._bbox),s===o.SHADING)l=r.Util.singularValueDecompose2dScale((0,i.getCurrentTransform)(e));else if(l=r.Util.singularValueDecompose2dScale(t.baseTransform),this.matrix
75){const e=r.Util.singularValueDecompose2dScale(this.matrix);l=[l[0]*e[0],l[1]*e[1]]}const c=this._createMeshCanvas(l,s===o.SHADING?null:this._background,t.cachedCanvases);return s!==o.SHADING&&(e.setTransform(...t.baseTransform),this.matrix&&e.transform(...this.matrix)),e.translate(c.offsetX,c.offsetY),e.scale(c.scaleX,c.scaleY),e.createPattern(c.canvas,"no-repeat")}}class p extends s{getPattern(){return"hotpink"}}const h=1,f=2;class m{static MAX_PATTERN_SIZE=3e3;constructor(e,t,n,r,i){this.operatorList=e[2],this.matrix=e[3]||[1,0,0,1,0,0],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.color=t,this.ctx=n,this.canvasGraphicsFactory=r,this.baseTransform=i}createPatternCanvas(e){const t=this.operatorList,n=this.bbox,o=this.xstep,a=this.ystep,s=this.paintType,l=this.tilingType,c=this.color,u=this.canvasGraphicsFactory;(0,r.info)("TilingType: "+l);const d=n[0],p=n[1],h=n[2],f=n[3],m=r.Util.singularValueDecompose2dScale(this.matrix),g=r.Util.singularValueDecompose2dScale(this.baseTransform),b=[m[0]*g[0],m[1]*g[1]],v=this.getSizeAndScale(o,this.ctx.canvas.width,b[0]),y=this.getSizeAndScale(a,this.ctx.canvas.height,b[1]),x=e.cachedCanvases.getCanvas("pattern",v.size,y.size,!0),w=x.context,A=u.createCanvasGraphics(w);A.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(A,s,c);let E=d,S=p,_=h,k=f;return d<0&&(E=0,_+=Math.abs(d)),p<0&&(S=0,k+=Math.abs(p)),w.translate(-v.scale*E,-y.scale*S),A.transform(v.scale,0,0,y.scale,0,0),w.save(),this.clipBbox(A,E,S,_,k),A.baseTransform=(0,i.getCurrentTransform)(A.ctx),A.executeOperatorList(t),A.endDrawing(),{canvas:x.canvas,scaleX:v.scale,scaleY:y.scale,offsetX:E,offsetY:S}}getSizeAndScale(e,t,n){e=Math.abs(e);const r=Math.max(m.MAX_PATTERN_SIZE,t);let i=Math.ceil(e*n);return i>=r?i=r:n=i/e,{scale:n,size:i}}clipBbox(e,t,n,r,o){const a=r-t,s=o-n;e.ctx.rect(t,n,a,s),e.current.updateRectMinMax((0,i.getCurrentTransform)(e.ctx),[t,n,r,o]),e.clip(),e.endPath()}setFillAndStrokeStyleToContext(e,t,n){const i=e.ctx,o=e.current;switch(t){case h:const e=this.ctx;i.fillStyle=e.fillStyle,i.strokeStyle=e.strokeStyle,o.fillColor=e.fillStyle,o.strokeColor=e.strokeStyle;break;case f:const a=r.Util.makeHexColor(n[0],n[1],n[2]);i.fillStyle=a,i.strokeStyle=a,o.fillColor=a,o.strokeColor=a;break;default:throw new r.FormatError(`Unsupported paint type: ${t}`)}}getPattern(e,t,n,i){let a=n;i!==o.SHADING&&(a=r.Util.transform(a,t.baseTransform),this.matrix&&(a=r.Util.transform(a,this.matrix)));const s=this.createPatternCanvas(t);let l=new DOMMatrix(a);l=l.translate(s.offsetX,s.offsetY),l=l.scale(1/s.scaleX,1/s.scaleY);const c=e.createPattern(s.canvas,"repeat");return c.setTransform(l),c}}t.TilingPattern=m},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.convertBlackAndWhiteToRGBA=i,t.convertToRGBA=function(e){switch(e.kind){case r.ImageKind.GRAYSCALE_1BPP:return i(e);case r.ImageKind.RGB_24BPP:return function(e){let{src:t,srcPos:n=0,dest:i,destPos:o=0,width:a,height:s}=e,l=0;const c=t.length>>2,u=new Uint32Array(t.buffer,n,c);if(r.FeatureTest.isLittleEndian){for(;l<c-2;l+=3,o+=4){const e=u[l],t=u[l+1],n=u[l+2];i[o]=4278190080|e,i[o+1]=e>>>24|t<<8|4278190080,i[o+2]=t>>>16|n<<16|4278190080,i[o+3]=n>>>8|4278190080}for(let e=4*l,n=t.length;e<n;e+=3)i[o++]=t[e]|t[e+1]<<8|t[e+2]<<16|4278190080}else{for(;l<c-2;l+=3,o+=4){const e=u[l],t=u[l+1],n=u[l+2];i[o]=255|e,i[o+1]=e<<24|t>>>8|255,i[o+2]=t<<16|n>>>16|255,i[o+3]=n<<8|255}for(let e=4*l,n=t.length;e<n;e+=3)i[o++]=t[e]<<24|t[e+1]<<16|t[e+2]<<8|255}return{srcPos:n,destPos:o}}(e)}return null},t.grayToRGBA=function(e,t){if(r.FeatureTest.isLittleEndian)for(let n=0,r=e.length;n<r;n++)t[n]=65793*e[n]|4278190080;else for(let n=0,r=e.length;n<r;n++)t[n]=16843008*e[n]|255};var r=n(1);function i(e){let{src:t,srcPos:n=0,dest:i,width:o,height:a,nonBlackColor:s=4294967295,inverseDecode:l=!1}=e;const c=r.FeatureTest.isLittleEndian?4278190080:255,[u,d]=l?[s,c]:[c,s],p=o>>3,h=7&o,f=t.length;i=new Uint32Array(i.buffer);let m=0;for(let r=0;r<a;r++){for(const r=n+p;n<r;n++){const e=n<f?t[n]:255;i[m++]=128&e?d:u,i[m++]=64&e?d:u,i[m++]=32&e?d:u,i[m++]=16&e?d:u,i[m++]=8&e?d:u,i[m++]=4&e?d:u,i[m++]=2&e?d:u,i[m++]=1&e?d:u}if(0===h)continue;const e=n<f?t[n++]:255;for(let t=0;t<h;t++)i[m++]=e&1<<7-t?d:u}return{srcPos:n,destPos:m}}},(e,t)=>
75{Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;const n=Object.create(null);t.GlobalWorkerOptions=n,n.workerPort=null,n.workerSrc=""},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var r=n(1);const i=1,o=2,a=1,s=2,l=3,c=4,u=5,d=6,p=7,h=8;function f(e){switch(e instanceof Error||"object"===typeof e&&null!==e||(0,r.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new r.AbortException(e.message);case"MissingPDFException":return new r.MissingPDFException(e.message);case"PasswordException":return new r.PasswordException(e.message,e.code);case"UnexpectedResponseException":return new r.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new r.UnknownErrorException(e.message,e.details);default:return new r.UnknownErrorException(e.message,e.toString())}}t.MessageHandler=class{constructor(e,t,n){this.sourceName=e,this.targetName=t,this.comObj=n,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=e=>{const t=e.data;if(t.targetName!==this.sourceName)return;if(t.stream)return void this.#dt(t);if(t.callback){const e=t.callbackId,n=this.callbackCapabilities[e];if(!n)throw new Error(`Cannot resolve callback ${e}`);if(delete this.callbackCapabilities[e],t.callback===i)n.resolve(t.data);else{if(t.callback!==o)throw new Error("Unexpected callback case");n.reject(f(t.reason))}return}const r=this.actionHandler[t.action];if(!r)throw new Error(`Unknown action from worker: ${t.action}`);if(t.callbackId){const e=this.sourceName,a=t.sourceName;new Promise((function(e){e(r(t.data))})).then((function(r){n.postMessage({sourceName:e,targetName:a,callback:i,callbackId:t.callbackId,data:r})}),(function(r){n.postMessage({sourceName:e,targetName:a,callback:o,callbackId:t.callbackId,reason:f(r)})}))}else t.streamId?this.#pt(t):r(t.data)},n.addEventListener("message",this._onComObjOnMessage)}on(e,t){const n=this.actionHandler;if(n[e])throw new Error(`There is already an actionName called "${e}"`);n[e]=t}send(e,t,n){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},n)}sendWithPromise(e,t,n){const i=this.callbackId++,o=new r.PromiseCapability;this.callbackCapabilities[i]=o;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:i,data:t},n)}catch(a){o.reject(a)}return o.promise}sendWithStream(e,t,n,i){const o=this.streamId++,s=this.sourceName,l=this.targetName,c=this.comObj;return new ReadableStream({start:n=>{const a=new r.PromiseCapability;return this.streamControllers[o]={controller:n,startCall:a,pullCall:null,cancelCall:null,isClosed:!1},c.postMessage({sourceName:s,targetName:l,action:e,streamId:o,data:t,desiredSize:n.desiredSize},i),a.promise},pull:e=>{const t=new r.PromiseCapability;return this.streamControllers[o].pullCall=t,c.postMessage({sourceName:s,targetName:l,stream:d,streamId:o,desiredSize:e.desiredSize}),t.promise},cancel:e=>{(0,r.assert)(e instanceof Error,"cancel must have a valid reason");const t=new r.PromiseCapability;return this.streamControllers[o].cancelCall=t,this.streamControllers[o].isClosed=!0,c.postMessage({sourceName:s,targetName:l,stream:a,streamId:o,reason:f(e)}),t.promise}},n)}#pt(e){const t=e.streamId,n=this.sourceName,i=e.sourceName,o=this.comObj,a=this,s=this.actionHandler[e.action],d={enqueue(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,s=arguments.length>2?arguments[2]:void 0;if(this.isCancelled)return;const l=this.desiredSize;this.desiredSize-=a,l>0&&this.desiredSize<=0&&(this.sinkCapability=new r.PromiseCapability,this.ready=this.sinkCapability.promise),o.postMessage({sourceName:n,targetName:i,stream:c,streamId:t,chunk:e},s)},close(){this.isCancelled||(this.isCancelled=!0,o.postMessage({sourceName:n,targetName:i,stream:l,streamId:t}),delete a.streamSinks[t])},error(e){(0,r.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,o.postMessage({sourceName:n,targetName:i,stream:u,streamId:t,reason:f(e)}
75))},sinkCapability:new r.PromiseCapability,onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};d.sinkCapability.resolve(),d.ready=d.sinkCapability.promise,this.streamSinks[t]=d,new Promise((function(t){t(s(e.data,d))})).then((function(){o.postMessage({sourceName:n,targetName:i,stream:h,streamId:t,success:!0})}),(function(e){o.postMessage({sourceName:n,targetName:i,stream:h,streamId:t,reason:f(e)})}))}#dt(e){const t=e.streamId,n=this.sourceName,i=e.sourceName,o=this.comObj,m=this.streamControllers[t],g=this.streamSinks[t];switch(e.stream){case h:e.success?m.startCall.resolve():m.startCall.reject(f(e.reason));break;case p:e.success?m.pullCall.resolve():m.pullCall.reject(f(e.reason));break;case d:if(!g){o.postMessage({sourceName:n,targetName:i,stream:p,streamId:t,success:!0});break}g.desiredSize<=0&&e.desiredSize>0&&g.sinkCapability.resolve(),g.desiredSize=e.desiredSize,new Promise((function(e){e(g.onPull?.())})).then((function(){o.postMessage({sourceName:n,targetName:i,stream:p,streamId:t,success:!0})}),(function(e){o.postMessage({sourceName:n,targetName:i,stream:p,streamId:t,reason:f(e)})}));break;case c:if((0,r.assert)(m,"enqueue should have stream controller"),m.isClosed)break;m.controller.enqueue(e.chunk);break;case l:if((0,r.assert)(m,"close should have stream controller"),m.isClosed)break;m.isClosed=!0,m.controller.close(),this.#ht(m,t);break;case u:(0,r.assert)(m,"error should have stream controller"),m.controller.error(f(e.reason)),this.#ht(m,t);break;case s:e.success?m.cancelCall.resolve():m.cancelCall.reject(f(e.reason)),this.#ht(m,t);break;case a:if(!g)break;new Promise((function(t){t(g.onCancel?.(f(e.reason)))})).then((function(){o.postMessage({sourceName:n,targetName:i,stream:s,streamId:t,success:!0})}),(function(e){o.postMessage({sourceName:n,targetName:i,stream:s,streamId:t,reason:f(e)})})),g.sinkCapability.reject(f(e.reason)),g.isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}async#ht(e,t){await Promise.allSettled([e.startCall?.promise,e.pullCall?.promise,e.cancelCall?.promise]),delete this.streamControllers[t]}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var r=n(1);t.Metadata=class{#ft;#mt;constructor(e){let{parsedData:t,rawData:n}=e;this.#ft=t,this.#mt=n}getRaw(){return this.#mt}get(e){return this.#ft.get(e)??null}getAll(){return(0,r.objectFromMap)(this.#ft)}has(e){return this.#ft.has(e)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalContentConfig=void 0;var r=n(1),i=n(8);const o=Symbol("INTERNAL");class a{#gt=!0;constructor(e,t){this.name=e,this.intent=t}get visible(){return this.#gt}_setVisible(e,t){e!==o&&(0,r.unreachable)("Internal method `_setVisible` called."),this.#gt=t}}t.OptionalContentConfig=class{#bt=null;#vt=(()=>new Map)();#yt=null;#xt=null;constructor(e){if(this.name=null,this.creator=null,null!==e){this.name=e.name,this.creator=e.creator,this.#xt=e.order;for(const t of e.groups)this.#vt.set(t.id,new a(t.name,t.intent));if("OFF"===e.baseState)for(const e of this.#vt.values())e._setVisible(o,!1);for(const t of e.on)this.#vt.get(t)._setVisible(o,!0);for(const t of e.off)this.#vt.get(t)._setVisible(o,!1);this.#yt=this.getHash()}}#wt(e){const t=e.length;if(t<2)return!0;const n=e[0];for(let i=1;i<t;i++){const t=e[i];let o;if(Array.isArray(t))o=this.#wt(t);else{if(!this.#vt.has(t))return(0,r.warn)(`Optional content group not found: ${t}`),!0;o=this.#vt.get(t).visible}switch(n){case"And":if(!o)return!1;break;case"Or":if(o)return!0;break;case"Not":return!o;default:return!0}}return"And"===n}isVisible(e){if(0===this.#vt.size)return!0;if(!e)return(0,r.warn)("Optional content group not defined."),!0;if("OCG"===e.type)return this.#vt.has(e.id)?this.#vt.get(e.id).visible:((0,r.warn)(`Optional content group not found: ${e.id}`),!0);if("OCMD"===e.type){if(e.expression)return this.#wt(e.expression);if(!e.policy||"AnyOn"===e.policy){for(const t of e.ids){if(!this.#vt.has(t))return(0,r.warn)(`Optional content group not found: ${t}`),!0;if(this.#vt.get(t).visible)return!0}return!1}if("AllOn"===e.policy){for(const t of e.ids){if(!this.#vt.has(t))return(0,r.w
75arn)(`Optional content group not found: ${t}`),!0;if(!this.#vt.get(t).visible)return!1}return!0}if("AnyOff"===e.policy){for(const t of e.ids){if(!this.#vt.has(t))return(0,r.warn)(`Optional content group not found: ${t}`),!0;if(!this.#vt.get(t).visible)return!0}return!1}if("AllOff"===e.policy){for(const t of e.ids){if(!this.#vt.has(t))return(0,r.warn)(`Optional content group not found: ${t}`),!0;if(this.#vt.get(t).visible)return!1}return!0}return(0,r.warn)(`Unknown optional content policy ${e.policy}.`),!0}return(0,r.warn)(`Unknown group type ${e.type}.`),!0}setVisibility(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.#vt.has(e)?(this.#vt.get(e)._setVisible(o,!!t),this.#bt=null):(0,r.warn)(`Optional content group not found: ${e}`)}get hasInitialVisibility(){return null===this.#yt||this.getHash()===this.#yt}getOrder(){return this.#vt.size?this.#xt?this.#xt.slice():[...this.#vt.keys()]:null}getGroups(){return this.#vt.size>0?(0,r.objectFromMap)(this.#vt):null}getGroup(e){return this.#vt.get(e)||null}getHash(){if(null!==this.#bt)return this.#bt;const e=new i.MurmurHash3_64;for(const[t,n]of this.#vt)e.update(`${t}:${n.visible}`);return this.#bt=e.hexdigest()}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}
75),t.PDFDataTransportStream=void 0;var r=n(1),i=n(6);t.PDFDataTransportStream=class{constructor(e,t){let{length:n,initialData:i,progressiveDone:o=!1,contentDispositionFilename:a=null,disableRange:s=!1,disableStream:l=!1}=e;if((0,r.assert)(t,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=o,this._contentDispositionFilename=a,i?.length>0){const e=i instanceof Uint8Array&&i.byteLength===i.buffer.byteLength?i.buffer:new Uint8Array(i).buffer;this._queuedChunks.push(e)}this._pdfDataRangeTransport=t,this._isStreamingSupported=!l,this._isRangeSupported=!s,this._contentLength=n,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener(((e,t)=>{this._onReceiveData({begin:e,chunk:t})})),this._pdfDataRangeTransport.addProgressListener(((e,t)=>{this._onProgress({loaded:e,total:t})})),this._pdfDataRangeTransport.addProgressiveReadListener((e=>{this._onReceiveData({chunk:e})})),this._pdfDataRangeTransport.addProgressiveDoneListener((()=>{this._onProgressiveDone()})),this._pdfDataRangeTransport.transportReady()}_onReceiveData(e){let{begin:t,chunk:n}=e;const i=n instanceof Uint8Array&&n.byteLength===n.buffer.byteLength?n.buffer:new Uint8Array(n).buffer;if(void 0===t)this._fullRequestReader?this._fullRequestReader._enqueue(i):this._queuedChunks.push(i);else{const e=this._rangeReaders.some((function(e){return e._begin===t&&(e._enqueue(i),!0)}));(0,r.assert)(e,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}_onProgress(e){void 0===e.total?this._rangeReaders[0]?.onProgress?.({loaded:e.loaded}):this._fullRequestReader?.onProgress?.({loaded:e.loaded,total:e.total})}_onProgressiveDone(){this._fullRequestReader?.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(e){const t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}getFullReader(){(0,r.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const e=this._queuedChunks;return this._queuedChunks=null,new o(this,e,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=new a(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(const t of this._rangeReaders.slice(0))t.cancel(e);this._pdfDataRangeTransport.abort()}};class o{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this._stream=e,this._done=n||!1,this._filename=(0,i.isPdfFile)(r)?r:null,this._queuedChunks=t||[],this._loaded=0;for(const i of this._queuedChunks)this._loaded+=i.byteLength;this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}_enqueue(e){this._done||(this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunks.push(e),this._loaded+=e.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 e=new r.PromiseCapability;return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class a{constructor(e,t,n){this._stream=e,this._begin=t,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(e){if(!this._done){if(0===this._requests.length)this._queuedChunk=e;else{this._requests.shift().resolve({value:e,done:!1});for(const e of this._requests)e.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 e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const e=new r.PromiseCapability;return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}},(e,t,n)=>
75{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var r=n(1),i=n(20);function o(e,t,n){return{method:"GET",headers:e,signal:n.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function a(e){const t=new Headers;for(const n in e){const r=e[n];void 0!==r&&t.append(n,r)}return t}function s(e){return e instanceof Uint8Array?e.buffer:e instanceof ArrayBuffer?e:((0,r.warn)(`getArrayBuffer - unexpected data format: ${e}`),new Uint8Array(e).buffer)}t.PDFFetchStream=class{constructor(e){this.source=e,this.isHttp=/^https?:/i.test(e.url),this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new l(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=new c(this,e,t);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}};class l{constructor(e){this._stream=e,this._reader=null,this._loaded=0,this._filename=null;const t=e.source;this._withCredentials=t.withCredentials||!1,this._contentLength=t.length,this._headersCapability=new r.PromiseCapability,this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._headers=a(this._stream.httpHeaders);const n=t.url;fetch(n,o(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,i.validateResponseStatus)(e.status))throw(0,i.createResponseStatusError)(e.status,n);this._reader=e.body.getReader(),this._headersCapability.resolve();const t=t=>e.headers.get(t),{allowRangeRequests:o,suggestedLength:a}=(0,i.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=o,this._contentLength=a||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(t),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new r.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(){await this._headersCapability.promise;const{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:s(e),done:!1})}cancel(e){this._reader?.cancel(e),this._abortController.abort()}}class c{constructor(e,t,n){this._stream=e,this._reader=null,this._loaded=0;const s=e.source;this._withCredentials=s.withCredentials||!1,this._readCapability=new r.PromiseCapability,this._isStreamingSupported=!s.disableStream,this._abortController=new AbortController,this._headers=a(this._stream.httpHeaders),this._headers.append("Range",`bytes=${t}-${n-1}`);const l=s.url;fetch(l,o(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,i.validateResponseStatus)(e.status))throw(0,i.createResponseStatusError)(e.status,l);this._readCapability.resolve(),this._reader=e.body.getReader()})).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;const{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress?.({loaded:this._loaded}),{value:s(e),done:!1})}cancel(e){this._reader?.cancel(e),this._abortController.abort()}}},(e,t,n)=>
vendor: 4,811 bytes, line 75
75{Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=function(e,t){return 404===e||0===e&&t.startsWith("file:")?new r.MissingPDFException('Missing PDF "'+t+'".'):new r.UnexpectedResponseException(`Unexpected server response (${e}) while retrieving PDF "${t}".`,e)},t.extractFilenameFromHeader=function(e){const t=e("Content-Disposition");if(t){let e=(0,i.getFilenameFromContentDispositionHeader)(t);if(e.includes("%"))try{e=decodeURIComponent(e)}catch{}if((0,o.isPdfFile)(e))return e}return null},t.validateRangeRequestCapabilities=function(e){let{getResponseHeader:t,isHttp:n,rangeChunkSize:r,disableRange:i}=e;const o={allowRangeRequests:!1,suggestedLength:void 0},a=parseInt(t("Content-Length"),10);return Number.isInteger(a)?(o.suggestedLength=a,a<=2*r||i||!n||"bytes"!==t("Accept-Ranges")||"identity"!==(t("Content-Encoding")||"identity")||(o.allowRangeRequests=!0),o):o},t.validateResponseStatus=function(e){return 200===e||206===e};var r=n(1),i=n(21),o=n(6)},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=function(e){let t=!0,n=i("filename\\*","i").exec(e);if(n){n=n[1];let e=s(n);return e=unescape(e),e=l(e),e=c(e),a(e)}if(n=function(e){const t=[];let n;const r=i("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;null!==(n=r.exec(e));){let[,e,r,i]=n;if(e=parseInt(e,10),e in t){if(0===e)break}else t[e]=[r,i]}const o=[];for(let i=0;i<t.length&&i in t;++i){let[e,n]=t[i];n=s(n),e&&(n=unescape(n),0===i&&(n=l(n))),o.push(n)}return o.join("")}(e),n)return a(c(n));if(n=i("filename","i").exec(e),n){n=n[1];let e=s(n);return e=c(e),a(e)}function i(e,t){return new RegExp("(?:^|;)\\s*"+e+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',t)}function o(e,n){if(e){if(!/^[\x00-\xFF]+$/.test(n))return n;try{const i=new TextDecoder(e,{fatal:!0}),o=(0,r.stringToBytes)(n);n=i.decode(o),t=!1}catch{}}return n}function a(e){return t&&/[\x80-\xff]/.test(e)&&(e=o("utf-8",e),t&&(e=o("iso-8859-1",e))),e}function s(e){if(e.startsWith('"')){const t=e.slice(1).split('\\"');for(let e=0;e<t.length;++e){const n=t[e].indexOf('"');-1!==n&&(t[e]=t[e].slice(0,n),t.length=e+1),t[e]=t[e].replaceAll(/\\(.)/g,"$1")}e=t.join('"')}return e}function l(e){const t=e.indexOf("'");return-1===t?e:o(e.slice(0,t),e.slice(t+1).replace(/^[^']*'/,""))}function c(e){return!e.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(e)?e:e.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,(function(e,t,n,r){if("q"===n||"Q"===n)return o(t,r=(r=r.replaceAll("_"," ")).replaceAll(/=([0-9a-fA-F]{2})/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})));try{r=atob(r)}catch{}return o(t,r)}))}return""};var r=n(1)},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNetworkStream=void 0;var r=n(1),i=n(20);class o{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.url=e,this.isHttp=/^https?:/i.test(e),this.httpHeaders=this.isHttp&&t.httpHeaders||Object.create(null),this.withCredentials=t.withCredentials||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(e,t,n){const r={begin:e,end:t};for(const i in n)r[i]=n[i];return this.request(r)}requestFull(e){return this.request(e)}request(e){const t=new XMLHttpRequest,n=this.currXhrId++,r=this.pendingRequests[n]={xhr:t};t.open("GET",this.url),t.withCredentials=this.withCredentials;for(const i in this.httpHeaders){const e=this.httpHeaders[i];void 0!==e&&t.setRequestHeader(i,e)}return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range",`bytes=${e.begin}-${e.end-1}`),r.expectedStatus=206):r.expectedStatus=200,t.responseType="arraybuffer",e.onError&&(t.onerror=function(n){e.onError(t.status)}),t.onreadystatechange=this.onStateChange.bind(this,n),t.onprogress=this.onProgress.bind(this,n),r.onHeadersReceived=e.onHeadersReceived,r.onDone=e.onDone,r.onError=e.onError,r.onProgress=e.onProgress,t.send(null),n}onProgress(e,t){const n=this.pendingRequests[e];n&&n.onProgress?.(t)}onStateChange(e,t){const n=this.pendingRequests[e];if(!n)return;const i=n.xhr;if(i.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),4!==i.readyState)return;if(!(e in this.pendingRequests))return;if(delete this.pendingRequests[e],0===i.status&&this.isHttp)return void n.onError?.(i.status);const o=i.status||200;if((200!==o||206!==n.expectedStatus)&&o!==n.expectedStatus)return void n.onError?.(i.status);const a=function(e){const t=e.response;return"string"!==typeof t?t:(0,r.stringToBytes)(t).buffer}(i);if(206===o){const e=i.getResponseHeader("Content-Range"),t=/bytes (\d+)-(\d+)\/(\d+)/.exec(e);n.onDone({begin:parseInt(t[1],10),chunk:a})}else a?n.onDone({begin:0,chunk:a}):n.onError?.(i.status)}getRequestXhr(e){return this.pendingRequests[e].xhr}isPendingRequest(e){return e in this.pendingRequests}
75abortRequest(e){const t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}t.PDFNetworkStream=class{constructor(e){this._source=e,this._manager=new o(e.url,{httpHeaders:e.httpHeaders,withCredentials:e.withCredentials}),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(e){const t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new a(this._manager,this._source),this._fullRequestReader}getRangeReader(e,t){const n=new s(this._manager,e,t);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}};class a{constructor(e,t){this._manager=e;const n={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=t.url,this._fullRequestId=e.requestFull(n),this._headersReceivedCapability=new r.PromiseCapability,this._disableRange=t.disableRange||!1,this._contentLength=t.length,this._rangeChunkSize=t.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 e=this._fullRequestId,t=this._manager.getRequestXhr(e),n=e=>t.getResponseHeader(e),{allowRangeRequests:r,suggestedLength:o}=(0,i.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});r&&(this._isRangeSupported=!0),this._contentLength=o||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(n),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}_onDone(e){if(e&&(this._requests.length>0?this._requests.shift().resolve({value:e.chunk,done:!1}):this._cachedChunks.push(e.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(e){this._storedError=(0,i.createResponseStatusError)(e,this._url),this._headersReceivedCapability.reject(this._storedError);for(const t of this._requests)t.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(e){this.onProgress?.({loaded:e.loaded,total:e.lengthComputable?e.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 e=new r.PromiseCapability;return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._headersReceivedCapability.reject(e);for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class s{constructor(e,t,n){this._manager=e;const r={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=e.url,this._requestId=e.requestRange(t,n,r),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){this.onClosed?.(this)}_onDone(e){const t=e.chunk;this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunk=t,this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(e){this._storedError=(0,i.createResponseStatusError)(e,this._url);for(const t of this._requests)t.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(e){this.isStreamingSupported||this.onProgress?.({loaded:e.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(null!==this._queuedChunk){const e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const e=new r.PromiseCapability;return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest
75(this._requestId),this._close()}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var r=n(1),i=n(20);const o=/^file:\/\/\/[a-zA-Z]:\//;t.PDFNodeStream=class{constructor(e){this.source=e,this.url=function(e){const t=__webpack_require__(66671),n=t.parse(e);return"file:"===n.protocol||n.host?n:/^[a-z]:[/\\]/i.test(e)?t.parse(`file:///${e}`):(n.host||(n.protocol="file:"),n)}(e.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new d(this):new c(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=this.isFsUrl?new p(this,e,t):new u(this,e,t);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}};class a{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;const t=e.source;this._contentLength=t.length,this._loaded=0,this._filename=null,this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._readableStream=null,this._readCapability=new r.PromiseCapability,this._headersCapability=new r.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(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();return null===e?(this._readCapability=new r.PromiseCapability,this.read()):(this._loaded+=e.length,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new r.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class s{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=new r.PromiseCapability;const t=e.source;this._isStreamingSupported=!t.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();return null===e?(this._readCapability=new r.PromiseCapability,this.read()):(this._loaded+=e.length,this.onProgress?.({loaded:this._loaded}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),this._storedError&&this._readableStream.destroy(this._storedError)}}function l(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}class c extends a{constructor(e){super(e);const t=t=>
vendor: 12,619 bytes, line 75
75{if(404===t.statusCode){const e=new r.MissingPDFException(`Missing PDF "${this._url}".`);return this._storedError=e,void this._headersCapability.reject(e)}this._headersCapability.resolve(),this._setReadableStream(t);const n=e=>this._readableStream.headers[e.toLowerCase()],{allowRangeRequests:o,suggestedLength:a}=(0,i.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:e.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=o,this._contentLength=a||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(n)};if(this._request=null,"http:"===this._url.protocol){const n=__webpack_require__(97492);this._request=n.request(l(this._url,e.httpHeaders),t)}else{const n=__webpack_require__(31815);this._request=n.request(l(this._url,e.httpHeaders),t)}this._request.on("error",(e=>{this._storedError=e,this._headersCapability.reject(e)})),this._request.end()}}class u extends s{constructor(e,t,n){super(e),this._httpHeaders={};for(const r in e.httpHeaders){const t=e.httpHeaders[r];void 0!==t&&(this._httpHeaders[r]=t)}this._httpHeaders.Range=`bytes=${t}-${n-1}`;const i=e=>{if(404!==e.statusCode)this._setReadableStream(e);else{const e=new r.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=e}};if(this._request=null,"http:"===this._url.protocol){const e=__webpack_require__(97492);this._request=e.request(l(this._url,this._httpHeaders),i)}else{const e=__webpack_require__(31815);this._request=e.request(l(this._url,this._httpHeaders),i)}this._request.on("error",(e=>{this._storedError=e})),this._request.end()}}class d extends a{constructor(e){super(e);let t=decodeURIComponent(this._url.path);o.test(this._url.href)&&(t=t.replace(/^\//,""));const n=__webpack_require__(23237);n.lstat(t,((e,i)=>{if(e)return"ENOENT"===e.code&&(e=new r.MissingPDFException(`Missing PDF "${t}".`)),this._storedError=e,void this._headersCapability.reject(e);this._contentLength=i.size,this._setReadableStream(n.createReadStream(t)),this._headersCapability.resolve()}))}}class p extends s{constructor(e,t,n){super(e);let r=decodeURIComponent(this._url.path);o.test(this._url.href)&&(r=r.replace(/^\//,""));const i=__webpack_require__(23237);this._setReadableStream(i.createReadStream(r,{start:t,end:n-1}))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var r=n(6),i=n(1);const o="normal",a="normal",s="#000000",l=["butt","round","square"],c=["miter","round","bevel"],u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(URL.createObjectURL&&"undefined"!==typeof Blob&&!n)return URL.createObjectURL(new Blob([e],{type:t}));const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let i=`data:${t};base64,`;for(let o=0,a=e.length;o<a;o+=3){const t=255&e[o],n=255&e[o+1],s=255&e[o+2];i+=r[t>>2]+r[(3&t)<<4|n>>4]+r[o+1<a?(15&n)<<2|s>>6:64]+r[o+2<a?63&s:64]}return i},d=function(){const e=new Uint8Array([137,80,78,71,13,10,26,10]),t=new Int32Array(256);for(let i=0;i<256;i++){let e=i;for(let t=0;t<8;t++)e=1&e?3988292384^e>>1&2147483647:e>>1&2147483647;t[i]=e}function n(e,n,r,i){let o=i;const a=n.length;r[o]=a>>24&255,r[o+1]=a>>16&255,r[o+2]=a>>8&255,r[o+3]=255&a,o+=4,r[o]=255&e.charCodeAt(0),r[o+1]=255&e.charCodeAt(1),r[o+2]=255&e.charCodeAt(2),r[o+3]=255&e.charCodeAt(3),o+=4,r.set(n,o),o+=n.length;const s=function(e,n,r){let i=-1;for(let o=n;o<r;o++){const n=255&(i^e[o]);i=i>>>8^t[n]}return~i}(r,i+4,o);r[o]=s>>24&255,r[o+1]=s>>16&255,r[o+2]=s>>8&255,r[o+3]=255&s}function r(e){let t=e.length;const n=65535,r=Math.ceil(t/n),i=new Uint8Array(2+t+5*r+4);let o=0;i[o++]=120,i[o++]=156;let a=0;for(;t>n;)i[o++]=0,i[o++]=255,i[o++]=255,i[o++]=0,i[o++]=0,i.set(e.subarray(a,a+n),o),o+=n,a+=n,t-=n;i[o++]=1,i[o++]=255&t,i[o++]=t>>8&255,i[o++]=255&~t,i[o++]=(65535&~t)>>8&255,i.set(e.subarray(a),o),o+=e.length-a;const s=function(e,t,n){let r=1,i=0;for(let o=t;o<n;++o)r=(r+(255&e[o]))%65521,i=(i+r)%65521;return i<<16|r}(e,0,e.length);return i[o++]=s>>24&255,i[o++]=s>>16&255,i[o++]=s>>8&255,i[o++]=255&s,i}function o(t,o,a,s){const l=t.width,c=t.height;let d,p,h;const f=t.data;switch(o){case i.ImageKind.GRAYSCALE_1BPP:p=0,d=1,h=l+7>>3;break;case i.ImageKind.RGB_24BPP:p=2,d=8,h=3*l;break;case i.ImageKind.RGBA_32BPP:p=6,d=8,h=4*l;break;default:throw new Error("invalid format")}const m=new Uint8Array((1+h)*c);let g=0,b=0;for(let e=0;e<c;++e)m[g++]=0,m.set(f.subarray(b,b+h),g),b+=h,g+=h;if(o===i.ImageKind.GRAYSCALE_1BPP&&s){g=0;for(let e=0;e<c;e++){g++;for(let e=0;e<h;e++)m[g++]^=255}}const v=new Uint8Array([l>>24&255,l>>16&255,l>>8&255,255&l,c>>24&255,c>>16&255,c>>8&255,255&c,d,p,0,0,0]),y=function(e){if(!i.isNodeJS)return r(e);try{const t=parseInt(process.versions.node)>=8?e:Buffer.from(e),n=__webpack_require__(5168).deflateSync(t,{level:9});return n instanceof Uint8Array?n:new Uint8Array(n)}catch(t){(0,i.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+t)}return r(e)}(m),x=e.length+36+v.length+y.length,w=new Uint8Array(x);let A=0;return w.set(e,A),A+=e.length,n("IHDR",v,w,A),A+=12+v.length,n("IDATA",y,w,A),A+=12+y.length,n("IEND",new Uint8Array(0),w,A),u(w,"image/png",a)}return function(e,t,n){return o(e,void 0===e.kind?i.ImageKind.GRAYSCALE_1BPP:e.kind,t,n)}}();class p{constructor(){this.fontSizeScale=1,this.fontWeight=a,this.fontSize=0,this.textMatrix=i.IDENTITY_MATRIX,this.fontMatrix=i.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=i.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=s,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(e,t){this.x=e,this.y=t}}function h(e){if(Number.isInteger(e))return e.toString();const t=e.toFixed(10);let n=t.length-1;if("0"!==t[n])return t;do{n--}while("0"===t[n]);return t.substring(0,"."===t[n]?n:n+1)}function f(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return 1===e[0]&&1===e[3]?"":`scale(${h(e[0])} ${h(e[3])})`;if(e[0]===e[3]&&e[1]===-e[2])return`rotate(${h(180*Math.acos(e[0])/Math.PI)})`}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return`translate(${h(e[4])} ${h(e[5])})`;return`matrix(${h(e[0])} ${h(e[1])} ${h(e[2])} ${h(e[3])} ${h(e[4])} ${h(e[5])})`}let m=0,g=0,b=0;t.SVGGraphics=class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,r.deprecated)("The SVG back-end is no longer maintained and *may* be removed in the future."),this.svgFactory=new r.DOMSVGFactory,this.current=new p,this.transformMatrix=i.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=e,this.objs=t,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!n,this._operatorIdMapping=[];for(const r in i.OPS)this._operatorIdMapping[i.OPS[r]]=r}getObject(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"string"===typeof e?e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e):t}save(){this.transformStack.push(this.transformMatrix);const e=this.current;this.extraStack.push(e),this.current=e.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(e){this.save(),this.executeOpTree(e),this.restore()}loadDependencies(e){const t=e.fnArray,n=e.argsArray;for(let r=0,o=t.length;r<o;r++)if(t[r]===i.OPS.dependency)for(const e of n[r]){const t=e.startsWith("g_")?this.commonObjs:this.objs,n=new Promise((n=>{t.get(e,n)}));this.current.dependencies.push(n)}return Promise.all(this.current.dependencies)}transform(e,t,n,r,o,a){const s=[e,t,n,r,o,a];this.transformMatrix=i.Util.transform(this.transformMatrix,s),this.tgrp=null}getSVG(e,t){this.viewport=t;const n=this._initialize(t);return this.loadDependencies(e).then((()=>(this.transformMatrix=i.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(e)),n)))}convertOpList(e){const t=this._operatorIdMapping,n=e.argsArray,r=e.fnArray,i=[];for(let o=0,a=r.length;o<a;o++){const e=r[o];i.push({fnId:e,fn:t[e],args:n[o]})}return function(e){let t=[];const n=[];for(const r of e)"save"!==r.fn?"restore"===r.fn?t=n.pop():t.push(r):(t.push({fnId:92,fn:"group",items:[]}),n.push(t),t=t.at(-1).items);return t}(i)}executeOpTree(e){for(const t of e){const e=t.fn,n=t.fnId,r=t.args;switch(0|n){case i.OPS.beginText:this.beginText();break;case i.OPS.dependency:break;case i.OPS.setLeading:this.setLeading(r);break;case i.OPS.setLeadingMoveText:this.setLeadingMoveText(r[0],r[1]);break;case i.OPS.setFont:this.setFont(r);break;case i.OPS.showText:case i.OPS.showSpacedText:this.showText(r[0]);break;case i.OPS.endText:this.endText();break;case i.OPS.moveText:this.moveText(r[0],r[1]);break;case i.OPS.setCharSpacing:this.setCharSpacing(r[0]);break;case i.OPS.setWordSpacing:this.setWordSpacing(r[0]);break;case i.OPS.setHScale:this.setHScale(r[0]);break;case i.OPS.setTextMatrix:this.setTextMatrix(r[0],r[1],r[2],r[3],r[4],r[5]);break;case i.OPS.setTextRise:this.setTextRise(r[0]);break;case i.OPS.setTextRenderingMode:this.setTextRenderingMode(r[0]);break;case i.OPS.setLineWidth:this.setLineWidth(r[0]);break;case i.OPS.setLineJoin:this.setLineJoin(r[0]);break;case i.OPS.setLineCap:this.setLineCap(r[0]);break;case i.OPS.setMiterLimit:this.setMiterLimit(r[0]);break;case i.OPS.setFillRGBColor:this.setFillRGBColor(r[0],r[1],r[2]);break;case i.OPS.setStrokeRGBColor:this.setStrokeRGBColor(r[0],r[1],r[2]);break;case i.OPS.setStrokeColorN:this.setStrokeColorN(r);break;case i.OPS.setFillColorN:this.setFillColorN(r);break;case i.OPS.shadingFill:this.shadingFill(r[0]);break;case i.OPS.setDash:this.setDash(r[0],r[1]);break;case i.OPS.setRenderingIntent:this.setRenderingIntent(r[0]);break;case i.OPS.setFlatness:this.setFlatness(r[0]);break;case i.OPS.setGState:this.setGState(r[0]);break;case i.OPS.fill:this.fill();break;case i.OPS.eoFill:this.eoFill();break;case i.OPS.stroke:this.stroke();break;case i.OPS.fillStroke:this.fillStroke();break;case i.OPS.eoFillStroke:this.eoFillStroke();break;case i.OPS.clip:this.clip("nonzero");break;case i.OPS.eoClip:this.clip("evenodd");break;case i.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case i.OPS.paintImageXObject:this.paintImageXObject(r[0]);break;case i.OPS.paintInlineImageXObject:this.paintInlineImageXObject(r[0]);break;case i.OPS.paintImageMaskXObject:this.paintImageMaskXObject(r[0]);break;case i.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(r[0],r[1]);break;case i.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case i.OPS.closePath:this.closePath();break;case i.OPS.closeStroke:this.closeStroke();break;case i.OPS.closeFillStroke:this.closeFillStroke();break;case i.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case i.OPS.nextLine:this.nextLine();break;case i.OPS.transform:this.transform(r[0],r[1],r[2],r[3],r[4],r[5]);break;case i.OPS.constructPath:this.constructPath(r[0],r[1]);break;case i.OPS.endPath:this.endPath();break;case 92:this.group(t.items);break;default:(0,i.warn)(`Unimplemented operator ${e}`)}}}setWordSpacing(e){this.current.wordSpacing=e}setCharSpacing(e){this.current.charSpacing=e}nextLine(){this.moveText(0,this.current.leading)}setTextMatrix(e,t,n,r,i,o){const a=this.current;a.textMatrix=a.lineMatrix=[e,t,n,r,i,o],a.textMatrixScale=Math.hypot(e,t),a.x=a.lineX=0,a.y=a.lineY=0,a.xcoords=[],a.ycoords=[],a.tspan=this.svgFactory.createElement("svg:tspan"),a.tspan.setAttributeNS(null,"font-family",a.fontFamily),a.tspan.setAttributeNS(null,"font-size",`${h(a.fontSize)}px`),a.tspan.setAttributeNS(null,"y",h(-a.y)),a.txtElement=this.svgFactory.createElement("svg:text"),a.txtElement.append(a.tspan)}beginText(){const e=this.current;e.x=e.lineX=0,e.y=e.lineY=0,e.textMatrix=i.IDENTITY_MATRIX,e.lineMatrix=i.IDENTITY_MATRIX,e.textMatrixScale=1,e.tspan=this.svgFactory.createElement("svg:tspan"),e.txtElement=this.svgFactory.createElement("svg:text"),e.txtgrp=this.svgFactory.createElement("svg:g"),e.xcoords=[],e.ycoords=[]}moveText(e,t){const n=this.current;n.x=n.lineX+=e,n.y=n.lineY+=t,n.xcoords=[],n.ycoords=[],n.tspan=this.svgFactory.createElement("svg:tspan"),n.tspan.setAttributeNS(null,"font-family",n.fontFamily),n.tspan.setAttributeNS(null,"font-size",`${h(n.fontSize)}px`),n.tspan.setAttributeNS(null,"y",h(-n.y))}
75showText(e){const t=this.current,n=t.font,r=t.fontSize;if(0===r)return;const l=t.fontSizeScale,c=t.charSpacing,u=t.wordSpacing,d=t.fontDirection,p=t.textHScale*d,m=n.vertical,g=m?1:-1,b=n.defaultVMetrics,v=r*t.fontMatrix[0];let y=0;for(const i of e){if(null===i){y+=d*u;continue}if("number"===typeof i){y+=g*i*r/1e3;continue}const e=(i.isSpace?u:0)+c,o=i.fontChar;let a,s,p=i.width;if(m){let e;const t=i.vmetric||b;e=i.vmetric?t[1]:.5*p,e=-e*v;const n=t[2]*v;p=t?-t[0]:p,a=e/l,s=(y+n)/l}else a=y/l,s=0;(i.isInFont||n.missingFile)&&(t.xcoords.push(t.x+a),m&&t.ycoords.push(-t.y+s),t.tspan.textContent+=o),y+=m?p*v-e*d:p*v+e*d}t.tspan.setAttributeNS(null,"x",t.xcoords.map(h).join(" ")),m?t.tspan.setAttributeNS(null,"y",t.ycoords.map(h).join(" ")):t.tspan.setAttributeNS(null,"y",h(-t.y)),m?t.y-=y:t.x+=y*p,t.tspan.setAttributeNS(null,"font-family",t.fontFamily),t.tspan.setAttributeNS(null,"font-size",`${h(t.fontSize)}px`),t.fontStyle!==o&&t.tspan.setAttributeNS(null,"font-style",t.fontStyle),t.fontWeight!==a&&t.tspan.setAttributeNS(null,"font-weight",t.fontWeight);const x=t.textRenderingMode&i.TextRenderingMode.FILL_STROKE_MASK;if(x===i.TextRenderingMode.FILL||x===i.TextRenderingMode.FILL_STROKE?(t.fillColor!==s&&t.tspan.setAttributeNS(null,"fill",t.fillColor),t.fillAlpha<1&&t.tspan.setAttributeNS(null,"fill-opacity",t.fillAlpha)):t.textRenderingMode===i.TextRenderingMode.ADD_TO_PATH?t.tspan.setAttributeNS(null,"fill","transparent"):t.tspan.setAttributeNS(null,"fill","none"),x===i.TextRenderingMode.STROKE||x===i.TextRenderingMode.FILL_STROKE){const e=1/(t.textMatrixScale||1);this._setStrokeAttributes(t.tspan,e)}let w=t.textMatrix;0!==t.textRise&&(w=w.slice(),w[5]+=t.textRise),t.txtElement.setAttributeNS(null,"transform",`${f(w)} scale(${h(p)}, -1)`),t.txtElement.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),t.txtElement.append(t.tspan),t.txtgrp.append(t.txtElement),this._ensureTransformGroup().append(t.txtElement)}setLeadingMoveText(e,t){this.setLeading(-t),this.moveText(e,t)}addFontStyle(e){if(!e.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.append(this.cssStyle));const t=u(e.data,e.mimetype,this.forceDataSchema);this.cssStyle.textContent+=`@font-face { font-family: "${e.loadedName}"; src: url(${t}); }\n`}setFont(e){const t=this.current,n=this.commonObjs.get(e[0]);let r=e[1];t.font=n,!this.embedFonts||n.missingFile||this.embeddedFonts[n.loadedName]||(this.addFontStyle(n),this.embeddedFonts[n.loadedName]=n),t.fontMatrix=n.fontMatrix||i.FONT_IDENTITY_MATRIX;let o="normal";n.black?o="900":n.bold&&(o="bold");const a=n.italic?"italic":"normal";r<0?(r=-r,t.fontDirection=-1):t.fontDirection=1,t.fontSize=r,t.fontFamily=n.loadedName,t.fontWeight=o,t.fontStyle=a,t.tspan=this.svgFactory.createElement("svg:tspan"),t.tspan.setAttributeNS(null,"y",h(-t.y)),t.xcoords=[],t.ycoords=[]}endText(){const e=this.current;e.textRenderingMode&i.TextRenderingMode.ADD_TO_PATH_FLAG&&e.txtElement?.hasChildNodes()&&(e.element=e.txtElement,this.clip("nonzero"),this.endPath())}setLineWidth(e){e>0&&(this.current.lineWidth=e)}setLineCap(e){this.current.lineCap=l[e]}setLineJoin(e){this.current.lineJoin=c[e]}setMiterLimit(e){this.current.miterLimit=e}setStrokeAlpha(e){this.current.strokeAlpha=e}setStrokeRGBColor(e,t,n){this.current.strokeColor=i.Util.makeHexColor(e,t,n)}setFillAlpha(e){this.current.fillAlpha=e}setFillRGBColor(e,t,n){this.current.fillColor=i.Util.makeHexColor(e,t,n),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(e){this.current.strokeColor=this._makeColorN_Pattern(e)}setFillColorN(e){this.current.fillColor=this._makeColorN_Pattern(e)}shadingFill(e){const{width:t,height:n}=this.viewport,r=i.Util.inverseTransform(this.transformMatrix),[o,a,s,l]=i.Util.getAxialAlignedBoundingBox([0,0,t,n],r),c=this.svgFactory.createElement("svg:rect");c.setAttributeNS(null,"x",o),c.setAttributeNS(null,"y",a),c.setAttributeNS(null,"width",s-o),c.setAttributeNS(null,"height",l-a),c.setAttributeNS(null,"fill",this._makeShadingPattern(e)),this.current.fillAlpha<1&&
vendor: 9,430 bytes, line 75
75c.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().append(c)}_makeColorN_Pattern(e){return"TilingPattern"===e[0]?this._makeTilingPattern(e):this._makeShadingPattern(e)}_makeTilingPattern(e){const t=e[1],n=e[2],r=e[3]||i.IDENTITY_MATRIX,[o,a,s,l]=e[4],c=e[5],u=e[6],d=e[7],p="shading"+b++,[h,f,m,g]=i.Util.normalizeRect([...i.Util.applyTransform([o,a],r),...i.Util.applyTransform([s,l],r)]),[v,y]=i.Util.singularValueDecompose2dScale(r),x=c*v,w=u*y,A=this.svgFactory.createElement("svg:pattern");A.setAttributeNS(null,"id",p),A.setAttributeNS(null,"patternUnits","userSpaceOnUse"),A.setAttributeNS(null,"width",x),A.setAttributeNS(null,"height",w),A.setAttributeNS(null,"x",`${h}`),A.setAttributeNS(null,"y",`${f}`);const E=this.svg,S=this.transformMatrix,_=this.current.fillColor,k=this.current.strokeColor,T=this.svgFactory.create(m-h,g-f);if(this.svg=T,this.transformMatrix=r,2===d){const e=i.Util.makeHexColor(...t);this.current.fillColor=e,this.current.strokeColor=e}return this.executeOpTree(this.convertOpList(n)),this.svg=E,this.transformMatrix=S,this.current.fillColor=_,this.current.strokeColor=k,A.append(T.childNodes[0]),this.defs.append(A),`url(#${p})`}_makeShadingPattern(e){switch("string"===typeof e&&(e=this.objs.get(e)),e[0]){case"RadialAxial":const t="shading"+b++,n=e[3];let r;switch(e[1]){case"axial":const n=e[4],i=e[5];r=this.svgFactory.createElement("svg:linearGradient"),r.setAttributeNS(null,"id",t),r.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),r.setAttributeNS(null,"x1",n[0]),r.setAttributeNS(null,"y1",n[1]),r.setAttributeNS(null,"x2",i[0]),r.setAttributeNS(null,"y2",i[1]);break;case"radial":const o=e[4],a=e[5],s=e[6],l=e[7];r=this.svgFactory.createElement("svg:radialGradient"),r.setAttributeNS(null,"id",t),r.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),r.setAttributeNS(null,"cx",a[0]),r.setAttributeNS(null,"cy",a[1]),r.setAttributeNS(null,"r",l),r.setAttributeNS(null,"fx",o[0]),r.setAttributeNS(null,"fy",o[1]),r.setAttributeNS(null,"fr",s);break;default:throw new Error(`Unknown RadialAxial type: ${e[1]}`)}for(const e of n){const t=this.svgFactory.createElement("svg:stop");t.setAttributeNS(null,"offset",e[0]),t.setAttributeNS(null,"stop-color",e[1]),r.append(t)}return this.defs.append(r),`url(#${t})`;case"Mesh":return(0,i.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${e[0]}`)}}setDash(e,t){this.current.dashArray=e,this.current.dashPhase=t}constructPath(e,t){const n=this.current;let r=n.x,o=n.y,a=[],s=0;for(const l of e)switch(0|l){case i.OPS.rectangle:r=t[s++],o=t[s++];const e=r+t[s++],n=o+t[s++];a.push("M",h(r),h(o),"L",h(e),h(o),"L",h(e),h(n),"L",h(r),h(n),"Z");break;case i.OPS.moveTo:r=t[s++],o=t[s++],a.push("M",h(r),h(o));break;case i.OPS.lineTo:r=t[s++],o=t[s++],a.push("L",h(r),h(o));break;case i.OPS.curveTo:r=t[s+4],o=t[s+5],a.push("C",h(t[s]),h(t[s+1]),h(t[s+2]),h(t[s+3]),h(r),h(o)),s+=6;break;case i.OPS.curveTo2:a.push("C",h(r),h(o),h(t[s]),h(t[s+1]),h(t[s+2]),h(t[s+3])),r=t[s+2],o=t[s+3],s+=4;break;case i.OPS.curveTo3:r=t[s+2],o=t[s+3],a.push("C",h(t[s]),h(t[s+1]),h(r),h(o),h(r),h(o)),s+=4;break;case i.OPS.closePath:a.push("Z")}a=a.join(" "),n.path&&e.length>0&&e[0]!==i.OPS.rectangle&&e[0]!==i.OPS.moveTo?a=n.path.getAttributeNS(null,"d")+a:(n.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().append(n.path)),n.path.setAttributeNS(null,"d",a),n.path.setAttributeNS(null,"fill","none"),n.element=n.path,n.setCurrentPoint(r,o)}endPath(){const e=this.current;if(e.path=null,!this.pendingClip)return;if(!e.element)return void(this.pendingClip=null);const t="clippath"+m++,n=this.svgFactory.createElement("svg:clipPath");n.setAttributeNS(null,"id",t),n.setAttributeNS(null,"transform",f(this.transformMatrix));const r=e.element.cloneNode(!0);if("evenodd"===this.pendingClip?r.setAttributeNS(null,"clip-rule","evenodd"):r.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,n.append(r),this.defs.append(n),e.activeClipUrl){e.clipGroup=null;for(const e of this.extraStack)e.clipGroup=null;n.setAttributeNS(null,"clip-path",e.activeClipUrl)}e.activeClipUrl=`url(#${t})`,this.tgrp=null}clip(e){this.pendingClip=e}closePath(){const e=this.current;if(e.path){const t=`${e.path.getAttributeNS(null,"d")}Z`;e.path.setAttributeNS(null,"d",t)}}setLeading(e){this.current.leading=-e}setTextRise(e){this.current.textRise=e}setTextRenderingMode(e){this.current.textRenderingMode=e}setHScale(e){this.current.textHScale=e/100}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(const[t,n]of e)switch(t){case"LW":this.setLineWidth(n);break;case"LC":this.setLineCap(n);break;case"LJ":this.setLineJoin(n);break;case"ML":this.setMiterLimit(n);break;case"D":this.setDash(n[0],n[1]);break;case"RI":this.setRenderingIntent(n);break;case"FL":this.setFlatness(n);break;case"Font":this.setFont(n);break;case"CA":this.setStrokeAlpha(n);break;case"ca":this.setFillAlpha(n);break;default:(0,i.warn)(`Unimplemented graphic state operator ${t}`)}}fill(){const e=this.current;e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}stroke(){const e=this.current;e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=this.current;let r=n.dashArray;1!==t&&r.length>0&&(r=r.map((function(e){return t*e}))),e.setAttributeNS(null,"stroke",n.strokeColor),e.setAttributeNS(null,"stroke-opacity",n.strokeAlpha),e.setAttributeNS(null,"stroke-miterlimit",h(n.miterLimit)),e.setAttributeNS(null,"stroke-linecap",n.lineCap),e.setAttributeNS(null,"stroke-linejoin",n.lineJoin),e.setAttributeNS(null,"stroke-width",h(t*n.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",r.map(h).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",h(t*n.dashPhase)+"px")}eoFill(){this.current.element?.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){this.current.element?.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const e=this.svgFactory.createElement("svg:rect");e.setAttributeNS(null,"x","0"),e.setAttributeNS(null,"y","0"),e.setAttributeNS(null,"width","1px"),e.setAttributeNS(null,"height","1px"),e.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().append(e)}paintImageXObject(e){const t=this.getObject(e);t?this.paintInlineImageXObject(t):(0,i.warn)(`Dependent image with object ID ${e} is not ready yet`)}paintInlineImageXObject(e,t){const n=e.width,r=e.height,i=d(e,this.forceDataSchema,!!t),o=this.svgFactory.createElement("svg:rect");o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y","0"),o.setAttributeNS(null,"width",h(n)),o.setAttributeNS(null,"height",h(r)),this.current.element=o,this.clip("nonzero");const a=this.svgFactory.createElement("svg:image");a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i),a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y",h(-r)),a.setAttributeNS(null,"width",h(n)+"px"),a.setAttributeNS(null,"height",h(r)+"px"),a.setAttributeNS(null,"transform",`scale(${h(1/n)} ${h(-1/r)})`),t?t.append(a):this._ensureTransformGroup().append(a)}paintImageMaskXObject(e){const t=this.getObject(e.data,e);if(t.bitmap)return void(0,i.warn)("paintImageMaskXObject: ImageBitmap support is not implemented, ensure that the `isOffscreenCanvasSupported` API parameter is disabled.");const n=this.current,r=t.width,o=t.height,a=n.fillColor;n.maskId="mask"+g++;const s=this.svgFactory.createElement("svg:mask");s.setAttributeNS(null,"id",n.maskId);const l=this.svgFactory.createElement("svg:rect");l.setAttributeNS(null,"x","0"),l.setAttributeNS(null,"y","0"),l.setAttributeNS(null,"width",h(r)),l.setAttributeNS(null,"height",h(o)),l.setAttributeNS(null,"fill",a),l.setAttributeNS(null,"mask",`url(#${n.maskId})`),this.defs.append(s),this._ensureTransformGroup().append(l),this.paintInlineImageXObject(t,s)}paintFormXObjectBegin(e,t){if(Array.isArray(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t){const e=t[2]-t[0],n=t[3]-t[1],r=this.svgFactory.createElement("svg:rect");r.setAttributeNS(null,"x",t[0]),r.setAttributeNS(null,"y",t[1]),r.setAttributeNS(null,"width",h(e)),r.setAttributeNS(null,"height",h(n)),this.current.element=r,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(e){const t=this.svgFactory.create(e.width,e.height),n=this.svgFactory.createElement("svg:defs");t.append(n),this.defs=n;const r=this.svgFactory.createElement("svg:g");return r.setAttributeNS(null,"transform",f(e.transform)),t.append(r),this.svg=r,t}_ensureClipGroup(){if(!this.current.clipGroup){const e=this.svgFactory.createElement("svg:g");e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.append(e),this.current.clipGroup=e}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",f(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().append(this.tgrp):this.svg.append(this.tgrp)),this.tgrp}}},(e,t)=>
75{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaText=void 0;class n{static textContent(e){const t=[],r={items:t,styles:Object.create(null)};return function e(r){if(!r)return;let i=null;const o=r.name;if("#text"===o)i=r.value;else{if(!n.shouldBuildText(o))return;r?.attributes?.textContent?i=r.attributes.textContent:r.value&&(i=r.value)}if(null!==i&&t.push({str:i}),r.children)for(const t of r.children)e(t)}(e),r}static shouldBuildText(e){return!("textarea"===e||"input"===e||"option"===e||"select"===e)}}t.XfaText=n},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextLayerRenderTask=void 0,t.renderTextLayer=function(e){e.textContentSource||!e.textContent&&!e.textContentStream||((0,i.deprecated)("The TextLayerRender `textContent`/`textContentStream` parameters will be removed in the future, please use `textContentSource` instead."),e.textContentSource=e.textContent||e.textContentStream);const{container:t,viewport:n}=e,r=getComputedStyle(t),o=r.getPropertyValue("visibility"),a=parseFloat(r.getPropertyValue("--scale-factor"));"visible"===o&&(!a||Math.abs(a-n.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 s=new u(e);return s._render(),s},t.updateTextLayer=function(e){let{container:t,viewport:n,textDivs:r,textDivProperties:o,isOffscreenCanvasSupported:a,mustRotate:l=!0,mustRescale:u=!0}=e;if(l&&(0,i.setLayerDimensions)(t,{rotation:n.rotation}),u){const e=s(0,a),t={prevFontSize:null,prevFontFamily:null,div:null,scale:n.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:e};for(const n of r)t.properties=o.get(n),t.div=n,c(t)}};var r=n(1),i=n(6);const o=30,a=new Map;function s(e,t){let n;if(t&&r.FeatureTest.isOffscreenCanvasSupported)n=new OffscreenCanvas(e,e).getContext("2d",{alpha:!1});else{const t=document.createElement("canvas");t.width=t.height=e,n=t.getContext("2d",{alpha:!1})}return n}function l(e,t,n){const i=document.createElement("span"),l={angle:0,canvasWidth:0,hasText:""!==t.str,hasEOL:t.hasEOL,fontSize:0};e._textDivs.push(i);const c=r.Util.transform(e._transform,t.transform);let u=Math.atan2(c[1],c[0]);const d=n[t.fontName];d.vertical&&(u+=Math.PI/2);const p=Math.hypot(c[2],c[3]),h=p*function(e,t){const n=a.get(e);if(n)return n;const r=s(o,t);r.font=`30px ${e}`;const i=r.measureText("");let l=i.fontBoundingBoxAscent,c=Math.abs(i.fontBoundingBoxDescent);if(l){const t=l/(l+c);return a.set(e,t),r.canvas.width=r.canvas.height=0,t}r.strokeStyle="red",r.clearRect(0,0,o,o),r.strokeText("g",0,0);let u=r.getImageData(0,0,o,o).data;c=0;for(let a=u.length-1-3;a>=0;a-=4)if(u[a]>0){c=Math.ceil(a/4/o);break}r.clearRect(0,0,o,o),r.strokeText("A",0,o),u=r.getImageData(0,0,o,o).data,l=0;for(let a=0,s=u.length;a<s;a+=4)if(u[a]>0){l=o-Math.floor(a/4/o);break}if(r.canvas.width=r.canvas.height=0,l){const t=l/(l+c);return a.set(e,t),t}return a.set(e,.8),.8}(d.fontFamily,e._isOffscreenCanvasSupported);let f,m;0===u?(f=c[4],m=c[5]-h):(f=c[4]+h*Math.sin(u),m=c[5]-h*Math.cos(u));const g="calc(var(--scale-factor)*",b=i.style;e._container===e._rootContainer?(b.left=`${(100*f/e._pageWidth).toFixed(2)}%`,b.top=`${(100*m/e._pageHeight).toFixed(2)}%`):(b.left=`${g}${f.toFixed(2)}px)`,b.top=`${g}${m.toFixed(2)}px)`),b.fontSize=`${g}${p.toFixed(2)}px)`,b.fontFamily=d.fontFamily,l.fontSize=p,i.setAttribute("role","presentation"),i.textContent=t.str,i.dir=t.dir,e._fontInspectorEnabled&&(i.dataset.fontName=t.fontName),0!==u&&(l.angle=u*(180/Math.PI));let v=!1;if(t.str.length>1)v=!0;else if(" "!==t.str&&t.transform[0]!==t.transform[3]){const e=Math.abs(t.transform[0]),n=Math.abs(t.transform[3]);e!==n&&Math.max(e,n)/Math.min(e,n)>1.5&&(v=!0)}v&&(l.canvasWidth=d.vertical?t.height:t.width),e._textDivProperties.set(i,l),e._isReadableStream&&e._layoutText(i)}function c(e){const{div:t,scale:n,properties:r,ctx:i,prevFontSize:o,prevFontFamily:a}=e,{style:s}=t;let l="";if(0!==r.canvasWidth&&r.hasText){const{fontFamily:c}=s,{canvasWidth:u,fontSize:d}=r;o===d&&a===c||(i.font=`${d*n}px ${c}`,e.prevFontSize=d,e.prevFontFamily=c);const{width:p}=i.measureText(t.textContent);p>0&&(l=`scaleX(${u*n/p})`)}0!==r.angle&&(l=`rotate(${r.angle}deg) ${l}`),l.length>0&&(s.transform=l)}class u{constructor(e){let{textContentSource:t,container:n,viewport:o,textDivs:a,textDivProperties:l,textContentItemsStr:c,isOffscreenCanvasSupported:u}=e;this._textContentSource=t,this._isReadableStream=t instanceof ReadableStream,this._container=this._rootContainer=n,this._textDivs=a||[],this._textContentItemsStr=c||[],this._isOffscreenCanvasSupported=u,this._fontInspectorEnabled=!!globalThis.FontInspector?.enabled,this._reader=null,this._textDivProperties=l||new WeakMap,this._canceled=!1,this._capability=new r.PromiseCapability,this._layoutTextParams={prevFontSize:null,prevFontFamily:null,div:null,scale:o.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:s(0,u)};const{pageWidth:d,pageHeight:p,pageX:h,pageY:f}=o.rawDims;this._transform=[1,0,0,-1,-h,f+p],this._pageWidth=d,this._pageHeight=p,(0,i.setLayerDimensions)(n,o),this._capability.promise.finally((()=>{this._layoutTextParams=null})).catch((()=>{}))}get promise(){return this._capability.promise}cancel(){this._canceled=!0,this._reader&&(this._reader.cancel(new r.AbortException("TextLayer task cancelled.")).catch((()=>{})),this._reader=null),this._capability.reject(new r.AbortException("TextLayer task cancelled."))}_processItems(e,t){for(const n of e)if(void 0!==n.str)this._textContentItemsStr.push(n.str),l(this,n,t);else if("beginMarkedContentProps"===n.type||"beginMarkedContent"===n.type){const e=this._container;this._container=document.createElement("span"),this._container.classList.add("markedContent"),null!==n.id&&this._container.setAttribute("id",`${n.id}`),e.append(this._container)}else"endMarkedContent"===n.type&&(this._container=this._container.parentNode)}_layoutText(e){const t=this._layoutTextParams.properties=this._textDivProperties.get(e);if(this._layoutTextParams.div=e,c(this._layoutTextParams),t.hasText&&this._container.append(e),t.hasEOL){const e=document.createElement("br");e.setAttribute("role","presentation"),this._container.append(e)}}_render(){const e=new r.PromiseCapability;let t=Object.create(null);if(this._isReadableStream){const n=()=>{this._reader.read().then((r=>{let{value:i,done:o}=r;o?e.resolve():(Object.assign(t,i.styles),this._processItems(i.items,t),n())}),e.reject)};this._reader=this._textContentSource.getReader(),n()}else{if(!this._textContentSource)throw new Error('No "textContentSource" parameter specified.');{const{items:t,styles:n}=this._textContentSource;this._processItems(t,n),e.resolve()}}e.promise.then((()=>{t=null,function(e){if(e._canceled)return;const t=e._textDivs,n=e._capability;if(t.length>1e5)n.resolve();else{if(!e._isReadableStream)for(const n of t)e._layoutText(n);n.resolve()}}(this)}),this._capability.reject)}}t.TextLayerRenderTask=u},(e,t,n)=>
75{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditorLayer=void 0;var r=n(1),i=n(4),o=n(28),a=n(33),s=n(6),l=n(34);class c{#At;#Et=!1;#St=null;#_t=this.pointerup.bind(this);#kt=this.pointerdown.bind(this);#Tt=(()=>new Map)();#Ct=!1;#Ot=!1;#Nt=!1;#It;static _initialized=!1;constructor(e){let{uiManager:t,pageIndex:n,div:r,accessibilityManager:i,annotationLayer:s,viewport:u,l10n:d}=e;const p=[o.FreeTextEditor,a.InkEditor,l.StampEditor];if(!c._initialized){c._initialized=!0;for(const e of p)e.initialize(d)}t.registerEditorTypes(p),this.#It=t,this.pageIndex=n,this.div=r,this.#At=i,this.#St=s,this.viewport=u,this.#It.addLayer(this)}get isEmpty(){return 0===this.#Tt.size}updateToolbar(e){this.#It.updateToolbar(e)}updateMode(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.#It.getMode();this.#Rt(),e===r.AnnotationEditorType.INK?(this.addInkEditorIfNeeded(!1),this.disableClick()):this.enableClick(),e!==r.AnnotationEditorType.NONE&&(this.div.classList.toggle("freeTextEditing",e===r.AnnotationEditorType.FREETEXT),this.div.classList.toggle("inkEditing",e===r.AnnotationEditorType.INK),this.div.classList.toggle("stampEditing",e===r.AnnotationEditorType.STAMP),this.div.hidden=!1)}addInkEditorIfNeeded(e){if(e||this.#It.getMode()===r.AnnotationEditorType.INK){if(!e)for(const e of this.#Tt.values())if(e.isEmpty())return void e.setInBackground();this.#Pt({offsetX:0,offsetY:0},!1).setInBackground()}}setEditingState(e){this.#It.setEditingState(e)}addCommands(e){this.#It.addCommands(e)}enable(){this.div.style.pointerEvents="auto";const e=new Set;for(const n of this.#Tt.values())n.enableEditing(),n.annotationElementId&&e.add(n.annotationElementId);if(!this.#St)return;const t=this.#St.getEditableAnnotations();for(const n of t){if(n.hide(),this.#It.isDeletedAnnotationElement(n.data.id))continue;if(e.has(n.data.id))continue;const t=this.deserialize(n);t&&(this.addOrRebuild(t),t.enableEditing())}}disable(){this.#Nt=!0,this.div.style.pointerEvents="none";const e=new Set;for(const t of this.#Tt.values())t.disableEditing(),t.annotationElementId&&null===t.serialize()?(this.getEditableAnnotation(t.annotationElementId)?.show(),t.remove()):e.add(t.annotationElementId);if(this.#St){const t=this.#St.getEditableAnnotations();for(const n of t){const{id:t}=n.data;e.has(t)||this.#It.isDeletedAnnotationElement(t)||n.show()}}this.#Rt(),this.isEmpty&&(this.div.hidden=!0),this.#Nt=!1}getEditableAnnotation(e){return this.#St?.getEditableAnnotation(e)||null}setActiveEditor(e){this.#It.getActive()!==e&&this.#It.setActiveEditor(e)}enableClick(){this.div.addEventListener("pointerdown",this.#kt),this.div.addEventListener("pointerup",this.#_t)}disableClick(){this.div.removeEventListener("pointerdown",this.#kt),this.div.removeEventListener("pointerup",this.#_t)}attach(e){this.#Tt.set(e.id,e);const{annotationElementId:t}=e;t&&this.#It.isDeletedAnnotationElement(t)&&this.#It.removeDeletedAnnotationElement(e)}detach(e){this.#Tt.delete(e.id),this.#At?.removePointerInTextLayer(e.contentDiv),!this.#Nt&&e.annotationElementId&&this.#It.addDeletedAnnotationElement(e)}remove(e){this.detach(e),this.#It.removeEditor(e),e.div.contains(document.activeElement)&&setTimeout((()=>{this.#It.focusMainContainer()}),0),e.div.remove(),e.isAttachedToDOM=!1,this.#Ot||this.addInkEditorIfNeeded(!1)}changeParent(e){e.parent!==this&&(e.annotationElementId&&(this.#It.addDeletedAnnotationElement(e.annotationElementId),i.AnnotationEditor.deleteAnnotationElement(e),e.annotationElementId=null),this.attach(e),e.parent?.detach(e),e.setParent(this),e.div&&e.isAttachedToDOM&&(e.div.remove(),this.div.append(e.div)))}add(e){if(this.changeParent(e),this.#It.addEditor(e),this.attach(e),!e.isAttachedToDOM){const t=e.render();this.div.append(t),e.isAttachedToDOM=!0}e.fixAndSetPosition(),e.onceAdded(),this.#It.addToAnnotationStorage(e)}moveEditorInDOM(e){if(!e.isAttachedToDOM)return;const{activeElement:t}=document;e.div.contains(t)&&(e._focusEventsAllowed=!1,setTimeout((()=>{e.div.contains(document.activeElement)?e._focusEventsAllowed=!0:(e.div.addEventListener("focusin",(()=>{e._focusEventsAllowed=!0}),{once:!0}),t.focus())}),0)),e._structTreeParentId=this.#At?.moveElementInDOM(this.div,e.div,e.contentDiv,!0)}addOrRebuild(e){e.needsToBeRebuilt()?e.rebuild():this.add(e)}addUndoableEditor(e){this.addCommands({cmd:()=>e._uiManager.rebuild(e),undo:()=>{e.remove()},mustExec:!1})}getNextId(){return this.#It.getId()}#jt(e){switch(this.#It.getMode()){case r.AnnotationEditorType.FREETEXT:return new o.FreeTextEditor(e);case r.AnnotationEditorType.INK:return new a.InkEditor(e);case r.AnnotationEditorType.STAMP:return new l.StampEditor(e)}return null}pasteEditor(e,t){this.#It.updateToolbar(e),this.#It.updateMode(e);const{offsetX:n,offsetY:r}=this.#Mt(),i=this.getNextId(),o=this.#jt({parent:this,id:i,x:n,y:r,uiManager:this.#It,isCentered:!0,...t});o&&this.add(o)}deserialize(e){switch(e.annotationType??e.annotationEditorType){case r.AnnotationEditorType.FREETEXT:return o.FreeTextEditor.deserialize(e,this,this.#It);case r.AnnotationEditorType.INK:return a.InkEditor.deserialize(e,this,this.#It);case r.AnnotationEditorType.STAMP:return l.StampEditor.deserialize(e,this,this.#It)}return null}#Pt(e,t){const n=this.getNextId(),r=this.#jt({parent:this,id:n,x:e.offsetX,y:e.offsetY,uiManager:this.#It,isCentered:t});return r&&this.add(r),r}#Mt(){const{x:e,y:t,width:n,height:r}=this.div.getBoundingClientRect(),i=Math.max(0,e),o=Math.max(0,t),a=(i+Math.min(window.innerWidth,e+n))/2-e,s=(o+Math.min(window.innerHeight,t+r))/2-t,[l,c]=this.viewport.rotation%180===0?[a,s]:[s,a];return{offsetX:l,offsetY:c}}addNewEditor(){this.#Pt(this.#Mt(),!0)}setSelected(e){this.#It.setSelected(e)}toggleSelected(e){this.#It.toggleSelected(e)}isSelected(e){return this.#It.isSelected(e)}unselect(e){this.#It.unselect(e)}pointerup(e){const{isMac:t}=r.FeatureTest.platform;0!==e.button||e.ctrlKey&&t||e.target===this.div&&this.#Ct&&(this.#Ct=!1,this.#Et?this.#It.getMode()!==r.AnnotationEditorType.STAMP?this.#Pt(e,!1):this.#It.unselectAll():this.#Et=!0)}pointerdown(e){if(this.#Ct)return void(this.#Ct=!1);const{isMac:t}=r.FeatureTest.platform;if(0!==e.button||e.ctrlKey&&t)return;if(e.target!==this.div)return;this.#Ct=!0;const n=this.#It.getActive();this.#Et=!n||n.isEmpty()}findNewParent(e,t,n){const r=this.#It.findParent(t,n);return null!==r&&r!==this&&(r.changeParent(e),!0)}destroy(){this.#It.getActive()?.parent===this&&(this.#It.commitOrRemove(),this.#It.setActiveEditor(null));for(const e of this.#Tt.values())this.#At?.removePointerInTextLayer(e.contentDiv),e.setParent(null),e.isAttachedToDOM=!1,e.div.remove();this.div=null,this.#Tt.clear(),this.#It.removeLayer(this)}#Rt(){this.#Ot=!0;for(const e of this.#Tt.values())e.isEmpty()&&e.remove();this.#Ot=!1}render(e){let{viewport:t}=e;this.viewport=t,(0,s.setLayerDimensions)(this.div,t);for(const n of this.#It.getEditors(this.pageIndex))this.add(n);this.updateMode()}update(e){let{viewport:t}=e;this.#It.commitOrRemove(),this.viewport=t,(0,s.setLayerDimensions)(this.div,{rotation:t.rotation}),this.updateMode()}get pageDimensions(){const{pageWidth:e,pageHeight:t}=this.viewport.rawDims;return[e,t]}}t.AnnotationEditorLayer=c},(e,t,n)=>
75{Object.defineProperty(t,"__esModule",{value:!0}),t.FreeTextEditor=void 0;var r=n(1),i=n(5),o=n(4),a=n(29);class s extends o.AnnotationEditor{#Dt=this.editorDivBlur.bind(this);#Lt=this.editorDivFocus.bind(this);#Ft=this.editorDivInput.bind(this);#Bt=this.editorDivKeydown.bind(this);#Ut;#zt="";#Ht=`${this.id}-editor`;#$t;#Vt=null;static _freeTextDefaultContent="";static _internalPadding=0;static _defaultColor=null;static _defaultFontSize=10;static get _keyboardManager(){const e=s.prototype,t=e=>e.isEmpty(),n=i.AnnotationEditorUIManager.TRANSLATE_SMALL,o=i.AnnotationEditorUIManager.TRANSLATE_BIG;return(0,r.shadow)(this,"_keyboardManager",new i.KeyboardManager([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],e.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],e.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],e._translateEmpty,{args:[-n,0],checker:t}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e._translateEmpty,{args:[-o,0],checker:t}],[["ArrowRight","mac+ArrowRight"],e._translateEmpty,{args:[n,0],checker:t}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e._translateEmpty,{args:[o,0],checker:t}],[["ArrowUp","mac+ArrowUp"],e._translateEmpty,{args:[0,-n],checker:t}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e._translateEmpty,{args:[0,-o],checker:t}],[["ArrowDown","mac+ArrowDown"],e._translateEmpty,{args:[0,n],checker:t}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e._translateEmpty,{args:[0,o],checker:t}]]))}static _type="freetext";constructor(e){super({...e,name:"freeTextEditor"}),this.#Ut=e.color||s._defaultColor||o.AnnotationEditor._defaultLineColor,this.#$t=e.fontSize||s._defaultFontSize}static initialize(e){o.AnnotationEditor.initialize(e,{strings:["free_text2_default_content","editor_free_text2_aria_label"]});const t=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(t.getPropertyValue("--freetext-padding"))}static updateDefaultParams(e,t){switch(e){case r.AnnotationEditorParamsType.FREETEXT_SIZE:s._defaultFontSize=t;break;case r.AnnotationEditorParamsType.FREETEXT_COLOR:s._defaultColor=t}}updateParams(e,t){switch(e){case r.AnnotationEditorParamsType.FREETEXT_SIZE:this.#Gt(t);break;case r.AnnotationEditorParamsType.FREETEXT_COLOR:this.#Wt(t)}}static get defaultPropertiesToUpdate(){return[[r.AnnotationEditorParamsType.FREETEXT_SIZE,s._defaultFontSize],[r.AnnotationEditorParamsType.FREETEXT_COLOR,s._defaultColor||o.AnnotationEditor._defaultLineColor]]}get propertiesToUpdate(){return[[r.AnnotationEditorParamsType.FREETEXT_SIZE,this.#$t],[r.AnnotationEditorParamsType.FREETEXT_COLOR,this.#Ut]]}#Gt(e){const t=e=>{this.editorDiv.style.fontSize=`calc(${e}px * var(--scale-factor))`,this.translate(0,-(e-this.#$t)*this.parentScale),this.#$t=e,this.#qt()},n=this.#$t;this.addCommands({cmd:()=>{t(e)},undo:()=>{t(n)},mustExec:!0,type:r.AnnotationEditorParamsType.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}#Wt(e){const t=this.#Ut;this.addCommands({cmd:()=>{this.#Ut=this.editorDiv.style.color=e},undo:()=>{this.#Ut=this.editorDiv.style.color=t},mustExec:!0,type:r.AnnotationEditorParamsType.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}_translateEmpty(e,t){this._uiManager.translateSelectedEditors(e,t,!0)}getInitialTranslation(){const e=this.parentScale;return[-s._internalPadding*e,-(s._internalPadding+this.#$t)*e]}rebuild(){this.parent&&(super.rebuild(),null!==this.div&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){this.isInEditMode()||(this.parent.setEditingState(!1),this.parent.updateToolbar(r.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",this.#Bt),this.editorDiv.addEventListener("focus",this.#Lt),this.editorDiv.addEventListener("blur",this.#Dt),this.editorDiv.addEventListener("input",this.#Ft))}disableEditMode(){this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",this.#Ht),this._isDraggable=!0,this.editorDiv.removeEventListener("keydown",this.#Bt),this.editorDiv.removeEventListener("focus",this.#Lt),this.editorDiv.removeEventListener("blur",this.#Dt),this.editorDiv.removeEventListener("input",this.#Ft),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freeTextEditing"))}focusin(e){this._focusEventsAllowed&&(super.focusin(e),e.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(){this.width?this.#Yt():(this.enableEditMode(),this.editorDiv.focus(),this._initialOptions?.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()}#Kt(){const e=this.editorDiv.getElementsByTagName("div");if(0===e.length)return this.editorDiv.innerText;const t=[];for(const n of e)t.push(n.innerText.replace(/\r\n?|\n/,""));return t.join("\n")}#qt(){const[e,t]=this.parentDimensions;let n;if(this.isAttachedToDOM)n=this.div.getBoundingClientRect();else{const{currentLayer:e,div:t}=this,r=t.style.display;t.style.display="hidden",e.div.append(this.div),n=t.getBoundingClientRect(),t.remove(),t.style.display=r}this.rotation%180===this.parentRotation%180?(this.width=n.width/e,this.height=n.height/t):(this.width=n.height/e,this.height=n.width/t),this.fixAndSetPosition()}commit(){if(!this.isInEditMode())return;super.commit(),this.disableEditMode();const e=this.#zt,t=this.#zt=this.#Kt().trimEnd();if(e===t)return;const n=e=>{this.#zt=e,e?(this.#Xt(),this._uiManager.rebuild(this),this.#qt()):this.remove()};this.addCommands({cmd:()=>{n(t)},undo:()=>{n(e)},mustExec:!1}),this.#qt()}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}dblclick(e){this.enterInEditMode()}keydown(e){e.target===this.div&&"Enter"===e.key&&(this.enterInEditMode(),e.preventDefault())}editorDivKeydown(e){s._keyboardManager.exec(this,e)}editorDivFocus(e){this.isEditing=!0}editorDivBlur(e){this.isEditing=!1}editorDivInput(e){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)}
75render(){if(this.div)return this.div;let e,t;this.width&&(e=this.x,t=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",this.#Ht),this.enableEditing(),o.AnnotationEditor._l10nPromise.get("editor_free_text2_aria_label").then((e=>this.editorDiv?.setAttribute("aria-label",e))),o.AnnotationEditor._l10nPromise.get("free_text2_default_content").then((e=>this.editorDiv?.setAttribute("default-content",e))),this.editorDiv.contentEditable=!0;const{style:n}=this.editorDiv;if(n.fontSize=`calc(${this.#$t}px * var(--scale-factor))`,n.color=this.#Ut,this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),(0,i.bindEvents)(this,this.div,["dblclick","keydown"]),this.width){const[n,r]=this.parentDimensions;if(this.annotationElementId){const{position:i}=this.#Vt;let[o,a]=this.getInitialTranslation();[o,a]=this.pageTranslationToScreen(o,a);const[s,l]=this.pageDimensions,[c,u]=this.pageTranslation;let d,p;switch(this.rotation){case 0:d=e+(i[0]-c)/s,p=t+this.height-(i[1]-u)/l;break;case 90:d=e+(i[0]-c)/s,p=t-(i[1]-u)/l,[o,a]=[a,-o];break;case 180:d=e-this.width+(i[0]-c)/s,p=t-(i[1]-u)/l,[o,a]=[-o,-a];break;case 270:d=e+(i[0]-c-this.height*l)/s,p=t+(i[1]-u-this.width*s)/l,[o,a]=[-a,o]}this.setAt(d*n,p*r,o,a)}else this.setAt(e*n,t*r,this.width*n,this.height*r);this.#Xt(),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}#Xt(){if(this.editorDiv.replaceChildren(),this.#zt)for(const e of this.#zt.split("\n")){const t=document.createElement("div");t.append(e?document.createTextNode(e):document.createElement("br")),this.editorDiv.append(t)}}get contentDiv(){return this.editorDiv}static deserialize(e,t,n){let i=null;if(e instanceof a.FreeTextAnnotationElement){const{data:{defaultAppearanceData:{fontSize:t,fontColor:n},rect:o,rotation:a,id:s},textContent:l,textPosition:c,parent:{page:{pageNumber:u}}}=e;if(!l||0===l.length)return null;i=e={annotationType:r.AnnotationEditorType.FREETEXT,color:Array.from(n),fontSize:t,value:l.join("\n"),position:c,pageIndex:u-1,rect:o,rotation:a,id:s,deleted:!1}}const o=super.deserialize(e,t,n);return o.#$t=e.fontSize,o.#Ut=r.Util.makeHexColor(...e.color),o.#zt=e.value,o.annotationElementId=e.id||null,o.#Vt=i,o}serialize(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isEmpty())return null;if(this.deleted)return{pageIndex:this.pageIndex,id:this.annotationElementId,deleted:!0};const t=s._internalPadding*this.parentScale,n=this.getRect(t,t),i=o.AnnotationEditor._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:this.#Ut),a={annotationType:r.AnnotationEditorType.FREETEXT,color:i,fontSize:this.#$t,value:this.#zt,pageIndex:this.pageIndex,rect:n,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return e?a:this.annotationElementId&&!this.#Zt(a)?null:(a.id=this.annotationElementId,a)}#Zt(e){const{value:t,fontSize:n,color:r,rect:i,pageIndex:o}=this.#Vt;return e.value!==t||e.fontSize!==n||e.rect.some(((e,t)=>Math.abs(e-i[t])>=1))||e.color.some(((e,t)=>e!==r[t]))||e.pageIndex!==o}#Yt(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.annotationElementId)return;if(this.#qt(),!e&&(0===this.width||0===this.height))return void setTimeout((()=>this.#Yt(!0)),0);const t=s._internalPadding*this.parentScale;this.#Vt.rect=this.getRect(t,t)}}t.FreeTextEditor=s},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StampAnnotationElement=t.InkAnnotationElement=t.FreeTextAnnotationElement=t.AnnotationLayer=void 0;var r=n(1),i=n(6),o=n(3),a=n(30),s=n(31),l=n(32);const c=1e3,u=new WeakSet;function d(e){return{width:e[2]-e[0],height:e[3]-e[1]}}class p{static create(e){switch(e.data.annotationType){case r.AnnotationType.LINK:return new f(e);case r.AnnotationType.TEXT:return new m(e);case r.AnnotationType.WIDGET:switch(e.data.fieldType){case"Tx":return new b(e);case"Btn":return e.data.radioButton?new x(e):e.data.checkBox?new y(e):new w(e);case"Ch":return new A(e);case"Sig":return new v(e)}return new g(e);case r.AnnotationType.POPUP:return new E(e);case r.AnnotationType.FREETEXT:return new _(e);case r.AnnotationType.LINE:return new k(e);case r.AnnotationType.SQUARE:return new T(e);case r.AnnotationType.CIRCLE:return new C(e);case r.AnnotationType.POLYLINE:return new O(e);case r.AnnotationType.CARET:return new I(e);case r.AnnotationType.INK:return new R(e);case r.AnnotationType.POLYGON:return new N(e);case r.AnnotationType.HIGHLIGHT:return new P(e);case r.AnnotationType.UNDERLINE:return new j(e);case r.AnnotationType.SQUIGGLY:return new M(e);case r.AnnotationType.STRIKEOUT:return new D(e);case r.AnnotationType.STAMP:return new L(e);case r.AnnotationType.FILEATTACHMENT:return new F(e);default:return new h(e)}}}class h{#Qt=!1;constructor(e){let{isRenderable:t=!1,ignoreBorder:n=!1,createQuadrilaterals:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.isRenderable=t,this.data=e.data,this.layer=e.layer,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderForms=e.renderForms,this.svgFactory=e.svgFactory,this.annotationStorage=e.annotationStorage,this.enableScripting=e.enableScripting,this.hasJSActions=e.hasJSActions,this._fieldObjects=e.fieldObjects,this.parent=e.parent,t&&(this.container=this._createContainer(n)),r&&this._createQuadrilaterals()}static _hasPopupData(e){let{titleObj:t,contentsObj:n,richText:r}=e;return!!(t?.str||n?.str||r?.str)}get hasPopupData(){return h._hasPopupData(this.data)}_createContainer(e){const{data:t,parent:{page:n,viewport:i}}=this,o=document.createElement("section");o.setAttribute("data-annotation-id",t.id),this instanceof g||(o.tabIndex=c),o.style.zIndex=this.parent.zIndex++,this.data.popupRef&&o.setAttribute("aria-haspopup","dialog"),t.noRotate&&o.classList.add("norotate");const{pageWidth:a,pageHeight:s,pageX:l,pageY:u}=i.rawDims;if(!t.rect||this instanceof E){const{rotation:e}=t;return t.hasOwnCanvas||0===e||this.setRotation(e,o),o}const{width:p,height:h}=d(t.rect),f=r.Util.normalizeRect([t.rect[0],n.view[3]-t.rect[1]+n.view[1],t.rect[2],n.view[3]-t.rect[3]+n.view[1]]);if(!e&&t.borderStyle.width>0){o.style.borderWidth=`${t.borderStyle.width}px`;const e=t.borderStyle.horizontalCornerRadius,n=t.borderStyle.verticalCornerRadius;if(e>0||n>0){const t=`calc(${e}px * var(--scale-factor)) / calc(${n}px * var(--scale-factor))`;o.style.borderRadius=t}else if(this instanceof x){const e=`calc(${p}px * var(--scale-factor)) / calc(${h}px * var(--scale-factor))`;o.style.borderRadius=e}switch(t.borderStyle.style){case r.AnnotationBorderStyleType.SOLID:o.style.borderStyle="solid";break;case r.AnnotationBorderStyleType.DASHED:o.style.borderStyle="dashed";break;case r.AnnotationBorderStyleType.BEVELED:(0,r.warn)("Unimplemented border style: beveled");break;
75case r.AnnotationBorderStyleType.INSET:(0,r.warn)("Unimplemented border style: inset");break;case r.AnnotationBorderStyleType.UNDERLINE:o.style.borderBottomStyle="solid"}const i=t.borderColor||null;i?(this.#Qt=!0,o.style.borderColor=r.Util.makeHexColor(0|i[0],0|i[1],0|i[2])):o.style.borderWidth=0}o.style.left=100*(f[0]-l)/a+"%",o.style.top=100*(f[1]-u)/s+"%";const{rotation:m}=t;return t.hasOwnCanvas||0===m?(o.style.width=100*p/a+"%",o.style.height=100*h/s+"%"):this.setRotation(m,o),o}setRotation(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.container;if(!this.data.rect)return;const{pageWidth:n,pageHeight:r}=this.parent.viewport.rawDims,{width:i,height:o}=d(this.data.rect);let a,s;e%180===0?(a=100*i/n,s=100*o/r):(a=100*o/n,s=100*i/r),t.style.width=`${a}%`,t.style.height=`${s}%`,t.setAttribute("data-main-rotation",(360-e)%360)}get _commonActions(){const e=(e,t,n)=>{const r=n.detail[e],i=r[0],o=r.slice(1);n.target.style[t]=a.ColorConverters[`${i}_HTML`](o),this.annotationStorage.setValue(this.data.id,{[t]:a.ColorConverters[`${i}_rgb`](o)})};return(0,r.shadow)(this,"_commonActions",{display:e=>{const{display:t}=e.detail,n=t%2===1;this.container.style.visibility=n?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:n,noPrint:1===t||2===t})},print:e=>{this.annotationStorage.setValue(this.data.id,{noPrint:!e.detail.print})},hidden:e=>{const{hidden:t}=e.detail;this.container.style.visibility=t?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:t,noView:t})},focus:e=>{setTimeout((()=>e.target.focus({preventScroll:!1})),0)},userName:e=>{e.target.title=e.detail.userName},readonly:e=>{e.target.disabled=e.detail.readonly},required:e=>{this._setRequired(e.target,e.detail.required)},bgColor:t=>{e("bgColor","backgroundColor",t)},fillColor:t=>{e("fillColor","backgroundColor",t)},fgColor:t=>{e("fgColor","color",t)},textColor:t=>{e("textColor","color",t)},borderColor:t=>{e("borderColor","borderColor",t)},strokeColor:t=>{e("strokeColor","borderColor",t)},rotation:e=>{const t=e.detail.rotation;this.setRotation(t),this.annotationStorage.setValue(this.data.id,{rotation:t})}})}_dispatchEventFromSandbox(e,t){const n=this._commonActions;for(const r of Object.keys(t.detail)){const i=e[r]||n[r];i?.(t)}}_setDefaultPropertiesFromJS(e){if(!this.enableScripting)return;const t=this.annotationStorage.getRawValue(this.data.id);if(!t)return;const n=this._commonActions;for(const[r,i]of Object.entries(t)){const o=n[r];o&&(o({detail:{[r]:i},target:e}),delete t[r])}}
75_createQuadrilaterals(){if(!this.container)return;const{quadPoints:e}=this.data;if(!e)return;const[t,n,r,i]=this.data.rect;if(1===e.length){const[,{x:o,y:a},{x:s,y:l}]=e[0];if(r===o&&i===a&&t===s&&n===l)return}const{style:o}=this.container;let a;if(this.#Qt){const{borderColor:e,borderWidth:t}=o;o.borderWidth=0,a=["url('data:image/svg+xml;utf8,",'<svg xmlns="http://www.w3.org/2000/svg"',' preserveAspectRatio="none" viewBox="0 0 1 1">',`<g fill="transparent" stroke="${e}" stroke-width="${t}">`],this.container.classList.add("hasBorder")}const s=r-t,l=i-n,{svgFactory:c}=this,u=c.createElement("svg");u.classList.add("quadrilateralsContainer"),u.setAttribute("width",0),u.setAttribute("height",0);const d=c.createElement("defs");u.append(d);const p=c.createElement("clipPath"),h=`clippath_${this.data.id}`;p.setAttribute("id",h),p.setAttribute("clipPathUnits","objectBoundingBox"),d.append(p);for(const[,{x:f,y:m},{x:g,y:b}]of e){const e=c.createElement("rect"),n=(g-t)/s,r=(i-m)/l,o=(f-g)/s,u=(m-b)/l;e.setAttribute("x",n),e.setAttribute("y",r),e.setAttribute("width",o),e.setAttribute("height",u),p.append(e),a?.push(`<rect vector-effect="non-scaling-stroke" x="${n}" y="${r}" width="${o}" height="${u}"/>`)}this.#Qt&&(a.push("</g></svg>')"),o.backgroundImage=a.join("")),this.container.append(u),this.container.style.clipPath=`url(#${h})`}_createPopup(){const{container:e,data:t}=this;e.setAttribute("aria-haspopup","dialog");const n=new E({data:{color:t.color,titleObj:t.titleObj,modificationDate:t.modificationDate,contentsObj:t.contentsObj,richText:t.richText,parentRect:t.rect,borderStyle:0,id:`popup_${t.id}`,rotation:t.rotation},parent:this.parent,elements:[this]});this.parent.div.append(n.render())}render(){(0,r.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=[];if(this._fieldObjects){const i=this._fieldObjects[e];if(i)for(const{page:e,id:o,exportValues:a}of i){if(-1===e)continue;if(o===t)continue;const i="string"===typeof a?a:null,s=document.querySelector(`[data-element-id="${o}"]`);!s||u.has(s)?n.push({id:o,exportValue:i,domElement:s}):(0,r.warn)(`_getElementsByName - element not allowed: ${o}`)}return n}for(const r of document.getElementsByName(e)){const{exportValue:e}=r,i=r.getAttribute("data-element-id");i!==t&&u.has(r)&&n.push({id:i,exportValue:e,domElement:r})}return n}show(){this.container&&(this.container.hidden=!1),this.popup?.maybeShow()}hide(){this.container&&(this.container.hidden=!0),this.popup?.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){const e=this.getElementsToTriggerPopup();if(Array.isArray(e))for(const t of e)t.classList.add("highlightArea");else e.classList.add("highlightArea")}_editOnDoubleClick(){const{annotationEditorType:e,data:{id:t}}=this;this.container.addEventListener("dblclick",(()=>{this.linkService.eventBus?.dispatch("switchannotationeditormode",{source:this,mode:e,editId:t})}))}}class f extends h{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;super(e,{isRenderable:!0,ignoreBorder:!!t?.ignoreBorder,createQuadrilaterals:!0}),this.isTooltipOnly=e.data.isTooltipOnly}render(){const{data:e,linkService:t}=this,n=document.createElement("a");n.setAttribute("data-element-id",e.id);let r=!1;return e.url?(t.addLinkAttributes(n,e.url,e.newWindow),r=!0):e.action?(this._bindNamedAction(n,e.action),r=!0):e.attachment?(this._bindAttachment(n,e.attachment),r=!0):e.setOCGState?(this.#Jt(n,e.setOCGState),r=!0):e.dest?(this._bindLink(n,e.dest),r=!0):(e.actions&&(e.actions.Action||e.actions["Mouse Up"]||e.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(n,e),r=!0),e.resetForm?(this._bindResetFormAction(n,e.resetForm),r=!0):this.isTooltipOnly&&!r&&(this._bindLink(n,""),r=!0)),this.container.classList.add("linkAnnotation"),r&&this.container.append(n),this.container}#en(){this.container.setAttribute("data-internal-link","")}_bindLink(e,t){e.href=this.linkService.getDestinationHash(t),e.onclick=()=>(t&&this.linkService.goToDestination(t),!1),(t||""===t)&&this.#en()}_bindNamedAction(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeNamedAction(t),!1),this.#en()}_bindAttachment(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.downloadManager?.openOrDownloadData(this.container,t.content,t.filename),!1),this.#en()}#Jt(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeSetOCGState(t),!1),this.#en()}_bindJSAction(e,t){e.href=this.linkService.getAnchorUrl("");const n=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const r of Object.keys(t.actions)){const i=n.get(r);i&&(e[i]=()=>(this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t.id,name:r}}),!1))}e.onclick||(e.onclick=()=>!1),this.#en()}
75_bindResetFormAction(e,t){const n=e.onclick;if(n||(e.href=this.linkService.getAnchorUrl("")),this.#en(),!this._fieldObjects)return(0,r.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),void(n||(e.onclick=()=>!1));e.onclick=()=>{n?.();const{fields:e,refs:i,include:o}=t,a=[];if(0!==e.length||0!==i.length){const t=new Set(i);for(const n of e){const e=this._fieldObjects[n]||[];for(const{id:n}of e)t.add(n)}for(const e of Object.values(this._fieldObjects))for(const n of e)t.has(n.id)===o&&a.push(n)}else for(const t of Object.values(this._fieldObjects))a.push(...t);const s=this.annotationStorage,l=[];for(const t of a){const{id:e}=t;switch(l.push(e),t.type){case"text":{const n=t.defaultValue||"";s.setValue(e,{value:n});break}case"checkbox":case"radiobutton":{const n=t.defaultValue===t.exportValues;s.setValue(e,{value:n});break}case"combobox":case"listbox":{const n=t.defaultValue||"";s.setValue(e,{value:n});break}default:continue}const n=document.querySelector(`[data-element-id="${e}"]`);n&&(u.has(n)?n.dispatchEvent(new Event("resetform")):(0,r.warn)(`_bindResetFormAction - element not allowed: ${e}`))}return this.enableScripting&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:l,name:"ResetForm"}}),!1}}}class m extends h{constructor(e){super(e,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");const e=document.createElement("img");return e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(e),this.container}}class g extends h{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}showElementAndHideCanvas(e){this.data.hasOwnCanvas&&("CANVAS"===e.previousSibling?.nodeName&&(e.previousSibling.hidden=!0),e.hidden=!1)}_getKeyModifier(e){const{isWin:t,isMac:n}=r.FeatureTest.platform;return t&&e.ctrlKey||n&&e.metaKey}_setEventListener(e,t,n,r,i){n.includes("mouse")?e.addEventListener(n,(e=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:r,value:i(e),shift:e.shiftKey,modifier:this._getKeyModifier(e)}})})):e.addEventListener(n,(e=>{if("blur"===n){if(!t.focused||!e.relatedTarget)return;t.focused=!1}else if("focus"===n){if(t.focused)return;t.focused=!0}i&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:r,value:i(e)}})}))}_setEventListeners(e,t,n,r){for(const[i,o]of n)("Action"===o||this.data.actions?.[o])&&("Focus"!==o&&"Blur"!==o||(t||={focused:!1}),this._setEventListener(e,t,i,o,r),"Focus"!==o||this.data.actions?.Blur?"Blur"!==o||this.data.actions?.Focus||this._setEventListener(e,t,"focus","Focus",null):this._setEventListener(e,t,"blur","Blur",null))}_setBackgroundColor(e){const t=this.data.backgroundColor||null;e.style.backgroundColor=null===t?"transparent":r.Util.makeHexColor(t[0],t[1],t[2])}_setTextStyle(e){const t=["left","center","right"],{fontColor:n}=this.data.defaultAppearanceData,i=this.data.defaultAppearanceData.fontSize||9,o=e.style;let a;const s=e=>Math.round(10*e)/10;if(this.data.multiLine){const e=Math.abs(this.data.rect[3]-this.data.rect[1]-2),t=e/(Math.round(e/(r.LINE_FACTOR*i))||1);a=Math.min(i,s(t/r.LINE_FACTOR))}else{const e=Math.abs(this.data.rect[3]-this.data.rect[1]-2);a=Math.min(i,s(e/r.LINE_FACTOR))}o.fontSize=`calc(${a}px * var(--scale-factor))`,o.color=r.Util.makeHexColor(n[0],n[1],n[2]),null!==this.data.textAlignment&&(o.textAlign=t[this.data.textAlignment])}_setRequired(e,t){t?e.setAttribute("required",!0):e.removeAttribute("required"),e.setAttribute("aria-required",t)}}class b extends g{constructor(e){super(e,{isRenderable:e.renderForms||!e.data.hasAppearance&&!!e.data.fieldValue})}setPropertyOnSiblings(e,t,n,r){const i=this.annotationStorage;
75for(const o of this._getElementsByName(e.name,e.id))o.domElement&&(o.domElement[t]=n),i.setValue(o.id,{[r]:n})}render(){const e=this.annotationStorage,t=this.data.id;this.container.classList.add("textWidgetAnnotation");let n=null;if(this.renderForms){const r=e.getValue(t,{value:this.data.fieldValue});let i=r.value||"";const o=e.getValue(t,{charLimit:this.data.maxLen}).charLimit;o&&i.length>o&&(i=i.slice(0,o));let a=r.formattedValue||this.data.textContent?.join("\n")||null;a&&this.data.comb&&(a=a.replaceAll(/\s+/g,""));const s={userValue:i,formattedValue:a,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(n=document.createElement("textarea"),n.textContent=a??i,this.data.doNotScroll&&(n.style.overflowY="hidden")):(n=document.createElement("input"),n.type="text",n.setAttribute("value",a??i),this.data.doNotScroll&&(n.style.overflowX="hidden")),this.data.hasOwnCanvas&&(n.hidden=!0),u.add(n),n.setAttribute("data-element-id",t),n.disabled=this.data.readOnly,n.name=this.data.fieldName,n.tabIndex=c,this._setRequired(n,this.data.required),o&&(n.maxLength=o),n.addEventListener("input",(r=>{e.setValue(t,{value:r.target.value}),this.setPropertyOnSiblings(n,"value",r.target.value,"value"),s.formattedValue=null})),n.addEventListener("resetform",(e=>{const t=this.data.defaultFieldValue??"";n.value=s.userValue=t,s.formattedValue=null}));let l=e=>{const{formattedValue:t}=s;null!==t&&void 0!==t&&(e.target.value=t),e.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){n.addEventListener("focus",(e=>{if(s.focused)return;const{target:t}=e;s.userValue&&(t.value=s.userValue),s.lastCommittedValue=t.value,s.commitKey=1,s.focused=!0})),n.addEventListener("updatefromsandbox",(n=>{this.showElementAndHideCanvas(n.target);const r={value(n){s.userValue=n.detail.value??"",e.setValue(t,{value:s.userValue.toString()}),n.target.value=s.userValue},formattedValue(n){const{formattedValue:r}=n.detail;s.formattedValue=r,null!==r&&void 0!==r&&n.target!==document.activeElement&&(n.target.value=r),e.setValue(t,{formattedValue:r})},selRange(e){e.target.setSelectionRange(...e.detail.selRange)},charLimit:n=>{const{charLimit:r}=n.detail,{target:i}=n;if(0===r)return void i.removeAttribute("maxLength");i.setAttribute("maxLength",r);let o=s.userValue;!o||o.length<=r||(o=o.slice(0,r),i.value=s.userValue=o,e.setValue(t,{value:o}),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:o,willCommit:!0,commitKey:1,selStart:i.selectionStart,selEnd:i.selectionEnd}}))}};this._dispatchEventFromSandbox(r,n)})),n.addEventListener("keydown",(e=>{s.commitKey=1;let n=-1;if("Escape"===e.key?n=0:"Enter"!==e.key||this.data.multiLine?"Tab"===e.key&&(s.commitKey=3):n=2,-1===n)return;const{value:r}=e.target;s.lastCommittedValue!==r&&(s.lastCommittedValue=r,s.userValue=r,this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:r,willCommit:!0,commitKey:n,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}}))}));const r=l;l=null,n.addEventListener("blur",(e=>{if(!s.focused||!e.relatedTarget)return;s.focused=!1;const{value:n}=e.target;s.userValue=n,s.lastCommittedValue!==n&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:n,willCommit:!0,commitKey:s.commitKey,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}}),r(e)})),this.data.actions?.Keystroke&&n.addEventListener("beforeinput",(e=>{s.lastCommittedValue=null;const{data:n,target:r}=e,{value:i,selectionStart:o,selectionEnd:a}=r;let l=o,c=a;switch(e.inputType){case"deleteWordBackward":{const e=i.substring(0,o).match(/\w*[^\w]*$/);e&&(l-=e[0].length);break}
75case"deleteWordForward":{const e=i.substring(o).match(/^[^\w]*\w*/);e&&(c+=e[0].length);break}case"deleteContentBackward":o===a&&(l-=1);break;case"deleteContentForward":o===a&&(c+=1)}e.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:i,change:n||"",willCommit:!1,selStart:l,selEnd:c}})})),this._setEventListeners(n,s,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.value))}if(l&&n.addEventListener("blur",l),this.data.comb){const e=(this.data.rect[2]-this.data.rect[0])/o;n.classList.add("comb"),n.style.letterSpacing=`calc(${e}px * var(--scale-factor) - 1ch)`}}else n=document.createElement("div"),n.textContent=this.data.fieldValue,n.style.verticalAlign="middle",n.style.display="table-cell";return this._setTextStyle(n),this._setBackgroundColor(n),this._setDefaultPropertiesFromJS(n),this.container.append(n),this.container}}class v extends g{constructor(e){super(e,{isRenderable:!!e.data.hasOwnCanvas})}}class y extends g{constructor(e){super(e,{isRenderable:e.renderForms})}render(){const e=this.annotationStorage,t=this.data,n=t.id;let r=e.getValue(n,{value:t.exportValue===t.fieldValue}).value;"string"===typeof r&&(r="Off"!==r,e.setValue(n,{value:r})),this.container.classList.add("buttonWidgetAnnotation","checkBox");const i=document.createElement("input");return u.add(i),i.setAttribute("data-element-id",n),i.disabled=t.readOnly,this._setRequired(i,this.data.required),i.type="checkbox",i.name=t.fieldName,r&&i.setAttribute("checked",!0),i.setAttribute("exportValue",t.exportValue),i.tabIndex=c,i.addEventListener("change",(r=>{const{name:i,checked:o}=r.target;for(const a of this._getElementsByName(i,n)){const n=o&&a.exportValue===t.exportValue;a.domElement&&(a.domElement.checked=n),e.setValue(a.id,{value:n})}e.setValue(n,{value:o})})),i.addEventListener("resetform",(e=>{const n=t.defaultFieldValue||"Off";e.target.checked=n===t.exportValue})),this.enableScripting&&this.hasJSActions&&(i.addEventListener("updatefromsandbox",(t=>{const r={value(t){t.target.checked="Off"!==t.detail.value,e.setValue(n,{value:t.target.checked})}};this._dispatchEventFromSandbox(r,t)})),this._setEventListeners(i,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.checked))),this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}}class x extends g{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const e=this.annotationStorage,t=this.data,n=t.id;let r=e.getValue(n,{value:t.fieldValue===t.buttonValue}).value;"string"===typeof r&&(r=r!==t.buttonValue,e.setValue(n,{value:r}));const i=document.createElement("input");if(u.add(i),i.setAttribute("data-element-id",n),i.disabled=t.readOnly,this._setRequired(i,this.data.required),i.type="radio",i.name=t.fieldName,r&&i.setAttribute("checked",!0),i.tabIndex=c,i.addEventListener("change",(t=>{const{name:r,checked:i}=t.target;for(const o of this._getElementsByName(r,n))e.setValue(o.id,{value:!1});e.setValue(n,{value:i})})),i.addEventListener("resetform",(e=>{const n=t.defaultFieldValue;e.target.checked=null!==n&&void 0!==n&&n===t.buttonValue})),this.enableScripting&&this.hasJSActions){const r=t.buttonValue;i.addEventListener("updatefromsandbox",(t=>{const i={value:t=>{const i=r===t.detail.value;for(const r of this._getElementsByName(t.target.name)){const t=i&&r.id===n;r.domElement&&(r.domElement.checked=t),e.setValue(r.id,{value:t})}}};this._dispatchEventFromSandbox(i,t)})),this._setEventListeners(i,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.checked))}return this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}}
75class w extends f{constructor(e){super(e,{ignoreBorder:e.data.hasAppearance})}render(){const e=super.render();e.classList.add("buttonWidgetAnnotation","pushButton"),this.data.alternativeText&&(e.title=this.data.alternativeText);const t=e.lastChild;return this.enableScripting&&this.hasJSActions&&t&&(this._setDefaultPropertiesFromJS(t),t.addEventListener("updatefromsandbox",(e=>{this._dispatchEventFromSandbox({},e)}))),e}}class A extends g{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const e=this.annotationStorage,t=this.data.id,n=e.getValue(t,{value:this.data.fieldValue}),r=document.createElement("select");u.add(r),r.setAttribute("data-element-id",t),r.disabled=this.data.readOnly,this._setRequired(r,this.data.required),r.name=this.data.fieldName,r.tabIndex=c;let i=this.data.combo&&this.data.options.length>0;this.data.combo||(r.size=this.data.options.length,this.data.multiSelect&&(r.multiple=!0)),r.addEventListener("resetform",(e=>{const t=this.data.defaultFieldValue;for(const n of r.options)n.selected=n.value===t}));for(const c of this.data.options){const e=document.createElement("option");e.textContent=c.displayValue,e.value=c.exportValue,n.value.includes(c.exportValue)&&(e.setAttribute("selected",!0),i=!1),r.append(e)}let o=null;if(i){const e=document.createElement("option");e.value=" ",e.setAttribute("hidden",!0),e.setAttribute("selected",!0),r.prepend(e),o=()=>{e.remove(),r.removeEventListener("input",o),o=null},r.addEventListener("input",o)}const a=e=>{const t=e?"value":"textContent",{options:n,multiple:i}=r;return i?Array.prototype.filter.call(n,(e=>e.selected)).map((e=>e[t])):-1===n.selectedIndex?null:n[n.selectedIndex][t]};let s=a(!1);const l=e=>{const t=e.target.options;return Array.prototype.map.call(t,(e=>({displayValue:e.textContent,exportValue:e.value})))};return this.enableScripting&&this.hasJSActions?(r.addEventListener("updatefromsandbox",(n=>{const i={value(n){o?.();const i=n.detail.value,l=new Set(Array.isArray(i)?i:[i]);for(const e of r.options)e.selected=l.has(e.value);e.setValue(t,{value:a(!0)}),s=a(!1)},multipleSelection(e){r.multiple=!0},remove(n){const i=r.options,o=n.detail.remove;i[o].selected=!1,r.remove(o),i.length>0&&-1===Array.prototype.findIndex.call(i,(e=>e.selected))&&(i[0].selected=!0),e.setValue(t,{value:a(!0),items:l(n)}),s=a(!1)},clear(n){for(;0!==r.length;)r.remove(0);e.setValue(t,{value:null,items:[]}),s=a(!1)},insert(n){const{index:i,displayValue:o,exportValue:c}=n.detail.insert,u=r.children[i],d=document.createElement("option");d.textContent=o,d.value=c,u?u.before(d):r.append(d),e.setValue(t,{value:a(!0),items:l(n)}),s=a(!1)},items(n){const{items:i}=n.detail;for(;0!==r.length;)r.remove(0);for(const e of i){const{displayValue:t,exportValue:n}=e,i=document.createElement("option");i.textContent=t,i.value=n,r.append(i)}r.options.length>0&&(r.options[0].selected=!0),e.setValue(t,{value:a(!0),items:l(n)}),s=a(!1)},indices(n){const r=new Set(n.detail.indices);for(const e of n.target.options)e.selected=r.has(e.index);e.setValue(t,{value:a(!0)}),s=a(!1)},editable(e){e.target.disabled=!e.detail.editable}};this._dispatchEventFromSandbox(i,n)})),r.addEventListener("input",(n=>{const r=a(!0);e.setValue(t,{value:r}),n.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:s,changeEx:r,willCommit:!1,commitKey:1,keyDown:!1}})})),this._setEventListeners(r,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],(e=>e.target.value))):r.addEventListener("input",(function(n){e.setValue(t,{value:a(!0)})})),this.data.combo&&this._setTextStyle(r),this._setBackgroundColor(r),this._setDefaultPropertiesFromJS(r),this.container.append(r),this.container}}class E extends h{constructor(e){const{data:t,elements:n}=e;super(e,{isRenderable:h._hasPopupData(t)}),this.elements=n}render(){this.container.classList.add("popupAnnotation");const e=new S({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}),t=[];for(const n of this.elements)n.popup=e,t.push(n.data.id),n.addHighlightArea();return this.container.setAttribute("aria-controls",t.map((e=>`${r.AnnotationPrefix}${e}`)).join(",")),this.container}}
75class S{#tn=null;#nn=this.#rn.bind(this);#in=this.#on.bind(this);#an=this.#sn.bind(this);#ln=this.#cn.bind(this);#Ut=null;#Re=null;#un=null;#dn=null;#pn=null;#hn=null;#fn=!1;#mn=null;#gn=null;#bn=null;#vn=null;#yn=!1;constructor(e){let{container:t,color:n,elements:r,titleObj:o,modificationDate:a,contentsObj:s,richText:l,parent:c,rect:u,parentRect:d,open:p}=e;this.#Re=t,this.#vn=o,this.#un=s,this.#bn=l,this.#pn=c,this.#Ut=n,this.#gn=u,this.#hn=d,this.#dn=r;const h=i.PDFDateString.toDateObject(a);h&&(this.#tn=c.l10n.get("annotation_date_string",{date:h.toLocaleDateString(),time:h.toLocaleTimeString()})),this.trigger=r.flatMap((e=>e.getElementsToTriggerPopup()));for(const i of this.trigger)i.addEventListener("click",this.#ln),i.addEventListener("mouseenter",this.#an),i.addEventListener("mouseleave",this.#in),i.classList.add("popupTriggerArea");for(const i of r)i.container?.addEventListener("keydown",this.#nn);this.#Re.hidden=!0,p&&this.#cn()}render(){if(this.#mn)return;const{page:{view:e},viewport:{rawDims:{pageWidth:t,pageHeight:n,pageX:i,pageY:o}}}=this.#pn,a=this.#mn=document.createElement("div");if(a.className="popup",this.#Ut){const e=a.style.outlineColor=r.Util.makeHexColor(...this.#Ut);if(CSS.supports("background-color","color-mix(in srgb, red 30%, white)"))a.style.backgroundColor=`color-mix(in srgb, ${e} 30%, white)`;else{const e=.7;a.style.backgroundColor=r.Util.makeHexColor(...this.#Ut.map((t=>Math.floor(e*(255-t)+t))))}}const s=document.createElement("span");s.className="header";const c=document.createElement("h1");if(s.append(c),({dir:c.dir,str:c.textContent}=this.#vn),a.append(s),this.#tn){const e=document.createElement("span");e.classList.add("popupDate"),this.#tn.then((t=>{e.textContent=t})),s.append(e)}const u=this.#un,d=this.#bn;if(!d?.str||u?.str&&u.str!==d.str){const e=this._formatContents(u);a.append(e)}else l.XfaLayer.render({xfaHtml:d.html,intent:"richText",div:a}),a.lastChild.classList.add("richText","popupContent");let p=!!this.#hn,h=p?this.#hn:this.#gn;for(const l of this.#dn)if(!h||null!==r.Util.intersect(l.data.rect,h)){h=l.data.rect,p=!0;break}const f=r.Util.normalizeRect([h[0],e[3]-h[1]+e[1],h[2],e[3]-h[3]+e[1]]),m=p?h[2]-h[0]+5:0,g=f[0]+m,b=f[1],{style:v}=this.#Re;v.left=100*(g-i)/t+"%",v.top=100*(b-o)/n+"%",this.#Re.append(a)}_formatContents(e){let{str:t,dir:n}=e;const r=document.createElement("p");r.classList.add("popupContent"),r.dir=n;const i=t.split(/(?:\r\n?|\n)/);for(let o=0,a=i.length;o<a;++o){const e=i[o];r.append(document.createTextNode(e)),o<a-1&&r.append(document.createElement("br"))}return r}#rn(e){e.altKey||e.shiftKey||e.ctrlKey||e.metaKey||("Enter"===e.key||"Escape"===e.key&&this.#fn)&&this.#cn()}#cn(){this.#fn=!this.#fn,this.#fn?(this.#sn(),this.#Re.addEventListener("click",this.#ln),this.#Re.addEventListener("keydown",this.#nn)):(this.#on(),this.#Re.removeEventListener("click",this.#ln),this.#Re.removeEventListener("keydown",this.#nn))}#sn(){this.#mn||this.render(),this.isVisible?this.#fn&&this.#Re.classList.add("focused"):(this.#Re.hidden=!1,this.#Re.style.zIndex=parseInt(this.#Re.style.zIndex)+1e3)}#on(){this.#Re.classList.remove("focused"),!this.#fn&&this.isVisible&&(this.#Re.hidden=!0,this.#Re.style.zIndex=parseInt(this.#Re.style.zIndex)-1e3)}forceHide(){this.#yn=this.isVisible,this.#yn&&(this.#Re.hidden=!0)}maybeShow(){this.#yn&&(this.#yn=!1,this.#Re.hidden=!1)}get isVisible(){return!1===this.#Re.hidden}}class _ extends h{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.textContent=e.data.textContent,this.textPosition=e.data.textPosition,this.annotationEditorType=r.AnnotationEditorType.FREETEXT}render(){if(this.container.classList.add("freeTextAnnotation"),this.textContent){const e=document.createElement("div");e.classList.add("annotationTextContent"),e.setAttribute("role","comment");for(const t of this.textContent){const n=document.createElement("span");n.textContent=t,e.append(n)}this.container.append(e)}return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}}t.FreeTextAnnotationElement=_;class k extends h{#xn=null;constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("lineAnnotation");const e=this.data,{width:t,height:n}=d(e.rect),r=this.svgFactory.create(t,n,!0),i=this.#xn=this.svgFactory.createElement("svg:line");return i.setAttribute("x1",e.rect[2]-e.lineCoordinates[0]),i.setAttribute("y1",e.rect[3]-e.lineCoordinates[1]),i.setAttribute("x2",e.re
75ct[2]-e.lineCoordinates[2]),i.setAttribute("y2",e.rect[3]-e.lineCoordinates[3]),i.setAttribute("stroke-width",e.borderStyle.width||1),i.setAttribute("stroke","transparent"),i.setAttribute("fill","transparent"),r.append(i),this.container.append(r),!e.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#xn}addHighlightArea(){this.container.classList.add("highlightArea")}}class T extends h{#wn=null;constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("squareAnnotation");const e=this.data,{width:t,height:n}=d(e.rect),r=this.svgFactory.create(t,n,!0),i=e.borderStyle.width,o=this.#wn=this.svgFactory.createElement("svg:rect");return o.setAttribute("x",i/2),o.setAttribute("y",i/2),o.setAttribute("width",t-i),o.setAttribute("height",n-i),o.setAttribute("stroke-width",i||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","transparent"),r.append(o),this.container.append(r),!e.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#wn}addHighlightArea(){this.container.classList.add("highlightArea")}}class C extends h{#An=null;constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("circleAnnotation");const e=this.data,{width:t,height:n}=d(e.rect),r=this.svgFactory.create(t,n,!0),i=e.borderStyle.width,o=this.#An=this.svgFactory.createElement("svg:ellipse");return o.setAttribute("cx",t/2),o.setAttribute("cy",n/2),o.setAttribute("rx",t/2-i/2),o.setAttribute("ry",n/2-i/2),o.setAttribute("stroke-width",i||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","transparent"),r.append(o),this.container.append(r),!e.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#An}addHighlightArea(){this.container.classList.add("highlightArea")}}class O extends h{#En=null;constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.classList.add(this.containerClassName);const e=this.data,{width:t,height:n}=d(e.rect),r=this.svgFactory.create(t,n,!0);let i=[];for(const a of e.vertices){const t=a.x-e.rect[0],n=e.rect[3]-a.y;i.push(t+","+n)}i=i.join(" ");const o=this.#En=this.svgFactory.createElement(this.svgElementName);return o.setAttribute("points",i),o.setAttribute("stroke-width",e.borderStyle.width||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","transparent"),r.append(o),this.container.append(r),!e.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#En}addHighlightArea(){this.container.classList.add("highlightArea")}}class N extends O{constructor(e){super(e),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class I extends h{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){return this.container.classList.add("caretAnnotation"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container}}class R extends h{#Sn=[];constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline",this.annotationEditorType=r.AnnotationEditorType.INK}render(){this.container.classList.add(this.containerClassName);const e=this.data,{width:t,height:n}=d(e.rect),r=this.svgFactory.create(t,n,!0);for(const i of e.inkLists){let t=[];for(const r of i){const n=r.x-e.rect[0],i=e.rect[3]-r.y;t.push(`${n},${i}`)}t=t.join(" ");const n=this.svgFactory.createElement(this.svgElementName);this.#Sn.push(n),n.setAttribute("points",t),n.setAttribute("stroke-width",e.borderStyle.width||1),n.setAttribute("stroke","transparent"),n.setAttribute("fill","transparent"),!e.popupRef&&this.hasPopupData&&this._createPopup(),r.append(n)}return this.container.append(r),this.container}getElementsToTriggerPopup(){return this.#Sn}addHighlightArea(){this.container.classList.add("highlightArea")}}t.InkAnnotationElement=R;class P extends h{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("highlightAnnotation"),this.container}}
75class j extends h{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("underlineAnnotation"),this.container}}class M extends h{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("squigglyAnnotation"),this.container}}class D extends h{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("strikeoutAnnotation"),this.container}}class L extends h{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){return this.container.classList.add("stampAnnotation"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container}}t.StampAnnotationElement=L;class F extends h{#_n=null;constructor(e){super(e,{isRenderable:!0});const{filename:t,content:n}=this.data.file;this.filename=(0,i.getFilenameFromUrl)(t,!0),this.content=n,this.linkService.eventBus?.dispatch("fileattachmentannotation",{source:this,filename:t,content:n})}render(){this.container.classList.add("fileAttachmentAnnotation");const{container:e,data:t}=this;let n;t.hasAppearance||0===t.fillAlpha?n=document.createElement("div"):(n=document.createElement("img"),n.src=`${this.imageResourcesPath}annotation-${/paperclip/i.test(t.name)?"paperclip":"pushpin"}.svg`,t.fillAlpha&&t.fillAlpha<1&&(n.style=`filter: opacity(${Math.round(100*t.fillAlpha)}%);`)),n.addEventListener("dblclick",this.#kn.bind(this)),this.#_n=n;const{isMac:i}=r.FeatureTest.platform;return e.addEventListener("keydown",(e=>{"Enter"===e.key&&(i?e.metaKey:e.ctrlKey)&&this.#kn()})),!t.popupRef&&this.hasPopupData?this._createPopup():n.classList.add("popupTriggerArea"),e.append(n),e}getElementsToTriggerPopup(){return this.#_n}addHighlightArea(){this.container.classList.add("highlightArea")}#kn(){this.downloadManager?.openOrDownloadData(this.container,this.content,this.filename)}}t.AnnotationLayer=class{#At=null;#Tn=null;#Cn=(()=>new Map)();constructor(e){let{div:t,accessibilityManager:n,annotationCanvasMap:r,l10n:i,page:o,viewport:a}=e;this.div=t,this.#At=n,this.#Tn=r,this.l10n=i,this.page=o,this.viewport=a,this.zIndex=0,this.l10n||=s.NullL10n}#On(e,t){const n=e.firstChild||e;n.id=`${r.AnnotationPrefix}${t}`,this.div.append(e),this.#At?.moveElementInDOM(this.div,e,n,!1)}async render(e){const{annotations:t}=e,n=this.div;(0,i.setLayerDimensions)(n,this.viewport);const a=new Map,s={data:null,layer:n,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderForms:!1!==e.renderForms,svgFactory:new i.DOMSVGFactory,annotationStorage:e.annotationStorage||new o.AnnotationStorage,enableScripting:!0===e.enableScripting,hasJSActions:e.hasJSActions,fieldObjects:e.fieldObjects,parent:this,elements:null};for(const i of t){if(i.noHTML)continue;const e=i.annotationType===r.AnnotationType.POPUP;if(e){const e=a.get(i.id);if(!e)continue;s.elements=e}else{const{width:e,height:t}=d(i.rect);if(e<=0||t<=0)continue}s.data=i;const t=p.create(s);if(!t.isRenderable)continue;if(!e&&i.popupRef){const e=a.get(i.popupRef);e?e.push(t):a.set(i.popupRef,[t])}t.annotationEditorType>0&&this.#Cn.set(t.data.id,t);const n=t.render();i.hidden&&(n.style.visibility="hidden"),this.#On(n,i.id)}this.#Nn(),await this.l10n.translate(n)}update(e){let{viewport:t}=e;const n=this.div;this.viewport=t,(0,i.setLayerDimensions)(n,{rotation:t.rotation}),this.#Nn(),n.hidden=!1}#Nn(){if(!this.#Tn)return;const e=this.div;for(const[t,n]of this.#Tn){const r=e.querySelector(`[data-annotation-id="${t}"]`);if(!r)continue;const{firstChild:i}=r;i?"CANVAS"===i.nodeName?i.replaceWith(n):i.before(n):r.append(n)}this.#Tn.clear()}getEditableAnnotations(){return Array.from(this.#Cn.values())}getEditableAnnotation(e){return this.#Cn.get(e)}}},(e,t)=>{function n(e){return Math.floor(255*Math.max(0,Math.min(1,e))).toString(16).padStart(2,"0")}function r(e){return Math.max(0,Math.min(255,255*e))}
75Object.defineProperty(t,"__esModule",{value:!0}),t.ColorConverters=void 0,t.ColorConverters=class{static CMYK_G(e){let[t,n,r,i]=e;return["G",1-Math.min(1,.3*t+.59*r+.11*n+i)]}static G_CMYK(e){let[t]=e;return["CMYK",0,0,0,1-t]}static G_RGB(e){let[t]=e;return["RGB",t,t,t]}static G_rgb(e){let[t]=e;return t=r(t),[t,t,t]}static G_HTML(e){let[t]=e;const r=n(t);return`#${r}${r}${r}`}static RGB_G(e){let[t,n,r]=e;return["G",.3*t+.59*n+.11*r]}static RGB_rgb(e){return e.map(r)}static RGB_HTML(e){return`#${e.map(n).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB(e){let[t,n,r,i]=e;return["RGB",1-Math.min(1,t+i),1-Math.min(1,r+i),1-Math.min(1,n+i)]}static CMYK_rgb(e){let[t,n,i,o]=e;return[r(1-Math.min(1,t+o)),r(1-Math.min(1,i+o)),r(1-Math.min(1,n+o))]}static CMYK_HTML(e){const t=this.CMYK_RGB(e).slice(1);return this.RGB_HTML(t)}static RGB_CMYK(e){let[t,n,r]=e;const i=1-t,o=1-n,a=1-r;return["CMYK",i,o,a,Math.min(i,o,a)]}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NullL10n=void 0,t.getL10nFallback=r;const n={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}} \xd7 {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} \xd7 {{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\u2026",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"};function r(e,t){switch(e){case"find_match_count":e=`find_match_count[${1===t.total?"one":"other"}]`;break;case"find_match_count_limit":e=`find_match_count_limit[${1===t.limit?"one":"other"}]`}return n[e]||""}n.print_progress_percent="{{progress}}%";const i={async getLanguage(){return"en-us"},async getDirection(){return"ltr"},async get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(e,t){return t?e.replaceAll(/\{\{\s*(\w+)\s*\}\}/g,((e,n)=>n in t?t[n]:"{{"+n+"}}")):e}(arguments.length>2&&void 0!==arguments[2]?arguments[2]:r(e,t),t)},async translate(e){}};t.NullL10n=i},(e,t,n)=>
75{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaLayer=void 0;var r=n(25);t.XfaLayer=class{static setupStorage(e,t,n,r,i){const o=r.getValue(t,{value:null});switch(n.name){case"textarea":if(null!==o.value&&(e.textContent=o.value),"print"===i)break;e.addEventListener("input",(e=>{r.setValue(t,{value:e.target.value})}));break;case"input":if("radio"===n.attributes.type||"checkbox"===n.attributes.type){if(o.value===n.attributes.xfaOn?e.setAttribute("checked",!0):o.value===n.attributes.xfaOff&&e.removeAttribute("checked"),"print"===i)break;e.addEventListener("change",(e=>{r.setValue(t,{value:e.target.checked?e.target.getAttribute("xfaOn"):e.target.getAttribute("xfaOff")})}))}else{if(null!==o.value&&e.setAttribute("value",o.value),"print"===i)break;e.addEventListener("input",(e=>{r.setValue(t,{value:e.target.value})}))}break;case"select":if(null!==o.value){e.setAttribute("value",o.value);for(const e of n.children)e.attributes.value===o.value?e.attributes.selected=!0:e.attributes.hasOwnProperty("selected")&&delete e.attributes.selected}e.addEventListener("input",(e=>{const n=e.target.options,i=-1===n.selectedIndex?"":n[n.selectedIndex].value;r.setValue(t,{value:i})}))}}static setAttributes(e){let{html:t,element:n,storage:r=null,intent:i,linkService:o}=e;const{attributes:a}=n,s=t instanceof HTMLAnchorElement;"radio"===a.type&&(a.name=`${a.name}-${i}`);for(const[l,c]of Object.entries(a))if(null!==c&&void 0!==c)switch(l){case"class":c.length&&t.setAttribute(l,c.join(" "));break;case"dataId":break;case"id":t.setAttribute("data-element-id",c);break;case"style":Object.assign(t.style,c);break;case"textContent":t.textContent=c;break;default:(!s||"href"!==l&&"newWindow"!==l)&&t.setAttribute(l,c)}s&&o.addLinkAttributes(t,a.href,a.newWindow),r&&a.dataId&&this.setupStorage(t,a.dataId,n,r)}static render(e){const t=e.annotationStorage,n=e.linkService,i=e.xfaHtml,o=e.intent||"display",a=document.createElement(i.name);i.attributes&&this.setAttributes({html:a,element:i,intent:o,linkService:n});const s=[[i,-1,a]],l=e.div;if(l.append(a),e.viewport){const t=`matrix(${e.viewport.transform.join(",")})`;l.style.transform=t}"richText"!==o&&l.setAttribute("class","xfaLayer xfaFont");const c=[];for(;s.length>0;){const[e,i,a]=s.at(-1);if(i+1===e.children.length){s.pop();continue}const l=e.children[++s.at(-1)[1]];if(null===l)continue;const{name:u}=l;if("#text"===u){const e=document.createTextNode(l.value);c.push(e),a.append(e);continue}const d=l?.attributes?.xmlns?document.createElementNS(l.attributes.xmlns,u):document.createElement(u);if(a.append(d),l.attributes&&this.setAttributes({html:d,element:l,storage:t,intent:o,linkService:n}),l.children&&l.children.length>0)s.push([l,-1,d]);else if(l.value){const e=document.createTextNode(l.value);r.XfaText.shouldBuildText(u)&&c.push(e),d.append(e)}}for(const r of l.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))r.setAttribute("readOnly",!0);return{textDivs:c}}static update(e){const t=`matrix(${e.viewport.transform.join(",")})`;e.div.style.transform=t,e.div.hidden=!1}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InkEditor=void 0;var r=n(1),i=n(4),o=n(29),a=n(6),s=n(5);class l extends i.AnnotationEditor{#In=0;#Rn=0;#Pn=this.canvasPointermove.bind(this);#jn=this.canvasPointerleave.bind(this);#Mn=this.canvasPointerup.bind(this);#Dn=this.canvasPointerdown.bind(this);#Ln=(()=>new Path2D)();#Fn=!1;#Bn=!1;#Un=!1;#zn=null;#Hn=0;#$n=0;#Vn=null;static _defaultColor=null;static _defaultOpacity=1;static _defaultThickness=1;static _type="ink";constructor(e){super({...e,name:"inkEditor"}),this.color=e.color||null,this.thickness=e.thickness||null,this.opacity=e.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(e){i.AnnotationEditor.initialize(e,{strings:["editor_ink_canvas_aria_label","editor_ink2_aria_label"]})}static updateDefaultParams(e,t){switch(e){case r.AnnotationEditorParamsType.INK_THICKNESS:l._defaultThickness=t;break;case r.AnnotationEditorParamsType.INK_COLOR:l._defaultColor=t;break;case r.AnnotationEditorParamsType.INK_OPACITY:l._defaultOpacity=t/100}}updateParams(e,t){switch(e){case r.AnnotationEditorParamsType.INK_THICKNESS:this.#Gn(t);break;case r.AnnotationEditorParamsType.INK_COLOR:this.#Wt(t);break;case r.AnnotationEditorParamsType.INK_OPACITY:this.#Wn(t)}}static get defaultPropertiesToUpdate(){return[[r.AnnotationEditorParamsType.INK_THICKNESS,l._defaultThickness],[r.AnnotationEditorParamsType.INK_COLOR,l._defaultColor||i.AnnotationEditor._defaultLineColor],[r.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*l._defaultOpacity)]]}get propertiesToUpdate(){return[[r.AnnotationEditorParamsType.INK_THICKNESS,this.thickness||l._defaultThickness],[r.AnnotationEditorParamsType.INK_COLOR,this.color||l._defaultColor||i.AnnotationEditor._defaultLineColor],[r.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*(this.opacity??l._defaultOpacity))]]}#Gn(e){const t=this.thickness;this.addCommands({cmd:()=>{this.thickness=e,this.#qn()},undo:()=>{this.thickness=t,this.#qn()},mustExec:!0,type:r.AnnotationEditorParamsType.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})}#Wt(e){const t=this.color;this.addCommands({cmd:()=>{this.color=e,this.#Yn()},undo:()=>{this.color=t,this.#Yn()},mustExec:!0,type:r.AnnotationEditorParamsType.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})}#Wn(e){e/=100;const t=this.opacity;this.addCommands({cmd:()=>{this.opacity=e,this.#Yn()},undo:()=>{this.opacity=t,this.#Yn()},mustExec:!0,type:r.AnnotationEditorParamsType.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})}rebuild(){this.parent&&(super.rebuild(),null!==this.div&&(this.canvas||(this.#Kn(),this.#Xn()),this.isAttachedToDOM||(this.parent.add(this),this.#Zn()),this.#qn()))}remove(){null!==this.canvas&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,this.#zn.disconnect(),this.#zn=null,
75super.remove())}setParent(e){!this.parent&&e?this._uiManager.removeShouldRescale(this):this.parent&&null===e&&this._uiManager.addShouldRescale(this),super.setParent(e)}onScaleChanging(){const[e,t]=this.parentDimensions,n=this.width*e,r=this.height*t;this.setDimensions(n,r)}enableEditMode(){this.#Fn||null===this.canvas||(super.enableEditMode(),this._isDraggable=!1,this.canvas.addEventListener("pointerdown",this.#Dn))}disableEditMode(){this.isInEditMode()&&null!==this.canvas&&(super.disableEditMode(),this._isDraggable=!this.isEmpty(),this.div.classList.remove("editing"),this.canvas.removeEventListener("pointerdown",this.#Dn))}onceAdded(){this._isDraggable=!this.isEmpty()}isEmpty(){return 0===this.paths.length||1===this.paths.length&&0===this.paths[0].length}#Qn(){const{parentRotation:e,parentDimensions:[t,n]}=this;switch(e){case 90:return[0,n,n,t];case 180:return[t,n,t,n];case 270:return[t,0,n,t];default:return[0,0,t,n]}}#Jn(){const{ctx:e,color:t,opacity:n,thickness:r,parentScale:i,scaleFactor:o}=this;e.lineWidth=r*i/o,e.lineCap="round",e.lineJoin="round",e.miterLimit=10,e.strokeStyle=`${t}${(0,s.opacityToHex)(n)}`}#er(e,t){this.canvas.addEventListener("contextmenu",a.noContextMenu),this.canvas.addEventListener("pointerleave",this.#jn),this.canvas.addEventListener("pointermove",this.#Pn),this.canvas.addEventListener("pointerup",this.#Mn),this.canvas.removeEventListener("pointerdown",this.#Dn),this.isEditing=!0,this.#Un||(this.#Un=!0,this.#Zn(),this.thickness||=l._defaultThickness,this.color||=l._defaultColor||i.AnnotationEditor._defaultLineColor,this.opacity??=l._defaultOpacity),this.currentPath.push([e,t]),this.#Bn=!1,this.#Jn(),this.#Vn=()=>{this.#tr(),this.#Vn&&window.requestAnimationFrame(this.#Vn)},window.requestAnimationFrame(this.#Vn)}#nr(e,t){const[n,r]=this.currentPath.at(-1);if(this.currentPath.length>1&&e===n&&t===r)return;const i=this.currentPath;let o=this.#Ln;if(i.push([e,t]),this.#Bn=!0,i.length<=2)return o.moveTo(...i[0]),void o.lineTo(e,t);3===i.length&&(this.#Ln=o=new Path2D,o.moveTo(...i[0])),this.#rr(o,...i.at(-3),...i.at(-2),e,t)}#ir(){if(0===this.currentPath.length)return;const e=this.currentPath.at(-1);this.#Ln.lineTo(...e)}#or(e,t){let n;if(this.#Vn=null,e=Math.min(Math.max(e,0),this.canvas.width),t=Math.min(Math.max(t,0),this.canvas.height),this.#nr(e,t),this.#ir(),1!==this.currentPath.length)n=this.#ar();else{const r=[e,t];n=[[r,r.slice(),r.slice(),r]]}const r=this.#Ln,i=this.currentPath;this.currentPath=[],this.#Ln=new Path2D,this.addCommands({cmd:()=>{this.allRawPaths.push(i),this.paths.push(n),this.bezierPath2D.push(r),this.rebuild()},undo:()=>{this.allRawPaths.pop(),this.paths.pop(),this.bezierPath2D.pop(),0===this.paths.length?this.remove():(this.canvas||(this.#Kn(),this.#Xn()),this.#qn())},mustExec:!0})}#tr(){if(!this.#Bn)return;this.#Bn=!1;Math.ceil(this.thickness*this.parentScale);const e=this.currentPath.slice(-3),t=e.map((e=>e[0])),n=e.map((e=>e[1])),{ctx:r}=(Math.min(...t),Math.max(...t),Math.min(...n),Math.max(...n),this);r.save(),r.clearRect(0,0,this.canvas.width,this.canvas.height);for(const i of this.bezierPath2D)r.stroke(i);r.stroke(this.#Ln),r.restore()}#rr(e,t,n,r,i,o,a){const s=(t+r)/2,l=(n+i)/2,c=(r+o)/2,u=(i+a)/2;e.bezierCurveTo(s+2*(r-s)/3,l+2*(i-l)/3,c+2*(r-c)/3,u+2*(i-u)/3,c,u)}#ar(){const e=this.currentPath;if(e.length<=2)return[[e[0],e[0],e.at(-1),e.at(-1)]];const t=[];let n,[r,i]=e[0];for(n=1;n<e.length-2;n++){const[o,a]=e[n],[s,l]=e[n+1],c=(o+s)/2,u=(a+l)/2,d=[r+2*(o-r)/3,i+2*(a-i)/3],p=[c+2*(o-c)/3,u+2*(a-u)/3];t.push([[r,i],d,p,[c,u]]),[r,i]=[c,u]}const[o,a]=e[n],[s,l]=e[n+1],c=[r+2*(o-r)/3,i+2*(a-i)/3],u=[s+2*(o-s)/3,l+2*(a-l)/3];return t.push([[r,i],c,u,[s,l]]),t}#Yn(){if(this.isEmpty())return void this.#sr();this.#Jn();const{canvas:e,ctx:t}=this;t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,e.width,e.height),this.#sr();for(const n of this.bezierPath2D)t.stroke(n)}commit(){this.#Fn||(super.commit(),this.isEditing=!1,this.disableEditMode(),this.setInForeground(),this.#Fn=!0,this.div.classList.add("disabled"),this.#qn(!0),this.makeResizable(),this.parent.addInkEditorIfNeeded(!0),this.moveInDOM(),this.div.focus({preventScroll:!0}))}focusin(e){this._focusEventsAllowed&&(super.focusin(e),this.enableEditMode())}canvasPointerdown(e){0===e.button&&this.isInEditMode()&&!this.#Fn&&(this.setInForeground(),e.preventDefault(),"mouse"!==e.type&&this.div.focus(),this.#er(e.offsetX,e.offsetY))}canvasPointermove(e){e.preventDefault(),this.#nr(e.offsetX,e.offsetY)}canvasPointerup(e){e.preventDefault(),this.#lr(e)}canvasPointerleave(e){this.#lr(e)}#lr(e){this.canvas.removeEventListener("pointerleave",this.#jn),this.canvas.removeEventListener("pointermove",this.#Pn),this.canvas.removeEventListener("pointerup",this.#Mn),this.canvas.addEventListener("pointerdown",this.#Dn),setTimeout((()=>{this.canvas.removeEventListener("contextmenu",a.noContextMenu)}),10),this.#or(e.offsetX,e.offsetY),this.addToAnnotationStorage(),this.setInBackgroun
75d()}#Kn(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",i.AnnotationEditor._l10nPromise.get("editor_ink_canvas_aria_label").then((e=>this.canvas?.setAttribute("aria-label",e))),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")}#Xn(){this.#zn=new ResizeObserver((e=>{const t=e[0].contentRect;t.width&&t.height&&this.setDimensions(t.width,t.height)})),this.#zn.observe(this.div)}get isResizable(){return!this.isEmpty()&&this.#Fn}render(){if(this.div)return this.div;let e,t;this.width&&(e=this.x,t=this.y),super.render(),i.AnnotationEditor._l10nPromise.get("editor_ink2_aria_label").then((e=>this.div?.setAttribute("aria-label",e)));const[n,r,o,a]=this.#Qn();if(this.setAt(n,r,0,0),this.setDims(o,a),this.#Kn(),this.width){const[n,r]=this.parentDimensions;this.setAspectRatio(this.width*n,this.height*r),this.setAt(e*n,t*r,this.width*n,this.height*r),this.#Un=!0,this.#Zn(),this.setDims(this.width*n,this.height*r),this.#Yn(),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return this.#Xn(),this.div}#Zn(){if(!this.#Un)return;const[e,t]=this.parentDimensions;this.canvas.width=Math.ceil(this.width*e),this.canvas.height=Math.ceil(this.height*t),this.#sr()}setDimensions(e,t){const n=Math.round(e),r=Math.round(t);if(this.#Hn===n&&this.#$n===r)return;this.#Hn=n,this.#$n=r,this.canvas.style.visibility="hidden";const[i,o]=this.parentDimensions;this.width=e/i,this.height=t/o,this.fixAndSetPosition(),this.#Fn&&this.#cr(e,t),this.#Zn(),this.#Yn(),this.canvas.style.visibility="visible",this.fixDims()}#cr(e,t){const n=this.#ur(),r=(e-n)/this.#Rn,i=(t-n)/this.#In;this.scaleFactor=Math.min(r,i)}#sr(){const e=this.#ur()/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+e,this.translationY*this.scaleFactor+e)}static#dr(e){const t=new Path2D;for(let n=0,r=e.length;n<r;n++){const[r,i,o,a]=e[n];0===n&&t.moveTo(...r),t.bezierCurveTo(i[0],i[1],o[0],o[1],a[0],a[1])}return t}static#pr(e,t,n){const[r,i,o,a]=t;switch(n){case 0:for(let t=0,n=e.length;t<n;t+=2)e[t]+=r,e[t+1]=a-e[t+1];break;case 90:for(let t=0,n=e.length;t<n;t+=2){const n=e[t];e[t]=e[t+1]+r,e[t+1]=n+i}break;case 180:for(let t=0,n=e.length;t<n;t+=2)e[t]=o-e[t],e[t+1]+=i;break;case 270:for(let t=0,n=e.length;t<n;t+=2){const n=e[t];e[t]=o-e[t+1],e[t+1]=a-n}break;default:throw new Error("Invalid rotation")}return e}static#hr(e,t,n){const[r,i,o,a]=t;switch(n){case 0:for(let t=0,n=e.length;t<n;t+=2)e[t]-=r,e[t+1]=a-e[t+1];break;case 90:for(let t=0,n=e.length;t<n;t+=2){const n=e[t];e[t]=e[t+1]-i,e[t+1]=n-r}break;case 180:for(let t=0,n=e.length;t<n;t+=2)e[t]=o-e[t],e[t+1]-=i;break;case 270:for(let t=0,n=e.length;t<n;t+=2){const n=e[t];e[t]=a-e[t+1],e[t+1]=o-n}break;default:throw new Error("Invalid rotation")}return e}#fr(e,t,n,r){const i=[],o=this.thickness/2,a=e*t+o,s=e*n+o;for(const c of this.paths){const t=[],n=[];for(let r=0,i=c.length;r<i;r++){const[o,l,u,d]=c[r],p=e*o[0]+a,h=e*o[1]+s,f=e*l[0]+a,m=e*l[1]+s,g=e*u[0]+a,b=e*u[1]+s,v=e*d[0]+a,y=e*d[1]+s;0===r&&(t.push(p,h),n.push(p,h)),t.push(f,m,g,b,v,y),n.push(f,m),r===i-1&&n.push(v,y)}i.push({bezier:l.#pr(t,r,this.rotation),points:l.#pr(n,r,this.rotation)})}return i}#mr(){let e=1/0,t=-1/0,n=1/0,i=-1/0;for(const o of this.paths)for(const[a,s,l,c]of o){const o=r.Util.bezierBoundingBox(...a,...s,...l,...c);e=Math.min(e,o[0]),n=Math.min(n,o[1]),t=Math.max(t,o[2]),i=Math.max(i,o[3])}return[e,n,t,i]}#ur(){return this.#Fn?Math.ceil(this.thickness*this.parentScale):0}#qn(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isEmpty())return;if(!this.#Fn)return void this.#Yn();const t=this.#mr(),n=this.#ur();this.#Rn=Math.max(i.AnnotationEditor.MIN_SIZE,t[2]-t[0]),this.#In=Math.max(i.AnnotationEditor.MIN_SIZE,t[3]-t[1]);const r=Math.ceil(n+this.#Rn*this.scaleFactor),o=Math.ceil(n+this.#In*this.scaleFactor),[a,s]=this.parentDimensions;this.width=r/a,this.height=o/s,this.setAspectRatio(r,o);const l=this.translationX,c=this.translationY;this.translationX=-t[0],this.translationY=-t[1],this.#Zn(),this.#Yn(),this.#Hn=r,this.#$n=o,this.setDims(r,o);const u=e?n/this.scaleFactor/2:0;this.translate(l-this.translationX-u,c-this.translationY-u)}static deserialize(e,t,n){if(e instanceof o.InkAnnotationElement)return null;const a=super.deserialize(e,t,n);a.thickness=e.thickness,a.color=r.Util.makeHexColor(...e.color),a.opacity=e.opacity;const[s,c]=a.pageDimensions,u=a.width*s,d=a.height*c,p=a.parentScale,h=e.thickness/2;a.#Fn=!0,a.#Hn=Math.round(u),a.#$n=Math.round(d);const{paths:f,rect:m,rotation:g}=e;for(let{bezier:r}of f){r=l.#hr(r,m,g);const e=[];a.paths.push(e);let t=p*(r[0]-h),n=p*(r[1]-h);for(let o=2,a=r.length;o<a;o+=6){const i=p*(r[o]-h),a=p*(r[o+1]-h),s=p*(r[o+2]-h),l=p*(r[o+3]-h),c=p*(r[o+4]-h),u=p*(r[o+5]-h);e.push([[t,n],[i,a],[s,l],[c,u]]),t=c,n=u}const i=this.#dr(e);a.bezierPath2D.push(i)}const b=a.#mr();return a.#Rn=Math.max(i.AnnotationEditor.MIN_SIZE,b[2]-b[0]),a.#In=Math.max(i.AnnotationEditor.MIN_SIZE,b[3]-b[1]),a.#cr(u,d),a}serialize(){if(this.isEmpty())return null;const e=this.getRect(0,0),t=i.AnnotationEditor._colorManager.convert(this.ctx.strokeStyle);return{annotationType:r.AnnotationEditorType.INK,color:t,thickness:this.thickness,opacity:this.opacity,paths:this.#fr(this.scaleFactor/this.parentScale,this.translationX,this.translationY,e),pageIndex:this.pageIndex,rect:e,rotation:this.rotation,structTreeParentId:this._structTreeParentId}}}t.InkEditor=l},(e,t,n)=>
75{Object.defineProperty(t,"__esModule",{value:!0}),t.StampEditor=void 0;var r=n(1),i=n(4),o=n(6),a=n(29);class s extends i.AnnotationEditor{#gr=null;#br=null;#vr=null;#yr=null;#xr=null;#wr=null;#zn=null;#Ar=null;#Er=!1;#Sr=!1;static _type="stamp";constructor(e){super({...e,name:"stampEditor"}),this.#yr=e.bitmapUrl,this.#xr=e.bitmapFile}static initialize(e){i.AnnotationEditor.initialize(e)}static get supportedTypes(){return(0,r.shadow)(this,"supportedTypes",["apng","avif","bmp","gif","jpeg","png","svg+xml","webp","x-icon"].map((e=>`image/${e}`)))}static get supportedTypesStr(){return(0,r.shadow)(this,"supportedTypesStr",this.supportedTypes.join(","))}static isHandlingMimeForPasting(e){return this.supportedTypes.includes(e)}static paste(e,t){t.pasteEditor(r.AnnotationEditorType.STAMP,{bitmapFile:e.getAsFile()})}#_r(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e?(this.#gr=e.bitmap,t||(this.#br=e.id,this.#Er=e.isSvg),this.#Kn()):this.remove()}#kr(){this.#vr=null,this._uiManager.enableWaiting(!1),this.#wr&&this.div.focus()}#Tr(){if(this.#br)return this._uiManager.enableWaiting(!0),void this._uiManager.imageManager.getFromId(this.#br).then((e=>this.#_r(e,!0))).finally((()=>this.#kr()));if(this.#yr){const e=this.#yr;return this.#yr=null,this._uiManager.enableWaiting(!0),void(this.#vr=this._uiManager.imageManager.getFromUrl(e).then((e=>this.#_r(e))).finally((()=>this.#kr())))}if(this.#xr){const e=this.#xr;return this.#xr=null,this._uiManager.enableWaiting(!0),void(this.#vr=this._uiManager.imageManager.getFromFile(e).then((e=>this.#_r(e))).finally((()=>this.#kr())))}const e=document.createElement("input");e.type="file",e.accept=s.supportedTypesStr,this.#vr=new Promise((t=>{e.addEventListener("change",(async()=>{if(e.files&&0!==e.files.length){this._uiManager.enableWaiting(!0);const t=await this._uiManager.imageManager.getFromFile(e.files[0]);this.#_r(t)}else this.remove();t()})),e.addEventListener("cancel",(()=>{this.remove(),t()}))})).finally((()=>this.#kr())),e.click()}remove(){this.#br&&(this.#gr=null,this._uiManager.imageManager.deleteId(this.#br),this.#wr?.remove(),this.#wr=null,this.#zn?.disconnect(),this.#zn=null),super.remove()}rebuild(){this.parent?(super.rebuild(),null!==this.div&&(this.#br&&this.#Tr(),this.isAttachedToDOM||this.parent.add(this))):this.#br&&this.#Tr()}onceAdded(){this._isDraggable=!0,this.div.focus()}isEmpty(){return!(this.#vr||this.#gr||this.#yr||this.#xr)}get isResizable(){return!0}render(){if(this.div)return this.div;let e,t;if(this.width&&(e=this.x,t=this.y),super.render(),this.div.hidden=!0,this.#gr?this.#Kn():this.#Tr(),this.width){const[n,r]=this.parentDimensions;this.setAt(e*n,t*r,this.width*n,this.height*r)}return this.div}#Kn(){const{div:e}=this;let{width:t,height:n}=this.#gr;const[r,i]=this.pageDimensions,o=.75;if(this.width)t=this.width*r,n=this.height*i;else if(t>o*r||n>o*i){const e=Math.min(o*r/t,o*i/n);t*=e,n*=e}const[a,s]=this.parentDimensions;this.setDims(t*a/r,n*s/i),this._uiManager.enableWaiting(!1);const l=this.#wr=document.createElement("canvas");e.append(l),e.hidden=!1,this.#Cr(t,n),this.#Xn(),this.#Sr||(this.parent.addUndoableEditor(this),this.#Sr=!0),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"inserted_image"}}}),this.addAltTextButton()}#Or(e,t){const[n,r]=this.parentDimensions;this.width=e/n,this.height=t/r,this.setDims(e,t),this._initialOptions?.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,null!==this.#Ar&&clearTimeout(this.#Ar),this.#Ar=setTimeout((()=>{this.#Ar=null,this.#Cr(e,t)}),200)}#Nr(e,t){const{width:n,height:r}=this.#gr;let i=n,o=r,a=this.#gr;for(;i>2*e||o>2*t;){const n=i,r=o;i>2*e&&(i=i>=16384?Math.floor(i/2)-1:Math.ceil(i/2)),o>2*t&&(o=o>=16384?Math.floor(o/2)-1:Math.ceil(o/2));const s=new OffscreenCanvas(i,o);s.getContext("2d").drawImage(a,0,0,n,r,0,0,i,o),a=s.transferToImageBitmap()}return a}#Cr(e,t){e=Math.ceil(e),t=Math.ceil(t);const n=this.#wr;if(!n||n.width===e&&n.height===t)return;n.width=e,n.height=t;const r=this.#Er?this.#gr:this.#Nr(e,t),i=n.getContext("2d");i.filter=this._uiManager.hcmFilter,i.drawImage(r,0,0,r.width,r.height,0,0,e,t)}#Ir(e){if(e){if(this.#Er){const e=this._uiManager.imageManager.getSvgUrl(this.#br);if(e)return e}const e=document.createElement("canvas");return({width:e.width,height:e.height}=this.#gr),e.getContext("2d").drawImage(this.#gr,0,0),e.toDataURL()}if(this.#Er){const[e,t]=this.pageDimensions,n=Math.round(this.width*e*o.PixelsPerInch.PDF_TO_CSS_UNITS),r=Math.round(this.height*t*o.PixelsPerInch.PDF_TO_CSS_UNITS),i=new OffscreenCanvas(n,r);return i.getContext("2d").drawImage(this.#gr,0,0,this.#gr.width,this.#gr.height,0,0,n,r),i.transferToImageBitmap()}return structuredClone(this.#gr)}#Xn(){this.#zn=new ResizeObserver((e=>{const t=e[0].contentRect;t.width&&t.height&&this.#Or(t.width,t.height)})),this.#zn.observe(this.div)}static deserialize(e,t,n){if(e instanceof a.StampAnnotationElement)return null;const r=super.deserialize(e,t,n),{rect:i,bitmapUrl:o,bitmapId:s,isSvg:l,accessibilityData:c}=e;s&&n.imageManager.isValidId(s)?r.#br=s:r.#yr=o,r.#Er=l;const[u,d]=r.pageDimensions;return r.width=(i[2]-i[0])/u,r.height=(i[3]-i[1])/d,c&&(r.altTextData=c),r}serialize(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.isEmpty())return null;const n={annotationType:r.AnnotationEditorType.STAMP,bitmapId:this.#br,pageIndex:this.pageIndex,rect:this.getRect(0,0),rotation:this.rotation,isSvg:this.#Er,structTreeParentId:this._structTreeParentId};if(e)return n.bitmapUrl=this.#Ir(!0),n.accessibilityData=this.altTextData,n;const{decorative:i,altText:o}=this.altTextData;if(!i&&o&&(n.accessibilityData={type:"Figure",alt:o}),null===t)return n;t.stamps||=new Map;const a=this.#Er?(n.rect[2]-n.rect[0])*(n.rect[3]-n.rect[1]):null;if(t.stamps.has(this.#br)){if(this.#Er){const e=t.stamps.get(this.#br);a>e.area&&(e.area=a,e.serialized.bitmap.close(),e.serialized.bitmap=this.#Ir(!1))}}else t.stamps.set(this.#br,{area:a,serialized:n}),n.bitmap=this.#Ir(!1);return n}}t.StampEditor=s}],__webpack_module_cache__={};function __w_pdfjs_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](n,n.exports,__w_pdfjs_require__),n.exports}var __nested_webpack_exports__={};return(()=>{var e=__nested_webpack_exports__;
vendor: 7,965 bytes, line 75
75Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AbortException",{enumerable:!0,get:function(){return t.AbortException}}),Object.defineProperty(e,"AnnotationEditorLayer",{enumerable:!0,get:function(){return o.AnnotationEditorLayer}}),Object.defineProperty(e,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return t.AnnotationEditorParamsType}}),Object.defineProperty(e,"AnnotationEditorType",{enumerable:!0,get:function(){return t.AnnotationEditorType}}),Object.defineProperty(e,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return a.AnnotationEditorUIManager}}),Object.defineProperty(e,"AnnotationLayer",{enumerable:!0,get:function(){return s.AnnotationLayer}}),Object.defineProperty(e,"AnnotationMode",{enumerable:!0,get:function(){return t.AnnotationMode}}),Object.defineProperty(e,"CMapCompressionType",{enumerable:!0,get:function(){return t.CMapCompressionType}}),Object.defineProperty(e,"DOMSVGFactory",{enumerable:!0,get:function(){return r.DOMSVGFactory}}),Object.defineProperty(e,"FeatureTest",{enumerable:!0,get:function(){return t.FeatureTest}}),Object.defineProperty(e,"GlobalWorkerOptions",{enumerable:!0,get:function(){return l.GlobalWorkerOptions}}),Object.defineProperty(e,"ImageKind",{enumerable:!0,get:function(){return t.ImageKind}}),Object.defineProperty(e,"InvalidPDFException",{enumerable:!0,get:function(){return t.InvalidPDFException}}),Object.defineProperty(e,"MissingPDFException",{enumerable:!0,get:function(){return t.MissingPDFException}}),Object.defineProperty(e,"OPS",{enumerable:!0,get:function(){return t.OPS}}),Object.defineProperty(e,"PDFDataRangeTransport",{enumerable:!0,get:function(){return n.PDFDataRangeTransport}}),Object.defineProperty(e,"PDFDateString",{enumerable:!0,get:function(){return r.PDFDateString}}),Object.defineProperty(e,"PDFWorker",{enumerable:!0,get:function(){return n.PDFWorker}}),Object.defineProperty(e,"PasswordResponses",{enumerable:!0,get:function(){return t.PasswordResponses}}),Object.defineProperty(e,"PermissionFlag",{enumerable:!0,get:function(){return t.PermissionFlag}}),Object.defineProperty(e,"PixelsPerInch",{enumerable:!0,get:function(){return r.PixelsPerInch}}),Object.defineProperty(e,"PromiseCapability",{enumerable:!0,get:function(){return t.PromiseCapability}}),Object.defineProperty(e,"RenderingCancelledException",{enumerable:!0,get:function(){return r.RenderingCancelledException}}),Object.defineProperty(e,"SVGGraphics",{enumerable:!0,get:function(){return n.SVGGraphics}}),Object.defineProperty(e,"UnexpectedResponseException",{enumerable:!0,get:function(){return t.UnexpectedResponseException}}),Object.defineProperty(e,"Util",{enumerable:!0,get:function(){return t.Util}}),Object.defineProperty(e,"VerbosityLevel",{enumerable:!0,get:function(){return t.VerbosityLevel}}),Object.defineProperty(e,"XfaLayer",{enumerable:!0,get:function(){return c.XfaLayer}}),Object.defineProperty(e,"build",{enumerable:!0,get:function(){return n.build}}),Object.defineProperty(e,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return t.createValidAbsoluteUrl}}),Object.defineProperty(e,"getDocument",{enumerable:!0,get:function(){return n.getDocument}}),Object.defineProperty(e,"getFilenameFromUrl",{enumerable:!0,get:function(){return r.getFilenameFromUrl}}),Object.defineProperty(e,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return r.getPdfFilenameFromUrl}}),Object.defineProperty(e,"getXfaPageViewport",{enumerable:!0,get:function(){return r.getXfaPageViewport}}),Object.defineProperty(e,"isDataScheme",{enumerable:!0,get:function(){return r.isDataScheme}}),Object.defineProperty(e,"isPdfFile",{enumerable:!0,get:function(){return r.isPdfFile}}),Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return r.loadScript}}),Object.defineProperty(e,"noContextMenu",{enumerable:!0,get:function(){return r.noContextMenu}}),Object.defineProperty(e,"normalizeUnicode",{enumerable:!0,get:function(){return t.normalizeUnicode}}),Object.defineProperty(e,"renderTextLayer",{enumerable:!0,get:function(){return i.renderTextLayer}}),Object.defineProperty(e,"setLayerDimensions",{enumerable:!0,get:function(){return r.setLayerDimensions}}),Object.defineProperty(e,"shadow",{enumerable:!0,get:function(){return t.shadow}}),Object.defineProperty(e,"updateTextLayer",{enumerable:!0,get:function(){return i.updateTextLayer}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return n.version}});var t=__w_pdfjs_require__(1),n=__w_pdfjs_require__(2),r=__w_pdfjs_require__(6),i=__w_pdfjs_require__(26),o=__w_pdfjs_require__(27),a=__w_pdfjs_require__(5),s=__w_pdfjs_require__(29),l=__w_pdfjs_require__(14),c=__w_pdfjs_require__(32)})(),__nested_webpack_exports__})(),module.exports=root.pdfjsLib=factory()},80423:function(e,t,n){"use strict";function r(e){return getComputedStyle(e)}function i(e,t){for(var n in t){var r=t[n];"number"===typeof r&&(r+="px"),e.style[n]=r}return e}function o(e){var t=document.createElement("div");return t.className=e,t}n.r(t);var a="undefined"!==typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function s(e,t){if(!a)throw new Error("No element matching method supported");return a.call(e,t)}function l(e){e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)}function c(e,t){return Array.prototype.filter.call(e.children,(function(e){return s(e,t)}))}var u="ps",d="ps__rtl",p={thumb:function(e){return"ps__thumb-"+e},rail:function(e){return"ps__rail-"+e},consuming:"ps__child--consume"},h={focus:"ps--focus",clicking:"ps--clicking",active:function(e){return"ps--active-"+e},scrolling:function(e){return"ps--scrolling-"+e}},f={x:null,y:null};function m(e,t){var n=e.element.classList,r=h.scrolling(t);n.contains(r)?clearTimeout(f[t]):n.add(r)}function g(e,t){f[t]=setTimeout((function(){return e.isAlive&&e.element.classList.remove(h.scrolling(t))}),e.settings.scrollingThreshold)}var b=function(e){this.element=e,this.handlers={}},v={isEmpty:{configurable:!0}};b.prototype.bind=function(e,t){"undefined"===typeof this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(t),this.element.addEventListener(e,t,!1)},b.prototype.unbind=function(e,t){var n=this;this.handlers[e]=this.handlers[e].filter((function(r){return!(!t||r===t)||(n.element.removeEventListener(e,r,!1),!1)}))},b.prototype.unbindAll=function(){for(var e in this.handlers)this.unbind(e)},v.isEmpty.get=function(){var e=this;return Object.keys(this.handlers).every((function(t){return 0===e.handlers[t].length}))},Object.defineProperties(b.prototype,v);var y=function(){this.eventElements=[]};function x(e){if("function"===typeof window.CustomEvent)return new CustomEvent(e);var t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}function w(e,t,n,r,i){var o;if(void 0===r&&(r=!0),void 0===i&&(i=!1),"top"===t)o=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==t)throw new Error("A proper axis should be provided");o=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(e,t,n,r,i){var o=n[0],a=n[1],s=n[2],l=n[3],c=n[4],u=n[5];void 0===r&&(r=!0);void 0===i&&(i=!1);var d=e.element;e.reach[l]=null,d[s]<1&&(e.reach[l]="start");d[s]>e[o]-e[a]-1&&(e.reach[l]="end");t&&(d.dispatchEvent(x("ps-scroll-"+l)),t<0?d.dispatchEvent(x("ps-scroll-"+c)):t>0&&d.dispatchEvent(x("ps-scroll-"+u)),r&&function(e,t){m(e,t),g(e,t)}(e,l));e.reach[l]&&(t||i)&&d.dispatchEvent(x("ps-"+l+"-reach-"+e.reach[l]))}(e,n,o,r,i)}function A(e){return parseInt(e,10)||0}y.prototype.eventElement=function(e){var t=this.eventElements.filter((function(t){return t.element===e}))[0];return t||(t=new b(e),this.eventElements.push(t)),t},y.prototype.bind=function(e,t,n){this.eventElement(e).bind(t,n)},y.prototype.unbind=function(e,t,n){var r=this.eventElement(e);r.unbind(t,n),r.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(r),1)}
vendor: 14,077 bytes, line 75
75,y.prototype.unbindAll=function(){this.eventElements.forEach((function(e){return e.unbindAll()})),this.eventElements=[]},y.prototype.once=function(e,t,n){var r=this.eventElement(e),i=function(e){r.unbind(t,i),n(e)};r.bind(t,i)};var E={isWebKit:"undefined"!==typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!==typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!==typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!==typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function S(e){var t=e.element,n=Math.floor(t.scrollTop),r=t.getBoundingClientRect();e.containerWidth=Math.floor(r.width),e.containerHeight=Math.floor(r.height),e.contentWidth=t.scrollWidth,e.contentHeight=t.scrollHeight,t.contains(e.scrollbarXRail)||(c(t,p.rail("x")).forEach((function(e){return l(e)})),t.appendChild(e.scrollbarXRail)),t.contains(e.scrollbarYRail)||(c(t,p.rail("y")).forEach((function(e){return l(e)})),t.appendChild(e.scrollbarYRail)),!e.settings.suppressScrollX&&e.containerWidth+e.settings.scrollXMarginOffset<e.contentWidth?(e.scrollbarXActive=!0,e.railXWidth=e.containerWidth-e.railXMarginWidth,e.railXRatio=e.containerWidth/e.railXWidth,e.scrollbarXWidth=_(e,A(e.railXWidth*e.containerWidth/e.contentWidth)),e.scrollbarXLeft=A((e.negativeScrollAdjustment+t.scrollLeft)*(e.railXWidth-e.scrollbarXWidth)/(e.contentWidth-e.containerWidth))):e.scrollbarXActive=!1,!e.settings.suppressScrollY&&e.containerHeight+e.settings.scrollYMarginOffset<e.contentHeight?(e.scrollbarYActive=!0,e.railYHeight=e.containerHeight-e.railYMarginHeight,e.railYRatio=e.containerHeight/e.railYHeight,e.scrollbarYHeight=_(e,A(e.railYHeight*e.containerHeight/e.contentHeight)),e.scrollbarYTop=A(n*(e.railYHeight-e.scrollbarYHeight)/(e.contentHeight-e.containerHeight))):e.scrollbarYActive=!1,e.scrollbarXLeft>=e.railXWidth-e.scrollbarXWidth&&(e.scrollbarXLeft=e.railXWidth-e.scrollbarXWidth),e.scrollbarYTop>=e.railYHeight-e.scrollbarYHeight&&(e.scrollbarYTop=e.railYHeight-e.scrollbarYHeight),function(e,t){var n={width:t.railXWidth},r=Math.floor(e.scrollTop);t.isRtl?n.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth-t.contentWidth:n.left=e.scrollLeft;t.isScrollbarXUsingBottom?n.bottom=t.scrollbarXBottom-r:n.top=t.scrollbarXTop+r;i(t.scrollbarXRail,n);var o={top:r,height:t.railYHeight};t.isScrollbarYUsingRight?t.isRtl?o.right=t.contentWidth-(t.negativeScrollAdjustment+e.scrollLeft)-t.scrollbarYRight-t.scrollbarYOuterWidth-9:o.right=t.scrollbarYRight-e.scrollLeft:t.isRtl?o.left=t.negativeScrollAdjustment+e.scrollLeft+2*t.containerWidth-t.contentWidth-t.scrollbarYLeft-t.scrollbarYOuterWidth:o.left=t.scrollbarYLeft+e.scrollLeft;i(t.scrollbarYRail,o),i(t.scrollbarX,{left:t.scrollbarXLeft,width:t.scrollbarXWidth-t.railBorderXWidth}),i(t.scrollbarY,{top:t.scrollbarYTop,height:t.scrollbarYHeight-t.railBorderYWidth})}(t,e),e.scrollbarXActive?t.classList.add(h.active("x")):(t.classList.remove(h.active("x")),e.scrollbarXWidth=0,e.scrollbarXLeft=0,t.scrollLeft=!0===e.isRtl?e.contentWidth:0),e.scrollbarYActive?t.classList.add(h.active("y")):(t.classList.remove(h.active("y")),e.scrollbarYHeight=0,e.scrollbarYTop=0,t.scrollTop=0)}function _(e,t){return e.settings.minScrollbarLength&&(t=Math.max(t,e.settings.minScrollbarLength)),e.settings.maxScrollbarLength&&(t=Math.min(t,e.settings.maxScrollbarLength)),t}var k=null;function T(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7],u=t[8],d=e.element,p=null,f=null,b=null;function v(t){t.touches&&t.touches[0]&&(t[i]=t.touches[0]["page"+c.toUpperCase()]),k===a&&(d[l]=p+b*(t[i]-f),m(e,c),S(e),t.stopPropagation(),t.preventDefault())}function y(){g(e,c),e[u].classList.remove(h.clicking),document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",y),document.removeEventListener("touchmove",v),document.removeEventListener("touchend",y),k=null}function x(t){null===k&&(k=a,p=d[l],t.touches&&(t[i]=t.touches[0]["page"+c.toUpperCase()]),f=t[i],b=(e[r]-e[n])/(e[o]-e[s]),t.touches?(document.addEventListener("touchmove",v,{passive:!1}),document.addEventListener("touchend",y)):(document.addEventListener("mousemove",v),document.addEventListener("mouseup",y)),e[u].classList.add(h.clicking)),t.stopPropagation(),t.cancelable&&t.preventDefault()}e[a].addEventListener("mousedown",x),e[a].addEventListener("touchstart",x)}var C={"click-rail":function(e){e.event.bind(e.scrollbarY,"mousedown",(function(e){return e.stopPropagation()})),e.event.bind(e.scrollbarYRail,"mousedown",(function(t){var n=t.pageY-window.pageYOffset-e.scrollbarYRail.getBoundingClientRect().top>e.scrollbarYTop?1:-1;e.element.scrollTop+=n*e.containerHeight,S(e),t.stopPropagation()})),e.event.bind(e.scrollbarX,"mousedown",(function(e){return e.stopPropagation()})),e.event.bind(e.scrollbarXRail,"mousedown",(function(t){var n=t.pageX-window.pageXOffset-e.scrollbarXRail.getBoundingClientRect().left>e.scrollbarXLeft?1:-1;e.element.scrollLeft+=n*e.containerWidth,S(e),t.stopPropagation()}))},"drag-thumb":function(e){T(e,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"]),T(e,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"])},keyboard:function(e){var t=e.element;e.event.bind(e.ownerDocument,"keydown",(function(n){if(!(n.isDefaultPrevented&&n.isDefaultPrevented()||n.defaultPrevented)&&(s(t,":hover")||s(e.scrollbarX,":focus")||s(e.scrollbarY,":focus"))){var r,i=document.activeElement?document.activeElement:e.ownerDocument.activeElement;if(i){if("IFRAME"===i.tagName)i=i.contentDocument.activeElement;else for(;i.shadowRoot;)i=i.shadowRoot.activeElement;if(s(r=i,"input,[contenteditable]")||s(r,"select,[contenteditable]")||s(r,"textarea,[contenteditable]")||s(r,"button,[contenteditable]"))return}var o=0,a=0;switch(n.which){case 37:o=n.metaKey?-e.contentWidth:n.altKey?-e.containerWidth:-30;break;case 38:a=n.metaKey?e.contentHeight:n.altKey?e.containerHeight:30;break;case 39:o=n.metaKey?e.contentWidth:n.altKey?e.containerWidth:30;break;case 40:a=n.metaKey?-e.contentHeight:n.altKey?-e.containerHeight:-30;break;case 32:a=n.shiftKey?e.containerHeight:-e.containerHeight;break;case 33:a=e.containerHeight;break;case 34:a=-e.containerHeight;break;case 36:a=e.contentHeight;break;case 35:a=-e.contentHeight;break;default:return}e.settings.suppressScrollX&&0!==o||e.settings.suppressScrollY&&0!==a||(t.scrollTop-=a,t.scrollLeft+=o,S(e),function(n,r){var i=Math.floor(t.scrollTop);if(0===n){if(!e.scrollbarYActive)return!1;if(0===i&&r>0||i>=e.contentHeight-e.containerHeight&&r<0)return!e.settings.wheelPropagation}var o=t.scrollLeft;if(0===r){if(!e.scrollbarXActive)return!1;if(0===o&&n<0||o>=e.contentWidth-e.containerWidth&&n>0)return!e.settings.wheelPropagation}return!0}(o,a)&&n.preventDefault())}}))},wheel:function(e){var t=e.element;function n(n){var i=function(e){var t=e.deltaX,n=-1*e.deltaY;return"undefined"!==typeof t&&"undefined"!==typeof n||(t=-1*e.wheelDeltaX/6,n=e.wheelDeltaY/6),e.deltaMode&&1===e.deltaMode&&(t*=10,n*=10),t!==t&&n!==n&&(t=0,n=e.wheelDelta),e.shiftKey?[-n,-t]:[t,n]}(n),o=i[0],a=i[1];if(!function(e,n,i){if(!E.isWebKit&&t.querySelector("select:focus"))return!0;if(!t.contains(e))return!1;for(var o=e;o&&o!==t;){if(o.classList.contains(p.consuming))return!0;var a=r(o);if(i&&a.overflowY.match(/(scroll|auto)/)){var s=o.scrollHeight-o.clientHeight;if(s>0&&(o.scrollTop>0&&i<0||o.scrollTop<s&&i>0))return!0}if(n&&a.overflowX.match(/(scroll|auto)/)){var l=o.scrollWidth-o.clientWidth;if(l>0&&(o.scrollLeft>0&&n<0||o.scrollLeft<l&&n>0))return!0}o=o.parentNode}return!1}(n.target,o,a)){var s=!1;e.settings.useBothWheelAxes?e.scrollbarYActive&&!e.scrollbarXActive?(a?t.scrollTop-=a*e.settings.wheelSpeed:t.scrollTop+=o*e.settings.wheelSpeed,s=!0):e.scrollbarXActive&&!e.scrollbarYActive&&(o?t.scrollLeft+=o*e.settings.wheelSpeed:t.scrollLeft-=a*e.settings.wheelSpeed,s=!0):(t.scrollTop-=a*e.settings.wheelSpeed,t.scrollLeft+=o*e.settings.wheelSpeed),S(e),s=s||function(n,r){var i=Math.floor(t.scrollTop),o=0===t.scrollTop,a=i+t.offsetHeight===t.scrollHeight,s=0===t.scrollLeft,l=t.scrollLeft+t.offsetWidth===t.scrollWidth;return!(Math.abs(r)>Math.abs(n)?o||a:s||l)||!e.settings.wheelPropagation}(o,a),s&&!n.ctrlKey&&(n.stopPropagation(),n.preventDefault())}}"undefined"!==typeof window.onwheel?e.event.bind(t,"wheel",n):"undefined"!==typeof window.onmousewheel&&e.event.bind(t,"mousewheel",n)},touch:function(e){if(E.supportsTouch||E.supportsIePointer){var t=e.element,n={startOffset:{},startTime:0,speed:{},easingLoop:null};E.supportsTouch?(e.event.bind(t,"touchstart",s),e.event.bind(t,"touchmove",l),e.event.bind(t,"touchend",c)):E.supportsIePointer&&(window.PointerEvent?(e.event.bind(t,"pointerdown",s),e.event.bind(t,"pointermove",l),e.event.bind(t,"pointerup",c)):window.MSPointerEvent&&(e.event.bind(t,"MSPointerDown",s),e.event.bind(t,"MSPointerMove",l),e.event.bind(t,"MSPointerUp",c)))}function i(n,r){t.scrollTop-=r,t.scrollLeft-=n,S(e)}function o(e){return e.targetTouches?e.targetTouches[0]:e}function a(t){return t.target!==e.scrollbarX&&t.target!==e.scrollbarY&&((!t.pointerType||"pen"!==t.pointerType||0!==t.buttons)&&(!(!t.targetTouches||1!==t.targetTouches.length)||!(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE)))}function s(e){if(a(e)){var t=o(e);n.startOffset.pageX=t.pageX,n.startOffset.pageY=t.pageY,n.startTime=(new Date).getTime(),null!==n.easingLoop&&clearInterval(n.easingLoop)}}function l(s){if(a(s)){var l=o(s),c={pageX:l.pageX,pageY:l.pageY},u=c.pageX-n.startOffset.pageX,d=c.pageY-n.startOffset.pageY;if(function(e,n,i){if(!t.contains(e))return!1;for(var o=e;o&&o!==t;){if(o.classList.contains(p.consuming))return!0;var a=r(o);if(i&&a.overflowY.match(/(scroll|auto)/)){var s=o.scrollHeight-o.clientHeight;if(s>0&&(o.scrollTop>0&&i<0||o.scrollTop<s&&i>0))return!0}if(n&&a.overflowX.match(/(scroll|auto)/)){var l=o.scrollWidth-o.clientWidth;if(l>0&&(o.scrollLeft>0&&n<0||o.scrollLeft<l&&n>0))return!0}o=o.parentNode}return!1}(s.target,u,d))return;i(u,d),n.startOffset=c;var h=(new Date).getTime(),f=h-n.startTime;f>0&&(n.speed.x=u/f,n.speed.y=d/f,n.startTime=h),function(n,r){var i=Math.floor(t.scrollTop),o=t.scrollLeft,a=Math.abs(n),s=Math.abs(r);if(s>a){if(r<0&&i===e.contentHeight-e.containerHeight||r>0&&0===i)return 0===window.scrollY&&r>0&&E.isChrome}else if(a>s&&(n<0&&o===e.contentWidth-e.containerWidth||n>0&&0===o))return!0;return!0}(u,d)&&s.cancelable&&s.preventDefault()}}function c(){e.settings.swipeEasing&&(clearInterval(n.easingLoop),n.easingLoop=setInterval((function(){e.isInitialized?clearInterval(n.easingLoop):n.speed.x||n.speed.y?Math.abs(n.speed.x)<.01&&Math.abs(n.speed.y)<.01?clearInterval(n.easingLoop):(i(30*n.speed.x,30*n.speed.y),n.speed.x*=.8,n.speed.y*=.8):clearInterval(n.easingLoop)}),10))}}},O=function(e,t){var n=this;if(void 0===t&&(t={}),"string"===typeof e&&(e=document.querySelector(e)),!e||!e.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var a in this.element=e,e.classList.add(u),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},t)this.settings[a]=t[a];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var s=function(){return e.classList.add(h.focus)},l=function(){return e.classList.remove(h.focus)};this.isRtl="rtl"===r(e).direction,!0===this.isRtl&&e.classList.add(d),this.isNegativeScroll=function(){var t,n=e.scrollLeft;return e.scrollLeft=-1,t=e.scrollLeft<0,e.scrollLeft=n,t}(),this.negativeScrollAdjustment=this.isNegativeScroll?e.scrollWidth-e.clientWidth:0,this.event=new y,this.ownerDocument=e.ownerDocument||document,this.scrollbarXRail=o(p.rail("x")),e.appendChild(this.scrollbarXRail),this.scrollbarX=o(p.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",s),this.event.bind(this.scrollbarX,"blur",l),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var c=r(this.scrollbarXRail);this.scrollbarXBottom=parseInt(c.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=A(c.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=A(c.borderLeftWidth)+A(c.borderRightWidth),i(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=A(c.marginLeft)+A(c.marginRight),i(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=o(p.rail("y")),e.appendChild(this.scrollbarYRail),this.scrollbarY=o(p.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",s),this.event.bind(this.scrollbarY,"blur",l),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var f=r(this.scrollbarYRail);this.scrollbarYRight=parseInt(f.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=A(f.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(e){var t=r(e);return A(t.width)+A(t.paddingLeft)+A(t.paddingRight)+A(t.borderLeftWidth)+A(t.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=A(f.borderTopWidth)+A(f.borderBottomWidth),i(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=A(f.marginTop)+A(f.marginBottom),i(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:e.scrollLeft<=0?"start":e.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:e.scrollTop<=0?"start":e.scrollTop>=this.contentHeight-this.containerHeight?"end":null}
75,this.isAlive=!0,this.settings.handlers.forEach((function(e){return C[e](n)})),this.lastScrollTop=Math.floor(e.scrollTop),this.lastScrollLeft=e.scrollLeft,this.event.bind(this.element,"scroll",(function(e){return n.onScroll(e)})),S(this)};O.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,i(this.scrollbarXRail,{display:"block"}),i(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=A(r(this.scrollbarXRail).marginLeft)+A(r(this.scrollbarXRail).marginRight),this.railYMarginHeight=A(r(this.scrollbarYRail).marginTop)+A(r(this.scrollbarYRail).marginBottom),i(this.scrollbarXRail,{display:"none"}),i(this.scrollbarYRail,{display:"none"}),S(this),w(this,"top",0,!1,!0),w(this,"left",0,!1,!0),i(this.scrollbarXRail,{display:""}),i(this.scrollbarYRail,{display:""}))},O.prototype.onScroll=function(e){this.isAlive&&(S(this),w(this,"top",this.element.scrollTop-this.lastScrollTop),w(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},O.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),l(this.scrollbarX),l(this.scrollbarY),l(this.scrollbarXRail),l(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},O.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter((function(e){return!e.match(/^ps([-_].+|)$/)})).join(" ")},t.default=O},43488:function(e,t,n){"use strict";var r=n(93959);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i}
75;return n.PropTypes=n,n}},11942:function(e,t,n){e.exports=n(43488)()},93959:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},88974:function(e){"use strict";function t(e){this._maxSize=e,this.clear()}t.prototype.clear=function(){this._size=0,this._values=Object.create(null)},t.prototype.get=function(e){return this._values[e]},t.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,i=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new t(512),l=new t(512),c=new t(512);function u(e){return s.get(e)||s.set(e,d(e).map((function(e){return e.replace(a,"$2")})))}function d(e){return e.match(n)||[""]}function p(e){return"string"===typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function h(e){return!p(e)&&(function(e){return e.match(i)&&!e.match(r)}(e)||function(e){return o.test(e)}(e))}e.exports={Cache:t,split:d,normalizePath:u,setter:function(e){var t=u(e);return l.get(e)||l.set(e,(function(e,n){for(var r=0,i=t.length,o=e;r<i-1;){var a=t[r];if("__proto__"===a||"constructor"===a||"prototype"===a)return e;o=o[t[r++]]}o[t[r]]=n}))},getter:function(e,t){var n=u(e);return c.get(e)||c.set(e,(function(e){for(var r=0,i=n.length;r<i;){if(null==e&&t)return;e=e[n[r++]]}return e}))},join:function(e){return e.reduce((function(e,t){return e+(p(t)||r.test(t)?"["+t+"]":(e?".":"")+t)}),"")},forEach:function(e,t,n){!function(e,t,n){var r,i,o,a,s=e.length;for(i=0;i<s;i++)(r=e[i])&&(h(r)&&(r='"'+r+'"'),o=!(a=p(r))&&/^\d+$/.test(r),t.call(n,r,a,o,i,e))}(Array.isArray(e)?e:d(e),t,n)}}},40160:function(e){var t;"undefined"!==typeof self&&self,t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),i=n(18),o=n(19),a=n(45),s=n(46),l=n(47),c=n(48),u=n(49),d=n(12),p=n(32),h=n(33),f=n(31),m=n(1),g={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:r.default,Format:i.default,Leaf:o.default,Embed:c.default,Scroll:a.default,Block:l.default,Inline:s.default,Text:u.default,Attributor:{Attribute:d.default,Class:p.default,Style:h.default,Store:f.default}};t.default=g},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=this;return t="[Parchment] "+t,(n=e.call(this,t)||this).message=t,n.name=n.constructor.name,n}return r(t,e),t}(Error);t.ParchmentError=i;var o,a={},s={},l={},c={};function u(e,t){var n;if(void 0===t&&(t=o.ANY),"string"===typeof e)n=c[e]||a[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=c.text;else if("number"===typeof e)e&o.LEVEL&o.BLOCK?n=c.block:e&o.LEVEL&o.INLINE&&(n=c.inline);else if(e instanceof HTMLElement){var r=(e.getAttribute("class")||"").split(/\s+/);for(var i in r)if(n=s[r[i]])break;n=n||l[e.tagName]}return null==n?null:t&o.LEVEL&n.scope&&t&o.TYPE&n.scope?n:null}t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(o=t.Scope||(t.Scope={})),t.create=function(e,t){var n=u(e);if(null==n)throw new i("Unable to create "+e+" blot");var r=n,o=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:r.create(t);return new r(o,t)},t.find=function e(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[t.DATA_KEY]?n[t.DATA_KEY].blot:r?e(n.parentNode,r):null},t.query=u,t.register=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(t.length>1)return t.map((function(t){return e(t)}));var r=t[0];if("string"!==typeof r.blotName&&"string"!==typeof r.attrName)throw new i("Invalid definition");if("abstract"===r.blotName)throw new i("Cannot register abstract class");return c[r.blotName||r.attrName]=r,"string"===typeof r.keyName?a[r.keyName]=r:(null!=r.className&&(s[r.className]=r),null!=r.tagName&&(Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(e){return e.toUpperCase()})):r.tagName=r.tagName.toUpperCase(),(Array.isArray(r.tagName)?r.tagName:[r.tagName]).forEac
75h((function(e){null!=l[e]&&null!=r.className||(l[e]=r)})))),r}},function(e,t,n){var r=n(51),i=n(11),o=n(3),a=n(20),s=String.fromCharCode(0),l=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};l.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},l.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},l.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},l.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=o(!0,{},e),"object"===typeof n){if("number"===typeof e.delete&&"number"===typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"===typeof n.delete&&null!=e.insert&&(t-=1,"object"!==typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(i(e.attributes,n.attributes)){if("string"===typeof e.insert&&"string"===typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"===typeof e.retain&&"number"===typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},l.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},l.prototype.filter=function(e){return this.ops.filter(e)},l.prototype.forEach=function(e){this.ops.forEach(e)},l.prototype.map=function(e){return this.ops.map(e)},l.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(r){(e(r)?t:n).push(r)})),[t,n]},l.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},l.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+a.length(t):t.delete?e-t.delete:e}),0)},l.prototype.length=function(){return this.reduce((function(e,t){return e+a.length(t)}),0)},l.prototype.slice=function(e,t){e=e||0,"number"!==typeof t&&(t=1/0);for(var n=[],r=a.iterator(this.ops),i=0;i<t&&r.hasNext();){var o;i<e?o=r.next(e-i):(o=r.next(t-i),n.push(o)),i+=a.length(o)}return new l(n)},l.prototype.compose=function(e){var t=a.iterator(this.ops),n=a.iterator(e.ops),r=[],o=n.peek();if(null!=o&&"number"===typeof o.retain&&null==o.attributes){for(var s=o.retain;"insert"===t.peekType()&&t.peekLength()<=s;)s-=t.peekLength(),r.push(t.next());o.retain-s>0&&n.next(o.retain-s)}for(var c=new l(r);t.hasNext()||n.hasNext();)if("insert"===n.peekType())c.push(n.next());else if("delete"===t.peekType())c.push(t.next());else{var u=Math.min(t.peekLength(),n.peekLength()),d=t.next(u),p=n.next(u);if("number"===typeof p.retain){var h={};"number"===typeof d.retain?h.retain=u:h.insert=d.insert;var f=a.attributes.compose(d.attributes,p.attributes,"number"===typeof d.retain);
vendor: 4,116 bytes, line 75
75if(f&&(h.attributes=f),c.push(h),!n.hasNext()&&i(c.ops[c.ops.length-1],h)){var m=new l(t.rest());return c.concat(m).chop()}}else"number"===typeof p.delete&&"number"===typeof d.retain&&c.push(p)}return c.chop()},l.prototype.concat=function(e){var t=new l(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},l.prototype.diff=function(e,t){if(this.ops===e.ops)return new l;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"===typeof n.insert?n.insert:s;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),o=new l,c=r(n[0],n[1],t),u=a.iterator(this.ops),d=a.iterator(e.ops);return c.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case r.INSERT:n=Math.min(d.peekLength(),t),o.push(d.next(n));break;case r.DELETE:n=Math.min(t,u.peekLength()),u.next(n),o.delete(n);break;case r.EQUAL:n=Math.min(u.peekLength(),d.peekLength(),t);var s=u.next(n),l=d.next(n);i(s.insert,l.insert)?o.retain(n,a.attributes.diff(s.attributes,l.attributes)):o.push(l).delete(n)}t-=n}})),o.chop()},l.prototype.eachLine=function(e,t){t=t||"\n";for(var n=a.iterator(this.ops),r=new l,i=0;n.hasNext();){if("insert"!==n.peekType())return;var o=n.peek(),s=a.length(o)-n.peekLength(),c="string"===typeof o.insert?o.insert.indexOf(t,s)-s:-1;if(c<0)r.push(n.next());else if(c>0)r.push(n.next(c));else{if(!1===e(r,n.next(1).attributes||{},i))return;i+=1,r=new l}}r.length()>0&&e(r,{},i)},l.prototype.transform=function(e,t){if(t=!!t,"number"===typeof e)return this.transformPosition(e,t);for(var n=a.iterator(this.ops),r=a.iterator(e.ops),i=new l;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===r.peekType())if("insert"===r.peekType())i.push(r.next());else{var o=Math.min(n.peekLength(),r.peekLength()),s=n.next(o),c=r.next(o);if(s.delete)continue;c.delete?i.push(c):i.retain(o,a.attributes.transform(s.attributes,c.attributes,t))}else i.retain(a.length(n.next()));return i.chop()},l.prototype.transformPosition=function(e,t){t=!!t;for(var n=a.iterator(this.ops),r=0;n.hasNext()&&r<=e;){var i=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(r<e||!t)&&(e+=i),r+=i):e-=Math.min(i,e-r)}return e},e.exports=l},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},s=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t,i=n.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(t in e);return"undefined"===typeof t||n.call(e,t)},l=function(e,t){i&&"__proto__"===t.name?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(o)return o(e,t).value}return e[t]};e.exports=function e(){var t,n,r,i,o,u,d=arguments[0],p=1,h=arguments.length,f=!1;for("boolean"===typeof d&&(f=d,d=arguments[1]||{},p=2),(null==d||"object"!==typeof d&&"function"!==typeof d)&&(d={});p<h;++p)if(null!=(t=arguments[p]))for(n in t)r=c(d,n),d!==(i=c(t,n))&&(f&&i&&(s(i)||(o=a(i)))?(o?(o=!1,u=r&&a(r)?r:[]):u=r&&s(r)?r:{},l(d,{name:n,newValue:e(f,u,i)})):"undefined"!==typeof i&&l(d,{name:n,newValue:i}));return d}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=d(n(3)),a=d(n(2)),s=d(n(0)),l=d(n(16)),c=d(n(6)),u=d(n(7));
vendor: 4,765 bytes, line 75
75function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=function(e){function t(){return p(this,t),h(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),r(t,[{key:"attach",value:function(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new s.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new a.default).insert(this.value(),(0,o.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=s.default.query(e,s.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,r){this.format(n,r)}},{key:"insertAt",value:function(e,n,r){if("string"===typeof n&&n.endsWith("\n")){var o=s.default.create(g.blotName);this.parent.insertBefore(o,0===e?this:this.next),o.insertAt(0,n.slice(0,-1))}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r)}}]),t}(s.default.Embed);m.scope=s.default.Scope.BLOCK_BLOT;var g=function(e){function t(e){p(this,t);var n=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return f(t,e),r(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(s.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),b(t))}),new a.default).insert("\n",b(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,r,o){n<=0||(s.default.query(r,s.default.Scope.BLOCK)?e+n===this.length()&&this.format(r,o):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),r,o),this.cache={})}},{key:"insertAt",value:function(e,n,r){if(null!=r)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);if(0!==n.length){var o=n.split("\n"),a=o.shift();a.length>0&&(e<this.length()-1||null==this.children.tail?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var s=this;o.reduce((function(e,t){return(s=s.split(e,!0)).insertAt(0,t),t.length}),e+a.length)}}},{key:"insertBefore",value:function(e,n){var r=this.children.head;i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),r instanceof l.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-1)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var o=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},o}}]),t}(s.default.Block);function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"===typeof e.formats&&(t=(0,o.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:b(e.parent,t))}g.blotName="block",g.tagName="P",g.defaultChild="break",g.allowedChildren=[c.default,s.default.Embed,u.default],t.bubbleFormats=b,t.BlockEmbed=m,t.default=g},function(e,t,n){"use strict";
vendor: 21,796 bytes, line 75
75Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n(50);var a=g(n(2)),s=g(n(14)),l=g(n(8)),c=g(n(9)),u=g(n(0)),d=n(15),p=g(d),h=g(n(3)),f=g(n(10)),m=g(n(34));function g(e){return e&&e.__esModule?e:{default:e}}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=(0,f.default)("quill"),y=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=x(t,r),this.container=this.options.container,null==this.container)return v.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new l.default,this.scroll=u.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new s.default(this.scroll),this.selection=new p.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(l.default.events.EDITOR_CHANGE,(function(e){e===l.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(l.default.events.SCROLL_UPDATE,(function(e,t){var r=n.selection.lastRange,i=r&&0===r.length?r.index:void 0;w.call(n,(function(){return n.editor.update(null,t,i)}),e)}));var o=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+i+"<p><br></p></div>");this.setContents(o),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return o(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),f.default.level(e)}},{key:"find",value:function(e){return e.__quill||u.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&v.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!==typeof e){var i=e.attrName||e.blotName;"string"===typeof i?this.register("formats/"+i,e,t):Object.keys(e).forEach((function(r){n.register(r,e[r],t)}))}else null==this.imports[e]||r||v.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?u.default.register(t):e.startsWith("modules")&&"function"===typeof t.register&&t.register()}}]),o(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var r=this,o=A(e,t,n),a=i(o,4);return e=a[0],t=a[1],n=a[3],w.call(this,(function(){return r.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;return w.call(this,(function(){var r=n.getSelection(!0),i=new a.default;if(null==r)return i;if(u.default.query(e,u.default.Scope.BLOCK))i=n.editor.formatLine(r.index,r.length,b({},e,t));else{if(0===r.length)return n.selection.format(e,t),i;i=n.editor.formatText(r.index,r.length,b({},e,t))}return n.setSelection(r,l.default.sources.SILENT),i}),r)}},{key:"formatLine",value:function(e,t,n,r,o){var a,s=this,l=A(e,t,n,r,o),c=i(l,4);return e=c[0],t=c[1],a=c[2],o=c[3],w.call(this,(function(){return s.editor.formatLine(e,t,a)}),o,e,0)}},{key:"formatText",value:function(e,t,n,r,o){var a,s=this,l=A(e,t,n,r,o),c=i(l,4);return e=c[0],t=c[1],a=c[2],o=c[3],w.call(this,(function(){return s.editor.formatText(e,t,a)}),o,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"===typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=A(e,t),r=i(n,2);return e=r[0],t=r[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=A(e,t),r=i(n,2);return e=r[0],t=r[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return w.call(this,(function(){return i.editor.insertEmbed(t,n,r)}),o,t)}},{key:"insertText",value:function(e,t,n,r,o){var a,s=this,l=A(e,0,n,r,o),c=i(l,4);return e=c[0],a=c[2],o=c[3],w.call(this,(function(){return s.editor.insertText(e,t,a)}),o,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var r=this,o=A(e,t,n),a=i(o,4);return e=a[0],t=a[1],n=a[3],w.call(this,(function(){return r.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return w.call(this,(function(){e=new a.default(e);var n=t.getLength(),r=t.editor.deleteText(0,n),i=t.editor.applyDelta(e),o=i.ops[i.ops.length-1];return null!=o&&"string"===typeof o.insert&&"\n"===o.insert[o.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),i.delete(1)),r.compose(i)}),n)}},{key:"setSelection",value:function(t,n,r){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var o=A(t,n,r),a=i(o,4);t=a[0],n=a[1],r=a[3],this.selection.setRange(new d.Range(t,n),r),r!==l.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API,n=(new a.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return w.call(this,(function(){return e=new a.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function x(e,t){if((t=(0,h.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==y.DEFAULTS.theme){if(t.theme=y.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=m.default;var n=(0,h.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=y.import("modules/"+t);return null==n?v.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,h.default)(!0,{},y.DEFAULTS,{modules:r},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"===typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function w(e,t,n,r){if(this.options.strict&&!this.isEnabled()&&t===l.default.sources.USER)return new a.default;var i=null==n?null:this.getSelection(),o=this.editor.delta,s=e();if(null!=i&&(!0===n&&(n=i.index),null==r?i=E(i,s,t):0!==r&&(i=E(i,n,r,t)),this.setSelection(i,l.default.sources.SILENT)),s.length()>0){var c,u,d=[l.default.events.TEXT_CHANGE,s,o,t];(c=this.emitter).emit.apply(c,[l.default.events.EDITOR_CHANGE].concat(d)),t!==l.default.sources.SILENT&&(u=this.emitter).emit.apply(u,d)}return s}function A(e,t,n,i,o){var a={};return"number"===typeof e.index&&"number"===typeof e.length?"number"!==typeof t?(o=i,i=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!==typeof t&&(o=i,i=n,n=t,t=0),"object"===("undefined"===typeof n?"undefined":r(n))?(a=n,o=i):"string"===typeof n&&(null!=i?a[n]=i:o=n),[e,t,a,o=o||l.default.sources.API]}function E(e,t,n,r){if(null==e)return null;var o=void 0,s=void 0;if(t instanceof a.default){var c=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,r!==l.default.sources.USER)})),u=i(c,2);o=u[0],s=u[1]}else{var p=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&r===l.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)})),h=i(p,2);o=h[0],s=h[1]}return new d.Range(o,s-o)}y.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},y.events=l.default.events,y.sources=l.default.sources,y.version="1.3.7",y.imports={delta:a.default,parchment:u.default,"core/module":c.default,"core/theme":m.default},t.expandConfig=x,t.overload=A,t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=s(n(7)),a=s(n(0));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"formatAt",value:function(e,n,r,o){if(t.compare(this.statics.blotName,r)<0&&a.default.query(r,a.default.Scope.BLOT)){var s=this.isolate(e,n);o&&s.wrap(r,o)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,o)}},{key:"optimize",value:function(e){if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var r=t.order.indexOf(e),i=t.order.indexOf(n);return r>=0||i>=0?r-i:e===n?0:e<n?-1:1}}]),t}(a.default.Inline);l.allowedChildren=[l,a.default.Embed,o.default],l.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=i)&&r.__esModule?r:{default:r}).default.Text);t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=a(n(54));function a(e){return e&&e.__esModule?e:{default:e}}var s=(0,a(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)}))}))}));var l=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",s.error),e}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"emit",value:function(){s.log.apply(s,arguments),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(this.listeners[e.type]||[]).forEach((function(t){var r=t.node,i=t.handler;(e.target===r||r.contains(e.target))&&i.apply(void 0,[e].concat(n))}))}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}(o.default);l.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},l.sources={API:"api",SILENT:"silent",USER:"user"},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n};r.DEFAULTS={},t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=["error","warn","log","info"],i="warn";function o(e){if(r.indexOf(e)<=r.indexOf(i)){for(var t,n=arguments.length,o=Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];(t=console)[e].apply(t,o)}}function a(e){return r.reduce((function(t,n){return t[n]=o.bind(console,n,e),t}),{})}o.level=a.level=function(e){i=e},t.default=a},function(e,t,n){var r=Array.prototype.slice,i=n(52),o=n(53),a=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:function(e,t,n){var c,u;if(s(e)||s(t))return!1;if(e.prototype!==t.prototype)return!1;if(o(e))return!!o(t)&&(e=r.call(e),t=r.call(t),a(e,t,n));if(l(e)){if(!l(t))return!1;if(e.length!==t.length)return!1;for(c=0;c<e.length;c++)if(e[c]!==t[c])return!1;return!0}try{var d=i(e),p=i(t)}catch(h){return!1}if(d.length!=p.length)return!1;for(d.sort(),p.sort(),c=d.length-1;c>=0;c--)if(d[c]!=p[c])return!1;for(c=d.length-1;c>=0;c--)if(u=d[c],!a(e[u],t[u],n))return!1;return typeof e===typeof t}(e,t,n))};function s(e){return null===e||void 0===e}function l(e){return!(!e||"object"!==typeof e||"number"!==typeof e.length)&&"function"===typeof e.copy&&"function"===typeof e.slice&&!(e.length>0&&"number"!==typeof e[0])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var i=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|i:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=r.query(e,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"===typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=d(n(2)),s=d(n(0)),l=d(n(4)),c=d(n(6)),u=d(n(7));
vendor: 4,286 bytes, line 75
75function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=function(e){function t(){return p(this,t),h(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),t}(c.default);m.blotName="code",m.tagName="CODE";var g=function(e){function t(){return p(this,t),h(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),i(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new a.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var i=this.descendant(u.default,this.length()-1),a=r(i,1)[0];null!=a&&a.deleteAt(a.length()-1,1),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,r,i){if(0!==n&&null!=s.default.query(r,s.default.Scope.BLOCK)&&(r!==this.statics.blotName||i!==this.statics.formats(this.domNode))){var o=this.newlineIndex(e);if(!(o<0||o>=e+n)){var a=this.newlineIndex(e,!0)+1,l=o-a+1,c=this.isolate(a,l),u=c.next;c.format(r,i),u instanceof t&&u.formatAt(0,e-a+n-l,r,i)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var i=this.descendant(u.default,e),o=r(i,2),a=o[0],s=o[1];a.insertAt(s,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var t=this.domNode.textContent.slice(e).indexOf("\n");return t>-1?e+t:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(s.default.create("text","\n")),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=s.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof s.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(l.default);g.blotName="code-block",g.tagName="PRE",g.TAB="  ",t.Code=m,t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=b(n(2)),s=b(n(20)),l=b(n(0)),c=b(n(13)),u=b(n(24)),d=n(4),p=b(d),h=b(n(16)),f=b(n(21)),m=b(n(11)),g=b(n(3));
vendor: 4,255 bytes, line 75
75function b(e){return e&&e.__esModule?e:{default:e}}var v=/^[ -~]*$/,y=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scroll=t,this.delta=this.getDelta()}return o(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var o=this.scroll.length();return this.scroll.batchStart(),(e=function(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,f.default)(t.attributes);return delete n.image,e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||((t=(0,f.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"===typeof t.insert){var r=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(r,t.attributes)}return e.push(t)}),new a.default)}(e)).reduce((function(e,a){var c=a.retain||a.delete||a.insert.length||1,u=a.attributes||{};if(null!=a.insert){if("string"===typeof a.insert){var h=a.insert;h.endsWith("\n")&&n&&(n=!1,h=h.slice(0,-1)),e>=o&&!h.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,h);var f=t.scroll.line(e),m=i(f,2),b=m[0],v=m[1],y=(0,g.default)({},(0,d.bubbleFormats)(b));if(b instanceof p.default){var x=b.descendant(l.default.Leaf,v),w=i(x,1)[0];y=(0,g.default)(y,(0,d.bubbleFormats)(w))}u=s.default.attributes.diff(y,u)||{}}else if("object"===r(a.insert)){var A=Object.keys(a.insert)[0];if(null==A)return e;t.scroll.insertAt(e,A,a.insert[A])}o+=c}return Object.keys(u).forEach((function(n){t.scroll.formatAt(e,c,n,u[n])})),e+c}),0),e.reduce((function(e,n){return"number"===typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new a.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(i){if(null==n.scroll.whitelist||n.scroll.whitelist[i]){var o=n.scroll.lines(e,Math.max(t,1)),a=t;o.forEach((function(t){var o=t.length();if(t instanceof c.default){var s=e-t.offset(n.scroll),l=t.newlineIndex(s+a)-s+1;t.formatAt(s,l,i,r[i])}else t.format(i,r[i]);a-=o}))}})),this.scroll.optimize(),this.update((new a.default).retain(e).retain(t,(0,f.default)(r)))}},{key:"formatText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(i){n.scroll.formatAt(e,t,i,r[i])})),this.update((new a.default).retain(e).retain(t,(0,f.default)(r)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new a.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach((function(e){var t=i(e,1)[0];t instanceof p.default?n.push(t):t instanceof l.default.Leaf&&r.push(t)})):(n=this.scroll.lines(e,t),r=this.scroll.descendants(l.default.Leaf,e,t));var o=[n,r].map((function(e){if(0===e.length)return{};for(var t=(0,d.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=x((0,d.bubbleFormats)(n),t)}return t}));return g.default.apply(g.default,o)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"===typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new a.default).retain(e).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(r).forEach((function(i){n.scroll.formatAt(e,t.length,i,r[i])})),this.update((new a.default).retain(e).insert(t,(0,f.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;
vendor: 4,635 bytes, line 75
75if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===p.default.blotName&&!(e.children.length>1)&&e.children.head instanceof h.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),r=this.scroll.line(e+t),o=i(r,2),s=o[0],l=o[1],u=0,d=new a.default;null!=s&&(u=s instanceof c.default?s.newlineIndex(l)-l+1:s.length()-l,d=s.delta().slice(l,l+u-1).insert("\n"));var p=this.getContents(e,t+u).diff((new a.default).insert(n).concat(d)),h=(new a.default).retain(e).concat(p);return this.applyDelta(h)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(v)&&l.default.find(t[0].target)){var i=l.default.find(t[0].target),o=(0,d.bubbleFormats)(i),s=i.offset(this.scroll),c=t[0].oldValue.replace(u.default.CONTENTS,""),p=(new a.default).insert(c),h=(new a.default).insert(i.value());e=(new a.default).retain(s).concat(p.diff(h,n)).reduce((function(e,t){return t.insert?e.insert(t.insert,o):e.push(t)}),new a.default),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,m.default)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}]),e}();function x(e,t){return Object.keys(t).reduce((function(n,r){return null==e[r]||(t[r]===e[r]?n[r]=t[r]:Array.isArray(t[r])?t[r].indexOf(e[r])<0&&(n[r]=t[r].concat([e[r]])):n[r]=[t[r],e[r]]),n}),{})}t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=c(n(0)),a=c(n(21)),s=c(n(11)),l=c(n(8));function c(e){return e&&e.__esModule?e:{default:e}}function u(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var p=(0,c(n(10)).default)("quill:selection"),h=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this.index=t,this.length=n},f=function(){function e(t,n){var r=this;d(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=o.default.create("cursor",this),this.lastRange=this.savedRange=new h(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,l.default.sources.USER),1)})),this.emitter.on(l.default.events.EDITOR_CHANGE,(function(e,t){e===l.default.events.TEXT_CHANGE&&t.length()>0&&r.update(l.default.sources.SILENT)})),this.emitter.on(l.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var e=r.getNativeRange();null!=e&&e.start.node!==r.cursor.textNode&&r.emitter.once(l.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(t){}}))}})),this.emitter.on(l.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,i=n.startNode,o=n.startOffset,a=n.endNode,s=n.endOffset;r.setNativeRange(i,o,a,s)}})),this.update(l.default.sources.SILENT)}return i(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(l.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update(
vendor: 9,495 bytes, line 75
75);var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!o.default.query(e,o.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=o.default.find(n.start.node,!1);if(null==r)return;if(r instanceof o.default.Leaf){var i=r.split(n.start.offset);r.parent.insertBefore(this.cursor,i)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var i=void 0,o=this.scroll.leaf(e),a=r(o,2),s=a[0],l=a[1];if(null==s)return null;var c=s.position(l,!0),u=r(c,2);i=u[0],l=u[1];var d=document.createRange();if(t>0){d.setStart(i,l);var p=this.scroll.leaf(e+t),h=r(p,2);if(s=h[0],l=h[1],null==s)return null;var f=s.position(l,!0),m=r(f,2);return i=m[0],l=m[1],d.setEnd(i,l),d.getBoundingClientRect()}var g="left",b=void 0;return i instanceof Text?(l<i.data.length?(d.setStart(i,l),d.setEnd(i,l+1)):(d.setStart(i,l-1),d.setEnd(i,l),g="right"),b=d.getBoundingClientRect()):(b=s.domNode.getBoundingClientRect(),l>0&&(g="right")),{bottom:b.top+b.height,height:b.height,left:b[g],right:b[g],top:b.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return p.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var i=n.map((function(e){var n=r(e,2),i=n[0],a=n[1],s=o.default.find(i,!0),l=s.offset(t.scroll);return 0===a?l:s instanceof o.default.Container?l+s.length():l+s.index(i,a)})),a=Math.min(Math.max.apply(Math,u(i)),this.scroll.length()-1),s=Math.min.apply(Math,[a].concat(u(i)));return new h(s,a-s)}},{key:"normalizeNative",value:function(e){if(!m(this.root,e.startContainer)||!e.collapsed&&!m(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],i=[],o=this.scroll.length();return n.forEach((function(e,n){e=Math.min(o-1,e);var a,s=t.scroll.leaf(e),l=r(s,2),c=l[0],u=l[1],d=c.position(u,0!==n),p=r(d,2);a=p[0],u=p[1],i.push(a,u)})),i.length<2&&(i=i.concat(i)),i}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var i=this.scroll.length()-1,o=this.scroll.line(Math.min(t.index,i)),a=r(o,1)[0],s=a;if(t.length>0){var l=this.scroll.line(Math.min(t.index+t.length,i));s=r(l,1)[0]}if(null!=a&&null!=s){var c=e.getBoundingClientRect();n.top<c.top?e.scrollTop-=c.top-n.top:n.bottom>c.bottom&&(e.scrollTop+=n.bottom-c.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(p.info("setNativeRange",e,t,n,r),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var o=document.getSelection();if(null!=o)if(null!=e){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||i||e!==a.startContainer||t!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var s=document.createRange();s.setStart(e,t),s.setEnd(n,r),o.removeAllRanges(),o.addRange(s)}}else o.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;if("string"===typeof t&&(n=t,t=!1),p.info("setRange",e),null!=e){var r=this.rangeToNative(e);this.setNativeRange.apply(this,u(r).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,t=this.lastRange,n=this.getRange(),i=r(n,2),o=i[0],c=i[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,s.default)(t,this.lastRange)){var u;!this.composing&&null!=c&&c.native.collapsed&&c.start.node!==this.cursor.textNode&&this.cursor.restore();var d,p=[l.default.events.SELECTION_CHANGE,(0,a.default)(this.lastRange),(0,a.default)(t),e];(u=this.emitter).emit.apply(u,[l.default.events.EDITOR_CHANGE].concat(p)),e!==l.default.sources.SILENT&&(d=this.emitter).emit.apply(d,p)}}}]),e}();function m(e,t){try{t.parentNode}catch(n){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=h,t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(0),s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"insertInto",value:function(e,n){0===e.children.length?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default.Embed);s.blotName="break",s.tagName="BR",t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(44),o=n(30),a=n(1),s=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return r(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},t.prototype.build=function(){var e=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var n=l(t);e.insertBefore(n,e.children.head||void 0)}catch(r){if(r instanceof a.ParchmentError)return;throw r}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},t.prototype.descendant=function(e,n){var r=this.children.find(n),i=r[0],o=r[1];return null==e.blotName&&e(i)||null!=e.blotName&&i instanceof e?[i,o]:i instanceof t?i.descendant(e,o):[null,-1]},t.prototype.descendants=function(e,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var i=[],o=r;return this.children.forEachAt(n,r,(function(n,r,a){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&i.push(n),n instanceof t&&(i=i.concat(n.descendants(e,r,o))),o-=a})),i},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,r){this.children.forEachAt(e,t,(function(e,t,i){e.formatAt(t,i,n,r)}))},t.prototype.insertAt=function(e,t,n){var r=this.children.find(e),i=r[0],o=r[1];if(i)i.insertAt(o,t,n);else{var s=null==n?a.create("text",t):a.create(t,n);this.appendChild(s)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new a.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)}
vendor: 9,494 bytes, line 75
75,t.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=a.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var r=this.children.find(e,n),i=r[0],o=r[1],a=[[this,e]];return i instanceof t?a.concat(i.path(o,n)):(null!=i&&a.push([i,o]),a)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,r,i){e=e.split(r,t),n.appendChild(e)})),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,r=[],i=[];e.forEach((function(e){e.target===n.domNode&&"childList"===e.type&&(r.push.apply(r,e.addedNodes),i.push.apply(i,e.removedNodes))})),i.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=a.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==n.domNode||t.detach())}})),r.filter((function(e){return e.parentNode==n.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=a.find(e.nextSibling));var r=l(e);r.next==t&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,t||void 0))}))},t}(o.default);function l(e){var t=a.find(e);if(null==t)try{t=a.create(e)}catch(n){t=a.create(a.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),o=n(31),a=n(17),s=n(1),l=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new o.default(n.domNode),n}return r(t,e),t.formats=function(e){return"string"===typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=s.query(e);n instanceof i.default?this.attributes.attribute(n,t):t&&(null==n||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var r=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(r),r},t.prototype.update=function(t,n){var r=this;e.prototype.update.call(this,t,n),t.some((function(e){return e.target===r.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(n,r){var i=e.prototype.wrap.call(this,n,r);return i instanceof t&&i.statics.scope===this.statics.scope&&this.attributes.move(i),i},t}(a.default);t.default=l},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(30),o=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=o.Scope.INLINE_BLOT,t}(i.default);t.default=a},function(e,t,n){var r=n(11),i=n(3),o={attributes:{compose:function(e,t,n){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var r=i(!0,{},t);for(var o in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)void 0!==e[o]&&void 0===t[o]&&(r[o]=e[o]);return Object.keys(r).length>0?r:void 0},diff:function(e,t){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,i){return r(e[i],t[i])||(n[i]=void 0===t[i]?null:t[i]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!==typeof e)return t;if("object"===typeof t){if(!n)return t;var r=Object.keys(t).reduce((function(n,r){return void 0===e[r]&&(n[r]=t[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(e){return new a(e)},length:function(e){return"number"===typeof e.delete?e.delete:"number"===typeof e.retain?e.retain:"string"===typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=o.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"===typeof t.delete)return{delete:e};var i={};return t.attributes&&(i.attributes=t.attributes),"number"===typeof t.retain?i.retain=e:"string"===typeof t.insert?i.insert=t.insert.substr(n,e):i.insert=t.insert,i}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?o.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"===typeof this.ops[this.index].delete?"delete":"number"===typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e.exports=o},function(e,t){var n=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var t,n,r;try{t=Map}catch(s){t=function(){}}try{n=Set}catch(s){n=function(){}}try{r=Promise}catch(s){r=function(){}}function i(o,s,l,c,u){"object"===typeof s&&(l=s.depth,c=s.prototype,u=s.includeNonEnumerable,s=s.circular);var d=[],p=[],h="undefined"!=typeof Buffer;return"undefined"==typeof s&&(s=!0),"undefined"==typeof l&&(l=1/0),function o(l,f){if(null===l)return null;if(0===f)return l;var m,g;if("object"!=typeof l)return l;if(e(l,t))m=new t;else if(e(l,n))m=new n;else if(e(l,r))m=new r((function(e,t){l.then((function(t){e(o(t,f-1))}),(function(e){t(o(e,f-1))}))}));else if(i.__isArray(l))m=[];else if(i.__isRegExp(l))m=new RegExp(l.source,a(l)),l.lastIndex&&(m.lastIndex=l.lastIndex);else if(i.__isDate(l))m=new Date(l.getTime());else{if(h&&Buffer.isBuffer(l))return m=Buffer.allocUnsafe?Buffer.allocUnsafe(l.length):new Buffer(l.length),l.copy(m),m;e(l,Error)?m=Object.create(l):"undefined"==typeof c?(g=Object.getPrototypeOf(l),m=Object.create(g)):(m=Object.create(c),g=c)}if(s){var b=d.indexOf(l);if(-1!=b)return p[b];d.push(l),p.push(m)}for(var v in e(l,t)&&l.forEach((function(e,t){var n=o(t,f-1),r=o(e,f-1);m.set(n,r)})),e(l,n)&&l.forEach((function(e){var t=o(e,f-1);m.add(t)})),l){var y;g&&(y=Object.getOwnPropertyDescriptor(g,v)),y&&null==y.set||(m[v]=o(l[v],f-1))}if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(l);for(v=0;v<x.length;v++){var w=x[v];(!(E=Object.getOwnPropertyDescriptor(l,w))||E.enumerable||u)&&(m[w]=o(l[w],f-1),E.enumerable||Object.defineProperty(m,w,{enumerable:!1}))}}if(u){var A=Object.getOwnPropertyNames(l);for(v=0;v<A.length;v++){var E,S=A[v];(E=Object.getOwnPropertyDescriptor(l,S))&&E.enumerable||(m[S]=o(l[S],f-1),Object.defineProperty(m,S,{enumerable:!1}))}}return m}(o,l)}function o(e){return Object.prototype.toString.call(e)}function a(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return i.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},i.__objToStr=o,i.__isDate=function(e){return"object"===typeof e&&"[object Date]"===o(e)},i.__isArray=function(e){return"object"===typeof e&&"[object Array]"===o(e)},i.__isRegExp=function(e){return"object"===typeof e&&"[object RegExp]"===o(e)},i.__getRegExpFlags=a,i}();"object"===typeof e&&e.exports&&(e.exports=n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);
vendor: 34,939 bytes, line 75
75throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=h(n(0)),s=h(n(8)),l=n(4),c=h(l),u=h(n(16)),d=h(n(13)),p=h(n(25));function h(e){return e&&e.__esModule?e:{default:e}}function f(e){return e instanceof c.default||e instanceof l.BlockEmbed}var m=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),r.domNode.addEventListener("DOMNodeInserted",(function(){})),r.optimize(),r.enable(),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var i=this.line(e),a=r(i,2),s=a[0],c=a[1],p=this.line(e+n),h=r(p,1)[0];if(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=h&&s!==h&&c>0){if(s instanceof l.BlockEmbed||h instanceof l.BlockEmbed)return void this.optimize();if(s instanceof d.default){var f=s.newlineIndex(s.length(),!0);if(f>-1&&(s=s.split(f+1))===h)return void this.optimize()}else if(h instanceof d.default){var m=h.newlineIndex(0);m>-1&&h.split(m+1)}var g=h.children.head instanceof u.default?null:h.children.head;s.moveChildren(h,g),s.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,r,i){(null==this.whitelist||this.whitelist[r])&&(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,i),this.optimize())}},{key:"insertAt",value:function(e,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==r||null==a.default.query(n,a.default.Scope.BLOCK)){var i=a.default.create(this.statics.defaultChild);this.appendChild(i),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),i.insertAt(0,n,r)}else{var s=a.default.create(n,r);this.appendChild(s)}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===a.default.Scope.INLINE_BLOT){var r=a.default.create(this.statics.defaultChild);r.appendChild(e),e=r}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(f,e)}},{key:"lines",value:function(){return function e(t,n,r){var i=[],o=r;return t.children.forEachAt(n,r,(function(t,n,r){f(t)?i.push(t):t instanceof a.default.Container&&(i=i.concat(e(t,n,o))),o-=r})),i}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(s.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=s.default.sources.USER;"string"===typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(s.default.events.SCROLL_BEFORE_UPDATE,n,e),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(s.default.events.SCROLL_UPDATE,n,e)}}}]),t}(a.default.Scroll);m.blotName="scroll",m.className="ql-editor",m.tagName="DIV",m.defaultChild="block",m.allowedChildren=[c.default,l.BlockEmbed,p.default],t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=m(n(21)),s=m(n(11)),l=m(n(3)),c=m(n(2)),u=m(n(20)),d=m(n(0)),p=m(n(5)),h=m(n(10)),f=m(n(9));function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=(0,h.default)("quill:keyboard"),v=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",y=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.bindings={},Object.keys(r.options.bindings).forEach((function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&r.options.bindings[t]&&r.addBinding(r.options.bindings[t])})),r.addBinding({key:t.keys.ENTER,shiftKey:null},S),r.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},w),r.addBinding({key:t.keys.DELETE},{collapsed:!0},A)):(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},w),r.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},A)),r.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},E),r.addBinding({key:t.keys.DELETE},{collapsed:!1},E),r.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},w),r.listen(),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"match",value:function(e,t){return t=T(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),o(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=T(e);if(null==r||null==r.key)return b.warn("Attempted to add invalid keyboard binding",r);"function"===typeof t&&(t={handler:t}),"function"===typeof n&&(n={handler:n}),r=(0,l.default)(r,t,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var o=n.which||n.keyCode,a=(e.bindings[o]||[]).filter((function(e){return t.match(n,e)}));if(0!==a.length){var l=e.quill.getSelection();if(null!=l&&e.quill.hasFocus()){var c=e.quill.getLine(l.index),u=i(c,2),p=u[0],h=u[1],f=e.quill.getLeaf(l.index),m=i(f,2),g=m[0],b=m[1],v=0===l.length?[g,b]:e.quill.getLeaf(l.index+l.length),y=i(v,2),x=y[0],w=y[1],A=g instanceof d.default.Text?g.value().slice(0,b):"",E=x instanceof d.default.Text?x.value().slice(w):"",S={collapsed:0===l.length,empty:0===l.length&&p.length()<=1,format:e.quill.getFormat(l),offset:h,prefix:A,suffix:E};a.some((function(t){if(null!=t.collapsed&&t.collapsed!==S.collapsed)return!1;if(null!=t.empty&&t.empty!==S.empty)return!1;if(null!=t.offset&&t.offset!==S.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==S.format[e]})))return!1}else if("object"===r(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=S.format[e]:!1===t.format[e]?null==S.format[e]:(0,s.default)(t.format[e],S.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(S.prefix))&&!(null!=t.suffix&&!t.suffix.test(S.suffix))&&!0!==t.handler.call(e,l,S)}))&&n.preventDefault()}}}}))}}]),t}(f.default);function x(e,t){var n,r=e===y.keys.LEFT?"prefix":"suffix";return g(n={key:e,shiftKey:t,altKey:null},r,/^$/),g(n,"handler",(function(n){var r=n.index;e===y.keys.RIGHT&&(r+=n.length+1);var o=this.quill.getLeaf(r);return!(i(o,1)[0]instanceof d.default.Embed)||(e===y.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,p.default.sources.USER):this.quill.setSelection(n.index-1,p.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,p.default.sources.USER):this.quill.setSelection(n.index+n.length+1,p.default.sources.USER),!1)})),n}function w(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),r=i(n,1)[0],o={};if(0===t.offset){var a=this.quill.getLine(e.index-1),s=i(a,1)[0];if(null!=s&&s.length()>1){var l=r.formats(),c=this.quill.getFormat(e.index-1,1);o=u.default.attributes.diff(l,c)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,p.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(e.index-d,d,o,p.default.sources.USER),this.quill.focus()}}function A(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var r={},o=0,a=this.quill.getLine(e.index),s=i(a,1)[0];if(t.offset>=s.length()-1){var l=this.quill.getLine(e.index+1),c=i(l,1)[0];if(c){var d=s.formats(),h=this.quill.getFormat(e.index,1);r=u.default.attributes.diff(d,h)||{},o=c.length()}}this.quill.deleteText(e.index,n,p.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index+o-1,n,r,p.default.sources.USER)}}function E(e){var t=this.quill.getLines(e),n={};if(t.length>1){var r=t[0].formats(),i=t[t.length-1].formats();n=u.default.attributes.diff(i,r)||{}}this.quill.deleteText(e,p.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,p.default.sources.USER),this.quill.setSelection(e.index,p.default.sources.SILENT),this.quill.focus()}function S(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var r=Object.keys(t.format).reduce((function(e,n){return d.default.query(n,d.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",r,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==r[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],p.default.sources.USER))}))}function _(e){return{key:y.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=d.default.query("code-block"),r=t.index,o=t.length,a=this.quill.scroll.descendant(n,r),s=i(a,2),l=s[0],c=s[1];if(null!=l){var u=this.quill.getIndex(l),h=l.newlineIndex(c,!0)+1,f=l.newlineIndex(u+c+o),m=l.domNode.textContent.slice(h,f).split("\n");c=0,m.forEach((function(t,i){e?(l.insertAt(h+c,n.TAB),c+=n.TAB.length,0===i?r+=n.TAB.length:o+=n.TAB.length):t.startsWith(n.TAB)&&(l.deleteAt(h+c,n.TAB.length),c-=n.TAB.length,0===i?r-=n.TAB.length:o-=n.TAB.length),c+=t.length+1})),this.quill.update(p.default.sources.USER),this.quill.setSelection(r,o,p.default.sources.SILENT)}}}}function k(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],p.default.sources.USER)}}}function T(e){if("string"===typeof e||"number"===typeof e)return T({key:e});if("object"===("undefined"===typeof e?"undefined":r(e))&&(e=(0,a.default)(e,!1)),"string"===typeof e.key)if(null!=y.keys[e.key.toUpperCase()])e.key=y.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[v]=e.shortKey,delete e.shortKey),e}y.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},y.DEFAULTS={bindings:{bold:k("bold"),italic:k("italic"),underline:k("underline"),indent:{key:y.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",p.default.sources.USER)}},outdent:{key:y.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",p.default.sources.USER)}},"outdent backspace":{key:y.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",p.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,p.default.sources.USER)}},"indent code-block":_(!0),"outdent code-block":_(!1),"remove tab":{key:y.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,p.default.sources.USER)}},tab:{key:y.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new c.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,p.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,p.default.sources.SILENT)}},"list empty enter":{key:y.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,p.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,p.default.sources.USER)}},"checklist enter":{key:y.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=i(t,2),r=n[0],o=n[1],a=(0,l.default)({},r.formats(),{list:"checked"}),s=(new c.default).retain(e.index).insert("\n",a).retain(r.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:y.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),r=i(n,2),o=r[0],a=r[1],s=(new c.default).retain(e.index).insert("\n",t.format).retain(o.length()-a-1).retain(1,{header:null});this.quill.updateContents(s,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,r=this.quill.getLine(e.index),o=i(r,2),a=o[0],s=o[1];if(s>n)return!0;var l=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(e.index," ",p.default.sources.USER),this.quill.history.cutoff();var u=(new c.default).retain(e.index-s).delete(n+1).retain(a.length()-2-s).retain(1,{list:l});this.quill.updateContents(u,p.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,p.default.sources.SILENT)}},"code exit":{key:y.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=i(t,2),r=n[0],o=n[1],a=(new c.default).retain(e.index+r.length()-o-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,p.default.sources.USER)}},"embed left":x(y.keys.LEFT,!1),"embed left shift":x(y.keys.LEFT,!0),"embed right":x(y.keys.RIGHT,!1),"embed right shift":x(y.keys.RIGHT,!0)}},t.default=y,t.SHORTKEY=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=l(n(0)),s=l(n(7));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.selection=n,r.textNode=document.createTextNode(t.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"value",value:function(){}}]),o(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);for(var r=this,o=0;null!=r&&r.statics.scope!==a.default.Scope.BLOCK_BLOT;)o+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=t.CONTENTS.length,r.optimize(),r.formatAt(o,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),i=void 0,o=void 0,l=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var c=[e,n.start.offset,n.end.offset];i=c[0],o=c[1],l=c[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var u=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof s.default?(i=this.next.domNode,this.next.insertAt(0,u),this.textNode.data=t.CONTENTS):(this.textNode.data=u,this.parent.insertBefore(a.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=o){var d=[o,l].map((function(e){return Math.max(0,Math.min(i.data.length,e-1))})),p=r(d,2);return o=p[0],l=p[1],{startNode:i,startOffset:o,endNode:i,endOffset:l}}}}},{key:"update",value:function(e,t){var n=this;if(e.some((function(e){return"characterData"===e.type&&e.target===n.textNode}))){var r=this.restore();r&&(t.range=r)}}},{key:"value",value:function(){return""}}]),t}(a.default.Embed);c.blotName="cursor",c.className="ql-cursor",c.tagName="span",c.CONTENTS="\ufeff",t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(0)),i=n(4),o=a(i);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(r.default.Container);s.allowedChildren=[o.default,i.BlockEmbed,s],t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(0),s=(r=a)&&r.__esModule?r:{default:r},l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"value",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join("")):n}}]),t}(s.default.Attributor.Style),c=new s.default.Attributor.Class("color","ql-color",{scope:s.default.Scope.INLINE}),u=new l("color","color",{scope:s.default.Scope.INLINE});t.ColorAttributor=l,t.ColorClass=c,t.ColorStyle=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(6),s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return l(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);function l(e,t){var n=document.createElement("a");n.href=e;var r=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(r)>-1}s.blotName="link",s.tagName="A",s.SANITIZED_URL="about:blank",s.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=s,t.sanitize=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=s(n(23)),a=s(n(107));function s(e){return e&&e.__esModule?e:{default:e}}var l=0;function c(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var u=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case o.default.keys.ENTER:n.togglePicker();break;case o.default.keys.ESCAPE:n.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return i(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),c(this.label,"aria-expanded"),c(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n.addEventListener("keydown",(function(e){switch(e.keyCode){case o.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case o.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=a.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+l,l+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(n){var r=e.buildItem(n);t.appendChild(r),!0===n.selected&&e.selectItem(r)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"===typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"===typeof Event?"undefined":r(Event))){var i=document.createEvent("Event");i.initEvent("change",!0,!0),this.select.dispatchEvent(i)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=b(n(0)),i=b(n(5)),o=n(4),a=b(o),s=b(n(16)),l=b(n(25)),c=b(n(24)),u=b(n(35)),d=b(n(6)),p=b(n(22)),h=b(n(7)),f=b(n(55)),m=b(n(42)),g=b(n(23));function b(e){return e&&e.__esModule?e:{default:e}}i.default.register({"blots/block":a.default,"blots/block/embed":o.BlockEmbed,"blots/break":s.default,"blots/container":l.default,"blots/cursor":c.default,"blots/embed":u.default,"blots/inline":d.default,"blots/scroll":p.default,"blots/text":h.default,"modules/clipboard":f.default,"modules/history":m.default,"modules/keyboard":g.default}),r.default.register(a.default,s.default,c.default,d.default,p.default,h.default),t.default=i.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(e){this.domNode=e,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"===typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"===typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return r.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,i){var o=this.isolate(e,t);if(null!=r.query(n,r.Scope.BLOT)&&i)o.wrap(n,i);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);o.wrap(a),a.format(n,i)}},e.prototype.insertAt=function(e,t,n){var i=null==n?r.create("text",t):r.create(t,n),o=this.split(e);this.parent.insertBefore(i,o)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"===typeof e?r.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"===typeof e?r.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),i=n(32),o=n(33),a=n(1),s=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=r.default.keys(this.domNode),n=i.default.keys(this.domNode),s=o.default.keys(this.domNode);t.concat(n).concat(s).forEach((function(t){var n=a.query(t,a.Scope.ATTRIBUTE);n instanceof r.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;
vendor: 4,143 bytes, line 75
75Object.keys(this.attributes).forEach((function(n){var r=t.attributes[n].value(t.domNode);e.format(n,r)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function i(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){i(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(i(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=o},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function i(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[i(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[i(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[i(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n,this.modules={}}return r(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();i.DEFAULTS={modules:{}},i.themes={default:i},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=s(n(0)),a=s(n(7));
vendor: 7,220 bytes, line 75
75function s(e){return e&&e.__esModule?e:{default:e}}var l="\ufeff",c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(e){n.contentNode.appendChild(e)})),n.leftGuard=document.createTextNode(l),n.rightGuard=document.createTextNode(l),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,r=e.data.split(l).join("");if(e===this.leftGuard)if(this.prev instanceof a.default){var i=this.prev.length();this.prev.insertAt(i,r),t={startNode:this.prev.domNode,startOffset:i+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(o.default.create(n),this),t={startNode:n,startOffset:r.length};else e===this.rightGuard&&(this.next instanceof a.default?(this.next.insertAt(0,r),t={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(o.default.create(n),this.next),t={startNode:n,startOffset:r.length}));return e.data=l,t}},{key:"update",value:function(e,t){var n=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var r=n.restore(e.target);r&&(t.range=r)}}))}}]),t}(o.default.Embed);t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},a={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},s=new o.default.Attributor.Attribute("align","align",a),l=new o.default.Attributor.Class("align","ql-align",a),c=new o.default.Attributor.Style("align","text-align",a);t.AlignAttribute=s,t.AlignClass=l,t.AlignStyle=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},a=n(26),s=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),l=new a.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});t.BackgroundClass=s,t.BackgroundStyle=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},a={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},s=new o.default.Attributor.Attribute("direction","dir",a),l=new o.default.Attributor.Class("direction","ql-direction",a),c=new o.default.Attributor.Style("direction","direction",a);t.DirectionAttribute=s,t.DirectionClass=l,t.DirectionStyle=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(0),s=(r=a)&&r.__esModule?r:{default:r},l={scope:s.default.Scope.INLINE,whitelist:["serif","monospace"]},c=new s.default.Attributor.Class("font","ql-font",l),u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"value",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(s.default.Attributor.Style),d=new u("font","font-family",l);t.FontStyle=d,t.FontClass=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},a=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),s=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=a,t.SizeStyle=s},function(e,t,n){"use strict";e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(0)),o=a(n(5));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(o.default.events.EDITOR_CHANGE,(function(e,t,n,i){e!==o.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&i!==o.default.sources.USER?r.transform(t):r.record(t,n))}
vendor: 4,403 bytes, line 75
75)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],o.default.sources.USER),this.ignoreChange=!1;var r=l(n[e]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var i=this.stack.undo.pop();n=n.compose(i.undo),e=i.redo.compose(e)}else this.lastRecorded=r;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(a(n(9)).default);function l(e){var t=e.reduce((function(e,t){return e+=t.delete||0}),0),n=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"===typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=i.default.query(e,i.default.Scope.BLOCK)})))}(e)&&(n-=1),n}s.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=s,t.getLastChangeIndex=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=f(n(3)),a=f(n(2)),s=f(n(8)),l=f(n(23)),c=f(n(34)),u=f(n(59)),d=f(n(60)),p=f(n(28)),h=f(n(61));function f(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function b(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=[!1,"center","right","justify"],y=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],x=[!1,"serif","monospace"],w=["1","2","3",!1],A=["small",!1,"large","huge"],E=function(e){function t(e,n){m(this,t);var r=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return e.emitter.listenDOM("click",document.body,(function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEac
vendor: 13,344 bytes, line 75
75h((function(e){e.container.contains(n.target)||e.close()}))})),r}return b(t,e),r(t,[{key:"addModule",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){(e.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice(3),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"===typeof t[n])e.innerHTML=t[n];else{var r=e.value||"";null!=r&&t[n][r]&&(e.innerHTML=t[n][r])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&_(e,v),new d.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&_(e,y,"background"===n?"#ffffff":"#000000"),new u.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?_(e,x):e.classList.contains("ql-header")?_(e,w):e.classList.contains("ql-size")&&_(e,A)),new p.default(e)})),this.quill.on(s.default.events.EDITOR_CHANGE,(function(){n.pickers.forEach((function(e){e.update()}))}))}}]),t}(c.default);E.DEFAULTS=(0,o.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var r=e.quill.getSelection(!0);e.quill.updateContents((new a.default).retain(r.index).delete(r.length).insert({image:n.target.result}),s.default.sources.USER),e.quill.setSelection(r.index+1,s.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var S=function(e){function t(e,n){m(this,t);var r=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return b(t,e),r(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){l.default.match(t,"enter")?(e.save(),t.preventDefault()):l.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,s.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,s.default.sources.USER)),this.quill.root.scrollTop=t;break;case"video":e=function(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e}(e);case"formula":if(!e)break;var n=this.quill.getSelection(!0);if(null!=n){var r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),e,s.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",s.default.sources.USER),this.quill.setSelection(r+2,s.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(h.default);function _(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",t),e.appendChild(r)}))}t.BaseTooltip=S,t.default=E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,r=this.iterator();n=r();){var i=n.length();if(e<i||t&&e===i&&(null==n.next||0!==n.next.length()))return[n,e];e-=i}return[null,0]},e.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var r,i=this.find(e),o=i[0],a=e-i[1],s=this.iterator(o);(r=s())&&a<e+t;){var l=r.length();e>a?n(r,e-a,Math.min(t,a+l-e)):n(r,0,Math.min(l,e+t-a)),a+=l}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){for(var n,r=this.iterator();n=r();)t=e(t,n);return t},e}();t.default=r},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),o=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,a),n.attach(),n}return r(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,r,i){this.update(),e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.insertAt=function(t,n,r){this.update(),e.prototype.insertAt.call(this,t,n,r)},t.prototype.optimize=function(t,n){var r=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var a=[].slice.call(this.observer.takeRecords());a.length>0;)t.push(a.pop());for(var s=function(e,t){void 0===t&&(t=!0),null!=e&&e!==r&&null!=e.domNode.parentNode&&(null==e.domNode[o.DATA_KEY].mutations&&(e.domNode[o.DATA_KEY].mutations=[]),t&&s(e.parent))},l=function(e){null!=e.domNode[o.DATA_KEY]&&null!=e.domNode[o.DATA_KEY].mutations&&(e instanceof i.default&&e.children.forEach(l),e.optimize(n))},c=t,u=0;c.length>0;u+=1){if(u>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach((function(e){var t=o.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(s(o.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=o.find(e,!1);s(t,!1),t instanceof i.default&&t.children.forEach((function(e){s(e,!1)}))}))):"attributes"===e.type&&s(t.prev)),s(t))})),this.children.forEach(l),a=(c=[].slice.call(this.observer.takeRecords())).slice();a.length>0;)t.push(a.pop())}},t.prototype.update=function(t,n){var r=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map((function(e){var t=o.find(e.target,!0);return null==t?null:null==t.domNode[o.DATA_KEY].mutations?(t.domNode[o.DATA_KEY].mutations=[e],t):(t.domNode[o.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==r&&null!=e.domNode[o.DATA_KEY]&&e.update(e.domNode[o.DATA_KEY].mutations||[],n)})),null!=this.domNode[o.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[o.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=o.Scope.BLOCK_BLOT,t.tagName="DIV",t}(i.default);t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),o=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):(this.children.forEach((function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),o.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,r,i){null!=this.formats()[r]||o.query(r,o.Scope.ATTRIBUTE)?this.isolate(t,n).format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var i=this.next;i instanceof t&&i.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(r,i.formats())&&(i.moveChildren(this),i.remove())},t.blotName="inline",t.scope=o.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i.default);t.default=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),o=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){var r=o.query(t.blotName).tagName;if(n.tagName!==r)return e.formats.call(this,n)},t.prototype.format=function(n,r){null!=o.query(n,o.Scope.BLOCK)&&(n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,r,i){null!=o.query(r,o.Scope.BLOCK)?this.format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.insertAt=function(t,n,r){if(null==r||null!=o.query(n,o.Scope.INLINE))e.prototype.insertAt.call(this,t,n,r);else{var i=this.split(t),a=o.create(n,r);i.parent.insertBefore(a,i)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=o.Scope.BLOCK_BLOT,t.tagName="P",t}(i.default);t.default=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,r,i){0===t&&n===this.length()?this.format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=i},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();
vendor: 11,433 bytes, line 75
75Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),o=n(1),a=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return r(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,r){null==r?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,r)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=o.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=o.Scope.INLINE_BLOT,t}(i.default);t.default=a},function(e,t,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)===!t?t:i.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!==typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,i=arguments[1],o=0;o<r;o++)if(t=n[o],e.call(i,t,o,n))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var n=-1;function r(e,t,l){if(e==t)return e?[[0,e]]:[];(l<0||e.length<l)&&(l=null);var u=o(e,t),d=e.substring(0,u);u=a(e=e.substring(u),t=t.substring(u));var p=e.substring(e.length-u),h=function(e,t){var s;if(!e)return[[1,t]];if(!t)return[[n,e]];var l=e.length>t.length?e:t,c=e.length>t.length?t:e,u=l.indexOf(c);if(-1!=u)return s=[[1,l.substring(0,u)],[0,c],[1,l.substring(u+c.length)]],e.length>t.length&&(s[0][0]=s[2][0]=n),s;if(1==c.length)return[[n,e],[1,t]];var d=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;function i(e,t,n){for(var r,i,s,l,c=e.substring(n,n+Math.floor(e.length/4)),u=-1,d="";-1!=(u=t.indexOf(c,u+1));){var p=o(e.substring(n),t.substring(u)),h=a(e.substring(0,n),t.substring(0,u));d.length<h+p&&(d=t.substring(u-h,u)+t.substring(u,u+p),r=e.substring(0,n-h),i=e.substring(n+p),s=t.substring(0,u-h),l=t.substring(u+p))}return 2*d.length>=e.length?[r,i,s,l,d]:null}var s,l,c,u,d,p=i(n,r,Math.ceil(n.length/4)),h=i(n,r,Math.ceil(n.length/2));if(!p&&!h)return null;s=h?p&&p[4].length>h[4].length?p:h:p,e.length>t.length?(l=s[0],c=s[1],u=s[2],d=s[3]):(u=s[0],d=s[1],l=s[2],c=s[3]);var f=s[4];return[l,c,u,d,f]}(e,t);if(d){var p=d[0],h=d[1],f=d[2],m=d[3],g=d[4],b=r(p,f),v=r(h,m);return b.concat([[0,g]],v)}return function(e,t){for(var r=e.length,o=t.length,a=Math.ceil((r+o)/2),s=a,l=2*a,c=new Array(l),u=new Array(l),d=0;d<l;d++)c[d]=-1,u[d]=-1;c[s+1]=0,u[s+1]=0;for(var p=r-o,h=p%2!=0,f=0,m=0,g=0,b=0,v=0;v<a;v++){for(var y=-v+f;y<=v-m;y+=2){for(var x=s+y,w=(k=y==-v||y!=v&&c[x-1]<c[x+1]?c[x+1]:c[x-1]+1)-y;k<r&&w<o&&e.charAt(k)==t.charAt(w);)k++,w++;if(c[x]=k,k>r)m+=2;else if(w>o)f+=2;else if(h&&(S=s+p-y)>=0&&S<l&&-1!=u[S]&&k>=(E=r-u[S]))return i(e,t,k,w)}for(var A=-v+g;A<=v-b;A+=2){for(var E,S=s+A,_=(E=A==-v||A!=v&&u[S-1]<u[S+1]?u[S+1]:u[S-1]+1)-A;E<r&&_<o&&e.charAt(r-E-1)==t.charAt(o-_-1);)E++,_++;if(u[S]=E,E>r)b+=2;else if(_>o)g+=2;else if(!h){var k;if((x=s+p-A)>=0&&x<l&&-1!=c[x])if(w=s+(k=c[x])-x,k>=(E=r-E))return i(e,t,k,w)}}}return[[n,e],[1,t]]}(e,t)}(e=e.substring(0,e.length-u),t=t.substring(0,t.length-u));return d&&h.unshift([0,d]),p&&h.push([0,p]),s(h),null!=l&&(h=function(e,t){var r=function(e,t){if(0===t)return[0,e];for(var r=0,i=0;i<e.length;i++){var o=e[i];if(o[0]===n||0===o[0]){var a=r+o[1].length;if(t===a)return[i+1,e];if(t<a){e=e.slice();var s=t-r,l=[o[0],o[1].slice(0,s)],c=[o[0],o[1].slice(s)];return e.splice(i,1,l,c),[i+1,e]}r=a}}throw new Error("cursor_pos is out of bounds!")}(e,t),i=r[1],o=r[0],a=i[o],s=i[o+1];if(null==a)return e;if(0!==a[0])return e;if(null!=s&&a[1]+s[1]===s[1]+a[1])return i.splice(o,2,s,a),c(i,o,2);if(null!=s&&0===s[1].indexOf(a[1])){i.splice(o,2,[s[0],a[1]],[0,a[1]]);var l=s[1].slice(a[1].length);return l.length>0&&i.splice(o+2,0,[s[0],l]),c(i,o,3)}return e}(h,l)),h=function(e){for(var t=!1,r=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},i=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},o=2;o<e.length;o+=1)0===e[o-2][0]&&i(e[o-2][1])&&e[o-1][0]===n&&r(e[o-1][1])&&1===e[o][0]&&r(e[o][1])&&(t=!0,e[o-1][1]=e[o-2][1].slice(-1)+e[o-1][1],e[o][1]=e[o-2][1].slice(-1)+e[o][1],e[o-2][1]=e[o-2][1].slice(0,-1));if(!t)return e;var a=[];for(o=0;o<e.length;o+=1)e[o][1].length>0&&a.push(e[o]);return a}(h)}function i(e,t,n,i){var o=e.substring(0,n),a=t.substring(0,i),s=e.substring(n),l=t.substring(i),c=r(o,a),u=r(s,l);return c.concat(u)}function o(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n<i;)e.substring(o,i)==t.substring(o,i)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function a(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n<i;)e.substring(e.length-i,e.length-o)==t.substring(t.length-i,t.length-o)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function s(e){e.push([0,""]);for(var t,r=0,i=0,l=0,c="",u="";r<e.length;)switch(e[r][0]){case 1:l++,u+=e[r][1],r++;break;case n:i++,c+=e[r][1],r++;break;case 0:i+l>1?(0!==i&&0!==l&&(0!==(t=o(u,c))&&(r-i-l>0&&0==e[r-i-l-1][0]?e[r-i-l-1][1]+=u.substring(0,t):(e.splice(0,0,[0,u.substring(0,t)]),r++),u=u.substring(t),c=c.substring(t)),0!==(t=a(u,c))&&(e[r][1]=u.substring(u.length-t)+e[r][1],u=u.substring(0,u.length-t),c=c.substring(0,c.length-t))),0===i?e.splice(r-l,i+l,[1,u]):0===l?e.splice(r-i,i+l,[n,c]):e.splice(r-i-l,i+l,[n,c],[1,u]),r=r-i-l+(i?1:0)+(l?1:0)+1):0!==r&&0==e[r-1][0]?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,l=0,i=0,c="",u=""}""===e[e.length-1][1]&&e.pop();var d=!1;for(r=1;r<e.length-1;)0==e[r-1][0]&&0==e[r+1][0]&&(e[r][1].substring(e[r][1].length-e[r-1][1].length)==e[r-1][1]?(e[r][1]=e[r-1][1]+e[r][1].substring(0,e[r][1].length-e[r-1][1].length),e[r+1][1]=e[r-1][1]+e[r+1][1],e.splice(r-1,1),d=!0):e[r][1].substring(0,e[r+1][1].length)==e[r+1][1]&&(e[r-1][1]+=e[r+1][1],e[r][1]=e[r][1].substring(e[r+1][1].length)+e[r+1][1],e.splice(r+1,1),d=!0)),r++;d&&s(e)}var l=r;function c(e,t,n){for(var r=t+n-1;r>=0&&r>=t-1;r--)if(r+1<e.length){var i=e[r],o=e[r+1];i[0]===o[1]&&e.splice(r,2,[i[0],i[1]+o[1]])}return e}l.INSERT=1,l.DELETE=n,l.EQUAL=0,e.exports=l},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"===typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function i(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?r:i).supported=r,t.unsupported=i},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function i(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(r=!1)),a.prototype.eventNames=function(){var e,t,i=[];if(0===this._eventsCount)return i;for(t in e=this._events)n.call(e,t)&&i.push(r?t.slice(1):t);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},a.prototype.listeners=function(e,t){var n=r?r+e:e,i=this._events[n];if(t)return!!i;if(!i)return[];if(i.fn)return[i.fn];for(var o=0,a=i.length,s=new Array(a);o<a;o++)s[o]=i[o].fn;return s},a.prototype.emit=function(e,t,n,i,o,a){var s=r?r+e:e;if(!this._events[s])return!1;var l,c,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,i),!0;case 5:return u.fn.call(u.context,t,n,i,o),!0;case 6:return u.fn.call(u.context,t,n,i,o,a),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var p,h=u.length;for(c=0;c<h;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,n);break;case 4:u[c].fn.call(u[c].context,t,n,i);break;default:if(!l)for(p=1,l=new Array(d-1);p<d;p++)l[p-1]=arguments[p];u[c].fn.apply(u[c].context,l)}}return!0},a.prototype.on=function(e,t,n){var i=new o(t,n||this),a=r?r+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):(this._events[a]=i,this._eventsCount++),this},a.prototype.once=function(e,t,n){var i=new o(t,n||this,!0),a=r?r+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):(this._events[a]=i,this._eventsCount++),this},a.prototype.removeListener=function(e,t,n,o){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return 0===--this._eventsCount?this._events=new i:delete this._events[a],this;var s=this._events[a];if(s.fn)s.fn!==t||o&&!s.once||n&&s.context!==n||(0===--this._eventsCount?this._events=new i:delete this._events[a]);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==t||o&&!s[l].once||n&&s[l].context!==n)&&c.push(s[l]);c.length?this._events[a]=1===c.length?c[0]:c:0===--this._eventsCount?this._events=new i:delete this._events[a]}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&(0===--this._eventsCount?this._events=new i:delete this._events[t])):(this._events=new i,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=r,a.EventEmitter=a,"undefined"!==typeof e&&(e.exports=a)},function(e,t,n){"use strict";
vendor: 5,223 bytes, line 75
75Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=y(n(3)),s=y(n(2)),l=y(n(0)),c=y(n(5)),u=y(n(10)),d=y(n(9)),p=n(36),h=n(37),f=y(n(13)),m=n(26),g=n(38),b=n(39),v=n(40);function y(e){return e&&e.__esModule?e:{default:e}}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=(0,u.default)("quill:clipboard"),A="__ql-matcher",E=[[Node.TEXT_NODE,L],[Node.TEXT_NODE,M],["br",function(e,t){return O(t,"\n")||t.insert("\n"),t}],[Node.ELEMENT_NODE,M],[Node.ELEMENT_NODE,j],[Node.ELEMENT_NODE,D],[Node.ELEMENT_NODE,P],[Node.ELEMENT_NODE,function(e,t){var n={},r=e.style||{};return r.fontStyle&&"italic"===C(e).fontStyle&&(n.italic=!0),r.fontWeight&&(C(e).fontWeight.startsWith("bold")||parseInt(C(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=T(t,n)),parseFloat(r.textIndent||0)>0&&(t=(new s.default).insert("\t").concat(t)),t}],["li",function(e,t){var n=l.default.query(e);if(null==n||"list-item"!==n.blotName||!O(t,"\n"))return t;for(var r=-1,i=e.parentNode;!i.classList.contains("ql-clipboard");)"list"===(l.default.query(i)||{}).blotName&&(r+=1),i=i.parentNode;return r<=0?t:t.compose((new s.default).retain(t.length()-1).retain(1,{indent:r}))}],["b",R.bind(R,"bold")],["i",R.bind(R,"italic")],["style",function(){return new s.default}]],S=[p.AlignAttribute,g.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),_=[p.AlignStyle,h.BackgroundStyle,m.ColorStyle,g.DirectionStyle,b.FontStyle,v.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),k=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],E.concat(r.options.matchers).forEach((function(e){var t=i(e,2),o=t[0],a=t[1];(n.matchVisual||a!==D)&&r.addMatcher(o,a)})),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"===typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[f.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new s.default).insert(n,x({},f.default.blotName,t[f.default.blotName]))}var r=this.prepareMatching(),o=i(r,2),a=o[0],l=o[1],c=I(this.container,a,l);return O(c,"\n")&&null==c.ops[c.ops.length-1].attributes&&(c=c.compose((new s.default).retain(c.length()-1).delete(1))),w.log("convert",this.container.innerHTML,c),this.container.innerHTML="",c}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.default.sources.API;if("string"===typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,c.default.sources.SILENT);else{var r=this.convert(t);this.quill.updateContents((new s.default).retain(e).concat(r),n),this.quill.setSelection(e+r.length(),c.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new s.default).retain(n.index),i=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(c.default.sources.SILENT),setTimeout((function(){r=r.concat(t.convert()).delete(n.length),t.quill.updateContents(r,c.default.sources.USER),t.quill.setSelection(r.length()-n.length,c.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=i,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];
vendor: 2,755 bytes, line 75
75return this.matchers.forEach((function(r){var o=i(r,2),a=o[0],s=o[1];switch(a){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:t.push(s);break;default:[].forEach.call(e.container.querySelectorAll(a),(function(e){e[A]=e[A]||[],e[A].push(s)}))}})),[t,n]}}]),t}(d.default);function T(e,t,n){return"object"===("undefined"===typeof t?"undefined":r(t))?Object.keys(t).reduce((function(e,n){return T(e,n,t[n])}),e):e.reduce((function(e,r){return r.attributes&&r.attributes[t]?e.push(r):e.insert(r.insert,(0,a.default)({},x({},t,n),r.attributes))}),new s.default)}function C(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function O(e,t){for(var n="",r=e.ops.length-1;r>=0&&n.length<t.length;--r){var i=e.ops[r];if("string"!==typeof i.insert)break;n=i.insert+n}return n.slice(-1*t.length)===t}function N(e){if(0===e.childNodes.length)return!1;var t=C(e);return["block","list-item"].indexOf(t.display)>-1}function I(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new s.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(r,i){var o=I(i,t,n);return i.nodeType===e.ELEMENT_NODE&&(o=t.reduce((function(e,t){return t(i,e)}),o),o=(i[A]||[]).reduce((function(e,t){return t(i,e)}),o)),r.concat(o)}),new s.default):new s.default}function R(e,t,n){return T(n,e,!0)}function P(e,t){var n=l.default.Attributor.Attribute.keys(e),r=l.default.Attributor.Class.keys(e),i=l.default.Attributor.Style.keys(e),o={};return n.concat(r).concat(i).forEach((function(t){var n=l.default.query(t,l.default.Scope.ATTRIBUTE);null!=n&&(o[n.attrName]=n.value(e),o[n.attrName])||(null==(n=S[t])||n.attrName!==t&&n.keyName!==t||(o[n.attrName]=n.value(e)||void 0),null==(n=_[t])||n.attrName!==t&&n.keyName!==t||(n=_[t],o[n.attrName]=n.value(e)||void 0))})),Object.keys(o).length>0&&(t=T(t,o)),t}function j(e,t){var n=l.default.query(e);if(null==n)return t;if(n.prototype instanceof l.default.Embed){var r={},i=n.value(e);null!=i&&(r[n.blotName]=i,t=(new s.default).insert(r,n.formats(e)))}else"function"===typeof n.formats&&(t=T(t,n.blotName,n.formats(e)));return t}function M(e,t){return O(t,"\n")||(N(e)||t.length()>0&&e.nextSibling&&N(e.nextSibling))&&t.insert("\n"),t}function D(e,t){if(N(e)&&null!=e.nextElementSibling&&!O(t,"\n\n")){var n=e.offsetHeight+parseFloat(C(e).marginTop)+parseFloat(C(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function L(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!C(e.parentNode).whiteSpace.startsWith("pre")){var r=function(e,t){return(t=t.replace(/[^\u
vendor: 15,451 bytes, line 75
7500a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==e.previousSibling&&N(e.parentNode)||null!=e.previousSibling&&N(e.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==e.nextSibling&&N(e.parentNode)||null!=e.nextSibling&&N(e.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return t.insert(n)}k.DEFAULTS={matchers:[],matchVisual:!0},t.default=k,t.matchAttributor=P,t.matchBlot=j,t.matchNewline=M,t.matchSpacing=D,t.matchText=L},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(6),s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);s.blotName="bold",s.tagName=["STRONG","B"],t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=u(n(2)),a=u(n(0)),s=u(n(5)),l=u(n(10)),c=u(n(9));function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var p=(0,l.default)("quill:toolbar"),h=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i,o=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(o.options.container)){var a=document.createElement("div");m(a,o.options.container),e.container.parentNode.insertBefore(a,e.container),o.container=a}else"string"===typeof o.options.container?o.container=document.querySelector(o.options.container):o.container=o.options.container;return o.container instanceof HTMLElement?(o.container.classList.add("ql-toolbar"),o.controls=[],o.handlers={},Object.keys(o.options.handlers).forEach((function(e){o.addHandler(e,o.options.handlers[e])})),[].forEach.call(o.container.querySelectorAll("button, select"),(function(e){o.attach(e)})),o.quill.on(s.default.events.EDITOR_CHANGE,(function(e,t){e===s.default.events.SELECTION_CHANGE&&o.update(t)})),o.quill.on(s.default.events.SCROLL_OPTIMIZE,(function(){var e=o.quill.selection.getRange(),t=r(e,1)[0];o.update(t)})),o):(i=p.error("Container required for toolbar",o.options),d(o,i))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(n){if(n=n.slice(3),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void p.warn("ignoring attaching to disabled format",n,e);if(null==a.default.query(n))return void p.warn("ignoring attaching to nonexistent format",n,e)}var i="SELECT"===e.tagName?"change":"click";e.addEventListener(i,(function(i){var l=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var c=e.options[e.selectedIndex];l=!c.hasAttribute("selected")&&(c.value||!1)}else l=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),i.preventDefault();t.quill.focus();var u=t.quill.selection.getRange(),d=r(u,1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,l);else if(a.default.query(n).prototype instanceof a.default.Embed){if(!(l=prompt("Enter "+n)))return;t.quill.updateContents((new o.default).retain(d.index).delete(d.length).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,l)),s.default.sources.USER)}else t.quill.format(n,l,s.default.sources.USER);t.update(d)})),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var i=r(n,2),o=i[0],a=i[1];if("SELECT"===a.tagName){var s=void 0;if(null==e)s=null;else if(null==t[o])s=a.querySelector("option[selected]");else if(!Array.isArray(t[o])){var l=t[o];"string"===typeof l&&(l=l.replace(/\"/g,'\\"')),s=a.querySelector('option[value="'+l+'"]')}null==s?(a.value="",a.selectedIndex=-1):s.selected=!0}else if(null==e)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var c=t[o]===a.getAttribute("value")||null!=t[o]&&t[o].toString()===a.getAttribute("value")||null==t[o]&&!a.getAttribute("value");a.classList.toggle("ql-active",c)}else a.classList.toggle("ql-active",null!=t[o])}))}}]),t}(c.default);function f(e,t,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+t),null!=n&&(r.value=n),e.appendChild(r)}function m(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"===typeof e)f(n,e);else{var t=Object.keys(e)[0],r=e[t];Array.isArray(r)?function(e,t,n){var r=document.createElement("select");r.classList.add("ql-"+t),n.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),r.appendChild(t)})),e.appendChild(r)}(n,t,r):f(n,t,r)}})),e.appendChild(n)}))}h.DEFAULTS={},h.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=a.default.query(t,a.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,s.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",s.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,s.default.sources.USER),this.quill.format("direction",e,s.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0);if("+1"===e||"-1"===e){var i="+1"===e?1:-1;"rtl"===n.direction&&(i*=-1),this.quill.format("indent",r+i,s.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,s.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,s.default.sources.USER):this.quill.format("list","unchecked",s.default.sources.USER):this.quill.format("list",e,s.default.sources.USER)}}},t.default=h,t.addControls=m},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(28),s=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.label.innerHTML=n,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"buildItem",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var r=this.label.querySelector(".ql-color-label"),i=e&&e.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=i:r.style.fill=i)}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(28),s=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=n[e.getAttribute("data-value")||""]})),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"selectItem",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"})),this.hide()}return r(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect(),o=0;if(i.right>r.right&&(o=r.right-i.right,this.root.style.left=t+o+"px"),i.left<r.left&&(o=r.left-i.left,this.root.style.left=t+o+"px"),i.bottom>r.bottom){var a=i.bottom-i.top,s=e.bottom-e.top+a;this.root.style.top=n-s+"px",this.root.classList.add("ql-flip")}return o}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=h(n(3)),s=h(n(8)),l=n(43),c=h(l),u=h(n(27)),d=n(15),p=h(n(41));
vendor: 4,316 bytes, line 75
75function h(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function g(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var b=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],v=function(e){function t(e,n){f(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=b);var r=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-snow"),r}return g(t,e),o(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),p.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),p.default),this.tooltip=new y(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,n){e.handlers.link.call(e,!n.format.link)}))}}]),t}(c.default);v.DEFAULTS=(0,a.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var y=function(e){function t(e,n){f(this,t);var r=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return g(t,e),o(t,[{key:"listen",value:function(){var e=this;i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,s.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(s.default.events.SELECTION_CHANGE,(function(t,n,i){if(null!=t){if(0===t.length&&i===s.default.sources.USER){var o=e.quill.scroll.descendant(u.default,t.index),a=r(o,2),l=a[0],c=a[1];if(null!=l){e.linkRange=new d.Range(t.index-c,l.length());var p=u.default.formats(l.domNode);return e.preview.textContent=p,e.preview.setAttribute("href",p),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(l.BaseTooltip);y.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=M(n(29)),i=n(36),o=n(38),a=n(64),s=M(n(65)),l=M(n(66)),c=n(67),u=M(c),d=n(37),p=n(26),h=n(39),f=n(40),m=M(n(56)),g=M(n(68)),b=M(n(27)),v=M(n(69)),y=M(n(70)),x=M(n(71)),w=M(n(72)),A=M(n(73)),E=n(13),S=M(E),_=M(n(74)),k=M(n(75)),T=M(n(57)),C=M(n(41)),O=M(n(28)),N=M(n(59)),I=M(n(60)),R=M(n(61)),P=M(n(108)),j=M(n(62));function M(e){return e&&e.__esModule?e:{default:e}}r.default.register({"attributors/attribute/direction":o.DirectionAttribute,"attributors/class/align":i.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":p.ColorClass,"attributors/class/direction":o.DirectionClass,"attributors/class/font":h.FontClass,"attributors/class/size":f.SizeClass,"attributors/style/align":i.AlignStyle,"attributors/style/background":d.Backgroun
vendor: 18,408 bytes, line 75
75dStyle,"attributors/style/color":p.ColorStyle,"attributors/style/direction":o.DirectionStyle,"attributors/style/font":h.FontStyle,"attributors/style/size":f.SizeStyle},!0),r.default.register({"formats/align":i.AlignClass,"formats/direction":o.DirectionClass,"formats/indent":a.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":p.ColorStyle,"formats/font":h.FontClass,"formats/size":f.SizeClass,"formats/blockquote":s.default,"formats/code-block":S.default,"formats/header":l.default,"formats/list":u.default,"formats/bold":m.default,"formats/code":E.Code,"formats/italic":g.default,"formats/link":b.default,"formats/script":v.default,"formats/strike":y.default,"formats/underline":x.default,"formats/image":w.default,"formats/video":A.default,"formats/list/item":c.ListItem,"modules/formula":_.default,"modules/syntax":k.default,"modules/toolbar":T.default,"themes/bubble":P.default,"themes/snow":j.default,"ui/icons":C.default,"ui/picker":O.default,"ui/icon-picker":I.default,"ui/color-picker":N.default,"ui/tooltip":R.default},!0),t.default=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(0),s=(r=a)&&r.__esModule?r:{default:r},l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var r=this.value(e)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(e),!0):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(s.default.Attributor.Class),c=new l("indent","ql-indent",{scope:s.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(4),o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=i)&&r.__esModule?r:{default:r}).default);o.blotName="blockquote",o.tagName="blockquote",t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(4),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(((r=o)&&r.__esModule?r:{default:r}).default);a.blotName="header",a.tagName=["H1","H2","H3","H4","H5","H6"],t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=l(n(0)),a=l(n(4)),s=l(n(25));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function d(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),r(t,[{key:"format",value:function(e,n){e!==h.blotName||n?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(o.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:i(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(a.default);p.blotName="list-item",p.tagName="LI";var h=function(e){function t(e){c(this,t);var n=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=function(t){if(t.target.parentNode===e){var r=n.statics.formats(e),i=o.default.find(t.target);"checked"===r?i.format("list","unchecked"):"unchecked"===r&&i.format("list","checked")}};return e.addEventListener("touchstart",r),e.addEventListener("mousedown",r),n}return d(t,e),r(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",r=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return"checked"!==e&&"unchecked"!==e||r.setAttribute("data-checked","checked"===e),r}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),r(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return e={},t=this.statics.blotName,n=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"insertBefore",value:function(e,n){if(e instanceof p)i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var r=null==n?this.length():n.offset(this),o=this.split(r);o.parent.insertBefore(e,o)}}},{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=o.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(s.default);h.blotName="list",h.scope=o.default.Scope.BLOCK_BLOT,h.tagName=["OL","UL"],h.defaultChild="list-item",h.allowedChildren=[p],t.ListItem=p,t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(56),o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=i)&&r.__esModule?r:{default:r}).default);o.blotName="italic",o.tagName=["EM","I"],t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(6),s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);s.blotName="script",s.tagName=["SUB","SUP"],t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(6),o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=i)&&r.__esModule?r:{default:r}).default);o.blotName="strike",o.tagName="S",t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(6),o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=i)&&r.__esModule?r:{default:r}).default);o.blotName="underline",o.tagName="U",t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(0),s=(r=a)&&r.__esModule?r:{default:r},l=n(27),c=["alt","height","width"],u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"format",value:function(e,n){c.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"===typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return c.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,l.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(s.default.Embed);u.blotName="image",u.tagName="IMG",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(4),s=n(27),l=(r=s)&&r.__esModule?r:{default:r},c=["height","width"],u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"format",value:function(e,n){c.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return c.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return l.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.BlockEmbed);u.blotName="video",u.className="ql-video",u.tagName="IFRAME",t.default=u},function(e,t,n){"use strict";
vendor: 4,746 bytes, line 75
75Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=l(n(35)),a=l(n(5)),s=l(n(9));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function d(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),r(t,null,[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"===typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(o.default);p.blotName="formula",p.className="ql-formula",p.tagName="SPAN";var h=function(e){function t(){c(this,t);var e=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return d(t,e),r(t,null,[{key:"register",value:function(){a.default.register(p,!0)}}]),t}(s.default);t.FormulaBlot=p,t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=l(n(0)),a=l(n(5)),s=l(n(9));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function d(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),r(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(l(n(13)).default);p.className="ql-syntax";var h=new o.default.Attributor.Class("token","hljs",{scope:o.default.Scope.INLINE}),f=function(e){function t(e,n){c(this,t);var r=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!==typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var i=null;return r.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(i),i=setTimeout((function(){r.highlight(),i=null}),r.options.interval)})),r.highlight(),r}return d(t,e),r(t,null,[{key:"register",value:function(){a.default.register(h,!0),a.default.register(p,!0)}}]),r(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(a.default.sources.USER);var t=this.quill.getSelection();
vendor: 4,581 bytes, line 75
75this.quill.scroll.descendants(p).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(a.default.sources.SILENT),null!=t&&this.quill.setSelection(t,a.default.sources.SILENT)}}}]),t}(s.default);f.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=p,t.CodeToken=h,t.default=f},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line>
75 <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,n){"use strict";
vendor: 5,571 bytes, line 75
75Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var r=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=d(n(3)),a=d(n(8)),s=n(43),l=d(s),c=n(15),u=d(n(41));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],g=function(e){function t(e,n){p(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=m);var r=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-bubble"),r}return f(t,e),i(t,[{key:"extendToolbar",value:function(e){this.tooltip=new b(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),u.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),u.default)}}]),t}(l.default);g.DEFAULTS=(0,o.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var b=function(e){function t(e,n){p(this,t);var r=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.on(a.default.events.EDITOR_CHANGE,(function(e,t,n,i){if(e===a.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&i===a.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var o=r.quill.getLines(t.index,t.length);if(1===o.length)r.position(r.quill.getBounds(t));else{var s=o[o.length-1],l=r.quill.getIndex(s),u=Math.min(s.length()-1,t.index+t.length-l),d=r.quill.getBounds(new c.Range(l,u));r.position(d)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return f(t,e),i(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),i=this.root.querySelector(".ql-tooltip-arrow");if(i.style.marginLeft="",0===n)return n;i.style.marginLeft=-1*n-i.offsetWidth/2+"px"}}]),t}(s.BaseTooltip);b.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=b,t.default=g},function(e,t,n){e.exports=n(63)}]).default},e.exports=t()},41377:function(e,t,n){"use strict";var r,i=n(9950),o=(r=i)&&"object"===typeof r&&"default"in r?r.default:r,a=n(62366),s=new a,l=s.getBrowser(),c=s.getCPU(),u=s.getDevice(),d=s.getEngine(),p=s.getOS(),h=s.getUA(),f=function(e){return s.setUA(e)},m=function(e){if(e){var t=new a(e);return{UA:t,browser:t.getBrowser(),cpu:t.getCPU(),device:t.getDevice(),engine:t.getEngine(),os:t.getOS(),ua:t.getUA(),setUserAgent:function(e){return t.setUA(e)}}}console.error("No userAgent string was provided")},g=Object.freeze({ClientUAInstance:s,browser:l,cpu:c,device:u,engine:d,os:p,ua:h,setUa:f,parseUserAgent:m});function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){return v="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(){return w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w.apply(this,arguments)}function A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},A(e)}
vendor: 5,704 bytes, line 75
75function E(e,t){return E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},E(e,t)}function S(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var C="mobile",O="tablet",N="smarttv",I="console",R="wearable",P="embedded",j=void 0,M={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},D={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},L={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},F=function(e){return e||(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none")},B=function(){return!("undefined"===typeof window||!window.navigator&&!navigator)&&(window.navigator||navigator)},U=function(e){var t=B();return t&&t.platform&&(-1!==t.platform.indexOf(e)||"MacIntel"===t.platform&&t.maxTouchPoints>1&&!window.MSStream)},z=function(e,t,n,r){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{vendor:F(t.vendor),model:F(t.model),os:F(n.name),osVersion:F(n.version),ua:F(r)})};var H=function(e){return e.type===C},$=function(e){return e.type===O},V=function(e){var t=e.type;return t===C||t===O},G=function(e){return e.type===N},W=function(e){return e.type===j},q=function(e){return e.type===R},Y=function(e){return e.type===I},K=function(e){return e.type===P},X=function(e){var t=e.vendor;return F(t)},Z=function(e){var t=e.model;return F(t)},Q=function(e){var t=e.type;return F(t,"browser")},J=function(e){return e.name===D.Android},ee=function(e){return e.name===D.Windows},te=function(e){return e.name===D.MAC_OS},ne=function(e){return e.name===D.WindowsPhone},re=function(e){return e.name===D.IOS},ie=function(e){var t=e.version;return F(t)},oe=function(e){var t=e.name;return F(t)},ae=function(e){return e.name===M.Chrome},se=function(e){return e.name===M.Firefox},le=function(e){return e.name===M.Chromium},ce=function(e){return e.name===M.Edge},ue=function(e){return e.name===M.Yandex},de=function(e){var t=e.name;return t===M.Safari||t===M.MobileSafari},pe=function(e){return e.name===M.MobileSafari},he=function(e){return e.name===M.Opera},fe=function(e){var t=e.name;return t===M.InternetExplorer||t===M.Ie},me=function(e){return e.name===M.MIUI},ge=function(e){return e.name===M.SamsungBrowser},be=function(e){var t=e.version;return F(t)},ve=function(e){var t=e.major;return F(t)},ye=function(e){var t=e.name;return F(t)},xe=function(e){var t=e.name;return F(t)},we=function(e){var t=e.version;return F(t)},Ae=function(){var e=B(),t=e&&e.userAgent&&e.userAgent.toLowerCase();return"string"===typeof t&&/electron/.test(t)},Ee=function(e){return"string"===typeof e&&-1!==e.indexOf("Edg/")},Se=function(){var e=B();return e&&(/iPad|iPhone|iPod/.test(e.platform)||"MacIntel"===e.platform&&e.maxTouchPoints>1)&&!window.MSStream},_e=function(){return U("iPad")},ke=function(){return U("iPhone")},Te=function(){return U("iPod")},Ce=function(e){return F(e)};function Oe(e){var t=e||g,n=t.device,r=t.browser,i=t.os,o=t.engine,a=t.ua;return{isSmartTV:G(n),isConsole:Y(n),isWearable:q(n),isEmbedded:K(n),isMobileSafari:pe(r)||_e(),isChromium:le(r),isMobile:V(n)||_e(),isMobileOnly:H(n),isTablet:$(n)||_e(),isBrowser:W(n),isDesktop:W(n),isAndroid:J(i),isWinPhone:ne(i),isIOS:re(i)||_e(),isChrome:ae(r),isFirefox:se(r),isSafari:de(r),isOpera:he(r),isIE:fe(r),osVersion:ie(i),osName:oe(i),fullBrowserVersion:be(r),browserVersion:ve(r),browserName:ye(r),mobileVendor:X(n),mobileModel:Z(n),engineName:xe(o),engineVersion:we(o),getUA:Ce(a),isEdge:ce(r)||Ee(a),isYandex:ue(r),deviceType:Q(n),isIOS13:Se(),isIPad13:_e(),isIPhone13:ke(),isIPod13:Te(),isElectron:Ae(),isEdgeChromium:Ee(a),isLegacyEdge:ce(r)&&!Ee(a),isWindows:ee(i),isMacOs:te(i),isMIUI:me(r),isSamsungBrowser:ge(r)}}var Ne=G(u),Ie=Y(u),Re=q(u),Pe=K(u),je=pe(l)||_e(),Me=le(l),De=V(u)||_e(),Le=H(u),Fe=$(u)||_e(),Be=W
vendor: 5,210 bytes, line 75
75(u),Ue=W(u),ze=J(p),He=ne(p),$e=re(p)||_e(),Ve=ae(l),Ge=se(l),We=de(l),qe=he(l),Ye=fe(l),Ke=ie(p),Xe=oe(p),Ze=be(l),Qe=ve(l),Je=ye(l),et=X(u),tt=Z(u),nt=xe(d),rt=we(d),it=Ce(h),ot=ce(l)||Ee(h),at=ue(l),st=Q(u),lt=Se(),ct=_e(),ut=ke(),dt=Te(),pt=Ae(),ht=Ee(h),ft=ce(l)&&!Ee(h),mt=ee(p),gt=te(p),bt=me(l),vt=ge(l);function yt(e){var t=e||window.navigator.userAgent;return m(t)}t.S7=function(e){var t=e.renderWithFragment,n=e.children,r=S(e,["renderWithFragment","children"]);return Be?t?o.createElement(i.Fragment,null,n):o.createElement("div",r,n):null},t.IM=function(e){var t=e.renderWithFragment,n=e.children,r=S(e,["renderWithFragment","children"]);return De?t?o.createElement(i.Fragment,null,n):o.createElement("div",r,n):null}},38345:function(e,t,n){"use strict";var r=n(9950),i=n(75340);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},f={};function m(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var b=/[\-:]([a-z])/g;function v(e){return e[1].toUpperCase()}function y(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(f,e)||!d.call(h,e)&&(p.test(e)?f[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode
75-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(b,v);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(b,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(b,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),A=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),T=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),R=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var P=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var j=Symbol.iterator;function M(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=j&&e[j]||e["@@iterator"])?e:null}var D,L=Object.assign;function F(e){if(void 0===D)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);D=t&&t[1]||""}return"\n"+D+e}var B=!1;function U(e,t){if(!e||B)return"";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var i=c.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function z(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=U(e.type,!1);case 11:return e=U(e.type.render,!1);case 1:return e=U(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case E:return"Fragment";case A:return"Portal";case _:return"Profiler";case S:return"StrictMode";case O:return"Suspense";case N:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case C:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return H(e(t))}catch(n){}}return null}function $(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function V(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function G(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function W(e){e._valueTracker||(e._valueTracker=function(e){var t=G(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=G(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Y(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=V(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Z(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function Q(e,t){Z(e,t);var n=V(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,V(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+V(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));
vendor: 8,384 bytes, line 75
75if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:V(n)}}function oe(e,t){var n=V(t.value),r=V(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(he).forEach((function(e){fe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var be=L({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 ve(e,t){if(t){if(be[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ae=null,Ee=null,Se=null;function _e(e){if(e=yi(e)){if("function"!==typeof Ae)throw Error(o(280));var t=e.stateNode;t&&(t=wi(t),Ae(e.stateNode,e.type,t))}}function ke(e){Ee?Se?Se.push(e):Se=[e]:Ee=e}function Te(){if(Ee){var e=Ee,t=Se;if(Se=Ee=null,_e(e),t)for(e=0;e<t.length;e++)_e(t[e])}}function Ce(e,t){return e(t)}function Oe(){}var Ne=!1;function Ie(e,t,n){if(Ne)return e(t,n);Ne=!0;try{return Ce(e,t,n)}finally{Ne=!1,(null!==Ee||null!==Se)&&(Oe(),Te())}}function Re(e,t){var n=e.stateNode;if(null===n)return null;var r=wi(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var Pe=!1;if(u)try{var je={};Object.defineProperty(je,"passive",{get:function(){Pe=!0}}),window.addEventListener("test",je,je),window.removeEventListener("test",je,je)}catch(ue){Pe=!1}function Me(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var De=!1,Le=null,Fe=!1,Be=null,Ue={onError:function(e){De=!0,Le=e}};function ze(e,t,n,r,i,o,a,s,l){De=!1,Le=null,Me.apply(Ue,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function $e(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ve(e){if(He(e)!==e)throw Error(o(188))}function Ge(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Ve(i),e;if(a===r)return Ve(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?We(e):null}function We(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=We(e);if(null!==t)return t;e=e.sibling}return null}var qe=i.unstable_scheduleCallback,Ye=i.unstable_cancelCallback,Ke=i.unstable_shouldYield,Xe=i.unstable_requestPaint,Ze=i.unstable_now,Qe=i.unstable_getCurrentPriorityLevel,Je=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=dt(s):0!==(o&=a)&&(r=dt(o))}else 0!==(a=n&~i)?r=dt(a):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!==(4194240&o)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-at(t)),r|=e[n],t&=~i;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function bt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var yt=0;function xt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var wt,At,Et,St,_t,kt=!1,Tt=[],Ct=null,Ot=null,Nt=null,It=new Map,Rt=new Map,Pt=[],jt="mou
75sedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Mt(e,t){switch(e){case"focusin":case"focusout":Ct=null;break;case"dragenter":case"dragleave":Ot=null;break;case"mouseover":case"mouseout":Nt=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function Dt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=yi(t))&&At(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Lt(e){var t=vi(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=$e(n)))return e.blockedOn=t,void _t(e.priority,(function(){Et(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=yi(n))&&At(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function Bt(e,t,n){Ft(e)&&n.delete(t)}function Ut(){kt=!1,null!==Ct&&Ft(Ct)&&(Ct=null),null!==Ot&&Ft(Ot)&&(Ot=null),null!==Nt&&Ft(Nt)&&(Nt=null),It.forEach(Bt),Rt.forEach(Bt)}function zt(e,t){e.blockedOn===t&&(e.blockedOn=null,kt||(kt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ut)))}function Ht(e){function t(t){return zt(t,e)}if(0<Tt.length){zt(Tt[0],e);for(var n=1;n<Tt.length;n++){var r=Tt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Ct&&zt(Ct,e),null!==Ot&&zt(Ot,e),null!==Nt&&zt(Nt,e),It.forEach(t),Rt.forEach(t),n=0;n<Pt.length;n++)(r=Pt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Pt.length&&null===(n=Pt[0]).blockedOn;)Lt(n),null===n.blockedOn&&Pt.shift()}var $t=x.ReactCurrentBatchConfig,Vt=!0;function Gt(e,t,n,r){var i=yt,o=$t.transition;$t.transition=null;try{yt=1,qt(e,t,n,r)}finally{yt=i,$t.transition=o}}function Wt(e,t,n,r){var i=yt,o=$t.transition;$t.transition=null;try{yt=4,qt(e,t,n,r)}finally{yt=i,$t.transition=o}}function qt(e,t,n,r){if(Vt){var i=Kt(e,t,n,r);if(null===i)Vr(e,t,r,Yt,n),Mt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Ct=Dt(Ct,e,t,n,r,i),!0;case"dragenter":return Ot=Dt(Ot,e,t,n,r,i),!0;case"mouseover":return Nt=Dt(Nt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return It.set(o,Dt(It.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Rt.set(o,Dt(Rt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Mt(e,r),4&t&&-1<jt.indexOf(e)){for(;null!==i;){var o=yi(i);if(null!==o&&wt(o),null===(o=Kt(e,t,n,r))&&Vr(e,t,r,Yt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Vr(e,t,r,null,n)}}var Yt=null;function Kt(e,t,n,r){if(Yt=null,null!==(e=vi(e=we(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=$e(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qe()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Zt=null,Qt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Qt,r=n.length,i="value"in Zt?Zt.value:Zt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Jt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=L({},cn,{view:0,detail:0}),pn=on(dn),hn=L({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_n,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.from
vendor: 9,184 bytes, line 75
75Element===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),fn=on(hn),mn=on(L({},hn,{dataTransfer:0})),gn=on(L({},dn,{relatedTarget:0})),bn=on(L({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=L({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=on(vn),xn=on(L({},cn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},An={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function _n(){return Sn}var kn=L({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?An[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_n,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tn=on(kn),Cn=on(L({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),On=on(L({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_n})),Nn=on(L({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=L({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Rn=on(In),Pn=[9,13,27,32],jn=u&&"CompositionEvent"in window,Mn=null;u&&"documentMode"in document&&(Mn=document.documentMode);var Dn=u&&"TextEvent"in window&&!Mn,Ln=u&&(!jn||Mn&&8<Mn&&11>=Mn),Fn=String.fromCharCode(32),Bn=!1;function Un(e,t){switch(e){case"keyup":return-1!==Pn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1;var $n={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!$n[e.type]:"textarea"===t}function Gn(e,t,n,r){ke(r),0<(t=Wr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,qn=null;function Yn(e){Fr(e,0)}function Kn(e){if(q(xi(e)))return e}function Xn(e,t){if("change"===e)return t}var Zn=!1;if(u){var Qn;if(u){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"===typeof er.oninput}Qn=Jn}else Qn=!1;Zn=Qn&&(!document.documentMode||9<document.documentMode)}function tr(){Wn&&(Wn.detachEvent("onpropertychange",nr),qn=Wn=null)}function nr(e){if("value"===e.propertyName&&Kn(qn)){var t=[];Gn(t,qn,e,we(e)),Ie(Yn,t)}}function rr(e,t,n){"focusin"===e?(tr(),qn=n,(Wn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(qn)}function or(e,t){if("click"===e)return Kn(t)}function ar(e,t){if("input"===e||"change"===e)return Kn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lr(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!d.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function fr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=ur(n,o);var a=ur(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=u&&"documentMode"in document&&11>=document.documentMode,gr=null,br=null,vr=null,yr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==gr||gr!==Y(r)||("selectionStart"in(r=gr)&&hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&lr(vr,r)||(vr=r,0<(r=Wr(br,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ar={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Er={},Sr={};function _r(e){if(Er[e])return Er[e];if(!Ar[e])return e;var t,n=Ar[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return Er[e]=n[t];return e}u&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete Ar.animationend.animation,delete Ar.animationiteration.animation,delete Ar.animationstart.animation),"TransitionEvent"in window||delete Ar.transitionend.transition);var kr=_r("animationend"),Tr=_r("animationiteration"),Cr=_r("animationstart"),Or=_r("transitionend"),Nr=new Map,Ir="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Rr(e,t){Nr.set(e,t),l(t,[e])}for(var Pr=0;Pr<Ir.length;Pr++){var jr=Ir[Pr];Rr(jr.toLowerCase(),"on"+(jr[0].toUpperCase()+jr.slice(1)))}Rr(kr,"onAnimationEnd"),Rr(Tr,"onAnimationIteration"),Rr(Cr,"onAnimationStart"),Rr("dblclick","onDoubleClick"),Rr("focusin","onFocus"),Rr("focusout","onBlur"),Rr(Or,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focu
75sin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Dr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mr));function Lr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,l,c){if(ze.apply(this,arguments),De){if(!De)throw Error(o(198));var u=Le;De=!1,Le=null,Fe||(Fe=!0,Be=u)}}(r,t,void 0,e),e.currentTarget=null}function Fr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Lr(i,s,c),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Lr(i,s,c),o=l}}}if(Fe)throw e=Be,Fe=!1,Be=null,e}function Br(e,t){var n=t[mi];void 0===n&&(n=t[mi]=new Set);var r=e+"__bubble";n.has(r)||($r(t,e,2,!1),n.add(r))}function Ur(e,t,n){var r=0;t&&(r|=4),$r(n,e,r,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[zr]){e[zr]=!0,a.forEach((function(t){"selectionchange"!==t&&(Dr.has(t)||Ur(t,!1,e),Ur(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[zr]||(t[zr]=!0,Ur("selectionchange",!1,t))}}function $r(e,t,n,r){switch(Xt(t)){case 1:var i=Gt;break;case 4:i=Wt;break;default:i=qt}n=i.bind(null,t,n,e),i=void 0,!Pe||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Vr(e,t,n,r,i){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=vi(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}Ie((function(){var r=o,i=we(n),a=[];e:{var s=Nr.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Tn;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=fn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=On;break;case kr:case Tr:case Cr:l=bn;break;case Or:l=Nn;break;case"scroll":l=pn;break;case"wheel":l=Rn;break;case"copy":case"cut":case"paste":l=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Cn}var u=0!==(4&t),d=!u&&"scroll"===e,p=u?null!==s?s+"Capture":null:s;u=[];for(var h,f=r;null!==f;){var m=(h=f).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==p&&(null!=(m=Re(f,p))&&u.push(Gr(f,m,h)))),d)break;f=f.return}0<u.length&&(s=new l(s,c,null,n,i),a.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===xe||!(c=n.relatedTarget||n.fromElement)||!vi(c)&&!c[fi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?vi(c):null)&&(c!==(d=He(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=fn,m="onMouseLeave",p="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(u=Cn,m="onPointerLeave",p="onPointerEnter",f="pointer"),d=null==l?s:xi(l),h=null==c?s:xi(c),(s=new u(m,f+"leave",l,n,i)).target=d,s.relatedTarget=h,m=null,vi(i)===r&&((u=new u(p,f+"enter",c,n,i)).target=h,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(p=c,f=0,h=u=l;h;h=qr(h))f++;for(h=0,m=p;m;m=qr(m))h++;for(;0<f-h;)u=qr(u),f--;for(;0<h-f;)p=qr(p),h--;for(;f--;){if(u===p||null!==p&&u===p.alternate)break e;u=qr(u),p=qr(p)}u=null}else u=null;null!==l&&Yr(a,s,l,u,!1),null!==c&&null!==d&&Yr(a,d,c,u,!0)}if("select"===(l=(s=r?xi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Xn;else if(Vn(s))if(Zn)g=ar;else{g=ir;var b=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=or);switch(g&&(g=g(e,r))?Gn(a,g,n,i):(b&&b(e,s,r),"focusout"===e&&(b=s._wrapperState)&&b.controlled&&"number"===s.type&&ee(s,"number",s.value)),b=r?xi(r):window,e){case"focusin":(Vn(b)||"true"===b.contentEditable)&&(gr=b,br=r,vr=null);break;case"focusout":vr=br=gr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,xr(a,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":xr(a,n,i)}var v;if(jn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Hn?Un(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");
vendor: 86,560 bytes, line 75
75y&&(Ln&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Hn&&(v=en()):(Qt="value"in(Zt=i)?Zt.value:Zt.textContent,Hn=!0)),0<(b=Wr(r,y)).length&&(y=new xn(y,e,null,n,i),a.push({event:y,listeners:b}),v?y.data=v:null!==(v=zn(n))&&(y.data=v))),(v=Dn?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(Bn=!0,Fn);case"textInput":return(e=t.data)===Fn&&Bn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!jn&&Un(e,t)?(e=en(),Jt=Qt=Zt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ln&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Wr(r,"onBeforeInput")).length&&(i=new xn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=v))}Fr(a,t)}))}function Gr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Re(e,n))&&r.unshift(Gr(e,o,i)),null!=(o=Re(e,t))&&r.push(Gr(e,o,i))),e=e.return}return r}function qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=Re(n,o))&&a.unshift(Gr(n,l,s)):i||null!=(l=Re(n,o))&&a.push(Gr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Kr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Zr(e){return("string"===typeof e?e:""+e).replace(Kr,"\n").replace(Xr,"")}function Qr(e,t,n){if(t=Zr(t),Zr(e)!==t&&n)throw Error(o(425))}function Jr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"===typeof setTimeout?setTimeout:void 0,ii="function"===typeof clearTimeout?clearTimeout:void 0,oi="function"===typeof Promise?Promise:void 0,ai="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof oi?function(e){return oi.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout((function(){throw e}))}function li(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Ht(t)}function ci(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ui(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),pi="__reactFiber$"+di,hi="__reactProps$"+di,fi="__reactContainer$"+di,mi="__reactEvents$"+di,gi="__reactListeners$"+di,bi="__reactHandles$"+di;function vi(e){var t=e[pi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fi]||n[pi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ui(e);null!==e;){if(n=e[pi])return n;e=ui(e)}return t}n=(e=n).parentNode}return null}function yi(e){return!(e=e[pi]||e[fi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function wi(e){return e[hi]||null}var Ai=[],Ei=-1;function Si(e){return{current:e}}function _i(e){0>Ei||(e.current=Ai[Ei],Ai[Ei]=null,Ei--)}function ki(e,t){Ei++,Ai[Ei]=e.current,e.current=t}var Ti={},Ci=Si(Ti),Oi=Si(!1),Ni=Ti;function Ii(e,t){var n=e.type.contextTypes;if(!n)return Ti;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ri(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Pi(){_i(Oi),_i(Ci)}function ji(e,t,n){if(Ci.current!==Ti)throw Error(o(168));ki(Ci,t),ki(Oi,n)}function Mi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,$(e)||"Unknown",i));return L({},n,r)}function Di(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ti,Ni=Ci.current,ki(Ci,e),ki(Oi,Oi.current),!0}function Li(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Mi(e,t,Ni),r.__reactInternalMemoizedMergedChildContext=e,_i(Oi),_i(Ci),ki(Ci,e)):_i(Oi),ki(Oi,n)}var Fi=null,Bi=!1,Ui=!1;function zi(e){null===Fi?Fi=[e]:Fi.push(e)}function Hi(){if(!Ui&&null!==Fi){Ui=!0;var e=0,t=yt;try{var n=Fi;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fi=null,Bi=!1}catch(i){throw null!==Fi&&(Fi=Fi.slice(e+1)),qe(Je,Hi),i}finally{yt=t,Ui=!1}}return null}var $i=[],Vi=0,Gi=null,Wi=0,qi=[],Yi=0,Ki=null,Xi=1,Zi="";function Qi(e,t){$i[Vi++]=Wi,$i[Vi++]=Gi,Gi=e,Wi=t}function Ji(e,t,n){qi[Yi++]=Xi,qi[Yi++]=Zi,qi[Yi++]=Ki,Ki=e;var r=Xi;e=Zi;var i=32-at(r)-1;r&=~(1<<i),n+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Xi=1<<32-at(t)+i|n<<i|r,Zi=o+e}else Xi=1<<o|n<<i|r,Zi=e}function eo(e){null!==e.return&&(Qi(e,1),Ji(e,1,0))}function to(e){for(;e===Gi;)Gi=$i[--Vi],$i[Vi]=null,Wi=$i[--Vi],$i[Vi]=null;for(;e===Ki;)Ki=qi[--Yi],qi[Yi]=null,Zi=qi[--Yi],qi[Yi]=null,Xi=qi[--Yi],qi[Yi]=null}var no=null,ro=null,io=!1,oo=null;function ao(e,t){var n=Ic(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=ci(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ki?{id:Xi,overflow:Zi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ic(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function lo(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function co(e){if(io){var t=ro;if(t){var n=t;if(!so(e,t)){if(lo(e))throw Error(o(418));t=ci(n.nextSibling);var r=no;t&&so(e,t)?ao(r,n):(e.flags=-4097&e.flags|2,io=!1,no=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,no=e}}}function uo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function po(e){if(e!==no)return!1;if(!io)return uo(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ro)){if(lo(e))throw ho(),Error(o(418));for(;t;)ao(e,t),t=ci(t.nextSibling)}if(uo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ci(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ci(e.stateNode.nextSibling):null;return!0}function ho(){for(var e=ro;e;)e=ci(e.nextSibling)}function fo(){ro=no=null,io=!1}function mo(e){null===oo?oo=[e]:oo.push(e)}var go=x.ReactCurrentBatchConfig;function bo(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function vo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function yo(e){return(0,e._init)(e._payload)}function xo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Pc(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Lc(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===E?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===R&&yo(o)===t.type)?((r=i(t,n.props)).ref=bo(e,t,n),r.return=e,r):((r=jc(n.type,n.key,n.props,null,e.mode,r)).ref=bo(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fc(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Mc(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Lc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case w:return(n=jc(t.type,t.key,t.props,null,e.mode,n)).ref=bo(e,null,t),n.return=e,n;case A:return(t=Fc(t,e.mode,n)).return=e,t;case R:return p(e,(0,t._init)(t._payload),n)}if(te(t)||M(t))return(t=Mc(t,e.mode,n,null)).return=e,t;vo(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==i?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===i?c(e,t,n,r):null;case A:return n.key===i?u(e,t,n,r):null;case R:return h(e,t,(i=n._init)(n._payload),r)}if(te(n)||M(n))return null!==i?null:d(e,t,n,r,null);vo(e,n)}return null}function f(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case w:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case A:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case R:return f(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||M(r))return d(t,e=e.get(n)||null,r,i,null);vo(t,r)}return null}function m(i,o,s,l){for(var c=null,u=null,d=o,m=o=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var b=h(i,d,s[m],l);if(null===b){null===d&&(d=g);break}e&&d&&null===b.alternate&&t(i,d),o=a(b,o,m),null===u?c=b:u.sibling=b,u=b,d=g}if(m===s.length)return n(i,d),io&&Qi(i,m),c;if(null===d){for(;m<s.length;m++)null!==(d=p(i,s[m],l))&&(o=a(d,o,m),null===u?c=d:u.sibling=d,u=d);return io&&Qi(i,m),c}for(d=r(i,d);m<s.length;m++)null!==(g=f(d,i,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),o=a(g,o,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(i,e)})),io&&Qi(i,m),c}function g(i,s,l,c){var u=M(l);if("function"!==typeof u)throw Error(o(150));if(null==(l=u.call(l)))throw Error(o(151));for(var d=u=null,m=s,g=s=0,b=null,v=l.next();null!==m&&!v.done;g++,v=l.next()){m.index>g?(b=m,m=null):b=m.sibling;var y=h(i,m,v.value,c);if(null===y){null===m&&(m=b);break}e&&m&&null===y.alternate&&t(i,m),s=a(y,s,g),null===d?u=y:d.sibling=y,d=y,m=b}if(v.done)return n(i,m),io&&Qi(i,g),u;if(null===m){for(;!v.done;g++,v=l.next())null!==(v=p(i,v.value,c))&&(s=a(v,s,g),null===d?u=v:d.sibling=v,d=v);return io&&Qi(i,g),u}for(m=r(i,m);!v.done;g++,v=l.next())null!==(v=f(m,i,g,v.value,c))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),s=a(v,s,g),null===d?u=v:d.sibling=v,d=v);return e&&m.forEach((function(e){return t(i,e)})),io&&Qi(i,g),u}return function e(r,o,a,l){if("object"===typeof a&&null!==a&&a.type===E&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var c=a.key,u=o;null!==u;){if(u.key===c){if((c=a.type)===E){if(7===u.tag){n(r,u.sibling),(o=i(u,a.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===R&&yo(c)===u.type){n(r,u.sibling),(o=i(u,a.props)).ref=bo(r,u,a),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===E?((o=Mc(a.props.children,r.mode,l,a.key)).return=r,r=o):((l=jc(a.type,a.key,a.props,null,r.mode,l)).ref=bo(r,o,a),l.return=r,r=l)}return s(r);case A:e:{for(u=a.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Fc(a,r.mode,l)).return=r,r=o}return s(r);case R:return e(r,o,(u=a._init)(a._payload),l)}if(te(a))return m(r,o,a,l);if(M(a))return g(r,o,a,l);vo(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Lc(a,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var wo=xo(!0),Ao=xo(!1),Eo=Si(null),So=null,_o=null,ko=null;function To(){ko=_o=So=null}function Co(e){var t=Eo.current;_i(Eo),e._currentValue=t}function Oo(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function No(e,t){So=e,ko=_o=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ys=!0),e.firstContext=null)}function Io(e){var t=e._currentValue;if(ko!==e)if(e={context:e,memoizedValue:t,next:null},null===_o){if(null===So)throw Error(o(308));_o=e,So.dependencies={lanes:0,firstContext:e}}else _o=_o.next=e;return t}var Ro=null;function Po(e){null===Ro?Ro=[e]:Ro.push(e)}function jo(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Po(t)):(n.next=i.next,i.next=n),t.interleaved=n,Mo(e,r)}function Mo(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Do=!1;function Lo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Bo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Uo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Cl)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Mo(e,n)}return null===(i=r.interleaved)?(t.next=t,Po(r)):(t.next=i.next,i.next=t),r.interleaved=t,Mo(e,n)}function zo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}function Ho(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function $o(e,t,n,r){var i=e.updateQueue;Do=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?o=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(a=0,u=c=l=null,s=o;;){var p=s.lane,h=s.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var f=e,m=s;switch(p=t,h=n,m.tag){case 1:if("function"===typeof(f=m.payload)){d=f.call(h,d,p);break e}d=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null===(p="function"===typeof(f=m.payload)?f.call(h,d,p):f)||void 0===p)break e;d=L({},d,p);break e;case 2:Do=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(p=i.effects)?i.effects=[s]:p.push(s))}else h={eventTime:h,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=h,l=d):u=u.next=h,a|=p;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(p=s).next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}if(null===u&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Dl|=a,e.lanes=a,e.memoizedState=d}}function Vo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(o(191,i));i.call(r)}}}var Go={},Wo=Si(Go),qo=Si(Go),Yo=Si(Go);function Ko(e){if(e===Go)throw Error(o(174));return e}function Xo(e,t){switch(ki(Yo,t),ki(qo,e),ki(Wo,Go),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}_i(Wo),ki(Wo,t)}function Zo(){_i(Wo),_i(qo),_i(Yo)}function Qo(e){Ko(Yo.current);var t=Ko(Wo.current),n=le(t,e.type);t!==n&&(ki(qo,e),ki(Wo,n))}function Jo(e){qo.current===e&&(_i(Wo),_i(qo))}var ea=Si(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var ia=x.ReactCurrentDispatcher,oa=x.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ca=null,ua=!1,da=!1,pa=0,ha=0;function fa(){throw Error(o(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ga(e,t,n,r,i,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ia.current=null===e||null===e.memoizedState?Ja:es,e=n(r,i),da){a=0;do{if(da=!1,pa=0,25<=a)throw Error(o(301));a+=1,ca=la=null,t.updateQueue=null,ia.current=ts,e=n(r,i)}while(da)}if(ia.current=Qa,t=null!==la&&null!==la.next,aa=0,ca=la=sa=null,ua=!1,t)throw Error(o(300));return e}function ba(){var e=0!==pa;return pa=0,e}function va(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ca?sa.memoizedState=ca=e:ca=ca.next=e,ca}function ya(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ca?sa.memoizedState:ca.next;if(null!==t)ca=t,la=e;else{if(null===e)throw Error(o(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ca?sa.memoizedState=ca=e:ca=ca.next=e}return ca}function xa(e,t){return"function"===typeof t?t(e):t}function wa(e){var t=ya(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=la,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var l=s=null,c=null,u=a;do{var d=u.lane;if((aa&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=p,s=r):c=c.next=p,sa.lanes|=d,Dl|=d}u=u.next}while(null!==u&&u!==a);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(ys=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,sa.lanes|=a,Dl|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Aa(e){var t=ya(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(ys=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ea(){}function Sa(e,t){var n=sa,r=ya(),i=t(),a=!sr(r.memoizedState,i);if(a&&(r.memoizedState=i,ys=!0),r=r.queue,Da(Ta.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ca&&1&ca.memoizedState.tag){if(n.flags|=2048,Ia(9,ka.bind(null,n,r,i,t),void 0,null),null===Ol)throw Error(o(349));0!==(30&aa)||_a(n,t,i)}return i}function _a(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ka(e,t,n,r){t.value=n,t.getSnapshot=r,Ca(t)&&Oa(e)}function Ta(e,t,n){return n((function(){Ca(t)&&Oa(e)}))}function Ca(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Oa(e){var t=Mo(e,1);null!==t&&nc(t,e,1,-1)}function Na(e){var t=va();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ya.bind(null,sa,e),[t.memoizedState,e]}function Ia(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ra(){return ya().memoizedState}function Pa(e,t,n,r){var i=va();sa.flags|=e,i.memoizedState=Ia(1|t,n,void 0,void 0===r?null:r)}function ja(e,t,n,r){var i=ya();r=void 0===r?null:r;var o=void 0;if(null!==la){var a=la.memoizedState;if(o=a.destroy,null!==r&&ma(r,a.deps))return void(i.memoizedState=Ia(t,n,o,r))}sa.flags|=e,i.memoizedState=Ia(1|t,n,o,r)}function Ma(e,t){return Pa(8390656,8,e,t)}function Da(e,t){return ja(2048,8,e,t)}function La(e,t){return ja(4,2,e,t)}function Fa(e,t){return ja(4,4,e,t)}function Ba(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ua(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,ja(4,4,Ba.bind(null,t,e),n)}function za(){}function Ha(e,t){var n=ya();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function $a(e,t){var n=ya();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Va(e,t,n){return 0===(21&aa)?(e.baseState&&(e.baseState=!1,ys=!0),e.memoizedState=n):(sr(n,t)||(n=mt(),sa.lanes|=n,Dl|=n,e.baseState=!0),t)}function Ga(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=oa.transition;oa.transition={};try{e(!1),t()}finally{yt=n,oa.transition=r}}function Wa(){return ya().memoizedState}function qa(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ka(e))Xa(t,n);else if(null!==(n=jo(e,t,n,r))){nc(n,e,r,ec()),Za(n,t,r)}}function Ya(e,t,n){var r=tc(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ka(e))Xa(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(i.next=i,Po(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(c){}null!==(n=jo(e,t,i,r))&&(nc(n,e,r,i=ec()),Za(n,t,r))}}function Ka(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Xa(e,t){da=ua=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Za(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}var Qa={readContext:Io,useCallback:fa,useContext:fa,useEffect:fa,useImperativeHandle:fa,useInsertionEffect:fa,useLayoutEffect:fa,useMemo:fa,useReducer:fa,useRef:fa,useState:fa,useDebugValue:fa,useDeferredValue:fa,useTransition:fa,useMutableSource:fa,useSyncExternalStore:fa,useId:fa,unstable_isNewReconciler:!1},Ja={readContext:Io,useCallback:function(e,t){return va().memoizedState=[e,void 0===t?null:t],e},useContext:Io,useEffect:Ma,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Pa(4194308,4,Ba.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Pa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Pa(4,2,e,t)},useMemo:function(e,t){var n=va();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=va();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=qa.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},va().memoizedState=e},useState:Na,useDebugValue:za,useDeferredValue:function(e){return va().memoizedState=e},useTransition:function(){var e=Na(!1),t=e[0];return e=Ga.bind(null,e[1]),va().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,i=va();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Ol)throw Error(o(349));0!==(30&aa)||_a(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Ma(Ta.bind(null,r,a,e),[e]),r.flags|=2048,Ia(9,ka.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=va(),t=Ol.identifierPrefix;if(io){var n=Zi;t=":"+t+"R"+(n=(Xi&~(1<<32-at(Xi)-1)).toString(32)+n),0<(n=pa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ha++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Io,useCallback:Ha,useContext:Io,useEffect:Da,useImperativeHandle:Ua,useInsertionEffect:La,useLayoutEffect:Fa,useMemo:$a,useReducer:wa,useRef:Ra,useState:function(){return wa(xa)},useDebugValue:za,useDeferredValue:function(e){return Va(ya(),la.memoizedState,e)},useTransition:function(){return[wa(xa)[0],ya().memoizedState]},useMutableSource:Ea,useSyncExternalStore:Sa,useId:Wa,unstable_isNewReconciler:!1},ts={readContext:Io,useCallback:Ha,useContext:Io,useEffect:Da,useImperativeHandle:Ua,useInsertionEffect:La,useLayoutEffect:Fa,useMemo:$a,useReducer:Aa,useRef:Ra,useState:function(){return Aa(xa)},useDebugValue:za,useDeferredValue:function(e){var t=ya();return null===la?t.memoizedState=e:Va(t,la.memoizedState,e)},useTransition:function(){return[Aa(xa)[0],ya().memoizedState]},useMutableSource:Ea,useSyncExternalStore:Sa,useId:Wa,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:L({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var is={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),i=tc(e),o=Bo(r,i);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Uo(e,o,i))&&(nc(t,e,i,r),zo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),i=tc(e),o=Bo(r,i);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Uo(e,o,i))&&(nc(t,e,i,r),zo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),i=Bo(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),null!==(t=Uo(e,i,r))&&(nc(t,e,r,n),zo(t,e,r))}};function os(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(i,o))}function as(e,t,n){var r=!1,i=Ti,o=t.contextType;return"object"===typeof o&&null!==o?o=Io(o):(i=Ri(t)?Ni:Ci.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?Ii(e,i):Ti),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=is,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ss(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&is.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Lo(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=Io(o):(o=Ri(t)?Ni:Ci.current,i.context=Ii(e,o)),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(rs(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&is.enqueueReplaceState(i,i.state,null),$o(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}function cs(e,t){try{var n="",r=t;do{n+=z(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i,digest:null}}function us(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var ps="function"===typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=Bo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vl||(Vl=!0,Gl=r),ds(0,t)},n}function fs(e,t,n){(n=Bo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ds(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!==typeof r&&(null===Wl?Wl=new Set([this]):Wl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ps;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=_c.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function bs(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Bo(-1,1)).tag=2,Uo(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var vs=x.ReactCurrentOwner,ys=!1;function xs(e,t,n,r){t.child=null===e?Ao(t,null,n,r):wo(t,e.child,n,r)}function ws(e,t,n,r,i){n=n.render;var o=t.ref;return No(t,i),r=ga(e,t,n,r,o,i),n=ba(),null===e||ys?(io&&n&&eo(t),t.flags|=1,xs(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Vs(e,t,i))}function As(e,t,n,r,i){if(null===e){var o=n.type;return"function"!==typeof o||Rc(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=jc(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Es(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Vs(e,t,i)}return t.flags|=1,(e=Pc(o,r)).ref=t.ref,e.return=t,t.child=e}function Es(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(lr(o,r)&&e.ref===t.ref){if(ys=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,Vs(e,t,i);0!==(131072&e.flags)&&(ys=!0)}}return ks(e,t,n,r,i)}function Ss(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ki(Pl,Rl),Rl|=n;else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ki(Pl,Rl),Rl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,ki(Pl,Rl),Rl|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,ki(Pl,Rl),Rl|=r;return xs(e,t,i,n),t.child}function _s(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ks(e,t,n,r,i){var o=Ri(n)?Ni:Ci.current;return o=Ii(t,o),No(t,i),n=ga(e,t,n,r,o,i),r=ba(),null===e||ys?(io&&r&&eo(t),t.flags|=1,xs(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Vs(e,t,i))}function Ts(e,t,n,r,i){if(Ri(n)){var o=!0;Di(t)}else o=!1;if(No(t,i),null===t.stateNode)$s(e,t),as(t,n,r),ls(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=Io(c):c=Ii(t,c=Ri(n)?Ni:Ci.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==c)&&ss(t,a,r,c),Do=!1;var p=t.memoizedState;a.state=p,$o(t,r,a,i),l=t.memoizedState,s!==r||p!==l||Oi.current||Do?("function"===typeof u&&(rs(t,n,u,r),l=t.memoizedState),(s=Do||os(t,n,s,r,p,l,c))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Fo(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ns(t.type,s),a.props=c,d=t.pendingProps,p=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=Io(l):l=Ii(t,l=Ri(n)?Ni:Ci.current);var h=n.getDerivedStateFromProps;(u="function"===typeof h||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||p!==l)&&ss(t,a,r,l),Do=!1,p=t.memoizedState,a.state=p,$o(t,r,a,i);var f=t.memoizedState;s!==d||p!==f||Oi.current||Do?("function"===typeof h&&(rs(t,n,h,r),f=t.memoizedState),(c=Do||os(t,n,c,r,p,f,l)||!1)?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,f,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,f,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=l,r=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Cs(e,t,n,r,o,i)}function Cs(e,t,n,r,i,o){_s(e,t);var a=0!==(128&t.flags);if(!r&&!a)return i&&Li(t,n,!1),Vs(e,t,o);r=t.stateNode,vs.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=wo(t,e.child,null,o),t.child=wo(t,null,s,o)):xs(e,t,s,o),t.memoizedState=r.state,i&&Li(t,n,!0),t.child}function Os(e){var t=e.stateNode;t.pendingContext?ji(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ji(0,t.context,!1),Xo(e,t.containerInfo)}function Ns(e,t,n,r,i){return fo(),mo(i),t.flags|=256,xs(e,t,n,r),t.child}var Is,Rs,Ps,js,Ms={dehydrated:null,treeContext:null,retryLane:0};function Ds(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ls(e,t,n){var r,i=t.pendingProps,a=ea.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),ki(ea,1&a),null===e)return co(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Dc(l,i,0,null),e=Mc(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ds(n),t.memoizedState=Ms,e):Fs(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,s){if(n)return 256&t.flags?(t.flags&=-257,Bs(e,t,s,r=us(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Dc({mode:"visible",children:r.children},i,0,null),(a=Mc(a,i,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&wo(t,e.child,null,s),t.child.memoizedState=Ds(s),t.memoizedState=Ms,a);if(0===(1&t.mode))return Bs(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,Bs(e,t,s,r=us(a=Error(o(419)),r,void 0))}if(l=0!==(s&e.childLanes),ys||l){if(null!==(r=Ol)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Mo(e,i),nc(r,e,i,-1))}return mc(),Bs(e,t,s,r=us(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Tc.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ro=ci(i.nextSibling),no=t,io=!0,oo=null,null!==e&&(qi[Yi++]=Xi,qi[Yi++]=Zi,qi[Yi++]=Ki,Xi=e.id,Zi=e.overflow,Ki=t),t=Fs(t,r.children),t.flags|=4096,t)}(e,t,l,i,r,a,n);if(s){s=i.fallback,l=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:i.children};return 0===(1&l)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null):(i=Pc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Pc(r,s):(s=Mc(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Ds(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Ms,i}return e=(s=e.child).sibling,i=Pc(s,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Fs(e,t){return(t=Dc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bs(e,t,n,r){return null!==r&&mo(r),wo(t,e.child,null,n),(e=Fs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Us(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Oo(e.return,t,n)}function zs(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Hs(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(xs(e,t,r.children,n),0!==(2&(r=ea.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Us(e,n,t);else if(19===e.tag)Us(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ki(ea,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),zs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ta(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}zs(t,!0,n,null,o);break;case"together":zs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function $s(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Dl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Pc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Pc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Gs(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ws(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function qs(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ws(t),null;case 1:case 17:return Ri(t.type)&&Pi(),Ws(t),null;case 3:return r=t.stateNode,Zo(),_i(Oi),_i(Ci),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(po(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==oo&&(ac(oo),oo=null))),Rs(e,t),Ws(t),null;case 5:Jo(t);var i=Ko(Yo.current);if(n=t.type,null!==e&&null!=t.stateNode)Ps(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Ws(t),null}if(e=Ko(Wo.current),po(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[pi]=t,r[hi]=a,e=0!==(1&t.mode),n){case"dialog":Br("cancel",r),Br("close",r);break;case"iframe":case"object":case"embed":Br("load",r);break;case"video":case"audio":for(i=0;i<Mr.length;i++)Br(Mr[i],r);break;case"source":Br("error",r);break;case"img":case"image":case"link":Br("error",r),Br("load",r);break;case"details":Br("toggle",r);break;case"input":X(r,a),Br("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Br("invalid",r);break;case"textarea":ie(r,a),Br("invalid",r)}for(var l in ve(n,a),i=null,a)if(a.hasOwnProperty(l)){var c=a[l];"children"===l?"string"===typeof c?r.textContent!==c&&(!0!==a.suppressHydrationWarning&&Qr(r.textContent,c,e),i=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Qr(r.textContent,c,e),i=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Br("scroll",r)}switch(n){case"input":W(r),J(r,a,!0);break;case"textarea":W(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=Jr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[pi]=t,e[hi]=r,Is(e,t,!1,!1),t.stateNode=e;e:{switch(l=ye(n,r),n){case"dialog":Br("cancel",e),Br("close",e),i=r;break;case"iframe":case"object":case"embed":Br("load",e),i=r;break;case"video":case"audio":for(i=0;i<Mr.length;i++)Br(Mr[i],e);i=r;break;case"source":Br("error",e),i=r;break;case"img":case"image":case"link":Br("error",e),Br("load",e),i=r;break;case"details":Br("toggle",e),i=r;break;case"input":X(e,r),i=K(e,r),Br("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=L({},r,{value:void 0}),Br("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Br("invalid",e)}for(a in ve(n,i),c=i)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?ge(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"===typeof u?("textarea"!==n||""!==u)&&pe(e,u):"number"===typeof u&&pe(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Br("scroll",e):null!=u&&y(e,a,u,l))}switch(n){case"input":W(e),J(e,r,!1);break;case"textarea":W(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+V(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ws(t),null;case 6:if(e&&null!=t.stateNode)js(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));if(n=Ko(Yo.current),Ko(Wo.current),po(t)){if(r=t.stateNode,n=t.memoizedProps,r[pi]=t,(a=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Qr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qr(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[pi]=t,t.stateNode=r}return Ws(t),null;case 13:if(_i(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==ro&&0!==(1&t.mode)&&0===(128&t.flags))ho(),fo(),t.flags|=98560,a=!1;else if(a=po(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[pi]=t}else fo(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ws(t),a=!1}else null!==oo&&(ac(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ea.current)?0===jl&&(jl=3):mc())),null!==t.updateQueue&&(t.flags|=4),Ws(t),null);case 4:return Zo(),Rs(e,t),null===e&&Hr(t.stateNode.containerInfo),Ws(t),null;case 10:return Co(t.type._context),Ws(t),null;case 19:if(_i(ea),null===(a=t.memoizedState))return Ws(t),null;if(r=0!==(128&t.flags),null===(l=a.rendering))if(r)Gs(a,!1);else{if(0!==jl||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Gs(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ki(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Ze()>Hl&&(t.flags|=128,r=!0,Gs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Gs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!io)return Ws(t),null}else 2*Ze()-a.renderingStartTime>Hl&&1073741824!==n&&(t.flags|=128,r=!0,Gs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ze(),t.sibling=null,n=ea.current,ki(ea,r?1&n|2:1&n),t):(Ws(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Rl)&&(Ws(t),6&t.subtreeFlags&&(t.flags|=8192)):Ws(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Ys(e,t){switch(to(t),t.tag){case 1:return Ri(t.type)&&Pi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Zo(),_i(Oi),_i(Ci),ra(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Jo(t),null;case 13:if(_i(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));fo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return _i(ea),null;case 4:return Zo(),null;case 10:return Co(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Is=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Rs=function(){},Ps=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ko(Wo.current);var o,a=null;switch(n){case"input":i=K(e,i),r=K(e,r),a=[];break;case"select":i=L({},i,{value:void 0}),r=L({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Jr)}for(u in ve(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(a||(a=[]),a.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Br("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},js=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ks=!1,Xs=!1,Zs="function"===typeof WeakSet?WeakSet:Set,Qs=null;function Js(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Sc(e,t,r)}else n.current=null}function el(e,t,n){try{n()}catch(r){Sc(e,t,r)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&el(t,n,o)}i=i.next}while(i!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function il(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function ol(e){var t=e.alternate;null!==t&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[pi],delete t[hi],delete t[mi],delete t[gi],delete t[bi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var ul=null,dl=!1;function pl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(ot&&"function"===typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(s){}switch(n.tag){case 5:Xs||Js(n,t);case 6:var r=ul,i=dl;ul=null,pl(e,t,n),dl=i,null!==(ul=r)&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?li(e.parentNode,n):1===e.nodeType&&li(e,n),Ht(e)):li(ul,n.stateNode));break;case 4:r=ul,i=dl,ul=n.stateNode.containerInfo,dl=!0,pl(e,t,n),ul=r,dl=i;break;case 0:case 11:case 14:case 15:if(!Xs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!==(2&o)||0!==(4&o))&&el(n,t,a),i=i.next}while(i!==r)}pl(e,t,n);break;case 1:if(!Xs&&(Js(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Sc(n,t,s)}pl(e,t,n);break;case 21:pl(e,t,n);break;case 22:1&n.mode?(Xs=(r=Xs)||null!==n.memoizedState,pl(e,t,n),Xs=r):pl(e,t,n);break;default:pl(e,t,n)}}function fl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Zs),t.forEach((function(t){var r=Cc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(o(160));hl(a,s,i),ul=null,dl=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(u){Sc(i,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),bl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(g){Sc(e,e.return,g)}try{nl(5,e,e.return)}catch(g){Sc(e,e.return,g)}}break;case 1:ml(t,e),bl(e),512&r&&null!==n&&Js(n,n.return);break;case 5:if(ml(t,e),bl(e),512&r&&null!==n&&Js(n,n.return),32&e.flags){var i=e.stateNode;try{pe(i,"")}catch(g){Sc(e,e.return,g)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&Z(i,a),ye(l,s);var u=ye(l,a);for(s=0;s<c.length;s+=2){var d=c[s],p=c[s+1];"style"===d?ge(i,p):"dangerouslySetInnerHTML"===d?de(i,p):"children"===d?pe(i,p):y(i,d,p,u)}switch(l){case"input":Q(i,a);break;case"textarea":oe(i,a);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var f=a.value;null!=f?ne(i,!!a.multiple,f,!1):h!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[hi]=a}catch(g){Sc(e,e.return,g)}}break;case 6:if(ml(t,e),bl(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(g){Sc(e,e.return,g)}}break;case 3:if(ml(t,e),bl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(g){Sc(e,e.return,g)}break;case 4:default:ml(t,e),bl(e);break;case 13:ml(t,e),bl(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(zl=Ze())),4&r&&fl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Xs=(u=Xs)||d,ml(t,e),Xs=u):ml(t,e),bl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Qs=e,d=e.child;null!==d;){for(p=Qs=d;null!==Qs;){switch(f=(h=Qs).child,h.tag){case 0:case 11:case 14:case 15:nl(4,h,h.return);break;case 1:Js(h,h.return);var m=h.stateNode;if("function"===typeof m.componentWillUnmount){r=h,n=h.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){Sc(r,n,g)}}break;case 5:Js(h,h.return);break;case 22:if(null!==h.memoizedState){wl(p);continue}}null!==f?(f.return=h,Qs=f):wl(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{i=p.stateNode,u?"function"===typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=p.stateNode,s=void 0!==(c=p.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",s))}catch(g){Sc(e,e.return,g)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(g){Sc(e,e.return,g)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:ml(t,e),bl(e),4&r&&fl(e);case 21:}}function bl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(pe(i,""),r.flags&=-33),cl(e,sl(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(o(161))}}catch(s){Sc(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vl(e,t,n){Qs=e,yl(e,t,n)}function yl(e,t,n){for(var r=0!==(1&e.mode);null!==Qs;){var i=Qs,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Ks;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Xs;s=Ks;var c=Xs;if(Ks=a,(Xs=l)&&!c)for(Qs=i;null!==Qs;)l=(a=Qs).child,22===a.tag&&null!==a.memoizedState?Al(i):null!==l?(l.return=a,Qs=l):Al(i);for(;null!==o;)Qs=o,yl(o,t,n),o=o.sibling;Qs=i,Ks=s,Xs=c}xl(e)}else 0!==(8772&i.subtreeFlags)&&null!==o?(o.return=i,Qs=o):xl(e)}}function xl(e){for(;null!==Qs;){var t=Qs;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Xs||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Xs)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Vo(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Vo(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&Ht(p)}}}break;default:throw Error(o(163))}Xs||512&t.flags&&il(t)}catch(h){Sc(t,t.return,h)}}if(t===e){Qs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Qs=n;break}Qs=t.return}}function wl(e){for(;null!==Qs;){var t=Qs;if(t===e){Qs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Qs=n;break}Qs=t.return}}function Al(e){for(;null!==Qs;){var t=Qs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(l){Sc(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(l){Sc(t,i,l)}}var o=t.return;try{il(t)}catch(l){Sc(t,o,l)}break;case 5:var a=t.return;try{il(t)}catch(l){Sc(t,a,l)}}}catch(l){Sc(t,t.return,l)}if(t===e){Qs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Qs=s;break}Qs=t.return}}var El,Sl=Math.ceil,_l=x.ReactCurrentDispatcher,kl=x.ReactCurrentOwner,Tl=x.ReactCurrentBatchConfig,Cl=0,Ol=null,Nl=null,Il=0,Rl=0,Pl=Si(0),jl=0,Ml=null,Dl=0,Ll=0,Fl=0,Bl=null,Ul=null,zl=0,Hl=1/0,$l=null,Vl=!1,Gl=null,Wl=null,ql=!1,Yl=null,Kl=0,Xl=0,Zl=null,Ql=-1,Jl=0;function ec(){return 0!==(6&Cl)?Ze():-1!==Ql?Ql:Ql=Ze()}function tc(e){return 0===(1&e.mode)?1:0!==(2&Cl)&&0!==Il?Il&-Il:null!==go.transition?(0===Jl&&(Jl=mt()),Jl):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Xt(e.type)}function nc(e,t,n,r){if(50<Xl)throw Xl=0,Zl=null,Error(o(185));bt(e,n,r),0!==(2&Cl)&&e===Ol||(e===Ol&&(0===(2&Cl)&&(Ll|=n),4===jl&&sc(e,Il)),rc(e,r),1===n&&0===Cl&&0===(1&t.mode)&&(Hl=Ze()+500,Bi&&Hi()))}function rc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,l=i[a];-1===l?0!==(s&n)&&0===(s&r)||(i[a]=ht(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=pt(e,e===Ol?Il:0);if(0===r)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){Bi=!0,zi(e)}(lc.bind(null,e)):zi(lc.bind(null,e)),ai((function(){0===(6&Cl)&&Hi()})),n=null;else{switch(xt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Oc(n,ic.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ic(e,t){if(Ql=-1,Jl=0,0!==(6&Cl))throw Error(o(327));var n=e.callbackNode;if(Ac()&&e.callbackNode!==n)return null;var r=pt(e,e===Ol?Il:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=gc(e,r);else{t=r;var i=Cl;Cl|=2;var a=fc();for(Ol===e&&Il===t||($l=null,Hl=Ze()+500,pc(e,t));;)try{vc();break}catch(l){hc(e,l)}To(),_l.current=a,Cl=i,null!==Nl?t=0:(Ol=null,Il=0,t=jl)}if(0!==t){if(2===t&&(0!==(i=ft(e))&&(r=i,t=oc(e,i))),1===t)throw n=Ml,pc(e,0),sc(e,r),rc(e,Ze()),n;if(6===t)sc(e,r);else{if(i=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!sr(o(),i))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=gc(e,r))&&(0!==(a=ft(e))&&(r=a,t=oc(e,a))),1===t))throw n=Ml,pc(e,0),sc(e,r),rc(e,Ze()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:wc(e,Ul,$l);break;case 3:if(sc(e,r),(130023424&r)===r&&10<(t=zl+500-Ze())){if(0!==pt(e,0))break;if(((i=e.suspendedLanes)&r)!==r){ec(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(wc.bind(null,e,Ul,$l),t);break}wc(e,Ul,$l);break;case 4:if(sc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Ze()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sl(r/1960))-r)){e.timeoutHandle=ri(wc.bind(null,e,Ul,$l),r);break}wc(e,Ul,$l);break;default:throw Error(o(329))}}}return rc(e,Ze()),e.callbackNode===n?ic.bind(null,e):null}function oc(e,t){var n=Bl;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Ul,Ul=n,null!==t&&ac(t)),e}function ac(e){null===Ul?Ul=e:Ul.push.apply(Ul,e)}function sc(e,t){for(t&=~Fl,t&=~Ll,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lc(e){if(0!==(6&Cl))throw Error(o(327));Ac();var t=pt(e,0);if(0===(1&t))return rc(e,Ze()),null;var n=gc(e,t);if(0!==e.tag&&2===n){var r=ft(e);0!==r&&(t=r,n=oc(e,r))}if(1===n)throw n=Ml,pc(e,0),sc(e,t),rc(e,Ze()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wc(e,Ul,$l),rc(e,Ze()),null}function cc(e,t){var n=Cl;Cl|=1;try{return e(t)}finally{0===(Cl=n)&&(Hl=Ze()+500,Bi&&Hi())}}function uc(e){null!==Yl&&0===Yl.tag&&0===(6&Cl)&&Ac();var t=Cl;Cl|=1;var n=Tl.transition,r=yt;try{if(Tl.transition=null,yt=1,e)return e()}finally{yt=r,Tl.transition=n,0===(6&(Cl=t))&&Hi()}}function dc(){Rl=Pl.current,_i(Pl)}function pc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Nl)for(n=Nl.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Pi();break;case 3:Zo(),_i(Oi),_i(Ci),ra();break;case 5:Jo(r);break;case 4:Zo();break;case 13:case 19:_i(ea);break;case 10:Co(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Ol=e,Nl=e=Pc(e.current,null),Il=Rl=t,jl=0,Ml=null,Fl=Ll=Dl=0,Ul=Bl=null,null!==Ro){for(t=0;t<Ro.length;t++)if(null!==(r=(n=Ro[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}Ro=null}return e}function hc(e,t){for(;;){var n=Nl;try{if(To(),ia.current=Qa,ua){for(var r=sa.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ua=!1}if(aa=0,ca=la=sa=null,da=!1,pa=0,kl.current=null,null===n||null===n.return){jl=1,Ml=t,Nl=null;break}e:{var a=e,s=n.return,l=n,c=t;if(t=Il,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=l,p=d.tag;if(0===(1&d.mode)&&(0===p||11===p||15===p)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=gs(s);if(null!==f){f.flags&=-257,bs(f,s,l,0,t),1&f.mode&&ms(a,u,t),c=u;var m=(t=f).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(0===(1&t)){ms(a,u,t),mc();break e}c=Error(o(426))}else if(io&&1&l.mode){var b=gs(s);if(null!==b){0===(65536&b.flags)&&(b.flags|=256),bs(b,s,l,0,t),mo(cs(c,l));break e}}a=c=cs(c,l),4!==jl&&(jl=2),null===Bl?Bl=[a]:Bl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Ho(a,hs(0,c,t));break e;case 1:l=c;var v=a.type,y=a.stateNode;if(0===(128&a.flags)&&("function"===typeof v.getDerivedStateFromError||null!==y&&"function"===typeof y.componentDidCatch&&(null===Wl||!Wl.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,Ho(a,fs(a,l,t));break e}}a=a.return}while(null!==a)}xc(n)}catch(x){t=x,Nl===n&&null!==n&&(Nl=n=n.return);continue}break}}function fc(){var e=_l.current;return _l.current=Qa,null===e?Qa:e}function mc(){0!==jl&&3!==jl&&2!==jl||(jl=4),null===Ol||0===(268435455&Dl)&&0===(268435455&Ll)||sc(Ol,Il)}function gc(e,t){var n=Cl;Cl|=2;var r=fc();for(Ol===e&&Il===t||($l=null,pc(e,t));;)try{bc();break}catch(i){hc(e,i)}if(To(),Cl=n,_l.current=r,null!==Nl)throw Error(o(261));return Ol=null,Il=0,jl}function bc(){for(;null!==Nl;)yc(Nl)}function vc(){for(;null!==Nl&&!Ke();)yc(Nl)}function yc(e){var t=El(e.alternate,e,Rl);e.memoizedProps=e.pendingProps,null===t?xc(e):Nl=t,kl.current=null}function xc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=qs(n,t,Rl)))return void(Nl=n)}else{if(null!==(n=Ys(n,t)))return n.flags&=32767,void(Nl=n);if(null===e)return jl=6,void(Nl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Nl=t);Nl=t=e}while(null!==t);0===jl&&(jl=5)}function wc(e,t,n){var r=yt,i=Tl.transition;try{Tl.transition=null,yt=1,function(e,t,n,r){do{Ac()}while(null!==Yl);if(0!==(6&Cl))throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-at(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===Ol&&(Nl=Ol=null,Il=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||ql||(ql=!0,Oc(tt,(function(){return Ac(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Tl.transition,Tl.transition=null;var s=yt;yt=1;var l=Cl;Cl|=4,kl.current=null,function(e,t){if(ei=Vt,hr(e=pr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(w){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,p=e,h=null;t:for(;;){for(var f;p!==n||0!==i&&3!==p.nodeType||(l=s+i),p!==a||0!==r&&3!==p.nodeType||(c=s+r),3===p.nodeType&&(s+=p.nodeValue.length),null!==(f=p.firstChild);)h=p,p=f;for(;;){if(p===e)break t;if(h===n&&++u===i&&(l=s),h===a&&++d===r&&(c=s),null!==(f=p.nextSibling))break;h=(p=h).parentNode}p=f}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Vt=!1,Qs=t;null!==Qs;)if(e=(t=Qs).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Qs=e;else for(;null!==Qs;){t=Qs;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,b=m.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:ns(t.type,g),b);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(o(163))}}catch(w){Sc(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,Qs=e;break}Qs=t.return}m=tl,tl=!1}(e,n),gl(n,e),fr(ti),Vt=!!ei,ti=ei=null,e.current=n,vl(n,e,i),Xe(),Cl=l,yt=s,Tl.transition=a}else e.current=n;if(ql&&(ql=!1,Yl=e,Kl=i),a=e.pendingLanes,0===a&&(Wl=null),function(e){if(ot&&"function"===typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),rc(e,Ze()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Vl)throw Vl=!1,e=Gl,Gl=null,e;0!==(1&Kl)&&0!==e.tag&&Ac(),a=e.pendingLanes,0!==(1&a)?e===Zl?Xl++:(Xl=0,Zl=e):Xl=0,Hi()}(e,t,n,r)}finally{Tl.transition=i,yt=r}return null}function Ac(){if(null!==Yl){var e=xt(Kl),t=Tl.transition,n=yt;try{if(Tl.transition=null,yt=16>e?16:e,null===Yl)var r=!1;else{if(e=Yl,Yl=null,Kl=0,0!==(6&Cl))throw Error(o(331));var i=Cl;for(Cl|=4,Qs=e.current;null!==Qs;){var a=Qs,s=a.child;if(0!==(16&Qs.flags)){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Qs=u;null!==Qs;){var d=Qs;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var p=d.child;if(null!==p)p.return=d,Qs=p;else for(;null!==Qs;){var h=(d=Qs).sibling,f=d.return;if(ol(d),d===u){Qs=null;break}if(null!==h){h.return=f,Qs=h;break}Qs=f}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(null!==g)}}Qs=a}}if(0!==(2064&a.subtreeFlags)&&null!==s)s.return=a,Qs=s;else e:for(;null!==Qs;){if(0!==(2048&(a=Qs).flags))switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var v=a.sibling;if(null!==v){v.return=a.return,Qs=v;break e}Qs=a.return}}var y=e.current;for(Qs=y;null!==Qs;){var x=(s=Qs).child;if(0!==(2064&s.subtreeFlags)&&null!==x)x.return=s,Qs=x;else e:for(s=y;null!==Qs;){if(0!==(2048&(l=Qs).flags))try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(A){Sc(l,l.return,A)}if(l===s){Qs=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Qs=w;break e}Qs=l.return}}if(Cl=i,Hi(),ot&&"function"===typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(A){}r=!0}return r}finally{yt=n,Tl.transition=t}}return!1}function Ec(e,t,n){e=Uo(e,t=hs(0,t=cs(n,t),1),1),t=ec(),null!==e&&(bt(e,1,t),rc(e,t))}function Sc(e,t,n){if(3===e.tag)Ec(e,e,n);else for(;null!==t;){if(3===t.tag){Ec(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Wl||!Wl.has(r))){t=Uo(t,e=fs(t,e=cs(n,e),1),1),e=ec(),null!==t&&(bt(t,1,e),rc(t,e));break}}t=t.return}}function _c(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Ol===e&&(Il&n)===n&&(4===jl||3===jl&&(130023424&Il)===Il&&500>Ze()-zl?pc(e,0):Fl|=n),rc(e,t)}function kc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=Mo(e,t))&&(bt(e,t,n),rc(e,n))}function Tc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),kc(e,n)}function Cc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),kc(e,n)}function Oc(e,t){return qe(e,t)}function Nc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ic(e,t,n,r){return new Nc(e,t,n,r)}function Rc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Pc(e,t){var n=e.alternate;return null===n?((n=Ic(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function jc(e,t,n,r,i,a){var s=2;if(r=e,"function"===typeof e)Rc(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case E:return Mc(n.children,i,a,t);case S:s=8,i|=8;break;case _:return(e=Ic(12,n,t,2|i)).elementType=_,e.lanes=a,e;case O:return(e=Ic(13,n,t,i)).elementType=O,e.lanes=a,e;case N:return(e=Ic(19,n,t,i)).elementType=N,e.lanes=a,e;case P:return Dc(n,i,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case k:s=10;break e;case T:s=9;break e;case C:s=11;break e;case I:s=14;break e;case R:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Ic(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Mc(e,t,n,r){return(e=Ic(7,e,r,t)).lanes=n,e}function Dc(e,t,n,r){return(e=Ic(22,e,r,t)).elementType=P,e.lanes=n,e.stateNode={isHidden:!1},e}function Lc(e,t,n){return(e=Ic(6,e,null,t)).lanes=n,e}function Fc(e,t,n){return(t=Ic(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bc(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Uc(e,t,n,r,i,o,a,s,l){return e=new Bc(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Ic(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Lo(o),e}function zc(e){if(!e)return Ti;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ri(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Ri(n))return Mi(e,n,t)}return t}function Hc(e,t,n,r,i,o,a,s,l){return(e=Uc(n,r,!0,e,0,o,0,s,l)).context=zc(null),n=e.current,(o=Bo(r=ec(),i=tc(n))).callback=void 0!==t&&null!==t?t:null,Uo(n,o,i),e.current.lanes=i,bt(e,i,r),rc(e,r),e}function $c(e,t,n,r){var i=t.current,o=ec(),a=tc(i);return n=zc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Bo(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Uo(i,t,a))&&(nc(e,i,a,o),zo(e,i,a)),a}function Vc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Gc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Wc(e,t){Gc(e,t),(e=e.alternate)&&Gc(e,t)}El=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Oi.current)ys=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return ys=!1,function(e,t,n){switch(t.tag){case 3:Os(t),fo();break;case 5:Qo(t);break;case 1:Ri(t.type)&&Di(t);break;case 4:Xo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ki(Eo,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(ki(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ls(e,t,n):(ki(ea,1&ea.current),null!==(e=Vs(e,t,n))?e.sibling:null);ki(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Hs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ki(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Ss(e,t,n)}return Vs(e,t,n)}(e,t,n);ys=0!==(131072&e.flags)}else ys=!1,io&&0!==(1048576&t.flags)&&Ji(t,Wi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;$s(e,t),e=t.pendingProps;var i=Ii(t,Ci.current);No(t,n),i=ga(null,t,r,e,i,n);var a=ba();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ri(r)?(a=!0,Di(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Lo(t),i.updater=is,t.stateNode=i,i._reactInternals=t,ls(t,r,e,n),t=Cs(null,t,r,!0,a,n)):(t.tag=0,io&&a&&eo(t),xs(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch($s(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"===typeof e)return Rc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===C)return 11;if(e===I)return 14}return 2}(r),e=ns(r,e),i){case 0:t=ks(null,t,r,e,n);break e;case 1:t=Ts(null,t,r,e,n);break e;case 11:t=ws(null,t,r,e,n);break e;case 14:t=As(null,t,r,ns(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,ks(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ts(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 3:e:{if(Os(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,Fo(e,t),$o(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ns(e,t,r,n,i=cs(Error(o(423)),t));break e}if(r!==i){t=Ns(e,t,r,n,i=cs(Error(o(424)),t));break e}for(ro=ci(t.stateNode.containerInfo.firstChild),no=t,io=!0,oo=null,n=Ao(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(fo(),r===i){t=Vs(e,t,n);break e}xs(e,t,r,n)}t=t.child}return t;case 5:return Qo(t),null===e&&co(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==a&&ni(r,a)&&(t.flags|=32),_s(e,t),xs(e,t,s,n),t.child;case 6:return null===e&&co(t),null;case 13:return Ls(e,t,n);case 4:return Xo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=wo(t,null,r,n):xs(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,ws(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 7:return xs(e,t,t.pendingProps,n),t.child;case 8:case 12:return xs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,ki(Eo,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Oi.current){t=Vs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===a.tag){(c=Bo(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),Oo(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Oo(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}xs(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,No(t,n),r=r(i=Io(i)),t.flags|=1,xs(e,t,r,n),t.child;case 14:return i=ns(r=t.type,t.pendingProps),As(e,t,r,i=ns(r.type,i),n);case 15:return Es(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ns(r,i),$s(e,t),t.tag=1,Ri(r)?(e=!0,Di(t)):e=!1,No(t,n),as(t,r,i),ls(t,r,i,n),Cs(null,t,r,!0,e,n);case 19:return Hs(e,t,n);case 22:return Ss(e,t,n)}throw Error(o(156,t.tag))};var qc="function"===typeof reportError?reportError:function(e){console.error(e)};function Yc(e){this._internalRoot=e}function Kc(e){this._internalRoot=e}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Zc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Qc(){}function Jc(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"===typeof i){var s=i;i=function(){var e=Vc(a);s.call(e)}}$c(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"===typeof r){var o=r;r=function(){var e=Vc(a);o.call(e)}}var a=Hc(t,r,e,0,null,!1,0,"",Qc);return e._reactRootContainer=a,e[fi]=a.current,Hr(8===e.nodeType?e.parentNode:e),uc(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"===typeof r){var s=r;r=function(){var e=Vc(l);s.call(e)}}var l=Uc(e,0,!1,null,0,!1,0,"",Qc);return e._reactRootContainer=l,e[fi]=l.current,Hr(8===e.nodeType?e.parentNode:e),uc((function(){$c(t,l,n,r)})),l}(n,t,e,i,r);return Vc(a)}Kc.prototype.render=Yc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));$c(e,t,null,null)},Kc.prototype.unmount=Yc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){$c(null,e,null,null)})),t[fi]=null}},Kc.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Pt.length&&0!==t&&t<Pt[n].priority;n++);Pt.splice(n,0,e),0===n&&Lt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(vt(t,1|n),rc(t,Ze()),0===(6&Cl)&&(Hl=Ze()+500,Hi()))}break;case 13:uc((function(){var t=Mo(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),Wc(e,1)}},At=function(e){if(13===e.tag){var t=Mo(e,134217728);if(null!==t)nc(t,e,134217728,ec());Wc(e,134217728)}},Et=function(e){if(13===e.tag){var t=tc(e),n=Mo(e,t);if(null!==n)nc(n,e,t,ec());Wc(e,t)}},St=function(){return yt},_t=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},Ae=function(e,t,n){switch(t){case"input":if(Q(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=wi(r);if(!i)throw Error(o(90));q(r),Q(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ce=cc,Oe=uc;var eu={usingClientEntryPoint:!1,Events:[yi,xi,wi,ke,Te,cc]},tu={findFiberByHostInstance:vi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ge(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{it=ru.inject(nu),ot=ru}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xc(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:A,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Xc(e))throw Error(o(299));var n=!1,r="",i=qc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Uc(e,1,!1,null,0,n,0,r,i),e[fi]=t.current,Hr(8===e.nodeType?e.parentNode:e),new Yc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=Ge(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)}
75,t.hydrate=function(e,t,n){if(!Zc(t))throw Error(o(200));return Jc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Xc(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=qc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Hc(t,null,e,1,null!=n?n:null,i,0,a,s),e[fi]=t.current,Hr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Kc(t)},t.render=function(e,t,n){if(!Zc(t))throw Error(o(200));return Jc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Zc(e))throw Error(o(40));return!!e._reactRootContainer&&(uc((function(){Jc(null,null,e,!1,(function(){e._reactRootContainer=null,e[fi]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Zc(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return Jc(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},1352:function(e,t,n){"use strict";var r=n(17119);t.H=r.createRoot,r.hydrateRoot},17119:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(38345)},24901:function(e){"use strict";var t=Array.isArray,n=Object.keys,r=Object.prototype.hasOwnProperty,i="undefined"!==typeof Element;function o(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){var s,l,c,u=t(e),d=t(a);if(u&&d){if((l=e.length)!=a.length)return!1;for(s=l;0!==s--;)if(!o(e[s],a[s]))return!1;return!0}if(u!=d)return!1;var p=e instanceof Date,h=a instanceof Date;if(p!=h)return!1;if(p&&h)return e.getTime()==a.getTime();var f=e instanceof RegExp,m=a instanceof RegExp;if(f!=m)return!1;if(f&&m)return e.toString()==a.toString();var g=n(e);if((l=g.length)!==n(a).length)return!1;for(s=l;0!==s--;)if(!r.call(a,g[s]))return!1;if(i&&e instanceof Element&&a instanceof Element)return e===a;for(s=l;0!==s--;)if(("_owner"!==(c=g[s])||!e.$$typeof)&&!o(e[c],a[c]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return o(e,t)}catch(n){if(n.message&&n.message.match(/stack|recursion/i)||-2146828260===n.number)return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}}},97121:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(9950),s=n(91025),l=o(n(38564));t.default=function(){var e,t=["https://www.googleapis.com/auth/drive.readonly"],n=(0,l.default)("https://apis.google.com/js/api.js"),o=n[0],c=n[1],u=(0,l.default)("https://accounts.google.com/gsi/client"),d=u[0],p=u[1],h=(0,a.useState)(!1),f=h[0],m=h[1],g=(0,a.useState)(!1),b=g[0],v=g[1],y=(0,a.useState)(!1),x=(y[0],y[1],(0,a.useState)(s.defaultConfiguration)),w=x[0],A=x[1],E=(0,a.useState)(),S=E[0],_=E[1];(0,a.useEffect)((function(){!o||c||!d||p||f||k()}),[o,c,d,p,f]),(0,a.useEffect)((function(){b&&w.token&&o&&!c&&d&&!p&&f&&(C(w),v(!1))}),[b,w.token,o,c,d,p,f]);var k=function(){window.gapi.load("auth"),window.gapi.load("picker",{callback:T})},T=function(){m(!0)},C=function(t){var n=t.token,r=t.appId,i=void 0===r?"":r,o=t.supportDrives,a=void 0!==o&&o,s=t.developerKey,l=t.viewId,c=void 0===l?"DOCS":l,u=t.disabled,d=t.multiselect,p=t.setOrigin,h=t.showUploadView,f=void 0!==h&&h,m=t.showUploadFolders,g=t.setParentFolder,b=void 0===g?"":g,v=t.viewMimeTypes,y=t.customViews,x=t.locale,w=void 0===x?"en":x,A=t.setIncludeFolders,E=t.setSelectFolderEnabled,S=t.disableDefaultView,_=void 0!==S&&S,k=t.callbackFunction;if(u)return!1;var T=new google.picker.DocsView(google.picker.ViewId[c]);v&&T.setMimeTypes(v),A&&T.setIncludeFolders(!0),E&&T.setSelectFolderEnabled(!0);var C=new google.picker.DocsUploadView;return v&&C.setMimeTypes(v),m&&C.setIncludeFolders(!0),b&&C.setParent(b),b&&T.setParent(b),e=(new google.picker.PickerBuilder).setAppId(i).setOAuthToken(n).setDeveloperKey(s).setLocale(w).setCallback(k),p&&e.setOrigin(p),_||e.addView(T),y&&y.map((function(t){return e.addView(t)}
75)),d&&e.enableFeature(google.picker.Feature.MULTISELECT_ENABLED),f&&e.addView(C),a&&e.enableFeature(google.picker.Feature.SUPPORT_DRIVES),e.build().setVisible(!0),!0};return[function(e){(A(e),e.token)||google.accounts.oauth2.initTokenClient({client_id:e.clientId,scope:(e.customScopes?i(i([],t,!0),e.customScopes,!0):t).join(" "),callback:function(t){_(t),C(r(r({},e),{token:t.access_token}))}}).requestAccessToken();if(e.token&&o&&!c&&f)return C(e)},S]}},91025:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultConfiguration=void 0,t.defaultConfiguration={clientId:"",developerKey:"",viewId:"DOCS",callbackFunction:function(){return null}}},38564:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9950),i={queue:{},injectorMap:{},scriptMap:{}};t.default=function(e){var t=(0,r.useState)({loaded:!1,error:!1}),n=t[0],o=t[1];return(0,r.useEffect)((function(){var t,n,r,a,s;if((null===(t=i.injectorMap)||void 0===t?void 0:t[e])||(i.injectorMap[e]="init"),"loaded"!==i.injectorMap[e]){if("error"!==i.injectorMap[e]){var l=function(t){var n,r,o,a;t&&console.log("error loading the script"),null===(r=null===(n=i.queue)||void 0===n?void 0:n[e])||void 0===r||r.forEach((function(e){return e(t)})),t&&i.scriptMap[e]?(null===(a=null===(o=i.scriptMap)||void 0===o?void 0:o[e])||void 0===a||a.remove(),i.injectorMap[e]="error"):i.injectorMap[e]="loaded",delete i.scriptMap[e]},c=function(e){o({loaded:!0,error:e})};return(null===(n=i.scriptMap)||void 0===n?void 0:n[e])||(i.scriptMap[e]=document.createElement("script"),i.scriptMap[e]&&(i.scriptMap[e].src=e,i.scriptMap[e].async=!0,document.body.append(i.scriptMap[e]),i.scriptMap[e].addEventListener("load",(function(){return l(!1)})),i.scriptMap[e].addEventListener("error",(function(){return l(!0)})),i.injectorMap[e]="loading")),(null===(r=i.queue)||void 0===r?void 0:r[e])?null===(s=null===(a=i.queue)||void 0===a?void 0:a[e])||void 0===s||s.push(c):i.queue[e]=[c],function(){var t,n;i.scriptMap[e]&&(null===(t=i.scriptMap[e])||void 0===t||t.removeEventListener("load",(function(){return l(!0)})),null===(n=i.scriptMap[e])||void 0===n||n.removeEventListener("error",(function(){return l(!0)})))}}o({loaded:!0,error:!0})}else o({loaded:!0,error:!1})}),[e]),[n.loaded,n.error]}},86879:function(e,t){"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler");Symbol.for("react.provider");var s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),m=Symbol.for("react.client.reference");function g(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case a:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case h:case p:case s:return e;default:return t}}case r:return t}}}t.vM=c,t.lD=p,t.zv=function(e){return g(e)===i}},14021:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(14047),o=(r=i)&&r.__esModule?r:{default:r};t.default=o.default,e.exports=t.default},14047:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(9950),a=c(o),s=n(11942),l=c(n(80423));function c(e){return e&&e.__esModule?e:{default:e}}var u={"ps-scroll-y":"onScrollY","ps-scroll-x":"onScrollX","ps-scroll-up":"onScrollUp","ps-scroll-down":"onScrollDown","ps-scroll-left":"onScrollLeft","ps-scroll-right":"onScrollRight","ps-y-reach-start":"onYReachStart","ps-y-reach-end":"onYReachEnd","ps-x-reach-start":"onXReachStart","ps-x-reach-end":"onXReachEnd"};Object.freeze(u);var d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleRef=n.handleRef.bind(n),n._handlerByEvent={},n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}
75(t,e),i(t,[{key:"componentDidMount",value:function(){this.props.option&&console.warn('react-perfect-scrollbar: the "option" prop has been deprecated in favor of "options"'),this._ps=new l.default(this._container,this.props.options||this.props.option),this._updateEventHook(),this._updateClassName()}},{key:"componentDidUpdate",value:function(e){this._updateEventHook(e),this.updateScroll(),e.className!==this.props.className&&this._updateClassName()}},{key:"componentWillUnmount",value:function(){var e=this;Object.keys(this._handlerByEvent).forEach((function(t){var n=e._handlerByEvent[t];n&&e._container.removeEventListener(t,n,!1)})),this._handlerByEvent={},this._ps.destroy(),this._ps=null}},{key:"_updateEventHook",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.keys(u).forEach((function(n){var r=e.props[u[n]],i=t[u[n]];if(r!==i){if(i){var o=e._handlerByEvent[n];e._container.removeEventListener(n,o,!1),e._handlerByEvent[n]=null}if(r){var a=function(){return r(e._container)};e._container.addEventListener(n,a,!1),e._handlerByEvent[n]=a}}}))}},{key:"_updateClassName",value:function(){var e=this.props.className,t=this._container.className.split(" ").filter((function(e){return e.match(/^ps([-_].+|)$/)})).join(" ");this._container&&(this._container.className="scrollbar-container"+(e?" "+e:"")+(t?" "+t:""))}},{key:"updateScroll",value:function(){this.props.onSync(this._ps)}},{key:"handleRef",value:function(e){this._container=e,this.props.containerRef(e)}},{key:"render",value:function(){var e=this.props,t=(e.className,e.style),n=(e.option,e.options,e.containerRef,e.onScrollY,e.onScrollX,e.onScrollUp,e.onScrollDown,e.onScrollLeft,e.onScrollRight,e.onYReachStart,e.onYReachEnd,e.onXReachStart,e.onXReachEnd,e.component),i=(e.onSync,e.children),o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["className","style","option","options","containerRef","onScrollY","onScrollX","onScrollUp","onScrollDown","onScrollLeft","onScrollRight","onYReachStart","onYReachEnd","onXReachStart","onXReachEnd","component","onSync","children"]),s=n;return a.default.createElement(s,r({style:t,ref:this.handleRef},o),i)}}]),t}(o.Component);t.default=d,d.defaultProps={className:"",style:void 0,option:void 0,options:void 0,containerRef:function(){},onScrollY:void 0,onScrollX:void 0,onScrollUp:void 0,onScrollDown:void 0,onScrollLeft:void 0,onScrollRight:void 0,onYReachStart:void 0,onYReachEnd:void 0,onXReachStart:void 0,onXReachEnd:void 0,onSync:function(e){return e.update()},component:"div"},d.propTypes={children:s.PropTypes.node.isRequired,className:s.PropTypes.string,style:s.PropTypes.object,option:s.PropTypes.object,options:s.PropTypes.object,containerRef:s.PropTypes.func,onScrollY:s.PropTypes.func,onScrollX:s.PropTypes.func,onScrollUp:s.PropTypes.func,onScrollDown:s.PropTypes.func,onScrollLeft:s.PropTypes.func,onScrollRight:s.PropTypes.func,onYReachStart:s.PropTypes.func,onYReachEnd:s.PropTypes.func,onXReachStart:s.PropTypes.func,onXReachEnd:s.PropTypes.func,onSync:s.PropTypes.func,component:s.PropTypes.string},e.exports=t.default},35254:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},s=a(n(9950)),l=a(n(17119)),c=a(n(59418)),u=a(n(40160)),d=function(e){function t(t){var n=e.call(this,t)||this;
vendor: 6,565 bytes, line 75
75n.dirtyProps=["modules","formats","bounds","theme","children"],n.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],n.state={generation:0},n.selection=null,n.onEditorChange=function(e,t,r,i){var o,a,s,l;"text-change"===e?null===(a=(o=n).onEditorChangeText)||void 0===a||a.call(o,n.editor.root.innerHTML,t,i,n.unprivilegedEditor):"selection-change"===e&&(null===(l=(s=n).onEditorChangeSelection)||void 0===l||l.call(s,t,i,n.unprivilegedEditor))};var r=n.isControlled()?t.value:t.defaultValue;return n.value=null!==r&&void 0!==r?r:"",n}return r(t,e),t.prototype.validateProps=function(e){var t;if(s.default.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(s.default.Children.count(e.children)&&"textarea"===(null===(t=s.default.Children.only(e.children))||void 0===t?void 0:t.type))throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.");if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},t.prototype.shouldComponentUpdate=function(e,t){var n,r=this;if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){var i=this.getEditorContents(),a=null!==(n=e.value)&&void 0!==n?n:"";this.isEqualValue(a,i)||this.setEditorContents(this.editor,a)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),o(this.cleanProps,this.dirtyProps).some((function(t){return!c.default(e[t],r.props[t])}))},t.prototype.shouldComponentRegenerate=function(e){var t=this;return this.dirtyProps.some((function(n){return!c.default(e[n],t.props[n])}))},t.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},t.prototype.componentWillUnmount=function(){this.destroyEditor()},t.prototype.componentDidUpdate=function(e,t){var n=this;if(this.editor&&this.shouldComponentRegenerate(e)){var r=this.editor.getContents(),i=this.editor.getSelection();this.regenerationSnapshot={delta:r,selection:i},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){var o=this.regenerationSnapshot,a=(r=o.delta,o.selection);delete this.regenerationSnapshot,this.instantiateEditor();var s=this.editor;s.setContents(r),p((function(){return n.setEditorSelection(s,a)}))}},t.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},t.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},t.prototype.isControlled=function(){return"value"in this.props},t.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},t.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},t.prototype.createEditor=function(e,t){var n=new u.default(e,t);return null!=t.tabIndex&&this.setEditorTabIndex(n,t.tabIndex),this.hookEditor(n),n},t.prototype.hookEditor=function(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)},t.prototype.unhookEditor=function(e){e.off("editor-change",this.onEditorChange)},t.prototype.getEditorContents=function(){return this.value},t.prototype.getEditorSelection=function(){return this.selection},t.prototype.isDelta=function(e){return e&&e.ops},t.prototype.isEqualValue=function(e,t){return this.isDelta(e)&&this.isDelta(t)?c.default(e.ops,t.ops):c.default(e,t)},t.prototype.setEditorContents=function(e,t){var n=this;this.value=t;var r=this.getEditorSelection();"string"===typeof t?e.setContents(e.clipboard.convert(t)):e.setContents(t),p((function(){return n.setEditorSelection(e,r)}))},t.prototype.setEditorSelection=function(e,t){if(this.selection=t,t){var n=e.getLength();t.index=Math.max(0,Math.min(t.index,n-1)),t.length=Math.max(0,Math.min(t.length,n-1-t.index)),e.setSelection(t)}},t.prototype.setEditorTabIndex=function(e,t){var n,r;(null===(r=null===(n=e)||void 0===n?void 0:n.scroll)||void 0===r?void 0:r.domNode)&&(e.scroll.domNode.tabIndex=t)},t.prototype.setEditorReadOnly=function(e,t){t?e.disable():e.enable()},t.prototype.makeUnprivilegedEditor=function(e){var t=e;return{getHTML:function(){return t.root.innerHTML},getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}},t.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var e=l.default.findDOMNode(this.editingArea);if(!e)throw new Error("Cannot find element for editing area");if(3===e.nodeType)throw new Error("Editing area cannot be a text node");return e},t.prototype.renderEditingArea=function(){var e=this,t=this.props,n=t.children,r=t.preserveWhitespace,o={key:this.state.generation,ref:function(t){e.editingArea=t}};return s.default.Children.count(n)?s.default.cloneElement(s.default.Children.only(n),o):r?s.default.createElement("pre",i({},o)):s.default.createElement("div",i({},o))},t.prototype.render=function(){var e;return s.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(e=this.props.className,null!==e&&void 0!==e?e:""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},t.prototype.onEditorChangeText=function(e,t,n,r){var i,o;if(this.editor){var a=this.isDelta(this.value)?r.getContents():r.getHTML();a!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=a,null===(o=(i=this.props).onChange)||void 0===o||o.call(i,e,t,n,r))}},t.prototype.onEditorChangeSelection=function(e,t,n){var r,i,o,a,s,l;if(this.editor){var u=this.getEditorSelection(),d=!u&&e,p=u&&!e;c.default(e,u)||(this.selection=e,null===(i=(r=this.props).onChangeSelection)||void 0===i||i.call(r,e,t,n),d?null===(a=(o=this.props).onFocus)||void 0===a||a.call(o,e,t,n):p&&(null===(l=(s=this.props).onBlur)||void 0===l||l.call(s,u,t,n)))}}
75,t.prototype.focus=function(){this.editor&&this.editor.focus()},t.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},t.displayName="React Quill",t.Quill=u.default,t.defaultProps={theme:"snow",modules:{},readOnly:!1},t}(s.default.Component);function p(e){Promise.resolve().then(e)}e.exports=d},65355:function(e,t){"use strict";var n,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function b(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case s:case a:case p:case h:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case m:case f:case l:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference")},60863:function(e,t,n){"use strict";n(65355)},26689:function(e,t,n){"use strict";n.d(t,{Kd:function(){return c},N_:function(){return u},ok:function(){return d}});var r=n(9950),i=n(56201),o=n(13564);function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}function s(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}const l=["onClick","reloadDocument","replace","state","target","to"];function c(e){let{basename:t,children:n,window:a}=e,s=(0,r.useRef)();null==s.current&&(s.current=(0,i.zR)({window:a}));let l=s.current,[c,u]=(0,r.useState)({action:l.action,location:l.location});return(0,r.useLayoutEffect)((()=>l.listen(u)),[l]),(0,r.createElement)(o.Ix,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:l})}const u=(0,r.forwardRef)((function(e,t){let{onClick:n,reloadDocument:c,replace:u=!1,state:d,target:p,to:h}=e,f=s(e,l),m=(0,o.$P)(h),g=function(e,t){let{target:n,replace:a,state:s}=void 0===t?{}:t,l=(0,o.Zp)(),c=(0,o.zy)(),u=(0,o.x$)(e);return(0,r.useCallback)((t=>{if(0===t.button&&(!n||"_self"===n)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(t)){t.preventDefault();let n=!!a||(0,i.AO)(c)===(0,i.AO)(u);l(e,{replace:n,state:s})}}),[c,l,u,a,s,n,e])}(h,{replace:u,state:d,target:p});return(0,r.createElement)("a",a({},f,{href:m,onClick:function(e){n&&n(e),e.defaultPrevented||c||g(e)},ref:t,target:p}))}));function d(e){let t=(0,r.useRef)(p(e)),n=(0,o.zy)(),i=(0,r.useMemo)((()=>{let e=p(n.search);for(let n of t.current.keys())e.has(n)||t.current.getAll(n).forEach((t=>{e.append(n,t)}));return e}),[n.search]),a=(0,o.Zp)();return[i,(0,r.useCallback)(((e,t)=>{a("?"+p(e),t)}),[a])]}function p(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}},13564:function(e,t,n){"use strict";n.d(t,{$P:function(){return T},Ix:function(){return L},Ye:function(){return j},Zp:function(){return N},g:function(){return R},sv:function(){return D},x$:function(){return P},zy:function(){return O}});var r=n(56201),i=n(9950);const o=(0,i.createContext)(null);const a=(0,i.createContext)(null);const s=(0,i.createContext)({outlet:null,matches:[]});function l(e,t){if(!e)throw new Error(t)}function c(e,t,n){void 0===n&&(n="/");let i=A(("string"===typeof t?(0,r.Rr)(t):t).pathname||"/",n);if(null==i)return null;let o=u(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let a=null;for(let r=0;null==a&&r<o.length;++r)a=y(o[r],i);return a}function u(e,t,n,r){return void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r=""),e.forEach(((e,i)=>{let o={relativePath:e.path||"",caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};o.relativePath.startsWith("/")&&(o.relativePath.startsWith(r)||l(!1),o.relativePath=o.relativePath.slice(r.length));let a=E([r,o.relativePath]),s=n.concat(o);e.children&&e.children.length>0&&(!0===e.index&&l(!1),u(e.children,t,s,a)),(null!=e.path||e.index)&&t.push({path:a,score:v(a,e.index),routesMeta:s})})),t}const d=/^:\w+$/,p=3,h=2,f=1,m=10,g=-2,b=e=>"*"===e;function v(e,t){let n=e.split("/"),r=n.length;return n.some(b)&&(r+=g),t&&(r+=h),n.filter((e=>!b(e))).reduce(((e,t)=>e+(d.test(t)?p:""===t?f:m)),r)}function y(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let a=0;a<n.length;++a){let e=n[a],s=a===n.length-1,l="/"===i?t:t.slice(i.length)||"/",c=x({path:e.relativePath,caseSensitive:e.caseSensitive,end:s},l);if(!c)return null;
75Object.assign(r,c.params);let u=e.route;o.push({params:r,pathname:E([i,c.pathname]),pathnameBase:S(E([i,c.pathnameBase])),route:u}),"/"!==c.pathnameBase&&(i=E([i,c.pathnameBase]))}return o}function x(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,((e,t)=>(r.push(t),"([^\\/]+)")));e.endsWith("*")?(r.push("*"),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):i+=n?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)";let o=new RegExp(i,t?void 0:"i");return[o,r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce(((e,t,n)=>{if("*"===t){let e=s[n]||"";a=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e){try{return decodeURIComponent(e)}catch(t){return e}}(s[n]||""),e}),{}),pathname:o,pathnameBase:a,pattern:e}}function w(e,t,n){let i,o="string"===typeof e?(0,r.Rr)(e):e,a=""===e||""===o.pathname?"/":o.pathname;if(null==a)i=n;else{let e=t.length-1;if(a.startsWith("..")){let t=a.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let s=function(e,t){void 0===t&&(t="/");let{pathname:n,search:i="",hash:o=""}="string"===typeof e?(0,r.Rr)(e):e,a=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:a,search:_(i),hash:k(o)}}(o,i);return a&&"/"!==a&&a.endsWith("/")&&!s.pathname.endsWith("/")&&(s.pathname+="/"),s}function A(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=e.charAt(t.length);return n&&"/"!==n?null:e.slice(t.length)||"/"}const E=e=>e.join("/").replace(/\/\/+/g,"/"),S=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",k=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function T(e){C()||l(!1);let{basename:t,navigator:n}=(0,i.useContext)(o),{hash:a,pathname:s,search:c}=P(e),u=s;if("/"!==t){let n=function(e){return""===e||""===e.pathname?"/":"string"===typeof e?(0,r.Rr)(e).pathname:e.pathname}(e),i=null!=n&&n.endsWith("/");u="/"===s?t+(i?"/":""):E([t,s])}return n.createHref({pathname:u,search:c,hash:a})}function C(){return null!=(0,i.useContext)(a)}function O(){return C()||l(!1),(0,i.useContext)(a).location}function N(){C()||l(!1);let{basename:e,navigator:t}=(0,i.useContext)(o),{matches:n}=(0,i.useContext)(s),{pathname:r}=O(),a=JSON.stringify(n.map((e=>e.pathnameBase))),c=(0,i.useRef)(!1);return(0,i.useEffect)((()=>{c.current=!0})),(0,i.useCallback)((function(n,i){if(void 0===i&&(i={}),!c.current)return;if("number"===typeof n)return void t.go(n);let o=w(n,JSON.parse(a),r);"/"!==e&&(o.pathname=E([e,o.pathname])),(i.replace?t.replace:t.push)(o,i.state)}),[e,t,a,r])}const I=(0,i.createContext)(null);function R(){let{matches:e}=(0,i.useContext)(s),t=e[e.length-1];return t?t.params:{}}function P(e){let{matches:t}=(0,i.useContext)(s),{pathname:n}=O(),r=JSON.stringify(t.map((e=>e.pathnameBase)));return(0,i.useMemo)((()=>w(e,JSON.parse(r),n)),[e,r,n])}function j(e,t){C()||l(!1);let{matches:n}=(0,i.useContext)(s),o=n[n.length-1],a=o?o.params:{},u=(o&&o.pathname,o?o.pathnameBase:"/");o&&o.route;let d,p=O();if(t){var h;let e="string"===typeof t?(0,r.Rr)(t):t;"/"===u||(null==(h=e.pathname)?void 0:h.startsWith(u))||l(!1),d=e}else d=p;let f=d.pathname||"/",m=c(e,{pathname:"/"===u?f:f.slice(u.length)||"/"});return M(m&&m.map((e=>Object.assign({},e,{params:Object.assign({},a,e.params),pathname:E([u,e.pathname]),pathnameBase:"/"===e.pathnameBase?u:E([u,e.pathnameBase])}))),n)}function M(e,t){return void 0===t&&(t=[]),null==e?null:e.reduceRight(((n,r,o)=>(0,i.createElement)(s.Provider,{children:void 0!==r.route.element?r.route.element:n,value:{outlet:n,matches:t.concat(e.slice(0,o+1))}})),null)}function D(e){return function(e){let t=(0,i.useContext)(s).outlet;return t?(0,i.createElement)(I.Provider,{value:e},t):t}(e.context)}function L(e){let{basename:t="/",children:n=null,location:s,navigationType:c=r.rc.Pop,navigator:u,static:d=!1}=e;C()&&l(!1);let p=S(t),h=(0,i.useMemo)((()=>({basename:p,navigator:u,static:d})),[p,u,d]);"string"===typeof s&&(s=(0,r.Rr)(s));let{pathname:f="/",search:m="",hash:g="",state:b=null,key:v="default"}=s,y=(0,i.useMemo)((()=>{let e=A(f,p);return null==e?null:{pathname:e,search:m,hash:g,state:b,key:v}}),[p,f,m,g,b,v]);return null==y?null:(0,i.createElement)(o.Provider,{value:h},(0,i.createElement)(a.Provider,{children:n,value:{location:y,navigationType:c}}))}},99065:function(e,t){"use strict";
75Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.isNative=void 0;var n="undefined"!==typeof window&&(window.SpeechRecognition||window.webkitSpeechRecognition||window.mozSpeechRecognition||window.msSpeechRecognition||window.oSpeechRecognition);t.isNative=function(e){return e===n};var r=n;t.default=r},81291:function(e,t,n){"use strict";var r=n(54756);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(43226))&&i.__esModule?i:{default:i},a=n(28928),s=n(99065);function l(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,i)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){l(o,r,i,a,s,"next",e)}function s(e){l(o,r,i,a,s,"throw",e)}a(void 0)}))}}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var d=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.recognition=null,this.pauseAfterDisconnect=!1,this.interimTranscript="",this.finalTranscript="",this.listening=!1,this.isMicrophoneAvailable=!0,this.subscribers={},this.onStopListening=function(){},this.previousResultWasFinalOnly=!1,this.resetTranscript=this.resetTranscript.bind(this),this.startListening=this.startListening.bind(this),this.stopListening=this.stopListening.bind(this),this.abortListening=this.abortListening.bind(this),this.setSpeechRecognition=this.setSpeechRecognition.bind(this),this.disableRecognition=this.disableRecognition.bind(this),this.setSpeechRecognition(t),(0,o.default)()&&(this.updateFinalTranscript=(0,a.debounce)(this.updateFinalTranscript,250,!0))}var t,n,i;return t=e,n=[{key:"setSpeechRecognition",value:function(e){var t=!!e&&((0,s.isNative)(e)||(0,a.browserSupportsPolyfills)());t&&(this.disableRecognition(),this.recognition=new e,this.recognition.continuous=!1,this.recognition.interimResults=!0,this.recognition.onresult=this.updateTranscript.bind(this),this.recognition.onend=this.onRecognitionDisconnect.bind(this),this.recognition.onerror=this.onError.bind(this)),this.emitBrowserSupportsSpeechRecognitionChange(t)}},{key:"subscribe",value:function(e,t){this.subscribers[e]=t}},{key:"unsubscribe",value:function(e){delete this.subscribers[e]}},{key:"emitListeningChange",value:function(e){var t=this;this.listening=e,Object.keys(this.subscribers).forEach((function(n){(0,t.subscribers[n].onListeningChange)(e)}))}},{key:"emitMicrophoneAvailabilityChange",value:function(e){var t=this;this.isMicrophoneAvailable=e,Object.keys(this.subscribers).forEach((function(n){(0,t.subscribers[n].onMicrophoneAvailabilityChange)(e)}))}},{key:"emitTranscriptChange",value:function(e,t){var n=this;Object.keys(this.subscribers).forEach((function(r){(0,n.subscribers[r].onTranscriptChange)(e,t)}))}},{key:"emitClearTranscript",value:function(){var e=this;Object.keys(this.subscribers).forEach((function(t){(0,e.subscribers[t].onClearTranscript)()}))}},{key:"emitBrowserSupportsSpeechRecognitionChange",value:function(e){var t=this;Object.keys(this.subscribers).forEach((function(n){var r=t.subscribers[n],i=r.onBrowserSupportsSpeechRecognitionChange,o=r.onBrowserSupportsContinuousListeningChange;i(e),o(e)}))}},{key:"disconnect",value:function(e){if(this.recognition&&this.listening)switch(e){case"ABORT":this.pauseAfterDisconnect=!0,this.abort();break;case"RESET":this.pauseAfterDisconnect=!1,this.abort();break;default:this.pauseAfterDisconnect=!0,this.stop()}}},{key:"disableRecognition",value:function(){this.recognition&&(this.recognition.onresult=function(){},this.recognition.onend=function(){},this.recognition.onerror=function(){},this.listening&&this.stopListening())}},{key:"onError",value:function(e){e&&e.error&&"not-allowed"===e.error&&(this.emitMicrophoneAvailabilityChange(!1),this.disableRecognition())}},{key:"onRecognitionDisconnect",value:function(){this.onStopListening(),this.listening=!1,this.pauseAfterDisconnect?this.emitListeningChange(!1):this.recognition&&(this.recognition.continuous?this.startListening({continuous:this.recognition.continuous}):this.emitListeningChange(!1)),this.pauseAfterDisconnect=!1}},{key:"updateTranscript",value:function(e){var t=e.results,n=e.resultIndex,r=void 0===n?t.length-1:n;this.interimTranscript="",this.finalTranscript="";for(var i=r;i<t.length;++i)t[i].isFinal&&(!(0,o.default)()||t[i][0].confidence>0)?this.updateFinalTranscript(t[i][0].transcript):this.interimTranscript=(0,a.concatTranscripts)(this.interimTranscript,t[i][0].transcript);var s=!1;""===this.interimTranscript&&""!==this.finalTranscript?(this.previousResultWasFinalOnly&&
75(s=!0),this.previousResultWasFinalOnly=!0):this.previousResultWasFinalOnly=!1,s||this.emitTranscriptChange(this.interimTranscript,this.finalTranscript)}},{key:"updateFinalTranscript",value:function(e){this.finalTranscript=(0,a.concatTranscripts)(this.finalTranscript,e)}},{key:"resetTranscript",value:function(){this.disconnect("RESET")}},{key:"startListening",value:function(){var e=c(r.mark((function e(){var t,n,i,o,a,s,l=arguments;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(t=l.length>0&&void 0!==l[0]?l[0]:{}).continuous,i=void 0!==n&&n,o=t.language,this.recognition){e.next=3;break}return e.abrupt("return");case 3:if(a=i!==this.recognition.continuous,s=o&&o!==this.recognition.lang,!a&&!s){e.next=11;break}if(!this.listening){e.next=9;break}return e.next=9,this.stopListening();case 9:this.recognition.continuous=a?i:this.recognition.continuous,this.recognition.lang=s?o:this.recognition.lang;case 11:if(this.listening){e.next=22;break}return this.recognition.continuous||(this.resetTranscript(),this.emitClearTranscript()),e.prev=13,e.next=16,this.start();case 16:this.emitListeningChange(!0),e.next=22;break;case 19:e.prev=19,e.t0=e.catch(13),e.t0 instanceof DOMException||this.emitMicrophoneAvailabilityChange(!1);case 22:case"end":return e.stop()}}),e,this,[[13,19]])})));return function(){return e.apply(this,arguments)}}()},{key:"abortListening",value:function(){var e=c(r.mark((function e(){var t=this;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.disconnect("ABORT"),this.emitListeningChange(!1),e.next=4,new Promise((function(e){t.onStopListening=e}));case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"stopListening",value:function(){var e=c(r.mark((function e(){var t=this;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.disconnect("STOP"),this.emitListeningChange(!1),e.next=4,new Promise((function(e){t.onStopListening=e}));case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getRecognition",value:function(){return this.recognition}},{key:"start",value:function(){var e=c(r.mark((function e(){return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.recognition||this.listening){e.next=4;break}return e.next=3,this.recognition.start();case 3:this.listening=!0;case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"stop",value:function(){this.recognition&&this.listening&&(this.recognition.stop(),this.listening=!1)}},{key:"abort",value:function(){this.recognition&&this.listening&&(this.recognition.abort(),this.listening=!1)}}],n&&u(t.prototype,n),i&&u(t,i),e}();t.default=d},9432:function(e,t,n){"use strict";var r=n(54756);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.useSpeechRecognition=void 0;var i=n(9950),o=n(28928),a=n(86934),s=n(36872),l=d(n(81291)),c=d(n(43226)),u=d(n(99065));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,i)}function h(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){p(o,r,i,a,s,"next",e)}function s(e){p(o,r,i,a,s,"throw",e)}a(void 0)}))}}function f(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||b(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e){return m="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||b(e,t)||function(){throw new TypeError("Invalid attempt to de
75structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){if(e){if("string"===typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var y,x=!!u.default,w=x&&!(0,c.default)();t.useSpeechRecognition=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.transcribing,n=void 0===t||t,r=e.clearTranscriptOnListen,l=void 0===r||r,c=e.commands,u=void 0===c?[]:c,d=g((0,i.useState)(A.getRecognitionManager()),1)[0],p=g((0,i.useState)(x),2),h=p[0],b=p[1],v=g((0,i.useState)(w),2),y=v[0],E=v[1],S=g((0,i.useReducer)(s.transcriptReducer,{interimTranscript:d.interimTranscript,finalTranscript:""}),2),_=S[0],k=_.interimTranscript,T=_.finalTranscript,C=S[1],O=g((0,i.useState)(d.listening),2),N=O[0],I=O[1],R=g((0,i.useState)(d.isMicrophoneAvailable),2),P=R[0],j=R[1],M=(0,i.useRef)(u);M.current=u;var D=function(){C((0,a.clearTranscript)())},L=(0,i.useCallback)((function(){d.resetTranscript(),D()}),[d]),F=(0,i.useCallback)((function(e,t){M.current.forEach((function(n){var r=n.command,i=n.callback,a=n.matchInterim,s=void 0!==a&&a,l=n.isFuzzyMatch,c=void 0!==l&&l,u=n.fuzzyMatchingThreshold,d=void 0===u?.8:u,p=n.bestMatchOnly,h=void 0!==p&&p,g=!t&&s?e.trim():t.trim(),b=(Array.isArray(r)?r:[r]).map((function(e){return c?function(e,t,n){var r=("object"===m(e)?e.toString():e).replace(/[&/\\#,+()!$~%.'":*?<>{}]/g,"").replace(/  +/g," ").trim(),i=(0,o.compareTwoStringsUsingDiceCoefficient)(r,t);return i>=n?{command:e,commandWithoutSpecials:r,howSimilar:i,isFuzzyMatch:!0}:null}(e,g,d):function(e,t){var n=(0,o.commandToRegExp)(e).exec(t);return n?{command:e,parameters:n.slice(1)}:null}(e,g)})).filter((function(e){return e}));if(c&&h&&b.length>=2){b.sort((function(e,t){return t.howSimilar-e.howSimilar}));var v=b[0],y=v.command,x=v.commandWithoutSpecials,w=v.howSimilar;i(x,g,w,{command:y,resetTranscript:L})}else b.forEach((function(e){if(e.isFuzzyMatch){var t=e.command,n=e.commandWithoutSpecials,r=e.howSimilar;i(n,g,r,{command:t,resetTranscript:L})}else{var o=e.command,a=e.parameters;i.apply(void 0,f(a).concat([{command:o,resetTranscript:L}]))}}))}))}),[L]),B=(0,i.useCallback)((function(e,t){n&&C((0,a.appendTranscript)(e,t)),F(e,t)}),[F,n]),U=(0,i.useCallback)((function(){l&&D()}),[l]);return(0,i.useEffect)((function(){var e=A.counter;A.counter+=1;var t={onListeningChange:I,onMicrophoneAvailabilityChange:j,onTranscriptChange:B,onClearTranscript:U,onBrowserSupportsSpeechRecognitionChange:b,onBrowserSupportsContinuousListeningChange:E};return d.subscribe(e,t),function(){d.unsubscribe(e)}}),[n,l,d,B,U]),{transcript:(0,o.concatTranscripts)(T,k),interimTranscript:k,finalTranscript:T,listening:N,isMicrophoneAvailable:P,resetTranscript:L,browserSupportsSpeechRecognition:h,browserSupportsContinuousListening:y}};var A={counter:0,applyPolyfill:function(e){y?y.setSpeechRecognition(e):y=new l.default(e);var t=!!e&&(0,o.browserSupportsPolyfills)();x=t,w=t},removePolyfill:function(){y?y.setSpeechRecognition(u.default):y=new l.default(u.default),x=!!u.default,w=x&&!(0,c.default)()},getRecognitionManager:function(){return y||(y=new l.default(u.default)),y},getRecognition:function(){return A.getRecognitionManager().getRecognition()},startListening:function(){var e=h(r.mark((function e(){var t,n,i,o,a=arguments;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(t=a.length>0&&void 0!==a[0]?a[0]:{}).continuous,i=t.language,o=A.getRecognitionManager(),e.next=4,o.startListening({continuous:n,language:i});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),stopListening:function(){var e=h(r.mark((function e(){var t;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=A.getRecognitionManager(),e.next=3,t.stopListening();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),abortListening:function(){var e=h(r.mark((function e(){var t;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=A.getRecognitionManager(),e.next=3,t.abortListening();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),browserSupportsSpeechRecognition:function(){return x},browserSupportsContinuousListening:function(){return w}},E=A;t.default=E},86934:function(e,t,n){"use strict";
75Object.defineProperty(t,"__esModule",{value:!0}),t.appendTranscript=t.clearTranscript=void 0;var r=n(69084);t.clearTranscript=function(){return{type:r.CLEAR_TRANSCRIPT}};t.appendTranscript=function(e,t){return{type:r.APPEND_TRANSCRIPT,payload:{interimTranscript:e,finalTranscript:t}}}},69084:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.APPEND_TRANSCRIPT=t.CLEAR_TRANSCRIPT=void 0;t.CLEAR_TRANSCRIPT="CLEAR_TRANSCRIPT";t.APPEND_TRANSCRIPT="APPEND_TRANSCRIPT"},29349:function(e,t,n){"use strict";function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"Vw",{enumerable:!0,get:function(){return i.useSpeechRecognition}}),t.Ay=void 0;var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(9432));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}var a=i.default;t.Ay=a},43226:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(){return/(android)/i.test("undefined"!==typeof navigator?navigator.userAgent:"")}},36872:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transcriptReducer=void 0;var r=n(69084),i=n(28928);t.transcriptReducer=function(e,t){switch(t.type){case r.CLEAR_TRANSCRIPT:return{interimTranscript:"",finalTranscript:""};case r.APPEND_TRANSCRIPT:return{interimTranscript:t.payload.interimTranscript,finalTranscript:(0,i.concatTranscripts)(e.finalTranscript,t.payload.finalTranscript)};default:throw new Error}}},28928:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.browserSupportsPolyfills=t.compareTwoStringsUsingDiceCoefficient=t.commandToRegExp=t.concatTranscripts=t.debounce=void 0;t.debounce=function(e,t,n){var r;return function(){var i=this,o=arguments,a=n&&!r;clearTimeout(r),r=setTimeout((function(){r=null,n||e.apply(i,o)}),t),a&&e.apply(i,o)}};t.concatTranscripts=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.map((function(e){return e.trim()})).join(" ").trim()};var n=/\s*\((.*?)\)\s*/g,r=/(\(\?:[^)]+\))\?/g,i=/(\(\?)?:\w+/g,o=/\*/g,a=/[-{}[\]+?.,\\^$|#]/g;t.commandToRegExp=function(e){return e instanceof RegExp?new RegExp(e.source,"i"):(e=e.replace(a,"\\$&").replace(n,"(?:$1)?").replace(i,(function(e,t){return t?e:"([^\\s]+)"})).replace(o,"(.*?)").replace(r,"\\s*$1?\\s*"),new RegExp("^"+e+"$","i"))};t.compareTwoStringsUsingDiceCoefficient=function(e,t){if(e=e.replace(/\s+/g,"").toLowerCase(),t=t.replace(/\s+/g,"").toLowerCase(),!e.length&&!t.length)return 1;if(!e.length||!t.length)return 0;if(e===t)return 1;if(1===e.length&&1===t.length)return 0;if(e.length<2||t.length<2)return 0;for(var n=new Map,r=0;r<e.length-1;r++){var i=e.substring(r,r+2),o=n.has(i)?n.get(i)+1:1;n.set(i,o)}for(var a=0,s=0;s<t.length-1;s++){var l=t.substring(s,s+2),c=n.has(l)?n.get(l):0;c>0&&(n.set(l,c-1),a++)}return 2*a/(e.length+t.length-2)};t.browserSupportsPolyfills=function(){return"undefined"!==typeof window&&void 0!==window.navigator&&void 0!==window.navigator.mediaDevices&&void 0!==window.navigator.mediaDevices.getUserMedia&&(void 0!==window.AudioContext||void 0!==window.webkitAudioContext)}},32448:function(e,t,n){"use strict";n.d(t,{Ay:function(){return g}});var r=n(98587),i=n(25540),o=n(9950),a=n(17119),s=!1,l=n(28555),c="unmounted",u="exited",d="entering",p="entered",h="exiting",f=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=u,r.appearStatus=d):i=p:i=t.unmountOnExit||t.mountOnEnter?c:u,r.state={status:i},r.nextCallback=null,r}(0,i.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===c?{status:u}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==d&&n!==p&&(t=d):n!==d&&n!==p||(t=h)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,a
vendor: 7,705 bytes, line 75
75ppear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===d){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===u&&this.setState({status:c})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[a.findDOMNode(this),r],o=i[0],l=i[1],c=this.getTimeouts(),u=r?c.appear:c.enter;!e&&!n||s?this.safeSetState({status:p},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,l),this.safeSetState({status:d},(function(){t.props.onEntering(o,l),t.onTransitionEnd(u,(function(){t.safeSetState({status:p},(function(){t.props.onEntered(o,l)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:a.findDOMNode(this);t&&!s?(this.props.onExit(r),this.safeSetState({status:h},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:u},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:u},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],s=i[1];this.props.addEndListener(o,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===c)return null;var t=this.props,n=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return o.createElement(l.A.Provider,{value:null},"function"===typeof n?n(e,i):o.cloneElement(o.Children.only(n),i))},t}(o.Component);function m(){}f.contextType=l.A,f.propTypes={},f.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:m,onEntering:m,onEntered:m,onExit:m,onExiting:m,onExited:m},f.UNMOUNTED=c,f.EXITED=u,f.ENTERING=d,f.ENTERED=p,f.EXITING=h;var g=f},28555:function(e,t,n){"use strict";var r=n(9950);t.A=r.createContext(null)},32654:function(e,t,n){"use strict";var r=n(9950),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:s.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},32049:function(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}function v(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=b.prototype;var x=y.prototype=new v;x.constructor=y,m(x,b.prototype),x.isPureReactComponent=!0;var w=Array.isArray,A=Object.prototype.hasOwnProperty,E={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,r){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)A.call(t,i)&&!S.hasOwnProperty(i)&&(o[i]=t[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:E.current}}function k(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var T=/\/+/g;function C(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function O(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===o?"."+C(l,0):o,w(a)?(i="",null!=e&&(i=e.replace(T,"$&/")+"/"),O(a,t,i,"",(function(e){return e}))):null!=a&&(k(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(T,"$&/")+"/")+e)),t.push(a)),1;if(l=0,o=""===o?".":o+":",w(e))for(var c=0;c<e.length;c++){var u=o+C(s=e[c],c);l+=O(s,t,i,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=O(s=s.value,t,i,u=o+C(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function N(e,t,n){if(null==e)return e;var r=[],i=0;return O(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function I(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R={current:null},P={transition:null},j={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:P,ReactCurrentOwner:E};function M(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:N,forEach:function(e,t,n){N(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return N(e,(function(){t++})),t},toArray:function(e){return N(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=b,t.Fragment=i,t.Profiler=a,t.PureComponent=y,t.StrictMode=o,t.Suspense=u,t.__SECRET_INT
vendor: 5,320 bytes, line 75
75ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,t.act=M,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=E.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)A.call(t,c)&&!S.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];i.children=l}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=P.transition;P.transition={};try{e()}finally{P.transition=t}},t.unstable_act=M,t.useCallback=function(e,t){return R.current.useCallback(e,t)},t.useContext=function(e){return R.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return R.current.useDeferredValue(e)},t.useEffect=function(e,t){return R.current.useEffect(e,t)},t.useId=function(){return R.current.useId()},t.useImperativeHandle=function(e,t,n){return R.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return R.current.useMemo(e,t)},t.useReducer=function(e,t,n){return R.current.useReducer(e,t,n)},t.useRef=function(e){return R.current.useRef(e)},t.useState=function(e){return R.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return R.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return R.current.useTransition()},t.version="18.3.1"},9950:function(e,t,n){"use strict";e.exports=n(32049)},44414:function(e,t,n){"use strict";e.exports=n(32654)},46150:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,a){if("function"!==typeof r)throw new TypeError("The listener must be a function");var s=new i(r,o||e,a),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function a(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=new Array(o);i<o;i++)a[i]=r[i].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,i,o,a){var s=n?n+e:e;if(!this._events[s])return!1;var l,c,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,i),!0;case 5:return u.fn.call(u.context,t,r,i,o),!0;case 6:return u.fn.call(u.context,t,r,i,o,a),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var p,h=u.length;for(c=0;c<h;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,r);break;case 4:u[c].fn.call(u[c].context,t,r,i);break;default:if(!l)for(p=1,l=new Array(d-1);p<d;p++)l[p-1]=arguments[p];u[c].fn.apply(u[c].context,l)}}return!0},s.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,i){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||i&&!s.once||r&&s.context!==r||a(this,o);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==t||i&&!s[l].once||r&&s[l].context!==r)&&c.push(s[l]);c.length?this._events[o]=1===c.length?c[0]:c:a(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s},47324:function(e,t,n){"use strict";var r="object"===typeof globalThis?globalThis:"object"===typeof self?self:"object"===typeof window?window:"object"===typeof n.g?n.g:{}
75,i=function(){var e="Prism"in r,t=e?r.Prism:void 0;return function(){e?r.Prism=t:delete r.Prism;e=void 0,t=void 0}}();r.Prism={manual:!0,disableWorkerMessageHandler:!0};var o=n(2292),a=n(76538),s=n(50073),l=n(28002),c=n(95251),u=n(24070),d=n(98849);i();var p={}.hasOwnProperty;function h(){}h.prototype=s;var f=new h;function m(e){if("function"!==typeof e||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");void 0===f.languages[e.displayName]&&e(f)}e.exports=f,f.highlight=function(e,t){var n,r=s.highlight;if("string"!==typeof e)throw new Error("Expected `string` for `value`, got `"+e+"`");if("Object"===f.util.type(t))n=t,t=null;else{if("string"!==typeof t)throw new Error("Expected `string` for `name`, got `"+t+"`");if(!p.call(f.languages,t))throw new Error("Unknown language: `"+t+"` is not registered");n=f.languages[t]}return r.call(this,e,n,t)},f.register=m,f.alias=function(e,t){var n,r,i,o,a=f.languages,s=e;t&&((s={})[e]=t);for(n in s)for(i=(r="string"===typeof(r=s[n])?[r]:r).length,o=-1;++o<i;)a[r[o]]=a[n]},f.registered=function(e){if("string"!==typeof e)throw new Error("Expected `string` for `language`, got `"+e+"`");return p.call(f.languages,e)},f.listLanguages=function(){var e,t=f.languages,n=[];for(e in t)p.call(t,e)&&"object"===typeof t[e]&&n.push(e);return n},m(l),m(c),m(u),m(d),f.util.encode=function(e){return e},f.Token.stringify=function(e,t,n){var r;if("string"===typeof e)return{type:"text",value:e};if("Array"===f.util.type(e))return function(e,t){var n,r=[],i=e.length,o=-1;for(;++o<i;)""!==(n=e[o])&&null!==n&&void 0!==n&&r.push(n);o=-1,i=r.length;for(;++o<i;)n=r[o],r[o]=f.Token.stringify(n,t,r);return r}(e,t);r={type:e.type,content:f.Token.stringify(e.content,t,n),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:n},e.alias&&(r.classes=r.classes.concat(e.alias));return f.hooks.run("wrap",r),o(r.tag+"."+r.classes.join("."),function(e){var t;for(t in e)e[t]=a(e[t]);return e}(r.attributes),r.content)}},43507:function(e,t,n){"use strict";var r=n(47324);e.exports=r,r.register(n(69468)),r.register(n(38477)),r.register(n(84619)),r.register(n(91604)),r.register(n(22945)),r.register(n(69395)),r.register(n(83843)),r.register(n(70226)),r.register(n(9822)),r.register(n(58923)),r.register(n(77211)),r.register(n(97566)),r.register(n(80036)),r.register(n(9621)),r.register(n(39373)),r.register(n(49544)),r.register(n(61742)),r.register(n(46625)),r.register(n(42587)),r.register(n(30276)),r.register(n(98694)),r.register(n(1648)),r.register(n(23008)),r.register(n(97042)),r.register(n(40804)),r.register(n(20959)),r.register(n(73587)),r.register(n(68243)),r.register(n(35587)),r.register(n(89066)),r.register(n(87887)),r.register(n(47473)),r.register(n(12397)),r.register(n(46145)),r.register(n(91417)),r.register(n(36360)),r.register(n(49480)),r.register(n(70712)),r.register(n(7548)),r.register(n(95579)),r.register(n(39695)),r.register(n(20173)),r.register(n(43968)),r.register(n(96089)),r.register(n(3817)),r.register(n(454)),r.register(n(85785)),r.register(n(68141)),r.register(n(1782)),r.register(n(41819)),r.register(n(70048)),r.register(n(71537)),r.register(n(93452)),r.register(n(35339)),r.register(n(9186)),r.register(n(21729)),r.register(n(92635)),r.register(n(98113)),r.register(n(69485)),r.register(n(97921)),r.register(n(8738)),r.register(n(82787)),r.register(n(81345)),r.register(n(26789)),r.register(n(71569)),r.register(n(44168)),r.register(n(99073)),r.register(n(87236)),r.register(n(19975)),r.register(n(70337)),r.register(n(85713)),r.register(n(90296)),r.register(n(7093)),r.register(n(10459)),r.register(n(31906)),r.register(n(87690)),r.register(n(64066)),r.register(n(69580)),r.register(n(86894)),r.register(n(27856)),r.register(n(94052)),r.register(n(74538)),r.register(n(68407)),r.register(n(70770)),r.register(n(76532)),r.register(n(84910)),r.register(n(41768)),r.register(n(2987)),r.register(n(13869)),r.register(n(97316)),r.register(n(47889)),r.register(n(88240)),r.register(n(30812)),r.register(n(33666)),r.register(n(92712)),r.register(n(69630)),r.register(n(67971)),r.register(n(55965)),r.register(n(126)),r.register(n(35437)),r.register(n(69118)),r.register(n(99882)),r.register(n(98459)),r.register(n(13955)),r.register(n(53997)),r.register(n(89153)),r.register(n(87112)),r.register(n(31484)),r.register(n(40466)),r.register(n(12074)),r.register(n(3038)),r.register(n(87922)),r.register(n(3594)),r.register(n(98234)),r.register(n(88229)),r.register(n(20407)),r.register(n(22655)),r.register(n(27347)),r.register(n(22223)),r.register(n(60301)),r.register(n(98987)),r.register(n(48447)),r.register(n(38108)),r.register(n(88985)),r.register(n(95350)),r.register(n(33752)),r.register(n(64997)),r.register(n(4929)),r.register(n(5592)),r.register(n(76779)),r.register(n(92791)),r.register(n(260)),r.register(n(33952)),r.register(n(7796)),r.register(n(19566)),r.register(n(43083)),r.register(n(61889)),r.register(n(90914)),r.register(n(87650)),r.register(n(58859)),r.register(n(98391)),r.register(n(26798)),r.register(n(78618)),r.register(n(2798)),r.register(n(44637)),r.register(n(34478)),r.register(n(50663)),r.register(n(29858)),r.register(n(68359)),r.register(n(60277)),r.register(n(78990)),r.register(n(73507
75)),r.register(n(43695)),r.register(n(59966)),r.register(n(10139)),r.register(n(66236)),r.register(n(18642)),r.register(n(63087)),r.register(n(26787)),r.register(n(30949)),r.register(n(63607)),r.register(n(37546)),r.register(n(58954)),r.register(n(17808)),r.register(n(92848)),r.register(n(87571)),r.register(n(17537)),r.register(n(25918)),r.register(n(73436)),r.register(n(87493)),r.register(n(16192)),r.register(n(29127)),r.register(n(66287)),r.register(n(5521)),r.register(n(91946)),r.register(n(24025)),r.register(n(93514)),r.register(n(99084)),r.register(n(2859)),r.register(n(12514)),r.register(n(17632)),r.register(n(75396)),r.register(n(55324)),r.register(n(66593)),r.register(n(55387)),r.register(n(1813)),r.register(n(60849)),r.register(n(53193)),r.register(n(56439)),r.register(n(18069)),r.register(n(21259)),r.register(n(92004)),r.register(n(80448)),r.register(n(53132)),r.register(n(79964)),r.register(n(59055)),r.register(n(9512)),r.register(n(94471)),r.register(n(95906)),r.register(n(86935)),r.register(n(55643)),r.register(n(67450)),r.register(n(81292)),r.register(n(45510)),r.register(n(60123)),r.register(n(60093)),r.register(n(35946)),r.register(n(55784)),r.register(n(73255)),r.register(n(25236)),r.register(n(73518)),r.register(n(43858)),r.register(n(60632)),r.register(n(46989)),r.register(n(50280)),r.register(n(88082)),r.register(n(92921)),r.register(n(42806)),r.register(n(97507)),r.register(n(1820)),r.register(n(17921)),r.register(n(71710)),r.register(n(53148)),r.register(n(76163)),r.register(n(75024)),r.register(n(12209)),r.register(n(79811)),r.register(n(55605)),r.register(n(31554)),r.register(n(43024)),r.register(n(38909)),r.register(n(59610)),r.register(n(95968)),r.register(n(64763)),r.register(n(65179)),r.register(n(14469)),r.register(n(17386)),r.register(n(67371)),r.register(n(68649)),r.register(n(40063)),r.register(n(86865)),r.register(n(91562)),r.register(n(81175)),r.register(n(47835)),r.register(n(39082)),r.register(n(85600)),r.register(n(31339)),r.register(n(57657)),r.register(n(42955)),r.register(n(57230)),r.register(n(54008)),r.register(n(64242)),r.register(n(23206)),r.register(n(59784)),r.register(n(97759)),r.register(n(53001)),r.register(n(48130)),r.register(n(44196)),r.register(n(18296)),r.register(n(7201)),r.register(n(36107)),r.register(n(90130)),r.register(n(99936)),r.register(n(22974)),r.register(n(22152)),r.register(n(91840)),r.register(n(39485)),r.register(n(97686)),r.register(n(50820)),r.register(n(4642)),r.register(n(50893)),r.register(n(91767)),r.register(n(99726))},69468:function(e){"use strict";function t(e){e
vendor: 7,909 bytes, line 75
75.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:/[,.:()]/}}
75e.exports=t,t.displayName="abap",t.aliases=[]},38477:function(e){"use strict";function t(e){!function(e){var t="(?: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-])"+t+"|<"+t+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}}(e)}e.exports=t,t.displayName="abnf",t.aliases=[]},84619:function(e){"use strict";function t(e){e.languages.actionscript=e.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:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}e.exports=t,t.displayName="actionscript",t.aliases=[]},91604:function(e){"use strict";function t(e){e.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}}e.exports=t,t.displayName="ada",t.aliases=[]},22945:function(e){"use strict";function t(e){!function(e){e.languages.agda={comment:/\{-[\s\S]*?(?:-\}
75|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}\u2983\u2984.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:\u2200\u2192\u03bb\\?_]|->)(?=\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/}}(e)}e.exports=t,t.displayName="agda",t.aliases=[]},69395:function(e){"use strict";function t(e){e.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:/[()\[\]{}:.;,]/}}e.exports=t,t.displayName="al",t.aliases=[]},83843:function(e){"use strict";function t(e){e.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"]}
75,{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},e.languages.g4=e.languages.antlr4}e.exports=t,t.displayName="antlr4",t.aliases=["g4"]},70226:function(e){"use strict";function t(e){e.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(?
75: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:/\^?.*\$|\^.*\$?/}}
vendor: 4,646 bytes, line 75
75e.exports=t,t.displayName="apacheconf",t.aliases=[]},9822:function(e,t,n){"use strict";var r=n(43024);function i(e){e.register(r),function(e){var t=/\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,n=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,(function(){return t.source}));function r(e){return RegExp(e.replace(/<CLASS-NAME>/g,(function(){return n})),"i")}var i={keyword:t,punctuation:/[()\[\]{};,:.<>]/};e.languages.apex={comment:e.languages.clike.comment,string:e.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:e.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:r(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:i},{pattern:r(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:i},{pattern:r(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:i}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:t,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)}e.exports=i,i.displayName="apex",i.aliases=[]},58923:function(e){"use strict";function t(e){e.languages.apl={comment:/(?:\u235d|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/\xaf?(?:\d*\.?\b\d+(?:e[+\xaf]?\d+)?|\xaf|\u221e)(?:j\xaf?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+\xaf]?\d+)?|\xaf|\u221e))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/\u2395[A-Z]+/i,alias:"function"},constant:/[\u236c\u233e#\u2395\u235e]/,function:/[-+\xd7\xf7\u2308\u230a\u2223|\u2373\u2378?*\u235f\u25cb!\u2339<\u2264=>\u2265\u2260\u2261\u2262\u220a\u2377\u222a\u2229~\u2228\u2227\u2371\u2372\u2374,\u236a\u233d\u2296\u2349\u2191\u2193\u2282\u2283\u2286\u2287\u2337\u234b\u2352\u22a4\u22a5\u2355\u234e\u22a3\u22a2\u2341\u2342\u2248\u236f\u2197\xa4\u2192]/,"monadic-operator":{pattern:/[\\\/\u233f\u2340\xa8\u2368\u2336&\u2225]/,alias:"operator"},"dyadic-operator":{pattern:/[.\u2363\u2360\u2364\u2218\u2338@\u233a\u2365]/,alias:"operator"},assignment:{pattern:/\u2190/,alias:"keyword"},punctuation:/[\[;\]()\u25c7\u22c4]/,dfn:{pattern:/[{}\u237a\u2375\u2376\u2379\u2207\u236b:]/,alias:"builtin"}}}e.exports=t,t.displayName="apl",t.aliases=[]},77211:function(e){"use strict";function t(e){e.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=\u2260\u2264\u2265*+\-\/\xf7^]|[<>]=?/,/\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|al
75ias|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:/[{}():,\xac\xab\xbb\u300a\u300b]/}}e.exports=t,t.displayName="applescript",t.aliases=[]},97566:function(e){"use strict";function t(e){e.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'\xb4`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([\xb4`])(?:(?!\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:/::|[?.:,;()[\]{}]/}}e.exports=t,t.displayName="aql",t.aliases=[]},80036:function(e,t,n){"use strict";var r=n(3817);function i(e){e.register(r),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}e.exports=i,i.displayName="arduino",i.aliases=["ino"]},9621:function(e){"use strict";
vendor: 10,696 bytes, line 75
75function t(e){e.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}e.exports=t,t.displayName="arff",t.aliases=[]},39373:function(e){"use strict";function t(e){!function(e){var t={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+$).+/}},n=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:t,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]*)<?\d*>/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:t.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:t,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 r(e){for(var t={},r=0,i=(e=e.split(" ")).length;r<i;r++)t[e[r]]=n[e[r]];return t}t.inside.interpreted.inside.rest=r("macro inline replacement entity"),n["passthrough-block"].inside.rest=r("macro"),n["literal-block"].inside.rest=r("callout"),n.table.inside.rest=r("comment-block passthrough-block literal-block other-block list-punctuation indented-block comment title attribute-entry attributes hr page-break admonition list-label callout macro inline replacement entity line-continuation"),n["other-block"].inside.rest=r("table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"),n.title.inside.rest=r("macro inline replacement entity"),e.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.value.replace(/&amp;/,"&"))})),e.languages.adoc=e.languages.asciidoc}(e)}e.exports=t,t.displayName="asciidoc",t.aliases=["adoc"]},49544:function(e){"use strict";function t(e){e.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}e.exports=t,t.displayName="asm6502",t.aliases=[]},61742:function(e){"use strict";function t(e){e.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}e.exports=t,t.displayName="asmatmel",t.aliases=[]},46625:function(e,t,n){"use strict";var r=n(85785);function i(e){e.register(r),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:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}e.exports=i,i.displayName="aspnet",i.aliases=[]},42587:function(e){"use strict";function t(e){e.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|SetRegVie
75w|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|r
75win|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:/[{}[\]():,]/}}e.exports=t,t.displayName="autohotkey",t.aliases=[]},30276:function(e){"use strict";function t(e){e.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:/[\[\]().,:]/}}e.exports=t,t.displayName="autoit",t.aliases=[]},98694:function(e){"use strict";function t(e){!function(e){function t(e,t,n){return RegExp(function(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return t[+n]}))}(e,t),n||"")}var n=/bool|clip|float|int|string|val/.source,r=[[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:
vendor: 7,120 bytes, line 75
75allowfloataudio|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("|"),[/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("|"),[/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("|")].join("|");e.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:t(/\b(?:<<0>>)\s+("?)\w+\1/.source,[n],"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:t(/\b(?:<<0>>)\b/.source,[r],"i"),alias:"function"},"type-cast":{pattern:t(/\b(?:<<0>>)(?=\s*\()/.source,[n],"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}(e)}e.exports=t,t.displayName="avisynth",t.aliases=["avs"]},1648:function(e){"use strict";function t(e){e.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:/[()\[\]{}<>.:,;-]/},e.languages.avdl=e.languages["avro-idl"]}e.exports=t,t.displayName="avroIdl",t.aliases=[]},23008:function(e){"use strict";function t(e){!function(e){var t="\\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_
75CURRENT_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",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),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("(\\{)"+t),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;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.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[<>]&?|[<>][&=]?|&[>
vendor: 4,374 bytes, line 75
75&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=r.variable[1].inside,a=0;a<i.length;a++)o[i[a]]=e.languages.bash[i[a]];e.languages.shell=e.languages.bash}(e)}e.exports=t,t.displayName="bash",t.aliases=["shell"]},97042:function(e){"use strict";function t(e){e.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\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:/[,;:()]/}}e.exports=t,t.displayName="basic",t.aliases=[]},40804:function(e){"use strict";function t(e){!function(e){var t=/%%?[~:\w]+%?|!\S+!/,n={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},r=/"(?:[\\"]"|[^"])*"(?!")/,i=/(?:\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:r,parameter:n,variable:t,number:i,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:r,parameter:n,variable:t,number:i,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:r,parameter:n,variable:[t,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:i,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:r,parameter:n,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:t,number:i,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}}(e)}e.exports=t,t.displayName="batch",t.aliases=[]},20959:function(e){"use strict";function t(e){e.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\
75s'"\]=]+))?(?:\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=\]]+/}}},e.languages.shortcode=e.languages.bbcode}e.exports=t,t.displayName="bbcode",t.aliases=["shortcode"]},73587:function(e){"use strict";function t(e){e.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:/[{}[\];(),.:]/},e.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=e.languages.bicep}e.exports=t,t.displayName="bicep",t.aliases=[]},68243:function(e){"use strict";function t(e){e.languages.birb=e.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/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}e.exports=t,t.displayName="birb",t.aliases=[]},35587:function(e,t,n){"use strict";var r=n(91417);function i(e){e.register(r),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:/%[%?]|[|:;\[\]<>]/}}})}e.exports=i,i.displayName="bison",i.aliases=[]},89066:function(e){"use strict";function t(e){e.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}/},e.languages.rbnf=e.languages.bnf}e.exports=t,t.displayName="bnf",t.aliases=["rbnf"]},87887:function(e){"use strict";function t(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}e.exports=t,t.displayName="brainfuck",t.aliases=[]},47473:function(e){"use strict";function t(e){e.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},e.languages.brightscript["directive-statement"].inside.expression.inside=e.languages.brightscript}e.exports=t,t.displayName="brightscript",t.aliases=[]},12397:function(e){"use strict";function t(e){e.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:/[{}[\];(),.:]/}}e.exports=t,t.displayName="bro",t.aliases=[]},46145:function(e){"use strict";
vendor: 9,326 bytes, line 75
75function t(e){e.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])(?:\u043f\u043e\u043a\u0430|\u0434\u043b\u044f|\u043d\u043e\u0432\u044b\u0439|\u043f\u0440\u0435\u0440\u0432\u0430\u0442\u044c|\u043f\u043e\u043f\u044b\u0442\u043a\u0430|\u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435|\u0432\u044b\u0437\u0432\u0430\u0442\u044c\u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435|\u0438\u043d\u0430\u0447\u0435|\u043a\u043e\u043d\u0435\u0446\u043f\u043e\u043f\u044b\u0442\u043a\u0438|\u043d\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043e|\u0444\u0443\u043d\u043a\u0446\u0438\u044f|\u043f\u0435\u0440\u0435\u043c|\u0432\u043e\u0437\u0432\u0440\u0430\u0442|\u043a\u043e\u043d\u0435\u0446\u0444\u0443\u043d\u043a\u0446\u0438\u0438|\u0435\u0441\u043b\u0438|\u0438\u043d\u0430\u0447\u0435\u0435\u0441\u043b\u0438|\u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430|\u043a\u043e\u043d\u0435\u0446\u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b|\u0442\u043e\u0433\u0434\u0430|\u0437\u043d\u0430\u0447|\u044d\u043a\u0441\u043f\u043e\u0440\u0442|\u043a\u043e\u043d\u0435\u0446\u0435\u0441\u043b\u0438|\u0438\u0437|\u043a\u0430\u0436\u0434\u043e\u0433\u043e|\u0438\u0441\u0442\u0438\u043d\u0430|\u043b\u043e\u0436\u044c|\u043f\u043e|\u0446\u0438\u043a\u043b|\u043a\u043e\u043d\u0435\u0446\u0446\u0438\u043a\u043b\u0430|\u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c)(?![\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])(?:\u0438|\u0438\u043b\u0438|\u043d\u0435)(?![\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"}]},e.languages.oscript=e.languages.bsl}e.exports=t,t.displayName="bsl",t.aliases=[]},91417:function(e){"use strict";function t(e){e.languages.c=e.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|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.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},e.languages.c.string],char:e.languages.c.char,comment:e.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:e.languages.c}}}}),e.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 e.languages.c.boolean}e.exports=t,t.displayName="c",t.aliases=[]},36360:function(e){"use strict";function t(e){e.languages.cfscript=e.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"}}),e.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 e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}e.exports=t,t.displayName="cfscript",t.aliases=[]},49480:function(e,t,n){"use strict";var r=n(3817);function i(e){e.register(r),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]+/}}})}e.exports=i,i.displayName="chaiscript",i.aliases=[]},70712:function(e){"use strict";function t(e){e.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]+/}}
75e.exports=t,t.displayName="cil",t.aliases=[]},24070:function(e){"use strict";function t(e){e.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:/[{}[\];(),.:]/}}e.exports=t,t.displayName="clike",t.aliases=[]},7548:function(e){"use strict";function t(e){e.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:/[{}\[\](),]/}}e.exports=t,t.displayName="clojure",t.aliases=[]},95579:function(e){"use strict";function t(e){e.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|ER
75ROR_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_G
75ENERATOR|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:/[()>}]|\$[<{]/}}e.exports=t,t.displayName="cmake",t.aliases=[]},39695:function(e){"use strict";function t(e){e.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|LINAG
75E|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:/[.:,()]/}}e.exports=t,t.displayName="cobol",t.aliases=[]},20173:function(e){"use strict";function t(e){!function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],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:t,interpolation:n}}}),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:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(e)}e.exports=t,t.displayName="coffeescript",t.aliases=["coffee"]},43968:function(e){"use strict";function t(e){e.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
75][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"}},e.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},string:/[\s\S]+/}}}),e.languages.conc=e.languages.concurnas}e.exports=t,t.displayName="concurnas",t.aliases=["conc"]},96089:function(e){"use strict";function t(e){!function(e){for(var t=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,"[]"),e.languages.coq={comment:RegExp(t),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,(function(){return t}))),greedy:!0,alias:"attr-name",inside:{comment:RegExp(t),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:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}}(e)}e.exports=t,t.displayName="coq",t.aliases=[]},3817:function(e,t,n){"use strict";var r=n(91417);function i(e){e.register(r),function(e){var t=/\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_
vendor: 5,464 bytes, line 75
75cast|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/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.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:t,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/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.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:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(e)}e.exports=i,i.displayName="cpp",i.aliases=[]},454:function(e,t,n){"use strict";var r=n(43858);function i(e){e.register(r),function(e){e.languages.crystal=e.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:[/->/,e.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),e.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:e.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:e.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)}e.exports=i,i.displayName="crystal",i.aliases=[]},85785:function(e){"use strict";function t(e){!function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var i="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",o="class enum interface record struct",a="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*{)",s="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 l(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var c=l(o),u=RegExp(l(i+" "+o+" "+a+" "+s)),d=l(o+" "+a+" "+s),p=l(i+" "+o+" "+s),h=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),f=r(/\((?:[^()]|<<self>>)*\)/.source,2),m=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[m,h]),b=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,g]),v=/\[\s*(?:,\s*)*\]/.source,y=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[b,v]),x=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[h,f,v]),w=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[x]),A=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,b,v]),E={keyword:u,punctuation:/[<>()?,.:[\]]/},S=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,_=/"(?:\\.|[^\\"\r\n])*"/.source,k=/@"(?:""|\\[\s\S]|[^\\"])
vendor: 4,129 bytes, line 75
75*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[k]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[_]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[b]),lookbehind:!0,inside:E},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[m,A]),lookbehind:!0,inside:E},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[m]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[c,g]),lookbehind:!0,inside:E},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[b]),lookbehind:!0,inside:E},{pattern:n(/(\bwhere\s+)<<0>>/.source,[m]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:E},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[A,p,m]),inside:E}],keyword:u,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:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[m]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[m]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[f]),lookbehind:!0,alias:"class-name",inside:E},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[A,b]),inside:E,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[A]),lookbehind:!0,inside:E,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[m,h]),inside:{function:n(/^<<0>>/.source,[m]),generic:{pattern:RegExp(h),alias:"class-name",inside:E}}},"type-list":{pattern:n(/\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,[c,g,m,A,u.source,f,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,f]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:u,"class-name":{pattern:RegExp(A),greedy:!0,inside:E},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 T=_+"|"+S,C=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[T]),O=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[C]),2),N=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,I=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[b,O]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[N,I]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[N]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[O]),inside:e.languages.csharp},"class-name":{pattern:RegExp(b),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var R=/:[^}\r\n]+/.source,P=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[C]),2),j=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[P,R]),M=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[T]),2),D=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[M,R]);function L(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,R]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}}
vendor: 15,339 bytes, line 75
75,string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[j]),lookbehind:!0,greedy:!0,inside:L(j,P)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[D]),lookbehind:!0,greedy:!0,inside:L(D,M)}],char:{pattern:RegExp(S),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(e)}e.exports=t,t.displayName="csharp",t.aliases=["dotnet","cs"]},68141:function(e,t,n){"use strict";var r=n(85785);function i(e){e.register(r),function(e){var t=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,n=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function r(e,r){for(var i=0;i<r;i++)e=e.replace(/<self>/g,(function(){return"(?:"+e+")"}));return e.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+n+")").replace(/<comment>/g,"(?:"+t+")")}var i=r(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),o=r(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,2),a=r(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),s=r(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source,2),l=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,c=/(?!\d)[^\s>\/=$<%]+/.source+l+/\s*\/?>/.source,u=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+l+/\s*>/.source+"(?:"+/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+c+"|"+r(/<\1/.source+l+/\s*>/.source+"(?:"+/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+c+"|<self>)*"+/<\/\1\s*>/.source,2)+")*"+/<\/\1\s*>/.source+"|"+/</.source+c+")";e.languages.cshtml=e.languages.extend("markup",{});var d={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:e.languages.insertBefore("csharp","string",{html:{pattern:RegExp(u),greedy:!0,inside:e.languages.cshtml}},{csharp:e.languages.extend("csharp",{})})};e.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[a,/(?:code|functions)\s*/.source+a,/(?:for|foreach|lock|switch|using|while)\s*/.source+i+/\s*/.source+a,/do\s*/.source+a+/\s*while\s*/.source+i+/(?:\s*;)?/.source,/try\s*/.source+a+/\s*catch\s*/.source+i+/\s*/.source+a+/\s*finally\s*/.source+a,/if\s*/.source+i+/\s*/.source+a+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+i+")?"+/\s*/.source+a+")*"].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:d}},directive:{pattern:/^([ \t]*)@(?:addTagHelper|attribute|implements|inherits|inject|layout|model|namespace|page|preservewhitespace|removeTagHelper|section|tagHelperPrefix|using)(?=\s).*/m,lookbehind:!0,greedy:!0,inside:{keyword:/^@\w+/,csharp:d}},value:{pattern:RegExp(/(^|[^@])@/.source+/(?:await\b\s*)?/.source+"(?:"+/\w+\b/.source+"|"+i+")(?:"+/[?!]?\.\w+\b/.source+"|"+i+"|"+o+"|"+s+i+")*"),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:d}},"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),e.languages.razor=e.languages.cshtml}(e)}e.exports=i,i.displayName="cshtml",i.aliases=["razor"]},1782:function(e){"use strict";function t(e){!function(e){function t(e){return RegExp(/([ \t])/.source+"(?:"+e+")"+/(?=[\s;]|$)/.source,"i")}e.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:t(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:t(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:t(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:t(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:t(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:t(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:t(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}}(e)}e.exports=t,t.displayName="csp",t.aliases=[]},41819:function(e){"use strict";function t(e){!function(e){var t,n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var r={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},i={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:r,number:i,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:i})}(e)}e.exports=t,t.displayName="cssExtras",t.aliases=[]},95251:function(e){"use strict";function t(e){!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.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\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,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:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(e)}e.exports=t,t.displayName="css",t.aliases=[]},70048:function(e){"use strict";function t(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}e.exports=t,t.displayName="csv",t.aliases=[]},71537:function(e){"use strict";function t(e){e.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:/[()[\]{},;.]/}}e.exports=t,t.displayName="cypher",t.aliases=[]},93452:function(e){"use strict";function t(e){e.languages.d=e.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|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.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"}})}e.exports=t,t.displayName="d",t.aliases=[]},35339:function(e){"use strict";function t(e){!function(e){var t=[/\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/],n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[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":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,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":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(e)}e.exports=t,t.displayName="dart",t.aliases=[]},9186:function(e){"use strict";function t(e){!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/}}(e)}e.exports=t,t.displayName="dataweave",t.aliases=[]},21729:function(e){"use strict";function t
vendor: 3,434 bytes, line 75
75(e){e.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:/[;\[\](){}`,.]/}}
vendor: 16,832 bytes, line 75
75e.exports=t,t.displayName="dax",t.aliases=[]},92635:function(e){"use strict";function t(e){e.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/},e.languages.dhall.string.inside.interpolation.inside.expression.inside=e.languages.dhall}e.exports=t,t.displayName="dhall",t.aliases=[]},98113:function(e){"use strict";function t(e){!function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach((function(n){var r=t[n],i=[];/^\w+$/.test(n)||i.push(/\w+/.exec(n)[0]),"diff"===n&&i.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(e)}e.exports=t,t.displayName="diff",t.aliases=[]},69485:function(e,t,n){"use strict";var r=n(29858);function i(e){e.register(r),function(e){e.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 t=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,n=e.languages["markup-templating"];e.hooks.add("before-tokenize",(function(e){n.buildPlaceholders(e,"django",t)})),e.hooks.add("after-tokenize",(function(e){n.tokenizePlaceholders(e,"django")})),e.languages.jinja2=e.languages.django,e.hooks.add("before-tokenize",(function(e){n.buildPlaceholders(e,"jinja2",t)})),e.hooks.add("after-tokenize",(function(e){n.tokenizePlaceholders(e,"jinja2")}))}(e)}e.exports=i,i.displayName="django",i.aliases=["jinja2"]},97921:function(e){"use strict";function t(e){e.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:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}e.exports=t,t.displayName="dnsZoneFile",t.aliases=[]},8738:function(e){"use strict";function t(e){!function(e){var t=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,n=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,(function(){return t})),r=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,i=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,(function(){return r})),o={pattern:RegExp(r),greedy:!0},a={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function s(e,t){return e=e.replace(/<OPT>/g,(function(){return i})).replace(/<SP>/g,(function(){return n})),RegExp(e,t)}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:s(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[o,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:s(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:s(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:s(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:a,string:o,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:a},e.languages.dockerfile=e.languages.docker}(e)}e.exports=t,t.displayName="docker",t.aliases=["dockerfile"]},82787:function(e){"use strict";function t(e){!function(e){var t="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",n={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:e.languages.markup}};function r(e,n){return RegExp(e.replace(/<ID>/g,(function(){return t})),n)}e.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:r(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:n},"attr-value":{pattern:r(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:n},"attr-name":{pattern:r(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:n},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:r(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:n},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},e.languages.gv=e.languages.dot}(e)}e.exports=t,t.displayName="dot",t.aliases=["gv"]},81345:function(e){"use strict";function t(e){e.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:/[-=|*/!]/}}e.exports=t,t.displayName="ebnf",t.aliases=[]},26789:function(e){"use strict";function t(e){e.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:/^=/}}}}e.exports=t,t.displayName="editorconfig",t.aliases=[]},71569:function(e){"use strict";function t(e){e.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:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}e.exports=t,t.displayName="eiffel",t.aliases=[]},44168:function(e,t,n){"use strict";var r=n(29858);function i(e){e.register(r),function(e){e.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:e.languages.javascript}},e.hooks.add("before-tokenize",(function(t){e.languages["markup-templating"].buildPlaceholders(t,"ejs",/<%(?!%)[\s\S]+?%>/g)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"ejs")})),e.languages.eta=e.languages.ejs}(e)}e.exports=i,i.displayName="ejs",i.aliases=["eta"]},99073:function(e){"use strict";function t(e){e.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:/<<|>>|[.,%\[\]{}()]/},e.languages.elixir.string.forEach((function(t){t.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:e.languages.elixir}}}}))}e.exports=t,t.displayName="elixir",t.aliases=[]},87236:function(e){"use strict";function t(e){e.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:/[{}[\]|(),.:]/}}e.exports=t,t.displayName="elm",t.aliases=[]},19975:function(e,t,n){"use strict";var r=n(43858),i=n(29858);function o(e){e.register(r),e.register(i),function(e){e.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:e.languages.ruby}},e.hooks.add("before-tokenize",(function(t){e.languages["markup-templating"].buildPlaceholders(t,"erb",/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"erb")}))}(e)}e.exports=o,o.displayName="erb",o.aliases=[]},70337:function(e){"use strict";function t(e){e.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:/[()[\]{}:;,.#|]|<<|>>/}}e.exports=t,t.displayName="erlang",t.aliases=[]},85713:function(e,t,n){"use strict";var r=n(2798),i=n(29858);function o(e){e.register(r),e.register(i),function(e){e.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:e.languages.lua}},e.hooks.add("before-tokenize",(function(t){e.languages["markup-templating"].buildPlaceholders(t,"etlua",/<%[\s\S]+?%>/g)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"etlua")}))}(e)}e.exports=o,o.displayName="etlua",o.aliases=[]},90296:function(e){"use strict";function t(e){e.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:/[[\]();{}|]/},e.languages.xlsx=e.languages.xls=e.languages["excel-formula"]}e.exports=t,t.displayName="excelFormula",t.aliases=[]},7093:function(e){"use strict";function t(e){!function(e){var t={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},n={number:/\\[^\s']|%\w/},r={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:t},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:t},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:t}],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}
vendor: 4,142 bytes, line 75
75],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:n.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:n},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:n}],"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:n}},i=function(e){return(e+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},o=function(e){return new RegExp("(^|\\s)(?:"+e.map(i).join("|")+")(?=\\s|$)")},a={"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","<wrapper>","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","<PRIVATE",">>>>>>","<<<<<<<","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?","<slice>","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","boun
75ds-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","<iota>","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?","<reversed>","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","<repetition>","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","<fp-nan>","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(a).forEach((function(e){r[e].pattern=o(a[e])}));r.combinators.pattern=o(["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","input<sequence","append-outputs","drop-inputs","inputs","smart-2reduce","drop-outputs","smart-reduce","preserving","smart-when","outputs","append-outputs-as","smart-unless","smart-if*","
vendor: 8,994 bytes, line 75
75sum-outputs","input<sequence-unsafe","output>sequence"]),e.languages.factor=r}(e)}e.exports=t,t.displayName="factor",t.aliases=[]},10459:function(e){"use strict";function t(e){!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:/[-!#$%&'*+,./:;=>?@\\^_`|~\xdf\xf8]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()<BDO\xae]/,alias:"bold"}}}(e)}e.exports=t,t.displayName="$false",t.aliases=[]},31906:function(e){"use strict";function t(e){e.languages["firestore-security-rules"]=e.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete e.languages["firestore-security-rules"]["class-name"],e.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:/,/}}})}e.exports=t,t.displayName="firestoreSecurityRules",t.aliases=[]},87690:function(e){"use strict";function t(e){!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})}(e)}e.exports=t,t.displayName="flow",t.aliases=[]},64066:function(e){"use strict";function t(e){e.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:/\(\/|\/\)|[(),;:&]/}}e.exports=t,t.displayName="fortran",t.aliases=[]},69580:function(e){"use strict";function t(e){e.languages.fsharp=e.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|<-|->|[!=:]=|<?\|{1,3}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.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"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.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:e.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}})}e.exports=t,t.displayName="fsharp",t.aliases=[]},86894:function(e,t,n){"use strict";var r=n(29858);function i(e){e.register(r),function(e){for(var t=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,n=0;n<2;n++)t=t.replace(/<expr>/g,(function(){return t}));t=t.replace(/<expr>/g,/[^\s\S]/.source);var r={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,(function(){return t}))),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,(function(){return t}))),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:/[,;.:()[\]{}]/};r.string[1].inside.interpolation.inside.rest=r,e.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:r}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:r}}}},e.hooks.add("before-tokenize",(function(n){var r=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,(function(){return t})),"gi");e.languages["markup-templating"].buildPlaceholders(n,"ftl",r)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"ftl")}))}(e)}e.exports=i,i.displayName="ftl",i.aliases=[]},27856:function(e){"use strict";function t(e){e.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:/[()[\]{},;.:]/},e.languages.gap.shell.inside.gap.inside=e.languages.gap}
75e.exports=t,t.displayName="gap",t.aliases=[]},94052:function(e){"use strict";function t(e){e.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:/[:*]/}}e.exports=t,t.displayName="gcode",t.aliases=[]},74538:function(e){"use strict";function t(e){e.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:/[.:,;()[\]{}]/}}e.exports=t,t.displayName="gdscript",t.aliases=[]},68407:function(e){"use strict";function t(e){e.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"}}}e.exports=t,t.displayName="gedcom",t.aliases=[]},70770:function(e){"use strict";function t(e){!function(e){var t=/(?:\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\xedstica|Egenskab|Egenskap|Eiginleiki|Feature|F\u012b\u010da|Fitur|Fonctionnalit\xe9|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Func\u0163ionalitate|Func\u021bionalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalit\u0101te|Funkcionalnost|Funkcja|Funksie|Funktionalit\xe4t|Funktionalit\xe9it|Funzionalit\xe0|Hwaet|Hw\xe6t|Jellemz\u0151|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogu\u0107nost|Moznosti|Mo\u017enosti|OH HAI|Omadus|Ominaisuus|Osobina|\xd6zellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Po\u017eadavek|Po\u017eiadavka|Pretty much|Qap|Qu'meH 'ut|Savyb\u0117|T\xednh n\u0103ng|Trajto|Vermo\xeb|Vlastnos\u0165|W\u0142a\u015bciwo\u015b\u0107|Zna\u010dilnost|\u0394\u03c5\u03bd\u03b1\u03c4\u03cc\u03c4\u03b7\u03c4\u03b1|\u039b\u03b5\u03b9\u03c4\u03bf\u03c5\u03c1\u03b3\u03af\u03b1|\u041c\u043e\u0433\u0443\u045b\u043d\u043e\u0441\u0442|\u041c\u04e9\u043c\u043a\u0438\u043d\u043b\u0435\u043a|\u041e\u0441\u043e\u0431\u0438\u043d\u0430|\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u043e|\u04ae\u0437\u0435\u043d\u0447\u04d9\u043b\u0435\u043a\u043b\u0435\u043b\u0435\u043a|\u0424\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b|\u0424\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u043d\u043e\u0441\u0442|\u0424\u0443\u043d\u043a\u0446\u0438\u044f|\u0424\u0443\u043d\u043a\u0446\u0456\u043e\u043d\u0430\u043b|\u05ea\u05db\u05d5\u05e0\u05d4|\u062e\u0627\u0635\u064a\u0629|\u062e\u0635\u0648\u0635\u06cc\u062a|\u0635\u0644\u0627\u062d\u06cc\u062a|\u06a9\u0627\u0631\u0648\u0628\u0627\u0631 \u06a9\u06cc \u0636\u0631\u0648\u0631\u062a|\u0648\u0650\u06cc\u0698\u06af\u06cc|\u0930\u0942\u092a \u0932\u0947\u0916|\u0a16\u0a3e\u0a38\u0a40\u0a05\u0a24|\u0a28\u0a15\u0a36 \u0a28\u0a41\u0a39\u0a3e\u0a30|\u0a2e\u0a41\u0a39\u0a3e\u0a02\u0a26\u0a30\u0a3e|\u0c17\u0c41\u0c23\u0c2e\u0c4
751|\u0cb9\u0cc6\u0c9a\u0ccd\u0c9a\u0cb3|\u0e04\u0e27\u0e32\u0e21\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e17\u0e32\u0e07\u0e18\u0e38\u0e23\u0e01\u0e34\u0e08|\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16|\u0e42\u0e04\u0e23\u0e07\u0e2b\u0e25\u0e31\u0e01|\uae30\ub2a5|\u30d5\u30a3\u30fc\u30c1\u30e3|\u529f\u80fd|\u6a5f\u80fd):(?:[^:\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|\xc6r|Agtergrond|All y'all|Antecedentes|Antecedents|Atbur\xf0ar\xe1s|Atbur\xf0ar\xe1sir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|B\u1ed1i c\u1ea3nh|Cefndir|Cenario|Cen\xe1rio|Cenario de Fundo|Cen\xe1rio de Fundo|Cenarios|Cen\xe1rios|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|D\xe6mi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delinea\xe7\xe3o do Cen\xe1rio|Dis is what went down|D\u1eef li\u1ec7u|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\xe1rio|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgat\xf3k\xf6nyv|Forgat\xf3k\xf6nyv v\xe1zlat|Fundo|Ge\xe7mi\u015f|Grundlage|Hannergrond|ghantoH|H\xe1tt\xe9r|Heave to|Istorik|Juhtumid|Keadaan|Khung k\u1ecbch b\u1ea3n|Khung t\xecnh hu\u1ed1ng|K\u1ecbch b\u1ea3n|Koncept|Konsep skenario|Kont\xe8ks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|L\xfdsing Atbur\xf0ar\xe1sar|L\xfdsing D\xe6ma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|N\xe1\u010drt Scen\xe1ra|N\xe1\u010drt Sc\xe9n\xe1\u0159e|N\xe1\u010drt Scen\xe1ru|Oris scenarija|\xd6rnekler|Osnova|Osnova Scen\xe1ra|Osnova sc\xe9n\xe1\u0159e|Osnutek|Ozadje|Paraugs|Pavyzd\u017eiai|P\xe9ld\xe1k|Piem\u0113ri|Plan du sc\xe9nario|Plan du Sc\xe9nario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozad\xed|Pozadie|Pozadina|Pr\xedklady|P\u0159\xedklady|Primer|Primeri|Primjeri|Przyk\u0142ady|Raamstsenaarium|Reckon it's like|Rerefons|Scen\xe1r|Sc\xe9n\xe1\u0159|Scenarie|Scenarij|Scenarijai|Scenarijaus \u0161ablonas|Scenariji|Scen\u0101rijs|Scen\u0101rijs p\u0113c parauga|Scenarijus|Scenario|Sc\xe9nario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se \xf0e|Se the|Se \xfee|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo tasla\u011f\u0131|Shiver me timbers|Situ\u0101cija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structur\u0103 scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hw\xe6r swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|T\xecnh hu\u1ed1ng|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Za\u0142o\u017cenia|\u03a0\u03b1\u03c1\u03b1\u03b4\u03b5\u03af\u03b3\u03bc\u03b1\u03c4\u03b1|\u03a0\u03b5\u03c1\u03b9\u03b3\u03c1\u03b1\u03c6\u03ae \u03a3\u03b5\u03bd\u03b1\u03c1\u03af\u03bf\u03c5|\u03a3\u03b5\u03bd\u03ac\u03c1\u03b9\u03b1|\u03a3\u03b5\u03bd\u03ac\u03c1\u03b9\u03bf|\u03a5\u03c0\u03cc\u03b2\u03b1\u03b8\u03c1\u03bf|\u041a\u0435\u0440\u0435\u0448|\u041a\u043e\u043d\u0442\u0435\u043a\u0441\u0442|\u041a\u043e\u043d\u0446\u0435\u043f\u0442|\u041c\u0438\u0441\u0430\u043b\u043b\u0430\u0440|\u041c\u0438\u0441\u043e\u043b\u043b\u0430\u0440|\u041e\u0441\u043d\u043e\u0432\u0430|\u041f\u0435\u0440\u0435\u0434\u0443\u043c\u043e\u0432\u0430|\u041f\u043e\u0437\u0430\u0434\u0438\u043d\u0430|\u041f\u0440\u0435\u0434\u0438\u0441\u0442\u043e\u0440\u0438\u044f|\u041f\u0440\u0435\u0434\u044b\u0441\u0442\u043e\u0440\u0438\u044f|\u041f\u0440\u0438\u043a\u043b\u0430\u0434\u0438|\u041f\u0440\u0438\u043c\u0435\u0440|\u041f\u0440\u0438\u043c\u0435\u0440\u0438|\u041f\u0440\u0438\u043c\u0435\u0440\u044b|\u0420\u0430\u043c\u043a\u0430 \u043d\u0430 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439|\u0421\u043a\u0438\u0446\u0430|\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0458\u0430|\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u044f|\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u044e|\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439|\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430\u0441\u0438|\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439\u043d\u044b\u04a3 \u0442\u04e9\u0437\u0435\u043b\u0435\u0448\u0435|\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0458\u0438|\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u043e|\u0421\u0446\u0435\u043d\u0430\u0440\u0456\u0439|\u0422\u0430\u0440\u0438\u0445|\u04ae\u0440\u043d\u04d9\u043a\u043b\u04d9\u0440|\u05d3\u05d5\u05d2\u05de\u05d0\u05d5\u05ea|\u05e8\u
7505e7\u05e2|\u05ea\u05d1\u05e0\u05d9\u05ea \u05ea\u05e8\u05d7\u05d9\u05e9|\u05ea\u05e8\u05d7\u05d9\u05e9|\u0627\u0644\u062e\u0644\u0641\u064a\u0629|\u0627\u0644\u06af\u0648\u06cc \u0633\u0646\u0627\u0631\u06cc\u0648|\u0627\u0645\u062b\u0644\u0629|\u067e\u0633 \u0645\u0646\u0638\u0631|\u0632\u0645\u06cc\u0646\u0647|\u0633\u0646\u0627\u0631\u06cc\u0648|\u0633\u064a\u0646\u0627\u0631\u064a\u0648|\u0633\u064a\u0646\u0627\u0631\u064a\u0648 \u0645\u062e\u0637\u0637|\u0645\u062b\u0627\u0644\u06cc\u06ba|\u0645\u0646\u0638\u0631 \u0646\u0627\u0645\u06d2 \u06a9\u0627 \u062e\u0627\u06a9\u06c1|\u0645\u0646\u0638\u0631\u0646\u0627\u0645\u06c1|\u0646\u0645\u0648\u0646\u0647 \u0647\u0627|\u0909\u0926\u093e\u0939\u0930\u0923|\u092a\u0930\u093f\u0926\u0943\u0936\u094d\u092f|\u092a\u0930\u093f\u0926\u0943\u0936\u094d\u092f \u0930\u0942\u092a\u0930\u0947\u0916\u093e|\u092a\u0943\u0937\u094d\u0920\u092d\u0942\u092e\u093f|\u0a09\u0a26\u0a3e\u0a39\u0a30\u0a28\u0a3e\u0a02|\u0a2a\u0a1f\u0a15\u0a25\u0a3e|\u0a2a\u0a1f\u0a15\u0a25\u0a3e \u0a22\u0a3e\u0a02\u0a1a\u0a3e|\u0a2a\u0a1f\u0a15\u0a25\u0a3e \u0a30\u0a42\u0a2a \u0a30\u0a47\u0a16\u0a3e|\u0a2a\u0a3f\u0a1b\u0a4b\u0a15\u0a5c|\u0c09\u0c26\u0c3e\u0c39\u0c30\u0c23\u0c32\u0c41|\u0c15\u0c25\u0c28\u0c02|\u0c28\u0c47\u0c2a\u0c25\u0c4d\u0c2f\u0c02|\u0c38\u0c28\u0c4d\u0c28\u0c3f\u0c35\u0c47\u0c36\u0c02|\u0c89\u0ca6\u0cbe\u0cb9\u0cb0\u0ca3\u0cc6\u0c97\u0cb3\u0cc1|\u0c95\u0ca5\u0cbe\u0cb8\u0cbe\u0cb0\u0cbe\u0c82\u0cb6|\u0cb5\u0cbf\u0cb5\u0cb0\u0ca3\u0cc6|\u0cb9\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6\u0cb2\u0cc6|\u0e42\u0e04\u0e23\u0e07\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e02\u0e2d\u0e07\u0e40\u0e2b\u0e15\u0e38\u0e01\u0e32\u0e23\u0e13\u0e4c|\u0e0a\u0e38\u0e14\u0e02\u0e2d\u0e07\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07|\u0e0a\u0e38\u0e14\u0e02\u0e2d\u0e07\u0e40\u0e2b\u0e15\u0e38\u0e01\u0e32\u0e23\u0e13\u0e4c|\u0e41\u0e19\u0e27\u0e04\u0e34\u0e14|\u0e2a\u0e23\u0e38\u0e1b\u0e40\u0e2b\u0e15\u0e38\u0e01\u0e32\u0e23\u0e13\u0e4c|\u0e40\u0e2b\u0e15\u0e38\u0e01\u0e32\u0e23\u0e13\u0e4c|\ubc30\uacbd|\uc2dc\ub098\ub9ac\uc624|\uc2dc\ub098\ub9ac\uc624 \uac1c\uc694|\uc608|\u30b5\u30f3\u30d7\u30eb|\u30b7\u30ca\u30ea\u30aa|\u30b7\u30ca\u30ea\u30aa\u30a2\u30a6\u30c8\u30e9\u30a4\u30f3|\u30b7\u30ca\u30ea\u30aa\u30c6\u30f3\u30d7\u30ec|\u30b7\u30ca\u30ea\u30aa\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8|\u30c6\u30f3\u30d7\u30ec|\u4f8b|\u4f8b\u5b50|\u5267\u672c|\u5267\u672c\u5927\u7eb2|\u5287\u672c|\u5287\u672c\u5927\u7db1|\u573a\u666f|\u573a\u666f\u5927\u7eb2|\u5834\u666f|\u5834\u666f\u5927\u7db1|\u80cc\u666f):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+t+")(?:"+t+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(t),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A tak\xe9|A taktie\u017e|A tie\u017e|A z\xe1rove\u0148|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\xe8s|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Bi\u1ebft|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|C\xe2nd|Cand|Cando|Ce|Cuando|\u010ce|\xd0a \xf0e|\xd0a|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Da\u0163i fiind|Da\u021bi fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donita\u0135o|Do|Dun|Duota|\xd0urh|Eeldades|Ef|E\u011fer ki|Entao|Ent\xe3o|Ent\xf3n|E|En|Entonces|Epi|\xc9s|Etant donn\xe9e|Etant donn\xe9|Et|\xc9tant donn\xe9es|\xc9tant donn\xe9e|\xc9tant donn\xe9|Etant donn\xe9es|Etant donn\xe9s|\xc9tant donn\xe9s|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\u015bli|Je\u017celi|Kad|Kada|Kadar|Kai|Kaj|Kdy\u017e|Ke\u010f|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|L\xe8 sa a|L\xe8|Logo|Lorsqu'<|Lorsque|m\xe4|Maar|Mais|Maj\u0105c|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|N\xe5r|N\xe4r|Nato|Nh\u01b0ng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Per\xf2|Podano|Pokia\u013e|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|S\xe5|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|\u015ei|\u0218i|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Th\xec|Thurh|Toda|Too right|Un|Und|ugeholl|V\xe0|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|You
75se know when youse got|Y|Za predpokladu|Za p\u0159edpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zak\u0142adaj\u0105c|Zaradi|Zatati|\xdea \xfee|\xdea|\xde\xe1|\xdeegar|\xdeurh|\u0391\u03bb\u03bb\u03ac|\u0394\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03bf\u03c5|\u039a\u03b1\u03b9|\u038c\u03c4\u03b1\u03bd|\u03a4\u03cc\u03c4\u03b5|\u0410 \u0442\u0430\u043a\u043e\u0436|\u0410\u0433\u0430\u0440|\u0410\u043b\u0435|\u0410\u043b\u0438|\u0410\u043c\u043c\u043e|\u0410|\u04d8\u0433\u04d9\u0440|\u04d8\u0439\u0442\u0438\u043a|\u04d8\u043c\u043c\u0430|\u0411\u0438\u0440\u043e\u043a|\u0412\u0430|\u0412\u04d9|\u0414\u0430\u0434\u0435\u043d\u043e|\u0414\u0430\u043d\u043e|\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c|\u0415\u0441\u043b\u0438|\u0417\u0430\u0434\u0430\u0442\u0435|\u0417\u0430\u0434\u0430\u0442\u0438|\u0417\u0430\u0434\u0430\u0442\u043e|\u0418|\u0406|\u041a \u0442\u043e\u043c\u0443 \u0436\u0435|\u041a\u0430\u0434\u0430|\u041a\u0430\u0434|\u041a\u043e\u0433\u0430\u0442\u043e|\u041a\u043e\u0433\u0434\u0430|\u041a\u043e\u043b\u0438|\u041b\u04d9\u043a\u0438\u043d|\u041b\u0435\u043a\u0438\u043d|\u041d\u04d9\u0442\u0438\u0497\u04d9\u0434\u04d9|\u041d\u0435\u0445\u0430\u0439|\u041d\u043e|\u041e\u043d\u0434\u0430|\u041f\u0440\u0438\u043f\u0443\u0441\u0442\u0438\u043c\u043e, \u0449\u043e|\u041f\u0440\u0438\u043f\u0443\u0441\u0442\u0438\u043c\u043e|\u041f\u0443\u0441\u0442\u044c|\u0422\u0430\u043a\u0436\u0435|\u0422\u0430|\u0422\u043e\u0433\u0434\u0430|\u0422\u043e\u0434\u0456|\u0422\u043e|\u0423\u043d\u0434\u0430|\u04ba\u04d9\u043c|\u042f\u043a\u0449\u043e|\u05d0\u05d1\u05dc|\u05d0\u05d6\u05d9|\u05d0\u05d6|\u05d1\u05d4\u05d9\u05e0\u05ea\u05df|\u05d5\u05d2\u05dd|\u05db\u05d0\u05e9\u05e8|\u0622\u0646\u06af\u0627\u0647|\u0627\u0630\u0627\u064b|\u0627\u06af\u0631|\u0627\u0645\u0627|\u0627\u0648\u0631|\u0628\u0627 \u0641\u0631\u0636|\u0628\u0627\u0644\u0641\u0631\u0636|\u0628\u0641\u0631\u0636|\u067e\u06be\u0631|\u062a\u0628|\u062b\u0645|\u062c\u0628|\u0639\u0646\u062f\u0645\u0627|\u0641\u0631\u0636 \u06a9\u06cc\u0627|\u0644\u0643\u0646|\u0644\u06cc\u06a9\u0646|\u0645\u062a\u0649|\u0647\u0646\u06af\u0627\u0645\u06cc|\u0648|\u0905\u0917\u0930|\u0914\u0930|\u0915\u0926\u093e|\u0915\u093f\u0928\u094d\u0924\u0941|\u091a\u0942\u0902\u0915\u093f|\u091c\u092c|\u0924\u0925\u093e|\u0924\u0926\u093e|\u0924\u092c|\u092a\u0930\u0928\u094d\u0924\u0941|\u092a\u0930|\u092f\u0926\u093f|\u0a05\u0a24\u0a47|\u0a1c\u0a26\u0a4b\u0a02|\u0a1c\u0a3f\u0a35\u0a47\u0a02 \u0a15\u0a3f|\u0a1c\u0a47\u0a15\u0a30|\u0a24\u0a26|\u0a2a\u0a30|\u0c05\u0c2a\u0c4d\u0c2a\u0c41\u0c21\u0c41|\u0c08 \u0c2a\u0c30\u0c3f\u0c38\u0c4d\u0c25\u0c3f\u0c24\u0c3f\u0c32\u0c4b|\u
750c15\u0c3e\u0c28\u0c3f|\u0c1a\u0c46\u0c2a\u0c4d\u0c2a\u0c2c\u0c21\u0c3f\u0c28\u0c26\u0c3f|\u0c2e\u0c30\u0c3f\u0c2f\u0c41|\u0c86\u0ca6\u0cb0\u0cc6|\u0ca8\u0c82\u0ca4\u0cb0|\u0ca8\u0cbf\u0cd5\u0ca1\u0cbf\u0ca6|\u0cae\u0ca4\u0ccd\u0ca4\u0cc1|\u0cb8\u0ccd\u0ca5\u0cbf\u0ca4\u0cbf\u0caf\u0ca8\u0ccd\u0ca8\u0cc1|\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e43\u0e2b\u0e49|\u0e14\u0e31\u0e07\u0e19\u0e31\u0e49\u0e19|\u0e41\u0e15\u0e48|\u0e40\u0e21\u0e37\u0e48\u0e2d|\u0e41\u0e25\u0e30|\uadf8\ub7ec\uba74<|\uadf8\ub9ac\uace0<|\ub2e8<|\ub9cc\uc57d<|\ub9cc\uc77c<|\uba3c\uc800<|\uc870\uac74<|\ud558\uc9c0\ub9cc<|\u304b\u3064<|\u3057\u304b\u3057<|\u305f\u3060\u3057<|\u306a\u3089\u3070<|\u3082\u3057<|\u4e26\u4e14<|\u4f46\u3057<|\u4f46\u662f<|\u5047\u5982<|\u5047\u5b9a<|\u5047\u8a2d<|\u5047\u8bbe<|\u524d\u63d0<|\u540c\u65f6<|\u540c\u6642<|\u5e76\u4e14<|\u5f53<|\u7576<|\u800c\u4e14<|\u90a3\u4e48<|\u90a3\u9ebc<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}}(e)}e.exports=t,t.displayName="gherkin",t.aliases=[]},76532:function(e){"use strict";function t(e){e.languages.git={comment:/^#.*/m,deleted:/^[-\u2013].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}e.exports=t,t.displayName="git",t.aliases=[]},84910:function(e,t,n){"use strict";var r=n(91417);function i(e){e.register(r),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/})}e.exports=i,i.displayName="glsl",i.aliases=[]},41768:function(e){"use strict";function t(e){e.languages.gamemakerlanguage=e.languages.gml=e.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_
75info|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|equal
75izer|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/})}e.exports=t,t.displayName="gml",t.aliases=[]},2987:function(e){"use strict";function t(e){e.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:/[(){}[\],.]/},e.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=e.languages.gn,e.languages.gni=e.languages.gn}e.exports=t,t.displayName="gn",t.aliases=["gni"]},13869:function(e){"use strict";function t(e){e.languages["go-mod"]=e.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:/[()[\],]/}}e.exports=t,t.displayName="goModule",t.aliases=[]},97316:function(e){"use strict";function t(e){e.languages.go=e.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/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}e.exports=t,t.displayName="go",t.aliases=[]},47889:function(e){"use strict";function t(e){e.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:e.languages.markdown}}}
vendor: 1,594 bytes, line 75
75,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+/},e.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!==typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var i=[];if(d(["definition-mutation","punctuation"])&&"("===u(1).content){n+=2;var o=p(/^\($/,/^\)$/);if(-1===o)continue;for(;n<o;n++){var a=u(0);"variable"===a.type&&(h(a,"variable-input"),i.push(a.content))}n=o+1}
vendor: 4,419 bytes, line 75
75if(d(["punctuation","property-query"])&&"{"===u(0).content&&(n++,h(u(0),"property-mutation"),i.length>0)){var s=p(/^\{$/,/^\}$/);if(-1===s)continue;for(var l=n;l<s;l++){var c=t[l];"variable"===c.type&&i.indexOf(c.content)>=0&&h(c,"variable-input")}}}}function u(e){return t[n+e]}function d(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=u(n+t);if(!r||r.type!==e[n])return!1}return!0}function p(e,r){for(var i=1,o=n;o<t.length;o++){var a=t[o],s=a.content;if("punctuation"===a.type&&"string"===typeof s)if(e.test(s))i++;else if(r.test(s)&&0===--i)return o}return-1}function h(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}}))}e.exports=t,t.displayName="graphql",t.aliases=[]},88240:function(e){"use strict";function t(e){e.languages.groovy=e.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:/\.+|[{}[\];(),:$]/}),e.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),e.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),e.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),e.hooks.add("wrap",(function(t){if("groovy"===t.language&&"string"===t.type){var n=t.content.value[0];if("'"!=n){var r=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;"$"===n&&(r=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),t.content.value=t.content.value.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),t.content=e.highlight(t.content.value,{expression:{pattern:r,lookbehind:!0,inside:e.languages.groovy}}),t.classes.push("/"===n?"regex":"gstring")}}}))}e.exports=t,t.displayName="groovy",t.aliases=[]},30812:function(e,t,n){"use strict";var r=n(43858);function i(e){e.register(r),function(e){e.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:e.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:e.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:e.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:e.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:e.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:e.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:e.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var t=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],n={},r=0,i=t.length;r<i;r++){var o=t[r];o="string"===typeof o?{filter:o,language:o}:o,e.languages[o.language]&&(n["filter-"+o.filter]={pattern:RegExp("((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}
75(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+".replace("{{filter_name}}",(function(){return o.filter}))),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[o.language,"language-"+o.language],inside:e.languages[o.language]}}})}e.languages.insertBefore("haml","filter",n)}(e)}e.exports=i,i.displayName="haml",i.aliases=[]},33666:function(e,t,n){"use strict";var r=n(29858);function i(e){e.register(r),function(e){e.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},e.hooks.add("before-tokenize",(function(t){e.languages["markup-templating"].buildPlaceholders(t,"handlebars",/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"handlebars")})),e.languages.hbs=e.languages.handlebars}(e)}e.exports=i,i.displayName="handlebars",i.aliases=["hbs"]},92712:function(e){"use strict";function t(e){e.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:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}e.exports=t,t.displayName="haskell",t.aliases=["hs"]},69630:function(e){"use strict";function t(e){e.languages.haxe=e.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}|[-+*/%!=&|^])=?|[?:~]/}
vendor: 10,771 bytes, line 75
75),e.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:e.languages.haxe}}},string:/[\s\S]+/}}}),e.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:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}e.exports=t,t.displayName="haxe",t.aliases=[]},67971:function(e){"use strict";function t(e){e.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:/[=\[\]{}]/}}e.exports=t,t.displayName="hcl",t.aliases=[]},55965:function(e,t,n){"use strict";var r=n(91417);function i(e){e.register(r),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/})}e.exports=i,i.displayName="hlsl",i.aliases=[]},126:function(e){"use strict";function t(e){e.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:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}e.exports=t,t.displayName="hoon",t.aliases=[]},35437:function(e){"use strict";function t(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}e.exports=t,t.displayName="hpkp",t.aliases=[]},69118:function(e){"use strict";function t(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}e.exports=t,t.displayName="hsts",t.aliases=[]},99882:function(e){"use strict";function t(e){!function(e){function t(e){return RegExp("(^(?:"+e+"):[ \t]*(?![ \t]))[^]+","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:t(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:e.languages.csp},{pattern:t(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:e.languages.hpkp},{pattern:t(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:e.languages.hsts},{pattern:t(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var n,r=e.languages,i={"application/javascript":r.javascript,"application/json":r.json||r.javascript,"application/xml":r.xml,"text/xml":r.xml,"text/html":r.html,"text/css":r.css,"text/plain":r.plain},o={"application/json":!0,"application/xml":!0};function a(e){var t=e.replace(/^[a-z]+\//,"");return"(?:"+e+"|"+("\\w+/(?:[\\w.-]+\\+)+"+t+"(?![+\\w.-])")+")"}for(var s in i)if(i[s]){n=n||{};var l=o[s]?a(s):s;n[s.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+l+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[s]}}n&&e.languages.insertBefore("http","header",n)}(e)}e.exports=t,t.displayName="http",t.aliases=[]},98459:function(e){"use strict";function t(e){e.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:/[\[,;:()\]]/}}e.exports=t,t.displayName="ichigojam",t.aliases=[]},13955:function(e){"use strict";function t(e){e.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:/[\[\](){},;]/}}e.exports=t,t.displayName="icon",t.aliases=[]},53997:function(e){"use strict";function t(e){!function(e){function t(e,n){return n<=0?/[]/.source:e.replace(/<SELF>/g,(function(){return t(e,n-1)}))}var n=/'[{}:=,](?:[^']|'')*'(?!')/,r={pattern:/''/,greedy:!0,alias:"operator"},i={pattern:n,greedy:!0,inside:{escape:r}},o=t(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,(function(){return n.source})),8),a={pattern:RegExp(o),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};e.languages["icu-message-format"]={argument:{pattern:RegExp(o),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":a,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":a,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}
75,"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+t(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:r,string:i},a.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"]}(e)}e.exports=t,t.displayName="icuMessageFormat",t.aliases=[]},89153:function(e,t,n){"use strict";var r=n(92712);function i(e){e.register(r),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}e.exports=i,i.displayName="idris",i.aliases=["idr"]},87112:function(e){"use strict";function t(e){e.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:/[()[\].,;]/}}e.exports=t,t.displayName="iecst",t.aliases=[]},31484:function(e){"use strict";function t(e){!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}(e)}e.exports=t,t.displayName="ignore",t.aliases=["gitignore","hgignore","npmignore"]},40466:function(e){"use strict";function t(e){e.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|supp
75orted|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:/[.,:;(){}]/},e.languages.inform7.string.inside.substitution.inside.rest=e.languages.inform7,e.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}e.exports=t,t.displayName="inform7",t.aliases=[]},12074:function(e){"use strict";function t(e){e.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:/=/}}e.exports=t,t.displayName="ini",t.aliases=[]},3038:function(e){"use strict";function t(e){e.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:/[=!*/%+\-^&|]=|>>?=?|<<?=?|:?:?=|\+\+?|--?|\*\*?|\/\/?|%|\|\|?|&&?|\b(?:and|not|or|return)\b|@@?|\?\??|\.\./,punctuation:/[{}[\];(),.:]/}}e.exports=t,t.displayName="io",t.aliases=[]},87922:function(e){"use strict";function t(e){e.languages.j={comment:{pattern:/\bNB\..*/,greedy:!0},string:{pattern:/'(?:''|[^'\r\n])*'/,greedy:!0},keyword:/\b(?:(?:CR|LF|adverb|conjunction|def|define|dyad|monad|noun|verb)\b|(?:assert|break|case|catch[dt]?|continue|do|else|elseif|end|fcase|for|for_\w+|goto_\w+|if|label_\w+|return|select|throw|try|while|whilst)\.)/,verb:{pattern:/(?!\^:|;\.|[=!][.:])(?:\{(?:\.|::?)?|p(?:\.\.?|:)|[=!\]]|[<>+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"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:/[()]/}}e.exports=t,t.displayName="j",t.aliases=[]},3594:function(e){"use strict";function t(e){!function(e){var t=/\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|
vendor: 5,480 bytes, line 75
75super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[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":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,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":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(e)}e.exports=t,t.displayName="java",t.aliases=[]},98234:function(e,t,n){"use strict";var r=n(3594),i=n(88229);function o(e){e.register(r),e.register(i),function(e){var t=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,n=/#\s*\w+(?:\s*\([^()]*\))?/.source,r=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,(function(){return n}));e.languages.javadoc=e.languages.extend("javadoclike",{}),e.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+r+")"),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:e.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:t,lookbehind:!0,inside:e.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:t,lookbehind:!0,inside:{tag:e.languages.markup.tag,entity:e.languages.markup.entity,code:{pattern:/.+/,inside:e.languages.java,alias:"language-java"}}}}}],tag:e.languages.markup.tag,entity:e.languages.markup.entity}),e.languages.javadoclike.addSupport("java",e.languages.javadoc)}(e)}e.exports=o,o.displayName="javadoc",o.aliases=[]},88229:function(e){"use strict";function t(e){!function(e){var t=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:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(t,n){"string"===typeof t&&(t=[t]),t.forEach((function(t){!function(t,n){var r="doc-comment",i=e.languages[t];if(i){var o=i[r];if(!o){var a={};a[r]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},o=(i=e.languages.insertBefore(t,"comment",a))[r]}if(o instanceof RegExp&&(o=i[r]={pattern:o}),Array.isArray(o))for(var s=0,l=o.length;s<l;s++)o[s]instanceof RegExp&&(o[s]={pattern:o[s]}),n(o[s]);else n(o)}}(t,(function(e){e.inside||(e.inside={}),e.inside.rest=n}))}))}}),t.addSupport(["java","javascript","php"],t)}(e)}e.exports=t,t.displayName="javadoclike",t.aliases=[]},98849:function(e){"use strict";function t(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.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+)*(?
75:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.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:e.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:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.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:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.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:e.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"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.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")),e.languages.js=e.languages.javascript}e.exports=t,t.displayName="javascript",t.aliases=["js"]},20407:function(e){"use strict";function t(e){e.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$.+-]*\/)+(?:<init>)?\([^()]*\)/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$]+(?=\.(?:<init>|[\w$]+)\()/,function:/(?:<init>
75|[\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/}}}}e.exports=t,t.displayName="javastacktrace",t.aliases=[]},22655:function(e){"use strict";function t(e){e.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Z\u0430-\u044f\u0410-\u042f_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\w\u0430-\u044f\u0410-\u042f\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Z\u0430-\u044f\u0410-\u042f_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\w\u0430-\u044f\u0410-\u042f\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:/[{}[\](),.]/}}e.exports=t,t.displayName="jexl",t.aliases=[]},27347:function(e){"use strict";function t(e){e.languages.jolie=e.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|
vendor: 14,807 bytes, line 75
75string|undefined|void)\b/}),e.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]*:)/}})}e.exports=t,t.displayName="jolie",t.aliases=[]},22223:function(e){"use strict";function t(e){!function(e){var t=/\\\((?:[^()]|\([^()]*\))*\)/.source,n=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,(function(){return t}))),r={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+t),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},i=e.languages.jq={comment:/#.*/,property:{pattern:RegExp(n.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:r},string:{pattern:n,lookbehind:!0,greedy:!0,inside:r},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"}};r.interpolation.inside.content.inside=i}(e)}e.exports=t,t.displayName="jq",t.aliases=[]},60301:function(e){"use strict";function t(e){!function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}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"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\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:t(/(\.\s*)#?<ID>/.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 n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var i=n[r],o=e.languages.javascript[i];"RegExp"===e.util.type(o)&&(o=e.languages.javascript[i]={pattern:o});var a=o.inside||{};o.inside=a,a["maybe-class-name"]=/^[A-Z][\s\S]*/}}(e)}e.exports=t,t.displayName="jsExtras",t.aliases=[]},98987:function(e){"use strict";function t(e){!function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,i=r.inside["interpolation-punctuation"],o=r.pattern.source;function a(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(e,t){return"___"+t.toUpperCase()+"_"+e+"___"}function l(t,n,r){var i={code:t,grammar:n,language:r};return e.hooks.run("before-tokenize",i),i.tokens=e.tokenize(i.code,i.grammar),e.hooks.run("after-tokenize",i),i.tokens}function c(t){var n={};n["interpolation-punctuation"]=i;var o=e.tokenize(t,n);if(3===o.length){var a=[1,1];a.push.apply(a,l(o[1],e.languages.javascript,"javascript")),o.splice.apply(o,a)}return new e.Token("interpolation",o,r.alias,t)}function u(t,n,r){var i=e.tokenize(t,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),a=0,u={},d=l(i.map((function(e){if("string"===typeof e)return e;for(var n,i=e.content;-1!==t.indexOf(n=s(a++,r)););return u[n]=i,n})).join(""),n,r),p=Object.keys(u);return a=0,function e(t){for(var n=0;n<t.length;n++){if(a>=p.length)return;var r=t[n];if("string"===typeof r||"string"===typeof r.content){var i=p[a],o="string"===typeof r?r:r.content,s=o.indexOf(i);if(-1!==s){++a;var l=o.substring(0,s),d=c(u[i]),h=o.substring(s+i.length),f=[];if(l&&f.push(l),f.push(d),h){var m=[h];e(m),f.push.apply(f,m)}"string"===typeof r?(t.splice.apply(t,[n,1].concat(f)),n+=f.length-1):r.content=f}}else{var g=r.content;Array.isArray(g)?e(g):e([g])}}}(d),new e.Token(r,d,"language-"+r,t)}e.languages.javascript["template-string"]=[a("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),a("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),a("svg",/\bsvg/.source),a("markdown",/\b(?:markdown|md)/.source),a("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),a("sql",/\bsql/.source),t].filter(Boolean);var d={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function p(e){return"string"===typeof e?e:Array.isArray(e)?e.map(p).join(""):p(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in d&&function t(n){for(var r=0,i=n.length;r<i;r++){var o=n[r];if("string"!==typeof o){var a=o.content;if(Array.isArray(a))if("template-string"===o.type){var s=a[1];if(3===a.length&&"string"!==typeof s&&"embedded-code"===s.type){var l=p(s),c=s.alias,d=Array.isArray(c)?c[0]:c,h=e.languages[d];if(!h)continue;a[1]=u(l,h,d)}}else t(a);else"string"!==typeof a&&t([a])}}}(t.tokens)}))}(e)}e.exports=t,t.displayName="jsTemplates",t.aliases=[]},48447:function(e,t,n){"use strict";var r=n(88229),i=n(57657);function o(e){e.register(r),e.register(i),function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\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:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,(function(){return n}))),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.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:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(e)}e.exports=o,o.displayName="jsdoc",o.aliases=[]},38108:function(e){"use strict";function t(e){e.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"}},e.languages.webmanifest=e.languages.json}e.exports=t,t.displayName="json",t.aliases=["webmanifest"]},88985:function(e,t,n){"use strict";var r=n(38108);function i(e){e.register(r),function(e){var t=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;e.languages.json5=e.languages.extend("json",{property:[{pattern:RegExp(t.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:t,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(e)}e.exports=i,i.displayName="json5",i.aliases=[]},95350:function(e,t,n){"use strict";var r=n(38108);function i(e){e.register(r),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*\()/})}e.exports=i,i.displayName="jsonp",i.aliases=[]},33752:function(e){"use strict";function t(e){e.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|<unknown>|.*(?:node_modules|\(<anonymous>\)|\(<unknown>|<anonymous>$|\(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:/:/}}}}}}e.exports=t,t.displayName="jsstacktrace",t.aliases=[]},64997:function(e){"use strict";function t(e){!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return i})),RegExp(e,t)}i=o(i).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<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=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var a=function(e){return e?"string"===typeof e?e:"string"===typeof e.content?e.content:e.content.map(a).join(""):""},s=function(t){for(var n=[],r=0;r<t.length;r++){var i=t[r],o=!1;if("string"!==typeof i&&("tag"===i.type&&i.content[0]&&"tag"===i.content[0].type?"</"===i.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(i.content[0].content[1])&&n.pop():"/>"===i.content[i.content.length-1].content||n.push({tagName:a(i.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===i.type&&"{"===i.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===i.type&&"}"===i.content?n[n.length-1].openedBraces--:o=!0),(o||"string"===typeof i)&&n.length>0&&0===n[n.length-1].openedBraces){var l=a(i);r<t.length-1&&("string"===typeof t[r+1]||"plain-text"===t[r+1].type)&&(l+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"===typeof t[r-1]||"plain-text"===t[r-1].type)&&(l=a(t[r-1])+l,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",l,null,l)}i.content&&"string"!==typeof i.content&&s(i.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)}))}(e)}e.exports=t,t.displayName="jsx",t.aliases=[]},4929:function(e){"use strict";function t(e){e.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:/&&|\|\||[-+*^%\xf7\u22bb&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~\u2260\u2264\u2265'\u221a\u221b]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[\u03c0\u212f]/}}e.exports=t,t.displayName="julia",t.aliases=[]},5592:function(e){"use strict";function t(e){e.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0}
75,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}<ipv4>|(?:[\da-f]{1,4}:){0,5}:<ipv4>|::(?:[\da-f]{1,4}:){0,5}<ipv4>|[\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})?|<ipv4>(?:\/\d{1,2})?)\b/.source.replace(/<ipv4>/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:/[\{\}]/}}e.exports=t,t.displayName="keepalived",t.aliases=[]},76779:function(e){"use strict";function t(e){e.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0}
vendor: 4,221 bytes, line 75
75,"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:/[()=,]/}}e.exports=t,t.displayName="keyman",t.aliases=[]},92791:function(e){"use strict";function t(e){!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 t={"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:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},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}(e)}e.exports=t,t.displayName="kotlin",t.aliases=["kt","kts"]},260:function(e){"use strict";function t(e){!function(e){var t=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function n(e,n){return RegExp(e.replace(/<nonId>/g,t),n)}e.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:n(/(^|[<nonId>])(?:\u0434\u0430|\u043d\u0435\u0442)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:n(/(^|[<nonId>])(?:\u0438|\u0438\u043b\u0438|\u043d\u0435)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:n(/(^|[<nonId>])\u0437\u043d\u0430\u0447(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:n(/(^|[<nonId>])(?:\u0432\u0435\u0449|\u043b\u0438\u0442|\u043b\u043e\u0433|\u0441\u0438\u043c|\u0446\u0435\u043b)(?:\x20*\u0442\u0430\u0431)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:n(/(^|[<nonId>])(?:\u043a\u043e\u043c\u043f\u043b|\u0441\u043a\u0430\u043d\u043a\u043e\u0434|\u0444\u0430\u0439\u043b|\u0446\u0432\u0435\u0442)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:n(/(^|[<nonId>])(?:\u0430\u043b\u0433|\u0430\u0440\u0433(?:\x20*\u0440\u0435\u0437)?|\u0432\u0432\u043e\u0434|\u0412\u041a\u041b\u042e\u0427\u0418\u0422\u042c|\u0432\u0441[\u
750435\u0451]|\u0432\u044b\u0431\u043e\u0440|\u0432\u044b\u0432\u043e\u0434|\u0432\u044b\u0445\u043e\u0434|\u0434\u0430\u043d\u043e|\u0434\u043b\u044f|\u0434\u043e|\u0434\u0441|\u0435\u0441\u043b\u0438|\u0438\u043d\u0430\u0447\u0435|\u0438\u0441\u043f|\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c|\u043a\u043e\u043d(?:(?:\x20+|_)\u0438\u0441\u043f)?|\u043a\u0446(?:(?:\x20+|_)\u043f\u0440\u0438)?|\u043d\u0430\u0434\u043e|\u043d\u0430\u0447|\u043d\u0441|\u043d\u0446|\u043e\u0442|\u043f\u0430\u0443\u0437\u0430|\u043f\u043e\u043a\u0430|\u043f\u0440\u0438|\u0440\u0430\u0437\u0430?|\u0440\u0435\u0437|\u0441\u0442\u043e\u043f|\u0442\u0430\u0431|\u0442\u043e|\u0443\u0442\u0432|\u0448\u0430\u0433)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:n(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:n(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},e.languages.kum=e.languages.kumir}(e)}e.exports=t,t.displayName="kumir",t.aliases=["kum"]},33952:function(e){"use strict";function t(e){e.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\xb5]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}e.exports=t,t.displayName="kusto",t.aliases=[]},7796:function(e){"use strict";function t(e){!function(e){var t=/\\(?:[^a-z()[\]]|[a-z*]+)/i,n={"equation-command":{pattern:t,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:n,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:n,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:t,alias:"selector"},punctuation:/[[\]{}&]/},e.languages.tex=e.languages.latex,e.languages.context=e.languages.latex}(e)}e.exports=t,t.displayName="latex",t.aliases=["tex","context"]},19566:function(e,t,n){"use strict";var r=n(29858),i=n(17632);function o(e){e.register(r),e.register(i),function(e){e.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:e.languages.php}};var t=e.languages.extend("markup",{});e.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\
75s'">=]+))?/,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:e.languages.php}}}}}},t.tag),e.hooks.add("before-tokenize",(function(n){if("latte"===n.language){e.languages["markup-templating"].buildPlaceholders(n,"latte",/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g),n.grammar=t}})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"latte")}))}(e)}e.exports=o,o.displayName="latte",o.aliases=[]},43083:function(e){"use strict";function t(e){e.languages.less=e.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:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}e.exports=t,t.displayName="less",t.aliases=[]},61889:function(e,t,n){"use strict";var r=n(92921);function i(e){e.register(r),function(e){for(var t=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,n=0;n<5;n++)t=t.replace(/<expr>/g,(function(){return t}));t=t.replace(/<expr>/g,/[^\s\S]/.source);var r=e.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,(function(){return t})),"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:e.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/};r["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=r,e.languages.ly=r}(e)}e.exports=i,i.displayName="lilypond",i.aliases=[]},90914:function(e,t,n){"use strict";var r=n(29858);function i(e){e.register(r),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(t){var n=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,(function(e){var t=/^\{%-?\s*(\w+)/.exec(e);if(t){var r=t[1];if("raw"===r&&!n)return n=!0,!0;if("endraw"===r)return n=!1,!0}return!n}))})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")}))}
vendor: 12,467 bytes, line 75
75e.exports=i,i.displayName="liquid",i.aliases=[]},87650:function(e){"use strict";function t(e){!function(e){function t(e){return RegExp(/(\()/.source+"(?:"+e+")"+/(?=[\s\)])/.source)}function n(e){return RegExp(/([\s([])/.source+"(?:"+e+")"+/(?=[\s)])/.source)}var r=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,i="&"+r,o="(\\()",a="(?=\\s)",s=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,l={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+r+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+r),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+r),alias:"property"},splice:{pattern:RegExp(",@?"+r),alias:["symbol","variable"]},keyword:[{pattern:RegExp(o+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+a),lookbehind:!0},{pattern:RegExp(o+"(?:append|by|collect|concat|do|finally|for|in|return)"+a),lookbehind:!0}],declare:{pattern:t(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:t(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:n(/nil|t/.source),lookbehind:!0},number:{pattern:n(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(o+"def(?:const|custom|group|var)\\s+"+r),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(r)}},defun:{pattern:RegExp(o+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+r+/\s+\(/.source+s+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+r),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(o+"lambda\\s+\\(\\s*(?:&?"+r+"(?:\\s+&?"+r+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(o+r),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},c={"lisp-marker":RegExp(i),varform:{pattern:RegExp(/\(/.source+r+/\s+(?=\S)/.source+s+/\)/.source),inside:l},argument:{pattern:RegExp(/(^|[\s(])/.source+r),lookbehind:!0,alias:"variable"},rest:l},u="\\S+(?:\\s+\\S+)*",d={pattern:RegExp(o+s+"(?=\\))"),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+u),inside:c},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+u),inside:c},keys:{pattern:RegExp("&key\\s+"+u+"(?:\\s+&allow-other-keys)?"),inside:c},argument:{pattern:RegExp(r),alias:"variable"},punctuation:/[()]/}};l.lambda.inside.arguments=d,l.defun.inside.arguments=e.util.clone(d),l.defun.inside.arguments.inside.sublist=d,e.languages.lisp=l,e.languages.elisp=l,e.languages.emacs=l,e.languages["emacs-lisp"]=l}(e)}e.exports=t,t.displayName="lisp",t.aliases=[]},58859:function(e){"use strict";function t(e){e.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:/[(){}\[\]|.,:;`]/},e.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=e.languages.livescript}e.exports=t,t.displayName="livescript",t.aliases=[]},98391:function(e){"use strict";function t(e){!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:/[{}[\];(),.!*=<>]/}}(e)}e.exports=t,t.displayName="llvm",t.aliases=[]},26798:function(e){"use strict";function t(e){e.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:e.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:/[\[\].,]/}}e.exports=t,t.displayName="log",t.aliases=[]},78618:function(e){"use strict";function t(e){e.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}|\u2026|,|!/}}e.exports=t,t.displayName="lolcode",t.aliases=[]},2798:function(e){"use strict";function t(e){e.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:/[\[\](){},;]|\.+|:+/}}e.exports=t,t.displayName="lua",t.aliases=[]},44637:function(e){"use strict";function t(e){e.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:/[()[\]{}<>,;.:]/}}e.exports=t,t.displayName="magma",t.aliases=[]},34478:function(e){"use strict";function t(e){e.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:/[:;(){}]/}}e.exports=t,t.displayName="makefile",t.aliases=[]},50663:function(e){"use strict";function t(e){!function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2}
vendor: 5,364 bytes, line 75
75)*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),o=/\|?[ \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("^"+i+o+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+o+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),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:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\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:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.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(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!==typeof t)for(var n=0,r=t.length;n<r;n++){var i=t[n];if("code"===i.type){var o=i.content[1],a=i.content[3];if(o&&a&&"code-language"===o.type&&"code-block"===a.type&&"string"===typeof o.content){var s=o.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),l="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());a.alias?"string"===typeof a.alias?a.alias=[a.alias,l]:a.alias.push(l):a.alias=[l]}}else e(i.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,i=t.classes.length;r<i;r++){var o=t.classes[r],c=/language-(.+)/.exec(o);if(c){n=c[1];break}}var u=e.languages[n];if(u)t.content=e.highlight(function(e){var t=e.replace(a,"");return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),l(n);var r=s[t];return r||e}))}(t.content.value),u,n);else if(n&&"none"!==n&&e.plugins.autoloader){var d="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=d,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(d);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(e)}e.exports=t,t.displayName="markdown",t.aliases=["md"]},29858:function(e){"use strict";function t(e){!function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,i,o){if(n.language===r){var a=n.tokenStack=[];
vendor: 6,097 bytes, line 75
75n.code=n.code.replace(i,(function(e){if("function"===typeof o&&!o(e))return e;for(var i,s=a.length;-1!==n.code.indexOf(i=t(r,s));)++s;return a[s]=e,i})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var i=0,o=Object.keys(n.tokenStack);!function a(s){for(var l=0;l<s.length&&!(i>=o.length);l++){var c=s[l];if("string"===typeof c||c.content&&"string"===typeof c.content){var u=o[i],d=n.tokenStack[u],p="string"===typeof c?c:c.content,h=t(r,u),f=p.indexOf(h);if(f>-1){++i;var m=p.substring(0,f),g=new e.Token(r,e.tokenize(d,n.grammar),"language-"+r,d),b=p.substring(f+h.length),v=[];m&&v.push.apply(v,a([m])),v.push(g),b&&v.push.apply(v,a([b])),"string"===typeof c?s.splice.apply(s,[l,1].concat(v)):c.content=v}}else c.content&&a(c.content)}return s}(n.tokens)}}}})}(e)}e.exports=t,t.displayName="markupTemplating",t.aliases=[]},28002:function(e){"use strict";function t(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\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:/<!\[CDATA\[[\s\S]*?\]\]>/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]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.value.replace(/&amp;/,"&"))})),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(t,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var o={};o[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return t})),"i"),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\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:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}e.exports=t,t.displayName="markup",t.aliases=["html","mathml","svg","xml","ssml","atom","rss"]},68359:function(e){"use strict";function t(e){e.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}|[.,;\[\](){}!]/}}e.exports=t,t.displayName="matlab",t.aliases=[]},60277:function(e){"use strict";function t(e){!function(e){var t=/\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+")[ \t]*)(?!"+t.source+")"+/[a-z_]\w*\b/.source+"(?=[ \t]*(?:(?!"+t.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:t,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}}(e)}e.exports=t,t.displayName="maxscript",t.aliases=[]},78990:function(e){"use strict";function t(e){e
vendor: 16,738 bytes, line 75
75.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:/<<|>>|[.,:;?\[\](){}]/},
75e.languages.mel.code.inside.rest=e.languages.mel}e.exports=t,t.displayName="mel",t.aliases=[]},73507:function(e){"use strict";function t(e){e.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:/,/}}
vendor: 4,483 bytes, line 75
75,"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]|===+|---+|-\.+-)(?![<>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:/[(){};]/}}e.exports=t,t.displayName="mermaid",t.aliases=[]},43695:function(e){"use strict";function t(e){e.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:/\(#|#\)|[,:;\[\](){}]/}}e.exports=t,t.displayName="mizar",t.aliases=[]},59966:function(e){"use strict";function t(e){!function(e){var t=["$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","$
75in","$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"],n="(?:"+(t=t.map((function(e){return e.replace("$","\\$")}))).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("^(['\"])?"+n+"(?:\\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(?:"+["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"].join("|")+")\\b"),alias:"keyword"}})}(e)}e.exports=t,t.displayName="mongodb",t.aliases=[]},10139:function(e){"use strict";function t(e){e.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:/[.,:;()\[\]]/}}e.exports=t,t.displayName="monkey",t.aliases=[]},66236:function(e){"use strict";function t(e){e.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]))(?
vendor: 8,708 bytes, line 75
75:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},e.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=e.languages.moonscript,e.languages.moon=e.languages.moonscript}e.exports=t,t.displayName="moonscript",t.aliases=["moon"]},18642:function(e){"use strict";function t(e){e.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:/[;[\](),.{}:]/}}e.exports=t,t.displayName="n1ql",t.aliases=[]},63087:function(e){"use strict";function t(e){e.languages.n4js=e.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/}),e.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),e.languages.n4jsd=e.languages.n4js}e.exports=t,t.displayName="n4js",t.aliases=["n4jsd"]},26787:function(e){"use strict";function t(e){e.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:/[{}[\];(),:]/}}e.exports=t,t.displayName="nand2tetrisHdl",t.aliases=[]},30949:function(e){"use strict";function t(e){!function(e){var t=/\{[^\r\n\[\]{}]*\}/,n={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:t,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};function r(e){return"string"===typeof e?e:Array.isArray(e)?e.map(r).join(""):r(e.content)}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:t,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:n}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:t,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:n},"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(e){e.tokens.forEach((function(e){if("string"!==typeof e&&"generic-text"===e.type){var t=r(e);(function(e){for(var t="[]{}",n=[],r=0;r<e.length;r++){var i=e[r],o=t.indexOf(i);if(-1!==o)if(o%2===0)n.push(o+1);else if(n.pop()!==o)return!1}return 0===n.length})(t)||(e.type="bad-line",e.content=t)}}))}))}(e)}e.exports=t,t.displayName="naniscript",t.aliases=[]},63607:function(e){"use strict";function t(e){e.languages.nasm={comment:/;.*$/m,string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,label:{pattern:/(^\s*)[A-Za-z._?$][\w.?$@~#]*:/m,lookbehind:!0,alias:"function"},keyword:[/\[?BITS (?:16|32|64)\]?/,{pattern:/(^\s*)section\s*[a-z.]+:?/im,lookbehind:!0},/(?:extern|global)[^;\r\n]*/i,/(?:CPU|DEFAULT|FLOAT).*$/m],register:{pattern:/\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)\b/i,alias:"variable"},number:/(?:\b|(?=\$))(?:0[hx](?:\.[\da-f]+|[\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:/[\[\]*+\-\/%<>=&|$!]/}}e.exports=t,t.displayName="nasm",t.aliases=[]},37546:function(e){"use strict";function t(e){e.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:/[,:=[\]{}()-]/}}e.exports=t,t.displayName="neon",t.aliases=[]},58954:function(e){"use strict";function t(e){e.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
75*[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\-.]+/}}e.exports=t,t.displayName="nevod",t.aliases=[]},17808:function(e){"use strict";function t(e){!function(e){var t=/\$(?:\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:t}},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:t}},punctuation:/[{};]/}}(e)}e.exports=t,t.displayName="nginx",t.aliases=[]},92848:function(e){"use strict";function t(e){e.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:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}e.exports=t,t.displayName="nim",t.aliases=[]},87571:function(e){"use strict";function t(e){e.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:/[{}()[\].,:;]/},e.languages.nix.string.inside.interpolation.inside=e.languages.nix}e.exports=t,t.displayName="nix",t.aliases=[]},17537:function(e){"use strict";function t(e){e.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|fal
75se|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}}}e.exports=t,t.displayName="nsis",t.aliases=[]},25918:function(e,t,n){"use strict";var r=n(91417);function i(e){e.register(r),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}e.exports=i,i.displayName="objectivec",i.aliases=["objc"]},73436:function(e){"use strict";function t(e){e.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+/,al
75ias:"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/}}e.exports=t,t.displayName="ocaml",t.aliases=[]},87493:function(e,t,n){"use strict";var r=n(91417);function i(e){e.register(r),function(e){e.languages.opencl=e.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"}}),e.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 t
vendor: 7,530 bytes, line 75
75={"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"}};
75e.languages.insertBefore("c","keyword",t),e.languages.cpp&&(t["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"},e.languages.insertBefore("cpp","keyword",t))}(e)}e.exports=i,i.displayName="opencl",i.aliases=[]},16192:function(e){"use strict";function t(e){e.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|\u03c0|\ud835\udf0f|\u2107/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|\xb5s|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},e.languages.qasm=e.languages.openqasm}e.exports=t,t.displayName="openqasm",t.aliases=["qasm"]},29127:function(e){"use strict";function t(e){e.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:/[\[\](){}.:;?]/}}e.exports=t,t.displayName="oz",t.aliases=[]},66287:function(e){"use strict";function t(e){e.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(e){return e.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:/[\[\]{}().,:;|]/}}e.exports=t,t.displayName="parigp",t.aliases=[]},5521:function(e){"use strict";function t(e){!function(e){var t=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}
vendor: 18,627 bytes, line 75
75,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:/[\[\](){};]/});t=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:t.keyword,variable:t.variable,function:t.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:t.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:t.punctuation}}}),e.languages.insertBefore("inside","punctuation",{expression:t.expression,keyword:t.keyword,variable:t.variable,function:t.function,escape:t.escape,"parser-punctuation":{pattern:t.punctuation,alias:"punctuation"}},t.tag.inside["attr-value"])}(e)}e.exports=t,t.displayName="parser",t.aliases=[]},91946:function(e){"use strict";function t(e){e.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:/\(\.|\.\)|[()\[\]:;,.]/},e.languages.pascal.asm.inside=e.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),e.languages.objectpascal=e.languages.pascal}e.exports=t,t.displayName="pascal",t.aliases=["objectpascal"]},24025:function(e){"use strict";function t(e){!function(e){var t=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,n=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,(function(){return t})),r=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+)<type>/.source.replace(/<type>/g,(function(){return n})),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,(function(){return n})),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,(function(){return n}))),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:/\(\.|\.\)|[()\[\]:;,.{}]/},i=["comment","keyword","builtin","operator","punctuation"].reduce((function(e,t){return e[t]=r[t],e}),{});r["class-name"].forEach((function(e){e.inside=i}))}(e)}e.exports=t,t.displayName="pascaligo",t.aliases=[]},93514:function(e){"use strict";function t(e){e.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/},e.languages.px=e.languages.pcaxis}e.exports=t,t.displayName="pcaxis",t.aliases=["px"]},99084:function(e){"use strict";function t(e){e.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:/[:.;,()[\]]/},e.languages.pcode=e.languages.peoplecode}e.exports=t,t.displayName="peoplecode",t.aliases=["pcode"]},2859:function(e){"use strict";function t(e){!function(e){var t=/(?:\((?:[^()\\]|\\[\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,t].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,t].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,t+/\s*/.source+t].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:/[{}[\];(),:]/}}(e)}e.exports=t,t.displayName="perl",t.aliases=[]},12514:function(e,t,n){"use strict";var r=n(17632);function i(e){e.register(r),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:/::|\\/}}})}e.exports=i,i.displayName="phpExtras",i.aliases=[]},17632:function(e,t,n){"use strict";var r=n(29858);function i(e){e.register(r),function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{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*\()/],r=/\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,i=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,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:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:i,punctuation:o};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{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:a}},{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:a}}];e.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"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:n,number:r,operator:i,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){if(/<\?/.test(t.code)){e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(e)}e.exports=i,i.displayName="php",i.aliases=[]},75396:function(e,t,n){"use strict";var r=n(17632),i=n(88229);function o(e){e.register(r),e.register(i),function(e){var t=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;e.languages.phpdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+t+"\\s+)?)\\$\\w+"),lookbehind:!0}}),e.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+t),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),e.languages.javadoclike.addSupport("php",e.languages.phpdoc)}(e)}e.exports=o,o.displayName="phpdoc",o.aliases=[]},55324:function(e,t,n){"use strict";var r=n(43024);function i(e){e.register(r),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|O
75UT|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"}})}e.exports=i,i.displayName="plsql",i.aliases=[]},66593:function(e){"use strict";function t(e){e.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:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}e.exports=t,t.displayName="powerquery",t.aliases=[]},55387:function(e){"use strict";function t(e){!function(e){var t=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|c
75opy|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:/[|{}[\];(),.]/};t.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:t},boolean:t.boolean,variable:t.variable}}(e)}e.exports=t,t.displayName="powershell",t.aliases=[]},1813:function(e){"use strict";function t(e){e.languages.processing=e.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:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.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"}})}
vendor: 2,895 bytes, line 75
75e.exports=t,t.displayName="processing",t.aliases=[]},60849:function(e){"use strict";function t(e){e.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:/[(){}\[\],]/}}e.exports=t,t.displayName="prolog",t.aliases=[]},53193:function(e){"use strict";function t(e){!function(e){var t=["on","ignoring","group_right","group_left","by","without"],n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"].concat(t,["offset"]);e.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+t.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(?:"+n.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:/[{};()`,.[\]]/}}(e)}e.exports=t,t.displayName="promql",t.aliases=[]},56439:function(e){"use strict";function t(e){e.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:/[=:]/}}e.exports=t,t.displayName="properties",t.aliases=[]},18069:function(e){"use strict";function t(e){!function(e){var t=/\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*>
75(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:t}},builtin:t,"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}})}(e)}e.exports=t,t.displayName="protobuf",t.aliases=[]},21259:function(e){"use strict";function t(e){e.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:/[(){}\[\];,]/}}e.exports=t,t.displayName="psl",t.aliases=[]},92004:function(e){"use strict";function t(e){!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 ]*)(?:(?
75:\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 t=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,n=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],r={},i=0,o=n.length;i<o;i++){var a=n[i];a="string"===typeof a?{filter:a,language:a}:a,e.languages[a.language]&&(r["filter-"+a.filter]={pattern:RegExp(t.replace("<filter_name>",(function(){return a.filter})),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[a.language,"language-"+a.language],inside:e.languages[a.language]}}})}e.languages.insertBefore("pug","filter",r)}(e)}e.exports=t,t.displayName="pug",t.aliases=[]},80448:function(e){"use strict";function t(e){!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:/=[=~>
75]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var t=[{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=t,e.languages.puppet.string.inside["double-quoted"].inside.interpolation=t}(e)}e.exports=t,t.displayName="puppet",t.aliases=[]},53132:function(e){"use strict";function t(e){!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 t=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;["c",{lang:"c++",alias:"cpp"},"fortran"].forEach((function(n){var r=n;if("string"!==typeof n&&(r=n.alias,n=n.lang),e.languages[r]){var i={};i["inline-lang-"+r]={pattern:RegExp(t.replace("<lang>",n.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:e.util.clone(e.languages.pure["inline-lang"].inside)},i["inline-lang-"+r].inside.rest=e.util.clone(e.languages[r]),e.languages.insertBefore("pure","inline-lang",i)}})),e.languages.c&&(e.languages.pure["inline-lang"].inside.rest=e.util.clone(e.languages.c))}(e)}e.exports=t,t.displayName="pure",t.aliases=[]},79964:function(e){"use strict";function t(e){e.languages.purebasic=e.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+|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.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 e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}e.exports=t,t.displayName="purebasic",t.aliases=[]},59055:function(e,t,n){"use strict";var r=n(92712);function i(e){e.register(r),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|\u2200/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\
75w']*(?:\.[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}e.exports=i,i.displayName="purescript",i.aliases=["purs"]},9512:function(e){"use strict";function t(e){e.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:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}e.exports=t,t.displayName="python",t.aliases=["py"]},94471:function(e){"use strict";function t(e){e.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:/[(){}\[\];.]/}}e.exports=t,t.displayName="q",t.aliases=[]},95906:function(e){"use strict";function t(e){!function(e){for(var t=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,n=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,r=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>
vendor: 13,857 bytes, line 75
75*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,(function(){return t})).replace(/<comment>/g,(function(){return n})),i=0;i<2;i++)r=r.replace(/<expr>/g,(function(){return r}));r=r.replace(/<expr>/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*\(<js>*\)\s*\{<js>*\}/.source.replace(/<js>/g,(function(){return r})),"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;}[])(?:(?!$|[;}])<js>)+/.source.replace(/<js>/g,(function(){return r})),"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:/[{}[\]:;,]/}}(e)}e.exports=t,t.displayName="qml",t.aliases=[]},86935:function(e){"use strict";function t(e){e.languages.qore=e.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/})}e.exports=t,t.displayName="qore",t.aliases=[]},55643:function(e){"use strict";function t(e){!function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),r||"")}var r=RegExp("\\b(?:"+("Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero"+" "+"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").trim().replace(/ /g,"|")+")\\b"),i=t(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[/\b[A-Za-z_]\w*\b/.source]),o={keyword:r,punctuation:/[<>()?,.:[\]]/},a=/"(?:\\.|[^\\"])*"/.source;e.languages.qsharp=e.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[a]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[i]),lookbehind:!0,inside:o},{pattern:n(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[i]),lookbehind:!0,inside:o}],keyword:r,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 s=function(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}(t(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[a]),2);e.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:n(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[s]),greedy:!0,inside:{interpolation:{pattern:n(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[s]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:e.languages.qsharp}}},string:/[\s\S]+/}}})}(e),e.languages.qs=e.languages.qsharp}e.exports=t,t.displayName="qsharp",t.aliases=["qs"]},67450:function(e){"use strict";function t(e){e.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:/[(){}\[\],;]/}}e.exports=t,t.displayName="r",t.aliases=[]},81292:function(e,t,n){"use strict";var r=n(92921);function i(e){e.register(r),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}e.exports=i,i.displayName="racket",i.aliases=["rkt"]},45510:function(e){"use strict";function t(e){e.languages.reason=e.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/}),e.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 e.languages.reason.function}e.exports=t,t.displayName="reason",t.aliases=[]},60123:function(e){"use strict";function t(e){!function(e){var t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?: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]|.)/,r="(?:[^\\\\-]|"+n.source+")",i=RegExp(r+"-"+r),o={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:i,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":t,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":o}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":o}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}(e)}e.exports=t,t.displayName="regex",t.aliases=[]},60093:function(e){"use strict";function t(e){e.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}e.exports=t,t.displayName="rego",t.aliases=[]},35946:function(e){"use strict";function t(e){e.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:/[{}[\];(),.:]/},e.languages.rpy=e.languages.renpy}e.exports=t,t.displayName="renpy",t.aliases=["rpy"]},55784:function(e){"use strict";function t(e){e.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).+)+| .+)(?=(?
75:\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 ]*)(?:[*+\-\u2022\u2023\u2043]|\(?(?:\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 ]*)(?:\|(?= |$)|(?:---?|\u2014|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}e.exports=t,t.displayName="rest",t.aliases=[]},73255:function(e){"use strict";function t(e){e.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`'",.:;#\/\\()<>\[\]{}]*/}}e.exports=t,t.displayName="rip",t.aliases=[]},25236:function(e){"use strict";function t(e){e.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:/[{},.;:=]/}}e.exports=t,t.displayName="roboconf",t.aliases=[]},73518:function(e){"use strict";function t(e){!function(e){var t={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},n={pattern:/((?:^|[^\\])(?:\\{2}
vendor: 19,336 bytes, line 75
75)*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function r(e,r){var i={"section-header":{pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"}};for(var o in r)i[o]=r[o];return i.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},i.variable=n,i.comment=t,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,(function(){return e})),"im"),alias:"section",inside:i}}var i={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},o={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:n}},a={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:n}};e.languages.robotframework={settings:r("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:r("Variables"),"test-cases":r("Test Cases",{"test-name":o,documentation:i,property:a}),keywords:r("Keywords",{"keyword-name":o,documentation:i,property:a}),tasks:r("Tasks",{"task-name":o,documentation:i,property:a}),comment:t},e.languages.robot=e.languages.robotframework}(e)}e.exports=t,t.displayName="robotframework",t.aliases=[]},43858:function(e){"use strict";function t(e){!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 t={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 n="(?:"+[/([^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("|")+")",r=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+r),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+r+/(?=:(?!:))/.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+n),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,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:t,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+n),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,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}(e)}e.exports=t,t.displayName="ruby",t.aliases=["rb"]},60632:function(e){"use strict";function t(e){!function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),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}(e)}e.exports=t,t.displayName="rust",t.aliases=[]},46989:function(e){"use strict";function t(e){!function(e){var t=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,n=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,r={pattern:RegExp(t+"[bx]"),alias:"number"},i={pattern:/&[a-z_]\w*/i},o={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"},a={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},s=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],l={pattern:RegExp(t),greedy:!0},c=/[$%@.(){}\[\];,\\]/,u={pattern:/%?\b\w+(?=\()/,alias:"keyword"},d={function:u,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":i,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:n,"numeric-constant":r,punctuation:c,string:l},p={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},h={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},f={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"},m={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},g=/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,b={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,(function(){return g})),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,(function(){return g})),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:s,function:u,"arg-value":d["arg-value"],operator:d.operator,argument:d.arg,number:n,"numeric-constant":r,punctuation:c,string:l}},v={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)(?:<str>|[^;"'])+;/.source.replace(/<str>/g,(function(){return t})),"im"),alias:"language-sql",inside:e.languages.sql},"global-statements":f,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:n,"numeric-constant":r,punctuation:c,string:l}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:s,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,(function(){return t})),"im"),lookbehind:!0,alias:"language-groovy",inside:e.languages.groovy},keyword:v,"submit-statement":m,"global-statements":f,number:n,"numeric-constant":r,punctuation:c,string:l}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:s,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,(function(){return t})),"im"),lookbehind:!0,alias:"language-lua",inside:e.languages.lua},keyword:v,"submit-statement":m,"global-statements":f,number:n,"numeric-constant":r,punctuation:c,string:l}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:s,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:d}},"cas-actions":b,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:d},step:a,keyword:v,function:u,format:p,altformat:h,"global-statements":f,number:n,"numeric-constant":r,punctuation:c,string:l}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,(function(){return t})),"im"),lookbehind:!0,inside:d},"macro-keyword":o,"macro-variable":i,"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":o,"macro-variable":i,"escaped-char":{pattern:/%['"()<>=\xac^~;,#]/},punctuation:c}},"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:s,number:n,"numeric-constant":r}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:d},"cas-actions":b,comment:s,function:u,format:p,altformat:h,"numeric-constant":r,datetime:{pattern:RegExp(t+"(?:dt?|t)"),alias:"number"},string:l,step:a,keyword:v,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:n,operator:/\*\*?|\|\|?|!!?|\xa6\xa6?|<[>=]?|>[<=]?|[-+\/=&]|[~\xac^]=?/,punctuation:c}}(e)}e.exports=t,t.displayName="sas",t.aliases=[]},50280:function(e){"use strict";function t(e){!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 t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\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:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,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}})}(e)}e.exports=t,t.displayName="sass",t.aliases=[]},88082:function(e,t,n){"use strict";var r=n(3594);function i(e){e.register(r),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}e.exports=i,i.displayName="scala",i.aliases=[]},92921:function(e){"use strict";function t(e){!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(?:-irr
75itants|-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(function(e){for(var t in e)e[t]=e[t].replace(/<[\w\s]+>/g,(function(t){return"(?:"+e[t].trim()+")"}));return e[t]}({"<ureal dec>":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"<real dec>":/[+-]?<ureal dec>|[+-](?:inf|nan)\.0/.source,"<imaginary dec>":/[+-](?:<ureal dec>|(?:inf|nan)\.0)?i/.source,"<complex dec>":/<real dec>(?:@<real dec>|<imaginary dec>)?|<imaginary dec>/.source,"<num dec>":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?<complex dec>/.source,"<ureal box>":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"<real box>":/[+-]?<ureal box>|[+-](?:inf|nan)\.0/.source,"<imaginary box>":/[+-](?:<ureal box>|(?:inf|nan)\.0)?i/.source,"<complex box>":/<real box>(?:@<real box>|<imaginary box>)?|<imaginary box>/.source,"<num box>":/#[box](?:#[ei])?|(?:#[ei])?#[box]<complex box>/.source,"<number>":/(^|[()\[\]\s])(?:<num dec>|<num box>)(?=[()\[\]\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:/[()\[\]']/}}(e)}e.exports=t,t.displayName="scheme",t.aliases=[]},42806:function(e){"use strict";function t(e){e.languages.scss=e.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]+\}/}}}),e.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}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.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}}),e.languages.scss.atrule.inside.rest=e.languages.scss}e.exports=t,t.displayName="scss",t.aliases=[]},97507:function(e,t,n){"use strict";var r=n(23008);function i(e){e.register(r),function(e){var t=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");e.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+/[^\s@:$#%*!/\\]+@[^\r\n@:$#%
vendor: 9,831 bytes, line 75
75*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,(function(){return t})),"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:e.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},e.languages["sh-session"]=e.languages.shellsession=e.languages["shell-session"]}(e)}e.exports=i,i.displayName="shellSession",i.aliases=[]},1820:function(e){"use strict";function t(e){e.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:/[{}(),;:]/}}e.exports=t,t.displayName="smali",t.aliases=[]},17921:function(e){"use strict";function t(e){e.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:/[.;:?\[\](){}]/}}e.exports=t,t.displayName="smalltalk",t.aliases=[]},71710:function(e,t,n){"use strict";var r=n(29858);function i(e){e.register(r),function(e){e.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:e.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/]},e.languages.smarty["embedded-php"].inside.smarty.inside=e.languages.smarty,e.languages.smarty.string[0].inside.interpolation.inside.expression.inside=e.languages.smarty;var t=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,n=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,(function(){return t.source})),"g");e.hooks.add("before-tokenize",(function(t){var r=!1;e.languages["markup-templating"].buildPlaceholders(t,"smarty",n,(function(e){return"{/literal}"===e&&(r=!1),!r&&("{literal}"===e&&(r=!0),!0)}))})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"smarty")}))}(e)}e.exports=i,i.displayName="smarty",i.aliases=[]},53148:function(e){"use strict";function t(e){!function(e){var t=/\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*)<TERMINAL>(?:\s*(?:(?:\*|->)\s*<TERMINAL>|,\s*<TERMINAL>(?:(?=<NOT-LAST>)|(?!<NOT-LAST>)\s+<LONG-ID>)))*/.source.replace(/<NOT-LAST>/g,(function(){return/\s*(?:[*,]|->)/.source})).replace(/<TERMINAL>/g,(function(){return/(?:'[\w']*|<LONG-ID>|\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+<LONG-ID>)*/.source})).replace(/<LONG-ID>/g,(function(){return/(?!<KEYWORD>)[a-z\d_][\w'.]*/.source})).replace(/<KEYWORD>/g,(function(){return t.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:t,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}(e)}e.exports=t,t.displayName="sml",t.aliases=["smlnj"]},76163:function(e){"use strict";function t(e){e.languages.solidity=e.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:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.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/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}e.exports=t,t.displayName="solidity",t.aliases=["sol"]},75024:function(e){"use strict";function t(e){!function(e){var t={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:t}},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:t}},guid:t,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},e.languages.sln=e.languages["solution-file"]}(e)}e.exports=t,t.displayName="solutionFile",t.aliases=[]},12209:function(e,t,n){"use strict";var r=n(29858);function i(e){e.register(r),function(e){var t=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;e.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:t,greedy:!0},number:n,punctuation:/[\[\].?]/}},string:{pattern:t,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:n,operator:/\?:?|<=?|>
75=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},e.hooks.add("before-tokenize",(function(t){var n=!1;e.languages["markup-templating"].buildPlaceholders(t,"soy",/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,(function(e){return"{/literal}"===e&&(n=!1),!n&&("{literal}"===e&&(n=!0),!0)}))})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"soy")}))}(e)}e.exports=i,i.displayName="soy",i.aliases=[]},79811:function(e,t,n){"use strict";var r=n(85600);function i(e){e.register(r),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}e.exports=i,i.displayName="sparql",i.aliases=["rq"]},55605:function(e){"use strict";function t(e){e.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:/[()[\],]/}}e.exports=t,t.displayName="splunkSpl",t.aliases=[]},31554:function(e){"use strict";function t(e){
vendor: 15,419 bytes, line 75
75e.languages.sqf=e.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|
vendor: 17,670 bytes, line 75
75isOnRoad|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}),
75e.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:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}e.exports=t,t.displayName="sqf",t.aliases=[]},43024:function(e){"use strict";function t(e){e.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:/[;[\]()`,.]/}}e.exports=t,t.displayName="sql",t.aliases=[]},38909:function(e){"use strict";function t(e){e.languages.squirrel=e.languages.extend("clike",{comment:[e.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:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'
vendor: 41,144 bytes, line 75
75(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}e.exports=t,t.displayName="squirrel",t.aliases=[]},59610:function(e){"use strict";function t(e){!function(e){var t=/\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("("+t.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/,t],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}(e)}e.exports=t,t.displayName="stan",t.aliases=[]},95968:function(e){"use strict";function t(e){!function(e){var t={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},r={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:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:n,punctuation:/[{}()\[\];:,]/};r.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:r}},r.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:r}},e.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:r}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:r}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:r}},"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:r.interpolation}},rest:r}},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:r.interpolation,comment:r.comment,punctuation:/[{},]/}},func:r.func,string:r.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:r.interpolation,punctuation:/[{}()\[\];:.]/}}(e)}e.exports=t,t.displayName="stylus",t.aliases=[]},64763:function(e){"use strict";function t(e){e.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]*"+/(?:![ \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:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach((function(t){t.inside.interpolation.inside=e.languages.swift}))}e.exports=t,t.displayName="swift",t.aliases=[]},65179:function(e){"use strict";function t(e){!function(e){var t={pattern:/^[;#].*/m,greedy:!0},n=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;e.languages.systemd={comment:t,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+"(?:"+n+'|(?=[^"\r\n]))(?:'+/[^\s\\]/.source+'|[ \t]+(?:(?![ \t"])|'+n+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:t,quoted:{pattern:RegExp(/(^|\s)/.source+n),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}}(e)}e.exports=t,t.displayName="systemd",t.aliases=[]},14469:function(e,t,n){"use strict";var r=n(17386),i=n(85785);function o(e){e.register(r),e.register(i),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}e.exports=o,o.displayName="t4Cs",o.aliases=[]},17386:function(e){"use strict";function t(e){!function(e){function t(e,t,n){return{pattern:RegExp("<#"+e+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+e+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:t,alias:n}}}}e.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:function(n){var r=e.languages[n],i="language-"+n;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:t("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:t("=",r,i),"class-feature":t("\\+",r,i),standard:t("",r,i)}}}}})}(e)}e.exports=t,t.displayName="t4Templating",t.aliases=[]},67371:function(e,t,n){"use strict";var r=n(17386),i=n(97759);function o(e){e.register(r),e.register(i),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}e.exports=o,o.displayName="t4Vb",o.aliases=[]},68649:function(e,t,n){"use strict";var r=n(50893);function i(e){e.register(r),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"}}}e.exports=i,i.displayName="tap",i.aliases=[]},40063:function(e){"use strict";function t(e){e.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:/[{}()\[\]]/}}e.exports=t,t.displayName="tcl",t.aliases=[]},86865:function(e){"use strict";function t(e){!function(e){var t=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,n=/\)|\((?![^|()\n]+\))/.source;function r(e,r){return RegExp(e.replace(/<MOD>/g,(function(){return"(?:"+t+")"})).replace(/<PAR>/g,(function(){return"(?:"+n+")"})),r||"")}var i={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/},o=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:r(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:r(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:i},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:r(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:r(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:i},punctuation:/^[*#]+/}},table:{pattern:r(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:r(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:i},punctuation:/\||^\./}},inline:{pattern:r(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:r(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:r(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:r(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:r(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:r(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:r(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:r(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:r(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:i},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:r(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:r(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:r(/(^")<MOD>+/.source),lookbehind:!0,inside:i},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:r(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:r(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:r(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:i},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:/[()]/}}}}}),a=o.phrase.inside,s={inline:a.inline,link:a.link,image:a.image,footnote:a.footnote,acronym:a.acronym,mark:a.mark};o.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var l=a.inline.inside;l.bold.inside=s,l.italic.inside=s,l.inserted.inside=s,l.deleted.inside=s,l.span.inside=s;var c=a.table.inside;c.inline=s.inline,c.link=s.link,c.image=s.image,c.footnote=s.footnote,c.acronym=s.acronym,c.mark=s.mark}(e)}e.exports=t,t.displayName="textile",t.aliases=[]},91562:function(e){"use strict";function t(e){!function(e){var t=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function n(e){return e.replace(/__/g,(function(){return t}))}e.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(n(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(n(/(^[\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:/[.,=[\]{}]/}}(e)}e.exports=t,t.displayName="toml",t.aliases=[]},81175:function(e){"use strict";function t(e){!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 t=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;e.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+t+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+t+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(t),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}(e)}e.exports=t,t.displayName="tremor",t.aliases=[]},47835:function(e,t,n){"use strict";var r=n(64997),i=n(57657);function o(e){e.register(r),e.register(i),function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(e)}e.exports=o,o.displayName="tsx",o.aliases=[]},39082:function(e,t,n){"use strict";var r=n(29858);function i(e){e.register(r),function(e){e.languages.tt2=e.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:/[[\]{},()]/}),e.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),e.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),e.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 e.languages.tt2.string,e.hooks.add("before-tokenize",(function(t){e.languages["markup-templating"].buildPlaceholders(t,"tt2",/\[%[\s\S]+?%\]/g)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"tt2")}))}(e)}e.exports=i,i.displayName="tt2",i.aliases=[]},85600:function(e){"use strict";function t(e){e.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:/@/}}},e.languages.trig=e.languages.turtle}e.exports=t,t.displayName="turtle",t.aliases=[]},31339:function(e,t,n){"use strict";var r=n(29858);function i(e){e.register(r),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(t){if("twig"===t.language){e.languages["markup-templating"].buildPlaceholders(t,"twig",/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g)}})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"twig")}))}e.exports=i,i.displayName="twig",i.aliases=[]},57657:function(e){"use strict";function t(e){!function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,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 t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,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:t}}}}),e.languages.ts=e.languages.typescript}(e)}e.exports=t,t.displayName="typescript",t.aliases=["ts"]},42955:function(e){"use strict";function t(e){!function(e){var t=/\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:/<INCLUDE_TYPOSCRIPT:\s*source\s*=\s*(?:"[^"\r\n]*"|'[^'\r\n]*')\s*>/,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:t}},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:t,number:/^\d+$/,punctuation:/[,|:]/}},keyword:t,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},e.languages.tsconfig=e.languages.typoscript}(e)}e.exports=t,t.displayName="typoscript",t.aliases=["tsconfig"]},57230:function(e){"use strict";function t(e){e.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:/[()[\]{};,.]/},e.languages.uc=e.languages.uscript=e.languages.unrealscript}e.exports=t,t.displayName="unrealscript",t.aliases=["uc","uscript"]},54008:function(e){"use strict";function t(e){e.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:/[()\[\]{}:.,]/}}e.exports=t,t.displayName="uorazor",t.aliases=[]},64242:function(e){"use strict";function t(e){e.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":/\//}}},e.languages.url=e.languages.uri}e.exports=t,t.displayName="uri",t.aliases=["url"]},23206:function(e){"use strict";function t(e){!function(e){var t={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":t}}}},"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/}),t.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}}}})}(e)}e.exports=t,t.displayName="v",t.aliases=[]},59784:function(e){"use strict";function t(e){e.languages.vala=e.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/}),e.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:e.languages.vala}},string:/[\s\S]+/}}}),e.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:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}e.exports=t,t.displayName="vala",t.aliases=[]},97759:function(e,t,n){"use strict";var r=n(97042);function i(e){e.register(r),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:/[,;:(){}]/})}e.exports=i,i.displayName="vbnet",i.aliases=[]},53001:function(e){"use strict";function t(e){!function(e){e.languages.velocity=e.languages.extend("markup",{});var t={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:/[(){}[\]:,.]/};t.variable.inside={string:t.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:t.number,boolean:t.boolean,punctuation:t.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:t}},variable:t.variable}),e.languages.velocity.tag.inside["attr-value"].inside.rest=e.languages.velocity}(e)}e.exports=t,t.displayName="velocity",t.aliases=[]},48130:function(e){"use strict";function t(e){e.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:/[[\];(),.:]/}}e.exports=t,t.displayName="verilog",t.aliases=[]},44196:function(e){"use strict";function t(e){e.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"}
75,"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:/[{}[\];(),.:]/}}e.exports=t,t.displayName="vhdl",t.aliases=[]},18296:function(e){"use strict";function t
vendor: 9,044 bytes, line 75
75(e){e.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|inv
vendor: 5,164 bytes, line 75
75writeany|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:/[{}[\](),;:]/}}
75e.exports=t,t.displayName="vim",t.aliases=[]},7201:function(e){"use strict";function t(e){e.languages["visual-basic"]={comment:{pattern:/(?:['\u2018\u2019]|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:/\$?["\u201c\u201d](?:["\u201c\u201d]{2}|[^"\u201c\u201d])*["\u201c\u201d]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:/[{}().,:?]/},e.languages.vb=e.languages["visual-basic"],e.languages.vba=e.languages["visual-basic"]}e.exports=t,t.displayName="visualBasic",t.aliases=[]},36107:function(e){"use strict";function t(e){e.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/}}e.exports=t,t.displayName="warpscript",t.aliases=[]},90130:function(e){"use strict";function t(e){e.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:/[()]/}}e.exports=t,t.displayName="wasm",t.aliases=[]},99936:function(e){"use strict";function t(e){!function(e){var t=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])
vendor: 5,561 bytes, line 75
75/.source,n="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+t+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,r={};for(var i in e.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+t),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:r},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+n),lookbehind:!0,inside:r},{pattern:RegExp("("+/\bcallback\s+/.source+t+/\s*=\s*/.source+")"+n),lookbehind:!0,inside:r},{pattern:RegExp(/(\btypedef\b\s*)/.source+n),lookbehind:!0,inside:r},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+t),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+t),lookbehind:!0},RegExp(t+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+t),lookbehind:!0},{pattern:RegExp(n+"(?="+/\s*(?:\.{3}\s*)?/.source+t+/\s*[(),;=]/.source+")"),inside:r}],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:/[(){}[\].,;]/},e.languages["web-idl"])"class-name"!==i&&(r[i]=e.languages["web-idl"][i]);e.languages.webidl=e.languages["web-idl"]}(e)}e.exports=t,t.displayName="webIdl",t.aliases=[]},22974:function(e){"use strict";function t(e){e.languages.wiki=e.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:e.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),e.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:e.languages.markup.tag.inside}}}})}e.exports=t,t.displayName="wiki",t.aliases=[]},22152:function(e){"use strict";function t(e){e.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:/[{}[\];(),.:]/},e.languages.mathematica=e.languages.wolfram,e.languages.wl=e.languages.wolfram,e.languages.nb=e.languages.wolfram}e.exports=t,t.displayName="wolfram",t.aliases=["mathematica","wl","nb"]},91840:function(e){"use strict";function t(e){e.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:/[\[\](){}.,;]/},e.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2}
75)*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:e.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}e.exports=t,t.displayName="wren",t.aliases=[]},39485:function(e){"use strict";function t(e){!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}(e)}e.exports=t,t.displayName="xeora",t.aliases=["xeoracube"]},97686:function(e){"use strict";function t(e){!function(e){function t(t,n){e.languages[t]&&e.languages.insertBefore(t,"comment",{"doc-comment":n})}var n=e.languages.markup.tag,r={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:n}},i={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:n}};t("csharp",r),t("fsharp",r),t("vbnet",i)}(e)}e.exports=t,t.displayName="xmlDoc",t.aliases=[]},50820:function(e){"use strict";function t(e){e.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:/[.,;:()]/}}e.exports=t,t.displayName="xojo",t.aliases=[]},4642:function(e){"use strict";function t(e){!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}
vendor: 4,456 bytes, line 75
75,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 t=function(e){return"string"===typeof e?e:"string"===typeof e.content?e.content:e.content.map(t).join("")},n=function(r){for(var i=[],o=0;o<r.length;o++){var a=r[o],s=!1;if("string"!==typeof a&&("tag"===a.type&&a.content[0]&&"tag"===a.content[0].type?"</"===a.content[0].content[0].content?i.length>0&&i[i.length-1].tagName===t(a.content[0].content[1])&&i.pop():"/>"===a.content[a.content.length-1].content||i.push({tagName:t(a.content[0].content[1]),openedBraces:0}):!(i.length>0&&"punctuation"===a.type&&"{"===a.content)||r[o+1]&&"punctuation"===r[o+1].type&&"{"===r[o+1].content||r[o-1]&&"plain-text"===r[o-1].type&&"{"===r[o-1].content?i.length>0&&i[i.length-1].openedBraces>0&&"punctuation"===a.type&&"}"===a.content?i[i.length-1].openedBraces--:"comment"!==a.type&&(s=!0):i[i.length-1].openedBraces++),(s||"string"===typeof a)&&i.length>0&&0===i[i.length-1].openedBraces){var l=t(a);o<r.length-1&&("string"===typeof r[o+1]||"plain-text"===r[o+1].type)&&(l+=t(r[o+1]),r.splice(o+1,1)),o>0&&("string"===typeof r[o-1]||"plain-text"===r[o-1].type)&&(l=t(r[o-1])+l,r.splice(o-1,1),o--),/^\s+$/.test(l)?r[o]=l:r[o]=new e.Token("plain-text",l,null,l)}a.content&&"string"!==typeof a.content&&n(a.content)}};e.hooks.add("after-tokenize",(function(e){"xquery"===e.language&&n(e.tokens)}))}(e)}e.exports=t,t.displayName="xquery",t.aliases=[]},50893:function(e){"use strict";function t(e){!function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function a(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>
75)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+i+"|"+o+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:a(/\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:a(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:a(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:a(o),lookbehind:!0,greedy:!0},number:{pattern:a(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(e)}e.exports=t,t.displayName="yaml",t.aliases=["yml"]},91767:function(e){"use strict";function t(e){e.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:/[{};:]/}}e.exports=t,t.displayName="yang",t.aliases=[]},99726:function(e){"use strict";function t(e){!function(e){function t(e){return function(){return e}}var n=/\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/,r="\\b(?!"+n.source+")(?!\\d)\\w+\\b",i=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,o="(?!\\s)(?:!?\\s*(?:"+/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,t(i))+"\\s*)*"+/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,t(r))+")+";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*)<TYPE>(?=\s*(?:<ALIGN>\s*)?[=;,)])|<TYPE>(?=\s*(?:<ALIGN>\s*)?\{)/.source.replace(/<TYPE>/g,t(o)).replace(/<ALIGN>/g,t(i))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,t(o)).replace(/<ALIGN>/g,t(i))),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:n,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(t){null===t.inside&&(t.inside=e.languages.zig)}))}(e)}e.exports=t,t.displayName="zig",t.aliases=[]},25904:function(e){"use strict";e.exports=function(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}},11724:function(e,t,n){"use strict";var r=n(25904),i=n(3413);e.exports=function(e){return r(e)||i(e)}},3413:function(e){"use strict";e.exports=function(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}},31729:function(e){"use strict";e.exports=function(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}},4782:function(e){"use strict";var t;e.exports=function(e){var n,r="&"+e+";";if((t=t||document.createElement("i")).innerHTML=r,59===(n=t.textContent).charCodeAt(n.length-1)&&"semi"!==e)return!1;return n!==r&&n}},76538:function(e,t,n){"use strict";var r=n(3555),i=n(25805),o=n(3413),a=n(31729),s=n(11724),l=n(4782);e.exports=function(e,t){var n,o,a={};t||(t={});for(o in p)n=t[o],a[o]=null===n||void 0===n?p[o]:n;(a.position.indent||a.position.start)&&(a.indent=a.position.indent||[],a.position=a.position.start);return function(e,t){var n,o,a,p,U,z,H,$,V,G,W,q,Y,K,X,Z,Q,J,ee,te=t.additional,ne=t.nonTerminated,re=t.text,ie=t.reference,oe=t.warning,ae=t.textContext,se=t.referenceContext,le=t.warningContext,ce=t.position,ue=t.indent||[],de=e.length,pe=0,he=-1,fe=ce.column||1,me=ce.line||1,ge="",be=[];"string"===typeof te&&(te=te.charCodeAt(0));Z=ve(),$=oe?ye:d,pe--,de++;for(;++pe<de;)if(U===f&&(fe=ue[he]||1),(U=e.charCodeAt(pe))===b){if((H=e.charCodeAt(pe+1))===h||H===f||H===m||H===g||H===b||H===y||H!==H||te&&H===te){ge+=u(U),fe++;continue}for(q=Y=pe+1,ee=Y,H===w?(ee=++q,(H=e.charCodeAt(ee))===A||H===E?(K=k,ee=++q):K=T):K=_,n="",W="",p="",X=O[K],ee--;++ee<de&&X(H=e.charCodeAt(ee));)p+=u(H),K===_&&c.call(r,p)&&(n=p,W=r[p]);(a=e.charCodeAt(ee)===v)&&(ee++,(o=K===_&&l(p))&&(n=p,W=o)),J=1+ee-Y,(a||ne)&&(p?K===_?(a&&!W?$(j,1):(n!==p&&(J=1+(ee=q+n.length)-q,a=!1),a||(V=n?N:R,t.attribute?(H=e.charCodeAt(ee))===x?($(V,J),W=null):s(H
vendor: 7,537 bytes, line 75
75)?W=null:$(V,J):$(V,J))),z=W):(a||$(I,J),F(z=parseInt(p,C[K]))?($(D,J),z=u(S)):z in i?($(M,J),z=i[z]):(G="",B(z)&&$(M,J),z>65535&&(G+=u((z-=65536)>>>10|55296),z=56320|1023&z),z=G+u(z))):K!==_&&$(P,J)),z?(xe(),Z=ve(),pe=ee-1,fe+=ee-Y+1,be.push(z),(Q=ve()).offset++,ie&&ie.call(se,z,{start:Z,end:Q},e.slice(Y-1,ee)),Z=Q):(p=e.slice(Y-1,ee),ge+=p,fe+=p.length,pe=ee-1)}else 10===U&&(me++,he++,fe=0),U===U?(ge+=u(U),fe++):xe();return be.join("");function ve(){return{line:me,column:fe,offset:pe+(ce.offset||0)}}function ye(e,t){var n=ve();n.column+=t,n.offset+=t,oe.call(le,L[e],n,e)}function xe(){ge&&(be.push(ge),re&&re.call(ae,ge,{start:Z,end:ve()}),ge="")}}(e,a)};var c={}.hasOwnProperty,u=String.fromCharCode,d=Function.prototype,p={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},h=9,f=10,m=12,g=32,b=38,v=59,y=60,x=61,w=35,A=88,E=120,S=65533,_="named",k="hexadecimal",T="decimal",C={};C[k]=16,C[T]=10;var O={};O[_]=s,O[T]=o,O[k]=a;var N=1,I=2,R=3,P=4,j=5,M=6,D=7,L={};function F(e){return e>=55296&&e<=57343||e>1114111}function B(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535===(65535&e)||65534===(65535&e)}L[N]="Named character references must be terminated by a semicolon",L[I]="Numeric character references must be terminated by a semicolon",L[R]="Named character references cannot be empty",L[P]="Numeric character references cannot be empty",L[j]="Named character references must be known",L[M]="Numeric character references cannot be disallowed",L[D]="Numeric character references cannot be outside the permissible Unicode range"},50073:function(e,t,n){var r=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,o;switch(n=n||{},i.util.type(t)){case"Object":if(o=i.util.objId(t),n[o])return n[o];for(var a in r={},n[o]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return o=i.util.objId(t),n[o]?n[o]:(r=[],n[o]=r,t.forEach((function(t,i){r[i]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"===typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var o=(r=r||i.languages)[e],a={};for(var s in o)if(o.hasOwnProperty(s)){if(s==t)for(var l in n)n.hasOwnProperty(l)&&(a[l]=n[l]);n.hasOwnProperty(s)||(a[s]=o[s])}var c=r[e];return r[e]=a,i.languages.DFS(i.languages,(function(t,n){n===c&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,o){o=o||{};var a=i.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var l=t[s],c=i.util.type(l);"Object"!==c||o[a(l)]?"Array"!==c||o[a(l)]||(o[a(l)]=!0,e(l,n,s,o)):(o[a(l)]=!0,e(l,n,null,o))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run("before-all-elements-highlight",r);for(var o,a=0;o=r.elements[a++];)i.highlightElement(o,!0===t,r.callback)},highlightElement:function(t,n,r){var o=i.util.getLanguage(t),a=i.languages[o];i.util.setLanguage(t,o);var s=t.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&i.util.setLanguage(s,o);var l={element:t,language:o,grammar:a,code:t.textContent};function c(e){l.highlightedCode=e,i.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,i.hooks.run("after-highlight",l),i.hooks.run("complete",l),r&&r.call(l.element)}if(i.hooks.run("before-sanity-check",l),(s=l.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!l.code)return i.hooks.run("complete",l),void(r&&r.call(l.element));if(i.hooks.run("before-highlight",l),l.grammar)if(n&&e.Worker){var u=new Worker(i.filename);u.onmessage=function(e){c(e.data)},u.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(i.highlight(l.code,l.grammar,l.language));else c(i.util.encode(l.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(i.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run("after-tokenize",r),o.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new l;return c(i,i.head,e),s(e,i,t,i.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(i)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(n&&n.length)for(var r,o=0;r=n[o++];)r(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var o=i[1].length;i.index+=o,i[0]=i[0].slice(o)}return i}function s(e,t,n,r,l,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var h=n[p];h=Array.isArray(h)?h:[h];for(var f=0;f<h.length;++f){if(d&&d.cause==p+","+f)return;var m=h[f],g=m.inside,b=!!m.lookbehind,v=!!m.greedy,y=m.alias;if(v&&!m.pattern.global){var x=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,x+"g")}for(var w=m.pattern||m,A=r.next,E=l;A!==t.tail&&!(d&&E>=d.reach);E+=A.value.length,A=A.next){var S=A.value;if(t.length>e.length)return;if(!(S instanceof o)){var _,k=1;if(v){if(!(_=a(w,E,e,b))||_.index>=e.length)break;var T=_.index,C=_.index+_[0].length,O=E;for(O+=A.value.length;T>=O;)O+=(A=A.next).value.length;if(E=O-=A.value.length,A.value instanceof o)continue;for(var N=A;N!==t.tail&&(O<C||"string"===typeof N.value);N=N.next)k++,O+=N.value.length;k--,S=e.slice(E,O),_.index-=E}else if(!(_=a(w,0,S,b)))continue;T=_.index;var I=_[0],R=S.slice(0,T),P=S.slice(T+I.length),j=E+S.length;d&&j>d.reach&&(d.reach=j);var M=A.prev;if(R&&(M=c(t,M,R),E+=R.length),u(t,M,k),A=c(t,M,new o(p,g?i.tokenize(I,g):I,y,I)),P&&c(t,A,P),k>1){var D={cause:p+","+f,reach:j};s(e,t,n,A.prev,E,D),d&&D.reach>d.reach&&(d.reach=D.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}
75function c(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function u(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}if(e.Prism=i,o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(o.classes,a):o.classes.push(a)),i.hooks.run("wrap",o);var s="";for(var l in o.attributes)s+=" "+l+'="'+(o.attributes[l]||"").replace(/"/g,"&quot;")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+s+">"+o.content+"</"+o.tag+">"},!e.document)return e.addEventListener?(i.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,o=n.code,a=n.immediateClose;e.postMessage(i.highlight(o,i.languages[r],r)),a&&e.close()}),!1),i):i;var d=i.util.currentScript();function p(){i.manual||i.highlightAll()}if(d&&(i.filename=d.src,d.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var h=document.readyState;"loading"===h||"interactive"===h&&d&&d.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return i}("undefined"!==typeof window?window:"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=r),"undefined"!==typeof n.g&&(n.g.Prism=r)},31761:function(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,n))c<i&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<i&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,p=null,h=3,f=!1,m=!1,g=!1,b="function"===typeof setTimeout?setTimeout:null,v="function"===typeof clearTimeout?clearTimeout:null,y="undefined"!==typeof setImmediate?setImmediate:null;function x(e){for(var t=r(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function w(e){if(g=!1,x(e),!m)if(null!==r(c))m=!0,P(A);else{var t=r(u);null!==t&&j(w,t.startTime-e)}}function A(e,n){m=!1,g&&(g=!1,v(k),k=-1),f=!0;var o=h;try{for(x(n),p=r(c);null!==p&&(!(p.expirationTime>n)||e&&!O());){var a=p.callback;if("function"===typeof a){p.callback=null,h=p.priorityLevel;var s=a(p.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?p.callback=s:p===r(c)&&i(c),x(n)}else i(c);p=r(c)}if(null!==p)var l=!0;else{var d=r(u);null!==d&&j(w,d.startTime-n),l=!1}return l}finally{p=null,h=o,f=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,S=!1,_=null,k=-1,T=5,C=-1;function O(){return!(t.unstable_now()-C<T)}function N(){if(null!==_){var e=t.unstable_now();C=e;var n=!0;try{n=_(!0,e)}finally{n?E():(S=!1,_=null)}}else S=!1}if("function"===typeof y)E=function(){y(N)};else if("undefined"!==typeof MessageChannel){var I=new MessageChannel,R=I.port2;I.port1.onmessage=N,E=function(){R.postMessage(null)}}else E=function(){b(N,0)};function P(e){_=e,S||(S=!0,E())}function j(e,n){k=b((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||f||(m=!0,P(A))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?a+o:a:o=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(u,e),null===r(c)&&e===r(u)&&(g?(v(k),k=-1):g=!0,j(w,o-a))):(e.sortIndex=s,n(c,e),m||f||(m=!0,P(A))),e},t.unstable_shouldYield=O,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},75340:function(e,t,n){"use strict";e.exports=n(31761)},86999:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esMo
75dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;if(!e||"string"!==typeof e)return n;var r=(0,i.default)(e),o="function"===typeof t;return r.forEach((function(e){if("declaration"===e.type){var r=e.property,i=e.value;o?t(r,i,e):i&&((n=n||{})[r]=i)}})),n};var i=r(n(24814))},59660:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},52551:function(e){function t(e,t){var n=e.length,r=new Array(n),i={},o=n,a=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var i=e[n];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}(t),s=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}(e);for(t.forEach((function(e){if(!s.has(e[0])||!s.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")}));o--;)i[o]||l(e[o],o,new Set);return r;function l(e,t,o){if(o.has(e)){var c;try{c=", node was:"+JSON.stringify(e)}catch(p){c=""}throw new Error("Cyclic dependency"+c)}if(!s.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!i[t]){i[t]=!0;var u=a.get(e)||new Set;if(t=(u=Array.from(u)).length){o.add(e);do{var d=u[--t];l(d,s.get(d),o)}while(t);o.delete(e)}r[--n]=e}}}e.exports=function(e){return t(function(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var i=e[n];t.add(i[0]),t.add(i[1])}return Array.from(t)}(e),e)},e.exports.array=t},62366:function(e,t,n){var r;!function(i,o){"use strict";var a="function",s="undefined",l="object",c="string",u="major",d="model",p="name",h="type",f="vendor",m="version",g="architecture",b="console",v="mobile",y="tablet",x="smarttv",w="wearable",A="embedded",E="Amazon",S="Apple",_="ASUS",k="BlackBerry",T="Browser",C="Chrome",O="Firefox",N="Google",I="Huawei",R="LG",P="Microsoft",j="Motorola",M="Opera",D="Samsung",L="Sharp",F="Sony",B="Xiaomi",U="Zebra",z="Facebook",H="Chromium OS",$="Mac OS",V=" Browser",G=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},W=function(e,t){return typeof e===c&&-1!==q(t).indexOf(q(e))},q=function(e){return e.toLowerCase()},Y=function(e,t){if(typeof e===c)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,500)},K=function(e,t){for(var n,r,i,s,c,u,d=0;d<t.length&&!c;){var p=t[d],h=t[d+1];for(n=r=0;n<p.length&&!c&&p[n];)if(c=p[n++].exec(e))for(i=0;i<h.length;i++)u=c[++r],typeof(s=h[i])===l&&s.length>0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,u):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=u?u.replace(s[1],s[2]):o:this[s[0]]=u?s[1].call(this,u,s[2]):o:4===s.length&&(this[s[0]]=u?s[3].call(this,u.replace(s[1],s[2])):o):this[s]=u||o;d+=2}},X=function(e,t){for(var n in t)if(typeof t[n]===l&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(W(t[n][r],e))return"?"===n?o:n}else if(W(t[n],e))return"?"===n?o:n;return t.hasOwnProperty("*")?t["*"]:e},Z={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Q={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[p,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[p,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[p,m],[/opios[\/ ]+([\w\.]+)/i],[m,[p,M+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[m,[p,M+" GX"]],[/\bopr\/([\w\.]+)/i],[m,[p,M]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[m,[p,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[m,[p,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[p,m],[/quark(?:pc)?\/([-\w\.]+)/i],[m,[p,"Quark"]],[/\bddg\/([\w\.]+)/i],[m,[p,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[p,"UC"+T]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[m,[p,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[p,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[p,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[m,[p,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[m,[p,"Smart Lenovo "+T]],[/(avast|avg)\/([\w\.]+)/i],[[p,/(.+)/,"$1 Secure "+T],m],[/\bfocus\/([\w\.]+)/i],[m,[p,O+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[p,M+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[p,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[p,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[p,M+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[p,"MIUI"+V]],[/fxios\/([\w\.-]+)/i],[m,[p,O]],[/\bqihoobrowser\/?([\w\.]*)/i],[m,[p,"360"]],[/\b(qq)\/([\w\.]+)/i],[[p,/(.+)/,"$1Browser"],m],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[p,/(.+)/,"$1"+V],m],[/samsungbrowser\/([\w\.]+)/i],[m,[p,D+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[m,[p,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[p,"Sogou Mobile"],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[p,m],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[p],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[m,p],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[p,z],m],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[p,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[p,"GSA"]],[/musical_ly(?:.
vendor: 5,971 bytes, line 75
75+app_?version\/|_)([\w\.]+)/i],[m,[p,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[p,C+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[p,C+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[p,"Android "+T]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[p,m],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[m,[p,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[m,p],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[p,[m,X,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[p,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[p,"Netscape"],m],[/(wolvic|librewolf)\/([\w\.]+)/i],[p,m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[p,O+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[p,[m,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[p,[m,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[g,"amd64"]],[/(ia32(?=;))/i],[[g,q]],[/((?:i[346]|x)86)[;\)]/i],[[g,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/windows (ce|mobile); ppc;/i],[[g,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[g,/ower/,"",q]],[/(sun4\w)[;\)]/i],[[g,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[g,q]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[f,D],[h,y]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[d,[f,D],[h,v]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[f,S],[h,v]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[f,S],[h,y]],[/(macintosh);/i],[d,[f,S]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[f,L],[h,v]],[/(?:honor)([-\w ]+)[;\)]/i],[d,[f,"Honor"],[h,v]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[f,I],[h,y]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[f,I],[h,v]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[d,/_/g," "],[f,B],[h,v]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g," "],[f,B],[h,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[f,"OPPO"],[h,v]],[/\b(opd2\d{3}a?) bui/i],[d,[f,"OPPO"],[h,y]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[f,"Vivo"],[h,v]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[d,[f,"Realme"],[h,v]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[f,j],[h,v]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[f,j],[h,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[f,R],[h,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[f,R],[h,v]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[f,"Lenovo"],[h,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g," "],[f,"Nokia"],[h,v]],[/(pixel c)\b/i],[d,[f,N],[h,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[f,N],[h,v]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[f,F],[h,v]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[f,F],[h,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[f,"OnePlus"],[h,v]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[f,E],[h,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[f,E],[h,v]],[/(playbook);[-\w\),; ]+(rim)/i],[d,f,[h,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[f,k],[h,v]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[f,_],[h,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[f,_],[h,v]],[/(nexus 9)/i],[d,[f,"HTC"],[h,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[d,/_/g," "],[h,v]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[d,[f,"TCL"],[h,y]],[/(itel) ((\w+))/i],[[f,q],d,[h,X,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[f,"Acer"],[h,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[f,"Meizu"],[h,v]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[d,[f,"Ulefone"],[h,v]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[d,[f,"Energizer"],[h,v]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[d,[f,"Cat"],[h,v]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[d,[f,"Smartfren"],[h,v]],[/droid.+; (a(?:015|06[35]|142p?))/i],[d,[f,"Nothing"],[h,v]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/;
vendor: 6,115 bytes, line 75
75 (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[f,d,[h,v]],[/(imo) (tab \w+)/i,/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[f,d,[h,y]],[/(surface duo)/i],[d,[f,P],[h,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[f,"Fairphone"],[h,v]],[/(u304aa)/i],[d,[f,"AT&T"],[h,v]],[/\bsie-(\w*)/i],[d,[f,"Siemens"],[h,v]],[/\b(rct\w+) b/i],[d,[f,"RCA"],[h,y]],[/\b(venue[\d ]{2,7}) b/i],[d,[f,"Dell"],[h,y]],[/\b(q(?:mv|ta)\w+) b/i],[d,[f,"Verizon"],[h,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[f,"Barnes & Noble"],[h,y]],[/\b(tm\d{3}\w+) b/i],[d,[f,"NuVision"],[h,y]],[/\b(k88) b/i],[d,[f,"ZTE"],[h,y]],[/\b(nx\d{3}j) b/i],[d,[f,"ZTE"],[h,v]],[/\b(gen\d{3}) b.+49h/i],[d,[f,"Swiss"],[h,v]],[/\b(zur\d{3}) b/i],[d,[f,"Swiss"],[h,y]],[/\b((zeki)?tb.*\b) b/i],[d,[f,"Zeki"],[h,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],d,[h,y]],[/\b(ns-?\w{0,9}) b/i],[d,[f,"Insignia"],[h,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[f,"NextBook"],[h,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],d,[h,v]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],d,[h,v]],[/\b(ph-1) /i],[d,[f,"Essential"],[h,v]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[f,"Envizen"],[h,y]],[/\b(trio[-\w\. ]+) b/i],[d,[f,"MachSpeed"],[h,y]],[/\btu_(1491) b/i],[d,[f,"Rotor"],[h,y]],[/(shield[\w ]+) b/i],[d,[f,"Nvidia"],[h,y]],[/(sprint) (\w+)/i],[f,d,[h,v]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[f,P],[h,v]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[f,U],[h,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[f,U],[h,v]],[/smart-tv.+(samsung)/i],[f,[h,x]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[f,D],[h,x]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,R],[h,x]],[/(apple) ?tv/i],[f,[d,S+" TV"],[h,x]],[/crkey/i],[[d,C+"cast"],[f,N],[h,x]],[/droid.+aft(\w+)( bui|\))/i],[d,[f,E],[h,x]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[f,L],[h,x]],[/(bravia[\w ]+)( bui|\))/i],[d,[f,F],[h,x]],[/(mitv-\w{5}) bui/i],[d,[f,B],[h,x]],[/Hbbtv.*(technisat) (.*);/i],[f,d,[h,x]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[f,Y],[d,Y],[h,x]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,x]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,d,[h,b]],[/droid.+; (shield) bui/i],[d,[f,"Nvidia"],[h,b]],[/(playstation [345portablevi]+)/i],[d,[f,F],[h,b]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[f,P],[h,b]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[d,[f,D],[h,w]],[/((pebble))app/i],[f,d,[h,w]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[f,S],[h,w]],[/droid.+; (glass) \d/i],[d,[f,N],[h,w]],[/droid.+; (wt63?0{2,3})\)/i],[d,[f,U],[h,w]],[/droid.+; (glass) \d/i],[d,[f,N],[h,w]],[/(pico) (4|neo3(?: link|pro)?)/i],[f,d,[h,w]],[/; (quest( \d| pro)?)/i],[d,[f,z],[h,w]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[h,A]],[/(aeobc)\b/i],[d,[f,E],[h,A]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[d,[h,v]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[h,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,y]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[h,v]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[p,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[p,m],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[p,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[p,m],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,m],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[p,[m,X,Z]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[m,X,Z],[p,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[p,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[p,$],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[m,p],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[p,m],[/\(bb(10);/i],[m,[p,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[m,[p,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[p,O+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[p,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[m,[p,"watchOS"]],[/crkey\/([\d\.]+)/i],[m,[p,C+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[p,H],m],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[p,m],[/(sunos) ?([\w\.\d]*)/i],[[p,"Solaris"],m],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[p,m]]},J=function(e,t){if(typeof e===l&&(t=e,e=o),!(this instanceof J))return new J
75(e,t).getResult();var n=typeof i!==s&&i.navigator?i.navigator:o,r=e||(n&&n.userAgent?n.userAgent:""),b=n&&n.userAgentData?n.userAgentData:o,x=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2===0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(Q,t):Q,w=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[p]=o,t[m]=o,K.call(t,r,x.browser),t[u]=typeof(e=t[m])===c?e.replace(/[^\d\.]/g,"").split(".")[0]:o,w&&n&&n.brave&&typeof n.brave.isBrave==a&&(t[p]="Brave"),t},this.getCPU=function(){var e={};return e[g]=o,K.call(e,r,x.cpu),e},this.getDevice=function(){var e={};return e[f]=o,e[d]=o,e[h]=o,K.call(e,r,x.device),w&&!e[h]&&b&&b.mobile&&(e[h]=v),w&&"Macintosh"==e[d]&&n&&typeof n.standalone!==s&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[d]="iPad",e[h]=y),e},this.getEngine=function(){var e={};return e[p]=o,e[m]=o,K.call(e,r,x.engine),e},this.getOS=function(){var e={};return e[p]=o,e[m]=o,K.call(e,r,x.os),w&&!e[p]&&b&&b.platform&&"Unknown"!=b.platform&&(e[p]=b.platform.replace(/chrome os/i,H).replace(/macos/i,$)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===c&&e.length>500?Y(e,500):e,this},this.setUA(r),this};J.VERSION="1.0.40",J.BROWSER=G([p,m,u]),J.CPU=G([g]),J.DEVICE=G([d,f,h,b,v,x,y,w,A]),J.ENGINE=J.OS=G([p,m]),typeof t!==s?(e.exports&&(t=e.exports=J),t.UAParser=J):n.amdO?(r=function(){return J}.call(t,n,t,e))===o||(e.exports=r):typeof i!==s&&(i.UAParser=J);var ee=typeof i!==s&&(i.jQuery||i.Zepto);if(ee&&!ee.ua){var te=new J;ee.ua=te.getResult(),ee.ua.get=function(){return te.getUA()},ee.ua.set=function(e){te.setUA(e);var t=te.getResult();for(var n in t)ee.ua[n]=t[n]}}}("object"===typeof window?window:this)},60759:function(e,t,n){"use strict";var r=n(9950);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(r){return!0}}var u="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,u=r[1];return s((function(){i.value=n,i.getSnapshot=t,c(i)&&u({inst:i})}),[e,n,t]),a((function(){return c(i)&&u({inst:i}),e((function(){c(i)&&u({inst:i})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},39940:function(e,t,n){"use strict";var r=n(9950),i=n(6538);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},a=i.useSyncExternalStore,s=r.useRef,l=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=c((function(){function e(e){if(!l){if(l=!0,a=e,e=r(e),void 0!==i&&p.hasValue){var t=p.value;if(i(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var n=r(e);return void 0!==i&&i(t,n)?(a=e,t):(a=e,s=n)}var a,s,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,i]);var h=a(e,d[0],d[1]);return l((function(){p.hasValue=!0,p.value=h}),[h]),u(h),h}},57254:function(e,t,n){"use strict";var r=n(9950);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},o=r.useSyncExternalStore,a=r.useRef,s=r.useEffect,l=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=a(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=l((function(){function e(e){if(!s){if(s=!0,o=e,e=r(e),void 0!==u&&p.hasValue){var t=p.value;if(u(t,e))return a=t}return a=e}if(t=a,i(o,e))return t;var n=r(e);return void 0!==u&&u(t,n)?(o=e,t):(o=e,a=n)}var o,a,s=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]}),[t,n,r,u]);var h=o(e,d[0],d[1]);return s((function(){p.hasValue=!0,p.value=h}),[h]),c(h),h}},6538:function(e,t,n){"use strict";e.exports=n(60759)},53044:function(e,t,n){"use strict";e.exports=n(39940)},67256:function(e,t,n){"use strict";e.exports=n(57254)},95644:function(e){e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var r=arguments[n];for(var i in r)t.call(r,i)&&(e[i]=r[i])}return e};var t=Object.prototype.hasOwnProperty},71149:function(e,t,n){"use strict";e.exports=n.p+"static/media/pdf.worker.min.380330057e33539ae223.js"},17640:function(){},23237:function(){},97492:function(){},31815:function(){},66671:function(){},5168:function(){},94634:function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}
vendor: 5,079 bytes, line 75
75e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},24994:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},54893:function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports},4633:function(e,t,n){var r=n(73738).default;function i(){"use strict";e.exports=i=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},o=Object.prototype,a=o.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function p(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(t){p=function(e,t,n){return e[t]=n}}function h(e,t,n,r){var i=t&&t.prototype instanceof x?t:x,o=Object.create(i.prototype),a=new P(r||[]);return s(o,"_invoke",{value:O(e,n,a)}),o}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=h;var m="suspendedStart",g="suspendedYield",b="executing",v="completed",y={};function x(){}function w(){}function A(){}var E={};p(E,c,(function(){return this}));var S=Object.getPrototypeOf,_=S&&S(S(j([])));_&&_!==o&&a.call(_,c)&&(E=_);var k=A.prototype=x.prototype=Object.create(E);function T(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(i,o,s,l){var c=f(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==r(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,l)}))}l(c.arg)}var i;s(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}})}function O(e,n,r){var i=m;return function(o,a){if(i===b)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=N(s,r);if(l){if(l===y)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===m)throw i=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=b;var c=f(e,n,r);if("normal"===c.type){if(i=r.done?v:g,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=v,r.method="throw",r.arg=c.arg)}}}function N(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,N(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=f(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function R(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function j(e){if(e||""===e){var n=e[c];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(a.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(r(e)+" is not iterable")}return w.prototype=A,s(k,"constructor",{value:A,configurable:!0}),s(A,"constructor",{value:w,configurable:!0}),w.displayName=p(A,d,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,A):(e.__proto__=A,p(e,d,"GeneratorFunction")),e.prototype=Object.create(k),e},n.awrap=function(e){return{__await:e}},T(C.prototype),p(C.prototype,u,(function(){return this})),n.AsyncIterator=C,n.async=function(e,t,r,i,o){void 0===o&&(o=Promise);var a=new C(h(e,t,r,i),o);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},T(k),p(k,d,"Generator"),p(k,c,(function(){return this})),p(k,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=j,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEac
75h(R),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=a.call(o,"catchLoc"),c=a.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),R(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;R(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:j(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},n}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},73738:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},54756:function(e,t,n){var r=n(4633)();e.exports=r;try{regeneratorRuntime=r}catch(i){"object"===typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},58168:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:function(){return r}})},25540:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{A:function(){return i}})},98587:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}n.d(t,{A:function(){return r}})},29246:function(e,t,n){"use strict";n.d(t,{A:function(){return xt}});var r={};function i(e,t){return function(){return e.apply(t,arguments)}}n.r(r),n.d(r,{hasBrowserEnv:function(){return ce},hasStandardBrowserEnv:function(){return de},hasStandardBrowserWebWorkerEnv:function(){return pe},navigator:function(){return ue},origin:function(){return he}});const{toString:o}=Object.prototype,{getPrototypeOf:a}=Object,s=(l=Object.create(null),e=>{const t=o.call(e);return l[t]||(l[t]=t.slice(8,-1).toLowerCase())});var l;const c=e=>(e=e.toLowerCase(),t=>s(t)===e),u=e=>t=>typeof t===e,{isArray:d}=Array,p=u("undefined");const h=c("ArrayBuffer");const f=u("string"),m=u("function"),g=u("number"),b=e=>null!==e&&"object"===typeof e,v=e=>{if("object"!==s(e))return!1;const t=a(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},y=c("Date"),x=c("File"),w=c("Blob"),A=c("FileList"),E=c("URLSearchParams"),[S,_,k,T]=["ReadableStream","Request","Response","Headers"].map(c);function C(e,t){let n,r,{allOwnKeys:i=!1}
vendor: 4,841 bytes, line 75
75=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),d(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{const r=i?Object.getOwnPropertyNames(e):Object.keys(e),o=r.length;let a;for(n=0;n<o;n++)a=r[n],t.call(null,e[a],a,e)}}function O(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,i=n.length;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const N="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,I=e=>!p(e)&&e!==N;const R=(P="undefined"!==typeof Uint8Array&&a(Uint8Array),e=>P&&e instanceof P);var P;const j=c("HTMLFormElement"),M=(e=>{let{hasOwnProperty:t}=e;return(e,n)=>t.call(e,n)})(Object.prototype),D=c("RegExp"),L=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};C(n,((n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)})),Object.defineProperties(e,r)},F="abcdefghijklmnopqrstuvwxyz",B="0123456789",U={DIGIT:B,ALPHA:F,ALPHA_DIGIT:F+F.toUpperCase()+B};const z=c("AsyncFunction"),H=((e,t)=>{return e?setImmediate:t?(n=`axios@${Math.random()}`,r=[],N.addEventListener("message",(e=>{let{source:t,data:i}=e;t===N&&i===n&&r.length&&r.shift()()}),!1),e=>{r.push(e),N.postMessage(n,"*")}):e=>setTimeout(e);var n,r})("function"===typeof setImmediate,m(N.postMessage)),$="undefined"!==typeof queueMicrotask?queueMicrotask.bind(N):"undefined"!==typeof process&&process.nextTick||H;var V={isArray:d,isArrayBuffer:h,isBuffer:function(e){return null!==e&&!p(e)&&null!==e.constructor&&!p(e.constructor)&&m(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||m(e.append)&&("formdata"===(t=s(e))||"object"===t&&m(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&h(e.buffer),t},isString:f,isNumber:g,isBoolean:e=>!0===e||!1===e,isObject:b,isPlainObject:v,isReadableStream:S,isRequest:_,isResponse:k,isHeaders:T,isUndefined:p,isDate:y,isFile:x,isBlob:w,isRegExp:D,isFunction:m,isStream:e=>b(e)&&m(e.pipe),isURLSearchParams:E,isTypedArray:R,isFileList:A,forEach:C,merge:function e(){const{caseless:t}=I(this)&&this||{},n={},r=(r,i)=>{const o=t&&O(n,i)||i;v(n[o])&&v(r)?n[o]=e(n[o],r):v(r)?n[o]=e({},r):d(r)?n[o]=r.slice():n[o]=r};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&C(arguments[i],r);return n},extend:function(e,t,n){let{allOwnKeys:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return C(t,((t,r)=>{n&&m(t)?e[r]=i(t,n):e[r]=t}),{allOwnKeys:r}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,s;const l={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],r&&!r(s,e,t)||l[s]||(t[s]=e[s],l[s]=!0);e=!1!==n&&a(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:c,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(d(e))return e;let t=e.length;if(!g(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:j,hasOwnProperty:M,hasOwnProp:M,reduceDescriptors:L,freezeMethods:e=>{L(e,((t,n)=>{if(m(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];m(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return d(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:O,global:N,isContextDefined:I,ALPHABET:U,generateString:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U.ALPHA_DIGIT,n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&m(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(b(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const i=d(e)?[]:{};return C(e,((e,t)=>
vendor: 6,675 bytes, line 75
75{const o=n(e,r+1);!p(o)&&(i[t]=o)})),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:z,isThenable:e=>e&&(b(e)||m(e))&&m(e.then)&&m(e.catch),setImmediate:H,asap:$};function G(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}V.inherits(G,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:V.toJSONObject(this.config),code:this.code,status:this.status}}});const W=G.prototype,q={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{q[e]={value:e}})),Object.defineProperties(G,q),Object.defineProperty(W,"isAxiosError",{value:!0}),G.from=(e,t,n,r,i,o)=>{const a=Object.create(W);return V.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),G.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};var Y=G;function K(e){return V.isPlainObject(e)||V.isArray(e)}function X(e){return V.endsWith(e,"[]")?e.slice(0,-2):e}function Z(e,t,n){return e?e.concat(t).map((function(e,t){return e=X(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Q=V.toFlatObject(V,{},null,(function(e){return/^is[A-Z]/.test(e)}));var J=function(e,t,n){if(!V.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=V.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!V.isUndefined(t[e])}))).metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!==typeof Blob&&Blob)&&V.isSpecCompliantForm(t);if(!V.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(V.isDate(e))return e.toISOString();if(!s&&V.isBlob(e))throw new Y("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(e)||V.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,i){let s=e;if(e&&!i&&"object"===typeof e)if(V.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(V.isArray(e)&&function(e){return V.isArray(e)&&!e.some(K)}(e)||(V.isFileList(e)||V.endsWith(n,"[]"))&&(s=V.toArray(e)))return n=X(n),s.forEach((function(e,r){!V.isUndefined(e)&&null!==e&&t.append(!0===a?Z([n],r,o):null===a?n:n+"[]",l(e))})),!1;return!!K(e)||(t.append(Z(i,n,o),l(e)),!1)}const u=[],d=Object.assign(Q,{defaultVisitor:c,convertValue:l,isVisitable:K});if(!V.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!V.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),V.forEach(n,(function(n,o){!0===(!(V.isUndefined(n)||null===n)&&i.call(t,n,V.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])})),u.pop()}}(e),t};function ee(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function te(e,t){this._pairs=[],e&&J(e,this,t)}const ne=te.prototype;ne.append=function(e,t){this._pairs.push([e,t])},ne.toString=function(e){const t=e?function(t){return e.call(this,t,ee)}:ee;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var re=te;function ie(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function oe(e,t,n){if(!t)return e;const r=n&&n.encode||ie;V.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(o=i?i(t,n):V.isURLSearchParams(t)?t.toString():new re(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}var ae=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){V.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},se={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},le={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:re,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ce="undefined"!==typeof window&&"undefined"!==typeof document,ue="object"===typeof navigator&&navigator||void 0,de=ce&&(!ue||["ReactNative","NativeScript","NS"].indexOf(ue.product)<0),pe="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,he=ce&&window.location.href||"http://localhost";var fe={...r,...le};var me=function(e){function t(e,n,r,i){let o=e[i++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),s=i>=e.length;if(o=!o&&V.isArray(r)?r.length:o,s)return V.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a;r[o]&&V.isObject(r[o])||(r[o]=[]);return t(e,n,r[o],i)&&V.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}(r[o])),!a}if(V.isFormData(e)&&V.isFunction(e.entries)){const n={};return V.forEachEntry(e,((e,r)=>{t(function(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const ge={transitional:se,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=V.isObject(e);i&&V.isHTMLForm(e)&&(e=new FormData(e));if(V.isFormData(e))return r?JSON.stringify(me(e)):e;if(V.isArrayBuffer(e)||V.isBuffer(e)||V.isStream(e)||V.isFile(e)||V.isBlob(e)||V.isReadableStream(e))return e;if(V.isArrayBufferView(e))return e.buffer;if(V.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return J(e,new fe.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return fe.isNode&&V.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=V.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return J(o?{"files[]":e}
vendor: 4,465 bytes, line 75
75:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),function(e,t,n){if(V.isString(e))try{return(t||JSON.parse)(e),V.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ge.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(V.isResponse(e)||V.isReadableStream(e))return e;if(e&&V.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(i){if(n){if("SyntaxError"===i.name)throw Y.from(i,Y.ERR_BAD_RESPONSE,this,null,this.response);throw i}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:fe.classes.FormData,Blob:fe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};V.forEach(["delete","get","head","post","put","patch"],(e=>{ge.headers[e]={}}));var be=ge;const ve=V.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const ye=Symbol("internals");function xe(e){return e&&String(e).trim().toLowerCase()}function we(e){return!1===e||null==e?e:V.isArray(e)?e.map(we):String(e)}function Ae(e,t,n,r,i){return V.isFunction(r)?r.call(this,t,n):(i&&(t=n),V.isString(t)?V.isString(r)?-1!==t.indexOf(r):V.isRegExp(r)?r.test(t):void 0:void 0)}class Ee{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=xe(t);if(!i)throw new Error("header name must be a non-empty string");const o=V.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=we(e))}const o=(e,t)=>V.forEach(e,((e,n)=>i(e,n,t)));if(V.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(V.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&ve[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(V.isHeaders(e))for(const[a,s]of e.entries())i(s,a,n);else null!=e&&i(t,e,n);return this}get(e,t){if(e=xe(e)){const n=V.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(V.isFunction(t))return t.call(this,e,n);if(V.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=xe(e)){const n=V.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ae(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=xe(e)){const i=V.findKey(n,e);!i||t&&!Ae(0,n[i],i,t)||(delete n[i],r=!0)}}return V.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!Ae(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return V.forEach(this,((r,i)=>{const o=V.findKey(n,i);if(o)return t[o]=we(r),void delete t[i];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(i):String(i).trim();a!==i&&delete t[i],t[a]=we(r),n[a]=!0})),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return V.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&V.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((e=>{let[t,n]=e;return t+": "+n})).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.forEach((e=>t.set(e))),t}static accessor(e){const t=(this[ye]=this[ye]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=xe(e);t[r]||(!function(e,t){const n=V.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})}
vendor: 4,622 bytes, line 75
75))}(n,e),t[r]=!0)}return V.isArray(e)?e.forEach(r):r(e),this}}Ee.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),V.reduceDescriptors(Ee.prototype,((e,t)=>{let{value:n}=e,r=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[r]=e}}})),V.freezeMethods(Ee);var Se=Ee;function _e(e,t){const n=this||be,r=t||n,i=Se.from(r.headers);let o=r.data;return V.forEach(e,(function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function ke(e){return!(!e||!e.__CANCEL__)}function Te(e,t,n){Y.call(this,null==e?"canceled":e,Y.ERR_CANCELED,t,n),this.name="CanceledError"}V.inherits(Te,Y,{__CANCEL__:!0});var Ce=Te;function Oe(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Y("Request failed with status code "+n.status,[Y.ERR_BAD_REQUEST,Y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}var Ne=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];i||(i=l),n[o]=s,r[o]=l;let u=a,d=0;for(;u!==o;)d+=n[u++],u%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),l-i<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}};var Ie=function(e,t){let n,r,i=0,o=1e3/t;const a=function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();i=o,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[function(){const e=Date.now(),t=e-i;for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];t>=o?a(l,e):(n=l,r||(r=setTimeout((()=>{r=null,a(n)}),o-t)))},()=>n&&a(n)]};const Re=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=0;const i=Ne(50,250);return Ie((n=>{const o=n.loaded,a=n.lengthComputable?n.total:void 0,s=o-r,l=i(s);r=o;e({loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},Pe=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},je=e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return V.asap((()=>e(...n)))};var Me=fe.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,fe.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(fe.origin),fe.navigator&&/(msie|trident)/i.test(fe.navigator.userAgent)):()=>!0,De=fe.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];V.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),V.isString(r)&&a.push("path="+r),V.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Le(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Fe=e=>e instanceof Se?{...e}:e;function Be(e,t){t=t||{};const n={};function r(e,t,n,r){return V.isPlainObject(e)&&V.isPlainObject(t)?V.merge.call({caseless:r},e,t):V.isPlainObject(t)?V.merge({},t):V.isArray(t)?t.slice():t}function i(e,t,n,i){return V.isUndefined(t)?V.isUndefined(e)?void 0:r(void 0,e,0,i):r(e,t,0,i)}function o(e,t){if(!V.isUndefined(t))return r(void 0,t)}function a(e,t){return V.isUndefined(t)?V.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>i(Fe(e),Fe(t),0,!0)};return V.forEach(Object.keys(Object.assign({},e,t)),(function(r){const o=l[r]||i,a=o(e[r],t[r],r);V.isUndefined(a)&&o!==s||(n[r]=a)})),n}var Ue=e=>{const t=Be({},e);let n,{data:r,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Se.from(s),t.url=oe(Le(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),V.isFormData(r))if(fe.hasStandardBrowserEnv||fe.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>
vendor: 8,428 bytes, line 75
75e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(fe.hasStandardBrowserEnv&&(i&&V.isFunction(i)&&(i=i(t)),i||!1!==i&&Me(t.url))){const e=o&&a&&De.read(a);e&&s.set(o,e)}return t};var ze="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Ue(e);let i=r.data;const o=Se.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:p,onDownloadProgress:h}=r;function f(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=Se.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Oe((function(e){t(e),f()}),(function(e){n(e),f()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new Y("Request aborted",Y.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new Y("Network Error",Y.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||se;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Y(t,i.clarifyTimeoutError?Y.ETIMEDOUT:Y.ECONNABORTED,e,m)),m=null},void 0===i&&o.setContentType(null),"setRequestHeader"in m&&V.forEach(o.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),V.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),h&&([l,u]=Re(h,!0),m.addEventListener("progress",l)),p&&m.upload&&([s,c]=Re(p),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new Ce(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const b=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);b&&-1===fe.protocols.indexOf(b)?n(new Y("Unsupported protocol "+b+":",Y.ERR_BAD_REQUEST,e)):m.send(i||null)}))};var He=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const i=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Y?t:new Ce(t instanceof Error?t.message:t))}};let o=t&&setTimeout((()=>{o=null,i(new Y(`timeout ${t} of ms exceeded`,Y.ETIMEDOUT))}),t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)})),e=null)};e.forEach((e=>e.addEventListener("abort",i)));const{signal:s}=r;return s.unsubscribe=()=>V.asap(a),s}};const $e=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},Ve=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Ge=(e,t,n,r)=>{const i=async function*(e,t){for await(const n of Ve(e))yield*$e(n,t)}(e,t);let o,a=0,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return s(),void e.close();let o=r.byteLength;if(n){let e=a+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},We="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,qe=We&&"function"===typeof ReadableStream,Ye=We&&("function"===typeof TextEncoder?(Ke=new TextEncoder,e=>Ke.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Ke;const Xe=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return!!e(...n)}catch(i){return!1}},Ze=qe&&Xe((()=>{let e=!1;const t=new Request(fe.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Qe=qe&&Xe((()=>V.isReadableStream(new Response("").body))),Je={stream:Qe&&(e=>e.body)};var et;We&&(et=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Je[e]&&(Je[e]=V.isFunction(et[e])?t=>t[e]():(t,n)=>{throw new Y(`Response type '${e}' is not supported`,Y.ERR_NOT_SUPPORT,n)})})));const tt=async(e,t)=>{const n=V.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(V.isBlob(e))return e.size;if(V.isSpecCompliantForm(e)){const t=new Request(fe.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return V.isArrayBufferView(e)||V.isArrayBuffer(e)?e.byteLength:(V.isURLSearchParams(e)&&(e+=""),V.isString(e)?(await Ye(e)).byteLength:void 0)})(t):n};const nt={http:null,xhr:ze,fetch:We&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=Ue(e);c=c?(c+"").toLowerCase():"text";let h,f=He([i,o&&o.toAbortSignal()],a);const m=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let g;try{if(l&&Ze&&"get"!==n&&"head"!==n&&0!==(g=await tt(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(V.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=Pe(g,Re(je(l)));r=Ge(n.body,65536,e,t)}}V.isString(d)||(d=d?"include":"omit");const i="credentials"in Request.prototype;h=new Request(t,{...p,signal:f,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:i?d:void 0});let o=await fetch(h);const a=Qe&&("stream"===c||"response"===c);if(Qe&&(s||a&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=V.toFiniteNumber(o.headers.get("content-length")),[n,r]=s&&Pe(t,Re(je(s),!0))||[];o=new Response(Ge(o.body,65536,n,(()=>{r&&r(),m&&m()})),e)}c=c||"text";let b=await Je[V.findKey(Je,c)||"text"](o,e);return!a&&m&&m(),await new Promise(((t,n)=>{Oe(t,n,{data:b,headers:Se.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:h})}))}catch(b){if(m&&m(),b&&"TypeError"===b.name&&/fetch/i.test(b.message))throw Object.assign(new Y("Network Error",Y.ERR_NETWORK,e,h),{cause:b.cause||b});throw Y.from(b,b&&b.code,e,h)}})};V.forEach(nt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const rt=e=>`- ${e}`,it=e=>V.isFunction(e)||null===e||!1===e;var ot=e=>{e=V.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){let t;if(n=e[o],r=n,!it(n)&&(r=nt[(t=String(n)).toLowerCase()],void 0===r))throw new Y(`Unknown adapter '${t}'`);if(r)break;i[t||"#"+o]=r}if(!r){const e=Object.entries(i).map((e=>{let[t,n]=e;return`adapter ${t} `+(!1===n?"is not supported by the environment":"is not available in the build")}));let n=t?e.length>1?"since :\n"+e.map(rt).join("\n"):" "+rt(e[0]):"as no adapter specified";throw new Y("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function at(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ce(null,e)}function st(e){at(e),e.headers=Se.from(e.headers),e.data=_e.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return ot(e.adapter||be.adapter)(e).then((function(t){return at(e),t.data=_e.call(e,e.transformResponse,t),t.headers=Se.from(t.headers),t}),(function(t){return ke(t)||(at(e),t&&t.response&&(t.response.data=_e.call(e,e.transformResponse,t.response),t.response.headers=Se.from(t.response.headers))),Promise.reject(t)}))}const lt="1.7.9",ct={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{ct[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const ut={};ct.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.9] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new Y(r(i," has been removed"+(t?" in "+t:"")),Y.ERR_DEPRECATED);return t&&!ut[i]&&(ut[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}},ct.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}
75`),!0)};var dt={assertOptions:function(e,t,n){if("object"!==typeof e)throw new Y("options must be an object",Y.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new Y("option "+o+" must be "+n,Y.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Y("Unknown option "+o,Y.ERR_BAD_OPTION)}},validators:ct};const pt=dt.validators;class ht{constructor(e){this.defaults=e,this.interceptors={request:new ae,response:new ae}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(r){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=Be(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&dt.assertOptions(n,{silentJSONParsing:pt.transitional(pt.boolean),forcedJSONParsing:pt.transitional(pt.boolean),clarifyTimeoutError:pt.transitional(pt.boolean)},!1),null!=r&&(V.isFunction(r)?t.paramsSerializer={serialize:r}:dt.assertOptions(r,{encode:pt.function,serialize:pt.function},!0)),dt.assertOptions(t,{baseUrl:pt.spelling("baseURL"),withXsrfToken:pt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&V.merge(i.common,i[t.method]);i&&V.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=Se.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[st.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let p=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{p=e(p)}catch(h){t.call(this,h);break}}try{c=st.call(this,p)}catch(h){return Promise.reject(h)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return oe(Le((e=Be(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}V.forEach(["delete","get","head","options"],(function(e){ht.prototype[e]=function(t,n){return this.request(Be(n||{},{method:e,url:t,data:(n||{}).data}))}})),V.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(Be(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ht.prototype[e]=t(),ht.prototype[e+"Form"]=t(!0)}));var ft=ht;class mt{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,i){n.reason||(n.reason=new Ce(e,r,i),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new mt((function(t){e=t})),cancel:e}}}var gt=mt;const bt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
75alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(bt).forEach((e=>{let[t,n]=e;bt[n]=t}));var vt=bt;const yt=function e(t){const n=new ft(t),r=i(ft.prototype.request,n);return V.extend(r,ft.prototype,n,{allOwnKeys:!0}),V.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Be(t,n))},r}(be);yt.Axios=ft,yt.CanceledError=Ce,yt.CancelToken=gt,yt.isCancel=ke,yt.VERSION=lt,yt.toFormData=J,yt.AxiosError=Y,yt.Cancel=yt.CanceledError,yt.all=function(e){return Promise.all(e)},yt.spread=function(e){return function(t){return e.apply(null,t)}},yt.isAxiosError=function(e){return V.isObject(e)&&!0===e.isAxiosError},yt.mergeConfig=Be,yt.AxiosHeaders=Se,yt.formToJSON=e=>me(V.isHTMLForm(e)?new FormData(e):e),yt.getAdapter=ot,yt.HttpStatusCode=vt,yt.default=yt;var xt=yt},72004:function(e,t,n){"use strict";function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function i(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}n.d(t,{$:function(){return i}}),t.A=i},27232:function(e,t,n){"use strict";n.d(t,{N9:function(){return _},oR:function(){return M}});var r=n(9950);function i(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=i(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}var o=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=i(e))&&(r&&(r+=" "),r+=t);return r};const a=e=>"number"==typeof e&&!isNaN(e),s=e=>"string"==typeof e,l=e=>"function"==typeof e,c=e=>s(e)||l(e)?e:null,u=e=>(0,r.isValidElement)(e)||s(e)||l(e)||a(e);function d(e){let{enter:t,exit:n,appendPosition:i=!1,collapse:o=!0,collapseDuration:a=300}=e;return function(e){let{children:s,position:l,preventExitTransition:c,done:u,nodeRef:d,isIn:p}=e;const h=i?`${t}--${l}`:t,f=i?`${n}--${l}`:n,m=(0,r.useRef)(0);return(0,r.useLayoutEffect)((()=>{const e=d.current,t=h.split(" "),n=r=>{r.target===d.current&&(e.dispatchEvent(new Event("d")),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===m.current&&"animationcancel"!==r.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)}),[]),(0,r.useEffect)((()=>{const e=d.current,t=()=>{e.removeEventListener("animationend",t),o?function(e,t,n){void 0===n&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame((()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame((()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)}))}))}(e,u,a):u()};p||(c?t():(m.current=1,e.className+=` ${f}`,e.addEventListener("animationend",t)))}),[p]),r.createElement(r.Fragment,null,s)}}function p(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const h={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter((e=>e!==t));return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach((t=>{const n=setTimeout((()=>
75{t(...[].slice.call(arguments,1))}),0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)}))}},f=e=>{let{theme:t,type:n,...i}=e;return r.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${n})`,...i})},m={info:function(e){return r.createElement(f,{...e},r.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return r.createElement(f,{...e},r.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return r.createElement(f,{...e},r.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return r.createElement(f,{...e},r.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return r.createElement("div",{className:"Toastify__spinner"})}};function g(e){const[,t]=(0,r.useReducer)((e=>e+1),0),[n,i]=(0,r.useState)([]),o=(0,r.useRef)(null),d=(0,r.useRef)(new Map).current,f=e=>-1!==n.indexOf(e),g=(0,r.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:f,getToast:e=>d.get(e)}).current;function b(e){let{containerId:t}=e;const{limit:n}=g.props;!n||t&&g.containerId!==t||(g.count-=g.queue.length,g.queue=[])}function v(e){i((t=>null==e?[]:t.filter((t=>t!==e))))}function y(){const{toastContent:e,toastProps:t,staleId:n}=g.queue.shift();w(e,t,n)}function x(e,n){let{delay:i,staleId:f,...b}=n;if(!u(e)||function(e){return!o.current||g.props.enableMultiContainer&&e.containerId!==g.props.containerId||d.has(e.toastId)&&null==e.updateId}(b))return;const{toastId:x,updateId:A,data:E}=b,{props:S}=g,_=()=>v(x),k=null==A;k&&g.count++;const T={...S,style:S.toastStyle,key:g.toastKey++,...Object.fromEntries(Object.entries(b).filter((e=>{let[t,n]=e;return null!=n}))),toastId:x,updateId:A,data:E,closeToast:_,isIn:!1,className:c(b.className||S.toastClassName),bodyClassName:c(b.bodyClassName||S.bodyClassName),progressClassName:c(b.progressClassName||S.progressClassName),autoClose:!b.isLoading&&(C=b.autoClose,O=S.autoClose,!1===C||a(C)&&C>0?C:O),deleteToast(){const e=p(d.get(x),"removed");d.delete(x),h.emit(4,e);const n=g.queue.length;if(g.count=null==x?g.count-g.displayedToast:g.count-1,g.count<0&&(g.count=0),n>0){const e=null==x?g.props.limit:1;if(1===n||1===e)g.displayedToast++,y();else{const t=e>n?n:e;g.displayedToast=t;for(let e=0;e<t;e++)y()}}else t()}};var C,O;T.iconOut=function(e){let{theme:t,type:n,isLoading:i,icon:o}=e,c=null;const u={theme:t,type:n};return!1===o||(l(o)?c=o(u):(0,r.isValidElement)(o)?c=(0,r.cloneElement)(o,u):s(o)||a(o)?c=o:i?c=m.spinner():(e=>e in m)(n)&&(c=m[n](u))),c}(T),l(b.onOpen)&&(T.onOpen=b.onOpen),l(b.onClose)&&(T.onClose=b.onClose),T.closeButton=S.closeButton,!1===b.closeButton||u(b.closeButton)?T.closeButton=b.closeButton:!0===b.closeButton&&(T.closeButton=!u(S.closeButton)||S.closeButton);let N=e;(0,r.isValidElement)(e)&&!s(e.type)?N=(0,r.cloneElement)(e,{closeToast:_,toastProps:T,data:E}):l(e)&&(N=e({closeToast:_,toastProps:T,data:E})),S.limit&&S.limit>0&&g.count>S.limit&&k?g.queue.push({toastContent:N,toastProps:T,staleId:f}):a(i)?setTimeout((()=>{w(N,T,f)}),i):w(N,T,f)}function w(e,t,n){const{toastId:r}=t;n&&d.delete(n);const o={content:e,props:t};d.set(r,o),i((e=>[...e,r].filter((e=>
75e!==n)))),h.emit(4,p(o,null==o.props.updateId?"added":"updated"))}return(0,r.useEffect)((()=>(g.containerId=e.containerId,h.cancelEmit(3).on(0,x).on(1,(e=>o.current&&v(e))).on(5,b).emit(2,g),()=>{d.clear(),h.emit(3,g)})),[]),(0,r.useEffect)((()=>{g.props=e,g.isToastActive=f,g.displayedToast=n.length})),{getToastToRender:function(t){const n=new Map,r=Array.from(d.values());return e.newestOnTop&&r.reverse(),r.forEach((e=>{const{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)})),Array.from(n,(e=>t(e[0],e[1])))},containerRef:o,isToastActive:f}}function b(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function v(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function y(e){const[t,n]=(0,r.useState)(!1),[i,o]=(0,r.useState)(!1),a=(0,r.useRef)(null),s=(0,r.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,c=(0,r.useRef)(e),{autoClose:u,pauseOnHover:d,closeToast:p,onClick:h,closeOnClick:f}=e;function m(t){if(e.draggable){"touchstart"===t.nativeEvent.type&&t.nativeEvent.preventDefault(),s.didMove=!1,document.addEventListener("mousemove",w),document.addEventListener("mouseup",A),document.addEventListener("touchmove",w),document.addEventListener("touchend",A);const n=a.current;s.canCloseOnClick=!0,s.canDrag=!0,s.boundingRect=n.getBoundingClientRect(),n.style.transition="",s.x=b(t.nativeEvent),s.y=v(t.nativeEvent),"x"===e.draggableDirection?(s.start=s.x,s.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(s.start=s.y,s.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function g(t){if(s.boundingRect){const{top:n,bottom:r,left:i,right:o}=s.boundingRect;"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&s.x>=i&&s.x<=o&&s.y>=n&&s.y<=r?x():y()}}function y(){n(!0)}function x(){n(!1)}function w(n){const r=a.current;s.canDrag&&r&&(s.didMove=!0,t&&x(),s.x=b(n),s.y=v(n),s.delta="x"===e.draggableDirection?s.x-s.start:s.y-s.start,s.start!==s.x&&(s.canCloseOnClick=!1),r.style.transform=`translate${e.draggableDirection}(${s.delta}px)`,r.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function A(){document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",A),document.removeEventListener("touchmove",w),document.removeEventListener("touchend",A);const t=a.current;if(s.canDrag&&s.didMove&&t){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return o(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform=`translate${e.draggableDirection}(0)`,t.style.opacity="1"}}(0,r.useEffect)((()=>{c.current=e})),(0,r.useEffect)((()=>(a.current&&a.current.addEventListener("d",y,{once:!0}),l(e.onOpen)&&e.onOpen((0,r.isValidElement)(e.children)&&e.children.props),()=>{const e=c.current;l(e.onClose)&&e.onClose((0,r.isValidElement)(e.children)&&e.children.props)})),[]),(0,r.useEffect)((()=>(e.pauseOnFocusLoss&&(document.hasFocus()||x(),window.addEventListener("focus",y),window.addEventListener("blur",x)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",y),window.removeEventListener("blur",x))})),[e.pauseOnFocusLoss]);const E={onMouseDown:m,onTouchStart:m,onMouseUp:g,onTouchEnd:g};return u&&d&&(E.onMouseEnter=x,E.onMouseLeave=y),f&&(E.onClick=e=>{h&&h(e),s.canCloseOnClick&&p()}),{playToast:y,pauseToast:x,isRunning:t,preventExitTransition:i,toastRef:a,eventHandlers:E}}function x(e){let{closeToast:t,theme:n,ariaLabel:i="close"}=e;return r.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":i},r.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},r.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function w(e){let{delay:t,isRunning:n,closeToast:i,type:a="default",hide:s,className:c,style:u,controlledProgress:d,progress:p,rtl:h,isIn:f,theme:m}=e;const g=s||d&&0===p,b={...u,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused",opacity:g?0:1};d&&(b.transform=`scaleX(${p})`);const v=o("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${m}`,`Toastify__progress-bar--${a}`,{"Toastify__progress-bar--rtl":h}),y=l(c)?c({rtl:h,type:a,defaultClassName:v}):o(v,c);return r.createElement("div",{role:"progressbar","aria-hidden":g?"true":"false","aria-label":"notification timer",className:y,style:b,[d&&p>=1?"onTransitionEnd":"onAnimationEnd"]:d&&p<1?null:()=>{f&&i()}})}const A=e=>{const{isRunning:t,preventExitTransition:n,toastRef:i,eventHandlers:a}=y(e),{closeButton:s,children:c,autoClose:u,onClick:d,type:p,hideProgressBar:h,closeToast:f,transition:m,position:g,className:b,style:v,bodyClassName:A,bodyStyle:E,progressClassName:S,progressStyle:_,updateId:k,role:T,progress:C,rtl:O,toastId:N,deleteToast:I,isIn:R,isLoading:P,iconOut:j,closeOnClick:M,theme:D}=e,L=o("Toastify__toast",`Toastify__toast-theme--${D}`,`Toastify__toast--${p}`,{"Toastify__toast--rtl":O},{"Toastify__toast--close-on-click":M}),F=l(b)?b({rtl:O,position:g,type:p,defaultClassName:L}):o(L,b),B=!!C||!u,U={closeToast:f,type:p,theme:D};let z=null;return!1===s||(z=l(s)?s(U):(0,r.isValidElement)(s)?(0,r.cloneElement)(s,U):x(U)),r.createElement(m,{isIn:R,done:I,position:g,preventExitTransition:n,nodeRef:i},r.createElement("div",{id:N,onClick:d,className:F,...a,style:v,ref:i},r.createElement("div",{...R&&{role:T},className:l(A)?A({type:p}):o("Toastify__toast-body",A),style:E},null!=j&&r.createElement("div",{className:o("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter"
75:!P})},j),r.createElement("div",null,c)),z,r.createElement(w,{...k&&!B?{key:`pb-${k}`}:{},rtl:O,theme:D,delay:u,isRunning:t,isIn:R,closeToast:f,hide:h,type:p,style:_,className:S,controlledProgress:B,progress:C||0})))},E=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},S=d(E("bounce",!0)),_=(d(E("slide",!0)),d(E("zoom")),d(E("flip")),(0,r.forwardRef)(((e,t)=>{const{getToastToRender:n,containerRef:i,isToastActive:a}=g(e),{className:s,style:u,rtl:d,containerId:p}=e;function h(e){const t=o("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":d});return l(s)?s({position:e,rtl:d,defaultClassName:t}):o(t,c(s))}return(0,r.useEffect)((()=>{t&&(t.current=i.current)}),[]),r.createElement("div",{ref:i,className:"Toastify",id:p},n(((e,t)=>{const n=t.length?{...u}:{...u,pointerEvents:"none"};return r.createElement("div",{className:h(e),style:n,key:`container-${e}`},t.map(((e,n)=>{let{content:i,props:o}=e;return r.createElement(A,{...o,isIn:a(o.toastId),style:{...o.style,"--nth":n+1,"--len":t.length},key:`toast-${o.key}`},i)})))})))})));_.displayName="ToastContainer",_.defaultProps={position:"top-right",transition:S,autoClose:5e3,closeButton:x,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let k,T=new Map,C=[],O=1;function N(){return""+O++}function I(e){return e&&(s(e.toastId)||a(e.toastId))?e.toastId:N()}function R(e,t){return T.size>0?h.emit(0,e,t):C.push({content:e,options:t}),t.toastId}function P(e,t){return{...t,type:t&&t.type||e,toastId:I(t)}}function j(e){return(t,n)=>R(t,P(e,n))}function M(e,t){return R(e,P("default",t))}M.loading=(e,t)=>
75R(e,P("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),M.promise=function(e,t,n){let r,{pending:i,error:o,success:a}=t;i&&(r=s(i)?M.loading(i,n):M.loading(i.render,{...n,...i}));const c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(e,t,i)=>{if(null==t)return void M.dismiss(r);const o={type:e,...c,...n,data:i},a=s(t)?{render:t}:t;return r?M.update(r,{...o,...a}):M(a.render,{...o,...a}),i},d=l(e)?e():e;return d.then((e=>u("success",a,e))).catch((e=>u("error",o,e))),d},M.success=j("success"),M.info=j("info"),M.error=j("error"),M.warning=j("warning"),M.warn=M.warning,M.dark=(e,t)=>R(e,P("default",{theme:"dark",...t})),M.dismiss=e=>{T.size>0?h.emit(1,e):C=C.filter((t=>null!=e&&t.options.toastId!==e))},M.clearWaitingQueue=function(e){return void 0===e&&(e={}),h.emit(5,e)},M.isActive=e=>{let t=!1;return T.forEach((n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)})),t},M.update=function(e,t){void 0===t&&(t={}),setTimeout((()=>{const n=function(e,t){let{containerId:n}=t;const r=T.get(n||k);return r&&r.getToast(e)}(e,t);if(n){const{props:r,content:i}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:N()};o.toastId!==e&&(o.staleId=e);const a=o.render||i;delete o.render,R(a,o)}}),0)},M.done=e=>{M.update(e,{progress:1})},M.onChange=e=>(h.on(4,e),()=>{h.off(4,e)}),M.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},M.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},h.on(2,(e=>{k=e.containerId||e,T.set(k,e),C.forEach((e=>{h.emit(0,e.content,e.options)})),C=[]})).on(3,(e=>{T.delete(e.containerId||e),0===T.size&&h.off(0).off(1).off(5)}))},3555:function(e){"use strict";e.exports=JSON.parse('{"AElig":"\xc6","AMP":"&","Aacute":"\xc1","Acirc":"\xc2","Agrave":"\xc0","Aring":"\xc5","Atilde":"\xc3","Auml":"\xc4","COPY":"\xa9","Ccedil":"\xc7","ETH":"\xd0","Eacute":"\xc9","Ecirc":"\xca","Egrave":"\xc8","Euml":"\xcb","GT":">","Iacute":"\xcd","Icirc":"\xce","Igrave":"\xcc","Iuml":"\xcf","LT":"<","Ntilde":"\xd1","Oacute":"\xd3","Ocirc":"\xd4","Ograve":"\xd2","Oslash":"\xd8","Otilde":"\xd5","Ouml":"\xd6","QUOT":"\\"","REG":"\xae","THORN":"\xde","Uacute":"\xda","Ucirc":"\xdb","Ugrave":"\xd9","Uuml":"\xdc","Yacute":"\xdd","aacute":"\xe1","acirc":"\xe2","acute":"\xb4","aelig":"\xe6","agrave":"\xe0","amp":"&","aring":"\xe5","atilde":"\xe3","auml":"\xe4","brvbar":"\xa6","ccedil":"\xe7","cedil":"\xb8","cent":"\xa2","copy":"\xa9","curren":"\xa4","deg":"\xb0","divide":"\xf7","eacute":"\xe9","ecirc":"\xea","egrave":"\xe8","eth":"\xf0","euml":"\xeb","frac12":"\xbd","frac14":"\xbc","frac34":"\xbe","gt":">","iacute":"\xed","icirc":"\xee","iexcl":"\xa1","igrave":"\xec","iquest":"\xbf","iuml":"\xef","laquo":"\xab","lt":"<","macr":"\xaf","micro":"\xb5","middot":"\xb7","nbsp":"\xa0","not":"\xac","ntilde":"\xf1","oacute":"\xf3","ocirc":"\xf4","ograve":"\xf2","ordf":"\xaa","ordm":"\xba","oslash":"\xf8","otilde":"\xf5","ouml":"\xf6","para":"\xb6","plusmn":"\xb1","pound":"\xa3","quot":"\\"","raquo":"\xbb","reg":"\xae","sect":"\xa7","shy":"\xad","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","szlig":"\xdf","thorn":"\xfe","times":"\xd7","uacute":"\xfa","ucirc":"\xfb","ugrave":"\xf9","uml":"\xa8","uuml":"\xfc","yacute":"\xfd","yen":"\xa5","yuml":"\xff"}')},25805:function(e){"use strict";e.exports=JSON.parse('{"0":"\ufffd","128":"\u20ac","130":"\u201a","131":"\u0192","132":"\u201e","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02c6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017d","145":"\u2018","146":"\u2019","147":"\u201c","148":"\u201d","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02dc","153":"\u2122","154":"\u0161","155":"\u203a","156":"\u0153","158":"\u017e","159":"\u0178"}')}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdO={}
vendor: 4,782 bytes, line 75
75,__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,{a:t}),t},function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};__webpack_require__.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"===typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"===typeof n.then)return n}var i=Object.create(null);__webpack_require__.r(i);var o={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((function(e){o[e]=function(){return n[e]}}));return o.default=function(){return n},__webpack_require__.d(i,o),i}}(),__webpack_require__.d=function(e,t){for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.f={},__webpack_require__.e=function(e){return Promise.all(Object.keys(__webpack_require__.f).reduce((function(t,n){return __webpack_require__.f[n](e,t),t}),[]))},__webpack_require__.u=function(e){return"static/js/"+e+"."+{255:"62c983ea",751:"b751ce51",766:"581b29a6"}[e]+".chunk.js"},__webpack_require__.miniCssF=function(e){},__webpack_require__.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="asklly:";__webpack_require__.l=function(n,r,i,o){if(e[n])e[n].push(r);else{var a,s;if(void 0!==i)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var u=l[c];if(u.getAttribute("src")==n||u.getAttribute("data-webpack")==t+i){a=u;break}}a||(s=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,__webpack_require__.nc&&a.setAttribute("nonce",__webpack_require__.nc),a.setAttribute("data-webpack",t+i),a.src=n),e[n]=[r];var d=function(t,r){a.onerror=a.onload=null,clearTimeout(p);var i=e[n];if(delete e[n],a.parentNode&&a.parentNode.removeChild(a),i&&i.forEach((function(e){return e(r)})),t)return t(r)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),s&&document.head.appendChild(a)}}}(),__webpack_require__.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},__webpack_require__.p="/",function(){__webpack_require__.b=document.baseURI||self.location.href;var e={792:0};__webpack_require__.f.j=function(t,n){var r=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise((function(n,i){r=e[t]=[n,i]}));n.push(r[2]=i);var o=__webpack_require__.p+__webpack_require__.u(t),a=new Error;__webpack_require__.l(o,(function(n){if(__webpack_require__.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",a.name="ChunkLoadError",a.type=i,a.request=o,r[1](a)}}),"chunk-"+t,t)}};var t=function(t,n){var r,i,o=n[0],a=n[1],s=n[2],l=0;if(o.some((function(t){return 0!==e[t]}))){for(r in a)__webpack_require__.o(a,r)&&(__webpack_require__.m[r]=a[r]);if(s)s(__webpack_require__)}for(t&&t(n);l<o.length;l++)i=o[l],__webpack_require__.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.webpackChunkasklly=self.webpackChunkasklly||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var __webpack_exports__={};!function(){"use strict";var e={};__webpack_require__.r(e),__webpack_require__.d(e,{scaleBand:function(){return yJ},scaleDiverging:function(){return h5},scaleDivergingLog:function(){return f5},scaleDivergingPow:function(){return g5},scaleDivergingSqrt:function(){return b5},scaleDivergingSymlog:function(){return m5},scaleIdentity:function(){return s1},scaleImplicit:function(){return bJ},scaleLinear:function(){return a1},scaleLog:function(){return g1},scaleOrdinal:function(){return vJ},scalePoint:function(){return wJ},scalePow:function(){return _1},scaleQuantile:function(){return L1},scaleQuantize:function(){return F1},scaleRadial:function(){return C1},scaleSequential:function(){return a5},scaleSequentialLog:function(){return s5},scaleSequentialPow:function(){return c5},scaleSequentialQuantile:function(){return d5},scaleSequentialSqrt:function(){return u5},scaleSequentialSymlog:function(){return l5},scaleSqrt:function(){return k1},scaleSymlog:function(){return x1},scaleThreshold:function(){return B1},scaleTime:function(){return n5},scaleUtc:function(){return r5}
75,tickFormat:function(){return i1}});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{boolean:function(){return Dfe},booleanish:function(){return Lfe},commaOrSpaceSeparated:function(){return Hfe},commaSeparated:function(){return zfe},number:function(){return Bfe},overloadedBoolean:function(){return Ffe},spaceSeparated:function(){return Ufe}});var n={};__webpack_require__.r(n),__webpack_require__.d(n,{attentionMarkers:function(){return pEe},contentInitial:function(){return aEe},disable:function(){return hEe},document:function(){return oEe},flow:function(){return lEe},flowInitial:function(){return sEe},insideSpan:function(){return dEe},string:function(){return cEe},text:function(){return uEe}});var r=__webpack_require__(1352),i=__webpack_require__(26689),o=__webpack_require__(6538),a=__webpack_require__(53044),s=__webpack_require__(17119);let l=function(e){e()};var c=__webpack_require__(9950),u=__webpack_require__.t(c,2);const d=Symbol.for("react-redux-context"),p="undefined"!==typeof globalThis?globalThis:{};function h(){var e;if(!c.createContext)return{};const t=null!=(e=p[d])?e:p[d]=new Map;let n=t.get(c.createContext);return n||(n=c.createContext(null),t.set(c.createContext,n)),n}const f=h();function m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;return function(){return(0,c.useContext)(e)}}const g=m();let b=()=>{throw new Error("uSES not initialized!")};const v=(e,t)=>e===t;function y(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;const t=e===f?g:m(e);return function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{equalityFn:r=v,stabilityCheck:i,noopCheck:o}="function"===typeof n?{equalityFn:n}:n;const{store:a,subscription:s,getServerState:l,stabilityCheck:u,noopCheck:d}=t(),p=((0,c.useRef)(!0),(0,c.useCallback)({[e.name](t){return e(t)}}[e.name],[e,u,i])),h=b(s.addNestedSub,a.getState,l||a.getState,p,r);return(0,c.useDebugValue)(h),h}}const x=y();__webpack_require__(23876),__webpack_require__(60863);function w(){const e=l;let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}const A={notify(){},get:()=>[]};const E=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement)?c.useLayoutEffect:c.useEffect;let S=null;var _=function(e){let{store:t,context:n,children:r,serverState:i,stabilityCheck:o="once",noopCheck:a="once"}=e;const s=c.useMemo((()=>{const e=function(e,t){let n,r=A,i=0,o=!1;function a(){c.onStateChange&&c.onStateChange()}function s(){i++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=w())}function l(){i--,n&&0===i&&(n(),n=void 0,r.clear(),r=A)}const c={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,s())},tryUnsubscribe:function(){o&&(o=!1,l())},getListeners:()=>r};return c}(t);return{store:t,subscription:e,getServerState:i?()=>i:void 0,stabilityCheck:o,noopCheck:a}}),[t,i,o,a]),l=c.useMemo((()=>t.getState()),[t]);E((()=>{const{subscription:e}=s;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),l!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[s,l]);const u=n||f;return c.createElement(u.Provider,{value:s},r)};function k(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;const t=e===f?g:m(e);return function(){const{store:e}=t();return e}}const T=k();function C(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;const t=e===f?T:k(e);return function(){return t().dispatch}}const O=C();var N,I;N=a.useSyncExternalStoreWithSelector,b=N,(e=>{S=e})(o.useSyncExternalStore),I=s.unstable_batchedUpdates,l=I;Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));var R=__webpack_require__(58168),P=__webpack_require__(98587);var j=c.createContext(null);function M(){return c.useContext(j)}var D="function"===typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",L=__webpack_require__(44414);var F=function(e){const{children:t,theme:n}=e,r=M(),i=c.useMemo((()=>{const e=null===r?n:function(e,t){if("function"===typeof t)return t(e);return(0,R.A)({},e,t)}(r,n);return null!=e&&(e[D]=null!==r),e}),[n,r]);return(0,L.jsx)(j.Provider,{value:i,children:t})},B=__webpack_require__(57370),U=__webpack_require__(90357),z=__webpack_require__(44730),H=__webpack_require__(6171);const $={};
75function V(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return c.useMemo((()=>{const i=e&&t[e]||t;if("function"===typeof n){const o=n(i),a=e?(0,R.A)({},t,{[e]:o}):o;return r?()=>a:a}return e?(0,R.A)({},t,{[e]:n}):(0,R.A)({},t,n)}),[e,t,n,r])}var G=function(e){const{children:t,theme:n,themeId:r}=e,i=(0,U.A)($),o=M()||$,a=V(r,i,n),s=V(r,o,n,!0),l="rtl"===a.direction;return(0,L.jsx)(F,{theme:s,children:(0,L.jsx)(B.T.Provider,{value:a,children:(0,L.jsx)(z.A,{value:l,children:(0,L.jsx)(H.A,{value:null==a?void 0:a.components,children:t})})})})},W=__webpack_require__(67550);const q=["theme"];function Y(e){let{theme:t}=e,n=(0,P.A)(e,q);const r=t[W.A];return(0,L.jsx)(G,(0,R.A)({},n,{themeId:r?W.A:void 0,theme:r||t}))}var K=__webpack_require__(50600),X=__webpack_require__(18463),Z=__webpack_require__(71777);const Q=(e,t)=>(0,R.A)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),J=e=>(0,R.A)({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}});var ee=function(e){const t=(0,X.b)({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return(0,L.jsxs)(c.Fragment,{children:[(0,L.jsx)(Z.A,{styles:e=>function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach((t=>{let[n,i]=t;var o;r[e.getColorSchemeSelector(n).replace(/\s*&/,"")]={colorScheme:null==(o=i.palette)?void 0:o.mode}}));let i=(0,R.A)({html:Q(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:(0,R.A)({margin:0},J(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const o=null==(n=e.components)||null==(n=n.MuiCssBaseline)?void 0:n.styleOverrides;return o&&(i=[i,o]),i}(e,r)}),n]})},te=__webpack_require__(13564),ne=__webpack_require__(59254),re=__webpack_require__(14857),ie=__webpack_require__(61399),oe=__webpack_require__(51522);function ae(e,t,n,r,i){const[o,a]=c.useState((()=>i&&n?n(e).matches:r?r(e).matches:t));return(0,ie.A)((()=>{let t=!0;if(!n)return;const r=n(e),i=()=>{t&&a(r.matches)};return i(),r.addListener(i),()=>{t=!1,r.removeListener(i)}}),[e,n]),o}const se=u.useSyncExternalStore;function le(e,t,n,r,i){const o=c.useCallback((()=>t),[t]),a=c.useMemo((()=>{if(i&&n)return()=>n(e).matches;if(null!==r){const{matches:t}=r(e);return()=>t}return o}),[o,e,r,i,n]),[s,l]=c.useMemo((()=>{if(null===n)return[o,()=>()=>{}];const t=n(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]}),[o,n,e]);return se(l,s,a)}function ce(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(0,U.A)(),r="undefined"!==typeof window&&"undefined"!==typeof window.matchMedia,{defaultMatches:i=!1,matchMedia:o=(r?window.matchMedia:null),ssrMatchMedia:a=null,noSsr:s=!1}=(0,oe.A)({name:"MuiUseMediaQuery",props:t,theme:n});let l="function"===typeof e?e(n):e;l=l.replace(/^@media( ?)/m,"");return(void 0!==se?le:ae)(l,i,o,a,s)}var ue=__webpack_require__(53011),de=__webpack_require__(72004),pe=__webpack_require__(88465),he=__webpack_require__(61676),fe=__webpack_require__(2235),me=__webpack_require__(1763),ge=__webpack_require__(423);function be(e){return(0,ge.Ay)("MuiAppBar",e)}(0,me.A)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const ve=["className","color","enableColorOnDark","position"],ye=(e,t)=>e?`${null==e?void 0:e.replace(")","")}, ${t})`:t,xe=(0,ne.Ay)(fe.A,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${(0,he.A)(n.position)}`],t[`color${(0,he.A)(n.color)}`]]}})((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[900];
75return(0,R.A)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===n.position&&{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===n.position&&{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===n.position&&{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"static"===n.position&&{position:"static"},"relative"===n.position&&{position:"relative"},!t.vars&&(0,R.A)({},"default"===n.color&&{backgroundColor:r,color:t.palette.getContrastText(r)},n.color&&"default"!==n.color&&"inherit"!==n.color&&"transparent"!==n.color&&{backgroundColor:t.palette[n.color].main,color:t.palette[n.color].contrastText},"inherit"===n.color&&{color:"inherit"},"dark"===t.palette.mode&&!n.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===n.color&&(0,R.A)({backgroundColor:"transparent",color:"inherit"},"dark"===t.palette.mode&&{backgroundImage:"none"})),t.vars&&(0,R.A)({},"default"===n.color&&{"--AppBar-background":n.enableColorOnDark?t.vars.palette.AppBar.defaultBg:ye(t.vars.palette.AppBar.darkBg,t.vars.palette.AppBar.defaultBg),"--AppBar-color":n.enableColorOnDark?t.vars.palette.text.primary:ye(t.vars.palette.AppBar.darkColor,t.vars.palette.text.primary)},n.color&&!n.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":n.enableColorOnDark?t.vars.palette[n.color].main:ye(t.vars.palette.AppBar.darkBg,t.vars.palette[n.color].main),"--AppBar-color":n.enableColorOnDark?t.vars.palette[n.color].contrastText:ye(t.vars.palette.AppBar.darkColor,t.vars.palette[n.color].contrastText)},!["inherit","transparent"].includes(n.color)&&{backgroundColor:"var(--AppBar-background)"},{color:"inherit"===n.color?"inherit":"var(--AppBar-color)"},"transparent"===n.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}));var we=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiAppBar"}),{className:r,color:i="primary",enableColorOnDark:o=!1,position:a="fixed"}=n,s=(0,P.A)(n,ve),l=(0,R.A)({},n,{color:i,position:a,enableColorOnDark:o}),c=(e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${(0,he.A)(t)}`,`position${(0,he.A)(n)}`]};return(0,pe.A)(i,be,r)})(l);return(0,L.jsx)(xe,(0,R.A)({square:!0,component:"header",ownerState:l,elevation:4,className:(0,de.A)(c.root,r,"fixed"===a&&"mui-fixed"),ref:t},s))}));function Ae(e){return(0,ge.Ay)("MuiToolbar",e)}(0,me.A)("MuiToolbar",["root","gutters","regular","dense"]);const Ee=["className","component","disableGutters","variant"],Se=(0,ne.Ay)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,R.A)({position:"relative",display:"flex",alignItems:"center"},!n.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}},"dense"===n.variant&&{minHeight:48})}),(e=>{let{theme:t,ownerState:n}=e;return"regular"===n.variant&&t.mixins.toolbar})),_e=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiToolbar"}),{className:r,component:i="div",disableGutters:o=!1,variant:a="regular"}=n,s=(0,P.A)(n,Ee),l=(0,R.A)({},n,{component:i,disableGutters:o,variant:a}),c=(e=>{const{classes:t,disableGutters:n,variant:r}=e,i={root:["root",!n&&"gutters",r]};return(0,pe.A)(i,Ae,t)})(l);return(0,L.jsx)(Se,(0,R.A)({as:i,className:(0,de.A)(c.root,r),ref:t,ownerState:l},s))}));var ke=_e,Te=__webpack_require__(82053),Ce=__webpack_require__(48089),Oe=__webpack_require__(28286),Ne=__webpack_require__(80237);var Ie=c.createContext();function Re(e){return(0,ge.Ay)("MuiGrid",e)}const Pe=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];var je=(0,me.A)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...Pe.map((e=>`grid-xs-${e}`)),...Pe.map((e=>`grid-sm-${e}`)),...Pe.map((e=>`grid-md-${e}`)),...Pe.map((e=>`grid-lg-${e}`)),...Pe.map((e=>`grid-xl-${e}`))]);const Me=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function De(e){const t=parseFloat(e);return`${t}
75${String(e).replace(String(t),"")||"px"}`}function Le(e){let{breakpoints:t,values:n}=e,r="";Object.keys(n).forEach((e=>{""===r&&0!==n[e]&&(r=e)}));const i=Object.keys(t).sort(((e,n)=>t[e]-t[n]));return i.slice(0,i.indexOf(r))}const Fe=(0,ne.Ay)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:i,item:o,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach((t=>{const i=e[t];Number(i)>0&&r.push(n[`spacing-${t}-${String(i)}`])})),r}(a,c,t));const d=[];return c.forEach((e=>{const r=n[e];r&&d.push(t[`grid-${e}-${String(r)}`])})),[t.root,r&&t.container,o&&t.item,l&&t.zeroMinWidth,...u,"row"!==i&&t[`direction-xs-${String(i)}`],"wrap"!==s&&t[`wrap-xs-${String(s)}`],...d]}})((e=>{let{ownerState:t}=e;return(0,R.A)({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},"wrap"!==t.wrap&&{flexWrap:t.wrap})}),(function(e){let{theme:t,ownerState:n}=e;const r=(0,Oe.kW)({values:n.direction,breakpoints:t.breakpoints.values});return(0,Oe.NI)({theme:t},r,(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${je.item}`]={maxWidth:"none"}),t}))}),(function(e){let{theme:t,ownerState:n}=e;const{container:r,rowSpacing:i}=n;let o={};if(r&&0!==i){const e=(0,Oe.kW)({values:i,breakpoints:t.breakpoints.values});let n;"object"===typeof e&&(n=Le({breakpoints:t.breakpoints.values,values:e})),o=(0,Oe.NI)({theme:t},e,((e,r)=>{var i;const o=t.spacing(e);return"0px"!==o?{marginTop:`-${De(o)}`,[`& > .${je.item}`]:{paddingTop:De(o)}}:null!=(i=n)&&i.includes(r)?{}:{marginTop:0,[`& > .${je.item}`]:{paddingTop:0}}}))}return o}),(function(e){let{theme:t,ownerState:n}=e;const{container:r,columnSpacing:i}=n;let o={};if(r&&0!==i){const e=(0,Oe.kW)({values:i,breakpoints:t.breakpoints.values});let n;"object"===typeof e&&(n=Le({breakpoints:t.breakpoints.values,values:e})),o=(0,Oe.NI)({theme:t},e,((e,r)=>{var i;const o=t.spacing(e);return"0px"!==o?{width:`calc(100% + ${De(o)})`,marginLeft:`-${De(o)}`,[`& > .${je.item}`]:{paddingLeft:De(o)}}:null!=(i=n)&&i.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${je.item}`]:{paddingLeft:0}}}))}return o}),(function(e){let t,{theme:n,ownerState:r}=e;return n.breakpoints.keys.reduce(((e,i)=>{let o={};if(r[i]&&(t=r[i]),!t)return e;if(!0===t)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===t)o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=(0,Oe.kW)({values:r.columns,breakpoints:n.breakpoints.values}),s="object"===typeof a?a[i]:a;if(void 0===s||null===s)return e;const l=Math.round(t/s*1e8)/1e6+"%";let c={};if(r.container&&r.item&&0!==r.columnSpacing){const e=n.spacing(r.columnSpacing);if("0px"!==e){const t=`calc(${l} + ${De(e)})`;c={flexBasis:t,maxWidth:t}}}o=(0,R.A)({flexBasis:l,flexGrow:0,maxWidth:l},c)}return 0===n.breakpoints.values[i]?Object.assign(e,o):e[n.breakpoints.up(i)]=o,e}),{})}));const Be=e=>{const{classes:t,container:n,direction:r,item:i,spacing:o,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let c=[];n&&(c=function(e,t){if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[`spacing-xs-${String(e)}`];const n=[];return t.forEach((t=>{const r=e[t];if(Number(r)>0){const e=`spacing-${t}-${String(r)}`;n.push(e)}})),n}(o,l));const u=[];l.forEach((t=>{const n=e[t];n&&u.push(`grid-${t}-${String(n)}`)}));const d={root:["root",n&&"container",i&&"item",s&&"zeroMinWidth",...c,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==a&&`wrap-xs-${String(a)}`,...u]};return(0,pe.A)(d,Re,t)};var Ue=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiGrid"}),{breakpoints:r}=(0,re.A)(),i=(0,Ne.A)(n),{className:o,columns:a,columnSpacing:s,component:l="div",container:u=!1,direction:d="row",item:p=!1,rowSpacing:h,spacing:f=0,wrap:m="wrap",zeroMinWidth:g=!1}=i,b=(0,P.A)(i,Me),v=h||f,y=s||f,x=c.useContext(Ie),w=u?a||12:x,A={},E=(0,R.A)({},b);r.keys.forEach((e=>{null!=b[e]&&(A[e]=b[e],delete E[e])}));const S=(0,R.A)({},i,{columns:w,container:u,direction:d,item:p,rowSpacing:v,columnSpacing:y,wrap:m,zeroMinWidth:g,spacing:f},A,{breakpoints:r.keys}),_=Be(S);return(0,L.jsx)(Ie.Provider,{value:w,children:(0,L.jsx)(Fe,(0,R.A)({ownerState:S,className:(0,de.A)(_.root,o),as:l,ref:t},E))})})),ze=__webpack_require__(74745),He=__webpack_require__(59063),$e=__webpack_require__(99269),Ve=__webpack_require__(23235),Ge=(0,Ve.A)((0,L.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),We=__webpack_require__(8079);const qe=["slots","slotProps"],Ye=(0,ne.Ay)(We.A)((e=>{let{theme:t}=e;
75return(0,R.A)({display:"flex",marginLeft:`calc(${t.spacing(1)} * 0.5)`,marginRight:`calc(${t.spacing(1)} * 0.5)`},"light"===t.palette.mode?{backgroundColor:t.palette.grey[100],color:t.palette.grey[700]}:{backgroundColor:t.palette.grey[700],color:t.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":(0,R.A)({},"light"===t.palette.mode?{backgroundColor:t.palette.grey[200]}:{backgroundColor:t.palette.grey[600]}),"&:active":(0,R.A)({boxShadow:t.shadows[0]},"light"===t.palette.mode?{backgroundColor:(0,$e.tL)(t.palette.grey[200],.12)}:{backgroundColor:(0,$e.tL)(t.palette.grey[600],.12)})})})),Ke=(0,ne.Ay)(Ge)({width:24,height:16});var Xe=function(e){const{slots:t={},slotProps:n={}}=e,r=(0,P.A)(e,qe),i=e;return(0,L.jsx)("li",{children:(0,L.jsx)(Ye,(0,R.A)({focusRipple:!0},r,{ownerState:i,children:(0,L.jsx)(Ke,(0,R.A)({as:t.CollapsedIcon,ownerState:i},n.collapsedIcon))}))})};function Ze(e){return(0,ge.Ay)("MuiBreadcrumbs",e)}var Qe=(0,me.A)("MuiBreadcrumbs",["root","ol","li","separator"]);const Je=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],et=(0,ne.Ay)(Te.A,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${Qe.li}`]:t.li},t.root]})({}),tt=(0,ne.Ay)("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),nt=(0,ne.Ay)("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function rt(e,t,n,r){return e.reduce(((i,o,a)=>(a<e.length-1?i=i.concat(o,(0,L.jsx)(nt,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${a}`)):i.push(o),i)),[])}var it=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiBreadcrumbs"}),{children:r,className:i,component:o="nav",slots:a={},slotProps:s={},expandText:l="Show path",itemsAfterCollapse:u=1,itemsBeforeCollapse:d=1,maxItems:p=8,separator:h="/"}=n,f=(0,P.A)(n,Je),[m,g]=c.useState(!1),b=(0,R.A)({},n,{component:o,expanded:m,expandText:l,itemsAfterCollapse:u,itemsBeforeCollapse:d,maxItems:p,separator:h}),v=(e=>{const{classes:t}=e;return(0,pe.A)({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},Ze,t)})(b),y=(0,He.A)({elementType:a.CollapsedIcon,externalSlotProps:s.collapsedIcon,ownerState:b}),x=c.useRef(null),w=c.Children.toArray(r).filter((e=>c.isValidElement(e))).map(((e,t)=>(0,L.jsx)("li",{className:v.li,children:e},`child-${t}`)));return(0,L.jsx)(et,(0,R.A)({ref:t,component:o,color:"text.secondary",className:(0,de.A)(v.root,i),ownerState:b},f,{children:(0,L.jsx)(tt,{className:v.ol,ref:x,ownerState:b,children:rt(m||p&&w.length<=p?w:(e=>d+u>=e.length?e:[...e.slice(0,d),(0,L.jsx)(Xe,{"aria-label":l,slots:{CollapsedIcon:a.CollapsedIcon},slotProps:{collapsedIcon:y},onClick:()=>{g(!0);const e=x.current.querySelector("a[href],button,[tabindex]");e&&e.focus()}},"ellipsis"),...e.slice(e.length-u,e.length)])(w),v.separator,h,b)})}))}));var ot={basename:"/home",defaultPath:"/",fontFamily:"'Roboto', sans-serif",borderRadius:12,theme:__webpack_require__(22064).BB};const at=260;function st(){return st=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},st.apply(this,arguments)}function lt(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var ct=["size","color","stroke"];var ut=["size","color","stroke"];var dt=["size","color","stroke"];function pt(e){var t=e.size,n=void 0===t?24:t,r=e.color,i=void 0===r?"currentColor":r,o=e.stroke,a=void 0===o?2:o,s=lt(e,dt);return c.createElement("svg",st({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-apps",width:n,height:n,viewBox:"0 0 24 24",strokeWidth:a,stroke:i,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},s),c.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.createElement("rect",{x:4,y:4,width:6,height:6,rx:1}
75),c.createElement("rect",{x:4,y:14,width:6,height:6,rx:1}),c.createElement("rect",{x:14,y:14,width:6,height:6,rx:1}),c.createElement("line",{x1:14,y1:7,x2:20,y2:7}),c.createElement("line",{x1:17,y1:4,x2:17,y2:10}))}var ht=["size","color","stroke"];function ft(e){var t=e.size,n=void 0===t?24:t,r=e.color,i=void 0===r?"currentColor":r,o=e.stroke,a=void 0===o?2:o,s=lt(e,ht);return c.createElement("svg",st({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-bell",width:n,height:n,viewBox:"0 0 24 24",strokeWidth:a,stroke:i,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},s),c.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.createElement("path",{d:"M10 5a2 2 0 0 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6"}),c.createElement("path",{d:"M9 17v1a3 3 0 0 0 6 0v-1"}))}var mt=["size","color","stroke"];var gt=["size","color","stroke"];var bt=["size","color","stroke"];var vt=["size","color","stroke"];function yt(e){var t=e.size,n=void 0===t?24:t,r=e.color,i=void 0===r?"currentColor":r,o=e.stroke,a=void 0===o?2:o,s=lt(e,vt);return c.createElement("svg",st({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-building-store",width:n,height:n,viewBox:"0 0 24 24",strokeWidth:a,stroke:i,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},s),c.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.createElement("line",{x1:3,y1:21,x2:21,y2:21}),c.createElement("path",{d:"M3 7v1a3 3 0 0 0 6 0v-1m0 1a3 3 0 0 0 6 0v-1m0 1a3 3 0 0 0 6 0v-1h-18l2 -4h14l2 4"}),c.createElement("line",{x1:5,y1:21,x2:5,y2:10.85}),c.createElement("line",{x1:19,y1:21,x2:19,y2:10.85}),c.createElement("path",{d:"M9 21v-4a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v4"}))}var xt=["size","color","stroke"];function wt(e){var t=e.size,n=void 0===t?24:t,r=e.color,i=void 0===r?"currentColor":r,o=e.stroke,a=void 0===o?2:o,s=lt(e,xt);return c.createElement("svg",st({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-building",width:n,height:n,viewBox:"0 0 24 24",strokeWidth:a,stroke:i,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},s),c.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.createElement("line",{x1:3,y1:21,x2:21,y2:21}),c.createElement("line",{x1:9,y1:8,x2:10,y2:8}),c.createElement("line",{x1:9,y1:12,x2:10,y2:12}),c.createElement("line",{x1:9,y1:16,x2:10,y2:16}),c.createElement("line",{x1:14,y1:8,x2:15,y2:8}),c.createElement("line",{x1:14,y1:12,x2:15,y2:12}),c.createElement("line",{x1:14,y1:16,x2:15,y2:16}),c.createElement("path",{d:"M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16"}))}var At=["size","color","stroke"];var Et=["size","color","stroke"];function St(e){var t=e.size,n=void 0===t?24:t,r=e.color,i=void 0===r?"currentColor":r,o=e.stroke,a=void 0===o?2:o,s=lt(e,Et);return c.createElement("svg",st({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-chevron-right",width:n,height:n,viewBox:"0 0 24 24",strokeWidth:a,stroke:i,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},s),c.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.createElement("polyline",{points:"9 6 15 12 9 18"}))}var _t=["size","color","stroke"];var kt=["size","color","stroke"];function Tt(e){var t=e.size,n=void 0===t?24:t,r=e.color,i=void 0===r?"currentColor":r,o=e.stroke,a=void 0===o?2:o,s=lt(e,kt);return c.createElement("svg",st({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-database",width:n,height:n,viewBox:"0 0 24 24",strokeWidth:a,stroke:i,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},s),c.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.createElement("ellipse",{cx:12,cy:6,rx:8,ry:3}),c.createElement("path",{d:"M4 6v6a8 3 0 0 0 16 0v-6"}),c.createElement("path",{d:"M4 12v6a8 3 0 0 0 16 0v-6"}))}var Ct=["size","color","stroke"];function Ot(e){var t=e.size,n=void 0===t?24:t,r=e.color,i=void 0===r?"currentColor":r,o=e.stroke,a=void 0===o?2:o,s=lt(e,Ct);return c.createElement("svg",st({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-edit",width:n,height:n,viewBox:"0 0 24 24",strokeWidth:a,stroke:i,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},s),c.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.createElement("path",{d:"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1"}),c.createElement("path",{d:"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z"}),c.createElement("path",{d:"M16 5l3 3"}))}var Nt=["size","color","stroke"];var It=["size","color","stroke"];
75function Rt(e){var t=e.size,n=void 0===t?24:t,r=e.color,i=void 0===r?"currentColor":r,o=e.stroke,a=void 0===o?2:o,s=lt(e,It);return c.createElement("svg",st({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-graph",width:n,height:n,viewBox:"0 0 24 24",strokeWidth:a,stroke:i,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},s),c.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.createElement("path",{d:"M4 18v-12a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"}),c.createElement("path",{d:"M7 14l3 -3l2 2l3 -3l2 2"}))}var Pt=["size","color","stroke"];var jt=["size","color","stroke"];function Mt(e){var t=e.size,n=void 0===t?24:t,r=e.color,i=void 0===r?"currentColor":r,o=e.stroke,a=void 0===o?2:o,s=lt(e,jt);return c.createElement("svg",st({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-key",width:n,height:n,viewBox:"0 0 24 24",strokeWidth:a,stroke:i,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},s),c.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.createElement("path",{d:"M16.555 3.843l3.602 3.602a2.877 2.877 0 0 1 0 4.069l-2.643 2.643a2.877 2.877 0 0 1 -4.069 0l-.301 -.301l-6.558 6.558a2 2 0 0 1 -1.239 .578l-.175 .008h-1.172a1 1 0 0 1 -.993 -.883l-.007 -.117v-1.172a2 2 0 0 1 .467 -1.284l.119 -.13l.414 -.414h2v-2h2v-2l2.144 -2.144l-.301 -.301a2.877 2.877 0 0 1 0 -4.069l2.643 -2.643a2.877 2.877 0 0 1 4.069 0z"}),c.createElement("path",{d:"M15 9h.01"}))}var Dt=["size","color","stroke"];function Lt(e){var t=e.size,n=void 0===t?24:t,r=e.color,i=void 0===r?"currentColor":r,o=e.stroke,a=void 0===o?2:o,s=lt(e,Dt);return c.createElement("svg",st({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-logout",width:n,height:n,viewBox:"0 0 24 24",strokeWidth:a,stroke:i,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},s),c.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.createElement("path",{d:"M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2"}),c.createElement("path",{d:"M7 12h14l-3 -3m0 6l3 -3"}))}var Ft=["size","color","stroke"];function Bt(e){var t=e.size,n=void 0===t?24:t,r=e.color,i=void 0===r?"currentColor":r,o=e.stroke,a=void 0===o?2:o,s=lt(e,Ft);return c.createElement("svg",st({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-menu-2",width:n,height:n,viewBox:"0 0 24 24",strokeWidth:a,stroke:i,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},s),c.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.createElement("line",{x1:4,y1:6,x2:20,y2:6}),c.createElement("line",{x1:4,y1:12,x2:20,y2:12}),c.createElement("line",{x1:4,y1:18,x2:20,y2:18}))}var Ut=["size","color","stroke"];var zt=["size","color","stroke"];function Ht(e){var t=e.size,n=void 0===t?24:t,r=e.color,i=void 0===r?"currentColor":r,o=e.stroke,a=void 0===o?2:o,s=lt(e,zt);return c.createElement("svg",st({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-search",width:n,height:n,viewBox:"0 0 24 24",strokeWidth:a,stroke:i,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},s),c.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.createElement("circle",{cx:10,cy:10,r:7}),c.createElement("line",{x1:21,y1:21,x2:15,y2:15}))}var $t=["size","color","stroke"];function Vt(e){var t=e.size,n=void 0===t?24:t,r=e.color,i=void 0===r?"currentColor":r,o=e.stroke,a=void 0===o?2:o,s=lt(e,$t);return c.createElement("svg",st({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-settings",width:n,height:n,viewBox:"0 0 24 24",strokeWidth:a,stroke:i,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},s),c.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.createElement("path",{d:"M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z"}),c.createElement("circle",{cx:12,cy:12,r:3}))}var Gt=["size","color","stroke"];
75function Wt(e){var t=e.size,n=void 0===t?24:t,r=e.color,i=void 0===r?"currentColor":r,o=e.stroke,a=void 0===o?2:o,s=lt(e,Gt);return c.createElement("svg",st({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-tallymark-1",width:n,height:n,viewBox:"0 0 24 24",strokeWidth:a,stroke:i,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},s),c.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.createElement("line",{x1:12,y1:5,x2:12,y2:19}))}var qt=["size","color","stroke"];function Yt(e){var t=e.size,n=void 0===t?24:t,r=e.color,i=void 0===r?"currentColor":r,o=e.stroke,a=void 0===o?2:o,s=lt(e,qt);return c.createElement("svg",st({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-trash",width:n,height:n,viewBox:"0 0 24 24",strokeWidth:a,stroke:i,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},s),c.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.createElement("line",{x1:4,y1:7,x2:20,y2:7}),c.createElement("line",{x1:10,y1:11,x2:10,y2:17}),c.createElement("line",{x1:14,y1:11,x2:14,y2:17}),c.createElement("path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12"}),c.createElement("path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"}))}var Kt=["size","color","stroke"];var Xt=["size","color","stroke"];function Zt(e){var t=e.size,n=void 0===t?24:t,r=e.color,i=void 0===r?"currentColor":r,o=e.stroke,a=void 0===o?2:o,s=lt(e,Xt);return c.createElement("svg",st({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-user-plus",width:n,height:n,viewBox:"0 0 24 24",strokeWidth:a,stroke:i,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},s),c.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.createElement("circle",{cx:9,cy:7,r:4}),c.createElement("path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}),c.createElement("path",{d:"M16 11h6m-3 -3v6"}))}var Qt=["size","color","stroke"];function Jt(e){var t=e.size,n=void 0===t?24:t,r=e.color,i=void 0===r?"currentColor":r,o=e.stroke,a=void 0===o?2:o,s=lt(e,Qt);return c.createElement("svg",st({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-users",width:n,height:n,viewBox:"0 0 24 24",strokeWidth:a,stroke:i,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},s),c.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.createElement("circle",{cx:9,cy:7,r:4}),c.createElement("path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}),c.createElement("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"}),c.createElement("path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85"}))}var en=["size","color","stroke"];var tn=["size","color","stroke"];var nn=["size","color","stroke"];function rn(e){var t=e.size,n=void 0===t?24:t,r=e.color,i=void 0===r?"currentColor":r,o=e.stroke,a=void 0===o?2:o,s=lt(e,nn);return c.createElement("svg",st({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-x",width:n,height:n,viewBox:"0 0 24 24",strokeWidth:a,stroke:i,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},s),c.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.createElement("line",{x1:18,y1:6,x2:6,y2:18}),c.createElement("line",{x1:6,y1:6,x2:18,y2:18}))}var on=__webpack_require__(92696),an=__webpack_require__(9768),sn=__webpack_require__(89988);const ln={display:"flex",color:"grey.900",textDecoration:"none",alignContent:"center",alignItems:"center"};var cn=e=>{let{card:t,divider:n,icon:r,icons:o,maxItems:a,navigation:s,rightAlign:l,separator:u,title:d,titleBottom:p,...h}=e;const f=(0,re.A)(),m={marginRight:f.spacing(.75),marginTop:`-${f.spacing(.25)}
75`,width:"1rem",height:"1rem",color:f.palette.secondary.main},[g,b]=(0,c.useState)(),[v,y]=(0,c.useState)(),x=e=>{e.children&&e.children.filter((t=>(t.type&&"collapse"===t.type?x(t):t.type&&"item"===t.type&&document.location.pathname===ot.basename+t.url&&(b(e),y(t)),!1)))};(0,c.useEffect)((()=>{var e;null===s||void 0===s||null===(e=s.items)||void 0===e||e.map((e=>(e.type&&"group"===e.type&&x(e),!1)))}));const w=u,A=u?(0,L.jsx)(w,{stroke:1.5,size:"1rem"}):(0,L.jsx)(Wt,{stroke:1.5,size:"1rem"});let E,S,_,k,T=(0,L.jsx)(Te.A,{}),C="";return g&&"collapse"===g.type&&(_=g.icon?g.icon:on.A,E=(0,L.jsxs)(Te.A,{component:i.N_,to:"#",variant:"subtitle1",sx:ln,children:[o&&(0,L.jsx)(_,{style:m}),g.title]})),v&&"item"===v.type&&(C=v.title,k=v.icon?v.icon:on.A,S=(0,L.jsxs)(Te.A,{variant:"subtitle1",sx:{display:"flex",textDecoration:"none",alignContent:"center",alignItems:"center",color:"grey.500"},children:[o&&(0,L.jsx)(k,{style:m}),C]}),!1!==v.breadcrumbs&&(T=(0,L.jsxs)(Ce.A,{sx:{marginBottom:!1===t?0:f.spacing(3),border:!1===t?"none":"1px solid",borderColor:f.palette.primary[200]+75,background:!1===t?"transparent":f.palette.background.default},...h,children:[(0,L.jsx)(ue.A,{sx:{p:2,pl:!1===t?0:2},children:(0,L.jsxs)(Ue,{container:!0,direction:l?"row":"column",justifyContent:l?"space-between":"flex-start",alignItems:l?"center":"flex-start",spacing:1,children:[d&&!p&&(0,L.jsx)(Ue,{item:!0,children:(0,L.jsx)(Te.A,{variant:"h3",sx:{fontWeight:500},children:v.title})}),(0,L.jsx)(Ue,{item:!0,children:(0,L.jsxs)(it,{sx:{"& .MuiBreadcrumbs-separator":{width:16,ml:1.25,mr:1.25}},"aria-label":"breadcrumb",maxItems:a||8,separator:A,children:[(0,L.jsxs)(Te.A,{component:i.N_,to:"/",color:"inherit",variant:"subtitle1",sx:ln,children:[o&&(0,L.jsx)(sn.A,{sx:m}),r&&(0,L.jsx)(an.A,{sx:{...m,mr:0}}),!r&&"Dashboard"]}),E,S]})}),d&&p&&(0,L.jsx)(Ue,{item:!0,children:(0,L.jsx)(Te.A,{variant:"h3",sx:{fontWeight:500},children:v.title})})]})}),!1===t&&!1!==n&&(0,L.jsx)(ze.A,{sx:{borderColor:f.palette.primary.main,mb:3}})]}))),T},un=(0,Ve.A)((0,L.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function dn(e){return(0,ge.Ay)("MuiAvatar",e)}(0,me.A)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);var pn=__webpack_require__(5393),hn=__webpack_require__(94589),fn=__webpack_require__(91011),mn=__webpack_require__(67313);const gn=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],bn=["component","slots","slotProps"],vn=["component"];function yn(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:o,getSlotOwnerState:a,internalForwardedProps:s}=t,l=(0,P.A)(t,gn),{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0}}=o,p=(0,P.A)(o,bn),h=u[e]||r,f=(0,fn.A)(d[e],i),m=(0,mn.A)((0,R.A)({className:n},l,{externalForwardedProps:"root"===e?p:void 0,externalSlotProps:f})),{props:{component:g},internalRef:b}=m,v=(0,P.A)(m.props,vn),y=(0,pn.A)(b,null==f?void 0:f.ref,t.ref),x=a?a(v):{},w=(0,R.A)({},i,x),A="root"===e?g||c:g,E=(0,hn.A)(h,(0,R.A)({},"root"===e&&!c&&!u[e]&&s,"root"!==e&&!u[e]&&s,v,A&&{as:A},{ref:y}),w);return Object.keys(x).forEach((e=>{delete E[e]})),[h,E]}const xn=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],wn=(0,ne.Ay)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})((e=>{let{theme:t}=e;return{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(t.vars||t).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:(0,R.A)({color:(t.vars||t).palette.background.default},t.vars?{backgroundColor:t.vars.palette.Avatar.defaultBg}:(0,R.A)({backgroundColor:t.palette.grey[400]},t.applyStyles("dark",{backgroundColor:t.palette.grey[600]})))}]}})),An=(0,ne.Ay)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),En=(0,ne.Ay)(un,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});const Sn=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiAvatar"}),{alt:r,children:i,className:o,component:a="div",slots:s={},slotProps:l={},imgProps:u,sizes:d,src:p,srcSet:h,variant:f="circular"}=n,m=(0,P.A)(n,xn);let g=null;const b=function(e){let{crossOrigin:t,referrerPolicy:n,src:r,srcSet:i}=e;const[o,a]=c.useState(!1);return c.useEffect((()=>
vendor: 9,379 bytes, line 75
75{if(!r&&!i)return;a(!1);let e=!0;const o=new Image;return o.onload=()=>{e&&a("loaded")},o.onerror=()=>{e&&a("error")},o.crossOrigin=t,o.referrerPolicy=n,o.src=r,i&&(o.srcset=i),()=>{e=!1}}),[t,n,r,i]),o}((0,R.A)({},u,{src:p,srcSet:h})),v=p||h,y=v&&"error"!==b,x=(0,R.A)({},n,{colorDefault:!y,component:a,variant:f}),w=(e=>{const{classes:t,variant:n,colorDefault:r}=e,i={root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]};return(0,pe.A)(i,dn,t)})(x),[A,E]=yn("img",{className:w.img,elementType:An,externalForwardedProps:{slots:s,slotProps:{img:(0,R.A)({},u,l.img)}},additionalProps:{alt:r,src:p,srcSet:h,sizes:d},ownerState:x});return g=y?(0,L.jsx)(A,(0,R.A)({},E)):i||0===i?i:v&&r?r[0]:(0,L.jsx)(En,{ownerState:x,className:w.fallback}),(0,L.jsx)(wn,(0,R.A)({as:a,ownerState:x,className:(0,de.A)(w.root,o),ref:t},m,{children:g}))}));var _n=Sn,kn=__webpack_require__(71824),Tn=__webpack_require__(52253),Cn=__webpack_require__(40165),On=__webpack_require__(25329),Nn=__webpack_require__(26907);function In(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Rn(e){return e instanceof In(e).Element||e instanceof Element}function Pn(e){return e instanceof In(e).HTMLElement||e instanceof HTMLElement}function jn(e){return"undefined"!==typeof ShadowRoot&&(e instanceof In(e).ShadowRoot||e instanceof ShadowRoot)}var Mn=Math.max,Dn=Math.min,Ln=Math.round;function Fn(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Bn(){return!/^((?!chrome|android).)*safari/i.test(Fn())}function Un(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Pn(e)&&(i=e.offsetWidth>0&&Ln(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Ln(r.height)/e.offsetHeight||1);var a=(Rn(e)?In(e):window).visualViewport,s=!Bn()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/i,c=(r.top+(s&&a?a.offsetTop:0))/o,u=r.width/i,d=r.height/o;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function zn(e){var t=In(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Hn(e){return e?(e.nodeName||"").toLowerCase():null}function $n(e){return((Rn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Vn(e){return Un($n(e)).left+zn(e).scrollLeft}function Gn(e){return In(e).getComputedStyle(e)}function Wn(e){var t=Gn(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function qn(e,t,n){void 0===n&&(n=!1);var r=Pn(t),i=Pn(t)&&function(e){var t=e.getBoundingClientRect(),n=Ln(t.width)/e.offsetWidth||1,r=Ln(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),o=$n(t),a=Un(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Hn(t)||Wn(o))&&(s=function(e){return e!==In(e)&&Pn(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:zn(e);var t}(t)),Pn(t)?((l=Un(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Vn(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Yn(e){var t=Un(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Kn(e){return"html"===Hn(e)?e:e.assignedSlot||e.parentNode||(jn(e)?e.host:null)||$n(e)}function Xn(e){return["html","body","#document"].indexOf(Hn(e))>=0?e.ownerDocument.body:Pn(e)&&Wn(e)?e:Xn(Kn(e))}function Zn(e,t){var n;void 0===t&&(t=[]);var r=Xn(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=In(r),a=i?[o].concat(o.visualViewport||[],Wn(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Zn(Kn(a)))}function Qn(e){return["table","td","th"].indexOf(Hn(e))>=0}function Jn(e){return Pn(e)&&"fixed"!==Gn(e).position?e.offsetParent:null}function er(e){for(var t=In(e),n=Jn(e);n&&Qn(n)&&"static"===Gn(n).position;)n=Jn(n);return n&&("html"===Hn(n)||"body"===Hn(n)&&"static"===Gn(n).position)?t:n||function(e){var t=/firefox/i.test(Fn());if(/Trident/i.test(Fn())&&Pn(e)&&"fixed"===Gn(e).position)return null;var n=Kn(e);for(jn(n)&&(n=n.host);Pn(n)&&["html","body"].indexOf(Hn(n))<0;){var r=Gn(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var tr="top",nr="bottom",rr="right",ir="left",or="auto",ar=[tr,nr,rr,ir],sr="start",lr="end",cr="viewport",ur="popper",dr=ar.reduce((function(e,t){return e.concat([t+"-"+sr,t+"-"+lr])}),[]),pr=[].concat(ar,[or]).reduce((function(e,t){return e.concat([t,t+"-"+sr,t+"-"+lr])}),[]),hr=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function fr(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function mr(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var gr={placement:"bottom",modifiers:[],strategy:"absolute"};function br(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function vr(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,o=void 0===i?gr:i;return function(e,t,n){void 0===n&&(n=o);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},gr,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,l={state:i,setOptions:function(n){var s="function"===typeof n?n(i.options):n;c(),i.options=Object.assign({},o,i.options,s),i.scrollParents={reference:Rn(e)?Zn(e):e.contextElement?Zn(e.contextElement):[],popper:Zn(t)};var u=function(e){var t=fr(e);return hr.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,i.options.modifiers)));return i.orderedModifiers=u.filter((function(e){return e.enabled})),i.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"===typeof o){var s=o({state:i,name:t,instance:l,options:r}),c=function(){};a.push(s||c)}})),l.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(br(t,n)){i.rects={reference:qn(t,er(n),"fixed"===i.options.strategy),popper:Yn(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var o=i.orderedModifiers[r],a=o.fn,c=o.options,u=void 0===c?{}:c,d=o.name;"function"===typeof a&&(i=a({state:i,options:u,name:d,instance:l})||i)}else i.reset=!1,r=-1}}},update:mr((function(){return new Promise((function(e){l.forceUpdate(),e(i)}))})),destroy:function(){c(),s=!0}};if(!br(e,t))return l;function c(){a.forEach((function(e){return e()})),a=[]}return l.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var yr={passive:!0};function xr(e){return e.split("-")[0]}function wr(e){return e.split("-")[1]}function Ar(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Er(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?xr(i):null,a=i?wr(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case tr:t={x:s,y:n.y-r.height};break;case nr:t={x:s,y:n.y+n.height};break;case rr:t={x:n.x+n.width,y:l};break;case ir:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?Ar(o):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case sr:t[c]=t[c]-(n[u]/2-r[u]/2);break;case lr:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var Sr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _r(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=a.x,h=void 0===p?0:p,f=a.y,m=void 0===f?0:f,g="function"===typeof u?u({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var b=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),y=ir,x=tr,w=window;if(c){var A=er(n),E="clientHeight",S="clientWidth";if(A===In(n)&&"static"!==Gn(A=$n(n)).position&&"absolute"===s&&(E="scrollHeight",S="scrollWidth"),i===tr||(i===ir||i===rr)&&o===lr)x=nr,m-=(d&&A===w&&w.visualViewport?w.visualViewport.height:A[E])-r.height,m*=l?1:-1;if(i===ir||(i===tr||i===nr)&&o===lr)y=rr,h-=(d&&A===w&&w.visualViewport?w.visualViewport.width:A[S])-r.width,h*=l?1:-1}var _,k=Object.assign({position:s},c&&Sr),T=!0===u?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Ln(n*i)/i||0,y:Ln(r*i)/i||0}}({x:h,y:m},In(n)):{x:h,y:m};return h=T.x,m=T.y,l?Object.assign({},k,((_={})[x]=v?"0":"",_[y]=b?"0":"",_.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",_)):Object.assign({},k,((t={})[x]=v?m+"px":"",t[y]=b?h+"px":"",t.transform="",t))}
vendor: 5,307 bytes, line 75
75var kr={left:"right",right:"left",bottom:"top",top:"bottom"};function Tr(e){return e.replace(/left|right|bottom|top/g,(function(e){return kr[e]}))}var Cr={start:"end",end:"start"};function Or(e){return e.replace(/start|end/g,(function(e){return Cr[e]}))}function Nr(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&jn(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ir(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Rr(e,t,n){return t===cr?Ir(function(e,t){var n=In(e),r=$n(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=Bn();(c||!c&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+Vn(e),y:l}}(e,n)):Rn(t)?function(e,t){var n=Un(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Ir(function(e){var t,n=$n(e),r=zn(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=Mn(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Mn(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Vn(e),l=-r.scrollTop;return"rtl"===Gn(i||n).direction&&(s+=Mn(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}($n(e)))}function Pr(e,t,n,r){var i="clippingParents"===t?function(e){var t=Zn(Kn(e)),n=["absolute","fixed"].indexOf(Gn(e).position)>=0&&Pn(e)?er(e):e;return Rn(n)?t.filter((function(e){return Rn(e)&&Nr(e,n)&&"body"!==Hn(e)})):[]}(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce((function(t,n){var i=Rr(e,n,r);return t.top=Mn(i.top,t.top),t.right=Dn(i.right,t.right),t.bottom=Dn(i.bottom,t.bottom),t.left=Mn(i.left,t.left),t}),Rr(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function jr(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Mr(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Dr(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,a=void 0===o?e.strategy:o,s=n.boundary,l=void 0===s?"clippingParents":s,c=n.rootBoundary,u=void 0===c?cr:c,d=n.elementContext,p=void 0===d?ur:d,h=n.altBoundary,f=void 0!==h&&h,m=n.padding,g=void 0===m?0:m,b=jr("number"!==typeof g?g:Mr(g,ar)),v=p===ur?"reference":ur,y=e.rects.popper,x=e.elements[f?v:p],w=Pr(Rn(x)?x:x.contextElement||$n(e.elements.popper),l,u,a),A=Un(e.elements.reference),E=Er({reference:A,element:y,strategy:"absolute",placement:i}),S=Ir(Object.assign({},y,E)),_=p===ur?S:A,k={top:w.top-_.top+b.top,bottom:_.bottom-w.bottom+b.bottom,left:w.left-_.left+b.left,right:_.right-w.right+b.right},T=e.modifiersData.offset;if(p===ur&&T){var C=T[i];Object.keys(k).forEach((function(e){var t=[rr,nr].indexOf(e)>=0?1:-1,n=[tr,nr].indexOf(e)>=0?"y":"x";k[e]+=C[n]*t}))}return k}var Lr={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,f=void 0===h||h,m=n.allowedAutoPlacements,g=t.options.placement,b=xr(g),v=l||(b===g||!f?[Tr(g)]:function(e){if(xr(e)===or)return[];var t=Tr(e);return[Or(e),t,Or(t)]}(g)),y=[g].concat(v).reduce((function(e,n){return e.concat(xr(n)===or?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?pr:l,u=wr(r),d=u?s?dr:dr.filter((function(e){return wr(e)===u})):ar,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var h=p.reduce((function(t,n){return t[n]=Dr(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[xr(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,w=t.rects.popper,A=new Map,E=!0,S=y[0],_=0;_<y.length;_++){var k=y[_],T=xr(k),C=wr(k)===sr,O=[tr,nr].indexOf(T)>=0,N=O?"width":"height",I=Dr(t,{placement:k,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),R=O?C?rr:ir:C?nr:tr;x[N]>w[N]&&(R=Tr(R));var P=Tr(R),j=[];if(o&&j.push(I[T]<=0),s&&j.push(I[R]<=0,I[P]<=0),j.every((function(e){return e}))){S=k,E=!1;break}A.set(k,j)}if(E)for(var M=function(e){var t=y.find((function(t){var n=A.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},D=f?3:1;D>0;D--){if("break"===M(D))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Fr(e,t,n){return Mn(e,Dn(t,n))}function Br(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ur(e){return[tr,rr,nr,ir].some((function(t){return e[t]>=0}))}var zr=vr({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,l=In(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);
vendor: 2,131 bytes, line 75
75return o&&c.forEach((function(e){e.addEventListener("scroll",n.update,yr)})),s&&l.addEventListener("resize",n.update,yr),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",n.update,yr)})),s&&l.removeEventListener("resize",n.update,yr)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Er({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,c={placement:xr(t.placement),variation:wr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,_r(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,_r(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];Pn(i)&&Hn(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});
vendor: 4,159 bytes, line 75
75Pn(r)&&Hn(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=pr.reduce((function(e,n){return e[n]=function(e,t,n){var r=xr(e),i=[ir,tr].indexOf(r)>=0?-1:1,o="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[ir,rr].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},Lr,{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,h=void 0===p||p,f=n.tetherOffset,m=void 0===f?0:f,g=Dr(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),b=xr(t.placement),v=wr(t.placement),y=!v,x=Ar(b),w="x"===x?"y":"x",A=t.modifiersData.popperOffsets,E=t.rects.reference,S=t.rects.popper,_="function"===typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,k="number"===typeof _?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(A){if(o){var O,N="y"===x?tr:ir,I="y"===x?nr:rr,R="y"===x?"height":"width",P=A[x],j=P+g[N],M=P-g[I],D=h?-S[R]/2:0,L=v===sr?E[R]:S[R],F=v===sr?-S[R]:-E[R],B=t.elements.arrow,U=h&&B?Yn(B):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=z[N],$=z[I],V=Fr(0,E[R],U[R]),G=y?E[R]/2-D-V-H-k.mainAxis:L-V-H-k.mainAxis,W=y?-E[R]/2+D+V+$+k.mainAxis:F+V+$+k.mainAxis,q=t.elements.arrow&&er(t.elements.arrow),Y=q?"y"===x?q.clientTop||0:q.clientLeft||0:0,K=null!=(O=null==T?void 0:T[x])?O:0,X=P+W-K,Z=Fr(h?Dn(j,P+G-K-Y):j,P,h?Mn(M,X):M);A[x]=Z,C[x]=Z-P}if(s){var Q,J="x"===x?tr:ir,ee="x"===x?nr:rr,te=A[w],ne="y"===w?"height":"width",re=te+g[J],ie=te-g[ee],oe=-1!==[tr,ir].indexOf(b),ae=null!=(Q=null==T?void 0:T[w])?Q:0,se=oe?re:te-E[ne]-S[ne]-ae+k.altAxis,le=oe?te+E[ne]+S[ne]-ae-k.altAxis:ie,ce=h&&oe?function(e,t,n){var r=Fr(e,t,n);return r>n?n:r}(se,te,le):Fr(h?se:re,te,h?le:ie);A[w]=ce,C[w]=ce-te}t.modifiersData[r]=C}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=xr(n.placement),l=Ar(s),c=[ir,rr].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(e,t){return jr("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Mr(e,ar))}(i.padding,n),d=Yn(o),p="y"===l?tr:ir,h="y"===l?nr:rr,f=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],g=er(o),b=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,v=f/2-m/2,y=u[p],x=b-d[c]-u[h],w=b/2-d[c]/2+v,A=Fr(y,w,x),E=l;n.modifiersData[r]=((t={})[E]=A,t.centerOffset=A-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&Nr(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Dr(t,{elementContext:"reference"}),s=Dr(t,{altBoundary:!0}),l=Br(a,r),c=Br(s,i,o),u=Ur(l),d=Ur(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),Hr=__webpack_require__(96039);function $r(e){return(0,ge.Ay)("MuiPopper",e)}(0,me.A)("MuiPopper",["root"]);const Vr=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","
75slots","TransitionProps","ownerState"],Gr=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Wr(e){return"function"===typeof e?e():e}function qr(e){return void 0!==e.nodeType}const Yr={},Kr=c.forwardRef((function(e,t){var n;const{anchorEl:r,children:i,direction:o,disablePortal:a,modifiers:s,open:l,placement:u,popperOptions:d,popperRef:p,slotProps:h={},slots:f={},TransitionProps:m}=e,g=(0,P.A)(e,Vr),b=c.useRef(null),v=(0,pn.A)(b,t),y=c.useRef(null),x=(0,pn.A)(y,p),w=c.useRef(x);(0,ie.A)((()=>{w.current=x}),[x]),c.useImperativeHandle(p,(()=>y.current),[]);const A=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(u,o),[E,S]=c.useState(A),[_,k]=c.useState(Wr(r));c.useEffect((()=>{y.current&&y.current.forceUpdate()})),c.useEffect((()=>{r&&k(Wr(r))}),[r]),(0,ie.A)((()=>{if(!_||!l)return;let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:e=>{let{state:t}=e;S(t.placement)}}];null!=s&&(e=e.concat(s)),d&&null!=d.modifiers&&(e=e.concat(d.modifiers));const t=zr(_,b.current,(0,R.A)({placement:A},d,{modifiers:e}));return w.current(t),()=>{t.destroy(),w.current(null)}}),[_,a,s,l,d,A]);const T={placement:E};null!==m&&(T.TransitionProps=m);const C=(e=>{const{classes:t}=e;return(0,pe.A)({root:["root"]},$r,t)})(e),O=null!=(n=f.root)?n:"div",N=(0,He.A)({elementType:O,externalSlotProps:h.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:C.root});return(0,L.jsx)(O,(0,R.A)({},N,{children:"function"===typeof i?i(T):i}))}));var Xr=c.forwardRef((function(e,t){const{anchorEl:n,children:r,container:i,direction:o="ltr",disablePortal:a=!1,keepMounted:s=!1,modifiers:l,open:u,placement:d="bottom",popperOptions:p=Yr,popperRef:h,style:f,transition:m=!1,slotProps:g={},slots:b={}}=e,v=(0,P.A)(e,Gr),[y,x]=c.useState(!0);if(!s&&!u&&(!m||y))return null;let w;if(i)w=i;else if(n){const e=Wr(n);w=e&&qr(e)?(0,Nn.A)(e).body:(0,Nn.A)(null).body}
75const A=u||!s||m&&!y?void 0:"none",E=m?{in:u,onEnter:()=>{x(!1)},onExited:()=>{x(!0)}}:void 0;return(0,L.jsx)(Hr.A,{disablePortal:a,container:w,children:(0,L.jsx)(Kr,(0,R.A)({anchorEl:n,direction:o,disablePortal:a,modifiers:l,ref:t,open:m?!y:u,placement:d,popperOptions:p,popperRef:h,slotProps:g,slots:b},v,{style:(0,R.A)({position:"fixed",top:0,left:0,display:A},f),TransitionProps:E,children:r}))})}));const Zr=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Qr=(0,ne.Ay)(Xr,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({});var Jr=c.forwardRef((function(e,t){var n;const r=(0,On.A)(),i=(0,X.b)({props:e,name:"MuiPopper"}),{anchorEl:o,component:a,components:s,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:h,placement:f,popperOptions:m,popperRef:g,transition:b,slots:v,slotProps:y}=i,x=(0,P.A)(i,Zr),w=null!=(n=null==v?void 0:v.root)?n:null==s?void 0:s.Root,A=(0,R.A)({anchorEl:o,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:h,placement:f,popperOptions:m,popperRef:g,transition:b},x);return(0,L.jsx)(Qr,(0,R.A)({as:a,direction:null==r?void 0:r.direction,slots:{root:w},slotProps:null!=y?y:l},A,{ref:t}))})),ei=__webpack_require__(1976),ti=__webpack_require__(31506),ni=__webpack_require__(31014),ri=__webpack_require__(41573),ii=__webpack_require__(48733);function oi(e){return(0,ge.Ay)("MuiTooltip",e)}var ai=(0,me.A)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);const si=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];const li=(0,ne.Ay)(Jr,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((e=>{let{theme:t,ownerState:n,open:r}=e;return(0,R.A)({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none"},!n.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},n.arrow&&{[`&[data-popper-placement*="bottom"] .${ai.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ai.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ai.arrow}`]:(0,R.A)({},n.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${ai.arrow}`]:(0,R.A)({},n.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})})),ci=(0,ne.Ay)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,he.A)(n.placement.split("-")[0])}`]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,R.A)({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:(0,$e.X4)(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium},n.arrow&&{position:"relative",margin:0},n.touch&&{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:(r=16/14,Math.round(1e5*r)/1e5)+"em",fontWeight:t.typography.fontWeightRegular},{[`.${ai.popper}[data-popper-placement*="left"] &`]:(0,R.A)({transformOrigin:"right center"},n.isRtl?(0,R.A)({marginLeft:"14px"},n.touch&&{marginLeft:"24px"}):(0,R.A)({marginRight:"14px"},n.touch&&{marginRight:"24px"})),[`.${ai.popper}[data-popper-placement*="right"] &`]:(0,R.A)({transformOrigin:"left center"},n.isRtl?(0,R.A)({marginRight:"14px"},n.touch&&{marginRight:"24px"}):(0,R.A)({marginLeft:"14px"},n.touch&&{marginLeft:"24px"})),[`.${ai.popper}[data-popper-placement*="top"] &`]:(0,R.A)({transformOrigin:"center bottom",marginBottom:"14px"},n.touch&&{marginBottom:"24px"}),[`.${ai.popper}[data-popper-placement*="bottom"] &`]:(0,R.A)({transformOrigin:"center top",marginTop:"14px"},n.touch&&{marginTop:"24px"})});var r})),ui=(0,ne.Ay)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((e=>{let{theme:t}=e;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:(0,$e.X4)(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}}));let di=!1;const pi=new kn.E;let hi={x:0,y:0};function fi(e,t){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];t&&t(n,...i),e(n,...i)}}var mi=c.forwardRef((function(e,t){var n,r,i,o,a,s,l,u,d,p,h,f,m,g,b,v,y,x,w;const A=(0,X.b)({props:e,name:"MuiTooltip"}),{arrow:E=!1,children:S,components:_={},componentsProps:k={},describeChild:T=!1,disableFocusListener:C=!1,disableHoverListener:O=!1,disableInteractive:N=!1,disableTouchListener:I=!1,enterDelay:j=100,enterNextDelay:M=0,enterTouchDelay:D=700,followCursor:F=!1,id:B,leaveDelay:U=0,leaveTouchDelay:H=1500,onClose:$,onOpen:V,open:G,placement:W="bottom",PopperComponent:q,PopperProps:Y={},slotProps:K={},slots:Z={},title:Q,TransitionComponent:J=Cn.A,TransitionProps:ee}=A,te=(0,P.A)(A,si),ne=c.isValidElement(S)?S:(0,L.jsx)("span",{children:S}),ie=(0,re.A)(),oe=(0,z.I)(),[ae,se]=c.useState(),[le,ce]=c.useState(null),ue=c.useRef(!1),fe=N||F,me=(0,kn.A)(),ge=(0,kn.A)(),be=(0,kn.A)(),ve=(0,kn.A)(),[ye,xe]=(0,ii.A)({controlled:G,default:!1,name:"Tooltip",state:"open"});let we=ye;const Ae=(0,ni.A)(B),Ee=c.useRef(),Se=(0,ei.A)((()=>{void 0!==Ee.current&&(document.body.style.WebkitUserSelect=Ee.current,Ee.current=void 0),ve.clear()}
75));c.useEffect((()=>Se),[Se]);const _e=e=>{pi.clear(),di=!0,xe(!0),V&&!we&&V(e)},ke=(0,ei.A)((e=>{pi.start(800+U,(()=>{di=!1})),xe(!1),$&&we&&$(e),me.start(ie.transitions.duration.shortest,(()=>{ue.current=!1}))})),Te=e=>{ue.current&&"touchstart"!==e.type||(ae&&ae.removeAttribute("title"),ge.clear(),be.clear(),j||di&&M?ge.start(di?M:j,(()=>{_e(e)})):_e(e))},Ce=e=>{ge.clear(),be.start(U,(()=>{ke(e)}))},{isFocusVisibleRef:Oe,onBlur:Ne,onFocus:Ie,ref:Re}=(0,ri.A)(),[,Pe]=c.useState(!1),je=e=>{Ne(e),!1===Oe.current&&(Pe(!1),Ce(e))},Me=e=>{ae||se(e.currentTarget),Ie(e),!0===Oe.current&&(Pe(!0),Te(e))},De=e=>{ue.current=!0;const t=ne.props;t.onTouchStart&&t.onTouchStart(e)},Le=e=>{De(e),be.clear(),me.clear(),Se(),Ee.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ve.start(D,(()=>{document.body.style.WebkitUserSelect=Ee.current,Te(e)}))},Fe=e=>{ne.props.onTouchEnd&&ne.props.onTouchEnd(e),Se(),be.start(H,(()=>{ke(e)}))};c.useEffect((()=>{if(we)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ke(e)}}),[ke,we]);const Be=(0,ti.A)((0,Tn.A)(ne),Re,se,t);Q||0===Q||(we=!1);const Ue=c.useRef(),ze={},He="string"===typeof Q;T?(ze.title=we||!He||O?null:Q,ze["aria-describedby"]=we?Ae:null):(ze["aria-label"]=He?Q:null,ze["aria-labelledby"]=we&&!He?Ae:null);const $e=(0,R.A)({},ze,te,ne.props,{className:(0,de.A)(te.className,ne.props.className),onTouchStart:De,ref:Be},F?{onMouseMove:e=>{const t=ne.props;t.onMouseMove&&t.onMouseMove(e),hi={x:e.clientX,y:e.clientY},Ue.current&&Ue.current.update()}}:{});const Ve={};I||($e.onTouchStart=Le,$e.onTouchEnd=Fe),O||($e.onMouseOver=fi(Te,$e.onMouseOver),$e.onMouseLeave=fi(Ce,$e.onMouseLeave),fe||(Ve.onMouseOver=Te,Ve.onMouseLeave=Ce)),C||($e.onFocus=fi(Me,$e.onFocus),$e.onBlur=fi(je,$e.onBlur),fe||(Ve.onFocus=Me,Ve.onBlur=je));const Ge=c.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(le),options:{element:le,padding:4}}];return null!=(e=Y.popperOptions)&&e.modifiers&&(t=t.concat(Y.popperOptions.modifiers)),(0,R.A)({},Y.popperOptions,{modifiers:t})}),[le,Y]),We=(0,R.A)({},A,{isRtl:oe,arrow:E,disableInteractive:fe,placement:W,PopperComponentProp:q,touch:ue.current}),qe=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${(0,he.A)(o.split("-")[0])}`],arrow:["arrow"]};return(0,pe.A)(a,oi,t)})(We),Ye=null!=(n=null!=(r=Z.popper)?r:_.Popper)?n:li,Ke=null!=(i=null!=(o=null!=(a=Z.transition)?a:_.Transition)?o:J)?i:Cn.A,Xe=null!=(s=null!=(l=Z.tooltip)?l:_.Tooltip)?s:ci,Ze=null!=(u=null!=(d=Z.arrow)?d:_.Arrow)?u:ui,Qe=(0,hn.A)(Ye,(0,R.A)({},Y,null!=(p=K.popper)?p:k.popper,{className:(0,de.A)(qe.popper,null==Y?void 0:Y.className,null==(h=null!=(f=K.popper)?f:k.popper)?void 0:h.className)}),We),Je=(0,hn.A)(Ke,(0,R.A)({},ee,null!=(m=K.transition)?m:k.transition),We),et=(0,hn.A)(Xe,(0,R.A)({},null!=(g=K.tooltip)?g:k.tooltip,{className:(0,de.A)(qe.tooltip,null==(b=null!=(v=K.tooltip)?v:k.tooltip)?void 0:b.className)}),We),tt=(0,hn.A)(Ze,(0,R.A)({},null!=(y=K.arrow)?y:k.arrow,{className:(0,de.A)(qe.arrow,null==(x=null!=(w=K.arrow)?w:k.arrow)?void 0:x.className)}),We);return(0,L.jsxs)(c.Fragment,{children:[c.cloneElement(ne,$e),(0,L.jsx)(Ye,(0,R.A)({as:null!=q?q:Jr,placement:W,anchorEl:F?{getBoundingClientRect:()=>({top:hi.y,left:hi.x,right:hi.x,bottom:hi.y,width:0,height:0})}:ae,popperRef:Ue,open:!!ae&&we,id:Ae,transition:!0},Ve,Qe,{popperOptions:Ge,children:e=>{let{TransitionProps:t}=e;return(0,L.jsx)(Ke,(0,R.A)({timeout:ie.transitions.duration.shorter},t,Je,{children:(0,L.jsxs)(Xe,(0,R.A)({},et,{children:[Q,E?(0,L.jsx)(Ze,(0,R.A)({},tt,{ref:ce})):null]}))}))}}))]})}));const gi="@customization/SET_MENU",bi="@customization/MENU_OPEN",vi="@customization/SET_FONT_FAMILY",yi="@customization/SET_BORDER_RADIUS";var xi=__webpack_require__(10095);var wi=()=>{const e=x((e=>e.customization.defaultId)),t=O(),{org:n,image:r,isLoading:o}=(()=>{const[e,t]=(0,c.useState)({org:"",image:"",isLoading:!0,error:null}),n=(0,c.useRef)(!1);return(0,c.useEffect)((()=>{n.current||(n.current=!0,(async()=>{try{const e=localStorage.getItem("organization");if(!e)return void t((e=>({...e,isLoading:!1})));t((t=>({...t,org:e})));const n=await(0,xi.c$)(e);t((e=>({...e,image:(null===n||void 0===n?void 0:n.logo_url)||"",isLoading:!1})))}catch(e){console.error("Error fetching organization data:",e),t((t=>({...t,error:e.message,isLoading:!1})))}})())}),[]),e})();return o&&!n?(0,L.jsx)(We.A,{disableRipple:!0,component:i.N_,to:"/marketplace",sx:{height:"5vh",width:"100%",display:"flex",alignItems:"center",justifyContent:"flex-start"},children:(0,L.jsxs)("div",{className:"flex items-center",children:[(0,L.jsx)("div",{className:"w-8 h-8 bg-gray-200 rounded-full animate-pulse mr-2"}),(0,L.jsx)("div",{className:"h-6 bg-gray-200 rounded animate-pulse w-24"})]})}):(0,L.jsx)(We.A,{disableRipple:!0,onClick:()=>t({type:bi,id:e}),component:i.N_,to:"/marketplace",sx:{height:"5vh",width:"100%",display:"flex",alignItems:"center",justifyContent:"flex-start"},children:(0,L.jsxs)("div",{className:"flex items-center",children:[r&&(0,L.jsx)("img",{src:r,className:"w-8 h-8 object-contain rounded-full mr-2",alt:"Organization Logo",onError:e=>{e.target.style.display="none"}}),(0,L.jsx)("span",{className:"font-sans text-2xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-purple-500 to-blue-700",children:n})]})})},Ai=__webpack_require__(2660),Ei=__webpack_require__(2046),Si=__webpack_require__(89073),_i=__webpack_require__(32448),ki=__webpack_require__(75361),Ti=__webpack_require__(70576);function Ci(e){return(0,ge.Ay)("MuiCollapse",e)}(0,me.A)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Oi=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],Ni=(0,ne.Ay)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})((e=>{let{theme:t,ownerState:n}=e;return(0,R.A)({height:0,overflow:"hidden",transition:t.transitions.create("height")},"horizontal"===n.orientation&&{height:"auto",width:0,transition:t.transitions.create("width")},"entered"===n.state&&(0,R.A)({height:"auto",overflow:"visible"},"horizontal"===n.orientation&&{width:"auto"}),"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&{visibility:"hidden"})})),Ii=(0,ne.Ay)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})((e=>{let{ownerState:t}=e;
75return(0,R.A)({display:"flex",width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})})),Ri=(0,ne.Ay)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})((e=>{let{ownerState:t}=e;return(0,R.A)({width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})})),Pi=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiCollapse"}),{addEndListener:r,children:i,className:o,collapsedSize:a="0px",component:s,easing:l,in:u,onEnter:d,onEntered:p,onEntering:h,onExit:f,onExited:m,onExiting:g,orientation:b="vertical",style:v,timeout:y=ki.p0.standard,TransitionComponent:x=_i.Ay}=n,w=(0,P.A)(n,Oi),A=(0,R.A)({},n,{orientation:b,collapsedSize:a}),E=(e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return(0,pe.A)(r,Ci,n)})(A),S=(0,re.A)(),_=(0,kn.A)(),k=c.useRef(null),T=c.useRef(),C="number"===typeof a?`${a}px`:a,O="horizontal"===b,N=O?"width":"height",I=c.useRef(null),j=(0,ti.A)(t,I),M=e=>t=>{if(e){const n=I.current;void 0===t?e(n):e(n,t)}},D=()=>k.current?k.current[O?"clientWidth":"clientHeight"]:0,F=M(((e,t)=>{k.current&&O&&(k.current.style.position="absolute"),e.style[N]=C,d&&d(e,t)})),B=M(((e,t)=>{const n=D();k.current&&O&&(k.current.style.position="");const{duration:r,easing:i}=(0,Ti.c)({style:v,timeout:y,easing:l},{mode:"enter"});if("auto"===y){const t=S.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,T.current=t}else e.style.transitionDuration="string"===typeof r?r:`${r}ms`;e.style[N]=`${n}px`,e.style.transitionTimingFunction=i,h&&h(e,t)})),U=M(((e,t)=>{e.style[N]="auto",p&&p(e,t)})),z=M((e=>{e.style[N]=`${D()}px`,f&&f(e)})),H=M(m),$=M((e=>{const t=D(),{duration:n,easing:r}=(0,Ti.c)({style:v,timeout:y,easing:l},{mode:"exit"});if("auto"===y){const n=S.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,T.current=n}else e.style.transitionDuration="string"===typeof n?n:`${n}ms`;e.style[N]=C,e.style.transitionTimingFunction=r,g&&g(e)}));return(0,L.jsx)(x,(0,R.A)({in:u,onEnter:F,onEntered:U,onEntering:B,onExit:z,onExited:H,onExiting:$,addEndListener:e=>{"auto"===y&&_.start(T.current||0,e),r&&r(I.current,e)},nodeRef:I,timeout:"auto"===y?null:y},w,{children:(e,t)=>(0,L.jsx)(Ni,(0,R.A)({as:s,className:(0,de.A)(E.root,o,{entered:E.entered,exited:!u&&"0px"===C&&E.hidden}[e]),style:(0,R.A)({[O?"minWidth":"minHeight"]:C},v),ref:j},t,{ownerState:(0,R.A)({},A,{state:e}),children:(0,L.jsx)(Ii,{ownerState:(0,R.A)({},A,{state:e}),className:E.wrapper,ref:k,children:(0,L.jsx)(Ri,{ownerState:(0,R.A)({},A,{state:e}),className:E.wrapperInner,children:i})})}))}))}));Pi.muiSupportAuto=!0;var ji=Pi,Mi=__webpack_require__(57191),Di=__webpack_require__(21209),Li=__webpack_require__(70827);const Fi=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Bi(e,t,n){var r;const i=function(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),o=(0,Li.A)(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const e=o.getComputedStyle(t);a=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let s=0,l=0;if(a&&"none"!==a&&"string"===typeof a){const e=a.split("(")[1].split(")")[0].split(",");s=parseInt(e[4],10),l=parseInt(e[5],10)}return"left"===e?i?`translateX(${i.right+s-r.left}px)`:`translateX(${o.innerWidth+s-r.left}px)`:"right"===e?i?`translateX(-${r.right-i.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:"up"===e?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${o.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}(e,t,"function"===typeof(r=n)?r():r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const Ui=c.forwardRef((function(e,t){const n=(0,re.A)(),r={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,container:l,direction:u="down",easing:d=r,in:p,onEnter:h,onEntered:f,onEntering:m,onExit:g,onExited:b,onExiting:v,style:y,timeout:x=i,TransitionComponent:w=_i.Ay}=e,A=(0,P.A)(e,Fi),E=c.useRef(null),S=(0,ti.A)((0,Tn.A)(s),E,t),_=e=>t=>{e&&(void 0===t?e(E.current):e(E.current,t))},k=_(((e,t)=>{Bi(u,e,l),(0,Ti.q)(e),h&&h(e,t)})),T=_(((e,t)=>{const r=(0,Ti.c)({timeout:x,style:y,easing:d},{mode:"enter"});e.style.webkitTransition=n.transitions.create("-webkit-transform",(0,R.A)({},r)),e.style.transition=n.transitions.create("transform",(0,R.A)({},r)),e.style.webkitTransform="none",e.style.transform="none",m&&m(e,t)})),C=_(f),O=_(v),N=_((e=>{const t=(0,Ti.c)({timeout:x,style:y,easing:d},{mode:"exit"});e.style.webkitTransition=n.transitions.create("-webkit-transform",t),e.style.transition=n.transitions.create("transform",t),Bi(u,e,l),g&&g(e)})),I=_((e=>{e.style.webkitTransition="",e.style.transition="",b&&b(e)})),j=c.useCallback((()=>{E.current&&Bi(u,E.current,l)}),[u,l]);return c.useEffect((()=>
75{if(p||"down"===u||"right"===u)return;const e=(0,Di.A)((()=>{E.current&&Bi(u,E.current,l)})),t=(0,Li.A)(E.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[u,p,l]),c.useEffect((()=>{p||j()}),[p,j]),(0,L.jsx)(w,(0,R.A)({nodeRef:E,onEnter:k,onEntered:C,onEntering:T,onExit:N,onExited:I,onExiting:O,addEndListener:e=>{o&&o(E.current,e)},appear:a,in:p,timeout:x},A,{children:(e,t)=>c.cloneElement(s,(0,R.A)({ref:S,style:(0,R.A)({visibility:"exited"!==e||p?void 0:"hidden"},y,s.props.style)},t))}))}));var zi=Ui;const Hi=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],$i={entering:{transform:"none"},entered:{transform:"none"}},Vi=c.forwardRef((function(e,t){const n=(0,re.A)(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:o=!0,children:a,easing:s,in:l,onEnter:u,onEntered:d,onEntering:p,onExit:h,onExited:f,onExiting:m,style:g,timeout:b=r,TransitionComponent:v=_i.Ay}=e,y=(0,P.A)(e,Hi),x=c.useRef(null),w=(0,ti.A)(x,(0,Tn.A)(a),t),A=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},E=A(p),S=A(((e,t)=>{(0,Ti.q)(e);const r=(0,Ti.c)({style:g,timeout:b,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("transform",r),e.style.transition=n.transitions.create("transform",r),u&&u(e,t)})),_=A(d),k=A(m),T=A((e=>{const t=(0,Ti.c)({style:g,timeout:b,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("transform",t),e.style.transition=n.transitions.create("transform",t),h&&h(e)})),C=A(f);return(0,L.jsx)(v,(0,R.A)({appear:o,in:l,nodeRef:x,onEnter:S,onEntered:_,onEntering:E,onExit:T,onExited:C,onExiting:k,addEndListener:e=>{i&&i(x.current,e)},timeout:b},y,{children:(e,t)=>c.cloneElement(a,(0,R.A)({style:(0,R.A)({transform:"scale(0)",visibility:"exited"!==e||l?void 0:"hidden"},$i[e],g,a.props.style),ref:w},t))}))}));var Gi=Vi;const Wi=(0,c.forwardRef)(((e,t)=>{let{children:n,position:r,type:i,direction:o,...a}=e,s={transformOrigin:"0 0 0"};switch(r){case"top-right":s={transformOrigin:"top right"};break;case"top":s={transformOrigin:"top"};break;case"bottom-left":s={transformOrigin:"bottom left"};break;case"bottom-right":s={transformOrigin:"bottom right"};break;case"bottom":s={transformOrigin:"bottom"};break;default:s={transformOrigin:"0 0 0"}}return(0,L.jsxs)(ue.A,{ref:t,children:["grow"===i&&(0,L.jsx)(Cn.A,{...a,children:(0,L.jsx)(ue.A,{sx:s,children:n})}),"collapse"===i&&(0,L.jsx)(ji,{...a,sx:s,children:n}),"fade"===i&&(0,L.jsx)(Mi.A,{...a,timeout:{appear:500,enter:600,exit:400},children:(0,L.jsx)(ue.A,{sx:s,children:n})}),"slide"===i&&(0,L.jsx)(zi,{...a,timeout:{appear:0,enter:400,exit:200},direction:o,children:(0,L.jsx)(ue.A,{sx:s,children:n})}),"zoom"===i&&(0,L.jsx)(Gi,{...a,children:(0,L.jsx)(ue.A,{sx:s,children:n})})]})}));Wi.defaultProps={type:"grow",position:"top-left",direction:"up"};var qi=Wi;const Yi=(0,ne.Ay)(Jr)((e=>{let{theme:t}=e;return{zIndex:1100,width:"100%",top:"-55px !important",padding:t.spacing(1.5),[t.breakpoints.down("sm")]:{padding:t.spacing(1)}}})),Ki=(0,ne.Ay)(Ai.A)((e=>{let{theme:t}=e;return{width:"100%",maxWidth:320,paddingLeft:t.spacing(2),paddingRight:t.spacing(1),"& input":{background:"transparent !important",paddingLeft:t.spacing(1)},[t.breakpoints.down("sm")]:{maxWidth:"100%",background:t.palette.background.paper}}})),Xi=(0,ne.Ay)(_n)((e=>{let{theme:t}=e;return{...t.typography.commonAvatar,...t.typography.mediumAvatar,background:t.palette.secondary.light,color:t.palette.secondary.dark,"&:hover":{background:t.palette.secondary.dark,color:t.palette.secondary.light}}})),Zi=e=>{let{value:t,setValue:n,popupState:r}=e;const i=(0,re.A)();return(0,L.jsx)(Ki,{size:"small",id:"input-search-header",value:t,onChange:e=>n(e.target.value),placeholder:"Search chats",startAdornment:(0,L.jsx)(Ei.A,{position:"start",children:(0,L.jsx)(Ht,{stroke:1.5,size:"1rem",color:i.palette.grey[500]})}),endAdornment:(0,L.jsx)(Ei.A,{position:"end",children:(0,L.jsx)(ue.A,{sx:{ml:2},children:(0,L.jsx)(We.A,{sx:{borderRadius:"10px"},children:(0,L.jsx)(_n,{variant:"rounded",sx:{...i.typography.commonAvatar,...i.typography.mediumAvatar,background:i.palette.orange.light,color:i.palette.orange.dark,"&:hover":{background:i.palette.orange.dark,color:i.palette.orange.light}},...(0,Si.o2)(r),children:(0,L.jsx)(rn,{stroke:1,size:"1.3rem"})})})})}),"aria-describedby":"search-helper-text",inputProps:{"aria-label":"weight"}})};var Qi=e=>{let{search:t,setSearch:n}=e;const r=(0,re.A)(),i=ce(r.breakpoints.down("md"));return(0,L.jsx)(ue.A,{sx:{width:"100%"},children:i?(0,L.jsx)(Si.Ay,{variant:"popper",popupId:"search-popup",children:e=>(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(We.A,{sx:{borderRadius:"12px"},children:(0,L.jsx)(Xi,{variant:"rounded",...(0,Si.o2)(e),children:(0,L.jsx)(Ht,{stroke:1.5,size:"1.2rem"})})}),(0,L.jsx)(Yi,{...(0,Si._4)(e),transition:!0,children:i=>{let{TransitionProps:o}=i;return(0,L.jsx)(qi,{type:"zoom",...o,sx:{transformOrigin:"center left"},children:(0,L.jsx)(Ce.A,{sx:{background:r.palette.background.paper,[r.breakpoints.down("sm")]:{boxShadow:"none"}},children:(0,L.jsx)(ue.A,{sx:{p:2},children:(0,L.jsx)(Ue,{container:!0,alignItems:"center",justifyContent:"space-between",children:(0,L.jsx)(Ue,{item:!0,xs:!0,children:(0,L.jsx)(Zi,{value:t,setValue:n,popupState:e})})})})})})}})]})}):(0,L.jsx)(Ki,{size:"small",id:"input-search-header",value:t,onChange:e=>n(e.target.value),placeholder:"Search",startAdornment:(0,L.jsx)(Ei.A,{position:"start",children:(0,L.jsx)(Ht,{stroke:1.5,size:"1rem",color:r.palette.grey[500]})}),"aria-describedby":"search-helper-text",inputProps:{"aria-label":"search"}})})},Ji=(0,Ve.A)((0,L.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function eo(e){return(0,ge.Ay)("MuiChip",e)}var to=(0,me.A)("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]);const no=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],ro=(0,ne.Ay)("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}
75=e,{color:r,iconColor:i,clickable:o,onDelete:a,size:s,variant:l}=n;return[{[`& .${to.avatar}`]:t.avatar},{[`& .${to.avatar}`]:t[`avatar${(0,he.A)(s)}`]},{[`& .${to.avatar}`]:t[`avatarColor${(0,he.A)(r)}`]},{[`& .${to.icon}`]:t.icon},{[`& .${to.icon}`]:t[`icon${(0,he.A)(s)}`]},{[`& .${to.icon}`]:t[`iconColor${(0,he.A)(i)}`]},{[`& .${to.deleteIcon}`]:t.deleteIcon},{[`& .${to.deleteIcon}`]:t[`deleteIcon${(0,he.A)(s)}`]},{[`& .${to.deleteIcon}`]:t[`deleteIconColor${(0,he.A)(r)}`]},{[`& .${to.deleteIcon}`]:t[`deleteIcon${(0,he.A)(l)}Color${(0,he.A)(r)}`]},t.root,t[`size${(0,he.A)(s)}`],t[`color${(0,he.A)(r)}`],o&&t.clickable,o&&"default"!==r&&t[`clickableColor${(0,he.A)(r)})`],a&&t.deletable,a&&"default"!==r&&t[`deletableColor${(0,he.A)(r)}`],t[l],t[`${l}${(0,he.A)(r)}`]]}})((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode?t.palette.grey[700]:t.palette.grey[300];return(0,R.A)({maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${to.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${to.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:r,fontSize:t.typography.pxToRem(12)},[`& .${to.avatarColorPrimary}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},[`& .${to.avatarColorSecondary}`]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},[`& .${to.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},[`& .${to.icon}`]:(0,R.A)({marginLeft:5,marginRight:-6},"small"===n.size&&{fontSize:18,marginLeft:4,marginRight:-4},n.iconColor===n.color&&(0,R.A)({color:t.vars?t.vars.palette.Chip.defaultIconColor:r},"default"!==n.color&&{color:"inherit"})),[`& .${to.deleteIcon}`]:(0,R.A)({WebkitTapHighlightColor:"transparent",color:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.26)`:(0,$e.X4)(t.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.4)`:(0,$e.X4)(t.palette.text.primary,.4)}},"small"===n.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==n.color&&{color:t.vars?`rgba(${t.vars.palette[n.color].contrastTextChannel} / 0.7)`:(0,$e.X4)(t.palette[n.color].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[n.color].contrastText}})},"small"===n.size&&{height:24},"default"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].main,color:(t.vars||t).palette[n.color].contrastText},n.onDelete&&{[`&.${to.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:(0,$e.X4)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},n.onDelete&&"default"!==n.color&&{[`&.${to.focusVisible}`]:{backgroundColor:(t.vars||t).palette[n.color].dark}})}),(e=>{let{theme:t,ownerState:n}=e;return(0,R.A)({},n.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:(0,$e.X4)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)},[`&.${to.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:(0,$e.X4)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},"&:active":{boxShadow:(t.vars||t).shadows[1]}},n.clickable&&"default"!==n.color&&{[`&:hover, &.${to.focusVisible}`]:{backgroundColor:(t.vars||t).palette[n.color].dark}})}),(e=>{let{theme:t,ownerState:n}=e;return(0,R.A)({},"outlined"===n.variant&&{backgroundColor:"transparent",border:t.vars?`1px solid ${t.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[700]}`,[`&.${to.clickable}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${to.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`& .${to.avatar}`]:{marginLeft:4},[`& .${to.avatarSmall}`]:{marginLeft:2},[`& .${to.icon}`]:{marginLeft:4},[`& .${to.iconSmall}`]:{marginLeft:2},[`& .${to.deleteIcon}`]:{marginRight:5},[`& .${to.deleteIconSmall}`]:{marginRight:3}},"outlined"===n.variant&&"default"!==n.color&&{color:(t.vars||t).palette[n.color].main,border:`1px solid ${t.vars?`rgba(${t.vars.palette[n.color].mainCh
75annel} / 0.7)`:(0,$e.X4)(t.palette[n.color].main,.7)}`,[`&.${to.clickable}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,$e.X4)(t.palette[n.color].main,t.palette.action.hoverOpacity)},[`&.${to.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.focusOpacity})`:(0,$e.X4)(t.palette[n.color].main,t.palette.action.focusOpacity)},[`& .${to.deleteIcon}`]:{color:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / 0.7)`:(0,$e.X4)(t.palette[n.color].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[n.color].main}}})})),io=(0,ne.Ay)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${(0,he.A)(r)}`]]}})((e=>{let{ownerState:t}=e;return(0,R.A)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"outlined"===t.variant&&{paddingLeft:11,paddingRight:11},"small"===t.size&&{paddingLeft:8,paddingRight:8},"small"===t.size&&"outlined"===t.variant&&{paddingLeft:7,paddingRight:7})}));function oo(e){return"Backspace"===e.key||"Delete"===e.key}const ao=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiChip"}),{avatar:r,className:i,clickable:o,color:a="default",component:s,deleteIcon:l,disabled:u=!1,icon:d,label:p,onClick:h,onDelete:f,onKeyDown:m,onKeyUp:g,size:b="medium",variant:v="filled",tabIndex:y,skipFocusWhenDisabled:x=!1}=n,w=(0,P.A)(n,no),A=c.useRef(null),E=(0,ti.A)(A,t),S=e=>{e.stopPropagation(),f&&f(e)},_=!(!1===o||!h)||o,k=_||f?We.A:s||"div",T=(0,R.A)({},n,{component:k,disabled:u,size:b,color:a,iconColor:c.isValidElement(d)&&d.props.color||a,onDelete:!!f,clickable:_,variant:v}),C=(e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:a,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${(0,he.A)(r)}`,`color${(0,he.A)(i)}`,s&&"clickable",s&&`clickableColor${(0,he.A)(i)}`,a&&"deletable",a&&`deletableColor${(0,he.A)(i)}`,`${l}${(0,he.A)(i)}`],label:["label",`label${(0,he.A)(r)}`],avatar:["avatar",`avatar${(0,he.A)(r)}`,`avatarColor${(0,he.A)(i)}`],icon:["icon",`icon${(0,he.A)(r)}`,`iconColor${(0,he.A)(o)}`],deleteIcon:["deleteIcon",`deleteIcon${(0,he.A)(r)}`,`deleteIconColor${(0,he.A)(i)}`,`deleteIcon${(0,he.A)(l)}Color${(0,he.A)(i)}`]};return(0,pe.A)(c,eo,t)})(T),O=k===We.A?(0,R.A)({component:s||"div",focusVisibleClassName:C.focusVisible},f&&{disableRipple:!0}):{};let N=null;f&&(N=l&&c.isValidElement(l)?c.cloneElement(l,{className:(0,de.A)(l.props.className,C.deleteIcon),onClick:S}):(0,L.jsx)(Ji,{className:(0,de.A)(C.deleteIcon),onClick:S}));let I=null;r&&c.isValidElement(r)&&(I=c.cloneElement(r,{className:(0,de.A)(C.avatar,r.props.className)}));let j=null;return d&&c.isValidElement(d)&&(j=c.cloneElement(d,{className:(0,de.A)(C.icon,d.props.className)})),(0,L.jsxs)(ro,(0,R.A)({as:k,className:(0,de.A)(C.root,i),disabled:!(!_||!u)||void 0,onClick:h,onKeyDown:e=>{e.currentTarget===e.target&&oo(e)&&e.preventDefault(),m&&m(e)},onKeyUp:e=>{e.currentTarget===e.target&&(f&&oo(e)?f(e):"Escape"===e.key&&A.current&&A.current.blur()),g&&g(e)},ref:E,tabIndex:x&&u?-1:y,ownerState:T},O,w,{children:[I||j,(0,L.jsx)(io,{className:(0,de.A)(C.label),ownerState:T,children:p}),N]}))}));var so=ao,lo=__webpack_require__(92529);function co(e){return e.substring(2).toLowerCase()}function uo(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:o="onTouchEnd"}=e,a=c.useRef(!1),s=c.useRef(null),l=c.useRef(!1),u=c.useRef(!1);c.useEffect((()=>(setTimeout((()=>{l.current=!0}),0),()=>{l.current=!1})),[]);const d=(0,pn.A)((0,Tn.A)(t),s),p=(0,lo.A)((e=>{const t=u.current;u.current=!1;const r=(0,Nn.A)(s.current);if(!l.current||!s.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,r))return;if(a.current)return void(a.current=!1);let o;o=e.composedPath?e.composedPath().indexOf(s.current)>-1:!r.documentElement.contains(e.target)||s.current.contains(e.target),o||!n&&t||i(e)})),h=e=>n=>{u.current=!0;const r=t.props[e];r&&r(n)},f={ref:d};return!1!==o&&(f[o]=h(o)),c.useEffect((()=>
75{if(!1!==o){const e=co(o),t=(0,Nn.A)(s.current),n=()=>{a.current=!0};return t.addEventListener(e,p),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,p),t.removeEventListener("touchmove",n)}}}),[p,o]),!1!==r&&(f[r]=h(r)),c.useEffect((()=>{if(!1!==r){const e=co(r),t=(0,Nn.A)(s.current);return t.addEventListener(e,p),()=>{t.removeEventListener(e,p)}}}),[p,r]),(0,L.jsx)(c.Fragment,{children:c.cloneElement(t,f)})}var po=__webpack_require__(12257),ho=__webpack_require__(249),fo=__webpack_require__(19608),mo=__webpack_require__(79044),go=__webpack_require__(13372),bo=__webpack_require__(19813);const vo=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],yo=(0,ne.Ay)(We.A,{shouldForwardProp:e=>(0,fo.A)(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((e=>{let{theme:t,ownerState:n}=e;return(0,R.A)({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${bo.A.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,$e.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${bo.A.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:(0,$e.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${bo.A.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:(0,$e.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,$e.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${bo.A.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${bo.A.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},n.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===n.alignItems&&{alignItems:"flex-start"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.dense&&{paddingTop:4,paddingBottom:4})}));var xo=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:i=!1,component:o="div",children:a,dense:s=!1,disableGutters:l=!1,divider:u=!1,focusVisibleClassName:d,selected:p=!1,className:h}=n,f=(0,P.A)(n,vo),m=c.useContext(go.A),g=c.useMemo((()=>({dense:s||m.dense||!1,alignItems:r,disableGutters:l})),[r,m.dense,s,l]),b=c.useRef(null);(0,mo.A)((()=>{i&&b.current&&b.current.focus()}),[i]);const v=(0,R.A)({},n,{alignItems:r,dense:g.dense,disableGutters:l,divider:u,selected:p}),y=(e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:a,selected:s}=e,l={root:["root",r&&"dense",!o&&"gutters",a&&"divider",i&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},c=(0,pe.A)(l,bo.Y,n);return(0,R.A)({},n,c)})(v),x=(0,ti.A)(b,t);return(0,L.jsx)(go.A.Provider,{value:g,children:(0,L.jsx)(yo,(0,R.A)({ref:x,href:f.href||f.to,component:(f.href||f.to)&&"div"===o?"button":o,focusVisibleClassName:(0,de.A)(y.focusVisible,d),ownerState:v,className:(0,de.A)(y.root,h)},f,{classes:y,children:a}))})})),wo=__webpack_require__(92455);const Ao=["className"],Eo=(0,ne.Ay)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((e=>{let{theme:t,ownerState:n}=e;return(0,R.A)({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===n.alignItems&&{marginTop:8})}));var So=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiListItemIcon"}),{className:r}=n,i=(0,P.A)(n,Ao),o=c.useContext(go.A),a=(0,R.A)({},n,{alignItems:o.alignItems}),s=(e=>{const{alignItems:t,classes:n}=e,r={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,pe.A)(r,wo.f,n)})(a);return(0,L.jsx)(Eo,(0,R.A)({className:(0,de.A)(s.root,r),ownerState:a,ref:t},i))})),_o=__webpack_require__(83563),ko=__webpack_require__(14021),To=__webpack_require__.n(ko),Co=__webpack_require__(67875);function Oo(e){this.message=e}Oo.prototype=new Error,Oo.prototype.name="InvalidCharacterError";var No="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Oo("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,o=0,a="";r=t.charAt(o++);~r&&(n=i%4?64*n+r:r,i++%4)?a+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
75+/=".indexOf(r);return a};function Io(e){this.message=e}Io.prototype=new Error,Io.prototype.name="InvalidTokenError";var Ro=function(e,t){if("string"!=typeof e)throw new Io("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(No(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return No(t)}}(e.split(".")[n]))}catch(e){throw new Io("Invalid token specified: "+e.message)}},Po=__webpack_require__(88283);function jo(e){return(0,ge.Ay)("MuiLinearProgress",e)}var Mo=(0,me.A)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Do=["className","color","value","valueBuffer","variant"];let Lo,Fo,Bo,Uo,zo,Ho,$o=e=>e;const Vo=(0,Po.i7)(Lo||(Lo=$o`
76  0% {
77    left: -35%;
78    right: 100%;
79  }
80
81  60% {
82    left: 100%;
83    right: -90%;
84  }
85
86  100% {
87    left: 100%;
88    right: -90%;
89  }
90`)),Go=(0,Po.i7)(Fo||(Fo=$o`
91  0% {
92    left: -200%;
93    right: 100%;
94  }
95
96  60% {
97    left: 107%;
98    right: -8%;
99  }
100
101  100% {
102    left: 107%;
103    right: -8%;
104  }
105`)),Wo=(0,Po.i7)(Bo||(Bo=$o`
106  0% {
107    opacity: 1;
108    background-position: 0 -23px;
109  }
110
111  60% {
112    opacity: 0;
113    background-position: 0 -23px;
114  }
115
116  100% {
117    opacity: 1;
118    background-position: -200px -23px;
119  }
120`)),qo=(e,t)=>"inherit"===t?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:"light"===e.palette.mode?(0,$e.a)(e.palette[t].main,.62):(0,$e.e$)(e.palette[t].main,.5),Yo=(0,ne.Ay)("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${(0,he.A)(n.color)}`],t[n.variant]]}})((e=>{let{ownerState:t,theme:n}=e;return(0,R.A)({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:qo(n,t.color)},"inherit"===t.color&&"buffer"!==t.variant&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},"buffer"===t.variant&&{backgroundColor:"transparent"},"query"===t.variant&&{transform:"rotate(180deg)"})})),Ko=(0,ne.Ay)("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${(0,he.A)(n.color)}`]]}})((e=>{let{ownerState:t,theme:n}=e;const r=qo(n,t.color);return(0,R.A)({position:"absolute",marginTop:0,height:"100%",width:"100%"},"inherit"===t.color&&{opacity:.3},{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})}),(0,Po.AH)(Uo||(Uo=$o`
121    animation: ${0} 3s infinite linear;
122  `),Wo)),Xo=(0,ne.Ay)("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${(0,he.A)(n.color)}`],("indeterminate"===n.variant||"query"===n.variant)&&t.bar1Indeterminate,"determinate"===n.variant&&t.bar1Determinate,"buffer"===n.variant&&t.bar1Buffer]}})((e=>{let{ownerState:t,theme:n}=e;return(0,R.A)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:"inherit"===t.color?"currentColor":(n.vars||n).palette[t.color].main},"determinate"===t.variant&&{transition:"transform .4s linear"},"buffer"===t.variant&&{zIndex:1,transition:"transform .4s linear"})}),(e=>{let{ownerState:t}=e;return("indeterminate"===t.variant||"query"===t.variant)&&(0,Po.AH)(zo||(zo=$o`
123      width: auto;
124      animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
125    `),Vo)})),Zo=(0,ne.Ay)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${(0,he.A)(n.color)}`],("indeterminate"===n.variant||"query"===n.variant)&&t.bar2Indeterminate,"buffer"===n.variant&&t.bar2Buffer]}})((e=>{let{ownerState:t,theme:n}=e;return(0,R.A)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},"buffer"!==t.variant&&{backgroundColor:"inherit"===t.color?"currentColor":(n.vars||n).palette[t.color].main},"inherit"===t.color&&{opacity:.3},"buffer"===t.variant&&{backgroundColor:qo(n,t.color),transition:"transform .4s linear"})}),(e=>{let{ownerState:t}=e;return("indeterminate"===t.variant||"query"===t.variant)&&(0,Po.AH)(Ho||(Ho=$o`
126      width: auto;
127      animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
128    `),Go)})),Qo=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiLinearProgress"}),{className:r,color:i="primary",value:o,valueBuffer:a,variant:s="indeterminate"}=n,l=(0,P.A)(n,Do),c=(0,R.A)({},n,{color:i,variant:s}),u=(e=>{const{classes:t,variant:n,color:r}=e,i={root:["root",`color${(0,he.A)(r)}`,n],dashed:["dashed",`dashedColor${(0,he.A)(r)}`],bar1:["bar",`barColor${(0,he.A)(r)}`,("indeterminate"===n||"query"===n)&&"bar1Indeterminate","determinate"===n&&"bar1Determinate","buffer"===n&&"bar1Buffer"],bar2:["bar","buffer"!==n&&`barColor${(0,he.A)(r)}`,"buffer"===n&&`color${(0,he.A)(r)}`,("indeterminate"===n||"query"===n)&&"bar2Indeterminate","buffer"===n&&"bar2Buffer"]};return(0,pe.A)(i,jo,t)})(c),d=(0,z.I)(),p={},h={bar1:{},bar2:{}};if("determinate"===s||"buffer"===s)if(void 0!==o){p["aria-valuenow"]=Math.round(o),p["aria-valuemin"]=0,p["aria-valuemax"]=100;let e=o-100;d&&(e=-e),h.bar1.transform=`translateX(${e}%)`}else 0;if("buffer"===s)if(void 0!==a){let e=(a||0)-100;d&&(e=-e),h.bar2.transform=`translateX(${e}%)`}else 0;return(0,L.jsxs)(Yo,(0,R.A)({className:(0,de.A)(u.root,r),ownerState:c,role:"progressbar"},p,{ref:t},l,{children:["buffer"===s?(0,L.jsx)(Ko,{className:u.dashed,ownerState:c}):null,(0,L.jsx)(Xo,{className:u.bar1,ownerState:c,style:h.bar1}),"determinate"===s?null:(0,L.jsx)(Zo,{className:u.bar2,ownerState:c,style:h.bar2})]}))}));var Jo=Qo,ea=__webpack_require__(50704),ta=__webpack_require__(26050);(0,ne.Ay)(Jo)((e=>{let{theme:t}=e;return{height:10,borderRadius:30,[`&.${Mo.colorPrimary}`]:{backgroundColor:"#fff"},[`& .${Mo.bar}`]:{borderRadius:5,backgroundColor:t.palette.primary.main}}}));const na=(0,ne.Ay)(Ce.A)((e=>{let{theme:t}=e;return{background:t.palette.primary.light,marginBottom:"22px",overflow:"hidden",position:"relative","&:after":{content:'""',position:"absolute",width:"157px",height:"157px",background:t.palette.primary[200],borderRadius:"50%",top:"-105px",right:"-96px"}}}));function ra(e){let{value:t,...n}=e;const r=(0,re.A)(),[i,o]=(0,c.useState)({});(0,c.useEffect)((()=>{a()}),[]);const a=async()=>{const e=localStorage.getItem("uid"),t=new FormData;t.append("id",e);const n=await(0,xi.Ot)(t);o(n)};return(0,L.jsx)(Ue,{container:!0,direction:"column",spacing:1,sx:{mt:1.5},children:(0,L.jsxs)(Ue,{item:!0,children:[(0,L.jsxs)(Ue,{container:!0,justifyContent:"space-between",children:[(0,L.jsx)(Ue,{item:!0,children:(0,L.jsx)(Te.A,{variant:"h6",sx:{color:r.palette.primary[800]},children:"Published AI Assistants"})}),(0,L.jsx)(Ue,{item:!0,children:(0,L.jsx)(Te.A,{variant:"h6",color:"inherit",children:i?i.published:0})})]}),(0,L.jsxs)(Ue,{container:!0,justifyContent:"space-between",children:[(0,L.jsx)(Ue,{item:!0,children:(0,L.jsx)(Te.A,{variant:"h6",sx:{color:r.palette.primary[800]},children:"Knowledge Hub(mb's)"})}),(0,L.jsx)(Ue,{item:!0,children:(0,L.jsx)(Te.A,{variant:"h6",color:"inherit",children:i?null===i||void 0===i?void 0:i.kb:0}
128)})]}),(0,L.jsxs)(Ue,{container:!0,justifyContent:"space-between",children:[(0,L.jsx)(Ue,{item:!0,children:(0,L.jsx)(Te.A,{variant:"h6",sx:{color:r.palette.primary[800]},children:"Total Uploads"})}),(0,L.jsx)(Ue,{item:!0,children:(0,L.jsx)(Te.A,{variant:"h6",color:"inherit",children:i?null===i||void 0===i?void 0:i.totalFile:0})})]}),(0,L.jsxs)(Ue,{container:!0,justifyContent:"space-between",children:[(0,L.jsx)(Ue,{item:!0,children:(0,L.jsx)(Te.A,{variant:"h6",sx:{color:r.palette.primary[800]},children:"Chat Interactions/Month"})}),(0,L.jsx)(Ue,{item:!0,children:(0,L.jsx)(Te.A,{variant:"h6",color:"inherit",children:i?null===i||void 0===i?void 0:i.chatsLen:0})})]}),(0,L.jsxs)(Ue,{container:!0,justifyContent:"space-between",children:[(0,L.jsx)(Ue,{item:!0,children:(0,L.jsx)(Te.A,{variant:"h6",sx:{color:r.palette.primary[800]},children:"Total Chat Interactions"})}),(0,L.jsx)(Ue,{item:!0,children:(0,L.jsx)(Te.A,{variant:"h6",color:"inherit",children:i?null===i||void 0===i?void 0:i.chatsLen:0})})]})]})})}var ia=e=>{let{username:t}=e;const n=(0,re.A)();return(0,L.jsx)(na,{children:(0,L.jsxs)(ea.A,{sx:{p:2},children:[(0,L.jsx)(ho.A,{sx:{p:0,m:0},children:(0,L.jsx)(ta.Ay,{alignItems:"flex-start",disableGutters:!0,sx:{p:0},children:(0,L.jsx)(_o.A,{sx:{mt:0},primary:(0,L.jsx)(Te.A,{variant:"subtitle",sx:{color:n.palette.primary[800]},children:"Usage"})})})}),(0,L.jsx)(ra,{value:80})]})})},oa=__webpack_require__(29246),aa=__webpack_require__(27232);const sa=(0,c.createContext)(null);function la(e){let{clientId:t,nonce:n,onScriptLoadSuccess:r,onScriptLoadError:i,children:o}=e;const a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{nonce:t,onScriptLoadSuccess:n,onScriptLoadError:r}=e,[i,o]=(0,c.useState)(!1),a=(0,c.useRef)(n);a.current=n;const s=(0,c.useRef)(r);return s.current=r,(0,c.useEffect)((()=>{const e=document.createElement("script");return e.src="https://accounts.google.com/gsi/client",e.async=!0,e.defer=!0,e.nonce=t,e.onload=()=>{var e;o(!0),null===(e=a.current)||void 0===e||e.call(a)},e.onerror=()=>{var e;o(!1),null===(e=s.current)||void 0===e||e.call(s)},document.body.appendChild(e),()=>{document.body.removeChild(e)}}),[t]),i}({nonce:n,onScriptLoadSuccess:r,onScriptLoadError:i}),s=(0,c.useMemo)((()=>({clientId:t,scriptLoadedSuccessfully:a})),[t,a]);return c.createElement(sa.Provider,{value:s},o)}function ca(){const e=(0,c.useContext)(sa);if(!e)throw new Error("Google OAuth components must be used within GoogleOAuthProvider");return e}function ua(e){var t;return null!==(t=null===e||void 0===e?void 0:e.clientId)&&void 0!==t?t:null===e||void 0===e?void 0:e.client_id}const da={large:40,medium:32,small:20};function pa(e){let{onSuccess:t,onError:n,useOneTap:r,promptMomentNotification:i,type:o="standard",theme:a="outline",size:s="large",text:l,shape:u,logo_alignment:d,width:p,locale:h,click_listener:f,containerProps:m,...g}=e;const b=(0,c.useRef)(null),{clientId:v,scriptLoadedSuccessfully:y}=ca(),x=(0,c.useRef)(t);x.current=t;const w=(0,c.useRef)(n);w.current=n;const A=(0,c.useRef)(i);return A.current=i,(0,c.useEffect)((()=>{var e,t,n,i,c,m,E,S,_;if(y)return null===(n=null===(t=null===(e=null===window||void 0===window?void 0:window.google)||void 0===e?void 0:e.accounts)||void 0===t?void 0:t.id)||void 0===n||n.initialize({client_id:v,callback:e=>{var t;if(!(null===e||void 0===e?void 0:e.credential))return null===(t=w.current)||void 0===t?void 0:t.call(w);const{credential:n,select_by:r}=e;x.current({credential:n,clientId:ua(e),select_by:r})},...g}),null===(m=null===(c=null===(i=null===window||void 0===window?void 0:window.google)||void 0===i?void 0:i.accounts)||void 0===c?void 0:c.id)||void 0===m||m.renderButton(b.current,{type:o,theme:a,size:s,text:l,shape:u,logo_alignment:d,width:p,locale:h,click_listener:f}),r&&(null===(_=null===(S=null===(E=null===window||void 0===window?void 0:window.google)||void 0===E?void 0:E.accounts)||void 0===S?void 0:S.id)||void 0===_||_.prompt(A.current)),()=>{var e,t,n;r&&(null===(n=null===(t=null===(e=null===window||void 0===window?void 0:window.google)||void 0===e?void 0:e.accounts)||void 0===t?void 0:t.id)||void 0===n||n.cancel())}}),[v,y,r,o,a,s,l,u,d,p,h]),c.createElement("div",{...m,ref:b,style:{height:da[s],...null===m||void 0===m?void 0:m.style}})}const ha=(0,c.createContext)(null);function fa(e){let{children:t}=e;const n=(0,te.Zp)(),r="https://fast.asklly.ai",[i,o]=(0,c.useState)(""),[a,s]=(0,c.useState)(""),[l,u]=(0,c.useState)(!1),[d,p]=(0,c.useState)([]),[h,f]=(0,c.useState)([]),[m,g]=(0,c.useState)(!1),[b,v]=(0,c.useState)(!1),[y,x]=(0,c.useState)(!1),[w,A]=(0,c.useState)(""),[E,S]=(0,c.useState)(null),[_,k]=(0,c.useState)([]),[T,C]=(0,c.useState)([]),[O,N]=(0,c.useState)(!1),[I,R]=(0,c.useState)([]),[P,j]=(0,c.useState)([]),[M,D]=(0,c.useState)([]),[F,B]=(0,c.useState)(null),[U,z]=(0,c.useState)(null),H=(0,c.useCallback)((async e=>{const t=e||localStorage.getItem("uid");if(!t)return null;if(F&&F.uuid===t)return F.data;try{const e=await(0,xi.Ay)(t);return B({uuid:t,data:e}),e}catch(n){return console.error("Error fetching user info:",n),null}}),[]),$=(0,c.useCallback)((async()=>{const e=localStorage.getItem("organization");if(e&&U)return U;if(e&&!U)return z(e),e;const t=localStorage.getItem("uid");if(!t)return null;try{var n;let e=null===F||void 0===F?void 0:F.data;if(e&&F.uuid===t||(e=await H(t)),null===(n=e)||void 0===n||!n.email)return null;const{data:i}=await oa.A.post(`${r}/get/org`,{email:e.email},{headers:{team_id:E}});return z(i),localStorage.setItem("organization",i),s(i),i}catch(i){return console.error("Error fetching org name:",i),null}}),[U,E,H]);(0,c.useEffect)((()=>{(async()=>{const e=localStorage.getItem("uid"),t=localStorage.getItem("organization");if(e)try{const n=await(0,xi.Ay)(e);if(B({uuid:e,data:n}),t)z(t),s(t),await G();else{const{data:e}=await oa.A.post(`${r}/get/org`,{email:n.email},{headers:{team_id:E}});z(e),s(e),await G()}}catch(n){console.error("Error initializing app:",n)}})()}),[]);const V=oa.A.create({baseURL:r}),G=async()=>{try{g(!0);const e=await W();e.length>0&&await q(e[0].id),await async function(){try{const e=await $(),{data:t}=await oa.A.get(`${r}/get/kb/org?org=${e}`);return j(t),t}catch(e){console.log(e)}}(),await Z(e[0].id),await X(e[0].id),J(),await Q(e[0].id)}catch(e){console.log(e)}finally{g(!1)}},W=async()=>{N(!0);try{const e=localStorage.getItem("uid"),t=await H(e),n=await $(),i=new FormData;i.append("email",null===t||void 0===t?void 0:t.email),i.append("org",n);const{data:o}=await oa.A.post(`${r}/team/get_teams`,i);return p(o),o}catch(e){console.error(e)}finally{N(!1)}},q=async e=>{try{const t=localStorage.getItem("uid"),{data:i}=await oa.A.get(`${r}/team/${e}/role/${t}`);return i.roles?(S(i.team_id),A(i.roles),await Z(i.team_id),await Q(i.team_id),await X(i.team_id),i):n("/no-org")}catch(t){console.error(t)}};const Y=(0,c.useCallback)((()=>{B(null),z(null)}),[]);async function K(e,t,i,o){try{const a={email:t,password:i,fullname:e,gauth:o},{data:s}=await oa.A.post(`${r}/create_user`,a);return localStorage.setItem("ob",!0),null!==s&&void 0!==s&&s.user_id||((0,aa.oR)("Check your inbox for OTP",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}),localStorage.setItem("email",t),n("/otp")),s}catch(a){a.response?aa.oR.error(`${a.response.data.detail||"There was an error in Signing up"}`,{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}):aa.oR.error("There was an error in Signing up",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"})}}async function X(e){try{const t=localStorage.getItem("uid"),i=await $();if(!t)return n("/login");const o={"X-User-Id":t,"X-Org":i,team_id:e},{data:a}=await oa.A.get(`${r}/getmybots`,{headers:o});return k(a.res||[]),{ok:!0,data:a.res}}catch(t){console.log(t)}}async function Z(e){try{R([]),f([]);const t=localStorage.getItem("uid"),n=new FormData,o=await H(t||i);let s=(null===o||void 0===o?void 0:o.email)||localStorage.getItem("email");n.append("email",s),n.append("team_id",e||E);const l=await $();n.append("organization",l||a);const{data:c}=await oa.A.post(`${r}/get/kb`,n,{headers:{team_id:e}});return f(c.kb||[]),R(c.kb||[]),c.kb}catch(t){console.error(t),aa.oR.error("Something went wrong",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}}const Q=async e=>{try{D([]);const t=localStorage.getItem("uid"),n=new FormData,i=await H(t);n.append("email",null===i||void 0===i?void 0:i.email);const o=await $();n.append("organization",o),n.append("team_id",e);const{data:a}=await oa.A.post(`${r}/get/kb/names`,n,{headers:{team_id:e}});return D(a.kb),a.kb}catch(t){console.log(t)}};async function J(){try{C([]),v(!0);const e={"X-User-Id":localStorage.getItem("uid")},{data:t}=await oa.A.get(`${r}/apis/v1/chat`,{headers:e});return C(t),t}catch(e){console.log(e)}finally{v(!1)}}return(0,L.jsx)(ha.Provider,{value:{fetchonebotapi:async function(e){const t={"X-User-Id":localStorage.getItem("uid")};(new FormData).append("id",e);try{const{data:n}=await oa.A.get(`${r}/ai/get/${e}`,{headers:t});return{ok:n.ok,data:n.data,kb:n.kbs,access:n.access}
128}catch(n){return console.log(n),{ok:!1,data:null,kb:null,access:null}}},fetchbotapi:async function(e){const t={"X-User-Id":localStorage.getItem("uid")},n=new FormData;n.append("id",e);try{const{data:e}=await oa.A.post(`${r}/get_one_bot`,n,{headers:t});return{ok:e.ok,data:e.data,kb:e.kbs,access:e.access}}catch(i){return console.log(i),{ok:!1,data:null,kb:null,access:null}}},fetchMetricsChart:async function(e){let{start:t="",end:n="",organization:r="",bot_key:i=""}=e;const o=new Date,a=new Date;a.setMonth(o.getMonth()-1);const s=e=>e.toISOString().slice(0,10),l={start:t||s(a),end:n||s(o),organization:r,bot_key:i};try{const{data:e}=await V.get("/metrics/chart/",{params:l});return e}catch(u){var c;throw console.error("Error loading chart data:",(null===(c=u.response)||void 0===c?void 0:c.data)||u.message),aa.oR.error("Error getting chart data",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}),u}},addToFavorites:async(e,t)=>{try{const n=localStorage.getItem("uid"),i=await $(),o=new FormData;o.append("item_id",e),o.append("item_type",t);const a={"X-User-Id":n,"X-Org":i},{data:s}=await oa.A.post(`${r}/add_to_favorites`,o,{headers:a});return aa.oR.success(s.message,{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}catch(n){throw console.error(n),aa.oR.error("Failed to update favorites",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}),n}},fetchtrainedApi:async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{const n={"X-Org":t||await $(),"X-User-Id":e},{data:i}=await oa.A.get(`${r}/bot/get`,{headers:n});return{ok:!0,data:i}}catch(n){console.log(n)}},getCachedUserInfo:H,getCachedOrgName:$,getAskllyAdmin:async e=>{try{const{data:t}=await V.post("/get/member/asklly",e);return t}catch(t){console.error(t)}},userInfoCache:F,orgNameCache:U,uploadImage:async e=>{try{const{data:t}=await oa.A.post("https://sse.asklly.ai/v2/sse/api/upload",e);return t}catch(t){console.error(t)}},allKnowldegeHubs:P,nloading:b,handleDeleteChat:async function(e){try{const t={"X-User-Id":localStorage.getItem("uid"),"X-Chat-Id":e},{data:n}=await oa.A.delete(`${r}/apis/v1/chat/id/${e}`,{headers:t});return await J(),n}catch(t){console.log(t)}},chatHistory:T,handleGetAllChats:J,addPrompt:async(e,t,n,i)=>{try{const o=new FormData;o.append("id",e),o.append("prompt",t),o.append("model",n),o.append("default_websearch",i);const{data:a}=await oa.A.post(`${r}/add_prompt`,o);return aa.oR.success("Prompt added succesfully",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"})}catch(o){console.log(o)}},trainKb:async function(e,t,n,i,o,a){try{const s=new FormData,l=await $();s.append("botname",t),s.append("uid",i),o?s.append("eid",o):s.append("eid",0);const c=n.join(",");s.append("training_files",c),s.append("created_at",a),s.append("organization",l),s.append("team_id",e);const{data:u}=await oa.A.post(`${r}/created_bot`,s);return await Z(E),(0,aa.oR)("Assistant has been created",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}),{ok:!0,res:u.data,eid:u.id}}catch(s){return console.log(s),aa.oR.error("There was an error in uploading data",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}),{ok:!1}}},increaseViews:async e=>{try{const{data:t}=await oa.A.get(`${r}/increase_view_count?id=${e}`);return t}catch(t){console.log(t)}},loadingTeam:O,handleLoginCallBackRes:async function(e){var t=Ro(e.credential);localStorage.setItem("gauthcred",e.credential);try{const e=await K(`${t.given_name} ${t.family_name}`,t.email,t.sub,"yes");(new FormData).append("email",e.email),e&&(e.user_id?localStorage.setItem("uid",e.user_id):localStorage.setItem("uid",e.uid),await G(),n("/marketplace"))}catch(r){console.log(r)}},handleCallBackRes:async e=>{var t=Ro(e.credential);localStorage.setItem("gauthcred",e.credential),Y();const r=await K(t.email,t.sub,`${t.given_name} ${t.family_name}`,"yes");r&&(o(null===r||void 0===r?void 0:r.uid),localStorage.setItem("uid",r.uid),B({uuid:r.uid,data:r}),z(null),await G(),n("/marketplace"))},changeTags:async e=>{try{const{data:t}=await oa.A.post(`${r}/kb/modify_tags`,e);return t}catch(t){console.error(t)}},getFileSummary:async(e,t)=>{try{const n={"X-User-Id":localStorage.getItem("uid")},i="Private Knowledge"===t?"private":localStorage.getItem("organzation")||await $(),{data:o}=await oa.A.get(`${r}/kb/get_summary?name=${e}&orgn=${i}&id`,{timeout:3e5,headers:n});return{data:o,status:200}}catch(i){return i.response&&404===i.response.status?(console.error("Error 404:",i.response.data),{status:404,message:"File not found",details:i.response.data}):(console.error("Error:",i),{status:(null===(n=i.response)||void 0===n?void 0:n.status)||500,message:i.message||"An unexpected error occurred"});var n}},getFavorites:async()=>{try{const e=localStorage.getItem("uid"),t={"X-User-Id":e,"X-Org":await $()},{data:n}=await oa.A.get(`${r}/get_favorites`,{headers:t});return{ok:!0,favorites:n.favorites}}catch(e){throw console.error(e),aa.oR.error("Failed to fetch favorites",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}),e}},getmyTeam:W,setShowData:f,showData:h,getNewKb:async function(e){try{const t=localStorage.getItem("uid"),n=new FormData,o=await H(t||i),s=(null===o||void 0===o?void 0:o.email)||localStorage.getItem("email");n.append("email",s),n.append("team_id",e||E);const l=await $();n.append("organization",l||a);const{data:c}=await oa.A.post(`${r}/get/kb`,n,{headers:{team_id:e}});return c.kb}catch(t){console.error(t),aa.oR.error("Something went wrong",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}},deleteFile:async e=>{try{const t=new FormData;t.append("organization",a),t.append("uid",i),t.append("org",a),t.append("id",e.join()),await(0,xi.Bf)(t)}catch(t){console.log(t)}},disabled:y,getActiveRole:G,myAssistant:_,handleTeamChange:async e=>{try{g(!0),x(!0),await q(e),setTimeout((()=>{x(!1)}),1500)}catch(t){console.error(t)}finally{g(!1)}}
128,loading:m,knowldegeHubs:I,knowldegeHubsNames:M,myTeams:d,activeTeam:E,activeRole:w,handleGetKbNames:Q,handleGetCollections:async()=>{try{const e=localStorage.getItem("uid");return(await(0,xi.qw)(e)).collections}catch(e){console.error(e)}},signup:K,login:async function(e,t){try{const i={email:e,password:t},{data:a}=await oa.A.post(`${r}/login_user`,i,{headers:{team_id:E}});return a.status_code?aa.oR.error(a.detail,{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}):(localStorage.setItem("uid",a.uid),o(null===a||void 0===a?void 0:a.uid),u(!0),localStorage.setItem("user",JSON.stringify(a.user)),await G(),n("/marketplace"),a)}catch(i){if(i.response){if(401===i.response.status)return localStorage.setItem("email",e),n("/otp"),aa.oR.error(`${i.response.data.detail}`,{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"});aa.oR.error(`${i.response.data.detail}`,{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"})}else aa.oR.error("There was an error in uploading data",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"})}},forgetPassword:async function(e){try{const t=new FormData;t.append("email",e);const{data:n}=await oa.A.post(`${r}/forget-password`,t,{headers:{team_id:E}});return(0,aa.oR)("Reset email sent",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}),n}catch(t){console.log(t),t.response?aa.oR.error(`${t.response.data.detail}`,{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}):aa.oR.error("There was an error in uploading data",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"})}},resendOtp:async function(e){try{const t={email:e},{data:n}=await oa.A.post(`${r}/resend-otp`,t,{headers:{team_id:E}});return(0,aa.oR)("Otp Sent",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}),n}catch(t){t.response?aa.oR.error(`${t.response.data.detail}`,{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}):aa.oR.error("There was an error in uploading data",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"})}},verifyOtp:async function(e,t){try{const i={email:e,otp:t},{data:a}=await oa.A.post(`${r}/verify-otp`,i,{headers:{team_id:E}});return localStorage.setItem("ob",!0),n&&(o(null===a||void 0===a?void 0:a.uid),localStorage.setItem("uid",a.uid),localStorage.setItem("user",JSON.stringify(a.user)),await G(),n("/marketplace")),a}catch(i){i.response?aa.oR.error(`${i.response.data.detail}`,{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}):aa.oR.error("Server Error",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"})}},isEmail:async function(e){try{const t=new FormData;t.append("email",e);const{data:i}=await oa.A.post(`${r}/decrypt-email`,t,{headers:{team_id:E}});return null!==i&&void 0!==i&&i.email||n("/404"),i}catch(t){console.log(t),t.response?aa.oR.error(`${t.response.data.detail}`,{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}):aa.oR.error("There was an error in uploading data",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"})}},changePasswordForgot:async function(e,t){try{const i=new FormData;i.append("token",e),i.append("password",t);const{data:o}=await oa.A.post(`${r}/reset-password`,i,{headers:{team_id:E}});return(0,aa.oR)(o.message,{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}),n("/login"),o}catch(i){console.log(i),i.response?aa.oR.error(`${i.response.data.detail}`,{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}):aa.oR.error("There was an error in changing password",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"})}},setUid:o,fetchtrainedBots:X,getOrgName:async()=>{const e=localStorage.getItem("uid"),t=await H(e),{data:n}=await oa.A.post(`${r}/get/org`,{email:null===t||void 0===t?void 0:t.email},{headers:{team_id:E}});return s(n),n},getKb:Z,logOut:async()=>{o(""),s(""),A(""),S(null),k([]),R([]),D([]),p([]),B(null),z(null),localStorage.getItem("gauthcred")&&(localStorage.removeItem("gauthcred"),function(){var e,t,n;null===(n=null===(t=null===(e=null===window||void 0===window?void 0:window.google)||void 0===e?void 0:e.accounts)||void 0===t?void 0:t.id)||void 0===n||n.disableAutoSelect()}()),localStorage.clear(),n("/login")},setActiveTeam:S,getAllModels:async function(){try{const{data:e}=await oa.A.get(`${r}/models/get`);return e}catch(e){console.log(e)}}},children:t})}function ma(){const e=(0,c.useContext)(ha);if(!e)throw new Error("useAccess must be used within an AccessProvider");return e}function ga(e){if(!e||0===e.length)return"#000000";let t,n=0;for(t=0;t<e.length;t+=1)n=e.charCodeAt(t)+((n<<5)-n);let r="#";for(t=0;t<3;t+=1){r+=`00${(n>>8*t&255).toString(16)}`.slice(-2)}return r}function ba(e){if(!e)return{sx:{},children:""};const t=e.split(" ");return{sx:{bgcolor:ga(e)},children:`${t[0][0]}${t[1]?t[1][0]:""}`}}var va=e=>{let{isAsklly:t}=e;const n=(0,re.A)(),[r,i]=(0,c.useState)(),[o,a]=(0,c.useState)(),[s,l]=(0,c.useState)(),[u,d]=(0,c.useState)(),p=new Date,h=parseInt(p.getHours()),{getCachedUserInfo:f,orgNameCache:m}=ma();(0,c.useEffect)((()=>{(async()=>{const e=localStorage.getItem("uid"),t=localStorage.getItem("gauthcred"),n=await f(e);if(n)if(a(n),d(m),""!==(null===n||void 0===n?void 0:n.prof))l(null===n||void 0===n?void 0:n.prof),localStorage.setItem("image",null===n||void 0===n?void 0:n.prof);else if(t){const e=Ro(t);a(e),localStorage.setItem("image",null===o||void 0===o?void 0:o.picture),l(null===o||void 0===o?void 0:o.picture)}else l("")})(),h>=0&&h<=12?i("Good Morning"):h>=12&&h<=16?i("Good Afternoon"):h>=16&&h<=23&&i("Good Evening")}),[]);const g=x((e=>e.customization)),b=(0,te.Zp)(),[v,y]=(0,c.useState)(-1),[w,A]=(0,c.useState)(!1),E=(0,c.useRef)(null),S=e=>{E.current&&E.current.contains(e.target)||A(!1)},_=(0,c.useRef)(w);(0,c.useEffect)((()=>{!0===_.current&&!1===w&&E.current.focus(),_.current=w}),[w]);const{logOut:k}=ma();return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(so,{sx:{height:"40px",alignItems:"center",borderRadius:"12px",transition:"all .2s ease-in-out",borderColor:"transparent",backgroundColor:"transparent",padding:"4px",'&[aria-controls="menu-list-grow"], &:hover':{borderColor:"transparent",background:"#f3f4f6 !important",color:"inherit","& svg":{stroke:"inherit"}},"& .MuiChip-label":{lineHeight:0}},icon:s?(0,L.jsx)(_n,{src:s,sx:{width:"32px",height:"32px",margin:"0 !important",cursor:"pointer",border:"none"},ref:E,"aria-controls":w?"menu-list-grow":void 0,"aria-haspopup":"true",color:"inherit"}):(0,L.jsx)(_n,{...ba(o&&(null===o||void 0===o?void 0:o.uname)),sx:{width:"32px",height:"32px",margin:"0 !important",cursor:"pointer",border:"none",fontSize:"14px",fontWeight:"500"},ref:E,"aria-controls":w?"menu-list-grow":void 0,"aria-haspopup":"true",color:"inherit"}),variant:"outlined",ref:E,"aria-controls":w?"list-grow":void 0,"aria-haspopup":"true",onClick:()=>{A((e=>!e))},color:"primary"}),(0,L.jsx)(Jr,{placement:"bottom-end",open:w,anchorEl:E.current,role:void 0,transition:!0,disablePortal:!0,popperOptions:{modifiers:[{name:"offset",options:{offset:[0,14]}}]},children:e=>{let{TransitionProps:i}=e;return(0,L.jsx)(qi,{in:w,...i,children:(0,L.jsx)(fe.A,{children:(0,L.jsx)(uo,{onClickAway:S,children:(0,L.jsxs)(Co.A,{border:!1,elevation:16,content:!1,boxShadow:n.shadows[16],children:[(0,L.jsx)(ue.A,{sx:{p:2},children:(0,L.jsxs)(po.A,{children:[(0,L.jsx)(po.A,{direction:"row",spacing:.5,alignItems:"center",children:(0,L.jsxs)(Te.A,{variant:"h4",children:[o&&(null===o||void 0===o?void 0:o.uname)||`${null===o||void 0===o?void 0:o.given_name} ${null===o||void 0===o?void 0:o.family_name}`,", ",r&&r]})}),(0,L.jsx)(po.A,{direction:"row",spacing:.5,alignItems:"center",children:(0,L.jsx)(Te.A,{variant:"h5",children:u})})]})}),(0,L.jsx)(To(),{style:{height:"100%",maxHeight:"calc(100vh - 250px)",overflowX:"hidden"},children:(0,L.jsxs)(ue.A,{sx:{p:2},children:[(0,L.jsx)(ia,{username:o&&(null===o||void 0===o?void 0:o.uname)||`${null===o||void 0===o?void 0:o.given_name} ${null===o||void 0===o?void 0:o.family_name}`}),(0,L.jsx)(ze.A,{}),(0,L.jsxs)(ho.A,{component:"nav",sx:{width:"100%",maxWidth:350,minWidth:300,backgroundColor:n.palette.background.paper,borderRadius:"10px",[n.breakpoints.down("md")]:{minWidth:"100%"},"& .MuiListItemButton-root":{mt:.5}},children:[(0,L.jsxs)(xo,{sx:{borderRadius:`${g.borderRadius}px`},selected:0===v,onClick:e=>{b("/teams"),S(e)},children:[(0,L.jsx)(So,{children:(0,L.jsx)(Jt,{stroke:1.5,size:"1.3rem"})}),(0,L.jsx)(_o.A,{primary:(0,L.jsx)(Te.A,{variant:"body2",children:"Teams"})})]}),t&&(0,L.jsxs)(xo,{sx:{borderRadius:`${g.borderRadius}px`},selected:0===v,onClick:e=>{b("/tenants/view"),S(e)},children:[(0,L.jsx)(So,{children:(0,L.jsx)(wt,{stroke:1.5,size:"1.3rem"})}),(0,L.jsx)(_o.A,{primary:(0,L.jsx)(Te.A,{variant:"body2",children:"Tenants"})})]}),(0,L.jsxs)(xo,{sx:{borderRadius:`${g.borderRadius}px`},selected:0===v,onClick:e=>{b("/profile"),S(e)},children:[(0,L.jsx)(So,{children:(0,L.jsx)(Vt,{stroke:1.5,size:"1.3rem"})}),(0,L.jsx)(_o.A,{primary:(0,L.jsx)(Te.A,{variant:"body2",children:"Settings"})})]}),(0,L.jsxs)(xo,{sx:{borderRadius:`${g.borderRadius}px`},selected:4===v,onClick:e=>{b("/audit"),S(e)},children:[(0,L.jsx)(So,{children:(0,L.jsx)(Rt,{stroke:1.5,size:"1.3rem"})}),(0,L.jsx)(_o.A,{primary:(0,L.jsx)(Te.A,{variant:"body2",children:"Activities"})})]}),(0,L.jsxs)(xo,{sx:{borderRadius:`${g.borderRadius}px`},selected:4===v,onClick:e=>{k(),S(e)},children:[(0,L.jsx)(So,{children:(0,L.jsx)(Lt,{stroke:1.5,size:"1.3rem"})}),(0,L.jsx)(_o.A,{primary:(0,L.jsx)(Te.A,{variant:"body2",children:"Logout"})})]})]})]})})]})})})})}})]})};var ya=e=>{const t=c.useRef({});return c.useEffect((()=>{t.current=e})),t.current};var xa=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:i=!1}=e,o=ya({badgeContent:t,max:r});let a=n;!1!==n||0!==t||i||(a=!0);const{badgeContent:s,max:l=r}=a?o:e;
128return{badgeContent:s,invisible:a,max:l,displayValue:s&&Number(s)>l?`${l}+`:s}};function wa(e){return(0,ge.Ay)("MuiBadge",e)}var Aa=(0,me.A)("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]);const Ea=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Sa=(0,ne.Ay)("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),_a=(0,ne.Ay)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;
vendor: 5,225 bytes, line 128
128return[t.badge,t[n.variant],t[`anchorOrigin${(0,he.A)(n.anchorOrigin.vertical)}${(0,he.A)(n.anchorOrigin.horizontal)}${(0,he.A)(n.overlap)}`],"default"!==n.color&&t[`color${(0,he.A)(n.color)}`],n.invisible&&t.invisible]}})((e=>{let{theme:t}=e;var n;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.enteringScreen}),variants:[...Object.keys((null!=(n=t.vars)?n:t).palette).filter((e=>{var n,r;return(null!=(n=t.vars)?n:t).palette[e].main&&(null!=(r=t.vars)?r:t).palette[e].contrastText})).map((e=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main,color:(t.vars||t).palette[e].contrastText}}))),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:e=>{let{ownerState:t}=e;return"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Aa.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:e=>{let{ownerState:t}=e;return"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Aa.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:e=>{let{ownerState:t}=e;return"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Aa.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:e=>{let{ownerState:t}=e;return"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Aa.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:e=>{let{ownerState:t}=e;return"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap},style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Aa.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:e=>{let{ownerState:t}=e;return"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap},style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Aa.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:e=>{let{ownerState:t}=e;return"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap},style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Aa.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:e=>{let{ownerState:t}=e;return"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap},style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Aa.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.leavingScreen})}}]}})),ka=c.forwardRef((function(e,t){var n,r,i,o,a,s;const l=(0,X.b)({props:e,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:u,component:d,components:p={},componentsProps:h={},children:f,overlap:m="rectangular",color:g="default",invisible:b=!1,max:v=99,badgeContent:y,slots:x,slotProps:w,showZero:A=!1,variant:E="standard"}=l,S=(0,P.A)(l,Ea),{badgeContent:_,invisible:k,max:T,displayValue:C}=xa({max:v,invisible:b,badgeContent:y,showZero:A}),O=ya({anchorOrigin:c,color:g,overlap:m,variant:E,badgeContent:y}),N=k||null==_&&"dot"!==E,{color:I=g,overlap:j=m,anchorOrigin:M=c,variant:D=E}=N?O:l,F="dot"!==D?C:void 0,B=(0,R.A)({},l,{badgeContent:_,invisible:N,max:T,displayValue:F,showZero:A,anchorOrigin:M,color:I,overlap:j,variant:D}),U=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:i,variant:o,classes:a={}}=e,s={root:["root"],badge:["badge",o,r&&"invisible",`anchorOrigin${(0,he.A)(n.vertical)}${(0,he.A)(n.horizontal)}`,`anchorOrigin${(0,he.A)(n.vertical)}${(0,he.A)(n.horizontal)}${(0,he.A)(i)}`,`overlap${(0,he.A)(i)}`,"default"!==t&&`color${(0,he.A)(t)}`]};return(0,pe.A)(s,wa,a)})(B),z=null!=(n=null!=(r=null==x?void 0:x.root)?r:p.Root)?n:Sa,H=null!=(i=null!=(o=null==x?void 0:x.badge)?o:p.Badge)?i:_a,$=null!=(a=null==w?void 0:w.root)?a:h.root,V=null!=(s=null==w?void 0:w.badge)?s:h.badge,G=(0,He.A)({elementType:z,externalSlotProps:$,externalForwardedProps:S,additionalProps:{ref:t,as:d},ownerState:B,className:(0,de.A)(null==$?void 0:$.className,U.root,u)}),W=(0,He.A)({elementType:H,externalSlotProps:V,ownerState:B,className:(0,de.A)(U.badge,
128null==V?void 0:V.className)});return(0,L.jsxs)(z,(0,R.A)({},G,{children:[f,(0,L.jsx)(H,(0,R.A)({},W,{children:F}))]}))}));var Ta=ka;function Ca(e){return(0,ge.Ay)("MuiListItemAvatar",e)}(0,me.A)("MuiListItemAvatar",["root","alignItemsFlexStart"]);const Oa=["className"],Na=(0,ne.Ay)("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((e=>{let{ownerState:t}=e;return(0,R.A)({minWidth:56,flexShrink:0},"flex-start"===t.alignItems&&{marginTop:8})}));var Ia=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiListItemAvatar"}),{className:r}=n,i=(0,P.A)(n,Oa),o=c.useContext(go.A),a=(0,R.A)({},n,{alignItems:o.alignItems}),s=(e=>{const{alignItems:t,classes:n}=e,r={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,pe.A)(r,Ca,n)})(a);return(0,L.jsx)(Na,(0,R.A)({className:(0,de.A)(s.root,r),ownerState:a,ref:t},i))})),Ra=__webpack_require__(71378),Pa=__webpack_require__(25333),ja=(0,Ve.A)((0,L.jsx)("path",{d:"M15 16h4v2h-4zm0-8h7v2h-7zm0 4h6v2h-6zM3 18c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V8H3zM14 5h-3l-1-1H6L5 5H2v2h12z"}),"DeleteSweep"),Ma=(0,Ve.A)((0,L.jsx)("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"}),"InsertDriveFile"),Da=(0,Ve.A)((0,L.jsx)("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-2 12H6v-2h12zm0-3H6V9h12zm0-3H6V6h12z"}),"Message"),La=(0,Ve.A)((0,L.jsx)("path",{d:"m18 7-1.41-1.41-6.34 6.34 1.41 1.41zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12zM.41 13.41 6 19l1.41-1.41L1.83 12z"}),"DoneAll"),Fa=(0,Ve.A)((0,L.jsx)("path",{d:"M11.07 12.85c.77-1.39 2.25-2.21 3.11-3.44.91-1.29.4-3.7-2.18-3.7-1.69 0-2.52 1.28-2.87 2.34L6.54 6.96C7.25 4.83 9.18 3 11.99 3c2.35 0 3.96 1.07 4.78 2.41.7 1.15 1.11 3.3.03 4.9-1.2 1.77-2.35 2.31-2.97 3.45-.25.46-.35.76-.35 2.24h-2.89c-.01-.78-.13-2.05.48-3.15M14 20c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2"}),"QuestionMark"),Ba=(0,Ve.A)((0,L.jsx)("path",{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3M7.5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S9.83 13 9 13s-1.5-.67-1.5-1.5M16 17H8v-2h8zm-1-4c-.83 0-1.5-.67-1.5-1.5S14.17 10 15 10s1.5.67 1.5 1.5S15.83 13 15 13"}),"SmartToy"),Ua=(0,Ve.A)((0,L.jsx)("path",{d:"M9 13.75c-2.34 0-7 1.17-7 3.5V19h14v-1.75c0-2.33-4.66-3.5-7-3.5M4.34 17c.84-.58 2.87-1.25 4.66-1.25s3.82.67 4.66 1.25zM9 12c1.93 0 3.5-1.57 3.5-3.5S10.93 5 9 5 5.5 6.57 5.5 8.5 7.07 12 9 12m0-5c.83 0 1.5.67 1.5 1.5S9.83 10 9 10s-1.5-.67-1.5-1.5S8.17 7 9 7m7.04 6.81c1.16.84 1.96 1.96 1.96 3.44V19h4v-1.75c0-2.02-3.5-3.17-5.96-3.44M15 12c1.93 0 3.5-1.57 3.5-3.5S16.93 5 15 5c-.54 0-1.04.13-1.5.35.63.89 1 1.98 1 3.15s-.37 2.26-1 3.15c.46.22.96.35 1.5.35"}),"GroupOutlined"),za=(0,Ve.A)((0,L.jsx)("path",{d:"M9.78 18.65l.28-4.23 7.68-6.92c.34-.31-.07-.46-.52-.19L7.74 13.3 3.64 12c-.88-.25-.89-.86.2-1.3l15.97-6.16c.73-.33 1.43.18 1.15 1.3l-2.72 12.81c-.19.91-.74 1.13-1.5.71L12.6 16.3l-1.99 1.93c-.23.23-.42.42-.83.42z"}),"Telegram");const Ha=(0,ne.Ay)("div")((e=>{let{theme:t}=e;return{cursor:"pointer",padding:16,"&:hover":{background:t.palette.primary.light},"& .MuiListItem-root":{padding:0}}}));var $a=e=>{let{list:t,setOpen:n,handleClose:r}=e;const o=(0,re.A)(),a=(0,te.Zp)(),s=e=>{switch(!0){case e.search("Files Deleted!")>=0:return(0,L.jsx)(ja,{stroke:1.5,size:"1.3rem"});case e.search("Url")>=0:return(0,L.jsx)(i.N_,{stroke:1.5,size:"1.3rem"});case e.search("File")>=0:return(0,L.jsx)(Ma,{stroke:1.5,size:"1.3rem"});case e.includes("Updated!")||e.includes("AI"):return(0,L.jsx)(Da,{stroke:1.5,size:"1.3rem"});case e.search("Captured")>=0:return(0,L.jsx)(La,{stroke:1.5,size:"1.3rem"});case e.search("Question/Answer")>=0:return(0,L.jsx)(Fa,{stroke:1.5,size:"1.3rem"});case e.search("Bot")>=0:return(0,L.jsx)(Ba,{stroke:1.5,size:"1.3rem"});case e.search("New Team Created")>=0||e.search("New Member")>=0||e.search("Team Deleted")>=0||e.search("Member Removed")>=0:return(0,L.jsx)(Ua,{stroke:1.5,size:"1.3rem"});default:return(0,L.jsx)(za,{stroke:1.5,size:"1.3rem"})}};return(0,L.jsx)(ho.A,{sx:{width:"100%",maxWidth:330,py:0,borderRadius:"10px",[o.breakpoints.down("md")]:{maxWidth:300},"& .MuiListItemSecondaryAction-root":{top:22},"& .MuiDivider-root":{my:0},"& .list-container":{pl:7}},children:(null===t||void 0===t?void 0:t.length)>0?null===t||void 0===t?void 0:t.map((e=>(0,L.jsxs)(po.A,{children:[(0,L.jsxs)(Ha,{children:[(0,L.jsxs)(ta.Ay,{alignItems:"left",children:[(0,L.jsx)(Ia,{children:(0,L.jsx)(_n,{sx:{color:o.palette.primary.dark,backgroundColor:o.palette.primary.light,border:"none",borderColor:o.palette.primary.main},children:s(null===e||void 0===e?void 0:e.title)})}),(0,L.jsx)("button",{onClick:()=>{return t=null===e||void 0===e?void 0:e.nav,a(t),void r();var t},children:(0,L.jsx)(_o.A,{className:"hover:underline",primary:(0,L.jsx)(Te.A,{variant:"subtitle1",children:null===e||void 0===e?void 0:e.title})})}),(0,L.jsx)(Ra.A,{children:(0,L.jsx)(Ue,{container:!0,justifyContent:"flex-end",className:"ml-4",children:(0,L.jsx)(Ue,{item:!0,children:(0,L.jsx)(Te.A,{variant:"subtitle2",children:(0,L.jsx)(Pa.A,{onClick:()=>(async e=>{await(0,xi.Vr)(e)&&n(!1)})(e.id),children:(0,L.jsx)(Yt,{})})})})})})]}),(0,L.jsx)(Ue,{container:!0,direction:"column",className:"list-container",children:(0,L.jsx)(Ue,{item:!0,xs:12,sx:{pb:2},children:(0,L.jsx)(Te.A,{variant:"subtitle2",children:null===e||void 0===e?void 0:e.message})})})]}),(0,L.jsx)(ze.A,{})]},e.id))):(0,L.jsx)(Te.A,{variant:"h5",sx:{fontWeight:"600",height:80,width:300,display:"flex",justifyContent:"center",alignItems:"center"},children:"No Notifications Yet"})})},Va=__webpack_require__(47063);var Ga=()=>{const e=(0,re.A)(),t=ce(e.breakpoints.down("md")),[n,r]=(0,c.useState)(!1),[i,o]=(0,c.useState)(""),[a,s]=(0,c.useState)([]),l=(0,c.useRef)(null),u=()=>{r((e=>!e))},d=e=>{l.current&&l.current.contains(e.target)||r(!1)},p=(0,c.useRef)(n);(0,c.useEffect)((()=>{!0===p.current&&!1===n&&l.current.focus();const e=localStorage.getItem("uid");p.current=n,!0===n&&(0,xi.iD)(e).then((e=>{const t=e.sort(((e,t)=>new Date(t.created_at)-new Date(e.created_at)));s(t)}))}),[n]),(0,c.useEffect)((()=>{const e=localStorage.getItem("uid");(0,xi.iD)(e).then((e=>{s(e)}))}),[]);const h=async()=>{a.map((async e=>{await(0,xi.Vr)(e.id)}
128)),s([]),r(!1)};return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ue.A,{sx:{ml:1,mr:1,[e.breakpoints.down("md")]:{mr:2}},children:(0,L.jsx)(We.A,{sx:{borderRadius:"12px"},children:(0,L.jsx)(Ta,{badgeContent:a.length,color:"secondary",max:99,children:(0,L.jsx)(mi,{placement:"bottom",title:"Notifications",arrow:!0,children:(0,L.jsx)(_n,{variant:"rounded",sx:{...e.typography.commonAvatar,...e.typography.mediumAvatar,transition:"all .2s ease-in-out",background:e.palette.secondary.light,color:e.palette.secondary.dark,'&[aria-controls="menu-list-grow"],&:hover':{background:e.palette.secondary.dark,color:e.palette.secondary.light}},ref:l,"aria-controls":n?"menu-list-grow":void 0,"aria-haspopup":"true",onClick:u,color:"inherit",children:(0,L.jsx)(ft,{stroke:1.5,size:"1.3rem"})})})})})}),(0,L.jsx)(Jr,{placement:t?"bottom":"bottom-end",open:n,anchorEl:l.current,role:void 0,transition:!0,disablePortal:!0,popperOptions:{modifiers:[{name:"offset",options:{offset:[t?5:0,20]}}]},children:i=>{let{TransitionProps:o}=i;return(0,L.jsx)(qi,{position:t?"top":"top-right",in:n,...o,children:(0,L.jsx)(fe.A,{children:(0,L.jsx)(uo,{onClickAway:d,children:(0,L.jsxs)(Co.A,{border:!1,elevation:16,content:!1,boxShadow:!0,shadow:e.shadows[16],children:[(0,L.jsxs)(Ue,{container:!0,direction:"column",spacing:2,children:[(0,L.jsx)(Ue,{item:!0,xs:12,children:(0,L.jsx)(Ue,{container:!0,alignItems:"center",justifyContent:"space-between",sx:{pt:2,px:2},children:(0,L.jsx)(Ue,{item:!0,children:(0,L.jsxs)(po.A,{direction:"row",spacing:2,justifyContent:"space-between",children:[(0,L.jsx)(Te.A,{variant:"subtitle1",children:"All Notifications"}),(0,L.jsx)(Va.A,{onClick:h})]})})})}),(0,L.jsx)(Ue,{item:!0,xs:12,children:(0,L.jsxs)(To(),{style:{height:"100%",maxHeight:"calc(100vh - 205px)",overflowX:"hidden"},children:[(0,L.jsx)(Ue,{container:!0,direction:"column",spacing:2,children:(0,L.jsx)(Ue,{item:!0,xs:12,p:0,children:(0,L.jsx)(ze.A,{sx:{my:0}})})}),(0,L.jsx)($a,{list:a,setOpen:r,handleClose:u})]})})]}),(0,L.jsx)(ze.A,{})]})})})})}})]})},Wa=(0,Ve.A)((0,L.jsx)("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H6l-2 2V4h16z"}),"ChatBubbleOutline");var qa=()=>{const e=(0,te.Zp)(),t=(0,re.A)(),[n,r]=(0,c.useState)(!1),[i,o]=(0,c.useState)(""),[a,s]=(0,c.useState)([]),l=(0,c.useRef)(null),u=(0,c.useRef)(n);return(0,c.useEffect)((()=>{!0===u.current&&!1===n&&l.current.focus();const e=localStorage.getItem("uid");u.current=n,!0===n&&(0,xi.iD)(e).then((e=>{s(e)}))}),[n]),(0,c.useEffect)((()=>{const e=localStorage.getItem("uid");(0,xi.iD)(e).then((e=>{s(e)}))}),[]),(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(ue.A,{sx:{ml:.5,mr:.5,[t.breakpoints.down("md")]:{mr:2}},children:(0,L.jsx)(We.A,{sx:{borderRadius:"12px",overflow:"hidden"},children:(0,L.jsx)(_n,{variant:"rounded",sx:{...t.typography.commonAvatar,...t.typography.mediumAvatar,transition:"all .2s ease-in-out",background:t.palette.secondary.light,color:t.palette.secondary.dark,"&:hover":{background:t.palette.secondary.dark,color:t.palette.secondary.light}},onClick:()=>{e("/chat-with-bot")},color:"inherit",children:(0,L.jsx)(mi,{placement:"bottom",title:"Chat",arrow:!0,children:(0,L.jsx)(Wa,{stroke:1.5,size:"1.3rem"})})})})})})},Ya=__webpack_require__(70544),Ka=__webpack_require__(44564),Xa=__webpack_require__(8145);let Za;function Qa(){if(Za)return Za;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Za="reverse",e.scrollLeft>0?Za="default":(e.scrollLeft=1,0===e.scrollLeft&&(Za="negative")),document.body.removeChild(e),Za}function Ja(e,t){const n=e.scrollLeft;if("rtl"!==t)return n;switch(Qa()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function es(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const ts=["onChange"],ns={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};var rs=(0,Ve.A)((0,L.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),is=(0,Ve.A)((0,L.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function os(e){return(0,ge.Ay)("MuiTabScrollButton",e)}var as=(0,me.A)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]);const ss=["className","slots","slotProps","direction","orientation","disabled"],ls=(0,ne.Ay)(We.A,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})((e=>{let{ownerState:t}=e;return(0,R.A)({width:40,flexShrink:0,opacity:.8,[`&.${as.disabled}`]:{opacity:0}
128},"vertical"===t.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})}));var cs=c.forwardRef((function(e,t){var n,r;const i=(0,X.b)({props:e,name:"MuiTabScrollButton"}),{className:o,slots:a={},slotProps:s={},direction:l}=i,c=(0,P.A)(i,ss),u=(0,z.I)(),d=(0,R.A)({isRtl:u},i),p=(e=>{const{classes:t,orientation:n,disabled:r}=e,i={root:["root",n,r&&"disabled"]};return(0,pe.A)(i,os,t)})(d),h=null!=(n=a.StartScrollButtonIcon)?n:rs,f=null!=(r=a.EndScrollButtonIcon)?r:is,m=(0,He.A)({elementType:h,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d}),g=(0,He.A)({elementType:f,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d});return(0,L.jsx)(ls,(0,R.A)({component:"div",className:(0,de.A)(p.root,o),ref:t,role:null,ownerState:d,tabIndex:null},c,{children:"left"===l?(0,L.jsx)(h,(0,R.A)({},m)):(0,L.jsx)(f,(0,R.A)({},g))}))}));function us(e){return(0,ge.Ay)("MuiTabs",e)}var ds=(0,me.A)("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","
128indicator"]),ps=__webpack_require__(27402);const hs=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],fs=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,ms=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,gs=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const t=i.disabled||"true"===i.getAttribute("aria-disabled");if(i.hasAttribute("tabindex")&&!t)return void i.focus();i=n(e,i)}},bs=(0,ne.Ay)("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ds.scrollButtons}`]:t.scrollButtons},{[`& .${ds.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})((e=>{let{ownerState:t,theme:n}=e;return(0,R.A)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${ds.scrollButtons}`]:{[n.breakpoints.down("sm")]:{display:"none"}}})})),vs=(0,ne.Ay)("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})((e=>{let{ownerState:t}=e;return(0,R.A)({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})})),ys=(0,ne.Ay)("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})((e=>{let{ownerState:t}=e;return(0,R.A)({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})})),xs=(0,ne.Ay)("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})((e=>{let{ownerState:t,theme:n}=e;return(0,R.A)({position:"absolute",height:2,bottom:0,width:"100%",transition:n.transitions.create()},"primary"===t.indicatorColor&&{backgroundColor:(n.vars||n).palette.primary.main},"secondary"===t.indicatorColor&&{backgroundColor:(n.vars||n).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})})),ws=(0,ne.Ay)((function(e){const{onChange:t}=e,n=(0,P.A)(e,ts),r=c.useRef(),i=c.useRef(null),o=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return(0,mo.A)((()=>{const e=(0,Di.A)((()=>{const e=r.current;o(),e!==r.current&&t(r.current)})),n=(0,Li.A)(i.current);return n.addEventListener("resize",e),()=>{e.clear(),n.removeEventListener("resize",e)}}),[t]),c.useEffect((()=>{o(),t(r.current)}),[t]),(0,L.jsx)("div",(0,R.A)({style:ns},n,{ref:i}))}))({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),As={};const Es=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiTabs"}),r=(0,re.A)(),i=(0,z.I)(),{"aria-label":o,"aria-labelledby":a,action:s,centered:l=!1,children:u,className:d,component:p="div",allowScrollButtonsMobile:h=!1,indicatorColor:f="primary",onChange:m,orientation:g="horizontal",ScrollButtonComponent:b=cs,scrollButtons:v="auto",selectionFollowsFocus:y,slots:x={},slotProps:w={},TabIndicatorProps:A={},TabScrollButtonProps:E={},textColor:S="primary",value:_,variant:k="standard",visibleScrollbar:T=!1}=n,C=(0,P.A)(n,hs),O="scrollable"===k,N="vertical"===g,I=N?"scrollTop":"scrollLeft",j=N?"top":"left",M=N?"bottom":"right",D=N?"clientHeight":"clientWidth",F=N?"height":"width",B=(0,R.A)({},n,{component:p,allowScrollButtonsMobile:h,indicatorColor:f,orientation:g,vertical:N,scrollButtons:v,textColor:S,variant:k,visibleScrollbar:T,fixed:!O,hideScrollbar:O&&!T,scrollableX:O&&!N,scrollableY:O&&N,centered:l&&!O,scrollButtonsHideMobile:!h}),U=(e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:o,centered:a,scrollButtonsHideMobile:s,classes:l}=e,c={root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hide
128Scrollbar",i&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]};return(0,pe.A)(c,us,l)})(B),H=(0,He.A)({elementType:x.StartScrollButtonIcon,externalSlotProps:w.startScrollButtonIcon,ownerState:B}),$=(0,He.A)({elementType:x.EndScrollButtonIcon,externalSlotProps:w.endScrollButtonIcon,ownerState:B});const[V,G]=c.useState(!1),[W,q]=c.useState(As),[Y,K]=c.useState(!1),[Z,Q]=c.useState(!1),[J,ee]=c.useState(!1),[te,ne]=c.useState({overflow:"hidden",scrollbarWidth:0}),ie=new Map,oe=c.useRef(null),ae=c.useRef(null),se=()=>{const e=oe.current;let t,n;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:Ja(e,i?"rtl":"ltr"),scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==_){const e=ae.current.children;if(e.length>0){const t=e[ie.get(_)];0,n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},le=(0,ei.A)((()=>{const{tabsMeta:e,tabMeta:t}=se();let n,r=0;if(N)n="top",t&&e&&(r=t.top-e.top+e.scrollTop);else if(n=i?"right":"left",t&&e){const o=i?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;r=(i?-1:1)*(t[n]-e[n]+o)}const o={[n]:r,[F]:t?t[F]:0};if(isNaN(W[n])||isNaN(W[F]))q(o);else{const e=Math.abs(W[n]-o[n]),t=Math.abs(W[F]-o[F]);(e>=1||t>=1)&&q(o)}})),ce=function(e){let{animation:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t?function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>{};const{ease:o=es,duration:a=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},d=r=>{if(c)return void i(new Error("Animation cancelled"));null===s&&(s=r);const u=Math.min(1,(r-s)/a);t[e]=o(u)*(n-l)+l,u>=1?requestAnimationFrame((()=>{i(null)})):requestAnimationFrame(d)};l===n?i(new Error("Element already at target position")):requestAnimationFrame(d)}(I,oe.current,e,{duration:r.transitions.duration.standard}):oe.current[I]=e},ue=e=>{let t=oe.current[I];N?t+=e:(t+=e*(i?-1:1),t*=i&&"reverse"===Qa()?-1:1),ce(t)},he=()=>{const e=oe.current[D];let t=0;const n=Array.from(ae.current.children);for(let r=0;r<n.length;r+=1){const i=n[r];if(t+i[D]>e){0===r&&(t=e);break}t+=i[D]}return t},fe=()=>{ue(-1*he())},me=()=>{ue(he())},ge=c.useCallback((e=>{ne({overflow:null,scrollbarWidth:e})}),[]),be=(0,ei.A)((e=>{const{tabsMeta:t,tabMeta:n}=se();if(n&&t)if(n[j]<t[j]){const r=t[I]+(n[j]-t[j]);ce(r,{animation:e})}else if(n[M]>t[M]){const r=t[I]+(n[M]-t[M]);ce(r,{animation:e})}})),ve=(0,ei.A)((()=>{O&&!1!==v&&ee(!J)}));c.useEffect((()=>{const e=(0,Di.A)((()=>{oe.current&&le()}));let t;const n=n=>{n.forEach((e=>{e.removedNodes.forEach((e=>{var n;null==(n=t)||n.unobserve(e)})),e.addedNodes.forEach((e=>{var n;null==(n=t)||n.observe(e)}))})),e(),ve()},r=(0,Li.A)(oe.current);let i;return r.addEventListener("resize",e),"undefined"!==typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(ae.current.children).forEach((e=>{t.observe(e)}))),"undefined"!==typeof MutationObserver&&(i=new MutationObserver(n),i.observe(ae.current,{childList:!0})),()=>{var n,o;e.clear(),r.removeEventListener("resize",e),null==(n=i)||n.disconnect(),null==(o=t)||o.disconnect()}}),[le,ve]),c.useEffect((()=>{const e=Array.from(ae.current.children),t=e.length;if("undefined"!==typeof IntersectionObserver&&t>0&&O&&!1!==v){const n=e[0],r=e[t-1],i={root:oe.current,threshold:.99},o=new IntersectionObserver((e=>{K(!e[0].isIntersecting)}),i);o.observe(n);const a=new IntersectionObserver((e=>{Q(!e[0].isIntersecting)}),i);return a.observe(r),()=>{o.disconnect(),a.disconnect()}}}),[O,v,J,null==u?void 0:u.length]),c.useEffect((()=>{G(!0)}),[]),c.useEffect((()=>{le()})),c.useEffect((()=>{be(As!==W)}),[be,W]),c.useImperativeHandle(s,(()=>({updateIndicator:le,updateScrollButtons:ve})),[le,ve]);const ye=(0,L.jsx)(xs,(0,R.A)({},A,{className:(0,de.A)(U.indicator,A.className),ownerState:B,style:(0,R.A)({},W,A.style)}));let xe=0;const we=c.Children.map(u,(e=>{if(!c.isValidElement(e))return null;const t=void 0===e.props.value?xe:e.props.value;ie.set(t,xe);const n=t===_;return xe+=1,c.cloneElement(e,(0,R.A)({fullWidth:"fullWidth"===k,indicator:n&&!V&&ye,selected:n,selectionFollowsFocus:y,onChange:m,textColor:S,value:t},1!==xe||!1!==_||e.props.tabIndex?{}:{tabIndex:0}))})),Ae=(()=>{const e={};e.scrollbarSizeListener=O?(0,L.jsx)(ws,{onChange:ge,className:(0,de.A)(U.scrollableX,U.hideScrollbar)}):null;const t=O&&("auto"===v&&(Y||Z)||!0===v);return e.scrollButtonStart=t?(0,L.jsx)(b,(0,R.A)({slots:{StartScrollButtonIcon:x.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:H},orientation:g,direction:i?"right":"left",onClick:fe,disabled:!Y},E,{className:(0,de.A)(U.scrollButtons,E.className)})):null,e.scrollButtonEnd=t?(0,L.jsx)(b,(0,R.A)({slots:{EndScrollButtonIcon:x.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:$},orientation:g,direction:i?"left":"right",onClick:me,disabled:!Z},E,{className:(0,de.A)(U.scrollButtons,E.className)})):null,e})();return(0,L.jsxs)(bs,(0,R.A)({className:(0,de.A)(U.root,d),ownerState:B,ref:t,as:p},C,{children:[Ae.scrollButtonStart,Ae.scrollbarSizeListener,(0,L.jsxs)(vs,{className:U.scroller,ownerState:B,style:{overflow:te.overflow,[N?"margin"+(i?"Left":"Right"):"marginBottom"]:T?void 0:-te.scrollbarWidth},ref:oe,children:[(0,L.jsx)(ys,{"aria-label":o,"aria-labelledby":a,"aria-orientation":"vertical"===g?"vertical":null,className:U.flexContainer,ownerState:B,onKeyDown:e=>{const t=ae.current,n=(0,ps.A)(t).activeElement;if("tab"!==n.getAttribute("role"))return;let r="horizontal"===g?"ArrowLeft":"ArrowUp",o="horizontal"===g?"ArrowRight":"ArrowDown";switch("horizontal"===g&&i&&(r="ArrowRight",o="ArrowLeft"),e.key){case r:e.preventDefault(),gs(t,n,ms);break;case o:e.preventDefault(),gs(t,n,fs);break;case"Home":e.preventDefault(),gs(t,null,fs);break;case"End":e.preventDefault(),gs(t,null,ms)}},ref:ae,role:"tablist",children:we}),V&&ye]}),Ae.scrollButtonEnd]}))}));var Ss=Es;function _s(e){return(0,ge.Ay)("MuiTab",e)}var ks=(0,me.A)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]);const Ts=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Cs=(0,ne.Ay)(We.A,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${(0,he.A)(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${ks.iconWrapper}`]:t.iconWrapper}]}})((e=>{let{theme:t,ownerState:n}=e;return(0,R.A)({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",
128whiteSpace:"normal",textAlign:"center"},n.label&&{flexDirection:"top"===n.iconPosition||"bottom"===n.iconPosition?"column":"row"},{lineHeight:1.25},n.icon&&n.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${ks.iconWrapper}`]:(0,R.A)({},"top"===n.iconPosition&&{marginBottom:6},"bottom"===n.iconPosition&&{marginTop:6},"start"===n.iconPosition&&{marginRight:t.spacing(1)},"end"===n.iconPosition&&{marginLeft:t.spacing(1)})},"inherit"===n.textColor&&{color:"inherit",opacity:.6,[`&.${ks.selected}`]:{opacity:1},[`&.${ks.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"primary"===n.textColor&&{color:(t.vars||t).palette.text.secondary,[`&.${ks.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${ks.disabled}`]:{color:(t.vars||t).palette.text.disabled}},"secondary"===n.textColor&&{color:(t.vars||t).palette.text.secondary,[`&.${ks.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${ks.disabled}`]:{color:(t.vars||t).palette.text.disabled}},n.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},n.wrapped&&{fontSize:t.typography.pxToRem(12)})}
128));var Os=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiTab"}),{className:r,disabled:i=!1,disableFocusRipple:o=!1,fullWidth:a,icon:s,iconPosition:l="top",indicator:u,label:d,onChange:p,onClick:h,onFocus:f,selected:m,selectionFollowsFocus:g,textColor:b="inherit",value:v,wrapped:y=!1}=n,x=(0,P.A)(n,Ts),w=(0,R.A)({},n,{disabled:i,disableFocusRipple:o,selected:m,icon:!!s,iconPosition:l,label:!!d,fullWidth:a,textColor:b,wrapped:y}),A=(e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:o,label:a,selected:s,disabled:l}=e,c={root:["root",o&&a&&"labelIcon",`textColor${(0,he.A)(n)}`,r&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return(0,pe.A)(c,_s,t)})(w),E=s&&d&&c.isValidElement(s)?c.cloneElement(s,{className:(0,de.A)(A.iconWrapper,s.props.className)}):s;return(0,L.jsxs)(Cs,(0,R.A)({focusRipple:!o,className:(0,de.A)(A.root,r),ref:t,role:"tab","aria-selected":m,disabled:i,onClick:e=>{!m&&p&&p(e,v),h&&h(e)},onFocus:e=>{g&&!m&&p&&p(e,v),f&&f(e)},ownerState:w,tabIndex:m?0:-1},x,{children:["top"===l||"start"===l?(0,L.jsxs)(c.Fragment,{children:[E,d]}):(0,L.jsxs)(c.Fragment,{children:[d,E]}),u]}))})),Ns=__webpack_require__(36230);const Is=(0,Ns.A)("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]),Rs=(0,Ns.A)("Book",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]]),Ps=(0,Ns.A)("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]),js=(0,Ns.A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);var Ms=()=>{const{addToFavorites:e}=ma(),[t,n]=(0,c.useState)([]),[r,i]=(0,c.useState)(""),[o,a]=(0,c.useState)(!1),[s,l]=(0,c.useState)(!1),[u,d]=(0,c.useState)(!1),[p,h]=(0,c.useState)(1),[f,m]=(0,c.useState)([]),[g,b]=(0,c.useState)("favorites"),{allKnowldegeHubs:v,getFavorites:y,handleGetCollections:x,myAssistant:w,activeRole:A=[]}=ma(),E=(0,te.Zp)(),S=(0,c.useRef)(null);localStorage.getItem("uid");(0,c.useEffect)((()=>{(async()=>{try{const e=await y();n(e.favorites);const t=await x();m(t)}catch(e){console.error("Error fetching data:",e)}})();const e=()=>{d(window.innerWidth<768)};e(),window.addEventListener("resize",e);const t=e=>{S.current&&!S.current.contains(e.target)&&a(!1)};return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t),window.removeEventListener("resize",e)}}),[]),(0,c.useEffect)((()=>{h(1)}),[g,r]);const _={"knowledge-hub":null===v||void 0===v?void 0:v.map((r=>({title:r.kb_name,category:"Knowledge Hub",nav:`/kb?filter=${null===r||void 0===r?void 0:r.kb_name}`,onclick:async()=>{await e(null===r||void 0===r?void 0:r.kb_id,"knowledgebase");const t=await y();n(t.favorites)},fav:t.some((e=>"Knowledge Hub"===e.category&&e.kb_id===r.kb_id))}))),"ai-assistants":w.map((r=>({title:r.botname,description:"AI Assistant",category:"AI Assistants",nav:`/api?k=${null===r||void 0===r?void 0:r.apikey}`,onclick:async()=>{await e(null===r||void 0===r?void 0:r.id,"bot");const t=await y();n(t.favorites)},fav:t.some((e=>"AI Assistants"===e.category&&e.id===r.id))}))),favorites:t.map((t=>({title:null!==t&&void 0!==t&&t.botname?null===t||void 0===t?void 0:t.botname:null!==t&&void 0!==t&&t.kb_name?null===t||void 0===t?void 0:t.kb_name:t.name,description:t.category,category:t.category,nav:"AI Assistants"===t.category?`/api?k=${t.apikey}`:"collection"===t.category?`/collection?id=${null===t||void 0===t?void 0:t.id}`:"/kb",onclick:async()=>{await e("knowledgebase"===t.category?null===t||void 0===t?void 0:t.kb_id:null===t||void 0===t?void 0:t.id,"AI Assistants"===t.category?"bot":t.category);const r=await y();n(r.favorites)},fav:!0}))),collections:f.map((r=>({title:r.name,description:r.description,category:"Collections",nav:`/collection?id=${null===r||void 0===r?void 0:r.id}
128`,onclick:async()=>{await e(null===r||void 0===r?void 0:r.id,"collection");const t=await y();n(t.favorites)},fav:t.some((e=>"collection"===e.category&&e.id===r.id))})))},k=[{id:"favorites",icon:(0,L.jsx)(Is,{className:"w-5 h-5"}),title:"Favorites",items:["favorites"]},...Array.isArray(String(A).split(","))&&(String(A).split(",").includes("Create Knowledge Base")||String(A).split(",").includes("Admin"))?[{id:"knowledge-hub",icon:(0,L.jsx)(Rs,{className:"w-5 h-5"}),title:"Knowledge Hub",items:["knowledge-hub"]}]:[],...Array.isArray(String(A).split(","))&&(String(A).split(",").includes("Only Query Knowledge Base")||String(A).split(",").includes("Admin"))?[{id:"ai-assistants",icon:(0,L.jsx)(Ps,{className:"w-5 h-5"}),title:"AI Assistants",items:["ai-assistants"]}]:[],...Array.isArray(String(A).split(","))&&(String(A).split(",").includes("Only Query Knowledge Base")||String(A).split(",").includes("Admin"))?[{id:"collections",icon:(0,L.jsx)(Rs,{className:"w-5 h-5"}),title:"Collections",items:["collections"]}]:[]],T=e=>{let{totalItems:t}=e;const n=Math.ceil(t/4);return(0,L.jsx)("div",{className:"flex justify-center gap-2",children:Array.from({length:n},((e,t)=>t+1)).map((e=>(0,L.jsx)("button",{onClick:()=>h(e),className:"px-3 py-1.5 rounded-lg text-sm font-medium transition-all "+(p===e?"bg-purple-600 text-white shadow-sm":"bg-gray-50 text-gray-600 hover:bg-gray-100"),children:e},e)))})},C=e=>{let{items:t}=e;const n=t.filter((e=>e.title&&e.title.toLowerCase().includes(r.toLowerCase())||e.description&&e.description.toLowerCase().includes(r.toLowerCase())||e.category&&e.category.toLowerCase().includes(r.toLowerCase()))),i=4*(p-1),o=n.slice(i,i+4);return(0,L.jsxs)("div",{className:"flex flex-col h-full",children:[(0,L.jsx)("div",{className:`grid gap-3 p-4 ${u?"grid-cols-1":"grid-cols-2"} overflow-y-auto flex-grow`,children:0===o.length?(0,L.jsx)("div",{className:"col-span-full flex items-center justify-center h-full",children:(0,L.jsxs)("div",{className:"text-center text-gray-500",children:[(0,L.jsxs)("p",{className:"text-lg font-medium",children:["No ",g," found"]}),(0,L.jsx)("p",{className:"text-sm mt-1",children:"Try a different search term"})]})}):o.map(((e,t)=>(0,L.jsx)("div",{onClick:()=>{E(null===e||void 0===e?void 0:e.nav),a(!1)},className:"bg-white rounded-xl p-4 hover:shadow-md transition-all cursor-pointer border border-gray-100 hover:border-purple-200",children:(0,L.jsx)("div",{className:"flex flex-col h-full justify-between",children:(0,L.jsxs)("div",{className:"flex justify-between items-start gap-3",children:[(0,L.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,L.jsx)("h3",{className:"text-base font-semibold text-gray-900 truncate mb-1",children:e.title}),(0,L.jsx)("p",{className:"text-gray-500 text-sm truncate",children:e.category||e.description})]}),(0,L.jsx)("div",{className:"flex items-center gap-2 flex-shrink-0",children:(0,L.jsx)(Is,{fill:null!==e&&void 0!==e&&e.fav?"#EF4444":"none",className:`w-5 h-5 ${null!==e&&void 0!==e&&e.fav?"text-red-500":"text-gray-400"} hover:text-red-500 transition-colors`,onClick:t=>{null===e||void 0===e||e.onclick(),t.stopPropagation()}})})]})})},t)))}),(0,L.jsx)("div",{className:"border-t border-gray-100 p-3",children:(0,L.jsx)(T,{totalItems:n.length})})]})};return(0,L.jsxs)("div",{className:"relative w-full max-w-[800px] mx-auto px-4 sm:px-6",ref:S,children:[(0,L.jsx)(Xa.A,{variant:"outlined",fullWidth:!0,color:"secondary",value:r,onChange:e=>{i(e.target.value)},placeholder:"Search",onFocus:()=>{a(!0)},InputProps:{startAdornment:(0,L.jsx)(Ei.A,{position:"start",sx:{ml:1},children:(0,L.jsx)(js,{size:20,className:"text-gray-400"})})},sx:{"& .MuiOutlinedInput-root":{borderRadius:"16px",backgroundColor:"#fff","& fieldset":{borderColor:"#E5E7EB"},"&:hover fieldset":{borderColor:"#8B5CF6"},"&.Mui-focused fieldset":{borderColor:"#8B5CF6"}},"& .MuiOutlinedInput-input":{padding:"14px 16px",fontSize:"16px"}}}),o&&(0,L.jsx)(fe.A,{className:"absolute top-full left-0 w-full bg-white shadow-lg z-50 mt-2 rounded-xl overflow-hidden",elevation:3,sx:{height:u?"calc(100vh - 180px)":"480px",display:"flex",flexDirection:"column",border:"1px solid #E5E7EB"},children:u?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ue.A,{sx:{maxWidth:"100%",overflow:"auto",borderBottom:"1px solid #E5E7EB"},children:(0,L.jsx)(Ss,{value:g,onChange:(e,t)=>
128b(t),variant:"scrollable",scrollButtons:"auto",indicatorColor:"secondary",textColor:"secondary",sx:{"& .MuiTab-root":{minHeight:"56px",textTransform:"none",fontSize:"14px",fontWeight:500}},children:k.map((e=>(0,L.jsx)(Os,{value:e.id,icon:e.icon,label:e.title,sx:{fontSize:"14px"}},e.id)))})}),(0,L.jsx)(ue.A,{className:"flex-1 overflow-hidden",children:(0,L.jsx)(C,{items:_[g]||[]})})]}):(0,L.jsxs)("div",{className:"flex h-full",children:[(0,L.jsx)(ue.A,{className:"w-56 py-4",sx:{borderRight:"1px solid #E5E7EB",backgroundColor:"#F9FAFB"},children:(0,L.jsx)(ho.A,{className:"space-y-1 px-2",children:k.map((e=>(0,L.jsxs)("div",{className:"flex items-center space-x-3 px-4 py-3 rounded-xl cursor-pointer\n                                            transition-all duration-200 "+(g===e.id?"bg-purple-600 text-white shadow-sm":"hover:bg-purple-50 text-gray-700"),onClick:()=>b(e.id),children:[(0,L.jsx)("div",{className:g===e.id?"text-white":"text-gray-500",children:e.icon}),(0,L.jsx)("div",{className:"font-medium text-sm",children:e.title})]},e.id)))})}),(0,L.jsx)(ue.A,{className:"flex-1 overflow-hidden",children:(0,L.jsx)(C,{items:_[g]||[]})})]})})]})};var Ds=e=>{let{handleLeftDrawerToggle:t,showHome:n}=e;const r=(0,te.Zp)(),i=(0,re.A)(),[o,a]=(0,c.useState)(!1),[s,l]=(0,c.useState)([]),{getCachedUserInfo:u,getCachedOrgName:d,getAskllyAdmin:p}=ma();return(0,c.useEffect)((()=>((async()=>{try{const e=localStorage.getItem("uid"),t=await u(e),n={email:t.email,organization:await d()},r=await p(n);a(r);const i=new FormData;i.append("email",null===t||void 0===t?void 0:t.email);let o=(await(0,xi.B)(i)).role.role.split(",");l(o)}catch(e){console.log(e)}})().then(),()=>{a(!1)})),[]),(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(ue.A,{sx:{width:220,display:"flex",[i.breakpoints.down("md")]:{width:"auto"}},children:[(0,L.jsx)(We.A,{sx:{borderRadius:"12px",overflow:"hidden"},children:(0,L.jsx)(_n,{variant:"rounded",sx:{...i.typography.commonAvatar,...i.typography.mediumAvatar,transition:"all .2s ease-in-out",background:i.palette.secondary.light,color:i.palette.secondary.dark,"&:hover":{background:i.palette.secondary.dark,color:i.palette.secondary.light}},onClick:t,color:"inherit",children:n?(0,L.jsx)(an.A,{stroke:1.5,size:"1.3rem"}):(0,L.jsx)(Bt,{stroke:1.5,size:"1.3rem"})})}),(0,L.jsx)(ue.A,{component:"span",sx:{display:{xs:"none",md:"block"},flexGrow:1,ml:1},children:(0,L.jsx)(wi,{})})]}),(0,L.jsx)(ue.A,{sx:{flexGrow:1},children:(0,L.jsx)(Ms,{})}),(0,L.jsx)(ue.A,{className:"hidden md:flex",sx:{ml:.5,mr:.5,[i.breakpoints.down("md")]:{mr:2}},children:(0,L.jsx)(We.A,{sx:{borderRadius:"12px",overflow:"hidden"},onClick:()=>r("/marketplace"),children:(0,L.jsx)(_n,{variant:"rounded",sx:{...i.typography.commonAvatar,...i.typography.mediumAvatar,transition:"all .2s ease-in-out",background:i.palette.secondary.light,color:i.palette.secondary.dark,"&:hover":{background:i.palette.secondary.dark,color:i.palette.secondary.light}},color:"inherit",children:(0,L.jsx)(an.A,{stroke:1.5,size:"1.3rem"})})})}),(s.includes("Admin")||s.includes("Create Knowledge Base"))&&(0,L.jsx)(ue.A,{className:"hidden md:flex",sx:{ml:.5,mr:.5,[i.breakpoints.down("md")]:{mr:2}},children:(0,L.jsx)(We.A,{sx:{borderRadius:"12px"},onClick:()=>r("/kb"),children:(0,L.jsx)(_n,{variant:"rounded",sx:{...i.typography.commonAvatar,...i.typography.mediumAvatar,transition:"all .2s ease-in-out",background:i.palette.secondary.light,color:i.palette.secondary.dark,"&:hover":{background:i.palette.secondary.dark,color:i.palette.secondary.light}},color:"inherit",children:(0,L.jsx)(mi,{placement:"bottom",title:"Knowledge Hub",arrow:!0,children:(0,L.jsx)(Ya.A,{stroke:1.5,size:"1.3rem"})})})})}),s.includes("Admin")&&(0,L.jsx)(ue.A,{sx:{ml:.5,mr:.5,[i.breakpoints.down("md")]:{mr:2}},children:(0,L.jsx)(We.A,{className:"hidden md:flex",sx:{borderRadius:"12px"},onClick:()=>r("/marketplace"),children:(0,L.jsx)(_n,{variant:"rounded",sx:{...i.typography.commonAvatar,...i.typography.mediumAvatar,transition:"all .2s ease-in-out",background:i.palette.secondary.light,color:i.palette.secondary.dark,"&:hover":{background:i.palette.secondary.dark,color:i.palette.secondary.light}},color:"inherit",children:(0,L.jsx)(mi,{placement:"bottom",title:"AI Assistants",arrow:!0,children:(0,L.jsx)(Ka.A,{stroke:1.5,size:"1.3rem"})})})})}),(s.includes("Admin")||s.includes("Only Query Knowledge Base"))&&(0,L.jsx)("div",{className:"hidden md:flex",children:(0,L.jsx)(qa,{})}),(0,L.jsx)("div",{className:"hidden md:flex",children:(0,L.jsx)(Ga,{})}),(0,L.jsx)(va,{isAsklly:o})]})},Ls=__webpack_require__(66633);function Fs(e){return(0,ge.Ay)("MuiDrawer",e)}(0,me.A)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Bs=["BackdropProps"],Us=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],zs=(e,t)=>{const{ownerState:n}=e;return[t.root,("permanent"===n.variant||"persistent"===n.variant)&&t.docked,t.modal]},Hs=(0,ne.Ay)(Ls.A,{name:"MuiDrawer",slot:"Root",overridesResolver:zs})((e=>{let{theme:t}=e;return{zIndex:(t.vars||t).zIndex.drawer}})),$s=(0,ne.Ay)("div",{shouldForwardProp:fo.A,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:zs})({flex:"0 0 auto"}),Vs=(0,ne.Ay)(fe.A,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${(0,he.A)(n.anchor)}`],"temporary"!==n.variant&&t[`paperAnchorDocked${(0,he.A)(n.anchor)}`]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,R.A)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(t.vars||t).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===n.anchor&&{left:0},"top"===n.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===n.anchor&&{right:0},"bottom"===n.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===n.anchor&&"temporary"!==n.variant&&{borderRight:`1px solid ${(t.vars||t).palette.divider}`},"top"===n.anchor&&"temporary"!==n.variant&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`},"right"===n.anchor&&"temporary"!==n.variant&&{borderLeft:`1px solid ${(t.vars||t).palette.divider}`},"bottom"===n.anchor&&"temporary"!==n.variant&&{borderTop:`1px solid ${(t.vars||t).palette.divider}`})}
128)),Gs={left:"right",right:"left",top:"down",bottom:"up"};function Ws(e){return-1!==["left","right"].indexOf(e)}function qs(e,t){let{direction:n}=e;return"rtl"===n&&Ws(t)?Gs[t]:t}const Ys=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiDrawer"}),r=(0,re.A)(),i=(0,z.I)(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:s,children:l,className:u,elevation:d=16,hideBackdrop:p=!1,ModalProps:{BackdropProps:h}={},onClose:f,open:m=!1,PaperProps:g={},SlideProps:b,TransitionComponent:v=zi,transitionDuration:y=o,variant:x="temporary"}=n,w=(0,P.A)(n.ModalProps,Bs),A=(0,P.A)(n,Us),E=c.useRef(!1);c.useEffect((()=>{E.current=!0}),[]);const S=qs({direction:i?"rtl":"ltr"},a),_=a,k=(0,R.A)({},n,{anchor:_,elevation:d,open:m,variant:x},A),T=(e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root"],docked:[("permanent"===r||"persistent"===r)&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${(0,he.A)(n)}`,"temporary"!==r&&`paperAnchorDocked${(0,he.A)(n)}`]};return(0,pe.A)(i,Fs,t)})(k),C=(0,L.jsx)(Vs,(0,R.A)({elevation:"temporary"===x?d:0,square:!0},g,{className:(0,de.A)(T.paper,g.className),ownerState:k,children:l}));if("permanent"===x)return(0,L.jsx)($s,(0,R.A)({className:(0,de.A)(T.root,T.docked,u),ownerState:k,ref:t},A,{children:C}));const O=(0,L.jsx)(v,(0,R.A)({in:m,direction:Gs[S],timeout:y,appear:E.current},b,{children:C}));return"persistent"===x?(0,L.jsx)($s,(0,R.A)({className:(0,de.A)(T.root,T.docked,u),ownerState:k,ref:t},A,{children:O})):(0,L.jsx)(Hs,(0,R.A)({BackdropProps:(0,R.A)({},s,h,{transitionDuration:y}),className:(0,de.A)(T.root,T.modal,u),open:m,ownerState:k,onClose:f,hideBackdrop:p,ref:t},A,w,{children:O}))}));var Ks=Ys,Xs=__webpack_require__(41377),Zs=__webpack_require__(70006),Qs=__webpack_require__(23266),Js=__webpack_require__(2334);var el=e=>{let{item:t,level:n}=e;const r=(0,re.A)(),o=O(),{pathname:a}=(0,te.zy)(),s=x((e=>e.customization)),l=ce(r.breakpoints.down("lg")),u=t.icon,d=null!==t&&void 0!==t&&t.icon?(0,L.jsx)(u,{stroke:1.5,size:"1.3rem"}):(0,L.jsx)(Js.A,{sx:{width:s.isOpen.findIndex((e=>e===(null===t||void 0===t?void 0:t.id)))>-1?8:6,height:s.isOpen.findIndex((e=>e===(null===t||void 0===t?void 0:t.id)))>-1?8:6},fontSize:n>0?"inherit":"medium"});let p="_self";t.target&&(p="_blank");let h={component:(0,c.forwardRef)(((e,n)=>(0,L.jsx)(i.N_,{ref:n,...e,to:t.url,target:p})))};null!==t&&void 0!==t&&t.external&&(h={component:"a",href:t.url,target:p});return(0,c.useEffect)((()=>{document.location.pathname.toString().split("/").findIndex((e=>e===t.id))>-1&&o({type:bi,id:t.id})}),[a]),(0,L.jsxs)(xo,{...h,disabled:t.disabled,sx:{borderRadius:`${s.borderRadius}px`,mb:.5,alignItems:"flex-start",backgroundColor:n>1?"transparent !important":"inherit",py:n>1?1:1.25,pl:24*n+"px"},selected:s.isOpen.findIndex((e=>e===t.id))>-1,onClick:()=>{return e=t.id,o({type:bi,id:e}),void(l&&o({type:gi,opened:!1}));var e},id:t.id,children:[(0,L.jsx)(So,{sx:{my:"auto",minWidth:null!==t&&void 0!==t&&t.icon?36:18},children:d}),(0,L.jsx)(_o.A,{primary:(0,L.jsx)(Te.A,{variant:s.isOpen.findIndex((e=>e===t.id))>-1?"h5":"body1",color:"inherit",children:t.title}),secondary:t.caption&&(0,L.jsx)(Te.A,{variant:"caption",sx:{...r.typography.subMenuCaption},display:"block",gutterBottom:!0,children:t.caption})}),t.chip&&(0,L.jsx)(so,{color:t.chip.color,variant:t.chip.variant,size:t.chip.size,label:t.chip.label,avatar:t.chip.avatar&&(0,L.jsx)(_n,{children:t.chip.avatar})})]})};var tl=e=>{var t;let{item:n}=e;const r=(0,re.A)(),i=null===(t=n.children)||void 0===t?void 0:t.map((e=>"item"===e.type?(0,L.jsx)(el,{item:e,level:1},e.id):(0,L.jsx)(Te.A,{variant:"h6",color:"error",align:"center",children:"Menu Items Error"},e.id)));return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ho.A,{subheader:n.title&&(0,L.jsxs)(Te.A,{variant:"caption",sx:{...r.typography.menuCaption},display:"block",gutterBottom:!0,children:[n.title,n.caption&&(0,L.jsx)(Te.A,{variant:"caption",sx:{...r.typography.subMenuCaption},display:"block",gutterBottom:!0,children:n.caption})]}),children:i}),(0,L.jsx)(ze.A,{sx:{mt:.25,mb:1.25}})]})};const nl={IconKey:Mt,IconBookUpload:function(e){var t=e.size,n=void 0===t?24:t,r=e.color,
128i=void 0===r?"currentColor":r,o=e.stroke,a=void 0===o?2:o,s=lt(e,mt);return c.createElement("svg",st({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-book-upload",width:n,height:n,viewBox:"0 0 24 24",strokeWidth:a,stroke:i,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},s),c.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.createElement("path",{d:"M14 20h-8a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12v5"}),c.createElement("path",{d:"M11 16h-5a2 2 0 0 0 -2 2"}),c.createElement("path",{d:"M15 16l3 -3l3 3"}),c.createElement("path",{d:"M18 13v9"}))},IconBuildingStore:yt,IconFileUpload:function(e){var t=e.size,n=void 0===t?24:t,r=e.color,i=void 0===r?"currentColor":r,o=e.stroke,a=void 0===o?2:o,s=lt(e,Nt);return c.createElement("svg",st({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-file-upload",width:n,height:n,viewBox:"0 0 24 24",strokeWidth:a,stroke:i,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},s),c.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.createElement("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),c.createElement("path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"}),c.createElement("path",{d:"M12 11v6"}),c.createElement("path",{d:"M9.5 13.5l2.5 -2.5l2.5 2.5"}))},IconUpload:function(e){var t=e.size,n=void 0===t?24:t,r=e.color,i=void 0===r?"currentColor":r,o=e.stroke,a=void 0===o?2:o,s=lt(e,Kt);return c.createElement("svg",st({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-upload",width:n,height:n,viewBox:"0 0 24 24",strokeWidth:a,stroke:i,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},s),c.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.createElement("path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2"}),c.createElement("polyline",{points:"7 9 12 4 17 9"}),c.createElement("line",{x1:12,y1:4,x2:12,y2:16}))},IconWorldUpload:function(e){var t=e.size,n=void 0===t?24:t,r=e.color,i=void 0===r?"currentColor":r,o=e.stroke,a=void 0===o?2:o,s=lt(e,tn);return c.createElement("svg",st({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-world-upload",width:n,height:n,viewBox:"0 0 24 24",strokeWidth:a,stroke:i,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},s),c.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.createElement("path",{d:"M21 12a9 9 0 1 0 -9 9"}),c.createElement("path",{d:"M3.6 9h16.8"}),c.createElement("path",{d:"M3.6 15h8.4"}),c.createElement("path",{d:"M11.578 3a17 17 0 0 0 0 18"}),c.createElement("path",{d:"M12.5 3c1.719 2.755 2.5 5.876 2.5 9"}),c.createElement("path",{d:"M18 21v-7m3 3l-3 -3l-3 3"}))},IconDatabase:Tt,IconAddressBook:function(e){var t=e.size,n=void 0===t?24:t,r=e.color,i=void 0===r?"currentColor":r,o=e.stroke,a=void 0===o?2:o,s=lt(e,ct);return c.createElement("svg",st({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-address-book",width:n,height:n,viewBox:"0 0 24 24",strokeWidth:a,stroke:i,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},s),c.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.createElement("path",{d:"M20 6v12a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2z"}),c.createElement("path",{d:"M10 16h6"}),c.createElement("circle",{cx:13,cy:11,r:2}),c.createElement("path",{d:"M4 8h3"}),c.createElement("path",{d:"M4 12h3"}),c.createElement("path",{d:"M4 16h3"}))},IconWindmill:function(e){var t=e.size,n=void 0===t?24:t,r=e.color,i=void 0===r?"currentColor":r,o=e.stroke,a=void 0===o?2:o,s=lt(e,en);return c.createElement("svg",st({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-windmill",width:n,height:n,viewBox:"0 0 24 24",strokeWidth:a,stroke:i,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},s),c.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.createElement("path",{d:"M12 12c2.76 0 5 -2.01 5 -4.5s-2.24 -4.5 -5 -4.5v9z"}),c.createElement("path",{d:"M12 12c0 2.76 2.01 5 4.5 5s4.5 -2.24 4.5 -5h-9z"}),c.createElement("path",{d:"M12 12c-2.76 0 -5 2.01 -5 4.5s2.24 4.5 5 4.5v-9z"}),c.createElement("path",{d:"M12 12c0 -2.76 -2.01 -5 -4.5 -5s-4.5 2.24 -4.5 5h9z"}))}};var rl={id:"create",type:"group",children:[{id:"repo",title:"Knowledge",type:"item",url:"/kb",icon:nl.IconBuildingStore,breadcrumbs:!0}]};const il={IconUsers:Jt,IconSettings:Vt,IconBuilding:wt,IconGraph:Rt,IconChartHistogram:function(e){var t=e.size,n=void 0===t?24:t,r=e.color,
128i=void 0===r?"currentColor":r,o=e.stroke,a=void 0===o?2:o,s=lt(e,At);return c.createElement("svg",st({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-chart-histogram",width:n,height:n,viewBox:"0 0 24 24",strokeWidth:a,stroke:i,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},s),c.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.createElement("path",{d:"M3 3v18h18"}),c.createElement("path",{d:"M20 18v3"}),c.createElement("path",{d:"M16 16v5"}),c.createElement("path",{d:"M12 13v8"}),c.createElement("path",{d:"M8 16v5"}),c.createElement("path",{d:"M3 11c6 0 5 -5 9 -5s3 5 9 5"}))}};var ol={id:"Teams",type:"group",children:[{id:"Teams",title:"Teams",type:"item",url:"/teams",icon:il.IconUsers},{id:"Usage",title:"Usage",type:"item",url:"/usage",icon:il.IconChartHistogram},{id:"Accounts",title:"Settings",type:"item",url:"/profile",icon:il.IconSettings}]},al=(0,Ve.A)((0,L.jsx)("path",{d:"M4 4h16v12H5.17L4 17.17zm0-2c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm2 10h8v2H6zm0-3h12v2H6zm0-3h12v2H6z"}),"ChatOutlined");var sl={id:"create_chat",type:"group",children:[{id:"Chat V2",title:"Chat",type:"item",url:"/chatbot",icon:al}]};const ll={IconBrandChrome:function(e){var t=e.size,n=void 0===t?24:t,r=e.color,i=void 0===r?"currentColor":r,o=e.stroke,a=void 0===o?2:o,s=lt(e,bt);return c.createElement("svg",st({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-brand-chrome",width:n,height:n,viewBox:"0 0 24 24",strokeWidth:a,stroke:i,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},s),c.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.createElement("circle",{cx:12,cy:12,r:9}),c.createElement("circle",{cx:12,cy:12,r:3}),c.createElement("path",{d:"M12 9h8.4"}),c.createElement("path",{d:"M14.598 13.5l-4.2 7.275"}),c.createElement("path",{d:"M9.402 13.5l-4.2 -7.275"}))},IconHelp:function(e){var t=e.size,n=void 0===t?24:t,r=e.color,i=void 0===r?"currentColor":r,o=e.stroke,a=void 0===o?2:o,s=lt(e,Pt);return c.createElement("svg",st({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-help",width:n,height:n,viewBox:"0 0 24 24",strokeWidth:a,stroke:i,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},s),c.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.createElement("circle",{cx:12,cy:12,r:9}),c.createElement("line",{x1:12,y1:17,x2:12,y2:17.01}),c.createElement("path",{d:"M12 13.5a1.5 1.5 0 0 1 1 -1.5a2.6 2.6 0 1 0 -3 -4"}))}};var cl={id:"utilities",type:"group",children:[{id:"documentation",title:"Documentation",type:"item",url:"/#",icon:ll.IconHelp}]};const ul={IconKey:Mt,IconAlertOctagon:function(e){var t=e.size,n=void 0===t?24:t,r=e.color,i=void 0===r?"currentColor":r,o=e.stroke,a=void 0===o?2:o,s=lt(e,ut);return c.createElement("svg",st({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-alert-octagon",width:n,height:n,viewBox:"0 0 24 24",strokeWidth:a,stroke:i,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},s),c.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.createElement("path",{d:"M8.7 3h6.6c.3 0 .5 .1 .7 .3l4.7 4.7c.2 .2 .3 .4 .3 .7v6.6c0 .3 -.1 .5 -.3 .7l-4.7 4.7c-.2 .2 -.4 .3 -.7 .3h-6.6c-.3 0 -.5 -.1 -.7 -.3l-4.7 -4.7c-.2 -.2 -.3 -.4 -.3 -.7v-6.6c0 -.3 .1 -.5 .3 -.7l4.7 -4.7c.2 -.2 .4 -.3 .7 -.3z"}),c.createElement("line",{x1:12,y1:8,x2:12,y2:12}),c.createElement("line",{x1:12,y1:16,x2:12.01,y2:16}))},IconApps:pt,IconBrain:function(e){var t=e.size,n=void 0===t?24:t,r=e.color,i=void 0===r?"currentColor":r,o=e.stroke,a=void 0===o?2:o,s=lt(e,gt);return c.createElement("svg",st({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-brain",width:n,height:n,viewBox:"0 0 24 24",strokeWidth:a,stroke:i,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},s),c.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.createElement("path",{d:"M15.5 13a3.5 3.5 0 0 0 -3.5 3.5v1a3.5 3.5 0 0 0 7 0v-1.8"}),c.createElement("path",{d:"M8.5 13a3.5 3.5 0 0 1 3.5 3.5v1a3.5 3.5 0 0 1 -7 0v-1.8"}),c.createElement("path",{d:"M17.5 16a3.5 3.5 0 0 0 0 -7h-.5"}),c.createElement("path",{d:"M19 9.3v-2.8a3.5 3.5 0 0 0 -7 0"}),c.createElement("path",{d:"M6.5 16a3.5 3.5 0 0 1 0 -7h.5"}),c.createElement("path",{d:"M5 9.3v-2.8a3.5 3.5 0 0 1 7 0v10"}))},IconPackage:function(e){var t=e.size,n=void 0===t?24:t,r=e.color,
128i=void 0===r?"currentColor":r,o=e.stroke,a=void 0===o?2:o,s=lt(e,Ut);return c.createElement("svg",st({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-package",width:n,height:n,viewBox:"0 0 24 24",strokeWidth:a,stroke:i,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},s),c.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.createElement("polyline",{points:"12 3 20 7.5 20 16.5 12 21 4 16.5 4 7.5 12 3"}),c.createElement("line",{x1:12,y1:12,x2:20,y2:7.5}),c.createElement("line",{x1:12,y1:12,x2:12,y2:21}),c.createElement("line",{x1:12,y1:12,x2:4,y2:7.5}),c.createElement("line",{x1:16,y1:5.25,x2:8,y2:9.75}))},ChatBubbleOutline:Wa};var dl={id:"create_bot",type:"group",children:[{id:"marketplace",title:"AI Hub",type:"item",url:"/marketplace",icon:ul.IconApps,breadcrumbs:!0}]};var pl=()=>{const[e,t]=(0,c.useState)([]),{disabled:n,myTeams:r,activeTeam:i,handleTeamChange:o,activeRole:a,getCachedUserInfo:s,getAskllyAdmin:l,getCachedOrgName:u}=((0,te.Zp)(),ma());(0,c.useEffect)((()=>{!async function(){const e=localStorage.getItem("uid"),n=await s(e);(new FormData).append("email",null===n||void 0===n?void 0:n.email);const r={email:n.email,organization:await u(),team_id:i},o=await l(r),c=a?a.split(","):[];a.split(",").includes("Admin")&&o?(ol.children.some((e=>"Tenants"===e.id))||ol.children.unshift({id:"Tenants",title:"Tenants",type:"item",url:"/tenants/view",icon:wt}),ol.children.some((e=>"Activities"===e.id))||ol.children.push({id:"Activities",title:"Activities",type:"item",url:"/audit",icon:Rt})):ol.children=ol.children.filter((e=>"Tenants"!==e.id&&"Activities"!==e.id));let d=[dl];c.includes("Admin")?d=[dl,rl,sl,ol,cl]:(c.includes("Create Knowledge Base")&&d.push(rl),c.includes("Only Query Knowledge Base")&&d.push(sl),c.includes("Create Teams")&&d.push(ol));const p={pages:1,chat_page:2,bot_pages:3,team_page:4,utilities:5};d.sort(((e,t)=>p[e.id]-p[t.id])),t(d)}()}),[a]);const d=e.map((e=>"group"===e.type?(0,L.jsx)(tl,{item:e},e.id):(0,L.jsx)(Te.A,{variant:"h6",color:"error",align:"center",children:"Menu Items Error"},e.id)));return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ho.A,{children:(0,L.jsx)(Zs.A,{fullWidth:!0,disabled:n,color:"secondary",value:i,onChange:e=>o(e.target.value),children:r.map((e=>(0,L.jsx)(Qs.A,{color:"secondary",value:e.id,children:e.team_name},e.id)))})}),d]})};var hl=e=>{let{drawerOpen:t,drawerToggle:n,window:r}=e;const{getCachedOrgName:i}=ma(),o=(0,te.Zp)(),[a,s]=(0,c.useState)("");(0,c.useEffect)((()=>{(async()=>{const e=localStorage.getItem("uid"),t=await i();e?s(t):o("/login")})()}),[a,o]);const l=(0,re.A)(),u=ce(l.breakpoints.up("md")),d=(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ue.A,{sx:{display:{xs:"block",md:"none"}},children:(0,L.jsx)(ue.A,{sx:{display:"flex",p:2,mx:"auto"},children:(0,L.jsx)(wi,{org:a})})}),(0,L.jsx)(Xs.S7,{children:(0,L.jsx)(To(),{component:"div",style:{height:u?"calc(100vh - 88px)":"calc(100vh - 56px)",paddingLeft:"16px",paddingRight:"16px"},children:(0,L.jsx)(pl,{})})}),(0,L.jsx)(Xs.IM,{children:(0,L.jsx)(ue.A,{sx:{px:2},children:(0,L.jsx)(pl,{})})})]}),p=void 0!==r?()=>r.document.body:void 0;return(0,L.jsx)(ue.A,{component:"nav",sx:{flexShrink:{md:0},width:u?at:"auto"},"aria-label":"mailbox folders",children:(0,L.jsx)(Ks,{container:p,variant:u?"persistent":"temporary",anchor:"left",open:t,onClose:n,sx:{"& .MuiDrawer-paper":{width:at,background:l.palette.background.default,color:l.palette.text.primary,borderRight:"none",[l.breakpoints.up("md")]:{top:"88px"}}},ModalProps:{keepMounted:!0},color:"inherit",children:d})})},fl=__webpack_require__(25979);function ml(e){return(0,ge.Ay)("MuiFormGroup",e)}(0,me.A)("MuiFormGroup",["root","row","error"]);var gl=__webpack_require__(39766),bl=__webpack_require__(68624);const vl=["className","row"],yl=(0,ne.Ay)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})((e=>{let{ownerState:t}=e;return(0,R.A)({display:"flex",flexDirection:"column",flexWrap:"wrap"},t.row&&{flexDirection:"row"})}));var xl=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiFormGroup"}),{className:r,row:i=!1}=n,o=(0,P.A)(n,vl),a=(0,gl.A)(),s=(0,bl.A)({props:n,muiFormControl:a,states:["error"]}),l=(0,R.A)({},n,{row:i,error:s.error}),c=(e=>{const{classes:t,row:n,error:r}=e,i={root:["root",n&&"row",r&&"error"]};return(0,pe.A)(i,ml,t)})(l);return(0,L.jsx)(yl,(0,R.A)({className:(0,de.A)(c.root,r),ownerState:l,ref:t},o))}));function wl(e){return(0,ge.Ay)("MuiRadioGroup",e)}(0,me.A)("MuiRadioGroup",["root","row","error"]);var Al=c.createContext(void 0);const El=["actions","children","className","defaultValue","name","onChange","value"];var Sl=c.forwardRef((function(e,t){const{actions:n,children:r,className:i,defaultValue:o,name:a,onChange:s,value:l}=e,u=(0,P.A)(e,El),d=c.useRef(null),p=(e=>{const{classes:t,row:n,error:r}=e,i={root:["root",n&&"row",r&&"error"]};return(0,pe.A)(i,wl,t)})(e),[h,f]=(0,ii.A)({controlled:l,default:o,name:"RadioGroup"});c.useImperativeHandle(n,(()=>({focus:()=>{let e=d.current.querySelector("input:not(:disabled):checked");e||(e=d.current.querySelector("input:not(:disabled)")),e&&e.focus()}})),[]);const m=(0,ti.A)(t,d),g=(0,ni.A)(a),b=c.useMemo((()=>({name:g,onChange(e){f(e.target.value),s&&s(e,e.target.value)},value:h})),[g,s,f,h]);return(0,L.jsx)(Al.Provider,{value:b,children:(0,L.jsx)(xl,(0,R.A)({role:"radiogroup",ref:m,className:(0,de.A)(p.root,i)},u,{children:r}))})}));
128function _l(e){return(0,ge.Ay)("MuiFormControlLabel",e)}var kl=(0,me.A)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);const Tl=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Cl=(0,ne.Ay)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${kl.label}`]:t.label},t.root,t[`labelPlacement${(0,he.A)(n.labelPlacement)}`]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,R.A)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${kl.disabled}`]:{cursor:"default"}},"start"===n.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===n.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===n.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${kl.label}`]:{[`&.${kl.disabled}`]:{color:(t.vars||t).palette.text.disabled}}})})),Ol=(0,ne.Ay)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{let{theme:t}=e;return{[`&.${kl.error}`]:{color:(t.vars||t).palette.error.main}}}));var Nl=c.forwardRef((function(e,t){var n,r;const i=(0,X.b)({props:e,name:"MuiFormControlLabel"}),{className:o,componentsProps:a={},control:s,disabled:l,disableTypography:u,label:d,labelPlacement:p="end",required:h,slotProps:f={}}=i,m=(0,P.A)(i,Tl),g=(0,gl.A)(),b=null!=(n=null!=l?l:s.props.disabled)?n:null==g?void 0:g.disabled,v=null!=h?h:s.props.required,y={disabled:b,required:v};["checked","name","onChange","value","inputRef"].forEach((e=>{"undefined"===typeof s.props[e]&&"undefined"!==typeof i[e]&&(y[e]=i[e])}));const x=(0,bl.A)({props:i,muiFormControl:g,states:["error"]}),w=(0,R.A)({},i,{disabled:b,labelPlacement:p,required:v,error:x.error}),A=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e,a={root:["root",n&&"disabled",`labelPlacement${(0,he.A)(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return(0,pe.A)(a,_l,t)})(w),E=null!=(r=f.typography)?r:a.typography;let S=d;return null==S||S.type===Te.A||u||(S=(0,L.jsx)(Te.A,(0,R.A)({component:"span"},E,{className:(0,de.A)(A.label,null==E?void 0:E.className),children:S}))),(0,L.jsxs)(Cl,(0,R.A)({className:(0,de.A)(A.root,o),ownerState:w,ref:t},m,{children:[c.cloneElement(s,y),v?(0,L.jsxs)(po.A,{display:"block",children:[S,(0,L.jsxs)(Ol,{ownerState:w,"aria-hidden":!0,className:A.asterisk,children:["\u2009","*"]})]}):S]}))}));function Il(e){return(0,ge.Ay)("PrivateSwitchBase",e)}(0,me.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Rl=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Pl=(0,ne.Ay)(We.A)((e=>{let{ownerState:t}=e;return(0,R.A)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),jl=(0,ne.Ay)("input",{shouldForwardProp:fo.A})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1});var Ml=c.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:i,className:o,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:h,name:f,onBlur:m,onChange:g,onFocus:b,readOnly:v,required:y=!1,tabIndex:x,type:w,value:A}=e,E=(0,P.A)(e,Rl),[S,_]=(0,ii.A)({controlled:r,default:Boolean(a),name:"SwitchBase",state:"checked"}),k=(0,gl.A)();let T=s;k&&"undefined"===typeof T&&(T=k.disabled);const C="checkbox"===w||"radio"===w,O=(0,R.A)({},e,{checked:S,disabled:T,disableFocusRipple:l,edge:c}),N=(e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${(0,he.A)(i)}`],input:["input"]};return(0,pe.A)(o,Il,t)})(O);return(0,L.jsxs)(Pl,(0,R.A)({component:"span",className:(0,de.A)(N.root,o),centerRipple:!0,focusRipple:!l,disabled:T,tabIndex:null,role:void 0,onFocus:e=>{b&&b(e),k&&k.onFocus&&k.onFocus(e)},onBlur:e=>{m&&m(e),k&&k.onBlur&&k.onBlur(e)},ownerState:O,ref:t},E,{children:[(0,L.jsx)(jl,(0,R.A)({autoFocus:n,checked:r,defaultChecked:a,className:N.input,disabled:T,id:C?d:void 0,name:f,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;_(t),g&&g(e,t)},readOnly:v,ref:h,required:y,ownerState:O,tabIndex:x,type:w},"checkbox"===w&&void 0===A?{}:{value:A},p)),S?i:u]}))}
128)),Dl=(0,Ve.A)((0,L.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),Ll=(0,Ve.A)((0,L.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked");const Fl=(0,ne.Ay)("span",{shouldForwardProp:fo.A})({position:"relative",display:"flex"}),Bl=(0,ne.Ay)(Dl)({transform:"scale(1)"}),Ul=(0,ne.Ay)(Ll)((e=>{let{theme:t,ownerState:n}=e;return(0,R.A)({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest})},n.checked&&{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})})}));var zl=function(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i=(0,R.A)({},e,{checked:t});return(0,L.jsxs)(Fl,{className:n.root,ownerState:i,children:[(0,L.jsx)(Bl,{fontSize:r,className:n.background,ownerState:i}),(0,L.jsx)(Ul,{fontSize:r,className:n.dot,ownerState:i})]})},Hl=__webpack_require__(25920);function $l(e){return(0,ge.Ay)("MuiRadio",e)}var Vl=(0,me.A)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]);const Gl=["checked","checkedIcon","color","icon","name","onChange","size","className"],Wl=(0,ne.Ay)(Ml,{shouldForwardProp:e=>(0,fo.A)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${(0,he.A)(n.size)}`],t[`color${(0,he.A)(n.color)}`]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,R.A)({color:(t.vars||t).palette.text.secondary},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${"default"===n.color?t.vars.palette.action.activeChannel:t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,$e.X4)("default"===n.color?t.palette.action.active:t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&{[`&.${Vl.checked}`]:{color:(t.vars||t).palette[n.color].main}},{[`&.${Vl.disabled}`]:{color:(t.vars||t).palette.action.disabled}})}));const ql=(0,L.jsx)(zl,{checked:!0}),Yl=(0,L.jsx)(zl,{}),Kl=c.forwardRef((function(e,t){var n,r;const i=(0,X.b)({props:e,name:"MuiRadio"}),{checked:o,checkedIcon:a=ql,color:s="primary",icon:l=Yl,name:u,onChange:d,size:p="medium",className:h}=i,f=(0,P.A)(i,Gl),m=(0,R.A)({},i,{color:s,size:p}),g=(e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${(0,he.A)(n)}`,"medium"!==r&&`size${(0,he.A)(r)}`]};return(0,R.A)({},t,(0,pe.A)(i,$l,t))})(m),b=c.useContext(Al);let v=o;const y=(0,Hl.A)(d,b&&b.onChange);let x=u;var w,A;return b&&("undefined"===typeof v&&(w=b.value,v="object"===typeof(A=i.value)&&null!==A?w===A:String(w)===String(A)),"undefined"===typeof x&&(x=b.name)),(0,L.jsx)(Wl,(0,R.A)({type:"radio",icon:c.cloneElement(l,{fontSize:null!=(n=Yl.props.fontSize)?n:p}),checkedIcon:c.cloneElement(a,{fontSize:null!=(r=ql.props.fontSize)?r:p}),ownerState:m,classes:g,name:x,checked:v,onChange:y,ref:t,className:(0,de.A)(g.root,h)},f))}));var Xl=Kl,Zl=__webpack_require__(31467),Ql=__webpack_require__(63931),Jl=__webpack_require__(26747),ec=__webpack_require__(91375);var tc={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},nc=__webpack_require__(24701);var rc=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(e,t)=>e===t;return e.length===t.length&&e.every(((e,r)=>n(e,t[r])))};function ic(e,t){return e-t}function oc(e,t){var n;const{index:r}=null!=(n=e.reduce(((e,n,r)=>{const i=Math.abs(t-n);return null===e||i<e.distance||i===e.distance?{distance:i,index:r}:e}),null))?n:{};return r}function ac(e,t){if(void 0!==t.current&&e.changedTouches){const n=e;for(let e=0;e<n.changedTouches.length;e+=1){const r=n.changedTouches[e];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function sc(e,t,n){return 100*(e-t)/(n-t)}function lc(e,t,n){const r=Math.round((e-n)/t)*t+n;
128return Number(r.toFixed(function(e){if(Math.abs(e)<1){const t=e.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}(t)))}function cc(e){let{values:t,newValue:n,index:r}=e;const i=t.slice();return i[r]=n,i.sort(ic)}function uc(e){let{sliderRef:t,activeIndex:n,setActive:r}=e;var i,o;const a=(0,Nn.A)(t.current);var s;null!=(i=t.current)&&i.contains(a.activeElement)&&Number(null==a||null==(o=a.activeElement)?void 0:o.getAttribute("data-index"))===n||(null==(s=t.current)||s.querySelector(`[type="range"][data-index="${n}"]`).focus());r&&r(n)}function dc(e,t){return"number"===typeof e&&"number"===typeof t?e===t:"object"===typeof e&&"object"===typeof t&&rc(e,t)}const pc={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},hc=e=>e;let fc;function mc(){return void 0===fc&&(fc="undefined"===typeof CSS||"function"!==typeof CSS.supports||CSS.supports("touch-action","none")),fc}var gc=__webpack_require__(61960);var bc=e=>!e||!(0,Zl.A)(e);function vc(e){return(0,ge.Ay)("MuiSlider",e)}var yc=(0,me.A)("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);const xc=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function wc(e){return e}const Ac=(0,ne.Ay)("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${(0,he.A)(n.color)}`],"medium"!==n.size&&t[`size${(0,he.A)(n.size)}`],n.marked&&t.marked,"vertical"===n.orientation&&t.vertical,"inverted"===n.track&&t.trackInverted,!1===n.track&&t.trackFalse]}})((e=>{let{theme:t}=e;var n;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${yc.disabled}`]:{pointerEvents:"none",cursor:"default",color:(t.vars||t).palette.grey[400]},[`&.${yc.dragging}`]:{[`& .${yc.thumb}, & .${yc.track}`]:{transition:"none"}},variants:[...Object.keys((null!=(n=t.vars)?n:t).palette).filter((e=>{var n;return(null!=(n=t.vars)?n:t).palette[e].main})).map((e=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}}))),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}})),Ec=(0,ne.Ay)("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),Sc=(0,ne.Ay)("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})((e=>{let{theme:t}=e;var n;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:t.transitions.create(["left","width","bottom","height"],{duration:t.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys((null!=(n=t.vars)?n:t).palette).filter((e=>{var n;return(null!=(n=t.vars)?n:t).palette[e].main})).map((e=>({props:{color:e,track:"inverted"},style:(0,R.A)({},t.vars?{backgroundColor:t.vars.palette.Slider[`${e}Track`],borderColor:t.vars.palette.Slider[`${e}Track`]}:(0,R.A)({backgroundColor:(0,$e.a)(t.palette[e].main,.62),borderColor:(0,$e.a)(t.palette[e].main,.62)},t.applyStyles("dark",{backgroundColor:(0,$e.e$)(t.palette[e].main,.5)}),t.applyStyles("dark",{borderColor:(0,$e.e$)(t.palette[e].main,.5)})))})))]}})),_c=(0,ne.Ay)("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;
128return[t.thumb,t[`thumbColor${(0,he.A)(n.color)}`],"medium"!==n.size&&t[`thumbSize${(0,he.A)(n.size)}`]]}})((e=>{let{theme:t}=e;var n;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:t.transitions.create(["box-shadow","left","bottom"],{duration:t.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(t.vars||t).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${yc.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys((null!=(n=t.vars)?n:t).palette).filter((e=>{var n;return(null!=(n=t.vars)?n:t).palette[e].main})).map((e=>({props:{color:e},style:{[`&:hover, &.${yc.focusVisible}`]:(0,R.A)({},t.vars?{boxShadow:`0px 0px 0px 8px rgba(${t.vars.palette[e].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${(0,$e.X4)(t.palette[e].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${yc.active}`]:(0,R.A)({},t.vars?{boxShadow:`0px 0px 0px 14px rgba(${t.vars.palette[e].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${(0,$e.X4)(t.palette[e].main,.16)}`})}})))]}})),kc=(0,ne.Ay)((function(e){const{children:t,className:n,value:r}=e,i=(e=>{const{open:t}=e;return{offset:(0,de.A)(t&&yc.valueLabelOpen),circle:yc.valueLabelCircle,label:yc.valueLabelLabel}})(e);return t?c.cloneElement(t,{className:(0,de.A)(t.props.className)},(0,L.jsxs)(c.Fragment,{children:[t.props.children,(0,L.jsx)("span",{className:(0,de.A)(i.offset,n),"aria-hidden":!0,children:(0,L.jsx)("span",{className:i.circle,children:(0,L.jsx)("span",{className:i.label,children:r})})})]})):null}),{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})((e=>{let{theme:t}=e;return(0,R.A)({zIndex:1,whiteSpace:"nowrap"},t.typography.body2,{fontWeight:500,transition:t.transitions.create(["transform"],{duration:t.transitions.duration.shortest}),position:"absolute",backgroundColor:(t.vars||t).palette.grey[600],borderRadius:2,color:(t.vars||t).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${yc.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${yc.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:t.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})})),Tc=(0,ne.Ay)("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>(0,gc.A)(e)&&"markActive"!==e,overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})((e=>{let{theme:t}=e;return{position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(t.vars||t).palette.background.paper,opacity:.8}}]}})),Cc=(0,ne.Ay)("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>(0,gc.A)(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})((e=>{let{theme:t}=e;return(0,R.A)({},t.typography.body2,{color:(t.vars||t).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"}
128,style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(t.vars||t).palette.text.primary}}]})})),Oc=e=>{let{children:t}=e;return t},Nc=c.forwardRef((function(e,t){var n,r,i,o,a,s,l,u,d,p,h,f,m,g,b,v,y,x,w,A,E,S,_,k;const T=(0,X.b)({props:e,name:"MuiSlider"}),C=(0,z.I)(),{"aria-label":O,"aria-valuetext":N,"aria-labelledby":I,component:j="span",components:M={},componentsProps:D={},color:F="primary",classes:B,className:U,disableSwap:H=!1,disabled:$=!1,getAriaLabel:V,getAriaValueText:G,marks:W=!1,max:q=100,min:Y=0,orientation:K="horizontal",shiftStep:Z=10,size:Q="medium",step:J=1,scale:ee=wc,slotProps:te,slots:ne,track:re="normal",valueLabelDisplay:oe="off",valueLabelFormat:ae=wc}=T,se=(0,P.A)(T,xc),le=(0,R.A)({},T,{isRtl:C,max:q,min:Y,classes:B,disabled:$,disableSwap:H,orientation:K,marks:W,color:F,size:Q,step:J,shiftStep:Z,scale:ee,track:re,valueLabelDisplay:oe,valueLabelFormat:ae}),{axisProps:ce,getRootProps:ue,getHiddenInputProps:fe,getThumbProps:me,open:ge,active:be,axis:ve,focusedThumbIndex:ye,range:xe,dragging:we,marks:Ae,values:Ee,trackOffset:Se,trackLeap:_e,getThumbStyle:ke}=function(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:o=!1,marks:a=!1,max:s=100,min:l=0,name:u,onChange:d,onChangeCommitted:p,orientation:h="horizontal",rootRef:f,scale:m=hc,step:g=1,shiftStep:b=10,tabIndex:v,value:y}=e,x=c.useRef(void 0),[w,A]=c.useState(-1),[E,S]=c.useState(-1),[_,k]=c.useState(!1),T=c.useRef(0),[C,O]=(0,Ql.A)({controlled:y,default:null!=n?n:l,name:"Slider"}),N=d&&((e,t,n)=>{const r=e.nativeEvent||e,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:t,name:u}}),d(i,t,n)}),I=Array.isArray(C);let P=I?C.slice().sort(ic):[C];P=P.map((e=>null==e?l:(0,Jl.A)(e,l,s)));const j=!0===a&&null!==g?[...Array(Math.floor((s-l)/g)+1)].map(((e,t)=>({value:l+g*t}))):a||[],M=j.map((e=>e.value)),{isFocusVisibleRef:D,onBlur:L,onFocus:F,ref:B}=(0,ec.A)(),[U,z]=c.useState(-1),H=c.useRef(null),$=(0,pn.A)(B,H),V=(0,pn.A)(f,$),G=e=>t=>{var n;const r=Number(t.currentTarget.getAttribute("data-index"));F(t),!0===D.current&&z(r),S(r),null==e||null==(n=e.onFocus)||n.call(e,t)},W=e=>t=>{var n;L(t),!1===D.current&&z(-1),S(-1),null==e||null==(n=e.onBlur)||n.call(e,t)},q=(e,t)=>{const n=Number(e.currentTarget.getAttribute("data-index")),r=P[n],o=M.indexOf(r);let a=t;if(j&&null==g){const e=M[M.length-1];a=a>e?e:a<M[0]?M[0]:a<r?M[o-1]:M[o+1]}if(a=(0,Jl.A)(a,l,s),I){i&&(a=(0,Jl.A)(a,P[n-1]||-1/0,P[n+1]||1/0));const e=a;a=cc({values:P,newValue:a,index:n});let t=n;i||(t=a.indexOf(e)),uc({sliderRef:H,activeIndex:t})}O(a),z(n),N&&!dc(a,C)&&N(e,a,n),p&&p(e,a)},Y=e=>t=>{var n;if(null!==g){const e=Number(t.currentTarget.getAttribute("data-index")),n=P[e];let r=null;("ArrowLeft"===t.key||"ArrowDown"===t.key)&&t.shiftKey||"PageDown"===t.key?r=Math.max(n-b,l):(("ArrowRight"===t.key||"ArrowUp"===t.key)&&t.shiftKey||"PageUp"===t.key)&&(r=Math.min(n+b,s)),null!==r&&(q(t,r),t.preventDefault())}null==e||null==(n=e.onKeyDown)||n.call(e,t)};(0,ie.A)((()=>{var e;r&&H.current.contains(document.activeElement)&&(null==(e=document.activeElement)||e.blur())}),[r]),r&&-1!==w&&A(-1),r&&-1!==U&&z(-1);const K=c.useRef(void 0);let X=h;o&&"horizontal"===h&&(X+="-reverse");const Z=e=>{let{finger:t,move:n=!1}=e;const{current:r}=H,{width:o,height:a,bottom:c,left:u}=r.getBoundingClientRect();let d,p;if(d=0===X.indexOf("vertical")?(c-t.y)/a:(t.x-u)/o,-1!==X.indexOf("-reverse")&&(d=1-d),p=function(e,t,n){return(n-t)*e+t}(d,l,s),g)p=lc(p,g,l);else{const e=oc(M,p);p=M[e]}p=(0,Jl.A)(p,l,s);let h=0;if(I){h=n?K.current:oc(P,p),i&&(p=(0,Jl.A)(p,P[h-1]||-1/0,P[h+1]||1/0));const e=p;p=cc({values:P,newValue:p,index:h}),i&&n||(h=p.indexOf(e),K.current=h)}return{newValue:p,activeIndex:h}},Q=(0,lo.A)((e=>{const t=ac(e,x);if(!t)return;if(T.current+=1,"mousemove"===e.type&&0===e.buttons)return void J(e);const{newValue:n,activeIndex:r}=Z({finger:t,move:!0});uc({sliderRef:H,activeIndex:r,setActive:A}),O(n),!_&&T.current>2&&k(!0),N&&!dc(n,C)&&N(e,n,r)})),J=(0,lo.A)((e=>{const t=ac(e,x);if(k(!1),!t)return;const{newValue:n}=Z({finger:t,move:!0});A(-1),"touchend"===e.type&&S(-1),p&&p(e,n),x.current=void 0,te()})),ee=(0,lo.A)((e=>{if(r)return;mc()||e.preventDefault();const t=e.changedTouches[0];null!=t&&(x.current=t.identifier);const n=ac(e,x);if(!1!==n){const{newValue:t,activeIndex:r}=Z({finger:n});uc({sliderRef:H,activeIndex:r,setActive:A}),O(t),N&&!dc(t,C)&&N(e,t,r)}T.current=0;const i=(0,Nn.A)(H.current);i.addEventListener("touchmove",Q,{passive:!0}),i.addEventListener("touchend",J,{passive:!0})}
128)),te=c.useCallback((()=>{const e=(0,Nn.A)(H.current);e.removeEventListener("mousemove",Q),e.removeEventListener("mouseup",J),e.removeEventListener("touchmove",Q),e.removeEventListener("touchend",J)}),[J,Q]);c.useEffect((()=>{const{current:e}=H;return e.addEventListener("touchstart",ee,{passive:mc()}),()=>{e.removeEventListener("touchstart",ee),te()}}),[te,ee]),c.useEffect((()=>{r&&te()}),[r,te]);const ne=sc(I?P[0]:l,l,s),re=sc(P[P.length-1],l,s)-ne,oe=e=>t=>{var n;null==(n=e.onMouseLeave)||n.call(e,t),S(-1)};return{active:w,axis:X,axisProps:pc,dragging:_,focusedThumbIndex:U,getHiddenInputProps:function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var i;const a=(0,nc.A)(n),c={onChange:(d=a||{},e=>{var t;null==(t=d.onChange)||t.call(d,e),q(e,e.target.valueAsNumber)}),onFocus:G(a||{}),onBlur:W(a||{}),onKeyDown:Y(a||{})};var d;const p=(0,R.A)({},a,c);return(0,R.A)({tabIndex:v,"aria-labelledby":t,"aria-orientation":h,"aria-valuemax":m(s),"aria-valuemin":m(l),name:u,type:"range",min:e.min,max:e.max,step:null===e.step&&e.marks?"any":null!=(i=e.step)?i:void 0,disabled:r},n,p,{style:(0,R.A)({},tc,{direction:o?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,nc.A)(e),n={onMouseDown:(i=t||{},e=>{var t;if(null==(t=i.onMouseDown)||t.call(i,e),r)return;if(e.defaultPrevented)return;if(0!==e.button)return;e.preventDefault();const n=ac(e,x);if(!1!==n){const{newValue:t,activeIndex:r}=Z({finger:n});uc({sliderRef:H,activeIndex:r,setActive:A}),O(t),N&&!dc(t,C)&&N(e,t,r)}T.current=0;const o=(0,Nn.A)(H.current);o.addEventListener("mousemove",Q,{passive:!0}),o.addEventListener("mouseup",J)})};var i;const o=(0,R.A)({},t,n);return(0,R.A)({},e,{ref:V},o)},getThumbProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,nc.A)(e),n={onMouseOver:(r=t||{},e=>{var t;null==(t=r.onMouseOver)||t.call(r,e);const n=Number(e.currentTarget.getAttribute("data-index"));S(n)}),onMouseLeave:oe(t||{})};var r;return(0,R.A)({},e,t,n)},marks:j,open:E,range:I,rootRef:V,trackLeap:re,trackOffset:ne,values:P,getThumbStyle:e=>({pointerEvents:-1!==w&&w!==e?"none":void 0})}}((0,R.A)({},le,{rootRef:t}));le.marked=Ae.length>0&&Ae.some((e=>e.label)),le.dragging=we,le.focusedThumbIndex=ye;const Te=(e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:o,classes:a,color:s,size:l}=e,c={root:["root",t&&"disabled",n&&"dragging",r&&"marked","vertical"===i&&"vertical","inverted"===o&&"trackInverted",!1===o&&"trackFalse",s&&`color${(0,he.A)(s)}`,l&&`size${(0,he.A)(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${(0,he.A)(l)}`,s&&`thumbColor${(0,he.A)(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return(0,pe.A)(c,vc,a)})(le),Ce=null!=(n=null!=(r=null==ne?void 0:ne.root)?r:M.Root)?n:Ac,Oe=null!=(i=null!=(o=null==ne?void 0:ne.rail)?o:M.Rail)?i:Ec,Ne=null!=(a=null!=(s=null==ne?void 0:ne.track)?s:M.Track)?a:Sc,Ie=null!=(l=null!=(u=null==ne?void 0:ne.thumb)?u:M.Thumb)?l:_c,Re=null!=(d=null!=(p=null==ne?void 0:ne.valueLabel)?p:M.ValueLabel)?d:kc,Pe=null!=(h=null!=(f=null==ne?void 0:ne.mark)?f:M.Mark)?h:Tc,je=null!=(m=null!=(g=null==ne?void 0:ne.markLabel)?g:M.MarkLabel)?m:Cc,Me=null!=(b=null!=(v=null==ne?void 0:ne.input)?v:M.Input)?b:"input",De=null!=(y=null==te?void 0:te.root)?y:D.root,Le=null!=(x=null==te?void 0:te.rail)?x:D.rail,Fe=null!=(w=null==te?void 0:te.track)?w:D.track,Be=null!=(A=null==te?void 0:te.thumb)?A:D.thumb,Ue=null!=(E=null==te?void 0:te.valueLabel)?E:D.valueLabel,ze=null!=(S=null==te?void 0:te.mark)?S:D.mark,$e=null!=(_=null==te?void 0:te.markLabel)?_:D.markLabel,Ve=null!=(k=null==te?void 0:te.input)?k:D.input,Ge=(0,He.A)({elementType:Ce,getSlotProps:ue,externalSlotProps:De,externalForwardedProps:se,additionalProps:(0,R.A)({},bc(Ce)&&{as:j}),ownerState:(0,R.A)({},le,null==De?void 0:De.ownerState),className:[Te.root,U]}),We=(0,He.A)({elementType:Oe,externalSlotProps:Le,ownerState:le,className:Te.rail}),qe=(0,He.A)({elementType:Ne,externalSlotProps:Fe,additionalProps:{style:(0,R.A)({},ce[ve].offset(Se),ce[ve].leap(_e))},ownerState:(0,R.A)({},le,null==Fe?void 0:Fe.ownerState),className:Te.track}),Ye=(0,He.A)({elementType:Ie,getSlotProps:me,externalSlotProps:Be,ownerState:(0,R.A)({},le,null==Be?void 0:Be.ownerState),className:Te.thumb}),Ke=(0,He.A)({elementType:Re,externalSlotProps:Ue,ownerState:(0,R.A)({},le,null==Ue?void 0:Ue.ownerState),className:Te.valueLabel}),Xe=(0,He.A)({elementType:Pe,externalSlotProps:ze,ownerState:le,className:Te.mark}),Ze=(0,He.A)({elementType:je,externalSlotProps:$e,ownerState:le,className:Te.markLabel}),Qe=(0,He.A)({elementType:Me,getSlotProps:fe,externalSlotProps:Ve,ownerState:le});return(0,L.jsxs)(Ce,(0,R.A)({},Ge,{children:[(0,L.jsx)(Oe,(0,R.A)({},We)),(0,L.jsx)(Ne,(0,R.A)({},qe)),Ae.filter((e=>e.value>=Y&&e.value<=q)).map(((e,t)=>{const n=sc(e.value,Y,q),r=ce[ve].offset(n);let i;return i=!1===re?-1!==Ee.indexOf(e.value):"normal"===re&&(xe?e.value>=Ee[0]&&e.value<=Ee[Ee.length-1]:e.value<=Ee[0])||"inverted"===re&&(xe?e.value<=Ee[0]||e.value>=Ee[Ee.length-1]:e.value>=Ee[0]),(0,L.jsxs)(c.Fragment,{children:[(0,L.jsx)(Pe,(0,R.A)({"data-index":t},Xe,!(0,Zl.A)(Pe)&&{markActive:i},{style:(0,R.A)({},r,Xe.style),className:(0,de.A)(Xe.className,i&&Te.markActive)})),null!=e.label?(0,L.jsx)(je,(0,R.A)({"aria-hidden":!0,"data-index":t},Ze,!(0,Zl.A)(je)&&{markLabelActive:i},{style:(0,R.A)({},r,Ze.style),className:(0,de.A)(Te.markLabel,Ze.className,i&&Te.markLabelActive),children:e.label})):null]},t)})),Ee.map(((e,t)=>{const n=sc(e,Y,q),r=ce[ve].offset(n),i="off"===oe?Oc:Re;return(0,L.jsx)(i,(0,R.A)({},!(0,Zl.A)(i)&&{valueLabelFormat:ae,valueLabelDisplay:oe,value:"function"===typeof ae?ae(ee(e),t):ae,index:t,open:ge===t||be===t||"on"===oe,disabled:$},Ke,{children:(0,L.jsx)(Ie,(0,R.A)({"data-index":t},Ye,{className:(0,de.A)(Te.thumb,Ye.className,be===t&&Te.active,ye===t&&Te.focusVisible),style:(0,R.A)({},r,ke(t),Ye.style),children:(0,L.jsx)(Me,(0,R.A)({"data-index":t,"aria-label":V?V(t):O,"aria-valuenow":ee(e),"aria-labelledby":I,"aria-valuetext":G?G(ee(e),t):N,value:Ee[t]},Qe))}))}),t)}))]}))}));var Ic=Nc,Rc=__webpack_require__(45180);const Pc=(0,c.forwardRef)(((e,t)=>{let{children:n,content:r,contentClass:i,darkTitle:o,secondary:a,sx:s={},contentSX:l={},title:c,...u}=e;const d=(0,re.A)();return(0,L.jsxs)(Ce.A,{ref:t,sx:{border:"1px solid",borderColor:d.palette.primary.light,":hover":{boxShadow:"0 2px 14px 0 rgb(32 40 45 / 8%)"},...s}
128,...u,children:[!o&&c&&(0,L.jsx)(Rc.A,{sx:{p:2.5},title:(0,L.jsx)(Te.A,{variant:"h5",children:c}),action:a}),o&&c&&(0,L.jsx)(Rc.A,{sx:{p:2.5},title:(0,L.jsx)(Te.A,{variant:"h4",children:c}),action:a}),c&&(0,L.jsx)(ze.A,{sx:{opacity:1,borderColor:d.palette.primary.light}}),r&&(0,L.jsx)(ea.A,{sx:{p:2.5,...l},className:i||"",children:n}),!r&&n]})}));Pc.defaultProps={content:!0};var jc=Pc,Mc=function(e,t){return Mc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Mc(e,t)};function Dc(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Mc(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Lc=function(){return Lc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Lc.apply(this,arguments)};function Fc(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}Object.create;function Bc(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Uc(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"===typeof SuppressedError&&SuppressedError;function zc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(0,c.useRef)(0),r=Bc((0,c.useState)(e[n.current]),2),i=r[0],o=r[1];return[i,(0,c.useCallback)((function(t){n.current="number"!==typeof t?((e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e})(0,e.length,n.current+1):t,o(e[n.current])}),Uc([e.length],Bc(e),!1))]}var Hc=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},$c={measureLayout:Hc(["layout","layoutId","drag"]),animation:Hc(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Hc(["exit"]),drag:Hc(["drag","dragControls"]),focus:Hc(["whileFocus"]),hover:Hc(["whileHover","onHoverStart","onHoverEnd"]),tap:Hc(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Hc(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Hc(["whileInView","onViewportEnter","onViewportLeave"])};var Vc=(0,c.createContext)({strict:!1}),Gc=Object.keys($c),Wc=Gc.length;var qc=(0,c.createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Yc=(0,c.createContext)({});var Kc=(0,c.createContext)(null),Xc="undefined"!==typeof document,Zc=Xc?c.useLayoutEffect:c.useEffect,Qc={current:null},Jc=!1;function eu(){return!Jc&&function(){if(Jc=!0,Xc)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Qc.current=e.matches};e.addListener(t),t()}else Qc.current=!1}(),Bc((0,c.useState)(Qc.current),1)[0]}function tu(e,t,n,r){var i=(0,c.useContext)(Vc),o=(0,c.useContext)(Yc).visualElement,a=(0,c.useContext)(Kc),s=function(){var e=eu(),t=(0,c.useContext)(qc).reducedMotion;return"never"!==t&&("always"===t||e)}(),l=(0,c.useRef)(void 0);r||(r=i.renderer),!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceId:null===a||void 0===a?void 0:a.id,blockInitialAnimation:!1===(null===a||void 0===a?void 0:a.initial),shouldReduceMotion:s}));var u=l.current;return Zc((function(){null===u||void 0===u||u.syncRender()})),(0,c.useEffect)((function(){var e;null===(e=null===u||void 0===u?void 0:u.animationState)||void 0===e||e.animateChanges()})),Zc((function(){return function(){return null===u||void 0===u?void 0:u.notifyUnmount()}}),[]),u}function nu(e){return"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function ru(e){return Array.isArray(e)}function iu(e){return"string"===typeof e||ru(e)}function ou(e,t,n,r,i){var o;return void 0===r&&(r={}),void 0===i&&(i={}),"function"===typeof t&&(t=t(null!==n&&void 0!==n?n:e.custom,r,i
128)),"string"===typeof t&&(t=null===(o=e.variants)||void 0===o?void 0:o[t]),"function"===typeof t&&(t=t(null!==n&&void 0!==n?n:e.custom,r,i)),t}function au(e,t,n){var r=e.getProps();return ou(r,t,null!==n&&void 0!==n?n:r.custom,function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.get()})),t}(e),function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.getVelocity()})),t}(e))}function su(e){var t;return"function"===typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||iu(e.initial)||iu(e.animate)||iu(e.whileHover)||iu(e.whileDrag)||iu(e.whileTap)||iu(e.whileFocus)||iu(e.exit)}function lu(e){return Boolean(su(e)||e.variants)}function cu(e){var t=function(e,t){if(su(e)){var n=e.initial,r=e.animate;return{initial:!1===n||iu(n)?n:void 0,animate:iu(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,c.useContext)(Yc)),n=t.initial,r=t.animate;return(0,c.useMemo)((function(){return{initial:n,animate:r}}),[uu(n),uu(r)])}function uu(e){return Array.isArray(e)?e.join(" "):e}function du(e){var t=(0,c.useRef)(null);return null===t.current&&(t.current=e()),t.current}var pu={hasAnimatedSinceResize:!0,hasEverUpdated:!1},hu=1;var fu=(0,c.createContext)({}),mu=(0,c.createContext)({});var gu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Dc(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement,n=e.props;t&&t.setProps(n)},t.prototype.render=function(){return this.props.children},t}(c.Component);function bu(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,i=e.useRender,o=e.useVisualState,a=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?$c.projectionNodeConstructor=e[t]:$c[t].Component=e[t])}(t),(0,c.forwardRef)((function(e,t){var s=function(e){var t,n=e.layoutId,r=null===(t=(0,c.useContext)(fu))||void 0===t?void 0:t.id;return r&&void 0!==n?r+"-"+n:n}(e);e=Lc(Lc({},e),{layoutId:s});var l=(0,c.useContext)(qc),u=null,d=cu(e),p=l.isStatic?void 0:du((function(){if(pu.hasEverUpdated)return hu++})),h=o(e,l.isStatic);return!l.isStatic&&Xc&&(d.visualElement=tu(a,h,Lc(Lc({},l),e),n),function(e,t,n,r){var i,o=t.layoutId,a=t.layout,s=t.drag,l=t.dragConstraints,u=t.layoutScroll,d=(0,c.useContext)(mu);r&&n&&!(null===n||void 0===n?void 0:n.projection)&&(n.projection=new r(e,n.getLatestValues(),null===(i=n.parent)||void 0===i?void 0:i.projection),n.projection.setOptions({layoutId:o,layout:a,alwaysMeasureLayout:Boolean(s)||l&&nu(l),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"===typeof a?a:"both",initialPromotionConfig:d,layoutScroll:u}))}(p,e,d.visualElement,r||$c.projectionNodeConstructor),u=function(e,t){var n=[];if((0,c.useContext)(Vc),!t)return null;for(var r=0;r<Wc;r++){var i=Gc[r],o=$c[i],a=o.isEnabled,s=o.Component;a(e)&&s&&n.push(c.createElement(s,Lc({key:i},e,{visualElement:t})))}return n}(e,d.visualElement)),c.createElement(gu,{visualElement:d.visualElement,props:Lc(Lc({},l),e)},u,c.createElement(Yc.Provider,{value:d},i(a,e,p,function(e,t,n){return(0,c.useCallback)((function(r){var i;r&&(null===(i=e.mount)||void 0===i||i.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&("function"===typeof n?n(r):nu(n)&&(n.current=r))}),[t])}(h,d.visualElement,t),h,l.isStatic,d.visualElement)))}))}function vu(e){function t(t,n){return void 0===n&&(n={}),bu(e(t,n))}if("undefined"===typeof Proxy)return t;var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}var yu=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function xu(e){return"string"===typeof e&&!e.includes("-")&&!!(yu.indexOf(e)>-1||/[A-Z]/.test(e))}var wu={};var Au=["","X","Y","Z"],Eu=["transformPerspective","x","y","z"];function Su(e,t){return Eu.indexOf(e)-Eu.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return Au.forEach((function(t){return Eu.push(e+t)}))}
vendor: 6,566 bytes, line 128
128));var _u=new Set(Eu);function ku(e){return _u.has(e)}var Tu=new Set(["originX","originY","originZ"]);function Cu(e){return Tu.has(e)}function Ou(e,t){var n=t.layout,r=t.layoutId;return ku(e)||Cu(e)||(n||void 0!==r)&&(!!wu[e]||"opacity"===e)}var Nu=function(e){return Boolean(null!==e&&"object"===typeof e&&e.getVelocity)},Iu={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Ru(e){return e.startsWith("--")}var Pu=function(e,t){return t&&"number"===typeof e?t.transform(e):e};const ju=(e,t)=>n=>Math.max(Math.min(n,t),e),Mu=e=>e%1?Number(e.toFixed(5)):e,Du=/(-)?([\d]*\.?[\d])+/g,Lu=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,Fu=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Bu(e){return"string"===typeof e}const Uu=e=>({test:t=>Bu(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),zu=Uu("deg"),Hu=Uu("%"),$u=Uu("px"),Vu=Uu("vh"),Gu=Uu("vw"),Wu=Object.assign(Object.assign({},Hu),{parse:e=>Hu.parse(e)/100,transform:e=>Hu.transform(100*e)}),qu={test:e=>"number"===typeof e,parse:parseFloat,transform:e=>e},Yu=Object.assign(Object.assign({},qu),{transform:ju(0,1)}),Ku=Object.assign(Object.assign({},qu),{default:1});var Xu=Lc(Lc({},qu),{transform:Math.round}),Zu={borderWidth:$u,borderTopWidth:$u,borderRightWidth:$u,borderBottomWidth:$u,borderLeftWidth:$u,borderRadius:$u,radius:$u,borderTopLeftRadius:$u,borderTopRightRadius:$u,borderBottomRightRadius:$u,borderBottomLeftRadius:$u,width:$u,maxWidth:$u,height:$u,maxHeight:$u,size:$u,top:$u,right:$u,bottom:$u,left:$u,padding:$u,paddingTop:$u,paddingRight:$u,paddingBottom:$u,paddingLeft:$u,margin:$u,marginTop:$u,marginRight:$u,marginBottom:$u,marginLeft:$u,rotate:zu,rotateX:zu,rotateY:zu,rotateZ:zu,scale:Ku,scaleX:Ku,scaleY:Ku,scaleZ:Ku,skew:zu,skewX:zu,skewY:zu,distance:$u,translateX:$u,translateY:$u,translateZ:$u,x:$u,y:$u,z:$u,perspective:$u,transformPerspective:$u,opacity:Yu,originX:Wu,originY:Wu,originZ:$u,zIndex:Xu,fillOpacity:Yu,strokeOpacity:Yu,numOctaves:Xu};function Qu(e,t,n,r){var i,o=e.style,a=e.vars,s=e.transform,l=e.transformKeys,c=e.transformOrigin;l.length=0;var u=!1,d=!1,p=!0;for(var h in t){var f=t[h];if(Ru(h))a[h]=f;else{var m=Zu[h],g=Pu(f,m);if(ku(h)){if(u=!0,s[h]=g,l.push(h),!p)continue;f!==(null!==(i=m.default)&&void 0!==i?i:0)&&(p=!1)}else Cu(h)?(c[h]=g,d=!0):o[h]=g}}u?o.transform=function(e,t,n,r){var i=e.transform,o=e.transformKeys,a=t.enableHardwareAcceleration,s=void 0===a||a,l=t.allowTransformNone,c=void 0===l||l,u="";o.sort(Su);for(var d=!1,p=o.length,h=0;h<p;h++){var f=o[h];u+="".concat(Iu[f]||f,"(").concat(i[f],") "),"z"===f&&(d=!0)}return!d&&s?u+="translateZ(0)":u=u.trim(),r?u=r(i,n?"":u):c&&n&&(u="none"),u}(e,n,p,r):r?o.transform=r({},""):!t.transform&&o.transform&&(o.transform="none"),d&&(o.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,i=void 0===r?"50%":r,o=e.originZ,a=void 0===o?0:o;return"".concat(n," ").concat(i," ").concat(a)}(c))}var Ju=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function ed(e,t,n){for(var r in t)Nu(t[r])||Ou(r,n)||(e[r]=t[r])}function td(e,t,n){var r={};return ed(r,e.style||{},e),Object.assign(r,function(e,t,n){var r=e.transformTemplate;return(0,c.useMemo)((function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};Qu(e,t,{enableHardwareAcceleration:!n},r);var i=e.style;return Lc(Lc({},e.vars),i)}),[t])}(e,t,n)),e.transformValues&&(r=e.transformValues(r)),r}function nd(e,t,n){var r={},i=td(e,t,n);return Boolean(e.drag)&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=i,r}var rd=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function id(e){return rd.has(e)}var od,ad=function(e){return!id(e)};try{(od=require("@emotion/is-prop-valid").default)&&(ad=function(e){return e.startsWith("on")?!id(e):od(e)})}catch(WUe){}function sd(e,t,n){return"string"===typeof e?e:$u.transform(t+n*e)}var ld={offset:"stroke-dashoffset",array:"stroke-dasharray"},cd={offset:"strokeDashoffset",array:"strokeDasharray"};function ud(e,t,n,r){var i=t.attrX,o=t.attrY,a=t.originX,s=t.originY,l=t.pathLength,c=t.pathSpacing,u=void 0===c?1:c,d=t.pathOffset,p=void 0===d?0:d;Qu(e,Fc(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r),e.attrs=e.style,e.style={};var h=e.attrs,f=e.style,m=e.dimensions;h.transform&&(m&&(f.transform=h.transform),delete h.transform),m&&(void 0!==a||void 0!==s||f.transform)&&(f.transformOrigin=function(e,t,n){var r=sd(t,e.x,e.width),i=sd(n,e.y,e.height);return"".concat(r," ").concat(i)}(m,void 0!==a?a:.5,void 0!==s?s:.5)),void 0!==i&&(h.x=i),void 0!==o&&(h.y=o),void 0!==l&&function(e,t,n,r,i){void 0===n&&(n=1),void 0===r&&(r=0),void 0===i&&(i=!0),e.pathLength=1;var o=i?ld:cd;e[o.offset]=$u.transform(-r);var a=$u.transform(t),s=$u.transform(n);e[o.array]="".concat(a," ").concat(s)}(h,l,u,p,!1)}var dd=function(){return Lc(Lc({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function pd(e,t){var n=(0,c.useMemo)((function(){var n=dd();return ud(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),Lc(Lc({},n.attrs),{style:Lc({},n.style)})}),[t]);if(e.style){var r={};ed(r,e.style,e),n.style=Lc(Lc({},r),n.style)}return n}function hd(e){void 0===e&&(e=!1);return function(t,n,r,i,o,a){var s=o.latestValues,l=(xu(t)?pd:nd)(n,s,a),u=function(e,t,n){var r={};for(var i in e)(ad(i)||!0===n&&id(i)||!t&&!id(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"===typeof t,e),d=Lc(Lc(Lc({},u),l),{ref:i}
128);return r&&(d["data-projection-id"]=r),(0,c.createElement)(t,d)}}var fd=/([a-z])([A-Z])/g,md=function(e){return e.replace(fd,"$1-$2").toLowerCase()};function gd(e,t,n,r){var i=t.style,o=t.vars;for(var a in Object.assign(e.style,i,r&&r.getProjectionStyles(n)),o)e.style.setProperty(a,o[a])}var bd=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function vd(e,t,n,r){for(var i in gd(e,t,void 0,r),t.attrs)e.setAttribute(bd.has(i)?i:md(i),t.attrs[i])}function yd(e){var t=e.style,n={};for(var r in t)(Nu(t[r])||Ou(r,e))&&(n[r]=t[r]);return n}function xd(e){var t=yd(e);for(var n in e){if(Nu(e[n]))t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]}return t}function wd(e){return"object"===typeof e&&"function"===typeof e.start}var Ad=function(e){return Array.isArray(e)},Ed=function(e){return Ad(e)?e[e.length-1]||0:e};function Sd(e){var t,n=Nu(e)?e.get():e;return t=n,Boolean(t&&"object"===typeof t&&t.mix&&t.toValue)?n.toValue():n}function _d(e,t,n,r){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,a=e.onMount,s={latestValues:Td(t,n,r,i),renderState:o()};return a&&(s.mount=function(e){return a(t,e,s)}),s}var kd=function(e){return function(t,n){var r=(0,c.useContext)(Yc),i=(0,c.useContext)(Kc);return n?_d(e,t,r,i):du((function(){return _d(e,t,r,i)}))}};function Td(e,t,n,r){var i={},o=!1===(null===n||void 0===n?void 0:n.initial),a=r(e);for(var s in a)i[s]=Sd(a[s]);var l=e.initial,c=e.animate,u=su(e),d=lu(e);t&&d&&!u&&!1!==e.inherit&&(null!==l&&void 0!==l||(l=t.initial),null!==c&&void 0!==c||(c=t.animate));var p=o||!1===l,h=p?c:l;h&&"boolean"!==typeof h&&!wd(h)&&(Array.isArray(h)?h:[h]).forEach((function(t){var n=ou(e,t);if(n){var r=n.transitionEnd;n.transition;var o=Fc(n,["transitionEnd","transition"]);for(var a in o){var s=o[a];if(Array.isArray(s))s=s[p?s.length-1:0];null!==s&&(i[a]=s)}for(var a in r)i[a]=r[a]}}));return i}var Cd,Od,Nd={useVisualState:kd({scrapeMotionValuesFromProps:xd,createRenderState:dd,onMount:function(e,t,n){var r=n.renderState,i=n.latestValues;try{r.dimensions="function"===typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(o){r.dimensions={x:0,y:0,width:0,height:0}}ud(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),vd(t,r)}})},Id={useVisualState:kd({scrapeMotionValuesFromProps:yd,createRenderState:Ju})};function Rd(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function Pd(e,t,n,r){(0,c.useEffect)((function(){var i=e.current;if(n&&i)return Rd(i,t,n,r)}),[e,t,n,r])}function jd(e){return"undefined"!==typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Md(e){return!!e.touches}(Od=Cd||(Cd={})).Animate="animate",Od.Hover="whileHover",Od.Tap="whileTap",Od.Drag="whileDrag",Od.Focus="whileFocus",Od.InView="whileInView",Od.Exit="exit";var Dd={pageX:0,pageY:0};function Ld(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||Dd;return{x:n[t+"X"],y:n[t+"Y"]}}function Fd(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Bd(e,t){return void 0===t&&(t="page"),{point:Md(e)?Ld(e,t):Fd(e,t)}}var Ud=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,Bd(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},zd={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Hd={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function $d(e){return Xc&&null===window.onpointerdown?e:Xc&&null===window.ontouchstart?Hd[e]:Xc&&null===window.onmousedown?zd[e]:e}function Vd(e,t,n,r){return Rd(e,$d(t),Ud(n,"pointerdown"===t),r)}function Gd(e,t,n,r){return Pd(e,$d(t),n&&Ud(n,"pointerdown"===t),r)}function Wd(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var qd=Wd("dragHorizontal"),Yd=Wd("dragVertical");function Kd(e){var t=!1;if("y"===e)t=Yd();else if("x"===e)t=qd();else{var n=qd(),r=Yd();n&&r?t=function(){n(),r()}
128:(n&&n(),r&&r())}return t}function Xd(){var e=Kd(!0);return!e||(e(),!1)}function Zd(e,t,n){return function(r,i){var o;jd(r)&&!Xd()&&(null===(o=e.animationState)||void 0===o||o.setActive(Cd.Hover,t),null===n||void 0===n||n(r,i))}}var Qd=function(e,t){return!!t&&(e===t||Qd(e,t.parentElement))};function Jd(e){return(0,c.useEffect)((function(){return function(){return e()}}),[])}const ep=(e,t)=>n=>t(e(n)),tp=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(ep)};new Set;var np=new WeakMap,rp=new WeakMap,ip=function(e){var t;null===(t=np.get(e.target))||void 0===t||t(e)},op=function(e){e.forEach(ip)};function ap(e,t,n){var r=function(e){var t=e.root,n=Fc(e,["root"]),r=t||document;rp.has(r)||rp.set(r,{});var i=rp.get(r),o=JSON.stringify(n);return i[o]||(i[o]=new IntersectionObserver(op,Lc({root:t},n))),i[o]}(t);return np.set(e,n),r.observe(e),function(){np.delete(e),r.unobserve(e)}}var sp={some:0,all:1};function lp(e,t,n,r){var i=r.root,o=r.margin,a=r.amount,s=void 0===a?"some":a,l=r.once;(0,c.useEffect)((function(){if(e){var r={root:null===i||void 0===i?void 0:i.current,rootMargin:o,threshold:"number"===typeof s?s:sp[s]};return ap(n.getInstance(),r,(function(e){var r,i=e.isIntersecting;if(t.isInView!==i&&(t.isInView=i,!l||i||!t.hasEnteredView)){i&&(t.hasEnteredView=!0),null===(r=n.animationState)||void 0===r||r.setActive(Cd.InView,i);var o=n.getProps(),a=i?o.onViewportEnter:o.onViewportLeave;null===a||void 0===a||a(e)}}))}}),[e,i,o,s])}function cp(e,t,n,r){var i=r.fallback,o=void 0===i||i;(0,c.useEffect)((function(){e&&o&&requestAnimationFrame((function(){var e;t.hasEnteredView=!0;var r=n.getProps().onViewportEnter;null===r||void 0===r||r(null),null===(e=n.animationState)||void 0===e||e.setActive(Cd.InView,!0)}))}),[e])}var up=function(e){return function(t){return e(t),null}},dp={inView:up((function(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,i=e.onViewportLeave,o=e.viewport,a=void 0===o?{}:o,s=(0,c.useRef)({hasEnteredView:!1,isInView:!1}),l=Boolean(n||r||i);a.once&&s.current.hasEnteredView&&(l=!1),("undefined"===typeof IntersectionObserver?cp:lp)(l,s.current,t,a)})),tap:up((function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,i=e.whileTap,o=e.visualElement,a=t||n||r||i,s=(0,c.useRef)(!1),l=(0,c.useRef)(null),u={passive:!(n||t||r||m)};function d(){var e;null===(e=l.current)||void 0===e||e.call(l),l.current=null}function p(){var e;return d(),s.current=!1,null===(e=o.animationState)||void 0===e||e.setActive(Cd.Tap,!1),!Xd()}function h(e,n){p()&&(Qd(o.getInstance(),e.target)?null===t||void 0===t||t(e,n):null===r||void 0===r||r(e,n))}function f(e,t){p()&&(null===r||void 0===r||r(e,t))}function m(e,t){var r;d(),s.current||(s.current=!0,l.current=tp(Vd(window,"pointerup",h,u),Vd(window,"pointercancel",f,u)),null===(r=o.animationState)||void 0===r||r.setActive(Cd.Tap,!0),null===n||void 0===n||n(e,t))}Gd(o,"pointerdown",a?m:void 0,u),Jd(d)})),focus:up((function(e){var t=e.whileFocus,n=e.visualElement;Pd(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Cd.Focus,!0)}:void 0),Pd(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Cd.Focus,!1)}:void 0)})),hover:up((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;Gd(i,"pointerenter",t||r?Zd(i,!0,t):void 0,{passive:!t}),Gd(i,"pointerleave",n||r?Zd(i,!1,n):void 0,{passive:!n})}))},pp=0,hp=function(){return pp++};function fp(){var e=(0,c.useContext)(Kc);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,i=du(hp);(0,c.useEffect)((function(){return r(i)}),[]);return!t&&n?[!1,function(){return null===n||void 0===n?void 0:n(i)}]:[!0]}function mp(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const gp=(e,t,n)=>Math.min(Math.max(n,e),t),bp=.001;function vp(e){let t,n,{duration:r=800,bounce:i=.25,velocity:o=0,mass:a=1}
vendor: 7,142 bytes, line 128
128=e,s=1-i;s=gp(.05,1,s),r=gp(.01,10,r/1e3),s<1?(t=e=>{const t=e*s,n=t*r,i=t-o,a=xp(e,s),l=Math.exp(-n);return bp-i/a*l},n=e=>{const n=e*s*r,i=n*o+o,a=Math.pow(s,2)*Math.pow(e,2)*r,l=Math.exp(-n),c=xp(Math.pow(e,2),s);return(-t(e)+bp>0?-1:1)*((i-a)*l)/c}):(t=e=>Math.exp(-e*r)*((e-o)*r+1)-.001,n=e=>Math.exp(-e*r)*(r*r*(o-e)));const l=function(e,t,n){let r=n;for(let i=1;i<yp;i++)r-=e(r)/t(r);return r}(t,n,5/r);if(r*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:r};{const e=Math.pow(l,2)*a;return{stiffness:e,damping:2*s*Math.sqrt(a*e),duration:r}}}const yp=12;function xp(e,t){return e*Math.sqrt(1-t*t)}const wp=["duration","bounce"],Ap=["stiffness","damping","mass"];function Ep(e,t){return t.some((t=>void 0!==e[t]))}function Sp(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=Fc(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:p}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Ep(e,Ap)&&Ep(e,wp)){const n=vp(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(o),h=_p,f=_p;function m(){const e=u?-u/1e3:0,r=n-t,o=l/(2*Math.sqrt(s*c)),a=Math.sqrt(s/c)/1e3;if(void 0===i&&(i=Math.min(Math.abs(n-t)/100,.4)),o<1){const t=xp(a,o);h=i=>{const s=Math.exp(-o*a*i);return n-s*((e+o*a*r)/t*Math.sin(t*i)+r*Math.cos(t*i))},f=n=>{const i=Math.exp(-o*a*n);return o*a*i*(Math.sin(t*n)*(e+o*a*r)/t+r*Math.cos(t*n))-i*(Math.cos(t*n)*(e+o*a*r)-t*r*Math.sin(t*n))}}else if(1===o)h=t=>n-Math.exp(-a*t)*(r+(e+a*r)*t);else{const t=a*Math.sqrt(o*o-1);h=i=>{const s=Math.exp(-o*a*i),l=Math.min(t*i,300);return n-s*((e+o*a*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return m(),{next:e=>{const t=h(e);if(p)a.done=e>=d;else{const o=1e3*f(e),s=Math.abs(o)<=r,l=Math.abs(n-t)<=i;a.done=s&&l}return a.value=a.done?n:t,a},flipTarget:()=>{u=-u,[t,n]=[n,t],m()}}}Sp.needsInterpolation=(e,t)=>"string"===typeof e||"string"===typeof t;const _p=e=>0,kp=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Tp=(e,t,n)=>-n*e+n*t+e,Cp=(e,t)=>n=>Boolean(Bu(n)&&Fu.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Op=(e,t,n)=>r=>{if(!Bu(r))return r;const[i,o,a,s]=r.match(Du);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},Np=ju(0,255),Ip=Object.assign(Object.assign({},qu),{transform:e=>Math.round(Np(e))}),Rp={test:Cp("rgb","red"),parse:Op("red","green","blue"),transform:e=>{let{red:t,green:n,blue:r,alpha:i=1}=e;return"rgba("+Ip.transform(t)+", "+Ip.transform(n)+", "+Ip.transform(r)+", "+Mu(Yu.transform(i))+")"}};const Pp={test:Cp("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:Rp.transform},jp={test:Cp("hsl","hue"),parse:Op("hue","saturation","lightness"),transform:e=>{let{hue:t,saturation:n,lightness:r,alpha:i=1}=e;return"hsla("+Math.round(t)+", "+Hu.transform(Mu(n))+", "+Hu.transform(Mu(r))+", "+Mu(Yu.transform(i))+")"}};function Mp(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Dp(e){let{hue:t,saturation:n,lightness:r,alpha:i}=e;t/=360,n/=100,r/=100;let o=0,a=0,s=0;if(n){const e=r<.5?r*(1+n):r+n-r*n,i=2*r-e;o=Mp(i,e,t+1/3),a=Mp(i,e,t),s=Mp(i,e,t-1/3)}else o=a=s=r;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*s),alpha:i}}const Lp=(e,t,n)=>{const r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},Fp=[Pp,Rp,jp],Bp=e=>Fp.find((t=>t.test(e))),Up=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,zp=(e,t)=>{let n=Bp(e),r=Bp(t);Up(e),Up(t);let i=n.parse(e),o=r.parse(t);n===jp&&(i=Dp(i),n=Rp),r===jp&&(o=Dp(o),r=Rp);const a=Object.assign({},i);return e=>{for(const t in a)"alpha"!==t&&(a[t]=Lp(i[t],o[t],e));return a.alpha=Tp(i.alpha,o.alpha,e),n.transform(a)}},Hp={test:e=>Rp.test(e)||Pp.test(e)||jp.test(e),parse:e=>Rp.test(e)?Rp.parse(e):jp.test(e)?jp.parse(e):Pp.parse(e),transform:e=>Bu(e)?e:e.hasOwnProperty("red")?Rp.transform(e):jp.transform(e)},$p="${c}",Vp="${n}";function Gp(e){"number"===typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(Lu);r&&(n=r.length,e=e.replace(Lu,$p),t.push(...r.map(Hp.parse)));const i=e.match(Du);return i&&(e=e.replace(Du,Vp),t.push(...i.map(qu.parse))),{values:t,numColors:n,tokenised:e}}function Wp(e){return Gp(e).values}function qp(e){const{values:t,numColors:n,tokenised:r}=Gp(e),i=t.length;return e=>{let t=r;for(let r=0;r<i;r++)t=t.replace(r<n?$p:Vp,r<n?Hp.transform(e[r]):Mu(e[r]));return t}}const Yp=e=>"number"===typeof e?0:e;const Kp={test:function(e){var t,n,r,i;return isNaN(e)&&Bu(e)&&(null!==(n=null===(t=e.match(Du))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(Lu))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:Wp,createTransformer:qp,getAnimatableNone:function(e){const t=Wp(e);return qp(e)(t.map(Yp))}},Xp=e=>"number"===typeof e;function Zp(e,t){return Xp(e)?n=>Tp(e,t,n):Hp.test(e)?zp(e,t):th(e,t)}const Qp=(e,t)=>{const n=[...e],r=n.length,i=e.map(((e,n)=>Zp(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}},Jp=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=Zp(e[i],t[i]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function eh(e){const t=Kp.parse(e),n=t.length;let r=0,i=0,o=0;for(let a=0;a<n;a++)r||"number"===typeof t[a]?r++:void 0!==t[a].hue?o++:i++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:o}}const th=(e,t)=>{const n=Kp.createTransformer(t),r=eh(e),i=eh(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?tp(Qp(r.parsed,i.parsed),n):n=>`${n>0?t:e}`},nh=(e,t)=>n=>Tp(e,t,n);function rh(e,t,n){const r=[],i=n||("number"===typeof(o=e[0])?nh:"string"===typeof o?Hp.test(o)?zp:th:Array.isArray(o)?Qp:"object"===typeof o?Jp:void 0);var o;const a=e.length-1;for(let s=0;s<a;s++){let n=i(e[s],e[s+1]);if(t){const e=Array.isArray(t)?t[s]:t;n=tp(e,n)}r.push(n)}return r}function ih(e,t){let{clamp:n=!0,ease:r,mixer:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=e.length;t.length,!r||!Array.isArray(r)||r.length,e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=rh(t,r,i),s=2===o?function(e,t){let[n,r]=e,[i]=t;return e=>i(kp(n,r,e))}(e,a):function(e,t){const n=e.length,r=n-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[r]&&(o=r-1,a=!0),!a){let t=1;for(;t<n&&!(e[t]>i||t===r);t++);o=t-1}const s=kp(e[o],e[o+1],i);return t[o](s)}}(e,a);return n?t=>s(gp(e[0],e[o-1],t)):s}const oh=e=>t=>1-e(1-t),ah=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,sh=e=>t=>t*t*((e+1)*t-e),lh=4/11,ch=8/11,uh=e=>e,dh=(ph=2,e=>Math.pow(e,ph));var ph;const hh=oh(dh),fh=ah(dh),mh=e=>1-Math.sin(Math.acos(e)),gh=oh(mh),bh=ah(gh),vh=sh(1.525),yh=oh(vh),xh=ah(vh),wh=(e=>{const t=sh(e);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))}
128)(1.525),Ah=4356/361,Eh=35442/1805,Sh=16061/1805,_h=e=>{if(1===e||0===e)return e;const t=e*e;return e<lh?7.5625*t:e<ch?9.075*t-9.9*e+3.4:e<.9?Ah*t-Eh*e+Sh:10.8*e*e-20.52*e+10.72},kh=oh(_h);function Th(e,t){return e.map((()=>t||fh)).splice(0,e.length-1)}function Ch(e){let{from:t=0,to:n=1,ease:r,offset:i,duration:o=300}=e;const a={done:!1,value:t},s=Array.isArray(n)?n:[t,n],l=function(e,t){return e.map((e=>e*t))}(i&&i.length===s.length?i:function(e){const t=e.length;return e.map(((e,n)=>0!==n?n/(t-1):0))}(s),o);function c(){return ih(l,s,{ease:Array.isArray(r)?r:Th(s,r)})}let u=c();return{next:e=>(a.value=u(e),a.done=e>=o,a),flipTarget:()=>{s.reverse(),u=c()}}}const Oh={keyframes:Ch,spring:Sp,decay:function(e){let{velocity:t=0,from:n=0,power:r=.8,timeConstant:i=350,restDelta:o=.5,modifyTarget:a}=e;const s={done:!1,value:n};let l=r*t;const c=n+l,u=void 0===a?c:a(c);return u!==c&&(l=u-n),{next:e=>{const t=-l*Math.exp(-e/i);return s.done=!(t>o||t<-o),s.value=s.done?u:u+t,s},flipTarget:()=>{}}}};const Nh=1/60*1e3,Ih="undefined"!==typeof performance?()=>performance.now():()=>Date.now(),Rh="undefined"!==typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout((()=>e(Ih())),Nh);let Ph=!0,jh=!1,Mh=!1;const Dh={delta:0,timestamp:0},Lh=["read","update","preRender","render","postRender"],Fh=Lh.reduce(((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,i=!1,o=!1;const a=new WeakSet,s={schedule:function(e){const o=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&i,s=o?t:n;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&a.add(e),-1===s.indexOf(e)&&(s.push(e),o&&i&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(i)o=!0;else{if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(l),a.has(r)&&(s.schedule(r),e())}i=!1,o&&(o=!1,s.process(l))}}};return s}((()=>jh=!0)),e)),{}),Bh=Lh.reduce(((e,t)=>{const n=Fh[t];return e[t]=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return jh||Vh(),n.schedule(e,t,r)},e}),{}),Uh=Lh.reduce(((e,t)=>(e[t]=Fh[t].cancel,e)),{}),zh=Lh.reduce(((e,t)=>(e[t]=()=>Fh[t].process(Dh),e)),{}),Hh=e=>Fh[e].process(Dh),$h=e=>{jh=!1,Dh.delta=Ph?Nh:Math.max(Math.min(e-Dh.timestamp,40),1),Dh.timestamp=e,Mh=!0,Lh.forEach(Hh),Mh=!1,jh&&(Ph=!1,Rh($h))},Vh=()=>{jh=!0,Ph=!0,Mh||Rh($h)},Gh=()=>Dh;var Wh=Bh;function qh(e,t){return e-t-(arguments.length>2&&void 0!==arguments[2]?arguments[2]:0)}const Yh=e=>{const t=t=>{let{delta:n}=t;return e(n)};return{start:()=>Wh.update(t,!0),stop:()=>Uh.update(t)}};function Kh(e){var t,n,{from:r,autoplay:i=!0,driver:o=Yh,elapsed:a=0,repeat:s=0,repeatType:l="loop",repeatDelay:c=0,onPlay:u,onStop:d,onComplete:p,onRepeat:h,onUpdate:f}=e,m=Fc(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let g,b,v,{to:y}=m,x=0,w=m.duration,A=!1,E=!0;const S=function(e){if(Array.isArray(e.to))return Ch;if(Oh[e.type])return Oh[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Ch:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Sp:Ch}(m);(null===(n=(t=S).needsInterpolation)||void 0===n?void 0:n.call(t,r,y))&&(v=ih([0,100],[r,y],{clamp:!1}),r=0,y=100);const _=S(Object.assign(Object.assign({},m),{from:r,to:y}));function k(){x++,"reverse"===l?(E=x%2===0,a=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?t-(e-t)+n:qh(t+-e,t,n)}(a,w,c,E)):(a=qh(a,w,c),"mirror"===l&&_.flipTarget()),A=!1,h&&h()}function T(e){if(E||(e=-e),a+=e,!A){const e=_.next(Math.max(0,a));b=e.value,v&&(b=v(b)),A=E?e.done:a<=0}null===f||void 0===f||f(b),A&&(0===x&&(null!==w&&void 0!==w||(w=a)),x<s?function(e,t,n,r){return r?e>=t+n:e<=-n}(a,w,c,E)&&k():(g.stop(),p&&p()))}return i&&(null===u||void 0===u||u(),g=o(T),g.start()),{stop:()=>{null===d||void 0===d||d(),g.stop()}}}function Xh(e,t){return t?e*(1e3/t):0}var Zh=function(e){return 1e3*e};const Qh=(e,t)=>1-3*t+3*e,Jh=(e,t)=>3*t-6*e,ef=e=>3*e,tf=(e,t,n)=>
128((Qh(t,n)*e+Jh(t,n))*e+ef(t))*e,nf=(e,t,n)=>3*Qh(t,n)*e*e+2*Jh(t,n)*e+ef(t);const rf=.1;function of(e,t,n,r){if(e===t&&n===r)return uh;const i=new Float32Array(11);for(let a=0;a<11;++a)i[a]=tf(a*rf,e,n);function o(t){let r=0,o=1;for(;10!==o&&i[o]<=t;++o)r+=rf;--o;const a=r+(t-i[o])/(i[o+1]-i[o])*rf,s=nf(a,e,n);return s>=.001?function(e,t,n,r){for(let i=0;i<8;++i){const i=nf(t,n,r);if(0===i)return t;t-=(tf(t,n,r)-e)/i}return t}(t,a,e,n):0===s?a:function(e,t,n,r,i){let o,a,s=0;do{a=t+(n-t)/2,o=tf(a,r,i)-e,o>0?n=a:t=a}while(Math.abs(o)>1e-7&&++s<10);return a}(t,r,r+rf,e,n)}return e=>0===e||1===e?e:tf(o(e),t,r)}var af={linear:uh,easeIn:dh,easeInOut:fh,easeOut:hh,circIn:mh,circInOut:bh,circOut:gh,backIn:vh,backInOut:xh,backOut:yh,anticipate:wh,bounceIn:kh,bounceInOut:e=>e<.5?.5*(1-_h(1-2*e)):.5*_h(2*e-1)+.5,bounceOut:_h},sf=function(e){if(Array.isArray(e)){e.length;var t=Bc(e,4);return of(t[0],t[1],t[2],t[3])}return"string"===typeof e?("Invalid easing type '".concat(e,"'"),af[e]):e},lf=function(e,t){return"zIndex"!==e&&(!("number"!==typeof t&&!Array.isArray(t))||!("string"!==typeof t||!Kp.test(t)||t.startsWith("url(")))},cf=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},uf=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},df=function(){return{type:"keyframes",ease:"linear",duration:.3}},pf=function(e){return{type:"keyframes",duration:.8,values:e}},hf={x:cf,y:cf,z:cf,rotate:cf,rotateX:cf,rotateY:cf,rotateZ:cf,scaleX:uf,scaleY:uf,scale:uf,opacity:df,backgroundColor:df,color:df,default:uf};const ff=new Set(["brightness","contrast","saturate","opacity"]);function mf(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Du)||[];if(!r)return e;const i=n.replace(r,"");let o=ff.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const gf=/([a-z-]*)\(.*?\)/g,bf=Object.assign(Object.assign({},Kp),{getAnimatableNone:e=>{const t=e.match(gf);return t?t.map(mf).join(" "):e}});var vf=Lc(Lc({},Zu),{color:Hp,backgroundColor:Hp,outlineColor:Hp,fill:Hp,stroke:Hp,borderColor:Hp,borderTopColor:Hp,borderRightColor:Hp,borderBottomColor:Hp,borderLeftColor:Hp,filter:bf,WebkitFilter:bf}),yf=function(e){return vf[e]};function xf(e,t){var n,r=yf(e);return r!==bf&&(r=Kp),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}var wf=!1;function Af(e){var t=e.ease,n=e.times,r=e.yoyo,i=e.flip,o=e.loop,a=Fc(e,["ease","times","yoyo","flip","loop"]),s=Lc({},a);return n&&(s.offset=n),a.duration&&(s.duration=Zh(a.duration)),a.repeatDelay&&(s.repeatDelay=Zh(a.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!==typeof e[0]}(t)?t.map(sf):sf(t)),"tween"===a.type&&(s.type="keyframes"),(r||o||i)&&(r?s.repeatType="reverse":o?s.repeatType="loop":i&&(s.repeatType="mirror"),s.repeat=o||r||i||a.repeat),"spring"!==a.type&&(s.type="keyframes"),s}function Ef(e,t,n){var r;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=Uc([],Bc(e.to),!1),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=Fc(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=Lc(Lc({},e),function(e,t){var n;return n=Ad(t)?pf:hf[e]||hf.default,Lc({to:t},n(t))}(n,t.to))),Lc(Lc({},t),Af(e))}function Sf(e,t,n,r,i){var o,a=Tf(r,e),s=null!==(o=a.from)&&void 0!==o?o:t.get(),l=lf(e,n);"none"===s&&l&&"string"===typeof n?s=xf(e,n):_f(s)&&"string"===typeof n?s=kf(n):!Array.isArray(n)&&_f(n)&&"string"===typeof s&&(n=kf(s));var c=lf(e,s);return"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(n,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(n," via the `style` property."),c&&l&&!1!==a.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:function(e){return t.set(e)}};return"inertia"===a.type||"decay"===a.type?function(e){let t,{from:n=0,velocity:r=0,min:i,max:o,power:a=.8,timeConstant:s=750,bounceStiffness:l=500,bounceDamping:c=10,restDelta:u=1,modifyTarget:d,driver:p,onUpdate:h,onComplete:f,onStop:m}=e;function g(e){return void 0!==i&&e<i||void 0!==o&&e>o}function b(e){return void 0===i?o:void 0===o||Math.abs(i-e)<Math.abs(o-e)?i:o}function v(e){null===t||void 0===t||t.stop(),t=Kh(Object.assign(Object.assign({},e),{driver:p,onUpdate:t=>{var n;null===h||void 0===h||h(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:f,onStop:m}))}function y(e){v(Object.assign({type:"spring",stiffness:l,damping:c,restDelta:u},e))}if(g(n))y({from:n,velocity:r,to:b(n)});else{let e=a*r+n;"undefined"!==typeof d&&(e=d(e));const t=b(e),o=t===i?-1:1;let l,c;const p=e=>{l=c,c=e,r=Xh(e-l,Gh().delta),(1===o&&e>t||-1===o&&e<t)&&y({from:e,to:t,velocity:r})};v({type:"decay",from:n,velocity:r,timeConstant:s,power:a,restDelta:u,modifyTarget:d,onUpdate:g(e)?p:void 0})}return{stop:()=>null===t||void 0===t?void 0:t.stop()}}(Lc(Lc({},r),a)):Kh(Lc(Lc({},Ef(a,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=a.onUpdate)||void 0===t||t.call(a,e)},onComplete:function(){var e;r.onComplete(),null===(e=a.onComplete)||void 0===e||e.call(a)}}))}:function(){var e,r,o=Ed(n);return t.set(o),i(),null===(e=null===a||void 0===a?void 0:a.onUp
vendor: 8,065 bytes, line 128
128date)||void 0===e||e.call(a,o),null===(r=null===a||void 0===a?void 0:a.onComplete)||void 0===r||r.call(a),{stop:function(){}}}}function _f(e){return 0===e||"string"===typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function kf(e){return"number"===typeof e?0:xf("",e)}function Tf(e,t){return e[t]||e.default||e}function Cf(e,t,n,r){return void 0===r&&(r={}),wf&&(r={type:!1}),t.start((function(i){var o,a,s=Sf(e,t,n,r,i),l=function(e,t){var n,r;return null!==(r=null!==(n=(Tf(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),c=function(){return a=s()};return l?o=window.setTimeout(c,Zh(l)):c(),function(){clearTimeout(o),null===a||void 0===a||a.stop()}}))}var Of=function(e){return/^0[^.\s]+$/.test(e)};function Nf(e,t){-1===e.indexOf(t)&&e.push(t)}function If(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Rf=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return Nf(this.subscriptions,e),function(){return If(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var i=0;i<r;i++){var o=this.subscriptions[i];o&&o(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),Pf=function(){function e(e){var t,n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Rf,this.velocityUpdateSubscribers=new Rf,this.renderSubscribers=new Rf,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),n.prev=n.current,n.current=e;var r=Gh(),i=r.delta,o=r.timestamp;n.lastUpdated!==o&&(n.timeDelta=i,n.lastUpdated=o,Wh.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),t&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return Wh.postRender(n.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t)))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?Xh(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(n){t.hasAnimated=!0,t.stopAnimation=e(n)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function jf(e){return new Pf(e)}var Mf=function(e){return function(t){return t.test(e)}},Df=[qu,$u,Hu,zu,Gu,Vu,{test:function(e){return"auto"===e},parse:function(e){return e}}],Lf=function(e){return Df.find(Mf(e))},Ff=Uc(Uc([],Bc(Df),!1),[Hp,Kp],!1),Bf=function(e){return Ff.find(Mf(e))};function Uf(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,jf(n))}function zf(e,t){var n=au(e,t),r=n?e.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,o=void 0===i?{}:i;r.transition;var a=Fc(r,["transitionEnd","transition"]);for(var s in a=Lc(Lc({},a),o)){Uf(e,s,Ed(a[s]))}}function Hf(e,t){if(t)return(t[e]||t.default||t).from}function $f(e,t,n){var r;void 0===n&&(n={});var i=au(e,t,n.custom),o=(i||{}).transition,a=void 0===o?e.getDefaultTransition()||{}:o;n.transitionOverride&&(a=n.transitionOverride);var s=i?function(){return Vf(e,i,n)}:function(){return Promise.resolve()},l=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var i=a.delayChildren,o=void 0===i?0:i,s=a.staggerChildren,l=a.staggerDirection;return function(e,t,n,r,i,o){void 0===n&&(n=0);void 0===r&&(r=0);void 0===i&&(i=1);var a=[],s=(e.variantChildren.size-1)*r,l=1===i?function(e){return void 0===e&&(e=0),e*r}:function(e){return void 0===e&&(e=0),s-e*r};return Array.from(e.variantChildren).sort(Gf).forEach((function(e,r){a.push($f(e,t,Lc(Lc({},o),{delay:n+l(r)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(a)}(e,t,o+r,s,l,n)}:function(){return Promise.resolve()},c=a.when;if(c){var u=Bc("beforeChildren"===c?[s,l]:[l,s],2),d=u[0],p=u[1];return d().then(p)}return Promise.all([s(),l(n.delay)])}function Vf(e,t,n){var r,i=void 0===n?{}:n,o=i.delay,a=void 0===o?0:o,s=i.transitionOverride,l=i.type,c=e.makeTargetAnimatable(t),u=c.transition,d=void 0===u?e.getDefaultTransition():u,p=c.transitionEnd,h=Fc(c,["transition","transitionEnd"]);s&&(d=s);var f=[],m=l&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[l]);for(var g in h){var b=e.getValue(g),v=h[g];if(!(!b||void 0===v||m&&Wf(m,g))){var y=Lc({delay:a},d);e.shouldReduceMotion&&ku(g)&&(y=Lc(Lc({},y),{type:!1,delay:0}));var x=Cf(g,b,v,y);f.push(x)}}return Promise.all(f).then((function(){p&&zf(e,p)}))}function Gf(e,t){return e.sortNodePosition(t)}function Wf(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,i}var qf=[Cd.Animate,Cd.InView,Cd.Focus,Cd.Hover,Cd.Tap,Cd.Drag,Cd.Exit],Yf=Uc([],Bc(qf),!1).reverse(),Kf=qf.length;function Xf(e){return function(t){return Promise.all(t.map((function(t){var n=t.animation,r=t.options;return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(t),Array.isArray(t)){var i=t.map((function(t){return $f(e,t,n)}));r=Promise.all(i)}else if("string"===typeof t)r=$f(e,t,n);else{var o="function"===typeof t?au(e,t,n.custom):t;r=Vf(e,o,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}function Zf(e){var t=Xf(e),n=function(){var e;return(e={})[Cd.Animate]=Qf(!0),e[Cd.InView]=Qf(),e[Cd.Hover]=Qf(),e[Cd.Tap]=Qf(),e[Cd.Drag]=Qf(),e[Cd.Focus]=Qf(),e[Cd.Exit]=Qf(),e}(),r={},i=!0,o=function(t,n){var r=au(e,n);if(r){r.transition;var i=r.transitionEnd,o=Fc(r,["transition","transitionEnd"]);t=Lc(Lc(Lc({},t),o),i)}return t};function a(a,s){for(var l,c=e.getProps(),u=e.getVariantContext(!0)||{},d=[],p=new Set,h={},f=1/0,m=function(t){var r=Yf[t],m=n[r],g=null!==(l=c[r])&&void 0!==l?l:u[r],b=iu(g),v=r===s?m.isActive:null;!1===v&&(f=t);var y=g===u[r]&&g!==c[r]&&b;if(y&&i&&e.manuallyAnimateOnMount&&(y=!1),m.protectedKeys=Lc({},h),!m.isActive&&null===v||!g&&!m.prevProp||wd(g)||"boolean"===typeof g)return"continue";var x=function(e,t){if("string"===typeof t)return t!==e;if(ru(t))return!mp(t,e);return!1}(m.prevProp,g),w=x||r===s&&m.isActive&&!y&&b||t>f&&b,A=Array.isArray(g)?g:[g],E=A.reduce(o,{});!1===v&&(E={});var S=m.prevResolvedValues,_=void 0===S?{}:S,k=Lc(Lc({},_),E),T=function(e){w=!0,p.delete(e),m.needsAnimating[e]=!0};for(var C in k){var O=E[C],N=_[C];h.hasOwnProperty(C)||(O!==N?Ad(O)&&Ad(N)?!mp(O,N)||x?T(C):m.protectedKeys[C]=!0:void 0!==O?T(C):p.add(C):void 0!==O&&p.has(C)?T(C):m.protectedKeys[C]=!0)}m.prevProp=g,m.prevResolvedValues=E,m.isActive&&(h=Lc(Lc({},h),E)),i&&e.blockInitialAnimation&&(w=!1),w&&!y&&d.push.apply(d,Uc([],Bc(A.map((function(e){return{animation:e,options:Lc({type:r},a)}}))),!1))},g=0;g<Kf;g++)m(g);if(r=Lc({},h),p.size){var b={};p.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(b[t]=n)})),d.push({animation:b})}var v=Boolean(d.length);return i&&!1===c.initial&&!e.manuallyAnimateOnMount&&(v=!1),i=!1,v?t(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==r[e]}
128,animateChanges:a,setActive:function(t,r,i){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach((function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;var s=a(i,t);for(var l in n)n[l].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:function(){return n}}}function Qf(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Jf={animation:up((function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=Zf(t)),wd(n)&&(0,c.useEffect)((function(){return n.subscribe(t)}),[n])})),exit:up((function(e){var t=e.custom,n=e.visualElement,r=Bc(fp(),2),i=r[0],o=r[1],a=(0,c.useContext)(Kc);(0,c.useEffect)((function(){var e,r;n.isPresent=i;var s=null===(e=n.animationState)||void 0===e?void 0:e.setActive(Cd.Exit,!i,{custom:null!==(r=null===a||void 0===a?void 0:a.custom)&&void 0!==r?r:t});!i&&(null===s||void 0===s||s.then(o))}),[i])}))};const em=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),tm=e=>em(e)&&e.hasOwnProperty("z"),nm=(e,t)=>Math.abs(e-t);function rm(e,t){if(Xp(e)&&Xp(t))return nm(e,t);if(em(e)&&em(t)){const n=nm(e.x,t.x),r=nm(e.y,t.y),i=tm(e)&&tm(t)?nm(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}var im=function(){function e(e,t,n){var r=this,i=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=sm(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=rm(e.offset,{x:0,y:0})>=3;if(t||n){var i=e.point,o=Gh().timestamp;r.history.push(Lc(Lc({},i),{timestamp:o}));var a=r.handlers,s=a.onStart,l=a.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),l&&l(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=om(t,r.transformPagePoint),jd(e)&&0===e.buttons?r.handlePointerUp(e,t):Wh.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,i=n.onEnd,o=n.onSessionEnd,a=sm(om(t,r.transformPagePoint),r.history);r.startEvent&&i&&i(e,a),o&&o(e,a)},!(Md(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=i;var o=om(Bd(e),this.transformPagePoint),a=o.point,s=Gh().timestamp;this.history=[Lc(Lc({},a),{timestamp:s})];var l=t.onSessionStart;l&&l(e,sm(o,this.history)),this.removeListeners=tp(Vd(window,"pointermove",this.handlePointerMove),Vd(window,"pointerup",this.handlePointerUp),Vd(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),Uh.update(this.updatePoint)},e}();function om(e,t){return t?{point:t(e.point)}:e}function am(e,t){return{x:e.x-t.x,y:e.y-t.y}}function sm(e,t){var n=e.point;return{point:n,delta:am(n,cm(t)),offset:am(n,lm(t)),velocity:um(t,.1)}}function lm(e){return e[0]}function cm(e){return e[e.length-1]}function um(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=cm(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Zh(t)));)n--;if(!r)return{x:0,y:0};var o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};var a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function dm(e){return e.max-e.min}function pm(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),rm(e,t)<n}function hm(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=Tp(t.min,t.max,e.origin),e.scale=dm(n)/dm(t),(pm(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Tp(n.min,n.max,e.origin)-e.originPoint,(pm(e.translate)||isNaN(e.translate))&&(e.translate=0)}function fm(e,t,n,r){hm(e.x,t.x,n.x,null===r||void 0===r?void 0:r.originX),hm(e.y,t.y,n.y,null===r||void 0===r?void 0:r.originY)}function mm(e,t,n){e.min=n.min+t.min,e.max=e.min+dm(t)}function gm(e,t,n){e.min=t.min-n.min,e.max=e.min+dm(t)}function bm(e,t,n){gm(e.x,t.x,n.x),gm(e.y,t.y,n.y)}function vm(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function ym(e,t){var n,r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=Bc([i,r],2))[0],i=n[1]),{min:r,max:i}}var xm=.35;function wm(e,t,n){return{min:Am(e,t),max:Am(e,n)}}function Am(e,t){var n;return"number"===typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function Em(e){return[e("x"),e("y")]}function Sm(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function _m(e){return void 0===e||1===e}function km(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!_m(t)||!_m(n)||!_m(r)}function Tm(e){return km(e)||Cm(e.x)||Cm(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function Cm(e){return e&&"0%"!==e}
128function Om(e,t,n){return n+t*(e-n)}function Nm(e,t,n,r,i){return void 0!==i&&(e=Om(e,i,r)),Om(e,n,r)+t}function Im(e,t,n,r,i){void 0===t&&(t=0),void 0===n&&(n=1),e.min=Nm(e.min,t,n,r,i),e.max=Nm(e.max,t,n,r,i)}function Rm(e,t){var n=t.x,r=t.y;Im(e.x,n.translate,n.scale,n.originPoint),Im(e.y,r.translate,r.scale,r.originPoint)}function Pm(e,t){e.min=e.min+t,e.max=e.max+t}function jm(e,t,n){var r=Bc(n,3),i=r[0],o=r[1],a=r[2],s=void 0!==t[a]?t[a]:.5,l=Tp(e.min,e.max,s);Im(e,t[i],t[o],l,t.scale)}var Mm=["x","scaleX","originX"],Dm=["y","scaleY","originY"];function Lm(e,t){jm(e.x,t,Mm),jm(e.y,t,Dm)}function Fm(e,t){return Sm(function(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}var Bm=new WeakMap,Um=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}return e.prototype.start=function(e,t){var n=this,r=(void 0===t?{}:t).snapToCursor,i=void 0!==r&&r;if(!1!==this.visualElement.isPresent){this.panSession=new im(e,{onSessionStart:function(e){n.stopAnimation(),i&&n.snapToCursor(Bd(e,"page").point)},onStart:function(e,t){var r,i=n.getProps(),o=i.drag,a=i.dragPropagation,s=i.onDragStart;(!o||a||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=Kd(o),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),Em((function(e){var t,r,i=n.getAxisMotionValue(e).get()||0;if(Hu.test(i)){var o=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];if(o)i=dm(o)*(parseFloat(i)/100)}n.originPoint[e]=i})),null===s||void 0===s||s(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(Cd.Drag,!0))},onMove:function(e,t){var r=n.getProps(),i=r.dragPropagation,o=r.dragDirectionLock,a=r.onDirectionLock,s=r.onDrag;if(i||n.openGlobalLock){var l=t.offset;if(o&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(l),void(null!==n.currentDirection&&(null===a||void 0===a||a(n.currentDirection)));n.updateAxis("x",t.point,l),n.updateAxis("y",t.point,l),n.visualElement.syncRender(),null===s||void 0===s||s(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){var r=t.velocity;this.startAnimation(r);var i=this.getProps().onDragEnd;null===i||void 0===i||i(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(Cd.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&zm(e,r,this.currentDirection)){var i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,t,n){var r=t.min,i=t.max;return void 0!==r&&e<r?e=n?Tp(r,e,n.min):Math.max(e,r):void 0!==i&&e>i&&(e=n?Tp(i,e,n.max):Math.min(e,i)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,i=(this.visualElement.projection||{}).layout,o=this.constraints;n&&nu(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!i)&&function(e,t){var n=t.top,r=t.left,i=t.bottom,o=t.right;return{x:vm(e.x,r,o),y:vm(e.y,n,i)}}(i.actual,n),this.elastic=function(e){return void 0===e&&(e=xm),!1===e?e=0:!0===e&&(e=xm),{x:wm(e,"left","right"),y:wm(e,"top","bottom")}}(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Em((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(i.actual[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!nu(t))return!1;var r=t.current,i=this.visualElement.projection;if(!i||!i.layout)return!1;var o=function(e,t,n){var r=Fm(e,n),i=t.scroll;
128return i&&(Pm(r.x,i.x),Pm(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a=function(e,t){return{x:ym(e.x,t.x),y:ym(e.y,t.y)}}(i.layout.actual,o);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(a));this.hasMutatedConstraints=!!s,s&&(a=Sm(s))}return a},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,i=n.dragMomentum,o=n.dragElastic,a=n.dragTransition,s=n.dragSnapToOrigin,l=n.onDragTransitionEnd,c=this.constraints||{},u=Em((function(n){var l;if(zm(n,r,t.currentDirection)){var u=null!==(l=null===c||void 0===c?void 0:c[n])&&void 0!==l?l:{};s&&(u={min:0,max:0});var d=o?200:1e6,p=o?40:1e7,h=Lc(Lc({type:"inertia",velocity:i?e[n]:0,bounceStiffness:d,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10},a),u);return t.startAxisValueAnimation(n,h)}}));return Promise.all(u).then(l)},e.prototype.startAxisValueAnimation=function(e,t){return Cf(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;Em((function(t){return e.getAxisMotionValue(t).stop()}))},e.prototype.getAxisMotionValue=function(e){var t,n,r="_drag"+e.toUpperCase(),i=this.visualElement.getProps()[r];return i||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)},e.prototype.snapToCursor=function(e){var t=this;Em((function(n){if(zm(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,i=t.getAxisMotionValue(n);if(r&&r.layout){var o=r.layout.actual[n],a=o.min,s=o.max;i.set(e[n]-Tp(a,s,.5))}}}))},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,i=n.dragConstraints,o=this.visualElement.projection;if(nu(i)&&o&&this.constraints){this.stopAnimation();var a={x:0,y:0};Em((function(e){var n=t.getAxisMotionValue(e);if(n){var r=n.get();a[e]=function(e,t){var n=.5,r=dm(e),i=dm(t);return i>r?n=kp(t.min,t.max-r,e.min):r>i&&(n=kp(e.min,e.max-i,t.min)),gp(0,1,n)}({min:r,max:r},t.constraints[e])}}));var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout(),this.resolveConstraints(),Em((function(e){if(zm(e,r,null)){var n=t.getAxisMotionValue(e),i=t.constraints[e],o=i.min,s=i.max;n.set(Tp(o,s,a[e]))}}))}},e.prototype.addListeners=function(){var e,t=this;Bm.set(this.visualElement,this);var n=Vd(this.visualElement.getInstance(),"pointerdown",(function(e){var n=t.getProps(),r=n.drag,i=n.dragListener;r&&(void 0===i||i)&&t.start(e)})),r=function(){nu(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},i=this.visualElement.projection,o=i.addEventListener("measure",r);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),r();var a=Rd(window,"resize",(function(){return t.scalePositionWithinConstraints()}));return i.addEventListener("didUpdate",(function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(Em((function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))})),t.visualElement.syncRender())})),function(){a(),n(),o()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,i=void 0!==r&&r,o=e.dragPropagation,a=void 0!==o&&o,s=e.dragConstraints,l=void 0!==s&&s,c=e.dragElastic,u=void 0===c?xm:c,d=e.dragMomentum,p=void 0===d||d;return Lc(Lc({},e),{drag:n,dragDirectionLock:i,dragPropagation:a,dragConstraints:l,dragElastic:u,dragMomentum:p})},e}();function zm(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}var Hm={pan:up((function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,i=e.onPanSessionStart,o=e.visualElement,a=t||n||r||i,s=(0,c.useRef)(null),l=(0,c.useContext)(qc).transformPagePoint,u={onSessionStart:i,onStart:n,onMove:t,onEnd:function(e,t){s.current=null,r&&r(e,t)}};(0,c.useEffect)((function(){null!==s.current&&s.current.updateHandlers(u)})),Gd(o,"pointerdown",a&&function(e){s.current=new im(e,u,{transformPagePoint:l})}),Jd((function(){return s.current&&s.current.end()}))})),drag:up((function(e){var t=e.dragControls,n=e.visualElement,r=du((function(){return new Um(n)}));(0,c.useEffect)((function(){return t&&t.subscribe(r)}),[r,t]),(0,c.useEffect)((function(){return r.addListeners()}),[r])}))},$m=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];var Vm=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,i=e.getBaseTarget,o=e.makeTargetAnimatable,a=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,c=e.removeValueFromRenderState,u=e.sortNodePosition,d=e.scrapeMotionValuesFromProps;return function(e,t){var p=e.parent,h=e.props,f=e.presenceId,m=e.blockInitialAnimation,g=e.visualState,b=e.shouldReduceMotion;void 0===t&&(t={});
vendor: 7,048 bytes, line 128
128var v,y,x=!1,w=g.latestValues,A=g.renderState,E=function(){var e=$m.map((function(){return new Rf})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){$m.forEach((function(r){var i,o="on"+r,a=e[o];null===(i=t[r])||void 0===i||i.call(t),a&&(t[r]=n[o](a))}))}};return e.forEach((function(e,t){n["on"+$m[t]]=function(t){return e.add(t)},n["notify"+$m[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,Uc([],Bc(t),!1))}})),n}(),S=new Map,_=new Map,k={},T=Lc({},w);function C(){v&&x&&(O(),s(v,A,h.style,L.projection))}function O(){r(L,A,w,t,h)}function N(){E.notifyUpdate(w)}function I(e,t){var n=t.onChange((function(t){w[e]=t,h.onUpdate&&Wh.update(N,!1,!0)})),r=t.onRenderRequest(L.scheduleRender);_.set(e,(function(){n(),r()}))}var R=d(h);for(var P in R){var j=R[P];void 0!==w[P]&&Nu(j)&&j.set(w[P],!1)}var M=su(h),D=lu(h),L=Lc(Lc({treeType:n,current:null,depth:p?p.depth+1:0,parent:p,children:new Set,presenceId:f,shouldReduceMotion:b,variantChildren:D?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null===p||void 0===p?void 0:p.isMounted()),blockInitialAnimation:m,isMounted:function(){return Boolean(v)},mount:function(e){x=!0,v=L.current=e,L.projection&&L.projection.mount(e),D&&p&&!M&&(y=null===p||void 0===p?void 0:p.addVariantChild(L)),S.forEach((function(e,t){return I(t,e)})),null===p||void 0===p||p.children.add(L),L.setProps(h)},unmount:function(){var e;null===(e=L.projection)||void 0===e||e.unmount(),Uh.update(N),Uh.render(C),_.forEach((function(e){return e()})),null===y||void 0===y||y(),null===p||void 0===p||p.children.delete(L),E.clearAllListeners(),v=void 0,x=!1},addVariantChild:function(e){var t,n=L.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return u&&n===e.treeType?u(L.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return D?L:null===p||void 0===p?void 0:p.getClosestVariantNode()},getLayoutId:function(){return h.layoutId},getInstance:function(){return v},getStaticValue:function(e){return w[e]},setStaticValue:function(e,t){return w[e]=t},getLatestValues:function(){return w},setVisibility:function(e){L.isVisible!==e&&(L.isVisible=e,L.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),o(L,e,h,t)},measureViewportBox:function(){return a(v,h)},addValue:function(e,t){L.hasValue(e)&&L.removeValue(e),S.set(e,t),w[e]=t.get(),I(e,t)},removeValue:function(e){var t;S.delete(e),null===(t=_.get(e))||void 0===t||t(),_.delete(e),delete w[e],c(e,A)},hasValue:function(e){return S.has(e)},getValue:function(e,t){var n=S.get(e);return void 0===n&&void 0!==t&&(n=jf(t),L.addValue(e,n)),n},forEachValue:function(e){return S.forEach(e)},readValue:function(e){var n;return null!==(n=w[e])&&void 0!==n?n:l(v,e,t)},setBaseTarget:function(e,t){T[e]=t},getBaseTarget:function(e){if(i){var t=i(h,e);if(void 0!==t&&!Nu(t))return t}return T[e]}},E),{build:function(){return O(),A},scheduleRender:function(){Wh.render(C,!1,!0)},syncRender:C,setProps:function(e){(e.transformTemplate||h.transformTemplate)&&L.scheduleRender(),h=e,E.updatePropListeners(e),k=function(e,t,n){var r;for(var i in t){var o=t[i],a=n[i];if(Nu(o))e.addValue(i,o);else if(Nu(a))e.addValue(i,jf(o));else if(a!==o)if(e.hasValue(i)){var s=e.getValue(i);!s.hasAnimated&&s.set(o)}else e.addValue(i,jf(null!==(r=e.getStaticValue(i))&&void 0!==r?r:o))}for(var i in n)void 0===t[i]&&e.removeValue(i);return t}(L,d(h),k)},getProps:function(){return h},getVariant:function(e){var t;return null===(t=h.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return h.transition},getTransformPagePoint:function(){return h.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null===p||void 0===p?void 0:p.getVariantContext();if(!M){var t=(null===p||void 0===p?void 0:p.getVariantContext())||{};return void 0!==h.initial&&(t.initial=h.initial),t}for(var n={},r=0;r<Wm;r++){var i=Gm[r],o=h[i];(iu(o)||!1===o)&&(n[i]=o)}return n}});return L}},Gm=Uc(["initial"],Bc(qf),!1),Wm=Gm.length;function qm(e){return"string"===typeof e&&e.startsWith("var(--")}var Ym=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Km(e,t,n){void 0===n&&(n=1),'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.');var r=Bc(function(e){var t=Ym.exec(e);if(!t)return[,];var n=Bc(t,3);return[n[1],n[2]]}(e),2),i=r[0],o=r[1];if(i){var a=window.getComputedStyle(t).getPropertyValue(i);return a?a.trim():qm(o)?Km(o,t,n+1):o}}var Xm,Zm,Qm=new Set(["width","height","top","left","right","bottom","x","y"]),Jm=function(e){return Qm.has(e)},eg=function(e,t){e.set(t,!1),e.set(t)},tg=function(e){return e===qu||e===$u};(Zm=Xm||(Xm={})).width="width",Zm.height="height",Zm.left="left",Zm.right="right",Zm.top="top",Zm.bottom="bottom";var ng=function(e,t){return parseFloat(e.split(", ")[t])},rg=function(e,t){return function(n,r){var i=r.transform;if("none"===i||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return ng(o[1],t);var a=i.match(/^matrix\((.+)\)$/);return a?ng(a[1],e):0}},ig=new Set(["x","y","z"]),og=Eu.filter((function(e){return!ig.has(e)}));var ag={width:function(e,t){var n=e.x,r=t.paddingLeft,i=void 0===r?"0":r,o=t.paddingRight,a=void 0===o?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(a)},height:function(e,t){var n=e.y,r=t.paddingTop,i=void 0===r?"0":r,o=t.paddingBottom,a=void 0===o?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(a)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:rg(4,13),y:rg(5,14)},sg=function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=Lc({},t),r=Lc({},r);var i=Object.keys(t).filter(Jm),o=[],a=!1,s=[];if(i.forEach((function(i){var l=e.getValue(i);if(e.hasValue(i)){var c,u=n[i],d=Lf(u),p=t[i];if(Ad(p)){var h=p.length,f=null===p[0]?1:0;u=p[f],d=Lf(u);for(var m=f;m<h;m++)c?Lf(p[m]):(c=Lf(p[m]))===d||tg(d)&&tg(c)}else c=Lf(p);if(d!==c)if(tg(d)&&tg(c)){var g=l.get();"string"===typeof g&&l.set(parseFloat(g)),"string"===typeof p?t[i]=parseFloat(p):Array.isArray(p)&&c===$u&&(t[i]=p.map(parseFloat))}else(null===d||void 0===d?void 0:d.transform)&&(null===c||void 0===c?void 0:c.transform)&&(0===u||0===p)?0===u?l.set(c.transform(u)):t[i]=d.transform(p):(a||(o=function(e){var t=[];return og.forEach((function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.syncRender(),t}(e),a=!0),s.push(i),r[i]=void 0!==r[i]?r[i]:t[i],eg(l,p))}})),s.length){var l=s.indexOf("height")>=0?window.pageYOffset:null,c=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),o=getComputedStyle(i),a=o.display,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEac
128h((function(e){s[e]=ag[e](r,o)})),t.syncRender();var l=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);eg(r,s[n]),e[n]=ag[n](l,o)})),e}(t,e,s);return o.length&&o.forEach((function(t){var n=Bc(t,2),r=n[0],i=n[1];e.getValue(r).set(i)})),e.syncRender(),null!==l&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}return{target:t,transitionEnd:r}};function lg(e,t,n,r){return function(e){return Object.keys(e).some(Jm)}(t)?sg(e,t,n,r):{target:t,transitionEnd:r}}var cg=function(e,t,n,r){var i=function(e,t,n){var r,i=Fc(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:i,transitionEnd:n};for(var a in n&&(n=Lc({},n)),e.forEachValue((function(e){var t=e.get();if(qm(t)){var n=Km(t,o);n&&e.set(n)}})),i){var s=i[a];if(qm(s)){var l=Km(s,o);l&&(i[a]=l,n&&(null!==(r=n[a])&&void 0!==r||(n[a]=s)))}}return{target:i,transitionEnd:n}}(e,t,r);return lg(e,t=i.target,n,r=i.transitionEnd)};var ug={treeType:"dom",readValueFromInstance:function(e,t){if(ku(t)){var n=yf(t);return n&&n.default||0}var r,i=(r=e,window.getComputedStyle(r));return(Ru(t)?i.getPropertyValue(t):i[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return Fm(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var i=n.transformValues;void 0===r&&(r=!0);var o=t.transition,a=t.transitionEnd,s=Fc(t,["transition","transitionEnd"]),l=function(e,t,n){var r,i,o={};for(var a in e)o[a]=null!==(r=Hf(a,t))&&void 0!==r?r:null===(i=n.getValue(a))||void 0===i?void 0:i.get();return o}(s,o||{},e);if(i&&(a&&(a=i(a)),s&&(s=i(s)),l&&(l=i(l))),r){!function(e,t,n){var r,i,o,a,s=Object.keys(t).filter((function(t){return!e.hasValue(t)})),l=s.length;if(l)for(var c=0;c<l;c++){var u=s[c],d=t[u],p=null;Array.isArray(d)&&(p=d[0]),null===p&&(p=null!==(i=null!==(r=n[u])&&void 0!==r?r:e.readValue(u))&&void 0!==i?i:t[u]),void 0!==p&&null!==p&&("string"===typeof p&&(/^\-?\d*\.?\d+$/.test(p)||Of(p))?p=parseFloat(p):!Bf(p)&&Kp.test(d)&&(p=xf(u,d)),e.addValue(u,jf(p)),null!==(o=(a=n)[u])&&void 0!==o||(a[u]=p),e.setBaseTarget(u,p))}}(e,s,l);var c=cg(e,s,l,a);a=c.transitionEnd,s=c.target}return Lc({transition:o,transitionEnd:a},s)},scrapeMotionValuesFromProps:yd,build:function(e,t,n,r,i){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),Qu(t,n,r,i.transformTemplate)},render:gd},dg=Vm(ug),pg=Vm(Lc(Lc({},ug),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return ku(t)?(null===(n=yf(t))||void 0===n?void 0:n.default)||0:(t=bd.has(t)?t:md(t),e.getAttribute(t))},scrapeMotionValuesFromProps:xd,build:function(e,t,n,r,i){ud(t,n,r,i.transformTemplate)},render:vd})),hg=function(e,t){return xu(e)?pg(t,{enableHardwareAcceleration:!1}):dg(t,{enableHardwareAcceleration:!0})};function fg(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var mg={correct:function(e,t){if(!t.target)return e;if("string"===typeof e){if(!$u.test(e))return e;e=parseFloat(e)}var n=fg(e,t.target.x),r=fg(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},gg="_$css",bg={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,i=e,o=e.includes("var("),a=[];o&&(e=e.replace(Ym,(function(e){return a.push(e),gg})));var s=Kp.parse(e);if(s.length>5)return i;var l=Kp.createTransformer(e),c="number"!==typeof s[0]?1:0,u=r.x.scale*n.x,d=r.y.scale*n.y;s[0+c]/=u,s[1+c]/=d;var p=Tp(u,d,.5);"number"===typeof s[2+c]&&(s[2+c]/=p),"number"===typeof s[3+c]&&(s[3+c]/=p);var h=l(s);if(o){var f=0;h=h.replace(gg,(function(){var e=a[f];return f++,e}))}return h}},vg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Dc(t,e),t.prototype.componentDidMount=function(){var e,t=this,n=this.props,r=n.visualElement,i=n.layoutGroup,o=n.switchLayoutGroup,a=n.layoutId,s=r.projection;e=yg,Object.assign(wu,e),s&&((null===i||void 0===i?void 0:i.group)&&i.group.add(s),(null===o||void 0===o?void 0:o.register)&&a&&o.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(function(){t.safeToRemove()})),s.setOptions(Lc(Lc({},s.options),{onExitComplete:function(){return t.safeToRemove()}}))),pu.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,i=n.visualElement,o=n.drag,a=n.isPresent,s=i.projection;return s?(s.isPresent=a,o||e.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?s.promote():s.relegate()||Wh.postRender((function(){var e;(null===(e=s.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()}))),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visualElement,n=e.layoutGroup,r=e.switchLayoutGroup,i=t.projection;i&&(i.scheduleCheckAfterUnmount(),(null===n||void 0===n?void 0:n.group)&&n.group.remove(i),(null===r||void 0===r?void 0:r.deregister)&&r.deregister(i))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null===e||void 0===e||e()},t.prototype.render=function(){return null},t}(c.Component);var yg={borderRadius:Lc(Lc({},mg),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:mg,borderTopRightRadius:mg,borderBottomLeftRadius:mg,borderBottomRightRadius:mg,boxShadow:bg},xg={measureLayout:function(e){var t=Bc(fp(),2),n=t[0],r=t[1],i=(0,c.useContext)(fu);return c.createElement(vg,Lc({},e,{layoutGroup:i,switchLayoutGroup:(0,c.useContext)(mu),isPresent:n,safeToRemove:r}))}};var wg=["TopLeft","TopRight","BottomLeft","BottomRight"],Ag=wg.length,Eg=function(e){return"string"===typeof e?parseFloat(e):e},Sg=function(e){return"number"===typeof e||$u.test(e)};function _g(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var kg=Cg(0,.5,gh),Tg=Cg(.5,.95,uh);
128function Cg(e,t,n){return function(r){return r<e?0:r>t?1:n(kp(e,t,r))}}function Og(e,t){e.min=t.min,e.max=t.max}function Ng(e,t){Og(e.x,t.x),Og(e.y,t.y)}function Ig(e,t,n,r,i){return e=Om(e-=t,1/n,r),void 0!==i&&(e=Om(e,1/i,r)),e}function Rg(e,t,n,r,i){var o=Bc(n,3),a=o[0],s=o[1],l=o[2];!function(e,t,n,r,i,o,a){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===o&&(o=e),void 0===a&&(a=e),Hu.test(t)&&(t=parseFloat(t),t=Tp(a.min,a.max,t/100)-a.min),"number"===typeof t){var s=Tp(o.min,o.max,r);e===o&&(s-=t),e.min=Ig(e.min,t,n,s,i),e.max=Ig(e.max,t,n,s,i)}}(e,t[a],t[s],t[l],t.scale,r,i)}var Pg=["x","scaleX","originX"],jg=["y","scaleY","originY"];function Mg(e,t,n,r){Rg(e.x,t,Pg,null===n||void 0===n?void 0:n.x,null===r||void 0===r?void 0:r.x),Rg(e.y,t,jg,null===n||void 0===n?void 0:n.y,null===r||void 0===r?void 0:r.y)}function Dg(e){return 0===e.translate&&1===e.scale}function Lg(e){return Dg(e.x)&&Dg(e.y)}function Fg(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var Bg=function(){function e(){this.members=[]}return e.prototype.add=function(e){Nf(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(If(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex((function(t){return e===t}));if(0===n)return!1;for(var r=n;r>=0;r--){var i=this.members[r];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;e!==r&&(this.prevLead=r,this.lead=e,e.show(),r&&(r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach((function(e){var t,n,r,i,o;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(o=null===(r=e.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===o||o.call(i)}))},e.prototype.scheduleRender=function(){this.members.forEach((function(e){e.instance&&e.scheduleRender(!1)}))},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}();function Ug(e,t,n){var r=e.x.translate/t.x,i=e.y.translate/t.y,o="translate3d(".concat(r,"px, ").concat(i,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var a=n.rotate,s=n.rotateX,l=n.rotateY;a&&(o+="rotate(".concat(a,"deg) ")),s&&(o+="rotateX(".concat(s,"deg) ")),l&&(o+="rotateY(".concat(l,"deg) "))}var c=e.x.scale*t.x,u=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(o+="scale(".concat(c,", ").concat(u,")"))?"none":o}var zg=function(e,t){return e.depth-t.depth},Hg=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){Nf(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){If(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(zg),this.isDirty=!1,this.children.forEach(e)},e}();function $g(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,i=e.checkIsScrollRoot,o=e.resetTransform;return function(){function e(e,t,r){var i=this;void 0===t&&(t={}),void 0===r&&(r=null===n||void 0===n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){i.isUpdating&&(i.isUpdating=!1,i.clearAllSnapshots())},this.updateProjection=function(){i.nodes.forEach(Xg),i.nodes.forEach(Zg)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?Uc(Uc([],Bc(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var o=0;o<this.path.length;o++)this.path[o].shouldResetTransform=!0;this.root===this&&(this.nodes=new Hg)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Rf),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.eventHandlers.get(e);null===r||void 0===r||r.notify.apply(r,Uc([],Bc(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,n){var r,i=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var o=this.options,a=o.layoutId,s=o.layout,l=o.visualElement;if(l&&!l.getInstance()&&l.mount(e),this.root.nodes.add(this),null===(r=this.parent)||void 0===r||r.children.add(this),this.id&&this.root.potentialNodes.delete(this.id
128),n&&(s||a)&&(this.isLayoutDirty=!0),t){var c,u=function(){return i.root.updateBlockedByResize=!1};t(e,(function(){i.root.updateBlockedByResize=!0,clearTimeout(c),c=window.setTimeout(u,250),pu.hasAnimatedSinceResize&&(pu.hasAnimatedSinceResize=!1,i.nodes.forEach(Kg))}))}a&&this.root.registerSharedNode(a,this),!1!==this.options.animate&&l&&(a||s)&&this.addEventListener("didUpdate",(function(e){var t,n,r,o,a,s=e.delta,c=e.hasLayoutChanged,u=e.hasRelativeTargetChanged,d=e.layout;if(i.isTreeAnimationBlocked())return i.target=void 0,void(i.relativeTarget=void 0);var p=null!==(n=null!==(t=i.options.transition)&&void 0!==t?t:l.getDefaultTransition())&&void 0!==n?n:rb,h=l.getProps(),f=h.onLayoutAnimationStart,m=h.onLayoutAnimationComplete,g=!i.targetLayout||!Fg(i.targetLayout,d)||u,b=!c&&u;if((null===(r=i.resumeFrom)||void 0===r?void 0:r.instance)||b||c&&(g||!i.currentAnimation)){i.resumeFrom&&(i.resumingFrom=i.resumeFrom,i.resumingFrom.resumingFrom=void 0),i.setAnimationOrigin(s,b);var v=Lc(Lc({},Tf(p,"layout")),{onPlay:f,onComplete:m});l.shouldReduceMotion&&(v.delay=0,v.type=!1),i.startAnimation(v)}else c||0!==i.animationProgress||i.finishAnimation(),i.isLead()&&(null===(a=(o=i.options).onExitComplete)||void 0===a||a.call(o));i.targetLayout=d}))}},e.prototype.unmount=function(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,Uh.preRender(this.updateProjection)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1},e.prototype.startUpdate=function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(Qg))},e.prototype.willUpdate=function(e){var t,n,r;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var i=0;i<this.path.length;i++){var o=this.path[i];o.shouldResetTransform=!0,o.updateScroll()}var a=this.options,s=a.layoutId,l=a.layout;if(void 0!==s||l){var c=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null===c||void 0===c?void 0:c(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(qg);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(ib),this.potentialNodes.clear()),this.nodes.forEach(Yg),this.nodes.forEach(Vg),this.nodes.forEach(Gg),this.clearAllSnapshots(),zh.update(),zh.preRender(),zh.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(Wg),this.sharedNodes.forEach(Jg)},e.prototype.scheduleUpdateProjection=function(){Wh.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;Wh.postRender((function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()}))},e.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));ab(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){var e;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++){this.path[t].updateScroll()}var n=this.measure();ab(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null===r||void 0===r?void 0:r.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=r(this.instance))},e.prototype.resetTransform=function(){var e;if(o){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!Lg(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,i=null===r||void 0===r?void 0:r(this.latestValues,""),a=i!==this.prevTransformTemplateValue;t&&(n||Tm(this.latestValues)||a)&&(o(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};var t=e.measureViewportBox(),n=this.root.scroll;
128return n&&(Pm(t.x,n.x),Pm(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};Ng(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],i=r.scroll,o=r.options,a=r.isScrollRoot;if(r!==this.root&&i&&o.layoutScroll){if(a){Ng(t,e);var s=this.root.scroll;s&&(Pm(t.x,-s.x),Pm(t.y,-s.y))}Pm(t.x,i.x),Pm(t.y,i.y)}}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var n={x:{min:0,max:0},y:{min:0,max:0}};Ng(n,e);for(var r=0;r<this.path.length;r++){var i=this.path[r];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Lm(n,{x:-i.scroll.x,y:-i.scroll.y}),Tm(i.latestValues)&&Lm(n,i.latestValues)}return Tm(this.latestValues)&&Lm(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};Ng(n,e);for(var r=0;r<this.path.length;r++){var i=this.path[r];if(i.instance&&Tm(i.latestValues)){km(i.latestValues)&&i.updateSnapshot();var o={x:{min:0,max:0},y:{min:0,max:0}};Ng(o,i.measure()),Mg(n,i.latestValues,null===(t=i.snapshot)||void 0===t?void 0:t.layout,o)}}return Tm(this.latestValues)&&Mg(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=Lc(Lc(Lc({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},e.prototype.resolveTargetDelta=function(){var e,t,n,r,i=this.options,o=i.layout,a=i.layoutId;this.layout&&(o||a)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},bm(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Ng(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(e=this.relativeParent)||void 0===e?void 0:e.target)?(t=this.target,n=this.relativeTarget,r=this.relativeParent.target,mm(t.x,n.x,r.x),mm(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):Ng(this.target,this.layout.actual),Rm(this.target,this.targetDelta)):Ng(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},bm(this.relativeTargetOrigin,this.target,this.relativeParent.target),Ng(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!Tm(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,n=t.layout,r=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(n||r)){var i=this.getLead();Ng(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var i,o;void 0===r&&(r=!1);var a=n.length;if(a){var s,l;t.x=t.y=1;for(var c=0;c<a;c++)l=(s=n[c]).projectionDelta,"contents"!==(null===(o=null===(i=s.instance)||void 0===i?void 0:i.style)||void 0===o?void 0:o.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Lm(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,Rm(e,l)),r&&Tm(s.latestValues)&&Lm(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==i);var o=i.target;if(o){this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});var a=this.treeScale.x,s=this.treeScale.y,l=this.projectionTransform;fm(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.projectionTransform=Ug(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,n,r;void 0===e&&(e=!0),null===(n=(t=this.options).scheduleRender)||void 0===n||n.call(t),e&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var n,r=this;void 0===t&&(t=!1);var i=this.snapshot,o=(null===i||void 0===i?void 0:i.latestValues)||{},a=Lc({},this.latestValues),s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var l={x:{min:0,max:0},y:{min:0,max:0}}
128,c=null===i||void 0===i?void 0:i.isShared,u=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,d=Boolean(c&&!u&&!0===this.options.crossfade&&!this.path.some(nb));this.animationProgress=0,this.mixTargetDelta=function(t){var n,i=t/1e3;eb(s.x,e.x,i),eb(s.y,e.y,i),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(bm(l,r.layout.actual,r.relativeParent.layout.actual),function(e,t,n,r){tb(e.x,t.x,n.x,r),tb(e.y,t.y,n.y,r)}(r.relativeTarget,r.relativeTargetOrigin,l,i)),c&&(r.animationValues=a,function(e,t,n,r,i,o){var a,s,l,c;i?(e.opacity=Tp(0,null!==(a=n.opacity)&&void 0!==a?a:1,kg(r)),e.opacityExit=Tp(null!==(s=t.opacity)&&void 0!==s?s:1,0,Tg(r))):o&&(e.opacity=Tp(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(c=n.opacity)&&void 0!==c?c:1,r));for(var u=0;u<Ag;u++){var d="border".concat(wg[u],"Radius"),p=_g(t,d),h=_g(n,d);void 0===p&&void 0===h||(p||(p=0),h||(h=0),0===p||0===h||Sg(p)===Sg(h)?(e[d]=Math.max(Tp(Eg(p),Eg(h),r),0),(Hu.test(h)||Hu.test(p))&&(e[d]+="%")):e[d]=h)}(t.rotate||n.rotate)&&(e.rotate=Tp(t.rotate||0,n.rotate||0,r))}(a,o,r.latestValues,i,d,u)),r.root.scheduleUpdateProjection(),r.scheduleRender(),r.animationProgress=i},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,n,r=this;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(Uh.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Wh.update((function(){pu.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=Nu(e)?e:jf(e);return Cf("",r,t,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,1e3,Lc(Lc({},e),{onUpdate:function(t){var n;r.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),r.completeAnimation()}})),r.resumingFrom&&(r.resumingFrom.currentAnimation=r.currentAnimation),r.pendingAnimation=void 0}))},e.prototype.completeAnimation=function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,n=e.target,r=e.layout,i=e.latestValues;t&&n&&r&&(Ng(t,n),Lm(t,i),fm(this.projectionDeltaWithTransform,this.layoutCorrected,t,i))},e.prototype.registerSharedNode=function(e,t){var n,r,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new Bg),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(i=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(r,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,n=t.needsReset,r=t.transition,i=t.preserveFollowOpacity,o=this.getStack();o&&o.promote(this,i),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,n={},r=0;r<Au.length;r++){var i="rotate"+Au[r];e.getStaticValue(i)&&(t=!0,n[i]=e.getStaticValue(i),e.setStaticValue(i,0))}if(t){for(var i in null===e||void 0===e||e.syncRender(),n)e.setStaticValue(i,n[i]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,i,o,a;void 0===e&&(e={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var l=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=Sd(e.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none",s;var c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){var u={};return this.options.layoutId&&(u.opacity=null!==(n=this.latestValues.opacity)&&void 0!==n?n:1,u.pointerEvents=Sd(e.pointerEvents)||""),this.hasProjected&&!Tm(this.latestValues)&&(u.transform=l?l({},""):"none",this.hasProjected=!1),u}var d=c.animationValues||c.latestValues;this.applyTransformsToTarget(),s.transform=Ug(this.projectionDeltaWithTransform,this.treeScale,d),l&&(s.transform=l(d,s.transform));var p=this.projectionDelta,h=p.x,f=p.y;for(var m in s.transformOrigin="".concat(100*h.origin,"% ").concat(100*f.origin,"% 0"),c.animationValues?s.opacity=c===this?null!==(i=null!==(r=d.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:s.opacity=c===this?null!==(o=d.opacity)&&void 0!==o?o:"":null!==(a=d.opacityExit)&&void 0!==a?a:0,wu)if(void 0!==d[m]){var g=wu[m],b=g.correct,v=g.applyTo,y=b(d[m],c);if(v)for(var x=v.length,w=0;w<x;w++)s[v[w]]=y;else s[m]=y}return this.options.layoutId&&(s.pointerEvents=c===this?Sd(e.pointerEvents)||"":"none"),s},e.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0}
128,e.prototype.resetTree=function(){this.root.nodes.forEach((function(e){var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(qg),this.root.sharedNodes.clear()},e}()}function Vg(e){e.updateLayout()}function Gg(e){var t,n,r,i,o=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){var a=e.layout,s=a.actual,l=a.measured;"size"===e.options.animationType?Em((function(e){var t=o.isShared?o.measured[e]:o.layout[e],n=dm(t);t.min=s[e].min,t.max=t.min+n})):"position"===e.options.animationType&&Em((function(e){var t=o.isShared?o.measured[e]:o.layout[e],n=dm(s[e]);t.max=t.min+n}));var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};fm(c,s,o.layout);var u={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o.isShared?fm(u,e.applyTransform(l,!0),o.measured):fm(u,s,o.layout);var d=!Lg(c),p=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var h=e.relativeParent,f=h.snapshot,m=h.layout;if(f&&m){var g={x:{min:0,max:0},y:{min:0,max:0}};bm(g,o.layout,f.layout);var b={x:{min:0,max:0},y:{min:0,max:0}};bm(b,s,m.actual),Fg(g,b)||(p=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:o,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeTargetChanged:p})}else e.isLead()&&(null===(i=(r=e.options).onExitComplete)||void 0===i||i.call(r));e.options.transition=void 0}function Wg(e){e.clearSnapshot()}function qg(e){e.clearMeasurements()}function Yg(e){var t=e.options.visualElement;(null===t||void 0===t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function Kg(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Xg(e){e.resolveTargetDelta()}function Zg(e){e.calcProjection()}function Qg(e){e.resetRotation()}function Jg(e){e.removeLeadSnapshot()}function eb(e,t,n){e.translate=Tp(t.translate,0,n),e.scale=Tp(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function tb(e,t,n,r){e.min=Tp(t.min,n.min,r),e.max=Tp(t.max,n.max,r)}function nb(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var rb={duration:.45,ease:[.4,0,.1,1]};function ib(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var i=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));i&&e.mount(i,!0)}function ob(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function ab(e){ob(e.x),ob(e.y)}var sb=$g({attachResizeListener:function(e,t){return Rd(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),lb={current:void 0},cb=$g({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!lb.current){var e=new sb(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),lb.current=e}return lb.current},resetTransform:function(e,t){e.style.transform=null!==t&&void 0!==t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),ub=Lc(Lc(Lc(Lc({},Jf),dp),Hm),xg),db=vu((function(e,t){return function(e,t,n,r,i){var o=t.forwardMotionProps,a=void 0!==o&&o,s=xu(e)?Nd:Id;return Lc(Lc({},s),{preloadedFeatures:n,useRender:hd(a),createVisualElement:r,projectionNodeConstructor:i,Component:e})}(e,t,ub,hg,cb)}));const pb=(0,c.forwardRef)(((e,t)=>{var n,r;let i,o,{children:a,type:s,direction:l,offset:c,scale:u}=e;switch(l){case"up":case"left":i=c,o=0;break;default:i=0,o=c}const[d,p]=zc(i,o),[h,f]=zc(i,o);switch(s){case"rotate":return(0,L.jsx)(db.div,{ref:t,animate:{rotate:360},transition:{repeat:1/0,repeatType:"loop",duration:2,repeatDelay:0},children:a});case"slide":return"up"===l||"down"===l?(0,L.jsx)(db.div,{ref:t,animate:{y:void 0!==h?h:""},onHoverEnd:()=>f(),onHoverStart:()=>f(),children:a}):(0,L.jsx)(db.div,{ref:t,animate:{x:void 0!==d?d:""},onHoverEnd:()=>p(),onHoverStart:()=>p(),children:a});default:return"number"===typeof u&&(u={hover:u,tap:u}),(0,L.jsx)(db.div,{ref:t,whileHover:{scale:null===(n=u)||void 0===n?void 0:n.hover},whileTap:{scale:null===(r=u)||void 0===r?void 0:r.tap},children:a})}}));pb.defaultProps={type:"scale",offset:10,direction:"right",scale:{hover:1,tap:.9}};var hb=pb;function fb(e){return`${e}px`}var mb=()=>{const e=(0,re.A)(),t=O(),n=x((e=>e.customization)),[r,i]=(0,c.useState)(!1),[o,a]=(0,c.useState)(n.borderRadius);let s;switch((0,c.useEffect)((()=>{t({type:yi,borderRadius:o})}),[t,o]),n.fontFamily){case"'Inter', sans-serif":s="Inter";break;case"'Poppins', sans-serif":s="Poppins";break;default:s="Roboto"}const[l,u]=(0,c.useState)(s);return(0,c.useEffect)((()=>{let e;switch(l){case"Inter":e="'Inter', sans-serif";break;case"Poppins":e="'Poppins', sans-serif";break;default:e="'Roboto', sans-serif"}t({type:vi,fontFamily:e})}),[t,l]),(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(Ks,{anchor:"right",onClose:()=>{i(!r)},open:r,PaperProps:{sx:{width:280}},children:(0,L.jsx)(To(),{component:"div",children:(0,L.jsxs)(Ue,{container:!0,spacing:3,sx:{p:3},children:[(0,L.jsx)(Ue,{item:!0,xs:12,children:(0,L.jsx)(jc,{title:"Font Family",children:(0,L.jsx)(fl.A,{children:(0,L.jsxs)(Sl,{"aria-label":"font-family",value:l,onCh
128ange:e=>u(e.target.value),name:"row-radio-buttons-group",children:[(0,L.jsx)(Nl,{value:"Roboto",control:(0,L.jsx)(Xl,{}),label:"Roboto",sx:{"& .MuiSvgIcon-root":{fontSize:28},"& .MuiFormControlLabel-label":{color:e.palette.grey[900]}}}),(0,L.jsx)(Nl,{value:"Poppins",control:(0,L.jsx)(Xl,{}),label:"Poppins",sx:{"& .MuiSvgIcon-root":{fontSize:28},"& .MuiFormControlLabel-label":{color:e.palette.grey[900]}}}),(0,L.jsx)(Nl,{value:"Inter",control:(0,L.jsx)(Xl,{}),label:"Inter",sx:{"& .MuiSvgIcon-root":{fontSize:28},"& .MuiFormControlLabel-label":{color:e.palette.grey[900]}}})]})})})}),(0,L.jsx)(Ue,{item:!0,xs:12,children:(0,L.jsx)(jc,{title:"Border Radius",children:(0,L.jsxs)(Ue,{item:!0,xs:12,container:!0,spacing:2,alignItems:"center",sx:{mt:2.5},children:[(0,L.jsx)(Ue,{item:!0,children:(0,L.jsx)(Te.A,{variant:"h6",color:"secondary",children:"4px"})}),(0,L.jsx)(Ue,{item:!0,xs:!0,children:(0,L.jsx)(Ic,{size:"small",value:o,onChange:(e,t)=>{a(t)},getAriaValueText:fb,valueLabelDisplay:"on","aria-labelledby":"discrete-slider-small-steps",marks:!0,step:2,min:4,max:24,color:"secondary",sx:{"& .MuiSlider-valueLabel":{color:"secondary.light"}}})}),(0,L.jsx)(Ue,{item:!0,children:(0,L.jsx)(Te.A,{variant:"h6",color:"secondary",children:"24px"})})]})})})]})})})})};const gb={IconDashboard:function(e){var t=e.size,n=void 0===t?24:t,r=e.color,i=void 0===r?"currentColor":r,o=e.stroke,a=void 0===o?2:o,s=lt(e,_t);return c.createElement("svg",st({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-dashboard",width:n,height:n,viewBox:"0 0 24 24",strokeWidth:a,stroke:i,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},s),c.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.createElement("circle",{cx:12,cy:13,r:2}),c.createElement("line",{x1:13.45,y1:11.55,x2:15.5,y2:9.5}),c.createElement("path",{d:"M6.4 20a9 9 0 1 1 11.2 0z"}))},IconDatabase:Tt,IconBuildingStore:yt,IconApps:pt};var bb={id:"dashboard",title:"AI Assistants",type:"group",children:[{id:"bots",title:"Available AI Assistants",type:"item",url:"/mybots",icon:gb.IconApps,breadcrumbs:!0}]};const vb=[],yb=localStorage.getItem("uid");(0,xi.Ay)(yb).then((async e=>{var t,n;const r=new FormData;r.append("email",null===e||void 0===e?void 0:e.email);const i=await(0,xi.B)(r),o=null===i||void 0===i||null===(t=i.role)||void 0===t||null===(n=t.role)||void 0===n?void 0:n.split(",");null===o||void 0===o||o.map((e=>{if("Admin"===e)return vb.push(ol,dl,sl,cl);"Create Teams"===e?vb.push(dl,ol):"Create Knowledge Base"===e?vb.push(dl,rl):"Only Query Knowledge Base"===e&&vb.push(dl,sl)}))}));var xb={items:[dl,bb,ol,sl,cl]};const wb=(0,ne.Ay)("main",{shouldForwardProp:e=>"open"!==e})((e=>{let{theme:t,open:n}=e;return{...t.typography.mainContent,borderBottomLeftRadius:0,borderBottomRightRadius:0,transition:t.transitions.create("margin",n?{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.enteringScreen}:{easing:t.transitions.easing.sharp,duration:t.transitions.duration.leavingScreen}),[t.breakpoints.up("md")]:{marginLeft:n?0:-240,width:"calc(100% - 260px)"},[t.breakpoints.down("md")]:{marginLeft:"20px",width:"calc(100% - 260px)",padding:"16px"},[t.breakpoints.down("sm")]:{marginLeft:"10px",width:"calc(100% - 260px)",padding:"16px",marginRight:"10px"}}}));var Ab=()=>{const e=(0,re.A)(),[t,n]=(0,c.useState)(!1),[{run:r,steps:i},o]=(0,c.useState)({run:!0,steps:[{content:(0,L.jsx)("h2",{children:"Lets Begin your journey"}),locate:{skip:(0,L.jsx)("strong",{children:"Skip"})},placement:"center",target:"body"},{content:(0,L.jsx)("h2",{children:"You can view all the created AI bots here"}),loacte:{skip:(0,L.jsx)("strong",{children:"Skip"})},placement:"right",target:"#bots"},{content:(0,L.jsx)("h2",{children:"You can view all your documents/files in your knowledge hub"}),loacte:{skip:(0,L.jsx)("strong",{children:"Skip"})},placement:"right",target:"#repo"},{content:(0,L.jsx)("h2",{children:"You can create your knowledge hub by uploading files, capturing the data, adding Q/A and etc."}),loacte:{skip:(0,L.jsx)("strong",{children:"Skip"})},placement:"right",target:"#kb"},{content:(0,L.jsx)("h2",{children:"Train your custom AI chatbot b
128y using your knowledge hub"}),loacte:{skip:(0,L.jsx)("strong",{children:"Skip"})},placement:"right",target:"#create_bot"},{content:(0,L.jsx)("h2",{children:"And finally you can test by chating with your AI Assistant here..."}),loacte:{skip:(0,L.jsx)("strong",{children:"Skip"})},placement:"right",target:"#chat"}]});(0,c.useEffect)((()=>{const e=localStorage.getItem("ob");o((t=>({run:e,steps:[...t.steps]}))),n(e)}),[]);const a=ce(e.breakpoints.down("md")),s=x((e=>e.customization.opened)),l=O(),u=()=>{l({type:gi,opened:!s})};return(0,L.jsxs)(ue.A,{sx:{display:"flex"},children:[(0,L.jsx)(ee,{}),(0,L.jsx)(we,{enableColorOnDark:!0,position:"fixed",color:"inherit",elevation:0,sx:{bgcolor:e.palette.background.default,transition:s?e.transitions.create("width"):"none"},children:(0,L.jsx)(ke,{children:(0,L.jsx)(Ds,{handleLeftDrawerToggle:u,showHome:!1})})}),(0,L.jsx)(hl,{drawerOpen:a?!s:s,drawerToggle:u}),(0,L.jsxs)(wb,{theme:e,open:s,children:[(0,L.jsx)(cn,{separator:St,navigation:xb,icon:!0,title:!0,rightAlign:!0}),(0,L.jsx)(te.sv,{})]})]})};const Eb=(0,ne.Ay)("div")({position:"fixed",top:0,left:0,zIndex:1301,width:"100%"});var Sb=()=>(0,L.jsx)(Eb,{children:(0,L.jsx)(Jo,{color:"primary"})});var _b=e=>t=>(0,L.jsx)(c.Suspense,{fallback:(0,L.jsx)(Sb,{}),children:(0,L.jsx)(e,{...t})});const kb=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):55296===(64512&i)&&r+1<e.length&&56320===(64512&e.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},Tb={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"===typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<e.length;i+=3){const t=e[i],o=i+1<e.length,a=o?e[i+1]:0,s=i+2<e.length,l=s?e[i+2]:0,c=t>>2,u=(3&t)<<4|a>>4;let d=(15&a)<<2|l>>6,p=63&l;s||(p=64,o||(d=64)),r.push(n[c],n[u],n[d],n[p])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(kb(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){const t=[];let n=0,r=0;for(;n<e.length;){const i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){const o=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){const o=((7&i)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(o>>10)),t[r++]=String.fromCharCode(56320+(1023&o))}else{const o=e[n++],a=e[n++];t[r++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&a)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<e.length;){const t=n[e.charAt(i++)],o=i<e.length?n[e.charAt(i)]:0;++i;const a=i<e.length?n[e.charAt(i)]:64;++i;const s=i<e.length?n[e.charAt(i)]:64;if(++i,null==t||null==o||null==a||null==s)throw new Cb;const l=t<<2|o>>4;if(r.push(l),64!==a){const e=o<<4&240|a>>2;if(r.push(e),64!==s){const e=a<<6&192|s;r.push(e)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};
128class Cb extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const Ob=function(e){return function(e){const t=kb(e);return Tb.encodeByteArray(t,!0)}(e).replace(/\./g,"")},Nb=function(e){try{return Tb.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};const Ib=()=>function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof __webpack_require__.g)return __webpack_require__.g;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__,Rb=()=>{try{return Ib()||(()=>{if("undefined"===typeof process)return;const e={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_VERSION:"v1.0.1",REACT_APP_G_KEY:"217599632578-2ujhg1q5spebg0mih8mat07rr180nl25.apps.googleusercontent.com",REACT_APP_API_KEY:"AIzaSyDlzhAw5idVWDb0knFlY5uDKPoVIbCPPVE"}.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0})()||(()=>{if("undefined"===typeof document)return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(n){return}const t=e&&Nb(e[1]);return t&&JSON.parse(t)})()}catch(e){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`)}},Pb=e=>{const t=(e=>{var t,n;return null===(n=null===(t=Rb())||void 0===t?void 0:t.emulatorHosts)||void 0===n?void 0:n[e]})(e);if(!t)return;const n=t.lastIndexOf(":");if(n<=0||n+1===t.length)throw new Error(`Invalid host ${t} with no separate hostname and port!`);const r=parseInt(t.substring(n+1),10);return"["===t[0]?[t.substring(1,n-1),r]:[t.substring(0,n),r]},jb=()=>{var e;return null===(e=Rb())||void 0===e?void 0:e.config};class Mb{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}wrapCallback(e){return(t,n)=>{t?this.reject(t):this.resolve(n),"function"===typeof e&&(this.promise.catch((()=>{})),1===e.length?e(t):e(t,n))}}}class Db extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name="FirebaseError",Object.setPrototypeOf(this,Db.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Lb.prototype.create)}}class Lb{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e){const t=(arguments.length<=1?void 0:arguments[1])||{},n=`${this.service}/${e}
128`,r=this.errors[e],i=r?function(e,t){return e.replace(Fb,((e,n)=>{const r=t[n];return null!=r?String(r):`<${n}?>`}))}(r,t):"Error",o=`${this.serviceName}: ${i} (${n}).`;return new Db(n,o,t)}}const Fb=/\{\$([^}]+)}/g;function Bb(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const i of n){if(!r.includes(i))return!1;const n=e[i],o=t[i];if(Ub(n)&&Ub(o)){if(!Bb(n,o))return!1}else if(n!==o)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function Ub(e){return null!==e&&"object"===typeof e}function zb(e){return e&&e._delegate?e._delegate:e}class Hb{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}const $b="[DEFAULT]";class Vb{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){const e=new Mb;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{const n=this.getOrInitializeService({instanceIdentifier:t});n&&e.resolve(n)}catch(n){}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;const n=this.normalizeInstanceIdentifier(null===e||void 0===e?void 0:e.identifier),r=null!==(t=null===e||void 0===e?void 0:e.optional)&&void 0!==t&&t;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(r)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(i){if(r)return null;throw i}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if(function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService({instanceIdentifier:$b})}catch(t){}for(const[e,n]of this.instancesDeferred.entries()){const r=this.normalizeInstanceIdentifier(e);try{const e=this.getOrInitializeService({instanceIdentifier:r});n.resolve(e)}catch(t){}}}}clearInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$b;this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter((e=>"INTERNAL"in e)).map((e=>e.INTERNAL.delete())),...e.filter((e=>"_delete"in e)).map((e=>e._delete()))])}isComponentSet(){return null!=this.component}isInitialized(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$b;return this.instances.has(e)}getOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$b;return this.instancesOptions.get(e)||{}}initialize(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{options:t={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error(`${this.name}(${n}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const r=this.getOrInitializeService({instanceIdentifier:n,options:t});for(const[i,o]of this.instancesDeferred.entries()){n===this.normalizeInstanceIdentifier(i)&&o.resolve(r)}return r}onInit(e,t){var n;const r=this.normalizeInstanceIdentifier(t),i=null!==(n=this.onInitCallbacks.get(r))&&void 0!==n?n:new Set;i.add(e),this.onInitCallbacks.set(r,i);const o=this.instances.get(r);return o&&e(o,r),()=>{i.delete(e)}}invokeOnInitCallbacks(e,t){const n=this.onInitCallbacks.get(t);if(n)for(const r of n)try{r(e,t)}catch(WUe){}}getOrInitializeService(e){let{instanceIdentifier:t,options:n={}}=e,r=this.instances.get(t);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:(i=t,i===$b?void 0:i),options:n}),this.instances.set(t,r),this.instancesOptions.set(t,n),this.invokeOnInitCallbacks(r,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,r)}catch(WUe){}var i;return r||null}normalizeInstanceIdentifier(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$b;return this.component?this.component.multipleInstances?e:$b:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class Gb{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const t=new Vb(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}const Wb=[];var qb,Yb;
128(Yb=qb||(qb={}))[Yb.DEBUG=0]="DEBUG",Yb[Yb.VERBOSE=1]="VERBOSE",Yb[Yb.INFO=2]="INFO",Yb[Yb.WARN=3]="WARN",Yb[Yb.ERROR=4]="ERROR",Yb[Yb.SILENT=5]="SILENT";const Kb={debug:qb.DEBUG,verbose:qb.VERBOSE,info:qb.INFO,warn:qb.WARN,error:qb.ERROR,silent:qb.SILENT},Xb=qb.INFO,Zb={[qb.DEBUG]:"log",[qb.VERBOSE]:"log",[qb.INFO]:"info",[qb.WARN]:"warn",[qb.ERROR]:"error"},Qb=function(e,t){if(t<e.logLevel)return;const n=(new Date).toISOString(),r=Zb[t];if(!r)throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`);for(var i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];console[r](`[${n}]  ${e.name}:`,...o)};let Jb,ev;const tv=new WeakMap,nv=new WeakMap,rv=new WeakMap,iv=new WeakMap,ov=new WeakMap;let av={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return nv.get(e);if("objectStoreNames"===t)return e.objectStoreNames||rv.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return cv(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e}};function sv(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(ev||(ev=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(uv(this),n),cv(tv.get(this))}:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return cv(e.apply(uv(this),n))}:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];const o=e.call(uv(this),t,...r);return rv.set(o,t.sort?t.sort():[t]),cv(o)}}function lv(e){return"function"===typeof e?sv(e):(e instanceof IDBTransaction&&function(e){if(nv.has(e))return;const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{t(),r()},o=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)}));nv.set(e,t)}(e),t=e,(Jb||(Jb=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some((e=>t instanceof e))?new Proxy(e,av):e);var t}function cv(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{t(cv(e.result)),r()},o=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",o)}));return t.then((t=>{t instanceof IDBCursor&&tv.set(t,e)})).catch((()=>{})),ov.set(t,e),t}(e);if(iv.has(e))return iv.get(e);const t=lv(e);return t!==e&&(iv.set(e,t),ov.set(t,e)),t}const uv=e=>ov.get(e);const dv=["get","getKey","getAll","getAllKeys","count"],pv=["put","add","delete","clear"],hv=new Map;function fv(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!==typeof t)return;if(hv.get(t))return hv.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=pv.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!dv.includes(n))return;const o=async function(e){const t=this.transaction(e,i?"readwrite":"readonly");let o=t.store;for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];return r&&(o=o.index(s.shift())),(await Promise.all([o[n](...s),i&&t.done]))[0]};return hv.set(t,o),o}var mv;mv=e=>({...e,get:(t,n,r)=>fv(t,n)||e.get(t,n,r),has:(t,n)=>!!fv(t,n)||e.has(t,n)}),av=mv(av);class gv{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map((e=>{if(function(e){const t=e.getComponent();return"VERSION"===(null===t||void 0===t?void 0:t.type)}(e)){const t=e.getImmediate();return`${t.library}/${t.version}`}return null})).filter((e=>e)).join(" ")}}const bv="@firebase/app",vv="0.10.13",yv=new class{constructor(e){this.name=e,this._logLevel=Xb,this._logHandler=Qb,this._userLogHandler=null,Wb.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in qb))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"===typeof e?Kb[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!==typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler(this,qb.DEBUG,...t),this._logHandler(this,qb.DEBUG,...t)}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler(this,qb.VERBOSE,...t),this._logHandler(this,qb.VERBOSE,...t)}info(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler(this,qb.INFO,...t),this._logHandler(this,qb.INFO,...t)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler(this,qb.WARN,...t),this._logHandler(this,qb.WARN,...t)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler(this,qb.ERROR,...t),this._logHandler(this,qb.ERROR,...t)}}("@firebase/app"),xv="@firebase/app-compat",wv="@firebase/analytics-compat",Av="@firebase/analytics",Ev="@firebase/app-check-compat",Sv="@firebase/app-check",_v="@firebase/auth",kv="@firebase/auth-compat",Tv="@firebase/database",Cv="@firebase/data-connect",Ov="@firebase/database-compat",Nv="@firebase/functions",Iv="@firebase/functions-compat",Rv="@firebase/installations",Pv="@firebase/installations-compat",jv="@firebase/messaging",Mv="@firebase/messaging-compat",Dv="@firebase/performance",Lv="@firebase/performance-compat",Fv="@firebase/remote-config",Bv="@firebase/remote-config-compat",Uv="@firebase/storage",zv="@firebase/storage-compat",Hv="@firebase/firestore",$v="@firebase/vertexai-preview",Vv="@firebase/firestore-compat",Gv="firebase",Wv="[DEFAULT]",qv={[bv]:"fire-core",[xv]:"fire-core-compat",[Av]:"fire-analytics",[
vendor: 1,633 bytes, line 128
128wv]:"fire-analytics-compat",[Sv]:"fire-app-check",[Ev]:"fire-app-check-compat",[_v]:"fire-auth",[kv]:"fire-auth-compat",[Tv]:"fire-rtdb",[Cv]:"fire-data-connect",[Ov]:"fire-rtdb-compat",[Nv]:"fire-fn",[Iv]:"fire-fn-compat",[Rv]:"fire-iid",[Pv]:"fire-iid-compat",[jv]:"fire-fcm",[Mv]:"fire-fcm-compat",[Dv]:"fire-perf",[Lv]:"fire-perf-compat",[Fv]:"fire-rc",[Bv]:"fire-rc-compat",[Uv]:"fire-gcs",[zv]:"fire-gcs-compat",[Hv]:"fire-fst",[Vv]:"fire-fst-compat",[$v]:"fire-vertex","fire-js":"fire-js",[Gv]:"fire-js-all"},Yv=new Map,Kv=new Map,Xv=new Map;function Zv(e,t){try{e.container.addComponent(t)}catch(n){yv.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function Qv(e){const t=e.name;if(Xv.has(t))return yv.debug(`There were multiple attempts to register component ${t}.`),!1;Xv.set(t,e);for(const n of Yv.values())Zv(n,e);for(const n of Kv.values())Zv(n,e);return!0}function Jv(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}const ey=new Lb("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
128d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});class ty{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new Hb("app",(()=>this),"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw ey.create("app-deleted",{appName:this._name})}}function ny(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;if("object"!==typeof t){t={name:t}}const r=Object.assign({name:Wv,automaticDataCollectionEnabled:!1},t),i=r.name;if("string"!==typeof i||!i)throw ey.create("bad-app-name",{appName:String(i)});if(n||(n=jb()),!n)throw ey.create("no-options");const o=Yv.get(i);if(o){if(Bb(n,o.options)&&Bb(r,o.config))return o;throw ey.create("duplicate-app",{appName:i})}const a=new Gb(i);for(const l of Xv.values())a.addComponent(l);const s=new ty(n,r,a);return Yv.set(i,s),s}function ry(e,t,n){var r;let i=null!==(r=qv[e])&&void 0!==r?r:e;n&&(i+=`-${n}`);const o=i.match(/\s|\//),a=t.match(/\s|\//);if(o||a){const e=[`Unable to register library "${i}" with version "${t}":`];return o&&e.push(`library name "${i}" contains illegal characters (whitespace or "/")`),o&&a&&e.push("and"),a&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),void yv.warn(e.join(" "))}Qv(new Hb(`${i}-version`,(()=>({library:i,version:t})),"VERSION"))}const iy="firebase-heartbeat-store";let oy=null;function ay(){return oy||(oy=function(e,t){let{blocked:n,upgrade:r,blocking:i,terminated:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=indexedDB.open(e,t),s=cv(a);return r&&a.addEventListener("upgradeneeded",(e=>{r(cv(a.result),e.oldVersion,e.newVersion,cv(a.transaction),e)})),n&&a.addEventListener("blocked",(e=>n(e.oldVersion,e.newVersion,e))),s.then((e=>{o&&e.addEventListener("close",(()=>o())),i&&e.addEventListener("versionchange",(e=>i(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),s}("firebase-heartbeat-database",1,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(iy)}catch(n){console.warn(n)}}}).catch((e=>{throw ey.create("idb-open",{originalErrorMessage:e.message})}))),oy}async function sy(e,t){try{const n=(await ay()).transaction(iy,"readwrite"),r=n.objectStore(iy);await r.put(t,ly(e)),await n.done}catch(n){if(n instanceof Db)yv.warn(n.message);else{const e=ey.create("idb-set",{originalErrorMessage:null===n||void 0===n?void 0:n.message});yv.warn(e.message)}}}function ly(e){return`${e.name}!${e.options.appId}`}class cy{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new dy(t),this._heartbeatsCachePromise=this._storage.read().then((e=>(this._heartbeatsCache=e,e)))}async triggerHeartbeat(){var e,t;try{const n=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),r=uy();if(null==(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)&&(this._heartbeatsCache=await this._heartbeatsCachePromise,null==(null===(t=this._heartbeatsCache)||void 0===t?void 0:t.heartbeats)))return;if(this._heartbeatsCache.lastSentHeartbeatDate===r||this._heartbeatsCache.heartbeats.some((e=>e.date===r)))return;return this._heartbeatsCache.heartbeats.push({date:r,agent:n}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter((e=>{const t=new Date(e.date).valueOf();return Date.now()-t<=2592e6})),this._storage.overwrite(this._heartbeatsCache)}catch(n){yv.warn(n)}}async getHeartbeatsHeader(){var e;try{if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null==(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)||0===this._heartbeatsCache.heartbeats.length)return"";const t=uy(),{heartbeatsToSend:n,unsentEntries:r}=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1024;const n=[];let r=e.slice();for(const i of e){const e=n.find((e=>e.agent===i.agent));if(e){if(e.dates.push(i.date),py(n)>t){e.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),py(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}(this._heartbeatsCache.heartbeats),i=Ob(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=t,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}catch(t){return yv.warn(t),""}}}function uy(){return(new Date).toISOString().substring(0,10)}class dy{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!function(){try{return"object"===typeof indexedDB}catch(e){return!1}}()&&new Promise(((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var e;t((null===(e=i.error)||void 0===e?void 0:e.message)||"")}}catch(n){t(n)}})).then((()=>!0)).catch((()=>!1))}async read(){if(await this._canUseIndexedDBPromise){const e=await async function(e){try{const t=(await ay()).transaction(iy),n=await t.objectStore(iy).get(ly(e));return await t.done,n}catch(t){if(t instanceof Db)yv.warn(t.message);else{const e=ey.create("idb-get",{originalErrorMessage:null===t||void 0===t?void 0:t.message});yv.warn(e.message)}}}(this.app);return(null===e||void 0===e?void 0:e.heartbeats)?e:{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return sy(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return sy(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...e.heartbeats]})}}}function py(e){return Ob(JSON.stringify({version:2,heartbeats:e})).length}var hy;hy="",Qv(new Hb("platform-logger",(e=>new gv(e)),"PRIVATE")),Qv(new Hb("heartbeat",(e=>new cy(e)),"PRIVATE")),ry(bv,vv,hy),ry(bv,vv,"esm2017"),ry("fire-js","");const fy="firebasestorage.googleapis.com",my="storageBucket";class gy extends Db{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;super(wy(e),`Firebase Storage: ${t} (${wy(e)})`),this.status_=n,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,gy.prototype)}get status(){return this.status_}set status(e){this.status_=e}_codeEquals(e){return wy(e)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(e){this.customData.serverResponse=e,this.customData.serverResponse?this.message=`${this._baseMessage}\n${this.customData.serverResponse}`:this.message=this._baseMessage}}var by,vy,yy,xy;function wy(e){return"storage/"+e}function Ay(){return new gy(by.UNKNOWN,"An unknown error occurred, please check the error payload for server response.")}function Ey(){return new gy(by.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function Sy(){return new gy(by.CANCELED,"User canceled the upload/download.")}function _y(){return new gy(by.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.")}function ky(e){return new gy(by.INVALID_ARGUMENT,e)}function Ty(){return new gy(by.APP_DELETED,"The Firebase app was deleted.")}function Cy(e,t){return new gy(by.INVALID_FORMAT,"String does not match format '"+e+"': "+t)}function Oy(e){throw new gy(by.INTERNAL_ERROR,"Internal error: "+e)}(vy=by||(by={})).UNKNOWN="unknown",vy.OBJECT_NOT_FOUND="object-not-found",vy.BUCKET_NOT_FOUND="bucket-not-found",vy.PROJECT_NOT_FOUND="project-not-found",vy.QUOTA_EXCEEDED="quota-exceeded",vy.UNAUTHENTICATED="unauthenticated",vy.UNAUTHORIZED="unauthorized",vy.UNAUTHORIZED_APP="unauthorized-app",vy.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",vy.INVALID_CHECKSUM="invalid-checksum",vy.CANCELED="canceled",vy.INVALID_EVENT_NAME="invalid-event-name",vy.INVALID_URL="invalid-url",vy.INVALID_DEFAULT_BUCKET="invalid-default-bucket",vy.NO_DEFAULT_BUCKET="no-default-bucket",vy.CANNOT_SLICE_BLOB="cannot-slice-blob",vy.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",vy.NO_DOWNLOAD_URL="no-download-url",vy.INVALID_ARGUMENT="invalid-argument",vy.INVALID_ARGUMENT_COUNT="invalid-argument-count",vy.APP_DELETED="app-deleted",vy.INVALID_ROOT_OPERATION="invalid-root-operation",vy.INVALID_FORMAT="invalid-format",vy.INTERNAL_ERROR="internal-error",vy.UNSUPPORTED_ENVIRONMENT="unsupported-environment";class Ny{constructor(e,t){this.bucket=e,this.path_=t}get path(){return this.path_}get isRoot(){return 0===this.path.length}fullServerUrl(){const e=encodeURIComponent;return"/b/"+e(this.bucket)+"/o/"+e(this.path)}bucketOnlyServerUrl(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}static makeFromBucketSpec(e,t){let n;try{n=Ny.makeFromUrl(e,t)}catch(i){return new Ny(e,"")}if(""===n.path)return n;throw r=e,new gy(by.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+r+"'.");var r}static makeFromUrl(e,t){let n=null;
vendor: 4,398 bytes, line 128
128const r="([A-Za-z0-9.\\-_]+)";const i=new RegExp("^gs://"+r+"(/(.*))?$","i");function o(e){e.path_=decodeURIComponent(e.path)}const a=t.replace(/[.]/g,"\\."),s=[{regex:i,indices:{bucket:1,path:3},postModify:function(e){"/"===e.path.charAt(e.path.length-1)&&(e.path_=e.path_.slice(0,-1))}},{regex:new RegExp(`^https?://${a}/v[A-Za-z0-9_]+/b/${r}/o(/([^?#]*).*)?$`,"i"),indices:{bucket:1,path:3},postModify:o},{regex:new RegExp(`^https?://${t===fy?"(?:storage.googleapis.com|storage.cloud.google.com)":t}/${r}/([^?#]*)`,"i"),indices:{bucket:1,path:2},postModify:o}];for(let l=0;l<s.length;l++){const t=s[l],r=t.regex.exec(e);if(r){const e=r[t.indices.bucket];let i=r[t.indices.path];i||(i=""),n=new Ny(e,i),t.postModify(n);break}}if(null==n)throw function(e){return new gy(by.INVALID_URL,"Invalid URL '"+e+"'.")}(e);return n}}class Iy{constructor(e){this.promise_=Promise.reject(e)}getPromise(){return this.promise_}cancel(){}}function Ry(e){return"string"===typeof e||e instanceof String}function Py(e){return jy()&&e instanceof Blob}function jy(){return"undefined"!==typeof Blob}function My(e,t,n,r){if(r<t)throw ky(`Invalid value for '${e}'. Expected ${t} or greater.`);if(r>n)throw ky(`Invalid value for '${e}'. Expected ${n} or less.`)}function Dy(e,t,n){let r=t;return null==n&&(r=`https://${t}`),`${n}://${r}/v0${e}`}function Ly(e){const t=encodeURIComponent;let n="?";for(const r in e)if(e.hasOwnProperty(r)){n=n+(t(r)+"="+t(e[r]))+"&"}return n=n.slice(0,-1),n}function Fy(e,t){const n=e>=500&&e<600,r=-1!==[408,429].indexOf(e),i=-1!==t.indexOf(e);return n||r||i}(xy=yy||(yy={}))[xy.NO_ERROR=0]="NO_ERROR",xy[xy.NETWORK_ERROR=1]="NETWORK_ERROR",xy[xy.ABORT=2]="ABORT";class By{constructor(e,t,n,r,i,o,a,s,l,c,u){let d=!(arguments.length>11&&void 0!==arguments[11])||arguments[11];this.url_=e,this.method_=t,this.headers_=n,this.body_=r,this.successCodes_=i,this.additionalRetryCodes_=o,this.callback_=a,this.errorCallback_=s,this.timeout_=l,this.progressCallback_=c,this.connectionFactory_=u,this.retry=d,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise(((e,t)=>{this.resolve_=e,this.reject_=t,this.start_()}))}start_(){const e=(e,t)=>{if(t)return void e(!1,new Uy(!1,null,!0));const n=this.connectionFactory_();this.pendingConnection_=n;const r=e=>{const t=e.loaded,n=e.lengthComputable?e.total:-1;null!==this.progressCallback_&&this.progressCallback_(t,n)};null!==this.progressCallback_&&n.addUploadProgressListener(r),n.send(this.url_,this.method_,this.body_,this.headers_).then((()=>{null!==this.progressCallback_&&n.removeUploadProgressListener(r),this.pendingConnection_=null;const t=n.getErrorCode()===yy.NO_ERROR,i=n.getStatus();if(!t||Fy(i,this.additionalRetryCodes_)&&this.retry){const t=n.getErrorCode()===yy.ABORT;return void e(!1,new Uy(!1,null,t))}const o=-1!==this.successCodes_.indexOf(i);e(!0,new Uy(o,n))}))},t=(e,t)=>{const n=this.resolve_,r=this.reject_,i=t.connection;if(t.wasSuccessCode)try{const e=this.callback_(i,i.getResponse());void 0!==e?n(e):n()}catch(o){r(o)}else if(null!==i){const e=Ay();e.serverResponse=i.getErrorText(),this.errorCallback_?r(this.errorCallback_(i,e)):r(e)}else if(t.canceled){r(this.appDelete_?Ty():Sy())}else{r(Ey())}};this.canceled_?t(0,new Uy(!1,null,!0)):this.backoffId_=function(e,t,n){let r=1,i=null,o=null,a=!1,s=0;function l(){return 2===s}let c=!1;function u(){if(!c){c=!0;for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.apply(null,n)}}function d(t){i=setTimeout((()=>{i=null,e(h,l())}),t)}function p(){o&&clearTimeout(o)}function h(e){if(c)return void p();for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];if(e)return p(),void u.call(null,e,...n);if(l()||a)return p(),void u.call(null,e,...n);let o;r<64&&(r*=2),1===s?(s=2,o=0):o=1e3*(r+Math.random()),d(o)}let f=!1;function m(e){f||(f=!0,p(),c||(null!==i?(e||(s=2),clearTimeout(i),d(0)):e||(s=1)))}return d(0),o=setTimeout((()=>{a=!0,m(!0)}),n),m}(e,t,this.timeout_)}getPromise(){return this.promise_}cancel(e){this.canceled_=!0,this.appDelete_=e||!1,null!==this.backoffId_&&(0,this.backoffId_)(!1),null!==this.pendingConnection_&&this.pendingConnection_.abort()}}class Uy{constructor(e,t,n){this.wasSuccessCode=e,this.connection=t,this.canceled=!!n}}function zy(){return"undefined"!==typeof BlobBuilder?BlobBuilder:"undefined"!==typeof WebKitBlobBuilder?Web
128KitBlobBuilder:void 0}function Hy(){const e=zy();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(void 0!==e){const t=new e;for(let e=0;e<n.length;e++)t.append(n[e]);return t.getBlob()}if(jy())return new Blob(n);throw new gy(by.UNSUPPORTED_ENVIRONMENT,"This browser doesn't seem to support creating Blobs")}function $y(e){if("undefined"===typeof atob)throw t="base-64",new gy(by.UNSUPPORTED_ENVIRONMENT,`${t} is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.`);var t;return atob(e)}const Vy="raw",Gy="base64",Wy="base64url",qy="data_url";class Yy{constructor(e,t){this.data=e,this.contentType=t||null}}function Ky(e,t){switch(e){case Vy:return new Yy(Xy(t));case Gy:case Wy:return new Yy(Zy(e,t));case qy:return new Yy(function(e){const t=new Qy(e);return t.base64?Zy(Gy,t.rest):function(e){let t;try{t=decodeURIComponent(e)}catch(n){throw Cy(qy,"Malformed data URL.")}return Xy(t)}(t.rest)}(t),new Qy(t).contentType)}throw Ay()}function Xy(e){const t=[];for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r<=127)t.push(r);else if(r<=2047)t.push(192|r>>6,128|63&r);else if(55296===(64512&r)){if(n<e.length-1&&56320===(64512&e.charCodeAt(n+1))){r=65536|(1023&r)<<10|1023&e.charCodeAt(++n),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r)}else t.push(239,191,189)}else 56320===(64512&r)?t.push(239,191,189):t.push(224|r>>12,128|r>>6&63,128|63&r)}return new Uint8Array(t)}function Zy(e,t){switch(e){case Gy:{const n=-1!==t.indexOf("-"),r=-1!==t.indexOf("_");if(n||r){throw Cy(e,"Invalid character '"+(n?"-":"_")+"' found: is it base64url encoded?")}break}case Wy:{const n=-1!==t.indexOf("+"),r=-1!==t.indexOf("/");if(n||r){throw Cy(e,"Invalid character '"+(n?"+":"/")+"' found: is it base64 encoded?")}t=t.replace(/-/g,"+").replace(/_/g,"/");break}}let n;try{n=$y(t)}catch(i){if(i.message.includes("polyfill"))throw i;throw Cy(e,"Invalid character found")}const r=new Uint8Array(n.length);for(let o=0;o<n.length;o++)r[o]=n.charCodeAt(o);return r}class Qy{constructor(e){this.base64=!1,this.contentType=null;const t=e.match(/^data:([^,]+)?,/);if(null===t)throw Cy(qy,"Must be formatted 'data:[<mediatype>][;base64],<data>");const n=t[1]||null;null!=n&&(this.base64=function(e,t){if(!(e.length>=t.length))return!1;return e.substring(e.length-t.length)===t}(n,";base64"),this.contentType=this.base64?n.substring(0,n.length-7):n),this.rest=e.substring(e.indexOf(",")+1)}}class Jy{constructor(e,t){let n=0,r="";Py(e)?(this.data_=e,n=e.size,r=e.type):e instanceof ArrayBuffer?(t?this.data_=new Uint8Array(e):(this.data_=new Uint8Array(e.byteLength),this.data_.set(new Uint8Array(e))),n=this.data_.length):e instanceof Uint8Array&&(t?this.data_=e:(this.data_=new Uint8Array(e.length),this.data_.set(e)),n=e.length),this.size_=n,this.type_=r}size(){return this.size_}type(){return this.type_}slice(e,t){if(Py(this.data_)){const o=this.data_,a=(r=e,i=t,(n=o).webkitSlice?n.webkitSlice(r,i):n.mozSlice?n.mozSlice(r,i):n.slice?n.slice(r,i):null);return null===a?null:new Jy(a)}{const n=new Uint8Array(this.data_.buffer,e,t-e);return new Jy(n,!0)}var n,r,i}static getBlob(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(jy()){const e=t.map((e=>e instanceof Jy?e.data_:e));return new Jy(Hy.apply(null,e))}{const e=t.map((e=>Ry(e)?Ky(Vy,e).data:e.data_));let n=0;e.forEach((e=>{n+=e.byteLength}));const r=new Uint8Array(n);let i=0;return e.forEach((e=>{for(let t=0;t<e.length;t++)r[i++]=e[t]})),new Jy(r,!0)}}uploadData(){return this.data_}}function ex(e){let t;try{t=JSON.parse(e)}catch(r){return null}return"object"!==typeof(n=t)||Array.isArray(n)?null:t;var n}function tx(e){const t=e.lastIndexOf("/",e.length-2);return-1===t?e:e.slice(t+1)}function nx(e,t){return t}class rx{constructor(e,t,n,r){this.server=e,this.local=t||e,this.writable=!!n,this.xform=r||nx}}let ix=null;function ox(){if(ix)return ix;const e=[];e.push(new rx("bucket")),e.push(new rx("generation")),e.push(new rx("metageneration")),e.push(new rx("name","fullPath",!0));const t=new rx("name");t.xform=function(e,t){return function(e){return!Ry(e)||e.length<2?e:tx(e)}(t)},e.push(t);const n=new rx("size");return n.xform=function(e,t){return void 0!==t?Number(t):t},e.push(n),e.push(new rx("timeCreated")),e.push(new rx("updated")),e.push(new rx("md5Hash",null,!0)),e.push(new rx("cacheControl",null,!0)),e.push(new rx("contentDisposition",null,!0)),e.push(new rx("contentEncoding",null,!0)),e.push(new rx("contentLanguage",null,!0)),e.push(new rx("contentType",null,!0)),e.push(new rx("metadata","customMetadata",!0)),ix=e,ix}
128function ax(e,t,n){const r={type:"file"},i=n.length;for(let o=0;o<i;o++){const e=n[o];r[e.local]=e.xform(r,t[e.server])}return function(e,t){Object.defineProperty(e,"ref",{get:function(){const n=e.bucket,r=e.fullPath,i=new Ny(n,r);return t._makeStorageReference(i)}})}(r,e),r}function sx(e,t,n){const r=ex(t);if(null===r)return null;return ax(e,r,n)}function lx(e,t){const n={},r=t.length;for(let i=0;i<r;i++){const r=t[i];r.writable&&(n[r.server]=e[r.local])}return JSON.stringify(n)}class cx{constructor(e,t,n,r){this.url=e,this.method=t,this.handler=n,this.timeout=r,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}}function ux(e){if(!e)throw Ay()}function dx(e,t){return function(n,r){const i=sx(e,r,t);return ux(null!==i),i}}function px(e,t){return function(n,r){const i=sx(e,r,t);return ux(null!==i),function(e,t,n,r){const i=ex(t);if(null===i)return null;if(!Ry(i.downloadTokens))return null;const o=i.downloadTokens;if(0===o.length)return null;const a=encodeURIComponent;return o.split(",").map((t=>{const i=e.bucket,o=e.fullPath;return Dy("/b/"+a(i)+"/o/"+a(o),n,r)+Ly({alt:"media",token:t})}))[0]}(i,r,e.host,e._protocol)}}function hx(e){return function(t,n){let r;var i,o;return 401===t.getStatus()?r=t.getErrorText().includes("Firebase App Check token is invalid")?new gy(by.UNAUTHORIZED_APP,"This app does not have permission to access Firebase Storage on this project."):new gy(by.UNAUTHENTICATED,"User is not authenticated, please authenticate using Firebase Authentication and try again."):402===t.getStatus()?(o=e.bucket,r=new gy(by.QUOTA_EXCEEDED,"Quota for bucket '"+o+"' exceeded, please view quota on https://firebase.google.com/pricing/.")):403===t.getStatus()?(i=e.path,r=new gy(by.UNAUTHORIZED,"User does not have permission to access '"+i+"'.")):r=n,r.status=t.getStatus(),r.serverResponse=n.serverResponse,r}}function fx(e){const t=hx(e);return function(n,r){let i=t(n,r);var o;return 404===n.getStatus()&&(o=e.path,i=new gy(by.OBJECT_NOT_FOUND,"Object '"+o+"' does not exist.")),i.serverResponse=r.serverResponse,i}}function mx(e,t,n){const r=Object.assign({},n);return r.fullPath=e.path,r.size=t.size(),r.contentType||(r.contentType=function(e,t){return e&&e.contentType||t&&t.type()||"application/octet-stream"}(null,t)),r}function gx(e,t,n,r,i){const o=t.bucketOnlyServerUrl(),a={"X-Goog-Upload-Protocol":"multipart"};const s=function(){let e="";for(let t=0;t<2;t++)e+=Math.random().toString().slice(2);return e}();a["Content-Type"]="multipart/related; boundary="+s;const l=mx(t,r,i),c="--"+s+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+lx(l,n)+"\r\n--"+s+"\r\nContent-Type: "+l.contentType+"\r\n\r\n",u="\r\n--"+s+"--",d=Jy.getBlob(c,r,u);if(null===d)throw _y();const p={name:l.fullPath},h=Dy(o,e.host,e._protocol),f=e.maxUploadRetryTime,m=new cx(h,"POST",dx(e,n),f);return m.urlParams=p,m.headers=a,m.body=d.uploadData(),m.errorHandler=hx(t),m}class bx{constructor(){this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=yy.NO_ERROR,this.sendPromise_=new Promise((e=>{this.xhr_.addEventListener("abort",(()=>{this.errorCode_=yy.ABORT,e()})),this.xhr_.addEventListener("error",(()=>{this.errorCode_=yy.NETWORK_ERROR,e()})),this.xhr_.addEventListener("load",(()=>{e()}))}))}send(e,t,n,r){if(this.sent_)throw Oy("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(t,e,!0),void 0!==r)for(const i in r)r.hasOwnProperty(i)&&this.xhr_.setRequestHeader(i,r[i].toString());return void 0!==n?this.xhr_.send(n):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw Oy("cannot .getErrorCode() before sending");return this.errorCode_}getStatus(){if(!this.sent_)throw Oy("cannot .getStatus() before sending");try{return this.xhr_.status}catch(e){return-1}}getResponse(){if(!this.sent_)throw Oy("cannot .getResponse() before sending");return this.xhr_.response}getErrorText(){if(!this.sent_)throw Oy("cannot .getErrorText() before sending");return this.xhr_.statusText}abort(){this.xhr_.abort()}getResponseHeader(e){return this.xhr_.getResponseHeader(e)}addUploadProgressListener(e){null!=this.xhr_.upload&&this.xhr_.upload.addEventListener("progress",e)}removeUploadProgressListener(e){null!=this.xhr_.upload&&this.xhr_.upload.removeEventListener("progress",e)}}class vx extends bx{initXhr(){this.xhr_.responseType="text"}}function yx(){return new vx}class xx{constructor(e,t){this._service=e,this._location=t instanceof Ny?t:Ny.makeFromUrl(t,e.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(e,t){return new xx(e,t)}get root(){const e=new Ny(this._location.bucket,"");return this._newRef(this._service,e)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return tx(this._location.path)}get storage(){return this._service}get parent(){const e=function(e){if(0===e.length)return null;const t=e.lastIndexOf("/");return-1===t?"":e.slice(0,t)}(this._location.path);if(null===e)return null;const t=new Ny(this._location.bucket,e);return new xx(this._service,t)}_throwIfRoot(e){if(""===this._location.path)throw function(e){return new gy(by.INVALID_ROOT_OPERATION,"The operation '"+e+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}(e)}}function wx(e,t,n){e._throwIfRoot("uploadBytes");const r=gx(e.storage,e._location,ox(),new Jy(t,!0),n);return e.storage.makeRequestWithTokens(r,yx).then((t=>({metadata:t,ref:e})))}function Ax(e){e._throwIfRoot("getDownloadURL");const t=function(e,t,n){const r=Dy(t.fullServerUrl(),e.host,e._protocol),i=e.maxOperationRetryTime,o=new cx(r,"GET",px(e,n),i);return o.errorHandler=fx(t),o}
128(e.storage,e._location,ox());return e.storage.makeRequestWithTokens(t,yx).then((e=>{if(null===e)throw new gy(by.NO_DOWNLOAD_URL,"The given file does not have any download URLs.");return e}))}function Ex(e,t){const n=function(e,t){const n=t.split("/").filter((e=>e.length>0)).join("/");return 0===e.length?n:e+"/"+n}(e._location.path,t),r=new Ny(e._location.bucket,n);return new xx(e.storage,r)}function Sx(e,t){if(e instanceof Cx){const n=e;if(null==n._bucket)throw new gy(by.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+my+"' property when initializing the app?");const r=new xx(n,n._bucket);return null!=t?Sx(r,t):r}return void 0!==t?Ex(e,t):e}function _x(e,t){if(t&&/^[A-Za-z]+:\/\//.test(t)){if(e instanceof Cx)return new xx(e,t);throw ky("To use ref(service, url), the first argument must be a Storage instance.")}return Sx(e,t)}function kx(e,t){const n=null===t||void 0===t?void 0:t[my];return null==n?null:Ny.makeFromBucketSpec(n,e)}function Tx(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e.host=`${t}:${n}`,e._protocol="http";const{mockUserToken:i}=r;i&&(e._overrideAuthToken="string"===typeof i?i:function(e,t){if(e.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const n=t||"demo-project",r=e.iat||0,i=e.sub||e.user_id;if(!i)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const o=Object.assign({iss:`https://securetoken.google.com/${n}`,aud:n,iat:r,exp:r+3600,auth_time:r,sub:i,user_id:i,firebase:{sign_in_provider:"custom",identities:{}}},e);return[Ob(JSON.stringify({alg:"none",type:"JWT"})),Ob(JSON.stringify(o)),""].join(".")}(i,e.app.options.projectId))}class Cx{constructor(e,t,n,r,i){this.app=e,this._authProvider=t,this._appCheckProvider=n,this._url=r,this._firebaseVersion=i,this._bucket=null,this._host=fy,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=12e4,this._maxUploadRetryTime=6e5,this._requests=new Set,this._bucket=null!=r?Ny.makeFromBucketSpec(r,this._host):kx(this._host,this.app.options)}get host(){return this._host}set host(e){this._host=e,null!=this._url?this._bucket=Ny.makeFromBucketSpec(this._url,e):this._bucket=kx(e,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(e){My("time",0,Number.POSITIVE_INFINITY,e),this._maxUploadRetryTime=e}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(e){My("time",0,Number.POSITIVE_INFINITY,e),this._maxOperationRetryTime=e}async _getAuthToken(){if(this._overrideAuthToken)return this._overrideAuthToken;const e=this._authProvider.getImmediate({optional:!0});if(e){const t=await e.getToken();if(null!==t)return t.accessToken}return null}async _getAppCheckToken(){const e=this._appCheckProvider.getImmediate({optional:!0});if(e){return(await e.getToken()).token}return null}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEach((e=>e.cancel())),this._requests.clear()),Promise.resolve()}_makeStorageReference(e){return new xx(this,e)}_makeRequest(e,t,n,r){let i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(this._deleted)return new Iy(Ty());{const o=function(e,t,n,r,i,o){let a=!(arguments.length>6&&void 0!==arguments[6])||arguments[6];const s=Ly(e.urlParams),l=e.url+s,c=Object.assign({},e.headers);return function(e,t){t&&(e["X-Firebase-GMPID"]=t)}(c,t),function(e,t){null!==t&&t.length>0&&(e.Authorization="Firebase "+t)}(c,n),function(e,t){e["X-Firebase-Storage-Version"]="webjs/"+(null!==t&&void 0!==t?t:"AppManager")}(c,o),function(e,t){null!==t&&(e["X-Firebase-AppCheck"]=t)}(c,r),new By(l,e.method,c,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,i,a)}(e,this._appId,n,r,t,this._firebaseVersion,i);return this._requests.add(o),o.getPromise().then((()=>this._requests.delete(o)),(()=>this._requests.delete(o))),o}}async makeRequestWithTokens(e,t){const[n,r]=await Promise.all([this._getAuthToken(),this._getAppCheckToken()]);
128return this._makeRequest(e,t,n,r).getPromise()}}const Ox="@firebase/storage",Nx="0.13.2",Ix="storage";function Rx(e,t){let{instanceIdentifier:n}=t;const r=e.getProvider("app").getImmediate(),i=e.getProvider("auth-internal"),o=e.getProvider("app-check-internal");return new Cx(r,i,o,n,"10.14.1")}Qv(new Hb(Ix,Rx,"PUBLIC").setMultipleInstances(!0)),ry(Ox,Nx,""),ry(Ox,Nx,"esm2017");ry("firebase","10.14.1","app");const Px=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wv;const t=Yv.get(e);if(!t&&e===Wv&&jb())return ny();if(!t)throw ey.create("no-app",{appName:e});return t}(),t=arguments.length>1?arguments[1]:void 0;e=zb(e);const n=Jv(e,Ix).getImmediate({identifier:t}),r=Pb("storage");return r&&function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Tx(e,t,n,r)}(n,...r),n}(ny({apiKey:"AIzaSyD3hl_TDJVGrBH5pWLk1QsRiZdpSfUXJBo",authDomain:"fileuploader-d9bac.firebaseapp.com",projectId:"fileuploader-d9bac",storageBucket:"fileuploader-d9bac.appspot.com",messagingSenderId:"425990424883",appId:"1:425990424883:web:7757d8f0f487c7112e9646",measurementId:"G-WFY3PTDQ83"}));var jx=__webpack_require__(67243),Mx=__webpack_require__.n(jx);var Dx=function(){return(0,L.jsxs)("div",{className:"loader",children:[(0,L.jsx)("div",{className:"bar1"}),(0,L.jsx)("div",{className:"bar2"}),(0,L.jsx)("div",{className:"bar3"}),(0,L.jsx)("div",{className:"bar4"}),(0,L.jsx)("div",{className:"bar5"}),(0,L.jsx)("div",{className:"bar6"}),(0,L.jsx)("div",{className:"bar7"}),(0,L.jsx)("div",{className:"bar8"}),(0,L.jsx)("div",{className:"bar9"}),(0,L.jsx)("div",{className:"bar10"}),(0,L.jsx)("div",{className:"bar11"}),(0,L.jsx)("div",{className:"bar12"})]})},Lx=(0,Ve.A)((0,L.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Fx=(0,Ve.A)((0,L.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Bx=(0,Ve.A)((0,L.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Ux(e){return(0,ge.Ay)("MuiCheckbox",e)}var zx=(0,me.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);const Hx=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],$x=(0,ne.Ay)(Ml,{shouldForwardProp:e=>(0,fo.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${(0,he.A)(n.size)}`],"default"!==n.color&&t[`color${(0,he.A)(n.color)}`]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,R.A)({color:(t.vars||t).palette.text.secondary},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${"default"===n.color?t.vars.palette.action.activeChannel:t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,$e.X4)("default"===n.color?t.palette.action.active:t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&{[`&.${zx.checked}, &.${zx.indeterminate}`]:{color:(t.vars||t).palette[n.color].main},[`&.${zx.disabled}`]:{color:(t.vars||t).palette.action.disabled}})})),Vx=(0,L.jsx)(Fx,{}),Gx=(0,L.jsx)(Lx,{}),Wx=(0,L.jsx)(Bx,{});var qx=c.forwardRef((function(e,t){var n,r;const i=(0,X.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:o=Vx,color:a="primary",icon:s=Gx,indeterminate:l=!1,indeterminateIcon:u=Wx,inputProps:d,size:p="medium",className:h}=i,f=(0,P.A)(i,Hx),m=l?u:s,g=l?u:o,b=(0,R.A)({},i,{color:a,indeterminate:l,size:p}),v=(e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,o={root:["root",n&&"indeterminate",`color${(0,he.A)(r)}`,`size${(0,he.A)(i)}`]},a=(0,pe.A)(o,Ux,t);return(0,R.A)({},t,a)})(b);return(0,L.jsx)($x,(0,R.A)({type:"checkbox",inputProps:(0,R.A)({"data-indeterminate":l},d),icon:c.cloneElement(m,{fontSize:null!=(n=m.props.fontSize)?n:p}),checkedIcon:c.cloneElement(g,{fontSize:null!=(r=g.props.fontSize)?r:p}),ownerState:b,ref:t,className:(0,de.A)(v.root,h)},f,{classes:v}))})),Yx=__webpack_require__(10226);function Kx(e){return(0,ge.Ay)("MuiSwitch",e)}var Xx=(0,me.A)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);const Zx=["className","color","edge","size","sx"],Qx=(0,ne.Ay)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${(0,he.A)(n.edge)}`],t[`size${(0,he.A)(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Xx.thumb}`]:{width:16,height:16},[`& .${Xx.switchBase}`]:{padding:4,[`&.${Xx.checked}`]:{transform:"translateX(16px)"}}}}]}),Jx=(0,ne.Ay)(Ml,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Xx.input}`]:t.input}
128,"default"!==n.color&&t[`color${(0,he.A)(n.color)}`]]}})((e=>{let{theme:t}=e;return{position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${"light"===t.palette.mode?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${Xx.checked}`]:{transform:"translateX(20px)"},[`&.${Xx.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${"light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${Xx.checked} + .${Xx.track}`]:{opacity:.5},[`&.${Xx.disabled} + .${Xx.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:""+("light"===t.palette.mode?.12:.2)},[`& .${Xx.input}`]:{left:"-100%",width:"300%"}}}),(e=>{let{theme:t}=e;return{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,$e.X4)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter((e=>{let[,t]=e;return t.main&&t.light})).map((e=>{let[n]=e;return{props:{color:n},style:{[`&.${Xx.checked}`]:{color:(t.vars||t).palette[n].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,$e.X4)(t.palette[n].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Xx.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${n}DisabledColor`]:`${"light"===t.palette.mode?(0,$e.a)(t.palette[n].main,.62):(0,$e.e$)(t.palette[n].main,.55)}`}},[`&.${Xx.checked} + .${Xx.track}`]:{backgroundColor:(t.vars||t).palette[n].main}}}}))]}})),ew=(0,ne.Ay)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((e=>{let{theme:t}=e;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${"light"===t.palette.mode?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:""+("light"===t.palette.mode?.38:.3)}})),tw=(0,ne.Ay)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((e=>{let{theme:t}=e;return{boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}}));var nw=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiSwitch"}),{className:r,color:i="primary",edge:o=!1,size:a="medium",sx:s}=n,l=(0,P.A)(n,Zx),c=(0,R.A)({},n,{color:i,edge:o,size:a}),u=(e=>{const{classes:t,edge:n,size:r,color:i,checked:o,disabled:a}=e,s={root:["root",n&&`edge${(0,he.A)(n)}`,`size${(0,he.A)(r)}`],switchBase:["switchBase",`color${(0,he.A)(i)}`,o&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=(0,pe.A)(s,Kx,t);return(0,R.A)({},t,l)})(c),d=(0,L.jsx)(tw,{className:u.thumb,ownerState:c});return(0,L.jsxs)(Qx,{className:(0,de.A)(u.root,r),sx:s,ownerState:c,children:[(0,L.jsx)(Jx,(0,R.A)({type:"checkbox",icon:d,checkedIcon:d,ref:t,ownerState:c},l,{classes:(0,R.A)({},u,{root:u.switchBase})})),(0,L.jsx)(ew,{className:u.track,ownerState:c})]})})),rw=__webpack_require__(98692),iw=(0,Ve.A)((0,L.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),ow=(0,Ve.A)((0,L.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),aw=__webpack_require__(44501),sw=__webpack_require__(12639);var lw=(0,me.A)("MuiBox",["root"]);var cw=(0,sw.A)({defaultClassName:lw.root,generateClassName:aw.A.generate});var uw=(0,__webpack_require__(22876).A)(),dw=__webpack_require__.p+"static/media/404.8b077fb153152590b710.png";const pw=(0,Ns.A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),hw=(0,Ns.A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),fw=(0,Ns.A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]]),mw=(0,Ns.A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
128],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),gw=(0,Ns.A)("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]),bw=(0,Ns.A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),vw=(0,Ns.A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),yw=(0,Ns.A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);var xw=e=>{let{apiKey:t}=e;const[n,r]=(0,c.useState)(!1),i=`<script>\n    window.chatx = {\n        chatbotKey: "${t}"\n    }\n<\/script>\n<script \n    src="https://cdn.jsdelivr.net/npm/asklly_windowed_chat/dist/index.min.js">\n<\/script>`;return(0,L.jsx)("div",{className:"space-y-4",children:(0,L.jsxs)("div",{className:"bg-gray-50 rounded-lg border border-gray-200 overflow-hidden shadow-sm",children:[(0,L.jsxs)("div",{className:"px-4 py-3 bg-gray-100 border-b border-gray-200 flex items-center justify-between",children:[(0,L.jsx)("div",{className:"flex items-center space-x-2",children:(0,L.jsx)("span",{className:"ml-2 text-sm font-medium text-gray-600",children:"Code"})}),(0,L.jsx)("button",{onClick:()=>{navigator.clipboard.writeText(i),r(!0),setTimeout((()=>r(!1)),2e3)},className:"flex items-center gap-2 px-3 py-1.5 text-sm rounded-md bg-white border border-gray-200 hover:bg-gray-50 transition-colors duration-150 ease-in-out shadow-sm",children:n?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vw,{size:14,className:"text-green-500"}),(0,L.jsx)("span",{className:"text-green-500",children:"Copied!"})]}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(yw,{size:14,className:"text-gray-500"}),(0,L.jsx)("span",{children:"Copy"})]})})]}),(0,L.jsx)("div",{className:"p-4 bg-white overflow-x-auto",children:(0,L.jsx)("pre",{className:"text-sm font-mono leading-relaxed",children:(0,L.jsx)("code",{className:"whitespace-pre",children:(o=i,o.split("\n").map(((e,n)=>(0,L.jsxs)("div",{className:"line",children:[(0,L.jsx)("span",{className:"select-none text-gray-400 text-xs mr-3 inline-block w-8 text-right",children:n+1}),e.includes("chatbotKey")?(0,L.jsxs)("span",{children:[(0,L.jsx)("span",{className:"text-gray-600 ml-8",children:"chatbotKey: "}),(0,L.jsx)("span",{className:"text-green-600",children:`"${t}"`})]}):e.includes("window.chatx")?(0,L.jsxs)("span",{children:[(0,L.jsx)("span",{className:"text-blue-600",children:"window"}),(0,L.jsxs)("span",{className:"text-gray-600",children:[".chatx = ","{"]})]}):e.includes("src=")?(0,L.jsxs)("span",{children:[(0,L.jsx)("span",{className:"text-purple-600",children:"<script"})," ",(0,L.jsx)("span",{className:"text-blue-600",children:"src"}),(0,L.jsx)("span",{className:"text-gray-600",children:"="}),(0,L.jsx)("span",{className:"text-green-600",children:'"https://cdn.jsdelivr.net/npm/asklly_windowed_chat/dist/index.min.js"'}),(0,L.jsx)("span",{className:"text-purple-600",children:">"})]}):(0,L.jsx)("span",{className:e.trim().startsWith("<")?"text-purple-600":"",children:e})]},n))))})})})]})});var o},ww={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Aw=c.createContext&&c.createContext(ww),Ew=function(){return Ew=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ew.apply(this,arguments)},Sw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function _w(e){return e&&e.map((function(e,t){return c.createElement(e.tag,Ew({key:t},e.attr),_w(e.child))}))}function kw(e){return function(t){return c.createElement(Tw,Ew({attr:Ew({},e.attr)},t),_w(e.child))}}function Tw(e){var t=function(t){var n,r=e.attr,i=e.size,o=e.title,a=Sw(e,["attr","size","title"]),s=i||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),c.createElement("svg",Ew({stroke:"currentColor",fill:"
128currentColor",strokeWidth:"0"},t.attr,r,a,{className:n,style:Ew(Ew({color:e.color||t.color},t.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&c.createElement("title",null,o),e.children)};return void 0!==Aw?c.createElement(Aw.Consumer,null,(function(e){return t(e)})):t(ww)}function Cw(e){return kw({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M160 389a20.91 20.91 0 01-13.82-5.2l-128-112a21 21 0 010-31.6l128-112a21 21 0 0127.66 31.61L63.89 256l109.94 96.19A21 21 0 01160 389zm192 0a21 21 0 01-13.84-36.81L448.11 256l-109.94-96.19a21 21 0 0127.66-31.61l128 112a21 21 0 010 31.6l-128 112A20.89 20.89 0 01352 389zm-144 48a21 21 0 01-20.12-27l96-320a21 21 0 1140.23 12l-96 320A21 21 0 01208 437z"}}]})(e)}function Ow(e){return kw({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M307.94 248L216 154.52V242a6 6 0 006 6z"}},{tag:"path",attr:{d:"M184 268V144H60a12 12 0 00-12 12v328a12 12 0 0012 12h248a12 12 0 0012-12V280H196a12 12 0 01-12-12zm182-148h85.94L360 26.52V114a6 6 0 006 6z"}},{tag:"path",attr:{d:"M340 152a12 12 0 01-12-12V16H172a12 12 0 00-12 12v84h42.12A40.81 40.81 0 01231 124.14l109.16 111a41.11 41.11 0 0111.83 29V400H452a12 12 0 0012-12V152z"}}]})(e)}function Nw(e){return kw({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M368 192h-16v-80a96 96 0 10-192 0v80h-16a64.07 64.07 0 00-64 64v176a64.07 64.07 0 0064 64h224a64.07 64.07 0 0064-64V256a64.07 64.07 0 00-64-64zm-48 0H192v-80a64 64 0 11128 0z"}}]})(e)}function Iw(e){return kw({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M201.14 64L256 32l54.86 32"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M256 32v80"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M310.86 448L256 480l-54.86-32"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M256 480v-80"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M64 207.51V144l53.15-31.51"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M64 144l67.29 40"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M448 304.49V368l-53.15 31.51"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M448 368l-67.29-40"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M117.15 400L64 368v-63.51"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M64 368l66.64-40"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M394.85 112.49L448 144v63.51"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M448 144l-67.29 40M256 320v-64l54.86-32M256 256l-54.86-32"}}]})(e)}function Rw(e){return kw({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"44",d:"M358.62 129.28L86.49 402.08 70 442l39.92-16.49 272.8-272.13-24.1-24.1zm54.45-54.44l-11.79 11.78 24.1 24.1 11.79-11.79a16.51 16.51 0 000-23.34l-.75-.75a16.51 16.51 0 00-23.35 0z"}}]})(e)}function Pw(e){return kw({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M332.64 64.58C313.18 43.57 286 32 256 32c-30.16 0-57.43 11.5-76.8 32.38-19.58 21.11-29.12 49.8-26.88 80.78C156.76 206.28 203.27 256 256 256s99.16-49.71 103.67-110.82c2.27-30.7-7.33-59.33-27.03-80.6zM432 480H80a31 31 0 01-24.2-11.13c-6.5-7.77-9.12-18.38-7.18-29.11C57.06 392.94 83.4 353.61 124.8 326c36.78-24.51 83.37-38 131.2-38s94.42 13.5 131.2 38c41.4 27.6 67.74 66.93 76.18 113.75 1.94 10.73-.68 21.34-7.18 29.11A31 31 0 01432 480z"}}]})(e)}var jw=(0,Ve.A)((0,L.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert"),Mw=(0,Ve.A)((0,L.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh"),Dw=(0,Ve.A)((0,L.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var Lw=function(e){const{children:t,defer:n=!1,fallback:r=null}=e,[i,o]=c.useState(!1);return(0,ie.A)((()=>{n||o(!0)}),[n]),c.useEffect((()=>{n&&o(!0)}),[n]),(0,L.jsx)(c.Fragment,{children:i?t:r})};const Fw=["anchor","classes","className","width","style"],Bw=(0,ne.Ay)("div",{shouldForwardProp:fo.A})((e=>{let{theme:t,ownerState:n}=e;return(0,R.A)({position:"fixed",top:0,left:0,bottom:0,zIndex:t.zIndex.drawer-1},"left"===n.anchor&&{right:"auto"},"right"===n.anchor&&{left:"auto",right:0},"top"===n.anchor&&{bottom:"auto",right:0},"bottom"===n.anchor&&{top:"auto",bottom:0,right:0})}));var Uw=c.forwardRef((function(e,t){const{anchor:n,classes:r={},className:i,width:o,style:a}=e,s=(0,P.A)(e,Fw),l=e;return(0,L.jsx)(Bw,(0,R.A)({className:(0,de.A)("PrivateSwipeArea-root",r.root,r[`anch
128or${(0,he.A)(n)}`],i),ref:t,style:(0,R.A)({[Ws(n)?"width":"height"]:o},a),ownerState:l},s))}));const zw=["BackdropProps"],Hw=["anchor","disableBackdropTransition","disableDiscovery","disableSwipeToOpen","hideBackdrop","hysteresis","allowSwipeInChildren","minFlingVelocity","ModalProps","onClose","onOpen","open","PaperProps","SwipeAreaProps","swipeAreaWidth","transitionDuration","variant"];let $w=null;function Vw(e,t,n){return"right"===e?n.body.offsetWidth-t[0].pageX:t[0].pageX}function Gw(e,t,n){return"bottom"===e?n.innerHeight-t[0].clientY:t[0].clientY}function Ww(e,t){return e?t.clientWidth:t.clientHeight}function qw(e,t,n,r){return Math.min(Math.max(n?t-e:r+t-e,0),r)}const Yw="undefined"!==typeof navigator&&/iPad|iPhone|iPod/.test(navigator.userAgent),Kw=c.forwardRef((function(e,t){const n=(0,X.b)({name:"MuiSwipeableDrawer",props:e}),r=(0,re.A)(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{anchor:o="left",disableBackdropTransition:a=!1,disableDiscovery:l=!1,disableSwipeToOpen:u=Yw,hideBackdrop:d,hysteresis:p=.52,allowSwipeInChildren:h=!1,minFlingVelocity:f=450,ModalProps:{BackdropProps:m}={},onClose:g,onOpen:b,open:v=!1,PaperProps:y={},SwipeAreaProps:x,swipeAreaWidth:w=20,transitionDuration:A=i,variant:E="temporary"}=n,S=(0,P.A)(n.ModalProps,zw),_=(0,P.A)(n,Hw),[k,T]=c.useState(!1),C=c.useRef({isSwiping:null}),O=c.useRef(),N=c.useRef(),I=c.useRef(),j=(0,ti.A)(y.ref,I),M=c.useRef(!1),D=c.useRef();(0,mo.A)((()=>{D.current=null}),[v]);const F=c.useCallback((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{mode:n=null,changeTransition:i=!0}=t,s=qs(r,o),l=-1!==["right","bottom"].indexOf(s)?1:-1,c=Ws(o),u=c?`translate(${l*e}px, 0)`:`translate(0, ${l*e}px)`,p=I.current.style;p.webkitTransform=u,p.transform=u;let h="";if(n&&(h=r.transitions.create("all",(0,Ti.c)({easing:void 0,style:void 0,timeout:A},{mode:n}))),i&&(p.webkitTransition=h,p.transition=h),!a&&!d){const t=N.current.style;t.opacity=1-e/Ww(c,I.current),i&&(t.webkitTransition=h,t.transition=h)}}),[o,a,d,r,A]),B=(0,ei.A)((e=>{if(!M.current)return;if($w=null,M.current=!1,s.flushSync((()=>{T(!1)})),!C.current.isSwiping)return void(C.current.isSwiping=null);C.current.isSwiping=null;const t=qs(r,o),n=Ws(o);let i;i=n?Vw(t,e.changedTouches,(0,ps.A)(e.currentTarget)):Gw(t,e.changedTouches,(0,Li.A)(e.currentTarget));const a=n?C.current.startX:C.current.startY,l=Ww(n,I.current),c=qw(i,a,v,l),u=c/l;Math.abs(C.current.velocity)>f&&(D.current=1e3*Math.abs((l-c)/C.current.velocity)),v?C.current.velocity>f||u>p?g():F(0,{mode:"exit"}):C.current.velocity<-f||1-u>p?b():F(Ww(n,I.current),{mode:"enter"})})),U=function(){if(!k){!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&l&&h||s.flushSync((()=>{T(!0)}));const e=Ws(o);!v&&I.current&&F(Ww(e,I.current)+(l?15:-20),{changeTransition:!1}),C.current.velocity=0,C.current.lastTime=null,C.current.lastTranslate=null,C.current.paperHit=!1,M.current=!0}},z=(0,ei.A)((e=>{if(!I.current||!M.current)return;if(null!==$w&&$w!==C.current)return;U(!0);const t=qs(r,o),n=Ws(o),i=Vw(t,e.touches,(0,ps.A)(e.currentTarget)),a=Gw(t,e.touches,(0,Li.A)(e.currentTarget));if(v&&I.current.contains(e.target)&&null===$w){const t=function(e){let{domTreeShapes:t,start:n,current:r,anchor:i}=e;const o={x:"scrollLeft",y:"scrollTop"},a={x:"scrollWidth",y:"scrollHeight"},s={x:"clientWidth",y:"clientHeight"};return t.some((e=>{let t=r>=n;"top"!==i&&"left"!==i||(t=!t);const l="left"===i||"right"===i?"x":"y",c=Math.round(e[o[l]]),u=c>0,d=c+e[s[l]]<e[a[l]];return!!(t&&d||!t&&u)}))}({domTreeShapes:function(e,t){const n=[];for(;e&&e!==t.parentElement;){const r=(0,Li.A)(t).getComputedStyle(e);"absolute"===r.getPropertyValue("position")||"hidden"===r.getPropertyValue("overflow-x")||(e.clientWidth>0&&e.scrollWidth>e.clientWidth||e.clientHeight>0&&e.scrollHeight>e.clientHeight)&&n.push(e),e=e.parentElement}return n}(e.target,I.current),start:n?C.current.startX:C.current.startY,current:n?i:a,anchor:o});if(t)return void($w=!0);$w=C.current}if(null==C.current.isSwiping){const t=Math.abs(i-C.current.startX),r=Math.abs(a-C.current.startY),o=n?t>r&&t>3:r>t&&r>3;if(o&&e.cancelable&&e.preventDefault(),!0===o||(n?r>3:t>3)){if(C.current.isSwiping=o,!o)return void B(e);C.current.startX=i,C.current.startY=a,l||v||(n?C.current.startX-=20:C.current.startY-=20)}}if(!C.current.isSwiping)return;const s=Ww(n,I.current);let c=n?C.current.startX:C.current.startY;v&&!C.current.paperHit&&(c=Math.min(c,s));const u=qw(n?i:a,c,v,s);if(v)if(C.current.paperHit)0===u&&(C.current.startX=i,C.current.startY=a);else{if(!(n?i<s:a<s))return;C.current.paperHit=!0,C.current.startX=i,C.current.startY=a}null===C.current.lastTranslate&&(C.current.lastTranslate=u,C.current.lastTime=performance.now()+1);const d=(u-C.current.lastTranslate)/(performance.now()-C.current.lastTime)*1e3;C.current.velocity=.4*C.current.velocity+.6*d,C.current.lastTranslate=u,C.current.lastTime=performance.now(),e.cancelable&&e.preventDefault(),F(u)})),H=(0,ei.A)((e=>{if(e.defaultPrevented)return;if(e.defaultMuiPrevented)return;if(v&&(d||!N.current.contains(e.target))&&!I.current.contains(e.target))return;const t=qs(r,o),n=Ws(o),i=Vw(t,e.touches,(0,ps.A)(e.currentTarget)),a=Gw(t,e.touches,(0,Li.A)(e.currentTarget));if(!v){var s;if(u||!(e.target===O.current||null!=(s=I.current)&&s.contains(e.target)&&("function"===typeof h?h(e,O.current,I.current):h)))return;if(n){if(i>w)return}else if(a>w)return}e.defaultMuiPrevented=!0,$w=null,C.current.startX=i,C.current.startY=a,U()}));return c.useEffect((()=>
vendor: 4,493 bytes, lines 128-155
128{if("temporary"===E){const e=(0,ps.A)(I.current);return e.addEventListener("touchstart",H),e.addEventListener("touchmove",z,{passive:!v}),e.addEventListener("touchend",B),()=>{e.removeEventListener("touchstart",H),e.removeEventListener("touchmove",z,{passive:!v}),e.removeEventListener("touchend",B)}}}),[E,v,H,z,B]),c.useEffect((()=>()=>{$w===C.current&&($w=null)}),[]),c.useEffect((()=>{v||T(!1)}),[v]),(0,L.jsxs)(c.Fragment,{children:[(0,L.jsx)(Ks,(0,R.A)({open:!("temporary"!==E||!k)||v,variant:E,ModalProps:(0,R.A)({BackdropProps:(0,R.A)({},m,{ref:N})},"temporary"===E&&{keepMounted:!0},S),hideBackdrop:d,PaperProps:(0,R.A)({},y,{style:(0,R.A)({pointerEvents:"temporary"!==E||v||h?"":"none"},y.style),ref:j}),anchor:o,transitionDuration:D.current||A,onClose:g,ref:t},_)),!u&&"temporary"===E&&(0,L.jsx)(Lw,{children:(0,L.jsx)(Uw,(0,R.A)({anchor:o,ref:O,width:w},x))})]})}));var Xw=Kw;function Zw(e){return(0,ge.Ay)("MuiCircularProgress",e)}(0,me.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Qw=["className","color","disableShrink","size","style","thickness","value","variant"];let Jw,eA,tA,nA,rA=e=>e;const iA=44,oA=(0,Po.i7)(Jw||(Jw=rA`
129  0% {
130    transform: rotate(0deg);
131  }
132
133  100% {
134    transform: rotate(360deg);
135  }
136`)),aA=(0,Po.i7)(eA||(eA=rA`
137  0% {
138    stroke-dasharray: 1px, 200px;
139    stroke-dashoffset: 0;
140  }
141
142  50% {
143    stroke-dasharray: 100px, 200px;
144    stroke-dashoffset: -15px;
145  }
146
147  100% {
148    stroke-dasharray: 100px, 200px;
149    stroke-dashoffset: -125px;
150  }
151`)),sA=(0,ne.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${(0,he.A)(n.color)}`]]}})((e=>{let{ownerState:t,theme:n}=e;return(0,R.A)({display:"inline-block"},"determinate"===t.variant&&{transition:n.transitions.create("transform")},"inherit"!==t.color&&{color:(n.vars||n).palette[t.color].main})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&(0,Po.AH)(tA||(tA=rA`
152      animation: ${0} 1.4s linear infinite;
153    `),oA)})),lA=(0,ne.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),cA=(0,ne.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${(0,he.A)(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((e=>{let{ownerState:t,theme:n}=e;return(0,R.A)({stroke:"currentColor"},"determinate"===t.variant&&{transition:n.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,Po.AH)(nA||(nA=rA`
154      animation: ${0} 1.4s ease-in-out infinite;
155    `),aA)})),uA=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiCircularProgress"}),{className:r,color:i="primary",disableShrink:o=!1,size:a=40,style:s,thickness:l=3.6,value:c=0,variant:u="indeterminate"}=n,d=(0,P.A)(n,Qw),p=(0,R.A)({},n,{color:i,disableShrink:o,size:a,thickness:l,value:c,variant:u}),h=(e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${(0,he.A)(r)}`],svg:["svg"],circle:["circle",`circle${(0,he.A)(n)}`,i&&"circleDisableShrink"]};return(0,pe.A)(o,Zw,t)})(p),f={},m={},g={};if("determinate"===u){const e=2*Math.PI*((iA-l)/2);f.strokeDasharray=e.toFixed(3),g["aria-valuenow"]=Math.round(c),f.strokeDashoffset=`${((100-c)/100*e).toFixed(3)}px`,m.transform="rotate(-90deg)"}return(0,L.jsx)(sA,(0,R.A)({className:(0,de.A)(h.root,r),style:(0,R.A)({width:a,height:a},m,s),ownerState:p,ref:t,role:"progressbar"},g,d,{children:(0,L.jsx)(lA,{className:h.svg,ownerState:p,viewBox:"22 22 44 44",children:(0,L.jsx)(cA,{className:h.circle,style:f,ownerState:p,cx:iA,cy:iA,r:(iA-l)/2,fill:"none",strokeWidth:l})})}))}));var dA=uA,pA=__webpack_require__(97591),hA="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{},fA=function(e){return e&&e.Math==Math&&e},mA=fA("object"==typeof globalThis&&globalThis)||fA("object"==typeof window&&window)||fA("object"==typeof self&&self)||fA("object"==typeof hA&&hA)||function(){return this}()||Function("return this")(),gA={},bA=function(e){try{return!!e()}catch(t){return!0}},vA=!bA((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}}
vendor: 4,685 bytes, line 155
155)[1]})),yA=!bA((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),xA=yA,wA=Function.prototype.call,AA=xA?wA.bind(wA):function(){return wA.apply(wA,arguments)},EA={},SA={}.propertyIsEnumerable,_A=Object.getOwnPropertyDescriptor,kA=_A&&!SA.call({1:2},1);EA.f=kA?function(e){var t=_A(this,e);return!!t&&t.enumerable}:SA;var TA,CA,OA=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},NA=yA,IA=Function.prototype,RA=IA.bind,PA=IA.call,jA=NA&&RA.bind(PA,PA),MA=NA?function(e){return e&&jA(e)}:function(e){return e&&function(){return PA.apply(e,arguments)}},DA=MA,LA=DA({}.toString),FA=DA("".slice),BA=function(e){return FA(LA(e),8,-1)},UA=MA,zA=bA,HA=BA,$A=mA.Object,VA=UA("".split),GA=zA((function(){return!$A("z").propertyIsEnumerable(0)}))?function(e){return"String"==HA(e)?VA(e,""):$A(e)}:$A,WA=mA.TypeError,qA=function(e){if(void 0==e)throw WA("Can't call method on "+e);return e},YA=GA,KA=qA,XA=function(e){return YA(KA(e))},ZA=function(e){return"function"==typeof e},QA=ZA,JA=function(e){return"object"==typeof e?null!==e:QA(e)},eE=mA,tE=ZA,nE=function(e,t){return arguments.length<2?(n=eE[e],tE(n)?n:void 0):eE[e]&&eE[e][t];var n},rE=MA({}.isPrototypeOf),iE=nE("navigator","userAgent")||"",oE=mA,aE=iE,sE=oE.process,lE=oE.Deno,cE=sE&&sE.versions||lE&&lE.version,uE=cE&&cE.v8;uE&&(CA=(TA=uE.split("."))[0]>0&&TA[0]<4?1:+(TA[0]+TA[1])),!CA&&aE&&(!(TA=aE.match(/Edge\/(\d+)/))||TA[1]>=74)&&(TA=aE.match(/Chrome\/(\d+)/))&&(CA=+TA[1]);var dE=CA,pE=dE,hE=bA,fE=!!Object.getOwnPropertySymbols&&!hE((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&pE&&pE<41})),mE=fE&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,gE=nE,bE=ZA,vE=rE,yE=mE,xE=mA.Object,wE=yE?function(e){return"symbol"==typeof e}:function(e){var t=gE("Symbol");return bE(t)&&vE(t.prototype,xE(e))},AE=mA.String,EE=function(e){try{return AE(e)}catch(t){return"Object"}},SE=ZA,_E=EE,kE=mA.TypeError,TE=function(e){if(SE(e))return e;throw kE(_E(e)+" is not a function")},CE=TE,OE=function(e,t){var n=e[t];return null==n?void 0:CE(n)},NE=AA,IE=ZA,RE=JA,PE=mA.TypeError,jE={exports:{}},ME=mA,DE=Object.defineProperty,LE=function(e,t){try{DE(ME,e,{value:t,configurable:!0,writable:!0})}catch(n){ME[e]=t}return t},FE=LE,BE="__core-js_shared__",UE=mA[BE]||FE(BE,{}),zE=UE;(jE.exports=function(e,t){return zE[e]||(zE[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.22.2",mode:"global",copyright:"\xa9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.2/LICENSE",source:"https://github.com/zloirock/core-js"});var HE=qA,$E=mA.Object,VE=function(e){return $E(HE(e))},GE=VE,WE=MA({}.hasOwnProperty),qE=Object.hasOwn||function(e,t){return WE(GE(e),t)},YE=MA,KE=0,XE=Math.random(),ZE=YE(1..toString),QE=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ZE(++KE+XE,36)},JE=mA,eS=jE.exports,tS=qE,nS=QE,rS=fE,iS=mE,oS=eS("wks"),aS=JE.Symbol,sS=aS&&aS.for,lS=iS?aS:aS&&aS.withoutSetter||nS,cS=function(e){if(!tS(oS,e)||!rS&&"string"!=typeof oS[e]){var t="Symbol."+e;rS&&tS(aS,e)?oS[e]=aS[e]:oS[e]=iS&&sS?sS(t):lS(t)}return oS[e]},uS=AA,dS=JA,pS=wE,hS=OE,fS=function(e,t){var n,r;if("string"===t&&IE(n=e.toString)&&!RE(r=NE(n,e)))return r;if(IE(n=e.valueOf)&&!RE(r=NE(n,e)))return r;if("string"!==t&&IE(n=e.toString)&&!RE(r=NE(n,e)))return r;throw PE("Can't convert object to primitive value")},mS=cS,gS=mA.TypeError,bS=mS("toPrimitive"),vS=function(e,t){if(!dS(e)||pS(e))return e;var n,r=hS(e,bS);if(r){if(void 0===t&&(t="default"),n=uS(r,e,t),!dS(n)||pS(n))return n;throw gS("Can't convert object to primitive value")}return void 0===t&&(t="number"),fS(e,t)},yS=wE,xS=function(e){var t=vS(e,"string");return yS(t)?t:t+""},wS=JA,AS=mA.document,ES=wS(AS)&&wS(AS.createElement),SS=function(e){return ES?AS.createElement(e):{}},_S=SS,kS=!vA&&!bA((function(){return 7!=Object.defineProperty(_S("div"),"a",{get:function(){return 7}}).a})),TS=vA,CS=AA,OS=EA,NS=OA,IS=XA,RS=xS,PS=qE,jS=kS,MS=Object.getOwnPropertyDescriptor;gA.f=TS?MS:function(e,t){if(e=IS(e),t=RS(t),jS)try{return MS(e,t)}catch(n){}if(PS(e,t))return NS(!CS(OS.f,e,t),e[t])};var DS={},LS=vA&&bA((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),FS=mA,BS=JA,US=FS.String,zS=FS.TypeError,HS=function(e){if(BS(e))return e;throw zS(US(e)+" is not an object")},$S=vA,VS=kS,GS=LS,WS=HS,qS=xS,YS=mA.TypeError,KS=Object.defineProperty,XS=Object.getOwnPropertyDescriptor,ZS="enumerable",QS="configurable",JS="writable";DS.f=$S?GS?function(e,t,n){if(WS(e),t=qS(t),WS(n),"function"===typeof e&&"prototype"===t&&"value"in n&&JS in n&&!n[JS]){var r=XS(e,t);
vendor: 3,403 bytes, line 155
155r&&r[JS]&&(e[t]=n.value,n={configurable:QS in n?n[QS]:r[QS],enumerable:ZS in n?n[ZS]:r[ZS],writable:!1})}return KS(e,t,n)}:KS:function(e,t,n){if(WS(e),t=qS(t),WS(n),VS)try{return KS(e,t,n)}catch(r){}if("get"in n||"set"in n)throw YS("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var e_=DS,t_=OA,n_=vA?function(e,t,n){return e_.f(e,t,t_(1,n))}:function(e,t,n){return e[t]=n,e},r_={exports:{}},i_=ZA,o_=UE,a_=MA(Function.toString);i_(o_.inspectSource)||(o_.inspectSource=function(e){return a_(e)});var s_,l_,c_,u_=o_.inspectSource,d_=ZA,p_=u_,h_=mA.WeakMap,f_=d_(h_)&&/native code/.test(p_(h_)),m_=jE.exports,g_=QE,b_=m_("keys"),v_=function(e){return b_[e]||(b_[e]=g_(e))},y_={},x_=f_,w_=mA,A_=MA,E_=JA,S_=n_,__=qE,k_=UE,T_=v_,C_=y_,O_="Object already initialized",N_=w_.TypeError,I_=w_.WeakMap;if(x_||k_.state){var R_=k_.state||(k_.state=new I_),P_=A_(R_.get),j_=A_(R_.has),M_=A_(R_.set);s_=function(e,t){if(j_(R_,e))throw new N_(O_);return t.facade=e,M_(R_,e,t),t},l_=function(e){return P_(R_,e)||{}},c_=function(e){return j_(R_,e)}}else{var D_=T_("state");C_[D_]=!0,s_=function(e,t){if(__(e,D_))throw new N_(O_);return t.facade=e,S_(e,D_,t),t},l_=function(e){return __(e,D_)?e[D_]:{}},c_=function(e){return __(e,D_)}}var L_={set:s_,get:l_,has:c_,enforce:function(e){return c_(e)?l_(e):s_(e,{})},getterFor:function(e){return function(t){var n;if(!E_(t)||(n=l_(t)).type!==e)throw N_("Incompatible receiver, "+e+" required");return n}}},F_=vA,B_=qE,U_=Function.prototype,z_=F_&&Object.getOwnPropertyDescriptor,H_=B_(U_,"name"),$_=H_&&"something"===function(){}.name,V_=H_&&(!F_||F_&&z_(U_,"name").configurable),G_=mA,W_=ZA,q_=qE,Y_=n_,K_=LE,X_=u_,Z_={EXISTS:H_,PROPER:$_,CONFIGURABLE:V_}.CONFIGURABLE,Q_=L_.get,J_=L_.enforce,ek=String(String).split("String");(r_.exports=function(e,t,n,r){var i,o=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,s=!!r&&!!r.noTargetGet,l=r&&void 0!==r.name?r.name:t;W_(n)&&("Symbol("===String(l).slice(0,7)&&(l="["+String(l).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!q_(n,"name")||Z_&&n.name!==l)&&Y_(n,"name",l),(i=J_(n)).source||(i.source=ek.join("string"==typeof l?l:""))),e!==G_?(o?!s&&e[t]&&(a=!0):delete e[t],a?e[t]=n:Y_(e,t,n)):a?e[t]=n:K_(t,n)})(Function.prototype,"toString",(function(){return W_(this)&&Q_(this).source||X_(this)}));var tk={},nk=Math.ceil,rk=Math.floor,ik=function(e){var t=+e;return t!==t||0===t?0:(t>0?rk:nk)(t)},ok=ik,ak=Math.max,sk=Math.min,lk=ik,ck=Math.min,uk=function(e){return e>0?ck(lk(e),9007199254740991):0},dk=uk,pk=function(e){return dk(e.length)},hk=XA,fk=function(e,t){var n=ok(e);return n<0?ak(n+t,0):sk(n,t)},mk=pk,gk=function(e){return function(t,n,r){var i,o=hk(t),a=mk(o),s=fk(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},bk={includes:gk(!0),indexOf:gk(!1)},vk=qE,yk=XA,xk=bk.indexOf,wk=y_,Ak=MA([].push),Ek=function(e,t){var n,r=yk(e),i=0,o=[];for(n in r)!vk(wk,n)&&vk(r,n)&&Ak(o,n);for(;t.length>i;)vk(r,n=t[i++])&&(~xk(o,n)||Ak(o,n));return o},Sk=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_k=Ek,kk=Sk.concat("length","prototype");tk.f=Object.getOwnPropertyNames||function(e){return _k(e,kk)};var Tk={};Tk.f=Object.getOwnPropertySymbols;var Ck=nE,Ok=tk,Nk=Tk,Ik=HS,Rk=MA([].concat),Pk=Ck("Reflect","ownKeys")||function(e){var t=Ok.f(Ik(e)),n=Nk.f;return n?Rk(t,n(e)):t}
vendor: 4,575 bytes, line 155
155,jk=qE,Mk=Pk,Dk=gA,Lk=DS,Fk=bA,Bk=ZA,Uk=/#|\.prototype\./,zk=function(e,t){var n=$k[Hk(e)];return n==Gk||n!=Vk&&(Bk(t)?Fk(t):!!t)},Hk=zk.normalize=function(e){return String(e).replace(Uk,".").toLowerCase()},$k=zk.data={},Vk=zk.NATIVE="N",Gk=zk.POLYFILL="P",Wk=zk,qk=mA,Yk=gA.f,Kk=n_,Xk=r_.exports,Zk=LE,Qk=function(e,t,n){for(var r=Mk(t),i=Lk.f,o=Dk.f,a=0;a<r.length;a++){var s=r[a];jk(e,s)||n&&jk(n,s)||i(e,s,o(t,s))}},Jk=Wk,eT=function(e,t){var n,r,i,o,a,s=e.target,l=e.global,c=e.stat;if(n=l?qk:c?qk[s]||Zk(s,{}):(qk[s]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=Yk(n,r))&&a.value:n[r],!Jk(l?r:s+(c?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;Qk(o,i)}(e.sham||i&&i.sham)&&Kk(o,"sham",!0),Xk(n,r,o,e)}},tT="process"==BA(mA.process),nT=r_.exports,rT=mA,iT=ZA,oT=rT.String,aT=rT.TypeError,sT=MA,lT=HS,cT=function(e){if("object"==typeof e||iT(e))return e;throw aT("Can't set "+oT(e)+" as a prototype")},uT=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=sT(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return lT(n),cT(r),t?e(n,r):n.__proto__=r,n}}():void 0),dT=DS.f,pT=qE,hT=cS("toStringTag"),fT=nE,mT=DS,gT=vA,bT=cS("species"),vT=rE,yT=mA.TypeError,xT={};xT[cS("toStringTag")]="z";var wT=mA,AT="[object z]"===String(xT),ET=ZA,ST=BA,_T=cS("toStringTag"),kT=wT.Object,TT="Arguments"==ST(function(){return arguments}()),CT=AT?ST:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=kT(e),_T))?n:TT?ST(t):"Object"==(r=ST(t))&&ET(t.callee)?"Arguments":r},OT=MA,NT=bA,IT=ZA,RT=CT,PT=u_,jT=function(){},MT=[],DT=nE("Reflect","construct"),LT=/^\s*(?:class|function)\b/,FT=OT(LT.exec),BT=!LT.exec(jT),UT=function(e){if(!IT(e))return!1;try{return DT(jT,MT,e),!0}catch(t){return!1}},zT=function(e){if(!IT(e))return!1;switch(RT(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return BT||!!FT(LT,PT(e))}catch(t){return!0}};zT.sham=!0;var HT,$T,VT,GT,WT=!DT||NT((function(){var e;return UT(UT.call)||!UT(Object)||!UT((function(){e=!0}))||e}))?zT:UT,qT=EE,YT=mA.TypeError,KT=HS,XT=function(e){if(WT(e))return e;throw YT(qT(e)+" is not a constructor")},ZT=cS("species"),QT=yA,JT=Function.prototype,eC=JT.apply,tC=JT.call,nC="object"==typeof Reflect&&Reflect.apply||(QT?tC.bind(eC):function(){return tC.apply(eC,arguments)}),rC=TE,iC=yA,oC=MA(MA.bind),aC=function(e,t){return rC(e),void 0===t?e:iC?oC(e,t):function(){return e.apply(t,arguments)}},sC=nE("document","documentElement"),lC=MA([].slice),cC=mA.TypeError,uC=/(?:ipad|iphone|ipod).*applewebkit/i.test(iE),dC=mA,pC=nC,hC=aC,fC=ZA,mC=qE,gC=bA,bC=sC,vC=lC,yC=SS,xC=function(e,t){if(e<t)throw cC("Not enough arguments");return e},wC=uC,AC=tT,EC=dC.setImmediate,SC=dC.clearImmediate,_C=dC.process,kC=dC.Dispatch,TC=dC.Function,CC=dC.MessageChannel,OC=dC.String,NC=0,IC={},RC="onreadystatechange";try{HT=dC.location}catch(qUe){}var PC=function(e){if(mC(IC,e)){var t=IC[e];delete IC[e],t()}},jC=function(e){return function(){PC(e)}},MC=function(e){PC(e.data)},DC=function(e){dC.postMessage(OC(e),HT.protocol+"//"+HT.host)};EC&&SC||(EC=function(e){xC(arguments.length,1);var t=fC(e)?e:TC(e),n=vC(arguments,1);return IC[++NC]=function(){pC(t,void 0,n)},$T(NC),NC},SC=function(e){delete IC[e]},AC?$T=function(e){_C.nextTick(jC(e))}:kC&&kC.now?$T=function(e){kC.now(jC(e))}:CC&&!wC?(GT=(VT=new CC).port2,VT.port1.onmessage=MC,$T=hC(GT.postMessage,GT)):dC.addEventListener&&fC(dC.postMessage)&&!dC.importScripts&&HT&&"file:"!==HT.protocol&&!gC(DC)?($T=DC,dC.addEventListener("message",MC,!1)):$T=RC in yC("script")?function(e){bC.appendChild(yC("script"))[RC]=function(){bC.removeChild(this),PC(e)}}:function(e){setTimeout(jC(e),0)});var LC,FC,BC,UC,zC,HC,$C,VC,GC={set:EC,clear:SC},WC=mA,qC=/ipad|iphone|ipod/i.test(iE)&&void 0!==WC.Pebble,YC=/web0s(?!.*chrome)/i.test(iE),KC=mA,XC=aC,ZC=gA.f,QC=GC.set,JC=uC,eO=qC,tO=YC,nO=tT,rO=KC.MutationObserver||KC.WebKitMutationObserver,iO=KC.document,oO=KC.process,aO=KC.Promise,sO=ZC(KC,"queueMicrotask"),lO=sO&&sO.value;lO||(LC=function(){var e,t;for(nO&&(e=oO.domain)&&e.exit();FC;){t=FC.fn,FC=FC.next;try{t()}catch(qUe){throw FC?UC():BC=void 0,qUe}}BC=void 0,e&&e.enter()},JC||nO||tO||!rO||!iO?!eO&&aO&&aO.resolve?(($C=aO.resolve(void 0)).constructor=aO,VC=XC($C.then,$C),UC=function(){VC(LC)}):nO?UC=function(){oO.nextTick(LC)}:(QC=XC(QC,KC),UC=function(){QC(LC)}):(zC=!0,HC=iO.createTextNode(""),new rO(LC).observe(HC,{characterData:!0}
vendor: 10,169 bytes, line 155
155),UC=function(){HC.data=zC=!zC}));var cO=lO||function(e){var t={fn:e,next:void 0};BC&&(BC.next=t),FC||(FC=t,UC()),BC=t},uO=mA,dO=function(e){try{return{error:!1,value:e()}}catch(qUe){return{error:!0,value:qUe}}},pO=function(){this.head=null,this.tail=null};pO.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}};var hO=pO,fO=mA.Promise,mO="object"==typeof window&&"object"!=typeof Deno,gO=mA,bO=fO,vO=ZA,yO=Wk,xO=u_,wO=cS,AO=mO,EO=dE;bO&&bO.prototype;var SO=wO("species"),_O=!1,kO=vO(gO.PromiseRejectionEvent),TO={CONSTRUCTOR:yO("Promise",(function(){var e=xO(bO),t=e!==String(bO);if(!t&&66===EO)return!0;if(EO>=51&&/native code/.test(e))return!1;var n=new bO((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[SO]=r,!(_O=n.then((function(){}))instanceof r)||!t&&AO&&!kO})),REJECTION_EVENT:kO,SUBCLASSING:_O},CO={},OO=TE,NO=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=OO(t),this.reject=OO(n)};CO.f=function(e){return new NO(e)};var IO,RO,PO,jO=eT,MO=tT,DO=mA,LO=AA,FO=r_.exports,BO=function(e,t,n){for(var r in t)nT(e,r,t[r],n);return e},UO=uT,zO=function(e,t,n){e&&!n&&(e=e.prototype),e&&!pT(e,hT)&&dT(e,hT,{configurable:!0,value:t})},HO=function(e){var t=fT(e),n=mT.f;gT&&t&&!t[bT]&&n(t,bT,{configurable:!0,get:function(){return this}})},$O=TE,VO=ZA,GO=JA,WO=function(e,t){if(vT(t,e))return e;throw yT("Incorrect invocation")},qO=function(e,t){var n,r=KT(e).constructor;return void 0===r||void 0==(n=KT(r)[ZT])?t:XT(n)},YO=GC.set,KO=cO,XO=function(e,t){var n=uO.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))},ZO=dO,QO=hO,JO=L_,eN=fO,tN=CO,nN="Promise",rN=TO.CONSTRUCTOR,iN=TO.REJECTION_EVENT,oN=TO.SUBCLASSING,aN=JO.getterFor(nN),sN=JO.set,lN=eN&&eN.prototype,cN=eN,uN=lN,dN=DO.TypeError,pN=DO.document,hN=DO.process,fN=tN.f,mN=fN,gN=!!(pN&&pN.createEvent&&DO.dispatchEvent),bN="unhandledrejection",vN=function(e){var t;return!(!GO(e)||!VO(t=e.then))&&t},yN=function(e,t){var n,r,i,o=t.value,a=1==t.state,s=a?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(a||(2===t.rejection&&SN(t),t.rejection=1),!0===s?n=o:(u&&u.enter(),n=s(o),u&&(u.exit(),i=!0)),n===e.promise?c(dN("Promise-chain cycle")):(r=vN(n))?LO(r,n,l,c):l(n)):c(o)}catch(qUe){u&&!i&&u.exit(),c(qUe)}},xN=function(e,t){e.notified||(e.notified=!0,KO((function(){for(var n,r=e.reactions;n=r.get();)yN(n,e);e.notified=!1,t&&!e.rejection&&AN(e)})))},wN=function(e,t,n){var r,i;gN?((r=pN.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),DO.dispatchEvent(r)):r={promise:t,reason:n},!iN&&(i=DO["on"+e])?i(r):e===bN&&XO("Unhandled promise rejection",n)},AN=function(e){LO(YO,DO,(function(){var t,n=e.facade,r=e.value;if(EN(e)&&(t=ZO((function(){MO?hN.emit("unhandledRejection",r,n):wN(bN,n,r)})),e.rejection=MO||EN(e)?2:1,t.error))throw t.value}))},EN=function(e){return 1!==e.rejection&&!e.parent},SN=function(e){LO(YO,DO,(function(){var t=e.facade;MO?hN.emit("rejectionHandled",t):wN("rejectionhandled",t,e.value)}))},_N=function(e,t,n){return function(r){e(t,r,n)}},kN=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,xN(e,!0))},TN=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw dN("Promise can't be resolved itself");var r=vN(t);r?KO((function(){var n={done:!1};try{LO(r,t,_N(TN,n,e),_N(kN,n,e))}catch(qUe){kN(n,qUe,e)}})):(e.value=t,e.state=1,xN(e,!1))}catch(qUe){kN({done:!1},qUe,e)}}};if(rN&&(uN=(cN=function(e){WO(this,uN),$O(e),LO(IO,this);var t=aN(this);try{e(_N(TN,t),_N(kN,t))}catch(qUe){kN(t,qUe)}}).prototype,(IO=function(e){sN(this,{type:nN,done:!1,notified:!1,parent:!1,reactions:new QO,rejection:!1,state:0,value:void 0})}).prototype=BO(uN,{then:function(e,t){var n=aN(this),r=fN(qO(this,cN));return n.parent=!0,r.ok=!VO(e)||e,r.fail=VO(t)&&t,r.domain=MO?hN.domain:void 0,0==n.state?n.reactions.add(r):KO((function(){yN(r,n)})),r.promise}}),RO=function(){var e=new IO,t=aN(e);this.promise=e,this.resolve=_N(TN,t),this.reject=_N(kN,t)},tN.f=fN=function(e){return e===cN||undefined===e?new RO(e):mN(e)},VO(eN)&&lN!==Object.prototype)){PO=lN.then,oN||FO(lN,"then",(function(e,t){var n=this;return new cN((function(e,t){LO(PO,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete lN.constructor}catch(qUe){}UO&&UO(lN,uN)}jO({global:!0,wrap:!0,forced:rN},{Promise:cN}),zO(cN,nN,!1),HO(nN);var CN={},ON=CN,NN=cS("iterator"),IN=Array.prototype,RN=CT,PN=OE,jN=CN,MN=cS("iterator"),DN=function(e){if(void 0!=e)return PN(e,MN)||PN(e,"@@iterator")||jN[RN(e)]},LN=AA,FN=TE,BN=HS,UN=EE,zN=DN,HN=mA.TypeError,$N=AA,VN=HS,GN=OE,WN=aC,qN=AA,YN=HS,KN=EE,XN=function(e){return void 0!==e&&(ON.Array===e||IN[NN]===e)},ZN=pk,QN=rE,JN=function(e,t){var n=arguments.length<2?zN(e):t;if(FN(n))return BN(LN(n,e));throw HN(UN(e)+" is not iterable")},eI=DN,tI=function(e,t,n){var r,i;VN(e);try{if(!(r=GN(e,"return"))){if("throw"===t)throw n;return n}r=$N(r,e)}catch(qUe){i=!0,r=qUe}if("throw"===t)throw n;if(i)throw r;return VN(r),n},nI=mA.TypeError,rI=function(e,t){this.stopped=e,this.result=t},iI=rI.prototype,oI=function(e,t,n){var r,i,o,a,s,l,c,u=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),f=WN(t,u),m=function(e){return r&&tI(r,"normal",e),new rI(!0,e)},g=function(e){return d?(YN(e),h?f(e[0],e[1],m):f(e[0],e[1])):h?f(e,m):f(e)};if(p)r=e;else{if(!(i=eI(e)))throw nI(KN(e)+" is not iterable");if(XN(i)){for(o=0,a=ZN(e);a>o;o++)if((s=g(e[o]))&&QN(iI,s))return s;return new rI(!1)}r=JN(e,i)}for(l=r.next;!(c=qN(l,r)).done;){try{s=g(c.value)}catch(qUe){tI(r,"throw",qUe)}if("object"==typeof s&&s&&QN(iI,s))return s}return new rI(!1)},aI=cS("iterator"),sI=!1;try{var lI=0,cI={next:function(){return{done:!!lI++}},return:function(){sI=!0}};cI[aI]=function(){return this},Array.from(cI,(function(){throw 2}))}catch(qUe){}var uI=fO,dI=TO.CONSTRUCTOR||!function(e,t){if(!t&&!sI)return!1;var n=!1;try{var r={};r[aI]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(qUe){}return n}((function(e){uI.all(e).then(void 0,(function(){}))})),pI=AA,hI=TE,fI=CO,mI=dO,gI=oI;eT({target:"Promise",stat:!0,forced:dI},{all:function(e){var t=this,n=fI.f(t),r=n.resolve,i=n.reject,o=mI((function(){var n=hI(t.resolve),o=[],a=0,s=1;gI(e,(function(e){var l=a++,c=!1;s++,pI(n,t,e).then((function(e){c||(c=!0,o[l]=e,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise}});var bI=eT,vI=TO.CONSTRUCTOR,yI=fO,xI=nE,wI=ZA,AI=r_.exports,EI=yI&&yI.prototype;if(bI({target:"Promise",proto:!0,forced:vI,real:!0},{catch:function(e){return this.then(void 0,e)}}),wI(yI)){var SI=xI("Promise").prototype.catch;EI.catch!==SI&&AI(EI,"catch",SI,{unsafe:!0})}var _I=AA,kI=TE,TI=CO,CI=dO,OI=oI;eT({target:"Promise",stat:!0,forced:dI},{race:function(e){var t=this,n=TI.f(t),r=n.reject,i=CI((function(){var i=kI(t.resolve);OI(e,(function(e){_I(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var NI=AA,II=CO;eT({target:"Promise",stat:!0,forced:TO.CONSTRUCTOR},{reject:function(e){var t=II.f(this);return NI(t.reject,void 0,e),t.promise}});var RI=HS,PI=JA,jI=CO,MI=eT,DI=TO.CONSTRUCTOR,LI=function(e,t){if(RI(e),PI(t)&&t.constructor===e)return t;var n=jI.f(e);return(0,n.resolve)(t),n.promise};nE("Promise"),MI({target:"Promise",stat:!0,forced:DI},{resolve:function(e){return LI(this,e)}});var FI=CT,BI=mA.String,UI=function(e){if("Symbol"===FI(e))throw TypeError("Cannot convert a Symbol value to a string");return BI(e)},zI=HS,HI=bA,$I=mA.RegExp,VI=HI((function(){var e=$I("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),GI=VI||HI((function(){return!$I("a","y").sticky})),WI={BROKEN_CARET:VI||HI((function(){var e=$I("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:GI,UNSUPPORTED_Y:VI},qI={},YI=Ek,KI=Sk,XI=Object.keys||function(e){return YI(e,KI)},ZI=vA,QI=LS,JI=DS,eR=HS,tR=XA,nR=XI;qI.f=ZI&&!QI?Object.defineProperties:function(e,t){eR(e);for(var n,r=tR(t),i=nR(t),o=i.length,a=0;o>a;)JI.f(e,n=i[a++],r[n]);return e};var rR,iR=HS,oR=qI,aR=Sk,sR=y_,lR=sC,cR=SS,uR="prototype",dR="script",pR=v_("IE_PROTO"),hR=function(){},fR=function(e){return"<"+dR+">"+e+"</"+dR+">"},mR=function(e){e.write(fR("")),e.close();var t=e.parentWindow.Object;return e=null,t},gR=function(){try{rR=new ActiveXObject("htmlfile")}catch(qUe){}gR="undefined"!=typeof document?document.domain&&rR?mR(rR):function(){var e,t=cR("iframe"),n="java"+dR+":";return t.style.display="none",lR.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(fR("document.F=Object")),e.close(),e.F}():mR(rR);for(var e=aR.length;e--;)delete gR[uR][aR[e]];return gR()};sR[pR]=!0;var bR=Object.create||function(e,t){var n;return null!==e?(hR[uR]=iR(e),n=new hR,hR[uR]=null,n[pR]=e):n=gR(),void 0===t?n:oR.f(n,t)},vR=bA,yR=mA.RegExp,xR=vR((function(){var e=yR(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),wR=bA,AR=mA.RegExp,ER=wR((function(){var e=AR("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),SR=AA,_R=MA,kR=UI,TR=function(){var e=zI(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},CR=WI,OR=jE.exports,NR=bR,IR=L_.get,RR=xR,PR=ER,jR=OR("native-string-replace",String.prototype.replace),MR=RegExp.prototype.exec,DR=MR,LR=_R("".charAt),FR=_R("".indexOf),BR=_R("".replace),UR=_R("".slice),zR=function(){var e=/a/,t=/b*/g;return SR(MR,e,"a"),SR(MR,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),HR=CR.BROKEN_CARET,$R=void 0!==/()??/.exec("")[1];(zR||$R||HR||RR||PR)&&(DR=function(e){var t,n,r,i,o,a,s,l=this,c=IR(l),u=kR(e),d=c.raw;if(d)return d.lastIndex=l.lastIndex,t=SR(DR,d,u),l.lastIndex=d.lastIndex,t;var p=c.groups,h=HR&&l.sticky,f=SR(TR,l),m=l.source,g=0,b=u;if(h&&(f=BR(f,"y",""),-1===FR(f,"g")&&(f+="g"),b=UR(u,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==LR(u,l.lastIndex-1))&&(m="(?: "+m+")",b=" "+b,g++),n=new RegExp("^(?:"+m+")",f)),$R&&(n=new RegExp("^"+m+"$(?!\\s)",f)),zR&&(r=l.lastIndex),i=SR(MR,h?
vendor: 5,019 bytes, line 155
155n:l,b),h?i?(i.input=UR(i.input,g),i[0]=UR(i[0],g),i.index=l.lastIndex,l.lastIndex+=i[0].length):l.lastIndex=0:zR&&i&&(l.lastIndex=l.global?i.index+i[0].length:r),$R&&i&&i.length>1&&SR(jR,i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&p)for(i.groups=a=NR(null),o=0;o<p.length;o++)a[(s=p[o])[0]]=i[s[1]];return i});var VR=DR;eT({target:"RegExp",proto:!0,forced:/./.exec!==VR},{exec:VR});var GR=MA,WR=r_.exports,qR=VR,YR=bA,KR=cS,XR=n_,ZR=KR("species"),QR=RegExp.prototype,JR=function(e,t,n,r){var i=KR(e),o=!YR((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),a=o&&!YR((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[ZR]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](""),!t}));if(!o||!a||n){var s=GR(/./[i]),l=t(i,""[e],(function(e,t,n,r,i){var a=GR(e),l=t.exec;return l===qR||l===QR.exec?o&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));WR(String.prototype,e,l[0]),WR(QR,i,l[1])}r&&XR(QR[i],"sham",!0)},eP=MA,tP=ik,nP=UI,rP=qA,iP=eP("".charAt),oP=eP("".charCodeAt),aP=eP("".slice),sP=function(e){return function(t,n){var r,i,o=nP(rP(t)),a=tP(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=oP(o,a))<55296||r>56319||a+1===s||(i=oP(o,a+1))<56320||i>57343?e?iP(o,a):r:e?aP(o,a,a+2):i-56320+(r-55296<<10)+65536}},lP={codeAt:sP(!1),charAt:sP(!0)}.charAt,cP=function(e,t,n){return t+(n?lP(e,t).length:1)},uP=AA,dP=HS,pP=ZA,hP=BA,fP=VR,mP=mA.TypeError,gP=function(e,t){var n=e.exec;if(pP(n)){var r=uP(n,e,t);return null!==r&&dP(r),r}if("RegExp"===hP(e))return uP(fP,e,t);throw mP("RegExp#exec called on incompatible receiver")},bP=AA,vP=HS,yP=uk,xP=UI,wP=qA,AP=OE,EP=cP,SP=gP;JR("match",(function(e,t,n){return[function(t){var n=wP(this),r=void 0==t?void 0:AP(t,e);return r?bP(r,t,n):new RegExp(t)[e](xP(n))},function(e){var r=vP(this),i=xP(e),o=n(t,r,i);if(o.done)return o.value;if(!r.global)return SP(r,i);var a=r.unicode;r.lastIndex=0;for(var s,l=[],c=0;null!==(s=SP(r,i));){var u=xP(s[0]);l[c]=u,""===u&&(r.lastIndex=EP(i,yP(r.lastIndex),a)),c++}return 0===c?null:l}]}));var _P=MA,kP=VE,TP=Math.floor,CP=_P("".charAt),OP=_P("".replace),NP=_P("".slice),IP=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,RP=/\$([$&'`]|\d{1,2})/g,PP=nC,jP=AA,MP=MA,DP=JR,LP=bA,FP=HS,BP=ZA,UP=ik,zP=uk,HP=UI,$P=qA,VP=cP,GP=OE,WP=function(e,t,n,r,i,o){var a=n+e.length,s=r.length,l=RP;return void 0!==i&&(i=kP(i),l=IP),OP(o,l,(function(o,l){var c;switch(CP(l,0)){case"$":return"$";case"&":return e;case"`":return NP(t,0,n);case"'":return NP(t,a);case"<":c=i[NP(l,1,-1)];break;default:var u=+l;if(0===u)return o;if(u>s){var d=TP(u/10);return 0===d?o:d<=s?void 0===r[d-1]?CP(l,1):r[d-1]+CP(l,1):o}c=r[u-1]}return void 0===c?"":c}))},qP=gP,YP=cS("replace"),KP=Math.max,XP=Math.min,ZP=MP([].concat),QP=MP([].push),JP=MP("".indexOf),ej=MP("".slice),tj="$0"==="a".replace(/./,"$0"),nj=!!/./[YP]&&""===/./[YP]("a","$0");DP("replace",(function(e,t,n){var r=nj?"$":"$0";return[function(e,n){var r=$P(this),i=void 0==e?void 0:GP(e,YP);return i?jP(i,e,r,n):jP(t,HP(r),e,n)},function(e,i){var o=FP(this),a=HP(e);if("string"==typeof i&&-1===JP(i,r)&&-1===JP(i,"$<")){var s=n(t,o,a,i);if(s.done)return s.value}var l=BP(i);l||(i=HP(i));var c=o.global;if(c){var u=o.unicode;o.lastIndex=0}for(var d=[];;){var p=qP(o,a);if(null===p)break;if(QP(d,p),!c)break;""===HP(p[0])&&(o.lastIndex=VP(a,zP(o.lastIndex),u))}for(var h,f="",m=0,g=0;g<d.length;g++){for(var b=HP((p=d[g])[0]),v=KP(XP(UP(p.index),a.length),0),y=[],x=1;x<p.length;x++)QP(y,void 0===(h=p[x])?h:String(h));var w=p.groups;if(l){var A=ZP([b],y,v,a);void 0!==w&&QP(A,w);var E=HP(PP(i,void 0,A))}else E=WP(b,a,v,y,w,i);v>=m&&(f+=ej(a,m,v)+E,m=v+b.length)}return f+ej(a,m)}]}),!!LP((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!tj||nj);var rj=JA,ij=BA,oj=cS("match"),aj=function(e){var t;return rj(e)&&(void 0!==(t=e[oj])?!!t:"RegExp"==ij(e))},sj=mA.TypeError,lj=function(e){if(aj(e))throw sj("The method doesn't accept regular expressions");return e},cj=cS("match"),uj=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[cj]=!1,"/./"[e](t)}catch(r){}}return!1},dj=eT,pj=MA,hj=gA.f,fj=uk,mj=UI,gj=lj,bj=qA,vj=uj,yj=pj("".startsWith),xj=pj("".slice),wj=Math.min,Aj=vj("startsWith");dj({target:"String",proto:!0,forced:!(!Aj&&!!function(){var e=hj(String.prototype,"startsWith");return e&&!e.writable}())&&!Aj},{startsWith:function(e){var t=mj(bj(this));gj(e);var n=fj(wj(arguments.length>1?arguments[1]:void 0,t.length)),r=mj(e);return yj?yj(t,r,n):xj(t,n,n+r.length)===r}});var Ej=bR,Sj=DS,_j=cS("unscopables"),kj=Array.prototype;void 0==kj[_j]&&Sj.f(kj,_j,{configurable:!0,value:Ej(null)});var Tj=bk.includes,Cj=function(e){kj[_j][e]=!0};eT({target:"Array",proto:!0},{includes:function(e){return Tj(this,e,arguments.length>1?arguments[1]:void 0)}}),Cj("includes");var Oj=eT,Nj=MA,Ij=gA.f,Rj=uk,Pj=UI,jj=lj,Mj=qA,Dj=uj,Lj=Nj("".endsWith),Fj=Nj("".slice),Bj=Math.min,Uj=Dj("endsWith");
155function zj(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}Oj({target:"String",proto:!0,forced:!(!Uj&&!!function(){var e=Ij(String.prototype,"endsWith");return e&&!e.writable}())&&!Uj},{endsWith:function(e){var t=Pj(Mj(this));jj(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,i=void 0===n?r:Bj(Rj(n),r),o=Pj(e);return Lj?Lj(t,o,i):Fj(t,i-o.length,i)===o}});const Hj=e=>{const t=e.match(/^(https?\:)\/\/(([^:\/?#]*)(?:\:([0-9]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);return t&&{href:e,protocol:t[1],host:t[2],hostname:t[3],port:t[4],pathname:t[5],search:t[6],hash:t[7]}},$j=e=>zj(void 0,void 0,void 0,(function*(){mammoth||console.error("Please install mammoth and make sure mammoth.browser.min.js is loaded.");const t=yield(e=>new Promise(((t,n)=>{try{const n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="blob",n.onload=()=>{const e=new FileReader;e.readAsArrayBuffer(n.response),e.onloadend=()=>{t(e.result)}},n.send()}catch(WUe){n(`error while retrieving file ${e}.`)}})))(e);return(yield mammoth.convertToHtml({arrayBuffer:t})).value})),Vj=()=>{let e=null,t=0;return{subscribe:function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e3,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;if(!Gj(n))return e=setInterval((()=>{t++,t>=i&&clearInterval(e),(e=>{if(e){const t=e.src;e.src="about:blank",setTimeout((()=>{e&&(e.src=t)}),100)}})(n)}),r),e;e&&clearInterval(e)},unsubscribe:()=>{e&&clearInterval(e)}}},Gj=e=>{var t;let n=!1;try{n=Wj()?!(null===(t=null===e||void 0===e?void 0:e.contentWindow)||void 0===t?void 0:t.document):!(null===e||void 0===e?void 0:e.contentDocument)}catch(r){}return n},Wj=()=>/MSIE (\d+\.\d+);/.test(navigator.userAgent)||navigator.userAgent.indexOf("Trident/")>-1,qj=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"google",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";switch(t){case"google":r="https://docs.google.com/gview?url=%URL%&embedded=true";break;case"office":r="https://view.officeapps.live.com/op/embed.aspx?src=%URL%";break;case"pdf":r=""}const i="google"===t||"office"===t||"url"===t,o=(null===e||void 0===e?void 0:e.indexOf("/"))?encodeURIComponent(e):e;let a=r?r.replace("%URL%",o):e;if(n&&i&&"url"!==t){a=`${a}${n.startsWith("&")?"":"&"}${n}`}return{url:a,externalViewer:i}};var Yj="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{},Kj=function(e){return e&&e.Math==Math&&e},Xj=Kj("object"==typeof globalThis&&globalThis)||Kj("object"==typeof window&&window)||Kj("object"==typeof self&&self)||Kj("object"==typeof Yj&&Yj)||function(){return this}()||Function("return this")(),Zj=function(e){try{return!!e()}catch(qUe){return!0}},Qj=!Zj((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),Jj=Qj,eM=Function.prototype,tM=eM.bind,nM=eM.call,rM=Jj&&tM.bind(nM,nM),iM=Jj?function(e){return e&&rM(e)}:function(e){return e&&function(){return nM.apply(e,arguments)}},oM=iM,aM=oM({}.toString),sM=oM("".slice),lM=iM,cM=Zj,uM=function(e){return sM(aM(e),8,-1)},dM=Xj.Object,pM=lM("".split),hM=cM((function(){return!dM("z").propertyIsEnumerable(0)}))?function(e){return"String"==uM(e)?pM(e,""):dM(e)}:dM,fM=Xj.TypeError,mM=function(e){if(void 0==e)throw fM("Can't call method on "+e);return e},gM=hM,bM=mM,vM=function(e){return gM(bM(e))},yM={exports:{}},xM=Xj,wM=Object.defineProperty,AM=function(e,t){try{wM(xM,e,{value:t,configurable:!0,writable:!0})}catch(qUe){xM[e]=t}return t},EM=AM,SM="__core-js_shared__",_M=Xj[SM]||EM(SM,{}),kM=_M;(yM.exports=function(e,t){return kM[e]||(kM[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.22.2",mode:"global",copyright:"\xa9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.2/LICENSE",source:"https://github.com/zloirock/core-js"});var TM,CM,OM=mM,NM=Xj.Object,IM=function(e){return NM(OM(e))},RM=IM,PM=iM({}.hasOwnProperty),jM=Object.hasOwn||function(e,t){return PM(RM(e),t)},MM=iM,DM=0,LM=Math.random(),FM=MM(1..toString),BM=function(e){return"Symbol("+(void 0===e?"":e)+")_"+FM(++DM+LM,36)},UM=function(e){return"function"==typeof e},zM=Xj,HM=UM,$M=function(e,t){return arguments.length<2?(n=zM[e],HM(n)?n:void 0):zM[e]&&zM[e][t];var n},VM=Xj,GM=$M("navigator","userAgent")||"",WM=VM.process,qM=VM.Deno,YM=WM&&WM.versions||qM&&qM.version,KM=YM&&YM.v8;KM&&(CM=(TM=KM.split("."))[0]>0&&TM[0]<4?1:+(TM[0]+TM[1])),!CM&&GM&&(!(TM=GM.match(/Edge\/(\d+)/))||TM[1]>
vendor: 5,266 bytes, line 155
155=74)&&(TM=GM.match(/Chrome\/(\d+)/))&&(CM=+TM[1]);var XM=CM,ZM=Zj,QM=!!Object.getOwnPropertySymbols&&!ZM((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&XM&&XM<41})),JM=QM&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,eD=Xj,tD=yM.exports,nD=jM,rD=BM,iD=QM,oD=JM,aD=tD("wks"),sD=eD.Symbol,lD=sD&&sD.for,cD=oD?sD:sD&&sD.withoutSetter||rD,uD=function(e){if(!nD(aD,e)||!iD&&"string"!=typeof aD[e]){var t="Symbol."+e;iD&&nD(sD,e)?aD[e]=sD[e]:aD[e]=oD&&lD?lD(t):cD(t)}return aD[e]},dD=UM,pD=function(e){return"object"==typeof e?null!==e:dD(e)},hD=Xj,fD=pD,mD=hD.String,gD=hD.TypeError,bD=function(e){if(fD(e))return e;throw gD(mD(e)+" is not an object")},vD={},yD=!Zj((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),xD=yD&&Zj((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),wD={},AD=pD,ED=Xj.document,SD=AD(ED)&&AD(ED.createElement),_D=function(e){return SD?ED.createElement(e):{}},kD=_D,TD=!yD&&!Zj((function(){return 7!=Object.defineProperty(kD("div"),"a",{get:function(){return 7}}).a})),CD=Qj,OD=Function.prototype.call,ND=CD?OD.bind(OD):function(){return OD.apply(OD,arguments)},ID=iM({}.isPrototypeOf),RD=$M,PD=UM,jD=ID,MD=JM,DD=Xj.Object,LD=MD?function(e){return"symbol"==typeof e}:function(e){var t=RD("Symbol");return PD(t)&&jD(t.prototype,DD(e))},FD=Xj.String,BD=UM,UD=function(e){try{return FD(e)}catch(qUe){return"Object"}},zD=Xj.TypeError,HD=function(e){if(BD(e))return e;throw zD(UD(e)+" is not a function")},$D=ND,VD=UM,GD=pD,WD=Xj.TypeError,qD=ND,YD=pD,KD=LD,XD=function(e,t){var n=e[t];return null==n?void 0:HD(n)},ZD=function(e,t){var n,r;if("string"===t&&VD(n=e.toString)&&!GD(r=$D(n,e)))return r;if(VD(n=e.valueOf)&&!GD(r=$D(n,e)))return r;if("string"!==t&&VD(n=e.toString)&&!GD(r=$D(n,e)))return r;throw WD("Can't convert object to primitive value")},QD=uD,JD=Xj.TypeError,eL=QD("toPrimitive"),tL=function(e,t){if(!YD(e)||KD(e))return e;var n,r=XD(e,eL);if(r){if(void 0===t&&(t="default"),n=qD(r,e,t),!YD(n)||KD(n))return n;throw JD("Can't convert object to primitive value")}return void 0===t&&(t="number"),ZD(e,t)},nL=LD,rL=function(e){var t=tL(e,"string");return nL(t)?t:t+""},iL=yD,oL=TD,aL=xD,sL=bD,lL=rL,cL=Xj.TypeError,uL=Object.defineProperty,dL=Object.getOwnPropertyDescriptor,pL="enumerable",hL="configurable",fL="writable";wD.f=iL?aL?function(e,t,n){if(sL(e),t=lL(t),sL(n),"function"===typeof e&&"prototype"===t&&"value"in n&&fL in n&&!n[fL]){var r=dL(e,t);r&&r[fL]&&(e[t]=n.value,n={configurable:hL in n?n[hL]:r[hL],enumerable:pL in n?n[pL]:r[pL],writable:!1})}return uL(e,t,n)}:uL:function(e,t,n){if(sL(e),t=lL(t),sL(n),oL)try{return uL(e,t,n)}catch(qUe){}if("get"in n||"set"in n)throw cL("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var mL=Math.ceil,gL=Math.floor,bL=function(e){var t=+e;return t!==t||0===t?0:(t>0?gL:mL)(t)},vL=bL,yL=Math.max,xL=Math.min,wL=bL,AL=Math.min,EL=function(e){return e>0?AL(wL(e),9007199254740991):0},SL=vM,_L=function(e,t){var n=vL(e);return n<0?yL(n+t,0):xL(n,t)},kL=function(e){return EL(e.length)},TL=function(e){return function(t,n,r){var i,o=SL(t),a=kL(o),s=_L(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},CL={includes:TL(!0),indexOf:TL(!1)},OL={},NL=jM,IL=vM,RL=CL.indexOf,PL=OL,jL=iM([].push),ML=function(e,t){var n,r=IL(e),i=0,o=[];for(n in r)!NL(PL,n)&&NL(r,n)&&jL(o,n);for(;t.length>i;)NL(r,n=t[i++])&&(~RL(o,n)||jL(o,n));return o},DL=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],LL=ML,FL=DL,BL=Object.keys||function(e){return LL(e,FL)},UL=yD,zL=xD,HL=wD,$L=bD,VL=vM,GL=BL;vD.f=UL&&!zL?Object.defineProperties:function(e,t){$L(e);for(var n,r=VL(t),i=GL(t),o=i.length,a=0;o>a;)HL.f(e,n=i[a++],r[n]);return e};var WL,qL=$M("document","documentElement"),YL=yM.exports,KL=BM,XL=YL("keys"),ZL=function(e){return XL[e]||(XL[e]=KL(e))},QL=bD,JL=vD,eF=DL,tF=OL,nF=qL,rF=_D,iF="prototype",oF="script",aF=ZL("IE_PROTO"),sF=function(){},lF=function(e){return"<"+oF+">"+e+"</"+oF+">"},cF=function(e){e.write(lF("")),e.close();var t=e.parentWindow.Object;return e=null,t},uF=function(){try{WL=new ActiveXObject("htmlfile")}catch(qUe){}uF="undefined"!=typeof document?document.domain&&WL?cF(WL):function(){var e,t=rF("iframe"),n="java"+oF+":";return t.style.display="none",nF.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(lF("document.F=Object")),e.close(),e.F}():cF(WL);for(var e=eF.length;e--;)delete uF[iF][eF[e]];return uF()};tF[aF]=!0;var dF=Object.create||function(e,t){var n;return null!==e?(sF[iF]=QL(e),n=new sF,sF[iF]=null,n[aF]=e):n=uF(),void 0===t?n:JL.f(n,t)},pF=dF,hF=wD,fF=uD("unscopables"),mF=Array.prototype;void 0==mF[fF]&&hF.f(mF,fF,{configurable:!0,value:pF(null)});var gF={},bF=UM,vF=_M,yF=iM(Function.toString);bF(vF.inspectSource)||(vF.inspectSource=function(e){return yF(e)});var xF,wF,AF,EF=vF.inspectSource,SF=UM,_F=EF,kF=Xj.WeakMap,TF=SF(kF)&&/native code/.test(_F(kF)),CF=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},OF=wD,NF=CF,IF=yD?function(e,t,n){return OF.f(e,t,NF(1,n))}:function(e,t,n){return e[t]=n,e}
vendor: 5,807 bytes, line 155
155,RF=TF,PF=Xj,jF=iM,MF=pD,DF=IF,LF=jM,FF=_M,BF=ZL,UF=OL,zF="Object already initialized",HF=PF.TypeError,$F=PF.WeakMap;if(RF||FF.state){var VF=FF.state||(FF.state=new $F),GF=jF(VF.get),WF=jF(VF.has),qF=jF(VF.set);xF=function(e,t){if(WF(VF,e))throw new HF(zF);return t.facade=e,qF(VF,e,t),t},wF=function(e){return GF(VF,e)||{}},AF=function(e){return WF(VF,e)}}else{var YF=BF("state");UF[YF]=!0,xF=function(e,t){if(LF(e,YF))throw new HF(zF);return t.facade=e,DF(e,YF,t),t},wF=function(e){return LF(e,YF)?e[YF]:{}},AF=function(e){return LF(e,YF)}}var KF={set:xF,get:wF,has:AF,enforce:function(e){return AF(e)?wF(e):xF(e,{})},getterFor:function(e){return function(t){var n;if(!MF(t)||(n=wF(t)).type!==e)throw HF("Incompatible receiver, "+e+" required");return n}}},XF={},ZF={},QF={}.propertyIsEnumerable,JF=Object.getOwnPropertyDescriptor,eB=JF&&!QF.call({1:2},1);ZF.f=eB?function(e){var t=JF(this,e);return!!t&&t.enumerable}:QF;var tB=yD,nB=ND,rB=ZF,iB=CF,oB=vM,aB=rL,sB=jM,lB=TD,cB=Object.getOwnPropertyDescriptor;XF.f=tB?cB:function(e,t){if(e=oB(e),t=aB(t),lB)try{return cB(e,t)}catch(qUe){}if(sB(e,t))return iB(!nB(rB.f,e,t),e[t])};var uB={exports:{}},dB=yD,pB=jM,hB=Function.prototype,fB=dB&&Object.getOwnPropertyDescriptor,mB=pB(hB,"name"),gB={EXISTS:mB,PROPER:mB&&"something"===function(){}.name,CONFIGURABLE:mB&&(!dB||dB&&fB(hB,"name").configurable)},bB=Xj,vB=UM,yB=jM,xB=IF,wB=AM,AB=EF,EB=gB.CONFIGURABLE,SB=KF.get,_B=KF.enforce,kB=String(String).split("String");(uB.exports=function(e,t,n,r){var i,o=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,s=!!r&&!!r.noTargetGet,l=r&&void 0!==r.name?r.name:t;vB(n)&&("Symbol("===String(l).slice(0,7)&&(l="["+String(l).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!yB(n,"name")||EB&&n.name!==l)&&xB(n,"name",l),(i=_B(n)).source||(i.source=kB.join("string"==typeof l?l:""))),e!==bB?(o?!s&&e[t]&&(a=!0):delete e[t],a?e[t]=n:xB(e,t,n)):a?e[t]=n:wB(t,n)})(Function.prototype,"toString",(function(){return vB(this)&&SB(this).source||AB(this)}));var TB={},CB=ML,OB=DL.concat("length","prototype");TB.f=Object.getOwnPropertyNames||function(e){return CB(e,OB)};var NB={};NB.f=Object.getOwnPropertySymbols;var IB,RB,PB,jB=$M,MB=TB,DB=NB,LB=bD,FB=iM([].concat),BB=jB("Reflect","ownKeys")||function(e){var t=MB.f(LB(e)),n=DB.f;return n?FB(t,n(e)):t},UB=jM,zB=BB,HB=XF,$B=wD,VB=Zj,GB=UM,WB=/#|\.prototype\./,qB=function(e,t){var n=KB[YB(e)];return n==ZB||n!=XB&&(GB(t)?VB(t):!!t)},YB=qB.normalize=function(e){return String(e).replace(WB,".").toLowerCase()},KB=qB.data={},XB=qB.NATIVE="N",ZB=qB.POLYFILL="P",QB=qB,JB=Xj,eU=XF.f,tU=IF,nU=uB.exports,rU=AM,iU=function(e,t,n){for(var r=zB(t),i=$B.f,o=HB.f,a=0;a<r.length;a++){var s=r[a];UB(e,s)||n&&UB(n,s)||i(e,s,o(t,s))}},oU=QB,aU=function(e,t){var n,r,i,o,a,s=e.target,l=e.global,c=e.stat;if(n=l?JB:c?JB[s]||rU(s,{}):(JB[s]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=eU(n,r))&&a.value:n[r],!oU(l?r:s+(c?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;iU(o,i)}(e.sham||i&&i.sham)&&tU(o,"sham",!0),nU(n,r,o,e)}},sU=!Zj((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),lU=Xj,cU=jM,uU=UM,dU=IM,pU=sU,hU=ZL("IE_PROTO"),fU=lU.Object,mU=fU.prototype,gU=pU?fU.getPrototypeOf:function(e){var t=dU(e);if(cU(t,hU))return t[hU];var n=t.constructor;return uU(n)&&t instanceof n?n.prototype:t instanceof fU?mU:null},bU=Zj,vU=UM,yU=gU,xU=uB.exports,wU=uD("iterator"),AU=!1;[].keys&&("next"in(PB=[].keys())?(RB=yU(yU(PB)))!==Object.prototype&&(IB=RB):AU=!0),(void 0==IB||bU((function(){var e={};return IB[wU].call(e)!==e})))&&(IB={}),vU(IB[wU])||xU(IB,wU,(function(){return this}));var EU={IteratorPrototype:IB,BUGGY_SAFARI_ITERATORS:AU},SU=wD.f,_U=jM,kU=uD("toStringTag"),TU=function(e,t,n){e&&!n&&(e=e.prototype),e&&!_U(e,kU)&&SU(e,kU,{configurable:!0,value:t})},CU=EU.IteratorPrototype,OU=dF,NU=CF,IU=TU,RU=gF,PU=function(){return this},jU=Xj,MU=UM,DU=jU.String,LU=jU.TypeError,FU=iM,BU=bD,UU=function(e){if("object"==typeof e||MU(e))return e;throw LU("Can't set "+DU(e)+" as a prototype")},zU=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=FU(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(qUe){}return function(n,r){return BU(n),UU(r),t?e(n,r):n.__proto__=r,n}}():void 0),HU=aU,$U=ND,VU=gB,GU=UM,WU=function(e,t,n,r){var i=t+" Iterator";return e.prototype=OU(CU,{next:NU(+!r,n)}),IU(e,i,!1),RU[i]=PU,e},qU=gU,YU=zU,KU=TU,XU=IF,ZU=uB.exports,QU=gF,JU=VU.PROPER,ez=VU.CONFIGURABLE,tz=EU.IteratorPrototype,nz=EU.BUGGY_SAFARI_ITERATORS,rz=uD("iterator"),iz="keys",oz="values",az="entries",sz=function(){return this},lz=vM,cz=function(e){mF[fF][e]=!0},uz=gF,dz=KF,pz=wD.f,hz=function(e,t,n,r,i,o,a){WU(n,t,r);var s,l,c,u=function(e){if(e===i&&m)return m;if(!nz&&e in h)return h[e];switch(e){case iz:case oz:case az:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+" Iterator",p=!1,h=e.prototype,f=h[rz]||h["@@iterator"]||i&&h[i],m=!nz&&f||u(i),g="Array"==t&&h.entries||f;if(g&&(s=qU(g.call(new e)))!==Object.prototype&&s.next&&(qU(s)!==tz&&(YU?YU(s,tz):GU(s[rz])||ZU(s,rz,sz)),KU(s,d,!0)),JU&&i==oz&&f&&f.name!==oz&&(ez?XU(h,"name",oz):(p=!0,m=function(){return $U(f,this)})),i)if(l={values:u(oz),keys:o?m:u(iz),entries:u(az)},a)for(c in l)(nz||p||!(c in h))&&ZU(h,c,l[c]);else HU({target:t,proto:!0,forced:nz||p},l);return h[rz]!==m&&ZU(h,rz,m,{name:i}),QU[t]=m,l},fz=yD,mz="Array Iterator",gz=dz.set,bz=dz.getterFor(mz),vz=hz(Array,"Array",(function(e,t){gz(this,{type:mz,target:lz(e),index:0,kind:t})}),(function(){var e=bz(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),yz=uz.Arguments=uz.Array;
155if(cz("keys"),cz("values"),cz("entries"),fz&&"values"!==yz.name)try{pz(yz,"name",{value:"values"})}catch(qUe){}var xz=_D("span").classList,wz=xz&&xz.constructor&&xz.constructor.prototype,Az=wz===Object.prototype?void 0:wz,Ez=Xj,Sz={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},_z=Az,kz=vz,Tz=IF,Cz=uD,Oz=Cz("iterator"),Nz=Cz("toStringTag"),Iz=kz.values,Rz=function(e,t){if(e){if(e[Oz]!==Iz)try{Tz(e,Oz,Iz)}catch(qUe){e[Oz]=Iz}if(e[Nz]||Tz(e,Nz,t),Sz[t])for(var n in kz)if(e[n]!==kz[n])try{Tz(e,n,kz[n])}catch(qUe){e[n]=kz[n]}}};for(var Pz in Sz)Rz(Ez[Pz]&&Ez[Pz].prototype,Pz);Rz(_z,"DOMTokenList");var jz=yD,Mz=iM,Dz=ND,Lz=Zj,Fz=BL,Bz=NB,Uz=ZF,zz=IM,Hz=hM,$z=Object.assign,Vz=Object.defineProperty,Gz=Mz([].concat),Wz=!$z||Lz((function(){if(jz&&1!==$z({b:1},$z(Vz({},"a",{enumerable:!0,get:function(){Vz(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=$z({},e)[n]||Fz($z({},t)).join("")!=r}))?function(e,t){for(var n=zz(e),r=arguments.length,i=1,o=Bz.f,a=Uz.f;r>i;)for(var s,l=Hz(arguments[i++]),c=o?Gz(Fz(l),o(l)):Fz(l),u=c.length,d=0;u>d;)s=c[d++],jz&&!Dz(a,l,s)||(n[s]=l[s]);return n}:$z,qz=Wz;function Yz(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}aU({target:"Object",stat:!0,forced:Object.assign!==qz},{assign:qz});const Kz={loaded:()=>{},googleCheckContentLoaded:!0,googleCheckInterval:3e3,queryParams:"",url:"",overrideLocalhost:"",googleMaxChecks:5,viewer:"google",viewerUrl:"",style:{width:"100%",height:"100%"},className:""},Xz=e=>{var t,n,r,i,o;const a=(0,c.useRef)(null),[s,l]=(0,c.useState)({url:"",isSwitching:!1,externalViewer:!0,docHtml:{__html:""}}),u=(0,c.useRef)(),d=(0,c.useRef)(),p=e=>Yz(void 0,void 0,void 0,(function*(){if(d.current){const t=a.current;u&&u.current&&u.current.unsubscribe(),"google"===d.current.viewer&&!0===d.current.googleCheckContentLoaded&&h(t,e.url,d.current.googleCheckInterval,d.current.googleMaxChecks)}}));(0,c.useEffect)((()=>{let e;return s.isSwitching&&(l((e=>Object.assign(Object.assign({},e),{isSwitching:!1}))),e=setTimeout((()=>{p({url:s.url,externalViewer:s.externalViewer})}),500)),()=>{e&&clearTimeout(e)}}),[s.isSwitching]),(0,c.useEffect)((()=>{d.current=Object.assign(Object.assign({},Kz),e);let t=qj(d.current.url,d.current.viewer,d.current.queryParams,d.current.viewerUrl);if(t.externalViewer&&d.current.overrideLocalhost&&(e=>{const t=Hj(e),n=(null===t||void 0===t?void 0:t.hostname)||"";return["localhost","127.0.0.1","","::1"].includes(n)||n.startsWith("192.168.")||n.startsWith("10.0.")||n.endsWith(".local")})(d.current.url)){const e=((e,t)=>{const n=Hj(e),r=Hj(t);return n&&r?e.replace(n.port?`${n.hostname}:${n.port}`:n.hostname,r.port?`${r.hostname}:${r.port}`:r.hostname):e})(d.current.url,d.current.overrideLocalhost);t=qj(e,d.current.viewer,d.current.queryParams,d.current.viewerUrl)}if(l({url:t.url,externalViewer:t.externalViewer,isSwitching:!1,docHtml:{__html:""}}),a&&a.current){const e=a.current;e.src&&e.src!==`${window.location.protocol}//${window.location.host}/`&&e.src!==t.url?l((e=>Object.assign(Object.assign({},e),{isSwitching:!0}))):p(t)}else if("mammoth"===d.current.viewer){(()=>Yz(void 0,void 0,void 0,(function*(){const e={__html:yield $j(t.url)};l({url:"",docHtml:e,isSwitching:!1,externalViewer:!1})})))()}return()=>{u&&u.current&&u.current.unsubscribe()}}),[e]);const h=(e,t,n,r)=>{u.current=Vj(),u.current.subscribe(e,n,r)};return s.isSwitching?null:s.externalViewer?(0,L.jsx)("iframe",{style:null===(t=d.current)||void 0===t?void 0:t.style,className:null===(n=d.current)||void 0===n?void 0:n.className,ref:a,onLoad:()=>{d.current&&a&&null!==a.current&&Gj(a.current)&&(d.current.loaded&&d.current.loaded(),u.current&&u.current.unsubscribe())},id:"iframe",title:"iframe",frameBorder:"0",src:s.url}):"pdf"!==(null===(r=d.current)||void 0===r?void 0:r.viewer)?(0,L.jsx)("div",{dangerouslySetInnerHTML:s.docHtml}):s.url?(0,L.jsx)("object",Object.assign({data:s.url,style:null===(i=d.current)||void 0===i?void 0:i.style,className:null===(o=d.current)||void 0===o?void 0:o.className,type:"application/pdf",width:"100%",height:"100%"},{children:(0,L.jsxs)("p",{children:["Your browser does not support PDFs.",(0,L.jsx)("a",Object.assign({href:s.url},{children:"Download the PDF"})),"."]})})):null},Zz=(0,Ns.A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]),Qz=(0,Ns.A)("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]),Jz=(0,Ns.A)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);var eH=__webpack_require__(40978);var tH=e=>{var t,n;let{file:r,close:o,openDrawer:a,fileName:s="",kbName:l,setOpen:u,err:d=""}=e;const{getFileSummary:p,changeTags:h}=ma(),f=(0,te.Zp)(),m=localStorage.getItem("uid"),[g,b]=(0,c.useState)([]),[v,y]=(0,c.useState)(0),[x,w]=(0,c.useState)(""),[A,E]=(0,c.useState)({}),[S,_]=(0,c.useState)(!0),[k,T]=(0,c.useState)(!1),[C,O]=(0,c.useState)(d),N=async()=>
155{if(s){_(!0);try{var e;E({}),y(0);const t=s.replace("; ",""),n=await p(t,l);if(404===(null===n||void 0===n?void 0:n.status))return void O("File not found:",n.details);const r=(null===n||void 0===n||null===(e=n.data)||void 0===e?void 0:e.tags)||[];b(r),E(null===n||void 0===n?void 0:n.data)}catch(C){console.error(C)}finally{_(!1)}}};(0,c.useEffect)((()=>{N()}),[s]);if(S)return(0,L.jsx)(Xw,{anchor:"right",open:a,onClose:()=>{if(S)return null;o()},children:(0,L.jsx)("div",{className:"md:w-[50vw] w-[80vw] bg-white",children:(0,L.jsxs)("div",{className:"h-[80vh] flex flex-col justify-center items-center",children:[(0,L.jsx)(dA,{size:30,color:"secondary"}),(0,L.jsx)(Te.A,{variant:"h5",sx:{mt:2},children:"Loading ..."})]})})});if(C)return(0,L.jsx)(Xw,{anchor:"right",open:a,onClose:()=>{if(S)return null;O(""),o()},children:(0,L.jsx)("div",{className:"md:w-[50vw] w-[80vw] bg-white",children:(0,L.jsx)("div",{className:"h-[80vh] flex flex-col justify-center items-center",children:(0,L.jsx)(Te.A,{variant:"h5",sx:{mt:2},children:C})})})});const I=e=>{if(!e)return"Today";const t=e.includes("/")?new Date(e.split("/").reverse().join("-")):new Date(parseInt(e)),n=new Date,r=Math.abs(n-t),i=Math.floor(r/864e5);return 0===i?"Today":`${i}d`},R=e=>{var t;let{assistant:n}=e;const[r,o]=(0,c.useState)(null),a=()=>{o(null)};return(0,L.jsx)(i.N_,{to:`/api?k=${n.apikey}`,className:"w-full",children:(0,L.jsxs)(Co.A,{onClick:()=>f(`/api?k=${n.apikey}`),className:"hover:shadow-md transition-all cursor-pointer",children:[(0,L.jsxs)("div",{className:"flex items-start gap-6",children:[(0,L.jsxs)("div",{className:"flex-1",children:[(0,L.jsxs)("div",{className:"flex items-center",children:[null!==n&&void 0!==n&&n.image&&"null"!==n.image?(0,L.jsx)("img",{className:"w-10 h-10 rounded-full mr-2",src:n.image}):(0,L.jsx)(Ba,{className:"w-8 h-8 text-[#5E35B1] rounded-full mr-2"}),(0,L.jsxs)("div",{children:[(0,L.jsx)("h3",{className:"text-lg font-semibold text-gray-900",children:n.botname}),(0,L.jsxs)("p",{className:"text-sm text-gray-500",children:[n.organization," | ",n.team_name]})]})]}),(0,L.jsx)("p",{className:"text-sm text-gray-600 my-2",children:n.initial}),(0,L.jsxs)("div",{className:"flex items-center gap-4 mb-4",children:[(0,L.jsxs)("div",{className:"flex items-center gap-1",children:[(0,L.jsx)(Zz,{className:"w-4 h-4 text-gray-400"}),(0,L.jsx)("span",{className:"text-sm",children:null===n||void 0===n?void 0:n.views})]}),(0,L.jsxs)("div",{className:"flex items-center gap-1",children:[(0,L.jsx)(Qz,{className:"w-4 h-4 text-gray-400"}),(0,L.jsx)("span",{className:"text-sm",children:null===n||void 0===n?void 0:n.chats})]}),(0,L.jsxs)("div",{className:"flex items-center gap-1",children:[(0,L.jsx)(Jz,{className:"w-4 h-4 text-gray-400"}),(0,L.jsx)("span",{className:"text-sm",children:I((null===n||void 0===n?void 0:n.created_at)||(null===n||void 0===n?void 0:n.timestamp))})]})]}),(0,L.jsx)("div",{className:"flex flex-wrap gap-2",children:null===(t=n.tags)||void 0===t?void 0:t.map((e=>(0,L.jsxs)("span",{className:"px-2 py-1 bg-blue-50 text-blue-700 rounded-full text-xs",children:["#",e]},e)))})]}),m===(null===n||void 0===n?void 0:n.uid)&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Pa.A,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(e.currentTarget)},children:(0,L.jsx)(jw,{className:"w-5 h-5 text-purple-500 transition-transform"})}),(0,L.jsx)(pA.A,{anchorEl:r,open:Boolean(r),onClose:a,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:(0,L.jsxs)(Qs.A,{onClick:e=>{e.preventDefault(),e.stopPropagation();const t=btoa("asklly.ai"+String(n.id));f(`/edit?id=${t}`),a()},children:[(0,L.jsx)(eH.A,{}),"\xa0\xa0\xa0 Edit"]})})]})]}),(0,L.jsx)("button",{className:"bg-[#673AB7] px-4 py-2 mt-4 rounded-md text-white hover:bg-[#7d57be] transition-all ease-in-out duration-200",onClick:()=>f(`/api?k=${n.apikey}`),children:"Start Chat"})]})})};return(0,L.jsx)(Xw,{anchor:"right",open:a,onClose:()=>{if(S)return null;y(0),o()},children:(0,L.jsxs)("div",{className:"md:w-[80vw] lg:w-[50vw] w-screen bg-white",children:[(0,L.jsxs)("div",{className:"flex items-center justify-between p-6",children:[(0,L.jsx)("h2",{className:"font-bold text-xl",children:s}),(0,L.jsxs)("div",{className:"flex items-center gap-2",children:[(0,L.jsx)(Pa.A,{onClick:()=>{const e=v;N(),y(e)},title:"Refresh Document",children:(0,L.jsx)(Mw,{})}),(0,L.jsx)("button",{onClick:()=>{y(0),o()},children:(0,L.jsx)(Dw,{className:"cursor-pointer"})})]})]}),(0,L.jsxs)(Ss,{value:v,textColor:"secondary",indicatorColor:"secondary",onChange:(e,t)=>
155{y(t)},"aria-label":"basic tabs example",children:[(0,L.jsx)(Os,{label:"Summary"}),(0,L.jsx)(Os,{label:"Source"}),(0,L.jsx)(Os,{label:"AI Assitants"})]}),1===v&&(0,L.jsx)("div",{className:"h-[80vh] p-1",children:(0,L.jsx)(Xz,{viewerUrl:"https://docs.google.com/gview?url=%URL%&embedded=true",url:r||"",loaded:()=>_(!1),viewer:"url"})}),0===v&&A&&(0,L.jsxs)("div",{className:"h-[80vh] p-10",children:[(0,L.jsx)(Te.A,{variant:"h3",children:"Summary"}),(0,L.jsx)("p",{className:"mt-3",children:null===A||void 0===A?void 0:A.summary}),(0,L.jsx)(Te.A,{className:"mt-4",variant:"h3",children:"Keywords"}),(0,L.jsx)("div",{className:"mt-3 flex flex-wrap gap-2",children:(null===A||void 0===A?void 0:A.keywords)&&(null===A||void 0===A||null===(t=A.keywords.replace('"',"").replace('"',""))||void 0===t?void 0:t.split(",").map(((e,t)=>(0,L.jsx)("span",{className:"bg-gray-100 px-4 py-1 rounded-full",children:e},t))))}),(0,L.jsx)(Te.A,{className:"mt-4",variant:"h3",children:"Tags"}),(0,L.jsx)("div",{className:"mt-3 flex flex-wrap gap-2",children:g.length>0?g.map(((e,t)=>(0,L.jsx)(so,{color:"secondary",label:`#${e}`,className:"mr-2 mb-2",onDelete:()=>{return t=e,void b((e=>e.filter((e=>e!==t))));var t}},t))):(0,L.jsx)(Te.A,{className:"mt-4",variant:"h3",children:"No Tags Entered"})}),(0,L.jsxs)("div",{className:"mt-3 flex flex-wrap gap-2",children:[(0,L.jsx)(Xa.A,{fullWidth:!0,variant:"outlined",placeholder:"Add Tags",value:x,onChange:e=>{w(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&""!==x.trim()&&(b((e=>[...e,x.trim()])),w(""))},color:"secondary"}),(0,L.jsx)(Yx.A,{variant:"outlined",color:"secondary",className:"mt-4",onClick:async()=>{T(!0);const e=g.length>0?g.join(","):"null",t=new FormData;t.append("tags",e),t.append("id",r),await h(t),w(""),T(!1)},disabled:k,children:k?(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(dA,{color:"secondary",size:25})}):"Add Tags"})]})]}),2===v&&(0,L.jsx)("div",{className:"h-[80vh] p-10",children:(null===(n=A.associated_bots)||void 0===n?void 0:n.length)>0?A.associated_bots.map(((e,t)=>(0,L.jsx)("div",{className:"mt-3 flex flex-wrap gap-2",children:(0,L.jsx)(R,{assistant:e},t)}))):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Te.A,{children:"This document is not part of any AI assistant!"}),(0,L.jsx)(Yx.A,{variant:"outlined",color:"secondary",className:"mt-4",onClick:()=>u(!0),disabled:k,children:k?(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(dA,{color:"secondary",size:25})}):"Add to AI assistant"})]})})]})})},nH=__webpack_require__(35254),rH=__webpack_require__.n(nH);function iH(e){return kw({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 0 0-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 0 0 0 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 0 0-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 0 0-11.3 0L363 475.3l-43-43a7.85 7.85 0 0 0-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 0 0 0 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 0 1-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 0 1-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z"}}]})(e)}const oH=(0,Ns.A)("ClipboardCopy",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]]);function aH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function sH(e){return function(e){if(Array.isArray(e))return aH(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return aH(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?aH(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lH(e){return lH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lH(e)}function cH(e){var t=function(e,t){if("object"!=lH(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=lH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==lH(t)?t:t+""}function uH(e,t,n){return(t=cH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
vendor: 10,185 bytes, line 155
155t%2?dH(Object(n),!0).forEach((function(t){uH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var hH={};function fH(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return function(e){if(0===e.length||1===e.length)return e;var t=e.join(".");return hH[t]||(hH[t]=function(e){var t=e.length;return 0===t||1===t?e:2===t?[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])]:3===t?[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])]:t>=4?[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]:void 0}(e)),hH[t]}(e.filter((function(e){return"token"!==e}))).reduce((function(e,t){return pH(pH({},e),n[t])}),t)}function mH(e){return e.join(" ")}function gH(e){var t=e.node,n=e.stylesheet,r=e.style,i=void 0===r?{}:r,o=e.useInlineStyles,a=e.key,s=t.properties,l=t.type,u=t.tagName,d=t.value;if("text"===l)return d;if(u){var p,h=function(e,t){var n=0;return function(r){return n+=1,r.map((function(r,i){return gH({node:r,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(i)})}))}}(n,o);if(o){var f=Object.keys(n).reduce((function(e,t){return t.split(".").forEach((function(t){e.includes(t)||e.push(t)})),e}),[]),m=s.className&&s.className.includes("token")?["token"]:[],g=s.className&&m.concat(s.className.filter((function(e){return!f.includes(e)})));p=pH(pH({},s),{},{className:mH(g)||void 0,style:fH(s.className,Object.assign({},s.style,i),n)})}else p=pH(pH({},s),{},{className:mH(s.className)});var b=h(t.children);return c.createElement(u,(0,R.A)({key:a},p),b)}}var bH=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function vH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vH(Object(n),!0).forEach((function(t){uH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xH=/\n/g;function wH(e){var t=e.codeString,n=e.codeStyle,r=e.containerStyle,i=void 0===r?{float:"left",paddingRight:"10px"}:r,o=e.numberStyle,a=void 0===o?{}:o,s=e.startingLineNumber;return c.createElement("code",{style:Object.assign({},n,i)},function(e){var t=e.lines,n=e.startingLineNumber,r=e.style;return t.map((function(e,t){var i=t+n;return c.createElement("span",{key:"line-".concat(t),className:"react-syntax-highlighter-line-number",style:"function"===typeof r?r(i):r},"".concat(i,"\n"))}))}({lines:t.replace(/\n$/,"").split("\n"),style:a,startingLineNumber:s}))}function AH(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function EH(e,t,n){var r,i={display:"inline-block",minWidth:(r=n,"".concat(r.toString().length,".25em")),paddingRight:"1em",textAlign:"right",userSelect:"none"},o="function"===typeof e?e(t):e;return yH(yH({},i),o)}function SH(e){var t=e.children,n=e.lineNumber,r=e.lineNumberStyle,i=e.largestLineNumber,o=e.showInlineLineNumbers,a=e.lineProps,s=void 0===a?{}:a,l=e.className,c=void 0===l?[]:l,u=e.showLineNumbers,d=e.wrapLongLines,p=e.wrapLines,h=void 0!==p&&p?yH({},"function"===typeof s?s(n):s):{};if(h.className=h.className?[].concat(sH(h.className.trim().split(/\s+/)),sH(c)):c,n&&o){var f=EH(r,n,i);t.unshift(AH(n,f))}return d&u&&(h.style=yH({display:"flex"},h.style)),{type:"element",tagName:"span",properties:h,children:t}}function _H(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=0;r<e.length;r++){var i=e[r];if("text"===i.type)n.push(SH({children:[i],className:sH(new Set(t))}));else if(i.children){var o=t.concat(i.properties.className);_H(i.children,o).forEach((function(e){return n.push(e)}))}}return n}function kH(e,t,n,r,i,o,a,s,l){var c,u=_H(e.value),d=[],p=-1,h=0;function f(e,o){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return t||c.length>0?function(e,o){return SH({children:e,lineNumber:o,lineNumberStyle:s,largestLineNumber:a,showInlineLineNumbers:i,lineProps:n,className:arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],showLineNumbers:r,wrapLongLines:l,wrapLines:t})}(e,o,c):function(e,t){if(r&&t&&i){var n=EH(s,t,a);e.unshift(AH(t,n))}return e}(e,o)}for(var m=function(){var e=u[h],t=e.children[0].value;if(t.match(xH)){var n=t.split("\n");n.forEach((function(t,i){var a=r&&d.length+o,s={type:"text",value:"".concat(t,"\n")};if(0===i){var l=f(u.slice(p+1,h).concat(SH({children:[s],className:e.properties.className})),a);d.push(l)}else if(i===n.length-1){var c=u[h+1]&&u[h+1].children&&u[h+1].children[0],m={type:"text",value:"".concat(t)};if(c){var g=SH({children:[m],className:e.properties.className});u.splice(h+1,0,g)}else{var b=f([m],a,e.properties.className);d.push(b)}}else{var v=f([s],a,e.properties.className);d.push(v)}})),p=h}h++};h<u.length;)m();if(p!==u.length-1){var g=u.slice(p+1,u.length);if(g&&g.length){var b=f(g,r&&d.length+o);d.push(b)}}return t?d:(c=[]).concat.apply(c,d)}function TH(e){var t=e.rows,n=e.stylesheet,r=e.useInlineStyles;return t.map((function(e,t){return gH({node:e,stylesheet:n,useInlineStyles:r,key:"code-segement".concat(t)})}))}function CH(e){return e&&"undefined"!==typeof e.highlightAuto}var OH,NH,IH=__webpack_require__(43507),RH=(OH=__webpack_require__.n(IH)(),NH={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",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:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'And
155ale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",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"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > 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"}},function(e){var t=e.language,n=e.children,r=e.style,i=void 0===r?NH:r,o=e.customStyle,a=void 0===o?{}:o,s=e.codeTagProps,l=void 0===s?{className:t?"language-".concat(t):void 0,style:yH(yH({},i['code[class*="language-"]']),i['code[class*="language-'.concat(t,'"]')])}:s,u=e.useInlineStyles,d=void 0===u||u,p=e.showLineNumbers,h=void 0!==p&&p,f=e.showInlineLineNumbers,m=void 0===f||f,g=e.startingLineNumber,b=void 0===g?1:g,v=e.lineNumberContainerStyle,y=e.lineNumberStyle,x=void 0===y?{}:y,w=e.wrapLines,A=e.wrapLongLines,E=void 0!==A&&A,S=e.lineProps,_=void 0===S?{}:S,k=e.renderer,T=e.PreTag,C=void 0===T?"pre":T,O=e.CodeTag,N=void 0===O?"code":O,I=e.code,R=void 0===I?(Array.isArray(n)?n[0]:n)||"":I,j=e.astGenerator,M=function(e,t){if(null==e)return{};var n,r,i=(0,P.A)(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,bH);j=j||OH;var D=h?c.createElement(wH,{containerStyle:v,codeStyle:l.style||{},numberStyle:x,startingLineNumber:b,codeString:R}):null,L=i.hljs||i['pre[class*="language-"]']||{backgroundColor:"#fff"},F=CH(j)?"hljs":"prismjs",B=d?Object.assign({},M,{style:Object.assign({},L,a)}):Object.assign({},M,{className:M.className?"".concat(F," ").concat(M.className):F,style:Object.assign({},a)});if(l.style=yH(E?{whiteSpace:"pre-wrap"}:{whiteSpace:"pre"},l.style),!j)return c.createElement(C,B,D,c.createElement(N,l,R));(void 0===w&&k||E)&&(w=!0),k=k||TH;var U=[{type:"text",value:R}],z=function(e){var t=e.astGenerator,n=e.language,r=e.code,i=e.defaultCodeValue;if(CH(t)){var o=function(e,t){return-1!==e.listLanguages().indexOf(t)}(t,n);return"text"===n?{value:i,language:"text"}:o?t.highlight(n,r):t.highlightAuto(r)}try{return n&&"text"!==n?{value:t.highlight(r,n)}:{value:i}}catch(a){return{value:i}}}({astGenerator:j,language:t,code:R,defaultCodeValue:U});null===z.language&&(z.value=U);var H=z.value.length;1===H&&"text"===z.value[0].type&&(H=z.value[0].value.split("\n").length);var $=kH(z,w,_,h,m,b,H+b,x,E);return c.createElement(C,B,c.createElement(N,l,!m&&D,k({rows:$,stylesheet:i,useInlineStyles:d})))});RH.supportedLanguages=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","asciidoc","asm6502","asmatmel","as
155pnet","autohotkey","autoit","avisynth","avro-idl","bash","basic","batch","bbcode","bicep","birb","bison","bnf","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","clike","clojure","cmake","cobol","coffeescript","concurnas","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gherkin","git","glsl","gml","gn","go-module","go","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","matlab","maxscript","mel","mermaid","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stylus","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"];var PH=RH,jH={'code[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"hsl(95, 38%, 62%)"},string:{color:"hsl(95, 38%, 62%)"},char:{color:"hsl(95, 38%, 62%)"},builtin:{color:"hsl(95, 38%, 62%)"},inserted:{color:"hsl(95, 38%, 62%)"},regex:{color:"hsl(95, 38%, 62%)"},"attr-value":{color:"hsl(95, 38%, 62%)"},"attr-value > .token.punctuation":{color:"hsl(95, 38%, 62%)"},variable:{color:"hsl(207, 82%, 66%)"},operator:{color:"hsl(207, 82%, 66%)"},function:{color:"hsl(207, 82%, 66%)"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"hsl(95, 38%, 62%)"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"hsl(207, 82%, 66%)"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"}
155,".language-markdown .token.code-snippet":{color:"hsl(95, 38%, 62%)"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}};var MH=function(e){let{apikey:t}=e;const[n,r]=(0,c.useState)("");(0,c.useEffect)((()=>{const e=localStorage.getItem("uid");r(e)}),[]);const i={JavaScript:`\n      async function getResponse(){\n        const response = await fetch(\n          'https://sse.asklly.ai/v2/sse/api',\n          {\n            method: 'POST',\n            headers: {\n              'Content-Type': 'application/json',\n            },\n            body: JSON.stringify({\n              question: "Your Question",\n              api: "${t}",\n              uid: "${n}"\n            })\n          }\n        );
155\n        if (!response.ok || !response.body) {\n          throw new Error("Network response was not ok or streaming not supported");\n        }\n        const reader = response.body.getReader();\n        const decoder = new TextDecoder("utf-8");\n        const processChunk = async ({ done, value }) => {\n          if (done) return;\n          const chunk = decoder.decode(value);\n          console.log(chunk);\n        }\n        await reader.read().then(processChunk);\n      }\n    `,Python:`\n    import asyncio\n    import httpx\n\n    async def get_response():\n      url = "https://sse.asklly.ai/v2/sse/api"\n      payload = {\n        "question": "Your Question",\n        "api": "${t}",\n        "uid": "${n}"\n      }\n      headers = {\n        "Content-Type": "application/json"\n      }\n\n      async with httpx.AsyncClient(timeout=None) as client:\n        async with client.stream("POST", url, json=payload, headers=headers) as response:\n          if response.status_code != 200:\n            raise Exception("Network response was not ok")\n\n          async for chunk in response.aiter_text():\n            print(chunk)\n\n    if __name__ == "__main__":\n      asyncio.run(get_response())\n  `},[o,a]=(0,c.useState)("JavaScript");return(0,L.jsxs)("div",{className:"bg-gray-900 text-white p-4 rounded-xl shadow-lg w-full max-w-3xl mx-auto",children:[(0,L.jsx)("div",{className:"flex space-x-4 border-b border-gray-700 mb-4",children:Object.keys(i).map((e=>(0,L.jsx)("button",{onClick:()=>a(e),className:"px-3 py-1 text-sm font-medium border-b-2 "+(o===e?"border-white text-white":"border-transparent text-gray-400 hover:text-white"),children:e},e)))}),(0,L.jsxs)("div",{className:"relative bg-[#282C34] p-4 rounded-md font-mono text-sm overflow-auto",children:[(0,L.jsx)(PH,{language:o.toLowerCase(),style:jH,customStyle:{background:"transparent",padding:"0",margin:"0"},wrapLines:!0,lineProps:()=>({style:{background:"transparent"}}),children:i[o]}),(0,L.jsx)("button",{className:"absolute top-2 right-2 bg-gray-700 hover:bg-gray-600 text-white p-1 rounded",onClick:()=>(async e=>{await navigator.clipboard.writeText(e),aa.oR.success("Code copied to clipboard",{position:"top-right",autoClose:3e3,theme:"light"})})(i[o]),children:(0,L.jsx)(oH,{size:16})})]})]})},DH={hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#444",color:"#ddd"},"hljs-keyword":{color:"white",fontWeight:"bold"},"hljs-selector-tag":{color:"white",fontWeight:"bold"},"hljs-literal":{color:"white",fontWeight:"bold"},"hljs-section":{color:"white",fontWeight:"bold"},"hljs-link":{color:"white"},"hljs-subst":{color:"#ddd"},"hljs-string":{color:"#d88"},"hljs-title":{color:"#d88",fontWeight:"bold"},"hljs-name":{color:"#d88",fontWeight:"bold"},"hljs-type":{color:"#d88",fontWeight:"bold"},"hljs-attribute":{color:"#d88"},"hljs-symbol":{color:"#d88"},"hljs-bullet":{color:"#d88"},"hljs-built_in":{color:"#d88"},"hljs-addition":{color:"#d88"},"hljs-variable":{color:"#d88"},"hljs-template-tag":{color:"#d88"},"hljs-template-variable":{color:"#d88"},"hljs-comment":{color:"#777"},"hljs-quote":{color:"#777"},"hljs-deletion":{color:"#777"},"hljs-meta":{color:"#777"},"hljs-doctag":{fontWeight:"bold"},"hljs-strong":{fontWeight:"bold"},"hljs-emphasis":{fontStyle:"italic"}};function LH(e){let{responseOutput:t,answerLoading:n=!1}=e;const[r,i]=(0,c.useState)("Query Response"),[o,a]=(0,c.useState)("Run the query to get response");(0,c.useEffect)((()=>{a(t||"Run the query to get response")}),[t]);const s="Sample Response"===r?'\n        <think>\n            Okay, so I need to analyze the AAPL stock price based on the provided content. Let me go through each source step by step.\n            First, from the TradingView page, I see that the current price of AAPL is $210.02, which has decreased by -0.07% in the last 24 hours. The 1-month change is a positive 6.50%, but the year-to-date change is a negative -15.63%. The 1-year change is also negative at -8.47%, while the 5-year change is a significant 117.83%. The all-time change is an impressive 163.53K%. \n            Key facts include a $490 million settlement due to Tim Cook misleading investors, JPMorgan raising the price target to $250, and potential issues with iPhones using China-made BOE displays. The market cap is $3.14T, dividend yield is 0.50%, and P/E ratio is 32.80. The beta is 1.03, indicating moderate volatility.\n            ...\n        </think>\n    \n        **Analysis of AAPL Stock Price**\n    \n        **Current Price and Recent Performance:**\n        - **Current Price:** $210.02\n        - **24-Hour Change:** 
155-0.07%\n        - **1-Month Change:** +6.50%\n        - **Year-to-Date Change:** -15.63%\n        ...\n        ::id::ffb76919-3348-53d4-b6f2-203e92277db21752757573\n        %%%{"prompt Token": 9574, "completion Token": 871, "total Token": 10445}%%%\n        <<>>[{"title": "Apple Stock Chart \u2014 NASDAQ:AAPL Stock Price \u2014 TradingView", "description": "... AAPL stock has fallen by \u22120.23% ... analysts&#x27; opinions on Apple Inc future price: according to them, AAPL price has a <strong>max estimate of 275.00 USD and a min estimate of 139.00 USD</strong>...."}]<<>>\n        Chat Completion is Done. Done Streaming\n    ':o;return(0,L.jsxs)("div",{className:"bg-gray-900 text-white p-4 rounded-xl shadow-lg w-full max-w-3xl mx-auto",children:[(0,L.jsx)("div",{className:"flex space-x-4 border-b border-gray-700 mb-4",children:["Query Response","Sample Response"].map((e=>(0,L.jsx)("button",{onClick:()=>i(e),className:"px-3 py-1 text-sm font-medium border-b-2 "+(r===e?"border-white text-white":"border-transparent text-gray-400 hover:text-white"),children:e},e)))}),(0,L.jsxs)("div",{className:"relative bg-gray-800 p-4 rounded-md font-mono text-sm overflow-auto",children:[n?(0,L.jsx)(bw,{size:20,className:"animate-spin transition-all ease-in-out duration-300"}):(0,L.jsx)(PH,{language:"markdown",style:DH,customStyle:{background:"transparent",padding:0,whiteSpace:"pre-wrap",wordBreak:"break-word"},wrapLines:!0,wrapLongLines:!0,lineProps:()=>({style:{background:"transparent"}}),children:(l=s,l.split("::id::")[0].replace(/<think>/g,"\n<think>\n").replace(/<\/think>/g,"\n</think>\n").replace(/::id::/g,"\n::id::").replace(/%%%/g,"\n%%%").replace(/<<>>/g,"\n<<>>").replace(/Chat Completion is Done/g,"\nChat Completion is Done").trim())}),(0,L.jsx)("button",{className:"absolute top-2 right-2 bg-gray-700 hover:bg-gray-600 text-white p-1 rounded",onClick:()=>(async e=>{await navigator.clipboard.writeText(e),aa.oR.success("Response copied to clipboard",{position:"top-right",autoClose:3e3})})(s),children:(0,L.jsx)(oH,{size:16})})]})]});var l}var FH=function(){(0,te.zy)();const[e,t]=(0,i.ok)(),{fetchtrainedBots:n,addPrompt:r,getAllModels:o,getCachedOrgName:a,fetchbotapi:s}=ma(),[l,u]=(0,c.useState)(!1),[d,p]=(0,c.useState)([]),[h,f]=(0,c.useState)({title:"",initial:"",color:"#f97316",textColor:"#ffffff",tags:[]}),[m,g]=(0,c.useState)(!1),[b,v]=(0,c.useState)(null),[y,x]=(0,c.useState)("Copy to clipboard"),[w,A]=(0,c.useState)(null),[E,S]=(0,c.useState)(!1),[_,k]=(0,c.useState)(!1),[T,C]=(0,c.useState)(!1),[O,N]=(0,c.useState)("Create AI Assistant"),[I,R]=(0,c.useState)(!1),[P,j]=(0,c.useState)(""),[M,D]=(0,c.useState)(0),[F,B]=(0,c.useState)(0),[U,z]=(0,c.useState)(""),[H,$]=(0,c.useState)([]),V=e.get("id"),G=atob(String(V)).replace("asklly.ai",""),[W,q]=(0,c.useState)(""),Y=e=>{f({...h,[e.target.name]:e.target.value})},[K,X]=(0,c.useState)([]),[Z,Q]=(0,c.useState)("");(0,c.useEffect)((()=>{(async()=>{const e=await o();X(e||[])})(),N("Update Settings"),s(G).then((e=>{var t,n,r,i,o,a,s,l,c,u,d;e.ok?(f({title:null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.title,initial:null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.initial,color:null===e||void 0===e||null===(r=e.data)||void 0===r?void 0:r.color,textColor:null===e||void 0===e||null===(i=e.data)||void 0===i?void 0:i.textcolor,tags:(null===e||void 0===e||null===(o=e.data)||void 0===o?void 0:o.tags)||[]}),A("null"===(null===e||void 0===e||null===(a=e.data)||void 0===a?void 0:a.image)?null:null===e||void 0===e||null===(s=e.data)||void 0===s?void 0:s.image),Q(null===e||void 0===e||null===(l=e.data)||void 0===l?void 0:l.apikey),p(e.kb),g(null===e||void 0===e||null===(c=e.data)||void 0===c?void 0:c.default_websearch),q((null===e||void 0===e||null===(u=e.data)||void 0===u?void 0:u.model)||"DeepSeek R1 Distill Llama 70B"),z((null===(d=e.data)||void 0===d?void 0:d.prompt)||"You are an best AI assistant designed to answer questions with precision, specificity, and conciseness. Your responses must strictly adhere to the content and question provided by the user.\n                    <br />Instructions<br />\n                    1. Always use the provided content to form your response.<br />\n                    2. Do not add any extra information, context, or opinions beyond what is explicitly stated in the content.<br />\n                    3. Focus on directly addressing the question, staying on topic, and being as clear and concise as possible.<br />\n                    4. Also conside the prompt given by the user also but do not go over the rules given above<br />\n                    Provided Content and Question: The user will provide the content and question.<br />\n                ")):f(null)}))}),[]);const[J,ee]=(0,c.useState)(null),ne=(Boolean(J),'<script src="https://cdn.jsdelivr.net/npm/asklly_windowed_chat/dist/index.min.js"><\/script>'),re=(0,te.Zp)(),[ie,oe]=(0,c.useState)(!1),[ae,se]=(0,c.useState)(""),[le,ce]=(0,c.useState)(""),[ue,de]=(0,c.useState)(!1),[pe,he]=(0,c.useState)(!1),[fe,me]=(0,c.useState)(),[ge,be]=(0,c.useState)(),[ve,ye]=(0,c.useState)(!1);function xe(e){const{children:t,value:n,index:r,...i}=e;return(0,L.jsx)("div",{role:"tabpanel",hidden:n!==r,id:`simple-tabpanel-${r}`,"aria-labelledby":`simple-tab-${r}`,...i,children:n===r&&(0,L.jsx)(cw,{sx:{p:3},children:t})})}const we=Math.ceil(d.length/5),Ae=d.slice(5*F,5*(F+1))||[];return(0,L.jsxs)("div",{className:"h-full w-full",children:[(0,L.jsxs)(Co.A,{children:[(0,L.jsx)(uw,{justifyContent:"space-between",direction:"row",alignItems:"center",children:(0,L.jsxs)("div",{className:"flex justify-between items-center w-full",children:[(0,L.jsxs)("div",{className:"flex justify-center items-center",children:[(0,L.jsx)(i.N_,{to:"/marketplace",children:(0,L.jsx)(rw.A,{color:"secondary"})}),(0,L.jsx)(pw,{}),(0,L.jsx)(Te.A,{sx:{fontWeight:"bold"},children:"AI Studio"})]}),(0,L.jsx)(mi,{title:"Delete Assistant",className:"flex items-center gap-2 px-4 py-2 text-sm text-red-700 bg-opacity-80 bg-red-200 hover:bg-opacity-100 hover:text-red-700 rounded-full transition-colors duration-200",children:(0,L.jsx)(Pa.A,{onClick:()=>C(!0),children:(0,L.jsx)(hw,{className:"text-red-500",size:18})})})]})}),(0,L.jsx)(uw,{sx:{mt:1}
155,children:(0,L.jsx)(Te.A,{children:"Design your AI Assistant by adding or removing knowledge through documents, and seamlessly publish it to the AI Hub for wider access"})})]}),(0,L.jsx)(uw,{sx:{mt:2,borderRadius:"8px",overflow:"hidden"},children:(0,L.jsx)(Co.A,{children:h?(0,L.jsxs)("div",{className:"",children:[(0,L.jsxs)("div",{className:"",children:[(0,L.jsx)("div",{className:"relative flex flex-col-reverse md:flex-row justify-between items-center",children:(0,L.jsx)(cw,{sx:{borderBottom:1,borderColor:"divider",width:"100%",overflowX:"auto"},children:(0,L.jsxs)(Ss,{variant:"scrollable",scrollButtons:"auto",value:M,textColor:"secondary",indicatorColor:"secondary",onChange:(e,t)=>{D(t)},"aria-label":"",children:[(0,L.jsx)(Os,{iconPosition:"start",icon:(0,L.jsx)(Iw,{}),label:"Design"}),(0,L.jsx)(Os,{iconPosition:"start",icon:(0,L.jsx)(Ow,{}),label:"Knowledge"}),(0,L.jsx)(Os,{iconPosition:"start",icon:(0,L.jsx)(fw,{}),label:"AI Settings"}),(0,L.jsx)(Os,{iconPosition:"start",icon:(0,L.jsx)(iH,{}),label:"API"}),(0,L.jsx)(Os,{iconPosition:"start",icon:(0,L.jsx)(Cw,{}),label:"Web Embed"})]})})}),(0,L.jsx)("div",{className:"p-2 md:p-2 w-full max-w-5xl mx-auto",children:(0,L.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4 md:gap-6",children:[0===M&&(0,L.jsx)("div",{className:"md:p-2 p-2 flex flex-col md:flex-row",children:(0,L.jsxs)("form",{onSubmit:async e=>{if(e.preventDefault(),!Z&&""===h.title)return u(!1),aa.oR.error("All fields Required",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"});u(!0);const t=new FormData,r=localStorage.getItem("uid"),i=new Date,o=i.getDate().toString(),s=(i.getMonth()+1).toString(),l=i.getFullYear().toString();try{let e;if(b){const n=(f=Px,m=`images/${b.name}`,_x(f=zb(f),m));await(c=n,d=b,wx(c=zb(c),d,p)),e=await function(e){return Ax(e=zb(e))}(n),A(e),t.append("image",e)}else t.append("image",w);const i=h.initial||"Hello There! how can i help you today",u=await a();t.append("organization",u),t.append("tags",h.tags.join(",")),t.append("color",h.color),t.append("textcolor",h.textColor),t.append("title",h.title),t.append("initial",i),t.append("apikey",Z||"no"),t.append("id",G),t.append("uid",r),t.append("created_at",`${o.toString()}/${s}/${l.toString()}`);const g=await(0,xi.xP)(t);n(),g&&Q(g)}catch(qUe){console.error("Error:",qUe)}finally{u(!1)}var c,d,p,f,m},children:[(0,L.jsx)("label",{className:"label",children:"Assistant Name"}),(0,L.jsx)("input",{autoComplete:"off",placeholder:"Enter an Title",name:"title",id:"Email",className:"input w-full mt-2 mb-4",type:"text",onChange:Y,value:h.title}),(0,L.jsx)("label",{className:"label",children:"Description or Initial Message"}),(0,L.jsx)("input",{autoComplete:"off",placeholder:"Enter an Initial Message",name:"initial",id:"Email",className:"input w-full mt-2 mb-4",type:"text",onChange:Y,value:h.initial}),(0,L.jsx)("label",{className:"label",children:"Tags"}),(0,L.jsx)("input",{autoComplete:"off",placeholder:"Press Enter to add a tag",className:"input w-full mt-2 mb-4",type:"text",value:P,onChange:e=>{j(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&""!==P.trim()&&(f((e=>({...e,tags:[...e.tags,P.trim()]}))),j(""))}}),(0,L.jsx)("div",{className:"flex flex-wrap mt-2",children:h.tags.map(((e,t)=>(0,L.jsx)(so,{color:"secondary",label:`#${e}`,className:"mr-2 mb-2",onDelete:()=>(e=>{const t=h.tags.filter(((t,n)=>n!==e));f((e=>({...e,tags:t})))})(t)},t)))}),(0,L.jsx)("label",{className:"label",children:"Upload Photo"}),(0,L.jsx)("input",{type:"file",name:"file",id:"file-input",className:"block border border-gray-200 shadow-sm rounded-md text-sm focus:z-10 focus:border-blue-500 focus:ring-blue-500 dark:bg-slate-900 dark:border-gray-700 dark:text-gray-400 file:bg-transparent file:border-0 file:bg-gray-200 w-full file:mr-4 file:py-3 file:px-4 dark:file:bg-gray-700 dark:file:text-gray-400 mb-4",accept:".jpeg,.jpg,.png,.webp",onChange:e=>{const t=e.target.files[0];t&&v(t)}}),(0,L.jsxs)("div",{className:"flex",children:[(0,L.jsxs)("div",{children:[(0,L.jsx)("label",{className:"label",children:"Choose Chat Backgroun
155d Colour"}),(0,L.jsx)("input",{id:"nativeColorPicker1",type:"color",name:"color",onChange:Y,className:"mt-2 mb-4 cursor-pointer",value:`${h.color}`})]}),(0,L.jsxs)("div",{children:[(0,L.jsx)("label",{className:"label",children:"Choose Chat Text Colour"}),(0,L.jsx)("input",{id:"nativeColorPicker1",type:"color",name:"textColor",onChange:Y,className:"mt-2 mb-4 cursor-pointer",value:`${h.textColor}`})]})]}),l?(0,L.jsx)("button",{disabled:!0,className:"bg-black cursor-not-allowed w-full h-10 rounded-xl mt-4 text-white font-semibold hover:scale-105 transition-all flex justify-center items-center duration-200 ease-in-out",children:(0,L.jsx)(Dx,{})}):(0,L.jsx)("button",{type:"submit",className:"bg-black w-full h-10 rounded-xl mt-4 text-white font-semibold hover:scale-105 transition-all flex justify-center items-center duration-200 ease-in-out",children:O})]})}),0===M&&(0,L.jsx)("div",{className:"flex-1 relative",children:(0,L.jsxs)(uw,{sx:{display:"flex",justifyContent:"center",flexWrap:"wrap",gap:2},justifyContent:"space-between",direction:"row",alignItems:"center",children:[(0,L.jsx)("div",{className:"absolute inset-0 bg-black/60 z-10 rounded-sm flex items-center justify-center",children:(0,L.jsx)("div",{className:"bg-gray-800/90 text-white px-4 py-2 rounded-md text-sm md:text-base",children:"Design Preview Mode"})}),(0,L.jsx)("div",{className:"",children:(0,L.jsxs)("div",{className:"w-full md:w-80 h-[30rem] bg-white rounded-sm shadow-xl overflow-hidden flex flex-col",children:[(0,L.jsxs)("div",{className:"bg-black text-white p-4 flex justify-between items-center",children:[(0,L.jsxs)("div",{className:"flex items-center gap-3",children:[!b&&w?(0,L.jsx)("img",{accept:".png,.jpg,.jpeg,.svg,.gif",src:w,className:"h-10 w-10 rounded-full"}):b&&(0,L.jsx)("img",{accept:".png,.jpg,.jpeg,.svg,.gif",src:URL.createObjectURL(b),className:"h-10 w-10 rounded-full"}),(0,L.jsx)("h1",{className:"font-bold text-xl ml-3",children:h.title||"Profile name"})]}),(0,L.jsx)("button",{className:"text-white hover:opacity-80",children:(0,L.jsx)(mw,{size:24})})]}),(0,L.jsxs)("div",{className:"flex-grow overflow-y-auto p-4 space-y-4",children:[(0,L.jsx)("div",{className:"flex justify-start",children:(0,L.jsx)("div",{className:"max-w-[70%] p-3 rounded-sm bg-gray-200 text-black rounded-bl-none",children:h.initial||"Hello there how can i help you"})}),(0,L.jsx)("div",{className:"flex justify-end",children:(0,L.jsx)("div",{className:"max-w-[70%] p-3 rounded-sm rounded-br-none",style:{backgroundColor:h.color,color:h.textColor},children:"Hi! I have a question"})}),(0,L.jsx)("div",{className:"flex justify-start",children:(0,L.jsx)("div",{className:"max-w-[70%] p-3 rounded-sm bg-gray-200 text-black rounded-bl-none",children:"Of course! I'd be happy to help."})})]}),(0,L.jsxs)("div",{className:"p-4 border-t border-gray-200 flex items-center",children:[(0,L.jsx)("input",{type:"text",placeholder:"Type your message...",disabled:!0,className:"flex-grow p-2 border bg-white text-black border-gray-300 rounded-sm mr-2 focus:outline-none focus:ring-2 focus:ring-black"}),(0,L.jsx)("button",{className:"p-2 bg-black text-white rounded-full hover:bg-gray-800",children:(0,L.jsx)(gw,{size:20})})]})]})})]})})]})}),(0,L.jsxs)(xe,{index:1,value:M,children:[(0,L.jsxs)("div",{className:"overflow-auto min-h-fit",children:[(0,L.jsx)(Pa.A,{onClick:()=>re("/kb?bot="+G),children:(0,L.jsx)(mi,{title:"Add Knowledge",children:(0,L.jsx)(iw,{})})}),(0,L.jsx)(Pa.A,{disabled:0===H.length,onClick:async()=>{try{if(H.length===Ae.length)return aa.oR.error("All files can't be deleted",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"});const e=H.join(","),t=localStorage.getItem("uid");await(0,xi.Bt)(G,e,t),$([]),p(Ae.filter((e=>!H.includes(e.id))))}catch(qUe){console.error("Error deleting file:",qUe)}},children:(0,L.jsx)(mi,{title:0!==H.length?"Delete Files":"Select a file to delete",children:(0,L.jsx)(ow,{})})}),Ae.map(((e,t)=>(0,L.jsxs)("div",{className:"mb-4 cursor-pointer last:mb-0 bg-gray-50 rounded-sm p-4 shadow",onClick:()=>function(e){const t=Ae[e];me(null===t||void 0===t?void 0:t.location),be(null===t||void 0===t?void 0:t.file_name),ye(!0)}(t),children:[(0,L.jsxs)("div",{className:"flex items-center mb-2",children:[(0,L.jsx)(qx,{color:"secondary",onChange:t=>{var n;ye(!1),t.stopPropagation(),n=e.id,$((e=>e.includes(n)?e.filter((e=>e!==n)):[...e,n]))},checked:H.includes(e.id)}),(0,L.jsx)("h3",{className:"font-semibold text-sm",children:e.file_name})]}),(0,L.jsxs)("div",{className:"text-sm text-gray-600 mb-2",children:[(0,L.jsx)("span",{className:"font-medium",children:"Knowledge Hub:"}),(0,L.jsx)("span",{className:"ml-1",children:e.kb_name})]}),(0,L.jsx)("div",{className:"grid grid-cols-2 gap-2 text-sm",children:(0,L.jsxs)("div",{children:[(0,L.jsx)("span",{className:"font-medium",children:"Created By:"}),(0,L.jsx)("span",{className:"ml-1",children:e.created_by})]})}),(0,L.jsx)("div",{className:"flex flex-wrap gap-2",children:e.tags&&e.tags.map(((e,t)=>(0,L.jsx)(so,{label:`#${e}`,color:"secondary"},t)))})]},t)))]}),(0,L.jsxs)("div",{className:"flex justify-between mt-4",children:[(0,L.jsx)(Yx.A,{disabled:0===F,onClick:()=>B(F-1),color:"secondary",children:"Previous"}),(0,L.jsx)(Yx.A,{disabled:F>=we-1,onClick:()=>B(F+1),color:"secondary",children:"Next"})]})]}),2===M&&(0,L.jsxs)("div",{className:"p-4",children:[(0,L.jsx)("h1",{className:"text-xl mb-4 font-semibold",children:"Enter Your Custom Prompt"}),(0,L.jsx)(rH(),{theme:"snow",value:U,onChange:e=>{z(e)},placeholder:"Enter the prompt to be trained for your AI Assistant",modules:{toolbar:[[{header:"1"},{header:"2"}],["bold","italic","underline","strike","blockquote"],[{list:"ordered"},{list:"bullet"}]]},formats:["header","bold","italic","underline","strike","blockquote","list","bullet","indent"],style:{height:"200px",marginBottom:"50px"}}),(0,L.jsx)("div",{}),(0,L.jsxs)("div",{className:"flex flex-col mt-24 md:mt-7",children:[(0,L.jsx)("h1",{className:"text-xl mb-4 font-semibold",children:"Select Your Model"}),(0,L.jsx)(Zs.A,{onChange:e=>{q(e.target.value)},value:W,className:"mb-5 w-64",variant:"outlined",color:"secondary",children:K.map(((e,t)=>(0,L.jsx)(Qs.A,{value:e,children:e},t)))}),(0,L.jsxs)("div",{className:"flex items-center",children:[(0,L.jsx)("h1",{className:"label",children:"Web Search by Default: "}),(0,L.jsx)(nw,{color:"secondary",checked:m,onChange:(e,t)=>
155g(t),inputProps:{"aria-label":"controlled"}})]}),(0,L.jsx)(Yx.A,{className:"mt-10 md:mt-4 w-fit disabled:cursor-not-allowed",disabled:ie,onClick:async()=>{try{if(oe(!0),U.length<3)return aa.oR.error("Enter the prompt to continue",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"});const e=G;await r(e,U,W,m)}catch(qUe){console.error(qUe)}finally{oe(!1)}},variant:"outlined",color:"secondary",children:ie?(0,L.jsx)(Dx,{className:""}):"Update AI Settings"})]})]}),3===M&&(0,L.jsx)(cw,{sx:{maxWidth:"100%",mb:2},children:(0,L.jsxs)("div",{children:[(0,L.jsx)("h1",{className:"text-2xl font-semibold mb-4",children:h.title}),(0,L.jsxs)("div",{className:"flex items-center gap-4",children:[(0,L.jsx)("span",{className:"border w-fit py-1 px-3 rounded-full bg-[#615FFF] text-[#ffffff] border-[#4c49ff]",children:"post"}),(0,L.jsx)("h1",{className:"font-semibold text-sm",children:"/v2/sse/api"})]}),(0,L.jsx)("p",{className:"mt-4",children:h.initial}),(0,L.jsxs)("div",{className:"w-full flex flex-col sm:flex-row gap-4 md:gap-6 items-center sm:items-start sm:justify-center",children:[(0,L.jsxs)("div",{className:"w-full sm:w-1/2",children:[(0,L.jsxs)("div",{className:"mt-6",children:[(0,L.jsx)("h1",{className:"text-xl font-semibold mb-4",children:"Headers"}),(0,L.jsxs)("div",{className:"flex items-center gap-3",children:[(0,L.jsx)("h1",{className:"font-semibold text-sm",children:"Content-Type"}),(0,L.jsx)("span",{className:"border w-fit py-1 px-3 rounded-full bg-gray-300 text-[#000] border-gray-800",children:"string"}),(0,L.jsx)("span",{className:"border w-fit py-1 px-3 rounded-full bg-[#615FFF] text-[#ffffff] border-[#4c49ff]",children:"required"})]}),(0,L.jsxs)("p",{className:"mt-4",children:["The ",(0,L.jsx)("code",{className:"bg-gray-100 px-2 py-1 rounded text-sm",children:"Content-Type"})," header must be set to"," ",(0,L.jsx)("code",{className:"bg-gray-100 px-2 py-1 rounded text-sm",children:"application/json"}),". This tells the server that the request body is formatted as JSON. Without this header, the API may reject the request or fail to parse the input."]}),(0,L.jsxs)("div",{className:"mt-4 bg-gray-100 text-sm p-3 rounded-md border border-gray-300 whitespace-pre-wrap font-mono",children:['"headers": {',(0,L.jsx)("br",{}),'\xa0\xa0"Content-Type": "application/json"',(0,L.jsx)("br",{}),"}"]})]}),(0,L.jsx)("h1",{className:"text-xl font-semibold mb-4 mt-4",children:"Body"}),(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"flex items-center gap-3",children:[(0,L.jsx)("h1",{className:"font-semibold text-base",children:"Question"}),(0,L.jsx)("span",{className:"border w-fit py-1 px-3 rounded-full bg-gray-300 text-[#000] border-gray-800",children:"string"}),(0,L.jsx)("span",{className:"border w-fit py-1 px-3 rounded-full bg-[#615FFF] text-[#ffffff] border-[#4c49ff]",children:"required"})]}),(0,L.jsx)("p",{className:"mt-4",children:"Ensure that a valid string is provided in this field to receive a meaningful response from the API. Missing or empty values in this parameter may result in an error or an invalid response."})]}),(0,L.jsx)(ze.A,{className:"mt-4 mb-4"}),(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"flex items-center gap-3",children:[(0,L.jsx)("h1",{className:"font-semibold text-sm",children:"API Key"}),(0,L.jsx)("span",{className:"border w-fit py-1 px-3 rounded-full bg-gray-300 text-[#000] border-gray-800",children:"string"}),(0,L.jsx)("span",{className:"border w-fit py-1 px-3 rounded-full bg-[#615FFF] text-[#ffffff] border-[#4c49ff]",children:"required"})]}),(0,L.jsx)("p",{className:"mt-4",children:"Without a valid API key, requests will be rejected with an error."})]}),(0,L.jsx)(ze.A,{className:"mt-4 mb-4"}),(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"flex items-center gap-3",children:[(0,L.jsx)("h1",{className:"font-semibold text-sm",children:"uid (User ID)"}),(0,L.jsx)("span",{className:"border w-fit py-1 px-3 rounded-full bg-gray-300 text-[#000] border-gray-800",children:"string"}),(0,L.jsx)("span",{className:"border w-fit py-1 px-3 rounded-full bg-[#615FFF] text-[#ffffff] border-[#4c49ff]",children:"required"})]}),(0,L.jsx)("p",{className:"mt-4",children:"This value must be valid and consistent across requests to ensure proper authentication and data access."})]}),(0,L.jsxs)("div",{children:[(0,L.jsxs)("div",{className:"flex gap-4 items-center",children:[(0,L.jsx)("h1",{className:"text-xl font-semibold mb-4 mt-4",children:"Response"}),(0,L.jsx)("span",{className:"border w-fit py-1 px-3 rounded-full bg-gray-300 text-[#000] border-gray-800",children:"string"})]}),(0,L.jsxs)("div",{className:"space-y-6",children:[(0,L.jsxs)("div",{className:"space-y-2",children:[(0,L.jsx)("h3",{className:"text-sm font-semibold text-gray-700",children:"<think> Reasoning"}),(0,L.jsxs)("p",{className:"text-gray-600",children:["The ",(0,L.jsx)("code",{className:"bg-gray-100 px-2 py-1 rounded text-sm",children:"<think>"})," tag contains the model's internal thought process. It reflects how the model breaks down the task step by step before forming a response."]}),(0,L.jsx)("p",{className:"text-gray-600",children:"This section is especially useful when you want to understand:"}),(0,L.jsxs)("ul",{className:"list-disc list-inside text-gray-600 ml-4",children:[(0,L.jsx)("li",{children:"How the model interpreted the input."}),(0,L.jsx)("li",{children:"Which sources or facts it considered."}),(0,L.jsx)("li",{children:"Its reasoning chain before giving the final output."})]}),(0,L.jsxs)("div",{className:"bg-gray-100 text-gray-800 text-sm p-3 rounded-md border border-gray-300 mt-2 whitespace-pre-wrap font-mono",children:["<think>",(0,L.jsx)("br",{}),"Okay, so I need to analyze the AAPL stock price based on the provided content...",(0,L.jsx)("br",{}),"... I should structure the answer with bullet points, include all the key metrics, and summarize the findings, highlighting both positive and negative factors.",(0,L.jsx)("br",{}),"</think>"]}),(0,L.jsxs)("p",{className:"text-sm text-gray-500",children:["The ",(0,L.jsx)("code",{children:"<think>"})," block is not part of the final user-facing output \u2014 it's purely for traceability and observability."]})]}),(0,L.jsx)(ze.A,{className:"mt-4 mb-4"}),(0,L.jsxs)("div",{children:[(0,L.jsx)("h3",{className:"text-sm font-semibold text-gray-700",children:"::id:: Chat ID"}),(0,L.jsxs)("p",{className:"text-gray-600",children:["The unique identifier for the chat session, returned as ",(0,L.jsx)("code",{className:"bg-gray-100 px-2 py-1 rounded text-sm",children:"id"})," in the response."]})]}),(0,L.jsx)(ze.A,{className:"mt-4 mb-4"}),(0,L.jsxs)("div",{children:[(0,L.jsx)("h3",{className:"text-sm font-semibold text-gray-700",children:"Model Token Usage"}),(0,L.jsxs)("p",{className:"text-gray-600",children:["The section wrapped in ",(0,L.jsx)("code",{className:"bg-gray-100 px-2 py-1 rounded text-sm",children:"%%%"})," provides usage stats:"]}),(0,L.jsxs)("ul",{className:"list-disc list-inside text-gray-600 ml-4",children:[(0,L.jsxs)("li",{children:[(0,L.jsx)("strong",{children:"prompt Token"}),": Total tokens used for the input prompt."]}),(0,L.jsxs)("li",{children:[(0,L.jsx)("strong",{children:"completion Token"}),": Tokens used by the model to generate the response."]}),(0,L.jsxs)("li",{children:[(0,L.jsx)("strong",{children:"total Token"}),": Total token count = prompt + completion."]})]})]}),(0,L.jsx)(ze.A,{className:"mt-4 mb-4"}),(0,L.jsxs)("div",{children:[(0,L.jsx)("h3",{className:"text-sm font-semibold text-gray-700",children:"Web Search Results"}),(0,L.jsxs)("p",{className:"text-gray-600",children:["Results fetched from the web are wrapped inside ",(0,L.jsx)("code",{className:"bg-gray-100 px-2 py-1 rounded text-sm",children:"<<>>"})," and follow the format shown below:"]}),(0,L.jsxs)("p",{className:"text-sm text-gray-500 mt-2",children:["Each result includes: ",(0,L.jsx)("code",{className:"bg-gray-100 px-1 py-0.5 rounded",children:"title"}),", ",(0,L.jsx)("code",{className:"bg-gray-100 px-1 py-0.5 rounded",children:"description"}),", ",(0,L.jsx)("code",{className:"bg-gray-100 px-1 py-0.5 rounded",children:"url"}),", and ",(0,L.jsx)("code",{className:"bg-gray-100 px-1 py-0.5 rounded",children:"profile.img"}),"."]})]}),(0,L.jsx)(ze.A,{className:"mt-4 mb-4"}),(0,L.jsxs)("div",{children:[(0,L.jsx)("h3",{className:"text-sm font-semibold text-gray-700",children:"\u2705 Completion Status"}),(0,L.jsxs)("p",{className:"text-gray-600",children:["Once all streaming content is delivered, a final string ",(0,L.jsx)("code",{className:"bg-gray-100 px-2 py-1 rounded text-sm",children:"Chat 
155Completion is Done. Done Streaming"})," confirms that the generation process has finished."]})]})]})]})]}),(0,L.jsxs)("div",{className:"w-full sm:w-1/2",children:[(0,L.jsxs)("div",{className:"bg-gray-900 p-4 rounded-lg border border-[#2E2E3E]",children:[(0,L.jsxs)("div",{className:"flex items-center mb-3",children:[(0,L.jsx)("span",{className:"border w-fit py-1 px-3 rounded-full bg-[#615FFF] text-[#ffffff] border-[#4c49ff]",children:"post"}),(0,L.jsx)("p",{className:"text-sm text-white break-all ml-2",children:"https://sse.asklly.ai/v2/sse/api"})]}),(0,L.jsx)(Xa.A,{fullWidth:!0,variant:"outlined",placeholder:"e.g. What\u2019s the stock forecast for AAPL?",InputProps:{style:{backgroundColor:"#1E1E2F",color:"#fff",borderRadius:"6px"}},InputLabelProps:{style:{color:"#aaa"}},color:"secondary",className:"mb-3",value:ae,onChange:e=>{let{target:t}=e;return se(t.value)}}),(0,L.jsx)("div",{className:"flex items-center gap-3",children:(0,L.jsx)("button",{className:"bg-[#615FFF] disabled:bg-[#807dff] disabled:cursor-not-allowed hover:bg-[#4c49ff] text-white px-4 py-2 text-sm rounded flex items-center gap-2",onClick:async()=>{try{de(!0),he(!0);const e=await fetch("https://sse.asklly.ai/v2/sse/api",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({question:ae,api:Z,uid:localStorage.getItem("uid")})});if(!e.ok||!e.body)throw new Error("Network response was not ok or streaming not supported");const t=e.body.getReader(),n=new TextDecoder("utf-8");let r="";const i=async()=>{he(!1);const{done:e,value:o}=await t.read();if(e)return;const a=n.decode(o,{stream:!0});r+=a,ce((e=>e+a)),i()};await i()}catch(qUe){ce(`Error: ${qUe.message}`)}finally{de(!1)}},disabled:ue,children:ue?(0,L.jsx)(bw,{size:20,className:"animate-spin transition-all ease-in-out duration-300"}):(0,L.jsxs)(L.Fragment,{children:["Run Query ",(0,L.jsx)("span",{children:"\u25b6"})]})})})]}),(0,L.jsx)("div",{className:"mt-5"}),(0,L.jsx)(LH,{responseOutput:le,answerLoading:pe}),(0,L.jsx)("div",{className:"mt-5"}),(0,L.jsx)(MH,{apikey:Z})]})]})]})}),(0,L.jsx)(xe,{value:M,index:4,children:(0,L.jsx)(cw,{sx:{maxWidth:"100%",overflow:"auto",mb:2},children:(0,L.jsx)(xw,{apiKey:Z})})})]}),(0,L.jsx)(Ls.A,{open:E,onClose:()=>{ee(null)},"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:(0,L.jsxs)(cw,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:{xs:"90%",sm:"80%",md:"60%",sm:"50%"},maxHeight:"90vh",bgcolor:"background.paper",boxShadow:24,p:{xs:2,sm:3,md:4},borderRadius:2,overflow:"auto"},children:[(0,L.jsx)(Te.A,{variant:"h5",component:"h2",gutterBottom:!0,children:"Script Code"}),(0,L.jsx)(cw,{sx:{maxWidth:"100%",overflow:"auto",mb:2},children:(0,L.jsx)("div",{className:"relative bg-gray-100 border border-gray-300 rounded-md p-4",children:(0,L.jsx)("pre",{className:"whitespace-pre-wrap break-all text-sm leading-relaxed font-mono overflow-x-auto",children:(0,L.jsxs)("code",{className:"text-gray-800 block",children:[(0,L.jsx)("span",{className:"",children:"<script>\n"}),(0,L.jsx)("span",{className:"",children:"   window.chatx = {\n"}),(0,L.jsx)("span",{className:"",children:`        chatbotKey: "${Z}"\n`}),(0,L.jsx)("span",{className:"",children:"   }\n"}),(0,L.jsx)("span",{className:"",children:"<\/script>\n"}),(0,L.jsx)("span",{className:"text-black",children:ne})]})})})}),(0,L.jsxs)(cw,{sx:{display:"flex",justifyContent:"center",flexWrap:"wrap",gap:2},children:[(0,L.jsx)(Yx.A,{variant:"outlined",onClick:()=>{const e=`\n            <script>\n                window.chatx = {\n                    chatbotKey: "${Z}"\n                }\n            <\/script>\n            ${ne}\n        `;Mx()(e),x("Copied")},color:"secondary",children:y}),(0,L.jsx)(Yx.A,{variant:"text",color:"error",onClick:()=>{S(!1),re("/marketplace")},children:"Close"})]})]})}),(0,L.jsx)(Ls.A,{open:_,onClose:()=>{k(!1)},"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:(0,L.jsx)("div",{className:"h-full w-full flex justify-center items-center",children:(0,L.jsxs)("div",{className:"md:p-10 p-3 rounded-md bg-white flex-col justify-center items-center",children:[(0,L.jsx)(Te.A,{sx:{fontWeight:700,fontSize:20,mb:1},children:"Knowledge Hub Used"}),(0,L.jsx)("div",{className:"overflow-auto min-h-fit mb-5 max-h-48 w-full md:w-96",children:d.map(((e,t)=>(0,L.jsxs)("div",{className:"mb-4 last:mb-0 bg-gray-50 rounded-sm p-4 shadow",children:[(0,L.jsxs)("div",{className:"flex items-center mb-2",children:[(0,L.jsx)("div",{className:"w-2 h-2 bg-blue-500 rounded-full mr-2"}),(0,L.jsx)("h3",{className:"font-semibold text-sm",children:e.file_name})]}),(0,L.jsxs)("div",{className:"text-sm text-gray-600 mb-2",children:[(0,L.jsx)("span",{className:"font-medium",children:"Knowledge Hub:"}),(0,L.jsx)("span",{className:"ml-1",children:e.kb_name})]}),(0,L.jsx)("div",{className:"grid grid-cols-2 gap-2 text-sm",children:(0,L.jsxs)("div",{children:[(0,L.jsx)("span",{className:"font-medium",children:"Created By:"}),(0,L.jsx)("span",{className:"ml-1",children:e.created_by})]})})]},t)))}),(0,L.jsx)(Yx.A,{variant:"outlined",color:"error",onClick:()=>k(!1),children:"Close"})]})})}),(0,L.jsx)(Ls.A,{open:T,onClose:()=>C(!1),children:(0,L.jsx)(cw,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:(0,L.jsx)("div",{className:"bg-white h-auto md:h-[35vh] w-[90%] md:w-[30vw] rounded-md flex flex-col justify-center items-center p-4",children:(0,L.jsxs)("div",{className:"flex flex-col justify-center items-start w-full",children:[(0,L.jsx)(Te.A,{variant:"h3",sx:{mb:2},children:"Delete Assistant"}),(0,L.jsxs)("div",{className:"flex items-center mt-2 w-full",children:[(0,L.jsx)(qx,{id:"ok",color:"secondary",value:I,onClick:()=>{R(!I)}}),(0,L.jsx)("label",{htmlFor:"ok",className:"font-semibold",children:"I Understand that deleting items cannot be recovered"})]}),(0,L.jsxs)("div",{className:"flex items-center mt-4 w-full justify-between",children:[(0,L.jsx)(Yx.A,{color:"secondary",sx:{mr:2},onClick:()=>{C(!1)},children:"Cancel"}),(0,L.jsx)(Yx.A,{color:"error",variant:"outlined",onClick:async()=>{try{if(I){const e=new FormData,t=await a();e.append("organization",t),e.append("id",G);const r=localStorage.getItem("uid");e.append("uid",r),e.append("files",H.join(","));await(0,xi.Gx)(e);await n(),C(!1),re("/marketplace")}else aa.oR.error("Please check the box to continue",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}catch(qUe){console.error("Error:",qUe)}finally{u(!1)}},children:"Delete"})]})]})})})})]}):(0,L.jsxs)("div",{className:"flex flex-col md:flex-row justify-center items-center md:justify-between p-4 h-full",children:[(0,L.jsx)("img",{src:dw,className:"w-72 mb-4 md:mb-0"}),(0,L.jsxs)("div",{className:"w-full md:w-2/3 text-center md:text-left",children:[(0,L.jsx)("h1",{className:"text-[#5E35B1] font-semibold text-2xl mb-3",children:"Took a Wrong Turn"}),(0,L.jsx)("p",{className:"mb-4",children:"The Assistant you are searching for is not found"}),(0,L.jsx)(Yx.A,{onClick:()=>{re("/marketplace")},variant:"outlined",color:"secondary",children:"Back To AI Hub"})]})]})})}),(0,L.jsx)(tH,{close:()=>{me(null),ye(!1)},file:fe,openDrawer:ve,fileName:ge})]})},BH=__webpack_require__(70146);function UH(e){return e+.5|0}const zH=(e,t,n)=>Math.max(Math.min(e,n),t);function HH(e){return zH(UH(2.55*e),0,255)}function $H(e){return zH(UH(255*e),0,255)}function VH(e){return zH(UH(e/2.55)/100,0,1)}function GH(e){return zH(UH(100*e),0,100)}const WH={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},qH=[..."0123456789ABCDEF"],YH=e=>qH[15&e],KH=e=>qH[(240&e)>>4]+qH[15&e],XH=e=>(240&e)>>4===(15&e);function ZH(e){var t=(e=>XH(e.r)&&XH(e.g)&&XH(e.b)&&XH(e.a))(e)?YH:KH;return e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0}const QH=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function JH(e,t,n){const r=t*Math.min(n,1-n),i=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(t+e/30)%12;return n-r*Math.max(Math.min(i-3,9-i,1),-1)};return[i(0),i(8),i(4)]}function e$(e,t,n){const r=function(r){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(r+e/60)%6;return n-n*t*Math.max(Math.min(i,4-i,1),0)};return[r(5),r(3),r(1)]}function t$(e,t,n){const r=JH(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function n$(e){const t=e.r/255,n=e.g/255,r=e.b/255,i=Math.max(t,n,r),o=Math.min(t,n,r),a=(i+o)/2;let s,l,c;return i!==o&&(c=i-o,l=a>.5?c/(2-i-o):c/(i+o),s=function(e,t,n,r,i){return e===i?(t-n)/r+(t<n?6:0):t===i?(n-e)/r+2:(e-t)/r+4}(t,n,r,c,i),s=60*s+.5),[0|s,l||0,a]}function r$(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map($H)}function i$(e,t,n){return r$(JH,e,t,n)}function o$(e){return(e%360+360)%360}function a$(e){const t=QH.exec(e);let n,r=255;if(!t)return;t[5]!==n&&(r=t[6]?HH(+t[5]):$H(+t[5]));const i=o$(+t[2]),o=+t[3]/100,a=+t[4]/100;return n="hwb"===t[1]?function(e,t,n){return r$(t$,e,t,n)}(i,o,a):"hsv"===t[1]?function(e,t,n){return r$(e$,e,t,n)}(i,o,a):i$(i,o,a),{r:n[0],g:n[1],b:n[2],a:r}}const s$={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},l$={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",K
vendor: 12,307 bytes, line 155
155ocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let c$;function u$(e){c$||(c$=function(){const e={},t=Object.keys(l$),n=Object.keys(s$);let r,i,o,a,s;for(r=0;r<t.length;r++){for(a=s=t[r],i=0;i<n.length;i++)o=n[i],s=s.replace(o,s$[o]);o=parseInt(l$[a],16),e[s]=[o>>16&255,o>>8&255,255&o]}return e}(),c$.transparent=[0,0,0,0]);const t=c$[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}const d$=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const p$=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,h$=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function f$(e,t,n){if(e){let r=n$(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,0===t?360:1)),r=i$(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function m$(e,t){return e?Object.assign(t||{},e):e}function g$(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=$H(e[3]))):(t=m$(e,{r:0,g:0,b:0,a:1})).a=$H(t.a),t}function b$(e){return"r"===e.charAt(0)?function(e){const t=d$.exec(e);let n,r,i,o=255;if(t){if(t[7]!==n){const e=+t[7];o=t[8]?HH(e):zH(255*e,0,255)}return n=+t[1],r=+t[3],i=+t[5],n=255&(t[2]?HH(n):zH(n,0,255)),r=255&(t[4]?HH(r):zH(r,0,255)),i=255&(t[6]?HH(i):zH(i,0,255)),{r:n,g:r,b:i,a:o}}}(e):a$(e)}class v${constructor(e){if(e instanceof v$)return e;const t=typeof e;let n;"object"===t?n=g$(e):"string"===t&&(n=function(e){var t,n=e.length;return"#"===e[0]&&(4===n||5===n?t={r:255&17*WH[e[1]],g:255&17*WH[e[2]],b:255&17*WH[e[3]],a:5===n?17*WH[e[4]]:255}:7!==n&&9!==n||(t={r:WH[e[1]]<<4|WH[e[2]],g:WH[e[3]]<<4|WH[e[4]],b:WH[e[5]]<<4|WH[e[6]],a:9===n?WH[e[7]]<<4|WH[e[8]]:255})),t}(e)||u$(e)||b$(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=m$(this._rgb);return e&&(e.a=VH(e.a)),e}set rgb(e){this._rgb=g$(e)}rgbString(){return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${VH(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0;var e}hexString(){return this._valid?ZH(this._rgb):void 0}hslString(){return this._valid?function(e){if(!e)return;const t=n$(e),n=t[0],r=GH(t[1]),i=GH(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${VH(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}(this._rgb):void 0}mix(e,t){if(e){const n=this.rgb,r=e.rgb;let i;const o=t===i?.5:t,a=2*o-1,s=n.a-r.a,l=((a*s===-1?a:(a+s)/(1+a*s))+1)/2;i=1-l,n.r=255&l*n.r+i*r.r+.5,n.g=255&l*n.g+i*r.g+.5,n.b=255&l*n.b+i*r.b+.5,n.a=o*n.a+(1-o)*r.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,n){const r=h$(VH(e.r)),i=h$(VH(e.g)),o=h$(VH(e.b));return{r:$H(p$(r+n*(h$(VH(t.r))-r))),g:$H(p$(i+n*(h$(VH(t.g))-i))),b:$H(p$(o+n*(h$(VH(t.b))-o))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new v$(this.rgb)}alpha(e){return this._rgb.a=$H(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=UH(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return f$(this._rgb,2,e),this}darken(e){return f$(this._rgb,2,-e),this}saturate(e){return f$(this._rgb,1,e),this}desaturate(e){return f$(this._rgb,1,-e),this}rotate(e){return function(e,t){var n=n$(e);n[0]=o$(n[0]+t),n=i$(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}function y$(){}const x$=(()=>{let e=0;return()=>e++})();function w$(e){return null===e||void 0===e}function A$(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function E$(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function S$(e){return("number"===typeof e||e instanceof Number)&&isFinite(+e)}function _$(e,t){return S$(e)?e:t}function k$(e,t){return"undefined"===typeof e?t:e}const T$=(e,t)=>"string"===typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function C$(e,t,n){if(e&&"function"===typeof e.call)return e.apply(n,t)}function O$(e,t,n,r){let i,o,a;if(A$(e))if(o=e.length,r)for(i=o-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<o;i++)t.call(n,e[i],i);else if(E$(e))for(a=Object.keys(e),o=a.length,i=0;i<o;i++)t.call(n,e[a[i]],a[i])}function N$(e,t){let n,r,i,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],o=t[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function I$(e){if(A$(e))return e.map(I$);if(E$(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;++i)t[n[i]]=I$(e[n[i]]);return t}return e}function R$(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function P$(e,t,n,r){if(!R$(e))return;const i=t[e],o=n[e];E$(i)&&E$(o)?j$(i,o,r):t[e]=I$(o)}function j$(e,t,n){const r=A$(t)?t:[t],i=r.length;if(!E$(e))return e;const o=(n=n||{}).merger||P$;let a;for(let s=0;s<i;++s){if(a=r[s],!E$(a))continue;const t=Object.keys(a);for(let r=0,i=t.length;r<i;++r)o(t[r],e,a,n)}return e}function M$(e,t){return j$(e,t,{merger:D$})}function D$(e,t,n){if(!R$(e))return;const r=t[e],i=n[e];E$(r)&&E$(i)?M$(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=I$(i))}const L$={"":e=>e,x:e=>e.x,y:e=>e.y};function F$(e,t){const n=L$[t]||(L$[t]=function(e){const t=function(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}(e);return e=>{for(const n of t){if(""===n)break;e=e&&e[n]}return e}}(t));return n(e)}function B$(e){return e.charAt(0).toUpperCase()+e.slice(1)}const U$=e=>"undefined"!==typeof e,z$=e=>"function"===typeof e,H$=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};const $$=Math.PI,V$=2*$$,G$=Number.POSITIVE_INFINITY,W$=$$/180,q$=$$/2,Y$=$$/4,K$=2*$$/3,X$=Math.log10,Z$=Math.sign;function Q$(e,t,n){return Math.abs(e-t)<n}function J$(e){const t=Math.round(e);e=Q$(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(X$(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function eV(e){return!isNaN(parseFloat(e))&&isFinite(e)}function tV(e,t,n){let r,i,o;for(r=0,i=e.length;r<i;r++)o=e[r][n],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function nV(e){return e*($$/180)}function rV(e){return e*(180/$$)}function iV(e){if(!S$(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function oV(e,t){const n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);let o=Math.atan2(r,n);return o<-.5*$$&&(o+=V$),{angle:o,distance:i}}function aV(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function sV(e){return(e%V$+V$)%V$}function lV(e,t,n,r){const i=sV(e),o=sV(t),a=sV(n),s=sV(o-i),l=sV(a-i),c=sV(i-o),u=sV(i-a);return i===o||i===a||r&&o===a||s>l&&c<u}function cV(e,t,n){return Math.max(t,Math.min(n,e))}function uV(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e-6;return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function dV(e,t,n){n=n||(n=>e[n]<t);let r,i=e.length-1,o=0;for(;i-o>1;)r=o+i>>1,n(r)?o=r:i=r;return{lo:o,hi:i}}const pV=(e,t,n,r)=>dV(e,n,r?r=>{const i=e[r][t];return i<n||i===n&&e[r+1][t]===n}:r=>e[r][t]<n),hV=(e,t,n)=>dV(e,n,(r=>e[r][t]>=n));const fV=["push","pop","shift","splice","unshift"];function mV(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);-1!==i&&r.splice(i,1),r.length>0||(fV.forEach((t=>{delete e[t]})),delete e._chartjs)}function gV(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const bV="undefined"===typeof window?function(e){return e()}:window.requestAnimationFrame;function vV(e,t){let n=[],r=!1;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];n=o,r||(r=!0,bV.call(window,(()=>{r=!1,e.apply(t,n)})))}}const yV=e=>"start"===e?"left":"end"===e?"right":"center",xV=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2;const wV=e=>0===e||1===e,AV=(e,t,n)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*V$/n),EV=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*V$/n)+1,SV={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*q$),easeOutSine:e=>Math.sin(e*q$),easeInOutSine:e=>-.5*(Math.cos($$*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>wV(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>wV(e)?e:AV(e,.075,.3),easeOutElastic:e=>wV(e)?e:EV(e,.075,.3),easeInOutElastic(e){const t=.1125;return wV(e)?e:e<.5?.5*AV(2*e,t,.45):.5+.5*EV(2*e-1,t,.45)},easeInBack(e){const t=1.70158;return e*e*((t+1)*e-t)},easeOutBack(e){const t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:e=>1-SV.easeOutBounce(1-e),easeOutBounce(e){const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:e=>e<.5?.5*SV.easeInBounce(2*e):.5*SV.easeOutBounce(2*e-1)+.5};function _V(e){if(e&&"object"===typeof e){const t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function kV(e){return _V(e)?e:new v$(e)}function TV(e){return _V(e)?e:new v$(e).saturate(.5).darken(.1).hexString()}const CV=["x","y","borderWidth","radius","tension"],OV=["color","borderColor","backgroundColor"];const NV=new Map;function IV(e,t,n){return function(e,t){t=t||{};const n=e+JSON.stringify(t);let r=NV.get(n);return r||(r=new Intl.NumberFormat(e,t),NV.set(n,r)),r}(t,n).format(e)}const RV={values(e){return A$(e)?e:""+e},numeric(e,t,n){if(0===e)return"0";const r=this.chart.options.locale;let i,o=e;if(n.length>1){const t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(t<1e-4||t>1e15)&&(i="scientific"),o=function(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e));return n}
vendor: 1,493 bytes, line 155
155(e,n)}const a=X$(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),IV(e,r,l)},logarithmic(e,t,n){if(0===e)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(X$(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?RV.numeric.call(this,e,t,n):""}};var PV={formatters:RV};const jV=Object.create(null),MV=Object.create(null);function DV(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;r<i;++r){const t=n[r];e=e[t]||(e[t]=Object.create(null))}return e}function LV(e,t,n){return"string"===typeof t?j$(DV(e,t),n):j$(DV(e,""),t)}class FV{constructor(e,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>TV(t.backgroundColor),this.hoverBorderColor=(e,t)=>TV(t.borderColor),this.hoverColor=(e,t)=>TV(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={}
vendor: 4,831 bytes, line 155
155,this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return LV(this,e,t)}get(e){return DV(this,e)}describe(e,t){return LV(MV,e,t)}override(e,t){return LV(jV,e,t)}route(e,t,n,r){const i=DV(this,e),o=DV(this,n),a="_"+t;Object.defineProperties(i,{[a]:{value:i[t],writable:!0},[t]:{enumerable:!0,get(){const e=this[a],t=o[r];return E$(e)?Object.assign({},t,e):k$(e,t)},set(e){this[a]=e}}})}apply(e){e.forEach((e=>e(this)))}}var BV=new FV({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),e.set("animations",{colors:{type:"color",properties:OV},numbers:{type:"number",properties:CV}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})},function(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:PV.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function UV(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function zV(e,t,n){const r=e.currentDevicePixelRatio,i=0!==n?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function HV(e,t){(t||e)&&((t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function $V(e,t,n,r){VV(e,t,n,r,null)}function VV(e,t,n,r,i){let o,a,s,l,c,u,d,p;const h=t.pointStyle,f=t.rotation,m=t.radius;let g=(f||0)*W$;if(h&&"object"===typeof h&&(o=h.toString(),"[object HTMLImageElement]"===o||"[object HTMLCanvasElement]"===o))return e.save(),e.translate(n,r),e.rotate(g),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),void e.restore();if(!(isNaN(m)||m<=0)){switch(e.beginPath(),h){default:i?e.ellipse(n,r,i/2,m,0,0,V$):e.arc(n,r,m,0,V$),e.closePath();break;case"triangle":u=i?i/2:m,e.moveTo(n+Math.sin(g)*u,r-Math.cos(g)*m),g+=K$,e.lineTo(n+Math.sin(g)*u,r-Math.cos(g)*m),g+=K$,e.lineTo(n+Math.sin(g)*u,r-Math.cos(g)*m),e.closePath();break;case"rectRounded":c=.516*m,l=m-c,a=Math.cos(g+Y$)*l,d=Math.cos(g+Y$)*(i?i/2-c:l),s=Math.sin(g+Y$)*l,p=Math.sin(g+Y$)*(i?i/2-c:l),e.arc(n-d,r-s,c,g-$$,g-q$),e.arc(n+p,r-a,c,g-q$,g),e.arc(n+d,r+s,c,g,g+q$),e.arc(n-p,r+a,c,g+q$,g+$$),e.closePath();break;case"rect":if(!f){l=Math.SQRT1_2*m,u=i?i/2:l,e.rect(n-u,r-l,2*u,2*l);break}g+=Y$;case"rectRot":d=Math.cos(g)*(i?i/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,p=Math.sin(g)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+p,r-a),e.lineTo(n+d,r+s),e.lineTo(n-p,r+a),e.closePath();break;case"crossRot":g+=Y$;case"cross":d=Math.cos(g)*(i?i/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,p=Math.sin(g)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+p,r-a),e.lineTo(n-p,r+a);break;case"star":d=Math.cos(g)*(i?i/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,p=Math.sin(g)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+p,r-a),e.lineTo(n-p,r+a),g+=Y$,d=Math.cos(g)*(i?i/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,p=Math.sin(g)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+p,r-a),e.lineTo(n-p,r+a);break;case"line":a=i?i/2:Math.cos(g)*m,s=Math.sin(g)*m,e.moveTo(n-a,r-s),e.lineTo(n+a,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(g)*(i?i/2:m),r+Math.sin(g)*m);break;case!1:e.closePath()}e.fill(),t.borderWidth>0&&e.stroke()}}
155function GV(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function WV(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function qV(e){e.restore()}function YV(e,t,n,r,i){if(i.strikethrough||i.underline){const o=e.measureText(r),a=t-o.actualBoundingBoxLeft,s=t+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,c=n+o.actualBoundingBoxDescent,u=i.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(a,u),e.lineTo(s,u),e.stroke()}}function KV(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function XV(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};const a=A$(t)?t:[t],s=o.strokeWidth>0&&""!==o.strokeColor;let l,c;for(e.save(),e.font=i.string,function(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),w$(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}(e,o),l=0;l<a.length;++l)c=a[l],o.backdrop&&KV(e,o.backdrop),s&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),w$(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(c,n,r,o.maxWidth)),e.fillText(c,n,r,o.maxWidth),YV(e,n,r,c,o),r+=Number(i.lineHeight);e.restore()}function ZV(e,t){const{x:n,y:r,w:i,h:o,radius:a}=t;e.arc(n+a.topLeft,r+a.topLeft,a.topLeft,1.5*$$,$$,!0),e.lineTo(n,r+o-a.bottomLeft),e.arc(n+a.bottomLeft,r+o-a.bottomLeft,a.bottomLeft,$$,q$,!0),e.lineTo(n+i-a.bottomRight,r+o),e.arc(n+i-a.bottomRight,r+o-a.bottomRight,a.bottomRight,q$,0,!0),e.lineTo(n+i,r+a.topRight),e.arc(n+i-a.topRight,r+a.topRight,a.topRight,0,-q$,!0),e.lineTo(n+a.topLeft,r)}const QV=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,JV=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function eG(e,t){const n=(""+e).match(QV);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}function tG(e,t){const n={},r=E$(t),i=r?Object.keys(t):t,o=E$(e)?r?n=>k$(e[n],e[t[n]]):t=>e[t]:()=>e;for(const a of i)n[a]=+o(a)||0;return n}function nG(e){return tG(e,{top:"y",right:"x",bottom:"y",left:"x"})}function rG(e){return tG(e,["topLeft","topRight","bottomLeft","bottomRight"])}function iG(e){const t=nG(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function oG(e,t){e=e||{},t=t||BV.font;let n=k$(e.size,t.size);"string"===typeof n&&(n=parseInt(n,10));let r=k$(e.style,t.style);r&&!(""+r).match(JV)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:k$(e.family,t.family),lineHeight:eG(k$(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:k$(e.weight,t.weight),string:""};return i.string=function(e){return!e||w$(e.size)||w$(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(i),i}function aG(e,t,n,r){let i,o,a,s=!0;for(i=0,o=e.length;i<o;++i)if(a=e[i],void 0!==a&&(void 0!==t&&"function"===typeof a&&(a=a(t),s=!1),void 0!==n&&A$(a)&&(a=a[n%a.length],s=!1),void 0!==a))return r&&!s&&(r.cacheable=!1),a}function sG(e,t){return Object.assign(Object.create(e),t)}function lG(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[""],n=arguments.length>3?arguments[3]:void 0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>e[0];const i=(arguments.length>2?arguments[2]:void 0)||e;"undefined"===typeof n&&(n=yG("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:i,_fallback:n,_getTarget:r,override:r=>lG([r,...e],t,i,n)};return new Proxy(o,{deleteProperty(t,n){return delete t[n],delete t._keys,delete e[0][n],!0},get(n,r){return hG(n,r,(()=>function(e,t,n,r){let i;for(const o of t)if(i=yG(dG(o,e),n),"undefined"!==typeof i)return pG(e,i)?bG(n,r,e,i):i}(r,t,e,n)))},getOwnPropertyDescriptor(e,t){return Reflect.getOwnPropertyDescriptor(e._scopes[0],t)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(e,t){return xG(e).includes(t)},ownKeys(e){return xG(e)},set(e,t,n){const i=e._storage||(e._storage=r());return e[t]=i[t]=n,delete e._keys,!0}})}function cG(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:uG(e,r),setContext:t=>cG(e,t,n,r),override:i=>cG(e.override(i),t,n,r)};return new Proxy(i,{deleteProperty(t,n){return delete t[n],delete e[n],!0},get(e,t,n){return hG(e,t,(()=>function(e,t,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:a}=e;let s=r[t];z$(s)&&a.isScriptable(t)&&(s=function(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(o,a||r);s.delete(e),pG(e,l)&&(l=bG(i._scopes,i,e,l));return l}(t,s,e,n));A$(s)&&s.length&&(s=function(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=n;if("undefined"!==typeof o.index&&r(e))return t[o.index%t.length];
vendor: 4,679 bytes, line 155
155if(E$(t[0])){const n=t,r=i._scopes.filter((e=>e!==n));t=[];for(const l of n){const n=bG(r,i,e,l);t.push(cG(n,o,a&&a[e],s))}}return t}(t,s,e,a.isIndexable));pG(t,s)&&(s=cG(s,i,o&&o[t],a));return s}(e,t,n)))},getOwnPropertyDescriptor(t,n){return t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(t,n){return Reflect.has(e,n)},ownKeys(){return Reflect.ownKeys(e)},set(t,n,r){return e[n]=r,delete t[n],!0}})}function uG(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{scriptable:!0,indexable:!0};const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:z$(n)?n:()=>n,isIndexable:z$(r)?r:()=>r}}const dG=(e,t)=>e?e+B$(t):t,pG=(e,t)=>E$(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function hG(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||"constructor"===t)return e[t];const r=n();return e[t]=r,r}function fG(e,t,n){return z$(e)?e(t,n):e}const mG=(e,t)=>!0===e?t:"string"===typeof e?F$(t,e):void 0;function gG(e,t,n,r,i){for(const o of t){const t=mG(n,o);if(t){e.add(t);const o=fG(t._fallback,n,i);if("undefined"!==typeof o&&o!==n&&o!==r)return o}else if(!1===t&&"undefined"!==typeof r&&n!==r)return null}return!1}function bG(e,t,n,r){const i=t._rootScopes,o=fG(t._fallback,n,r),a=[...e,...i],s=new Set;s.add(r);let l=vG(s,a,n,o||n,r);return null!==l&&(("undefined"===typeof o||o===n||(l=vG(s,a,o,l,r),null!==l))&&lG(Array.from(s),[""],i,o,(()=>function(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];if(A$(i)&&E$(n))return n;return i||{}}(t,n,r))))}function vG(e,t,n,r,i){for(;n;)n=gG(e,t,n,r,i);return n}function yG(e,t){for(const n of t){if(!n)continue;const t=n[e];if("undefined"!==typeof t)return t}}function xG(e){let t=e._keys;return t||(t=e._keys=function(e){const t=new Set;for(const n of e)for(const e of Object.keys(n).filter((e=>!e.startsWith("_"))))t.add(e);return Array.from(t)}(e._scopes)),t}Number.EPSILON;function wG(){return"undefined"!==typeof window&&"undefined"!==typeof document}function AG(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function EG(e,t,n){let r;return"string"===typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}const SG=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);const _G=["top","right","bottom","left"];function kG(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=_G[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}function TG(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=SG(n),o="border-box"===i.boxSizing,a=kG(i,"padding"),s=kG(i,"border","width"),{x:l,y:c,box:u}=function(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=r;let a,s,l=!1;if(((e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot))(i,o,e.target))a=i,s=o;else{const e=t.getBoundingClientRect();a=r.clientX-e.left,s=r.clientY-e.top,l=!0}return{x:a,y:s,box:l}}(e,n),d=a.left+(u&&s.left),p=a.top+(u&&s.top);let{width:h,height:f}=t;return o&&(h-=a.width+s.width,f-=a.height+s.height),{x:Math.round((l-d)/h*n.width/r),y:Math.round((c-p)/f*n.height/r)}}const CG=e=>Math.round(10*e)/10;function OG(e,t,n,r){const i=SG(e),o=kG(i,"margin"),a=EG(i.maxWidth,e,"clientWidth")||G$,s=EG(i.maxHeight,e,"clientHeight")||G$,l=function(e,t,n){let r,i;if(void 0===t||void 0===n){const o=e&&AG(e);if(o){const e=o.getBoundingClientRect(),a=SG(o),s=kG(a,"border","width"),l=kG(a,"padding");t=e.width-l.width-s.width,n=e.height-l.height-s.height,r=EG(a.maxWidth,o,"clientWidth"),i=EG(a.maxHeight,o,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:r||G$,maxHeight:i||G$}}(e,t,n);let{width:c,height:u}=l;if("content-box"===i.boxSizing){const e=kG(i,"border","width"),t=kG(i,"padding");c-=t.width+e.width,u-=t.height+e.height}c=Math.max(0,c-o.width),u=Math.max(0,r?c/r:u-o.height),c=CG(Math.min(c,a,l.maxWidth)),u=CG(Math.min(u,s,l.maxHeight)),c&&!u&&(u=CG(c/2));return(void 0!==t||void 0!==n)&&r&&l.height&&u>l.height&&(u=l.height,c=CG(Math.floor(u*r))),{width:c,height:u}}function NG(e,t,n){const r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==r||a.height!==i||a.width!==o)&&(e.currentDevicePixelRatio=r,a.height=i,a.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0)}const IG=function(){let e=!1;
vendor: 4,315 bytes, line 155
155try{const t={get passive(){return e=!0,!1}};wG()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(t){}return e}();function RG(e,t){const n=function(e,t){return SG(e).getPropertyValue(t)}(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function PG(e,t,n){return e?function(e,t){return{x(n){return e+e+t-n},setWidth(e){t=e},textAlign(e){return"center"===e?e:"right"===e?"left":"right"},xPlus(e,t){return e-t},leftForLtr(e,t){return e-t}}}(t,n):{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}}function jG(e,t){let n,r;"ltr"!==t&&"rtl"!==t||(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function MG(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}class DG{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,n,r){const i=t.listeners[r],o=t.duration;i.forEach((r=>r({chart:e,initial:t.initial,numSteps:o,currentStep:Math.min(n-t.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=bV.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now(),t=0;this._charts.forEach(((n,r)=>{if(!n.running||!n.items.length)return;const i=n.items;let o,a=i.length-1,s=!1;for(;a>=0;--a)o=i[a],o._active?(o._total>n.duration&&(n.duration=o._total),o.tick(e),s=!0):(i[a]=i[i.length-1],i.pop());s&&(r.draw(),this._notify(r,n,e,"progress")),i.length||(n.running=!1,this._notify(r,n,e,"complete"),n.initial=!1),t+=i.length})),this._lastDate=e,0===t&&(this._running=!1)}_getAnims(e){const t=this._charts;let n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce(((e,t)=>Math.max(e,t._duration)),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const n=t.items;let r=n.length-1;for(;r>=0;--r)n[r].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var LG=new DG;const FG="transparent",BG={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=kV(e||FG),i=r.valid&&kV(t||FG);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class UG{constructor(e,t,n,r){const i=t[n];r=aG([e.to,r,i,e.from]);const o=aG([e.from,i,r]);this._active=!0,this._fn=e.fn||BG[e.type||typeof o],this._easing=SV[e.easing]||SV.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=o,this._to=r,this._promises=void 0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!1);const r=this._target[this._prop],i=n-this._start,o=this._duration-i;this._start=n,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=aG([e.to,t,r,e.from]),this._from=aG([e.from,r,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,n=this._duration,r=this._prop,i=this._from,o=this._loop,a=this._to;let s;if(this._active=i!==a&&(o||t<n),!this._active)return this._target[r]=a,void this._notify(!0);t<0?this._target[r]=i:(s=t/n%2,s=o&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[r]=this._fn(i,a,s))}wait(){const e=this._promises||(this._promises=[]);return new Promise(((t,n)=>{e.push({res:t,rej:n})}))}_notify(e){const t=e?"res":"rej",n=this._promises||[];for(let r=0;r<n.length;r++)n[r][t]()}}class zG{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!E$(e))return;const t=Object.keys(BV.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach((r=>{const i=e[r];if(!E$(i))return;const o={};for(const e of t)o[e]=i[e];
vendor: 11,929 bytes, line 155
155(A$(i.properties)&&i.properties||[r]).forEach((e=>{e!==r&&n.has(e)||n.set(e,o)}))}))}_animateOptions(e,t){const n=t.options,r=function(e,t){if(!t)return;let n=e.options;if(!n)return void(e.options=t);n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(e,n);if(!r)return[];const i=this._createAnimations(r,n);return n.$shared&&function(e,t){const n=[],r=Object.keys(t);for(let i=0;i<r.length;i++){const t=e[r[i]];t&&t.active()&&n.push(t.wait())}return Promise.all(n)}(e.options.$animations,n).then((()=>{e.options=n}),(()=>{})),i}_createAnimations(e,t){const n=this._properties,r=[],i=e.$animations||(e.$animations={}),o=Object.keys(t),a=Date.now();let s;for(s=o.length-1;s>=0;--s){const l=o[s];if("$"===l.charAt(0))continue;if("options"===l){r.push(...this._animateOptions(e,t));continue}const c=t[l];let u=i[l];const d=n.get(l);if(u){if(d&&u.active()){u.update(d,c,a);continue}u.cancel()}d&&d.duration?(i[l]=u=new UG(d,e,l,c),r.push(u)):e[l]=c}return r}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const n=this._createAnimations(e,t);return n.length?(LG.add(this._chart,n),!0):void 0}}function HG(e,t){const n=e&&e.options||{},r=n.reverse,i=void 0===n.min?t:0,o=void 0===n.max?t:0;return{start:r?o:i,end:r?i:o}}function $G(e,t){const n=[],r=e._getSortedDatasetMetas(t);let i,o;for(i=0,o=r.length;i<o;++i)n.push(r[i].index);return n}function VG(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=e.keys,o="single"===r.mode;let a,s,l,c;if(null===t)return;let u=!1;for(a=0,s=i.length;a<s;++a){if(l=+i[a],l===n){if(u=!0,r.all)continue;break}c=e.values[l],S$(c)&&(o||0===t||Z$(t)===Z$(c))&&(t+=c)}return u||r.all?t:0}function GG(e,t){const n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function WG(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function qG(e,t,n,r){for(const i of t.getMatchingVisibleMetas(r).reverse()){const t=e[i.index];if(n&&t>0||!n&&t<0)return i.index}return null}function YG(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:a,index:s}=r,l=o.axis,c=a.axis,u=function(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}(o,a,r),d=t.length;let p;for(let h=0;h<d;++h){const e=t[h],{[l]:n,[c]:o}=e;p=(e._stacks||(e._stacks={}))[c]=WG(i,u,n),p[s]=o,p._top=qG(p,a,!0,r.type),p._bottom=qG(p,a,!1,r.type);(p._visualValues||(p._visualValues={}))[s]=o}}function KG(e,t){const n=e.scales;return Object.keys(n).filter((e=>n[e].axis===t)).shift()}function XG(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const e of t){const t=e._stacks;if(!t||void 0===t[r]||void 0===t[r][n])return;delete t[r][n],void 0!==t[r]._visualValues&&void 0!==t[r]._visualValues[n]&&delete t[r]._visualValues[n]}}}const ZG=e=>"reset"===e||"none"===e,QG=(e,t)=>t?e:Object.assign({},e);class JG{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=GG(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&XG(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,t=this._cachedMeta,n=this.getDataset(),r=(e,t,n,r)=>"x"===e?t:"r"===e?r:n,i=t.xAxisID=k$(n.xAxisID,KG(e,"x")),o=t.yAxisID=k$(n.yAxisID,KG(e,"y")),a=t.rAxisID=k$(n.rAxisID,KG(e,"r")),s=t.indexAxis,l=t.iAxisID=r(s,i,o,a),c=t.vAxisID=r(s,o,i,a);t.xScale=this.getScaleForId(i),t.yScale=this.getScaleForId(o),t.rScale=this.getScaleForId(a),t.iScale=this.getScaleForId(l),t.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&mV(this._data,this),e._stacked&&XG(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),n=this._data;if(E$(t)){const e=this._cachedMeta;this._data=function(e,t){const{iScale:n,vScale:r}=t,i="x"===n.axis?"x":"y",o="x"===r.axis?"x":"y",a=Object.keys(e),s=new Array(a.length);let l,c,u;for(l=0,c=a.length;l<c;++l)u=a[l],s[l]={[i]:u,[o]:e[u]};return s}(t,e)}else if(n!==t){if(n){mV(n,this);const e=this._cachedMeta;XG(e),e._parsed=[]}t&&Object.isExtensible(t)&&(i=this,(r=t)._chartjs?r._chartjs.listeners.push(i):(Object.defineProperty(r,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[i]}}),fV.forEach((e=>{const t="_onData"+B$(e),n=r[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,value(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];const a=n.apply(this,i);return r._chartjs.listeners.forEach((e=>{"function"===typeof e[t]&&e[t](...i)})),a}})})))),this._syncList=[],this._data=t}var r,i}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const t=this._cachedMeta,n=this.getDataset();let r=!1;this._dataCheck();const i=t._stacked;t._stacked=GG(t.vScale,t),t.stack!==n.stack&&(r=!0,XG(t),t.stack=n.stack),this._resyncElements(e),(r||i!==t._stacked)&&(YG(this,t._parsed),t._stacked=GG(t.vScale,t))}configure(){const e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){const{_cachedMeta:n,_data:r}=this,{iScale:i,_stacked:o}=n,a=i.axis;let s,l,c,u=0===e&&t===r.length||n._sorted,d=e>0&&n._parsed[e-1];if(!1===this._parsing)n._parsed=r,n._sorted=!0,c=r;else{c=A$(r[e])?this.parseArrayData(n,r,e,t):E$(r[e])?this.parseObjectData(n,r,e,t):this.parsePrimitiveData(n,r,e,t);const i=()=>null===l[a]||d&&l[a]<d[a];for(s=0;s<t;++s)n._parsed[s+e]=l=c[s],u&&(i()&&(u=!1),d=l);n._sorted=u}o&&YG(this,c)}parsePrimitiveData(e,t,n,r){const{iScale:i,vScale:o}=e,a=i.axis,s=o.axis,l=i.getLabels(),c=i===o,u=new Array(r);let d,p,h;for(d=0,p=r;d<p;++d)h=d+n,u[d]={[a]:c||i.parse(l[h],h),[s]:o.parse(t[h],h)};return u}parseArrayData(e,t,n,r){const{xScale:i,yScale:o}=e,a=new Array(r);let s,l,c,u;for(s=0,l=r;s<l;++s)c=s+n,u=t[c],a[s]={x:i.parse(u[0],c),y:o.parse(u[1],c)};return a}parseObjectData(e,t,n,r){const{xScale:i,yScale:o}=e,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l=new Array(r);let c,u,d,p;for(c=0,u=r;c<u;++c)d=c+n,p=t[d],l[c]={x:i.parse(F$(p,a),d),y:o.parse(F$(p,s),d)};return l}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,n){const r=this.chart,i=this._cachedMeta,o=t[e.axis];return VG({keys:$G(r,!0),values:t._stacks[e.axis]._visualValues},o,i.index,{mode:n})}updateRangeFromParsed(e,t,n,r){const i=n[t.axis];let o=null===i?NaN:i;const a=r&&n._stacks[t.axis];r&&a&&(r.values=a,o=VG(r,i,this._cachedMeta.index)),e.min=Math.min(e.min,o),e.max=Math.max(e.max,o)}getMinMax(e,t){const n=this._cachedMeta,r=n._parsed,i=n._sorted&&e===n.iScale,o=r.length,a=this._getOtherScale(e),s=((e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:$G(n,!0),values:null})(t,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=function(e){const{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}(a);let d,p;function h(){p=r[d];const t=p[a.axis];return!S$(p[e.axis])||c>t||u<t}for(d=0;d<o&&(h()||(this.updateRangeFromParsed(l,e,p,s),!i));++d);if(i)for(d=o-1;d>=0;--d)if(!h()){this.updateRangeFromParsed(l,e,p,s);break}return l}getAllParsedValues(e){const t=this._cachedMeta._parsed,n=[];let r,i,o;for(r=0,i=t.length;r<i;++r)o=t[r][e.axis],S$(o)&&n.push(o);return n}getMaxOverflow(){return!1}getLabelAndValue(e){const t=this._cachedMeta,n=t.iScale,r=t.vScale,i=this.getParsed(e);return{label:n?""+n.getLabelForValue(i[n.axis]):"",value:r?""+r.getLabelForValue(i[r.axis]):""}}_update(e){const t=this._cachedMeta;this.update(e||"default"),t._clip=function(e){let t,n,r,i;return E$(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:!1===e}}(k$(this.options.clip,function(e,t,n){if(!1===n)return!1;const r=HG(e,n),i=HG(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}(t.xScale,t.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,t=this.chart,n=this._cachedMeta,r=n.data||[],i=t.chartArea,o=[],a=this._drawStart||0,s=this._drawCount||r.length-a,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(e,i,a,s),c=a;c<a+s;++c){const t=r[c];t.hidden||(t.active&&l?o.push(t):t.draw(e,i))}for(c=0;c<o.length;++c)o[c].draw(e,i)}getStyle(e,t){const n=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}getContext(e,t,n){const r=this.getDataset();let i;if(e>=0&&e<this._cachedMeta.data.length){const t=this._cachedMeta.data[e];i=t.$context||(t.$context=function(e,t,n){return sG(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}(this.getContext(),e,t)),i.parsed=this.getParsed(e),i.raw=r.data[e],i.index=i.dataIndex=e}else i=this.$context||(this.$context=function(e,t){return sG(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),i.dataset=r,i.index=i.datasetIndex=this.index;return i.active=!!t,i.mode=n,i}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2?arguments[2]:void 0;const r="active"===t,i=this._cachedDataOpts,o=e+"-"+t,a=i[o],s=this.enableOptionSharing&&U$(n);if(a)return QG(a,s);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,e),u=r?[`${e}Hover`,"hover",e,""]:[e,""],d=l.getOptionScopes(this.getDataset(),c),p=Object.keys(BV.elements[e]),h=l.resolveNamedOptions(d,p,(()=>this.getContext(n,r,t)),u);return h.$shared&&(h.$shared=s,i[o]=Object.freeze(QG(h,s))),h}_resolveAnimations(e,t,n){const r=this.chart,i=this._cachedDataOpts,o=`animation-${t}`,a=i[o];if(a)return a;let s;if(!1!==r.options.animation){const r=this.chart.config,i=r.datasetAnimationScopeKeys(this._type,t),o=r.getOptionScopes(this.getDataset(),i);s=r.createResolver(o,this.getContext(e,n,t))}const l=new zG(r,s&&s.animations);return s&&s._cacheable&&(i[o]=Object.freeze(l)),l}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||ZG(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){const n=this.resolveDataElementOptions(e,t),r=this._sharedOptions,i=this.getSharedOptions(n),o=this.includeOptions(t,i)||i!==r;return this.updateSharedOptions(i,t,n),{sharedOptions:i,includeOptions:o}}updateElement(e,t,n,r){ZG(r)?Object.assign(e,n):this._resolveAnimations(t,r).update(e,n)}updateSharedOptions(e,t,n){e&&!ZG(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,r){e.active=r;const i=this.getStyle(t,r);
vendor: 7,275 bytes, line 155
155this._resolveAnimations(t,n,r).update(e,{options:!r&&this.getSharedOptions(i)||i})}removeHoverStyle(e,t,n){this._setStyle(e,n,"active",!1)}setHoverStyle(e,t,n){this._setStyle(e,n,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this._data,n=this._cachedMeta.data;for(const[a,s,l]of this._syncList)this[a](s,l);this._syncList=[];const r=n.length,i=t.length,o=Math.min(i,r);o&&this.parse(0,o),i>r?this._insertElements(r,i-r,e):i<r&&this._removeElements(i,r-i)}_insertElements(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=this._cachedMeta,i=r.data,o=e+t;let a;const s=e=>{for(e.length+=t,a=e.length-1;a>=o;a--)e[a]=e[a-t]};for(s(i),a=e;a<o;++a)i[a]=new this.dataElementType;this._parsing&&s(r._parsed),this.parse(e,t),n&&this.updateElements(i,e,t,"reset")}updateElements(e,t,n,r){}_removeElements(e,t){const n=this._cachedMeta;if(this._parsing){const r=n._parsed.splice(e,t);n._stacked&&XG(n,r)}n.data.splice(e,t)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[t,n,r]=e;this[t](n,r)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,t){t&&this._sync(["_removeElements",e,t]);const n=arguments.length-2;n&&this._sync(["_insertElements",e,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function eW(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class tW{static override(e){Object.assign(tW.prototype,e)}options;constructor(e){this.options=e||{}}init(){}formats(){return eW()}parse(){return eW()}format(){return eW()}add(){return eW()}diff(){return eW()}startOf(){return eW()}endOf(){return eW()}}var nW=tW;function rW(e,t,n,r){const{controller:i,data:o,_sorted:a}=e,s=i._cachedMeta.iScale;if(s&&t===s.axis&&"r"!==t&&a&&o.length){const e=s._reversePixels?hV:pV;if(!r)return e(o,t,n);if(i._sharedOptions){const r=o[0],i="function"===typeof r.getRange&&r.getRange(t);if(i){const r=e(o,t,n-i),a=e(o,t,n+i);return{lo:r.lo,hi:a.hi}}}}return{lo:0,hi:o.length-1}}function iW(e,t,n,r,i){const o=e.getSortedVisibleDatasetMetas(),a=n[t];for(let s=0,l=o.length;s<l;++s){const{index:e,data:n}=o[s],{lo:l,hi:c}=rW(o[s],t,a,i);for(let t=l;t<=c;++t){const i=n[t];i.skip||r(i,e,t)}}}function oW(e,t,n,r,i){const o=[];if(!i&&!e.isPointInArea(t))return o;return iW(e,n,t,(function(n,a,s){(i||GV(n,e.chartArea,0))&&n.inRange(t.x,t.y,r)&&o.push({element:n,datasetIndex:a,index:s})}),!0),o}function aW(e,t,n,r,i,o){let a=[];const s=function(e){const t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,r){const i=t?Math.abs(e.x-r.x):0,o=n?Math.abs(e.y-r.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(o,2))}}(n);let l=Number.POSITIVE_INFINITY;return iW(e,n,t,(function(n,c,u){const d=n.inRange(t.x,t.y,i);if(r&&!d)return;const p=n.getCenterPoint(i);if(!(!!o||e.isPointInArea(p))&&!d)return;const h=s(t,p);h<l?(a=[{element:n,datasetIndex:c,index:u}],l=h):h===l&&a.push({element:n,datasetIndex:c,index:u})})),a}function sW(e,t,n,r,i,o){return o||e.isPointInArea(t)?"r"!==n||r?aW(e,t,n,r,i,o):function(e,t,n,r){let i=[];return iW(e,n,t,(function(e,n,o){const{startAngle:a,endAngle:s}=e.getProps(["startAngle","endAngle"],r),{angle:l}=oV(e,{x:t.x,y:t.y});lV(l,a,s)&&i.push({element:e,datasetIndex:n,index:o})})),i}(e,t,n,i):[]}function lW(e,t,n,r,i){const o=[],a="x"===n?"inXRange":"inYRange";let s=!1;return iW(e,n,t,((e,r,l)=>{e[a]&&e[a](t[n],i)&&(o.push({element:e,datasetIndex:r,index:l}),s=s||e.inRange(t.x,t.y,i))})),r&&!s?[]:o}var cW={evaluateInteractionItems:iW,modes:{index(e,t,n,r){const i=TG(t,e),o=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?oW(e,i,o,r,a):sW(e,i,o,!1,r,a),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach((e=>{const t=s[0].index,n=e.data[t];n&&!n.skip&&l.push({element:n,datasetIndex:e.index,index:t})})),l):[]},dataset(e,t,n,r){const i=TG(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?oW(e,i,o,r,a):sW(e,i,o,!1,r,a);if(s.length>0){const t=s[0].datasetIndex,n=e.getDatasetMeta(t).data;s=[];for(let e=0;e<n.length;++e)s.push({element:n[e],datasetIndex:t,index:e})}return s},point(e,t,n,r){return oW(e,TG(t,e),n.axis||"xy",r,n.includeInvisible||!1)},nearest(e,t,n,r){const i=TG(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;return sW(e,i,o,n.intersect,r,a)},x(e,t,n,r){return lW(e,TG(t,e),"x",n.intersect,r)},y(e,t,n,r){return lW(e,TG(t,e),"y",n.intersect,r)}}};const uW=["left","top","right","bottom"];function dW(e,t){return e.filter((e=>e.pos===t))}function pW(e,t){return e.filter((e=>-1===uW.indexOf(e.pos)&&e.box.axis===t))}function hW(e,t){return e.sort(((e,n)=>{const r=t?n:e,i=t?e:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight}))}function fW(e,t){const n=function(e){const t={};for(const n of e){const{stack:e,pos:r,stackWeight:i}=n;if(!e||!uW.includes(r))continue;const o=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=i}return t}(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let o,a,s;for(o=0,a=e.length;o<a;++o){s=e[o];const{fullSize:a}=s.box,l=n[s.stack],c=l&&s.stackWeight/l.weight;s.horizontal?(s.width=c?c*r:a&&t.availableWidth,s.height=i):(s.width=r,s.height=c?c*i:a&&t.availableHeight)}return n}function mW(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function gW(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function bW(e,t,n,r){const{pos:i,box:o}=n,a=e.maxPadding;if(!E$(i)){n.size&&(e[i]-=n.size);const t=r[n.stack]||{size:0,count:1};t.size=Math.max(t.size,n.horizontal?o.height:o.width),n.size=t.size/t.count,e[i]+=n.size}o.getPadding&&gW(a,o.getPadding());const s=Math.max(0,t.outerWidth-mW(a,e,"left","right")),l=Math.max(0,t.outerHeight-mW(a,e,"top","bottom")),c=s!==e.w,u=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function vW(e,t){const n=t.maxPadding;function r(e){const r={left:0,top:0,right:0,bottom:0};return e.forEach((e=>{r[e]=Math.max(t[e],n[e])})),r}return r(e?["left","right"]:["top","bottom"])}function yW(e,t,n,r){const i=[];let o,a,s,l,c,u;for(o=0,a=e.length,c=0;o<a;++o){s=e[o],l=s.box,l.update(s.width||t.w,s.height||t.h,vW(s.horizontal,t));const{same:a,other:d}=bW(t,n,s,r);c|=a&&i.length,u=u||d,l.fullSize||i.push(s)}return c&&yW(i,t,n,r)||u}function xW(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function wW(e,t,n,r){const i=n.padding;let{x:o,y:a}=t;for(const s of e){const e=s.box,l=r[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/l.weight||1;if(s.horizontal){const r=t.w*c,o=l.size||e.height;U$(l.start)&&(a=l.start),e.fullSize?xW(e,i.left,a,n.outerWidth-i.right-i.left,o):xW(e,t.left+l.placed,a,r,o),l.start=a,l.placed+=r,a=e.bottom}else{const r=t.h*c,a=l.size||e.width;U$(l.start)&&(o=l.start),e.fullSize?xW(e,o,i.top,a,n.outerHeight-i.bottom-i.top):xW(e,o,t.top+l.placed,a,r),l.start=o,l.placed+=r,o=e.right}}t.x=o,t.y=a}
vendor: 6,515 bytes, line 155
155var AW={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const i=iG(e.options.layout.padding),o=Math.max(t-i.width,0),a=Math.max(n-i.height,0),s=function(e){const t=function(e){const t=[];let n,r,i,o,a,s;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],({position:o,options:{stack:a,stackWeight:s=1}}=i),t.push({index:n,box:i,pos:o,horizontal:i.isHorizontal(),weight:i.weight,stack:a&&o+a,stackWeight:s});return t}(e),n=hW(t.filter((e=>e.box.fullSize)),!0),r=hW(dW(t,"left"),!0),i=hW(dW(t,"right")),o=hW(dW(t,"top"),!0),a=hW(dW(t,"bottom")),s=pW(t,"x"),l=pW(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(a).concat(s),chartArea:dW(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(a).concat(s)}}(e.boxes),l=s.vertical,c=s.horizontal;O$(e.boxes,(e=>{"function"===typeof e.beforeLayout&&e.beforeLayout()}));const u=l.reduce(((e,t)=>t.box.options&&!1===t.box.options.display?e:e+1),0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/u,hBoxMaxHeight:a/2}),p=Object.assign({},i);gW(p,iG(r));const h=Object.assign({maxPadding:p,w:o,h:a,x:i.left,y:i.top},i),f=fW(l.concat(c),d);yW(s.fullSize,h,d,f),yW(l,h,d,f),yW(c,h,d,f)&&yW(l,h,d,f),function(e){const t=e.maxPadding;function n(n){const r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(h),wW(s.leftAndTop,h,d,f),h.x+=h.w,h.y+=h.h,wW(s.rightAndBottom,h,d,f),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},O$(s.chartArea,(t=>{const n=t.box;Object.assign(n,e.chartArea),n.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})}))}};class EW{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,r){return t=Math.max(0,t||e.width),n=n||e.height,{width:t,height:Math.max(0,r?Math.floor(t/r):n)}}isAttached(e){return!0}updateConfig(e){}}class SW extends EW{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const _W="$chartjs",kW={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},TW=e=>null===e||""===e;const CW=!!IG&&{passive:!0};function OW(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,CW)}function NW(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function IW(e,t,n){const r=e.canvas,i=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||NW(n.addedNodes,r),t=t&&!NW(n.removedNodes,r);t&&n()}));return i.observe(document,{childList:!0,subtree:!0}),i}function RW(e,t,n){const r=e.canvas,i=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||NW(n.removedNodes,r),t=t&&!NW(n.addedNodes,r);t&&n()}));return i.observe(document,{childList:!0,subtree:!0}),i}const PW=new Map;let jW=0;function MW(){const e=window.devicePixelRatio;e!==jW&&(jW=e,PW.forEach(((t,n)=>{n.currentDevicePixelRatio!==e&&t()})))}function DW(e,t,n){const r=e.canvas,i=r&&AG(r);if(!i)return;const o=vV(((e,t)=>{const r=i.clientWidth;n(e,t),r<i.clientWidth&&n()}),window),a=new ResizeObserver((e=>{const t=e[0],n=t.contentRect.width,r=t.contentRect.height;0===n&&0===r||o(n,r)}));return a.observe(i),function(e,t){PW.size||window.addEventListener("resize",MW),PW.set(e,t)}(e,o),a}function LW(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){PW.delete(e),PW.size||window.removeEventListener("resize",MW)}(e)}function FW(e,t,n){const r=e.canvas,i=vV((t=>{null!==e.ctx&&n(function(e,t){const n=kW[e.type]||e.type,{x:r,y:i}=TG(e,t);return{type:n,chart:t,native:e,x:void 0!==r?r:null,y:void 0!==i?i:null}}(t,e))}),e);return function(e,t,n){e&&e.addEventListener(t,n,CW)}(r,t,i),i}class BW extends EW{acquireContext(e,t){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[_W]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",TW(i)){const t=RG(e,"width");void 0!==t&&(e.width=t)}if(TW(r))if(""===e.style.height)e.height=e.width/(t||2);else{const t=RG(e,"height");void 0!==t&&(e.height=t)}}(e,t),n):null}releaseContext(e){const t=e.canvas;if(!t[_W])return!1;const n=t[_W].initial;["height","width"].forEach((e=>{const r=n[e];w$(r)?t.removeAttribute(e):t.setAttribute(e,r)}));const r=n.style||{};return Object.keys(r).forEach((e=>{t.style[e]=r[e]})),t.width=t.width,delete t[_W],!0}addEventListener(e,t,n){this.removeEventListener(e,t);const r=e.$proxies||(e.$proxies={}),i={attach:IW,detach:RW,resize:DW}[t]||FW;r[t]=i(e,t,n)}removeEventListener(e,t){const n=e.$proxies||(e.$proxies={}),r=n[t];if(!r)return;({attach:LW,detach:LW,resize:LW}[t]||OW)(e,t,r),n[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,r){return OG(e,t,n,r)}isAttached(e){const t=e&&AG(e);return!(!t||!t.isConnected)}}class UW{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}hasValue(){return eV(this.x)&&eV(this.y)}getProps(e,t){const n=this.$animations;if(!t||!n)return this;const r={};return e.forEach((e=>{r[e]=n[e]&&n[e].active()?n[e]._to:this[e]})),r}}function zW(e,t){const n=e.options.ticks,r=function(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}(e),i=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?function(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}(t):[],a=o.length,s=o[0],l=o[a-1],c=[];if(a>i)return function(e,t,n,r){let i,o=0,a=n[0];for(r=Math.ceil(r),i=0;i<e.length;i++)i===a&&(t.push(e[i]),o++,a=n[o*r])}(t,c,o,a/i),c;const u=function(e,t,n){const r=function(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}(e),i=t.length/n;if(!r)return Math.max(i,1);const o=function(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));
vendor: 9,513 bytes, line 155
155return n===(0|n)&&t.push(n),t.sort(((e,t)=>e-t)).pop(),t}(r);for(let a=0,s=o.length-1;a<s;a++){const e=o[a];if(e>i)return e}return Math.max(i,1)}(o,t,i);if(a>0){let e,n;const r=a>1?Math.round((l-s)/(a-1)):null;for(HW(t,c,u,w$(r)?0:s-r,s),e=0,n=a-1;e<n;e++)HW(t,c,u,o[e],o[e+1]);return HW(t,c,u,l,w$(r)?t.length:l+r),c}return HW(t,c,u),c}function HW(e,t,n,r,i){const o=k$(r,0),a=Math.min(k$(i,e.length),e.length);let s,l,c,u=0;for(n=Math.ceil(n),i&&(s=i-r,n=s/Math.floor(s/n)),c=o;c<0;)u++,c=Math.round(o+u*n);for(l=Math.max(o,0);l<a;l++)l===c&&(t.push(e[l]),u++,c=Math.round(o+u*n))}const $W=(e,t,n)=>"top"===t||"left"===t?e[t]+n:e[t]-n,VW=(e,t)=>Math.min(t||e,e);function GW(e,t){const n=[],r=e.length/t,i=e.length;let o=0;for(;o<i;o+=r)n.push(e[Math.floor(o)]);return n}function WW(e,t,n){const r=e.ticks.length,i=Math.min(t,r-1),o=e._startPixel,a=e._endPixel,s=1e-6;let l,c=e.getPixelForTick(i);if(!(n&&(l=1===r?Math.max(c-o,a-c):0===t?(e.getPixelForTick(1)-c)/2:(c-e.getPixelForTick(i-1))/2,c+=i<t?l:-l,c<o-s||c>a+s)))return c}function qW(e){return e.drawTicks?e.tickLength:0}function YW(e,t){if(!e.display)return 0;const n=oG(e.font,t),r=iG(e.padding);return(A$(e.text)?e.text.length:1)*n.lineHeight+r.height}function KW(e,t,n){let r=yV(e);return(n&&"right"!==t||!n&&"right"===t)&&(r=(e=>"left"===e?"right":"right"===e?"left":e)(r)),r}class XW extends UW{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:n,_suggestedMax:r}=this;return e=_$(e,Number.POSITIVE_INFINITY),t=_$(t,Number.NEGATIVE_INFINITY),n=_$(n,Number.POSITIVE_INFINITY),r=_$(r,Number.NEGATIVE_INFINITY),{min:_$(e,n),max:_$(t,r),minDefined:S$(e),maxDefined:S$(t)}}getMinMax(e){let t,{min:n,max:r,minDefined:i,maxDefined:o}=this.getUserBounds();if(i&&o)return{min:n,max:r};const a=this.getMatchingVisibleMetas();for(let s=0,l=a.length;s<l;++s)t=a[s].controller.getMinMax(this,e),i||(n=Math.min(n,t.min)),o||(r=Math.max(r,t.max));return n=o&&n>r?r:n,r=i&&n>r?n:r,{min:_$(n,_$(r,n)),max:_$(r,_$(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.chart.chartArea;return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){C$(this.options.beforeUpdate,[this])}update(e,t,n){const{beginAtZero:r,grace:i,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(e,t,n){const{min:r,max:i}=e,o=T$(t,(i-r)/2),a=(e,t)=>n&&0===e?0:e+t;return{min:a(r,-Math.abs(o)),max:a(i,o)}}(this,i,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=a<this.ticks.length;this._convertTicksToLabels(s?GW(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=zW(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e,t,n=this.options.reverse;this.isHorizontal()?(e=this.left,t=this.right):(e=this.top,t=this.bottom,n=!n),this._startPixel=e,this._endPixel=t,this._reversePixels=n,this._length=t-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){C$(this.options.afterUpdate,[this])}beforeSetDimensions(){C$(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){C$(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),C$(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){C$(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const t=this.options.ticks;let n,r,i;for(n=0,r=e.length;n<r;n++)i=e[n],i.label=C$(t.callback,[i.value,n,e],this)}afterTickToLabelConversion(){C$(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){C$(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,t=e.ticks,n=VW(this.ticks.length,e.ticks.maxTicksLimit),r=t.minRotation||0,i=t.maxRotation;let o,a,s,l=r;if(!this._isVisible()||!t.display||r>=i||n<=1||!this.isHorizontal())return void(this.labelRotation=r);const c=this._getLabelSizes(),u=c.widest.width,d=c.highest.height,p=cV(this.chart.width-u,0,this.maxWidth);o=e.offset?this.maxWidth/n:p/(n-1),u+6>o&&(o=p/(n-(e.offset?.5:1)),a=this.maxHeight-qW(e.grid)-t.padding-YW(e.title,this.chart.options.font),s=Math.sqrt(u*u+d*d),l=rV(Math.min(Math.asin(cV((c.highest.height+6)/o,-1,1)),Math.asin(cV(a/s,-1,1))-Math.asin(cV(d/s,-1,1)))),l=Math.max(r,Math.min(i,l))),this.labelRotation=l}afterCalculateLabelRotation(){C$(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){C$(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:t,options:{ticks:n,title:r,grid:i}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const o=YW(r,t.options.font);if(a?(e.width=this.maxWidth,e.height=qW(i)+o):(e.height=this.maxHeight,e.width=qW(i)+o),n.display&&this.ticks.length){const{first:t,last:r,widest:i,highest:o}=this._getLabelSizes(),s=2*n.padding,l=nV(this.labelRotation),c=Math.cos(l),u=Math.sin(l);if(a){const t=n.mirror?0:u*i.width+c*o.height;e.height=Math.min(this.maxHeight,e.height+t+s)}else{const t=n.mirror?0:c*i.width+u*o.height;e.width=Math.min(this.maxWidth,e.width+t+s)}this._calculatePadding(t,r,u,c)}}this._handleMargins(),a?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,n,r){const{ticks:{align:i,padding:o},position:a}=this.options,s=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,d=0;s?l?(u=r*e.width,d=n*t.height):(u=n*e.height,d=r*t.width):"start"===i?d=t.width:"end"===i?u=e.width:"inner"!==i&&(u=e.width/2,d=t.width/2),this.paddingLeft=Math.max((u-a+o)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-c+o)*this.width/(this.width-c),0)}else{let n=t.height/2,r=e.height/2;"start"===i?(n=0,r=e.height):"end"===i&&(n=t.height,r=0),this.paddingTop=n+o,this.paddingBottom=r+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){C$(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let t,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,n=e.length;t<n;t++)w$(e[t].label)&&(e.splice(t,1),n--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const t=this.options.ticks.sampleSize;let n=this.ticks;t<n.length&&(n=GW(n,t)),this._labelSizes=e=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return e}
vendor: 12,359 bytes, line 155
155_computeLabelSizes(e,t,n){const{ctx:r,_longestTextCache:i}=this,o=[],a=[],s=Math.floor(t/VW(t,n));let l,c,u,d,p,h,f,m,g,b,v,y=0,x=0;for(l=0;l<t;l+=s){if(d=e[l].label,p=this._resolveTickFontOptions(l),r.font=h=p.string,f=i[h]=i[h]||{data:{},gc:[]},m=p.lineHeight,g=b=0,w$(d)||A$(d)){if(A$(d))for(c=0,u=d.length;c<u;++c)v=d[c],w$(v)||A$(v)||(g=UV(r,f.data,f.gc,g,v),b+=m)}else g=UV(r,f.data,f.gc,g,d),b=m;o.push(g),a.push(b),y=Math.max(g,y),x=Math.max(b,x)}!function(e,t){O$(e,(e=>{const n=e.gc,r=n.length/2;let i;if(r>t){for(i=0;i<r;++i)delete e.data[n[i]];n.splice(0,r)}}))}(i,t);const w=o.indexOf(y),A=a.indexOf(x),E=e=>({width:o[e]||0,height:a[e]||0});return{first:E(0),last:E(t-1),widest:E(w),highest:E(A),widths:o,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return cV(this._alignToPixels?zV(this.chart,t,0):t,-32768,32767)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this.ticks||[];if(e>=0&&e<t.length){const n=t[e];return n.$context||(n.$context=function(e,t,n){return sG(e,{tick:n,index:t,type:"tick"})}(this.getContext(),e,n))}return this.$context||(this.$context=sG(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const e=this.options.ticks,t=nV(this.labelRotation),n=Math.abs(Math.cos(t)),r=Math.abs(Math.sin(t)),i=this._getLabelSizes(),o=e.autoSkipPadding||0,a=i?i.widest.width+o:0,s=i?i.highest.height+o:0;return this.isHorizontal()?s*n>a*r?a/n:s/r:s*r<a*n?s/n:a/r}_isVisible(){const e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const t=this.axis,n=this.chart,r=this.options,{grid:i,position:o,border:a}=r,s=i.offset,l=this.isHorizontal(),c=this.ticks.length+(s?1:0),u=qW(i),d=[],p=a.setContext(this.getContext()),h=p.display?p.width:0,f=h/2,m=function(e){return zV(n,e,h)};let g,b,v,y,x,w,A,E,S,_,k,T;if("top"===o)g=m(this.bottom),w=this.bottom-u,E=g-f,_=m(e.top)+f,T=e.bottom;else if("bottom"===o)g=m(this.top),_=e.top,T=m(e.bottom)-f,w=g+f,E=this.top+u;else if("left"===o)g=m(this.right),x=this.right-u,A=g-f,S=m(e.left)+f,k=e.right;else if("right"===o)g=m(this.left),S=e.left,k=m(e.right)-f,x=g+f,A=this.left+u;else if("x"===t){if("center"===o)g=m((e.top+e.bottom)/2+.5);else if(E$(o)){const e=Object.keys(o)[0],t=o[e];g=m(this.chart.scales[e].getPixelForValue(t))}_=e.top,T=e.bottom,w=g+f,E=w+u}else if("y"===t){if("center"===o)g=m((e.left+e.right)/2);else if(E$(o)){const e=Object.keys(o)[0],t=o[e];g=m(this.chart.scales[e].getPixelForValue(t))}x=g-f,A=x-u,S=e.left,k=e.right}const C=k$(r.ticks.maxTicksLimit,c),O=Math.max(1,Math.ceil(c/C));for(b=0;b<c;b+=O){const e=this.getContext(b),t=i.setContext(e),r=a.setContext(e),o=t.lineWidth,c=t.color,u=r.dash||[],p=r.dashOffset,h=t.tickWidth,f=t.tickColor,m=t.tickBorderDash||[],g=t.tickBorderDashOffset;v=WW(this,b,s),void 0!==v&&(y=zV(n,v,o),l?x=A=S=k=y:w=E=_=T=y,d.push({tx1:x,ty1:w,tx2:A,ty2:E,x1:S,y1:_,x2:k,y2:T,width:o,color:c,borderDash:u,borderDashOffset:p,tickWidth:h,tickColor:f,tickBorderDash:m,tickBorderDashOffset:g}))}return this._ticksLength=c,this._borderValue=g,d}_computeLabelItems(e){const t=this.axis,n=this.options,{position:r,ticks:i}=n,o=this.isHorizontal(),a=this.ticks,{align:s,crossAlign:l,padding:c,mirror:u}=i,d=qW(n.grid),p=d+c,h=u?-c:p,f=-nV(this.labelRotation),m=[];let g,b,v,y,x,w,A,E,S,_,k,T,C="middle";if("top"===r)w=this.bottom-h,A=this._getXAxisLabelAlignment();else if("bottom"===r)w=this.top+h,A=this._getXAxisLabelAlignment();else if("left"===r){const e=this._getYAxisLabelAlignment(d);A=e.textAlign,x=e.x}else if("right"===r){const e=this._getYAxisLabelAlignment(d);A=e.textAlign,x=e.x}else if("x"===t){if("center"===r)w=(e.top+e.bottom)/2+p;else if(E$(r)){const e=Object.keys(r)[0],t=r[e];w=this.chart.scales[e].getPixelForValue(t)+p}A=this._getXAxisLabelAlignment()}else if("y"===t){if("center"===r)x=(e.left+e.right)/2-p;else if(E$(r)){const e=Object.keys(r)[0],t=r[e];x=this.chart.scales[e].getPixelForValue(t)}A=this._getYAxisLabelAlignment(d).textAlign}"y"===t&&("start"===s?C="top":"end"===s&&(C="bottom"));const O=this._getLabelSizes();for(g=0,b=a.length;g<b;++g){v=a[g],y=v.label;const e=i.setContext(this.getContext(g));E=this.getPixelForTick(g)+i.labelOffset,S=this._resolveTickFontOptions(g),_=S.lineHeight,k=A$(y)?y.length:1;const t=k/2,n=e.color,s=e.textStrokeColor,c=e.textStrokeWidth;let d,p=A;if(o?(x=E,"inner"===A&&(p=g===b-1?this.options.reverse?"left":"right":0===g?this.options.reverse?"right":"left":"center"),T="top"===r?"near"===l||0!==f?-k*_+_/2:"center"===l?-O.highest.height/2-t*_+_:-O.highest.height+_/2:"near"===l||0!==f?_/2:"center"===l?O.highest.height/2-t*_:O.highest.height-k*_,u&&(T*=-1),0===f||e.showLabelBackdrop||(x+=_/2*Math.sin(f))):(w=E,T=(1-k)*_/2),e.showLabelBackdrop){const t=iG(e.backdropPadding),n=O.heights[g],r=O.widths[g];let i=T-t.top,o=0-t.left;switch(C){case"middle":i-=n/2;break;case"bottom":i-=n}switch(A){case"center":o-=r/2;break;case"right":o-=r;break;case"inner":g===b-1?o-=r:g>0&&(o-=r/2)}d={left:o,top:i,width:r+t.width,height:n+t.height,color:e.backdropColor}}m.push({label:y,font:S,textOffset:T,options:{rotation:f,color:n,strokeColor:s,strokeWidth:c,textAlign:p,textBaseline:C,translation:[x,w],backdrop:d}})}return m}_getXAxisLabelAlignment(){const{position:e,ticks:t}=this.options;if(-nV(this.labelRotation))return"top"===e?"left":"right";let n="center";return"start"===t.align?n="left":"end"===t.align?n="right":"inner"===t.align&&(n="inner"),n}_getYAxisLabelAlignment(e){const{position:t,ticks:{crossAlign:n,mirror:r,padding:i}}=this.options,o=e+i,a=this._getLabelSizes().widest.width;let s,l;return"left"===t?r?(l=this.right+i,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l+=a)):(l=this.right-o,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l=this.left)):"right"===t?r?(l=this.left+i,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l-=a)):(l=this.left+o,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l=this.right)):s="right",{textAlign:s,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:e.height,right:this.right}:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}drawBackground(){const{ctx:e,options:{backgroundColor:t},left:n,top:r,width:i,height:o}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(n,r,i,o),e.restore())}getLineWidthForValue(e){const t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const n=this.ticks.findIndex((t=>t.value===e));if(n>=0){return t.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(e){const t=this.options.grid,n=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let i,o;const a=(e,t,r)=>{r.width&&r.color&&(n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.setLineDash(r.borderDash||[]),n.lineDashOffset=r.borderDashOffset,n.beginPath(),n.moveTo(e.x,e.y),n.lineTo(t.x,t.y),n.stroke(),n.restore())};if(t.display)for(i=0,o=r.length;i<o;++i){const e=r[i];t.drawOnChartArea&&a({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},e),t.drawTicks&&a({x:e.tx1,y:e.ty1},{x:e.tx2,y:e.ty2},{color:e.tickColor,width:e.tickWidth,borderDash:e.tickBorderDash,borderDashOffset:e.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:t,options:{border:n,grid:r}}=this,i=n.setContext(this.getContext()),o=n.display?i.width:0;if(!o)return;const a=r.setContext(this.getContext(0)).lineWidth,s=this._borderValue;let l,c,u,d;this.isHorizontal()?(l=zV(e,this.left,o)-o/2,c=zV(e,this.right,a)+a/2,u=d=s):(u=zV(e,this.top,o)-o/2,d=zV(e,this.bottom,a)+a/2,l=c=s),t.save(),t.lineWidth=i.width,t.strokeStyle=i.color,t.beginPath(),t.moveTo(l,u),t.lineTo(c,d),t.stroke(),t.restore()}drawLabels(e){if(!this.options.ticks.display)return;const t=this.ctx,n=this._computeLabelArea();n&&WV(t,n);const r=this.getLabelItems(e);for(const i of r){const e=i.options,n=i.font;XV(t,i.label,0,i.textOffset,n,e)}n&&qV(t)}drawTitle(){const{ctx:e,options:{position:t,title:n,reverse:r}}=this;if(!n.display)return;const i=oG(n.font),o=iG(n.padding),a=n.align;let s=i.lineHeight/2;"bottom"===t||"center"===t||E$(t)?(s+=o.bottom,A$(n.text)&&(s+=i.lineHeight*(n.text.length-1))):s+=o.top;const{titleX:l,titleY:c,maxWidth:u,rotation:d}=function(e,t,n,r){const{top:i,left:o,bottom:a,right:s,chart:l}=e,{chartArea:c,scales:u}=l;let d,p,h,f=0;const m=a-i,g=s-o;if(e.isHorizontal()){if(p=xV(r,o,s),E$(n)){const e=Object.keys(n)[0],r=n[e];h=u[e].getPixelForValue(r)+m-t}else h="center"===n?(c.bottom+c.top)/2+m-t:$W(e,n,t);d=s-o}else{if(E$(n)){const e=Object.keys(n)[0],r=n[e];p=u[e].getPixelForValue(r)-g+t}else p="center"===n?(c.left+c.right)/2-g+t:$W(e,n,t);h=xV(r,a,i),f="left"===n?-q$:q$}return{titleX:p,titleY:h,maxWidth:d,rotation:f}}(this,s,t,a);XV(e,n.text,0,0,i,{color:n.color,maxWidth:u,rotation:d,textAlign:KW(a,t,r),textBaseline:"middle",translation:[l,c]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,t=e.ticks&&e.ticks.z||0,n=k$(e.grid&&e.grid.z,-1),r=k$(e.border&&e.border.z,0);return this._isVisible()&&this.draw===XW.prototype.draw?[{z:n,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:t,draw:e=>{this.drawLabels(e)}}]:[{z:t,draw:e=>{this.draw(e)}}]}getMatchingVisibleMetas(e){const t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",r=[];let i,o;for(i=0,o=t.length;i<o;++i){const o=t[i];o[n]!==this.id||e&&o.type!==e||r.push(o)}return r}_resolveTickFontOptions(e){return oG(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class ZW{constructor(e,t,n){this.type=e,this.scope=t,this.override=n,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const t=Object.getPrototypeOf(e);let n;(function(e){return"id"in e&&"defaults"in e})(t)&&(n=this.register(t));const r=this.items,i=e.id,o=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+e);return i in r||(r[i]=e,function(e,t,n){const r=j$(Object.create(null),[n?BV.get(n):{},BV.get(t),e.defaults]);BV.set(t,r),e.defaultRoutes&&function(e,t){Object.keys(t).forEach((n=>{const r=n.split("."),i=r.pop(),o=[e].concat(r).join("."),a=t[n].split("."),s=a.pop(),l=a.join(".");BV.route(o,i,l,s)}))}(t,e.defaultRoutes);e.descriptors&&BV.describe(t,e.descriptors)}(e,o,n),this.override&&BV.override(e.id,e.overrides)),o}get(e){return this.items[e]}unregister(e){const t=this.items,n=e.id,r=this.scope;n in t&&delete t[n],r&&n in BV[r]&&(delete BV[r][n],this.override&&delete jV[n])}}class QW{constructor(){this.controllers=new ZW(JG,"datasets",!0),this.elements=new ZW(UW,"elements"),this.plugins=new ZW(Object,"plugins"),this.scales=new ZW(XW,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t)}remove(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t)}addControllers(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.controllers)}addElements(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.elements)}addPlugins(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.plugins)}addScales(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}
vendor: 10,990 bytes, line 155
155removeControllers(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.controllers)}removeElements(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.elements)}removePlugins(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.plugins)}removeScales(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.scales)}_each(e,t,n){[...t].forEach((t=>{const r=n||this._getRegistryForType(t);n||r.isForType(t)||r===this.plugins&&t.id?this._exec(e,r,t):O$(t,(t=>{const r=n||this._getRegistryForType(t);this._exec(e,r,t)}))}))}_exec(e,t,n){const r=B$(e);C$(n["before"+r],[],n),t[e](n),C$(n["after"+r],[],n)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){const n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}_get(e,t,n){const r=t.get(e);if(void 0===r)throw new Error('"'+e+'" is not a registered '+n+".");return r}}var JW=new QW;class eq{constructor(){this._init=[]}notify(e,t,n,r){"beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const i=r?this._descriptors(e).filter(r):this._descriptors(e),o=this._notify(i,e,t,n);return"afterDestroy"===t&&(this._notify(i,e,"stop"),this._notify(this._init,e,"uninstall")),o}_notify(e,t,n,r){r=r||{};for(const i of e){const e=i.plugin;if(!1===C$(e[n],[t,r,i.options],e)&&r.cancelable)return!1}return!0}invalidate(){w$(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){const n=e&&e.config,r=k$(n.options&&n.options.plugins,{}),i=function(e){const t={},n=[],r=Object.keys(JW.plugins.items);for(let o=0;o<r.length;o++)n.push(JW.getPlugin(r[o]));const i=e.plugins||[];for(let o=0;o<i.length;o++){const e=i[o];-1===n.indexOf(e)&&(n.push(e),t[e.id]=!0)}return{plugins:n,localIds:t}}(n);return!1!==r||t?function(e,t,n,r){let{plugins:i,localIds:o}=t;const a=[],s=e.getContext();for(const l of i){const t=l.id,i=tq(n[t],r);null!==i&&a.push({plugin:l,options:nq(e.config,{plugin:l,local:o[t]},i,s)})}return a}(e,i,r,t):[]}_notifyStateChanges(e){const t=this._oldCache||[],n=this._cache,r=(e,t)=>e.filter((e=>!t.some((t=>e.plugin.id===t.plugin.id))));this._notify(r(t,n),e,"stop"),this._notify(r(n,t),e,"start")}}function tq(e,t){return t||!1!==e?!0===e?{}:e:null}function nq(e,t,n,r){let{plugin:i,local:o}=t;const a=e.pluginScopeKeys(i),s=e.getOptionScopes(n,a);return o&&i.defaults&&s.push(i.defaults),e.createResolver(s,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function rq(e,t){const n=BV.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function iq(e){if("x"===e||"y"===e||"r"===e)return e}function oq(e){if(iq(e))return e;for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(const o of n){const t=o.axis||("top"===(i=o.position)||"bottom"===i?"x":"left"===i||"right"===i?"y":void 0)||e.length>1&&iq(e[0].toLowerCase());if(t)return t}var i;throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function aq(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function sq(e,t){const n=jV[e.type]||{scales:{}},r=t.scales||{},i=rq(e.type,t),o=Object.create(null);return Object.keys(r).forEach((t=>{const a=r[t];if(!E$(a))return console.error(`Invalid scale configuration for scale: ${t}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const s=oq(t,a,function(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter((t=>t.xAxisID===e||t.yAxisID===e));if(n.length)return aq(e,"x",n[0])||aq(e,"y",n[0])}return{}}(t,e),BV.scales[a.type]),l=function(e,t){return e===t?"_index_":"_value_"}(s,i),c=n.scales||{};o[t]=M$(Object.create(null),[{axis:s},a,c[s],c[l]])})),e.data.datasets.forEach((n=>{const i=n.type||e.type,a=n.indexAxis||rq(i,t),s=(jV[i]||{}).scales||{};Object.keys(s).forEach((e=>{const t=function(e,t){let n=e;return"_index_"===e?n=t:"_value_"===e&&(n="x"===t?"y":"x"),n}(e,a),i=n[t+"AxisID"]||t;o[i]=o[i]||Object.create(null),M$(o[i],[{axis:t},r[i],s[e]])}))})),Object.keys(o).forEach((e=>{const t=o[e];M$(t,[BV.scales[t.type],BV.scale])})),o}function lq(e){const t=e.options||(e.options={});t.plugins=k$(t.plugins,{}),t.scales=sq(e,t)}function cq(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const uq=new Map,dq=new Set;function pq(e,t){let n=uq.get(e);return n||(n=t(),uq.set(e,n),dq.add(n)),n}const hq=(e,t,n)=>{const r=F$(t,n);void 0!==r&&e.add(r)};class fq{constructor(e){this._config=function(e){return(e=e||{}).data=cq(e.data),lq(e),e}(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=cq(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),lq(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return pq(e,(()=>[[`datasets.${e}`,""]]))}datasetAnimationScopeKeys(e,t){return pq(`${e}.transition.${t}`,(()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]]))}datasetElementScopeKeys(e,t){return pq(`${e}-${t}`,(()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]]))}pluginScopeKeys(e){const t=e.id;return pq(`${this.type}-plugin-${t}`,(()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]]))}_cachedScopes(e,t){const n=this._scopeCache;let r=n.get(e);return r&&!t||(r=new Map,n.set(e,r)),r}getOptionScopes(e,t,n){const{options:r,type:i}=this,o=this._cachedScopes(e,n),a=o.get(t);if(a)return a;const s=new Set;t.forEach((t=>{e&&(s.add(e),t.forEach((t=>hq(s,e,t)))),t.forEach((e=>hq(s,r,e))),t.forEach((e=>hq(s,jV[i]||{},e))),t.forEach((e=>hq(s,BV,e))),t.forEach((e=>hq(s,MV,e)))}));const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),dq.has(t)&&o.set(t,l),l}chartOptionScopes(){const{options:e,type:t}=this;return[e,jV[t]||{},BV.datasets[t]||{},{type:t},BV,MV]}resolveNamedOptions(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[""];const i={$shared:!0},{resolver:o,subPrefixes:a}=mq(this._resolverCache,e,r);let s=o;if(function(e,t){const{isScriptable:n,isIndexable:r}=uG(e);for(const i of t){const t=n(i),o=r(i),a=(o||t)&&e[i];if(t&&(z$(a)||gq(a))||o&&A$(a))return!0}return!1}(o,t)){i.$shared=!1;s=cG(o,n=z$(n)?n():n,this.createResolver(e,n,a))}for(const l of t)i[l]=s[l];return i}createResolver(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[""],r=arguments.length>3?arguments[3]:void 0;const{resolver:i}=mq(this._resolverCache,e,n);return E$(t)?cG(i,t,void 0,r):i}}function mq(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let o=r.get(i);if(!o){o={resolver:lG(t,n),subPrefixes:n.filter((e=>!e.toLowerCase().includes("hover")))},r.set(i,o)}return o}const gq=e=>E$(e)&&Object.getOwnPropertyNames(e).some((t=>z$(e[t])));const bq=["top","bottom","left","right","chartArea"];function vq(e,t){return"top"===e||"bottom"===e||-1===bq.indexOf(e)&&"x"===t}function yq(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function xq(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),C$(n&&n.onComplete,[e],t)}function wq(e){const t=e.chart,n=t.options.animation;C$(n&&n.onProgress,[e],t)}function Aq(e){return wG()&&"string"===typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Eq={},Sq=e=>{const t=Aq(e);return Object.values(Eq).filter((e=>e.canvas===t)).pop()};function _q(e,t,n){const r=Object.keys(e);for(const i of r){const r=+i;if(r>=t){const o=e[i];delete e[i],(n>0||r>t)&&(e[r+n]=o)}}}function kq(e,t,n){return e.options.clip?e[n]:t[n]}class Tq{static defaults=(()=>BV)();static instances=(()=>Eq)();static overrides=(()=>jV)();static registry=(()=>JW)();static version="4.4.7";static getChart=(()=>Sq)();static register(){JW.add(...arguments),Cq()}static unregister(){JW.remove(...arguments),Cq()}constructor(e,t){const n=this.config=new fq(t),r=Aq(e),i=Sq(r);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const o=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(e){return!wG()||"undefined"!==typeof OffscreenCanvas&&e instanceof OffscreenCanvas?SW:BW}(r)),this.platform.updateConfig(n);const a=this.platform.acquireContext(r,o.aspectRatio),s=a&&a.canvas,l=s&&s.height,c=s&&s.width;this.id=x$(),this.ctx=a,this.canvas=s,this.width=c,this.height=l,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new eq,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(e,t){let n;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t?(clearTimeout(n),n=setTimeout(e,t,i)):e.apply(this,i),t}}((e=>this.update(e)),o.resizeDelay||0),this._dataChanges=[],Eq[this.id]=this,a&&s?(LG.listen(this,"complete",xq),LG.listen(this,"progress",wq),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:r,_aspectRatio:i}=this;return w$(e)?t&&i?i:r?n/r:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return JW}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():NG(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return HV(this.canvas,this.ctx),this}stop(){return LG.stop(this),this}resize(e,t){LG.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const n=this.options,r=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(r,e,t,i),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,NG(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),C$(n.onResize,[this,o],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){O$(this.options.scales||{},((e,t)=>
vendor: 4,106 bytes, line 155
155{e.id=t}))}buildOrUpdateScales(){const e=this.options,t=e.scales,n=this.scales,r=Object.keys(n).reduce(((e,t)=>(e[t]=!1,e)),{});let i=[];t&&(i=i.concat(Object.keys(t).map((e=>{const n=t[e],r=oq(e,n),i="r"===r,o="x"===r;return{options:n,dposition:i?"chartArea":o?"bottom":"left",dtype:i?"radialLinear":o?"category":"linear"}})))),O$(i,(t=>{const i=t.options,o=i.id,a=oq(o,i),s=k$(i.type,t.dtype);void 0!==i.position&&vq(i.position,a)===vq(t.dposition)||(i.position=t.dposition),r[o]=!0;let l=null;if(o in n&&n[o].type===s)l=n[o];else{l=new(JW.getScale(s))({id:o,type:s,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(i,e)})),O$(r,((e,t)=>{e||delete n[t]})),O$(n,(e=>{AW.configure(this,e,e.options),AW.addBox(this,e)}))}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort(((e,t)=>e.index-t.index)),n>t){for(let e=t;e<n;++e)this._destroyDatasetMeta(e);e.splice(t,n-t)}this._sortedMetasets=e.slice(0).sort(yq("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach(((e,n)=>{0===t.filter((t=>t===e._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let n,r;for(this._removeUnreferencedMetasets(),n=0,r=t.length;n<r;n++){const r=t[n];let i=this.getDatasetMeta(n);const o=r.type||this.config.type;if(i.type&&i.type!==o&&(this._destroyDatasetMeta(n),i=this.getDatasetMeta(n)),i.type=o,i.indexAxis=r.indexAxis||rq(o,this.options),i.order=r.order||0,i.index=n,i.label=""+r.label,i.visible=this.isDatasetVisible(n),i.controller)i.controller.updateIndex(n),i.controller.linkScales();else{const t=JW.getController(o),{datasetElementType:r,dataElementType:a}=BV.datasets[o];Object.assign(t,{dataElementType:JW.getElement(a),datasetElementType:r&&JW.getElement(r)}),i.controller=new t(this,n),e.push(i.controller)}}return this._updateMetasets(),e}_resetElements(){O$(this.data.datasets,((e,t)=>{this.getDatasetMeta(t).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let l=0,c=this.data.datasets.length;l<c;l++){const{controller:e}=this.getDatasetMeta(l),t=!r&&-1===i.indexOf(e);e.buildOrUpdateElements(t),o=Math.max(+e.getMaxOverflow(),o)}o=this._minPadding=n.layout.autoPadding?o:0,this._updateLayout(o),r||O$(i,(e=>{e.reset()})),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(yq("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){O$(this.scales,(e=>{AW.removeBox(this,e)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);H$(t,n)&&!!this._responsiveListeners===e.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:n,start:r,count:i}of t){_q(e,r,"_removeElements"===n?-i:i)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,n=t=>new Set(e.filter((e=>e[0]===t)).map(((e,t)=>t+","+e.splice(1).join(",")))),r=n(0);for(let i=1;i<t;i++)if(!H$(r,n(i)))return;return Array.from(r).map((e=>e.split(","))).map((e=>({method:e[1],start:+e[2],count:+e[3]})))}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;AW.update(this,this.width,this.height,e);const t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],O$(this.boxes,(e=>{n&&"chartArea"===e.position||(e.configure&&e.configure(),this._layers.push(...e._layers()))}
vendor: 11,201 bytes, line 155
155),this),this._layers.forEach(((e,t)=>{e._idx=t})),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let e=0,t=this.data.datasets.length;e<t;++e)this.getDatasetMeta(e).controller.configure();for(let t=0,n=this.data.datasets.length;t<n;++t)this._updateDataset(t,z$(e)?e({datasetIndex:t}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,t){const n=this.getDatasetMeta(e),r={meta:n,index:e,mode:t,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",r)&&(n.controller._update(t),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(LG.has(this)?this.attached&&!LG.running(this)&&LG.start(this):(this.draw(),xq({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:e,height:t}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(e,t)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const t=this._sortedMetasets,n=[];let r,i;for(r=0,i=t.length;r<i;++r){const i=t[r];e&&!i.visible||n.push(i)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,n=e._clip,r=!n.disabled,i=function(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:kq(n,t,"left"),right:kq(n,t,"right"),top:kq(r,t,"top"),bottom:kq(r,t,"bottom")}:t}(e,this.chartArea),o={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",o)&&(r&&WV(t,{left:!1===n.left?0:i.left-n.left,right:!1===n.right?this.width:i.right+n.right,top:!1===n.top?0:i.top-n.top,bottom:!1===n.bottom?this.height:i.bottom+n.bottom}),e.controller.draw(),r&&qV(t),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(e){return GV(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,r){const i=cW.modes[t];return"function"===typeof i?i(this,e,n,r):[]}getDatasetMeta(e){const t=this.data.datasets[e],n=this._metasets;let r=n.filter((e=>e&&e._dataset===t)).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||(this.$context=sG(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const n=this.getDatasetMeta(e);return"boolean"===typeof n.hidden?!n.hidden:!t.hidden}setDatasetVisibility(e,t){this.getDatasetMeta(e).hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){const r=n?"show":"hide",i=this.getDatasetMeta(e),o=i.controller._resolveAnimations(void 0,r);U$(t)?(i.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),o.update(i,{visible:n}),this.update((t=>t.datasetIndex===e?r:void 0)))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),LG.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),HV(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),delete Eq[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(){return this.canvas.toDataURL(...arguments)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,t=this.platform,n=(n,r)=>{t.addEventListener(this,n,r),e[n]=r},r=(e,t,n)=>{e.offsetX=t,e.offsetY=n,this._eventHandler(e)};O$(this.options.events,(e=>n(e,r)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,n=(n,r)=>{t.addEventListener(this,n,r),e[n]=r},r=(n,r)=>{e[n]&&(t.removeEventListener(this,n,r),delete e[n])},i=(e,t)=>{this.canvas&&this.resize(e,t)};let o;const a=()=>{r("attach",a),this.attached=!0,this.resize(),n("resize",i),n("detach",o)};o=()=>{this.attached=!1,r("resize",i),this._stop(),this._resize(0,0),n("attach",a)},t.isAttached(this.canvas)?a():o()}unbindEvents(){O$(this._listeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._listeners={},O$(this._responsiveListeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){const r=n?"set":"remove";let i,o,a,s;for("dataset"===t&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller["_"+r+"DatasetHoverStyle"]()),a=0,s=e.length;a<s;++a){o=e[a];const t=o&&this.getDatasetMeta(o.datasetIndex).controller;t&&t[r+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const t=this._active||[],n=e.map((e=>{let{datasetIndex:t,index:n}=e;const r=this.getDatasetMeta(t);if(!r)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:r.data[n],index:n}}));!N$(n,t)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return 1===this._plugins._cache.filter((t=>t.plugin.id===e)).length}_updateHoverStyles(e,t,n){const r=this.options.hover,i=(e,t)=>e.filter((e=>!t.some((t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)))),o=i(t,e),a=n?e:i(e,t);o.length&&this.updateHoverStyle(o,r.mode,!1),a.length&&r.mode&&this.updateHoverStyle(a,r.mode,!0)}_eventHandler(e,t){const n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},r=t=>(t.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",n,r))return;const i=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,r),(i||n.changed)&&this.render(),this}_handleEvent(e,t,n){const{_active:r=[],options:i}=this,o=t,a=this._getActiveElements(e,r,n,o),s=function(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}(e),l=function(e,t,n,r){return n&&"mouseout"!==e.type?r?t:e:null}(e,this._lastEvent,n,s);n&&(this._lastEvent=null,C$(i.onHover,[e,a,this],this),s&&C$(i.onClick,[e,a,this],this));const c=!N$(a,r);return(c||t)&&(this._active=a,this._updateHoverStyles(a,r,t)),this._lastEvent=l,c}_getActiveElements(e,t,n,r){if("mouseout"===e.type)return[];if(!n)return t;const i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,r)}}function Cq(){return O$(Tq.instances,(e=>e._plugins.invalidate()))}function Oq(e,t,n,r){const i=tG(e.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const o=(n-t)/2,a=Math.min(o,r*t/2),s=e=>{const t=(n-Math.min(o,e))*r/2;return cV(e,0,Math.min(o,t))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:cV(i.innerStart,0,a),innerEnd:cV(i.innerEnd,0,a)}}function Nq(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function Iq(e,t,n,r,i,o){const{x:a,y:s,startAngle:l,pixelMargin:c,innerRadius:u}=t,d=Math.max(t.outerRadius+r+n-c,0),p=u>0?u+r+n+c:0;let h=0;const f=i-l;if(r){const e=((u>0?u-r:0)+(d>0?d-r:0))/2;h=(f-(0!==e?f*e/(e+r):f))/2}const m=(f-Math.max(.001,f*d-n/$$)/d)/2,g=l+m+h,b=i-m-h,{outerStart:v,outerEnd:y,innerStart:x,innerEnd:w}=Oq(t,p,d,b-g),A=d-v,E=d-y,S=g+v/A,_=b-y/E,k=p+x,T=p+w,C=g+x/k,O=b-w/T;if(e.beginPath(),o){const t=(S+_)/2;if(e.arc(a,s,d,S,t),e.arc(a,s,d,t,_),y>0){const t=Nq(E,_,a,s);e.arc(t.x,t.y,y,_,b+q$)}const n=Nq(T,b,a,s);if(e.lineTo(n.x,n.y),w>0){const t=Nq(T,O,a,s);e.arc(t.x,t.y,w,b+q$,O+Math.PI)}const r=(b-w/p+(g+x/p))/2;if(e.arc(a,s,p,b-w/p,r,!0),e.arc(a,s,p,r,g+x/p,!0),x>0){const t=Nq(k,C,a,s);e.arc(t.x,t.y,x,C+Math.PI,g-q$)}const i=Nq(A,g,a,s);if(e.lineTo(i.x,i.y),v>0){const t=Nq(A,S,a,s);e.arc(t.x,t.y,v,g-q$,S)}}else{e.moveTo(a,s);const t=Math.cos(S)*d+a,n=Math.sin(S)*d+s;e.lineTo(t,n);const r=Math.cos(_)*d+a,i=Math.sin(_)*d+s;e.lineTo(r,i)}e.closePath()}function Rq(e,t,n,r,i){const{fullCircles:o,startAngle:a,circumference:s,options:l}=t,{borderWidth:c,borderJoinStyle:u,borderDash:d,borderDashOffset:p}=l,h="inner"===l.borderAlign;if(!c)return;e.setLineDash(d||[]),e.lineDashOffset=p,h?(e.lineWidth=2*c,e.lineJoin=u||"round"):(e.lineWidth=c,e.lineJoin=u||"bevel");let f=t.endAngle;if(o){Iq(e,t,n,r,f,i);for(let t=0;t<o;++t)e.stroke();isNaN(s)||(f=a+(s%V$||V$))}h&&function(e,t,n){const{startAngle:r,pixelMargin:i,x:o,y:a,outerRadius:s,innerRadius:l}=t;let c=i/s;e.beginPath(),e.arc(o,a,s,r-c,n+c),l>i?(c=i/l,e.arc(o,a,l,n+c,r-c,!0)):e.arc(o,a,i,n+q$,r-q$),e.closePath(),e.clip()}(e,t,f),o||(Iq(e,t,n,r,f,i),e.stroke())}class Pq extends UW{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,n){const r=this.getProps(["x","y"],n),{angle:i,distance:o}=oV(r,{x:e,y:t}),{startAngle:a,endAngle:s,innerRadius:l,outerRadius:c,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),d=(this.options.spacing+this.options.borderWidth)/2,p=k$(u,s-a),h=lV(i,a,s)&&a!==s,f=p>=V$||h,m=uV(o,l+d,c+d);return f&&m}getCenterPoint(e){const{x:t,y:n,startAngle:r,endAngle:i,innerRadius:o,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:s,spacing:l}=this.options,c=(r+i)/2,u=(o+a+l+s)/2;return{x:t+Math.cos(c)*u,y:n+Math.sin(c)*u}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:t,circumference:n}=this,r=(t.offset||0)/4,i=(t.spacing||0)/2,o=t.circular;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=n>V$?Math.floor(n/V$):0,0===n||this.innerRadius<0||this.outerRadius<0)return;e.save();const a=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(a)*r,Math.sin(a)*r);const s=r*(1-Math.sin(Math.min($$,n||0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,function(e,t,n,r,i){const{fullCircles:o,startAngle:a,circumference:s}=t;let l=t.endAngle;if(o){Iq(e,t,n,r,l,i);for(let t=0;t<o;++t)e.fill();isNaN(s)||(l=a+(s%V$||V$))}Iq(e,t,n,r,l,i),e.fill()}
vendor: 32,369 bytes, line 155
155(e,this,s,i,o),Rq(e,this,s,i,o),e.restore()}}const jq=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}};class Mq extends UW{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let t=C$(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter((t=>e.filter(t,this.chart.data)))),e.sort&&(t=t.sort(((t,n)=>e.sort(t,n,this.chart.data)))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){const{options:e,ctx:t}=this;if(!e.display)return void(this.width=this.height=0);const n=e.labels,r=oG(n.font),i=r.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:s}=jq(n,i);let l,c;t.font=r.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(o,i,a,s)+10):(c=this.maxHeight,l=this._fitCols(o,r,a,s)+10),this.width=Math.min(l,e.maxWidth||this.maxWidth),this.height=Math.min(c,e.maxHeight||this.maxHeight)}_fitRows(e,t,n,r){const{ctx:i,maxWidth:o,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],c=r+a;let u=e;i.textAlign="left",i.textBaseline="middle";let d=-1,p=-c;return this.legendItems.forEach(((e,h)=>{const f=n+t/2+i.measureText(e.text).width;(0===h||l[l.length-1]+f+2*a>o)&&(u+=c,l[l.length-(h>0?0:1)]=0,p+=c,d++),s[h]={left:0,top:p,row:d,width:f,height:r},l[l.length-1]+=f+a})),u}_fitCols(e,t,n,r){const{ctx:i,maxHeight:o,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],c=o-e;let u=a,d=0,p=0,h=0,f=0;return this.legendItems.forEach(((e,o)=>{const{itemWidth:m,itemHeight:g}=function(e,t,n,r,i){const o=function(e,t,n,r){let i=e.text;i&&"string"!==typeof i&&(i=i.reduce(((e,t)=>e.length>t.length?e:t)));return t+n.size/2+r.measureText(i).width}(r,e,t,n),a=function(e,t,n){let r=e;"string"!==typeof t.text&&(r=Dq(t,n));return r}(i,r,t.lineHeight);return{itemWidth:o,itemHeight:a}}(n,t,i,e,r);o>0&&p+g+2*a>c&&(u+=d+a,l.push({width:d,height:p}),h+=d+a,f++,d=p=0),s[o]={left:h,top:p,col:f,width:m,height:g},d=Math.max(d,m),p+=g+a})),u+=d,l.push({width:d,height:p}),u}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:r},rtl:i}}=this,o=PG(i,this.left,this.width);if(this.isHorizontal()){let i=0,a=xV(n,this.left+r,this.right-this.lineWidths[i]);for(const s of t)i!==s.row&&(i=s.row,a=xV(n,this.left+r,this.right-this.lineWidths[i])),s.top+=this.top+e+r,s.left=o.leftForLtr(o.x(a),s.width),a+=s.width+r}else{let i=0,a=xV(n,this.top+e+r,this.bottom-this.columnSizes[i].height);for(const s of t)s.col!==i&&(i=s.col,a=xV(n,this.top+e+r,this.bottom-this.columnSizes[i].height)),s.top=a,s.left+=this.left+r,s.left=o.leftForLtr(o.x(s.left),s.width),a+=s.height+r}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const e=this.ctx;WV(e,this),this._draw(),qV(e)}}_draw(){const{options:e,columnSizes:t,lineWidths:n,ctx:r}=this,{align:i,labels:o}=e,a=BV.color,s=PG(e.rtl,this.left,this.width),l=oG(o.font),{padding:c}=o,u=l.size,d=u/2;let p;this.drawTitle(),r.textAlign=s.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=l.string;const{boxWidth:h,boxHeight:f,itemHeight:m}=jq(o,u),g=this.isHorizontal(),b=this._computeTitleHeight();p=g?{x:xV(i,this.left+c,this.right-n[0]),y:this.top+c+b,line:0}:{x:this.left+c,y:xV(i,this.top+b+c,this.bottom-t[0].height),line:0},jG(this.ctx,e.textDirection);const v=m+c;this.legendItems.forEach(((y,x)=>{r.strokeStyle=y.fontColor,r.fillStyle=y.fontColor;const w=r.measureText(y.text).width,A=s.textAlign(y.textAlign||(y.textAlign=o.textAlign)),E=h+d+w;let S=p.x,_=p.y;s.setWidth(this.width),g?x>0&&S+E+c>this.right&&(_=p.y+=v,p.line++,S=p.x=xV(i,this.left+c,this.right-n[p.line])):x>0&&_+v>this.bottom&&(S=p.x=S+t[p.line].width+c,p.line++,_=p.y=xV(i,this.top+b+c,this.bottom-t[p.line].height));if(function(e,t,n){if(isNaN(h)||h<=0||isNaN(f)||f<0)return;r.save();const i=k$(n.lineWidth,1);if(r.fillStyle=k$(n.fillStyle,a),r.lineCap=k$(n.lineCap,"butt"),r.lineDashOffset=k$(n.lineDashOffset,0),r.lineJoin=k$(n.lineJoin,"miter"),r.lineWidth=i,r.strokeStyle=k$(n.strokeStyle,a),r.setLineDash(k$(n.lineDash,[])),o.usePointStyle){const a={radius:f*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:i},l=s.xPlus(e,h/2);VV(r,a,l,t+d,o.pointStyleWidth&&h)}else{const o=t+Math.max((u-f)/2,0),a=s.leftForLtr(e,h),l=rG(n.borderRadius);r.beginPath(),Object.values(l).some((e=>0!==e))?ZV(r,{x:a,y:o,w:h,h:f,radius:l}):r.rect(a,o,h,f),r.fill(),0!==i&&r.stroke()}r.restore()}(s.x(S),_,y),S=((e,t,n,r)=>e===(r?"left":"right")?n:"center"===e?(t+n)/2:t)(A,S+h+d,g?S+E:this.right,e.rtl),function(e,t,n){XV(r,n.text,e,t+m/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(S),_,y),g)p.x+=E+c;else if("string"!==typeof y.text){const e=l.lineHeight;p.y+=Dq(y,e)+c}else p.y+=v})),MG(this.ctx,e.textDirection)}drawTitle(){const e=this.options,t=e.title,n=oG(t.font),r=iG(t.padding);if(!t.display)return;const i=PG(e.rtl,this.left,this.width),o=this.ctx,a=t.position,s=n.size/2,l=r.top+s;let c,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),c=this.top+l,u=xV(e.align,u,this.right-d);else{const t=this.columnSizes.reduce(((e,t)=>Math.max(e,t.height)),0);c=l+xV(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}const p=xV(a,u,u+d);o.textAlign=i.textAlign(yV(a)),o.textBaseline="middle",o.strokeStyle=t.color,o.fillStyle=t.color,o.font=n.string,XV(o,t.text,p,c,n)}_computeTitleHeight(){const e=this.options.title,t=oG(e.font),n=iG(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,r,i;if(uV(e,this.left,this.right)&&uV(t,this.top,this.bottom))for(i=this.legendHitBoxes,n=0;n<i.length;++n)if(r=i[n],uV(e,r.left,r.left+r.width)&&uV(t,r.top,r.top+r.height))return this.legendItems[n];return null}handleEvent(e){const t=this.options;if(!function(e,t){if(("mousemove"===e||"mouseout"===e)&&(t.onHover||t.onLeave))return!0;if(t.onClick&&("click"===e||"mouseup"===e))return!0;return!1}(e.type,t))return;const n=this._getLegendItemAt(e.x,e.y);if("mousemove"===e.type||"mouseout"===e.type){const o=this._hoveredItem,a=(i=n,null!==(r=o)&&null!==i&&r.datasetIndex===i.datasetIndex&&r.index===i.index);o&&!a&&C$(t.onLeave,[e,o,this],this),this._hoveredItem=n,n&&!a&&C$(t.onHover,[e,n,this],this)}else n&&C$(t.onClick,[e,n,this],this);var r,i}}function Dq(e,t){return t*(e.text?e.text.length:0)}var Lq={id:"legend",_element:Mq,start(e,t,n){const r=e.legend=new Mq({ctx:e.ctx,options:n,chart:e});AW.configure(e,r,n),AW.addBox(e,r)},stop(e){AW.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;AW.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:o,useBorderRadius:a,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map((e=>{const l=e.controller.getStyle(n?0:void 0),c=iG(l.borderWidth);return{text:t[e.index].label,fillStyle:l.backgroundColor,fontColor:o,hidden:!e.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:l.borderColor,pointStyle:r||l.pointStyle,rotation:l.rotation,textAlign:i||l.textAlign,borderRadius:a&&(s||l.borderRadius),datasetIndex:e.index}}),this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};new WeakMap;const Fq={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,o=0;for(t=0,n=e.length;t<n;++t){const n=e[t].element;if(n&&n.hasValue()){const e=n.tooltipPosition();r.add(e.x),i+=e.y,++o}}if(0===o||0===r.size)return!1;return{x:[...r].reduce(((e,t)=>e+t))/r.size,y:i/o}},nearest(e,t){if(!e.length)return!1;let n,r,i,o=t.x,a=t.y,s=Number.POSITIVE_INFINITY;for(n=0,r=e.length;n<r;++n){const r=e[n].element;if(r&&r.hasValue()){const e=aV(t,r.getCenterPoint());e<s&&(s=e,i=r)}}if(i){const e=i.tooltipPosition();o=e.x,a=e.y}return{x:o,y:a}}};function Bq(e,t){return t&&(A$(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Uq(e){return("string"===typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function zq(e,t){const{element:n,datasetIndex:r,index:i}=t,o=e.getDatasetMeta(r).controller,{label:a,value:s}=o.getLabelAndValue(i);return{chart:e,label:a,parsed:o.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function Hq(e,t){const n=e.chart.ctx,{body:r,footer:i,title:o}=e,{boxWidth:a,boxHeight:s}=t,l=oG(t.bodyFont),c=oG(t.titleFont),u=oG(t.footerFont),d=o.length,p=i.length,h=r.length,f=iG(t.padding);let m=f.height,g=0,b=r.reduce(((e,t)=>e+t.before.length+t.lines.length+t.after.length),0);if(b+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),b){m+=h*(t.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(b-h)*l.lineHeight+(b-1)*t.bodySpacing}p&&(m+=t.footerMarginTop+p*u.lineHeight+(p-1)*t.footerSpacing);let v=0;const y=function(e){g=Math.max(g,n.measureText(e).width+v)};return n.save(),n.font=c.string,O$(e.title,y),n.font=l.string,O$(e.beforeBody.concat(e.afterBody),y),v=t.displayColors?a+2+t.boxPadding:0,O$(r,(e=>{O$(e.before,y),O$(e.lines,y),O$(e.after,y)})),v=0,n.font=u.string,O$(e.footer,y),n.restore(),g+=f.width,{width:g,height:m}}function $q(e,t,n,r){const{x:i,width:o}=n,{width:a,chartArea:{left:s,right:l}}=e;let c="center";return"center"===r?c=i<=(s+l)/2?"left":"right":i<=o/2?c="left":i>=a-o/2&&(c="right"),function(e,t,n,r){const{x:i,width:o}=r,a=n.caretSize+n.caretPadding;return"left"===e&&i+o+a>t.width||"right"===e&&i-o-a<0||void 0}(c,e,t,n)&&(c="center"),c}function Vq(e,t,n){const r=n.yAlign||t.yAlign||function(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}(e,n);return{xAlign:n.xAlign||t.xAlign||$q(e,t,n,r),yAlign:r}}function Gq(e,t,n,r){const{caretSize:i,caretPadding:o,cornerRadius:a}=e,{xAlign:s,yAlign:l}=n,c=i+o,{topLeft:u,topRight:d,bottomLeft:p,bottomRight:h}=rG(a);let f=function(e,t){let{x:n,width:r}=e;return"right"===t?n-=r:"center"===t&&(n-=r/2),n}(t,s);const m=function(e,t,n){let{y:r,height:i}=e;return"top"===t?r+=n:r-="bottom"===t?i+n:i/2,r}(t,l,c);return"center"===l?"left"===s?f+=c:"right"===s&&(f-=c):"left"===s?f-=Math.max(u,p)+i:"right"===s&&(f+=Math.max(d,h)+i),{x:cV(f,0,r.width-t.width),y:cV(m,0,r.height-t.height)}}function Wq(e,t,n){const r=iG(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-r.right:e.x+r.left}function qq(e){return Bq([],Uq(e))}function Yq(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const Kq={beforeTitle:y$,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:y$,beforeBody:y$,beforeLabel:y$,label(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return w$(n)||(t+=n),t},labelColor(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:y$,afterBody:y$,beforeFooter:y$,footer:y$,afterFooter:y$};function Xq(e,t,n,r){const i=e[t].call(n,r);return"undefined"===typeof i?Kq[t].call(n,r):i}class Zq extends UW{static positioners=(()=>Fq)();constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this.chart,n=this.options.setContext(this.getContext()),r=n.enabled&&t.options.animation&&n.animations,i=new zG(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=(e=this.chart.getContext(),t=this,n=this._tooltipItems,sG(e,{tooltip:t,tooltipItems:n,type:"tooltip"})));var e,t,n}getTitle(e,t){const{callbacks:n}=t,r=Xq(n,"beforeTitle",this,e),i=Xq(n,"title",this,e),o=Xq(n,"afterTitle",this,e);let a=[];return a=Bq(a,Uq(r)),a=Bq(a,Uq(i)),a=Bq(a,Uq(o)),a}getBeforeBody(e,t){return qq(Xq(t.callbacks,"beforeBody",this,e))}getBody(e,t){const{callbacks:n}=t,r=[];return O$(e,(e=>{const t={before:[],lines:[],after:[]},i=Yq(n,e);Bq(t.before,Uq(Xq(i,"beforeLabel",this,e))),Bq(t.lines,Xq(i,"label",this,e)),Bq(t.after,Uq(Xq(i,"afterLabel",this,e))),r.push(t)})),r}getAfterBody(e,t){return qq(Xq(t.callbacks,"afterBody",this,e))}getFooter(e,t){const{callbacks:n}=t,r=Xq(n,"beforeFooter",this,e),i=Xq(n,"footer",this,e),o=Xq(n,"afterFooter",this,e);let a=[];return a=Bq(a,Uq(r)),a=Bq(a,Uq(i)),a=Bq(a,Uq(o)),a}_createItems(e){const t=this._active,n=this.chart.data,r=[],i=[],o=[];let a,s,l=[];for(a=0,s=t.length;a<s;++a)l.push(zq(this.chart,t[a]));return e.filter&&(l=l.filter(((t,r,i)=>e.filter(t,r,i,n)))),e.itemSort&&(l=l.sort(((t,r)=>e.itemSort(t,r,n)))),O$(l,(t=>{const n=Yq(e.callbacks,t);r.push(Xq(n,"labelColor",this,t)),i.push(Xq(n,"labelPointStyle",this,t)),o.push(Xq(n,"labelTextColor",this,t))})),this.labelColors=r,this.labelPointStyles=i,this.labelTextColors=o,this.dataPoints=l,l}update(e,t){const n=this.options.setContext(this.getContext()),r=this._active;let i,o=[];if(r.length){const e=Fq[n.position].call(this,r,this._eventPosition);o=this._createItems(n),this.title=this.getTitle(o,n),this.beforeBody=this.getBeforeBody(o,n),this.body=this.getBody(o,n),this.afterBody=this.getAfterBody(o,n),this.footer=this.getFooter(o,n);const t=this._size=Hq(this,n),a=Object.assign({},e,t),s=Vq(this.chart,n,a),l=Gq(n,a,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,i={opacity:1,x:l.x,y:l.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!==this.opacity&&(i={opacity:0});this._tooltipItems=o,this.$context=void 0,i&&this._resolveAnimations().update(this,i),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,r){const i=this.getCaretPosition(e,n,r);t.lineTo(i.x1,i.y1),t.lineTo(i.x2,i.y2),t.lineTo(i.x3,i.y3)}getCaretPosition(e,t,n){const{xAlign:r,yAlign:i}=this,{caretSize:o,cornerRadius:a}=n,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:u}=rG(a),{x:d,y:p}=e,{width:h,height:f}=t;let m,g,b,v,y,x;return"center"===i?(y=p+f/2,"left"===r?(m=d,g=m-o,v=y+o,x=y-o):(m=d+h,g=m+o,v=y-o,x=y+o),b=m):(g="left"===r?d+Math.max(s,c)+o:"right"===r?d+h-Math.max(l,u)-o:this.caretX,"top"===i?(v=p,y=v-o,m=g-o,b=g+o):(v=p+f,y=v+o,m=g+o,b=g-o),x=v),{x1:m,x2:g,x3:b,y1:v,y2:y,y3:x}}drawTitle(e,t,n){const r=this.title,i=r.length;let o,a,s;if(i){const l=PG(n.rtl,this.x,this.width);for(e.x=Wq(this,n.titleAlign,n),t.textAlign=l.textAlign(n.titleAlign),t.textBaseline="middle",o=oG(n.titleFont),a=n.titleSpacing,t.fillStyle=n.titleColor,t.font=o.string,s=0;s<i;++s)t.fillText(r[s],l.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+a,s+1===i&&(e.y+=n.titleMarginBottom-a)}}_drawColorBox(e,t,n,r,i){const o=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:s,boxWidth:l}=i,c=oG(i.bodyFont),u=Wq(this,"left",i),d=r.x(u),p=s<c.lineHeight?(c.lineHeight-s)/2:0,h=t.y+p;if(i.usePointStyle){const t={radius:Math.min(l,s)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},n=r.leftForLtr(d,l)+l/2,c=h+s/2;e.strokeStyle=i.multiKeyBackground,e.fillStyle=i.multiKeyBackground,$V(e,t,n,c),e.strokeStyle=o.borderColor,e.fillStyle=o.backgroundColor,$V(e,t,n,c)}else{e.lineWidth=E$(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,e.strokeStyle=o.borderColor,e.setLineDash(o.borderDash||[]),e.lineDashOffset=o.borderDashOffset||0;const t=r.leftForLtr(d,l),n=r.leftForLtr(r.xPlus(d,1),l-2),a=rG(o.borderRadius);Object.values(a).some((e=>0!==e))?(e.beginPath(),e.fillStyle=i.multiKeyBackground,ZV(e,{x:t,y:h,w:l,h:s,radius:a}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),ZV(e,{x:n,y:h+1,w:l-2,h:s-2,radius:a}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(t,h,l,s),e.strokeRect(t,h,l,s),e.fillStyle=o.backgroundColor,e.fillRect(n,h+1,l-2,s-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){const{body:r}=this,{bodySpacing:i,bodyAlign:o,displayColors:a,boxHeight:s,boxWidth:l,boxPadding:c}=n,u=oG(n.bodyFont);let d=u.lineHeight,p=0;const h=PG(n.rtl,this.x,this.width),f=function(n){t.fillText(n,h.x(e.x+p),e.y+d/2),e.y+=d+i},m=h.textAlign(o);let g,b,v,y,x,w,A;for(t.textAlign=o,t.textBaseline="middle",t.font=u.string,e.x=Wq(this,m,n),t.fillStyle=n.bodyColor,O$(this.beforeBody,f),p=a&&"right"!==m?"center"===o?l/2+c:l+2+c:0,y=0,w=r.length;y<w;++y){for(g=r[y],b=this.labelTextColors[y],t.fillStyle=b,O$(g.before,f),v=g.lines,a&&v.length&&(this._drawColorBox(t,e,y,h,n),d=Math.max(u.lineHeight,s)),x=0,A=v.length;x<A;++x)f(v[x]),d=u.lineHeight;O$(g.after,f)}p=0,d=u.lineHeight,O$(this.afterBody,f),e.y-=i}drawFooter(e,t,n){const r=this.footer,i=r.length;let o,a;if(i){const s=PG(n.rtl,this.x,this.width);for(e.x=Wq(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=s.textAlign(n.footerAlign),t.textBaseline="middle",o=oG(n.footerFont),t.fillStyle=n.footerColor,t.font=o.string,a=0;a<i;++a)t.fillText(r[a],s.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+n.footerSpacing}}drawBackground(e,t,n,r){const{xAlign:i,yAlign:o}=this,{x:a,y:s}=e,{width:l,height:c}=n,{topLeft:u,topRight:d,bottomLeft:p,bottomRight:h}=rG(r.cornerRadius);t.fillStyle=r.backgroundColor,t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.beginPath(),t.moveTo(a+u,s),"top"===o&&this.drawCaret(e,t,n,r),t.lineTo(a+l-d,s),t.quadraticCurveTo(a+l,s,a+l,s+d),"center"===o&&"right"===i&&this.drawCaret(e,t,n,r),t.lineTo(a+l,s+c-h),t.quadraticCurveTo(a+l,s+c,a+l-h,s+c),"bottom"===o&&this.drawCaret(e,t,n,r),t.lineTo(a+p,s+c),t.quadraticCurveTo(a,s+c,a,s+c-p),"center"===o&&"left"===i&&this.drawCaret(e,t,n,r),t.lineTo(a,s+u),t.quadraticCurveTo(a,s,a+u,s),t.closePath(),t.fill(),r.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){const t=this.chart,n=this.$animations,r=n&&n.x,i=n&&n.y;if(r||i){const n=Fq[e.position].call(this,this._active,this._eventPosition);if(!n)return;const o=this._size=Hq(this,e),a=Object.assign({},n,this._size),s=Vq(t,e,a),l=Gq(e,a,s,t);r._to===l.x&&i._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=o.width,this.height=o.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(e){const t=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(t);const r={width:this.width,height:this.height},i={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const o=iG(t.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&a&&(e.save(),e.globalAlpha=n,this.drawBackground(i,e,r,t),jG(e,t.textDirection),i.y+=o.top,this.drawTitle(i,e,t),this.drawBody(i,e,t),this.drawFooter(i,e,t),MG(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const n=this._active,r=e.map((e=>{let{datasetIndex:t,index:n}=e;const r=this.chart.getDatasetMeta(t);if(!r)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:r.data[n],index:n}})),i=!N$(n,r),o=this._positionChanged(r,t);(i||o)&&(this._active=r,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,i=this._active||[],o=this._getActiveElements(e,i,t,n),a=this._positionChanged(o,e),s=t||!N$(o,i)||a;return s&&(this._active=o,(r.enabled||r.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),s}_getActiveElements(e,t,n,r){const i=this.options;if("mouseout"===e.type)return[];if(!r)return t.filter((e=>this.chart.data.datasets[e.datasetIndex]&&void 0!==this.chart.getDatasetMeta(e.datasetIndex).controller.getParsed(e.index)));const o=this.chart.getElementsAtEventForMode(e,i.mode,i,n);return i.reverse&&o.reverse(),o}_positionChanged(e,t){const{caretX:n,caretY:r,options:i}=this,o=Fq[i.position].call(this,e,t);return!1!==o&&(n!==o.x||r!==o.y)}}var Qq={id:"tooltip",_element:Zq,positioners:Fq,afterInit(e,t,n){n&&(e.tooltip=new Zq({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(!1===e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0}))return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Kq},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function Jq(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}function eY(e,t){const n=[],{bounds:r,step:i,min:o,max:a,precision:s,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=e,p=i||1,h=c-1,{min:f,max:m}=t,g=!w$(o),b=!w$(a),v=!w$(l),y=(m-f)/(u+1);let x,w,A,E,S=J$((m-f)/h/p)*p;if(S<1e-14&&!g&&!b)return[{value:f},{value:m}];E=Math.ceil(m/S)-Math.floor(f/S),E>h&&(S=J$(E*S/h/p)*p),w$(s)||(x=Math.pow(10,s),S=Math.ceil(S*x)/x),"ticks"===r?(w=Math.floor(f/S)*S,A=Math.ceil(m/S)*S):(w=f,A=m),g&&b&&i&&function(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}((a-o)/i,S/1e3)?(E=Math.round(Math.min((a-o)/S,c)),S=(a-o)/E,w=o,A=a):v?(w=g?o:w,A=b?a:A,E=l-1,S=(A-w)/E):(E=(A-w)/S,E=Q$(E,Math.round(E),S/1e3)?Math.round(E):Math.ceil(E));const _=Math.max(iV(S),iV(w));x=Math.pow(10,w$(s)?_:s),w=Math.round(w*x)/x,A=Math.round(A*x)/x;let k=0;for(g&&(d&&w!==o?(n.push({value:o}),w<o&&k++,Q$(Math.round((w+k*S)*x)/x,o,tY(o,y,e))&&k++):w<o&&k++);k<E;++k){const e=Math.round((w+k*S)*x)/x;if(b&&e>a)break;n.push({value:e})}return b&&d&&A!==a?n.length&&Q$(n[n.length-1].value,a,tY(a,y,e))?n[n.length-1].value=a:n.push({value:a}):b&&A!==a||n.push({value:A}),n}function tY(e,t,n){let{horizontal:r,minRotation:i}=n;const o=nV(i),a=(r?Math.sin(o):Math.cos(o))||.001,s=.75*t*(""+e).length;return Math.min(t/a,s)}class nY extends XW{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return w$(e)||("number"===typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this;const o=e=>r=t?r:e,a=e=>i=n?i:e;if(e){const e=Z$(r),t=Z$(i);e<0&&t<0?a(0):e>0&&t>0&&o(0)}if(r===i){let t=0===i?1:Math.abs(.05*i);a(i+t),e||o(r-t)}this.min=r,this.max=i}getTickLimit(){const e=this.options.ticks;let t,{maxTicksLimit:n,stepSize:r}=e;return r?(t=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,t>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${t} ticks. Limiting to 1000.`),t=1e3)):(t=this.computeTickLimit(),n=n||11),n&&(t=Math.min(n,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let n=this.getTickLimit();n=Math.max(2,n);const r=eY({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&tV(r,this,"value"),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const e=this.ticks;let t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){const r=(n-t)/Math.max(e.length-1,1)/2;t-=r,n+=r}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(e){return IV(e,this.chart.options.locale,this.options.ticks.format)}}PV.formatters.numeric;PV.formatters.logarithmic;PV.formatters.numeric;const rY={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},iY=Object.keys(rY);function oY(e,t){return e-t}function aY(e,t){if(w$(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:o}=e._parseOpts;let a=t;return"function"===typeof r&&(a=r(a)),S$(a)||(a="string"===typeof r?n.parse(a,r):n.parse(a)),null===a?null:(i&&(a="week"!==i||!eV(o)&&!0!==o?n.startOf(a,i):n.startOf(a,"isoWeek",o)),+a)}function sY(e,t,n,r){const i=iY.length;for(let o=iY.indexOf(e);o<i-1;++o){const e=rY[iY[o]],i=e.steps?e.steps:Number.MAX_SAFE_INTEGER;if(e.common&&Math.ceil((n-t)/(i*e.size))<=r)return iY[o]}return iY[i-1]}function lY(e,t,n){if(n){if(n.length){const{lo:r,hi:i}=dV(n,t);e[n[r]>=t?n[r]:n[i]]=!0}}else e[t]=!0}function cY(e,t,n){const r=[],i={},o=t.length;let a,s;for(a=0;a<o;++a)s=t[a],i[s]=a,r.push({value:s,major:!1});return 0!==o&&n?function(e,t,n,r){const i=e._adapter,o=+i.startOf(t[0].value,r),a=t[t.length-1].value;let s,l;for(s=o;s<=a;s=+i.add(s,1,r))l=n[s],l>=0&&(t[l].major=!0);return t}(e,r,i,n):r}class uY extends XW{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.time||(e.time={}),r=this._adapter=new nW(e.adapters.date);r.init(t),M$(n.displayFormats,r.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(e),this._normalized=t.normalized}parse(e,t){return void 0===e?null:aY(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,t=this._adapter,n=e.time.unit||"day";let{min:r,max:i,minDefined:o,maxDefined:a}=this.getUserBounds();function s(e){o||isNaN(e.min)||(r=Math.min(r,e.min)),a||isNaN(e.max)||(i=Math.max(i,e.max))}o&&a||(s(this._getLabelBounds()),"ticks"===e.bounds&&"labels"===e.ticks.source||s(this.getMinMax(!1))),r=S$(r)&&!isNaN(r)?r:+t.startOf(Date.now(),n),i=S$(i)&&!isNaN(i)?i:+t.endOf(Date.now(),n)+1,this.min=Math.min(r,i-1),this.max=Math.max(r+1,i)}_getLabelBounds(){const e=this.getLabelTimestamps();let t=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],n=e[e.length-1]),{min:t,max:n}}buildTicks(){const e=this.options,t=e.time,n=e.ticks,r="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);const i=this.min,o=function(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}(r,i,this.max);return this._unit=t.unit||(n.autoSkip?sY(t.minUnit,this.min,this.max,this._getLabelCapacity(i)):function(e,t,n,r,i){for(let o=iY.length-1;o>=iY.indexOf(n);o--){const n=iY[o];if(rY[n].common&&e._adapter.diff(i,r,n)>=t-1)return n}return iY[n?iY.indexOf(n):0]}(this,o.length,t.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(e){for(let t=iY.indexOf(e)+1,n=iY.length;t<n;++t)if(rY[iY[t]].common)return iY[t]}(this._unit):void 0,this.initOffsets(r),e.reverse&&o.reverse(),cY(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((e=>+e.value)))}initOffsets(){let e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=0,i=0;this.options.offset&&n.length&&(e=this.getDecimalForValue(n[0]),r=1===n.length?1-e:(this.getDecimalForValue(n[1])-e)/2,t=this.getDecimalForValue(n[n.length-1]),i=1===n.length?t:(t-this.getDecimalForValue(n[n.length-2]))/2);const o=n.length<3?.5:.25;r=cV(r,0,o),i=cV(i,0,o),this._offsets={start:r,end:i,factor:1/(r+1+i)}}_generate(){const e=this._adapter,t=this.min,n=this.max,r=this.options,i=r.time,o=i.unit||sY(i.minUnit,t,n,this._getLabelCapacity(t)),a=k$(r.ticks.stepSize,1),s="week"===o&&i.isoWeekday,l=eV(s)||!0===s,c={};let u,d,p=t;if(l&&(p=+e.startOf(p,"isoWeek",s)),p=+e.startOf(p,l?"day":o),e.diff(n,t,o)>1e5*a)throw new Error(t+" and "+n+" are too far apart with stepSize of "+a+" "+o);const h="data"===r.ticks.source&&this.getDataTimestamps();for(u=p,d=0;u<n;u=+e.add(u,a,o),d++)lY(c,u,h);return u!==n&&"ticks"!==r.bounds&&1!==d||lY(c,u,h),Object.keys(c).sort(oY).map((e=>+e))}getLabelForValue(e){const t=this._adapter,n=this.options.time;return n.tooltipFormat?t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}format(e,t){const n=this.options.time.displayFormats,r=this._unit,i=t||n[r];return this._adapter.format(e,i)}_tickFormatFunction(e,t,n,r){const i=this.options,o=i.ticks.callback;if(o)return C$(o,[e,t,n],this);const a=i.time.displayFormats,s=this._unit,l=this._majorUnit,c=s&&a[s],u=l&&a[l],d=n[t],p=l&&u&&d&&d.major;return this._adapter.format(e,r||(p?u:c))}generateTickLabels(e){let t,n,r;for(t=0,n=e.length;t<n;
155++t)r=e[t],r.label=this._tickFormatFunction(r.value,t,e)}getDecimalForValue(e){return null===e?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const t=this._offsets,n=this.getDecimalForValue(e);return this.getPixelForDecimal((t.start+n)*t.factor)}getValueForPixel(e){const t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return this.min+n*(this.max-this.min)}_getLabelSize(e){const t=this.options.ticks,n=this.ctx.measureText(e).width,r=nV(this.isHorizontal()?t.maxRotation:t.minRotation),i=Math.cos(r),o=Math.sin(r),a=this._resolveTickFontOptions(0).size;return{w:n*i+a*o,h:n*o+a*i}}_getLabelCapacity(e){const t=this.options.time,n=t.displayFormats,r=n[t.unit]||n.millisecond,i=this._tickFormatFunction(e,0,cY(this,[e],this._majorUnit),r),o=this._getLabelSize(i),a=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return a>0?a:1}getDataTimestamps(){let e,t,n=this._cache.data||[];if(n.length)return n;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(e=0,t=r.length;e<t;++e)n=n.concat(r[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const e=this._cache.labels||[];let t,n;if(e.length)return e;const r=this.getLabels();for(t=0,n=r.length;t<n;++t)e.push(aY(this,r[t]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return gV(e.sort(oY))}}var dY=__webpack_require__(76135),pY=__webpack_require__.n(dY),hY=__webpack_require__(74879),fY=__webpack_require__.n(hY),mY=e=>0===e?0:e>0?1:-1,gY=e=>"number"==typeof e&&e!=+e,bY=e=>"string"===typeof e&&e.indexOf("%")===e.length-1,vY=e=>("number"===typeof e||e instanceof Number)&&!gY(e),yY=e=>vY(e)||"string"===typeof e,xY=0,wY=e=>{var t=++xY;return"".concat(e||"").concat(t)},AY=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!vY(e)&&"string"!==typeof e)return r;if(bY(e)){if(null==t)return r;var o=e.indexOf("%");n=t*parseFloat(e.slice(0,o))/100}else n=+e;return gY(n)&&(n=r),i&&null!=t&&n>t&&(n=t),n},EY=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++){if(n[e[r]])return!0;n[e[r]]=!0}return!1},SY=(e,t)=>vY(e)&&vY(t)?n=>e+n*(t-e):()=>t;var _Y=e=>null===e||"undefined"===typeof e,kY=e=>_Y(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1)),TY=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i]};function CY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function OY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CY(Object(n),!0).forEach((function(t){NY(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function NY(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var IY=(0,c.forwardRef)(((e,t)=>{var{aspect:n,initialDimension:r={width:-1,height:-1},width:i="100%",height:o="100%",minWidth:a=0,minHeight:s,maxHeight:l,children:u,debounce:d=0,id:p,className:h,onResize:f,style:m={}}=e,g=(0,c.useRef)(null),b=(0,c.useRef)();b.current=f,(0,c.useImperativeHandle)(t,(()=>g.current));var[v,y]=(0,c.useState)({containerWidth:r.width,containerHeight:r.height}),x=(0,c.useCallback)(((e,t)=>{y((n=>{var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}}
155))}),[]);(0,c.useEffect)((()=>{var e=e=>{var t,{width:n,height:r}=e[0].contentRect;x(n,r),null===(t=b.current)||void 0===t||t.call(b,n,r)};d>0&&(e=pY()(e,d,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),{width:n,height:r}=g.current.getBoundingClientRect();return x(n,r),t.observe(g.current),()=>{t.disconnect()}}),[x,d]);var w=(0,c.useMemo)((()=>{var{containerWidth:e,containerHeight:t}=v;if(e<0||t<0)return null;TY(bY(i)||bY(o),"The width(%s) and height(%s) are both fixed numbers,\n       maybe you don't need to use a ResponsiveContainer.",i,o),TY(!n||n>0,"The aspect(%s) must be greater than zero.",n);var r=bY(i)?e:i,d=bY(o)?t:o;return n&&n>0&&(r?d=r/n:d&&(r=d*n),l&&d>l&&(d=l)),TY(r>0||d>0,"The width(%s) and height(%s) of chart should be greater than 0,\n       please check the style of container, or the props width(%s) and height(%s),\n       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n       height and width.",r,d,i,o,a,s,n),c.Children.map(u,(e=>(0,c.cloneElement)(e,{width:r,height:d,style:OY({width:r,height:d},e.props.style)})))}),[n,u,o,l,s,a,v,i]);return c.createElement("div",{id:p?"".concat(p):void 0,className:(0,de.$)("recharts-responsive-container",h),style:OY(OY({},m),{},{width:i,height:o,minWidth:a,minHeight:s,maxHeight:l}),ref:g},c.createElement("div",{style:{width:0,height:0,overflow:"visible"}},w))}));function RY(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var PY=(()=>"function"===typeof Symbol&&Symbol.observable||"@@observable")(),jY=()=>Math.random().toString(36).substring(7).split("").join("."),MY={INIT:`@@redux/INIT${jY()}`,REPLACE:`@@redux/REPLACE${jY()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${jY()}`};function DY(e){if("object"!==typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function LY(e,t,n){if("function"!==typeof e)throw new Error(RY(2));if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(RY(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(RY(1));return n(LY)(e,t)}let r=e,i=t,o=new Map,a=o,s=0,l=!1;function c(){a===o&&(a=new Map,o.forEach(((e,t)=>{a.set(t,e)})))}function u(){if(l)throw new Error(RY(3));return i}function d(e){if("function"!==typeof e)throw new Error(RY(4));if(l)throw new Error(RY(5));let t=!0;c();const n=s++;return a.set(n,e),function(){if(t){if(l)throw new Error(RY(6));t=!1,c(),a.delete(n),o=null}}}function p(e){if(!DY(e))throw new Error(RY(7));if("undefined"===typeof e.type)throw new Error(RY(8));if("string"!==typeof e.type)throw new Error(RY(17));if(l)throw new Error(RY(9));try{l=!0,i=r(i,e)}finally{l=!1}return(o=a).forEach((e=>{e()})),e}p({type:MY.INIT});return{dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!==typeof e)throw new Error(RY(10));r=e,p({type:MY.REPLACE})},[PY]:function(){const e=d;return{subscribe(t){if("object"!==typeof t||null===t)throw new Error(RY(11));function n(){const e=t;e.next&&e.next(u())}n();return{unsubscribe:e(n)}},[PY](){return this}}}}}function FY(e){const t=Object.keys(e),n={};for(let a=0;a<t.length;a++){const r=t[a];0,"function"===typeof e[r]&&(n[r]=e[r])}const r=Object.keys(n);let i;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if("undefined"===typeof n(void 0,{type:MY.INIT}))throw new Error(RY(12));if("undefined"===typeof n(void 0,{type:MY.PROBE_UNKNOWN_ACTION()}))throw new Error(RY(13))}))}(n)}catch(o){i=o}return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(i)throw i;let o=!1;const a={};for(let i=0;i<r.length;i++){const s=r[i],l=n[s],c=e[s],u=l(c,t);if("undefined"===typeof u){t&&t.type;throw new Error(RY(14))}a[s]=u,o=o||u!==c}return o=o||r.length!==Object.keys(e).length,o?a:e}}function BY(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?e=>e:1===t.length?t[0]:t.reduce(((e,t)=>function(){return e(t(...arguments))}))}function UY(e){return DY(e)&&"type"in e&&"string"===typeof e.type}function zY(e){return t=>{let{dispatch:n,getState:r}=t;return t=>i=>"function"===typeof i?i(n,r,e):t(i)}}var HY=zY(),$Y=zY,VY=Symbol.for("immer-nothing"),GY=Symbol.for("immer-draftable"),WY=Symbol.for("immer-state");function qY(e){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var YY=Object.getPrototypeOf;function KY(e){return!!e&&!!e[WY]}function XY(e){return!!e&&(QY(e)||Array.isArray(e)||!!e[GY]||!!e.constructor?.[GY]||rK(e)||iK(e))}var ZY=Object.prototype.constructor.toString();function QY(e){if(!e||"object"!==typeof e)return!1;const t=YY(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===ZY}function JY(e,t){0===eK(e)?Reflect.ownKeys(e).forEach((n=>{t(n,e[n],e)})):e.forEach(((n,r)=>t(r,n,e)))}function eK(e){const t=e[WY];return t?t.type_:Array.isArray(e)?1:rK(e)?2:iK(e)?3:0}function tK(e,t){return 2===eK(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function nK(e,t,n){const r=eK(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function rK(e){return e instanceof Map}function iK(e){return e instanceof Set}function oK(e){return e.copy_||e.base_}function aK(e,t){if(rK(e))return new Map(e);if(iK(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=QY(e);if(!0===t||"class_only"===t&&!n){const t=Object.getOwnPropertyDescriptors(e);delete t[WY];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(YY(e),t)}{const t=YY(e);if(null!==t&&n)return{...e};const r=Object.create(t);return Object.assign(r,e)}}function sK(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return cK(e)||KY(e)||!XY(e)||(eK(e)>1&&(e.set=e.add=e.clear=e.delete=lK),Object.freeze(e),t&&Object.entries(e).forEach((e=>{let[t,n]=e;return sK(n,!0)}))),e}function lK(){qY(2)}function cK(e){return Object.isFrozen(e)}var uK,dK={};function pK(e){const t=dK[e];return t||qY(0),t}function hK(){return uK}function fK(e,t){t&&(pK("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function mK(e){gK(e),e.drafts_.forEach(vK),e.drafts_=null}function gK(e){e===uK&&(uK=e.parent_)}function bK(e){return uK={drafts_:[],parent_:uK,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function vK(e){const t=e[WY];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function yK(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[WY].modified_&&(mK(t),qY(4)),XY(e)&&(e=xK(t,e),t.parent_||AK(t,e)),t.patches_&&pK("Patches").generateReplacementPatches_(n[WY].base_,e,t.patches_,t.inversePatches_)):e=xK(t,n,[]),mK(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==VY?e:void 0}function xK(e,t,n){if(cK(t))return t;const r=t[WY];if(!r)return JY(t,((i,o)=>wK(e,r,t,i,o,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return AK(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let i=t,o=!1;3===r.type_&&(i=new Set(t),t.clear(),o=!0),JY(i,((i,a)=>wK(e,r,t,i,a,n,o))),AK(e,t,!1),n&&e.patches_&&pK("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function wK(e,t,n,r,i,o,a){if(KY(i)){const a=xK(e,i,o&&t&&3!==t.type_&&!tK(t.assigned_,r)?o.concat(r):void 0);if(nK(n,r,a),!KY(a))return;e.canAutoFreeze_=!1}else a&&n.add(i);if(XY(i)&&!cK(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;xK(e,i),t&&t.scope_.parent_||"symbol"===typeof r||!Object.prototype.propertyIsEnumerable.call(n,r)||AK(e,i)}}function AK(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&sK(t,n)}var EK={get(e,t){if(t===WY)return e;const n=oK(e);if(!tK(n,t))return function(e,t,n){const r=kK(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!XY(r)?r:r===_K(e.base_,t)?(CK(e),e.copy_[t]=OK(r,e)):r},has(e,t){return t in oK(e)},ownKeys(e){return Reflect.ownKeys(oK(e))},set(e,t,n){const r=kK(oK(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=_K(oK(e),t),a=r?.[WY];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(((i=n)===(o=r)?0!==i||1/i===1/o:i!==i&&o!==o)&&(void 0!==n||tK(e.base_,t)))return!0;CK(e),TK(e)}var i,o;return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return void 0!==_K(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,CK(e),TK(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=oK(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){qY(11)},getPrototypeOf(e){return YY(e.base_)},setPrototypeOf(){qY(12)}},SK={};function _K(e,t){const n=e[WY];return(n?oK(n):e)[t]}function kK(e,t){if(!(t in e))return;let n=YY(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=YY(n)}}function TK(e){e.modified_||(e.modified_=!0,e.parent_&&TK(e.parent_))}function CK(e){e.copy_||(e.copy_=aK(e.base_,e.scope_.immer_.useStrictShallowCopy_))}JY(EK,((e,t)=>{SK[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),SK.deleteProperty=function(e,t){return SK.set.call(this,e,t,void 0)},SK.set=function(e,t,n){return EK.set.call(this,e[0],t,n,e[0])};function OK(e,t){const n=rK(e)?pK("MapSet").proxyMap_(e,t):iK(e)?pK("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:hK(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=EK;n&&(i=[r],o=SK);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}(e,t);return(t?t.scope_:hK()).drafts_.push(n),n}function NK(e){return KY(e)||qY(10),IK(e)}function IK(e){if(!XY(e)||cK(e))return e;const t=e[WY];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=aK(e,t.scope_.immer_.useStrictShallowCopy_)}else n=aK(e,!0);return JY(n,((e,t)=>{nK(n,e,IK(t))})),t&&(t.finalized_=!1),n}var RK=new class{constructor(e){var t=this;this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"===typeof e&&"function"!==typeof t){const n=t;t=e;const r=this;return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n;for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return r.produce(e,(e=>t.call(this,e,...o)))}}let r;if("function"!==typeof t&&qY(6),void 0!==n&&"function"!==typeof n&&qY(7),XY(e)){const i=bK(this),o=OK(e,void 0);let a=!0;try{r=t(o),a=!1}finally{a?mK(i):gK(i)}return fK(i,n),yK(r,i)}if(!e||"object"!==typeof e){if(r=t(e),void 0===r&&(r=e),r===VY&&(r=void 0),this.autoFreeze_&&sK(r,!0),n){const t=[],i=[];pK("Patches").generateReplacementPatches_(e,r,t,i),n(t,i)}return r}qY(1)},this.produceWithPatches=(e,n)=>{if("function"===typeof e)return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return t.produceWithPatches(n,(t=>e(t,...i)))};let r,i;return[this.produce(e,n,((e,t)=>{r=e,i=t})),r,i]},"boolean"===typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"===typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){XY(e)||qY(8),KY(e)&&(e=NK(e));const t=bK(this),n=OK(e,void 0);return n[WY].isManual_=!0,gK(t),n}finishDraft(e,t){const n=e&&e[WY];n&&n.isManual_||qY(9);const{scope_:r}=n;return fK(r,t),yK(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>
155-1&&(t=t.slice(n+1));const r=pK("Patches").applyPatches_;return KY(e)?r(e,t):this.produce(e,(e=>r(e,t)))}},PK=RK.produce;RK.produceWithPatches.bind(RK),RK.setAutoFreeze.bind(RK),RK.setUseStrictShallowCopy.bind(RK),RK.applyPatches.bind(RK),RK.createDraft.bind(RK),RK.finishDraft.bind(RK);var jK="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"===typeof arguments[0]?BY:BY.apply(null,arguments)};"undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function MK(e,t){function n(){if(t){let n=t(...arguments);if(!n)throw new Error(OX(0));return{type:e,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:e,payload:arguments.length<=0?void 0:arguments[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>UY(t)&&t.type===e,n}var DK=class e extends Array{constructor(){super(...arguments),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return super.concat.apply(this,t)}prepend(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return 1===n.length&&Array.isArray(n[0])?new e(...n[0].concat(this)):new e(...n.concat(this))}};function LK(e){return XY(e)?PK(e,(()=>{})):e}function FK(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var BK="RTK_autoBatch",UK=e=>t=>{setTimeout(t,e)},zK=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new DK(e);return n&&r.push(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:"raf"};return t=>function(){const n=t(...arguments);let r=!0,i=!1,o=!1;const a=new Set,s="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:UK(10):"callback"===e.type?e.queueNotification:UK(e.timeout),l=()=>{o=!1,i&&(i=!1,a.forEach((e=>e())))};return Object.assign({},n,{subscribe(e){const t=n.subscribe((()=>r&&e()));return a.add(e),()=>{t(),a.delete(e)}},dispatch(e){try{return r=!e?.meta?.[BK],i=!r,i&&(o||(o=!0,s(l))),n.dispatch(e)}finally{r=!0}}})}}("object"===typeof n?n:void 0)),r};function HK(e){const t=function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:i=!0}=e??{};let o=new DK;return t&&("boolean"===typeof t?o.push(HY):o.push($Y(t.extraArgument))),o},{reducer:n,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:o=!0,preloadedState:a,enhancers:s}=e||{};let l,c;if("function"===typeof n)l=n;else{if(!DY(n))throw new Error(OX(1));l=FY(n)}c="function"===typeof r?r(t):t();let u=BY;i&&(u=jK({trace:!1,..."object"===typeof i&&i}));const d=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>(n,r)=>{const i=e(n,r);let o=()=>{throw new Error(RY(15))};const a={getState:i.getState,dispatch:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return o(e,...n)}},s=t.map((e=>e(a)));return o=BY(...s)(i.dispatch),{...i,dispatch:o}}}(...c),p=zK(d);return LY(l,a,u(..."function"===typeof s?s(p):p()))}function $K(e){const t={},n=[];let r;const i={addCase(e,n){const r="string"===typeof e?e:e.type;if(!r)throw new Error(OX(28));if(r in t)throw new Error(OX(29));return t[r]=n,i},addMatcher(e,t){return n.push({matcher:e,reducer:t}),i},addDefaultCase(e){return r=e,i}};return e(i),[t,n,r]}var VK=function(){let e="",t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;for(;t--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e};var GK=Symbol.for("rtk-slice-createasyncthunk");function WK(e,t){return`${e}/${t}`}function qK(){let{creators:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e?.asyncThunk?.[GK];return function(e){const{name:n,reducerPath:r=n}=e;if(!n)throw new Error(OX(11));const i=("function"===typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer(e){return Object.assign({[e.name](){return e(...arguments)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,t){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}},asyncThunk:e}}()):e.reducers)||{},o=Object.keys(i),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){const n="string"===typeof e?e:e.type;if(!n)throw new Error(OX(12));if(n in a.sliceCaseReducersByType)throw new Error(OX(13));return a.sliceCaseReducersByType[n]=t,s},addMatcher(e,t){return a.sliceMatchers.push({matcher:e,reducer:t}),s},exposeAction(e,t){return a.actionCreators[e]=t,s},exposeCaseReducer(e,t){return a.sliceCaseReducersByName[e]=t,s}};function l(){const[t={},n=[],r]="function"===typeof e.extraReducers?$K(e.extraReducers):[e.extraReducers],i={...t,...a.sliceCaseReducersByType};return function(e,t){let n,[r,i,o]=$K(t);if("function"===typeof e)n=()=>LK(e());else{const t=LK(e);n=()=>t}function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n(),t=arguments.length>1?arguments[1]:void 0,a=[r[t.type],...i.filter((e=>{let{matcher:n}=e;return n(t)})).map((e=>{let{reducer:t}=e;return t}))];return 0===a.filter((e=>!!e)).length&&(a=[o]),a.reduce(((e,n)=>{if(n){if(KY(e)){const r=n(e,t);return void 0===r?e:r}if(XY(e))return PK(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}}return e}),e)}return a.getInitialState=n,a}(e.initialState,(e=>{for(let t in i)e.addCase(t,i[t]);for(let t of a.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)}))}
155o.forEach((r=>{const o=i[r],a={reducerName:r,type:WK(n,r),createNotation:"function"===typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(o)?function(e,t,n){let r,i,{type:o,reducerName:a,createNotation:s}=e;if("reducer"in t){if(s&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(t))throw new Error(OX(17));r=t.reducer,i=t.prepare}else r=t;n.addCase(o,r).exposeCaseReducer(a,r).exposeAction(a,i?MK(o,i):MK(o))}(a,o,s):function(e,t,n,r){let{type:i,reducerName:o}=e;if(!r)throw new Error(OX(18));const{payloadCreator:a,fulfilled:s,pending:l,rejected:c,settled:u,options:d}=t,p=r(i,a,d);n.exposeAction(o,p),s&&n.addCase(p.fulfilled,s);l&&n.addCase(p.pending,l);c&&n.addCase(p.rejected,c);u&&n.addMatcher(p.settled,u);n.exposeCaseReducer(o,{fulfilled:s||XK,pending:l||XK,rejected:c||XK,settled:u||XK})}(a,o,s,t)}));const c=e=>e,u=new Map,d=new WeakMap;let p;function h(e,t){return p||(p=l()),p(e,t)}function f(){return p||(p=l()),p.getInitialState()}function m(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function r(e){let i=e[t];return"undefined"===typeof i&&n&&(i=FK(d,r,f)),i}function i(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;const r=FK(u,n,(()=>new WeakMap));return FK(r,t,(()=>{const r={};for(const[i,o]of Object.entries(e.selectors??{}))r[i]=YK(o,t,(()=>FK(d,t,f)),n);return r}))}return{reducerPath:t,getSelectors:i,get selectors(){return i(r)},selectSlice:r}}const g={name:n,reducer:h,actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:f,...m(r),injectInto(e){let{reducerPath:t,...n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=t??r;return e.inject({reducerPath:i,reducer:h},n),{...g,...m(i,!0)}}};return g}}function YK(e,t,n,r){function i(i){let o=t(i);"undefined"===typeof o&&r&&(o=n());for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];return e(o,...s)}return i.unwrapped=e,i}var KK=qK();function XK(){}var ZK="listener",QK="completed",JK="cancelled",eX=`task-${JK}`,tX=`task-${QK}`,nX=`${ZK}-${JK}`,rX=`${ZK}-${QK}`,iX=class{constructor(e){this.code=e,this.message=`task ${JK} (reason: ${e})`}name="TaskAbortError";message},oX=(e,t)=>{if("function"!==typeof e)throw new TypeError(OX(32))},aX=()=>{},sX=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:aX;return e.catch(t),e},lX=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),cX=(e,t)=>{const n=e.signal;n.aborted||("reason"in n||Object.defineProperty(n,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},uX=e=>{if(e.aborted){const{reason:t}=e;throw new iX(t)}};function dX(e,t){let n=aX;return new Promise(((r,i)=>{const o=()=>i(new iX(e.reason));e.aborted?o():(n=lX(e,o),t.finally((()=>n())).then(r,i))})).finally((()=>{n=aX}))}var pX=e=>t=>sX(dX(e,t).then((t=>(uX(e),t)))),hX=e=>{const t=pX(e);return e=>t(new Promise((t=>setTimeout(t,e))))},{assign:fX}=Object,mX={},gX="listenerMiddleware",bX=(e,t)=>(n,r)=>{oX(n);const i=new AbortController;var o;o=i,lX(e,(()=>cX(o,e.reason)));const a=(async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(qUe){return{status:qUe instanceof iX?"cancelled":"rejected",error:qUe}}finally{t?.()}})((async()=>{uX(e),uX(i.signal);const t=await n({pause:pX(i.signal),delay:hX(i.signal),signal:i.signal});return uX(i.signal),t}),(()=>cX(i,tX)));return r?.autoJoin&&t.push(a.catch(aX)),{result:pX(e)(a),cancel(){cX(i,eX)}}},vX=(e,t)=>(n,r)=>sX((async(n,r)=>{uX(t);let i=()=>{};const o=[new Promise(((t,r)=>{let o=e({predicate:n,effect:(e,n)=>{n.unsubscribe(),t([e,n.getState(),n.getOriginalState()])}});i=()=>{o(),r()}}))];null!=r&&o.push(new Promise((e=>setTimeout(e,r,null))));try{const e=await dX(t,Promise.race(o));return uX(t),e}finally{i()}})(n,r)),yX=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:o}=e;if(t)i=MK(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(OX(21));return oX(o),{predicate:i,type:t,effect:o}},xX=fX((e=>{const{type:t,predicate:n,effect:r}=yX(e);return{id:VK(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(OX(22))}}}),{withTypes:()=>xX}),wX=(e,t)=>{const{type:n,effect:r,predicate:i}=yX(t);return Array.from(e.values()).find((e=>("string"===typeof n?e.type===n:e.predicate===i)&&e.effect===r))},AX=e=>{e.pending.forEach((e=>{cX(e,nX)}))},EX=(e,t,n)=>{try{e(t,n)}catch(r){setTimeout((()=>{throw r}),0)}},SX=fX(MK(`${gX}/add`),{withTypes:()=>SX}),_X=MK(`${gX}/removeAll`),kX=fX(MK(`${gX}/remove`),{withTypes:()=>kX}),TX=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.error(`${gX}/error`,...t)},CX=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=new Map,{extra:n,onError:r=TX}=e;oX(r);const i=e=>(e=>(e.unsubscribe=()=>t.delete(e.id),t.set(e.id,e),t=>{e.unsubscribe(),t?.cancelActive&&AX(e)}))(wX(t,e)??xX(e));fX(i,{withTypes:()=>i});const o=e=>{const n=wX(t,e);return n&&(n.unsubscribe(),e.cancelActive&&AX(n)),!!n};fX(o,{withTypes:()=>o});const a=async(e,o,a,s)=>{const l=new AbortController,c=vX(i,l.signal),u=[];try{e.pending.add(l),await Promise.resolve(e.effect(o,fX({},a,{getOriginalState:s,condition:(e,t)=>c(e,t).then(Boolean),take:c,delay:hX(l.signal),pause:pX(l.signal),extra:n,signal:l.signal,fork:bX(l.signal,u),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach(((e,t,n)=>{e!==l&&(cX(e,nX),n.delete(e))}))},cancel:()=>{cX(l,nX),e.pending.delete(l)},throwIfCancelled:()=>{uX(l.signal)}})))}catch(d){d instanceof iX||EX(r,d,{raisedBy:"effect"})}finally{await Promise.all(u),cX(l,rX),e.pending.delete(l)}},s=(e=>()=>{e.forEach(AX),e.clear()})(t);return{middleware:e=>n=>l=>{if(!UY(l))return n(l);if(SX.match(l))return i(l.payload);if(_X.match(l))return void s();if(kX.match(l))return o(l.payload);let c=e.getState();const u=()=>{if(c===mX)throw new Error(OX(23));return c};let d;try{if(d=n(l),t.size>0){const n=e.getState(),i=Array.from(t.values());for(const t of i){let i=!1;try{i=t.predicate(l,n,c)}catch(p){i=!1,EX(r,p,{raisedBy:"predicate"})}i&&a(t,l,e,u)}}}finally{c=mX}return d},startListening:i,stopListening:o,clearListeners:s}};Symbol.for("rtk-state-proxy-original");function OX(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}function NX(e,t){if(t){var n=Number.parseInt(t,10);if(!gY(n))return null===e||void 0===e?void 0:e[n]}}
155var IX=KK({name:"options",initialState:{chartName:"",tooltipPayloadSearcher:void 0,eventEmitter:void 0,defaultTooltipEventType:"axis"},reducers:{createEventEmitter:e=>{null==e.eventEmitter&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),RX=IX.reducer,{createEventEmitter:PX}=IX.actions,jX=Symbol.for("immer-nothing"),MX=Symbol.for("immer-draftable"),DX=Symbol.for("immer-state");function LX(e){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var FX=Object.getPrototypeOf;function BX(e){return!!e&&!!e[DX]}function UX(e){return!!e&&(HX(e)||Array.isArray(e)||!!e[MX]||!!e.constructor?.[MX]||qX(e)||YX(e))}var zX=Object.prototype.constructor.toString();function HX(e){if(!e||"object"!==typeof e)return!1;const t=FX(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===zX}function $X(e,t){0===VX(e)?Reflect.ownKeys(e).forEach((n=>{t(n,e[n],e)})):e.forEach(((n,r)=>t(r,n,e)))}function VX(e){const t=e[DX];return t?t.type_:Array.isArray(e)?1:qX(e)?2:YX(e)?3:0}function GX(e,t){return 2===VX(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function WX(e,t,n){const r=VX(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function qX(e){return e instanceof Map}function YX(e){return e instanceof Set}function KX(e){return e.copy_||e.base_}function XX(e,t){if(qX(e))return new Map(e);if(YX(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=HX(e);if(!0===t||"class_only"===t&&!n){const t=Object.getOwnPropertyDescriptors(e);delete t[DX];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(FX(e),t)}{const t=FX(e);if(null!==t&&n)return{...e};const r=Object.create(t);return Object.assign(r,e)}}function ZX(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return JX(e)||BX(e)||!UX(e)||(VX(e)>1&&(e.set=e.add=e.clear=e.delete=QX),Object.freeze(e),t&&Object.entries(e).forEach((e=>{let[t,n]=e;return ZX(n,!0)}))),e}function QX(){LX(2)}function JX(e){return Object.isFrozen(e)}var eZ,tZ={};function nZ(e){const t=tZ[e];return t||LX(0),t}function rZ(){return eZ}function iZ(e,t){t&&(nZ("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function oZ(e){aZ(e),e.drafts_.forEach(lZ),e.drafts_=null}function aZ(e){e===eZ&&(eZ=e.parent_)}function sZ(e){return eZ={drafts_:[],parent_:eZ,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function lZ(e){const t=e[DX];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function cZ(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[DX].modified_&&(oZ(t),LX(4)),UX(e)&&(e=uZ(t,e),t.parent_||pZ(t,e)),t.patches_&&nZ("Patches").generateReplacementPatches_(n[DX].base_,e,t.patches_,t.inversePatches_)):e=uZ(t,n,[]),oZ(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==jX?e:void 0}function uZ(e,t,n){if(JX(t))return t;const r=t[DX];if(!r)return $X(t,((i,o)=>dZ(e,r,t,i,o,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return pZ(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let i=t,o=!1;3===r.type_&&(i=new Set(t),t.clear(),o=!0),$X(i,((i,a)=>dZ(e,r,t,i,a,n,o))),pZ(e,t,!1),n&&e.patches_&&nZ("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function dZ(e,t,n,r,i,o,a){if(BX(i)){const a=uZ(e,i,o&&t&&3!==t.type_&&!GX(t.assigned_,r)?o.concat(r):void 0);if(WX(n,r,a),!BX(a))return;e.canAutoFreeze_=!1}else a&&n.add(i);if(UX(i)&&!JX(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;uZ(e,i),t&&t.scope_.parent_||"symbol"===typeof r||!Object.prototype.propertyIsEnumerable.call(n,r)||pZ(e,i)}}function pZ(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ZX(t,n)}var hZ={get(e,t){if(t===DX)return e;const n=KX(e);if(!GX(n,t))return function(e,t,n){const r=gZ(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!UX(r)?r:r===mZ(e.base_,t)?(vZ(e),e.copy_[t]=yZ(r,e)):r},has(e,t){return t in KX(e)},ownKeys(e){return Reflect.ownKeys(KX(e))},set(e,t,n){const r=gZ(KX(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=mZ(KX(e),t),a=r?.[DX];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(((i=n)===(o=r)?0!==i||1/i===1/o:i!==i&&o!==o)&&(void 0!==n||GX(e.base_,t)))return!0;vZ(e),bZ(e)}var i,o;return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return void 0!==mZ(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,vZ(e),bZ(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=KX(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){LX(11)},getPrototypeOf(e){return FX(e.base_)},setPrototypeOf(){LX(12)}},fZ={};function mZ(e,t){const n=e[DX];return(n?KX(n):e)[t]}function gZ(e,t){if(!(t in e))return;let n=FX(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=FX(n)}}function bZ(e){e.modified_||(e.modified_=!0,e.parent_&&bZ(e.parent_))}function vZ(e){e.copy_||(e.copy_=XX(e.base_,e.scope_.immer_.useStrictShallowCopy_))}
155$X(hZ,((e,t)=>{fZ[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),fZ.deleteProperty=function(e,t){return fZ.set.call(this,e,t,void 0)},fZ.set=function(e,t,n){return hZ.set.call(this,e[0],t,n,e[0])};function yZ(e,t){const n=qX(e)?nZ("MapSet").proxyMap_(e,t):YX(e)?nZ("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:rZ(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=hZ;n&&(i=[r],o=fZ);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}(e,t);return(t?t.scope_:rZ()).drafts_.push(n),n}function xZ(e){if(!UX(e)||JX(e))return e;const t=e[DX];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=XX(e,t.scope_.immer_.useStrictShallowCopy_)}else n=XX(e,!0);return $X(n,((e,t)=>{WX(n,e,xZ(t))})),t&&(t.finalized_=!1),n}var wZ=new class{constructor(e){var t=this;this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"===typeof e&&"function"!==typeof t){const n=t;t=e;const r=this;return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n;for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return r.produce(e,(e=>t.call(this,e,...o)))}}let r;if("function"!==typeof t&&LX(6),void 0!==n&&"function"!==typeof n&&LX(7),UX(e)){const i=sZ(this),o=yZ(e,void 0);let a=!0;try{r=t(o),a=!1}finally{a?oZ(i):aZ(i)}return iZ(i,n),cZ(r,i)}if(!e||"object"!==typeof e){if(r=t(e),void 0===r&&(r=e),r===jX&&(r=void 0),this.autoFreeze_&&ZX(r,!0),n){const t=[],i=[];nZ("Patches").generateReplacementPatches_(e,r,t,i),n(t,i)}return r}LX(1)},this.produceWithPatches=(e,n)=>{if("function"===typeof e)return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return t.produceWithPatches(n,(t=>e(t,...i)))};let r,i;return[this.produce(e,n,((e,t)=>{r=e,i=t})),r,i]},"boolean"===typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"===typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){UX(e)||LX(8),BX(e)&&(e=function(e){BX(e)||LX(10);return xZ(e)}(e));const t=sZ(this),n=yZ(e,void 0);return n[DX].isManual_=!0,aZ(t),n}finishDraft(e,t){const n=e&&e[DX];n&&n.isManual_||LX(9);const{scope_:r}=n;return iZ(r,t),cZ(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=nZ("Patches").applyPatches_;return BX(e)?r(e,t):this.produce(e,(e=>r(e,t)))}};wZ.produce,wZ.produceWithPatches.bind(wZ),wZ.setAutoFreeze.bind(wZ),wZ.setUseStrictShallowCopy.bind(wZ),wZ.applyPatches.bind(wZ),wZ.createDraft.bind(wZ),wZ.finishDraft.bind(wZ);var AZ={active:!1,index:null,dataKey:void 0,coordinate:void 0},EZ=KK({name:"tooltip",initialState:{itemInteraction:{click:AZ,hover:AZ},axisInteraction:{click:AZ,hover:AZ},keyboardInteraction:AZ,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},reducers:{addTooltipEntrySettings(e,t){e.tooltipItemPayloads.push(t.payload)},removeTooltipEntrySettings(e,t){var n=NK(e).tooltipItemPayloads.indexOf(t.payload);n>-1&&e.tooltipItemPayloads.splice(n,1)},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate,e.keyboardInteraction.dataKey=t.payload.activeDataKey}}}),{addTooltipEntrySettings:SZ,removeTooltipEntrySettings:_Z,setTooltipSettingsState:k
155Z,setActiveMouseOverItemIndex:TZ,mouseLeaveItem:CZ,mouseLeaveChart:OZ,setActiveClickItemIndex:NZ,setMouseOverAxisIndex:IZ,setMouseClickAxisIndex:RZ,setSyncInteraction:PZ,setKeyboardInteraction:jZ}=EZ.actions,MZ=EZ.reducer,DZ=KK({name:"chartData",initialState:{chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},reducers:{setChartData(e,t){if(e.chartData=t.payload,null==t.payload)return e.dataStartIndex=0,void(e.dataEndIndex=0);t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:n,endIndex:r}=t.payload;null!=n&&(e.dataStartIndex=n),null!=r&&(e.dataEndIndex=r)}}}),{setChartData:LZ,setDataStartEndIndexes:FZ,setComputedData:BZ}=DZ.actions,UZ=DZ.reducer,zZ=KK({name:"chartLayout",initialState:{layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){e.margin.top=t.payload.top,e.margin.right=t.payload.right,e.margin.bottom=t.payload.bottom,e.margin.left=t.payload.left},setScale(e,t){e.scale=t.payload}}}),{setMargin:HZ,setLayout:$Z,setChartSize:VZ,setScale:GZ}=zZ.actions,WZ=zZ.reducer;function qZ(e){if("function"!==typeof e)throw new TypeError(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"expected a function, instead received "+typeof e)}var YZ=e=>Array.isArray(e)?e:[e];function KZ(e){const t=Array.isArray(e[0])?e[0]:e;return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"expected all items to be functions, instead received the following types: ";if(!e.every((e=>"function"===typeof e))){const n=e.map((e=>"function"===typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}Symbol(),Object.getPrototypeOf({});var XZ="undefined"!==typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function ZZ(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={s:0,v:void 0,o:null,p:null};const{resultEqualityCheck:r}=t;let i,o=0;function a(){let t=n;const{length:a}=arguments;for(let e=0,n=a;e<n;e++){const n=arguments[e];if("function"===typeof n||"object"===typeof n&&null!==n){let e=t.o;null===e&&(t.o=e=new WeakMap);const r=e.get(n);void 0===r?(t={s:0,v:void 0,o:null,p:null},e.set(n,t)):t=r}else{let e=t.p;null===e&&(t.p=e=new Map);const r=e.get(n);void 0===r?(t={s:0,v:void 0,o:null,p:null},e.set(n,t)):t=r}}const s=t;let l;if(1===t.s)l=t.v;else if(l=e.apply(null,arguments),o++,r){const e=i?.deref?.()??i;null!=e&&r(e,l)&&(l=e,0!==o&&o--);i="object"===typeof l&&null!==l||"function"===typeof l?new XZ(l):l}return s.s=1,s.v=l,l}return a.clearCache=()=>{n={s:0,v:void 0,o:null,p:null},a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function QZ(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i="function"===typeof e?{memoize:e,memoizeOptions:n}:e,o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r,o=0,a=0,s={},l=t.pop();"object"===typeof l&&(s=l,l=t.pop()),qZ(l,`createSelector expects an output function after the inputs, but received: [${typeof l}]`);const c={...i,...s},{memoize:u,memoizeOptions:d=[],argsMemoize:p=ZZ,argsMemoizeOptions:h=[],devModeChecks:f={}}=c,m=YZ(d),g=YZ(h),b=KZ(t),v=u((function(){return o++,l.apply(null,arguments)}),...m);const y=p((function(){a++;const e=function(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}(b,arguments);return r=v.apply(null,e),r}),...g);return Object.assign(y,{resultFunc:l,memoizedResultFunc:v,dependencies:b,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>r,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:u,argsMemoize:p})};return Object.assign(o,{withTypes:()=>o}),o}var JZ=QZ(ZZ),eQ=Object.assign((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:JZ;!function(e){if("object"!==typeof e)throw new TypeError(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"expected an object, instead received "+typeof e)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e),r=t(n.map((t=>e[t])),(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})}));return r}),{withTypes:()=>eQ}),tQ=(0,c.createContext)(null),nQ=e=>e,rQ=()=>{var e=(0,c.useContext)(tQ);return e?e.store.dispatch:nQ},iQ=()=>{},oQ=()=>iQ,aQ=(e,t)=>e===t;function sQ(e){var t=(0,c.useContext)(tQ);return(0,a.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:oQ,t?t.store.getState:iQ,t?t.store.getState:iQ,t?e:iQ,aQ)}var lQ=__webpack_require__(30830),cQ=__webpack_require__.n(lQ),uQ=e=>e.legend.settings;JZ([e=>e.legend.payload,uQ],((e,t)=>{var{itemSorter:n}=t,r=e.flat(1);return n?cQ()(r,n):r}));function dQ(e,t){if((i=e.length)>1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o<i;++o)for(r=a,a=e[t[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}Array.prototype.slice;function pQ(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function hQ(e){return function(){return e}}function fQ(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function mQ(e,t){return e[t]}function gQ(e){const t=[];return t.key=e,t}function bQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vQ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
155t%2?bQ(Object(n),!0).forEach((function(t){yQ(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bQ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yQ(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xQ=Math.PI/180,wQ=e=>180*e/Math.PI,AQ=(e,t,n,r)=>({x:e+Math.cos(-xQ*r)*n,y:t+Math.sin(-xQ*r)*n}),EQ=(e,t)=>{var{x:n,y:r}=e,{cx:i,cy:o}=t,a=((e,t)=>{var{x:n,y:r}=e,{x:i,y:o}=t;return Math.sqrt((n-i)**2+(r-o)**2)})({x:n,y:r},{x:i,y:o});if(a<=0)return{radius:a,angle:0};var s=(n-i)/a,l=Math.acos(s);return r>o&&(l=2*Math.PI-l),{radius:a,angle:wQ(l),angleInRadian:l}},SQ=(e,t)=>{var{startAngle:n,endAngle:r}=t,i=Math.floor(n/360),o=Math.floor(r/360);return e+360*Math.min(i,o)},_Q=(e,t)=>{var{x:n,y:r}=e,{radius:i,angle:o}=EQ({x:n,y:r},t),{innerRadius:a,outerRadius:s}=t;if(i<a||i>s)return null;if(0===i)return null;var l,{startAngle:c,endAngle:u}=(e=>{var{startAngle:t,endAngle:n}=e,r=Math.floor(t/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:t-360*o,endAngle:n-360*o}})(t),d=o;if(c<=u){for(;d>u;)d-=360;for(;d<c;)d+=360;l=d>=c&&d<=u}else{for(;d>c;)d-=360;for(;d<u;)d+=360;l=d>=u&&d<=c}return l?vQ(vQ({},t),{},{radius:i,angle:SQ(d,t)}):null};function kQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function TQ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kQ(Object(n),!0).forEach((function(t){CQ(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kQ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}
155function CQ(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OQ(e,t,n){return _Y(e)||_Y(t)?n:yY(t)?fY()(e,t,n):"function"===typeof t?t(e):n}var NQ=(e,t)=>"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t,IQ=1e-4,RQ={sign:e=>{var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,o=0,a=0;a<t;++a){var s=gY(e[a][n][1])?e[a][n][0]:e[a][n][1];s>=0?(e[a][n][0]=i,e[a][n][1]=i+s,i=e[a][n][1]):(e[a][n][0]=o,e[a][n][1]=o+s,o=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,i,o=0,a=e[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=e[n][o][1]||0;if(i)for(n=0;n<r;++n)e[n][o][1]/=i}dQ(e,t)}},none:dQ,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],o=i.length;r<o;++r){for(var a=0,s=0;a<n;++a)s+=e[a][r][1]||0;i[r][1]+=i[r][0]=-s/2}dQ(e,t)}},wiggle:function(e,t){if((i=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var s=0,l=0,c=0;s<i;++s){for(var u=e[t[s]],d=u[a][1]||0,p=(d-(u[a-1][1]||0))/2,h=0;h<s;++h){var f=e[t[h]];p+=(f[a][1]||0)-(f[a-1][1]||0)}l+=d,c+=p*d}n[a-1][1]+=n[a-1][0]=o,l&&(o-=c/l)}n[a-1][1]+=n[a-1][0]=o,dQ(e,t)}},positive:e=>{var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,o=0;o<t;++o){var a=gY(e[o][n][1])?e[o][n][0]:e[o][n][1];a>=0?(e[o][n][0]=i,e[o][n][1]=i+a,i=e[o][n][1]):(e[o][n][0]=0,e[o][n][1]=0)}}},PQ=(e,t,n)=>{var r=RQ[n],i=function(){var e=hQ([]),t=fQ,n=dQ,r=mQ;function i(i){var o,a,s=Array.from(e.apply(this,arguments),gQ),l=s.length,c=-1;for(const e of i)for(o=0,++c;o<l;++o)(s[o][c]=[0,+r(e,s[o].key,c,i)]).data=e;for(o=0,a=pQ(t(s));o<l;++o)s[a[o]].index=o;return n(s,a),s}return i.keys=function(t){return arguments.length?(e="function"===typeof t?t:hQ(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r="function"===typeof e?e:hQ(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?fQ:"function"===typeof e?e:hQ(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?dQ:e,i):n},i}().keys(t).value(((e,t)=>+OQ(e,t,0))).order(fQ).offset(r);return i(e)};function jQ(e){return null==e?void 0:String(e)}var MQ=e=>{var{axis:t,ticks:n,offset:r,bandSize:i,entry:o,index:a}=e;if("category"===t.type)return n[a]?n[a].coordinate+r:null;var s=OQ(o,t.dataKey,t.scale.domain()[a]);return _Y(s)?null:t.scale(s)-i/2+r},DQ=(e,t,n)=>{var r;if(null!=e)return[(r=Object.keys(e).reduce(((r,i)=>{var o=e[i],{stackedData:a}=o,s=a.reduce(((e,r)=>{var i=(e=>{var t=e.flat(2).filter(vY);return[Math.min(...t),Math.max(...t)]})(r.slice(t,n+1));return[Math.min(e[0],i[0]),Math.max(e[1],i[1])]}),[1/0,-1/0]);return[Math.min(s[0],r[0]),Math.max(s[1],r[1])]}),[1/0,-1/0]))[0]===1/0?0:r[0],r[1]===-1/0?0:r[1]]},LQ=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,FQ=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,BQ=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=cQ()(t,(e=>e.coordinate)),o=1/0,a=1,s=i.length;a<s;a++){var l=i[a],c=i[a-1];o=Math.min((l.coordinate||0)-(c.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0};function UQ(e){var{tooltipEntrySettings:t,dataKey:n,payload:r,value:i,name:o}=e;return TQ(TQ({},t),{},{dataKey:n,payload:r,value:i,name:o})}function zQ(e,t){return e?String(e):"string"===typeof t?t:void 0}var HQ=e=>e.layout.width,$Q=e=>e.layout.height,VQ=e=>e.layout.scale,GQ=e=>e.layout.margin,WQ=JZ((e=>e.cartesianAxis.xAxis),(e=>Object.values(e))),qQ=JZ((e=>e.cartesianAxis.yAxis),(e=>Object.values(e)));function YQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function KQ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
155t%2?YQ(Object(n),!0).forEach((function(t){XQ(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YQ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function XQ(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ZQ=JZ([HQ,$Q,GQ,e=>e.brush.height,WQ,qQ,uQ,e=>e.legend.size],((e,t,n,r,i,o,a,s)=>{var l=o.reduce(((e,t)=>{var{orientation:n}=t;if(!t.mirror&&!t.hide){var r="number"===typeof t.width?t.width:60;return KQ(KQ({},e),{},{[n]:e[n]+r})}return e}),{left:n.left||0,right:n.right||0}),c=i.reduce(((e,t)=>{var{orientation:n}=t;return t.mirror||t.hide?e:KQ(KQ({},e),{},{[n]:fY()(e,"".concat(n))+t.height})}),{top:n.top||0,bottom:n.bottom||0}),u=KQ(KQ({},c),l),d=u.bottom;u.bottom+=r,u=((e,t,n)=>{if(t&&n){var{width:r,height:i}=n,{align:o,verticalAlign:a,layout:s}=t;if(("vertical"===s||"horizontal"===s&&"middle"===a)&&"center"!==o&&vY(e[o]))return TQ(TQ({},e),{},{[o]:e[o]+(r||0)});if(("horizontal"===s||"vertical"===s&&"center"===o)&&"middle"!==a&&vY(e[a]))return TQ(TQ({},e),{},{[a]:e[a]+(i||0)})}return e})(u,a,s);var p=e-u.left-u.right,h=t-u.top-u.bottom;return KQ(KQ({brushBottom:d},u),{},{width:Math.max(p,0),height:Math.max(h,0)})})),QQ=JZ(ZQ,(e=>({x:e.left,y:e.top,width:e.width,height:e.height}))),JQ=JZ(HQ,$Q,((e,t)=>({x:0,y:0,width:e,height:t}))),eJ=(0,c.createContext)(null),tJ=()=>null!=(0,c.useContext)(eJ),nJ=e=>e.brush,rJ=JZ([nJ,ZQ,GQ],((e,t,n)=>({height:e.height,x:vY(e.x)?e.x:t.left,y:vY(e.y)?e.y:t.top+t.height+t.brushBottom-((null===n||void 0===n?void 0:n.bottom)||0),width:vY(e.width)?e.width:t.width}))),iJ=()=>{var e,t=tJ(),n=sQ(QQ),r=sQ(rJ),i=null===(e=sQ(nJ))||void 0===e?void 0:e.padding;return t&&r&&i?{width:r.width-i.left-i.right,height:r.height-i.top-i.bottom,x:i.left,y:i.top}:n},oJ={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},aJ=e=>e.layout.layoutType,sJ=()=>sQ(aJ),lJ=__webpack_require__(98354),cJ=__webpack_require__.n(lJ);function uJ(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function dJ(e,t){switch(arguments.length){case 0:break;case 1:"function"===typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"===typeof t?this.interpolator(t):this.range(t)}return this}class pJ extends Map{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:gJ;if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[n,r]of e)this.set(n,r)}get(e){return super.get(hJ(this,e))}has(e){return super.has(hJ(this,e))}set(e,t){return super.set(fJ(this,e),t)}delete(e){return super.delete(mJ(this,e))}}Set;function hJ(e,t){let{_intern:n,_key:r}=e;const i=r(t);return n.has(i)?n.get(i):t}function fJ(e,t){let{_intern:n,_key:r}=e;const i=r(t);return n.has(i)?n.get(i):(n.set(i,t),t)}function mJ(e,t){let{_intern:n,_key:r}=e;const i=r(t);return n.has(i)&&(t=n.get(i),n.delete(i)),t}function gJ(e){return null!==e&&"object"===typeof e?e.valueOf():e}const bJ=Symbol("implicit");function vJ(){var e=new pJ,t=[],n=[],r=bJ;function i(i){let o=e.get(i);if(void 0===o){if(r!==bJ)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new pJ;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return vJ(t,n).unknown(r)},uJ.apply(i,arguments),i}function yJ(){var e,t,n=vJ().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,s=!1,l=0,c=0,u=.5;function d(){var n=r().length,d=a<o,p=d?a:o,h=d?o:a;e=(h-p)/Math.max(1,n-l+2*c),s&&(e=Math.floor(e)),p+=(h-p-e*(n-l))*u,t=e*(1-l),s&&(p=Math.round(p),t=Math.round(t));var f=function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r<i;)o[r]=e+r*n;return o}(n).map((function(t){return p+e*t}));return i(d?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),d()):r()},n.range=function(e){return arguments.length?([o,a]=e,o=+o,a=+a,d()):[o,a]},n.rangeRound=function(e){return[o,a]=e,o=+o,a=+a,s=!0,d()},n.bandwidth=function(){return t},n.step=function(){return e}
vendor: 6,192 bytes, line 155
155,n.round=function(e){return arguments.length?(s=!!e,d()):s},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),d()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),d()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,d()):c},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},n.copy=function(){return yJ(r(),[o,a]).round(s).paddingInner(l).paddingOuter(c).align(u)},uJ.apply(d(),arguments)}function xJ(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return xJ(t())},e}function wJ(){return xJ(yJ.apply(null,arguments).paddingInner(1))}const AJ=Math.sqrt(50),EJ=Math.sqrt(10),SJ=Math.sqrt(2);function _J(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=AJ?10:o>=EJ?5:o>=SJ?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/a,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*a,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?_J(e,t,2*n):[s,l,c]}function kJ(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[i,o,a]=r?_J(t,e,n):_J(e,t,n);if(!(o>=i))return[];const s=o-i+1,l=new Array(s);if(r)if(a<0)for(let c=0;c<s;++c)l[c]=(o-c)/-a;else for(let c=0;c<s;++c)l[c]=(o-c)*a;else if(a<0)for(let c=0;c<s;++c)l[c]=(i+c)/-a;else for(let c=0;c<s;++c)l[c]=(i+c)*a;return l}function TJ(e,t,n){return _J(e=+e,t=+t,n=+n)[2]}function CJ(e,t,n){n=+n;const r=(t=+t)<(e=+e),i=r?TJ(t,e,n):TJ(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function OJ(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function NJ(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function IJ(e){let t,n,r;function i(e,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<0?i=t+1:o=t}while(i<o)}return i}return 2!==e.length?(t=OJ,n=(t,n)=>OJ(e(t),n),r=(t,n)=>e(t)-n):(t=e===OJ||e===NJ?e:RJ,n=e,r=e),{left:i,center:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const o=i(e,t,n,(arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length)-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o},right:function(e,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<=0?i=t+1:o=t}while(i<o)}return i}}}function RJ(){return 0}function PJ(e){return null===e?NaN:+e}const jJ=IJ(OJ),MJ=jJ.right;jJ.left,IJ(PJ).center;var DJ=MJ;function LJ(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function FJ(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function BJ(){}var UJ=.7,zJ=1/UJ,HJ="\\s*([+-]?\\d+)\\s*",$J="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",VJ="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",GJ=/^#([0-9a-f]{3,8})$/,WJ=new RegExp(`^rgb\\(${HJ},${HJ},${HJ}\\)$`),qJ=new RegExp(`^rgb\\(${VJ},${VJ},${VJ}\\)$`),YJ=new RegExp(`^rgba\\(${HJ},${HJ},${HJ},${$J}\\)$`),KJ=new RegExp(`^rgba\\(${VJ},${VJ},${VJ},${$J}\\)$`),XJ=new RegExp(`^hsl\\(${$J},${VJ},${VJ}\\)$`),ZJ=new RegExp(`^hsla\\(${$J},${VJ},${VJ},${$J}\\)$`),QJ={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};function JJ(){return this.rgb().formatHex()}function e0(){return this.rgb().formatRgb()}function t0(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=GJ.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?n0(t):3===n?
vendor: 6,321 bytes, line 155
155new o0(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?r0(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?r0(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=WJ.exec(e))?new o0(t[1],t[2],t[3],1):(t=qJ.exec(e))?new o0(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=YJ.exec(e))?r0(t[1],t[2],t[3],t[4]):(t=KJ.exec(e))?r0(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=XJ.exec(e))?d0(t[1],t[2]/100,t[3]/100,1):(t=ZJ.exec(e))?d0(t[1],t[2]/100,t[3]/100,t[4]):QJ.hasOwnProperty(e)?n0(QJ[e]):"transparent"===e?new o0(NaN,NaN,NaN,0):null}function n0(e){return new o0(e>>16&255,e>>8&255,255&e,1)}function r0(e,t,n,r){return r<=0&&(e=t=n=NaN),new o0(e,t,n,r)}function i0(e,t,n,r){return 1===arguments.length?((i=e)instanceof BJ||(i=t0(i)),i?new o0((i=i.rgb()).r,i.g,i.b,i.opacity):new o0):new o0(e,t,n,null==r?1:r);var i}function o0(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function a0(){return`#${u0(this.r)}${u0(this.g)}${u0(this.b)}`}function s0(){const e=l0(this.opacity);return`${1===e?"rgb(":"rgba("}${c0(this.r)}, ${c0(this.g)}, ${c0(this.b)}${1===e?")":`, ${e})`}`}function l0(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function c0(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function u0(e){return((e=c0(e))<16?"0":"")+e.toString(16)}function d0(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new h0(e,t,n,r)}function p0(e){if(e instanceof h0)return new h0(e.h,e.s,e.l,e.opacity);if(e instanceof BJ||(e=t0(e)),!e)return new h0;if(e instanceof h0)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new h0(a,s,l,e.opacity)}function h0(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function f0(e){return(e=(e||0)%360)<0?e+360:e}function m0(e){return Math.max(0,Math.min(1,e||0))}function g0(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function b0(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}LJ(BJ,t0,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:JJ,formatHex:JJ,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return p0(this).formatHsl()},formatRgb:e0,toString:e0}),LJ(o0,i0,FJ(BJ,{brighter(e){return e=null==e?zJ:Math.pow(zJ,e),new o0(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?UJ:Math.pow(UJ,e),new o0(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new o0(c0(this.r),c0(this.g),c0(this.b),l0(this.opacity))},displayable(){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:a0,formatHex:a0,formatHex8:function(){return`#${u0(this.r)}${u0(this.g)}${u0(this.b)}${u0(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:s0,toString:s0})),LJ(h0,(function(e,t,n,r){return 1===arguments.length?p0(e):new h0(e,t,n,null==r?1:r)}),FJ(BJ,{brighter(e){return e=null==e?zJ:Math.pow(zJ,e),new h0(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?UJ:Math.pow(UJ,e),new h0(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new o0(g0(e>=240?e-240:e+120,i,r),g0(e,i,r),g0(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new h0(f0(this.h),m0(this.s),m0(this.l),l0(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=l0(this.opacity);return`${1===e?"hsl(":"hsla("}${f0(this.h)}, ${100*m0(this.s)}%, ${100*m0(this.l)}%${1===e?")":`, ${e})`}`}}));var v0=e=>()=>e;function y0(e,t){return function(n){return e+n*t}}function x0(e){return 1===(e=+e)?w0:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):v0(isNaN(t)?n:t)}}function w0(e,t){var n=t-e;return n?y0(e,n):v0(isNaN(e)?t:e)}var A0=function e(t){var n=x0(t);function r(e,t){var r=n((e=i0(e)).r,(t=i0(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=w0(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function E0(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=i0(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}E0((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return b0((n-r/t)*t,a,i,o,s)}})),E0((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return b0((n-r/t)*t,i,o,a,s)}}));function S0(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=R0(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}function _0(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function k0(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function T0(e,t){var n,r={},i={};for(n in null!==e&&"object"===typeof e||(e={}),null!==t&&"object"===typeof t||(t={}),t)n in e?r[n]=R0(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var C0=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,O0=new RegExp(C0.source,"g");function N0(e,t){var n,r,i,o=C0.lastIndex=O0.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=C0.exec(e))&&(r=O0.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:k0(n,r)})),o=O0.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function I0(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}}function R0(e,t){var n,r,i=typeof t;
vendor: 4,750 bytes, line 155
155return null==t||"boolean"===i?v0(t):("number"===i?k0:"string"===i?(n=t0(t))?(t=n,A0):N0:t instanceof t0?A0:t instanceof Date?_0:(r=t,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(t)?S0:"function"!==typeof t.valueOf&&"function"!==typeof t.toString||isNaN(t)?T0:k0:I0))(e,t)}function P0(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function j0(e){return+e}var M0=[0,1];function D0(e){return e}function L0(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function F0(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=L0(i,r),o=n(a,o)):(r=L0(r,i),o=n(o,a)),function(e){return o(r(e))}}function B0(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=L0(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=DJ(e,t,1,r)-1;return o[n](i[n](t))}}function U0(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function z0(){var e,t,n,r,i,o,a=M0,s=M0,l=R0,c=D0;function u(){var e=Math.min(a.length,s.length);return c!==D0&&(c=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?B0:F0,i=o=null,d}function d(t){return null==t||isNaN(t=+t)?n:(i||(i=r(a.map(e),s,l)))(e(c(t)))}return d.invert=function(n){return c(t((o||(o=r(s,a.map(e),k0)))(n)))},d.domain=function(e){return arguments.length?(a=Array.from(e,j0),u()):a.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),u()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=P0,u()},d.clamp=function(e){return arguments.length?(c=!!e||D0,u()):c!==D0},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}function H0(){return z0()(D0,D0)}var $0,V0=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function G0(e){if(!(t=V0.exec(e)))throw new Error("invalid format: "+e);var t;return new W0({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]})}function W0(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function q0(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Y0(e){return(e=q0(Math.abs(e)))?e[1]:NaN}function K0(e,t){var n=q0(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}G0.prototype=W0.prototype,W0.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var X0={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>K0(100*e,t),r:K0,s:function(e,t){var n=q0(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-($0=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+q0(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Z0(e){return e}var Q0,J0,e1,t1=Array.prototype.map,n1=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function r1(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?Z0:(t=t1.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?Z0:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(t1.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"\u2212":e.minu
vendor: 4,847 bytes, line 155
155s+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=G0(e)).fill,n=e.align,d=e.sign,p=e.symbol,h=e.zero,f=e.width,m=e.comma,g=e.precision,b=e.trim,v=e.type;"n"===v?(m=!0,v="g"):X0[v]||(void 0===g&&(g=12),b=!0,v="g"),(h||"0"===t&&"="===n)&&(h=!0,t="0",n="=");var y="$"===p?i:"#"===p&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",x="$"===p?o:/[%p]/.test(v)?l:"",w=X0[v],A=/[defgprs%]/.test(v);function E(e){var i,o,l,p=y,E=x;if("c"===v)E=w(e)+E,e="";else{var S=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:w(Math.abs(e),g),b&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),S&&0===+e&&"+"!==d&&(S=!1),p=(S?"("===d?d:c:"-"===d||"("===d?"":d)+p,E=("s"===v?n1[8+$0/3]:"")+E+(S&&"("===d?")":""),A)for(i=-1,o=e.length;++i<o;)if(48>(l=e.charCodeAt(i))||l>57){E=(46===l?a+e.slice(i+1):e.slice(i))+E,e=e.slice(0,i);break}}m&&!h&&(e=r(e,1/0));var _=p.length+e.length+E.length,k=_<f?new Array(f-_+1).join(t):"";switch(m&&h&&(e=r(k+e,k.length?f-E.length:1/0),k=""),n){case"<":e=p+e+E+k;break;case"=":e=p+k+e+E;break;case"^":e=k.slice(0,_=k.length>>1)+p+e+E+k.slice(_);break;default:e=k+p+e+E}return s(e)}return g=void 0===g?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),E.toString=function(){return e+""},E}return{format:d,formatPrefix:function(e,t){var n=d(((e=G0(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Y0(t)/3))),i=Math.pow(10,-r),o=n1[8+r/3];return function(e){return n(i*e)+o}}}}function i1(e,t,n,r){var i,o=CJ(e,t,n);switch((r=G0(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Y0(t)/3)))-Y0(Math.abs(e)))}(o,a))||(r.precision=i),e1(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Y0(t)-Y0(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(e){return Math.max(0,-Y0(Math.abs(e)))}(o))||(r.precision=i-2*("%"===r.type))}return J0(r)}function o1(e){var t=e.domain;return e.ticks=function(e){var n=t();return kJ(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return i1(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i,o=t(),a=0,s=o.length-1,l=o[a],c=o[s],u=10;for(c<l&&(i=l,l=c,c=i,i=a,a=s,s=i);u-- >0;){if((i=TJ(l,c,n))===r)return o[a]=l,o[s]=c,t(o);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i}r=i}return e},e}function a1(){var e=H0();return e.copy=function(){return U0(e,a1())},uJ.apply(e,arguments),o1(e)}function s1(e){var t;function n(e){return null==e||isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,j0),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return s1(e).unknown(t)},e=arguments.length?Array.from(e,j0):[0,1],o1(n)}function l1(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e}function c1(e){return Math.log(e)}function u1(e){return Math.exp(e)}function d1(e){return-Math.log(-e)}function p1(e){return-Math.exp(-e)}function h1(e){return isFinite(e)?+("1e"+e):e<0?0:e}function f1(e){return(t,n)=>-e(-t,n)}function m1(e){const t=e(c1,u1),n=t.domain;let r,i,o=10;function a(){return r=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(o),i=function(e){return 10===e?h1:e===Math.E?Math.exp:t=>Math.pow(e,t)}(o),n()[0]<0?(r=f1(r),i=f1(i),e(d1,p1)):e(c1,u1),t}return t.base=function(e){return arguments.length?(o=+e,a()):o},t.domain=function(e){return arguments.length?(n(e),a()):n()},t.ticks=e=>{const t=n();let a=t[0],s=t[t.length-1];const l=s<a;l&&([a,s]=[s,a]);let c,u,d=r(a),p=r(s);const h=null==e?10:+e;let f=[];if(!(o%1)&&p-d<h){if(d=Math.floor(d),p=Math.ceil(p),a>0){for(;d<=p;++d)for(c=1;c<o;++c)if(u=d<0?c/i(-d):c*i(d),!(u<a)){if(u>s)break;f.push(u)}}else for(;d<=p;++d)for(c=o-1;c>=1;--c)if(u=d>0?c/i(-d):c*i(d),!(u<a)){if(u>s)break;f.push(u)}2*f.length<h&&(f=kJ(a,s,h))}else f=kJ(d,p,Math.min(p-d,h)).map(i);return l?f.reverse():f},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===o?"s":","),"function"!==typeof n&&(o%1||null!=(n=G0(n)).precision||(n.trim=!0),n=J0(n)),e===1/0)return n;const a=Math.max(1,o*e/t.ticks().length);return e=>{let t=e/i(Math.round(r(e)));return t*o<o-.5&&(t*=o),t<=a?n(e):""}},t.nice=()=>n(l1(n(),{floor:e=>i(Math.floor(r(e))),ceil:e=>i(Math.ceil(r(e)))})),t}function g1(){const e=m1(z0()).domain([1,10]);return e.copy=()=>U0(e,g1()).base(e.base()),uJ.apply(e,arguments),e}
vendor: 11,386 bytes, line 155
155function b1(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function v1(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function y1(e){var t=1,n=e(b1(t),v1(t));return n.constant=function(n){return arguments.length?e(b1(t=+n),v1(t)):t},o1(n)}function x1(){var e=y1(z0());return e.copy=function(){return U0(e,x1()).constant(e.constant())},uJ.apply(e,arguments)}function w1(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function A1(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function E1(e){return e<0?-e*e:e*e}function S1(e){var t=e(D0,D0),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(D0,D0):.5===n?e(A1,E1):e(w1(n),w1(1/n)):n},o1(t)}function _1(){var e=S1(z0());return e.copy=function(){return U0(e,_1()).exponent(e.exponent())},uJ.apply(e,arguments),e}function k1(){return _1.apply(null,arguments).exponent(.5)}function T1(e){return Math.sign(e)*e*e}function C1(){var e,t=H0(),n=[0,1],r=!1;function i(n){var i=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(t(n));return isNaN(i)?e:r?Math.round(i):i}return i.invert=function(e){return t.invert(T1(e))},i.domain=function(e){return arguments.length?(t.domain(e),i):t.domain()},i.range=function(e){return arguments.length?(t.range((n=Array.from(e,j0)).map(T1)),i):n.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(r=!!e,i):r},i.clamp=function(e){return arguments.length?(t.clamp(e),i):t.clamp()},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return C1(t.domain(),n).round(r).clamp(t.clamp()).unknown(e)},uJ.apply(i,arguments),o1(i)}function O1(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n<r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function N1(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function I1(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:OJ;if(e===OJ)return R1;if("function"!==typeof e)throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}function R1(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}function P1(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,i=arguments.length>4?arguments[4]:void 0;if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=void 0===i?R1:I1(i);r>n;){if(r-n>600){const o=r-n+1,a=t-n+1,s=Math.log(o),l=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*l*(o-l)/o)*(a-o/2<0?-1:1);P1(e,t,Math.max(n,Math.floor(t-a*l/o+c)),Math.min(r,Math.floor(t+(o-a)*l/o+c)),i)}const o=e[t];let a=n,s=r;for(j1(e,n,t),i(e[r],o)>0&&j1(e,n,r);a<s;){for(j1(e,a,s),++a,--s;i(e[a],o)<0;)++a;for(;i(e[s],o)>0;)--s}0===i(e[n],o)?j1(e,n,s):(++s,j1(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function j1(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function M1(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let n of e)null!=n&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),(r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return N1(e);if(t>=1)return O1(e);var r,i=(r-1)*t,o=Math.floor(i),a=O1(P1(e,o).subarray(0,o+1));return a+(N1(e.subarray(o+1))-a)*(i-o)}}function D1(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:PJ;if((r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}}function L1(){var e,t=[],n=[],r=[];function i(){var e=0,i=Math.max(1,n.length);for(r=new Array(i-1);++e<i;)r[e-1]=D1(t,e/i);return o}function o(t){return null==t||isNaN(t=+t)?e:n[DJ(r,t)]}return o.invertExtent=function(e){var i=n.indexOf(e);return i<0?[NaN,NaN]:[i>0?r[i-1]:t[0],i<r.length?r[i]:t[t.length-1]]},o.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(OJ),i()},o.range=function(e){return arguments.length?(n=Array.from(e),i()):n.slice()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.quantiles=function(){return r.slice()},o.copy=function(){return L1().domain(t).range(n).unknown(e)},uJ.apply(o,arguments)}function F1(){var e,t=0,n=1,r=1,i=[.5],o=[0,1];function a(t){return null!=t&&t<=t?o[DJ(i,t,0,r)]:e}function s(){var e=-1;for(i=new Array(r);++e<r;)i[e]=((e+1)*n-(e-r)*t)/(r+1);return a}return a.domain=function(e){return arguments.length?([t,n]=e,t=+t,n=+n,s()):[t,n]},a.range=function(e){return arguments.length?(r=(o=Array.from(e)).length-1,s()):o.slice()},a.invertExtent=function(e){var a=o.indexOf(e);return a<0?[NaN,NaN]:a<1?[t,i[0]]:a>=r?[i[r-1],n]:[i[a-1],i[a]]},a.unknown=function(t){return arguments.length?(e=t,a):a},a.thresholds=function(){return i.slice()},a.copy=function(){return F1().domain([t,n]).range(o).unknown(e)},uJ.apply(o1(a),arguments)}function B1(){var e,t=[.5],n=[0,1],r=1;function i(i){return null!=i&&i<=i?n[DJ(t,i,0,r)]:e}return i.domain=function(e){return arguments.length?(t=Array.from(e),r=Math.min(t.length,n.length-1),i):t.slice()},i.range=function(e){return arguments.length?(n=Array.from(e),r=Math.min(t.length,n.length-1),i):n.slice()},i.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return B1().domain(t).range(n).unknown(e)},uJ.apply(i,arguments)}Q0=r1({thousands:",",grouping:[3],currency:["$",""]}),J0=Q0.format,e1=Q0.formatPrefix;const U1=1e3,z1=6e4,H1=36e5,$1=864e5,V1=6048e5,G1=2592e6,W1=31536e6,q1=new Date,Y1=new Date;function K1(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{const t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),i.range=(n,r,o)=>{const a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r)||!(o>0))return a;let s;do{a.push(s=new Date(+n)),t(n,o),e(n)}while(s<n&&n<r);return a},i.filter=n=>K1((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(i.count=(t,r)=>(q1.setTime(+t),Y1.setTime(+r),e(q1),e(Y1),Math.floor(n(q1,Y1))),i.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i:null)),i}const X1=K1((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));X1.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?K1((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):X1:null);X1.range;const Z1=K1((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*U1)}),((e,t)=>(t-e)/U1),(e=>e.getUTCSeconds())),Q1=(Z1.range,K1((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*U1)}),((e,t)=>{e.setTime(+e+t*z1)}),((e,t)=>(t-e)/z1),(e=>e.getMinutes()))),J1=(Q1.range,K1((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*z1)}),((e,t)=>(t-e)/z1),(e=>e.getUTCMinutes()))),e2=(J1.range,K1((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*U1-e.getMinutes()*z1)}),((e,t)=>{e.setTime(+e+t*H1)}),((e,t)=>(t-e)/H1),(e=>e.getHours()))),t2=(e2.range,K1((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*H1)}),((e,t)=>(t-e)/H1),(e=>e.getUTCHours()))),n2=(t2.range,K1((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*z1)/$1),(e=>e.getDate()-1))),r2=(n2.range,K1((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/$1),(e=>e.getUTCDate()-1))),i2=(r2.range,K1((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/$1),(e=>Math.floor(e/$1))));i2.range;function o2(e){return K1((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*z1)/V1))}const a2=o2(0),s2=o2(1),l2=o2(2),c2=o2(3),u2=o2(4),d2=o2(5),p2=o2(6);a2.range,s2.range,l2.range,c2.range,u2.range,d2.range,p2.range;function h2(e){return K1((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/V1))}const f2=h2(0),m2=h2(1),g2=h2(2),b2=h2(3),v2=h2(4),y2=h2(5),x2=h2(6),w2=(f2.range,m2.range,g2.range,b2.range,v2.range,y2.range,x2.range,K1((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()))),A2=(w2.range,K1((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()))),E2=(A2.range,K1((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear())));E2.every=e=>isFinite(e=Math.floor(e))&&e>0?K1((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null;E2.range;const S2=K1((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));S2.every=e=>isFinite(e=Math.floor(e))&&e>0?K1((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null;S2.range;function _2(e,t,n,r,i,o){const a=[[Z1,1,U1],[Z1,5,5e3],[Z1,15,15e3],[Z1,30,3e4],[o,1,z1],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,H1],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,$1],[r,2,1728e5],[n,1,V1],[t,1,G1],[t,3,7776e6],[e,1,W1]];function s(t,n,r){const i=Math.abs(n-t)/r,o=IJ((e=>{let[,,t]=e;return t})).right(a,i);if(o===a.length)return e.every(CJ(t/W1,n/W1,r));if(0===o)return X1.every(Math.max(CJ(t,n,r),1));const[s,l]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return s.every(l)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const i=n&&"function"===typeof n.range?n:s(e,t,n),o=i?i.range(e,+t+1):[];return r?o.reverse():o},s]}const[k2,T2]=_2(S2,A2,f2,i2,t2,J1),[C2,O2]=_2(E2,w2,a2,n2,e2,Q1);function N2(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function I2(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function R2(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var P2,j2,M2,D2={"-":"",_:" ",0:"0"},L2=/^\s*\d+/,F2=/^%/,B2=/[\\^$*+?|[\]().{}]/g;function U2(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function z2(e){return e.replace(B2,"\\$&")}function H2(e){return new RegExp("^(?:"+e.map(z2).join("|")+")","i")}function $2(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function V2(e,t,n){var r=L2.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function G2(e,t,n){var r=L2.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function W2(e,t,n){var r=L2.exec(t.slice(n,n+2));
vendor: 6,201 bytes, line 155
155return r?(e.U=+r[0],n+r[0].length):-1}function q2(e,t,n){var r=L2.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Y2(e,t,n){var r=L2.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function K2(e,t,n){var r=L2.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function X2(e,t,n){var r=L2.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Z2(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Q2(e,t,n){var r=L2.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function J2(e,t,n){var r=L2.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function e4(e,t,n){var r=L2.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function t4(e,t,n){var r=L2.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function n4(e,t,n){var r=L2.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function r4(e,t,n){var r=L2.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function i4(e,t,n){var r=L2.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function o4(e,t,n){var r=L2.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function a4(e,t,n){var r=L2.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function s4(e,t,n){var r=F2.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function l4(e,t,n){var r=L2.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function c4(e,t,n){var r=L2.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function u4(e,t){return U2(e.getDate(),t,2)}function d4(e,t){return U2(e.getHours(),t,2)}function p4(e,t){return U2(e.getHours()%12||12,t,2)}function h4(e,t){return U2(1+n2.count(E2(e),e),t,3)}function f4(e,t){return U2(e.getMilliseconds(),t,3)}function m4(e,t){return f4(e,t)+"000"}function g4(e,t){return U2(e.getMonth()+1,t,2)}function b4(e,t){return U2(e.getMinutes(),t,2)}function v4(e,t){return U2(e.getSeconds(),t,2)}function y4(e){var t=e.getDay();return 0===t?7:t}function x4(e,t){return U2(a2.count(E2(e)-1,e),t,2)}function w4(e){var t=e.getDay();return t>=4||0===t?u2(e):u2.ceil(e)}function A4(e,t){return e=w4(e),U2(u2.count(E2(e),e)+(4===E2(e).getDay()),t,2)}function E4(e){return e.getDay()}function S4(e,t){return U2(s2.count(E2(e)-1,e),t,2)}function _4(e,t){return U2(e.getFullYear()%100,t,2)}function k4(e,t){return U2((e=w4(e)).getFullYear()%100,t,2)}function T4(e,t){return U2(e.getFullYear()%1e4,t,4)}function C4(e,t){var n=e.getDay();return U2((e=n>=4||0===n?u2(e):u2.ceil(e)).getFullYear()%1e4,t,4)}function O4(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+U2(t/60|0,"0",2)+U2(t%60,"0",2)}function N4(e,t){return U2(e.getUTCDate(),t,2)}function I4(e,t){return U2(e.getUTCHours(),t,2)}function R4(e,t){return U2(e.getUTCHours()%12||12,t,2)}function P4(e,t){return U2(1+r2.count(S2(e),e),t,3)}function j4(e,t){return U2(e.getUTCMilliseconds(),t,3)}function M4(e,t){return j4(e,t)+"000"}function D4(e,t){return U2(e.getUTCMonth()+1,t,2)}function L4(e,t){return U2(e.getUTCMinutes(),t,2)}function F4(e,t){return U2(e.getUTCSeconds(),t,2)}function B4(e){var t=e.getUTCDay();return 0===t?7:t}function U4(e,t){return U2(f2.count(S2(e)-1,e),t,2)}function z4(e){var t=e.getUTCDay();return t>=4||0===t?v2(e):v2.ceil(e)}function H4(e,t){return e=z4(e),U2(v2.count(S2(e),e)+(4===S2(e).getUTCDay()),t,2)}function $4(e){return e.getUTCDay()}function V4(e,t){return U2(m2.count(S2(e)-1,e),t,2)}function G4(e,t){return U2(e.getUTCFullYear()%100,t,2)}function W4(e,t){return U2((e=z4(e)).getUTCFullYear()%100,t,2)}function q4(e,t){return U2(e.getUTCFullYear()%1e4,t,4)}function Y4(e,t){var n=e.getUTCDay();return U2((e=n>=4||0===n?v2(e):v2.ceil(e)).getUTCFullYear()%1e4,t,4)}function K4(){return"+0000"}function X4(){return"%"}function Z4(e){return+e}function Q4(e){return Math.floor(+e/1e3)}function J4(e){return new Date(e)}function e5(e){return e instanceof Date?+e:+new Date(+e)}function t5(e,t,n,r,i,o,a,s,l,c){var u=H0(),d=u.invert,p=u.domain,h=c(".%L"),f=c(":%S"),m=c("%I:%M"),g=c("%I %p"),b=c("%a %d"),v=c("%b %d"),y=c("%B"),x=c("%Y");function w(e){return(l(e)<e?h:s(e)<e?f:a(e)<e?m:o(e)<e?g:r(e)<e?i(e)<e?b:v:n(e)<e?y:x)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?p(Array.from(e,e5)):p().map(J4)},u.ticks=function(t){var n=p();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?w:c(t)},u.nice=function(e){var n=p();return e&&"function"===typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?p(l1(n,e)):u},u.copy=function(){return U0(u,t5(e,t,n,r,i,o,a,s,l,c))},u}function n5(){return uJ.apply(t5(C2,O2,E2,w2,a2,n2,e2,Q1,Z1,j2).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function r5(){return uJ.apply(t5(k2,T2,S2,A2,f2,r2,t2,J1,Z1,M2).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function i5(){var e,t,n,r,i,o=0,a=1,s=D0,l=!1;function c(t){return null==t||isNaN(t=+t)?i:s(0===n?.5:(t=(r(t)-e)*n,l?Math.max(0,Math.min(1,t)):t))}function u(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),c):[s(0),s(1)]}}return c.domain=function(i){return arguments.length?([o,a]=i,e=r(o=+o),t=r(a=+a),n=e===t?0:1/(t-e),c):[o,a]},c.clamp=function(e){return arguments.length?(l=!!e,c):l},c.interpolator=function(e){return arguments.length?(s=e,c):s},c.range=u(R0),c.rangeRound=u(P0),c.unknown=function(e){return arguments.length?(i=e,c):i},function(i){return r=i,e=i(o),t=i(a),n=e===t?0:1/(t-e),c}}function o5(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function a5(){var e=o1(i5()(D0));return e.copy=function(){return o5(e,a5())},dJ.apply(e,arguments)}function s5(){var e=m1(i5()).domain([1,10]);return e.copy=function(){return o5(e,s5()).base(e.base())},dJ.apply(e,arguments)}function l5(){var e=y1(i5());return e.copy=function(){return o5(e,l5()).constant(e.constant())},dJ.apply(e,arguments)}function c5(){var e=S1(i5());return e.copy=function(){return o5(e,c5()).exponent(e.exponent())},dJ.apply(e,arguments)}function u5(){return c5.apply(null,arguments).exponent(.5)}function d5(){var e=[],t=D0;
vendor: 4,249 bytes, line 155
155function n(n){if(null!=n&&!isNaN(n=+n))return t((DJ(e,n,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(OJ),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.range=function(){return e.map(((n,r)=>t(r/(e.length-1))))},n.quantiles=function(t){return Array.from({length:t+1},((n,r)=>M1(e,r/t)))},n.copy=function(){return d5(t).domain(e)},dJ.apply(n,arguments)}function p5(){var e,t,n,r,i,o,a,s=0,l=.5,c=1,u=1,d=D0,p=!1;function h(e){return isNaN(e=+e)?a:(e=.5+((e=+o(e))-t)*(u*e<u*t?r:i),d(p?Math.max(0,Math.min(1,e)):e))}function f(e){return function(t){var n,r,i;return arguments.length?([n,r,i]=t,d=function(e,t){void 0===t&&(t=e,e=R0);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return o[t](e-t)}}(e,[n,r,i]),h):[d(0),d(.5),d(1)]}}return h.domain=function(a){return arguments.length?([s,l,c]=a,e=o(s=+s),t=o(l=+l),n=o(c=+c),r=e===t?0:.5/(t-e),i=t===n?0:.5/(n-t),u=t<e?-1:1,h):[s,l,c]},h.clamp=function(e){return arguments.length?(p=!!e,h):p},h.interpolator=function(e){return arguments.length?(d=e,h):d},h.range=f(R0),h.rangeRound=f(P0),h.unknown=function(e){return arguments.length?(a=e,h):a},function(a){return o=a,e=a(s),t=a(l),n=a(c),r=e===t?0:.5/(t-e),i=t===n?0:.5/(n-t),u=t<e?-1:1,h}}function h5(){var e=o1(p5()(D0));return e.copy=function(){return o5(e,h5())},dJ.apply(e,arguments)}function f5(){var e=m1(p5()).domain([.1,1,10]);return e.copy=function(){return o5(e,f5()).base(e.base())},dJ.apply(e,arguments)}function m5(){var e=y1(p5());return e.copy=function(){return o5(e,m5()).constant(e.constant())},dJ.apply(e,arguments)}function g5(){var e=S1(p5());return e.copy=function(){return o5(e,g5()).exponent(e.exponent())},dJ.apply(e,arguments)}function b5(){return g5.apply(null,arguments).exponent(.5)}!function(e){P2=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=H2(i),u=$2(i),d=H2(o),p=$2(o),h=H2(a),f=$2(a),m=H2(s),g=$2(s),b=H2(l),v=$2(l),y={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:u4,e:u4,f:m4,g:k4,G:C4,H:d4,I:p4,j:h4,L:f4,m:g4,M:b4,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Z4,s:Q4,S:v4,u:y4,U:x4,V:A4,w:E4,W:S4,x:null,X:null,y:_4,Y:T4,Z:O4,"%":X4},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:N4,e:N4,f:M4,g:W4,G:Y4,H:I4,I:R4,j:P4,L:j4,m:D4,M:L4,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Z4,s:Q4,S:F4,u:B4,U:U4,V:H4,w:$4,W:V4,x:null,X:null,y:G4,Y:q4,Z:K4,"%":X4},w={a:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=b.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return S(e,t,n,r)},d:e4,e:e4,f:a4,g:X2,G:K2,H:n4,I:n4,j:t4,L:o4,m:J2,M:r4,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:Q2,Q:l4,s:c4,S:i4,u:G2,U:W2,V:q2,w:V2,W:Y2,x:function(e,t,r){return S(e,n,t,r)},X:function(e,t,n){return S(e,r,t,n)},y:X2,Y:K2,Z:Z2,"%":s4};function A(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(i=D2[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function E(e,t){return function(n){var r,i,o=R2(1900,void 0,1);if(S(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){
155if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=I2(R2(o.y,0,1))).getUTCDay(),r=i>4||0===i?m2.ceil(r):m2(r),r=r2.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=N2(R2(o.y,0,1))).getDay(),r=i>4||0===i?s2.ceil(r):s2(r),r=n2.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?I2(R2(o.y,0,1)).getUTCDay():N2(R2(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,I2(o)):N2(o)}}function S(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=w[i in D2?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return y.x=A(n,y),y.X=A(r,y),y.c=A(t,y),x.x=A(n,x),x.X=A(r,x),x.c=A(t,x),{format:function(e){var t=A(e+="",y);return t.toString=function(){return e},t},parse:function(e){var t=E(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=A(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=E(e+="",!0);return t.toString=function(){return e},t}}}(e),j2=P2.format,P2.parse,M2=P2.utcFormat,P2.utcParse}({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"]});var v5=e=>e.chartData,y5=JZ([v5],(e=>{var t=null!=e.chartData?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}})),x5=(e,t,n,r)=>r?y5(e):v5(e);function w5(e){return Number.isFinite(e)}function A5(e){return"number"===typeof e&&e>0&&Number.isFinite(e)}function E5(e){if(Array.isArray(e)&&2===e.length){var[t,n]=e;if(w5(t)&&w5(n))return!0}return!1}function S5(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}var _5=__webpack_require__(44441),k5=__webpack_require__.n(_5),T5=e=>e,C5={"@@functional/placeholder":!0},O5=e=>e===C5,N5=e=>function t(){return 0===arguments.length||1===arguments.length&&O5(arguments.length<=0?void 0:arguments[0])?t:e(...arguments)},I5=(e,t)=>1===e?t:N5((function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=r.filter((e=>e!==C5)).length;return o>=e?t(...r):I5(e-o,N5((function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var o=r.map((e=>O5(e)?n.shift():e));return t(...o,...n)})))})),R5=e=>I5(e.length,e),P5=(e,t)=>{for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},j5=R5(((e,t)=>Array.isArray(t)?t.map(e):Object.keys(t).map((e=>t[e])).map(e))),M5=e=>Array.isArray(e)?e.reverse():e.split("").reverse().join(""),D5=e=>{var t=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t&&i.every(((e,n)=>{var r;return e===(null===(r=t)||void 0===r?void 0:r[n])}))?n:(t=i,n=e(...i))}};function L5(e){return 0===e?1:Math.floor(new(k5())(e).abs().log(10).toNumber())+1}function F5(e,t,n){for(var r=new(k5())(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o}R5(((e,t,n)=>{var r=+e;return r+n*(+t-r)})),R5(((e,t,n)=>{var r=t-+e;return(n-e)/(r=r||1/0)})),R5(((e,t,n)=>{var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))}));var B5=e=>{var[t,n]=e,[r,i]=[t,n];return t>n&&([r,i]=[n,t]),[r,i]},U5=(e,t,n)=>{if(e.lte(0))return new(k5())(0);var r=L5(e.toNumber()),i=new(k5())(10).pow(r),o=e.div(i),a=1!==r?.05:.1,s=new(k5())(Math.ceil(o.div(a).toNumber())).add(n).mul(a).mul(i);return t?new(k5())(s.toNumber()):new(k5())(Math.ceil(s.toNumber()))},z5=(e,t,n)=>{var r=new(k5())(1),i=new(k5())(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new(k5())(10).pow(L5(e)-1),i=new(k5())(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new(k5())(Math.floor(e)))}else 0===e?i=new(k5())(Math.floor((t-1)/2)):n||(i=new(k5())(Math.floor(e)));var a=Math.floor((t-1)/2),s=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return T5;var r=t.reverse(),i=r[0],o=r.slice(1);return function(){return o.reduce(((e,t)=>t(e)),i(...arguments))}}(j5((e=>i.add(new(k5())(e-a).mul(r)).toNumber())),P5);return s(0,t)},H5=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new(k5())(0),tickMin:new(k5())(0),tickMax:new(k5())(0)};var o,a=U5(new(k5())(t).sub(e).div(n-1),r,i);o=e<=0&&t>=0?new(k5())(0):(o=new(k5())(e).add(t).div(2)).sub(new(k5())(o).mod(a));var s=Math.ceil(o.sub(e).div(a).toNumber()),l=Math.ceil(new(k5())(t).sub(o).div(a).toNumber()),c=s+l+1;return c>n?H5(e,t,n,r,i+1):(c<n&&(l=t>0?l+(n-c):l,s=t>0?s:s+(n-c)),{step:a,tickMin:o.sub(new(k5())(s).mul(a)),tickMax:o.add(new(k5())(l).mul(a))})};var $5=D5((function(e){var[t,n]=e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=Math.max(r,2),[a,s]=B5([t,n]);if(a===-1/0||s===1/0){var l=s===1/0?[a,...P5(0,r-1).map((()=>1/0))]:[...P5(0,r-1).map((()=>-1/0)),s];return t>n?M5(l):l}if(a===s)return z5(a,r,i);var{step:c,tickMin:u,tickMax:d}=H5(a,s,o,i,0),p=F5(u,d.add(new(k5())(.1).mul(c)),c);return t>n?M5(p):p})),V5=D5((function(e,t){var[n,r]=e,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],[o,a]=B5([n,r]);if(o===-1/0||a===1/0)return[n,r];if(o===a)return[o];var s=Math.max(t,2),l=U5(new(k5())(a).sub(o).div(s-1),i,0),c=[...F5(new(k5())(o),new(k5())(a),l),a];return!1===i&&(c=c.map((e=>Math.round(e)))),n>r?M5(c):c})),G5=e=>e.rootProps.maxBarSize,W5=e=>e.rootProps.barCategoryGap,q5=e=>e.rootProps.stackOffset,Y5=e=>e.options.chartName,K5=e=>e.rootProps.syncId,X5=e=>e.rootProps.syncMethod,Z5=e=>e.options.eventEmitter,Q5=0,J5="auto",e3=!0,t3=!1,n3=!0,r3=0,i3="auto",o3=!0,a3=5,s3=(e,t)=>{if(e&&t)return null!==e&&void 0!==e&&e.reversed?[t[1],t[0]]:t},l3={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:Q5,includeHidden:!1,name:void 0,reversed:!1,scale:J5,tick:e3,tickCount:void 0,ticks:void 0,type:"category",unit:void 0},c3={allowDataOverflow:t3,allowDecimals:!1,allowDuplicatedCategory:n3,dataKey:void 0,domain:void 0,id:r3,includeHidden:!1,name:void 0,reversed:!1,scale:i3,tick:o3,tickCount:a3,ticks:void 0,type:"number",unit:void 0},u3={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,dataKey:void 0,domain:void 0,id:Q5,includeHidden:!1,name:void 0,reversed:!1,scale:J5,tick:e3,tickCount:void 0,ticks:void 0,type:"number",unit:void 0},d3={allowDataOverflow:t3,allowDecimals:!1,allowDuplicatedCategory:n3,dataKey:void 0,domain:void 0,id:r3,includeHidden:!1,name:void 0,reversed:!1,scale:i3,tick:o3,tickCount:a3,ticks:void 0,type:"category",unit:void 0},p3=(e,t)=>null!=e.polarAxis.angleAxis[t]?e.polarAxis.angleAxis[t]:"radial"===e.layout.layoutType?u3:l3,h3=(e,t)=>null!=e.polarAxis.radiusAxis[t]?e.polarAxis.radiusAxis[t]:"radial"===e.layout.layoutType?d3:c3,f3=e=>e.polarOptions,m3=JZ([HQ,$Q,ZQ],(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0,width:0,height:0,brushBottom:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2})),g3=JZ([f3,m3],((e,t)=>{if(null!=e)return AY(e.innerRadius,t,0)})),b3=JZ([f3,m3],((e,t)=>{if(null!=e)return AY(e.outerRadius,t,.8*t)})),v3=JZ([f3],(e=>{if(null==e)return[0,0];var{startAngle:t,endAngle:n}=e;return[t,n]})),y3=(JZ([p3,v3],s3),JZ([m3,g3,b3],((e,t,n)=>{if(null!=e&&null!=t&&null!=n)return[t,n]}))),x3=(JZ([h3,y3],s3),JZ([aJ,f3,g3,b3,HQ,$Q],((e,t,n,r,i,o)=>
155{if(("centric"===e||"radial"===e)&&null!=t&&null!=n&&null!=r){var{cx:a,cy:s,startAngle:l,endAngle:c}=t;return{cx:AY(a,i,i/2),cy:AY(s,o,o/2),innerRadius:n,outerRadius:r,startAngle:l,endAngle:c,clockWise:!1}}}))),w3=(e,t)=>t,A3=(e,t,n)=>n;function E3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S3(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E3(Object(n),!0).forEach((function(t){_3(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E3(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _3(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k3=[0,"auto"],T3={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0},C3=(e,t)=>{var n=e.cartesianAxis.xAxis[t];return null==n?T3:n},O3={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:k3,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:60},N3=(e,t)=>{var n=e.cartesianAxis.yAxis[t];return null==n?O3:n},I3={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},R3=(e,t)=>{var n=e.cartesianAxis.zAxis[t];return null==n?I3:n},P3=(e,t,n)=>{switch(t){case"xAxis":return C3(e,n);case"yAxis":return N3(e,n);case"zAxis":return R3(e,n);case"angleAxis":return p3(e,n);case"radiusAxis":return h3(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},j3=(e,t,n)=>{switch(t){case"xAxis":return C3(e,n);case"yAxis":return N3(e,n);case"angleAxis":return p3(e,n);case"radiusAxis":return h3(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},M3=e=>e.graphicalItems.countOfBars>0;function D3(e,t){return n=>{switch(e){case"xAxis":return"xAxisId"in n&&n.xAxisId===t;case"yAxis":return"yAxisId"in n&&n.yAxisId===t;case"zAxis":return"zAxisId"in n&&n.zAxisId===t;case"angleAxis":return"angleAxisId"in n&&n.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in n&&n.radiusAxisId===t;default:return!1}}}var L3=e=>e.graphicalItems.cartesianItems,F3=JZ([w3,A3],D3),B3=(e,t,n)=>e.filter(n).filter((e=>!0===(null===t||void 0===t?void 0:t.includeHidden)||!e.hide)),U3=JZ([L3,P3,F3],B3),z3=e=>e.filter((e=>void 0===e.stackId)),H3=JZ([U3],z3),$3=e=>e.map((e=>e.data)).filter(Boolean).flat(1),V3=JZ([U3],$3),G3=(e,t)=>{var{chartData:n=[],dataStartIndex:r,dataEndIndex:i}=t;return e.length>0?e:n.slice(r,i+1)},W3=JZ([V3,x5],G3),q3=(e,t,n)=>null!=(null===t||void 0===t?void 0:t.dataKey)?e.map((e=>({value:OQ(e,t.dataKey)}))):n.length>0?n.map((e=>e.dataKey)).flatMap((t=>e.map((e=>({value:OQ(e,t)}))))):e.map((e=>({value:e}))),Y3=JZ([W3,P3,U3],q3);function K3(e,t){switch(e){case"xAxis":return"x"===t.direction;case"yAxis":return"y"===t.direction;default:return!1}}function X3(e){return e.filter((e=>yY(e)||e instanceof Date)).map(Number).filter((e=>!1===gY(e)))}function Z3(e,t,n){return!n||"number"!==typeof t||gY(t)?[]:n.length?X3(n.flatMap((n=>{var r,i,o=OQ(e,n.dataKey);if(Array.isArray(o)?[r,i]=o:r=i=o,w5(r)&&w5(i))return[t-r,t+i]}))):[]}var Q3=(e,t,n)=>{var r=t.reduce(((e,t)=>(null==t.stackId||(null==e[t.stackId]&&(e[t.stackId]=[]),e[t.stackId].push(t)),e)),{});return Object.fromEntries(Object.entries(r).map((t=>{var[r,i]=t,o=i.map((e=>e.dataKey));return[r,{stackedData:PQ(e,o,n),graphicalItems:i}]})))},J3=JZ([W3,U3,q5],Q3),e6=(e,t,n)=>{var{dataStartIndex:r,dataEndIndex:i}=t;if("zAxis"!==n){var o=DQ(e,r,i);if(null==o||0!==o[0]||0!==o[1])return o}},t6=JZ([J3,v5,w3],e6),n6=(e,t,n,r)=>n.length>0?e.flatMap((e=>n.flatMap((n=>{var i,o,a=null===(i=n.errorBars)||void 0===i?void 0:i.filter((e=>K3(r,e))),s=OQ(e,null!==(o=t.dataKey)&&void 0!==o?o:n.dataKey);return{value:s,errorDomain:Z3(e,s,a)}}
155)))).filter(Boolean):null!=(null===t||void 0===t?void 0:t.dataKey)?e.map((e=>({value:OQ(e,t.dataKey),errorDomain:[]}))):e.map((e=>({value:e,errorDomain:[]}))),r6=JZ(W3,P3,H3,w3,n6);function i6(e){var{value:t}=e;if(yY(t)||t instanceof Date)return t}var o6=e=>{var t;if(null==e||!("domain"in e))return k3;if(null!=e.domain)return e.domain;if(null!=e.ticks){if("number"===e.type){var n=X3(e.ticks);return[Math.min(...n),Math.max(...n)]}if("category"===e.type)return e.ticks.map(String)}return null!==(t=null===e||void 0===e?void 0:e.domain)&&void 0!==t?t:k3},a6=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);if(0!==r.length){var i=r.flat();return[Math.min(...i),Math.max(...i)]}},s6=e=>e.referenceElements.dots,l6=(e,t,n)=>e.filter((e=>"extendDomain"===e.ifOverflow)).filter((e=>"xAxis"===t?e.xAxisId===n:e.yAxisId===n)),c6=JZ([s6,w3,A3],l6),u6=e=>e.referenceElements.areas,d6=JZ([u6,w3,A3],l6),p6=e=>e.referenceElements.lines,h6=JZ([p6,w3,A3],l6),f6=(e,t)=>{var n=X3(e.map((e=>"xAxis"===t?e.x:e.y)));if(0!==n.length)return[Math.min(...n),Math.max(...n)]},m6=JZ(c6,w3,f6),g6=(e,t)=>{var n=X3(e.flatMap((e=>["xAxis"===t?e.x1:e.y1,"xAxis"===t?e.x2:e.y2])));if(0!==n.length)return[Math.min(...n),Math.max(...n)]},b6=JZ([d6,w3],g6),v6=(e,t)=>{var n=X3(e.map((e=>"xAxis"===t?e.x:e.y)));if(0!==n.length)return[Math.min(...n),Math.max(...n)]},y6=JZ(h6,w3,v6),x6=JZ(m6,y6,b6,((e,t,n)=>a6(e,n,t))),w6=JZ([P3],o6),A6=(e,t,n,r,i)=>{var o=function(e,t){if(t&&"function"!==typeof e&&Array.isArray(e)&&2===e.length){var n,r,[i,o]=e;if(w5(i))n=i;else if("function"===typeof i)return;if(w5(o))r=o;else if("function"===typeof o)return;var a=[n,r];if(E5(a))return a}}(t,e.allowDataOverflow);return null!=o?o:function(e,t,n){if(n||null!=t){if("function"===typeof e&&null!=t)try{var r=e(t,n);if(E5(r))return S5(r,t,n)}catch(h){}if(Array.isArray(e)&&2===e.length){var i,o,[a,s]=e;if("auto"===a)null!=t&&(i=Math.min(...t));else if(vY(a))i=a;else if("function"===typeof a)try{null!=t&&(i=a(null===t||void 0===t?void 0:t[0]))}catch(f){}else if("string"===typeof a&&LQ.test(a)){var l=LQ.exec(a);if(null==l||null==t)i=void 0;else{var c=+l[1];i=t[0]-c}}else i=null===t||void 0===t?void 0:t[0];if("auto"===s)null!=t&&(o=Math.max(...t));else if(vY(s))o=s;else if("function"===typeof s)try{null!=t&&(o=s(null===t||void 0===t?void 0:t[1]))}catch(m){}else if("string"===typeof s&&FQ.test(s)){var u=FQ.exec(s);if(null==u||null==t)o=void 0;else{var d=+u[1];o=t[1]+d}}else o=null===t||void 0===t?void 0:t[1];var p=[i,o];if(E5(p))return null==t?p:S5(p,t,n)}}}(t,a6(n,i,(e=>{var t=X3(e.flatMap((e=>[e.value,e.errorDomain])).flat(1));if(0!==t.length)return[Math.min(...t),Math.max(...t)]})(r)),e.allowDataOverflow)},E6=JZ([P3,w6,t6,r6,x6],A6),S6=[0,1],_6=(e,t,n,r,i,o,a)=>{if(null!=e&&null!=n&&0!==n.length){var{dataKey:s,type:l}=e,c=NQ(t,o);return c&&null==s?cJ()(0,n.length):"category"===l?((e,t,n)=>{var r=e.map(i6).filter((e=>null!=e));return n&&(null==t.dataKey||t.allowDuplicatedCategory&&EY(r))?cJ()(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))})(r,e,c):"expand"===i?S6:a}},k6=JZ([P3,aJ,W3,Y3,q5,w3,E6],_6),T6=(t,n,r,i,o)=>{if(null!=t){var{scale:a,type:s}=t;if("auto"===a)return"radial"===n&&"radiusAxis"===o?"band":"radial"===n&&"angleAxis"===o?"linear":"category"===s&&i&&(i.indexOf("LineChart")>=0||i.indexOf("AreaChart")>
155=0||i.indexOf("ComposedChart")>=0&&!r)?"point":"category"===s?"band":"linear";if("string"===typeof a){var l="scale".concat(kY(a));return l in e?l:"point"}}},C6=JZ([P3,aJ,M3,Y5,w3],T6);function O6(t,n,r,i){if(null!=r&&null!=i){if("function"===typeof t.scale)return t.scale.copy().domain(r).range(i);var o=function(t){if(null!=t){if(t in e)return e[t]();var n="scale".concat(kY(t));return n in e?e[n]():void 0}}(n);if(null!=o){var a=o.domain(r).range(i);return(e=>{var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),i=Math.min(r[0],r[1])-IQ,o=Math.max(r[0],r[1])+IQ,a=e(t[0]),s=e(t[n-1]);(a<i||a>o||s<i||s>o)&&e.domain([t[0],t[n-1]])}})(a),a}}}var N6=(e,t,n)=>{var r=o6(t);if("auto"===n||"linear"===n)return null!=t&&t.tickCount&&Array.isArray(r)&&("auto"===r[0]||"auto"===r[1])&&E5(e)?$5(e,t.tickCount,t.allowDecimals):null!=t&&t.tickCount&&"number"===t.type&&E5(e)?V5(e,t.tickCount,t.allowDecimals):void 0},I6=JZ([k6,j3,C6],N6),R6=(e,t,n,r)=>{if("angleAxis"!==r&&"number"===(null===e||void 0===e?void 0:e.type)&&E5(t)&&Array.isArray(n)&&n.length>0){var i=t[0],o=n[0],a=t[1],s=n[n.length-1];return[Math.min(i,o),Math.max(a,s)]}return t},P6=JZ([P3,k6,I6,w3],R6),j6=JZ(Y3,P3,((e,t)=>{if(t&&"number"===t.type){var n=1/0,r=Array.from(X3(e.map((e=>e.value)))).sort(((e,t)=>e-t));if(r.length<2)return 1/0;var i=r[r.length-1]-r[0];if(0===i)return 1/0;for(var o=0;o<r.length-1;o++){var a=r[o+1]-r[o];n=Math.min(n,a)}return n/i}})),M6=JZ(j6,aJ,W5,ZQ,((e,t,n,r)=>r),((e,t,n,r,i)=>{if(!w5(e))return 0;var o="vertical"===t?r.height:r.width;if("gap"===i)return e*o/2;if("no-gap"===i){var a=AY(n,e*o),s=e*o/2;return s-a-(s-a)/o*a}return 0})),D6=JZ(C3,((e,t)=>{var n=C3(e,t);return null==n||"string"!==typeof n.padding?0:M6(e,"xAxis",t,n.padding)}),((e,t)=>{var n,r;if(null==e)return{left:0,right:0};var{padding:i}=e;return"string"===typeof i?{left:t,right:t}:{left:(null!==(n=i.left)&&void 0!==n?n:0)+t,right:(null!==(r=i.right)&&void 0!==r?r:0)+t}})),L6=JZ(N3,((e,t)=>{var n=N3(e,t);return null==n||"string"!==typeof n.padding?0:M6(e,"yAxis",t,n.padding)}),((e,t)=>{var n,r;if(null==e)return{top:0,bottom:0};var{padding:i}=e;return"string"===typeof i?{top:t,bottom:t}:{top:(null!==(n=i.top)&&void 0!==n?n:0)+t,bottom:(null!==(r=i.bottom)&&void 0!==r?r:0)+t}})),F6=JZ([ZQ,D6,rJ,nJ,(e,t,n)=>n],((e,t,n,r,i)=>{var{padding:o}=r;return i?[o.left,n.width-o.right]:[e.left+t.left,e.left+e.width-t.right]})),B6=JZ([ZQ,aJ,L6,rJ,nJ,(e,t,n)=>n],((e,t,n,r,i,o)=>{var{padding:a}=i;return o?[r.height-a.bottom,a.top]:"horizontal"===t?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]})),U6=(e,t,n,r)=>{var i;switch(t){case"xAxis":return F6(e,n,r);case"yAxis":return B6(e,n,r);case"zAxis":return null===(i=R3(e,n))||void 0===i?void 0:i.range;case"angleAxis":return v3(e);case"radiusAxis":return y3(e,n);default:return}},z6=JZ([P3,U6],s3),H6=JZ([P3,C6,P6,z6],O6);JZ(U3,w3,((e,t)=>e.flatMap((e=>{var t;return null!==(t=e.errorBars)&&void 0!==t?t:[]})).filter((e=>K3(t,e)))));function $6(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var V6=(e,t)=>t,G6=(e,t,n)=>n,W6=JZ(WQ,V6,G6,((e,t,n)=>e.filter((e=>e.orientation===t)).filter((e=>e.mirror===n)).sort($6))),q6=JZ(qQ,V6,G6,((e,t,n)=>e.filter((e=>e.orientation===t)).filter((e=>e.mirror===n)).sort($6))),Y6=(e,t)=>({width:e.width,height:t.height}),K6=JZ(ZQ,C3,Y6),X6=JZ($Q,ZQ,W6,V6,G6,((e,t,n,r,i)=>{var o,a={};return n.forEach((n=>{var s=Y6(t,n);null==o&&(o=((e,t,n)=>{switch(t){case"top":return e.top;case"bottom":return n-e.bottom;default:return 0}})(t,r,e));var l="top"===r&&!i||"bottom"===r&&i;a[n.id]=o-Number(l)*s.height,o+=(l?-1:1)*s.height})),a})),Z6=JZ(HQ,ZQ,q6,V6,G6,((e,t,n,r,i)=>{var o,a={};return n.forEach((n=>{var s=((e,t)=>({width:"number"===typeof t.width?t.width:60,height:e.height}))(t,n);null==o&&(o=((e,t,n)=>{switch(t){case"left":return e.left;case"right":return n-e.right;default:return 0}})(t,r,e));var l="left"===r&&!i||"right"===r&&i;a[n.id]=o-Number(l)*s.width,o+=(l?-1:1)*s.width})),a})),Q6=JZ(ZQ,N3,((e,t)=>({width:"number"===typeof t.width?t.width:60,height:e.height}))),J6=(e,t,n)=>{switch(t){case"xAxis":return K6(e,n).width;case"yAxis":return Q6(e,n).height;default:return}},e8=(e,t,n,r)=>{if(null!=n){var{allowDuplicatedCategory:i,type:o,dataKey:a}=n,s=NQ(e,r),l=t.map((e=>e.value));return a&&s&&"category"===o&&i&&EY(l)?l:void 0}},t8=JZ([aJ,Y3,P3,w3],e8),n8=(e,t,n,r)=>{if(null!=n&&null!=n.dataKey){var{type:i,scale:o}=n;return!NQ(e,r)||"number"!==i&&"auto"===o?void 0:t.map((e=>e.value))}},r8=JZ([aJ,Y3,j3,w3],n8),i8=(JZ([aJ,(e,t,n)=>{switch(t){case"xAxis":return C3(e,n);case"yAxis":return N3(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},C6,H6,t8,r8,U6,I6,w3],((e,t,n,r,i,o,a,s,l)=>{if(null==t)return null;var c=NQ(e,l);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:l,categoricalDomain:o,duplicateDomain:i,isCategorical:c,niceTicks:s,range:a,realScaleType:n,scale:r}})),JZ([aJ,j3,C6,H6,I6,U6,t8,r8,w3],((e,t,n,r,i,o,a,s,l)=>{if(null!=t&&null!=r){var c=NQ(e,l),{type:u,ticks:d,tickCount:p}=t,h="scaleBand"===n&&"function"===typeof r.bandwidth?r.bandwidth()/2:2,f="category"===u&&r.bandwidth?r.bandwidth()/h:0;f="angleAxis"===l&&null!=o&&o.length>=2?2*mY(o[0]-o[1])*f:f;var m=d||i;return m?m.map(((e,t)=>{var n=a?a.indexOf(e):e;return{index:t,coordinate:r(n)+f,value:e,offset:f}})).filter((e=>!gY(e.coordinate))):c&&s?s.map(((e,t)=>({coordinate:r(e)+f,value:e,index:t,offset:f}))):r.ticks?r.ticks(p).map((e=>({coordinate:r(e)+f,value:e,offset:f}))):r.domain().map(((e,t)=>({coordinate:r(e)+f,value:a?a[e]:e,index:t,offset:f})))}}))),o8=JZ([aJ,j3,H6,U6,t8,r8,w3],((e,t,n,r,i,o,a)=>
155{if(null!=t&&null!=n&&null!=r&&r[0]!==r[1]){var s=NQ(e,a),{tickCount:l}=t,c=0;return c="angleAxis"===a&&(null===r||void 0===r?void 0:r.length)>=2?2*mY(r[0]-r[1])*c:c,s&&o?o.map(((e,t)=>({coordinate:n(e)+c,value:e,index:t,offset:c}))):n.ticks?n.ticks(l).map((e=>({coordinate:n(e)+c,value:e,offset:c}))):n.domain().map(((e,t)=>({coordinate:n(e)+c,value:i?i[e]:e,index:t,offset:c})))}})),a8=JZ(P3,H6,((e,t)=>{if(null!=e&&null!=t)return S3(S3({},e),{},{scale:t})})),s8=JZ([P3,C6,k6,z6],O6),l8=(JZ(((e,t,n)=>R3(e,n)),s8,((e,t)=>{if(null!=e&&null!=t)return S3(S3({},e),{},{scale:t})})),JZ([aJ,WQ,qQ],((e,t,n)=>{switch(e){case"horizontal":return t.some((e=>e.reversed))?"right-to-left":"left-to-right";case"vertical":return n.some((e=>e.reversed))?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}))),c8=e=>e.options.defaultTooltipEventType,u8=e=>e.options.validateTooltipEventTypes;function d8(e,t,n){if(null==e)return t;var r=e?"axis":"item";return null==n?t:n.includes(r)?r:t}function p8(e,t){return d8(t,c8(e),u8(e))}var h8=(e,t)=>{var n,r=Number(t);if(!gY(r)&&null!=t)return r>=0?null===e||void 0===e||null===(n=e[r])||void 0===n?void 0:n.value:void 0};function f8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m8(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f8(Object(n),!0).forEach((function(t){g8(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f8(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g8(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b8=(e,t,n,r)=>{if(null==t)return AZ;var i=function(e,t,n){return"axis"===t?"click"===n?e.axisInteraction.click:e.axisInteraction.hover:"click"===n?e.itemInteraction.click:e.itemInteraction.hover}(e,t,n);if(null==i)return AZ;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&null!=e.syncInteraction.index)return e.syncInteraction;var o=!0===e.settings.active;if(null!=i.index){if(o)return m8(m8({},i),{},{active:!0})}else if(null!=r)return{active:!0,coordinate:void 0,dataKey:void 0,index:r};return m8(m8({},AZ),{},{coordinate:i.coordinate})},v8=(e,t)=>{var n=null===e||void 0===e?void 0:e.index;if(null==n)return null;var r=Number(n);if(!w5(r))return n;var i=1/0;return t.length>0&&(i=t.length-1),String(Math.max(0,Math.min(r,i)))},y8=(e,t,n,r,i,o,a,s)=>{if(null!=o&&null!=s){var l=a[0],c=null==l?void 0:s(l.positions,o);if(null!=c)return c;var u=null===i||void 0===i?void 0:i[Number(o)];if(u)return"horizontal"===n?{x:u.coordinate,y:(r.top+t)/2}:{x:(r.left+e)/2,y:u.coordinate}}},x8=(e,t,n,r)=>{return"axis"===t?e.tooltipItemPayloads:0===e.tooltipItemPayloads.length?[]:null==(i="hover"===n?e.itemInteraction.hover.dataKey:e.itemInteraction.click.dataKey)&&null!=r?[e.tooltipItemPayloads[0]]:e.tooltipItemPayloads.filter((e=>{var t;return(null===(t=e.settings)||void 0===t?void 0:t.dataKey)===i}));var i},w8=e=>e.options.tooltipPayloadSearcher,A8=e=>e.tooltip;function E8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S8(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E8(Object(n),!0).forEach((function(t){_8(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E8(Object(n)).forEac
155h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _8(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k8=(e,t,n,r,i,o,a)=>{if(null!=t&&null!=o){var{chartData:s,computedData:l,dataStartIndex:c,dataEndIndex:u}=n;return e.reduce(((e,n)=>{var d,p,h,f,m,g,{dataDefinedOnItem:b,settings:v}=n,y=function(e,t){return null!=e?e:t}(b,s),x=(p=y,h=c,f=u,Array.isArray(p)&&p&&h+f!==0?p.slice(h,f+1):p),w=null!==(d=null===v||void 0===v?void 0:v.dataKey)&&void 0!==d?d:null===r||void 0===r?void 0:r.dataKey,A=null===v||void 0===v?void 0:v.nameKey;(m=null!==r&&void 0!==r&&r.dataKey&&Array.isArray(x)&&!Array.isArray(x[0])&&"axis"===a?function(e,t,n){if(e&&e.length)return e.find((e=>e&&("function"===typeof t?t(e):fY()(e,t))===n))}(x,r.dataKey,i):o(x,t,l,A),Array.isArray(m))?m.forEach((t=>{var n=S8(S8({},v),{},{name:t.name,unit:t.unit,color:void 0,fill:void 0});e.push(UQ({tooltipEntrySettings:n,dataKey:t.dataKey,payload:t.payload,value:OQ(t.payload,t.dataKey),name:t.name}))})):e.push(UQ({tooltipEntrySettings:v,dataKey:w,payload:m,value:OQ(m,w),name:null!==(g=OQ(m,A))&&void 0!==g?g:null===v||void 0===v?void 0:v.name}));return e}),[])}},T8=e=>{var t=aJ(e);return"horizontal"===t?"xAxis":"vertical"===t?"yAxis":"centric"===t?"angleAxis":"radiusAxis"},C8=e=>e.tooltip.settings.axisId,O8=e=>{var t=T8(e),n=C8(e);return j3(e,t,n)},N8=JZ([O8,aJ,M3,Y5,T8],T6),I8=JZ([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],((e,t)=>[...e,...t])),R8=JZ([T8,C8],D3),P8=JZ([I8,O8,R8],B3),j8=JZ([P8],$3),M8=JZ([j8,v5],G3),D8=JZ([M8,O8,P8],q3),L8=JZ([O8],o6),F8=JZ([M8,P8,q5],Q3),B8=JZ([F8,v5,T8],e6),U8=JZ([P8],z3),z8=JZ([M8,O8,U8,T8],n6),H8=JZ([s6,T8,C8],l6),$8=JZ([H8,T8],f6),V8=JZ([u6,T8,C8],l6),G8=JZ([V8,T8],g6),W8=JZ([p6,T8,C8],l6),q8=JZ([W8,T8],v6),Y8=JZ([$8,q8,G8],a6),K8=JZ([O8,L8,B8,z8,Y8],A6),X8=JZ([O8,aJ,M8,D8,q5,T8,K8],_6),Z8=JZ([X8,O8,N8],N6),Q8=JZ([O8,X8,Z8,T8],R6),J8=e=>{var t=T8(e),n=C8(e);return U6(e,t,n,!1)},e9=JZ([O8,J8],s3),t9=JZ([O8,N8,Q8,e9],O6),n9=JZ([aJ,D8,O8,T8],e8),r9=JZ([aJ,D8,O8,T8],n8),i9=JZ([aJ,O8,N8,t9,J8,n9,r9,T8],((e,t,n,r,i,o,a,s)=>{if(t){var{type:l}=t,c=NQ(e,s);if(r){var u="scaleBand"===n&&r.bandwidth?r.bandwidth()/2:2,d="category"===l&&r.bandwidth?r.bandwidth()/u:0;return d="angleAxis"===s&&null!=i&&(null===i||void 0===i?void 0:i.length)>=2?2*mY(i[0]-i[1])*d:d,c&&a?a.map(((e,t)=>({coordinate:r(e)+d,value:e,index:t,offset:d}))):r.domain().map(((e,t)=>({coordinate:r(e)+d,value:o?o[e]:e,index:t,offset:d})))}}})),o9=JZ([c8,u8,e=>e.tooltip.settings],((e,t,n)=>d8(n.shared,e,t))),a9=e=>e.tooltip.settings.trigger,s9=e=>e.tooltip.settings.defaultIndex,l9=JZ([A8,o9,a9,s9],b8),c9=JZ([l9,M8],v8),u9=JZ([i9,c9],h8),d9=JZ([l9],(e=>{if(e)return e.dataKey})),p9=JZ([A8,o9,a9,s9],x8),h9=JZ([HQ,$Q,aJ,ZQ,i9,s9,p9,w8],y8),f9=JZ([l9,h9],((e,t)=>null!==e&&void 0!==e&&e.coordinate?e.coordinate:t)),m9=JZ([l9],(e=>e.active)),g9=JZ([p9,c9,v5,O8,u9,w8,o9],k8),b9=(JZ([g9],(e=>{if(null!=e){var t=e.map((e=>e.payload)).filter((e=>null!=e));return Array.from(new Set(t))}})),(e,t)=>t),v9=(e,t,n)=>n,y9=(e,t,n,r)=>r,x9=JZ(i9,(e=>cQ()(e,(e=>e.coordinate)))),w9=JZ([A8,b9,v9,y9],b8),A9=JZ([w9,M8],v8),E9=JZ([A8,b9,v9,y9],x8),S9=JZ([HQ,$Q,aJ,ZQ,i9,y9,E9,w8],y8),_9=JZ([w9,S9],((e,t)=>{var n;return null!==(n=e.coordinate)&&void 0!==n?n:t})),k9=JZ(i9,A9,h8),T9=JZ([E9,A9,v5,O8,k9,w8,b9],k8),C9=JZ([w9],(e=>({isActive:e.active,activeIndex:e.index}))),O9=JZ([(e,t)=>t,aJ,x3,T8,e9,i9,x9,ZQ],((e,t,n,r,i,o,a,s)=>{if(e&&t&&r&&i&&o){var l=function(e,t,n,r,i){return"horizontal"===n||"vertical"===n?e>=i.left&&e<=i.left+i.width&&t>=i.top&&t<=i.top+i.height?{x:e,y:t}:null:r?_Q({x:e,y:t},r):null}(e.chartX,e.chartY,t,n,s);if(l){var c=((e,t)=>"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radiu
155s)(l,t),u=((e,t,n,r,i)=>{var o,a=-1,s=null!==(o=null===t||void 0===t?void 0:t.length)&&void 0!==o?o:0;if(s<=1||null==e)return 0;if("angleAxis"===r&&null!=i&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var l=0;l<s;l++){var c=l>0?n[l-1].coordinate:n[s-1].coordinate,u=n[l].coordinate,d=l>=s-1?n[0].coordinate:n[l+1].coordinate,p=void 0;if(mY(u-c)!==mY(d-u)){var h=[];if(mY(d-u)===mY(i[1]-i[0])){p=d;var f=u+i[1]-i[0];h[0]=Math.min(f,(f+c)/2),h[1]=Math.max(f,(f+c)/2)}else{p=c;var m=d+i[1]-i[0];h[0]=Math.min(u,(m+u)/2),h[1]=Math.max(u,(m+u)/2)}var g=[Math.min(u,(p+u)/2),Math.max(u,(p+u)/2)];if(e>g[0]&&e<=g[1]||e>=h[0]&&e<=h[1]){({index:a}=n[l]);break}}else{var b=Math.min(c,d),v=Math.max(c,d);if(e>(b+u)/2&&e<=(v+u)/2){({index:a}=n[l]);break}}}else if(t)for(var y=0;y<s;y++)if(0===y&&e<=(t[y].coordinate+t[y+1].coordinate)/2||y>0&&y<s-1&&e>(t[y].coordinate+t[y-1].coordinate)/2&&e<=(t[y].coordinate+t[y+1].coordinate)/2||y===s-1&&e>(t[y].coordinate+t[y-1].coordinate)/2){({index:a}=t[y]);break}return a})(c,a,o,r,i),d=((e,t,n,r)=>{var i=t.find((e=>e&&e.index===n));if(i){if("horizontal"===e)return{x:i.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:i.coordinate};if("centric"===e){var o=i.coordinate,{radius:a}=r;return TQ(TQ(TQ({},r),AQ(r.cx,r.cy,a,o)),{},{angle:o,radius:a})}var s=i.coordinate,{angle:l}=r;return TQ(TQ(TQ({},r),AQ(r.cx,r.cy,s,l)),{},{angle:l,radius:s})}return{x:0,y:0}})(t,o,u,l);return{activeIndex:String(u),activeCoordinate:d}}}})),N9=e=>{var t=e.currentTarget.getBoundingClientRect(),n=t.width/e.currentTarget.offsetWidth,r=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/n),chartY:Math.round((e.clientY-t.top)/r)}},I9=MK("mouseClick"),R9=CX();R9.startListening({actionCreator:I9,effect:(e,t)=>{var n=e.payload,r=O9(t.getState(),N9(n));null!=(null===r||void 0===r?void 0:r.activeIndex)&&t.dispatch(RZ({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var P9=MK("mouseMove"),j9=CX();function M9(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":t}function D9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L9(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D9(Object(n),!0).forEach((function(t){F9(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D9(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function F9(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}j9.startListening({actionCreator:P9,effect:(e,t)=>{var n=e.payload,r=t.getState(),i=p8(r,r.tooltip.settings.shared),o=O9(r,N9(n));"axis"===i&&(null!=(null===o||void 0===o?void 0:o.activeIndex)?t.dispatch(IZ({activeIndex:o.activeIndex,activeDataKey:void 0,activeCoordinate:o.activeCoordinate})):t.dispatch(OZ()))}});var B9=KK({name:"cartesianAxis",initialState:{xAxis:{},yAxis:{},zAxis:{}},reducers:{addXAxis(e,t){e.xAxis[t.payload.id]=t.payload},removeXAxis(e,t){delete e.xAxis[t.payload.id]},addYAxis(e,t){e.yAxis[t.payload.id]=t.payload},removeYAxis(e,t){delete e.yAxis[t.payload.id]},addZAxis(e,t){e.zAxis[t.payload.id]=t.payload},removeZAxis(e,t){delete e.zAxis[t.payload.id]},updateYAxisWidth(e,t){var{id:n,width:r}=t.payload;e.yAxis[n]&&(e.yAxis[n]=L9(L9({},e.yAxis[n]),{},{width:r}))}}}),{addXAxis:U9,removeXAxis:z9,addYAxis:H9,removeYAxis:$9,addZAxis:V9,removeZAxis:G9,updateYAxisWidth:W9}=B9.actions,q9=B9.reducer,Y9=KK({name:"graphicalItems",initialState:{countOfBars:0,cartesianItems:[],polarItems:[]},reducers:{addBar(e){e.countOfBars+=1},removeBar(e){e.countOfBars-=1},addCartesianGraphicalItem(e,t){e.cartesianItems.push(t.payload)},replaceCartesianGraphicalItem(e,t){var{prev:n,next:r}=t.payload,i=NK(e).cartesianItems.indexOf(n);i>-1&&(e.cartesianItems[i]=r)},removeCartesianGraphicalItem(e,t){var n=NK(e).cartesianItems.indexOf(t.payload);n>-1&&e.cartesianItems.splice(n,1)},addPolarGraphicalItem(e,t){e.polarItems.push(t.payload)},removePolarGraphicalItem(e,t){var n=NK(e).polarItems.indexOf(t.payload);n>-1&&e.polarItems.splice(n,1)}}}),{addBar:K9,removeBar:X9,addCartesianGraphicalItem:Z9,replaceCartesianGraphicalItem:Q9,removeCartesianGraphicalItem:J9,addPolarGraphicalItem:e7,removePolarGraphicalItem:t7}
155=Y9.actions,n7=Y9.reducer,r7=KK({name:"referenceElements",initialState:{dots:[],areas:[],lines:[]},reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=NK(e).dots.findIndex((e=>e===t.payload));-1!==n&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=NK(e).areas.findIndex((e=>e===t.payload));-1!==n&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var n=NK(e).lines.findIndex((e=>e===t.payload));-1!==n&&e.lines.splice(n,1)}}}),{addDot:i7,removeDot:o7,addArea:a7,removeArea:s7,addLine:l7,removeLine:c7}=r7.actions,u7=r7.reducer,d7={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},p7=KK({name:"brush",initialState:d7,reducers:{setBrushSettings(e,t){return null==t.payload?d7:t.payload}}}),{setBrushSettings:h7}=p7.actions,f7=p7.reducer,m7=KK({name:"legend",initialState:{settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload(e,t){e.payload.push(t.payload)},removeLegendPayload(e,t){var n=NK(e).payload.indexOf(t.payload);n>-1&&e.payload.splice(n,1)}}}),{setLegendSize:g7,setLegendSettings:b7,addLegendPayload:v7,removeLegendPayload:y7}=m7.actions,x7=m7.reducer,w7={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index"},A7=KK({name:"rootProps",initialState:w7,reducers:{updateOptions:(e,t)=>{var n;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=null!==(n=t.payload.barGap)&&void 0!==n?n:w7.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className}}}),E7=A7.reducer,{updateOptions:S7}=A7.actions,_7=KK({name:"polarAxis",initialState:{radiusAxis:{},angleAxis:{}},reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:k7,removeRadiusAxis:T7,addAngleAxis:C7,removeAngleAxis:O7}=_7.actions,N7=_7.reducer,I7=KK({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:R7}=I7.actions,P7=I7.reducer,j7=MK("keyDown"),M7=MK("focus"),D7=CX();D7.startListening({actionCreator:j7,effect:(e,t)=>{var n=t.getState();if(!1!==n.rootProps.accessibilityLayer){var{keyboardInteraction:r}=n.tooltip,i=e.payload;if("ArrowRight"===i||"ArrowLeft"===i||"Enter"===i){var o=Number(v8(r,M8(n))),a=i9(n);if("Enter"!==i){var s=o+("ArrowRight"===i?1:-1)*("left-to-right"===l8(n)?1:-1);if(!(null==a||s>=a.length||s<0)){var l=S9(n,"axis","hover",String(s));t.dispatch(jZ({active:!0,activeIndex:s.toString(),activeDataKey:void 0,activeCoordinate:l}))}}else{var c=S9(n,"axis","hover",String(r.index));t.dispatch(jZ({active:!r.active,activeIndex:r.index,activeDataKey:r.dataKey,activeCoordinate:c}))}}}}}),D7.startListening({actionCreator:M7,effect:(e,t)=>{var n=t.getState();if(!1!==n.rootProps.accessibilityLayer){var{keyboardInteraction:r}=n.tooltip;if(!r.active&&null==r.index){var i=S9(n,"axis","hover",String("0"));t.dispatch(jZ({activeDataKey:void 0,active:!0,activeIndex:"0",activeCoordinate:i}))}}}});var L7=MK("externalEvent"),F7=CX();F7.startListening({actionCreator:L7,effect:(e,t)=>{if(null!=e.payload.handler){var n=t.getState(),r={activeCoordinate:f9(n),activeDataKey:d9(n),activeIndex:c9(n),activeLabel:u9(n),activeTooltipIndex:c9(n),isTooltipActive:m9(n)};e.payload.handler(r,e.payload.reactEvent)}}});var B7=JZ([A8],(e=>e.tooltipItemPayloads)),U7=JZ([B7,w8,(e,t,n)=>t,(e,t,n)=>n],((e,t,n,r)=>{var i=e.find((e=>e.settings.dataKey===r));if(null!=i){var{positions:o}=i;if(null!=o)return t(o,n)}})),z7=MK("touchMove"),H7=CX();H7.startListening({actionCreator:z7,effect:(e,t)=>
155{var n=e.payload,r=t.getState(),i=p8(r,r.tooltip.settings.shared);if("axis"===i){var o=O9(r,N9({clientX:n.touches[0].clientX,clientY:n.touches[0].clientY,currentTarget:n.currentTarget}));null!=(null===o||void 0===o?void 0:o.activeIndex)&&t.dispatch(IZ({activeIndex:o.activeIndex,activeDataKey:void 0,activeCoordinate:o.activeCoordinate}))}else if("item"===i){var a,s=n.touches[0],l=document.elementFromPoint(s.clientX,s.clientY);if(!l||!l.getAttribute)return;var c=l.getAttribute("data-recharts-item-index"),u=null!==(a=l.getAttribute("data-recharts-item-data-key"))&&void 0!==a?a:void 0,d=U7(t.getState(),c,u);t.dispatch(TZ({activeDataKey:u,activeIndex:c,activeCoordinate:d}))}}});var $7=FY({brush:f7,cartesianAxis:q9,chartData:UZ,graphicalItems:n7,layout:WZ,legend:x7,options:RX,polarAxis:N7,polarOptions:P7,referenceElements:u7,rootProps:E7,tooltip:MZ});function V7(e){var{preloadedState:t,children:n,reduxStoreName:r}=e,i=tJ(),o=(0,c.useRef)(null);if(i)return n;null==o.current&&(o.current=function(e){return HK({reducer:$7,preloadedState:e,middleware:e=>e({serializableCheck:!1}).concat([R9.middleware,j9.middleware,D7.middleware,F7.middleware,H7.middleware]),devTools:{serialize:{replacer:M9},name:"recharts-".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Chart")}})}(t,r));var a=tQ;return c.createElement(_,{context:a,store:o.current},n)}var G7=e=>{var{chartData:t}=e,n=rQ(),r=tJ();return(0,c.useEffect)((()=>r?()=>{}:(n(LZ(t)),()=>{n(LZ(void 0))})),[t,n,r]),null};function W7(e){var{layout:t,width:n,height:r,margin:i}=e,o=rQ(),a=tJ();return(0,c.useEffect)((()=>{a||(o($Z(t)),o(VZ({width:n,height:r})),o(HZ(i)))}),[o,a,t,n,r,i]),null}function q7(e){var t=rQ();return(0,c.useEffect)((()=>{t(S7(e))}),[t,e]),null}var Y7=__webpack_require__(86879),K7=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],X7=["points","pathLength"],Z7={svg:["viewBox","children"],polygon:X7,polyline:X7},Q7=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onF
155ocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],J7=(e,t,n)=>{if(null===e||"object"!==typeof e&&"function"!==typeof e)return null;var r=null;return Object.keys(e).forEach((i=>{var o=e[i];Q7.includes(i)&&"function"===typeof o&&(r||(r={}),r[i]=((e,t,n)=>r=>(e(t,n,r),null))(o,t,n))})),r},eee=e=>"string"===typeof e?e:e?e.displayName||e.name||"Component":"",tee=null,nee=null,ree=e=>{if(e===tee&&Array.isArray(nee))return nee;var t=[];return c.Children.forEach(e,(e=>{_Y(e)||((0,Y7.zv)(e)?t=t.concat(ree(e.props.children)):t.push(e))})),nee=t,tee=e,t};function iee(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map((e=>eee(e))):[eee(t)],ree(e).forEach((e=>{var t=fY()(e,"type.displayName")||fY()(e,"type.name");-1!==r.indexOf(t)&&n.push(e)})),n}var oee=(e,t,n)=>{if(!e||"function"===typeof e||"boolean"===typeof e)return null;var r=e;if((0,c.isValidElement)(e)&&(r=e.props),"object"!==typeof r&&"function"!==typeof r)return null;var i={};return Object.keys(r).forEach((e=>{var o;((e,t,n,r)=>{var i,o=null!==(i=r&&(null===Z7||void 0===Z7?void 0:Z7[r]))&&void 0!==i?i:[];return t.startsWith("data-")||"function"!==typeof e&&(r&&o.includes(t)||K7.includes(t))||n&&Q7.includes(t)})(null===(o=r)||void 0===o?void 0:o[e],e,t,n)&&(i[e]=r[e])})),i},aee=()=>sQ((e=>e.rootProps.accessibilityLayer)),see=["children","width","height","viewBox","className","style","title","desc"];function lee(){return lee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lee.apply(null,arguments)}
155var cee=(0,c.forwardRef)(((e,t)=>{var{children:n,width:r,height:i,viewBox:o,className:a,style:s,title:l,desc:u}=e,d=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,see),p=o||{width:r,height:i,x:0,y:0},h=(0,de.$)("recharts-surface",a);return c.createElement("svg",lee({},oee(d,!0,"svg"),{className:h,width:r,height:i,style:s,viewBox:"".concat(p.x," ").concat(p.y," ").concat(p.width," ").concat(p.height),ref:t}),c.createElement("title",null,l),c.createElement("desc",null,u),n)})),uee=["children"];function dee(){return dee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dee.apply(null,arguments)}var pee={width:"100%",height:"100%"},hee=(0,c.forwardRef)(((e,t)=>{var n=sQ(HQ),r=sQ($Q),i=aee();if(!A5(n)||!A5(r))return null;var o,a,{children:s,otherAttributes:l,title:u,desc:d}=e;return o="number"===typeof l.tabIndex?l.tabIndex:i?0:void 0,a="string"===typeof l.role?l.role:i?"application":void 0,c.createElement(cee,dee
155({},l,{title:u,desc:d,role:a,tabIndex:o,width:n,height:r,style:pee,ref:t}),s)})),fee=e=>{var{children:t}=e,n=sQ(rJ);if(!n)return null;var{width:r,height:i,y:o,x:a}=n;return c.createElement(cee,{width:r,height:i,x:a,y:o},t)},mee=(0,c.forwardRef)(((e,t)=>{var{children:n}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,uee);return tJ()?c.createElement(fee,null,n):c.createElement(hee,dee({ref:t},r),n)})),gee=new(__webpack_require__(46150)),bee="recharts.syncEvent.tooltip",vee="recharts.syncEvent.brush";function yee(e){return e.tooltip.syncInteraction}var xee=()=>{};function wee(){var e=rQ();(0,c.useEffect)((()=>{e(PX())}),[e]),function(){var e=sQ(K5),t=sQ(Z5),n=rQ(),r=sQ(X5),i=sQ(i9),o=sJ(),a=iJ(),s=sQ((e=>e.rootProps.className));(0,c.useEffect)((()=>{if(null==e)return xee;var s=(s,l,c)=>{if(t!==c&&e===s)if("index"!==r){if(null!=i){var u;if("function"===typeof r){var d={activeTooltipIndex:null==l.payload.index?void 0:Number(l.payload.index),isTooltipActive:l.payload.active,activeIndex:null==l.payload.index?void 0:Number(l.payload.index),activeLabel:l.payload.label,activeDataKey:l.payload.dataKey,activeCoordinate:l.payload.coordinate},p=r(i,d);u=i[p]}else"value"===r&&(u=i.find((e=>String(e.value)===l.payload.label)));var{coordinate:h}=l.payload;if(null!=u&&!1!==l.payload.active&&null!=h&&null!=a){var{x:f,y:m}=h,g=Math.min(f,a.x+a.width),b=Math.min(m,a.y+a.height),v={x:"horizontal"===o?u.coordinate:g,y:"horizontal"===o?b:u.coordinate},y=PZ({active:l.payload.active,coordinate:v,dataKey:l.payload.dataKey,index:String(u.index),label:l.payload.label});n(y)}else n(PZ({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0}))}}else n(l)};return gee.on(bee,s),()=>{gee.off(bee,s)}}),[s,n,t,e,r,i,o,a])}(),function(){var e=sQ(K5),t=sQ(Z5),n=rQ();(0,c.useEffect)((()=>{if(null==e)return xee;var r=(r,i,o)=>{t!==o&&e===r&&n(FZ(i))};return gee.on(vee,r),()=>{gee.off(vee,r)}}),[n,t,e])}()}function Aee(e,t,n,r,i,o){var a=sQ((n=>((e,t,n)=>{if(null!=t){var r=A8(e);return"axis"===t?"hover"===n?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:"hover"===n?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}})(n,e,t))),s=sQ(Z5),l=sQ(K5),u=sQ(X5),d=sQ(yee),p=null===d||void 0===d?void 0:d.active;(0,c.useEffect)((()=>{if(!p&&null!=l&&null!=s){var e=PZ({active:o,coordinate:n,dataKey:a,index:i,label:"number"===typeof r?String(r):r});gee.emit(bee,l,e,s)}}),[p,n,a,i,r,s,l,u,o])}var Eee=(0,c.createContext)(null),See=(0,c.createContext)(null);function _ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_ee(Object(n),!0).forEach((function(t){Tee(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tee(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cee=(0,c.forwardRef)(((e,t)=>{var{children:n,className:r,height:i,onClick:o,onContextMenu:a,onDoubleClick:s,onMouseDown:l,onMouseEnter:u,onMouseLeave:d,onMouseMove:p,onMouseUp:h,onTouchEnd:f,onTouchMove:m,onTouchStart:g,style:b,width:v}=e,y=rQ(),[x,w]=(0,c.useState)(null),[A,E]=(0,c.useState)(null);wee();var S=function(){var e=rQ(),[t,n]=(0,c.useState)(null),r=sQ(VQ);return(0,c.useEffect)((()=>
155{if(null!=t){var n=t.getBoundingClientRect().width/t.offsetWidth;w5(n)&&n!==r&&e(GZ(n))}}),[t,e,r]),n}(),_=(0,c.useCallback)((e=>{S(e),"function"===typeof t&&t(e),w(e),E(e)}),[S,t,w,E]),k=(0,c.useCallback)((e=>{y(I9(e)),y(L7({handler:o,reactEvent:e}))}),[y,o]),T=(0,c.useCallback)((e=>{y(P9(e)),y(L7({handler:u,reactEvent:e}))}),[y,u]),C=(0,c.useCallback)((e=>{y(OZ()),y(L7({handler:d,reactEvent:e}))}),[y,d]),O=(0,c.useCallback)((e=>{y(P9(e)),y(L7({handler:p,reactEvent:e}))}),[y,p]),N=(0,c.useCallback)((()=>{y(M7())}),[y]),I=(0,c.useCallback)((e=>{y(j7(e.key))}),[y]),R=(0,c.useCallback)((e=>{y(L7({handler:a,reactEvent:e}))}),[y,a]),P=(0,c.useCallback)((e=>{y(L7({handler:s,reactEvent:e}))}),[y,s]),j=(0,c.useCallback)((e=>{y(L7({handler:l,reactEvent:e}))}),[y,l]),M=(0,c.useCallback)((e=>{y(L7({handler:h,reactEvent:e}))}),[y,h]),D=(0,c.useCallback)((e=>{y(L7({handler:g,reactEvent:e}))}),[y,g]),L=(0,c.useCallback)((e=>{y(z7(e)),y(L7({handler:m,reactEvent:e}))}),[y,m]),F=(0,c.useCallback)((e=>{y(L7({handler:f,reactEvent:e}))}),[y,f]);return c.createElement(Eee.Provider,{value:x},c.createElement(See.Provider,{value:A},c.createElement("div",{className:(0,de.$)("recharts-wrapper",r),style:kee({position:"relative",cursor:"default",width:v,height:i},b),onClick:k,onContextMenu:R,onDoubleClick:P,onFocus:N,onKeyDown:I,onMouseDown:j,onMouseEnter:T,onMouseLeave:C,onMouseMove:O,onMouseUp:M,onTouchEnd:F,onTouchMove:L,onTouchStart:D,ref:_},n)))})),Oee=JZ([ZQ],(e=>{if(e)return{top:e.top,bottom:e.bottom,left:e.left,right:e.right}})),Nee=JZ([Oee,HQ,$Q],((e,t,n)=>{if(e&&null!=t&&null!=n)return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,n-e.top-e.bottom)}})),Iee=()=>sQ(Nee),Ree=(0,c.createContext)(void 0),Pee=e=>{var{children:t}=e,[n]=(0,c.useState)("".concat(wY("recharts"),"-clip")),r=Iee();if(null==r)return null;var{x:i,y:o,width:a,height:s}=r;return c.createElement(Ree.Provider,{value:n},c.createElement("defs",null,c.createElement("clipPath",{id:n},c.createElement("rect",{x:i,y:o,height:s,width:a}))),t)},jee=["children","className","width","height","style","compact","title","desc"];var Mee=(0,c.forwardRef)(((e,t)=>{var{children:n,className:r,width:i,height:o,style:a,compact:s,title:l,desc:u}=e,d=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,jee),p=oee(d,!1);return s?c.createElement(mee,{otherAttributes:p,title:l,desc:u},n):c.createElement(Cee,{className:r,style:a,width:i,height:o,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},c.createElement(mee,{otherAttributes:p,title:l,desc:u,ref:t},c.createElement(Pee,null,n)))}));function Dee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lee(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fee(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dee(Object(n),!0).forEach((function(t){Lee(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e),r=t;return Object.keys(t).reduce(((e,t)=>(void 0===e[t]&&void 0!==r[t]&&(e[t]=r[t]),e)),n)}var Bee=["width","height"];function Uee(){return Uee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uee.apply(null,arguments)}var zee={accessibilityLayer:!0,layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},Hee=(0,c.forwardRef)((function(e,t){var n,r=Fee(e.categoricalChartProps,zee),{width:i,height:o}=r,a=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(r,Bee);if(!A5(i)||!A5(o))return null;var{chartName:s,defaultTooltipEventType:l,validateTooltipEventTypes:u,tooltipPayloadSearcher:d,categoricalChartProps:p}=e,h={chartName:s,defaultTooltipEventType:l,validateTooltipEventTypes:u,tooltipPayloadSearcher:d,eventEmitter:void 0};
155return c.createElement(V7,{preloadedState:{options:h},reduxStoreName:null!==(n=p.id)&&void 0!==n?n:s},c.createElement(G7,{chartData:p.data}),c.createElement(W7,{width:i,height:o,layout:r.layout,margin:r.margin}),c.createElement(q7,{accessibilityLayer:r.accessibilityLayer,barCategoryGap:r.barCategoryGap,maxBarSize:r.maxBarSize,stackOffset:r.stackOffset,barGap:r.barGap,barSize:r.barSize,syncId:r.syncId,syncMethod:r.syncMethod,className:r.className}),c.createElement(Mee,Uee({},a,{width:i,height:o,ref:t})))})),$ee=["axis","item"],Vee=(0,c.forwardRef)(((e,t)=>c.createElement(Hee,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:$ee,tooltipPayloadSearcher:NX,categoricalChartProps:e,ref:t})));function Gee(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}var Wee=["children","className"];function qee(){return qee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qee.apply(null,arguments)}var Yee=c.forwardRef(((e,t)=>{var{children:n,className:r}=e,i=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,Wee),o=(0,de.$)("recharts-layer",r);return c.createElement("g",qee({className:o},oee(i,!0),{ref:t}),n)})),Kee=!("undefined"!==typeof window&&window.document&&Boolean(window.document.createElement)&&window.setTimeout);function Xee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xee(Object(n),!0).forEach((function(t){Qee(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qee(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jee={widthCache:{},cacheCount:0},ete={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},tte="recharts_measurement_span";var nte=function(e){if(void 0===e||null===e||Kee)return{width:0,height:0};var t=function(e){var t=Zee({},e);return Object.keys(t).forEach((e=>{t[e]||delete t[e]})),t}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),n=JSON.stringify({text:e,copyStyle:t});if(Jee.widthCache[n])return Jee.widthCache[n];try{var r=document.getElementById(tte);r||((r=document.createElement("span")).setAttribute("id",tte),r.setAttribute("aria-hidden","true"),document.body.appendChild(r));var i=Zee(Zee({},ete),t);Object.assign(r.style,i),r.textContent="".concat(e);var o=r.getBoundingClientRect(),a={width:o.width,height:o.height};return Jee.widthCache[n]=a,++Jee.cacheCount>2e3&&(Jee.cacheCount=0,Jee.widthCache={}),a}catch(s){return{width:0,height:0}}},rte=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,ite=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,ote=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,ate=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,ste={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},lte=Object.keys(ste),cte="NaN";class ute{static parse(e){var t,[,n,r]=null!==(t=ate.exec(e))&&void 0!==t?t:[];return new ute(parseFloat(n),null!==r&&void 0!==r?r:"")}constructor(e,t){this.num=e,this.unit=t,this.num=e,this.unit=t,gY(e)&&(this.unit=""),""===t||ote.test(t)||(this.num=NaN,this.unit=""),lte.includes(t)&&(this.num=function(e,t){return e*ste[t]}(e,t),this.unit="px")}add(e){return this.unit!==e.unit?new ute(NaN,""):new ute(this.num+e.num,this.unit)}subtract(e){return this.unit!==e.unit?new ute(NaN,""):new ute(this.num-e.num,this.unit)}multiply(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new ute(NaN,""):new ute(this.num*e.num,this.unit||e.unit)}divide(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new ute(NaN,""):new ute(this.num/e.num,this.unit||e.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return gY(this.num)}}function dte(e){if(e.includes(cte))return cte;for(var t=e;t.includes("*")||t.includes("/");){var n,[,r,i,o]=null!==(n=rte.exec(t))&&void 0!==n?n:[],a=ute.parse(null!==r&&void 0!==r?r:""),s=ute.parse(null!==o&&void 0!==o?o:""),l="*"===i?a.multiply(s):a.divide(s);if(l.isNaN())return cte;t=t.replace(rte,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,u,d,p]=null!==(c=ite.exec(t))&&void 0!==c?c:[],h=ute.parse(null!==u&&void 0!==u?u:""),f=ute.parse(null!==p&&void 0!==p?p:""),m="+"===d?h.add(f):h.subtract(f);if(m.isNaN())return cte;t=t.replace(ite,m.toString())}return t}var pte=/\(([^()]*)\)/;function hte(e){var t=e.replace(/\s+/g,"");return t=function(e){for(var t,n=e;null!=(t=pte.exec(n));){var[,r]=t;n=n.replace(pte,dte(r))}return n}(t),t=dte(t)}function fte(e){var t=function(e){try{return hte(e)}catch(t){return cte}}(e.slice(5,-1));return t===cte?"":t}var mte=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],gte=["dx","dy","angle","className","breakAll"];function bte(){return bte=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bte.apply(null,arguments)}function vte(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var yte=/[ \f\n\r\t\v\u2028\u2029]+/,xte=e=>{var{children:t,breakAll:n,style:r}=e;try{var i=[];return _Y(t)||(i=n?t.toString().split(""):t.toString().split(yte)),{wordsWithComputedWidth:i.map((e=>({word:e,width:nte(e,r).width}))),spaceWidth:n?0:nte("\xa0",r).width}}catch(o){return null}},wte=e=>[{words:_Y(e)?[]:e.toString().split(yte)}],Ate=e=>{var{width:t,scaleToFit:n,children:r,style:i,breakAll:o,maxLines:a}=e;if((t||n)&&!Kee){var s=xte({breakAll:o,children:r,style:i});if(!s)return wte(r);
155var{wordsWithComputedWidth:l,spaceWidth:c}=s;return((e,t,n,r,i)=>{var{maxLines:o,children:a,style:s,breakAll:l}=e,c=vY(o),u=a,d=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce(((e,t)=>{var{word:o,width:a}=t,s=e[e.length-1];if(s&&(null==r||i||s.width+a+n<Number(r)))s.words.push(o),s.width+=a+n;else{var l={words:[o],width:a};e.push(l)}return e}),[])},p=d(t),h=e=>e.reduce(((e,t)=>e.width>t.width?e:t));if(!c||i)return p;if(!(p.length>o||h(p).width>Number(r)))return p;for(var f,m=e=>{var t=u.slice(0,e),n=xte({breakAll:l,style:s,children:t+"\u2026"}).wordsWithComputedWidth,i=d(n);return[i.length>o||h(i).width>Number(r),i]},g=0,b=u.length-1,v=0;g<=b&&v<=u.length-1;){var y=Math.floor((g+b)/2),x=y-1,[w,A]=m(x),[E]=m(y);if(w||E||(g=y+1),w&&E&&(b=y-1),!w&&E){f=A;break}v++}return f||p})({breakAll:o,children:r,maxLines:a,style:i},l,c,t,n)}return wte(r)},Ete="#808080",Ste=(0,c.forwardRef)(((e,t)=>{var{x:n=0,y:r=0,lineHeight:i="1em",capHeight:o="0.71em",scaleToFit:a=!1,textAnchor:s="start",verticalAnchor:l="end",fill:u=Ete}=e,d=vte(e,mte),p=(0,c.useMemo)((()=>Ate({breakAll:d.breakAll,children:d.children,maxLines:d.maxLines,scaleToFit:a,style:d.style,width:d.width})),[d.breakAll,d.children,d.maxLines,a,d.style,d.width]),{dx:h,dy:f,angle:m,className:g,breakAll:b}=d,v=vte(d,gte);if(!yY(n)||!yY(r))return null;var y,x=n+(vY(h)?h:0),w=r+(vY(f)?f:0);switch(l){case"start":y=fte("calc(".concat(o,")"));break;case"middle":y=fte("calc(".concat((p.length-1)/2," * -").concat(i," + (").concat(o," / 2))"));break;default:y=fte("calc(".concat(p.length-1," * -").concat(i,")"))}var A=[];if(a){var E=p[0].width,{width:S}=d;A.push("scale(".concat(vY(S)?S/E:1,")"))}return m&&A.push("rotate(".concat(m,", ").concat(x,", ").concat(w,")")),A.length&&(v.transform=A.join(" ")),c.createElement("text",bte({},oee(v,!0),{ref:t,x:x,y:w,className:(0,de.$)("recharts-text",g),textAnchor:s,fill:u.includes("url")?Ete:u}),p.map(((e,t)=>{var n=e.words.join(b?"":" ");return c.createElement("tspan",{x:x,dy:0===t?y:i,key:"".concat(n,"-").concat(t)},n)})))}));Ste.displayName="Text";var _te=["offset"],kte=["labelRef"];function Tte(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Cte(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ote(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cte(Object(n),!0).forEach((function(t){Nte(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cte(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nte(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ite(){return Ite=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ite.apply(null,arguments)}var Rte=e=>null!=e&&"function"===typeof e,Pte=(e,t,n)=>{var r,i,{position:o,viewBox:a,offset:s,className:l}=e,{cx:u,cy:d,innerRadius:p,outerRadius:h,startAngle:f,endAngle:m,clockWise:g}=a,b=(p+h)/2,v=((e,t)=>mY(t-e)*Math.min(Math.abs(t-e),360))(f,m),y=v>=0?1:-1;"insideStart"===o?(r=f+y*s,i=g):"insideEnd"===o?(r=m-y*s,i=!g):"end"===o&&(r=m+y*s,i=g),i=v<=0?i:!i;var x=AQ(u,d,b,r),w=AQ(u,d,b,r+359*(i?1:-1)),A="M".concat(x.x,",").concat(x.y,"\n    A").concat(b,",").concat(b,",0,1,").concat(i?0:1,",\n    ").concat(w.x,",").concat(w.y),E=_Y(e.id)?wY("recharts-radial-line-"):e.id;return c.createElement("text",Ite({},n,{dominantBaseline:"central",className:(0,de.$)("recharts-radial-bar-label",l)}),c.createElement("defs",null,c.createElement("path",{id:E,d:A})),c.createElement("textPath",{xlinkHref:"#".concat(E)},t))};function jte(e){var t,{offset:n=5}=e,r=Ote({offset:n},Tte(e,_te)),{viewBox:i,position:o,value:a,children:s,content:l,className:u="",textBreakAll:d,labelRef:p}=r,h=iJ(),f=i||h;
155if(!f||_Y(a)&&_Y(s)&&!(0,c.isValidElement)(l)&&"function"!==typeof l)return null;if((0,c.isValidElement)(l)){var{labelRef:m}=r,g=Tte(r,kte);return(0,c.cloneElement)(l,g)}if("function"===typeof l){if(t=(0,c.createElement)(l,r),(0,c.isValidElement)(t))return t}else t=(e=>{var{value:t,formatter:n}=e,r=_Y(e.children)?t:e.children;return"function"===typeof n?n(r):r})(r);var b=(e=>"cx"in e&&vY(e.cx))(f),v=oee(r,!0);if(b&&("insideStart"===o||"insideEnd"===o||"end"===o))return Pte(r,t,v);var y=b?(e=>{var{viewBox:t,offset:n,position:r}=e,{cx:i,cy:o,innerRadius:a,outerRadius:s,startAngle:l,endAngle:c}=t,u=(l+c)/2;if("outside"===r){var{x:d,y:p}=AQ(i,o,s+n,u);return{x:d,y:p,textAnchor:d>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"end"};var h=(a+s)/2,{x:f,y:m}=AQ(i,o,h,u);return{x:f,y:m,textAnchor:"middle",verticalAnchor:"middle"}})(r):((e,t)=>{var{parentViewBox:n,offset:r,position:i}=e,{x:o,y:a,width:s,height:l}=t,c=l>=0?1:-1,u=c*r,d=c>0?"end":"start",p=c>0?"start":"end",h=s>=0?1:-1,f=h*r,m=h>0?"end":"start",g=h>0?"start":"end";if("top"===i)return Ote(Ote({},{x:o+s/2,y:a-c*r,textAnchor:"middle",verticalAnchor:d}),n?{height:Math.max(a-n.y,0),width:s}:{});if("bottom"===i)return Ote(Ote({},{x:o+s/2,y:a+l+u,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(n.y+n.height-(a+l),0),width:s}:{});if("left"===i){var b={x:o-f,y:a+l/2,textAnchor:m,verticalAnchor:"middle"};return Ote(Ote({},b),n?{width:Math.max(b.x-n.x,0),height:l}:{})}if("right"===i){var v={x:o+s+f,y:a+l/2,textAnchor:g,verticalAnchor:"middle"};return Ote(Ote({},v),n?{width:Math.max(n.x+n.width-v.x,0),height:l}:{})}var y=n?{width:s,height:l}:{};return"insideLeft"===i?Ote({x:o+f,y:a+l/2,textAnchor:g,verticalAnchor:"middle"},y):"insideRight"===i?Ote({x:o+s-f,y:a+l/2,textAnchor:m,verticalAnchor:"middle"},y):"insideTop"===i?Ote({x:o+s/2,y:a+u,textAnchor:"middle",verticalAnchor:p},y):"insideBottom"===i?Ote({x:o+s/2,y:a+l-u,textAnchor:"middle",verticalAnchor:d},y):"insideTopLeft"===i?Ote({x:o+f,y:a+u,textAnchor:g,verticalAnchor:p},y):"insideTopRight"===i?Ote({x:o+s-f,y:a+u,textAnchor:m,verticalAnchor:p},y):"insideBottomLeft"===i?Ote({x:o+f,y:a+l-u,textAnchor:g,verticalAnchor:d},y):"insideBottomRight"===i?Ote({x:o+s-f,y:a+l-u,textAnchor:m,verticalAnchor:d},y):i&&"object"===typeof i&&(vY(i.x)||bY(i.x))&&(vY(i.y)||bY(i.y))?Ote({x:o+AY(i.x,s),y:a+AY(i.y,l),textAnchor:"end",verticalAnchor:"end"},y):Ote({x:o+s/2,y:a+l/2,textAnchor:"middle",verticalAnchor:"middle"},y)})(r,f);return c.createElement(Ste,Ite({ref:p,className:(0,de.$)("recharts-label",u)},v,y,{breakAll:d}),t)}jte.displayName="Label";var Mte=e=>{var{cx:t,cy:n,angle:r,startAngle:i,endAngle:o,r:a,radius:s,innerRadius:l,outerRadius:c,x:u,y:d,top:p,left:h,width:f,height:m,clockWise:g,labelViewBox:b}=e;if(b)return b;if(vY(f)&&vY(m)){if(vY(u)&&vY(d))return{x:u,y:d,width:f,height:m};if(vY(p)&&vY(h))return{x:p,y:h,width:f,height:m}}
155return vY(u)&&vY(d)?{x:u,y:d,width:0,height:0}:vY(t)&&vY(n)?{cx:t,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:l||0,outerRadius:c||s||a||0,clockWise:g}:e.viewBox?e.viewBox:void 0};function Dte(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}jte.parseViewBox=Mte,jte.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var{children:r,labelRef:i}=e,o=Mte(e),a=iee(r,jte).map(((e,n)=>(0,c.cloneElement)(e,{viewBox:t||o,key:"label-".concat(n)})));if(!n)return a;var s=((e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return!0===e?c.createElement(jte,Ite({key:"label-implicit"},r)):yY(e)?c.createElement(jte,Ite({key:"label-implicit",value:e},r)):(0,c.isValidElement)(e)?e.type===jte?(0,c.cloneElement)(e,Ote({key:"label-implicit"},r)):c.createElement(jte,Ite({key:"label-implicit",content:e},r)):Rte(e)?c.createElement(jte,Ite({key:"label-implicit",content:e},r)):e&&"object"===typeof e?c.createElement(jte,Ite({},e,{key:"label-implicit"},r)):null})(e.label,t||o,i);return[s,...a]};class Lte{static create(e){return new Lte(e)}constructor(e){this.scale=e}get domain(){return this.scale.domain}get range(){return this.scale.range}get rangeMin(){return this.range()[0]}get rangeMax(){return this.range()[1]}get bandwidth(){return this.scale.bandwidth}
155apply(e){var{bandAware:t,position:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0!==e){if(n)switch(n){case"start":default:return this.scale(e);case"middle":var r=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+r;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i}if(t){var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o}return this.scale(e)}}isInRange(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}Dte(Lte,"EPS",1e-4);function Fte(e,t,n){if(t<1)return[];if(1===t&&void 0===n)return e;for(var r=[],i=0;i<e.length;i+=t){if(void 0!==n&&!0!==n(e[i]))return;r.push(e[i])}return r}function Bte(e,t,n){return function(e){var{width:t,height:n}=e,r=function(e){return(e%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),i=r*Math.PI/180,o=Math.atan(n/t),a=i>o&&i<Math.PI-o?n/Math.sin(i):t/Math.cos(i);return Math.abs(a)}({width:e.width+t.width,height:e.height+t.height},n)}function Ute(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-i)<=0}function zte(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hte(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zte(Object(n),!0).forEach((function(t){$te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zte(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $te(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vte(e,t,n){var r,{tick:i,ticks:o,viewBox:a,minTickGap:s,orientation:l,interval:c,tickFormatter:u,unit:d,angle:p}=e;if(!o||!o.length||!i)return[];if(vY(c)||Kee)return null!==(r=function(e,t){return Fte(e,t+1)}(o,vY(c)?c:0))&&void 0!==r?r:[];var h=[],f="top"===l||"bottom"===l?"width":"height",m=d&&"width"===f?nte(d,{fontSize:t,letterSpacing:n}):{width:0,height:0},g=(e,r)=>{var i="function"===typeof u?u(e.value,r):e.value;return"width"===f?Bte(nte(i,{fontSize:t,letterSpacing:n}),m,p):nte(i,{fontSize:t,letterSpacing:n})[f]},b=o.length>=2?mY(o[1].coordinate-o[0].coordinate):1,v=function(e,t,n){var r="width"===n,{x:i,y:o,width:a,height:s}=e;return 1===t?{start:r?i:o,end:r?i+a:o+s}:{start:r?i+a:o+s,end:r?i:o}}(a,b,f);return"equidistantPreserveStart"===c?function(e,t,n,r,i){for(var o,a=(r||[]).slice(),{start:s,end:l}=t,c=0,u=1,d=s,p=function(){var t=null===r||void 0===r?void 0:r[c];if(void 0===t)return{v:Fte(r,u)};var o,a=c,p=()=>(void 0===o&&(o=n(t,a)),o),h=t.coordinate,f=0===c||Ute(e,h,p,d,l);f||(c=0,d=s,u+=1),f&&(d=h+e*(p()/2+i),c+=u)};u<=a.length;)if(o=p())return o.v;return[]}(b,v,g,o,s):(h="preserveStart"===c||"preserveStartEnd"===c?function(e,t,n,r,i,o){var a=(r||[]).slice(),s=a.length,{start:l,end:c}=t;if(o){var u=r[s-1],d=n(u,s-1),p=e*(u.coordinate+e*d/2-c);a[s-1]=u=Hte(Hte({},u),{},{tickCoord:p>0?u.coordinate-p*e:u.coordinate}),Ute(e,u.tickCoord,(()=>d),l,c)&&(c=u.tickCoord-e*(d/2+i),a[s-1]=Hte(Hte({},u),{},{isShow:!0}))}for(var h=o?s-1:s,f=function(t){var r,o=a[t],s=()=>(void 0===r&&(r=n(o,t)),r);if(0===t){var u=e*(o.coordinate-e*s()/2-l);a[t]=o=Hte(Hte({},o),{},{tickCoord:u<0?o.coordinate-u*e:o.coordinate})}else a[t]=o=Hte(Hte({},o),{},{tickCoord:o.coordinate});Ute(e,o.tickCoord,s,l,c)&&(l=o.tickCoord+e*(s()/2+i),a[t]=Hte(Hte({},o),{},{isShow:!0}))},m=0;m<h;m++)f(m);return a}(b,v,g,o,s,"preserveStartEnd"===c):function(e,t,n,r,i){for(var o=(r||[]).slice(),a=o.length,{start:s}=t,{end:l}=t,c=function(t){var r,c=o[t],u=()=>(void 0===r&&(r=n(c,t)),r);if(t===a-1){var d=e*(c.coordinate+e*u()/2-l);o[t]=c=Hte(Hte({}
155,c),{},{tickCoord:d>0?c.coordinate-d*e:c.coordinate})}else o[t]=c=Hte(Hte({},c),{},{tickCoord:c.coordinate});Ute(e,c.tickCoord,u,s,l)&&(l=c.tickCoord-e*(u()/2+i),o[t]=Hte(Hte({},c),{},{isShow:!0}))},u=a-1;u>=0;u--)c(u);return o}(b,v,g,o,s),h.filter((e=>e.isShow)))}var Gte=["viewBox"],Wte=["viewBox"];function qte(){return qte=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qte.apply(null,arguments)}function Yte(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kte(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yte(Object(n),!0).forEach((function(t){Zte(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yte(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xte(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Zte(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Qte extends c.Component{constructor(e){super(e),this.tickRefs=c.createRef(),this.tickRefs.current=[],this.state={fontSize:"",letterSpacing:""}}shouldComponentUpdate(e,t){var{viewBox:n}=e,r=Xte(e,Gte),i=this.props,{viewBox:o}=i,a=Xte(i,Wte);return!Gee(n,o)||!Gee(r,a)||!Gee(t,this.state)}getTickLineCoord(e){var t,n,r,i,o,a,{x:s,y:l,width:c,height:u,orientation:d,tickSize:p,mirror:h,tickMargin:f}=this.props,m=h?-1:1,g=e.tickSize||p,b=vY(e.tickCoord)?e.tickCoord:e.coordinate;switch(d){case"top":t=n=e.coordinate,a=(r=(i=l+ +!h*u)-m*g)-m*f,o=b;break;case"left":r=i=e.coordinate,o=(t=(n=s+ +!h*c)-m*g)-m*f,a=b;break;case"right":r=i=e.coordinate,o=(t=(n=s+ +h*c)+m*g)+m*f,a=b;break;default:t=n=e.coordinate,a=(r=(i=l+ +h*u)+m*g)+m*f,o=b}return{line:{x1:t,y1:r,x2:n,y2:i},tick:{x:o,y:a}}}getTickTextAnchor(){var e,{orientation:t,mirror:n}=this.props;switch(t){case"left":e=n?"start":"end";break;case"right":e=n?"end":"start";break;default:e="middle"}return e}getTickVerticalAnchor(){var{orientation:e,mirror:t}=this.props;switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}renderAxisLine(){var{x:e,y:t,width:n,height:r,orientation:i,mirror:o,axisLine:a}=this.props,s=Kte(Kte(Kte({},oee(this.props,!1)),oee(a,!1)),{},{fill:"none"});if("top"===i||"bottom"===i){var l=+("top"===i&&!o||"bottom"===i&&o);s=Kte(Kte({},s),{},{x1:e,y1:t+l*r,x2:e+n,y2:t+l*r})}else{var u=+("left"===i&&!o||"right"===i&&o);s=Kte(Kte({},s),{},{x1:e+u*n,y1:t,x2:e+u*n,y2:t+r})}return c.createElement("line",qte({},s,{className:(0,de.$)("recharts-cartesian-axis-line",fY()(a,"className"))}))}static renderTickItem(e,t,n){var r,i=(0,de.$)(t.className,"recharts-cartesian-axis-tick-value");if(c.isValidElement(e))r=c.cloneElement(e,Kte(Kte({},t),{},{className:i}));else if("function"===typeof e)r=e(Kte(Kte({},t),{},{className:i}));else{var o="recharts-cartesian-axis-tick-value";"boolean"!==typeof e&&(o=(0,de.$)(o,e.className)),r=c.createElement(Ste,qte({},t,{className:o}),n)}return r}renderTicks(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],{tickLine:r,stroke:i,tick:o,tickFormatter:a,unit:s}=this.props,l=Vte(Kte(Kte({},this.props),{},{ticks:n}),e,t),u=this.getTickTextAnchor(),d=this.getTickVerticalAnchor(),p=oee(this.props,!1),h=oee(o,!1),f=Kte(Kte({},p),{},{fill:"none"},oee(r,!1)),m=l.map(((e,t)=>{var{line:n,tick:m}
155=this.getTickLineCoord(e),g=Kte(Kte(Kte(Kte({textAnchor:u,verticalAnchor:d},p),{},{stroke:"none",fill:i},h),m),{},{index:t,payload:e,visibleTicksCount:l.length,tickFormatter:a});return c.createElement(Yee,qte({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e.value,"-").concat(e.coordinate,"-").concat(e.tickCoord)},J7(this.props,e,t)),r&&c.createElement("line",qte({},f,n,{className:(0,de.$)("recharts-cartesian-axis-tick-line",fY()(r,"className"))})),o&&Qte.renderTickItem(o,g,"".concat("function"===typeof a?a(e.value,t):e.value).concat(s||"")))}));return m.length>0?c.createElement("g",{className:"recharts-cartesian-axis-ticks"},m):null}render(){var{axisLine:e,width:t,height:n,className:r,hide:i}=this.props;if(i)return null;var{ticks:o}=this.props;return null!=t&&t<=0||null!=n&&n<=0?null:c.createElement(Yee,{className:(0,de.$)("recharts-cartesian-axis",r),ref:e=>{if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value");this.tickRefs.current=Array.from(t);var n=t[0];if(n){var r=window.getComputedStyle(n).fontSize,i=window.getComputedStyle(n).letterSpacing;r===this.state.fontSize&&i===this.state.letterSpacing||this.setState({fontSize:window.getComputedStyle(n).fontSize,letterSpacing:window.getComputedStyle(n).letterSpacing})}}}},e&&this.renderAxisLine(),this.renderTicks(this.state.fontSize,this.state.letterSpacing,o),jte.renderCallByParent(this.props))}}Zte(Qte,"displayName","CartesianAxis"),Zte(Qte,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var Jte=["children"],ene=["dangerouslySetInnerHTML","ticks"];function tne(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nne(){return nne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nne.apply(null,arguments)}function rne(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ine(e){var t=rQ(),n=(0,c.useMemo)((()=>{var{children:t}=e;return rne(e,Jte)}),[e]),r=sQ((e=>C3(e,n.id))),i=n===r;return(0,c.useEffect)((()=>(t(U9(n)),()=>{t(z9(n))})),[n,t]),i?e.children:null}var one=e=>{var{xAxisId:t,className:n}=e,r=sQ(JQ),i=tJ(),o="xAxis",a=sQ((e=>H6(e,o,t,i))),s=sQ((e=>i8(e,o,t,i))),l=sQ((e=>K6(e,t))),u=sQ((e=>((e,t)=>{var n=ZQ(e),r=C3(e,t);if(null!=r){var i=X6(e,r.orientation,r.mirror)[t];return null==i?{x:n.left,y:0}:{x:n.left,y:i}}})(e,t)));if(null==l||null==u)return null;var{dangerouslySetInnerHTML:d,ticks:p}=e,h=rne(e,ene);return c.createElement(Qte,nne({},h,{scale:a,x:u.x,y:u.y,width:l.width,height:l.height,className:(0,de.$)("recharts-".concat(o," ").concat(o),n),viewBox:r,ticks:s}))},ane=e=>{var t,n,r,i,o;return c.createElement(ine,{interval:null!==(t=e.interval)&&void 0!==t?t:"preserveEnd",id:e.xAxisId,scale:e.scale,type:e.type,padding:e.padding,allowDataOverflow:e.allowDataOverflow,domain:e.domain,dataKey:e.dataKey,allowDuplicatedCategory:e.allowDuplicatedCategory,allowDecimals:e.allowDecimals,tickCount:e.tickCount,includeHidden:null!==(n=e.includeHidden)&&void 0!==n&&n,reversed:e.reversed,ticks:e.ticks,height:e.height,orientation:e.orientation,mirror:e.mirror,hide:e.hide,unit:e.unit,name:e.name,angle:null!==(r=e.angle)&&void 0!==r?r:0,minTickGap:null!==(i=e.minTickGap)&&void 0!==i?i:5,tick:null===(o=e.tick)||void 0===o||o,tickFormatter:e.tickFormatter},c.createElement(one,e))};class sne extends c.Component{render(){return c.createElement(ane,this.props)}}tne(sne,"displayName","XAxis"),tne(sne,"defaultProps",{allowDataOverflow:T3.allowDataOverflow,allowDecimals:T3.allowDecimals,allowDuplicatedCategory:T3.allowDuplicatedCategory,height:T3.height,hide:!1,mirror:T3.mirror,orientation:T3.orientation,padding:T3.padding,reversed:T3.reversed,scale:T3.scale,tickCount:T3.tickCount,type:T3.type,xAxisId:0});var lne=["dangerouslySetInnerHTML","ticks"];function cne(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function une(){return une=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},une.apply(null,arguments)}function dne(e){var t=rQ();return(0,c.useEffect)((()=>(t(H9(e)),()=>{t($9(e))})),[e,t]),null}var pne=e=>{var t,{yAxisId:n,className:r,width:i,label:o}=e,a=(0,c.useRef)(null),s=(0,c.useRef)(null),l=sQ(JQ),u=tJ(),d=rQ(),p="yAxis",h=sQ((e=>H6(e,p,n,u))),f=sQ((e=>Q6(e,n))),m=sQ((e=>((e,t)=>{var n=ZQ(e),r=N3(e,t);if(null!=r){var i=Z6(e,r.orientation,r.mirror)[t];return null==i?{x:0,y:n.top}:{x:i,y:n.top}}})(e,n))),g=sQ((e=>i8(e,p,n,u)));if((0,c.useLayoutEffect)((()=>{var e;if("auto"===i&&f&&!Rte(o)&&!(0,c.isValidElement)(o)){var t=a.current,r=null===t||void 0===t||null===(e=t.tickRefs)||void 0===e?void 0:e.current,{tickSize:l,tickMargin:u}=t.props,p=(e=>{var{ticks:t,label:n,labelGapWithTick:r=5,tickSize:i=0,tickMargin:o=0}=e,a=0;if(t){t.forEach((e=>{if(e){var t=e.getBoundingClientRect();t.width>a&&(a=t.width)}}));var s=n?n.getBoundingClientRect().width:0,l=a+(i+o)+s+(n?r:0);return Math.round(l)}return 0})({ticks:r,label:s.current,labelGapWithTick:5,tickSize:l,tickMargin:u});Math.round(f.width)!==Math.round(p)&&d(W9({id:n,width:p}))}}),[a,null===a||void 0===a||null===(t=a.current)||void 0===t||null===(t=t.tickRefs)||void 0===t?void 0:t.current,null===f||void 0===f?void 0:f.width,f,d,o,n,i]),null==f||null==m)return null;var{dangerouslySetInnerHTML:b,ticks:v}=e,y=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,lne);return c.createElement(Qte,une({}
155,y,{ref:a,labelRef:s,scale:h,x:m.x,y:m.y,width:f.width,height:f.height,className:(0,de.$)("recharts-".concat(p," ").concat(p),r),viewBox:l,ticks:g}))},hne=e=>{var t,n,r,i,o;return c.createElement(c.Fragment,null,c.createElement(dne,{interval:null!==(t=e.interval)&&void 0!==t?t:"preserveEnd",id:e.yAxisId,scale:e.scale,type:e.type,domain:e.domain,allowDataOverflow:e.allowDataOverflow,dataKey:e.dataKey,allowDuplicatedCategory:e.allowDuplicatedCategory,allowDecimals:e.allowDecimals,tickCount:e.tickCount,padding:e.padding,includeHidden:null!==(n=e.includeHidden)&&void 0!==n&&n,reversed:e.reversed,ticks:e.ticks,width:e.width,orientation:e.orientation,mirror:e.mirror,hide:e.hide,unit:e.unit,name:e.name,angle:null!==(r=e.angle)&&void 0!==r?r:0,minTickGap:null!==(i=e.minTickGap)&&void 0!==i?i:5,tick:null===(o=e.tick)||void 0===o||o,tickFormatter:e.tickFormatter}),c.createElement(pne,e))},fne={allowDataOverflow:O3.allowDataOverflow,allowDecimals:O3.allowDecimals,allowDuplicatedCategory:O3.allowDuplicatedCategory,hide:!1,mirror:O3.mirror,orientation:O3.orientation,padding:O3.padding,reversed:O3.reversed,scale:O3.scale,tickCount:O3.tickCount,type:O3.type,width:O3.width,yAxisId:0};class mne extends c.Component{render(){return c.createElement(hne,this.props)}}function gne(){return gne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gne.apply(null,arguments)}function bne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bne(Object(n),!0).forEach((function(t){yne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yne(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xne(e){return Array.isArray(e)&&yY(e[0])&&yY(e[1])?e.join(" ~ "):e}cne(mne,"displayName","YAxis"),cne(mne,"defaultProps",fne);var wne=e=>{var{separator:t=" : ",contentStyle:n={},itemStyle:r={},labelStyle:i={},payload:o,formatter:a,itemSorter:s,wrapperClassName:l,labelClassName:u,label:d,labelFormatter:p,accessibilityLayer:h=!1}=e,f=vne({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},n),m=vne({margin:0},i),g=!_Y(d),b=g?d:"",v=(0,de.$)("recharts-default-tooltip",l),y=(0,de.$)("recharts-tooltip-label",u);g&&p&&void 0!==o&&null!==o&&(b=p(d,o));var x=h?{role:"status","aria-live":"assertive"}:{};return c.createElement("div",gne({className:v,style:f},x),c.createElement("p",{className:y,style:m},c.isValidElement(b)?b:"".concat(b)),(()=>{if(o&&o.length){var e=(s?cQ()(o,s):o).map(((e,n)=>{if("none"===e.type)return null;var i=e.formatter||a||xne,{value:s,name:l}=e,u=s,d=l;if(i){var p=i(s,l,e,n,o);if(Array.isArray(p))[u,d]=p;else{if(null==p)return null;u=p}}var h=vne({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},r);return c.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(n),style:h},yY(d)?c.createElement("span",{className:"recharts-tooltip-item-name"},d):null,yY(d)?c.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,c.createElement("span",{className:"recharts-tooltip-item-value"},u),c.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))}));return c.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null})())},Ane="recharts-tooltip-wrapper",Ene={visibility:"hidden"};function Sne(e){var{coordinate:t,translateX:n,translateY:r}=e;return(0,de.$)(Ane,{["".concat(Ane,"-right")]:vY(n)&&t&&vY(t.x)&&n>=t.x,["".concat(Ane,"-left")]:vY(n)&&t&&vY(t.x)&&n<t.x,["".concat(Ane,"-bottom")]:vY(r)&&t&&vY(t.y
vendor: 13,632 bytes, line 155
155)&&r>=t.y,["".concat(Ane,"-top")]:vY(r)&&t&&vY(t.y)&&r<t.y})}function _ne(e){var{allowEscapeViewBox:t,coordinate:n,key:r,offsetTopLeft:i,position:o,reverseDirection:a,tooltipDimension:s,viewBox:l,viewBoxDimension:c}=e;if(o&&vY(o[r]))return o[r];var u=n[r]-s-(i>0?i:0),d=n[r]+i;if(t[r])return a[r]?u:d;var p=l[r];return null==p?0:a[r]?u<p?Math.max(d,p):Math.max(u,p):null==c?0:d+s>p+c?Math.max(u,p):Math.max(d,p)}function kne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kne(Object(n),!0).forEach((function(t){Cne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cne(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class One extends c.PureComponent{constructor(){super(...arguments),Cne(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),Cne(this,"handleKeyDown",(e=>{var t,n,r,i;"Escape"===e.key&&this.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(t=null===(n=this.props.coordinate)||void 0===n?void 0:n.x)&&void 0!==t?t:0,y:null!==(r=null===(i=this.props.coordinate)||void 0===i?void 0:i.y)&&void 0!==r?r:0}})}))}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var e,t;this.state.dismissed&&((null===(e=this.props.coordinate)||void 0===e?void 0:e.x)===this.state.dismissedAtCoordinate.x&&(null===(t=this.props.coordinate)||void 0===t?void 0:t.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}render(){var{active:e,allowEscapeViewBox:t,animationDuration:n,animationEasing:r,children:i,coordinate:o,hasPayload:a,isAnimationActive:s,offset:l,position:u,reverseDirection:d,useTranslate3d:p,viewBox:h,wrapperStyle:f,lastBoundingBox:m,innerRef:g,hasPortalFromProps:b}=this.props,{cssClasses:v,cssProperties:y}=function(e){var t,n,r,{allowEscapeViewBox:i,coordinate:o,offsetTopLeft:a,position:s,reverseDirection:l,tooltipBox:c,useTranslate3d:u,viewBox:d}=e;return t=c.height>0&&c.width>0&&o?function(e){var{translateX:t,translateY:n,useTranslate3d:r}=e;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}({translateX:n=_ne({allowEscapeViewBox:i,coordinate:o,key:"x",offsetTopLeft:a,position:s,reverseDirection:l,tooltipDimension:c.width,viewBox:d,viewBoxDimension:d.width}),translateY:r=_ne({allowEscapeViewBox:i,coordinate:o,key:"y",offsetTopLeft:a,position:s,reverseDirection:l,tooltipDimension:c.height,viewBox:d,viewBoxDimension:d.height}),useTranslate3d:u}):Ene,{cssProperties:t,cssClasses:Sne({translateX:n,translateY:r,coordinate:o})}}({allowEscapeViewBox:t,coordinate:o,offsetTopLeft:l,position:u,reverseDirection:d,tooltipBox:{height:m.height,width:m.width},useTranslate3d:p,viewBox:h}),x=b?{}:Tne(Tne({transition:s&&e?"transform ".concat(n,"ms ").concat(r):void 0},y),{},{pointerEvents:"none",visibility:!this.state.dismissed&&e&&a?"visible":"hidden",position:"absolute",top:0,left:0}),w=Tne(Tne({},x),{},{visibility:!this.state.dismissed&&e&&a?"visible":"hidden"},f);return c.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:v,style:w,ref:g},i)}}var Nne=__webpack_require__(52239),Ine=__webpack_require__.n(Nne);function Rne(){}function Pne(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function jne(e){this._context=e}function Mne(e){this._context=e}function Dne(e){this._context=e}jne.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Pne(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Pne(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Mne.prototype={areaStart:Rne,areaEnd:Rne,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Pne(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Dne.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Pne(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};class Lne{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function Fne(e){this._context=e}function Bne(e){this._context=e}function Une(e){return new Bne(e)}function zne(e){return e<0?-1:1}function Hne(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(zne(o)+zne(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function $ne(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Vne(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function Gne(e){this._context=e}function Wne(e){this._context=new qne(e)}function qne(e){this._context=e}function Yne(e){this._context=e}function Kne(e){var t,n,r=e.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/o[t-1],o[t]-=n,a[t]-=n*a[t-1];for(i[r-1]=a[r-1]/o[r-1],t=r-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function Xne(e,t){this._context=e,this._t=t}Fne.prototype={areaStart:Rne,areaEnd:Rne,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},Bne.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},Gne.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Vne(this,this._t0,$ne(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Vne(this,$ne(this,n=Hne(this,e,t)),n);break;default:Vne(this,this._t0,n=Hne(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(Wne.prototype=Object.create(Gne.prototype)).point=function(e,t){Gne.prototype.point.call(this,t,e)},qne.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}},Yne.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=Kne(e),i=Kne(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},Xne.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};const Zne=Math.PI,Qne=2*Zne,Jne=1e-6,ere=Qne-Jne;function tre(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class nre{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?tre:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return tre;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,o){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+o}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,(i=+i)<0)throw new Error(`negative radius: ${i}`);let o=this._x1,a=this._y1,s=n-e,l=r-t,c=o-e,u=a-t,d=c*c+u*u;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(d>Jne)if(Math.abs(u*s-l*c)>Jne&&i){let p=n-o,h=r-a,f=s*s+l*l,m=p*p+h*h,g=Math.sqrt(f),b=Math.sqrt(d),v=i*Math.tan((Zne-Math.acos((f+d-m)/(2*g*b)))/2),y=v/b,x=v/g;Math.abs(y-1)>Jne&&this._append`L${e+y*c},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*p>c*h)},${this._x1=e+x*s},${this._y1=t+x*l}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,n,r,i,o){if(e=+e,t=+t,o=!!o,(n=+n)<0)throw new Error(`negative radius: ${n}`);let a=n*Math.cos(r),s=n*Math.sin(r),l=e+a,c=t+s,u=1^o,d=o?r-i:i-r;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>Jne||Math.abs(this._y1-c)>Jne)&&this._append`L${l},${c}`,n&&(d<0&&(d=d%Qne+Qne),d>ere?this._append`A${n},${n},0,1,${u},${e-a},${t-s}A${n},${n},0,1,${u},${this._x1=l},${this._y1=c}`:d>Jne&&this._append`A${n},${n},0,${+(d>=Zne)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function rre(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new nre(t)}
155function ire(e){return e[0]}function ore(e){return e[1]}function are(e,t){var n=hQ(!0),r=null,i=Une,o=null,a=rre(s);function s(s){var l,c,u,d=(s=pQ(s)).length,p=!1;for(null==r&&(o=i(u=a())),l=0;l<=d;++l)!(l<d&&n(c=s[l],l,s))===p&&((p=!p)?o.lineStart():o.lineEnd()),p&&o.point(+e(c,l,s),+t(c,l,s));if(u)return o=null,u+""||null}return e="function"===typeof e?e:void 0===e?ire:hQ(e),t="function"===typeof t?t:void 0===t?ore:hQ(t),s.x=function(t){return arguments.length?(e="function"===typeof t?t:hQ(+t),s):e},s.y=function(e){return arguments.length?(t="function"===typeof e?e:hQ(+e),s):t},s.defined=function(e){return arguments.length?(n="function"===typeof e?e:hQ(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,null!=r&&(o=i(r)),s):i},s.context=function(e){return arguments.length?(null==e?r=o=null:o=i(r=e),s):r},s}function sre(e,t,n){var r=null,i=hQ(!0),o=null,a=Une,s=null,l=rre(c);function c(c){var u,d,p,h,f,m=(c=pQ(c)).length,g=!1,b=new Array(m),v=new Array(m);for(null==o&&(s=a(f=l())),u=0;u<=m;++u){if(!(u<m&&i(h=c[u],u,c))===g)if(g=!g)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),p=u-1;p>=d;--p)s.point(b[p],v[p]);s.lineEnd(),s.areaEnd()}g&&(b[u]=+e(h,u,c),v[u]=+t(h,u,c),s.point(r?+r(h,u,c):b[u],n?+n(h,u,c):v[u]))}if(f)return s=null,f+""||null}function u(){return are().defined(i).curve(a).context(o)}return e="function"===typeof e?e:void 0===e?ire:hQ(+e),t="function"===typeof t?t:hQ(void 0===t?0:+t),n="function"===typeof n?n:void 0===n?ore:hQ(+n),c.x=function(t){return arguments.length?(e="function"===typeof t?t:hQ(+t),r=null,c):e},c.x0=function(t){return arguments.length?(e="function"===typeof t?t:hQ(+t),c):e},c.x1=function(e){return arguments.length?(r=null==e?null:"function"===typeof e?e:hQ(+e),c):r},c.y=function(e){return arguments.length?(t="function"===typeof e?e:hQ(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"===typeof e?e:hQ(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"===typeof e?e:hQ(+e),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(e){return arguments.length?(i="function"===typeof e?e:hQ(!!e),c):i},c.curve=function(e){return arguments.length?(a=e,null!=o&&(s=a(o)),c):a},c.context=function(e){return arguments.length?(null==e?o=s=null:s=a(o=e),c):o},c}function lre(){return lre=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lre.apply(null,arguments)}function cre(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ure(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cre(Object(n),!0).forEach((function(t){dre(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cre(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dre(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pre={curveBasisClosed:function(e){return new Mne(e)},curveBasisOpen:function(e){return new Dne(e)},curveBasis:function(e){return new jne(e)},curveBumpX:function(e){return new Lne(e,!0)},curveBumpY:function(e){return new Lne(e,!1)},curveLinearClosed:function(e){return new Fne(e)},curveLinear:Une,curveMonotoneX:function(e){return new Gne(e)},curveMonotoneY:function(e){return new Wne(e)},curveNatural:function(e){return new Yne(e)},curveStep:function(e){return new Xne(e,.5)},curveStepAfter:function(e){return new Xne(e,1)},curveStepBefore:function(e){return new Xne(e,0)}},hre=e=>w5(e.x)&&w5(e.y),fre=e=>e.x,mre=e=>e.y,gre=e=>{var t,{type:n="linear",points:r=[],baseLine:i,layout:o,connectNulls:a=!1}=e,s=((e,t)=>{if("function"===typeof e)return e;var n="curve".concat(kY(e));return"curveMonotone"!==n&&"curveBump"!==n||!t?pre[n]||Une:pre["".concat(n).concat("vertical"===t?"Y":"X")]})(n,o),l=a?r.filter(hre):r;if(Array.isArray(i)){var c=a?i.filter((e=>hre(e))):i,u=l.map(((e,t)=>ure(ure({},e),{},{base:c[t]})));return(t="vertical"===o?sre().y(mre).x1(fre).x0((e=>e.base.x)):sre().x(fre).y1(mre).y0((e=>e.base.y))).defined(hre).curve(s),t(u)}return(t="vertical"===o&&vY(i)?sre().y(mre).x1(fre).x0(i):vY(i)?sre().x(fre).y1(mre).y0(i):are().x(fre).y(mre)).defined(hre).curve(s),t(l)},bre=e=>{var{className:t,points:n,path:r,pathRef:i}=e;if((!n||!n.length)&&!r)return null;var o=n&&n.length?gre(e):r;return c.createElement("path",lre({},oee(e,!1),((e,t)=>{if(!e||"function"===typeof e||"boolean"===typeof e)return null;var n=e;if((0,c.isValidElement)(e)&&(n=e.props),"object"!==typeof n&&"function"!==typeof n)return null;var r={};
155return Object.keys(n).forEach((e=>{Q7.includes(e)&&(r[e]=t||(t=>n[e](n,t)))})),r})(e),{className:(0,de.$)("recharts-curve",t),d:null===o?void 0:o,ref:i}))},vre=["x","y","top","left","width","height","className"];function yre(){return yre=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yre.apply(null,arguments)}function xre(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wre(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Are=(e,t,n,r,i,o)=>"M".concat(e,",").concat(i,"v").concat(r,"M").concat(o,",").concat(t,"h").concat(n),Ere=e=>{var{x:t=0,y:n=0,top:r=0,left:i=0,width:o=0,height:a=0,className:s}=e,l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xre(Object(n),!0).forEach((function(t){wre(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xre(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({x:t,y:n,top:r,left:i,width:o,height:a},function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,vre));return vY(t)&&vY(n)&&vY(o)&&vY(a)&&vY(r)&&vY(i)?c.createElement("path",yre({},oee(l,!0),{className:(0,de.$)("recharts-cross",s),d:Are(t,n,o,a,r,i)})):null};var Sre=__webpack_require__(29035),_re=__webpack_require__.n(Sre);var kre=1e-4,Tre=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],Cre=(e,t)=>e.map(((e,n)=>e*t**n)).reduce(((e,t)=>e+t)),Ore=(e,t)=>n=>{var r=Tre(e,t);return Cre(r,n)},Nre=function(){for(var e,t,n,r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];if(1===o.length)switch(o[0]){case"linear":[e,n,t,r]=[0,0,1,1];break;case"ease":[e,n,t,r]=[.25,.1,.25,1];break;case"ease-in":[e,n,t,r]=[.42,0,1,1];break;case"ease-out":[e,n,t,r]=[.42,0,.58,1];break;case"ease-in-out":[e,n,t,r]=[0,0,.58,1];break;default:var s=o[0].split("(");"cubic-bezier"===s[0]&&4===s[1].split(")")[0].split(",").length&&([e,n,t,r]=s[1].split(")")[0].split(",").map((e=>parseFloat(e))))}else 4===o.length&&([e,n,t,r]=o);var l,c,u=Ore(e,t),d=Ore(n,r),p=(l=e,c=t,e=>{var t=[...Tre(l,c).map(((e,t)=>e*t)).slice(1),0];return Cre(t,e)}),h=e=>{for(var t,n=e>1?1:e,r=n,i=0;i<8;++i){var o=u(r)-n,a=p(r);if(Math.abs(o-n)<kre||a<kre)return d(r);r=(t=r-o/a)>1?1:t<0?0:t}return d(r)};return h.isStepper=!1,h},Ire=e=>{if("string"===typeof e)switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Nre(e);case"spring":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{stiff:t=100,damping:n=8,dt:r=17}=e,i=(e,i,o)=>{var a=o+(-(e-i)*t-o*n)*r/1e3,s=o*r/1e3+e;return Math.abs(s-i)<kre&&Math.abs(a)<kre?[i,0]:[s,a]};return i.isStepper=!0,i.dt=r,i}();default:if("cubic-bezier"===e.split("(")[0])return Nre(e)}return"function"===typeof e?e:null};function Rre(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pre(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rre(Object(n),!0).forEach((function(t){jre(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rre(Object(n)).forEac
155h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jre(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mre=(e,t)=>Object.keys(t).reduce(((n,r)=>Pre(Pre({},n),{},{[r]:e(r,t[r])})),{});function Dre(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lre(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dre(Object(n),!0).forEach((function(t){Fre(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dre(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fre(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bre=(e,t,n)=>e+(t-e)*n,Ure=e=>{var{from:t,to:n}=e;return t!==n},zre=(e,t,n)=>{var r=Mre(((t,n)=>{if(Ure(n)){var[r,i]=e(n.from,n.to,n.velocity);return Lre(Lre({},n),{},{from:r,velocity:i})}return n}),t);return n<1?Mre(((e,t)=>Ure(t)?Lre(Lre({},t),{},{velocity:Bre(t.velocity,r[e].velocity,n),from:Bre(t.from,r[e].from,n)}):t),t):zre(e,r,n-1)};function Hre(e,t,n,r,i,o){var a,s=r.reduce(((n,r)=>Lre(Lre({},n),{},{[r]:{from:e[r],velocity:0,to:t[r]}})),{}),l=null,c=r=>{a||(a=r);var u=(r-a)/n.dt;s=zre(n,s,u),i(Lre(Lre(Lre({},e),t),Mre(((e,t)=>t.from),s))),a=r,Object.values(s).filter(Ure).length&&(l=o.setTimeout(c))};return()=>(l=o.setTimeout(c),()=>{l()})}var $re=(e,t,n,r,i,o)=>{var a,s,l=(a=e,s=t,[Object.keys(a),Object.keys(s)].reduce(((e,t)=>e.filter((e=>t.includes(e))))));return!0===n.isStepper?Hre(e,t,n,l,i,o):function(e,t,n,r,i,o,a){var s,l=null,c=i.reduce(((n,r)=>Lre(Lre({},n),{},{[r]:[e[r],t[r]]})),{}),u=i=>{s||(s=i);var d=(i-s)/r,p=Mre(((e,t)=>Bre(...t,n(d))),c);if(o(Lre(Lre(Lre({},e),t),p)),d<1)l=a.setTimeout(u);else{var h=Mre(((e,t)=>Bre(...t,n(1))),c);o(Lre(Lre(Lre({},e),t),h))}};return()=>(l=a.setTimeout(u),()=>{l()})}(e,t,n,r,l,i,o)};class Vre{setTimeout(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=performance.now(),r=null,i=o=>{o-n>=t?e(o):"function"===typeof requestAnimationFrame&&(r=requestAnimationFrame(i))};return r=requestAnimationFrame(i),()=>{cancelAnimationFrame(r)}}}var Gre=["children","begin","duration","attributeName","easing","isActive","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart","animationManager"];function Wre(){return Wre=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wre.apply(null,arguments)}function qre(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yre(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qre(Object(n),!0).forEach((function(t){Kre(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qre(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kre(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xre(){return function(e){var t=()=>null,n=!1,r=null,i=o=>
155{if(!n){if(Array.isArray(o)){if(!o.length)return;var a=o,[s,...l]=a;return"number"===typeof s?void(r=e.setTimeout(i.bind(null,l),s)):(i(s),void(r=e.setTimeout(i.bind(null,l))))}"object"===typeof o&&t(o),"function"===typeof o&&o()}};return{stop:()=>{n=!0},start:e=>{n=!1,r&&(r(),r=null),i(e)},subscribe:e=>(t=e,()=>{t=()=>null}),getTimeoutController:()=>e}}(new Vre)}class Zre extends c.PureComponent{constructor(e,t){super(e,t),Kre(this,"mounted",!1),Kre(this,"manager",null),Kre(this,"stopJSAnimation",null),Kre(this,"unSubscribe",null);var{isActive:n,attributeName:r,from:i,to:o,children:a,duration:s,animationManager:l}=this.props;if(this.manager=l,this.handleStyleChange=this.handleStyleChange.bind(this),this.changeStyle=this.changeStyle.bind(this),!n||s<=0)return this.state={style:{}},void("function"===typeof a&&(this.state={style:o}));if(i){if("function"===typeof a)return void(this.state={style:i});this.state={style:r?{[r]:i}:i}}else this.state={style:{}}}componentDidMount(){var{isActive:e,canBegin:t}=this.props;this.mounted=!0,e&&t&&this.runAnimation(this.props)}componentDidUpdate(e){var{isActive:t,canBegin:n,attributeName:r,shouldReAnimate:i,to:o,from:a}=this.props,{style:s}=this.state;if(n)if(t){if(!(_re()(e.to,o)&&e.canBegin&&e.isActive)){var l=!e.canBegin||!e.isActive;this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var c=l||i?a:e.to;if(this.state&&s){var u={style:r?{[r]:c}:c};(r&&s[r]!==c||!r&&s!==c)&&this.setState(u)}this.runAnimation(Yre(Yre({},this.props),{},{from:c,begin:0}))}}else{var d={style:r?{[r]:o}:o};this.state&&s&&(r&&s[r]!==o||!r&&s!==o)&&this.setState(d)}}componentWillUnmount(){this.mounted=!1;var{onAnimationEnd:e}=this.props;this.unSubscribe&&this.unSubscribe(),this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation(),e&&e()}handleStyleChange(e){this.changeStyle(e)}changeStyle(e){this.mounted&&this.setState({style:e})}runJSAnimation(e){var{from:t,to:n,duration:r,easing:i,begin:o,onAnimationEnd:a,onAnimationStart:s}=e,l=$re(t,n,Ire(i),r,this.changeStyle,this.manager.getTimeoutController());this.manager.start([s,o,()=>{this.stopJSAnimation=l()},r,a])}runAnimation(e){var{begin:t,duration:n,attributeName:r,to:i,easing:o,onAnimationStart:a,onAnimationEnd:s,children:l}=e;if(this.unSubscribe=this.manager.subscribe(this.handleStyleChange),"function"!==typeof o&&"function"!==typeof l&&"spring"!==o){var c=r?{[r]:i}:i,u=((e,t,n)=>e.map((e=>{return"".concat((r=e,r.replace(/([A-Z])/g,(e=>"-".concat(e.toLowerCase()))))," ").concat(t,"ms ").concat(n);var r})).join(","))(Object.keys(c),n,o);this.manager.start([a,t,Yre(Yre({},c),{},{transition:u}),n,s])}else this.runJSAnimation(e)}render(){var e=this.props,{children:t,begin:n,duration:r,attributeName:i,easing:o,isActive:a,from:s,to:l,canBegin:u,onAnimationEnd:d,shouldReAnimate:p,onAnimationReStart:h,animationManager:f}=e,m=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,Gre),g=c.Children.count(t),b=this.state.style;if("function"===typeof t)return t(b);if(!a||0===g||r<=0)return t;var v=e=>{var{style:t={},className:n}=e.props;return(0,c.cloneElement)(e,Yre(Yre({},m),{},{style:Yre(Yre({},t),b),className:n}))};return 1===g?v(c.Children.only(t)):c.createElement("div",null,c.Children.map(t,(e=>v(e))))}}Kre(Zre,"displayName","Animate"),Kre(Zre,"defaultProps",{begin:0,duration:1e3,attributeName:"",easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}});var Qre=(0,c.createContext)(null);function Jre(e){var t,n,r=(0,c.useContext)(Qre);return c.createElement(Zre,Wre({},e,{animationManager:null!==(t=null!==(n=e.animationManager)&&void 0!==n?n:r)&&void 0!==t?t:Xre()}))}function eie(){return eie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eie.apply(null,arguments)}var tie=(e,t,n,r,i)=>{var o,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),s=r>=0?1:-1,l=n>=0?1:-1,c=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&i instanceof Array){for(var u=[0,0,0,0],d=0;d<4;d++)u[d]=i[d]>a?a:i[d];o="M".concat(e,",").concat(t+s*u[0]),u[0]>0&&(o+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(c,",").concat(e+l*u[0],",").concat(t)),o+="L ".concat(e+n-l*u[1],",").concat(t),u[1]>0&&(o+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(c,",\n        ").concat(e+n,",").concat(t+s*u[1])),o+="L ".concat(e+n,",").concat(t+r-s*u[2]),u[2]>0&&(o+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(c,",\n        ").concat(e+n-l*u[2],",").concat(t+r)),o+="L ".concat(e+l*u[3],",").concat(t+r),u[3]>0&&(o+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(c,",\n        ").concat(e,",").concat(t+r-s*u[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var p=Math.min(a,i);o="M ".concat(e,",").concat(t+s*p,"\n            A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e+l*p,",").concat(t,"\n            L ").concat(e+n-l*p,",").concat(t,"\n            A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e+n,",").concat(t+s*p,"\n            L ").concat(e+n,",").concat(t+r-s*p,"\n            A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e+n-l*p,",").concat(t+r,"\n            L ").concat(e+l*p,",").concat(t+r,"\n            A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e,",").concat(t+r-s*p," Z")}else o="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return o},nie={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},rie=e=>{var t=Fee(e,nie),n=(0,c.useRef)(null),[r,i]=(0,c.useState)(-1);(0,c.useEffect)((()=>
155{if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&i(e)}catch(t){}}),[]);var{x:o,y:a,width:s,height:l,radius:u,className:d}=t,{animationEasing:p,animationDuration:h,animationBegin:f,isAnimationActive:m,isUpdateAnimationActive:g}=t;if(o!==+o||a!==+a||s!==+s||l!==+l||0===s||0===l)return null;var b=(0,de.$)("recharts-rectangle",d);return g?c.createElement(Jre,{canBegin:r>0,from:{width:s,height:l,x:o,y:a},to:{width:s,height:l,x:o,y:a},duration:h,animationEasing:p,isActive:g},(e=>{var{width:i,height:o,x:a,y:s}=e;return c.createElement(Jre,{canBegin:r>0,from:"0px ".concat(-1===r?1:r,"px"),to:"".concat(r,"px 0px"),attributeName:"strokeDasharray",begin:f,duration:h,isActive:m,easing:p},c.createElement("path",eie({},oee(t,!0),{className:b,d:tie(a,s,i,o,u),ref:n})))})):c.createElement("path",eie({},oee(t,!0),{className:b,d:tie(o,a,s,l,u)}))};function iie(e){var{cx:t,cy:n,radius:r,startAngle:i,endAngle:o}=e;return{points:[AQ(t,n,r,i),AQ(t,n,r,o)],cx:t,cy:n,radius:r,startAngle:i,endAngle:o}}function oie(){return oie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oie.apply(null,arguments)}var aie=e=>{var{cx:t,cy:n,radius:r,angle:i,sign:o,isExternal:a,cornerRadius:s,cornerIsExternal:l}=e,c=s*(a?1:-1)+r,u=Math.asin(s/c)/xQ,d=l?i:i+o*u,p=l?i-o*u:i;return{center:AQ(t,n,c,d),circleTangency:AQ(t,n,r,d),lineTangency:AQ(t,n,c*Math.cos(u*xQ),p),theta:u}},sie=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:o,endAngle:a}=e,s=((e,t)=>mY(t-e)*Math.min(Math.abs(t-e),359.999))(o,a),l=o+s,c=AQ(t,n,i,o),u=AQ(t,n,i,l),d="M ".concat(c.x,",").concat(c.y,"\n    A ").concat(i,",").concat(i,",0,\n    ").concat(+(Math.abs(s)>180),",").concat(+(o>l),",\n    ").concat(u.x,",").concat(u.y,"\n  ");if(r>0){var p=AQ(t,n,r,o),h=AQ(t,n,r,l);d+="L ".concat(h.x,",").concat(h.y,"\n            A ").concat(r,",").concat(r,",0,\n            ").concat(+(Math.abs(s)>180),",").concat(+(o<=l),",\n            ").concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(t,",").concat(n," Z");return d},lie={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},cie=e=>{var t=Fee(e,lie),{cx:n,cy:r,innerRadius:i,outerRadius:o,cornerRadius:a,forceCornerRadius:s,cornerIsExternal:l,startAngle:u,endAngle:d,className:p}=t;if(o<i||u===d)return null;var h,f=(0,de.$)("recharts-sector",p),m=o-i,g=AY(a,m,0,!0);return h=g>0&&Math.abs(u-d)<360?(e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,cornerRadius:o,forceCornerRadius:a,cornerIsExternal:s,startAngle:l,endAngle:c}=e,u=mY(c-l),{circleTangency:d,lineTangency:p,theta:h}=aie({cx:t,cy:n,radius:i,angle:l,sign:u,cornerRadius:o,cornerIsExternal:s}),{circleTangency:f,lineTangency:m,theta:g}=aie({cx:t,cy:n,radius:i,angle:c,sign:-u,cornerRadius:o,cornerIsExternal:s}),b=s?Math.abs(l-c):Math.abs(l-c)-h-g;if(b<0)return a?"M ".concat(p.x,",").concat(p.y,"\n        a").concat(o,",").concat(o,",0,0,1,").concat(2*o,",0\n        a").concat(o,",").concat(o,",0,0,1,").concat(2*-o,",0\n      "):sie({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:l,endAngle:c});var v="M ".concat(p.x,",").concat(p.y,"\n    A").concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(d.x,",").concat(d.y,"\n    A").concat(i,",").concat(i,",0,").concat(+(b>180),",").concat(+(u<0),",").concat(f.x,",").concat(f.y,"\n    A").concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(m.x,",").concat(m.y,"\n  ");if(r>0){var{circleTangency:y,lineTangency:x,theta:w}=aie({cx:t,cy:n,radius:r,angle:l,sign:u,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),{circleTangency:A,lineTangency:E,theta:S}=aie({cx:t,cy:n,radius:r,angle:c,sign:-u,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),_=s?Math.abs(l-c):Math.abs(l-c)-w-S;if(_<0&&0===o)return"".concat(v,"L").concat(t,",").concat(n,"Z");v+="L".concat(E.x,",").concat(E.y,"\n      A").concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(A.x,",").concat(A.y,"\n      A").concat(r,",").concat(r,",0,").concat(+(_>180),",").concat(+(u>0),",").concat(y.x,",").concat(y.y,"\n      A").concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(x.x,",").concat(x.y,"Z")}else v+="L".concat(t,",").concat(n,"Z");return v})({cx:n,cy:r,innerRadius:i,outerRadius:o,cornerRadius:Math.min(g,m/2),forceCornerRadius:s,cornerIsExternal:l,startAngle:u,endAngle:d}):sie({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:u,endAngle:d}),c.createElement("path",oie({},oee(t,!0),{className:f,d:h}))};function uie(e,t,n){var r,i,o,a;if("horizontal"===e)o=r=t.x,i=n.top,a=n.top+n.height;
155else if("vertical"===e)a=i=t.y,r=n.left,o=n.left+n.width;else if(null!=t.cx&&null!=t.cy){if("centric"!==e)return iie(t);var{cx:s,cy:l,innerRadius:c,outerRadius:u,angle:d}=t,p=AQ(s,l,c,d),h=AQ(s,l,u,d);r=p.x,i=p.y,o=h.x,a=h.y}return[{x:r,y:i},{x:o,y:a}]}function die(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?die(Object(n),!0).forEach((function(t){hie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):die(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hie(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fie=()=>{var e=sQ(O8),t=sQ(i9),n=sQ(t9);return BQ(pie(pie({},e),{},{scale:n}),t)};function mie(){return mie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mie.apply(null,arguments)}function gie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gie(Object(n),!0).forEach((function(t){vie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vie(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yie(e){var t,n,{coordinate:r,payload:i,index:o,offset:a,tooltipAxisBandSize:s,layout:l,cursor:u,tooltipEventType:d,chartName:p}=e,h=r,f=i,m=o;if(!u||!h||"ScatterChart"!==p&&"axis"!==d)return null;if("ScatterChart"===p)t=h,n=Ere;else if("BarChart"===p)t=function(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?t.x-i:n.left+.5,y:"horizontal"===e?n.top+.5:t.y-i,width:"horizontal"===e?r:n.width-1,height:"horizontal"===e?n.height-1:r}}(l,h,a,s),n=rie;else if("radial"===l){var{cx:g,cy:b,radius:v,startAngle:y,endAngle:x}=iie(h);t={cx:g,cy:b,startAngle:y,endAngle:x,innerRadius:v,outerRadius:v},n=cie}else t={points:uie(l,h,a)},n=bre;var w="object"===typeof u&&"className"in u?u.className:void 0,A=bie(bie(bie(bie({stroke:"#ccc",pointerEvents:"none"},a),t),oee(u,!1)),{},{payload:f,payloadIndex:m,className:(0,de.$)("recharts-tooltip-cursor",w)});return(0,c.isValidElement)(u)?(0,c.cloneElement)(u,A):(0,c.createElement)(n,A)}function xie(e){var t=fie(),n=(()=>{var e;return null!==(e=sQ(ZQ))&&void 0!==e?e:oJ})(),r=sJ(),i=sQ(Y5);return c.createElement(yie,mie({},e,{coordinate:e.coordinate,index:e.index,payload:e.payload,offset:n,layout:r,tooltipAxisBandSize:t,chart
155Name:i}))}function wie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Aie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wie(Object(n),!0).forEach((function(t){Eie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Eie(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sie(e){return e.dataKey}var _ie=[],kie={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,isAnimationActive:!Kee,itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function Tie(e){var t=Fee(e,kie),{active:n,allowEscapeViewBox:r,animationDuration:i,animationEasing:o,content:a,filterNull:l,isAnimationActive:u,offset:d,payloadUniqBy:p,position:h,reverseDirection:f,useTranslate3d:m,wrapperStyle:g,cursor:b,shared:v,trigger:y,defaultIndex:x,portal:w,axisId:A}=t,E=rQ(),S="number"===typeof x?String(x):x;(0,c.useEffect)((()=>{E(kZ({shared:v,trigger:y,axisId:A,active:n,defaultIndex:S}))}),[E,v,y,A,n,S]);var _=iJ(),k=aee(),T=function(e){return sQ((t=>p8(t,e)))}(v),{activeIndex:C,isActive:O}=sQ((e=>C9(e,T,y,S))),N=sQ((e=>T9(e,T,y,S))),I=sQ((e=>k9(e,T,y,S))),R=sQ((e=>_9(e,T,y,S))),P=N,j=(0,c.useContext)(Eee),M=null!==n&&void 0!==n?n:O,[D,L]=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[t,n]=(0,c.useState)({height:0,left:0,top:0,width:0}),r=(0,c.useCallback)((e=>{if(null!=e){var r=e.getBoundingClientRect(),i={height:r.height,left:r.left,top:r.top,width:r.width};(Math.abs(i.height-t.height)>1||Math.abs(i.left-t.left)>1||Math.abs(i.top-t.top)>1||Math.abs(i.width-t.width)>1)&&n({height:i.height,left:i.left,top:i.top,width:i.width})}}),[t.width,t.height,t.top,t.left,...e]);return[t,r]}([P,M]),F="axis"===T?I:void 0;Aee(T,y,R,F,C,M);var B=null!==w&&void 0!==w?w:j;if(null==B)return null;var U=null!==P&&void 0!==P?P:_ie;M||(U=_ie),l&&U.length&&(U=function(e,t,n){return!0===t?Ine()(e,n):"function"===typeof t?Ine()(e,t):e}(P.filter((e=>null!=e.value&&(!0!==e.hide||t.includeHidden))),p,Sie));var z=U.length>0,H=c.createElement(One,{allowEscapeViewBox:r,animationDuration:i,animationEasing:o,isAnimationActive:u,active:M,coordinate:R,hasPayload:z,offset:d,position:h,reverseDirection:f,useTranslate3d:m,viewBox:_,wrapperStyle:g,lastBoundingBox:D,innerRef:L,hasPortalFromProps:Boolean(w)},function(e,t){return c.isValidElement(e)?c.cloneElement(e,t):"function"===typeof e?c.createElement(e,t):c.createElement(wne,t)}(a,Aie(Aie({},t),{},{payload:U,label:F,active:M,coordinate:R,accessibilityLayer:k})));return c.createElement(c.Fragment,null,(0,s.createPortal)(H,B),M&&c.createElement(xie,{cursor:b,tooltipEventType:T,coordinate:R,payload:P,index:C}))}function Cie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cie(Object(n),!0).forEach((function(t){Nie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nie(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Iie(e){var t=rQ(),n=(0,c.useRef)(null);return(0,c.useEffect)((()=>{var r=Oie(Oie({},e),{},{stackId:jQ(e.stackId)});null===n.current?t(Z9(r)):n.current!==r&&t(Q9({prev:n.current,next:r})),n.current=r}),[t,e]),(0,c.useEffect)((()=>()=>{n.current&&(t(J9(n.current)),n.current=null)}),[t]),null}var Rie=["children"];var Pie=()=>{},jie=(0,c.createContext)({addErrorBar:Pie,removeErrorBar:Pie}),Mie={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},Die=(0,c.createContext)(Mie);function Lie(e){var{children:t}=e,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,Rie);return c.createElement(Die.Provider,{value:n},t)}var Fie=e=>{var{children:t,xAxisId:n,yAxisId:r,zAxisId:i,dataKey:o,data:a,stackId:s,hide:l,type:u,barSize:d}=e,[p,h]=c.useState([]),f=(0,c.useCallback)((e=>{h((t=>[...t,e]))}),[h]),m=(0,c.useCallback)((e=>{h((t=>t.filter((t=>t!==e))))}),[h]),g=tJ();return c.createElement(jie.Provider,{value:{addErrorBar:f,removeErrorBar:m}},c.createElement(Iie,{type:u,data:a,xAxisId:n,yAxisId:r,zAxisId:i,dataKey:o,errorBars:p,stackId:s,hide:l,barSize:d,isPanorama:g}),t)};function Bie(e){var{addErrorBar:t,removeErrorBar:n}=(0,c.useContext)(jie);return(0,c.useEffect)((()=>(t(e),()=>{n(e)})),[t,n,e]),null}var Uie=["direction","width","dataKey","isAnimationActive","animationBegin","animationDuration","animationEasing"];function zie(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hie(){return Hie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hie.apply(null,arguments)}function $ie(e){var{direction:t,width:n,dataKey:r,isAnimationActive:i,animationBegin:o,animationDuration:a,animationEasing:s}=e,l=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,Uie),u=oee(l,!1),{data:d,dataPointFormatter:p,xAxisId:h,yAxisId:f,errorBarOffset:m}=(0,c.useContext)(Die),g=(e=>{var t=tJ();return sQ((n=>a8(n,"xAxis",e,t)))})(h),b=(e=>{var t=tJ();return sQ((n=>a8(n,"yAxis",e,t)))})(f);if(null==(null===g||void 0===g?void 0:g.scale)||null==(null===b||void 0===b?void 0:b.scale)||null==d)return null;if("x"===t&&"number"!==g.type)return null;var v=d.map((e=>{var{x:l,y:d,value:h,errorVal:f}=p(e,r,t);if(!f)return null;var v,y,x=[];if(Array.isArray(f)?[v,y]=f:v=y=f,"x"===t){var{scale:w}=g,A=d+m,E=A+n,S=A-n,_=w(h-v),k=w(h+y);x.push({x1:k,y1:E,x2:k,y2:S}),x.push({x1:_,y1:A,x2:k,y2:A}),x.push({x1:_,y1:E,x2:_,y2:S})}else if("y"===t){var{scale:T}=b,C=l+m,O=C-n,N=C+n,I=T(h-v),R=T(h+y);x.push({x1:O,y1:R,x2:N,y2:R}),x.push({x1:C,y1:I,x2:C,y2:R}),x.push({x1:O,y1:I,x2:N,y2:I})}var P="".concat(l+m,"px ").concat(d+m,"px");return c.createElement(Yee,Hie({className:"recharts-errorBar",key:"bar-".concat(x.map((e=>"".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2))))},u),x.map((e=>{var t=i?{transformOrigin:"".concat(e.x1-5,"px")}:void 0;return c.createElement(Jre,{from:{transform:"scaleY(0)",transformOrigin:P},to:{transform:"scaleY(1)",transformOrigin:P},begin:o,easing:s,isActive:i,duration:a,key:"line-".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2),style:{transformOrigin:P}},c.createElement("line",Hie({},e,{style:t})))})))}));return c.createElement(Yee,{className:"recharts-errorBars"},v)}var Vie=(0,c.createContext)(void 0);function Gie(e){var{direction:t,children:n}=e;return c.createElement(Vie.Provider,{value:t},n)}var Wie={stroke:"black",strokeWidth:1.5,width:5,offset:0,isAnimationActive:!0,animationBegin:0,animationDuration:400,animationEasing:"ease-in-out"};function qie(e){var t=function(e){var t=(0,c.useContext)(Vie);return null!=e?e:null!=t?t:"x"}(e.direction),{width:n,isAnimationActive:r,animationBegin:i,animationDuration:o,animationEasing:a}=Fee(e,Wie);return c.createElement(c.Fragment,null,c.createElement(Bie,{dataKey:e.dataKey,direction:t}),c.createElement($ie,Hie({},e,{direction:t,width:n,isAnimationActive:r,animationBegin:i,animationDuration:o,animationEasing:a})))}class Yie extends c.Component{render(){return c.createElement(qie,this.props)}}zie(Yie,"defaultProps",Wie),zie(Yie,"displayName","ErrorBar");var Kie=e=>null;Kie.displayName="Cell";var Xie=__webpack_require__(76667),Zie=__webpack_require__.n(Xie),Qie=["valueAccessor"],Jie=["data","dataKey","clockWise","id","textBreakAll"];function eoe(){return eoe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eoe.apply(null,arguments)}function toe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function noe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
vendor: 5,971 bytes, line 155
155t%2?toe(Object(n),!0).forEach((function(t){roe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):toe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function roe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ioe(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var ooe=e=>Array.isArray(e.value)?Zie()(e.value):e.value;function aoe(e){var{valueAccessor:t=ooe}=e,n=ioe(e,Qie),{data:r,dataKey:i,clockWise:o,id:a,textBreakAll:s}=n,l=ioe(n,Jie);return r&&r.length?c.createElement(Yee,{className:"recharts-label-list"},r.map(((e,n)=>{var r=_Y(i)?t(e,n):OQ(e&&e.payload,i),u=_Y(a)?{}:{id:"".concat(a,"-").concat(n)};return c.createElement(jte,eoe({},oee(e,!0),l,u,{parentViewBox:e.parentViewBox,value:r,textBreakAll:s,viewBox:jte.parseViewBox(_Y(o)?e:noe(noe({},e),{},{clockWise:o})),key:"label-".concat(n),index:n}))}))):null}aoe.displayName="LabelList",aoe.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var{children:r}=e,i=iee(r,aoe).map(((e,n)=>(0,c.cloneElement)(e,{data:t,key:"labelList-".concat(n)})));return n?[function(e,t){return e?!0===e?c.createElement(aoe,{key:"labelList-implicit",data:t}):c.isValidElement(e)||Rte(e)?c.createElement(aoe,{key:"labelList-implicit",data:t,content:e}):"object"===typeof e?c.createElement(aoe,eoe({data:t},e,{key:"labelList-implicit"})):null:null}(e.label,t),...i]:i};var soe="Invariant failed";var loe=__webpack_require__(52540),coe=__webpack_require__.n(loe);function uoe(){return uoe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uoe.apply(null,arguments)}var doe=(e,t,n,r,i)=>{var o,a=n-r;return o="M ".concat(e,",").concat(t),o+="L ".concat(e+n,",").concat(t),o+="L ".concat(e+n-a/2,",").concat(t+i),o+="L ".concat(e+n-a/2-r,",").concat(t+i),o+="L ".concat(e,",").concat(t," Z")},poe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},hoe=e=>{var t=Fee(e,poe),n=(0,c.useRef)(),[r,i]=(0,c.useState)(-1);(0,c.useEffect)((()=>{if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&i(e)}catch(t){}}),[]);var{x:o,y:a,upperWidth:s,lowerWidth:l,height:u,className:d}=t,{animationEasing:p,animationDuration:h,animationBegin:f,isUpdateAnimationActive:m}=t;if(o!==+o||a!==+a||s!==+s||l!==+l||u!==+u||0===s&&0===l||0===u)return null;var g=(0,de.$)("recharts-trapezoid",d);return m?c.createElement(Jre,{canBegin:r>0,from:{upperWidth:0,lowerWidth:0,height:u,x:o,y:a},to:{upperWidth:s,lowerWidth:l,height:u,x:o,y:a},duration:h,animationEasing:p,isActive:m},(e=>{var{upperWidth:i,lowerWidth:o,height:a,x:s,y:l}=e;return c.createElement(Jre,{canBegin:r>0,from:"0px ".concat(-1===r?1:r,"px"),to:"".concat(r,"px 0px"),attributeName:"strokeDasharray",begin:f,duration:h,easing:p},c.createElement("path",uoe({},oee(t,!0),{className:g,d:doe(s,l,i,o,a),ref:n})))})):c.createElement("g",null,c.createElement("path",uoe({},oee(t,!0),{className:g,d:doe(o,a,s,l,u)})))};Math.abs,Math.atan2;const foe=Math.cos,moe=(Math.max,Math.min,Math.sin),goe=Math.sqrt,boe=Math.PI,voe=2*boe;var yoe={draw(e,t){const n=goe(t/boe);e.moveTo(n,0),e.arc(0,0,n,0,voe)}},xoe={draw(e,t){const n=goe(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}};const woe=goe(1/3),Aoe=2*woe;var Eoe={draw(e,t){const n=goe(t/Aoe),r=n*woe;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Soe={draw(e,t){const n=goe(t),r=-n/2;e.rect(r,r,n,n)}};const _oe=moe(boe/10)/moe(7*boe/10),koe=moe(voe/10)*_oe,Toe=-foe(voe/10)*_oe;var Coe={draw(e,t){const n=goe(.8908130915292852*t),r=koe*n,i=Toe*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const t=voe*o/5,a=foe(t),s=moe(t);e.lineTo(s*n,-a*n),e.lineTo(a*r-s*i,s*r+a*i)}e.closePath()}};const Ooe=goe(3);var Noe={draw(e,t){const n=-goe(t/(3*Ooe));e.moveTo(0,2*n),e.lineTo(-Ooe*n,-n),e.lineTo(Ooe*n,-n),e.closePath()}};const Ioe=-.5,Roe=goe(3)/2,Poe=1/goe(12),joe=3*(Poe/2+1);var Moe={draw(e,t){const n=goe(t/joe),r=n/2,i=n*Poe,o=r,a=n*Poe+n,s=-o,l=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,l),e.lineTo(Ioe*r-Roe*i,Roe*r+Ioe*i),e.lineTo(Ioe*o-Roe*a,Roe*o+Ioe*a),e.lineTo(Ioe*s-Roe*l,Roe*s+Ioe*l),e.lineTo(Ioe*r+Roe*i,Ioe*i-Roe*r),e.lineTo(Ioe*o+Roe*a,Ioe*a-Roe*o),e.lineTo(Ioe*s+Roe*l,Ioe*l-Roe*s),e.closePath()}};goe(3);goe(3);var Doe=["type","size","sizeType"];function Loe(){return Loe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Loe.apply(null,arguments)}function Foe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Boe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
155t%2?Foe(Object(n),!0).forEach((function(t){Uoe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Foe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Uoe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zoe={symbolCircle:yoe,symbolCross:xoe,symbolDiamond:Eoe,symbolSquare:Soe,symbolStar:Coe,symbolTriangle:Noe,symbolWye:Moe},Hoe=Math.PI/180,$oe=e=>{var{type:t="circle",size:n=64,sizeType:r="area"}=e,i=Boe(Boe({},function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,Doe)),{},{type:t,size:n,sizeType:r}),{className:o,cx:a,cy:s}=i,l=oee(i,!0);return a===+a&&s===+s&&n===+n?c.createElement("path",Loe({}
155,l,{className:(0,de.$)("recharts-symbols",o),transform:"translate(".concat(a,", ").concat(s,")"),d:(()=>{var e=(e=>{var t="symbol".concat(kY(e));return zoe[t]||yoe})(t),i=function(e,t){let n=null,r=rre(i);function i(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return e="function"===typeof e?e:hQ(e||yoe),t="function"===typeof t?t:hQ(void 0===t?64:+t),i.type=function(t){return arguments.length?(e="function"===typeof t?t:hQ(t),i):e},i.size=function(e){return arguments.length?(t="function"===typeof e?e:hQ(+e),i):t},i.context=function(e){return arguments.length?(n=null==e?null:e,i):n},i}().type(e).size(((e,t,n)=>{if("area"===t)return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var r=18*Hoe;return 1.25*e*e*(Math.tan(r)-Math.tan(2*r)*Math.tan(r)**2);case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}})(n,r,t));return i()})()})):null};$oe.registerSymbol=(e,t)=>{zoe["symbol".concat(kY(e))]=t};var Voe=["option","shapeType","propTransformer","activeClassName","isActive"];function Goe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Woe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Goe(Object(n),!0).forEach((function(t){qoe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Goe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qoe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yoe(e,t){return Woe(Woe({},t),e)}function Koe(e){var{shapeType:t,elementProps:n}=e;switch(t){case"rectangle":return c.createElement(rie,n);case"trapezoid":return c.createElement(hoe,n);case"sector":return c.createElement(cie,n);case"symbols":if(function(e){return"symbols"===e}(t))return c.createElement($oe,n);break;default:return null}}function Xoe(e){var t,{option:n,shapeType:r,propTransformer:i=Yoe,activeClassName:o="recharts-active-shape",isActive:a}=e,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,Voe);if((0,c.isValidElement)(n))t=(0,c.cloneElement)(n,Woe(Woe({},s),function(e){return(0,c.isValidElement)(e)?e.props:e}(n)));else if("function"===typeof n)t=n(s);else if(coe()(n)&&"boolean"!==typeof n){var l=i(n,s);t=c.createElement(Koe,{shapeType:r,elementProps:l})}else{var u=s;t=c.createElement(Koe,{shapeType:r,elementProps:u})}return a?c.createElement(Yee,{className:o},t):t}var Zoe=["x","y"];function Qoe(){return Qoe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qoe.apply(null,arguments)}function Joe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Joe(Object(n),!0).forEach((function(t){tae(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Joe(Object(n)).forEac
155h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tae(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nae(e,t){var{x:n,y:r}=e,i=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,Zoe),o="".concat(n),a=parseInt(o,10),s="".concat(r),l=parseInt(s,10),c="".concat(t.height||i.height),u=parseInt(c,10),d="".concat(t.width||i.width),p=parseInt(d,10);return eae(eae(eae(eae(eae({},t),i),a?{x:a}:{}),l?{y:l}:{}),{},{height:u,width:p,name:t.name,radius:t.radius})}function rae(e){return c.createElement(Xoe,Qoe({shapeType:"rectangle",propTransformer:nae,activeClassName:"recharts-active-bar"},e))}var iae=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(n,r)=>{if(vY(e))return e;var i=vY(n)||_Y(n);return i?e(n,r):(i||function(e){if(!e)throw new Error(soe)}(!1),t)}},oae=(e,t)=>{var n=rQ();return(r,i)=>o=>{null===e||void 0===e||e(r,i,o),n(TZ({activeIndex:String(i),activeDataKey:t,activeCoordinate:r.tooltipPosition}))}},aae=e=>{var t=rQ();return(n,r)=>i=>{null===e||void 0===e||e(n,r,i),t(CZ())}},sae=(e,t)=>{var n=rQ();return(r,i)=>o=>{null===e||void 0===e||e(r,i,o),n(NZ({activeIndex:String(i),activeDataKey:t,activeCoordinate:r.tooltipPosition}))}};function lae(e){var{fn:t,args:n}=e,r=rQ(),i=tJ();return(0,c.useEffect)((()=>{if(!i){var e=t(n);return r(SZ(e)),()=>{r(_Z(e))}}}),[t,n,r,i]),null}var cae=()=>{var e=rQ();return(0,c.useEffect)((()=>(e(K9()),()=>{e(X9())}))),null};function uae(e,t){var n,r,i=sQ((t=>C3(t,e))),o=sQ((e=>N3(e,t))),a=null!==(n=null===i||void 0===i?void 0:i.allowDataOverflow)&&void 0!==n?n:T3.allowDataOverflow,s=null!==(r=null===o||void 0===o?void 0:o.allowDataOverflow)&&void 0!==r?r:O3.allowDataOverflow;return{needClip:a||s,needClipX:a,needClipY:s}}function dae(e){var{xAxisId:t,yAxisId:n,clipPathId:r}=e,i=Iee(),{needClipX:o,needClipY:a,needClip:s}=uae(t,n);if(!s)return null;var{x:l,y:u,width:d,height:p}=i;return c.createElement("clipPath",{id:"clipPath-".concat(r)},c.createElement("rect",{x:o?l:l-d/2,y:a?u:u-p/2,width:o?d:2*d,height:a?p:2*p}))}function pae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pae(Object(n),!0).forEach((function(t){fae(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fae(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mae=(e,t,n,r,i)=>i,gae=(e,t,n)=>{var r=null!==n&&void 0!==n?n:e;if(!_Y(r))return AY(r,t,0)},bae=JZ([aJ,L3,(e,t)=>t,(e,t,n)=>n,(e,t,n,r)=>r],((e,t,n,r,i)=>t.filter((t=>"horizontal"===e?t.xAxisId===n:t.yAxisId===r)).filter((e=>e.isPanorama===i)).filter((e=>!1===e.hide)).filter((e=>"bar"===e.type))));function vae(e){return null!=e.stackId&&null!=e.dataKey}var yae=JZ([bae,e=>e.rootProps.barSize,(e,t,n)=>"horizontal"===aJ(e)?J6(e,"xAxis",t):J6(e,"yAxis",n)],((e,t,n)=>{var r=e.filter(vae),i=e.filter((e=>null==e.stackId)),o=r.reduce(((e,t)=>(e[t.stackId]||(e[t.stackId]=[]),e[t.stackId].push(t),e)),{});return[...Object.entries(o).map((e=>{var[r,i]=e;return{stackId:r,dataKeys:i.map((e=>e.dataKey)),barSize:gae(t,n,i[0].barSize)}})),...i.map((e=>({stackId:void 0,dataKeys:[e.dataKey].filter((e=>null!=e)),barSize:gae(t,n,e.barSize)})))]})),xae=(e,t,n,r)=>{var i,o;return"horizontal"===aJ(e)?(i=a8(e,"xAxis",t,r),o=o8(e,"xAxis",t,r)):(i=a8(e,"yAxis",n,r),o=o8(e,"yAxis",n,r)),BQ(i,o)};var wae=JZ([yae,G5,e=>e.rootProps.barGap,W5,(e,t,n,r,i)=>{var o,a,s,l,c=aJ(e),u=G5(e),{maxBarSize:d}=i,p=_Y(d)?u:d;return"horizontal"===c?(s=a8(e,"xAxis",t,r),l=o8(e,"xAxis",t,r)):(s=a8(e,"yAxis",n,r),l=o8(e,"yAxis",n,r)),null!==(o=null!==(a=BQ(s,l,!0))&&void 0!==a?a:p)&&void 0!==o?o:0},xae,(e,t,n,r,i)=>i.maxBarSize],((e,t,n,r,i,o,a)=>{var s=_Y(a)?t:a,l=function(e,t,n,r,i){var o=r.length;if(!(o<1)){var a,s=AY(e,n,0,!0),l=[];
155if(w5(r[0].barSize)){var c=!1,u=n/o,d=r.reduce(((e,t)=>e+(t.barSize||0)),0);(d+=(o-1)*s)>=n&&(d-=(o-1)*s,s=0),d>=n&&u>0&&(c=!0,d=o*(u*=.9));var p={offset:((n-d)/2|0)-s,size:0};a=r.reduce(((e,t)=>{var n,r=[...e,{stackId:t.stackId,dataKeys:t.dataKeys,position:{offset:p.offset+p.size+s,size:c?u:null!==(n=t.barSize)&&void 0!==n?n:0}}];return p=r[r.length-1].position,r}),l)}else{var h=AY(t,n,0,!0);n-2*h-(o-1)*s<=0&&(s=0);var f=(n-2*h-(o-1)*s)/o;f>1&&(f>>=0);var m=w5(i)?Math.min(f,i):f;a=r.reduce(((e,t,n)=>[...e,{stackId:t.stackId,dataKeys:t.dataKeys,position:{offset:h+(f+s)*n+(f-m)/2,size:m}}]),l)}return a}}(n,r,i!==o?i:o,e,s);return i!==o&&null!=l&&(l=l.map((e=>hae(hae({},e),{},{position:hae(hae({},e.position),{},{offset:e.position.offset-i/2})})))),l})),Aae=JZ([wae,mae],((e,t)=>{if(null!=e){var n=e.find((e=>e.stackId===t.stackId&&e.dataKeys.includes(t.dataKey)));if(null!=n)return n.position}})),Eae=JZ([L3,mae],((e,t)=>{if(e.some((e=>"bar"===e.type&&t.dataKey===e.dataKey&&t.stackId===e.stackId&&t.stackId===e.stackId)))return t})),Sae=JZ([(e,t,n,r)=>"horizontal"===aJ(e)?J3(e,"yAxis",n,r):J3(e,"xAxis",t,r),mae],((e,t)=>{if(e&&null!=(null===t||void 0===t?void 0:t.dataKey)){var{stackId:n}=t;if(null!=n){var r=e[n];if(r){var{stackedData:i}=r;if(i)return i.find((e=>e.key===t.dataKey))}}}})),_ae=JZ([ZQ,(e,t,n,r)=>a8(e,"xAxis",t,r),(e,t,n,r)=>a8(e,"yAxis",n,r),(e,t,n,r)=>o8(e,"xAxis",t,r),(e,t,n,r)=>o8(e,"yAxis",n,r),Aae,aJ,x5,xae,Sae,Eae,(e,t,n,r,i,o)=>o],((e,t,n,r,i,o,a,s,l,c,u,d)=>{var{chartData:p,dataStartIndex:h,dataEndIndex:f}=s;if(null!=u&&null!=o&&("horizontal"===a||"vertical"===a)&&null!=t&&null!=n&&null!=r&&null!=i&&null!=l){var m,{data:g}=u;if(null!=(m=null!=g&&g.length>0?g:null===p||void 0===p?void 0:p.slice(h,f+1)))return function(e){var{layout:t,barSettings:{dataKey:n,minPointSize:r},pos:i,bandSize:o,xAxis:a,yAxis:s,xAxisTicks:l,yAxisTicks:c,stackedData:u,displayedData:d,offset:p,cells:h}=e,f="horizontal"===t?s:a,m=u?f.scale.domain():null,g=(e=>{var{numericAxis:t}=e,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]})({numericAxis:f});return d.map(((e,d)=>{var f,b,v,y,x,w;u?f=((e,t)=>{if(!t||2!==t.length||!vY(t[0])||!vY(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!vY(e[0])||e[0]<n)&&(i[0]=n),(!vY(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i})(u[d],m):(f=OQ(e,n),Array.isArray(f)||(f=[g,f]));var A=iae(r,Hae)(f[1],d);if("horizontal"===t){var E,[S,_]=[s.scale(f[0]),s.scale(f[1])];b=MQ({axis:a,ticks:l,bandSize:o,offset:i.offset,entry:e,index:d}),v=null!==(E=null!==_&&void 0!==_?_:S)&&void 0!==E?E:void 0,y=i.size;var k=S-_;if(x=gY(k)?0:k,w={x:b,y:p.top,width:y,height:p.height},Math.abs(A)>0&&Math.abs(x)<Math.abs(A)){var T=mY(x||A)*(Math.abs(A)-Math.abs(x));v-=T,x+=T}}else{var[C,O]=[a.scale(f[0]),a.scale(f[1])];if(b=C,v=MQ({axis:s,ticks:c,bandSize:o,offset:i.offset,entry:e,index:d}),y=O-C,x=i.size,w={x:p.left,y:v,width:p.width,height:x},Math.abs(A)>0&&Math.abs(y)<Math.abs(A))y+=mY(y||A)*(Math.abs(A)-Math.abs(y))}return Pae(Pae({},e),{},{x:b,y:v,width:y,height:x,value:u?f:f[1],payload:e,background:w,tooltipPosition:{x:b+y/2,y:v+x/2}},h&&h[d]&&h[d].props)}))}({layout:a,barSettings:u,pos:o,bandSize:l,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,stackedData:c,displayedData:m,offset:e,cells:d})}})),kae=()=>{};function Tae(e){var{legendPayload:t}=e,n=rQ(),r=tJ();return(0,c.useEffect)((()=>r?kae:(n(v7(t)),()=>{n(y7(t))})),[n,r,t]),null}var Cae=["onMouseEnter","onMouseLeave","onClick"],Oae=["value","background","tooltipPosition"],Nae=["onMouseEnter","onClick","onMouseLeave"];function Iae(){return Iae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Iae.apply(null,arguments)}function Rae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
155t%2?Rae(Object(n),!0).forEach((function(t){jae(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jae(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mae(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Dae=e=>{var{dataKey:t,name:n,fill:r,legendType:i,hide:o}=e;return[{inactive:o,dataKey:t,type:i,color:r,value:zQ(n,t),payload:e}]};function Lae(e){var{dataKey:t,stroke:n,strokeWidth:r,fill:i,name:o,hide:a,unit:s}=e;return{dataDefinedOnItem:void 0,positions:void 0,settings:{stroke:n,strokeWidth:r,fill:i,dataKey:t,nameKey:void 0,name:zQ(o,t),hide:a,type:e.tooltipType,color:e.fill,unit:s}}}function Fae(e){var t=sQ(c9),{data:n,dataKey:r,background:i,allOtherBarProps:o}=e,{onMouseEnter:a,onMouseLeave:s,onClick:l}=o,u=Mae(o,Cae),d=oae(a,r),p=aae(s),h=sae(l,r);if(!i||null==n)return null;var f=oee(i,!1);return c.createElement(c.Fragment,null,n.map(((e,n)=>{var{value:o,background:a,tooltipPosition:s}=e,l=Mae(e,Oae);if(!a)return null;var m=d(e,n),g=p(e,n),b=h(e,n),v=Pae(Pae(Pae(Pae(Pae({option:i,isActive:String(n)===t},l),{},{fill:"#eee"},a),f),J7(u,e,n)),{},{onMouseEnter:m,onMouseLeave:g,onClick:b,dataKey:r,index:n,className:"recharts-bar-background-rectangle"});return c.createElement(rae,Iae({key:"background-bar-".concat(n)},v))})))}function Bae(e){var{data:t,props:n,showLabels:r}=e,i=oee(n,!1),{shape:o,dataKey:a,activeBar:s}=n,l=sQ(c9),u=sQ(d9),{onMouseEnter:d,onClick:p,onMouseLeave:h}=n,f=Mae(n,Nae),m=oae(d,a),g=aae(h),b=sae(p,a);return t?c.createElement(c.Fragment,null,t.map(((e,t)=>{var n=s&&String(t)===l&&(null==u||a===u),r=n?s:o,d=Pae(Pae(Pae({},i),e),{},{isActive:n,option:r,index:t,dataKey:a});return c.createElement(Yee,Iae({className:"recharts-bar-rectangle"},J7(f,e,t),{onMouseEnter:m(e,t),onMouseLeave:g(e,t),onClick:b(e,t),key:"rectangle-".concat(null===e||void 0===e?void 0:e.x,"-").concat(null===e||void 0===e?void 0:e.y,"-").concat(null===e||void 0===e?void 0:e.value,"-").concat(t)}),c.createElement(rae,d))})),r&&aoe.renderCallByParent(n,t)):null}function Uae(e){var{props:t,previousRectanglesRef:n}=e,{data:r,layout:i,isAnimationActive:o,animationBegin:a,animationDuration:s,animationEasing:l,onAnimationEnd:u,onAnimationStart:d}=t,p=n.current,h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"animation-",n=(0,c.useRef)(wY(t)),r=(0,c.useRef)(e);return r.current!==e&&(n.current=wY(t),r.current=e),n.current}(t,"recharts-bar-"),[f,m]=(0,c.useState)(!1),g=(0,c.useCallback)((()=>{"function"===typeof u&&u(),m(!1)}),[u]),b=(0,c.useCallback)((()=>{"function"===typeof d&&d(),m(!0)}),[d]);return c.createElement(Jre,{begin:a,duration:s,isActive:o,easing:l,from:{t:0},to:{t:1},onAnimationEnd:g,onAnimationStart:b,key:h},(e=>{var{t:o}=e,a=1===o?r:r.map(((e,t)=>{var n=p&&p[t];if(n){var r=SY(n.x,e.x),a=SY(n.y,e.y),s=SY(n.width,e.width),l=SY(n.height,e.height);return Pae(Pae({},e),{},{x:r(o),y:a(o),width:s(o),height:l(o)})}if("horizontal"===i){var c=SY(0,e.height)(o);return Pae(Pae({},e),{},{y:e.y+e.height-c,height:c})}var u=SY(0,e.width)(o);return Pae(Pae({},e),{},{width:u})}));return o>0&&(n.current=a),c.createElement(Yee,null,c.createElement(Bae,{props:t,data:a,showLabels:!f}))}))}function zae(e){var{data:t,isAnimationActive:n}=e,r=(0,c.useRef)(null);return n&&t&&t.length&&(null==r.current||r.current!==t)?c.createElement(Uae,{previousRectanglesRef:r,props:e}
155):c.createElement(Bae,{props:e,data:t,showLabels:!0})}var Hae=0,$ae=(e,t)=>{var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:OQ(e,t)}};class Vae extends c.PureComponent{constructor(){super(...arguments),jae(this,"id",wY("recharts-bar-"))}render(){var{hide:e,data:t,dataKey:n,className:r,xAxisId:i,yAxisId:o,needClip:a,background:s,id:l,layout:u}=this.props;if(e)return null;var d=(0,de.$)("recharts-bar",r),p=_Y(l)?this.id:l;return c.createElement(Yee,{className:d},a&&c.createElement("defs",null,c.createElement(dae,{clipPathId:p,xAxisId:i,yAxisId:o})),c.createElement(Yee,{className:"recharts-bar-rectangles",clipPath:a?"url(#clipPath-".concat(p,")"):null},c.createElement(Fae,{data:t,dataKey:n,background:s,allOtherBarProps:this.props}),c.createElement(zae,this.props)),c.createElement(Gie,{direction:"horizontal"===u?"y":"x"},this.props.children))}}var Gae={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",hide:!1,isAnimationActive:!Kee,legendType:"rect",minPointSize:Hae,xAxisId:0,yAxisId:0};function Wae(e){var t,{xAxisId:n,yAxisId:r,hide:i,legendType:o,minPointSize:a,activeBar:s,animationBegin:l,animationDuration:u,animationEasing:d,isAnimationActive:p}=Fee(e,Gae),{needClip:h}=uae(n,r),f=sJ(),m=tJ(),g=(0,c.useMemo)((()=>({barSize:e.barSize,data:void 0,dataKey:e.dataKey,maxBarSize:e.maxBarSize,minPointSize:a,stackId:jQ(e.stackId)})),[e.barSize,e.dataKey,e.maxBarSize,a,e.stackId]),b=iee(e.children,Kie),v=sQ((e=>_ae(e,n,r,m,g,b)));if("vertical"!==f&&"horizontal"!==f)return null;var y=null===v||void 0===v?void 0:v[0];return t=null==y||null==y.height||null==y.width?0:"vertical"===f?y.height/2:y.width/2,c.createElement(Lie,{xAxisId:n,yAxisId:r,data:v,dataPointFormatter:$ae,errorBarOffset:t},c.createElement(Vae,Iae({},e,{layout:f,needClip:h,data:v,xAxisId:n,yAxisId:r,hide:i,legendType:o,minPointSize:a,activeBar:s,animationBegin:l,animationDuration:u,animationEasing:d,isAnimationActive:p})))}class qae extends c.PureComponent{render(){return c.createElement(Fie,{type:"bar",data:null,xAxisId:this.props.xAxisId,yAxisId:this.props.yAxisId,zAxisId:0,dataKey:this.props.dataKey,stackId:this.props.stackId,hide:this.props.hide,barSize:this.props.barSize},c.createElement(cae,null),c.createElement(Tae,{legendPayload:Dae(this.props)}),c.createElement(lae,{fn:Lae,args:this.props}),c.createElement(Wae,this.props))}}jae(qae,"displayName","Bar"),jae(qae,"defaultProps",Gae);const Yae=(0,Ns.A)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),Kae=(0,Ns.A)("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),Xae=(0,Ns.A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var Zae=__webpack_require__(19647);function Qae(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function Jae(e){return parseFloat(e)}var ese=__webpack_require__(78099);function tse(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,Jl.A)(e,t,n)}function nse(e){if(e.type)return e;if("#"===e.charAt(0))return nse(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,ese.A)(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,ese.A)(10,r))}else i=i.split(",");return i=i.map((e=>parseFloat(e))),{type:n,values:i,colorSpace:r}}function rse(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n}
155 ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function ise(e,t){return e=nse(e),t=tse(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,rse(e)}function ose(e,t){if(e=nse(e),t=tse(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return rse(e)}function ase(e,t){if(e=nse(e),t=tse(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return rse(e)}function sse(e){return(0,ge.Ay)("MuiSkeleton",e)}(0,me.A)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const lse=["animation","className","component","height","style","variant","width"];let cse,use,dse,pse,hse=e=>e;const fse=(0,Po.i7)(cse||(cse=hse`
156  0% {
157    opacity: 1;
158  }
159
160  50% {
161    opacity: 0.4;
162  }
163
164  100% {
165    opacity: 1;
166  }
167`)),mse=(0,Po.i7)(use||(use=hse`
168  0% {
169    transform: translateX(-100%);
170  }
171
172  50% {
173    /* +0.5s of delay between each loop */
174    transform: translateX(100%);
175  }
176
177  100% {
178    transform: translateX(100%);
179  }
180`)),gse=(0,ne.Ay)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!1!==n.animation&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})((e=>{let{theme:t,ownerState:n}=e;const r=Qae(t.shape.borderRadius)||"px",i=Jae(t.shape.borderRadius);return(0,R.A)({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:ise(t.palette.text.primary,"light"===t.palette.mode?.11:.13),height:"1.2em"},"text"===n.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${i}${r}/${Math.round(i/.6*10)/10}${r}`,"&:empty:before":{content:'"\\00a0"'}},"circular"===n.variant&&{borderRadius:"50%"},"rounded"===n.variant&&{borderRadius:(t.vars||t).shape.borderRadius},n.hasChildren&&{"& > *":{visibility:"hidden"}},n.hasChildren&&!n.width&&{maxWidth:"fit-content"},n.hasChildren&&!n.height&&{height:"auto"})}),(e=>{let{ownerState:t}=e;return"pulse"===t.animation&&(0,Po.AH)(dse||(dse=hse`
181      animation: ${0} 2s ease-in-out 0.5s infinite;
182    `),fse)}),(e=>{let{ownerState:t,theme:n}=e;return"wave"===t.animation&&(0,Po.AH)(pse||(pse=hse`
183      position: relative;
184      overflow: hidden;
185
186      /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */
187      -webkit-mask-image: -webkit-radial-gradient(white, black);
188
189      &::after {
190        animation: ${0} 2s linear 0.5s infinite;
191        background: linear-gradient(
192          90deg,
193          transparent,
194          ${0},
195          transparent
196        );
197        content: '';
198        position: absolute;
199        transform: translateX(-100%); /* Avoid flash during server-side hydration */
200        bottom: 0;
201        left: 0;
202        right: 0;
203        top: 0;
204      }
205    `),mse,(n.vars||n).palette.action.hover)})),bse=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiSkeleton"}),{animation:r="pulse",className:i,component:o="span",height:a,style:s,variant:l="text",width:c}=n,u=(0,P.A)(n,lse),d=(0,R.A)({},n,{animation:r,component:o,variant:l,hasChildren:Boolean(u.children)}),p=(e=>{const{classes:t,variant:n,animation:r,hasChildren:i,width:o,height:a}=e,s={root:["root",n,r,i&&"withChildren",i&&!o&&"fitContent",i&&!a&&"heightAuto"]};return(0,pe.A)(s,sse,t)})(d);return(0,L.jsx)(gse,(0,R.A)({as:o,ref:t,className:(0,de.A)(p.root,i),ownerState:d},u,{style:(0,R.A)({width:c,height:a},s)}))}));var vse=bse;const yse=e=>{let{disabled:t=!1,selectedRange:n,onRangeSelect:r,onClose:i,onApply:o}=e;const[a,s]=(0,c.useState)(new Date),[l,u]=(0,c.useState)("Last 14 days"),d=(0,c.useRef)(null),p=new Date;p.setHours(0,0,0,0);const h=new Date;h.setMonth(p.getMonth()-1),h.setHours(0,0,0,0);const[f,m]=(0,c.useState)(null!==n&&void 0!==n&&n.start?n:{start:h,end:p});(0,c.useEffect)((()=>{const e=e=>{d.current&&!d.current.contains(e.target)&&i()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[i]),(0,c.useEffect)((()=>
205{if(null!==n&&void 0!==n&&n.start){m(n);const e=new Date(n.end||n.start);e.setMonth(e.getMonth()-1),s(e)}else{const e=new Date(p);e.setMonth(p.getMonth()-1),s(e)}}),[n]);const g=e=>{const t=e.getFullYear(),n=e.getMonth(),r=new Date(t,n,1),i=new Date(t,n+1,0).getDate(),o=r.getDay(),a=[];for(let s=0;s<o;s++)a.push(null);for(let s=1;s<=i;s++){const e=new Date(t,n,s);a.push(e)}return a},b=e=>e.toISOString().split("T")[0],v=e=>!!(e&&f.start&&f.end)&&(e>=f.start&&e<=f.end),y=e=>!!e&&(f.start&&b(e)===b(f.start)||f.end&&b(e)===b(f.end)),x=e=>!!e&&e>p,w=e=>{e&&!x(e)&&(!f.start||f.start&&f.end?m({start:e,end:null}):f.start&&!f.end&&(e>=f.start?m({start:f.start,end:e}):m({start:e,end:f.start})))},A=e=>{const t=new Date(a);t.setMonth(a.getMonth()+e);const n=new Date(t);n.setMonth(t.getMonth()+1),n.getMonth()<=p.getMonth()&&n.getFullYear()<=p.getFullYear()&&s(t)},E=["January","February","March","April","May","June","July","August","September","October","November","December"],S=["Su","Mo","Tu","We","Th","Fr","Sa"],_=g(a),k=new Date(a);k.setMonth(a.getMonth()+1);const T=g(k);return(0,L.jsxs)("div",{ref:d,style:{position:"absolute",top:"100%",left:0,backgroundColor:"#fff",border:"1px solid #e0e0e0",borderRadius:"12px",boxShadow:"0 8px 32px rgba(0,0,0,0.12)",zIndex:1e3,marginTop:"8px",minWidth:"600px",overflow:"hidden"},children:[(0,L.jsxs)("div",{style:{display:"flex",borderBottom:"1px solid #f0f0f0"},children:[(0,L.jsx)("div",{style:{width:"180px",backgroundColor:"#fafafa",padding:"16px",borderRight:"1px solid #f0f0f0"},children:[{label:"Week to date",value:"week"},{label:"Month to date",value:"month"},{label:"Last 7 days",value:"last7"},{label:"Last 14 days",value:"last14"},{label:"Last 30 days",value:"last30"}].map(((e,t)=>(0,L.jsxs)("button",{onClick:()=>(e=>{u(e.label);const t=new Date(p);let n=new Date(p);switch(e.value){case"week":n.setDate(p.getDate()-p.getDay());break;case"month":n.setDate(1);break;case"last7":n.setDate(p.getDate()-6);break;case"last14":n.setDate(p.getDate()-13);break;case"last30":n.setDate(p.getDate()-29)}m({start:n,end:t})})(e),style:{width:"100%",padding:"8px 12px",backgroundColor:l===e.label?"#f3f4f6":"transparent",border:"none",borderRadius:"6px",fontSize:"14px",textAlign:"left",cursor:"pointer",marginBottom:"4px",color:l===e.label?"#374151":"#6b7280",display:"flex",alignItems:"center",justifyContent:"space-between"},onMouseEnter:t=>{l!==e.label&&(t.target.style.backgroundColor="#f9fafb")},onMouseLeave:t=>{l!==e.label&&(t.target.style.backgroundColor="transparent")},children:[e.label,l===e.label&&(0,L.jsx)(vw,{size:14,color:"#6b7280"})]},t)))}),(0,L.jsxs)("div",{style:{flex:1,padding:"16px"},children:[(0,L.jsx)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"20px"},children:(0,L.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"40px"},children:[(0,L.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,L.jsx)("button",{onClick:()=>A(-1),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",marginRight:"12px"},disabled:t,children:(0,L.jsx)(Yae,{size:16,color:"#6b7280"})}),(0,L.jsxs)("h3",{style:{margin:0,fontSize:"16px",fontWeight:"600",color:"#374151",minWidth:"140px"},children:[E[a.getMonth()]," ",a.getFullYear()]})]}),(0,L.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,L.jsxs)("h3",{style:{margin:0,fontSize:"16px",fontWeight:"600",color:"#374151",minWidth:"140px"},children:[E[k.getMonth()]," ",k.getFullYear()]}),(0,L.jsx)("button",{onClick:()=>A(1),style:{background:"none",border:"none",cursor:k.getMonth()===p.getMonth()&&k.getFullYear()===p.getFullYear()?"not-allowed":"pointer",padding:"4px",marginLeft:"12px",opacity:k.getMonth()===p.getMonth()&&k.getFullYear()===p.getFullYear()?.5:1},disabled:k.getMonth()===p.getMonth()&&k.getFullYear()===p.getFullYear(),children:(0,L.jsx)(pw,{size:16,color:"#6b7280"})})]})]})}),(0,L.jsxs)("div",{style:{display:"flex",gap:"40px"},children:[(0,L.jsxs)("div",{style:{flex:1},children:[(0,L.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"2px",marginBottom:"8px"},children:S.map((e=>(0,L.jsx)("div",{style:{padding:"8px 4px",textAlign:"center",fontSize:"12px",fontWeight:"500",color:"#9ca3af"},children:e},e)))}),(0,L.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"2px"},children:_.map(((e,t)=>(0,L.jsx)("button",{onClick:()=>w(e),disabled:!e||x(e),style:{padding:"8px 4px",border:"none",background:e?y(e)?"#8B5CF6":v(e)?"#E9D5FF":(x(e),"transparent"):"transparent",color:e?y(e)?"#fff":v(e)?"#7C3AED":x(e)?"#d1d5db":"#374151":"transparent",borderRadius:"6px",cursor:!e||x(e)?"not-allowed":"pointer",fontSize:"14px",fontWeight:y(e)?"600":"400",minHeight:"32px",transition:"all 0.2s ease"},onMouseEnter:t=>{!e||x(e)||y(e)||v(e)||(t.target.style.backgroundColor="#f9fafb")},onMouseLeave:t=>{!e||x(e)||y(e)||v(e)||(t.target.style.backgroundColor="transparent")},children:e?e.getDate():""},t)))})]}),(0,L.jsxs)("div",{style:{flex:1},children:[(0,L.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"2px",marginBottom:"8px"},children:S.map((e=>(0,L.jsx)("div",{style:{padding:"8px 4px",textAlign:"center",fontSize:"12px",fontWeight:"500",color:"#9ca3af"},children:e},e)))}),(0,L.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"2px"},children:T.map(((e,t)=>(0,L.jsx)("button",{onClick:()=>w(e),disabled:!e||x(e),style:{padding:"8px 4px",border:"none",background:e?y(e)?"#8B5CF6":v(e)?"#E9D5FF":(x(e),"transparent"):"transparent",color:e?y(e)?"#fff":v(e)?"#7C3AED":x(e)?"#d1d5db":"#374151":"transparent",borderRadius:"6px",cursor:!e||x(e)?"not-allowed":"pointer",fontSize:"14px",fontWeight:y(e)?"600":"400",minHeight:"32px",transition:"all 0.2s ease"},onMouseEnter:t=>{!e||x(e)||y(e)||v(e)||(t.target.style.backgroundColor="#f9fafb")},onMouseLeave:t=>{!e||x(e)||y(e)||v(e)||(t.target.style.backgroundColor="transparent")},children:e?e.getDate():""},t)))})]})]})]})]}),(0,L.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"16px 24px",backgroundColor:"#fafafa",borderTop:"1px solid #f0f
2050f0"},children:[(0,L.jsx)("div",{style:{fontSize:"14px",color:"#6b7280"},children:f.start&&f.end?`${f.start.toLocaleDateString("en-US",{month:"short",day:"numeric"})} - ${f.end.toLocaleDateString("en-US",{month:"short",day:"numeric"})}`:f.start?`Start: ${f.start.toLocaleDateString("en-US",{month:"short",day:"numeric"})}`:"Select date range"}),(0,L.jsxs)("div",{style:{display:"flex",gap:"12px"},children:[(0,L.jsx)("button",{onClick:()=>{m({start:null,end:null})},style:{padding:"8px 16px",backgroundColor:"transparent",color:"#6b7280",border:"1px solid #e0e0e0",borderRadius:"6px",fontSize:"14px",fontWeight:"500",cursor:"pointer"},children:"Cancel"}),(0,L.jsx)("button",{onClick:()=>{const e={start:f.start,end:f.end||f.start};o(e),i()},disabled:!f.start,style:{padding:"8px 16px",backgroundColor:f.start?"#8B5CF6":"#e5e7eb",color:f.start?"#fff":"#9ca3af",border:"none",borderRadius:"6px",fontSize:"14px",fontWeight:"500",cursor:f.start?"pointer":"not-allowed"},children:"Apply"})]})]})]})},xse=e=>{let{active:t,payload:n,label:r}=e;if(t&&n&&n.length){var i,o;const e=n[0].payload;return(0,L.jsxs)("div",{style:{backgroundColor:"#fff",border:"1px solid #e0e0e0",borderRadius:"8px",padding:"12px",boxShadow:"0 4px 12px rgba(0,0,0,0.1)",fontSize:"14px"},children:[(0,L.jsx)("div",{style:{fontWeight:"600",marginBottom:"8px"},children:e.bot_title||e.date}),(0,L.jsxs)("div",{style:{color:"#8B5CF6",marginBottom:"4px"},children:["Chat Tokens: ",(null===(i=e.chat_tokens)||void 0===i?void 0:i.toLocaleString())||0]}),(0,L.jsxs)("div",{style:{color:"#10B981"},children:["API Calls: ",(null===(o=e.api_calls)||void 0===o?void 0:o.toLocaleString())||0]})]})}return null};var wse=e=>{let{api_bots:t,apiData:n,selectedTenant:r,fetchMetricsChart:i,loadindChart:o}=e;const[a,s]=(0,c.useState)("all"),[l,u]=(0,c.useState)({start:null,end:null,bot_key:""}),[d,p]=(0,c.useState)("1d"),[h,f]=(0,c.useState)(!1),[m,g]=(0,c.useState)(!1),[b,v]=(0,c.useState)(!1),[y,x]=(0,c.useState)([]),w=n||{chart_data:[{usage_date:"2025-07-16",chat_tokens:4453}],total_chats:368,total_tokens:4453},A=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(u(e),i&&r){v(!0);try{const n=e=>e.toLocaleDateString("en-CA");let o,s;e.start&&e.end&&(o=n(e.start),s=n(e.end));const l=t||(a||""),c=await i({organization:r.org_id,start:o||"",end:s||"",bot_key:l});c&&c.chart_data&&x(c.chart_data)}catch(qUe){console.error("Error fetching metrics chart:",qUe)}finally{v(!1)}}},E=(0,c.useMemo)((()=>{const e=y.length>0?y:w.chart_data;if(!e||0===e.length)return[];return e.some((e=>e.bot_title&&!e.usage_date))?e.map((e=>({date:e.bot_title,value:e.chat_tokens,chat_tokens:e.chat_tokens,api_calls:e.api_calls||0,bot_title:e.bot_title,fullDate:null,originalValue:e.chat_tokens}))):e.map((e=>({date:new Date(e.usage_date).toLocaleDateString("en-US",{month:"short",day:"numeric"}),value:e.chat_tokens,chat_tokens:e.chat_tokens,api_calls:e.api_calls||0,fullDate:e.usage_date,originalValue:e.chat_tokens})))}),[y,w.chart_data]),S=(0,c.useMemo)((()=>{if(E.some((e=>e.bot_title&&!e.fullDate)))return E;if("1d"===d)return E;if("1w"===d){const e={};return E.forEach((t=>{const n=new Date(t.fullDate),r=new Date(n.setDate(n.getDate()-n.getDay())),i=r.toISOString().split("T")[0];e[i]||(e[i]={date:`Week ${r.toLocaleDateString("en-US",{month:"short",day:"numeric"})}`,value:0,chat_tokens:0,api_calls:0,fullDate:i}),e[i].value+=t.value,e[i].chat_tokens+=t.chat_tokens,e[i].api_calls+=t.api_calls})),Object.values(e)}if("1m"===d){const e={};return E.forEach((t=>{const n=new Date(t.fullDate),r=`${n.getFullYear()}-${String(n.getMonth()+1).padStart(2,"0")}`;e[r]||(e[r]={date:n.toLocaleDateString("en-US",{month:"short",year:"numeric"}),value:0,chat_tokens:0,api_calls:0,fullDate:r}),e[r].value+=t.value,e[r].chat_tokens+=t.chat_tokens,e[r].api_calls+=t.api_calls})),Object.values(e)}return E}),[E,d]),_=t,k=["1d","1w","1m"],T=S.reduce(((e,t)=>e+t.value),0),C=S.reduce(((e,t)=>e+(t.api_calls||0)),0),O=Math.max(...S.map((e=>e.value))),N=Math.max(...S.map((e=>e.api_calls||0)));return(0,L.jsxs)("div",{style:{maxWidth:"1200px",padding:"20px",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'},className:"bg-gray-50 p-6 rounded-lg mt-4",children:[(0,L.jsx)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"24px"},children:(0,L.jsx)("h1",{style:{fontSize:"32px",fontWeight:"600",margin:0,color:"#1a1a1a"},children:"Usage"})}),(0,L.jsxs)("div",{style:{display:"flex",gap:"12px",marginBottom:"32px",flexWrap:"wrap"},children:[(0,L.jsxs)(fl.A,{size:"small",sx:{minWidth:200},children:[(0,L.jsx)(Zae.A,{color:"secondary",id:"project-select-label",children:"AI Assistants"}),(0,L.jsxs)(Zs.A,{labelId:"project-select-label",id:"project-select",value:a,label:"Project",color:"secondary",onChange:e=>{const t=e.target.value;s(t),u({...l,bot_key:t}),A(l,t)},disabled:b,children:[(0,L.jsx)(Qs.A,{value:"all",children:(0,L.jsx)("em",{children:"All"})}),_.map(((e,t)=>(0,L.jsx)(Qs.A,{value:e.api_key,children:e.bot_name},t)))]})]}),(0,L.jsxs)("div",{style:{position:"relative"},children:[(0,L.jsxs)("button",{onClick:()=>f(!h),style:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 16px",backgroundColor:"#f5f5f5",border:"1px solid #e0e0e0",borderRadius:"20px",fontSize:"14px",fontWeight:"500",cursor:"pointer",outline:"none"},children:[(0,L.jsx)(Kae,{size:16}),(()=>{if(!l.start||!l.end)return"Select date range";return`${l.start.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})} - ${l.end.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}`})(),(0,L.jsx)(Xae,{size:16})]}),h&&(0,L.jsx)(yse,{disabled:b,selectedRange:l,onRangeSelect:u,onClose:()=>f(!1),onApply:A})]})]}),b?(0,L.jsxs)("div",{style:{height:"300px",width:"100%",position:"relative"},children:[(0,L.jsx)(vse,{variant:"rectangular",width:"40%",height:"10%",animation:"wave",sx:{borderRadius:2,mb:1}}),(0,L.jsx)(vse,{variant:"rectangular",width:"100%",height:"100%",animation:"wave",sx:{borderRadius:2}})]}):(0,L.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"24px"},children:[(0,L.jsxs)("div",{style:{display:"flex",gap:"48px"},children:[(0,L.jsxs)("div",{children:[(0,L.jsx)("div",{style:{fontSize:"14px",fontWeight:"500",color:"#666",marginBottom:"8px"},children:"Total Chat Tokens"}),(0,L.jsx)("div",{style:{fontWeight:"600",fontSize:"19px",color:"#1a1a1a",marginBottom:"8px"},className:"hidden md:block",children:b?"Loading...":`${T.toLocaleStr
205ing()} tokens`}),(0,L.jsx)("div",{style:{fontWeight:"600",fontSize:"19px",color:"#1a1a1a",marginBottom:"8px"},className:"md:hidden block",children:b?"Loading...":`${T.toLocaleString()} tokens`})]}),(0,L.jsxs)("div",{className:"hidden md:block",children:[(0,L.jsx)("div",{style:{fontSize:"14px",fontWeight:"500",color:"#666",marginBottom:"8px"},children:"Total API Calls"}),(0,L.jsx)("div",{style:{fontSize:"19px",fontWeight:"600",color:"#1a1a1a",marginBottom:"8px"},children:b?"Loading...":`${C.toLocaleString()} calls`})]})]}),(0,L.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[(0,L.jsx)("span",{style:{fontSize:"14px",fontWeight:"500",color:"#666"},children:"Group by"}),(0,L.jsx)(Xae,{size:16,color:"#666"}),(0,L.jsxs)("div",{style:{position:"relative"},children:[(0,L.jsx)("button",{onClick:()=>g(!m),style:{padding:"6px 12px",backgroundColor:"#333",color:"#fff",border:"none",borderRadius:"6px",fontSize:"14px",fontWeight:"500",cursor:"pointer",outline:"none"},children:d}),m&&(0,L.jsx)("div",{style:{position:"absolute",top:"100%",right:0,minWidth:"80px",backgroundColor:"#fff",border:"1px solid #e0e0e0",borderRadius:"8px",boxShadow:"0 4px 12px rgba(0,0,0,0.1)",zIndex:1e3,marginTop:"4px"},children:k.map(((e,t)=>(0,L.jsx)("button",{onClick:()=>{p(e),g(!1)},style:{width:"100%",padding:"8px 12px",backgroundColor:"transparent",border:"none",textAlign:"left",fontSize:"14px",cursor:"pointer",borderBottom:t<k.length-1?"1px solid #f0f0f0":"none"},onMouseEnter:e=>e.target.style.backgroundColor="#f5f5f5",onMouseLeave:e=>e.target.style.backgroundColor="transparent",children:e},t)))})]})]})]}),!b&&(0,L.jsxs)("div",{className:"flex gap-10 flex-col lg:flex-row items-center",children:[(0,L.jsxs)("div",{style:{height:"300px",position:"relative"},className:"w-full lg:w-1/2",children:[(0,L.jsx)("h3",{style:{fontSize:"16px",fontWeight:"600",color:"#1a1a1a",marginBottom:"16px",textAlign:"center"},children:"Chat Tokens"}),(0,L.jsx)("div",{style:{position:"absolute",top:"50px",left:"50px",fontSize:"12px",fontWeight:"500",color:"#8B5CF6"},children:O.toLocaleString()}),(0,L.jsx)("div",{style:{position:"absolute",top:"70px",left:"50px",right:"50px",height:"1px",borderTop:"2px dotted #8B5CF6",opacity:.5}}),0===T?(0,L.jsx)("div",{className:"text-center text-gray-500 pt-20",children:"No usage data found for selected range"}):(0,L.jsx)(IY,{width:"100%",height:"100%",children:(0,L.jsxs)(Vee,{data:S,margin:{top:80,right:30,left:20,bottom:20},children:[(0,L.jsx)(sne,{dataKey:"date",axisLine:!1,tickLine:!1,tick:{fontSize:12,fill:"#666"},interval:0}),(0,L.jsx)(mne,{}),(0,L.jsx)(Tie,{content:(0,L.jsx)(xse,{})}),(0,L.jsx)(qae,{dataKey:"chat_tokens",fill:"#8B5CF6",radius:[2,2,0,0],stroke:"none"})]})})]}),(0,L.jsxs)("div",{style:{height:"300px",position:"relative"},className:"w-full lg:w-1/2",children:[(0,L.jsxs)("div",{className:"block md:hidden",children:[(0,L.jsx)("div",{style:{fontSize:"14px",fontWeight:"500",color:"#666",marginBottom:"8px"},children:"Total API Calls"}),(0,L.jsx)("div",{style:{fontSize:"21px",fontWeight:"600",color:"#1a1a1a",marginBottom:"8px"},children:b?"Loading...":`${C.toLocaleString()} calls`})]}),(0,L.jsx)("h3",{style:{fontSize:"16px",fontWeight:"600",color:"#1a1a1a",marginBottom:"16px",textAlign:"center"},children:"API Calls"}),(0,L.jsx)("div",{style:{position:"absolute",top:"50px",left:"50px",fontSize:"12px",fontWeight:"500",color:"#10B981"},children:N.toLocaleString()}),(0,L.jsx)("div",{style:{position:"absolute",top:"70px",left:"50px",right:"50px",height:"1px",borderTop:"2px dotted #10B981",opacity:.5}}),0===C?(0,L.jsx)("div",{className:"text-center text-gray-500 pt-20",children:"No API calls data found for selected range"}):(0,L.jsx)(IY,{width:"100%",height:"100%",children:(0,L.jsxs)(Vee,{data:S,margin:{top:80,right:30,left:20,bottom:20},children:[(0,L.jsx)(sne,{dataKey:"date",axisLine:!1,tickLine:!1,tick:{fontSize:12,fill:"#666"},interval:0}),(0,L.jsx)(mne,{}),(0,L.jsx)(Tie,{content:(0,L.jsx)(xse,{})}),(0,L.jsx)(qae,{dataKey:"api_calls",fill:"#10B981",radius:[2,2,0,0],stroke:"none"})]})})]})]})]})};const Ase=(0,BH.A)("img")((e=>{let{theme:t}=e;return{width:100,height:100,borderRadius:50}}));function Ese(e){if(!e||0===e.length)return"#000000";let t,n=0;for(t=0;t<e.length;t+=1)n=e.charCodeAt(t)+((n<<5)-n);let r="#";for(t=0;t<3;t+=1){r+=`00${(n>>8*t&255).toString(16)}`.slice(-2)}return r}function Sse(e){const{children:t,value:n,index:r,...i}=e;return(0,L.jsx)("div",{role:"tabpanel",hidden:n!==r,id:`simple-tabpanel-${r}`,"aria-labelledby":`simple-tab-${r}`,...i,className:"md:mt-0 mt-3 md:p-2 p-0",children:n===r&&(0,L.jsx)(ue.A,{sx:{p:{sm:1,md:4}},children:t})})}Tq.register(Pq,Qq,Lq);var _se=function(){const{getCachedUserInfo:e,fetchMetricsChart:t,fetchtrainedApi:n}=ma(),[r,o]=c.useState(0),[a,s]=(0,c.useState)(),[l,u]=(0,c.useState)(),d=(0,c.useRef)(null),[p,h]=(0,c.useState)(null),[f,m]=(0,c.useState)(!1),[g,b]=c.useState({fname:"",lname:"",email:""}),[v,y]=(0,c.useState)(""),[x,w]=(0,c.useState)(null),[A,E]=(0,c.useState)({oldpassword:"",newpassword:"",confirmpassword:""});(0,c.useEffect)((()=>()=>{p&&URL.revokeObjectURL(p)}),[p]);const S=async e=>{E({...A,[e.target.name]:e.target.value})},_=e=>{b({...g,[e.target.name]:e.target.value})},k=async()=>{const t=localStorage.getItem("uid"),n=localStorage.getItem("gauthcred"),r=await e(t);if(r){s(r);const e=r.uname.split(" ");if(b({fname:e[0],lname:e[1],email:r.email}),""!==(null===r||void 0===r?void 0:r.prof))y(null===r||void 0===r?void 0:r.prof);else if(n){const e=Ro(n);y(null===e||void 0===e?void 0:e.picture)}else y("")}};return(0,c.useEffect)((()=>{k()}),[]),(0,L.jsxs)(po.A,{children:[(0,L.jsxs)(Co.A,{children:[(0,L.jsx)(po.A,{justifyContent:"space-between",direction:"row",alignItems:"center",children:(0,L.jsxs)("div",{className:"flex justify-center items-center",children:[(0,L.jsx)(i.N_,{to:"/marketplace",children:(0,L.jsx)(rw.A,{color:"secondary"})}),(0,L.jsx)(pw,{}),(0,L.jsx)(Te.A,{sx:{fontWeight:"bold"},children:"Settings"})]})}),(0,L.jsx)(po.A,{sx:{mt:1},children:(0,L.jsx)(Te.A,{children:"Update your profile, view usage details, and access billing information with ease"})})]}),(0,L.jsx)(po.A,{sx:{mt:2,borderRadius:"8px",overflow:"hidden"},children:(0,L.jsxs)(ue.A,{sx:{width:"100%"},children:[(0,L.jsx)(ue.A,{sx:{borderBottom:1,borderColor:"divider"},children:(0,L.jsxs)(Ss,{value:r,textColor:"secondary",indicatorColor:"secondary",onChange:(e,t)=>
205{o(t)},"aria-label":"basic tabs example",children:[(0,L.jsx)(Os,{iconPosition:"start",icon:(0,L.jsx)(Pw,{}),label:"Profile"}),(0,L.jsx)(Os,{iconPosition:"start",icon:(0,L.jsx)(Nw,{}),label:"Billing"})]})}),(0,L.jsxs)(Sse,{value:r,index:0,children:[(0,L.jsxs)(Ce.A,{sx:{width:"100%"},className:"mt-2 md:ml-3",children:[(0,L.jsx)(Rc.A,{title:"Profile",subheader:"Change your avatar here"}),(0,L.jsx)("div",{className:" flex justify-center",children:(0,L.jsx)("hr",{className:"w-[80%]"})}),(0,L.jsxs)(ea.A,{className:"relative",sx:{display:"flex",justifyContent:"center",alignItems:"center"},children:[p?(0,L.jsx)(Ase,{alt:"profile",src:p}):v?(0,L.jsx)(Ase,{alt:"profile",src:v}):(0,L.jsx)(_n,{...(T=`${null===g||void 0===g?void 0:g.fname} ${null===g||void 0===g?void 0:g.lname}`,T?{sx:{bgcolor:Ese(T)},children:`${T.split(" ")[0][0]}${T.split(" ")[1][0]}`}:{sx:{},children:""}),color:"inherit",sx:{width:100,height:100,borderRadius:50}}),(0,L.jsx)(Pa.A,{className:"absolute right-14 top-3",onClick:()=>{d.current.click()},children:(0,L.jsx)(Rw,{})}),(0,L.jsx)("input",{type:"file",onChange:e=>{const t=e.target.files[0];if(u(t),t){const e=URL.createObjectURL(t);h(e)}},ref:d,id:"image",accept:".jpg,.png,.webp,.jpeg,.svg",hidden:!0})]})]}),(0,L.jsx)(Ce.A,{csx:{width:"100%"},className:"mt-10 md:ml-3",children:(0,L.jsx)(ea.A,{children:(0,L.jsxs)("form",{noValidate:!0,autoComplete:"off",children:[(0,L.jsxs)(po.A,{direction:{sm:"column",md:"row"},justifyContent:"space-around",children:[(0,L.jsx)(Xa.A,{id:"name-input",name:"fname",label:"First Name",type:"text",variant:"outlined",margin:"normal",onChange:_,fullWidth:!0,color:"secondary",value:g.fname}),(0,L.jsx)(Xa.A,{id:"name-input",name:"lname",label:"Last Name",type:"text",variant:"outlined",margin:"normal",fullWidth:!0,className:"md:ml-2",onChange:_,color:"secondary",value:g.lname})]}),(0,L.jsx)(ue.A,{mt:2,children:(0,L.jsx)(Yx.A,{color:"secondary",disabled:f,onClick:async e=>{try{m(!0),e.preventDefault();const t=new FormData,n=localStorage.getItem("uid");t.append("uid",n),t.append("fname",g.fname),t.append("lname",g.lname),l?(t.append("pic",""),t.append("img",l)):v?(t.append("pic",v),t.append("img","")):(t.append("pic",""),t.append("img","")),await(0,xi.XO)(t),k(),m(!1)}catch(qUe){m(!1),console.log(qUe)}},variant:"outlined",type:"submit",children:f?(0,L.jsx)(dA,{}):"Save"})})]})})}),(0,L.jsx)(Ce.A,{sx:{width:"100%"},className:"mt-10 md:ml-3",children:(0,L.jsxs)(ea.A,{children:[(0,L.jsx)(Te.A,{variant:"h4",children:"Change Password"}),(0,L.jsxs)("form",{noValidate:!0,autoComplete:"off",onSubmit:async t=>{if(t.preventDefault(),""===A.oldpassword||""===A.newpassword||""===A.confirmpassword)return aa.oR.error("All feilds are required",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});if(!new RegExp("^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*])(?=.{8,})").test(A.newpassword))return aa.oR.error("Enter an strong password to continue",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});if(A.newpassword!==A.confirmpassword)return aa.oR.error("Confirm password doesnt matched",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});m(!0);const n=localStorage.getItem("uid"),r=await e(n),i=new FormData;i.append("email",r.email),i.append("password",A.oldpassword),i.append("newpassword",A.newpassword),await(0,xi.ec)(i),E({oldpassword:"",newpassword:"",confirmpassword:""}),m(!1)},children:[(0,L.jsx)(Xa.A,{name:"oldpassword",label:"Old Password",type:"password",variant:"outlined",margin:"normal",onChange:S,fullWidth:!0,color:"secondary",value:A.oldpassword}),(0,L.jsx)(Xa.A,{name:"newpassword",label:"New Password",type:"password",variant:"outlined",margin:"normal",fullWidth:!0,onChange:S,color:"secondary",value:A.newpassword}),(0,L.jsx)(Xa.A,{name:"confirmpassword",label:"Confirm Password",type:"password",variant:"outlined",margin:"normal",fullWidth:!0,onChange:S,color:"secondary",value:A.confirmpassword}),(0,L.jsx)(ue.A,{mt:2,children:(0,L.jsx)(Yx.A,{color:"secondary",disabled:f,variant:"outlined",type:"submit",children:f?(0,L.jsx)(dA,{}):"Save"})})]})]})})]}),(0,L.jsx)(Sse,{value:r,index:1,children:"Beta version is free :)"})]})})]});var T};var kse=()=>(0,L.jsx)(Co.A,{title:"Sample Card",children:(0,L.jsx)(Te.A,{variant:"body2",children:"Lorem ipsum dolor sit amen, consenter nipissing eli, sed do elusion tempos incident ut laborers et doolie magna alissa. Ut enif ad minim venice, quin nostrum exercitation illampu laborings nisi ut liquid ex ea commons construal. Duos aube grue dolor in reprehended in voltage veil esse colum doolie eu fujian bulla parian. Exceptive sin ocean cuspidate non president, sunk in culpa qui officiate descent molls anim id est labours."})});function Tse(e,t){return"function"===typeof e?e(t):e}function Cse(e,t){return n=>{t.setState((t=>({...t,[e]:Tse(n,t[e])})))}}function Ose(e){return e instanceof Function}function Nse(e,t){const n=[],r=e=>{e.forEach((e=>{n.push(e);const i=t(e);null!=i&&i.length&&r(i)}))};return r(e),n}function Ise(e,t,n){let r,i=[];return()=>{let o;n.key&&n.debug&&(o=Date.now());const a=e();if(!(a.length!==i.length||a.some(((e,t)=>i[t]!==e))))return r;let s;if(i=a,n.key&&n.debug&&(s=Date.now()),r=t(...a),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-o))/100,t=Math.round(100*(Date.now()-s))/100,r=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c\u23f1 ${i(t,5)} /${i(e,5)} ms`,`\n            font-size: .6rem;\n            font-weight: bold;\n            color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return r}}function Rse(e,t,n){var r;let i={id:null!=(r=n.id)?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(i),e},getContext:()=>({table:e,header:i,column:t})};
205return e._features.forEach((t=>{null==t.createHeader||t.createHeader(i,e)})),i}const Pse={createTable:e=>{e.getHeaderGroups=Ise((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,r,i)=>{var o,a;const s=null!=(o=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[],l=null!=(a=null==i?void 0:i.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?a:[];return jse(t,[...s,...n.filter((e=>!(null!=r&&r.includes(e.id))&&!(null!=i&&i.includes(e.id)))),...l],e)}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterHeaderGroups=Ise((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,r,i)=>jse(t,n=n.filter((e=>!(null!=r&&r.includes(e.id))&&!(null!=i&&i.includes(e.id)))),e,"center")),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftHeaderGroups=Ise((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,n,r)=>{var i;return jse(t,null!=(i=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?i:[],e,"left")}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightHeaderGroups=Ise((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,n,r)=>{var i;return jse(t,null!=(i=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?i:[],e,"right")}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getFooterGroups=Ise((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftFooterGroups=Ise((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterFooterGroups=Ise((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightFooterGroups=Ise((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getFlatHeaders=Ise((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftFlatHeaders=Ise((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterFlatHeaders=Ise((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightFlatHeaders=Ise((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterLeafHeaders=Ise((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftLeafHeaders=Ise((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightLeafHeaders=Ise((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeafHeaders=Ise((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,n)=>{var r,i,o,a,s,l;return[...null!=(r=null==(i=e[0])?void 0:i.headers)?r:[],...null!=(o=null==(a=t[0])?void 0:a.headers)?o:[],...null!=(s=null==(l=n[0])?void 0:l.headers)?s:[]].map((e=>e.getLeafHeaders())).flat()}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}})}};function jse(e,t,n,r){var i,o;let a=0;const s=function(e,t){void 0===t&&(t=1),a=Math.max(a,t),e.filter((e=>
vendor: 24,299 bytes, line 205
205e.getIsVisible())).forEach((e=>{var n;null!=(n=e.columns)&&n.length&&s(e.columns,t+1)}),0)};s(e);let l=[];const c=(e,t)=>{const i={depth:t,id:[r,`${t}`].filter(Boolean).join("_"),headers:[]},o=[];e.forEach((e=>{const a=[...o].reverse()[0];let s,l=!1;if(e.column.depth===i.depth&&e.column.parent?s=e.column.parent:(s=e.column,l=!0),a&&(null==a?void 0:a.column)===s)a.subHeaders.push(e);else{const i=Rse(n,s,{id:[r,t,s.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:l,placeholderId:l?`${o.filter((e=>e.column===s)).length}`:void 0,depth:t,index:o.length});i.subHeaders.push(e),o.push(i)}i.headers.push(e),e.headerGroup=i})),l.push(i),t>0&&c(o,t-1)},u=t.map(((e,t)=>Rse(n,e,{depth:a,index:t})));c(u,a-1),l.reverse();const d=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,n=0,r=[0];e.subHeaders&&e.subHeaders.length?(r=[],d(e.subHeaders).forEach((e=>{let{colSpan:n,rowSpan:i}=e;t+=n,r.push(i)}))):t=1;return n+=Math.min(...r),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}}));return d(null!=(i=null==(o=l[0])?void 0:o.headers)?i:[]),l}const Mse={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Dse={getDefaultColumnDef:()=>Mse,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:Cse("columnSizing",e),onColumnSizingInfoChange:Cse("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,i;const o=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:Mse.minSize,null!=(r=null!=o?o:e.columnDef.size)?r:Mse.size),null!=(i=e.columnDef.maxSize)?i:Mse.maxSize)},e.getStart=n=>{const r=n?"left"===n?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),i=r.findIndex((t=>t.id===e.id));if(i>0){const e=r[i-1];return e.getStart(n)+e.getSize()}return 0},e.resetSize=()=>{t.setColumnSizing((t=>{let{[e.id]:n,...r}=t;return r}))},e.getCanResize=()=>{var n,r;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(r=t.options.enableColumnResizing)||r)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var r;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(r=e.column.getSize())?r:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=()=>{const n=t.getColumn(e.column.id),r=null==n?void 0:n.getCanResize();return i=>{if(!n||!r)return;if(null==i.persist||i.persist(),Fse(i)&&i.touches&&i.touches.length>1)return;const o=e.getSize(),a=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[n.id,n.getSize()]],s=Fse(i)?Math.round(i.touches[0].clientX):i.clientX,l={},c=(e,n)=>{"number"===typeof n&&(t.setColumnSizingInfo((e=>{var t,r;const i=n-(null!=(t=null==e?void 0:e.startOffset)?t:0),o=Math.max(i/(null!=(r=null==e?void 0:e.startSize)?r:0),-.999999);return e.columnSizingStart.forEach((e=>{let[t,n]=e;l[t]=Math.round(100*Math.max(n+n*o,0))/100})),{...e,deltaOffset:i,deltaPercentage:o}})),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing((e=>({...e,...l}))))},u=e=>c("move",e),d=e=>{c("end",e),t.setColumnSizingInfo((e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))},p={moveHandler:e=>u(e.clientX),upHandler:e=>{document.removeEventListener("mousemove",p.moveHandler),document.removeEventListener("mouseup",p.upHandler),d(e.clientX)}},h={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),u(e.touches[0].clientX),!1),upHandler:e=>{var t;document.removeEventListener("touchmove",h.moveHandler),document.removeEventListener("touchend",h.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(null==(t=e.touches[0])?void 0:t.clientX)}},f=!!function(){if("boolean"===typeof Lse)return Lse;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return Lse=e,Lse}()&&{passive:!1};Fse(i)?(document.addEventListener("touchmove",h.moveHandler,f),document.addEventListener("touchend",h.upHandler,f)):(document.addEventListener("mousemove",p.moveHandler,f),document.addEventListener("mouseup",p.upHandler,f)),t.setColumnSizingInfo((e=>({...e,startOffset:s,startSize:o,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:n.id})))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}}};let Lse=null;function Fse(e){return"touchstart"===e.type}const Bse={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Cse("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,i;if(t){if(null!=(r=null!=(i=e.options.autoResetAll)?i:e.options.autoResetExpanded)?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue((()=>{e.resetExpanded(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,r;e.setExpanded(t?{}:null!=(n=null==(r=e.initialState)?void 0:r.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some((e=>e.getCanExpand())),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"===typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some((e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach((e=>{const n=e.split(".");t=Math.max(t,n.length)})),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded((r=>{var i;const o=!0===r||!(null==r||!r[e.id]);let a={};if(!0===r?Object.keys(t.getRowModel().rowsById).forEach((e=>{a[e]=!0})):a=r,n=null!=(i=n)?i:!o,!o&&n)return{...a,[e.id]:!0};if(o&&!n){const{[e.id]:t,...n}=a;return n}return r}))},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===r||(null==r?void 0:r[e.id]))},e.getCanExpand=()=>{var n,r,i;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(r=t.options.enableExpanding)||r)&&!(null==(i=e.subRows)||!i.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},Use=(e,t,n)=>{var r;const i=n.toLowerCase();return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())||null==(r=r.toLowerCase())?void 0:r.includes(i))};Use.autoRemove=e=>Xse(e);const zse=(e,t,n)=>{var r;return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.includes(n))};zse.autoRemove=e=>Xse(e);const Hse=(e,t,n)=>{var r;return(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.toLowerCase())===(null==n?void 0:n.toLowerCase())};Hse.autoRemove=e=>Xse(e);const $se=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};$se.autoRemove=e=>Xse(e)||!(null!=e&&e.length);const Vse=(e,t,n)=>!n.some((n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))}));Vse.autoRemove=e=>Xse(e)||!(null!=e&&e.length);const Gse=(e,t,n)=>n.some((n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)}));Gse.autoRemove=e=>Xse(e)||!(null!=e&&e.length);const Wse=(e,t,n)=>e.getValue(t)===n;Wse.autoRemove=e=>Xse(e);const qse=(e,t,n)=>e.getValue(t)==n;qse.autoRemove=e=>Xse(e);const Yse=(e,t,n)=>{let[r,i]=n;const o=e.getValue(t);return o>=r&&o<=i};Yse.resolveFilterValue=e=>{let[t,n]=e,r="number"!==typeof t?parseFloat(t):t,i="number"!==typeof n?parseFloat(n):n,o=null===t||Number.isNaN(r)?-1/0:r,a=null===n||Number.isNaN(i)?1/0:i;if(o>a){const e=o;o=a,a=e}return[o,a]},Yse.autoRemove=e=>Xse(e)||Xse(e[0])&&Xse(e[1]);const Kse={includesString:Use,includesStringSensitive:zse,equalsString:Hse,arrIncludes:$se,arrIncludesAll:Vse,arrIncludesSome:Gse,equals:Wse,weakEquals:qse,inNumberRange:Yse};function Xse(e){return void 0===e||null===e||""===e}function Zse(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||"undefined"===typeof t||"string"===typeof t&&!t}const Qse={sum:(e,t,n)=>n.reduce(((t,n)=>{const r=n.getValue(e);return t+("number"===typeof r?r:0)}),0),min:(e,t,n)=>{let r;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(r>n||void 0===r&&n>=n)&&(r=n)})),r},max:(e,t,n)=>{let r;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(r<n||void 0===r&&n>=n)&&(r=n)})),r},extent:(e,t,n)=>{let r,i;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(void 0===r?n>=n&&(r=i=n):(r>n&&(r=n),i<n&&(i=n)))})),[r,i]},mean:(e,t)=>{let n=0,r=0;if(t.forEach((t=>{let i=t.getValue(e);null!=i&&(i=+i)>=i&&(++n,r+=i)})),n)return r/n},median:(e,t)=>{if(!t.length)return;const n=t.map((t=>t.getValue(e)));if(r=n,!Array.isArray(r)||!r.every((e=>"number"===typeof e)))return;var r;if(1===n.length)return n[0];const i=Math.floor(n.length/2),o=n.sort(((e,t)=>e-t));return n.length%2!==0?o[i]:(o[i-1]+o[i])/2},unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length};const Jse={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Cse("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection((n=>{t="undefined"!==typeof t?t:!e.getIsAllRowsSelected();const r={...n},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach((e=>{e.getCanSelect()&&(r[e.id]=!0)})):i.forEach((e=>{delete r[e.id]})),r}))},e.toggleAllPageRowsSelected=t=>e.setRowSelection((n=>{const r="undefined"!==typeof t?t:!e.getIsAllPageRowsSelected(),i={...n};return e.getRowModel().rows.forEach((t=>{ele(i,t.id,r,!0,e)})),i})),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Ise((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?tle(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getFilteredSelectedRowModel=Ise((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?tle(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"getFilteredSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getGroupedSelectedRowModel=Ise((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?tle(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"getGroupedSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=Boolean(t.length&&Object.keys(n).length);return r&&t.some((e=>e.getCanSelect()&&!n[e.id]))&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter((e=>e.getCanSelect())),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some((e=>!n[e.id]))&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter((e=>e.getCanSelect())).some((e=>e.getIsSelected()||e.getIsSomeSelected()))},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const i=e.getIsSelected();t.setRowSelection((o=>{var a;if(n="undefined"!==typeof n?n:!i,e.getCanSelect()&&i===n)return o;const s={...o};return ele(s,e.id,n,null==(a=null==r?void 0:r.selectChildren)||a,t),s}))},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return nle(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===rle(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===rle(e,n)},e.getCanSelect=()=>{var n;return"function"===typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"===typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"===typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var r;t&&e.toggleSelected(null==(r=n.target)?void 0:r.checked)}}}},ele=(e,t,n,r,i)=>{var o;const a=i.getRow(t);n?(a.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),a.getCanSelect()&&(e[t]=!0)):delete e[t],r&&null!=(o=a.subRows)&&o.length&&a.getCanSelectSubRows()&&a.subRows.forEach((t=>ele(e,t.id,n,r,i)))};function tle(e,t){const n=e.getState().rowSelection,r=[],i={},o=function(e,t){return e.map((e=>{var t;const a=nle(e,n);if(a&&(r.push(e),i[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:o(e.subRows)}),a)return e})).filter(Boolean)};return{rows:o(t.rows),flatRows:r,rowsById:i}}function nle(e,t){var n;return null!=(n=t[e.id])&&n}function rle(e,t,n){var r;if(null==(r=e.subRows)||!r.length)return!1;let i=!0,o=!1;return e.subRows.forEach((e=>{if((!o||i)&&(e.getCanSelect()&&(nle(e,t)?o=!0:i=!1),e.subRows&&e.subRows.length)){const n=rle(e,t);"all"===n?o=!0:"some"===n?(o=!0,i=!1):i=!1}})),i?"all":!!o&&"some"}const ile=/([0-9]+)/gm;function ole(e,t){return e===t?0:e>t?1:-1}function ale(e){return"number"===typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"===typeof e?e:""}function sle(e,t){const n=e.split(ile).filter(Boolean),r=t.split(ile).filter(Boolean);for(;n.length&&r.length;){const e=n.shift(),t=r.shift(),i=parseInt(e,10),o=parseInt(t,10),a=[i,o].sort();if(isNaN(a[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(a[1]))return isNaN(i)?-1:1;if(i>o)return 1;if(o>i)return-1}}return n.length-r.length}const lle={alphanumeric:(e,t,n)=>sle(ale(e.getValue(n)).toLowerCase(),ale(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>sle(ale(e.getValue(n)),ale(t.getValue(n))),text:(e,t,n)=>ole(ale(e.getValue(n)).toLowerCase(),ale(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>ole(ale(e.getValue(n)),ale(t.getValue(n))),datetime:(e,t,n)=>{const r=e.getValue(n),i=t.getValue(n);return r>i?1:r<i?-1:0},basic:(e,t,n)=>ole(e.getValue(n),t.getValue(n))},cle=[Pse,{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Cse("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()})))},e.getIsVisible=()=>{var n,r;return null==(n=null==(r=t.getState().columnVisibility)?void 0:r[e.id])||n},e.getCanHide=()=>{var n,r;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(r=t.options.enableHiding)||r)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=Ise((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),{key:"row._getAllVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getVisibleCells=Ise((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,n)=>[...e,...t,...n]),{key:!1,debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})},createTable:e=>{const t=(t,n)=>Ise((()=>[n(),n().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),{key:t,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}});e.getVisibleFlatColumns=t("getVisibleFlatColumns",(()=>e.getAllFlatColumns())),e.getVisibleLeafColumns=t("getVisibleLeafColumns",(()=>e.getAllLeafColumns())),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",(()=>e.getLeftLeafColumns())),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",(()=>e.getRightLeafColumns())),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",(()=>e.getCenterLeafColumns())),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())})),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}},{getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Cse("columnOrder",e)}),createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=Ise((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,n)=>r=>{let i=[];if(null!=e&&e.length){const t=[...e],n=[...r];for(;n.length&&t.length;){const e=t.shift(),r=n.findIndex((t=>t.id===e));r>-1&&i.push(n.splice(r,1)[0])}i=[...i,...n]}else i=r;return function(e,t,n){if(null==t||!t.length||!n)return e;const r=e.filter((e=>!t.includes(e.id)));return"remove"===n?r:[...t.map((t=>e.find((e=>e.id===t)))).filter(Boolean),...r]}(i,t,n)}),{key:!1})}},{getInitialState:e=>({columnPinning:{left:[],right:[]},rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:Cse("columnPinning",e),onRowPinningChange:Cse("rowPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map((e=>e.id)).filter(Boolean);t.setColumnPinning((e=>{var t,i,o,a,s,l;return"right"===n?{left:(null!=(o=null==e?void 0:e.left)?o:[]).filter((e=>!(null!=r&&r.includes(e)))),right:[...(null!=(a=null==e?void 0:e.right)?a:[]).filter((e=>!(null!=r&&r.includes(e)))),...r]}:"left"===n?{left:[...(null!=(s=null==e?void 0:e.left)?s:[]).filter((e=>!(null!=r&&r.includes(e)))),...r],right:(null!=(l=null==e?void 0:e.right)?l:[]).filter((e=>!(null!=r&&r.includes(e))))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter((e=>!(null!=r&&r.includes(e)))),right:(null!=(i=null==e?void 0:e.right)?i:[]).filter((e=>!(null!=r&&r.includes(e))))}}))},e.getCanPin=()=>e.getLeafColumns().some((e=>{var n,r,i;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(r=null!=(i=t.options.enableColumnPinning)?i:t.options.enablePinning)||r)})),e.getIsPinned=()=>{const n=e.getLeafColumns().map((e=>e.id)),{left:r,right:i}=t.getState().columnPinning,o=n.some((e=>null==r?void 0:r.includes(e))),a=n.some((e=>null==i?void 0:i.includes(e)));return o?"left":!!a&&"right"},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();return i?null!=(n=null==(r=t.getState().columnPinning)||null==(r=r[i])?void 0:r.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.pin=(n,r,i)=>{const o=r?e.getLeafRows().map((e=>{let{id:t}=e;return t})):[],a=i?e.getParentRows().map((e=>{let{id:t}=e;return t})):[],s=new Set([...a,e.id,...o]);t.setRowPinning((e=>{var t,r,i,o,a,l;return"bottom"===n?{top:(null!=(i=null==e?void 0:e.top)?i:[]).filter((e=>!(null!=s&&s.has(e)))),bottom:[...(null!=(o=null==e?void 0:e.bottom)?o:[]).filter((e=>!(null!=s&&s.has(e)))),...Array.from(s)]}:"top"===n?{top:[...(null!=(a=null==e?void 0:e.top)?a:[]).filter((e=>!(null!=s&&s.has(e)))),...Array.from(s)],bottom:(null!=(l=null==e?void 0:e.bottom)?l:[]).filter((e=>!(null!=s&&s.has(e))))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter((e=>!(null!=s&&s.has(e)))),bottom:(null!=(r=null==e?void 0:e.bottom)?r:[]).filter((e=>!(null!=s&&s.has(e))))}}))},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:i}=t.options;return"function"===typeof r?r(e):null==(n=null!=r?r:i)||n},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:i}=t.getState().rowPinning,o=n.some((e=>null==r?void 0:r.includes(e))),a=n.some((e=>null==i?void 0:i.includes(e)));return o?"top":!!a&&"bottom"},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();if(!i)return-1;const o=null==(n=t._getPinnedRows(i))?void 0:n.map((e=>{let{id:t}=e;return t}));return null!=(r=null==o?void 0:o.indexOf(e.id))?r:-1},e.getCenterVisibleCells=Ise((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!r.includes(e.column.id)))}),{key:!1,debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getLeftVisibleCells=Ise((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})))),{key:!1,debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getRightVisibleCells=Ise((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})))),{key:!1,debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(r=e.initialState)?void 0:r.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;var i,o;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(i=r.left)?void 0:i.length)||(null==(o=r.right)?void 0:o.length))},e.getLeftLeafColumns=Ise((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>
205e.id===t)))).filter(Boolean)),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.getRightLeafColumns=Ise((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.getCenterLeafColumns=Ise((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!r.includes(e.id)))}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(r=e.initialState)?void 0:r.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;var i,o;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(i=r.top)?void 0:i.length)||(null==(o=r.bottom)?void 0:o.length))},e._getPinnedRows=t=>Ise((()=>[e.getRowModel().rows,e.getState().rowPinning[t]]),((n,r)=>{var i;return(null==(i=e.options.keepPinnedRows)||i?(null!=r?r:[]).map((t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null})):(null!=r?r:[]).map((e=>n.find((t=>t.id===e))))).filter(Boolean).map((e=>({...e,position:t})))}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})(),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=Ise((()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom]),((e,t,n)=>{const r=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter((e=>!r.has(e.id)))}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})}},{getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:Cse("columnFilters",e),onGlobalFilterChange:Cse("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"===typeof r||"number"===typeof r}}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"===typeof r?Kse.includesString:"number"===typeof r?Kse.inNumberRange:"boolean"===typeof r||null!==r&&"object"===typeof r?Kse.equals:Array.isArray(r)?Kse.arrIncludes:Kse.weakEquals},e.getFilterFn=()=>{var n,r;return Ose(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(r=t.options.filterFns)?void 0:r[e.columnDef.filterFn])?n:Kse[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,i;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(r=t.options.enableColumnFilters)||r)&&(null==(i=t.options.enableFilters)||i)&&!!e.accessorFn},e.getCanGlobalFilter=()=>{var n,r,i,o;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(r=t.options.enableGlobalFilter)||r)&&(null==(i=t.options.enableFilters)||i)&&(null==(o=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||o)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find((t=>t.id===e.id)))?void 0:n.value},e.getFilterIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().columnFilters)?void 0:r.findIndex((t=>t.id===e.id)))?n:-1},e.setFilterValue=n=>{t.setColumnFilters((t=>{const r=e.getFilterFn(),i=null==t?void 0:t.find((t=>t.id===e.id)),o=Tse(n,i?i.value:void 0);var a;if(Zse(r,o,e))return null!=(a=null==t?void 0:t.filter((t=>t.id!==e.id)))?a:[];const s={id:e.id,value:o};var l;return i?null!=(l=null==t?void 0:t.map((t=>t.id===e.id?s:t)))?l:[]:null!=t&&t.length?[...t,s]:[s]}))},e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.i
vendor: 15,636 bytes, line 205
205d),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Kse.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Ose(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:Kse[r]},e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var r;return null==(r=Tse(t,e))?void 0:r.filter((e=>{const t=n.find((t=>t.id===e.id));if(t){if(Zse(t.getFilterFn(),e.value,t))return!1}return!0}))}))},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Cse("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return lle.datetime;if("string"===typeof n&&(r=!0,n.split(ile).length>1))return lle.alphanumeric}return r?lle.text:lle.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"===typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return Ose(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(r=t.options.sortingFns)?void 0:r[e.columnDef.sortingFn])?n:lle[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const i=e.getNextSortingOrder(),o="undefined"!==typeof n&&null!==n;t.setSorting((a=>{const s=null==a?void 0:a.find((t=>t.id===e.id)),l=null==a?void 0:a.findIndex((t=>t.id===e.id));let c,u=[],d=o?n:"desc"===i;var p;(c=null!=a&&a.length&&e.getCanMultiSort()&&r?s?"toggle":"add":null!=a&&a.length&&l!==a.length-1?"replace":s?"toggle":"replace","toggle"===c&&(o||i||(c="remove")),"add"===c)?(u=[...a,{id:e.id,desc:d}],u.splice(0,u.length-(null!=(p=t.options.maxMultiSortColCount)?p:Number.MAX_SAFE_INTEGER))):u="toggle"===c?a.map((t=>t.id===e.id?{...t,desc:d}:t)):"remove"===c?a.filter((t=>t.id!==e.id)):[{id:e.id,desc:d}];return u}))},e.getFirstSortDir=()=>{var n,r;return(null!=(n=null!=(r=e.columnDef.sortDescFirst)?r:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var r,i;const o=e.getFirstSortDir(),a=e.getIsSorted();return a?!!(a===o||null!=(r=t.options.enableSortingRemoval)&&!r||n&&null!=(i=t.options.enableMultiRemove)&&!i)&&("desc"===a?"asc":"desc"):o},e.getCanSort=()=>{var n,r;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(r=t.options.enableSorting)||r)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return null!=(n=null!=(r=e.columnDef.enableMultiSort)?r:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=null==(n=t.getState().sorting)?void 0:n.find((t=>t.id===e.id));return!!r&&(r.desc?"desc":"asc")},e.getSortIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().sorting)?void 0:r.findIndex((t=>t.id===e.id)))?n:-1},e.clearSorting=()=>{t.setSorting((t=>null!=t&&t.length?t.filter((t=>t.id!==e.id)):[]))},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(null==r.persist||r.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(r))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},{getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Cse("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))},e.getCanGroup=()=>{var n,r,i,o;return null!=(n=null==(r=null!=(i=null==(o=e.columnDef.enableGrouping)||o)?i:t.options.enableGrouping)||r)?n:!!e.accessorFn},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"number"===typeof r?Qse.sum:"[object Date]"===Object.prototype.toString.call(r)?Qse.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Ose(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(r=t.options.aggregationFns)?void 0:r[e.columnDef.aggregationFn])?n:Qse[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return null!=r&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}},Bse,{getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Cse("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,i;if(t){if(null!=(r=null!=(i=e.options.autoResetAll)?i:e.options.autoResetPageIndex)?r:!e.options.manualPagination){if(n)return;n=!0,e._queue((()=>{e.resetPageIndex(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>Tse(t,e))),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination((n=>{let r=Tse(t,n.pageIndex);const i="undefined"===typeof e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return r=Math.max(0,Math.min(r,i)),{...n,pageIndex:r}}))},e.resetPageIndex=t=>{var n,r;e.setPageIndex(t?0:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageIndex)?n:0)},e.resetPageSize=t=>{var n,r;e.setPageSize(t?10:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination((e=>{const n=Math.max(1,Tse(t,e.pageSize)),r=e.pageSize*e.pageIndex,i=Math.floor(r/n);return{...e,pageIndex:i,pageSize:n}}))},e.setPageCount=t=>e.setPagination((n=>{var r;let i=Tse(t,null!=(r=e.options.pageCount)?r:-1);return"number"===typeof i&&(i=Math.max(-1,i)),{...n,pageCount:i}})),e.getPageOptions=Ise((()=>[e.getPageCount()]),(e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex((e=>e-1)),e.nextPage=()=>e.setPageIndex((e=>e+1)),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}},Jse,Dse];function ule(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let n={_features:cle};const r=n._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(n))),{});let i={...null!=(t=e.initialState)?t:{}};n._features.forEach((e=>{var t;i=null!=(t=null==e.getInitialState?void 0:e.getInitialState(i))?t:i}));const o=[];let a=!1;const s={_features:cle,options:{...r,...e},initialState:i,_queue:e=>{o.push(e),a||(a=!0,Promise.resolve().then((()=>{for(;o.length;)o.shift()();a=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{n.setState(n.initialState)},setOptions:e=>{const t=Tse(e,n.options);n.options=(e=>n.options.mergeOptions?n.options.mergeOptions(r,e):{...r,...e})(t)},getState:()=>n.options.state,setState:e=>{null==n.options.onStateChange||n.options.onStateChange(e)},_getRowId:(e,t,r)=>{var i;return null!=(i=null==n.options.getRowId?void 0:n.options.getRowId(e,t,r))?i:`${r?[r.id,t].join("."):t}`},getCoreRowModel:()=>(n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:(e,t)=>{const r=(t?n.getCoreRowModel():n.getRowModel()).rowsById[e];if(!r)throw new Error;return r},_getDefaultColumnDef:Ise((()=>[n.options.defaultColumn]),(e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...n._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef())),{}),...e}}),{debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns},key:!1}),_getColumnDefs:()=>n.options.columns,getAllColumns:Ise((()=>[n._getColumnDefs()]),(e=>{const t=function(e,r,i){return void 0===i&&(i=0),e.map((e=>{const o=function(e,t,n,r){var i,o;const a={...e._getDefaultColumnDef(),...t},s=a.accessorKey;let l,c=null!=(i=null!=(o=a.id)?o:s?s.replace(".","_"):void 0)?i:"string"===typeof a.header?a.header:void 0;if(a.accessorFn?l=a.accessorFn:s&&(l=s.includes(".")?e=>{let t=e;for(const r of s.split(".")){var n;t=null==(n=t)?void 0:n[r]}return t}:e=>e[a.accessorKey]),!c)throw new Error;let u={id:`${String(c)}`,accessorFn:l,parent:r,depth:n,columnDef:a,columns:[],getFlatColumns:Ise((()=>[!0]),(()=>{var e;return[u,...null==(e=u.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),{key:"column.getFlatColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getLeafColumns:Ise((()=>[e._getOrderColumnsFn()]),(e=>{var t;if(null!=(t=u.columns)&&t.length){let t=u.columns.flatMap((e=>e.getLeafColumns()));return e(t)}return[u]}),{key:"column.getLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})};for(const d of e._features)null==d.createColumn||d.createColumn(u,e);return u}(n,e,i,r),a=e;return o.columns=a.columns?t(a.columns,o,i+1):[],o}))};return t(e)}),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllFlatColumns:Ise((()=>[n.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),_getAllFlatColumnsById:Ise((()=>[n.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllLeafColumns:Ise((()=>[n.getAllColumns(),n._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getColumn:e=>n._getAllFlatColumnsById()[e]};Object.assign(n,s);for(let l=0;l<n._features.length;l++){const e=n._features[l];null==e||null==e.createTable||e.createTable(n)}return n}const dle=(e,t,n,r,i,o,a)=>{let s={id:t,index:r,original:n,depth:i,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(s._valuesCache.hasOwnProperty(t))return s._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(s._valuesCache[t]=n.accessorFn(s.original,r),s._valuesCache[t]):void 0},getUniqueValues:t=>{if(s._uniqueValuesCache.hasOwnProperty(t))return s._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(s._uniqueValuesCache[t]=n.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[t]):(s._uniqueValuesCache[t]=[s.getValue(t)],s._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=s.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=o?o:[],getLeafRows:()=>Nse(s.subRows,(e=>e.subRows)),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let e=[],t=s;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:Ise((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,n,r){const i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>{var t;return null!=(t=i.getValue())?t:e.options.renderFallbackValue},getContext:Ise((()=>[e,n,t,i]),((e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue})),{key:!1,debug:()=>e.options.debugAll})};
205return e._features.forEach((r=>{null==r.createCell||r.createCell(i,n,t,e)}),{}),i}(e,s,t,t.id)))),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}}),_getAllCellsByColumnId:Ise((()=>[s.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),{key:"row.getAllCellsByColumnId",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})};for(let l=0;l<e._features.length;l++){const t=e._features[l];null==t||null==t.createRow||t.createRow(s,e)}return s};function ple(e,t,n){return n.options.filterFromLeafRows?function(e,t,n){var r;const i=[],o={},a=null!=(r=n.options.maxLeafRowFilterDepth)?r:100,s=function(e,r){void 0===r&&(r=0);const l=[];for(let u=0;u<e.length;u++){var c;let d=e[u];const p=dle(n,d.id,d.original,d.index,d.depth,void 0,d.parentId);if(p.columnFilters=d.columnFilters,null!=(c=d.subRows)&&c.length&&r<a){if(p.subRows=s(d.subRows,r+1),d=p,t(d)&&!p.subRows.length){l.push(d),o[d.id]=d,i.push(d);continue}if(t(d)||p.subRows.length){l.push(d),o[d.id]=d,i.push(d);continue}}else d=p,t(d)&&(l.push(d),o[d.id]=d,i.push(d))}return l};return{rows:s(e),flatRows:i,rowsById:o}}(e,t,n):function(e,t,n){var r;const i=[],o={},a=null!=(r=n.options.maxLeafRowFilterDepth)?r:100,s=function(e,r){void 0===r&&(r=0);const l=[];for(let u=0;u<e.length;u++){let d=e[u];if(t(d)){var c;if(null!=(c=d.subRows)&&c.length&&r<a){const e=dle(n,d.id,d.original,d.index,d.depth,void 0,d.parentId);e.subRows=s(d.subRows,r+1),d=e}l.push(d),i.push(d),o[d.id]=d}}return l};return{rows:s(e),flatRows:i,rowsById:o}}(e,t,n)}function hle(){return e=>Ise((()=>[e.getState().grouping,e.getPreGroupedRowModel()]),((t,n)=>{if(!n.rows.length||!t.length)return n;const r=t.filter((t=>e.getColumn(t))),i=[],o={},a=function(t,n,s){if(void 0===n&&(n=0),n>=r.length)return t.map((e=>(e.depth=n,i.push(e),o[e.id]=e,e.subRows&&(e.subRows=a(e.subRows,n+1,e.id)),e)));const l=r[n],c=function(e,t){const n=new Map;return e.reduce(((e,n)=>{const r=`${n.getGroupingValue(t)}`,i=e.get(r);return i?i.push(n):e.set(r,[n]),e}),n)}(t,l),u=Array.from(c.entries()).map(((t,c)=>{let[u,d]=t,p=`${l}:${u}`;p=s?`${s}>${p}`:p;const h=a(d,n+1,p),f=n?Nse(d,(e=>e.subRows)):d,m=dle(e,p,f[0].original,c,n,void 0,s);return Object.assign(m,{groupingColumnId:l,groupingValue:u,subRows:h,leafRows:f,getValue:t=>{if(r.includes(t)){if(m._valuesCache.hasOwnProperty(t))return m._valuesCache[t];var n;if(d[0])m._valuesCache[t]=null!=(n=d[0].getValue(t))?n:void 0;return m._valuesCache[t]}if(m._groupingValuesCache.hasOwnProperty(t))return m._groupingValuesCache[t];const i=e.getColumn(t),o=null==i?void 0:i.getAggregationFn();return o?(m._groupingValuesCache[t]=o(t,f,d),m._groupingValuesCache[t]):void 0}}),h.forEach((e=>{i.push(e),o[e.id]=e})),m}));return u},s=a(n.rows,0);return s.forEach((e=>{i.push(e),o[e.id]=e})),{rows:s,flatRows:i,rowsById:o}}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._queue((()=>{e._autoResetExpanded(),e._autoResetPageIndex()}))}})}function fle(e){const t=[],n=e=>{var r;t.push(e),null!=(r=e.subRows)&&r.length&&e.getIsExpanded()&&e.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}const mle={"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\u1ea4":"A","\u1eae":"A","\u1eb2":"A","\u1eb4":"A","\u1eb6":"A","\xc6":"AE","\u1ea6":"A","\u1eb0":"A","\u0202":"A","\xc7":"C","\u1e08":"C","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\u1ebe":"E","\u1e16":"E","\u1ec0":"E","\u1e14":"E","\u1e1c":"E","\u0206":"E","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\u1e2e":"I","\u020a":"I","\xd0":"D","\xd1":"N","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\u1ed0":"O","\u1e4c":"O","\u1e52":"O","\u020e":"O","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xdd":"Y","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\u1ea5":"a","\u1eaf":"a","\u1eb3":"a","\u1eb5":"a","\u1eb7":"a","\xe6":"ae","\u1ea7":"a","\u1eb1":"a","\u0203":"a","\xe7":"c","\u1e09":"c","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\u1ebf":"e","\u1e17":"e","\u1ec1":"e","\u1e15":"e","\u1e1d":"e","\u0207":"e","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\u1e2f"
205:"i","\u020b":"i","\xf0":"d","\xf1":"n","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\u1ed1":"o","\u1e4d":"o","\u1e53":"o","\u020f":"o","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xfd":"y","\xff":"y","\u0100":"A","\u0101":"a","\u0102":"A","\u0103":"a","\u0104":"A","\u0105":"a","\u0106":"C","\u0107":"c","\u0108":"C","\u0109":"c","\u010a":"C","\u010b":"c","\u010c":"C","\u010d":"c","C\u0306":"C","c\u0306":"c","\u010e":"D","\u010f":"d","\u0110":"D","\u0111":"d","\u0112":"E","\u0113":"e","\u0114":"E","\u0115":"e","\u0116":"E","\u0117":"e","\u0118":"E","\u0119":"e","\u011a":"E","\u011b":"e","\u011c":"G","\u01f4":"G","\u011d":"g","\u01f5":"g","\u011e":"G","\u011f":"g","\u0120":"G","\u0121":"g","\u0122":"G","\u0123":"g","\u0124":"H","\u0125":"h","\u0126":"H","\u0127":"h","\u1e2a":"H","\u1e2b":"h","\u0128":"I","\u0129":"i","\u012a":"I","\u012b":"i","\u012c":"I","\u012d":"i","\u012e":"I","\u012f":"i","\u0130":"I","\u0131":"i","\u0132":"IJ","\u0133":"ij","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u1e30":"K","\u1e31":"k","K\u0306":"K","k\u0306":"k","\u0139":"L","\u013a":"l","\u013b":"L","\u013c":"l","\u013d":"L","\u013e":"l","\u013f":"L","\u0140":"l","\u0141":"l","\u0142":"l","\u1e3e":"M","\u1e3f":"m","M\u0306":"M","m\u0306":"m","\u0143":"N","\u0144":"n","\u0145":"N","\u0146":"n","\u0147":"N","\u0148":"n","\u0149":"n","N\u0306":"N","n\u0306":"n","\u014c":"O","\u014d":"o","\u014e":"O","\u014f":"o","\u0150":"O","\u0151":"o","\u0152":"OE","\u0153":"oe","P\u0306":"P","p\u0306":"p","\u0154":"R","\u0155":"r","\u0156":"R","\u0157":"r","\u0158":"R","\u0159":"r","R\u0306":"R","r\u0306":"r","\u0212":"R","\u0213":"r","\u015a":"S","\u015b":"s","\u015c":"S","\u015d":"s","\u015e":"S","\u0218":"S","\u0219":"s","\u015f":"s","\u0160":"S","\u0161":"s","\u0162":"T","\u0163":"t","\u021b":"t","\u021a":"T","\u0164":"T","\u0165":"t","\u0166":"T","\u0167":"t","T\u0306":"T","t\u0306":"t","\u0168":"U","\u0169":"u","\u016a":"U","\u016b":"u","\u016c":"U","\u016d":"u","\u016e":"U","\u016f":"u","\u0170":"U","\u0171":"u","\u0172":"U","\u0173":"u","\u0216":"U","\u0217":"u","V\u0306":"V","v\u0306":"v","\u0174":"W","\u0175":"w","\u1e82":"W","\u1e83":"w","X\u0306":"X","x\u0306":"x","\u0176":"Y","\u0177":"y","\u0178":"Y","Y\u0306":"Y","y\u0306":"y","\u0179":"Z","\u017a":"z","\u017b":"Z","\u017c":"z","\u017d":"Z","\u017e":"z","\u017f":"s","\u0192":"f","\u01a0":"O","\u01a1":"o","\u01af":"U","\u01b0":"u","\u01cd":"A","\u01ce":"a","\u01cf":"I","\u01d0":"i","\u01d1":"O","\u01d2":"o","\u01d3":"U","\u01d4":"u","\u01d5":"U","\u01d6":"u","\u01d7":"U","\u01d8":"u","\u01d9":"U","\u01da":"u","\u01db":"U","\u01dc":"u","\u1ee8":"U","\u1ee9":"u","\u1e78":"U","\u1e79":"u","\u01fa":"A","\u01fb":"a","\u01fc":"AE","\u01fd":"ae","\u01fe":"O","\u01ff":"o","\xde":"TH","\xfe":"th","\u1e54":"P","\u1e55":"p","\u1e64":"S","\u1e65":"s","X\u0301":"X","x\u0301":"x","\u0403":"\u0413","\u0453":"\u0433","\u040c":"\u041a","\u045c":"\u043a","A\u030b":"A","a\u030b":"a","E\u030b":"E","e\u030b":"e","I\u030b":"I","i\u030b":"i","\u01f8":"N","\u01f9":"n","\u1ed2":"O","\u1ed3":"o","\u1e50":"O","\u1e51":"o","\u1eea":"U","\u1eeb":"u","\u1e80":"W","\u1e81":"w","\u1ef2":"Y","\u1ef3":"y","\u0200":"A","\u0201":"a","\u0204":"E","\u0205":"e","\u0208":"I","\u0209":"i","\u020c":"O","\u020d":"o","\u0210":"R","\u0211":"r","\u0214":"U","\u0215":"u","B\u030c":"B","b\u030c":"b","\u010c\u0323":"C","\u010d\u0323":"c","\xca\u030c":"E","\xea\u030c":"e","F\u030c":"F","f\u030c":"f","\u01e6":"G","\u01e7":"g","\u021e":"H","\u021f":"h","J\u030c":"J","\u01f0":"j","\u01e8":"K","\u01e9":"k","M\u030c":"M","m\u030c":"m","P\u030c":"P","p\u030c":"p","Q\u030c":"Q","q\u030c":"q","\u0158\u0329":"R","\u0159\u0329":"r","\u1e66":"S","\u1e67":"s","V\u030c":"V","v\u030c":"v","W\u030c":"W","w\u030c":"w","X\u030c":"X","x\u030c":"x","Y\u030c":"Y","y\u030c":"y","A\u0327":"A","a\u0327":"a","B\u0327":"B","b\u0327":"b","\u1e10":"D","\u1e11":"d","\u0228":"E","\u0229":"e","\u0190\u0327":"E","\u025b\u0327":"e","\u1e28":"H","\u1e29":"h","I\u0327":"I","i\u0327":"i","\u0197\u0327":"I","\u0268\u0327":"i","M\u0327":"M","m\u0327":"m","O\u0327":"O","o\u0327":"o","Q\u0327":"Q","q\u0327":"q","U\u0327":"U","u\u0327":"u","X\u0327":"X","x\u0327":"x","Z\u0327":"Z","z\u0327":"z"},gle=Object.keys(mle).join("|"),ble=new RegExp(gle,"g");const vle=7,yle=6,xle=5,wle=4,Ale=3,Ele=2,Sle=1,_le=0;function kle(e,t,n){var r;if((n=n||{}).threshold=null!=(r=n.threshold)?r:Sle,!n.accessors){const r=Tle(e,t,n);return{rankedValue:e,rank:r,accessorIndex:-1,accessorThreshold:n.threshold,passed:r>=n.threshold}}const i=function(e,t){const n=[];for(let r=0,i=t.length;r<i;r++){const i=t[r],o=Ile(i),a=Ole(e,i);for(let e=0,t=a.length;e<t;e++)n.push({itemValue:a[e],attributes:o})}return n}(e,n.accessors),o={rankedValue:e,rank:_le,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let a=0;a<i.length;a++){const e=i[a];let r=Tle(e.itemValue,t,n);const{minRanking:s,maxRanking:l,threshold:c=n.threshold}=e.attributes;r<s&&r>=Sle?r=s:r>l&&(r=l),r=Math.min(r,l),r>=c&&r>o.rank&&(o.rank=r,o.passed=!0,o.accessorIndex=a,o.accessorThreshold=c,o.rankedValue=e.itemValue)}return o}
205function Tle(e,t,n){return e=Cle(e,n),(t=Cle(t,n)).length>e.length?_le:e===t?vle:(e=e.toLowerCase())===(t=t.toLowerCase())?yle:e.startsWith(t)?xle:e.includes(` ${t}`)?wle:e.includes(t)?Ale:1===t.length?_le:function(e){let t="";return e.split(" ").forEach((e=>{e.split("-").forEach((e=>{t+=e.substr(0,1)}))})),t}(e).includes(t)?Ele:function(e,t){let n=0,r=0;function i(e,t,r){for(let i=r,o=t.length;i<o;i++){if(t[i]===e)return n+=1,i+1}return-1}function o(e){const r=1/e,i=n/t.length;return Sle+i*r}const a=i(t[0],e,0);if(a<0)return _le;r=a;for(let s=1,l=t.length;s<l;s++){r=i(t[s],e,r);if(!(r>-1))return _le}return o(r-a)}(e,t)}function Cle(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(ble,(e=>mle[e]))),e}function Ole(e,t){let n=t;"object"===typeof t&&(n=t.accessor);const r=n(e);return null==r?[]:Array.isArray(r)?r:[String(r)]}const Nle={maxRanking:1/0,minRanking:-1/0};function Ile(e){return"function"===typeof e?Nle:{...Nle,...e}}var Rle=__webpack_require__(86456),Ple=__webpack_require__(75054),jle=__webpack_require__(42209),Mle=__webpack_require__(96319),Dle=__webpack_require__(74032),Lle=__webpack_require__(18832),Fle=__webpack_require__(59192),Ble=__webpack_require__(61447),Ule=__webpack_require__(6894),zle=__webpack_require__(7999),Hle=__webpack_require__(18726),$le=__webpack_require__(98350),Vle=__webpack_require__(51069),Gle=__webpack_require__(35172),Wle=__webpack_require__(79953),qle=__webpack_require__(16702),Yle=__webpack_require__(60694),Kle=__webpack_require__(4422),Xle=__webpack_require__(94453),Zle=__webpack_require__(30444),Qle=__webpack_require__(71333),Jle=__webpack_require__(92098),ece=__webpack_require__(19223),tce=__webpack_require__(39854),nce=__webpack_require__(89463),rce=__webpack_require__(18116),ice=__webpack_require__(62462),oce=__webpack_require__(93539);function ace(e){return(0,ge.Ay)("MuiDialog",e)}var sce=(0,me.A)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);var lce=c.createContext({}),cce=__webpack_require__(55158);const uce=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],dce=(0,ne.Ay)(cce.A,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),pce=(0,ne.Ay)(Ls.A,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),hce=(0,ne.Ay)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${(0,he.A)(n.scroll)}`]]}})((e=>{let{ownerState:t}=e;return(0,R.A)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===t.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===t.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})})),fce=(0,ne.Ay)(fe.A,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${(0,he.A)(n.scroll)}`],t[`paperWidth${(0,he.A)(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((e=>{let{theme:t,ownerState:n}=e;return(0,R.A)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===n.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===n.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!n.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===n.maxWidth&&{maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${sce.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},n.maxWidth&&"xs"!==n.maxWidth&&{maxWidth:`${t.breakpoints.values[n.maxWidth]}${t.breakpoints.unit}`,[`&.${sce.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[n.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},n.fullWidth&&{width:"calc(100% - 64px)"},n.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${sce.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})}));var mce=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiDialog"}),r=(0,re.A)(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":o,"aria-labelledby":a,BackdropComponent:s,BackdropProps:l,children:u,className:d,disableEscapeKeyDown:p=!1,fullScreen:h=!1,fullWidth:f=!1,maxWidth:m="sm",onBackdropClick:g,onClick:b,onClose:v,open:y,PaperComponent:x=fe.A,PaperProps:w={},scroll:A="paper",TransitionComponent:E=Mi.A,transitionDuration:S=i,TransitionProps:_}=n,k=(0,P.A)(n,uce),T=(0,R.A)({},n,{disableEscapeKeyDown:p,fullScreen:h,fullWidth:f,maxWidth:m,scroll:A}),C=(e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}
205=e,a={root:["root"],container:["container",`scroll${(0,he.A)(n)}`],paper:["paper",`paperScroll${(0,he.A)(n)}`,`paperWidth${(0,he.A)(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return(0,pe.A)(a,ace,t)})(T),O=c.useRef(),N=(0,oce.A)(a),I=c.useMemo((()=>({titleId:N})),[N]);return(0,L.jsx)(pce,(0,R.A)({className:(0,de.A)(C.root,d),closeAfterTransition:!0,components:{Backdrop:dce},componentsProps:{backdrop:(0,R.A)({transitionDuration:S,as:s},l)},disableEscapeKeyDown:p,onClose:v,open:y,ref:t,onClick:e=>{b&&b(e),O.current&&(O.current=null,g&&g(e),v&&v(e,"backdropClick"))},ownerState:T},k,{children:(0,L.jsx)(E,(0,R.A)({appear:!0,in:y,timeout:S,role:"presentation"},_,{children:(0,L.jsx)(hce,{className:(0,de.A)(C.container),onMouseDown:e=>{O.current=e.target===e.currentTarget},ownerState:T,children:(0,L.jsx)(fce,(0,R.A)({as:x,elevation:24,role:"dialog","aria-describedby":o,"aria-labelledby":N},w,{className:(0,de.A)(C.paper,w.className),ownerState:T,children:(0,L.jsx)(lce.Provider,{value:I,children:u})}))})}))}))})),gce=__webpack_require__(22302);var bce=c.createContext();var vce=c.createContext();function yce(e){return(0,ge.Ay)("MuiTableCell",e)}var xce=(0,me.A)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);const wce=["align","className","component","padding","scope","size","sortDirection","variant"],Ace=(0,ne.Ay)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${(0,he.A)(n.size)}`],"normal"!==n.padding&&t[`padding${(0,he.A)(n.padding)}`],"inherit"!==n.align&&t[`align${(0,he.A)(n.align)}`],n.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:n}=e;return(0,R.A)({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid\n    ${"light"===t.palette.mode?(0,$e.a)((0,$e.X4)(t.palette.divider,1),.88):(0,$e.e$)((0,$e.X4)(t.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===n.variant&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},"body"===n.variant&&{color:(t.vars||t).palette.text.primary},"footer"===n.variant&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},"small"===n.size&&{padding:"6px 16px",[`&.${xce.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===n.padding&&{width:48,padding:"0 0 0 4px"},"none"===n.padding&&{padding:0},"left"===n.align&&{textAlign:"left"},"center"===n.align&&{textAlign:"center"},"right"===n.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===n.align&&{textAlign:"justify"},n.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})})),Ece=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiTableCell"}),{align:r="inherit",className:i,component:o,padding:a,scope:s,size:l,sortDirection:u,variant:d}=n,p=(0,P.A)(n,wce),h=c.useContext(bce),f=c.useContext(vce),m=f&&"head"===f.variant;let g;g=o||(m?"th":"td");let b=s;"td"===g?b=void 0:!b&&m&&(b="col");const v=d||f&&f.variant,y=(0,R.A)({},n,{align:r,component:g,padding:a||(h&&h.padding?h.padding:"normal"),size:l||(h&&h.size?h.size:"medium"),sortDirection:u,stickyHeader:"head"===v&&h&&h.stickyHeader,variant:v}),x=(e=>{const{classes:t,variant:n,align:r,padding:i,size:o,stickyHeader:a}=e,s={root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${(0,he.A)(r)}`,"normal"!==i&&`padding${(0,he.A)(i)}`,`size${(0,he.A)(o)}`]};return(0,pe.A)(s,yce,t)})(y);let w=null;return u&&(w="asc"===u?"ascending":"descending"),(0,L.jsx)(Ace,(0,R.A)({as:g,ref:t,className:(0,de.A)(x.root,i),"aria-sort":w,scope:b,ownerState:y},p))}));var Sce=Ece,_ce=(0,Ve.A)((0,L.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),kce=(0,Ve.A)((0,L.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage");const Tce=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"];var Cce=c.forwardRef((function(e,t){var n,r,i,o,a,s,l,c;const{backIconButtonProps:u,count:d,disabled:p=!1,getItemAriaLabel:h,nextIconButtonProps:f,onPageChange:m,page:g,rowsPerPage:b,showFirstButton:v,showLastButton:y,slots:x={},slotProps:w={}}=e,A=(0,P.A)(e,Tce),E=(0,z.I)(),S=null!=(n=x.firstButton)?n:Pa.A,_=null!=(r=x.lastButton)?r:Pa.A,k=null!=(i=x.nextButton)?i:Pa.A,T=null!=(o=x.previousButton)?o:Pa.A,C=null!=(a=x.firstButtonIcon)?a:kce,O=null!=(s=x.lastButtonIcon)?s:_ce,N=null!=(l=x.nextButtonIcon)?l:is,I=null!=(c=x.previousButtonIcon)?c:rs,j=E?_:S,M=E?k:T,D=E?T:k,F=E?S:_,B=E?w.lastButton:w.firstButton,U=E?w.nextButton:w.previousButton,H=E?w.previousButton:w.nextButton,$=E?w.firstButton:w.lastButton;return(0,L.jsxs)("div",(0,R.A)({ref:t},A,{children:[v&&(0,L.jsx)(j,(0,R.A)({onClick:e=>{m(e,0)},disabled:p||0===g,"aria-label":h("first",g),title:h("first",g)},B,{children:E?(0,L.jsx)(O,(0,R.A)({},w.lastButtonIcon)):(0,L.jsx)(C,(0,R.A)({},w.firstButtonIcon))})),(0,L.jsx)(M,(0,R.A)({onClick:e=>{m(e,g-1)},disabled:p||0===g,color:"inherit","aria-label":h("previous",g),title:h("previous",g)},null!=U?U:u,{children:E?(0,L.jsx)(N,(0,R.A)({},w.nextButtonIcon)):(0,L.jsx)(I,(0,R.A)({},w.previousButtonIcon))})),(0,L.jsx)(D,(0,R.A)({onClick:e=>{m(e,g+1)},disabled:p||-1!==d&&g>=Math.ceil(d/b)-1,color:"inherit","aria-label":h("next",g),title:h("next",g)},null!=H?H:f,{children:E?(0,L.jsx)(I,(0,R.A)({},w.previousButtonIcon)):(0,L.jsx)(N,(0,R.A)({},w.nextButtonIcon))})),y&&(0,L.jsx)(F,(0,R.A)({onClick:e=>{m(e,Math.max(0,Math.ceil(d/b)-1))},disabled:p||g>=Math.ceil(d/b)-1,"aria-label":h("last",g),title:h("last",g)},$,{children:E?(0,L.jsx)(C,(0,R.A)({},w.firstButtonIcon)):(0,L.jsx)(O,(0,R.A)({},w.lastButtonIcon))}))]}))}));function Oce(e){return(0,ge.Ay)("MuiTablePagination",e)}var Nce,Ice=(0,me.A)("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);const Rce=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","
205showFirstButton","showLastButton","slotProps","slots"],Pce=(0,ne.Ay)(Sce,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{overflow:"auto",color:(t.vars||t).palette.text.primary,fontSize:t.typography.pxToRem(14),"&:last-child":{padding:0}}})),jce=(0,ne.Ay)(ke,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>(0,R.A)({[`& .${Ice.actions}`]:t.actions},t.toolbar)})((e=>{let{theme:t}=e;return{minHeight:52,paddingRight:2,[`${t.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[t.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Ice.actions}`]:{flexShrink:0,marginLeft:20}}})),Mce=(0,ne.Ay)("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),Dce=(0,ne.Ay)("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})((e=>{let{theme:t}=e;return(0,R.A)({},t.typography.body2,{flexShrink:0})})),Lce=(0,ne.Ay)(Zs.A,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>(0,R.A)({[`& .${Ice.selectIcon}`]:t.selectIcon,[`& .${Ice.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Ice.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),Fce=(0,ne.Ay)(Qs.A,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),Bce=(0,ne.Ay)("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})((e=>{let{theme:t}=e;return(0,R.A)({},t.typography.body2,{flexShrink:0})}));function Uce(e){let{from:t,to:n,count:r}=e;return`${t}\u2013${n} of ${-1!==r?r:`more than ${n}`}`}function zce(e){return`Go to ${e} page`}var Hce=c.forwardRef((function(e,t){var n;const r=(0,X.b)({props:e,name:"MuiTablePagination"}),{ActionsComponent:i=Cce,backIconButtonProps:o,className:a,colSpan:s,component:l=Sce,count:u,disabled:d=!1,getItemAriaLabel:p=zce,labelDisplayedRows:h=Uce,labelRowsPerPage:f="Rows per page:",nextIconButtonProps:m,onPageChange:g,onRowsPerPageChange:b,page:v,rowsPerPage:y,rowsPerPageOptions:x=[10,25,50,100],SelectProps:w={},showFirstButton:A=!1,showLastButton:E=!1,slotProps:S={},slots:_={}}=r,k=(0,P.A)(r,Rce),T=r,C=(e=>{const{classes:t}=e;return(0,pe.A)({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},Oce,t)})(T),O=null!=(n=null==S?void 0:S.select)?n:w,N=O.native?"option":Fce;let I;
205l!==Sce&&"td"!==l||(I=s||1e3);const j=(0,ni.A)(O.id),M=(0,ni.A)(O.labelId);return(0,L.jsx)(Pce,(0,R.A)({colSpan:I,ref:t,as:l,ownerState:T,className:(0,de.A)(C.root,a)},k,{children:(0,L.jsxs)(jce,{className:C.toolbar,children:[(0,L.jsx)(Mce,{className:C.spacer}),x.length>1&&(0,L.jsx)(Dce,{className:C.selectLabel,id:M,children:f}),x.length>1&&(0,L.jsx)(Lce,(0,R.A)({variant:"standard"},!O.variant&&{input:Nce||(Nce=(0,L.jsx)(gce.Ay,{}))},{value:y,onChange:b,id:j,labelId:M},O,{classes:(0,R.A)({},O.classes,{root:(0,de.A)(C.input,C.selectRoot,(O.classes||{}).root),select:(0,de.A)(C.select,(O.classes||{}).select),icon:(0,de.A)(C.selectIcon,(O.classes||{}).icon)}),disabled:d,children:x.map((e=>(0,c.createElement)(N,(0,R.A)({},!(0,Zl.A)(N)&&{ownerState:T},{className:C.menuItem,key:e.label?e.label:e,value:e.value?e.value:e}),e.label?e.label:e)))})),(0,L.jsx)(Bce,{className:C.displayedRows,children:h({from:0===u?0:v*y+1,to:-1===u?(v+1)*y:-1===y?u:Math.min(u,(v+1)*y),count:-1===u?-1:u,page:v})}),(0,L.jsx)(i,{className:C.actions,backIconButtonProps:o,count:u,nextIconButtonProps:m,onPageChange:g,page:v,rowsPerPage:y,showFirstButton:A,showLastButton:E,slotProps:S.actions,slots:_.actions,getItemAriaLabel:p,disabled:d})]})}))}));function $ce(e){return(0,ge.Ay)("MuiAlert",e)}var Vce=(0,me.A)("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),Gce=(0,Ve.A)((0,L.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),Wce=(0,Ve.A)((0,L.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),qce=(0,Ve.A)((0,L.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),Yce=(0,Ve.A)((0,L.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),Kce=(0,Ve.A)((0,L.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");const Xce=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],Zce=(0,ne.Ay)(fe.A,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,he.A)(n.color||n.severity)}`]]}})((e=>{let{theme:t}=e;const n="light"===t.palette.mode?$e.e$:$e.a,r="light"===t.palette.mode?$e.a:$e.e$;return(0,R.A)({},t.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(t.palette).filter((e=>{let[,t]=e;return t.main&&t.light})).map((e=>{let[i]=e;return{props:{colorSeverity:i,variant:"standard"},style:{color:t.vars?t.vars.palette.Alert[`${i}Color`]:n(t.palette[i].light,.6),backgroundColor:t.vars?t.vars.palette.Alert[`${i}StandardBg`]:r(t.palette[i].light,.9),[`& .${Vce.icon}`]:t.vars?{color:t.vars.palette.Alert[`${i}IconColor`]}:{color:t.palette[i].main}}}})),...Object.entries(t.palette).filter((e=>{let[,t]=e;return t.main&&t.light})).map((e=>{let[r]=e;return{props:{colorSeverity:r,variant:"outlined"},style:{color:t.vars?t.vars.palette.Alert[`${r}Color`]:n(t.palette[r].light,.6),border:`1px solid ${(t.vars||t).palette[r].light}`,[`& .${Vce.icon}`]:t.vars?{color:t.vars.palette.Alert[`${r}IconColor`]}:{color:t.palette[r].main}}}})),...Object.entries(t.palette).filter((e=>{let[,t]=e;return t.main&&t.dark})).map((e=>{let[n]=e;return{props:{colorSeverity:n,variant:"filled"},style:(0,R.A)({fontWeight:t.typography.fontWeightMedium},t.vars?{color:t.vars.palette.Alert[`${n}FilledColor`],backgroundColor:t.vars.palette.Alert[`${n}FilledBg`]}:{backgroundColor:"dark"===t.palette.mode?t.palette[n].dark:t.palette[n].main,color:t.palette.getContrastText(t.palette[n].main)})}}))]})})),Qce=(0,ne.Ay)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Jce=(0,ne.Ay)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),eue=(0,ne.Ay)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),tue={success:(0,L.jsx)(Gce,{fontSize:"inherit"}),warning:(0,L.jsx)(Wce,{fontSize:"inherit"}),error:(0,L.jsx)(qce,{fontSize:"inherit"}),info:(0,L.jsx)(Yce,{fontSize:"inherit"})},nue=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiAlert"}),{action:r,children:i,className:o,closeText:a="Close",color:s,components:l={},componentsProps:c={},icon:u,iconMapping:d=tue,onClose:p,role:h="alert",severity:f="success",slotProps:m={},slots:g={},variant:b="standard"}=n,v=(0,P.A)(n,Xce),y=(0,R.A)({},n,{color:s,severity:f,variant:b,colorSeverity:s||f}),x=(e=>{const{variant:t,color:n,severity:r,classes:i}=e,o={root:["root",`color${(0,he.A)(n||r)}`,`${t}${(0,he.A)(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return(0,pe.A)(o,$ce,i)})(y),w={slots:(0,R.A)({closeButton:l.CloseButton,closeIcon:l.CloseIcon},g),slotProps:(0,R.A)({},c,m)},[A,E]=yn("closeButton",{elementType:Pa.A,externalForwardedProps:w,ownerState:y}),[S,_]=yn("closeIcon",{elementType:Kce,externalForwardedProps:w,ownerState:y});return(0,L.jsxs)(Zce,(0,R.A)({role:h,elevation:0,ownerState:y,className:(0,de.A)(x.root,o),ref:t},v,{children:[!1!==u?(0,L.jsx)(Qce,{ownerState:y,className:x.icon,children:u||d[f]||tue[f]}):null,(0,L.jsx)(Jce,{ownerState:y,className:x.message,children:i}),null!=r?(0,L.jsx)(eue,{ownerState:y,className:x.action,children:r}):null,null==r&&p?(0,L.jsx)(eue,{ownerState:y,className:x.action,children:(0,L.jsx)(A,(0,R.A)({size:"small","aria-label":a,title:a,c
205olor:"inherit",onClick:p},E,{children:(0,L.jsx)(S,(0,R.A)({fontSize:"small"},_))}))}):null]}))}));var rue=nue;function iue(e){return(0,ge.Ay)("MuiAlertTitle",e)}(0,me.A)("MuiAlertTitle",["root"]);const oue=["className"],aue=(0,ne.Ay)(Te.A,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{fontWeight:t.typography.fontWeightMedium,marginTop:-2}}));var sue=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiAlertTitle"}),{className:r}=n,i=(0,P.A)(n,oue),o=n,a=(e=>{const{classes:t}=e;return(0,pe.A)({root:["root"]},iue,t)})(o);return(0,L.jsx)(aue,(0,R.A)({gutterBottom:!0,component:"div",ownerState:o,ref:t,className:(0,de.A)(a.root,r)},i))}));function lue(e){return(0,ge.Ay)("MuiTableContainer",e)}(0,me.A)("MuiTableContainer",["root"]);const cue=["className","component"],uue=(0,ne.Ay)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"});var due=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiTableContainer"}),{className:r,component:i="div"}=n,o=(0,P.A)(n,cue),a=(0,R.A)({},n,{component:i}),s=(e=>{const{classes:t}=e;return(0,pe.A)({root:["root"]},lue,t)})(a);return(0,L.jsx)(uue,(0,R.A)({ref:t,as:i,className:(0,de.A)(s.root,r),ownerState:a},o))}));function pue(){return pue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pue.apply(this,arguments)}function hue(){return hue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hue.apply(this,arguments)}function fue(e,t,n){var r,i,o=null!=(r=n.initialDeps)?r:[];return function(){var r;n.key&&null!=n.debug&&n.debug()&&(r=Date.now());var a,s=e();if(!(s.length!==o.length||s.some((function(e,t){return o[t]!==e}))))return i;if(o=s,n.key&&null!=n.debug&&n.debug()&&(a=Date.now()),i=t.apply(void 0,s),n.key&&null!=n.debug&&n.debug()){var l=Math.round(100*(Date.now()-r))/100,c=Math.round(100*(Date.now()-a))/100,u=c/16,d=function(e,t){for(e=String(e);e.length<t;)e=" "+e;return e};console.info("%c\u23f1 "+d(c,5)+" /"+d(l,5)+" ms","\n            font-size: .6rem;\n            font-weight: bold;\n            color: hsl("+Math.max(0,Math.min(120-120*u,120))+"deg 100% 31%);",null==n?void 0:n.key)}return null==n||null==n.onChange||n.onChange(i),i}}function mue(e,t){if(void 0===e)throw new Error("Unexpected undefined"+(t?": "+t:""));return e}var gue=function(e){return e},bue=function(e){for(var t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[],i=t;i<=n;i++)r.push(i);return r},vue=function(e,t){var n=e.scrollElement;if(n){var r=function(e){var n=e.width,r=e.height;t({width:Math.round(n),height:Math.round(r)})};r(n.getBoundingClientRect());var i=new ResizeObserver((function(e){var t=e[0];if(null!=t&&t.borderBoxSize){var i=t.borderBoxSize[0];if(i)return void r({width:i.inlineSize,height:i.blockSize})}r(n.getBoundingClientRect())}));return i.observe(n,{box:"border-box"}),function(){i.unobserve(n)}}},yue=function(e,t){var n=e.scrollElement;if(n){var r=function(){t(n[e.options.horizontal?"scrollLeft":"scrollTop"])};return r(),n.addEventListener("scroll",r,{passive:!0}),function(){n.removeEventListener("scroll",r)}}},xue=function(e,t,n){if(null!=t&&t.borderBoxSize){var r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},wue=function(e,t,n){var r,i,o=t.adjustments,a=void 0===o?0:o,s=t.behavior,l=e+a;null==(r=n.scrollElement)||null==r.scrollTo||r.scrollTo(((i={})[n.options.horizontal?"left":"top"]=l,i.behavior=s,i))},Aue=function(e){var t=this;this.unsubs=[],this.scrollElement=null,this.isScrolling=!1,this.isScrollingTimeoutId=null,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollDirection=null,this.scrollAdjustments=0,this.measureElementCache=new Map,this.observer=function(){var e=null,n=function(){return e||("undefined"!==typeof ResizeObserver?e=new ResizeObserver((function(e){e.forEach((function(e){t._measureElement(e.target,e)}))}
205)):null)};return{disconnect:function(){var e;return null==(e=n())?void 0:e.disconnect()},observe:function(e){var t;return null==(t=n())?void 0:t.observe(e,{box:"border-box"})},unobserve:function(e){var t;return null==(t=n())?void 0:t.unobserve(e)}}}(),this.range=null,this.setOptions=function(e){Object.entries(e).forEach((function(t){var n=t[0];"undefined"===typeof t[1]&&delete e[n]})),t.options=hue({debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:gue,rangeExtractor:bue,onChange:function(){},measureElement:xue,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1},e)},this.notify=function(){null==t.options.onChange||t.options.onChange(t)},this.cleanup=function(){t.unsubs.filter(Boolean).forEach((function(e){return e()})),t.unsubs=[],t.scrollElement=null},this._didMount=function(){return t.measureElementCache.forEach(t.observer.observe),function(){t.observer.disconnect(),t.cleanup()}},this._willUpdate=function(){var e=t.options.getScrollElement();t.scrollElement!==e&&(t.cleanup(),t.scrollElement=e,t._scrollToOffset(t.scrollOffset,{adjustments:void 0,behavior:void 0}),t.unsubs.push(t.options.observeElementRect(t,(function(e){t.scrollRect=e,t.maybeNotify()}))),t.unsubs.push(t.options.observeElementOffset(t,(function(e){t.scrollAdjustments=0,t.scrollOffset!==e&&(null!==t.isScrollingTimeoutId&&(clearTimeout(t.isScrollingTimeoutId),t.isScrollingTimeoutId=null),t.isScrolling=!0,t.scrollDirection=t.scrollOffset<e?"forward":"backward",t.scrollOffset=e,t.maybeNotify(),t.isScrollingTimeoutId=setTimeout((function(){t.isScrollingTimeoutId=null,t.isScrolling=!1,t.scrollDirection=null,t.maybeNotify()}),t.options.scrollingDelay))}))))},this.getSize=function(){return t.scrollRect[t.options.horizontal?"width":"height"]},this.memoOptions=fue((function(){return[t.options.count,t.options.paddingStart,t.options.scrollMargin,t.options.getItemKey]}),(function(e,n,r,i){return t.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:n,scrollMargin:r,getItemKey:i}}),{key:!1}),this.getFurthestMeasurement=function(e,n){for(var r=new Map,i=new Map,o=n-1;o>=0;o--){var a=e[o];if(!r.has(a.lane)){var s=i.get(a.lane);if(null==s||a.end>s.end?i.set(a.lane,a):a.end<s.end&&r.set(a.lane,!0),r.size===t.options.lanes)break}}return i.size===t.options.lanes?Array.from(i.values()).sort((function(e,t){return e.end-t.end}))[0]:void 0},this.getMeasurements=fue((function(){return[t.memoOptions(),t.itemSizeCache]}),(function(e,n){var r=e.count,i=e.paddingStart,o=e.scrollMargin,a=e.getItemKey,s=t.pendingMeasuredCacheIndexes.length>0?Math.min.apply(Math,t.pendingMeasuredCacheIndexes):0;t.pendingMeasuredCacheIndexes=[];for(var l=t.measurementsCache.slice(0,s),c=s;c<r;c++){var u=a(c),d=1===t.options.lanes?l[c-1]:t.getFurthestMeasurement(l,c),p=d?d.end:i+o,h=n.get(u),f="number"===typeof h?h:t.options.estimateSize(c),m=p+f,g=d?d.lane:c%t.options.lanes;l[c]={index:c,start:p,size:f,end:m,key:u,lane:g}}return t.measurementsCache=l,l}),{key:!1,debug:function(){return t.options.debug}}),this.calculateRange=fue((function(){return[t.getMeasurements(),t.getSize(),t.scrollOffset]}),(function(e,n,r){return t.range=e.length>0&&n>0?function(e){var t=e.measurements,n=e.outerSize,r=e.scrollOffset,i=t.length-1,o=function(e){return t[e].start},a=Eue(0,i,o,r),s=a;for(;s<i&&t[s].end<r+n;)s++;return{startIndex:a,endIndex:s}}({measurements:e,outerSize:n,scrollOffset:r}):null}),{key:!1,debug:function(){return t.options.debug}}),this.maybeNotify=fue((function(){return t.calculateRange(),[t.range?t.range.startIndex:null,t.range?t.range.endIndex:null,t.isScrolling]}),(function(){t.notify()}),{key:!1,debug:function(){return t.options.debug},initialDeps:[this.range?this.range.startIndex:null,this.range?this.range.endIndex:null,this.isScrolling]}),this.getIndexes=fue((function(){return[t.options.rangeExtractor,t.calculateRange(),t.options.overscan,t.options.count]}),(function(e,t,n,r){return null===t?[]:e(hue({},t,{overscan:n,count:r}))}),{key:!1,debug:function(){return t.options.debug}}),this.indexFromElement=function(e){var n=t.options.indexAttribute,r=e.getAttribute(n);return r?parseInt(r,10):(console.warn("Missing attribute name '"+n+"={index}' on measured element."),-1)},this._measureElement=function(e,n){var r=t.measurementsCache[t.indexFromElement(e)];if(r&&e.isConnected){var i=t.measureElementCache.get(r.key);i!==e&&(i&&t.observer.unobserve(i),t.observer.observe(e),t.measureElementCache.set(r.key,e));var o=t.options.measureElement(e,n,t);t.resizeItem(r,o)}else t.measureElementCache.forEach((function(n,r){n===e&&(t.observer.unobserve(e),t.measureElementCache.delete(r))}))},this.resizeItem=function(e,n){var r,i=n-(null!=(r=t.itemSizeCache.get(e.key))?r:e.size);0!==i&&(e.start<t.scrollOffset&&t._scrollToOffset(t.scrollOffset,{adju
205stments:t.scrollAdjustments+=i,behavior:void 0}),t.pendingMeasuredCacheIndexes.push(e.index),t.itemSizeCache=new Map(t.itemSizeCache.set(e.key,n)),t.notify())},this.measureElement=function(e){e&&t._measureElement(e,void 0)},this.getVirtualItems=fue((function(){return[t.getIndexes(),t.getMeasurements()]}),(function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=t[e[r]];n.push(o)}return n}),{key:!1,debug:function(){return t.options.debug}}),this.getVirtualItemForOffset=function(e){var n=t.getMeasurements();return mue(n[Eue(0,n.length-1,(function(e){return mue(n[e]).start}),e)])},this.getOffsetForAlignment=function(e,n){var r=t.getSize();"auto"===n&&(n=e<=t.scrollOffset?"start":e>=t.scrollOffset+r?"end":"start"),"start"===n||("end"===n?e-=r:"center"===n&&(e-=r/2));var i=t.options.horizontal?"scrollWidth":"scrollHeight",o=(t.scrollElement?"document"in t.scrollElement?t.scrollElement.document.documentElement[i]:t.scrollElement[i]:0)-t.getSize();return Math.max(Math.min(o,e),0)},this.getOffsetForIndex=function(e,n){void 0===n&&(n="auto"),e=Math.max(0,Math.min(e,t.options.count-1));var r=mue(t.getMeasurements()[e]);if("auto"===n)if(r.end>=t.scrollOffset+t.getSize()-t.options.scrollPaddingEnd)n="end";else{if(!(r.start<=t.scrollOffset+t.options.scrollPaddingStart))return[t.scrollOffset,n];n="start"}var i="end"===n?r.end+t.options.scrollPaddingEnd:r.start-t.options.scrollPaddingStart;return[t.getOffsetForAlignment(i,n),n]},this.isDynamicMode=function(){return t.measureElementCache.size>0},this.cancelScrollToIndex=function(){null!==t.scrollToIndexTimeoutId&&(clearTimeout(t.scrollToIndexTimeoutId),t.scrollToIndexTimeoutId=null)},this.scrollToOffset=function(e,n){var r=void 0===n?{}:n,i=r.align,o=void 0===i?"start":i,a=r.behavior;t.cancelScrollToIndex(),"smooth"===a&&t.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),t._scrollToOffset(t.getOffsetForAlignment(e,o),{adjustments:void 0,behavior:a})},this.scrollToIndex=function(e,n){var r=void 0===n?{}:n,i=r.align,o=void 0===i?"auto":i,a=r.behavior;e=Math.max(0,Math.min(e,t.options.count-1)),t.cancelScrollToIndex(),"smooth"===a&&t.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");var s=t.getOffsetForIndex(e,o),l=s[0],c=s[1];t._scrollToOffset(l,{adjustments:void 0,behavior:a}),"smooth"!==a&&t.isDynamicMode()&&(t.scrollToIndexTimeoutId=setTimeout((function(){var n,r;if(t.scrollToIndexTimeoutId=null,t.measureElementCache.has(t.options.getItemKey(e))){var i=t.getOffsetForIndex(e,c)[0];n=i,r=t.scrollOffset,Math.abs(n-r)<1||t.scrollToIndex(e,{align:c,behavior:a})}else t.scrollToIndex(e,{align:c,behavior:a})})))},this.scrollBy=function(e,n){var r=(void 0===n?{}:n).behavior;t.cancelScrollToIndex(),"smooth"===r&&t.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),t._scrollToOffset(t.scrollOffset+e,{adjustments:void 0,behavior:r})},this.getTotalSize=function(){var e;return((null==(e=t.getMeasurements()[t.options.count-1])?void 0:e.end)||t.options.paddingStart)-t.options.scrollMargin+t.options.paddingEnd},this._scrollToOffset=function(e,n){var r=n.adjustments,i=n.behavior;t.options.scrollToFn(e,{behavior:i,adjustments:r},t)},this.measure=function(){t.itemSizeCache=new Map,t.notify()},this.setOptions(e),this.scrollRect=this.options.initialRect,this.scrollOffset=this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach((function(e){t.itemSizeCache.set(e.key,e.size)})),this.maybeNotify()},Eue=function(e,t,n,r){for(;e<=t;){var i=(e+t)/2|0,o=n(i);if(o<r)e=i+1;else{if(!(o>r))return i;t=i-1}}return e>0?e-1:0};var Sue="undefined"!==typeof document?c.useLayoutEffect:c.useEffect;function _ue(e){var t=c.useReducer((function(){return{}}),{})[1],n=pue({},e,{onChange:function(n){t(),null==e.onChange||e.onChange(n)}}),r=c.useState((function(){return new Aue(n)}))[0];return r.setOptions(n),c.useEffect((function(){return r._didMount()}),[]),Sue((function(){return r._willUpdate()})),r}function kue(e){return _ue(pue({observeElementRect:vue,observeElementOffset:yue,scrollToFn:wue},e))}function Tue(e){return(0,ge.Ay)("MuiTable",e)}(0,me.A)("MuiTable",["root","stickyHeader"]);const Cue=["className","component","padding","size","stickyHeader"],Oue=(0,ne.Ay)("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:n}=e;
205return(0,R.A)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,R.A)({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},n.stickyHeader&&{borderCollapse:"separate"})})),Nue="table";var Iue=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiTable"}),{className:r,component:i=Nue,padding:o="normal",size:a="medium",stickyHeader:s=!1}=n,l=(0,P.A)(n,Cue),u=(0,R.A)({},n,{component:i,padding:o,size:a,stickyHeader:s}),d=(e=>{const{classes:t,stickyHeader:n}=e,r={root:["root",n&&"stickyHeader"]};return(0,pe.A)(r,Tue,t)})(u),p=c.useMemo((()=>({padding:o,size:a,stickyHeader:s})),[o,a,s]);return(0,L.jsx)(bce.Provider,{value:p,children:(0,L.jsx)(Oue,(0,R.A)({as:i,role:i===Nue?null:"table",ref:t,className:(0,de.A)(d.root,r),ownerState:u},l))})}));function Rue(e){return(0,ge.Ay)("MuiTableHead",e)}(0,me.A)("MuiTableHead",["root"]);const Pue=["className","component"],jue=(0,ne.Ay)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Mue={variant:"head"},Due="thead";var Lue=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiTableHead"}),{className:r,component:i=Due}=n,o=(0,P.A)(n,Pue),a=(0,R.A)({},n,{component:i}),s=(e=>{const{classes:t}=e;return(0,pe.A)({root:["root"]},Rue,t)})(a);return(0,L.jsx)(vce.Provider,{value:Mue,children:(0,L.jsx)(jue,(0,R.A)({as:i,className:(0,de.A)(s.root,r),ref:t,role:i===Due?null:"rowgroup",ownerState:a},o))})}));function Fue(e){return(0,ge.Ay)("MuiTableRow",e)}var Bue=(0,me.A)("MuiTableRow",["root","selected","hover","head","footer"]);const Uue=["className","component","hover","selected"],zue=(0,ne.Ay)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})((e=>{let{theme:t}=e;return{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Bue.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${Bue.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,$e.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:(0,$e.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}})),Hue="tr";var $ue=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiTableRow"}),{className:r,component:i=Hue,hover:o=!1,selected:a=!1}=n,s=(0,P.A)(n,Uue),l=c.useContext(vce),u=(0,R.A)({},n,{component:i,hover:o,selected:a,head:l&&"head"===l.variant,footer:l&&"footer"===l.variant}),d=(e=>{const{classes:t,selected:n,hover:r,head:i,footer:o}=e,a={root:["root",n&&"selected",r&&"hover",i&&"head",o&&"footer"]};return(0,pe.A)(a,Fue,t)})(u);return(0,L.jsx)(zue,(0,R.A)({as:i,ref:t,className:(0,de.A)(d.root,r),role:i===Hue?null:"row",ownerState:u},s))})),Vue=__webpack_require__(24516),Gue=(0,Ve.A)((0,L.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function Wue(e){return(0,ge.Ay)("MuiTableSortLabel",e)}var que=(0,me.A)("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]);const Yue=["active","children","className","direction","hideSortIcon","IconComponent"],Kue=(0,ne.Ay)(We.A,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})((e=>{let{theme:t}=e;return{cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(t.vars||t).palette.text.secondary},"&:hover":{color:(t.vars||t).palette.text.secondary,[`& .${que.icon}`]:{opacity:.5}},[`&.${que.active}`]:{color:(t.vars||t).palette.text.primary,[`& .${que.icon}`]:{opacity:1,color:(t.vars||t).palette.text.secondary}}}})),Xue=(0,ne.Ay)("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${(0,he.A)(n.direction)}`]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,R.A)({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:t.transitions.create(["opacity","transform"],{duration:t.transitions.duration.shorter}),userSelect:"none"},"desc"===n.direction&&{transform:"rotate(0deg)"},"asc"===n.direction&&{transform:"rotate(180deg)"})}));var Zue=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiTableSortLabel"}
205),{active:r=!1,children:i,className:o,direction:a="asc",hideSortIcon:s=!1,IconComponent:l=Gue}=n,c=(0,P.A)(n,Yue),u=(0,R.A)({},n,{active:r,direction:a,hideSortIcon:s,IconComponent:l}),d=(e=>{const{classes:t,direction:n,active:r}=e,i={root:["root",r&&"active"],icon:["icon",`iconDirection${(0,he.A)(n)}`]};return(0,pe.A)(i,Wue,t)})(u);return(0,L.jsxs)(Kue,(0,R.A)({className:(0,de.A)(d.root,o),component:"span",disableRipple:!0,ownerState:u,ref:t},c,{children:[i,s&&!r?null:(0,L.jsx)(Xue,{as:l,className:(0,de.A)(d.icon),ownerState:u})]}))}));function Que(e){return(0,ge.Ay)("MuiTableBody",e)}(0,me.A)("MuiTableBody",["root"]);const Jue=["className","component"],ede=(0,ne.Ay)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),tde={variant:"body"},nde="tbody";var rde=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiTableBody"}),{className:r,component:i=nde}=n,o=(0,P.A)(n,Jue),a=(0,R.A)({},n,{component:i}),s=(e=>{const{classes:t}=e;return(0,pe.A)({root:["root"]},Que,t)})(a);return(0,L.jsx)(vce.Provider,{value:tde,children:(0,L.jsx)(ede,(0,R.A)({className:(0,de.A)(s.root,r),as:i,ref:t,role:i===nde?null:"rowgroup",ownerState:a},o))})}));let ide=36,ode="";for(;ide--;)ode+=ide.toString(36);function ade(){let e="",t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:11;for(;t--;)e+=ode[36*Math.random()|0];return e}const sde=e=>{let{terms:t,matchExactly:n=!1}=e;try{const e=/^([/~@;%#'])(.*?)\1([gimsuy]*)$/.exec(t);return e?new RegExp(e[2],e[3]):new RegExp((e=>{let{terms:t,matchExactly:n=!1}=e;if("string"!==typeof t)throw new TypeError("Expected a string");const r=t.trim().replace(/[|\\{}()[\]^$+*?.-]/g,(e=>`\\${e}`));return`(${n?r:(e=>e.replace(/\s{2,}/g," ").split(" ").join("|"))(r)})`})({terms:t,matchExactly:n}),"ig")}catch(r){throw new TypeError("Expected terms to be either a string or a RegExp!")}},lde=(cde="match",e=>null!==e&&"object"===typeof e&&cde in e);var cde;const ude=e=>"undefined"!==typeof e;function dde(e){let{curr:t,next:n,prev:r,clipBy:i=3}=e;const o=t.text.split(" "),a=o.length;if(t.match||i>=a)return t.text;const s="...";return ude(n)&&ude(r)&&lde(r)&&lde(n)?a>2*i?[...o.slice(0,i),s,...o.slice(-i)].join(" "):t.text:ude(n)&&lde(n)?[s,...o.slice(-i)].join(" "):ude(r)&&lde(r)?[...o.slice(0,i),s].join(" "):t.text}var pde=Object.defineProperty,hde=Object.defineProperties,fde=Object.getOwnPropertyDescriptors,mde=Object.getOwnPropertySymbols,gde=Object.prototype.hasOwnProperty,bde=Object.prototype.propertyIsEnumerable,vde=(e,t,n)=>t in e?pde(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yde=(e,t)=>{for(var n in t||(t={}))gde.call(t,n)&&vde(e,n,t[n]);if(mde)for(var n of mde(t))bde.call(t,n)&&vde(e,n,t[n]);return e};const xde=e=>e.length>0,wde=e=>{let{text:t,query:n,clipBy:r,matchExactly:i=!1}=e;const o="string"===typeof n?n.trim():n;if(""===o)return[{key:ade(),text:t,match:!1}];const a=sde({terms:n,matchExactly:i});return t.split(a).filter(xde).map((e=>({key:ade(),text:e,match:i?e.toLowerCase()===o.toLowerCase():a.test(e)}))).map(((e,t,n)=>{return yde(yde({},e),"number"===typeof r&&{text:dde((i=yde(yde({curr:e},t<n.length-1&&{next:n[t+1]}),t>0&&{prev:n[t-1]}),o={clipBy:r},hde(i,fde(o))))});var i,o}))};function Ade(e){return(0,ge.Ay)("MuiTableFooter",e)}(0,me.A)("MuiTableFooter",["root"]);const Ede=["className","component"],Sde=(0,ne.Ay)("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),_de={variant:"footer"},kde="tfoot";var Tde=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiTableFooter"}),{className:r,component:i=kde}=n,o=(0,P.A)(n,Ede),a=(0,R.A)({},n,{component:i}),s=(e=>{const{classes:t}=e;return(0,pe.A)({root:["root"]},Ade,t)})(a);return(0,L.jsx)(vce.Provider,{value:_de,children:(0,L.jsx)(Sde,(0,R.A)({as:i,className:(0,de.A)(s.root,r),ref:t,role:i===kde?null:"rowgroup",ownerState:a},o))})}));function Cde(e){return(0,ge.Ay)("MuiDialogActions",e)}(0,me.A)("MuiDialogActions",["root","spacing"]);const Ode=["className","disableSpacing"],Nde=(0,ne.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((e=>{let{ownerState:t}=e;
205return(0,R.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})}));var Ide=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiDialogActions"}),{className:r,disableSpacing:i=!1}=n,o=(0,P.A)(n,Ode),a=(0,R.A)({},n,{disableSpacing:i}),s=(e=>{const{classes:t,disableSpacing:n}=e,r={root:["root",!n&&"spacing"]};return(0,pe.A)(r,Cde,t)})(a);return(0,L.jsx)(Nde,(0,R.A)({className:(0,de.A)(s.root,r),ownerState:a,ref:t},o))}));function Rde(e){return(0,ge.Ay)("MuiDialogContent",e)}(0,me.A)("MuiDialogContent",["root","dividers"]);function Pde(e){return(0,ge.Ay)("MuiDialogTitle",e)}var jde=(0,me.A)("MuiDialogTitle",["root"]);const Mde=["className","dividers"],Dde=(0,ne.Ay)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})((e=>{let{theme:t,ownerState:n}=e;return(0,R.A)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},n.dividers?{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}:{[`.${jde.root} + &`]:{paddingTop:0}})}));var Lde=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiDialogContent"}),{className:r,dividers:i=!1}=n,o=(0,P.A)(n,Mde),a=(0,R.A)({},n,{dividers:i}),s=(e=>{const{classes:t,dividers:n}=e,r={root:["root",n&&"dividers"]};return(0,pe.A)(r,Rde,t)})(a);return(0,L.jsx)(Dde,(0,R.A)({className:(0,de.A)(s.root,r),ownerState:a,ref:t},o))}));const Fde=["className","id"],Bde=(0,ne.Ay)(Te.A,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"});var Ude=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiDialogTitle"}),{className:r,id:i}=n,o=(0,P.A)(n,Fde),a=n,s=(e=>{const{classes:t}=e;return(0,pe.A)({root:["root"]},Pde,t)})(a),{titleId:l=i}=c.useContext(lce);return(0,L.jsx)(Bde,(0,R.A)({component:"h2",className:(0,de.A)(s.root,r),ownerState:a,ref:t,variant:"h6",id:null!=i?i:l},o))}));function zde(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}"function"===typeof SuppressedError&&SuppressedError;const Hde=Object.assign({},Qse),$de=(e,t,n,r)=>{const i=kle(e.getValue(t),n,{threshold:Sle});return r(i),i.passed};$de.autoRemove=e=>!e;const Vde=(e,t,n)=>e.getValue(t).toString().toLowerCase().trim().includes(n.toString().toLowerCase().trim());Vde.autoRemove=e=>!e;const Gde=(e,t,n)=>e.getValue(t).toString().toLowerCase().trim().startsWith(n.toString().toLowerCase().trim());Gde.autoRemove=e=>!e;const Wde=(e,t,n)=>e.getValue(t).toString().toLowerCase().trim().endsWith(n.toString().toLowerCase().trim());Wde.autoRemove=e=>!e;const qde=(e,t,n)=>e.getValue(t).toString().toLowerCase().trim()===n.toString().toLowerCase().trim();qde.autoRemove=e=>!e;const Yde=(e,t,n)=>e.getValue(t).toString().toLowerCase().trim()!==n.toString().toLowerCase().trim();Yde.autoRemove=e=>!e;const Kde=(e,t,n)=>isNaN(+n)||isNaN(+e.getValue(t))?e.getValue(t).toString().toLowerCase().trim()>n.toString().toLowerCase().trim():+e.getValue(t)>+n;Kde.autoRemove=e=>!e;const Xde=(e,t,n)=>qde(e,t,n)||Kde(e,t,n);Xde.autoRemove=e=>!e;const Zde=(e,t,n)=>isNaN(+n)||isNaN(+e.getValue(t))?e.getValue(t).toString().toLowerCase().trim()<n.toString().toLowerCase().trim():+e.getValue(t)<+n;Zde.autoRemove=e=>!e;const Qde=(e,t,n)=>qde(e,t,n)||Zde(e,t,n);Qde.autoRemove=e=>!e;const Jde=(e,t,n)=>(["",void 0].includes(n[0])||Kde(e,t,n[0]))&&(!isNaN(+n[0])&&!isNaN(+n[1])&&+n[0]>+n[1]||["",void 0].includes(n[1])||Zde(e,t,n[1]));Jde.autoRemove=e=>!e;const epe=(e,t,n)=>(["",void 0].includes(n[0])||Xde(e,t,n[0]))&&(!isNaN(+n[0])&&!isNaN(+n[1])&&+n[0]>+n[1]||["",void 0].includes(n[1])||Qde(e,t,n[1]));epe.autoRemove=e=>!e;const tpe=(e,t,n)=>!e.getValue(t).toString().trim();tpe.autoRemove=e=>!e;const npe=(e,t,n)=>!!e.getValue(t).toString().trim();npe.autoRemove=e=>!e;const rpe=Object.assign(Object.assign({},Kse),{between:Jde,betweenInclusive:epe,contains:Vde,empty:tpe,endsWith:Wde,equals:qde,fuzzy:$de,greaterThan:Kde,greaterThanOrEqualTo:Xde,lessThan:Zde,lessThanOrEqualTo:Qde,notEmpty:npe,notEquals:Yde,startsWith:Gde}),ipe=Object.assign(Object.assign({},lle),{fuzzy:(e,t,n)=>{let r=0;var i,o;return e.columnFiltersMeta[n]&&(i=e.columnFiltersMeta[n],o=t.columnFiltersMeta[n],r=i.rank===o.rank?0:i.rank>o.rank?-1:1),0===r?lle.alphanumeric(e,t,n):r}}),ope=e=>{var t,n,r,i;return null!==(i=null!==(t=e.id)&&void 0!==t?t:null===(r=null===(n=e.accessorKey)||void 0===n?void 0:n.toString)||void 0===r?void 0:r.call(n))&&void 0!==i?i:e.header},ape=e=>{const t=[],n=e=>{e.forEach((e=>{e.columns?n(e.columns):t.push(e)}))};return n(e),t},spe=e=>{let{aggregationFns:t,columnDefs:n,columnFilterFns:r,defaultDisplayColumn:i,filterFns:o,sortingFns:a}=e;return n.map((e=>{var n,s;if(e.id||(e.id=ope(e)),e.columnDefType||(e.columnDefType="data"),null===(n=e.columns)||void 0===n?void 0:n.length)e.columnDefType="group",e.columns=spe({aggregationFns:t,columnDefs:e.columns,columnFilterFns:r,defaultDisplayColumn:i,filterFns:o,sortingFns:a});else if("data"===e.columnDefType){if(Array.isArray(e.aggregationFn)){const n=e.aggregationFn;e.aggregationFn=(e,r,i)=>n.map((n=>{var o;return null===(o=t[n])||void 0===o?void 0:o.call(t,e,r,i)}))}Object.keys(o).includes(r[e.id])&&(e.filterFn=null!==(s=o[r[e.id]])&&void 0!==s?s:o.fuzzy,e._filterFn=r[e.id]),Object.keys(a).includes(e.sortingFn)&&(e.sortingFn=a[e.sortingFn])}else"display"===e.columnDefType&&(e=Object.assign(Object.assign({},i),e));return e}))},lpe=(e,t,n)=>{e.getCanPin()&&e.pin(t.getIsPinned());const r=[...n];return r.splice(r.indexOf(t.id),0,r.splice(r.indexOf(e.id),1)[0]),r},cpe=(e,t)=>!!(e.enableExpanding||e.enableGrouping&&(void 0===t||(null===t||void 0===t?void 0:t.length))||e.renderDetailPanel),upe=e=>{const t=(e=>{var t;return[(e.enableRowDragging||e.enableRowOrdering)&&"mrt-row-drag","first"===e.positionActionsColumn&&(e.enableRowActions||e.enableEditing&&["row","modal"].includes(null!==(t=e.editingMode)&&void 0!==t?t:""))&&"mrt-row-actions","first"===e.positionExpandColumn&&cpe(e)&&"mrt-row-expand",e.enableRowSelection&&"mrt-row-select",e.enableRowNumbers&&"mrt-row-numbers"].filter(
205Boolean)})(e),n=(e=>{var t;return["last"===e.positionActionsColumn&&(e.enableRowActions||e.enableEditing&&["row","modal"].includes(null!==(t=e.editingMode)&&void 0!==t?t:""))&&"mrt-row-actions","last"===e.positionExpandColumn&&cpe(e)&&"mrt-row-expand"].filter(Boolean)})(e),r=ape(e.columns).map((e=>ope(e))).filter((e=>!t.includes(e)&&!n.includes(e)));return[...t,...r,...n]},dpe=(e,t)=>"left"===t.getIsPinned()&&e.getLeftLeafHeaders().length-1===t.getPinnedIndex(),ppe=e=>"right"===e.getIsPinned()&&0===e.getPinnedIndex(),hpe=(e,t)=>e.getRightLeafHeaders().slice(t.getPinnedIndex()+1).reduce(((e,t)=>e+t.getSize()),0),fpe=e=>{let{column:t,header:n,table:r,tableCellProps:i,theme:o}=e;var a,s,l,c,u,d,p,h,f,m;const g={minWidth:`max(calc(var(--${n?"header":"col"}-${bpe(null!==(a=null===n||void 0===n?void 0:n.id)&&void 0!==a?a:t.id)}-size) * 1px), ${null!==(s=t.columnDef.minSize)&&void 0!==s?s:30}px)`,width:`calc(var(--${n?"header":"col"}-${bpe(null!==(l=null===n||void 0===n?void 0:n.id)&&void 0!==l?l:t.id)}-size) * 1px)`};return Object.assign(Object.assign(Object.assign({backgroundColor:t.getIsPinned()&&"group"!==t.columnDef.columnDefType?ise(ase(o.palette.background.default,.04),.97):"inherit",backgroundImage:"inherit",boxShadow:dpe(r,t)?`-4px 0 8px -6px ${ise(o.palette.common.black,.2)} inset`:ppe(t)?`4px 0 8px -6px ${ise(o.palette.common.black,.2)} inset`:void 0,display:"grid"===r.options.layoutMode?"flex":"table-cell",flex:"grid"===r.options.layoutMode?`var(--${n?"header":"col"}-${bpe(null!==(c=null===n||void 0===n?void 0:n.id)&&void 0!==c?c:t.id)}-size) 0 auto`:void 0,left:"left"===t.getIsPinned()?`${t.getStart("left")}px`:void 0,ml:r.options.enableColumnVirtualization&&"left"===t.getIsPinned()&&0===t.getPinnedIndex()?`-${t.getSize()*(null!==(d=null===(u=r.getState().columnPinning.left)||void 0===u?void 0:u.length)&&void 0!==d?d:1)}px`:void 0,mr:r.options.enableColumnVirtualization&&"right"===t.getIsPinned()&&t.getPinnedIndex()===r.getVisibleLeafColumns().length-1?`-${t.getSize()*(null!==(h=null===(p=r.getState().columnPinning.right)||void 0===p?void 0:p.length)&&void 0!==h?h:1)*1.2}px`:void 0,opacity:(null===(f=r.getState().draggingColumn)||void 0===f?void 0:f.id)===t.id||(null===(m=r.getState().hoveredColumn)||void 0===m?void 0:m.id)===t.id?.5:1,position:t.getIsPinned()&&"group"!==t.columnDef.columnDefType?"sticky":void 0,right:"right"===t.getIsPinned()?`${hpe(r,t)}px`:void 0,transition:r.options.enableColumnVirtualization?"none":"padding 150ms ease-in-out"},!r.options.enableColumnResizing&&g),(null===i||void 0===i?void 0:i.sx)instanceof Function?i.sx(o):null===i||void 0===i?void 0:i.sx),r.options.enableColumnResizing&&g)},mpe={filterVariant:"text",minSize:40,maxSize:1e3,size:180},gpe={columnDefType:"display",enableClickToCopy:!1,enableColumnActions:!1,enableColumnDragging:!1,enableColumnFilter:!1,enableColumnOrdering:!1,enableEditing:!1,enableGlobalFilter:!1,enableGrouping:!1,enableHiding:!1,enableResizing:!1,enableSorting:!1},bpe=e=>e.replace(/[^a-zA-Z0-9]/g,"_"),vpe={ArrowDownwardIcon:Rle.A,ArrowRightIcon:Ple.A,CancelIcon:jle.A,ClearAllIcon:Va.A,CloseIcon:Mle.A,DensityLargeIcon:Dle.A,DensityMediumIcon:Lle.A,DensitySmallIcon:Fle.A,DragHandleIcon:Ble.A,DynamicFeedIcon:Ule.A,EditIcon:zle.A,ExpandMoreIcon:Hle.A,FilterAltIcon:$le.A,FilterListIcon:Vle.A,FilterListOffIcon:Gle.A,FullscreenExitIcon:Wle.A,FullscreenIcon:qle.A,KeyboardDoubleArrowDownIcon:Yle.A,MoreHorizIcon:Kle.A,MoreVertIcon:Xle.A,PushPinIcon:Zle.A,RestartAltIcon:Qle.A,SaveIcon:Jle.A,SearchIcon:ece.A,SearchOffIcon:tce.A,SortIcon:nce.A,ViewColumnIcon:rce.A,VisibilityOffIcon:ice.A},ype={actions:"Actions",and:"and",cancel:"Cancel",changeFilterMode:"Change filter mode",changeSearchMode:"Change search mode",clearFilter:"Clear filter",clearSearch:"Clear search",clearSort:"Clear sort",clickToCopy:"Click to copy",collapse:"Collapse",collapseAll:"Collapse all",columnActions:"Column Actions",copiedToClipboard:"Copied to clipboard",dropToGroupBy:"Drop to group by {column}",edit:"Edit",expand:"Expand",expandAll:"Expand all",filterArrIncludes:"Includes",filterArrIncludesAll:"Includes all",filterArrIncludesSome:"Includes",filterBetween:"Between",filterBetweenInclusive:"Between Inclusive",filterByColumn:"Filter by {column}",filterContains:"Contains",filterEmpty:"Empty",filterEndsWith:"Ends With",filterEquals:"Equals",filterEqualsString:"Equals",filterFuzzy:"Fuzzy",filterGreaterThan:"Greater Than",filterGreaterThanOrEqualTo:"Greater Than Or Equal To",filterInNumberRange:"Between",filterIncludesString:"Contains",filterIncludesStringSensitive:"Contains",filterLessThan:"Less Than",filterLessThanOrEqualTo:"Less Than Or Equal To",filterMode:"Filter Mode: {filterType}",filterNotEmpty:"Not Empty",filterNotEquals:"Not Equals",filterStartsWith:"Starts With",filterWeakEquals:"Equals",filteringByColumn:"Filtering by {column} - {filterType} {filterValue}",goToFirstPage:"Go to first page",goToLastPage:"Go to last page",goToNextPage:"Go to next page",goToPreviousPage:"Go to previous page",grab:"Grab",groupByColumn:"Group by {c
205olumn}",groupedBy:"Grouped by ",hideAll:"Hide all",hideColumn:"Hide {column} column",max:"Max",min:"Min",move:"Move",noRecordsToDisplay:"No records to display",noResultsFound:"No results found",of:"of",or:"or",pinToLeft:"Pin to left",pinToRight:"Pin to right",resetColumnSize:"Reset column size",resetOrder:"Reset order",rowActions:"Row Actions",rowNumber:"#",rowNumbers:"Row Numbers",rowsPerPage:"Rows per page",save:"Save",search:"Search",selectedCountOfRowCountRowsSelected:"{selectedCount} of {rowCount} row(s) selected",select:"Select",showAll:"Show all",showAllColumns:"Show all columns",showHideColumns:"Show/Hide columns",showHideFilters:"Show/Hide filters",showHideSearch:"Show/Hide search",sortByColumnAsc:"Sort by {column} ascending",sortByColumnDesc:"Sort by {column} descending",sortedByColumnAsc:"Sorted by {column} ascending",sortedByColumnDesc:"Sorted by {column} descending",thenBy:", then by ",toggleDensity:"Toggle density",toggleFullScreen:"Toggle full screen",toggleSelectAll:"Toggle select all",toggleSelectRow:"Toggle select row",toggleVisibility:"Toggle visibility",ungroupByColumn:"Ungroup by {column}",unpin:"Unpin",unpinAll:"Unpin all",unsorted:"Unsorted"},xpe=e=>{let{table:t}=e;var n,r;const{getIsAllRowsExpanded:i,getIsSomeRowsExpanded:o,getCanSomeRowsExpand:a,getState:s,options:{icons:{KeyboardDoubleArrowDownIcon:l},localization:c,muiExpandAllButtonProps:u,renderDetailPanel:d},toggleAllRowsExpanded:p}=t,{density:h,isLoading:f}=s(),m=u instanceof Function?u({table:t}):u,g=i();return(0,L.jsx)(mi,{arrow:!0,enterDelay:1e3,enterNextDelay:1e3,title:null!==(n=null===m||void 0===m?void 0:m.title)&&void 0!==n?n:g?c.collapseAll:c.expandAll,children:(0,L.jsx)("span",{children:(0,L.jsx)(Pa.A,Object.assign({"aria-label":c.expandAll,disabled:f||!d&&!a(),onClick:()=>p(!g)},m,{sx:e=>
205Object.assign({height:"compact"===h?"1.75rem":"2.25rem",width:"compact"===h?"1.75rem":"2.25rem",mt:"compact"!==h?"-0.25rem":void 0},(null===m||void 0===m?void 0:m.sx)instanceof Function?null===m||void 0===m?void 0:m.sx(e):null===m||void 0===m?void 0:m.sx),title:void 0,children:null!==(r=null===m||void 0===m?void 0:m.children)&&void 0!==r?r:(0,L.jsx)(l,{style:{transform:`rotate(${g?-180:o()?-90:0}deg)`,transition:"transform 150ms"}})}))})})},wpe=e=>{let{row:t,table:n}=e;var r,i;const{getState:o,options:{icons:{ExpandMoreIcon:a},localization:s,muiExpandButtonProps:l,renderDetailPanel:c}}=n,{density:u}=o(),d=l instanceof Function?l({table:n,row:t}):l,p=t.getCanExpand(),h=t.getIsExpanded();return(0,L.jsx)(mi,{arrow:!0,disableHoverListener:!p&&!c,enterDelay:1e3,enterNextDelay:1e3,title:null!==(r=null===d||void 0===d?void 0:d.title)&&void 0!==r?r:h?s.collapse:s.expand,children:(0,L.jsx)("span",{children:(0,L.jsx)(Pa.A,Object.assign({"aria-label":s.expand,disabled:!p&&!c},d,{onClick:e=>{var n;e.stopPropagation(),t.toggleExpanded(),null===(n=null===d||void 0===d?void 0:d.onClick)||void 0===n||n.call(d,e)},sx:e=>
205Object.assign({height:"compact"===u?"1.75rem":"2.25rem",width:"compact"===u?"1.75rem":"2.25rem"},(null===d||void 0===d?void 0:d.sx)instanceof Function?d.sx(e):null===d||void 0===d?void 0:d.sx),title:void 0,children:null!==(i=null===d||void 0===d?void 0:d.children)&&void 0!==i?i:(0,L.jsx)(a,{style:{transform:`rotate(${p||c?h?-180:0:-90}deg)`,transition:"transform 150ms"}})}))})})},Ape=["between","betweenInclusive","inNumberRange"],Epe=["empty","notEmpty"],Spe=["arrIncludesSome","arrIncludesAll","arrIncludes"],_pe=e=>{let{anchorEl:t,header:n,onSelect:r,setAnchorEl:i,setFilterValue:o,table:a}=e;var s,l,u,d;const{getState:p,options:{columnFilterModeOptions:h,globalFilterModeOptions:f,localization:m,renderColumnFilterModeMenuItems:g,renderGlobalFilterModeMenuItems:b},setColumnFilterFns:v,setGlobalFilterFn:y}=a,{globalFilterFn:x,density:w}=p(),{column:A}=null!==n&&void 0!==n?n:{},{columnDef:E}=null!==A&&void 0!==A?A:{},S=null===A||void 0===A?void 0:A.getFilterValue();let _=null!==(s=null===E||void 0===E?void 0:E.columnFilterModeOptions)&&void 0!==s?s:h;"range-slider"===(null===E||void 0===E?void 0:E.filterVariant)&&(_=[...Ape,...null!==_&&void 0!==_?_:[]].filter((e=>Ape.includes(e))));const k=(0,c.useMemo)((()=>(e=>[{option:"fuzzy",symbol:"\u2248",label:e.filterFuzzy,divider:!1},{option:"contains",symbol:"*",label:e.filterContains,divider:!1},{option:"startsWith",symbol:"a",label:e.filterStartsWith,divider:!1},{option:"endsWith",symbol:"z",label:e.filterEndsWith,divider:!0},{option:"equals",symbol:"=",label:e.filterEquals,divider:!1},{option:"notEquals",symbol:"\u2260",label:e.filterNotEquals,divider:!0},{option:"between",symbol:"\u21ff",label:e.filterBetween,divider:!1},{option:"betweenInclusive",symbol:"\u2b0c",label:e.filterBetweenInclusive,divider:!0},{option:"greaterThan",symbol:">",label:e.filterGreaterThan,divider:!1},{option:"greaterThanOrEqualTo",symbol:"\u2265",label:e.filterGreaterThanOrEqualTo,divider:!1},{option:"lessThan",symbol:"<",label:e.filterLessThan,divider:!1},{option:"lessThanOrEqualTo",symbol:"\u2264",label:e.filterLessThanOrEqualTo,divider:!0},{option:"empty",symbol:"\u2205",label:e.filterEmpty,divider:!1},{option:"notEmpty",symbol:"!\u2205",label:e.filterNotEmpty,divider:!1}])(m).filter((e=>E?void 0===_||(null===_||void 0===_?void 0:_.includes(e.option)):(!f||f.includes(e.option))&&["fuzzy","contains","startsWith"].includes(e.option)))),[]),T=e=>{var t;const a=null!==(t=null===E||void 0===E?void 0:E._filterFn)&&void 0!==t?t:"";n&&A?e!==a&&(v((t=>Object.assign(Object.assign({},t),{[n.id]:e}))),Epe.includes(e)?" "===S||Epe.includes(a)?S&&A.setFilterValue(S):A.setFilterValue(" "):"multi-select"===(null===E||void 0===E?void 0:E.filterVariant)||Spe.includes(e)?S instanceof String||(null===S||void 0===S?void 0:S.length)?(A.setFilterValue([]),null===o||void 0===o||o([])):S&&A.setFilterValue(S):"range"===(null===E||void 0===E?void 0:E.filterVariant)||Ape.includes(e)?Array.isArray(S)&&((null===S||void 0===S?void 0:S.every((e=>""===e)))||Ape.includes(a))?A.setFilterValue(S):(A.setFilterValue(["",""]),null===o||void 0===o||o("")):Array.isArray(S)?(A.setFilterValue(""),null===o||void 0===o||o("")):A.setFilterValue(S)):y(e),i(null),null===r||void 0===r||r()},C=n&&E?E._filterFn:x;return(0,L.jsx)(pA.A,{anchorEl:t,anchorOrigin:{vertical:"center",horizontal:"right"},onClose:()=>i(null),open:!!t,MenuListProps:{dense:"compact"===w},children:null!==(d=n&&A&&E?null!==(u=null===(l=E.renderColumnFilterModeMenuItems)||void 0===l?void 0:l.call(E,{column:A,internalFilterOptions:k,onSelectFilterMode:T,table:a}))&&void 0!==u?u:null===g||void 0===g?void 0:g({column:A,internalFilterOptions:k,onSelectFilterMode:T,table:a}):null===b||void 0===b?void 0:b({internalFilterOptions:k,onSelectFilterMode:T,table:a}))&&void 0!==d?d:k.map(((e,t)=>{let{option:n,label:r,divider:i,symbol:o}=e;return(0,L.jsxs)(Qs.A,{divider:i,onClick:()=>T(n),selected:n===C,sx:{alignItems:"center",display:"flex",gap:"2ch",my:0,py:"6px"},value:n,children:[(0,L.jsx)(ue.A,{sx:{fontSize:"1.25rem",width:"2ch"},children:o}),r]},t)}))})},kpe={py:"6px",my:0,justifyContent:"space-between",alignItems:"center"}
205,Tpe={display:"flex",alignItems:"center"},Cpe=e=>{let{anchorEl:t,header:n,setAnchorEl:r,table:i}=e;var o,a,s,l,u,d,p,h,f,m;const{getState:g,toggleAllColumnsVisible:b,setColumnOrder:v,options:{columnFilterModeOptions:y,enableColumnFilterModes:x,enableColumnFilters:w,enableColumnResizing:A,enableGrouping:E,enableHiding:S,enablePinning:_,enableSorting:k,enableSortingRemoval:T,icons:{ArrowRightIcon:C,ClearAllIcon:O,ViewColumnIcon:N,DynamicFeedIcon:I,FilterListIcon:R,FilterListOffIcon:P,PushPinIcon:j,SortIcon:M,RestartAltIcon:D,VisibilityOffIcon:F},localization:B,renderColumnActionsMenuItems:U},refs:{filterInputRefs:z},setColumnSizingInfo:H,setShowColumnFilters:$}=i,{column:V}=n,{columnDef:G}=V,{columnSizing:W,columnVisibility:q,density:Y,showColumnFilters:K}=g(),X=V.getFilterValue(),[Z,Q]=(0,c.useState)(null),J=e=>{V.pin(e),r(null)},ee=()=>{$(!0),queueMicrotask((()=>{var e;return null===(e=z.current[`${V.id}-0`])||void 0===e?void 0:e.focus()})),r(null)},te=e=>{e.stopPropagation(),Q(e.currentTarget)},ne=!!G.filterSelectOptions,re=null!==(o=null===G||void 0===G?void 0:G.columnFilterModeOptions)&&void 0!==o?o:y,ie=x&&!1!==G.enableColumnFilterModes&&!ne&&(void 0===re||!!(null===re||void 0===re?void 0:re.length)),oe=[...k&&V.getCanSort()?[!1!==T&&(0,L.jsx)(Qs.A,{disabled:!V.getIsSorted(),onClick:()=>{V.clearSorting(),r(null)},sx:kpe,children:(0,L.jsxs)(ue.A,{sx:Tpe,children:[(0,L.jsx)(So,{children:(0,L.jsx)(O,{})}),B.clearSort]})},0),(0,L.jsx)(Qs.A,{disabled:"asc"===V.getIsSorted(),onClick:()=>{V.toggleSorting(!1),r(null)},sx:kpe,children:(0,L.jsxs)(ue.A,{sx:Tpe,children:[(0,L.jsx)(So,{children:(0,L.jsx)(M,{style:{transform:"rotate(180deg) scaleX(-1)"}})}),null===(a=B.sortByColumnAsc)||void 0===a?void 0:a.replace("{column}",String(G.header))]})},1),(0,L.jsx)(Qs.A,{divider:w||E||S,disabled:"desc"===V.getIsSorted(),onClick:()=>{V.toggleSorting(!0),r(null)},sx:kpe,children:(0,L.jsxs)(ue.A,{sx:Tpe,children:[(0,L.jsx)(So,{children:(0,L.jsx)(M,{})}),null===(s=B.sortByColumnDesc)||void 0===s?void 0:s.replace("{column}",String(G.header))]})},2)]:[],...w&&V.getCanFilter()?[(0,L.jsx)(Qs.A,{disabled:!X||Array.isArray(X)&&!X.filter((e=>e)).length,onClick:()=>{V.setFilterValue(""),r(null)},sx:kpe,children:(0,L.jsxs)(ue.A,{sx:Tpe,children:[(0,L.jsx)(So,{children:(0,L.jsx)(P,{})}),B.clearFilter]})},3),(0,L.jsxs)(Qs.A,{disabled:K&&!x,divider:E||S,onClick:K?te:ee,sx:kpe,children:[(0,L.jsxs)(ue.A,{sx:Tpe,children:[(0,L.jsx)(So,{children:(0,L.jsx)(R,{})}),null===(l=B.filterByColumn)||void 0===l?void 0:l.replace("{column}",String(G.header))]}),ie&&(0,L.jsx)(Pa.A,{onClick:te,onMouseEnter:te,size:"small",sx:{p:0},children:(0,L.jsx)(C,{})})]},4),ie&&(0,L.jsx)(_pe,{anchorEl:Z,header:n,onSelect:ee,setAnchorEl:Q,table:i},5)]:[],...E&&V.getCanGroup()?[(0,L.jsx)(Qs.A,{divider:_,onClick:()=>{V.toggleGrouping(),v((e=>["mrt-row-expand",...e])),r(null)},sx:kpe,children:(0,L.jsxs)(ue.A,{sx:Tpe,children:[(0,L.jsx)(So,{children:(0,L.jsx)(I,{})}),null===(u=B[V.getIsGrouped()?"ungroupByColumn":"groupByColumn"])||void 0===u?void 0:u.replace("{column}",String(G.header))]})},6)]:[],..._&&V.getCanPin()?[(0,L.jsx)(Qs.A,{disabled:"left"===V.getIsPinned()||!V.getCanPin(),onClick:()=>J("left"),sx:kpe,children:(0,L.jsxs)(ue.A,{sx:Tpe,children:[(0,L.jsx)(So,{children:(0,L.jsx)(j,{style:{transform:"rotate(90deg)"}})}),B.pinToLeft]})},7),(0,L.jsx)(Qs.A,{disabled:"right"===V.getIsPinned()||!V.getCanPin(),onClick:()=>J("right"),sx:kpe,children:(0,L.jsxs)(ue.A,{sx:Tpe,children:[(0,L.jsx)(So,{children:(0,L.jsx)(j,{style:{transform:"rotate(-90deg)"}})}),B.pinToRight]})},8),(0,L.jsx)(Qs.A,{disabled:!V.getIsPinned(),divider:S,onClick:()=>J(!1),sx:kpe,children:(0,L.jsxs)(ue.A,{sx:Tpe,children:[(0,L.jsx)(So,{children:(0,L.jsx)(j,{})}),B.unpin]})},9)]:[],...A&&V.getCanResize()?[(0,L.jsx)(Qs.A,{disabled:!W[V.id],onClick:()=>{H((e=>Object.assign(Object.assign({},e),{isResizingColumn:!1}))),V.resetSize(),r(null)},sx:kpe,children:(0,L.jsxs)(ue.A,{sx:Tpe,children:[(0,L.jsx)(So,{children:(0,L.jsx)(D,{})}),B.resetColumnSize]})},10)]:[],...S?[(0,L.jsx)(Qs.A,{disabled:!V.getCanHide(),onClick:()=>{V.toggleVisibility(!1),r(null)},sx:kpe,children:(0,L.jsxs)(ue.A,{sx:Tpe,children:[(0,L.jsx)(So,{children:(0,L.jsx)(F,{})}),null===(d=B.hideColumn)||void 0===d?void 0:d.replace("{column}",String(G.header))]})},11),(0,L.jsx)(Qs.A,{disabled:!Object.values(q).filter((e=>!e)).length,onClick:()=>{b(!0),r(null)},sx:kpe,children:(0,L.jsxs)(ue.A,{sx:Tpe,children:[(0,L.jsx)(So,{children:(0,L.jsx)(N,{})}),null===(p=B.showAllColumns)||void 0===p?void 0:p.replace("{column}",String(G.header))]})}
205,12)]:[]].filter(Boolean);return(0,L.jsx)(pA.A,{anchorEl:t,open:!!t,onClose:()=>r(null),MenuListProps:{dense:"compact"===Y},children:null!==(m=null!==(f=null===(h=G.renderColumnActionsMenuItems)||void 0===h?void 0:h.call(G,{closeMenu:()=>r(null),column:V,internalColumnMenuItems:oe,table:i}))&&void 0!==f?f:null===U||void 0===U?void 0:U({closeMenu:()=>r(null),column:V,internalColumnMenuItems:oe,table:i}))&&void 0!==m?m:oe})},Ope=e=>{let{anchorEl:t,handleEdit:n,row:r,setAnchorEl:i,table:o}=e;const{getState:a,options:{icons:{EditIcon:s},enableEditing:l,localization:c,renderRowActionMenuItems:u}}=o,{density:d}=a();return(0,L.jsxs)(pA.A,{anchorEl:t,open:!!t,onClick:e=>e.stopPropagation(),onClose:()=>i(null),MenuListProps:{dense:"compact"===d},children:[l instanceof Function?l(r):l&&(0,L.jsx)(Qs.A,{onClick:n,sx:kpe,children:(0,L.jsxs)(ue.A,{sx:Tpe,children:[(0,L.jsx)(So,{children:(0,L.jsx)(s,{})}),c.edit]})}),null===u||void 0===u?void 0:u({row:r,table:o,closeMenu:()=>i(null)})]})},Npe=e=>{let{row:t,table:n,variant:r="icon"}=e;const{getState:i,options:{icons:{CancelIcon:o,SaveIcon:a},localization:s,onEditingRowSave:l,onEditingRowCancel:c},refs:{editInputRefs:u},setEditingRow:d}=n,{editingRow:p}=i(),h=()=>{null===c||void 0===c||c({row:t,table:n}),d(null)},f=()=>{var e,r;null===(e=Object.values(null===u||void 0===u?void 0:u.current))||void 0===e||e.forEach((e=>{void 0!==e.value&&Object.hasOwn(null===p||void 0===p?void 0:p._valuesCache,e.name)&&(p._valuesCache[e.name]=e.value)})),null===l||void 0===l||l({exitEditingMode:()=>d(null),row:null!==p&&void 0!==p?p:t,table:n,values:null!==(r=null===p||void 0===p?void 0:p._valuesCache)&&void 0!==r?r:Object.assign({},t.original)})};return(0,L.jsx)(ue.A,{onClick:e=>e.stopPropagation(),sx:{display:"flex",gap:"0.75rem"},children:"icon"===r?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(mi,{arrow:!0,title:s.cancel,children:(0,L.jsx)(Pa.A,{"aria-label":s.cancel,onClick:h,children:(0,L.jsx)(o,{})})}),(0,L.jsx)(mi,{arrow:!0,title:s.save,children:(0,L.jsx)(Pa.A,{"aria-label":s.save,color:"info",onClick:f,children:(0,L.jsx)(a,{})})})]}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Yx.A,{onClick:h,children:s.cancel}),(0,L.jsx)(Yx.A,{onClick:f,variant:"contained",children:s.save})]})})},Ipe={height:"2rem",ml:"10px",opacity:.5,transition:"opacity 150ms",width:"2rem","&:hover":{opacity:1}},Rpe=e=>{let{cell:t,row:n,table:r}=e;const{getState:i,options:{editingMode:o,enableEditing:a,icons:{EditIcon:s,MoreHorizIcon:l},localization:u,renderRowActionMenuItems:d,renderRowActions:p},setEditingRow:h}=r,{editingRow:f}=i(),[m,g]=(0,c.useState)(null),b=e=>{e.stopPropagation(),h(Object.assign({},n)),g(null)};return(0,L.jsx)(L.Fragment,{children:p?p({cell:t,row:n,table:r}):n.id===(null===f||void 0===f?void 0:f.id)&&"row"===o?(0,L.jsx)(Npe,{row:n,table:r}):!d&&(a instanceof Function?a(n):a)?(0,L.jsx)(mi,{placement:"right",arrow:!0,title:u.edit,children:(0,L.jsx)(Pa.A,{"aria-label":u.edit,sx:Ipe,onClick:b,children:(0,L.jsx)(s,{})})}):d?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(mi,{arrow:!0,enterDelay:1e3,enterNextDelay:1e3,title:u.rowActions,children:(0,L.jsx)(Pa.A,{"aria-label":u.rowActions,onClick:e=>{e.stopPropagation(),e.preventDefault(),g(e.currentTarget)},size:"small",sx:Ipe,children:(0,L.jsx)(l,{})})}),(0,L.jsx)(Ope,{anchorEl:m,handleEdit:b,row:n,setAnchorEl:g,table:r})]}):null})},Ppe=e=>{let{row:t,selectAll:n,table:r}=e;var i;const{getState:o,options:{localization:a,enableMultiRowSelection:s,muiSelectCheckboxProps:l,muiSelectAllCheckboxProps:c,selectAllMode:u}}=r,{density:d,isLoading:p}=o(),h=t?l instanceof Function?l({row:t,table:r}):l:c instanceof Function?c({table:r}):c,f=n?"page"===u?r.getIsAllPageRowsSelected():r.getIsAllRowsSelected():void 0,m=Object.assign(Object.assign({checked:n?f:null===t||void 0===t?void 0:t.getIsSelected(),disabled:p||t&&!t.getCanSelect(),inputProps:{"aria-label":n?a.toggleSelectAll:a.toggleSelectRow},onChange:t?t.getToggleSelectedHandler():"all"===u?r.getToggleAllRowsSelectedHandler():r.getToggleAllPageRowsSelectedHandler(),size:"compact"===d?"small":"medium"},h),{onClick:e=>{var t;e.stopPropagation(),null===(t=null===h||void 0===h?void 0:h.onClick)||void 0===t||t.call(h,e)},sx:e=>
205Object.assign({height:"compact"===d?"1.75rem":"2.5rem",width:"compact"===d?"1.75rem":"2.5rem",m:"compact"!==d?"-0.4rem":void 0},(null===h||void 0===h?void 0:h.sx)instanceof Function?h.sx(e):null===h||void 0===h?void 0:h.sx),title:void 0});return(0,L.jsx)(mi,{arrow:!0,enterDelay:1e3,enterNextDelay:1e3,title:null!==(i=null===h||void 0===h?void 0:h.title)&&void 0!==i?i:n?a.toggleSelectAll:a.toggleSelectRow,children:!1===s?(0,L.jsx)(Xl,Object.assign({},m)):(0,L.jsx)(qx,Object.assign({indeterminate:n?r.getIsSomeRowsSelected()&&!f:null===t||void 0===t?void 0:t.getIsSomeSelected()},m))})},jpe=e=>{let{table:t}=e;var n;const{getState:r,setGlobalFilter:i,options:{enableGlobalFilterModes:o,icons:{SearchIcon:a,CloseIcon:s},localization:l,manualFiltering:u,muiSearchTextFieldProps:d},refs:{searchInputRef:p}}=t,{globalFilter:h,showGlobalFilter:f}=r(),m=d instanceof Function?d({table:t}):d,g=(0,c.useRef)(!1),[b,v]=(0,c.useState)(null),[y,x]=(0,c.useState)(null!==h&&void 0!==h?h:""),w=(0,c.useCallback)((0,Di.A)((e=>{var t;i(null!==(t=e.target.value)&&void 0!==t?t:void 0)}),u?500:250),[]),A=()=>{x(""),i(void 0)};return(0,c.useEffect)((()=>{g.current&&(void 0===h?A():x(h)),g.current=!0}),[h]),(0,L.jsxs)(ji,{in:f,orientation:"horizontal",unmountOnExit:!0,mountOnEnter:!0,children:[(0,L.jsx)(Xa.A,Object.assign({placeholder:l.search,onChange:e=>{x(e.target.value),w(e)},value:null!==y&&void 0!==y?y:"",variant:"standard",InputProps:{startAdornment:o?(0,L.jsx)(Ei.A,{position:"start",children:(0,L.jsx)(mi,{arrow:!0,title:l.changeSearchMode,children:(0,L.jsx)(Pa.A,{"aria-label":l.changeSearchMode,onClick:e=>{v(e.currentTarget)},size:"small",sx:{height:"1.75rem",width:"1.75rem"},children:(0,L.jsx)(a,{})})})}):(0,L.jsx)(a,{style:{marginRight:"4px"}}),endAdornment:(0,L.jsx)(Ei.A,{position:"end",children:(0,L.jsx)(mi,{arrow:!0,title:null!==(n=l.clearSearch)&&void 0!==n?n:"",children:(0,L.jsx)("span",{children:(0,L.jsx)(Pa.A,{"aria-label":l.clearSearch,disabled:!(null===y||void 0===y?void 0:y.length),onClick:A,size:"small",children:(0,L.jsx)(s,{})})})})})}},m,{inputRef:e=>{p.current=e,(null===m||void 0===m?void 0:m.inputRef)&&(m.inputRef=e)}})),(0,L.jsx)(_pe,{anchorEl:b,setAnchorEl:v,table:t,onSelect:A})]})},Mpe=e=>{let{isTopToolbar:t,table:n}=e;const{options:{muiLinearProgressProps:r},getState:i}=n,{isLoading:o,showProgressBars:a}=i(),s=r instanceof Function?r({isTopToolbar:t,table:n}):r;return(0,L.jsx)(ji,{in:o||a,mountOnEnter:!0,unmountOnExit:!0,sx:{bottom:t?0:void 0,position:"absolute",top:t?void 0:0,width:"100%"},children:(0,L.jsx)(Jo,Object.assign({"aria-label":"Loading","aria-busy":"true",sx:{position:"relative"}},s))})},Dpe=e=>{let{table:t,position:n="bottom"}=e;const{getPrePaginationRowModel:r,getState:i,setPageIndex:o,setPageSize:a,options:{muiTablePaginationProps:s,enableToolbarInternalActions:l,localization:c,rowCount:u}}=t,{pagination:{pageSize:d=10,pageIndex:p=0},showGlobalFilter:h}=i(),f=null!==u&&void 0!==u?u:r().rows.length,m=f/d>2,g=s instanceof Function?s({table:t}):s;return(0,L.jsx)(Hce,Object.assign({component:"div",count:f,getItemAriaLabel:e=>"first"===e?c.goToFirstPage:"last"===e?c.goToLastPage:"next"===e?c.goToNextPage:c.goToPreviousPage,labelDisplayedRows:e=>{let{from:t,to:n,count:r}=e;return`${t}-${n} ${c.of} ${r}`},labelRowsPerPage:c.rowsPerPage,onPageChange:(e,t)=>
205o(t),onRowsPerPageChange:e=>{a(+e.target.value)},page:Math.max(Math.min(p,Math.ceil(f/d)-1),0),rowsPerPage:d,rowsPerPageOptions:[5,10,15,20,25,30,50,100],showFirstButton:m,showLastButton:m},g,{SelectProps:Object.assign({sx:{m:"0 1rem 0 1ch"},MenuProps:{MenuListProps:{disablePadding:!0},sx:{m:0}}},null===g||void 0===g?void 0:g.SelectProps),sx:e=>Object.assign({"& .MuiTablePagination-toolbar":{display:"flex",alignItems:"center"},"& .MuiTablePagination-selectLabel":{m:"0 -1px"},"&. MuiInputBase-root":{m:"0 1px"},"& . MuiTablePagination-select":{m:"0 1px"},"& .MuiTablePagination-displayedRows":{m:"0 1px"},"& .MuiTablePagination-actions":{m:"0 1px"},mt:"top"===n&&l&&!h?"3.5rem":void 0,position:"relative",zIndex:2},(null===g||void 0===g?void 0:g.sx)instanceof Function?g.sx(e):null===g||void 0===g?void 0:g.sx)}))},Lpe=e=>{let{stackAlertBanner:t,table:n}=e;var r,i;const{getPrePaginationRowModel:o,getSelectedRowModel:a,getState:s,options:{localization:l,muiToolbarAlertBannerProps:u,muiToolbarAlertBannerChipProps:d,positionToolbarAlertBanner:p,rowCount:h}}=n,{grouping:f,showAlertBanner:m}=s(),g=u instanceof Function?u({table:n}):u,b=d instanceof Function?d({table:n}):d,v=a().rows.length>0?null===(i=null===(r=l.selectedCountOfRowCountRowsSelected)||void 0===r?void 0:r.replace("{selectedCount}",a().rows.length.toString()))||void 0===i?void 0:i.replace("{rowCount}",(null!==h&&void 0!==h?h:o().rows.length).toString()):null,y=f.length>0?(0,L.jsxs)("span",{children:[l.groupedBy," ",f.map(((e,t)=>(0,L.jsxs)(c.Fragment,{children:[t>0?l.thenBy:"",(0,L.jsx)(so,Object.assign({label:n.getColumn(e).columnDef.header,onDelete:()=>n.getColumn(e).toggleGrouping()},b))]},`${t}-${e}`)))]}):null;return(0,L.jsx)(ji,{in:m||!!v||!!y,timeout:t?200:0,children:(0,L.jsxs)(rue,Object.assign({color:"info",icon:!1},g,{sx:e=>Object.assign({borderRadius:0,fontSize:"1rem",left:0,p:0,position:"relative",mb:t?0:"bottom"===p?"-1rem":void 0,right:0,top:0,width:"100%",zIndex:2},(null===g||void 0===g?void 0:g.sx)instanceof Function?g.sx(e):null===g||void 0===g?void 0:g.sx),children:[(null===g||void 0===g?void 0:g.title)&&(0,L.jsx)(sue,{children:g.title}),(0,L.jsxs)(ue.A,{sx:{p:"0.5rem 1rem"},children:[null===g||void 0===g?void 0:g.children,(null===g||void 0===g?void 0:g.children)&&(v||y)&&(0,L.jsx)("br",{}),v,v&&y&&(0,L.jsx)("br",{}),y]})]}))})},Fpe=e=>{var t,{table:n}=e,r=zde(e,["table"]);const{getState:i,options:{icons:{FullscreenExitIcon:o,FullscreenIcon:a},localization:s},setIsFullScreen:l}=n,{isFullScreen:c}=i();return(0,L.jsx)(mi,{arrow:!0,title:null!==(t=null===r||void 0===r?void 0:r.title)&&void 0!==t?t:s.toggleFullScreen,children:(0,L.jsx)(Pa.A,Object.assign({"aria-label":s.toggleFullScreen,onClick:()=>{l(!c)}},r,{title:void 0,children:c?(0,L.jsx)(o,{}):(0,L.jsx)(a,{})}))})},Bpe=e=>{let{column:t,table:n}=e;const{options:{icons:{PushPinIcon:r},localization:i}}=n,o=e=>{t.pin(e)};return(0,L.jsx)(ue.A,{sx:{minWidth:"70px",textAlign:"center"},children:t.getIsPinned()?(0,L.jsx)(mi,{arrow:!0,title:i.unpin,children:(0,L.jsx)(Pa.A,{onClick:()=>o(!1),size:"small",children:(0,L.jsx)(r,{})})}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(mi,{arrow:!0,title:i.pinToLeft,children:(0,L.jsx)(Pa.A,{onClick:()=>o("left"),size:"small",children:(0,L.jsx)(r,{style:{transform:"rotate(90deg)"}})})}),(0,L.jsx)(mi,{arrow:!0,title:i.pinToRight,children:(0,L.jsx)(Pa.A,{onClick:()=>o("right"),size:"small",children:(0,L.jsx)(r,{style:{transform:"rotate(-90deg)"}})})})]})})},Upe=e=>{let{iconButtonProps:t,onDragEnd:n,onDragStart:r,table:i}=e;var o;const{options:{icons:{DragHandleIcon:a},localization:s}}=i;return(0,L.jsx)(mi,{arrow:!0,enterDelay:1e3,enterNextDelay:1e3,placement:"top",title:null!==(o=null===t||void 0===t?void 0:t.title)&&void 0!==o?o:s.move,children:(0,L.jsx)(Pa.A,Object.assign({disableRipple:!0,draggable:"true",size:"small"},t,{onClick:e=>{var n;e.stopPropagation(),null===(n=null===t||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e)},onDragStart:r,onDragEnd:n,sx:e=>Object.assign({cursor:"grab",m:"0 -0.1rem",opacity:.5,p:"2px",transition:"all 150ms ease-in-out","&:hover":{backgroundColor:"transparent",opacity:1},"&:active":{cursor:"grabbing"}},(null===t||void 0===t?void 0:t.sx)instanceof Function?null===t||void 0===t?void 0:t.sx(e):null===t||void 0===t?void 0:t.sx),title:void 0,children:(0,L.jsx)(a,{})}))})},zpe=e=>{let{allColumns:t,hoveredColumn:n,setHoveredColumn:r,column:i,table:o}=e;var a;const{getState:s,options:{enableColumnOrdering:l,enableHiding:u,enablePinning:d,localization:p},setColumnOrder:h}=o,{columnOrder:f}=s(),{columnDef:m}=i,{columnDefType:g}=m,b="group"!==g&&i.getIsVisible()||"group"===g&&i.getLeafColumns().some((e=>e.getIsVisible())),v=(0,c.useRef)(null),[y,x]=(0,c.useState)(!1);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Qs.A,{disableRipple:!0,ref:v,onDragEnter:e=>{y||!1===m.enableColumnOrdering||r(i)},sx:e=>({alignItems:"center",justifyContent:"flex-start",my:0,opacity:y?.5:1,outlineOffset:"-2px",outline:y?`2px dashed ${e.palette.divider}`:(null===n||void 0===n?void 0:n.id)===i.id?`2px dashed ${e.palette.primary.main}`:"none",pl:2*(i.depth+.5)+"rem",py:"6px"}),children:(0,L.jsxs)(ue.A,{sx:{display:"flex",flexWrap:"nowrap",gap:"8px"},children:["group"!==g&&l&&!t.some((e=>"group"===e.columnDef.columnDefType))&&(!1!==m.enableColumnOrdering?(0,L.jsx)(Upe,{onDragEnd:e=>{x(!1),r(null),n&&h(lpe(i,n,f))},onDragStart:e=>{x(!0),e.dataTransfer.setDragImage(v.current,0,0)},table:o}):(0,L.jsx)(ue.A,{sx:{width:"28px"}})),d&&(i.getCanPin()?(0,L.jsx)(Bpe,{column:i,table:o}):(0,L.jsx)(ue.A,{sx:{width:"70px"}})),u?(0,L.jsx)(Nl,{componentsProps:{typography:{sx:{mb:0,opacity:"display"!==g?1:.5}}},checked:b,control:(0,L.jsx)(mi,{arrow:!0,enterDelay:1e3,enterNextDelay:1e3,t
205itle:p.toggleVisibility,children:(0,L.jsx)(nw,{})}),disabled:!i.getCanHide(),label:m.header,onChange:()=>(e=>{var t,n;"group"===g?null===(n=null===(t=null===e||void 0===e?void 0:e.columns)||void 0===t?void 0:t.forEach)||void 0===n||n.call(t,(e=>{e.toggleVisibility(!b)})):e.toggleVisibility()})(i)}):(0,L.jsx)(Te.A,{sx:{alignSelf:"center"},children:m.header})]})}),null===(a=i.columns)||void 0===a?void 0:a.map(((e,i)=>(0,L.jsx)(zpe,{allColumns:t,column:e,hoveredColumn:n,setHoveredColumn:r,table:o},`${i}-${e.id}`)))]})},Hpe=e=>{let{anchorEl:t,setAnchorEl:n,table:r}=e;const{getAllColumns:i,getAllLeafColumns:o,getCenterLeafColumns:a,getIsAllColumnsVisible:s,getIsSomeColumnsPinned:l,getIsSomeColumnsVisible:u,getLeftLeafColumns:d,getRightLeafColumns:p,getState:h,toggleAllColumnsVisible:f,options:{enableColumnOrdering:m,enableHiding:g,enablePinning:b,localization:v}}=r,{density:y,columnOrder:x,columnPinning:w}=h(),A=(0,c.useMemo)((()=>{const e=i();return x.length>0&&!e.some((e=>"group"===e.columnDef.columnDefType))?[...d(),...Array.from(new Set(x)).map((e=>a().find((t=>(null===t||void 0===t?void 0:t.id)===e)))),...p()].filter(Boolean):e}),[x,w,i(),a(),d(),p()]),[E,S]=(0,c.useState)(null);return(0,L.jsxs)(pA.A,{anchorEl:t,open:!!t,onClose:()=>n(null),MenuListProps:{dense:"compact"===y},children:[(0,L.jsxs)(ue.A,{sx:{display:"flex",justifyContent:"space-between",p:"0.5rem",pt:0},children:[g&&(0,L.jsx)(Yx.A,{disabled:!u(),onClick:()=>{o().filter((e=>!1!==e.columnDef.enableHiding)).forEach((e=>e.toggleVisibility(!1)))},children:v.hideAll}),m&&(0,L.jsx)(Yx.A,{onClick:()=>r.setColumnOrder(upe(r.options)),children:v.resetOrder}),b&&(0,L.jsx)(Yx.A,{disabled:!l(),onClick:()=>r.resetColumnPinning(!0),children:v.unpinAll}),g&&(0,L.jsx)(Yx.A,{disabled:s(),onClick:()=>f(!0),children:v.showAll})]}),(0,L.jsx)(ze.A,{}),A.map(((e,t)=>(0,L.jsx)(zpe,{allColumns:A,column:e,hoveredColumn:E,setHoveredColumn:S,table:r},`${t}-${e.id}`)))]})},$pe=e=>{var t,{table:n}=e,r=zde(e,["table"]);const{options:{icons:{ViewColumnIcon:i},localization:o}}=n,[a,s]=(0,c.useState)(null);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(mi,{arrow:!0,title:null!==(t=null===r||void 0===r?void 0:r.title)&&void 0!==t?t:o.showHideColumns,children:(0,L.jsx)(Pa.A,Object.assign({"aria-label":o.showHideColumns,onClick:e=>{s(e.currentTarget)}},r,{title:void 0,children:(0,L.jsx)(i,{})}))}),a&&(0,L.jsx)(Hpe,{anchorEl:a,setAnchorEl:s,table:n})]})},Vpe=e=>{var t,{table:n}=e,r=zde(e,["table"]);const{getState:i,options:{icons:{DensityLargeIcon:o,DensityMediumIcon:a,DensitySmallIcon:s},localization:l},setDensity:c}=n,{density:u}=i();return(0,L.jsx)(mi,{arrow:!0,title:null!==(t=null===r||void 0===r?void 0:r.title)&&void 0!==t?t:l.toggleDensity,children:(0,L.jsx)(Pa.A,Object.assign({"aria-label":l.toggleDensity,onClick:()=>{c("comfortable"===u?"compact":"compact"===u?"spacious":"comfortable")}},r,{title:void 0,children:"compact"===u?(0,L.jsx)(s,{}):"comfortable"===u?(0,L.jsx)(a,{}):(0,L.jsx)(o,{})}))})},Gpe=e=>{var t,{table:n}=e,r=zde(e,["table"]);const{getState:i,options:{icons:{FilterListIcon:o,FilterListOffIcon:a},localization:s},setShowColumnFilters:l}=n,{showColumnFilters:c}=i();return(0,L.jsx)(mi,{arrow:!0,title:null!==(t=null===r||void 0===r?void 0:r.title)&&void 0!==t?t:s.showHideFilters,children:(0,L.jsx)(Pa.A,Object.assign({"aria-label":s.showHideFilters,onClick:()=>{l(!c)}},r,{title:void 0,children:c?(0,L.jsx)(a,{}):(0,L.jsx)(o,{})}))})},Wpe=e=>{var t,n,{table:r}=e,i=zde(e,["table"]);const{getState:o,options:{icons:{SearchIcon:a,SearchOffIcon:s},localization:l},refs:{searchInputRef:c},setShowGlobalFilter:u}=r,{globalFilter:d,showGlobalFilter:p}=o();return(0,L.jsx)(mi,{arrow:!0,title:null!==(t=null===i||void 0===i?void 0:i.title)&&void 0!==t?t:l.showHideSearch,children:(0,L.jsx)(Pa.A,Object.assign({"aria-label":null!==(n=null===i||void 0===i?void 0:i.title)&&void 0!==n?n:l.showHideSearch,disabled:!!d,onClick:()=>{u(!p),queueMicrotask((()=>{var e;return null===(e=c.current)||void 0===e?void 0:e.focus()}))}},i,{title:void 0,children:p?(0,L.jsx)(s,{}):(0,L.jsx)(a,{})}))})},qpe=e=>{let{table:t}=e;var n;const{options:{enableColumnFilters:r,enableColumnOrdering:i,enableDensityToggle:o,enableFilters:a,enableFullScreenToggle:s,enableGlobalFilter:l,enableHiding:c,enablePinning:u,initialState:d,renderToolbarInternalActions:p}}=t;return(0,L.jsx)(ue.A,{sx:{alignItems:"center",display:"flex",zIndex:3},children:null!==(n=null===p||void 0===p?void 0:p({table:t}))&&void 0!==n?n:(0,L.jsxs)(L.Fragment,{children:[a&&l&&!(null===d||void 0===d?void 0:d.showGlobalFilter)&&(0,L.jsx)(Wpe,{table:t}),a&&r&&(0,L.jsx)(Gpe,{table:t}),(c||i||u)&&(0,L.jsx)($pe,{table:t}),o&&(0,L.jsx)(Vpe,{table:t}),s&&(0,L.jsx)(Fpe,{table:t})]})})},Ype=e=>{let{table:t}=e;var n,r;const{getState:i,options:{enableGrouping:o,localization:a},setHoveredColumn:s,setShowToolbarDropZone:l}=t,{draggingColumn:u,hoveredColumn:d,grouping:p,showToolbarDropZone:h}=i();return(0,c.useEffect)((()=>{var e;void 0!==(null===(e=t.options.state)||void 0===e?void 0:e.showToolbarDropZone)&&l(!!o&&!!u&&!1!==u.columnDef.enableGrouping&&!p.includes(u.id))}),[o,u,p]),(0,L.jsx)(Mi.A,{in:h,children:(0,L.jsx)(ue.A,{className:"Mui-ToolbarDropZone",sx:e=>({alignItems:"center",backgroundColor:ise(e.palette.info.main,"drop-zone"===(null===d||void 0===d?void 0:d.id)?.2:.1),backdropFilter:"blur(4px)",boxSizing:"border-box",border:`dashed ${e.palette.info.main} 2px`,display:"flex",justifyContent:"center",height:"100%",position:"absolute",width:"100%",zIndex:4}),onDragEnter:e=>{s({id:"drop-zone"})},children:(0,L.jsx)(Te.A,{fontStyle:"italic",children:a.dropToGroupBy.replace("{column}",null!==(r=null===(n=null===u||void 0===u?void 0:u.columnDef)||void 0===n?void 0:n.header)&&void 0!==r?r:"")})})})},Kpe=e=>{let{theme:t}=e;return{alignItems:"flex-start",backgroundColor:ase(t.palette.background.default,.04),backgroundImage:"none",display:"grid",flexWrap:"wrap-reverse",minHeight:"3.5rem",overflow:"hidden",p:"0 !important",transition:"all 150ms ease-in-out",zIndex:1}},Xpe=e=>{let{table:t}=e;var n;const{getState:r,options:{enableGlobalFilter:i,enablePagination:o,enableToolbarInternalActions:a,muiTopToolbarProps:s,positionGlobalFilter:l,positionPagination:c,positionToolbarAlertBanner:u,positionToolbarDropZone:d,renderTopToolbarCustomActions:p},refs:{topToolbarRef:h}}=t,{isFullScreen:f,showGlobalFilter:m}=r(),g=ce("(max-width:720px)"),b=s instanceof Function?s({table:t}):s,v=g||!!p||m;return(0,L.jsxs)(ke,Object.assign({variant:"dense"},b,{ref:e=>{h.current=e,(null===b||void 0===b?void 0:b.ref)&&(b.ref.current=e)},sx:e=>Object.assign(Object.assign({position:f?"sticky":void 0,top:f?"0":void 0},Kpe({theme:e})),(null===b||void 0===b?void 0:b.sx)instanceof Function?b.sx(e):null===b||void 0===b?void 0:b.sx),children:["top"===u&&(0,L.jsx)(Lpe,{stackAlertBanner:v,table:t}),["both","top"].includes(null!==d&&void 0!==d?d:"")&&(0,L.jsx)(Ype,{table:t}),(0,L.jsxs)(ue.A,{sx:{alignItems:"flex-start",boxSizing:"border-box",display:"flex",justifyContent:"space-between",p:"0.5rem",position:v?"relative":"absolute",right:0,top:0,width:"100%"},children:[i&&"left"===l&&(0,L.jsx)(jpe,{table:t}),null!==(n=null===p||void 0===p?void 0:p({table:t}))&&void 0!==n?n:(0,L.jsx)("span",{}),a?(0,L.jsxs)(ue.A,{sx:{display:"flex",flexWrap:"wrap-reverse",justifyContent:"flex-end"},children:[i&&"right"===l&&(0,L.jsx)(jpe,{table:t}),(0,L.jsx)(qpe,{table:t})]}):i&&"right"===l&&(0,L.jsx)(jpe,{table:t})]}),o&&["top","both"].includes(null!==c&&void 0!==c?c:"")&&(0,L.jsx)(Dpe,{table:t,position:"top"}),(0,L.jsx)(Mpe,{isTopToolbar:!0,table:t})]}))},Zpe=e=>{let{table:t}=e;const{getState:n,options:{enablePagination:r,muiBottomToolbarProps:i,positionPagination:o,positionToolbarAlertBanner:a,positionToolbarDropZone:s,renderBottomToolbarCustomActions:l},refs:{bottomToolbarRef:c}}=t,{isFullScreen:u}=n(),d=ce("(max-width:720px)"),p=i instanceof Function?i({table:t}):i,h=d||!!l;return(0,L.jsxs)(ke,Object.assign({variant:"dense"},p,{ref:e=>{e&&(c.current=e,(null===p||void 0===p?void 0:p.ref)&&(p.ref.current=e))},sx:e=>Object.assign(Object.assign(Object.assign({},Kpe({theme:e})),{bottom:u?"0":void 0,boxShadow:`0 1px 2px -1px ${ise(e.palette.common.black,.1)} inset`,left:0,position:u?"fixed":"relative",right:0}),(null===p||void 0===p?void 0:p.sx)instanceof Function?p.sx(e):null===p||void 0===p?void 0:p.sx),children:[(0,L.jsx)(Mpe,{isTopToolbar:!1,table:t}),"bottom"===a&&(0,L.jsx)(Lpe,{stackAlertBanner:h,table:t}),["both","bottom"].includes(null!==s&&void 0!==s?s:"")&&(0,L.jsx)(Ype,{table:t}),(0,L.jsxs)(ue.A,{sx:{alignItems:"center",boxSizing:"border-box",display:"flex",justifyContent:"space-between",p:"0.5rem",width:"100%"},children:[l?l({table:t}):(0,L.jsx)("span",{}),(0,L.jsx)(ue.A,{sx:{display:"flex",justifyContent:"flex-end",position:h?"relative":"absolute",right:0,top:0},children:r&&["bottom","both"].includes(null!==o&&void 0!==o?o:"")&&(0,L.jsx)(Dpe,{table:t,position:"bottom"})})]})]}))},Qpe=e=>{let{header:t,table:n}=e;var r;const{options:{icons:{MoreVertIcon:i},localization:o,muiTableHeadCellColumnActionsButtonProps:a}}=n,{column:s}=t,{columnDef:l}=s,[u,d]=(0,c.useState)(null),p=a instanceof Function?a({column:s,table:n}):a,h=l.muiTableHeadCellColumnActionsButtonProps instanceof Function?l.muiTableHeadCellColumnActionsButtonProps({column:s,table:n}):l.muiTableHeadCellColumnActionsButtonProps,f=Object.assign(Object.assign({},p),h);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(mi,{arrow:!0,enterDelay:1e3,enterNextDelay:1e3,placement:"top",title:null!==(r=null===f||void 0===f?void 0:f.title)&&void 0!==r?r:o.columnActions,children:(0,L.jsx)(Pa.A,Object.assign({"aria-label":o.columnActions,onClick:e=>{e.stopPropagation(),e.preventDefault(),d(e.currentTarget)},size:"small"},f,{sx:e=>
205Object.assign({height:"2rem",m:"-8px -4px",opacity:.5,transform:"scale(0.85) translateX(-4px)",transition:"opacity 150ms",width:"2rem","&:hover":{opacity:1}},(null===f||void 0===f?void 0:f.sx)instanceof Function?f.sx(e):null===f||void 0===f?void 0:f.sx),title:void 0,children:(0,L.jsx)(i,{})}))}),u&&(0,L.jsx)(Cpe,{anchorEl:u,header:t,setAnchorEl:d,table:n})]})},Jpe=e=>{let{header:t,rangeFilterIndex:n,table:r}=e;var i,o,a,s,l,u,d,p,h,f;const{options:{enableColumnFilterModes:m,columnFilterModeOptions:g,icons:{FilterListIcon:b,CloseIcon:v},localization:y,manualFiltering:x,muiTableHeadCellFilterTextFieldProps:w},refs:{filterInputRefs:A},setColumnFilterFns:E}=r,{column:S}=t,{columnDef:_}=S,k=w instanceof Function?w({column:S,table:r,rangeFilterIndex:n}):w,T=_.muiTableHeadCellFilterTextFieldProps instanceof Function?_.muiTableHeadCellFilterTextFieldProps({column:S,table:r,rangeFilterIndex:n}):_.muiTableHeadCellFilterTextFieldProps,C=Object.assign(Object.assign({},k),T),O="range"===_.filterVariant||void 0!==n,N="select"===_.filterVariant,I="multi-select"===_.filterVariant,R="text"===_.filterVariant||!N&&!I,P=_._filterFn,j=["empty","notEmpty"].includes(P)?y[`filter${(null===(o=null===(i=null===P||void 0===P?void 0:P.charAt)||void 0===i?void 0:i.call(P,0))||void 0===o?void 0:o.toUpperCase())+(null===P||void 0===P?void 0:P.slice(1))}`]:"",M=O?0===n?y.min:1===n?y.max:"":null!==(a=null===C||void 0===C?void 0:C.placeholder)&&void 0!==a?a:null===(s=y.filterByColumn)||void 0===s?void 0:s.replace("{column}",String(_.header)),D=null!==(l=null===_||void 0===_?void 0:_.columnFilterModeOptions)&&void 0!==l?l:g,F=m&&!1!==_.enableColumnFilterModes&&!n&&(void 0===D||!!(null===D||void 0===D?void 0:D.length)),B=S.getFacetedUniqueValues(),U=(0,c.useMemo)((()=>{var e;return null!==(e=_.filterSelectOptions)&&void 0!==e?e:(N||I)&&B?Array.from(B.keys()).sort(((e,t)=>e.localeCompare(t))):void 0}),[_.filterSelectOptions,B,I,N]),[z,H]=(0,c.useState)(null),[$,V]=(0,c.useState)((()=>{var e,t;return I?S.getFilterValue()||[]:O?(null===(e=S.getFilterValue())||void 0===e?void 0:e[n])||[]:null!==(t=S.getFilterValue())&&void 0!==t?t:""})),G=(0,c.useCallback)((0,Di.A)((e=>{const t="date"===C.type?e.target.valueAsDate:"number"===C.type?e.target.valueAsNumber:e.target.value;O?S.setFilterValue((e=>{const r=null!==e&&void 0!==e?e:["",""];return r[n]=t,r})):S.setFilterValue(null!==t&&void 0!==t?t:void 0)}),R?x?400:200:1),[]),W=()=>{I?(V([]),S.setFilterValue([])):O?(V(""),S.setFilterValue((e=>{const t=Array.isArray(e)&&e||["",""];return t[n]=void 0,t}))):(V(""),S.setFilterValue(void 0))},q=(0,c.useRef)(!1);return(0,c.useEffect)((()=>{if(q.current){const e=S.getFilterValue();void 0===e?W():V(O&&void 0!==n?e[n]:e)}q.current=!0}),[S.getFilterValue()]),_.Filter?(0,L.jsx)(L.Fragment,{children:null===(u=_.Filter)||void 0===u?void 0:u.call(_,{column:S,header:t,rangeFilterIndex:n,table:r})}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(Xa.A,Object.assign({fullWidth:!0,inputProps:{disabled:!!j,sx:{textOverflow:"ellipsis",width:j?0:void 0},title:M},helperText:F?(0,L.jsx)("label",{children:y.filterMode.replace("{filterType}",y[`filter${(null===(d=null===P||void 0===P?void 0:P.charAt(0))||void 0===d?void 0:d.toUpperCase())+(null===P||void 0===P?void 0:P.slice(1))}`])}):null,FormHelperTextProps:{sx:{fontSize:"0.75rem",lineHeight:"0.8rem",whiteSpace:"nowrap"}},margin:"none",placeholder:j||N||I?void 0:M,onChange:e=>{V(e.target.value),G(e)},onClick:e=>e.stopPropagation(),select:N||I,value:null!==$&&void 0!==$?$:"",variant:"standard",InputProps:{startAdornment:F?(0,L.jsxs)(Ei.A,{position:"start",children:[(0,L.jsx)(mi,{arrow:!0,title:y.changeFilterMode,children:(0,L.jsx)("span",{children:(0,L.jsx)(Pa.A,{"aria-label":y.changeFilterMode,onClick:e=>{H(e.currentTarget)},size:"small",sx:{height:"1.75rem",width:"1.75rem"},children:(0,L.jsx)(b,{})})})}),j&&(0,L.jsx)(so,{onDelete:()=>{V(""),S.setFilterValue(void 0),E((e=>{var n;return Object.assign(Object.assign({},e),{[t.id]:null!==(n=null===D||void 0===D?void 0:D[0])&&void 0!==n?n:"fuzzy"})}))},label:j})]}):null,endAdornment:!j&&(0,L.jsx)(Ei.A,{position:"end",children:(0,L.jsx)(mi,{arrow:!0,placement:"right",title:null!==(p=y.clearFilter)&&void 0!==p?p:"",children:(0,L.jsx)("span",{children:(0,L.jsx)(Pa.A,{"aria-label":y.clearFilter,disabled:!(null===(h=null===$||void 0===$?void 0:$.toString())||void 0===h?void 0:h.length),onClick:W,size:"small",sx:{height:"1.75rem",width:"1.75rem"},children:(0,L.jsx)(v,{})})})})})},SelectProps:{displayEmpty:!0,multiple:I,renderValue:I?e=>(null===e||void 0===e?void 0:e.length)?(0,L.jsx)(ue.A,{sx:{display:"flex",flexWrap:"wrap",gap:"2px"},children:null===e||void 0===e?void 0:e.map((e=>{const t=null===U||void 0===U?void 0:U.find((t=>t instanceof Object?t.value===e:t===e));return(0,L.jsx)(so,{label:t instanceof Object?t.text:t},e)}))}):(0,L.jsx)(ue.A,{sx:{opacity:.5},children:M}):void 0}},C,{inputRef:e=>{A.current[`${S.id}-${null!==n&&void 0!==n?n:0}`]=e,C.inputRef&&(C.inputRef=e)},sx:e=>Object.assign({p:0,minWidth:O?"100px":j?"auto":"120px",width:"calc(100% + 4px)",mx:"-2px","& .MuiSelect-icon":{mr:"1.5rem"}},(null===C||void 0===C?void 0:C.sx)instanceof Function?C.sx(e):null===C||void 0===C?void 0:C.sx),children:[(N||I)&&(0,L.jsx)(Qs.A,{divider:!0,disabled:!0,hidden:!0,value:"",children:(0,L.jsx)(ue.A,{sx:{opacity:.5},children:M})}),null!==(f=C.children)&&void 0!==f?f:null===U||void 0===U?void 0:U.map((e=>{var t;if(!e)return"";let n,r;return"object"!==typeof e?(n=e,r=e):(n=e.value,r=e.text),(0,L.jsxs)(Qs.A,{sx:{display:"flex",m:0,alignItems:"center",gap:"0.5rem"},value:n,children:[I&&(0,L.jsx)(qx,{checked:(null!==(t=S.getFilterValue())&&void 0!==t?t:[]).includes(n),sx:{mr:"0.5rem"}}),r," ",!_.filterSelectOptions&&`(${B.get(n)})`]},n)}))]})),(0,L.jsx)(_pe,{anchorEl:z,header:t,setAnchorEl:H,table:r,setFilterValue:V})]})}
205,ehe=e=>{let{header:t,table:n}=e;return(0,L.jsxs)(ue.A,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"1rem"},children:[(0,L.jsx)(Jpe,{header:t,rangeFilterIndex:0,table:n}),(0,L.jsx)(Jpe,{header:t,rangeFilterIndex:1,table:n})]})},the=e=>{let{column:t,table:n}=e;var r,i,o;const{getState:a,options:{localization:s,muiTableHeadCellFilterCheckboxProps:l}}=n,{density:c}=a(),{columnDef:u}=t,d=l instanceof Function?l({column:t,table:n}):l,p=u.muiTableHeadCellFilterCheckboxProps instanceof Function?u.muiTableHeadCellFilterCheckboxProps({column:t,table:n}):u.muiTableHeadCellFilterCheckboxProps,h=Object.assign(Object.assign({},d),p),f=null===(r=s.filterByColumn)||void 0===r?void 0:r.replace("{column}",u.header);return(0,L.jsx)(mi,{arrow:!0,enterDelay:1e3,enterNextDelay:1e3,title:null!==(i=null===h||void 0===h?void 0:h.title)&&void 0!==i?i:f,children:(0,L.jsx)(Nl,{control:(0,L.jsx)(qx,Object.assign({checked:"true"===t.getFilterValue(),indeterminate:void 0===t.getFilterValue(),color:void 0===t.getFilterValue()?"default":"primary",size:"compact"===c?"small":"medium"},h,{onClick:e=>{var t;e.stopPropagation(),null===(t=null===h||void 0===h?void 0:h.onClick)||void 0===t||t.call(h,e)},onChange:(e,n)=>{var r;t.setFilterValue(void 0===t.getFilterValue()?"true":"true"===t.getFilterValue()?"false":void 0),null===(r=null===h||void 0===h?void 0:h.onChange)||void 0===r||r.call(h,e,n)},sx:e=>
205Object.assign({height:"2.5rem",width:"2.5rem"},(null===h||void 0===h?void 0:h.sx)instanceof Function?h.sx(e):null===h||void 0===h?void 0:h.sx)})),disableTypography:!0,label:null!==(o=h.title)&&void 0!==o?o:f,sx:{color:"text.secondary",mt:"-4px",fontWeight:"normal"},title:void 0})})},nhe=e=>{let{header:t,table:n}=e;var r,i;const{options:{localization:o,muiTableHeadCellFilterSliderProps:a,enableColumnFilterModes:s},refs:{filterInputRefs:l}}=n,{column:u}=t,{columnDef:d}=u,p=d._filterFn,h=s&&!1!==d.enableColumnFilterModes,f=a instanceof Function?a({column:u,table:n}):a,m=d.muiTableHeadCellFilterSliderProps instanceof Function?d.muiTableHeadCellFilterSliderProps({column:u,table:n}):d.muiTableHeadCellFilterSliderProps,g=Object.assign(Object.assign({},f),m);let[b,v]=void 0!==g.min&&void 0!==g.max?[g.min,g.max]:null!==(r=u.getFacetedMinMaxValues())&&void 0!==r?r:[0,1];Array.isArray(b)&&(b=b[0]),Array.isArray(v)&&(v=v[0]),null===b&&(b=0),null===v&&(v=1);const[y,x]=(0,c.useState)([b,v]),w=u.getFilterValue(),A=(0,c.useRef)(!1);return(0,c.useEffect)((()=>{A.current&&(void 0===w?x([b,v]):Array.isArray(w)&&x(w)),A.current=!0}),[w,b,v]),(0,L.jsxs)(po.A,{children:[(0,L.jsx)(Ic,Object.assign({disableSwap:!0,min:b,max:v,onChange:(e,t)=>
205{x(t)},onChangeCommitted:(e,t)=>{Array.isArray(t)&&(t[0]<=b&&t[1]>=v?u.setFilterValue(void 0):u.setFilterValue(t))},value:y,valueLabelDisplay:"auto"},g,{slotProps:{input:{ref:e=>{var t,n;e&&(l.current[`${u.id}-0`]=e,(null===(n=null===(t=null===g||void 0===g?void 0:g.slotProps)||void 0===t?void 0:t.input)||void 0===n?void 0:n.ref)&&(g.slotProps.input.ref=e))}}},sx:e=>Object.assign({m:"auto",mt:h?"6px":"10px",px:"4px",width:"calc(100% - 8px)"},(null===g||void 0===g?void 0:g.sx)instanceof Function?g.sx(e):null===g||void 0===g?void 0:g.sx)})),h?(0,L.jsx)(Vue.A,{sx:{m:"-3px -6px",fontSize:"0.75rem",lineHeight:"0.8rem",whiteSpace:"nowrap"},children:o.filterMode.replace("{filterType}",o[`filter${(null===(i=null===p||void 0===p?void 0:p.charAt(0))||void 0===i?void 0:i.toUpperCase())+(null===p||void 0===p?void 0:p.slice(1))}`])}):null]})},rhe=e=>{let{header:t,table:n}=e;const{getState:r}=n,{showColumnFilters:i}=r(),{column:o}=t,{columnDef:a}=o;return(0,L.jsx)(ji,{in:i,mountOnEnter:!0,unmountOnExit:!0,children:"checkbox"===a.filterVariant?(0,L.jsx)(the,{column:o,table:n}):"range-slider"===a.filterVariant?(0,L.jsx)(nhe,{header:t,table:n}):"range"===a.filterVariant||["between","betweenInclusive","inNumberRange"].includes(a._filterFn)?(0,L.jsx)(ehe,{header:t,table:n}):(0,L.jsx)(Jpe,{header:t,table:n})})},ihe=e=>{let{header:t,table:n}=e;var r,i,o,a;const{options:{icons:{FilterAltIcon:s},localization:l},refs:{filterInputRefs:c},setShowColumnFilters:u}=n,{column:d}=t,{columnDef:p}=d,h=["range","ranger-slider"].includes(null!==(r=p.filterVariant)&&void 0!==r?r:"")||["between","betweenInclusive","inNumberRange"].includes(p._filterFn),f=p._filterFn,m=l.filteringByColumn.replace("{column}",String(p.header)).replace("{filterType}",l[`filter${(null===(i=null===f||void 0===f?void 0:f.charAt(0))||void 0===i?void 0:i.toUpperCase())+(null===f||void 0===f?void 0:f.slice(1))}`]).replace("{filterValue}",`"${Array.isArray(d.getFilterValue())?d.getFilterValue().join(`" ${h?l.and:l.or} "`):d.getFilterValue()}"`).replace('" "',"");return(0,L.jsx)(Cn.A,{unmountOnExit:!0,in:!!d.getFilterValue()&&!h||h&&(!!(null===(o=d.getFilterValue())||void 0===o?void 0:o[0])||!!(null===(a=d.getFilterValue())||void 0===a?void 0:a[1])),children:(0,L.jsx)(ue.A,{component:"span",sx:{flex:"0 0"},children:(0,L.jsx)(mi,{arrow:!0,placement:"top",title:m,children:(0,L.jsx)(Pa.A,{disableRipple:!0,onClick:e=>{u(!0),queueMicrotask((()=>{var e,t;null===(e=c.current[`${d.id}-0`])||void 0===e||e.focus(),null===(t=c.current[`${d.id}-0`])||void 0===t||t.select()})),e.stopPropagation()},size:"small",sx:{height:"12px",m:0,opacity:.8,p:"2px",transform:"scale(0.66)",width:"12px"},children:(0,L.jsx)(s,{})})})})})},ohe=e=>{let{column:t,table:n,tableHeadCellRef:r}=e;const{getState:i,options:{enableColumnOrdering:o,muiTableHeadCellDragHandleProps:a},setColumnOrder:s,setDraggingColumn:l,setHoveredColumn:c}=n,{columnDef:u}=t,{hoveredColumn:d,draggingColumn:p,columnOrder:h}=i(),f=a instanceof Function?a({column:t,table:n}):a,m=u.muiTableHeadCellDragHandleProps instanceof Function?u.muiTableHeadCellDragHandleProps({column:t,table:n}):u.muiTableHeadCellDragHandleProps,g=Object.assign(Object.assign({},f),m);return(0,L.jsx)(Upe,{iconButtonProps:g,onDragStart:e=>{var n;null===(n=null===g||void 0===g?void 0:g.onDragStart)||void 0===n||n.call(g,e),l(t),e.dataTransfer.setDragImage(r.current,0,0)},onDragEnd:e=>{var n;null===(n=null===g||void 0===g?void 0:g.onDragEnd)||void 0===n||n.call(g,e),"drop-zone"===(null===d||void 0===d?void 0:d.id)?t.toggleGrouping():o&&d&&(null===d||void 0===d?void 0:d.id)!==(null===p||void 0===p?void 0:p.id)&&s(lpe(t,d,h)),l(null),c(null)},table:n})},ahe=e=>{let{header:t,table:n}=e;var r;const{getState:i,options:{columnResizeMode:o},setColumnSizingInfo:a}=n,{density:s}=i(),{column:l}=t;return(0,L.jsx)(ue.A,{className:"Mui-TableHeadCell-ResizeHandle-Wrapper",onDoubleClick:()=>{a((e=>Object.assign(Object.assign({},e),{isResizingColumn:!1}))),l.resetSize()},onMouseDown:t.getResizeHandler(),onTouchStart:t.getResizeHandler(),sx:e=>({cursor:"col-resize",mr:"compact"===s?"-0.75rem":"-1rem",position:"absolute",right:"4px",px:"4px","&:active > hr":{backgroundColor:e.palette.info.main,opacity:1}}),style:{transform:l.getIsResizing()&&"onEnd"===o?`translateX(${null!==(r=i().columnSizingInfo.deltaOffset)&&void 0!==r?r:0}px)`:void 0},children:(0,L.jsx)(ze.A,{className:"Mui-TableHeadCell-ResizeHandle-Divider",flexItem:!0,orientation:"vertical",sx:{borderRadius:"2px",borderWidth:"2px",height:"24px",touchAction:"none",transition:l.getIsResizing()?void 0:"all 150ms ease-in-out",userSelect:"none",zIndex:4}})})},she=e=>{let{header:t,table:n,tableCellProps:r}=e;const{getState:i,options:{icons:{ArrowDownwardIcon:o},localization:a}}=n,{column:s}=t,{columnDef:l}=s,{sorting:c}=i(),u=s.getIsSorted(),d=u?"desc"===u?a.sortedByColumnDesc.replace("{column}",l.header):a.sortedByColumnAsc.replace("{column}",l.header):"desc"===s.getNextSortingOrder()?a.sortByColumnDesc.replace("{column}",l.header):a.sortByColumnAsc.replace("{column}",l.header);return(0,L.jsx)(mi,{arrow:!0,placement:"top",title:d,children:(0,L.jsx)(Ta,{badgeContent:c.length>1?s.getSortIndex()+1:0,overlap:"circular",children:(0,L.jsx)(Zue,{"aria-label":d,active:!!u,direction:u||void 0,sx:{flex:"0 0",width:"2.4ch",transform:"right"!==(null===r||void 0===r?void 0:r.align)?"translateX(-0.5ch)":void 0},IconComponent:o,onClick:e=>{var n;e.stopPropagation(),null===(n=t.column.getToggleSortingHandler())||void 0===n||n(e)}})})})},lhe=e=>{let{header:t,table:n}=e;var r,i,o,a,s,l;const u=(0,re.A)(),{getState:d,options:{enableColumnActions:p,enableColumnDragging:h,enableColumnOrdering:f,enableGrouping:m,enableMultiSort:g,layoutMode:b,muiTableHeadCellProps:v},refs:{tableHeadCellRefs:y},setHoveredColumn:x}=n,{density:w,draggingColumn:A,grouping:E,hoveredColumn:S,showColumnFilters:_}=d(),{column:k}=t,{columnDef:T}=k,{columnDefType:C}=T,O=v instanceof Function?v({column:k,table:n}):v,N=T.muiTableHeadCellProps instanceof Function?T.muiTableHeadCellProps({column:k,table:n}):T.muiTableHeadCellProps,I=Object.assign(Object.assign({},O),N),R=(p||T.enableColumnActions)&&!1!==T.enableColumnActions,P=!1!==h&&!1!==T.enableColumnDragging&&(h||f&&!1!==T.enableColumnOrdering||m&&!1!==T.enableGrouping&&!E.includes(k.id)),j=(0,c.useMemo)((()=>{let e=0;return k.getCanSort()&&e++,R&&(e+=1.75),P&&(e+=1.25),e}),[R,P]),M=(0,c.useMemo)((()=>(null===A||void 0===A?void 0:A.id)===k.id?`1px dashed ${u.palette.text.secondary}`:(null===S||void 0===S?void 0:S.id)===k.id?`2px dashed ${u.palette.primary.main}`:void 0),[A,S]),D=M?{borderLeft:M,borderRight:M,borderTop:M}:void 0,F=(null===T||void 0===T?void 0:T.Header)instanceof Function?null===(r=null===T||void 0===T?void 0:T.Header)||void 0===r?void 0:r.call(T,{column:k,header:t,table:n}):null!==(i=null===T||void 0===T?void 0:T.Header)&&void 0!==i?i:T.header;return(0,L.jsxs)(Sce,Object.assign({align:"group"===C?"center":"left",colSpan:t.colSpan,onDragEnter:e=>{m&&"drop-zone"===(null===S||void 0===S?void 0:S.id)&&x(null),f&&A&&"group"!==C&&x(!1!==T.enableColumnOrdering?k:null)},ref:e=>{e&&(y.current[k.id]=e)}},I,{sx:e=>Object.assign(Object.assign({flexDirection:"grid"===b?"column":void 0,fontWeight:"bold",overflow:"visible",p:"compact"===w?"0.5rem":"comfortable"===w?"display"===C?"0.75rem":"1rem":"display"===C?"1rem 1.25rem":"1.5rem",pb:"display"===C?0:_||"compact"===w?"0.4rem":"0.6rem",pt:"group"===C||"compact"===w?"0.25rem":"comfortable"===w?".75rem":"1.25rem",userSelect:g&&k.getCanSort()?"none":void 0,verticalAlign:"top",zIndex:k.getIsResizing()||(null===A||void 0===A?void 0:A.id)===k.id?3:k.getIsPinned()&&"group"!==C?2:1},fpe({column:k,header:t,table:n,tableCellProps:I,theme:e})),D),children:[t.isPlaceholder?null:(0,L.jsxs)(ue.A,{className:"Mui-TableHeadCell-Content",sx:{alignItems:"center",display:"flex",flexDirection:"right"===(null===I||void 0===I?void 0:I.align)?"row-reverse":"row",justifyContent:"group"===C||"center"===(null===I||void 0===I?void 0:I.align)?"center":k.getCanResize()?"space-between":"flex-start",position:"relative",width:"100%"},children:[(0,L.jsxs)(ue.A,{className:"Mui-TableHeadCell-Content-Labels",onClick:k.getToggleSortingHandler(),sx:{alignItems:"center",cursor:k.getCanSort()&&"group"!==C?"pointer":void 0,display:"flex",flexDirection:"right"===(null===I||void 0===I?void 0:I.align)?"row-reverse":"row",overflow:"data"===C?"hidden":void 0,pl:"center"===(null===I||void 0===I?void 0:I.align)?`${j}rem`:void 0},children:[(0,L.jsx)(ue.A,{className:"Mui-TableHeadCell-Content-Wrapper",sx:{minWidth:`${Math.min(null!==(a=null===(o=T.header)||void 0===o?void 0:o.length)&&void 0!==a?a:0,5)}ch`,overflow:"data"===C?"hidden":void 0,textOverflow:"ellipsis",whiteSpace:(null!==(l=null===(s=T.header)||void 0===s?void 0:s.length)&&void 0!==l?l:0)<20?"nowrap":"normal","&:hover":{textOverflow:"clip"}},title:"data"===C?T.header:void 0,children:F}),k.getCanSort()&&(0,L.jsx)(she,{header:t,table:n,tableCellProps:I}),k.getCanFilter()&&(0,L.jsx)(ihe,{header:t,table:n})]}),"group"!==C&&(0,L.jsxs)(ue.A,{className:"Mui-TableHeadCell-Content-Actions",sx:{whiteSpace:"nowrap"},children:[P&&(0,L.jsx)(ohe,{column:k,table:n,tableHeadCellRef:{current:y.current[k.id]}}),R&&(0,L.jsx)(Qpe,{header:t,table:n})]}),k.getCanResize()&&(0,L.jsx)(ahe,{header:t,table:n})]}),k.getCanFilter()&&(0,L.jsx)(rhe,{header:t,table:n})]}))},che=e=>{let{headerGroup:t,table:n,virtualColumns:r,virtualPaddingLeft:i,virtualPaddingRight:o}=e;const{options:{layoutMode:a,muiTableHeadRowProps:s}}=n,l=s instanceof Function?s({headerGroup:t,table:n}):s;return(0,L.jsxs)($ue,Object.assign({},l,{sx:e=>Object.assign({backgroundColor:ase(e.palette.background.default,.04),boxShadow:`4px 0 8px ${ise(e.palette.common.black,.1)}`,display:"grid"===a?"flex":"table-row",top:0},(null===l||void 0===l?void 0:l.sx)instanceof Function?null===l||void 0===l?void 0:l.sx(e):null===l||void 0===l?void 0:l.sx),children:[i?(0,L.jsx)("th",{style:{display:"flex",width:i}}):null,(null!==r&&void 0!==r?r:t.headers).map((e=>{const i=r?t.headers[e.index]:e;return i?(0,L.jsx)(lhe,{header:i,table:n},i.id):null})),o?(0,L.jsx)("th",{style:{display:"flex",width:o}}):null]}))},uhe=e=>{let{table:t,virtualColumns:n,virtualPaddingLeft:r,virtualPaddingRight:i}=e;const{getHeaderGroups:o,getState:a,options:{enableStickyHeader:s,layoutMode:l,muiTableHeadProps:c}}=t,{isFullScreen:u}=a(),d=c instanceof Function?c({table:t}):c,p=s||u;return(0,L.jsx)(Lue,Object.assign({},d,{sx:e=>Object.assign({display:"grid"===l?"grid":"table-row-group",opacity:.97,position:p?"sticky":"relative",top:p&&"grid"===l?0:void 0,zIndex:p?2:void 0},(null===d||void 0===d?void 0:d.sx)instanceof Function?null===d||void 0===d?void 0:d.sx(e):null===d||void 0===d?void 0:d.sx),children:o().map((e=>(0,L.jsx)(che,{headerGroup:e,table:t,virtualColumns:n,virtualPaddingLeft:r,virtualPaddingRight:i},e.id)))}))},dhe=e=>{let{cell:t,showLabel:n,table:r}=e;var i,o,a;const{getState:s,options:{muiTableBodyCellEditTextFieldProps:l},refs:{editInputRefs:u},setEditingCell:d,setEditingRow:p}=r,{column:h,row:f}=t,{columnDef:m}=h,{editingRow:g}=s(),[b,v]=(0,c.useState)((()=>t.getValue())),y=l instanceof Function?l({cell:t,column:h,row:f,table:r}):l,x=m.muiTableBodyCellEditTextFieldProps instanceof Function?m.muiTableBodyCellEditTextFieldProps({cell:t,column:h,row:f,table:r}):m.muiTableBodyCellEditTextFieldProps,w=Object.assign(Object.assign({},y),x),A="select"===m.editVariant,E=e=>{g&&p(Object.assign(Object.assign({},g),{_valuesCache:Object.assign(Object.assign({},g._valuesCache),{[h.id]:e})}))};return m.Edit?(0,L.jsx)(L.Fragment,{children:null===(i=m.Edit)||void 0===i?void 0:i.call(m,{cell:t,column:h,row:f,table:r})}):(0,L.jsx)(Xa.A,Object.assign({disabled:!1===(m.enableEditing instanceof Function?m.enableEditing(f):m.enableEditing),fullWidth:!0,inputRef:e=>{e&&(u.current[h.id]=e,w.inputRef&&(w.inputRef=e))},label:n?h.columnDef.header:void 0,margin:"none",name:h.id,placeholder:m.header,select:A,value:b,variant:"standard"},w,{onClick:e=>{var t;e.stopPropagation(),null===(t=null===w||void 0===w?void 0:w.onClick)||void 0===t||t.call(w,e)},onBlur:e=>{var t;null===(t=w.onBlur)||void 0===t||t.call(w,e),E(b),d(null)},onChange:e=>{var t;null===(t=w.onChange)||void 0===t||t.call(w,e),v(e.target.value),(null===w||void 0===w?void 0:w.select)&&E(e.target.value)},onKeyDown:e=>{var t,n;null===(t=w.onKeyDown)||void 0===t||t.call(w,e),"Enter"===e.key&&(null===(n=u.current[h.id])||void 0===n||n.blur())},children:null!==(o=w.children)&&void 0!==o?o:null===(a=null===m||void 0===m?void 0:m.editSelectOptions)||void 0===a?void 0:a.map((e=>{let t,n;return"object"!==typeof e?(t=e,n=e):(t=e.value,n=e.text),(0,L.jsx)(Qs.A,{sx:{display:"flex",m:0,alignItems:"center",gap:"0.5rem"},value:t,children:n},t)}))}))},phe=e=>{let{cell:t,children:n,table:r}=e;var i;const{options:{localization:o,muiTableBodyCellCopyButtonProps:a}}=r,{column:s,row:l}=t,{columnDef:u}=s,[d,p]=(0,c.useState)(!1),h=a instanceof Function?a({cell:t,column:s,row:l,table:r}):a,f=u.muiTableBodyCellCopyButtonProps instanceof Function?u.muiTableBodyCellCopyButtonProps({cell:t,column:s,row:l,table:r}):u.muiTableBodyCellCopyButtonProps,m=Object.assign(Object.assign({},h),f);return(0,L.jsx)(mi,{arrow:!0,enterDelay:1e3,enterNextDelay:1e3,placement:"top",title:null!==(i=null===m||void 0===m?void 0:m.title)&&void 0!==i?i:d?o.copiedToClipboard:o.clickToCopy,children:(0,L.jsx)(Yx.A,Object.assign({onClick:e=>{return n=e,r=t.getValue(),n.stopPropagation(),navigator.clipboard.writeText(r),p(!0),void setTimeout((()=>p(!1)),4e3);var n,r},size:"small",type:"button",variant:"text"},m,{sx:e=>Object.assign({backgroundColor:"transparent",border:"none",color:"inherit",curs
205or:"copy",fontFamily:"inherit",fontSize:"inherit",letterSpacing:"inherit",m:"-0.25rem",minWidth:"unset",textAlign:"inherit",textTransform:"inherit"},(null===m||void 0===m?void 0:m.sx)instanceof Function?m.sx(e):null===m||void 0===m?void 0:m.sx),title:void 0,children:n}))})},hhe=e=>{let{cell:t,rowRef:n,table:r}=e;const{options:{muiTableBodyRowDragHandleProps:i}}=r,{row:o}=t,a=i instanceof Function?i({row:o,table:r}):i;return(0,L.jsx)(Upe,{iconButtonProps:a,onDragStart:e=>{var t;null===(t=null===a||void 0===a?void 0:a.onDragStart)||void 0===t||t.call(a,e),e.dataTransfer.setDragImage(n.current,0,0),r.setDraggingRow(o)},onDragEnd:e=>{var t;null===(t=null===a||void 0===a?void 0:a.onDragEnd)||void 0===t||t.call(a,e),r.setDraggingRow(null),r.setHoveredRow(null)},table:r})},fhe=["string","number"],mhe=e=>{let{cell:t,table:n}=e;var r,i,o;const{getState:a,options:{enableFilterMatchHighlighting:s}}=n,{column:l,row:c}=t,{columnDef:u}=l,{globalFilter:d,globalFilterFn:p}=a(),h=l.getFilterValue();let f=t.getIsAggregated()&&u.AggregatedCell?u.AggregatedCell({cell:t,column:l,row:c,table:n}):c.getIsGrouped()&&!t.getIsGrouped()?null:t.getIsGrouped()&&u.GroupedCell?u.GroupedCell({cell:t,column:l,row:c,table:n}):void 0;const m=void 0!==f;if(m||(f=t.renderValue()),s&&!1!==u.enableFilterMatchHighlighting&&f&&fhe.includes(typeof f)&&(h&&fhe.includes(typeof h)&&"text"===u.filterVariant||d&&fhe.includes(typeof d)&&l.getCanGlobalFilter())){const e=null===wde||void 0===wde?void 0:wde({text:null===f||void 0===f?void 0:f.toString(),query:(null!==(r=null!==h&&void 0!==h?h:d)&&void 0!==r?r:"").toString(),matchExactly:"fuzzy"!==(h?u._filterFn:p)});((null===e||void 0===e?void 0:e.length)>1||(null===(i=null===e||void 0===e?void 0:e[0])||void 0===i?void 0:i.match))&&(f=(0,L.jsx)("span",{"aria-label":f,role:"note",children:null!==(o=null===e||void 0===e?void 0:e.map((e=>{let{key:t,match:n,text:r}=e;return(0,L.jsx)(ue.A,{"aria-hidden":"true",component:"span",sx:n?{backgroundColor:e=>"dark"===e.palette.mode?ose(e.palette.warning.dark,.25):ase(e.palette.warning.light,.5),borderRadius:"2px",color:e=>"dark"===e.palette.mode?"white":"black",padding:"2px 1px"}:void 0,children:r},t)})))&&void 0!==o?o:f}))}return u.Cell&&!m&&(f=u.Cell({cell:t,renderedCellValue:f,column:l,row:c,table:n})),(0,L.jsx)(L.Fragment,{children:f})},ghe=e=>{let{cell:t,measureElement:n,numRows:r,rowIndex:i,rowRef:o,table:a,virtualCell:s}=e;var l,u,d,p;const h=(0,re.A)(),{getState:f,options:{editingMode:m,enableClickToCopy:g,enableColumnOrdering:b,enableEditing:v,enableGrouping:y,enableRowNumbers:x,layoutMode:w,muiTableBodyCellProps:A,muiTableBodyCellSkeletonProps:E,rowNumberMode:S},refs:{editInputRefs:_},setEditingCell:k,setHoveredColumn:T}=a,{draggingColumn:C,draggingRow:O,editingCell:N,editingRow:I,hoveredColumn:R,hoveredRow:P,density:j,isLoading:M,showSkeletons:D}=f(),{column:F,row:B}=t,{columnDef:U}=F,{columnDefType:z}=U,H=A instanceof Function?A({cell:t,column:F,row:B,table:a}):A,$=U.muiTableBodyCellProps instanceof Function?U.muiTableBodyCellProps({cell:t,column:F,row:B,table:a}):U.muiTableBodyCellProps,V=Object.assign(Object.assign({},H),$),G=E instanceof Function?E({cell:t,column:F,row:B,table:a}):E,[W,q]=(0,c.useState)(0);(0,c.useEffect)((()=>q(M||D?"display"===z?F.getSize()/2:Math.round(Math.random()*(F.getSize()-F.getSize()/3)+F.getSize()/3):100)),[]);const Y=(0,c.useMemo)((()=>{const e=(null===C||void 0===C?void 0:C.id)===F.id,t=(null===R||void 0===R?void 0:R.id)===F.id,n=(null===O||void 0===O?void 0:O.id)===B.id,o=(null===P||void 0===P?void 0:P.id)===B.id,s=((e,t)=>t.getVisibleLeafColumns()[0].id===e.id)(F,a),l=((e,t)=>{const n=t.getVisibleLeafColumns();return n[n.length-1].id===e.id})(F,a),c=i===r-1,u=e||n?`1px dashed ${h.palette.text.secondary} !important`:t||o?`2px dashed ${h.palette.primary.main} !important`:void 0;return u?{borderLeft:e||t||(n||o)&&s?u:void 0,borderRight:e||t||(n||o)&&l?u:void 0,borderBottom:n||o||c?u:void 0,borderTop:n||o?u:void 0}:void 0}),[C,O,R,P,i]),K=(v instanceof Function?v(B):v)&&!1!==(U.enableEditing instanceof Function?U.enableEditing(B):U.enableEditing),X=K&&"modal"!==m&&("table"===m||(null===I||void 0===I?void 0:I.id)===B.id||
205(null===N||void 0===N?void 0:N.id)===t.id)&&!B.getIsGrouped();return(0,L.jsx)(Sce,Object.assign({"data-index":null===s||void 0===s?void 0:s.index,ref:e=>{e&&(null===n||void 0===n||n(e))}},V,{onDragEnter:e=>{var t;null===(t=null===V||void 0===V?void 0:V.onDragEnter)||void 0===t||t.call(V,e),y&&"drop-zone"===(null===R||void 0===R?void 0:R.id)&&T(null),b&&C&&T(!1!==U.enableColumnOrdering?F:null)},onDoubleClick:e=>{var n;null===(n=null===V||void 0===V?void 0:V.onDoubleClick)||void 0===n||n.call(V,e),K&&"cell"===m&&(k(t),queueMicrotask((()=>{var e;const t=_.current[F.id];t&&(t.focus(),null===(e=t.select)||void 0===e||e.call(t))})))},sx:e=>Object.assign(Object.assign({alignItems:"grid"===w?"center":void 0,cursor:K&&"cell"===m?"pointer":"inherit",justifyContent:"grid"===w?V.align:void 0,overflow:"hidden",p:"compact"===j?"display"===z?"0 0.5rem":"0.5rem":"comfortable"===j?"display"===z?"0.5rem 0.75rem":"1rem":"display"===z?"1rem 1.25rem":"1.5rem",pl:"mrt-row-expand"===F.id?`${B.depth+("compact"===j?.5:"comfortable"===j?.75:1.25)}rem`:void 0,textOverflow:"display"!==z?"ellipsis":void 0,whiteSpace:"compact"===j?"nowrap":"normal",zIndex:(null===C||void 0===C?void 0:C.id)===F.id?2:F.getIsPinned()?1:0,"&:hover":{outline:["table","cell"].includes(null!==m&&void 0!==m?m:"")?`1px solid ${e.palette.text.secondary}`:void 0,outlineOffset:"-1px",textOverflow:"clip"}},fpe({column:F,table:a,theme:e,tableCellProps:V})),Y),children:(0,L.jsxs)(L.Fragment,{children:[t.getIsPlaceholder()?null!==(u=null===(l=U.PlaceholderCell)||void 0===l?void 0:l.call(U,{cell:t,column:F,row:B,table:a}))&&void 0!==u?u:null:M||D?(0,L.jsx)(vse,Object.assign({animation:"wave",height:20,width:W},G)):x&&"static"===S&&"mrt-row-numbers"===F.id?i+1:"mrt-row-drag"===F.id?(0,L.jsx)(hhe,{cell:t,rowRef:o,table:a}):"display"!==z||"mrt-row-select"!==F.id&&"mrt-row-expand"!==F.id&&B.getIsGrouped()?X?(0,L.jsx)(dhe,{cell:t,table:a}):(g||U.enableClickToCopy)&&!1!==U.enableClickToCopy?(0,L.jsx)(phe,{cell:t,table:a,children:(0,L.jsx)(mhe,{cell:t,table:a})}):(0,L.jsx)(mhe,{cell:t,table:a}):null===(d=U.Cell)||void 0===d?void 0:d.call(U,{cell:t,renderedCellValue:t.renderValue(),column:F,row:B,table:a}),t.getIsGrouped()&&!U.GroupedCell&&(0,L.jsxs)(L.Fragment,{children:[" (",null===(p=B.subRows)||void 0===p?void 0:p.length,")"]})]})}))},bhe=(0,c.memo)(ghe,((e,t)=>t.cell===e.cell)),vhe=e=>{let{parentRowRef:t,row:n,rowIndex:r,table:i,virtualRow:o}=e;const{getVisibleLeafColumns:a,getState:s,options:{layoutMode:l,muiTableBodyRowProps:c,muiTableDetailPanelProps:u,renderDetailPanel:d}}=i,{isLoading:p}=s(),h=c instanceof Function?c({isDetailPanel:!0,row:n,staticRowIndex:r,table:i}):c,f=u instanceof Function?u({row:n,table:i}):u;return(0,L.jsx)($ue,Object.assign({className:"Mui-TableBodyCell-DetailPanel"},h,{sx:e=>{var n,r;return Object.assign({display:"grid"===l?"flex":"table-row",position:o?"absolute":void 0,top:o?`${null===(r=null===(n=t.current)||void 0===n?void 0:n.getBoundingClientRect())||void 0===r?void 0:r.height}px`:void 0,transform:o?`translateY(${null===o||void 0===o?void 0:o.start}px)`:void 0,width:"100%",zIndex:o?2:void 0},(null===h||void 0===h?void 0:h.sx)instanceof Function?h.sx(e):null===h||void 0===h?void 0:h.sx)},children:(0,L.jsx)(Sce,Object.assign({className:"Mui-TableBodyCell-DetailPanel",colSpan:a().length},f,{sx:e=>Object.assign({backgroundColor:o?ase(e.palette.background.default,.06):void 0,borderBottom:n.getIsExpanded()?void 0:"none",display:"grid"===l?"flex":"table-cell",pb:n.getIsExpanded()?"1rem":0,pt:n.getIsExpanded()?"1rem":0,transition:"all 150ms ease-in-out",width:`${i.getTotalSize()}px`},(null===f||void 0===f?void 0:f.sx)instanceof Function?f.sx(e):null===f||void 0===f?void 0:f.sx),children:d&&(0,L.jsx)(ji,{in:n.getIsExpanded(),mountOnEnter:!0,unmountOnExit:!0,children:!p&&d({row:n,table:i})})}))}))},yhe=e=>{let{columnVirtualizer:t,measureElement:n,numRows:r,row:i,rowIndex:o,table:a,virtualColumns:s,virtualPaddingLeft:l,virtualPaddingRight:u,virtualRow:d}=e;const{getState:p,options:{enableRowOrdering:h,layoutMode:f,memoMode:m,muiTableBodyRowProps:g,renderDetailPanel:b},setHoveredRow:v}=a,{draggingColumn:y,draggingRow:x,editingCell:w,editingRow:A,hoveredRow:E}=p(),S=g instanceof Function?g({row:i,staticRowIndex:o,table:a}):g,_=(0,c.useRef)(null);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)($ue,Object.assign({"data-index":null===d||void 0===d?void 0:d.index,onDragEnter:e=>{h&&x&&v(i)},selected:i.getIsSelected(),ref:e=>{e&&(_.current=e,null===n||void 0===n||n(e))}},S,{sx:e=>Object.assign({backgroundColor:ase(e.palette.background.default,.06),boxSizing:"border-box",display:"grid"===f?"flex":"table-row",opacity:(null===x||void 0===x?void 0:x.id)===i.id||(null===E||void 0===E?void 0:E.id)===i.id?.5:1,position:d?"absolute":void 0,transition:d?"none":"all 150ms ease-in-out",top:d?0:void 0,width:"100%","&:hover td":{backgroundColor:!1!==(null===S||void 0===S?void 0:S.hover)?i.getIsSelected()?`${ise(e.palette.primary.main,.2)}`:"dark"===e.palette.mode?`${ase(e.palette.background.default,.12)}`:`${ose(e.palette.background.default,.05)}`:void 0}},(null===S||void 0===S?void 0:S.sx)instanceof Function?S.sx(e):null===S||void 0===S?void 0:S.sx),style:Object.assign({transform:d?`translateY(${null===d||void 0===d?void 0:d.start}px)`:void 0},null===S||void 0===S?void 0:S.style),children:[l?(0,L.jsx)("td",{style:{display:"flex",width:l}}):null,(null!==s&&void 0!==s?s:i.getVisibleCells()).map((e=>{const n=t?i.getVisibleCells()[e.index]:e,s={cell:n,measureElement:null===t||void 0===t?void 0:t.measureElement,numRows:r,rowIndex:o,rowRef:_,table:a,virtualCell:t?e:void 0};return n?"cells"!==m||"data"!==n.column.columnDef.columnDefType||y||x||(null===w||void 0===w?void 0:w.id)===n.id||(null===A||void 0===A?void 0:A.id)===i.id?(0,L.jsx)(ghe,Object.assign({},s),n.id):(0,L.jsx)(bhe,Object.assign({},s),n.id):null})),u?(0,L.jsx)("td",{style:{display:"flex",width:u}}):null]})),b&&!i.getIsGrouped()&&(0,L.jsx)(vhe,{parentRowRef:_,row:i,rowIndex:o,table:a,virtualRow:d})]})},xhe=(0,c.memo)(yhe,((e,t)=>
205e.row===t.row&&e.rowIndex===t.rowIndex)),whe=e=>{let{columnVirtualizer:t,table:n,virtualColumns:r,virtualPaddingLeft:i,virtualPaddingRight:o}=e;var a,s,l,u;const{getRowModel:d,getPrePaginationRowModel:p,getState:h,options:{enableGlobalFilterRankedResults:f,enablePagination:m,enableRowVirtualization:g,layoutMode:b,localization:v,manualExpanding:y,manualFiltering:x,manualGrouping:w,manualPagination:A,manualSorting:E,memoMode:S,muiTableBodyProps:_,renderEmptyRowsFallback:k,rowVirtualizerInstanceRef:T,rowVirtualizerProps:C,virtualizerInstanceRef:O,virtualizerProps:N},refs:{tableContainerRef:I,tablePaperRef:R}}=n,{columnFilters:P,density:j,expanded:M,globalFilter:D,globalFilterFn:F,pagination:B,sorting:U}=h(),z=_ instanceof Function?_({table:n}):_,H=N instanceof Function?N({table:n}):N,$=C instanceof Function?C({table:n}):C,V=(0,c.useMemo)((()=>!y&&!x&&!w&&!E&&f&&D&&"fuzzy"===F&&!0!==M&&!Object.values(U).some(Boolean)&&!Object.values(M).some(Boolean)),[f,M,D,y,x,w,E,U]),G=(0,c.useMemo)((()=>{if(!V)return d().rows;const e=p().rows.sort(((e,t)=>{return n=e,r=t,Math.max(...Object.values(r.columnFiltersMeta).map((e=>e.rank)))-Math.max(...Object.values(n.columnFiltersMeta).map((e=>e.rank)));var n,r}));if(m&&!A){const t=B.pageIndex*B.pageSize;return e.slice(t,t+B.pageSize)}return e}),[V,V?p().rows:d().rows,B.pageIndex,B.pageSize]),W=g?kue(Object.assign(Object.assign({count:G.length,estimateSize:()=>"compact"===j?37:"comfortable"===j?58:73,getScrollElement:()=>I.current,measureElement:"undefined"!==typeof window&&-1===navigator.userAgent.indexOf("Firefox")?e=>null===e||void 0===e?void 0:e.getBoundingClientRect().height:void 0,overscan:4},H),$)):void 0;T&&W&&(T.current=W),O&&W&&(O.current=W);const q=W?W.getVirtualItems():void 0;return(0,L.jsx)(rde,Object.assign({},z,{sx:e=>Object.assign({display:"grid"===b?"grid":"table-row-group",height:W?`${W.getTotalSize()}px`:"inherit",minHeight:G.length?void 0:"100px",position:"relative"},(null===z||void 0===z?void 0:z.sx)instanceof Function?null===z||void 0===z?void 0:z.sx(e):null===z||void 0===z?void 0:z.sx),children:null!==(a=null===z||void 0===z?void 0:z.children)&&void 0!==a?a:G.length?(0,L.jsx)(L.Fragment,{children:(null!==q&&void 0!==q?q:G).map(((e,a)=>{const s=W?G[e.index]:e,l={columnVirtualizer:t,measureElement:null===W||void 0===W?void 0:W.measureElement,numRows:G.length,row:s,rowIndex:W?e.index:a,table:n,virtualColumns:r,virtualPaddingLeft:i,virtualPaddingRight:o,virtualRow:W?e:void 0};return"rows"===S?(0,L.jsx)(xhe,Object.assign({},l),s.id):(0,L.jsx)(yhe,Object.assign({},l),s.id)}))}):(0,L.jsx)("tr",{style:{display:"grid"===b?"grid":"table-row"},children:(0,L.jsx)("td",{colSpan:n.getVisibleLeafColumns().length,style:{display:"grid"===b?"grid":"table-cell"},children:null!==(s=null===k||void 0===k?void 0:k({table:n}))&&void 0!==s?s:(0,L.jsx)(Te.A,{sx:{color:"text.secondary",fontStyle:"italic",maxWidth:`min(100vw, ${null!==(u=null===(l=R.current)||void 0===l?void 0:l.clientWidth)&&void 0!==u?u:360}px)`,py:"2rem",textAlign:"center",width:"100%"},children:D||P.length?v.noResultsFound:v.noRecordsToDisplay})})})}))},Ahe=(0,c.memo)(whe,((e,t)=>e.table.options.data===t.table.options.data)),Ehe=e=>{let{footer:t,table:n}=e;var r,i,o;const{getState:a,options:{layoutMode:s,muiTableFooterCellProps:l}}=n,{density:c}=a(),{column:u}=t,{columnDef:d}=u,{columnDefType:p}=d,h=l instanceof Function?l({column:u,table:n}):l,f=d.muiTableFooterCellProps instanceof Function?d.muiTableFooterCellProps({column:u,table:n}):d.muiTableFooterCellProps,m=Object.assign(Object.assign({},h),f);return(0,L.jsx)(Sce,Object.assign({align:"group"===p?"center":"left",colSpan:t.colSpan,variant:"head"},m,{sx:e=>Object.assign({display:"grid"===s?"grid":"table-cell",fontWeight:"bold",justifyContent:"group"===p?"center":void 0,p:"compact"===c?"0.5rem":"comfortable"===c?"1rem":"1.5rem",verticalAlign:"top",zIndex:u.getIsPinned()&&"group"!==p?2:1},fpe({column:u,table:n,theme:e,tableCellProps:m})),children:(0,L.jsx)(L.Fragment,{children:t.isPlaceholder?null:null!==(o=null!==(i=d.Footer instanceof Function?null===(r=d.Footer)||void 0===r?void 0:r.call(d,{column:u,footer:t,table:n}):d.Footer)&&void 0!==i?i:d.footer)&&void 0!==o?o:null})}))},She=e=>{let{footerGroup:t,table:n,virtualColumns:r,virtualPaddingLeft:i,virtualPaddingRight:o}=e;var a;const{options:{layoutMode:s,muiTableFooterRowProps:l}}=n;if(!(null===(a=t.headers)||void 0===a?void 0:a.some((e=>"string"===typeof e.column.columnDef.footer&&!!e.column.columnDef.footer||e.column.columnDef.Footer))))return null;const c=l instanceof Function?l({footerGroup:t,table:n}):l;return(0,L.jsxs)($ue,Object.assign({},c,{sx:e=>Object.assign({backgroundColor:ase(e.palette.background.default,.04),display:"grid"===s?"flex":"table-row",width:"100%"},(null===c||void 0===c?void 0:c.sx)instanceof Function?null===c||void 0===c?void 0:c.sx(e):null===c||void 0===c?void 0:c.sx),children:[i?(0,L.jsx)("th",{style:{display:"flex",width:i}}):null,(null!==r&&void 0!==r?r:t.headers).map((e=>{const i=r?t.headers[e.index]:e;return i?(0,L.jsx)(Ehe,{footer:i,table:n},i.id):null})),o?(0,L.jsx)("th",{style:{display:"flex",width:o}}):null]}))}
205,_he=e=>{let{table:t,virtualColumns:n,virtualPaddingLeft:r,virtualPaddingRight:i}=e;const{getFooterGroups:o,getState:a,options:{enableStickyFooter:s,layoutMode:l,muiTableFooterProps:c}}=t,{isFullScreen:u}=a(),d=c instanceof Function?c({table:t}):c,p=(u||s)&&!1!==s;return(0,L.jsx)(Tde,Object.assign({},d,{sx:e=>Object.assign({bottom:p?0:void 0,display:"grid"===l?"grid":"table-row-group",opacity:p?.97:void 0,outline:p?"light"===e.palette.mode?`1px solid ${e.palette.grey[300]}`:`1px solid ${e.palette.grey[700]}`:void 0,position:p?"sticky":void 0,zIndex:p?1:void 0},(null===d||void 0===d?void 0:d.sx)instanceof Function?null===d||void 0===d?void 0:d.sx(e):null===d||void 0===d?void 0:d.sx),children:o().map((e=>(0,L.jsx)(She,{footerGroup:e,table:t,virtualColumns:n,virtualPaddingLeft:r,virtualPaddingRight:i},e.id)))}))},khe=e=>{let{table:t}=e;var n,r,i,o;const{getFlatHeaders:a,getState:s,options:{columns:l,columnVirtualizerInstanceRef:u,columnVirtualizerProps:d,enableColumnResizing:p,enableColumnVirtualization:h,enablePinning:f,enableStickyHeader:m,enableTableFooter:g,enableTableHead:b,layoutMode:v,memoMode:y,muiTableProps:x},refs:{tableContainerRef:w}}=t,{columnPinning:A,columnSizing:E,columnSizingInfo:S,columnVisibility:_,isFullScreen:k}=s(),T=x instanceof Function?x({table:t}):x,C=d instanceof Function?d({table:t}):d,O=(0,c.useMemo)((()=>{const e=a(),t={};for(let n=0;n<e.length;n++){const r=e[n],i=r.getSize();t[`--header-${bpe(r.id)}-size`]=i,t[`--col-${bpe(r.column.id)}-size`]=i}return t}),[l,E,S,_]),N=(0,c.useMemo)((()=>{var e,n,r,i;if(!h)return 0;const o=null!==(i=null===(r=null===(n=null===(e=t.getRowModel().rows[0])||void 0===e?void 0:e.getCenterVisibleCells())||void 0===n?void 0:n.slice(0,16))||void 0===r?void 0:r.map((e=>1.2*e.column.getSize())))&&void 0!==i?i:[];return o.reduce(((e,t)=>e+t),0)/o.length}),[t.getRowModel().rows,A,_]),[I,R]=(0,c.useMemo)((()=>h&&f?[t.getLeftLeafColumns().map((e=>e.getPinnedIndex())),t.getRightLeafColumns().map((e=>t.getVisibleLeafColumns().length-e.getPinnedIndex()-1))]:[[],[]]),[A,h,f]),P=h?kue(Object.assign({count:t.getVisibleLeafColumns().length,estimateSize:()=>N,getScrollElement:()=>w.current,horizontal:!0,overscan:3,rangeExtractor:(0,c.useCallback)((e=>[...new Set([...I,...bue(e),...R])]),[I,R])},C)):void 0;u&&P&&(u.current=P);const j=P?P.getVirtualItems():void 0;let M,D;P&&(null===j||void 0===j?void 0:j.length)&&(M=null!==(r=null===(n=j[I.length])||void 0===n?void 0:n.start)&&void 0!==r?r:0,D=P.getTotalSize()-(null!==(o=null===(i=j[j.length-1-R.length])||void 0===i?void 0:i.end)&&void 0!==o?o:0));const F={table:t,virtualColumns:j,virtualPaddingLeft:M,virtualPaddingRight:D};return(0,L.jsxs)(Iue,Object.assign({stickyHeader:m||k},T,{sx:e=>Object.assign({borderCollapse:"separate",display:"grid"===v?"grid":"table",tableLayout:"grid"!==v&&p?"fixed":void 0},(null===T||void 0===T?void 0:T.sx)instanceof Function?T.sx(e):null===T||void 0===T?void 0:T.sx),style:Object.assign(Object.assign({},O),null===T||void 0===T?void 0:T.style),children:[b&&(0,L.jsx)(uhe,Object.assign({},F)),"table-body"===y||S.isResizingColumn?(0,L.jsx)(Ahe,Object.assign({columnVirtualizer:P},F)):(0,L.jsx)(whe,Object.assign({columnVirtualizer:P},F)),g&&(0,L.jsx)(_he,Object.assign({},F))]}))},The="undefined"!==typeof window?c.useLayoutEffect:c.useEffect,Che=e=>{let{table:t}=e;const{getState:n,options:{enableStickyHeader:r,muiTableContainerProps:i},refs:{tableContainerRef:o,bottomToolbarRef:a,topToolbarRef:s}}=t,{isFullScreen:l}=n(),[u,d]=(0,c.useState)(0),p=i instanceof Function?i({table:t}):i;return The((()=>{var e,t,n,r;const i="undefined"!==typeof document&&null!==(t=null===(e=s.current)||void 0===e?void 0:e.offsetHeight)&&void 0!==t?t:0,o="undefined"!==typeof document&&null!==(r=null===(n=null===a||void 0===a?void 0:a.current)||void 0===n?void 0:n.offsetHeight)&&void 0!==r?r:0;d(i+o)})),(0,L.jsx)(due,Object.assign({},p,{ref:e=>{e&&(o.current=e,(null===p||void 0===p?void 0:p.ref)&&(p.ref.current=e))},sx:e=>Object.assign({maxWidth:"100%",maxHeight:r?`clamp(350px, calc(100vh - ${u}px), 9999px)`:void 0,overflow:"auto"},(null===p||void 0===p?void 0:p.sx)instanceof Function?p.sx(e):null===p||void 0===p?void 0:p.sx),style:Object.assign({maxHeight:l?`calc(100vh - ${u}px)`:void 0},null===p||void 0===p?void 0:p.style),children:(0,L.jsx)(khe,{table:t})}))},Ohe=e=>{let{table:t}=e;const{getState:n,options:{enableBottomToolbar:r,enableTopToolbar:i,muiTablePaperProps:o,renderBottomToolbar:a,renderTopToolbar:s},refs:{tablePaperRef:l}}=t,{isFullScreen:c}=n(),u=o instanceof Function?o({table:t}):o;return(0,L.jsxs)(fe.A,Object.assign({elevation:2},u,{ref:e=>{l.current=e,(null===u||void 0===u?void 0:u.ref)&&(u.ref.current=e)},sx:e=>Object.assign({transition:"all 150ms ease-in-out"},(null===u||void 0===u?void 0:u.sx)instanceof Function?null===u||void 0===u?void 0:u.sx(e):null===u||void 0===u?void 0:u.sx),style:Object.assign(Object.assign({},null===u||void 0===u?void 0:u.style),c?{height:"100vh",margin:0,maxHeight:"100vh",maxWidth:"100vw",padding:0,width:"100vw"}:{}),children:[i&&(s instanceof Function?s({table:t}):null!==s&&void 0!==s?s:(0,L.jsx)(Xpe,{table:t})),(0,L.jsx)(Che,{table:t}),r&&(a instanceof Function?a({table:t}):null!==a&&void 0!==a?a:(0,L.jsx)(Zpe,{table:t}))]}))},Nhe=e=>{let{open:t,row:n,table:r}=e;const{options:{localization:i}}=r;return(0,L.jsxs)(mce,{open:t,children:[(0,L.jsx)(Ude,{textAlign:"center",children:i.edit}),(0,L.jsx)(Lde,{children:(0,L.jsx)("form",{onSubmit:e=>
205e.preventDefault(),children:(0,L.jsx)(po.A,{sx:{gap:"1.5rem",minWidth:{xs:"300px",sm:"360px",md:"400px"},pt:"1rem",width:"100%"},children:n.getAllCells().filter((e=>"data"===e.column.columnDef.columnDefType)).map((e=>(0,L.jsx)(dhe,{cell:e,showLabel:!0,table:r},e.id)))})})}),(0,L.jsx)(Ide,{sx:{p:"1.25rem"},children:(0,L.jsx)(Npe,{row:n,table:r,variant:"text"})})]})},Ihe=e=>{var t,n,r,i,o,a,s,l,u,d,p,h,f,m,g,b,v,y,x,w,A,E,S,_,k,T,C,O,N,I,R,P,j,M,D,F,B,U;const z=(0,c.useRef)(null),H=(0,c.useRef)({}),$=(0,c.useRef)({}),V=(0,c.useRef)(null),G=(0,c.useRef)(null),W=(0,c.useRef)({}),q=(0,c.useRef)(null),Y=(0,c.useRef)(null),K=(0,c.useMemo)((()=>{var t,n,r;const i=null!==(t=e.initialState)&&void 0!==t?t:{};return i.columnOrder=null!==(n=i.columnOrder)&&void 0!==n?n:upe(e),i.globalFilterFn=null!==(r=e.globalFilterFn)&&void 0!==r?r:"fuzzy",i}),[]),[X,Z]=(0,c.useState)((()=>Object.assign({},...ape(e.columns).map((e=>{var t,n,r,i,o;return{[ope(e)]:e.filterFn instanceof Function?null!==(t=e.filterFn.name)&&void 0!==t?t:"custom":null!==(i=null!==(n=e.filterFn)&&void 0!==n?n:null===(r=null===K||void 0===K?void 0:K.columnFilterFns)||void 0===r?void 0:r[ope(e)])&&void 0!==i?i:(o=e,"multi-select"===o.filterVariant?"arrIncludesSome":"range"===o.filterVariant||"range-slider"===o.filterVariant?"betweenInclusive":"select"===o.filterVariant||"checkbox"===o.filterVariant?"equals":"fuzzy")}}))))),[Q,J]=(0,c.useState)(null!==(t=K.columnOrder)&&void 0!==t?t:[]),[ee,te]=(0,c.useState)(null!==(n=null===K||void 0===K?void 0:K.density)&&void 0!==n?n:"comfortable"),[ne,re]=(0,c.useState)(null!==(r=K.draggingColumn)&&void 0!==r?r:null),[ie,oe]=(0,c.useState)(null!==(i=K.draggingRow)&&void 0!==i?i:null),[ae,se]=(0,c.useState)(null!==(o=K.editingCell)&&void 0!==o?o:null),[le,ce]=(0,c.useState)(null!==(a=K.editingRow)&&void 0!==a?a:null),[de,pe]=(0,c.useState)(null!==(s=K.globalFilterFn)&&void 0!==s?s:"fuzzy"),[he,fe]=(0,c.useState)(null!==(l=K.grouping)&&void 0!==l?l:[]),[me,ge]=(0,c.useState)(null!==(u=K.hoveredColumn)&&void 0!==u?u:null),[be,ve]=(0,c.useState)(null!==(d=K.hoveredRow)&&void 0!==d?d:null),[ye,xe]=(0,c.useState)(null!==(p=null===K||void 0===K?void 0:K.isFullScreen)&&void 0!==p&&p),[we,Ae]=(0,c.useState)(null!==(f=null===(h=e.initialState)||void 0===h?void 0:h.showAlertBanner)&&void 0!==f&&f),[Ee,Se]=(0,c.useState)(null!==(m=null===K||void 0===K?void 0:K.showColumnFilters)&&void 0!==m&&m),[_e,ke]=(0,c.useState)(null!==(g=null===K||void 0===K?void 0:K.showGlobalFilter)&&void 0!==g&&g),[Te,Ce]=(0,c.useState)(null!==(b=null===K||void 0===K?void 0:K.showToolbarDropZone)&&void 0!==b&&b),Oe=(0,c.useMemo)((()=>{var t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,b;return[(null!==(n=null===(t=e.state)||void 0===t?void 0:t.columnOrder)&&void 0!==n?n:Q).includes("mrt-row-drag")&&Object.assign(Object.assign(Object.assign({header:e.localization.move,size:60},e.defaultDisplayColumn),null===(r=e.displayColumnDefOptions)||void 0===r?void 0:r["mrt-row-drag"]),{id:"mrt-row-drag"}),(null!==(o=null===(i=e.state)||void 0===i?void 0:i.columnOrder)&&void 0!==o?o:Q).includes("mrt-row-actions")&&Object.assign(Object.assign(Object.assign({Cell:e=>{let{cell:t,row:n}=e;return(0,L.jsx)(Rpe,{cell:t,row:n,table:Re})},header:e.localization.actions,size:70},e.defaultDisplayColumn),null===(a=e.displayColumnDefOptions)||void 0===a?void 0:a["mrt-row-actions"]),{id:"mrt-row-actions"}),(null!==(l=null===(s=e.state)||void 0===s?void 0:s.columnOrder)&&void 0!==l?l:Q).includes("mrt-row-expand")&&cpe(e,null!==(u=null===(c=e.state)||void 0===c?void 0:c.grouping)&&void 0!==u?u:he)&&Object.assign(Object.assign(Object.assign({Cell:e=>{let{row:t}=e;return(0,L.jsx)(wpe,{row:t,table:Re})},Header:e.enableExpandAll?()=>(0,L.jsx)(xpe,{table:Re}):null,header:e.localization.expand,size:60},e.defaultDisplayColumn),null===(d=e.displayColumnDefOptions)||void 0===d?void 0:d["mrt-row-expand"]),{id:"mrt-row-expand"}),(null!==(h=null===(p=e.state)||void 0===p?void 0:p.columnOrder)&&void 0!==h?h:Q).includes("mrt-row-select")&&Object.assign(Object.assign(Object.assign({Cell:e=>{let{row:t}=e;return(0,L.jsx)(Ppe,{row:t,table:Re})},Header:e.enableSelectAll&&e.enableMultiRowSelection?()=>(0,L.jsx)(Ppe,{selectAll:!0,table:Re}):null,header:e.localization.select,size:60},e.defaultDisplayColumn),null===(f=e.displayColumnDefOptions)||void 0===f?void 0:f["mrt-row-select"]),{id:"mrt-row-select"}),(null!==(g=null===(m=e.state)||void 0===m?void 0:m.columnOrder)&&void 0!==g?g:Q).includes("mrt-row-numbers")&&Object.assign(Object.assign(Object.assign({Cell:e=>{let{row:t}=e;return t.index+1},Header:()=>e.localization.rowNumber,header:e.localization.rowNumbers,size:60},e.defaultDisplayColumn),null===(b=e.displayColumnDefOptions)||void 0===b?void 0:b["mrt-row-numbers"]),{id:"mrt-row-numbers"}
205)].filter(Boolean)}),[Q,he,e.displayColumnDefOptions,e.editingMode,e.enableColumnDragging,e.enableColumnFilterModes,e.enableColumnOrdering,e.enableEditing,e.enableExpandAll,e.enableExpanding,e.enableGrouping,e.enableRowActions,e.enableRowDragging,e.enableRowNumbers,e.enableRowOrdering,e.enableRowSelection,e.enableSelectAll,e.localization,e.positionActionsColumn,e.renderDetailPanel,e.renderRowActionMenuItems,e.renderRowActions,null===(v=e.state)||void 0===v?void 0:v.columnOrder,null===(y=e.state)||void 0===y?void 0:y.grouping]),Ne=(0,c.useMemo)((()=>{var t,n,r;return spe({aggregationFns:e.aggregationFns,columnDefs:[...Oe,...e.columns],columnFilterFns:null!==(n=null===(t=e.state)||void 0===t?void 0:t.columnFilterFns)&&void 0!==n?n:X,defaultDisplayColumn:null!==(r=e.defaultDisplayColumn)&&void 0!==r?r:{},filterFns:e.filterFns,sortingFns:e.sortingFns})}),[X,Oe,e.columns,null===(x=e.state)||void 0===x?void 0:x.columnFilterFns]),Ie=(0,c.useMemo)((()=>{var t,n,r,i,o;return!(null===(t=e.state)||void 0===t?void 0:t.isLoading)&&!(null===(n=e.state)||void 0===n?void 0:n.showSkeletons)||e.data.length?e.data:[...Array((null===(i=null===(r=e.state)||void 0===r?void 0:r.pagination)||void 0===i?void 0:i.pageSize)||(null===(o=null===K||void 0===K?void 0:K.pagination)||void 0===o?void 0:o.pageSize)||10).fill(null)].map((()=>Object.assign({},...ape(e.columns).map((e=>({[ope(e)]:null}))))))}),[e.data,null===(w=e.state)||void 0===w?void 0:w.isLoading,null===(A=e.state)||void 0===A?void 0:A.showSkeletons]),Re=Object.assign(Object.assign({},function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=c.useState((()=>({current:ule(t)}))),[r,i]=c.useState((()=>n.current.initialState));return n.current.setOptions((t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{i(t),null==e.onStateChange||e.onStateChange(t)}}))),n.current}(Object.assign(Object.assign({getCoreRowModel:e=>Ise((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(t,i,o){void 0===i&&(i=0);const a=[];for(let l=0;l<t.length;l++){const c=dle(e,e._getRowId(t[l],l,o),t[l],l,i,void 0,null==o?void 0:o.id);var s;n.flatRows.push(c),n.rowsById[c.id]=c,a.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(t[l],l),null!=(s=c.originalSubRows)&&s.length&&(c.subRows=r(c.originalSubRows,i+1,c)))}return a};return n.rows=r(t),n}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getExpandedRowModel:e.enableExpanding||e.enableGrouping?e=>Ise((()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows]),((e,t,n)=>!t.rows.length||!0!==e&&!Object.keys(null!=e?e:{}).length?t:n?fle(t):t),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}):void 0,getFacetedMinMaxValues:e.enableFacetedValues?(e,t)=>Ise((()=>{var n;return[null==(n=e.getColumn(t))?void 0:n.getFacetedRowModel()]}),(e=>{var n;if(!e)return;const r=null==(n=e.flatRows[0])?void 0:n.getUniqueValues(t);if("undefined"===typeof r)return;let i=[r,r];for(let o=0;o<e.flatRows.length;o++){const n=e.flatRows[o].getUniqueValues(t);for(let e=0;e<n.length;e++){const t=n[e];t<i[0]?i[0]=t:t>i[1]&&(i[1]=t)}}return i}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{}}):void 0,getFacetedRowModel:e.enableFacetedValues?(e,t)=>Ise((()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter,e.getFilteredRowModel()]),((n,r,i)=>{if(!n.rows.length||(null==r||!r.length)&&!i)return n;const o=[...r.map((e=>e.id)).filter((e=>e!==t)),i?"__global__":void 0].filter(Boolean);return ple(n.rows,(e=>{for(let t=0;t<o.length;t++)if(!1===e.columnFilters[o[t]])return!1;return!0}),e)}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{}}):void 0,getFacetedUniqueValues:e.enableFacetedValues?(e,t)=>Ise((()=>{var n;return[null==(n=e.getColumn(t))?void 0:n.getFacetedRowModel()]}),(e=>{if(!e)return new Map;let n=new Map;for(let i=0;i<e.flatRows.length;i++){const o=e.flatRows[i].getUniqueValues(t);for(let e=0;e<o.length;e++){const t=o[e];var r;n.has(t)?n.set(t,(null!=(r=n.get(t))?r:0)+1):n.set(t,1)}}return n}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{}}):void 0,getFilteredRowModel:e.enableColumnFilters||e.enableGlobalFilter||e.enableFilters?e=>
205Ise((()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter]),((t,n,r)=>{if(!t.rows.length||(null==n||!n.length)&&!r){for(let e=0;e<t.flatRows.length;e++)t.flatRows[e].columnFilters={},t.flatRows[e].columnFiltersMeta={};return t}const i=[],o=[];(null!=n?n:[]).forEach((t=>{var n;const r=e.getColumn(t.id);if(!r)return;const o=r.getFilterFn();o&&i.push({id:t.id,filterFn:o,resolvedValue:null!=(n=null==o.resolveFilterValue?void 0:o.resolveFilterValue(t.value))?n:t.value})}));const a=n.map((e=>e.id)),s=e.getGlobalFilterFn(),l=e.getAllLeafColumns().filter((e=>e.getCanGlobalFilter()));let c,u;r&&s&&l.length&&(a.push("__global__"),l.forEach((e=>{var t;o.push({id:e.id,filterFn:s,resolvedValue:null!=(t=null==s.resolveFilterValue?void 0:s.resolveFilterValue(r))?t:r})})));for(let e=0;e<t.flatRows.length;e++){const n=t.flatRows[e];if(n.columnFilters={},i.length)for(let e=0;e<i.length;e++){c=i[e];const t=c.id;n.columnFilters[t]=c.filterFn(n,t,c.resolvedValue,(e=>{n.columnFiltersMeta[t]=e}))}if(o.length){for(let e=0;e<o.length;e++){u=o[e];const t=u.id;if(u.filterFn(n,t,u.resolvedValue,(e=>{n.columnFiltersMeta[t]=e}))){n.columnFilters.__global__=!0;break}}!0!==n.columnFilters.__global__&&(n.columnFilters.__global__=!1)}}return ple(t.rows,(e=>{for(let t=0;t<a.length;t++)if(!1===e.columnFilters[a[t]])return!1;return!0}),e)}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}):void 0,getGroupedRowModel:e.enableGrouping?hle():void 0,getPaginationRowModel:e.enablePagination?e=>Ise((()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded]),((t,n)=>{if(!n.rows.length)return n;const{pageSize:r,pageIndex:i}=t;let{rows:o,flatRows:a,rowsById:s}=n;const l=r*i,c=l+r;let u;o=o.slice(l,c),u=e.options.paginateExpandedRows?{rows:o,flatRows:a,rowsById:s}:fle({rows:o,flatRows:a,rowsById:s}),u.flatRows=[];const d=e=>{u.flatRows.push(e),e.subRows.length&&e.subRows.forEach(d)};return u.rows.forEach(d),u}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}):void 0,getSortedRowModel:e.enableSorting?e=>Ise((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,n)=>{if(!n.rows.length||null==t||!t.length)return n;const r=e.getState().sorting,i=[],o=r.filter((t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()})),a={};o.forEach((t=>{const n=e.getColumn(t.id);n&&(a[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})}));const s=e=>{const t=e.map((e=>({...e})));return t.sort(((e,t)=>{for(let r=0;r<o.length;r+=1){var n;const i=o[r],s=a[i.id],l=null!=(n=null==i?void 0:i.desc)&&n;let c=0;if(s.sortUndefined){const n=void 0===e.getValue(i.id),r=void 0===t.getValue(i.id);(n||r)&&(c=n&&r?0:n?s.sortUndefined:-s.sortUndefined)}if(0===c&&(c=s.sortingFn(e,t,i.id)),0!==c)return l&&(c*=-1),s.invertSorting&&(c*=-1),c}return e.index-t.index})),t.forEach((e=>{var t;i.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=s(e.subRows))})),t};return{rows:s(n.rows),flatRows:i,rowsById:n.rowsById}}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}):void 0,onColumnOrderChange:J,onGroupingChange:fe,getSubRows:e=>null===e||void 0===e?void 0:e.subRows},e),{columns:Ne,data:Ie,globalFilterFn:null!==(S=null===(E=e.filterFns)||void 0===E?void 0:E[de])&&void 0!==S?S:null===(_=e.filterFns)||void 0===_?void 0:_.fuzzy,initialState:K,state:Object.assign({columnFilterFns:X,columnOrder:Q,density:ee,draggingColumn:ne,draggingRow:ie,editingCell:ae,editingRow:le,globalFilterFn:de,grouping:he,hoveredColumn:me,hoveredRow:be,isFullScreen:ye,showAlertBanner:we,showColumnFilters:Ee,showGlobalFilter:_e,showToolbarDropZone:Te},e.state)}))),{refs:{bottomToolbarRef:z,editInputRefs:H,filterInputRefs:$,searchInputRef:V,tableContainerRef:G,tableHeadCellRefs:W,tablePaperRef:q,topToolbarRef:Y},setColumnFilterFns:null!==(k=e.onColumnFilterFnsChange)&&void 0!==k?k:Z,setDensity:null!==(T=e.onDensityChange)&&void 0!==T?T:te,setDraggingColumn:null!==(C=e.onDraggingColumnChange)&&void 0!==C?C:re,setDraggingRow:null!==(O=e.onDraggingRowChange)&&void 0!==O?O:oe,setEditingCell:null!==(N=e.onEditingCellChange)&&void 0!==N?N:se,setEditingRow:null!==(I=e.onEditingRowChange)&&void 0!==I?I:ce,setGlobalFilterFn:null!==(R=e.onGlobalFilterFnChange)&&void 0!==R?R:pe,setHoveredColumn:null!==(P=e.onHoveredColumnChange)&&void 0!==P?P:ge,setHoveredRow:null!==(j=e.onHoveredRowChange)&&void 0!==j?j:ve,setIsFullScreen:null!==(M=e.onIsFullScreenChange)&&void 0!==M?M:xe,setShowAlertBanner:null!==(D=e.onShowAlertBannerChange)&&void 0!==D?D:Ae,setShowColumnFilters:null!==(F=e.onShowColumnFiltersChange)&&void 0!==F?F:Se,setShowGlobalFilter:null!==(B=e.onShowGlobalFilterChange)&&void 0!==B?B:ke,setShowToolbarDropZone:null!==(U=e.onShowToolbarDropZoneChange)&&void 0!==U?U:Ce});
205e.tableFeatures&&e.tableFeatures.forEach((e=>{Object.assign(Re,e(Re))})),e.tableInstanceRef&&(e.tableInstanceRef.current=Re);const Pe=(0,c.useRef)();return(0,c.useEffect)((()=>{"undefined"!==typeof window&&(Pe.current=document.body.style.height)}),[]),(0,c.useEffect)((()=>{"undefined"!==typeof window&&(Re.getState().isFullScreen?document.body.style.height="100vh":document.body.style.height=Pe.current)}),[Re.getState().isFullScreen]),(0,c.useEffect)((()=>{var t;const{pageIndex:n,pageSize:r}=Re.getState().pagination,i=null!==(t=e.rowCount)&&void 0!==t?t:Re.getPrePaginationRowModel().rows.length;n*r>i&&Re.setPageIndex(Math.floor(i/r))}),[e.rowCount,Re.getPrePaginationRowModel().rows.length]),(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(mce,{PaperComponent:ue.A,TransitionComponent:e.enableRowVirtualization?void 0:Cn.A,disablePortal:!0,fullScreen:!0,keepMounted:!1,onClose:()=>Re.setIsFullScreen(!1),open:Re.getState().isFullScreen,transitionDuration:400,children:(0,L.jsx)(Ohe,{table:Re})}),!Re.getState().isFullScreen&&(0,L.jsx)(Ohe,{table:Re}),le&&"modal"===e.editingMode&&(0,L.jsx)(Nhe,{row:le,table:Re,open:!0})]})},Rhe=e=>{var t,{aggregationFns:n,autoResetExpanded:r=!1,columnResizeMode:i="onChange",defaultColumn:o,defaultDisplayColumn:a,editingMode:s="modal",enableBottomToolbar:l=!0,enableColumnActions:u=!0,enableColumnFilters:d=!0,enableColumnOrdering:p=!1,enableColumnResizing:h=!1,enableDensityToggle:f=!0,enableExpandAll:m=!0,enableExpanding:g,enableFilterMatchHighlighting:b=!0,enableFilters:v=!0,enableFullScreenToggle:y=!0,enableGlobalFilter:x=!0,enableGlobalFilterRankedResults:w=!0,enableGrouping:A=!1,enableHiding:E=!0,enableMultiRowSelection:S=!0,enableMultiSort:_=!0,enablePagination:k=!0,enablePinning:T=!1,enableRowSelection:C=!1,enableSelectAll:O=!0,enableSorting:N=!0,enableStickyHeader:I=!1,enableTableFooter:R=!0,enableTableHead:P=!0,enableToolbarInternalActions:j=!0,enableTopToolbar:M=!0,filterFns:D,icons:F,layoutMode:B="semantic",localization:U,manualFiltering:z,manualGrouping:H,manualPagination:$,manualSorting:V,positionActionsColumn:G="first",positionExpandColumn:W="first",positionGlobalFilter:q="right",positionPagination:Y="bottom",positionToolbarAlertBanner:K="top",positionToolbarDropZone:X="top",rowNumberMode:Z="original",selectAllMode:Q="page",sortingFns:J}=e,ee=zde(e,["aggregationFns","autoResetExpanded","columnResizeMode","defaultColumn","defaultDisplayColumn","editingMode","enableBottomToolbar","enableColumnActions","enableColumnFilters","enableColumnOrdering","enableColumnResizing","enableDensityToggle","enableExpandAll","enableExpanding","enableFilterMatchHighlighting","enableFilters","enableFullScreenToggle","enableGlobalFilter","enableGlobalFilterRankedResults","enableGrouping","enableHiding","enableMultiRowSelection","enableMultiSort","enablePagination","enablePinning","enableRowSelection","enableSelectAll","enableSorting","enableStickyHeader","enableTableFooter","enableTableHead","enableToolbarInternalActions","enableTopToolbar","filterFns","icons","layoutMode","localization","manualFiltering","manualGrouping","manualPagination","manualSorting","positionActionsColumn","positionExpandColumn","positionGlobalFilter","positionPagination","positionToolbarAlertBanner","positionToolbarDropZone","rowNumberMode","selectAllMode","sortingFns"]);const te=(0,c.useMemo)((()=>Object.assign(Object.assign({},vpe),F)),[F]),ne=(0,c.useMemo)((()=>Object.assign(Object.assign({},ype),U)),[U]),re=(0,c.useMemo)((()=>Object.assign(Object.assign({},Hde),n)),[]),ie=(0,c.useMemo)((()=>Object.assign(Object.assign({},rpe),D)),[]),oe=(0,c.useMemo)((()=>Object.assign(Object.assign({},ipe),J)),[]),ae=(0,c.useMemo)((()=>Object.assign(Object.assign({},mpe),o)),[o]),se=(0,c.useMemo)((()=>Object.assign(Object.assign({},gpe),a)),[a]);return(ee.enableRowVirtualization||ee.enableColumnVirtualization)&&(B="grid"),ee.enableRowVirtualization&&(I=!0),!1===k&&void 0===$&&($=!0),(null===(t=ee.data)||void 0===t?void 0:t.length)||(z=!0,H=!0,$=!0,V=!0),(0,L.jsx)(Ihe,Object.assign({aggregationFns:re,autoResetExpanded:r,columnResizeMode:i,defaultColumn:ae,defaultDisplayColumn:se,editingMode:s,enableBottomToolbar:l,enableColumnActions:u,enableColumnFilters:d,enableColumnOrdering:p,enableColumnResizing:h,enableDensityToggle:f,enableExpandAll:m,enableExpanding:g,enableFilterMatchHighlighting:b,enableFilters:v,enableFullScreenToggle:y,enableGlobalFilter:x,enableGlobalFilterRankedResults:w,enableGrouping:A,enableHiding:E,enableMultiRowSelection:S,enableMultiSort:_,enablePagination:k,enablePinning:T,enableRowSelection:C,enableSelectAll:O,enableSorting:N,enableStickyHeader:I,enableTableFooter:R,enableTableHead:P,enableToolbarInternalActions:j,enableTopToolbar:M,filterFns:ie,icons:te,layoutMode:B,localization:ne,manualFiltering:z,manualGrouping:H,manualPagination:$,manualSorting:V,positionActionsColumn:G,positionExpandColumn:W,positionGlobalFilter:q,positionPagination:Y,positionToolbarAlertBanner:K,positionToolbarDropZone:X,rowNumberMode:Z,selectAllMode:Q,sortingFns:oe},ee))};var Phe=__webpack_require__(77139),jhe=__webpack_require__(68476),Mhe=(0,Ve.A)((0,L.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}
205),"Edit"),Dhe=__webpack_require__(49715),Lhe=(0,Ve.A)((0,L.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");const Fhe=(0,Ns.A)("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]),Bhe=(0,Ns.A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]),Uhe=(0,Ns.A)("Earth",[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),zhe=(0,Ns.A)("MessagesSquare",[["path",{d:"M14 9a2 2 0 0 1-2 2H6l-4 4V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2z",key:"p1xzt8"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1",key:"1cx29u"}]]),Hhe=(0,Ns.A)("Mic",[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]),$he=(0,Ns.A)("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]),Vhe=(0,Ns.A)("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]),Ghe=(0,Ns.A)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);var Whe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFWUlEQVR4nO2d328UVRTH75OJ/geEds6922I797bEbimrhGJJV1tCItX+gIo0kbTRhhp/1AdtE8HtgyU8mEiNPGviD9L4jj7qA2jUJxIh+iCJPGAKLitEfRlzdndqC1tmbtN27pw9n+Qk7WZo5tzv3ntnPptZhGAYhmEYhmEYhmEYhmEYhqGO1vohUPo0KHMdlAki6ndQZh7/TdLnTRZQZj5GEKvKk+a9pM+bLFB51wdek9kTdWxjRu8NZ8rWnF0dAtV3/WYdz3AgbgBgfJD6k5ibc7DFdR2U/higrVXUAwD+AVD6jgMDHzy49B0pTZ+gzPbm9gZP6VvY8Gu5fHB5cDwoHp1yqi4Pjgev5vKVKzSlb+E5C6qAMuex0eO7nkx84IsRhedYnS3nBUW8jN+LDbY0tQc/D7k3M4r31NXhicBv2lkJBXS/SCtNTaYRpF70pLlda21+v+eZxAe7GLPwXNe42bztKf2llO0twvkwlFm6r4HEN2izqrr9ruVBx59Xvhb+HvP8l5zeY3Bm4Im+0LGvPOWTfocXN3E5O5rd5/4eEy5TlMMorgilunwVhavUZyD6T+EquNHhSeJ0phzK1eGJ4Plsd2XJknpRuApeddTa1AnX0vaMv0O4DF514EaHa6sDAxZsRpV7k3rR+TBq4Ul9rbyvTJ8JSu+cS2VdmT4TBvGbSDueMj9iM5dOFBIf2NI66+LUXDg7fhBpB6T5Gpu5MDGb+MCW1lkXxmfCDfwrkXY8pT/DZr4YeyPxgS2tsz4fez1csj4VaQekOYvNnBuZjGz85uxC8G7+uWBXSzboas0Ghfxg+bWkjg/ro5HJcMn6QKQdUOYUNnN64Hhk44X84LJ2CfVEoXcosePDmj/0YngTeFKkHU/qV7CZt/tHIxvvas2uuqHEn/G1pI4P663+0UogSk+JtAMZPYrNvLx/ILJxUOa+u2J8Lanjw3pp/0BlyQJzRKSdRtX2FDZzZM+BxAPpXqHdbQI5/ER/dYb4eZF2PK81i830d/YkHkixhpeKE0hfZ091hvgdIu1kMtrDZnIml9pAciZXPg4/gBNpZ9u2zkewmZbmnaldslqaK5+tNzQ8/rCgACh9Fxu6MbOQuk39xszZ6j2IviuoEFcwgoMzhJRYtBWM4OAeQkos2gpGcDAQUmLRVjCCg0sWKbFoKxjBwU2dlFi0FYzgYCCkxKKtYAQHAyElFm0FIzgYCCmxaCsYwcFASIlFW8EIDgZCSizaCkZwMBBSYtFWMIKDgZATizaCERwLhKRYtBGM4FggJMViiKfMT1GCERwLJBSLKEcFNeIIRnAsEJJi0UYwgmOBkBSLNoIRHAuEpFi0EYzgWCAkxaKNYIQNGGD8zGOj/j5JsWgjGGEDAsHaqL9PUizaCEZwLBCSYtFGMIJjgZAUizaCERwLhKRYtBGM4FggZMViXMEIDl1lkRaLcQUjOHQfQlos3isYv5uacz6QSycKdMViXMEIDgVCWizGFYxdNZ4B3G35zOBGHU9aLMYVjIXeoeVvEgq/cWcu/4CnajfxeNJiMa5gvDm7UB40fCfjOxcHK+q58806nrRYXM8j0qWEi7RYDPGUHsYmx7oPJj7gpYg6tvdgGMiwoAp+nzo2qR/tCP6Y/TDxQS+tUXjj6u94rBxIKr8TywaQ+nts9M2+w4kPfGmNmn56JLwHuSiog/8ZiyfNP+HS9e3kqciHQUtbNCu+mTz5/1Ilzd9K6d2iHgBoexak/qt6WeleSVOS0j8k6gkpfQBpFkDpXz2p/006BA/PQepf8L4DPypIenwYhmEYhmEYhmEYhmEYhmEYhmEYRmwF/wHBGZeWya7mywAAAABJRU5ErkJggg==";var qhe=function(e){let{close:t}=e;const{knowldegeHubsNames:n,getKb:r,activeTeam:i,handleGetKbNames:o,activeRole:a,getCachedUserInfo:s}=ma(),[l,u]=(0,c.useState)(!1),[d,p]=(0,c.useState)([]),[h,f]=(0,c.useState)(null),[m,g]=(0,c.useState)(""),[b,v]=(0,c.useState)(!1),[y,x]=(0,c.useState)(),[w,A]=(0,c.useState)(),[E,S]=(0,c.useState)(),[_,k]=(0,c.useState)([]),[T,C]=(0,c.useState)(""),[O,N]=(0,c.useState)(!1),[I,R]=(0,c.useState)(""),P=(0,te.Zp)(),[j,M]=(0,c.useState)([]),[D,F]=(0,c.useState)("");(0,c.useEffect)((()=>{const e=localStorage.getItem("uid");x(e),s(e).then((e=>{S(e.uname),localStorage.setItem("email",e.email)}))}),[]),(0,c.useEffect)((()=>{(async()=>{var e;const t=null===(e=a.split(","))||void 0===e?void 0:e.some((e=>"Admin"===e||"Create Knowledge Base"===e));N(t)})()}
205),[a]);const B=async e=>{if(e.length>0){if(d.length+e.length>3)return aa.oR.error("You can select a maximum of 3 files",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});p([...d,...e])}},U=async e=>new Promise(((t,n)=>{const r=new FileReader;r.onload=e=>{const r=new Uint8Array(e.target.result);window.pdfjsLib.getDocument({data:r}).promise.then((e=>{t(e.numPages)})).catch(n)},r.onerror=n,r.readAsArrayBuffer(e)}));return(0,L.jsxs)(uw,{sx:{mt:-5},children:[(0,L.jsxs)("div",{className:"flex justify-between w-full items-center",children:[(0,L.jsx)(Te.A,{variant:"h3",children:"Upload files to your Knowledge Hub"}),(0,L.jsx)(Pa.A,{onClick:()=>t(!1),children:(0,L.jsx)(Dw,{})})]}),(0,L.jsx)(uw,{justifyContent:"center",sx:{mt:2},alignItems:"center",children:(0,L.jsx)(uw,{sx:{width:"100%"},children:(0,L.jsxs)(Co.A,{children:[(0,L.jsx)("div",{className:"max-w-xl flex flex-col justify-center w-full h-40 px-4 transition bg-white border-2 border-dashed rounded-md appearance-none cursor-pointer hover:border-gray-400 focus:outline-none "+(l?"border-blue-600":"border-gray-300"),onDragEnter:e=>{e.preventDefault(),u(!0)},onDragLeave:e=>{e.preventDefault(),u(!1)},onDragOver:e=>{e.preventDefault()},onDrop:e=>{e.preventDefault(),u(!1),B(e.dataTransfer.files)},children:(0,L.jsxs)("label",{htmlFor:"file_input",className:"flex flex-col items-center space-x-2",children:[(0,L.jsxs)("span",{className:"flex flex-col items-center space-x-2",children:[(0,L.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-6 h-6 text-gray-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2",children:(0,L.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"})}),(0,L.jsxs)("span",{className:"font-medium text-gray-600",children:[d.length>0?`Drop files to Attach (${d.length} selected)`:l?"Drop files to Attach":"Drag files here, or ","\xa0",(0,L.jsx)("span",{className:"text-blue-600 underline",children:"browse"})]}),(0,L.jsx)("span",{className:"text-xs text-gray-500",children:"Supported formats: PDF, DOC, DOCX, TXT (Max 5MB or 50 pages)"})]}),(0,L.jsx)("input",{type:"file",name:"file_upload",className:"hidden",id:"file_input",disabled:b,multiple:!0,accept:".jpg,.png,.jpeg,.webp,.pdf,.docx,.txt,.xls,.xlsx,.csv",onChange:e=>B(e.target.files),onDrop:e=>{e.preventDefault(),u(!1),B(e.dataTransfer.files)}})]})}),(0,L.jsx)("div",{children:d.length>0&&(0,L.jsxs)("div",{className:"mt-5",children:[(0,L.jsx)("span",{className:"font-bold",children:"Selected Files:"}),(0,L.jsx)("ul",{children:d.map(((e,t)=>(0,L.jsxs)("li",{className:"flex justify-between items-center",children:[e.name,(0,L.jsx)("button",{onClick:()=>(async e=>{const t=d.filter((t=>t!==e));if(p(t),0===t.length)return f(null)})(e),children:(0,L.jsx)("img",{src:Whe,className:"w-5"})})]},t)))})]})}),(0,L.jsxs)("div",{className:"border-2 p-7 mt-4 rounded-xl",children:[(0,L.jsx)("label",{className:"label",children:"Knowledge Hub"}),(0,L.jsxs)("div",{className:"flex flex-col items-center",children:[(0,L.jsxs)(Zs.A,{onChange:e=>{if(C(e.target.value),!0!==e.target.value){const t=n.find((t=>t.kb_name===e.target.value));R(null===t||void 0===t?void 0:t.kb_id)}},value:T,variant:"outlined",color:"secondary",fullWidth:!0,disabled:b,children:[n&&(null===n||void 0===n?void 0:n.map(((e,t)=>(0,L.jsx)(Qs.A,{value:null===e||void 0===e?void 0:e.kb_name,children:null===e||void 0===e?void 0:e.kb_name},t)))),(0,L.jsx)(Qs.A,{value:"private",children:"My Private Files"}),O&&(0,L.jsx)(Qs.A,{value:!0,children:"New Knowledge Hub"})]}),!0===T&&(0,L.jsx)(Xa.A,{variant:"outlined",label:"Enter the Knowledge Hub name",color:"secondary",onChange:e=>{g(e.target.value),R(e.target.value)},fullWidth:!0,disabled:b,sx:{mt:2}})]}),(0,L.jsxs)("div",{className:"mt-6 space-y-2",children:[(0,L.jsx)("label",{className:"text-sm font-medium text-gray-700",children:"Add Tags"}),(0,L.jsx)("div",{className:"flex flex-wrap gap-2 mb-3",children:j.map(((e,t)=>(0,L.jsxs)("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-sm bg-blue-100 text-blue-800",children:["#",e,(0,L.jsx)("button",{onClick:()=>{return t=e,void M(j.filter((e=>e!==t)));var t},className:"ml-2 hover:text-blue-600",children:(0,L.jsx)(Dw,{className:"w-4 h-4"})})]},t)))}),(0,L.jsx)("div",{className:"flex items-center",children:(0,L.jsx)("input",{type:"text",value:D,onChange:e=>F(e.target.value),onKeyDown:e=>{"Enter"===e.key&&D.trim()&&(e.preventDefault(),j.includes(D.trim())||(M([...j,D.trim()]),F("")))},placeholder:"Type tag and press Enter",className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",disabled:b})})]}),(0,L.jsx)("div",{className:"flex mt-3 justify-center",children:b?(0,L.jsx)(Yx.A,{disabled:!0,variant:"outlined",color:"secondary",sx:{mt:2},children:(0,L.jsx)(dA,{color:"secondary"})}):(0,L.jsx)(Yx.A,{onClick:async()=>{v(!0);try{if(!0===T&&""===m)return v(!1),aa.oR.error("Enter the knowledge hub name to continue",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});if(""===T)return v(!1),aa.oR.error("Select a knowledge hub name to continue",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});if(0===j.length)return v(!1),aa.oR.error("Please add at least one tag",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});const e=new FormData,n=new Date;e.append("tags",j.join(",")),e.append("created_id",y),e.append("created_by",E);const a=localStorage.getItem("organization");!0===T?(e.append("kb_name",m),e.append("kb_id",m)):"private"===T?(e.append("kb_name","Private Knowledge"),e.append("kb_id","private")):(e.append("kb_id",I),e.append("kb_name",T)),"private"===T?e.append("organization",y):e.append("organization",a),e.append("last_modified",n.getTime().toString()),e.append("file_type","upload"),e.append("kbdata",""),e.append("team_id",i);for(const t of d){const n=t.size/1048576;if("application/pdf"===t.type){if(await U(t)>54)return aa.oR.error(`File ${t.name} exceeds size or page limit. Max pages: 50`,{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}),void v(!1)}if(n>5)return aa.oR.error(`File ${t.name} exceeds size or page limit. Max Size: 5mb`,{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}),void v(!1);e.append("file",t)}await(0,xi.Ww)(e)&&(f(null),g(""),p([]),t(!1),P("/kb")),await r(i),await o(i),t(!1)}catch(qUe){console.error("Error adding knowledge base:",qUe),aa.oR.error("An error occurred while adding the knowledge hub.",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}finally{v(!1)}},variant:"outlined",color:"secondary",sx:{mt:2},disabled:0===d.length||""===T||0===j.length||!0===T&&""===m,children:"Add to Knowledge Hub"})})]})]})})})]})};var Yhe=function(e){let{close:t}=e;const{knowldegeHubsNames:n,getKb:r,activeTeam:i,handleGetKbNames:o,activeRole:a,getCachedUserInfo:s}=ma(),[l,u]=(0,c.useState)(""),[d,p]=(0,c.useState)(0),[h,f]=(0,c.useState)(""),[m,g]=(0,c.useState)(!1),[b,v]=(0,c.useState)(""),[y,x]=(0,c.useState)(""),[w,A]=(0,c.useState)([]),[E,S]=(0,c.useState)(""),_=(0,te.Zp)(),[k,T]=(0,c.useState)(!1),[C,O]=(0,c.useState)(""),[N,I]=(0,c.useState)([]),[R,P]=(0,c.useState)(""),j=localStorage.getItem("uid");return(0,c.useEffect)((()=>{(async()=>{var e;const t=null===(e=a.split(","))||void 0===e?void 0:e.some((e=>"Admin"===e||"Create Knowledge Base"===e));T(t)})()}
205),[a]),(0,L.jsxs)(uw,{sx:{mt:-5},height:"90vh",children:[(0,L.jsxs)("div",{className:"flex justify-between w-full items-center",children:[(0,L.jsx)(Te.A,{variant:"h3",children:"Capture data to your Knowledge Hub"}),(0,L.jsx)(Pa.A,{onClick:()=>t(!1),children:(0,L.jsx)(Dw,{})})]}),(0,L.jsx)(uw,{justifyContent:"center",alignItems:"center",children:(0,L.jsxs)(uw,{sx:{width:"100%",height:"100%",mt:2,border:.7,borderColor:"#EFF7FE",borderRadius:2,padding:3},children:[(0,L.jsx)(rH(),{theme:"snow",value:l,onChange:e=>{u(e),p(e.length)},placeholder:"Enter Data to be trained",modules:{toolbar:[[{header:"1"},{header:"2"},{font:[]}],[{size:[]}],["bold","italic","underline","strike","blockquote"],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"}],["link","image"],["clean"]]},formats:["header","font","size","bold","italic","underline","strike","blockquote","list","bullet","indent","link","image"],style:{height:"200px",marginBottom:"50px"}}),(0,L.jsxs)("div",{className:"border-2 mt-10 p-2 rounded-xl",children:[(0,L.jsxs)("div",{className:"flex mt-3 flex-col justify-center",children:[(0,L.jsx)("label",{className:"label",children:"File Name"}),(0,L.jsx)(Xa.A,{variant:"outlined",label:"Enter File Name",color:"secondary",onChange:e=>f(e.target.value),fullWidth:!0,disabled:m,sx:{mt:2,mb:2}}),(0,L.jsx)("label",{className:"label",children:"Knowledge Hub "}),(0,L.jsxs)(Zs.A,{onChange:e=>{if(S(e.target.value),!0!==e.target.value){const t=n.find((t=>t.kb_name===e.target.value));O(null===t||void 0===t?void 0:t.kb_id)}},value:E,variant:"outlined",color:"secondary",fullWidth:!0,disabled:m,children:[n&&(null===n||void 0===n?void 0:n.map(((e,t)=>(0,L.jsx)(Qs.A,{value:null===e||void 0===e?void 0:e.kb_name,children:null===e||void 0===e?void 0:e.kb_name},t)))),(0,L.jsx)(Qs.A,{value:"private",children:"My Private Files"}),k&&(0,L.jsx)(Qs.A,{value:!0,children:"New Knowledge Hub"})]}),!0===E&&(0,L.jsx)(Xa.A,{variant:"outlined",label:"Enter the Knowledge Hub name",color:"secondary",onChange:e=>{v(e.target.value),O(e.target.value)},fullWidth:!0,disabled:m,sx:{mt:2}})]}),(0,L.jsxs)("div",{className:"mt-6 space-y-2",children:[(0,L.jsx)("label",{className:"text-sm font-medium text-gray-700",children:"Add Tags"}),(0,L.jsx)("div",{className:"flex flex-wrap gap-2 mb-3",children:N.map(((e,t)=>(0,L.jsxs)("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-sm bg-blue-100 text-blue-800",children:["#",e,(0,L.jsx)("button",{onClick:()=>{return t=e,void I(N.filter((e=>e!==t)));var t},className:"ml-2 hover:text-blue-600",children:(0,L.jsx)(Dw,{className:"w-4 h-4"})})]},t)))}),(0,L.jsx)("div",{className:"flex items-center",children:(0,L.jsx)("input",{type:"text",value:R,onChange:e=>P(e.target.value),onKeyDown:e=>{"Enter"===e.key&&R.trim()&&(e.preventDefault(),N.includes(R.trim())||(I([...N,R.trim()]),P("")))},placeholder:"Type tag and press Enter",className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",disabled:m})})]}),(0,L.jsx)("div",{className:"flex mt-2 justify-center",children:m?(0,L.jsx)(Yx.A,{disabled:!0,variant:"outlined",color:"secondary",sx:{mt:2},children:(0,L.jsx)(dA,{color:"secondary"})}):(0,L.jsx)(Yx.A,{onClick:async()=>{try{if(g(!0),""===l)return g(!1),aa.oR.error("Enter the data",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});if(""===h)return g(!1),aa.oR.error("Enter the file name",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});if(!0===E&&""===b)return g(!1),aa.oR.error("Enter the knowledge hub name to continue",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});if(0===N.length)return g(!1),aa.oR.error("Please add at least one tag",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});const e=new FormData,n=new Date;e.append("tags",N.join(",")),e.append("created_id",j);const a=await s(j);
205e.append("created_by",null===a||void 0===a?void 0:a.uname),e.append("filename",h);const c=localStorage.getItem("organization");!0===E?(e.append("kb_name",b),e.append("kb_id",b)):"private"===E?(e.append("kb_name","Private Knowledge"),e.append("kb_id","private")):(e.append("kb_id",C),e.append("kb_name",E)),"private"===E?e.append("organization",j):e.append("organization",c),e.append("last_modified",n.getTime().toString()),e.append("file_type","data"),e.append("kbdata",""),e.append("team_id",i),e.append("data",l);await(0,xi.ws)(e)&&(u(""),v(""),t(!1),_("/kb"),g(!1)),await r(i),await o(i),t(!1),g(!1)}catch(qUe){console.error("Error submitting text:",qUe),aa.oR.error("An error occurred while submitting the text",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}),g(!1)}},variant:"outlined",color:"secondary",sx:{mt:2},disabled:!l||!h||!E||!0===E&&!b||0===N.length,children:"Add to Knowledge Hub"})})]})]})})]})};var Khe=function(e){let{close:t,getKbData:n}=e;const{knowldegeHubsNames:r,getKb:i,activeTeam:o,handleGetKbNames:a,activeRole:s,getCachedUserInfo:l}=ma(),[u,d]=(0,c.useState)(""),[p,h]=(0,c.useState)(""),[f,m]=(0,c.useState)([]),[g,b]=(0,c.useState)(!1),[v,y]=(0,c.useState)(!1),[x,w]=(0,c.useState)(""),[A,E]=(0,c.useState)(""),S=(0,te.Zp)(),[_,k]=(0,c.useState)(!1),[T,C]=(0,c.useState)(""),[O,N]=(0,c.useState)([]),[I,R]=(0,c.useState)("");return(0,c.useEffect)((()=>{(async()=>{var e;const t=null===(e=s.split(","))||void 0===e?void 0:e.some((e=>"Admin"===e||"Create Knowledge Base"===e));k(t)})()}),[s]),(0,L.jsxs)(po.A,{sx:{mt:-5},children:[(0,L.jsxs)("div",{className:"flex justify-between w-full items-center",children:[(0,L.jsx)(Te.A,{variant:"h3",children:"Crawl URLs to your Knowledge Hub"}),(0,L.jsx)(Pa.A,{onClick:()=>t(!1),children:(0,L.jsx)(Dw,{})})]}),(0,L.jsx)(po.A,{justifyContent:"center",sx:{mt:2},alignItems:"center",children:(0,L.jsx)(po.A,{sx:{width:"100%"},children:(0,L.jsxs)(Co.A,{children:[(0,L.jsxs)("div",{className:"flex mt-2 items-center",children:[(0,L.jsx)(Xa.A,{variant:"outlined",label:"Enter the URL to crawl",id:"kbname",color:"secondary",fullWidth:!0,sx:{mr:2},disabled:g,onChange:e=>d(e.target.value)}),(0,L.jsx)(Yx.A,{variant:"outlined",color:"secondary",sx:{width:130},disabled:g||!/^https?:\/\/[^\s/$.?#].[^\s]*$/.test(u),onClick:async()=>{try{b(!0);const e=new FormData;e.append("url",u);const{main_urls:t}=await(0,xi.Ir)(e),n=[];null===t||void 0===t||t.map(((e,t)=>n.push({id:t,url:e}))),m(n),b(!1)}catch(qUe){console.log(qUe),b(!1)}},children:g?(0,L.jsx)(Dx,{}):"Crawl"})]}),f.length>0&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"flex flex-col mt-2",children:[(0,L.jsx)("label",{className:"label",children:"Included urls"}),(0,L.jsx)("div",{className:"max-h-60 overflow-y-auto",children:f.map((e=>(0,L.jsxs)("div",{className:"flex mb-2 p-2 bg-gray-100 rounded",children:[(0,L.jsx)("div",{className:"flex-1 break-all text-sm md:text-base",children:e.url}),(0,L.jsx)(Pa.A,{onClick:()=>(async e=>{m([...f.filter(((t,n)=>t.id!==e))])})(e.id),size:"small",children:(0,L.jsx)(Dw,{fontSize:"small"})})]},e.id)))})]}),(0,L.jsxs)("div",{className:"font-bold mt-4",children:["Included url count: ",(0,L.jsx)("span",{className:"text-gray-600 font-semibold",children:f.length})]})]}),(0,L.jsxs)("div",{className:"border-2 p-7 mt-4 rounded-xl",children:[(0,L.jsx)("label",{className:"label",children:"File Name"}),(0,L.jsx)(Xa.A,{variant:"outlined",label:"Enter the File name",color:"secondary",onChange:e=>{w(e.target.value)},value:x,fullWidth:!0,disabled:g,sx:{mt:2}}),(0,L.jsx)("label",{className:"label",children:"Knowledge Hub"}),(0,L.jsxs)("div",{className:"flex flex-col justify-center",children:[(0,L.jsxs)(Zs.A,{onChange:e=>{if(E(e.target.value),!0!==e.target.value){const t=r.find((t=>t.kb_name===e.target.value));C(null===t||void 0===t?void 0:t.kb_id)}},value:A,variant:"outlined",color:"secondary",fullWidth:!0,disabled:g,children:[r&&(null===r||void 0===r?void 0:r.map(((e,t)=>(0,L.jsx)(Qs.A,{value:null===e||void 0===e?void 0:e.kb_name,children:null===e||void 0===e?void 0:e.kb_name},t)))),(0,L.jsx)(Qs.A,{value:"private",children:"My Private Files"}),_&&(0,L.jsx)(Qs.A,{value:!0,children:"New Knowledge Hub"})]}),!0===A&&(0,L.jsx)(Xa.A,{variant:"outlined",label:"Enter the Knowledge base name",color:"secondary",onChange:e=>{h(e.target.value),C(e.target.value)},fullWidth:!0,disabled:g,sx:{mt:2}})]}),(0,L.jsxs)("div",{className:"mt-6 space-y-2",children:[(0,L.jsx)("label",{className:"text-sm font-medium text-gray-700",children:"Add Tags"}),(0,L.jsx)("div",{className:"flex flex-wrap gap-2 mb-3",children:O.map(((e,t)=>(0,L.jsxs)("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-sm bg-blue-100 text-blue-800",children:["#",e,(0,L.jsx)("button",{onClick:()=>{return t=e,void N(O.filter((e=>e!==t)));var t},className:"ml-2 hover:text-blue-600",children:(0,L.jsx)(Dw,{className:"w-4 h-4"})})]},t)))}),(0,L.jsx)("div",{className:"flex items-center",children:(0,L.jsx)("input",{type:"text",value:I,onChange:e=>R(e.target.value),onKeyDown:e=>{"Enter"===e.key&&I.trim()&&(e.preventDefault(),O.includes(I.trim())||(N([...O,I.trim()]),R("")))},placeholder:"Type tag and press Enter",className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",disabled:g})})]}),(0,L.jsx)("div",{className:"flex mt-3 justify-center",children:(0,L.jsx)(Yx.A,{onClick:async()=>
205{if(y(!0),0===f.length)return y(!1),aa.oR.error("Fetch or add the urls to create",{position:"top-left",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});if(!0===A&&""===p)return y(!1),aa.oR.error("Enter an bot name to continue",{position:"top-left",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});if(0===O.length)return b(!1),aa.oR.error("Please add at least one tag",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});const e=new FormData,n=new Date,r=localStorage.getItem("uid"),s=await l(r);e.append("tags",O.join(",")),e.append("filename",x),e.append("uid",r),e.append("created_by",null===s||void 0===s?void 0:s.uname);const c=localStorage.getItem("organization");!0===A?(e.append("kb_name",p),e.append("kb_id",p)):"private"===A?(e.append("kb_name","Private Knowledge"),e.append("kb_id","private")):(e.append("kb_id",T),e.append("kb_name",A)),"private"===A?e.append("organization",r):e.append("organization",c),e.append("last_modified",n.getTime().toString()),e.append("main_url",u),e.append("team_id",o),e.append("file_type","link");for(const t of f)e.append("urls",t.url);await(0,xi.bH)(e)&&(d(""),m(""),t(!1),S("/kb")),await i(o),await a(o),t(!1),y(!1)},variant:"outlined",color:"secondary",sx:{mt:3},disabled:!x||""===A||!0===A&&!p||0===f.length||0===O.length||g,children:v?(0,L.jsx)(dA,{color:"secondary"}):"Add to Knowledge Hub"})})]})]})})})]})};var Xhe=e=>{let{close:t}=e;const{knowldegeHubsNames:n,getKb:r,activeTeam:i,handleGetKbNames:o,activeRole:a,getCachedUserInfo:s}=ma(),[l,u]=(0,c.useState)([{question:"",answer:""}]),[d,p]=(0,c.useState)(""),[h,f]=(0,c.useState)(""),[m,g]=(0,c.useState)(!1),[b,v]=(0,c.useState)(""),y=(0,te.Zp)(),[x,w]=(0,c.useState)(!1),[A,E]=(0,c.useState)(""),S=(0,c.useRef)(null),[_,k]=(0,c.useState)([]),[T,C]=(0,c.useState)("");(0,c.useEffect)((()=>{(async()=>{var e;const t=null===(e=a.split(","))||void 0===e?void 0:e.some((e=>"Admin"===e||"Create Knowledge Base"===e));w(t)})()}),[a]);const O=(e,t,n)=>{const r=l.map(((r,i)=>i===e?{...r,[t]:n}:r));u(r)};return(0,L.jsxs)(uw,{sx:{mt:-5},children:[(0,L.jsxs)("div",{className:"flex justify-between w-full items-center",children:[(0,L.jsx)(Te.A,{variant:"h3",children:"Capture Q/A to your Knowledge Hub"}),(0,L.jsx)(Pa.A,{onClick:()=>t(!1),children:(0,L.jsx)(Dw,{})})]}),(0,L.jsx)(uw,{justifyContent:"center",alignItems:"center",children:(0,L.jsx)(uw,{sx:{width:"100%",mt:2},children:(0,L.jsxs)(Co.A,{children:[(0,L.jsx)("div",{ref:S,style:{height:"280px",overflowY:"auto",marginBottom:"20px"},children:l.map(((e,t)=>(0,L.jsxs)("div",{className:"mb-2 flex flex-col border rounded p-4",children:[(0,L.jsxs)("div",{className:"flex justify-between items-center",children:[(0,L.jsxs)("label",{className:"label",children:[t+1,". Question"]}),(0,L.jsx)("button",{onClick:()=>(e=>{l.length>1&&u([...l.filter(((t,n)=>n!==e))])})(t),disabled:1===l.length,children:(0,L.jsx)("img",{src:Whe,className:"w-5 cursor-pointer "+(1===l.length?"opacity-50":"")})})]}),(0,L.jsx)("textarea",{type:"text",disabled:m,placeholder:"Enter your question",value:e.question,onChange:e=>O(t,"question",e.target.value),className:"textarea h-10"}),(0,L.jsx)("label",{className:"label mt-2",children:"Answer"}),(0,L.jsx)("textarea",{type:"text",disabled:m,placeholder:"Enter your answer",value:e.answer,onChange:e=>O(t,"answer",e.target.value),className:"textarea h-20"})]},t)))}),(0,L.jsx)("div",{className:"flex mt-2 justify-center",children:(0,L.jsx)(Yx.A,{onClick:()=>{u([...l,{question:"",answer:""}]),setTimeout((()=>{S.current&&(S.current.scrollTop=S.current.scrollHeight)}),0)},variant:"outlined",color:"secondary",sx:{mt:2},disabled:(()=>{const e=l[l.length-1];return""===e.question.trim()||""===e.answer.trim()})(),children:"Add Another Q/A"})}),(0,L.jsxs)("div",{className:"border-2 mt-2 p-2 rounded-xl",children:[(0,L.jsxs)("div",{className:"flex flex-col mt-2 justify-center",children:[(0,L.jsx)("label",{className:"label",children:"File Name"}),(0,L.jsx)(Xa.A,{variant:"outlined",label:"Enter the file name",color:"secondary",onChange:e=>f(e.target.value),fullWidth:!0,disabled:m,sx:{mt:2,mb:2}}),(0,L.jsx)("label",{className:"label",children:"Knowledge Hub"}),(0,L.jsxs)(Zs.A,{onChange:e=>{if(v(e.target.value),!0!==e.target.value){const t=n.find((t=>t.kb_name===e.target.value));E(null===t||void 0===t?void 0:t.kb_id)}},value:b,variant:"outlined",color:"secondary",fullWidth:!0,disabled:m,children:[n&&(null===n||void 0===n?void 0:n.map(((e,t)=>(0,L.jsx)(Qs.A,{value:null===e||void 0===e?void 0:e.kb_name,children:null===e||void 0===e?void 0:e.kb_name},t)))),(0,L.jsx)(Qs.A,{value:"private",children:"My Private Files"}),x&&(0,L.jsx)(Qs.A,{value:!0,children:"New Knowledge Hub"})]}),!0===b&&(0,L.jsx)(Xa.A,{variant:"outlined",label:"Enter the Knowledge hub name",color:"secondary",onChange:e=>{p(e.target.value),E(e.target.value)},fullWidth:!0,disabled:m,sx:{mt:2}})]}),(0,L.jsxs)("div",{className:"mt-2",children:["Included Question count: ",(0,L.jsx)("span",{className:"text-gray-600 font-semibold",children:l.length})]}),(0,L.jsxs)("div",{className:"mt-6 space-y-2",children:[(0,L.jsx)("label",{className:"text-sm font-medium text-gray-700",children:"Add Tags"}),(0,L.jsx)("div",{className:"flex flex-wrap gap-2 mb-3",children:_.map(((e,t)=>(0,L.jsxs)("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-sm bg-blue-100 text-blue-800",children:["#",e,(0,L.jsx)("button",{onClick:()=>{return t=e,void k(_.filter((e=>e!==t)));var t},className:"ml-2 hover:text-blue-600",children:(0,L.jsx)(Dw,{className:"w-4 h-4"})})]},t)))}),(0,L.jsx)("div",{className:"flex items-center",children:(0,L.jsx)("input",{type:"text",value:T,onChange:e=>C(e.target.value),onKeyDown:e=>{"Enter"===e.key&&T.trim()&&(e.preventDefault(),_.includes(T.trim())||(k([..._,T.trim()]),C("")))},placeholder:"Type tag and press Enter",className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",disabled:m})})]}),(0,L.jsx)("div",{className:"flex mt-0 justify-center",children:m?(0,L.jsx)(Yx.A,{disabled:!0,variant:"outlined",color:"secondary",sx:{mt:2},children:(0,L.jsx)(dA,{color:"secondary"})}):(0,L.jsx)(Yx.A,{onClick:async()=>
205{if(g(!0),""===l[0].question||""===l[0].answer)return g(!1),aa.oR.error("Enter at least one Q/A to continue",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});if(""===h)return g(!1),aa.oR.error("Enter the file name",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});if(!0===b&&""===d)return g(!1),aa.oR.error("Enter the knowledge hub name to continue",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});if(0===_.length)return g(!1),aa.oR.error("Please add at least one tag",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});const e=localStorage.getItem("uid"),n=new FormData,a=new Date,c=await s(e);n.append("tags",_.join(",")),n.append("created_id",e),n.append("created_by",null===c||void 0===c?void 0:c.uname),n.append("filename",h);const f=localStorage.getItem("organization");!0===b?(n.append("kb_name",d),n.append("kb_id",d)):"private"===b?(n.append("kb_name","Private Knowledge"),n.append("kb_id","private")):(n.append("kb_id",A),n.append("kb_name",b)),"private"===b?n.append("organization",e):n.append("organization",f),n.append("last_modified",a.getTime().toString()),n.append("file_type","qa"),n.append("team_id",i),n.append("data",JSON.stringify(l));await(0,xi.hb)(n)&&(u([{question:"",answer:""}]),p(""),t(!1),y("/kb")),await r(i),await o(i),g(!1),t(!1)},variant:"outlined",color:"secondary",sx:{mt:2},disabled:0===l.length||l.some((e=>""===e.question.trim()||""===e.answer.trim()))||""===h.trim()||!0===b&&""===d.trim()||0===_.length||m,children:"Add to Knowledge Hub"})})]})]})})})]})};const Zhe=(0,Ns.A)("MicOff",[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["path",{d:"M18.89 13.23A7.12 7.12 0 0 0 19 12v-2",key:"80xlxr"}],["path",{d:"M5 10v2a7 7 0 0 0 12 5",key:"p2k8kg"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]),Qhe=(0,Ns.A)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]),Jhe=(0,Ns.A)("FileAudio",[["path",{d:"M17.5 22h.5a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"rslqgf"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 19a2 2 0 1 1 4 0v1a2 2 0 1 1-4 0v-4a6 6 0 0 1 12 0v4a2 2 0 1 1-4 0v-1a2 2 0 1 1 4 0",key:"9f7x3i"}]]),efe=(0,Ns.A)("AudioWaveform",[["path",{d:"M2 13a2 2 0 0 0 2-2V7a2 2 0 0 1 4 0v13a2 2 0 0 0 4 0V4a2 2 0 0 1 4 0v13a2 2 0 0 0 4 0v-4a2 2 0 0 1 2-2",key:"57tc96"}]]),tfe=(0,Ns.A)("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);(()=>{try{if(typeof window>"u")return;var e=document.createElement("style");e.appendChild(document.createTextNode(".audio-recorder{background-color:#ebebeb;box-shadow:0 2px 5px #bebebe;border-radius:20px;box-sizing:border-box;color:#000;width:40px;display:flex;align-items:center;transition:all .2s ease-in;-webkit-tap-highlight-color:transparent}.audio-recorder-mic{box-sizing:content-box;cursor:pointer;height:16px;color:#000;padding:12px}.audio-recorder .audio-recorder-mic{border-radius:20px}.audio-recorder.recording .audio-recorder-mic{border-radius:0}.audio-recorder-timer,.audio-recorder-status{color:#000;margin-left:10px;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;font-size:14px;font-weight:400;line-height:1}.audio-recorder-status{margin-left:15px;display:flex;align-items:baseline;flex-grow:1;animation-name:fading-ar-status;animation-duration:2s;animation-iteration-count:infinite}.audio-recorder-status-dot{background-color:#d00;border-radius:50%;height:10px;width:9px;margin-right:5px}.audio-recorder-options{box-sizing:content-box;height:16px;cursor:pointer;padding:12px 6px 12px 12px}.audio-recorder-options~.audio-recorder-options{padding:12px 12px 12px 6px;border-radius:0 5px 5px 0}.recording{border-radius:12px;width:300px;transition:all .2s ease-out}.display-none{display:none}.audio-recorder-visualizer{margin-left:15px;flex-grow:1;align-self:center;display:flex;align-items:center}@keyframes fading-ar-status{0%{opacity:1}50%{opacity:0}
205to{opacity:1}}")),document.head.appendChild(e)}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();var nfe,rfe={exports:{}},ife={};rfe.exports=function(){if(nfe)return ife;nfe=1;var e=c,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var s,l={},c=null,u=null;for(s in void 0!==a&&(c=""+a),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)r.call(n,s)&&!o.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:i.current}}return ife.Fragment=n,ife.jsx=a,ife.jsxs=a,ife}();rfe.exports;const ofe=(e,t,n)=>{const[r,i]=(0,c.useState)(!1),[o,a]=(0,c.useState)(!1),[s,l]=(0,c.useState)(0),[u,d]=(0,c.useState)(),[p,h]=(0,c.useState)(),[f,m]=(0,c.useState)(),g=(0,c.useCallback)((()=>{const e=setInterval((()=>{l((e=>e+1))}),1e3);h(e)}),[l,h]),b=(0,c.useCallback)((()=>{null!=p&&clearInterval(p),h(void 0)}),[p,h]);return{startRecording:(0,c.useCallback)((()=>{null==p&&navigator.mediaDevices.getUserMedia({audio:e??!0}).then((e=>{i(!0);const t=new MediaRecorder(e,n);d(t),t.start(),g(),t.addEventListener("dataavailable",(e=>{m(e.data),t.stream.getTracks().forEach((e=>e.stop())),d(void 0)}))})).catch((e=>{console.log(e.name,e.message,e.cause),null==t||t(e)}))}),[p,i,d,g,m,t,n]),stopRecording:(0,c.useCallback)((()=>{null==u||u.stop(),b(),l(0),i(!1),a(!1)}),[u,l,i,a,b]),togglePauseResume:(0,c.useCallback)((()=>{o?(a(!1),null==u||u.resume(),g()):(a(!0),b(),null==u||u.pause())}),[u,a,g,b]),recordingBlob:f,isRecording:r,isPaused:o,recordingTime:s,mediaRecorder:u}};c.lazy((async()=>{const{LiveAudioVisualizer:e}=await __webpack_require__.e(766).then(__webpack_require__.bind(__webpack_require__,53766));return{default:e}}));var afe=e=>{let{close:t}=e;const{knowldegeHubsNames:n,getKb:r,activeTeam:i,handleGetKbNames:o,activeRole:a,getCachedUserInfo:s}=ma(),{startRecording:l,stopRecording:u,recordingTime:d,recordingBlob:p,isRecording:h,isPaused:f,togglePauseResume:m}=ofe(),g=(0,te.Zp)(),[b,v]=(0,c.useState)(""),[y,x]=(0,c.useState)(""),[w,A]=(0,c.useState)([]),[E,S]=(0,c.useState)(""),[_,k]=(0,c.useState)(""),[T,C]=(0,c.useState)(!1),[O,N]=(0,c.useState)(""),[I,R]=(0,c.useState)(!1),[P,j]=(0,c.useState)([]),[M,D]=(0,c.useState)(!1),[F,B]=(0,c.useState)(!1),[U,z]=(0,c.useState)(null),H=localStorage.getItem("uid");(0,c.useEffect)((()=>{(async()=>{var e;const t=null===(e=a.split(","))||void 0===e?void 0:e.some((e=>"Admin"===e||"Create Knowledge Base"===e));C(t)})()}),[a]);(0,c.useEffect)((()=>{p&&$()}),[p]);const $=async()=>{try{const e=p,t=new FormData;t.append("audio",e,"recording.webm"),t.append("task","translate");try{D(!0);const e=await oa.A.post("https://api.deepinfra.com/v1/inference/openai/whisper-large-v3",t,{headers:{Authorization:"bearer vDGIbx9Pgz7vSrMS983zAfjif8HYVMz1"},params:{task:"translate",language:"en"}});if(F){const t=E+" "+e.data.text;S(t),aa.oR.success("Audio transcribed successfully.",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}else S(e.data.text||""),aa.oR.success("Audio transcribed successfully.",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}catch(qUe){console.error("Error uploading audio:",qUe),aa.oR.error("Failed to upload audio.",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"})}finally{D(!1)}}catch(qUe){console.error("Transcribe error: ",qUe)}};return(0,L.jsxs)("div",{style:{marginTop:"-50px"},children:[(0,L.jsxs)("div",{className:"flex justify-between w-full items-center",children:[(0,L.jsx)(Te.A,{variant:"h3",children:"Record the audio to Knowledge Hub"}),(0,L.jsx)(Pa.A,{onClick:()=>t(!1),children:(0,L.jsx)(mw,{})})]}),(0,L.jsx)(uw,{justifyContent:"center",sx:{mt:2},alignItems:"center",children:(0,L.jsxs)(Co.A,{sx:{width:"100%"},children:[(0,L.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,L.jsxs)(Te.A,{variant:"h5",children:[h?"Stop":"Start"," Recording: "]}),h?(0,L.jsx)(mi,{title:"Stop Recording",children:(0,L.jsx)(Pa.A,{onClick:u,children:(0,L.jsx)(Zhe,{size:20})})}):(0,L.jsx)(mi,{title:"Start New Recording",children:(0,L.jsx)(Pa.A,{onClick:l,disabled:I||M,children:(0,L.jsx)(Hhe,{size:20})})}),h&&d,E&&!h&&(0,L.jsx)(mi,{title:"Continue Recording",children:(0,L.jsx)(Pa.A,{onClick:()=>{B(!0),l()},children:(0,L.jsx)(Qhe,{size:20})})})]}),(0,L.jsx)(ze.A,{}),(0,L.jsxs)("div",{className:"flex items-center gap-2 mt-5 mb-2",children:[(0,L.jsx)(Te.A,{variant:"h5",children:"Upload the file: "}),(0,L.jsx)(mi,{title:"Upload Audio File",children:(0,L.jsxs)("label",{htmlFor:"audio-upload",children:[(0,L.jsx)("input",{type:"file",id:"audio-upload",accept:"audio/*",style:{display:"none"},onChange:e=>{if(e.target.files&&e.target.files.length>0){const t=e.target.files[0];z(t)}}}),(0,L.jsx)(mi,{title:"Upload Audio File",children:(0,L.jsx)(Pa.A,{variant:"outlined",component:"span",disabled:I||M,children:(0,L.jsx)(Jhe,{size:20})})})]})}),(0,L.jsx)(mi,{title:"Transcribe Uploaded Audio",children:(0,L.jsx)(Pa.A,{variant:"contained",color:"secondary",onClick:async()=>
205{if(!U)return aa.oR.error("Please upload an audio file first.",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});try{const e=new FormData;e.append("audio",U,U.name),e.append("task","translate"),D(!0);const t=(await oa.A.post("https://api.deepinfra.com/v1/inference/openai/whisper-large-v3",e,{headers:{Authorization:"bearer vDGIbx9Pgz7vSrMS983zAfjif8HYVMz1"},params:{task:"translate",language:"en"}})).data.text||"";S(t),aa.oR.success("Audio transcribed successfully.",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}catch(qUe){console.error("Error transcribing uploaded audio:",qUe),aa.oR.error("Failed to transcribe uploaded audio.",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}finally{D(!1)}},disabled:I||M||!U,children:(0,L.jsx)(efe,{size:20})})})]}),M&&(0,L.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,L.jsx)(Te.A,{variant:"h5",children:"Transcribing "}),(0,L.jsx)(tfe,{size:20,className:"animate-pulse duration-100 ease-in-out"})]}),(0,L.jsx)("textarea",{disabled:I,value:E,className:"h-64 p-2 w-full bg-white border rounded-md",onChange:e=>S(e.target.value)}),(0,L.jsxs)("div",{className:"border-2 mt-10 p-2 rounded-xl",children:[(0,L.jsxs)("div",{className:"flex mt-3 flex-col justify-center",children:[(0,L.jsx)("label",{className:"label",children:"File Name"}),(0,L.jsx)(Xa.A,{variant:"outlined",label:"Enter File Name",color:"secondary",onChange:e=>N(e.target.value),fullWidth:!0,disabled:I,sx:{mt:2,mb:2}}),(0,L.jsx)("label",{className:"label",children:"Knowledge Hub "}),(0,L.jsxs)(Zs.A,{onChange:e=>{if(v(e.target.value),!0!==e.target.value){const t=n.find((t=>t.kb_name===e.target.value));k(null===t||void 0===t?void 0:t.kb_id)}},value:b,variant:"outlined",color:"secondary",fullWidth:!0,disabled:I,children:[n&&(null===n||void 0===n?void 0:n.map(((e,t)=>(0,L.jsx)(Qs.A,{value:null===e||void 0===e?void 0:e.kb_name,children:null===e||void 0===e?void 0:e.kb_name},t)))),(0,L.jsx)(Qs.A,{value:"private",children:"My Private Files"}),T&&(0,L.jsx)(Qs.A,{value:!0,children:"New Knowledge Hub"})]}),!0===b&&(0,L.jsx)(Xa.A,{variant:"outlined",label:"Enter the Knowledge Hub name",color:"secondary",onChange:e=>{x(e.target.value),k(e.target.value)},fullWidth:!0,disabled:I,sx:{mt:2}})]}),(0,L.jsxs)("div",{className:"mt-6 space-y-2",children:[(0,L.jsx)("label",{className:"text-sm font-medium text-gray-700",children:"Add Tags"}),(0,L.jsx)("div",{className:"flex flex-wrap gap-2 mb-3",children:w.map(((e,t)=>(0,L.jsxs)("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-sm bg-blue-100 text-blue-800",children:["#",e,(0,L.jsx)("button",{onClick:()=>{return t=e,void A(w.filter((e=>e!==t)));var t},className:"ml-2 hover:text-blue-600",children:(0,L.jsx)(Dw,{className:"w-4 h-4"})})]},t)))}),(0,L.jsx)("div",{className:"flex items-center",children:(0,L.jsx)("input",{type:"text",value:P,onChange:e=>j(e.target.value),onKeyDown:e=>{"Enter"===e.key&&P.trim()&&(e.preventDefault(),w.includes(P.trim())||(A([...w,P.trim()]),j("")))},placeholder:"Type tag and press Enter",className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",disabled:I})})]}),(0,L.jsx)("div",{className:"flex mt-2 justify-center",children:I?(0,L.jsx)(Yx.A,{disabled:!0,variant:"outlined",color:"secondary",sx:{mt:2},children:(0,L.jsx)(dA,{color:"secondary"})}):(0,L.jsx)(Yx.A,{onClick:async()=>{try{if(R(!0),""===E)return R(!1),aa.oR.error("Speak and transcribe to continue",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});if(""===O)return R(!1),aa.oR.error("Enter the Transcribe name",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});if(!0===b&&""===y)return R(!1),aa.oR.error("Enter the knowledge hub name to continue",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});if(0===w.length)return R(!1),aa.oR.error("Please add at least one tag",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});const e=new FormData,n=new Date;e.append("tags",w.join(",")),e.append("created_id",H);const a=await s(H);
205e.append("created_by",null===a||void 0===a?void 0:a.uname),e.append("filename",O);const l=localStorage.getItem("organization");!0===b?(e.append("kb_name",y),e.append("kb_id",y)):"private"===b?(e.append("kb_name","Private Knowledge"),e.append("kb_id","private")):(e.append("kb_id",_),e.append("kb_name",b)),"private"===b?e.append("organization",H):e.append("organization",l),e.append("last_modified",n.getTime().toString()),e.append("file_type","data"),e.append("kbdata",""),e.append("team_id",i),e.append("data",E);await(0,xi.ws)(e)&&(S(""),x(""),t(!1),g("/kb"),R(!1)),await r(i),await o(i),t(!1),R(!1)}catch(qUe){console.error("Error submitting text:",qUe),aa.oR.error("An error occurred while submitting the text",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}),R(!1)}},variant:"outlined",color:"secondary",sx:{mt:2},disabled:!E||!O||!b||!0===b&&!y||0===w.length,children:"Add to Knowledge Hub"})})]})]})})]})},sfe=(0,Ve.A)([(0,L.jsx)("circle",{cx:"12",cy:"12",r:"3.2"},"0"),(0,L.jsx)("path",{d:"M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5"},"1")],"CameraAlt");var lfe=function(e){let{getKbData:t,fetchKbName:n,clip:r=!1,chat:i=!1,setSelectedImage:o}=e;const[a,s]=(0,c.useState)(null),[l,u]=(0,c.useState)(""),[d,p]=(0,c.useState)(!1),h=Boolean(a),f=e=>{s(e.currentTarget)},m=()=>{s(null)},[g,b]=((0,te.Zp)(),(0,c.useState)(null)),[v,y]=(0,c.useState)(!1),[x,w]=(0,c.useState)(null),[A,E]=(0,c.useState)(null),[S,_]=(0,c.useState)(!0),k=(0,c.useRef)(null),T=(0,c.useRef)(null),C=(0,c.useRef)(null);(0,c.useEffect)((()=>{navigator.mediaDevices&&navigator.mediaDevices.getUserMedia||(_(!1),console.warn("Camera access not supported in this browser"))}),[]);const O=async()=>{if(w(null),E(null),S)try{const e=await navigator.mediaDevices.getUserMedia({video:{facingMode:"environment"}});k.current&&(k.current.srcObject=e,k.current.onloadedmetadata=()=>{k.current.play().catch((e=>{console.error("Error playing video:",e),E("Could not play video stream")}))},k.current.onerror=e=>{console.error("Video error:",e),E("Error accessing camera video stream")})}catch(qUe){console.error("Error accessing camera:",qUe);let t="Unable to access camera";"NotAllowedError"===qUe.name?t="Camera access was denied. Please check your browser permissions.":"NotFoundError"===qUe.name?t="No camera found on this device.":"NotReadableError"===qUe.name&&(t="Camera is already in use by another application."),E(t)}else E("Camera is not supported in this browser")},N=()=>{if(k.current&&k.current.srcObject){k.current.srcObject.getTracks().forEach((e=>e.stop()))}y(!1),w(null),E(null)};return(0,L.jsxs)(L.Fragment,{children:[r?(0,L.jsx)(Pa.A,{onClick:f,children:(0,L.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"w-5 h-5",children:(0,L.jsx)("path",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round",d:"M21.44 11.05l-9.19 9.19a6 6 0 01-8.49-8.49l9.19-9.19a4 4 0 015.66 5.66l-9.2 9.19a2 2 0 01-2.83-2.83l8.49-8.48"})})}):(0,L.jsxs)("button",{onClick:f,className:"flex items-center gap-2 px-4 py-2 text-sm text-purple-700 bg-opacity-80 bg-purple-100 hover:bg-opacity-100 hover:text-purple-700 rounded-full transition-colors duration-200",children:[(0,L.jsx)(Fhe,{className:"text-base",height:16}),"Add or Upload"]}),(0,L.jsx)("input",{type:"file",ref:C,style:{display:"none"},accept:"image/*",onChange:e=>{const t=e.target.files[0];t&&o(t)}}),(0,L.jsxs)(pA.A,{id:"basic-menu",anchorEl:a,open:h,onClose:m,MenuListProps:{"aria-labelledby":"basic-button"},children:[(0,L.jsx)(Qs.A,{onClick:()=>{u("upload"),s(null),p(!0)},children:(0,L.jsxs)(po.A,{direction:"row",children:[(0,L.jsx)(Fhe,{height:16}),"Upload Files"]})}),(0,L.jsx)(Qs.A,{onClick:()=>{u("data"),s(null),p(!0)},children:(0,L.jsxs)(po.A,{direction:"row",children:[(0,L.jsx)(Bhe,{height:16}),"Capture Data"]})}),(0,L.jsx)(Qs.A,{onClick:()=>{u("link"),s(null),p(!0)},children:(0,L.jsxs)(po.A,{direction:"row",children:[(0,L.jsx)(Uhe,{height:16}),"Crawl Links"]})}),(0,L.jsx)(Qs.A,{onClick:()=>{u("qna"),s(null),p(!0)},children:(0,L.jsxs)(po.A,{direction:"row",children:[(0,L.jsx)(zhe,{height:16}),"Question & Answers"]})}),(0,L.jsx)(Qs.A,{onClick:()=>{u("transcribe"),s(null),p(!0)},children:(0,L.jsxs)(po.A,{direction:"row",children:[(0,L.jsx)(Hhe,{height:16}),"Transcribe"]})}),i&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(Qs.A,{onClick:()=>{C.current.click(),m()},children:[(0,L.jsx)($he,{size:20,className:"mr-3"}),"  Add Image"]}),(0,L.jsxs)(Qs.A,{onClick:()=>{m(),y(!0),E(null),O()},disabled:!S,children:[(0,L.jsx)(Vhe,{size:20,className:"mr-3"})," Capture Image"]})]})]}),(0,L.jsx)(Ks,{anchor:"right",open:d,onClose:()=>p(!1),children:(0,L.jsx)("div",{className:"md:w-[80vw] lg:w-[50vw] w-screen bg-white",children:(0,L.jsx)("div",{className:"mt-10 p-7",children:"upload"===l?(0,L.jsx)(qhe,{fetchKbNameTop:n,getKbData:t,close:p}):"data"===l?(0,L.jsx)(Yhe,{fetchKbNameTop:n,getKbData:t,close:p}):"link"===l?(0,L.jsx)(Khe,{fetchKbNameTop:n,getKbData:t,close:p}):"qna"===l?(0,L.jsx)(Xhe,{fetchKbNameTop:n,getKbData:t,close:p}):(0,L.jsx)(afe,{close:p})})})}),(0,L.jsxs)(mce,{open:v,onClose:N,maxWidth:"md",fullWidth:!0,children:[(0,L.jsx)(Ude,{children:"Capture Image"}),(0,L.jsxs)(Lde,{children:[A&&(0,L.jsx)(rue,{severity:"error",onClose:()=>E(null),className:"mb-4",children:A}),x?(0,L.jsxs)("div",{className:"w-full",children:[(0,L.jsx)("canvas",{ref:T,style:{display:"none"}}),(0,L.jsx)("img",{src:x,alt:"Captured",className:"w-full aspect-video object-cover"}),(0,L.jsxs)("div",{className:"flex justify-between mt-4",children:[(0,L.jsx)(Yx.A,{variant:"outlined",startIcon:(0,L.jsx)(Ghe,{size:16}),onClick:()=>{w(null),O()},children:"Retake"}),(0,L.jsx)(Yx.A,{variant:"contained",color:"primary",onClick:()=>{x&&fetch(x).then((e=>e.blob())).then((e=>{const t=new File([e],"captured-image.jpg",{type:"image/jpeg"});o(t),N()})).catch((e=>{console.error("Error saving captured image:",e),E("Failed to save captured image")}))},children:"Save"})]})]}):(0,L.jsxs)("div",{className:"relative w-full",children:[(0,L.jsx)("video",{ref:k,autoPlay:!0,playsInl
205ine:!0,className:"w-full aspect-video bg-black"}),(0,L.jsx)(Yx.A,{variant:"contained",color:"primary",startIcon:(0,L.jsx)(sfe,{}),onClick:()=>{if(!k.current)return console.error("Video ref is null"),void E("Video component not initialized");const e=T.current||document.createElement("canvas");T.current=e;const t=k.current;if(0===t.videoWidth||0===t.videoHeight)return console.error("Video dimensions not set"),void E("Video stream not ready. Please try again.");e.width=t.videoWidth,e.height=t.videoHeight;e.getContext("2d").drawImage(t,0,0,e.width,e.height);const n=e.toDataURL("image/jpeg");w(n);t.srcObject.getTracks().forEach((e=>e.stop()))},className:"absolute bottom-4 left-1/2 transform -translate-x-1/2",disabled:!!A,children:"Capture"})]})]}),(0,L.jsx)(Ide,{children:(0,L.jsx)(Yx.A,{onClick:N,color:"secondary",children:"Close"})})]})]})},cfe=__webpack_require__(73114);var ufe=cfe,dfe=__webpack_require__(54153);const pfe=(0,Ns.A)("BrainCircuit",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]]);ufe.GlobalWorkerOptions.workerSrc=new URL(__webpack_require__(71149),__webpack_require__.b).toString();const hfe={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:400,bgcolor:"background.paper",boxShadow:24,pt:2,px:4,pb:3};var ffe=()=>{const e=(0,te.Zp)(),t=(0,te.zy)(),{getKb:n,loading:r,knowldegeHubs:o,knowldegeHubsNames:a,activeRole:s,handleGetKbNames:l,activeTeam:u,trainKb:d}=ma(),[p,h]=(0,c.useState)({}),[f,m]=(0,c.useState)([]),[g,b]=(0,c.useState)(!1),[v,y]=(0,c.useState)(!1),[x,w]=(0,c.useState)(!1),[A,E]=(0,c.useState)(),[S,_]=(0,c.useState)(),[k,T]=(0,c.useState)(),[C,O]=(0,c.useState)([]),[N,I]=(0,c.useState)(),[R,P]=(0,c.useState)(!1),[j,M]=(0,c.useState)(""),[D,F]=(0,c.useState)(""),[B,U]=(0,c.useState)(!1),[z,H]=(0,c.useState)([]),[$,V]=(0,c.useState)(""),[G,W]=(0,c.useState)(!1),[q,Y]=(0,c.useState)(!1),[K,X]=(0,c.useState)([]),Z=ce("(max-width:600px)"),[Q,J]=(0,c.useState)("");(0,c.useEffect)((()=>{m(o)}),[o]);const ee=new URLSearchParams(t.search),ne=ee.get("filter"),re=ee.get("bot");(0,c.useEffect)((()=>{if(re){const e=z.filter((e=>e.id==re));e.length>0&&Y(e[0].title)}}),[re,z,e]);const ie=Z?[{accessorKey:"kb_name",header:"Knowledge Hub",Cell:e=>{let{cell:t}=e;const n=t.getValue();return(0,L.jsx)("span",{children:n.length>20?`${n.substring(0,20)}...`:n})}},{accessorKey:"file_name",header:"File Name",Cell:e=>{let{cell:t}=e;const n=t.getValue();return(0,L.jsx)("span",{children:n.length>25?`${n.substring(0,25)}...`:n})}}]:[{accessorKey:"kb_name",header:"Knowledge Hub"},{accessorKey:"file_name",header:"Documents",Cell:e=>{let{cell:t}=e;const n=t.getValue();return(0,L.jsx)("span",{children:n.length>25?`${n.substring(0,25)}...`:n})}},{accessorKey:"created_by",header:"Created By"},{accessorKey:"associated_bots",header:"Ai Asistants",Cell:e=>{let{cell:t,row:n}=e;const r=t.getValue().split(",");return(0,L.jsx)("div",{className:" flex flex-wrap gap-3",children:r.length>0&&r.filter((e=>""!==e.trim())).map(((e,t)=>{return(0,L.jsx)(so,{className:(r=n.original.status,{"Ready to train":"bg-blue-100 text-blue-800 hover:bg-blue-200","In Progress":"bg-yellow-100 text-yellow-800 hover:bg-yellow-200",Completed:"bg-green-100 text-green-800 hover:bg-green-200",Failed:"bg-red-100 text-red-800 hover:bg-red-200"}[r]||"bg-gray-100 text-gray-800 hover:bg-gray-200"),label:e},t);var r}))})}},{accessorKey:"last_modified",header:"Created On",Cell:e=>{let{cell:t}=e;const n=t.getValue();if(n.split("/").length>1)return(0,L.jsx)("span",{children:n});{const e=new Date(parseInt(n)),t=(e.getMonth()+1).toString().padStart(2,"0"),r=e.getDate().toString().padStart(2,"0"),i=e.getFullYear(),o=e.getHours().toString().padStart(2,"0"),a=e.getMinutes().toString().padStart(2,"0");return(0,L.jsx)("span",{children:`${t}/${r}/${i} ${o}:${a}`})}}},{accessorKey:"file_size",header:"Size (mb)"}],oe={fieldSeparator:",",quoteStrings:'"',decimalSeparator:".",showLabels:!0,useBom:!0,useKeysAsHeaders:!1,headers:ie.map((e=>e.header))};new Phe.ExportToCsv(oe);const ae=async()=>{var e;const t=null===(e=s.split(","))||void 0===e?void 0:e.some((e=>"Admin"===e||"Create Knowledge Base"===e));I(t)};(0,c.useEffect)((()=>{ae()}),[s]),(0,c.useEffect)((()=>
205{if(ne&&o.length>0){const e=o.filter((e=>e.kb_name===ne));m(e),O([ne])}}),[ne,o]);const se=()=>{E(null),w(!1),J("")},le=()=>{O([]),m(o)},de=()=>{U(!1),V(""),J("")};return(0,c.useEffect)((()=>{const e=localStorage.getItem("uid");localStorage.getItem("usr");(0,xi.EI)(e).then((e=>{if(0!==e.length){X(e);let t=[];null===e||void 0===e||e.map((e=>{t.push(e.title)})),H(t)}})).catch((e=>{console.error(e)}))}),[]),(0,L.jsxs)(uw,{children:[(0,L.jsxs)(Co.A,{children:[(0,L.jsxs)(uw,{justifyContent:"space-between",direction:"row",alignItems:"center",children:[(0,L.jsxs)("div",{className:"flex justify-center items-center",children:[(0,L.jsx)(i.N_,{to:"/marketplace",children:(0,L.jsx)(rw.A,{color:"secondary"})}),(0,L.jsx)(jhe.A,{}),(0,L.jsx)(Te.A,{sx:{fontWeight:"bold"},children:"Knowledge Hub"})]}),N&&(0,L.jsx)(lfe,{fetchKbName:ae,getKbData:n})]}),(0,L.jsxs)("div",{className:"grid md:grid-cols-8 gap-3 grid-cols-2 mt-5",children:[null===a||void 0===a?void 0:a.map((e=>(0,L.jsx)(so,{label:null===e||void 0===e?void 0:e.kb_name,sx:{color:dfe.A[800]},variant:C.includes(null===e||void 0===e?void 0:e.kb_name)?"filled":"outlined",onClick:()=>{return t=null===e||void 0===e?void 0:e.kb_name,void O((e=>{const n=e.includes(t)?e.filter((e=>e!==t)):[...e,t],r=n.length>0?o.filter((e=>n.includes(e.kb_name))):o;return m(r),n}));var t},deleteIcon:(0,L.jsx)(Mhe,{}),onDelete:()=>(async e=>{P(!0),F(e),M(e)})(null===e||void 0===e?void 0:e.kb_name)},null===e||void 0===e?void 0:e.kb_name))),C.length>0&&(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(so,{label:"Clear Filter",sx:{color:"primary.contrastText",bgcolor:"error.main",ml:1},onClick:le})})]})]}),(0,L.jsx)(uw,{sx:{mt:2,borderRadius:"8px",overflow:"hidden"},children:(0,L.jsx)(Rhe,{muiTableBodyRowProps:e=>{let{row:t}=e;return{onClick:()=>{!function(e){const t=f[e];J(null===t||void 0===t?void 0:t.id),E(null===t||void 0===t?void 0:t.location),T(null===t||void 0===t?void 0:t.file_name),_(null===t||void 0===t?void 0:t.kb_name),w(!0)}(t.index)}}},columns:ie,data:f,enableRowSelection:!0,state:{rowSelection:p,showSkeletons:r},onRowSelectionChange:h,positionToolbarAlertBanner:"bottom",renderTopToolbarCustomActions:e=>{let{table:t}=e;return(0,L.jsx)(ue.A,{sx:{display:"flex",gap:"1rem",p:"0.5rem",flexWrap:"wrap"},children:s.split(",").includes("Admin")&&(0,L.jsx)(Yx.A,{disabled:0===Object.keys(p).length,onClick:()=>U(!0),startIcon:(0,L.jsx)(pfe,{}),variant:"outlined",color:"secondary",children:"Train AI"})})},initialState:{sorting:[{id:"last_modified",desc:!0}]},sx:{borderRadius:"8px",overflow:"hidden"},muiTablePaginationProps:{labelRowsPerPage:""},enableFullScreenToggle:!0,renderToolbarInternalActions:e=>{let{table:t}=e;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Pa.A,{onClick:()=>t.setShowGlobalFilter(!t.getState().showGlobalFilter),children:(0,L.jsx)(Dhe.A,{})}),(0,L.jsx)(Pa.A,{onClick:()=>t.setShowColumnFilters(!t.getState().showColumnFilters),children:(0,L.jsx)(Lhe,{})}),(0,L.jsx)(Pa.A,{onClick:()=>b(!0),disabled:0===Object.keys(p).length,children:(0,L.jsx)(ow,{})})]})}})}),(0,L.jsx)(Ls.A,{open:g,onClose:()=>{y(!1),b(!1)},"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",sx:{},children:(0,L.jsx)(ue.A,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:(0,L.jsx)("div",{className:"bg-white h-[20vh] md:w-[30vw] w-[90%] p-2 rounded-md flex flex-col justify-center items-center",children:(0,L.jsxs)("div",{className:"flex flex-col justify-center items-start",children:[(0,L.jsx)(Te.A,{variant:"h3",sx:{mx:1},children:"Delete Items"}),(0,L.jsxs)("div",{className:"flex items-center mt-2",children:[(0,L.jsx)(qx,{id:"ok",color:"secondary",value:v,onClick:()=>{y(!v)}}),(0,L.jsx)("label",{htmlFor:"ok",className:"font-semibold",children:"I Understand that deleting items cannot be recovered"})]}),(0,L.jsxs)("div",{className:"flex items-center mt-2",children:[(0,L.jsx)(Yx.A,{color:"secondary",sx:{mr:2},disabled:G,onClick:()=>{y(!1),b(!1)},children:"Cancel"}),(0,L.jsx)(Yx.A,{variant:"outlined",color:"error",disabled:!v||G,onClick:async()=>{W(!0);let e=[];const t=localStorage.getItem("uid"),r=localStorage.getItem("organization");Object.keys(p).map((t=>{e.push(f[t].id)}));const i=new FormData;i.append("organization",r),i.append("uid",t),i.append("org",r),i.append("id",e.join()),await(0,xi.Bf)(i),n(u),await l(u),h({}),y(!1),b(!1),le(),W(!1)},children:G?(0,L.jsx)(dA,{color:"error"}):"Delete"})]})]})})})}),(0,L.jsx)(Ls.A,{open:R,onClose:()=>P(!1),"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",sx:{},children:(0,L.jsx)(ue.A,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:(0,L.jsx)("div",{className:"bg-white h-[25vh] md:w-[30vw] w-[90%] p-8 rounded-md flex flex-col justify-center items-start",children:(0,L.jsxs)("div",{className:"flex flex-col w-full justify-center items-start",children:[(0,L.jsx)(Te.A,{variant:"h3",sx:{mx:1},children:"Edit Knowledge Hub Name"}),(0,L.jsx)(Xa.A,{variant:"outlined",className:"mt-4 mb-3",label:"Enter the new Knowledge Hub name",id:"kbname",color:"secondary",fullWidth:!0,sx:{mr:2},value:j,onChange:e=>M(e.target.value)}),(0,L.jsxs)("div",{className:"flex items-center mt-2",children:[(0,L.jsx)(Yx.A,{color:"error",sx:{mr:2},disabled:r,onClick:()=>{M(""),P(!1)},children:"Cancel"}),(0,L.jsx)(Yx.A,{variant:"outlined",color:"secondary",disabled:r,onClick:async()=>{const e=localStorage.getItem("organization"),t=new FormData;t.append("oldname",D),t.append("newname",j),t.append("organization",e),await(0,xi.Pq)(t),await n(u),await l(u),F(""),O([]),P(!1),M("")},children:"Update Knowledge Hub name"})]})]})})})}
205),(0,L.jsx)(Ls.A,{open:B,onClose:de,"aria-labelledby":"child-modal-title","aria-describedby":"child-modal-description",children:(0,L.jsxs)(ue.A,{sx:{...hfe,width:{xs:"90%",md:"500px"}},children:[(0,L.jsx)(Te.A,{variant:"h3",sx:{fontWeight:"semibold",mb:2},children:"Enter an AI Assistant name"}),(0,L.jsxs)(uw,{children:[(0,L.jsxs)(Zs.A,{onChange:e=>{Y(e.target.value)},value:q,className:"mb-5",variant:"outlined",color:"secondary",children:[(0,L.jsx)(Qs.A,{value:!0,children:"Create new Assistant"}),z.map((e=>(0,L.jsx)(Qs.A,{value:e,children:e})))]}),!0===q&&(0,L.jsx)(Xa.A,{onChange:e=>V(e.target.value),value:$,variant:"outlined",color:"secondary",label:"Enter assistant name here...",sx:{width:"100%",mb:2}}),(0,L.jsxs)(uw,{direction:"row",justifyContent:"flex-end",children:[(0,L.jsx)(Yx.A,{variant:"outlined",sx:{width:"30%"},color:"error",onClick:de,children:"Cancel"}),(0,L.jsx)(Yx.A,{variant:"outlined",sx:{width:"30%",ml:2},color:"secondary",onClick:async()=>{let t=[];Q?t.push(Q):Object.entries(p).map((e=>{t.push(f[e[0]].id)}));let n=null;const r=new Date,i=localStorage.getItem("uid");if($){const a=await d(u,$,t,i,n,r.getTime().toString());if(a.ok)if(de(),se(),a.eid){const t=btoa("asklly.ai"+String(a.eid));e(`/edit?id=${t}`)}else{var o;const t=btoa("asklly.ai"+String(null===a||void 0===a||null===(o=a.res)||void 0===o?void 0:o.id));e(`/edit?id=${t}`)}}else{!0!==q&&K.map((e=>{e.title===q&&(n=e.id)}));const o=await d(u,q,t,i,n,r.getTime());if(o.ok)if(de(),se(),o.eid){const t=btoa("asklly.ai"+String(o.eid));e(`/edit?id=${t}`)}else e("/edit?id=new")}},children:"Create"})]})]})]})}),(0,L.jsx)(tH,{close:se,file:A,openDrawer:x,fileName:k,kbName:S,setOpen:U})]})},mfe=(0,Ve.A)((0,L.jsx)("path",{d:"M3 3h18v18H3z"}),"Square"),gfe=(0,Ve.A)((0,L.jsx)("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3m5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72z"}),"Mic"),bfe=(0,Ve.A)((0,L.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"AddCircleOutline"),vfe=(0,Ve.A)((0,L.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreHoriz"),yfe=(0,Ve.A)((0,L.jsx)("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}),"Done");const xfe=(0,Ns.A)("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);var wfe=function(e){let{i:t,handleDelete:n,shareChat:r,isMobile:o,setShow:a}=e;const{getCachedOrgName:s}=ma(),[l,u]=(0,c.useState)(null),[d,p]=(0,c.useState)(!1),[h,f]=(0,c.useState)(t.chatName),[m,g]=(0,c.useState)(!1),[b,v]=(0,c.useState)(!1),[y,x]=(0,c.useState)(!1),[w,A]=(0,c.useState)(!1),E=(0,c.useRef)(null),[S,_]=(0,c.useState)("");return(0,c.useEffect)((()=>{null!==t&&void 0!==t&&t.api?_(`/api?k=${null===t||void 0===t?void 0:t.chatID}`):_(`/chat-with-bot?id=${t.chatID}`)}),[]),(0,c.useEffect)((()=>{A(d||y)}),[d,y]),(0,L.jsx)(po.A,{onMouseEnter:()=>{x(!0),E.current&&clearTimeout(E.current)},onMouseLeave:()=>{x(!1),d||A(!1)},className:"hover:bg-[#EDE7F6] hover:text-[#5E35B1] rounded-md cursor-pointer",direction:"row",justifyContent:"space-between",alignItems:"center",sx:{p:1,minHeight:"50px"},children:m?(0,L.jsxs)(po.A,{direction:"row",sx:{mt:2,px:1,py:1},children:[(0,L.jsx)(Xa.A,{value:h,disabled:b,onChange:e=>f(e.target.value),variant:"standard"}),(0,L.jsx)(Pa.A,{onClick:async()=>{v(!0);const e=localStorage.getItem("uid"),n=await s(),r=new FormData;r.append("organization",n),r.append("name",h),r.append("userID",e),r.append("chatId",t.chatID);await(0,xi.YP)(r);g(!1),p(!1),u(null),v(!1)},disabled:b,children:b?(0,L.jsx)("div",{className:"",children:(0,L.jsx)("svg",{className:"svg",viewBox:"25 25 50 50",children:(0,L.jsx)("circle",{className:"circle",r:"20",cy:"50",cx:"50"})})}):(0,L.jsx)(yfe,{sx:{color:"lightgreen"}})}),(0,L.jsx)(Pa.A,{onClick:()=>{p(!1),u(null),g(!1)},disabled:b,children:(0,L.jsx)(Dw,{sx:{color:"red"}})})]}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(i.N_,{to:S,style:{textDecoration:"none",color:"inherit",display:"flex",alignItems:"center",flexGrow:1},onClick:e=>{l&&e.preventDefault(),o&&a(!1)},className:"w-full",children:(0,L.jsx)(Te.A,{variant:"body1",sx:{ml:0},children:h})},t.chatID),(0,L.jsxs)("div",{style:{width:"40px",display:"flex",justifyContent:"flex-end"},children:[" ",w&&(0,L.jsx)(Pa.A,{id:"demo-positioned-button","aria-controls":d?"demo-positioned-menu":void 0,"aria-haspopup":"true","aria-expanded":d?"true":void 0,onClick:e=>{e.stopPropagation(),p(!0),u(e.currentTarget)},onMouseDown:e=>e.stopPropagation(),children:(0,L.jsx)(vfe,{})})]}),(0,L.jsxs)(pA.A,{id:"demo-positioned-menu","aria-labelledby":"demo-positioned-button",anchorEl:l,open:d,onClose:()=>{p(!1),u(null),E.current=setTimeout((()=>{y||A(!1)}),100)},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:[(0,L.jsxs)(Qs.A,{onClick:r,children:[(0,L.jsx)(xfe,{size:20}),"\xa0\xa0\xa0 Share"]}),(0,L.jsxs)(Qs.A,{onClick:()=>g(!0),children:[(0,L.jsx)(Mhe,{}),"\xa0\xa0\xa0 Rename"]}),(0,L.jsxs)(Qs.A,{onClick:()=>n(t.chatID),children:[(0,L.jsx)(ow,{sx:{color:"red"}}),"\xa0\xa0\xa0 Delete"]})]})]})})};const Afe="object"===typeof self?self:globalThis,Efe=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);const[o,a]=t[i];switch(o){case 0:case-1:return n(a,i);case 1:{const e=n([],i);
vendor: 2,019 bytes, line 205
205for(const t of a)e.push(r(t));return e}case 2:{const e=n({},i);for(const[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),i);case 4:{const{source:e,flags:t}=a;return n(new RegExp(e,t),i)}case 5:{const e=n(new Map,i);for(const[t,n]of a)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,i);for(const t of a)e.add(r(t));return e}case 7:{const{name:e,message:t}=a;return n(new Afe[e](t),i)}case 8:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i)}return n(new Afe[o](a),i)};return r})(new Map,e)(0),Sfe="",{toString:_fe}={},{keys:kfe}=Object,Tfe=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=_fe.call(e).slice(8,-1);switch(n){case"Array":return[1,Sfe];case"Object":return[2,Sfe];case"Date":return[3,Sfe];case"RegExp":return[4,Sfe];case"Map":return[5,Sfe];case"Set":return[6,Sfe]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Cfe=e=>{let[t,n]=e;return 0===t&&("function"===n||"symbol"===n)},Ofe=function(e){let{json:t,lossy:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=[];return((e,t,n,r)=>{const i=(e,t)=>{const i=r.push(e)-1;return n.set(t,i),i},o=r=>{if(n.has(r))return n.get(r);let[a,s]=Tfe(r);switch(a){case 0:{let t=r;switch(s){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return i([-1],r)}return i([a,t],r)}case 1:{if(s)return i([s,[...r]],r);const e=[],t=i([a,e],r);for(const n of r)e.push(o(n));return t}case 2:{if(s)switch(s){case"BigInt":return i([s,r.toString()],r);case"Boolean":case"Number":case"String":return i([s,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());const n=[],l=i([a,n],r);for(const t of kfe(r))!e&&Cfe(Tfe(r[t]))||n.push([o(t),o(r[t])]);return l}case 3:return i([a,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return i([a,{source:e,flags:t}],r)}case 5:{const t=[],n=i([a,t],r);for(const[i,a]of r)(e||!Cfe(Tfe(i))&&!Cfe(Tfe(a)))&&t.push([o(i),o(a)]);return n}case 6:{const t=[],n=i([a,t],r);
vendor: 4,617 bytes, line 205
205for(const i of r)!e&&Cfe(Tfe(i))||t.push(o(i));return n}}const{message:l}=r;return i([a,{name:s,message:l}],r)};return o})(!(t||n),!!t,new Map,r)(e),r};var Nfe="function"===typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Efe(Ofe(e,t)):structuredClone(e):(e,t)=>Efe(Ofe(e,t));class Ife{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function Rfe(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new Ife(n,r,t)}function Pfe(e){return e.toLowerCase()}Ife.prototype.property={},Ife.prototype.normal={},Ife.prototype.space=null;class jfe{constructor(e,t){this.property=e,this.attribute=t}}jfe.prototype.space=null,jfe.prototype.boolean=!1,jfe.prototype.booleanish=!1,jfe.prototype.overloadedBoolean=!1,jfe.prototype.number=!1,jfe.prototype.commaSeparated=!1,jfe.prototype.spaceSeparated=!1,jfe.prototype.commaOrSpaceSeparated=!1,jfe.prototype.mustUseProperty=!1,jfe.prototype.defined=!1;let Mfe=0;const Dfe=$fe(),Lfe=$fe(),Ffe=$fe(),Bfe=$fe(),Ufe=$fe(),zfe=$fe(),Hfe=$fe();function $fe(){return 2**++Mfe}const Vfe=Object.keys(t);class Gfe extends jfe{constructor(e,n,r,i){let o=-1;if(super(e,n),Wfe(this,"space",i),"number"===typeof r)for(;++o<Vfe.length;){const e=Vfe[o];Wfe(this,Vfe[o],(r&t[e])===t[e])}}}function Wfe(e,t,n){n&&(e[t]=n)}Gfe.prototype.defined=!0;const qfe={}.hasOwnProperty;function Yfe(e){const t={},n={};let r;for(r in e.properties)if(qfe.call(e.properties,r)){const i=e.properties[r],o=new Gfe(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Pfe(r)]=r,n[Pfe(o.attribute)]=r}return new Ife(t,n,e.space)}const Kfe=Yfe({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Xfe=Yfe({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Zfe(e,t){return t in e?e[t]:t}function Qfe(e,t){return Zfe(e,t.toLowerCase())}const Jfe=Yfe({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Qfe,properties:{xmlns:null,xmlnsXLink:null}}),eme=Yfe({transform(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Lfe,ariaAutoComplete:null,ariaBusy:Lfe,ariaChecked:Lfe,ariaColCount:Bfe,ariaColIndex:Bfe,ariaColSpan:Bfe,ariaControls:Ufe,ariaCurrent:null,ariaDescribedBy:Ufe,ariaDetails:null,ariaDisabled:Lfe,ariaDropEffect:Ufe,ariaErrorMessage:null,ariaExpanded:Lfe,ariaFlowTo:Ufe,ariaGrabbed:Lfe,ariaHasPopup:null,ariaHidden:Lfe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ufe,ariaLevel:Bfe,ariaLive:null,ariaModal:Lfe,ariaMultiLine:Lfe,ariaMultiSelectable:Lfe,ariaOrientation:null,ariaOwns:Ufe,ariaPlaceholder:null,ariaPosInSet:Bfe,ariaPressed:Lfe,ariaReadOnly:Lfe,ariaRelevant:null,ariaRequired:Lfe,ariaRoleDescription:Ufe,ariaRowCount:Bfe,ariaRowIndex:Bfe,ariaRowSpan:Bfe,ariaSelected:Lfe,ariaSetSize:Bfe,ariaSort:null,ariaValueMax:Bfe,ariaValueMin:Bfe,ariaValueNow:Bfe,ariaValueText:null,role:null}}),tme=Yfe({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Qfe,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:zfe,acceptCharset:Ufe,accessKey:Ufe,action:null,allow:null,allowFullScreen:Dfe,allowPaymentRequest:Dfe,allowUserMedia:Dfe,alt:null,as:null,async:Dfe,autoCapitalize:null,autoComplete:Ufe,autoFocus:Dfe,autoPlay:Dfe,blocking:Ufe,capture:null,charSet:null,checked:Dfe,cite:null,className:Ufe,cols:Bfe,colSpan:null,content:null,contentEditable:Lfe,controls:Dfe,controlsList:Ufe,coords:Bfe|zfe,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Dfe,defer:Dfe,dir:null,dirName:null,disabled:Dfe,download:Ffe,draggable:Lfe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Dfe,formTarget:null,headers:Ufe,height:Bfe,hidden:Dfe,high:Bfe,href:null,hrefLang:null,htmlFor:Ufe,httpEquiv:Ufe,id:null,imageSizes:null,imageSrcSet:null,inert:Dfe,inputMode:null,integrity:null,is:null,isMap:Dfe,itemId:null,itemProp:Ufe,itemRef:Ufe,itemScope:Dfe,itemType:Ufe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Dfe,low:Bfe,manifest:null,max:null,maxLength:Bfe,media:null,method:null,min:null,minLength:Bfe,multiple:Dfe,muted:Dfe,name:null,nonce:null,noModule:Dfe,noValidate:Dfe,onAbort:null,onAfterPrint:null,onAuxCl
205ick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Dfe,optimum:Bfe,pattern:null,ping:Ufe,placeholder:null,playsInline:Dfe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Dfe,referrerPolicy:null,rel:Ufe,required:Dfe,reversed:Dfe,rows:Bfe,rowSpan:Bfe,sandbox:Ufe,scope:null,scoped:Dfe,seamless:Dfe,selected:Dfe,shadowRootClonable:Dfe,shadowRootDelegatesFocus:Dfe,shadowRootMode:null,shape:null,size:Bfe,sizes:null,slot:null,span:Bfe,spellCheck:Lfe,src:null,
205srcDoc:null,srcLang:null,srcSet:null,start:Bfe,step:null,style:null,tabIndex:Bfe,target:null,title:null,translate:null,type:null,typeMustMatch:Dfe,useMap:null,value:Lfe,width:Bfe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ufe,axis:null,background:null,bgColor:null,border:Bfe,borderColor:null,bottomMargin:Bfe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Dfe,declare:Dfe,event:null,face:null,frame:null,frameBorder:null,hSpace:Bfe,leftMargin:Bfe,link:null,longDesc:null,lowSrc:null,marginHeight:Bfe,marginWidth:Bfe,noResize:Dfe,noHref:Dfe,noShade:Dfe,noWrap:Dfe,object:null,profile:null,prompt:null,rev:null,rightMargin:Bfe,rules:null,scheme:null,scrolling:Lfe,standby:null,summary:null,text:null,topMargin:Bfe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Bfe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Dfe,disableRemotePlayback:Dfe,prefix:null,property:null,results:Bfe,security:null,unselectable:null}}),nme=Yfe({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
205-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Zfe,properties:{about:Hfe,accentHeight:Bfe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Bfe,amplitude:Bfe,arabicForm:null,ascent:Bfe,attributeName:null,attributeType:null,azimuth:Bfe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Bfe,by:null,calcMode:null,capHeight:Bfe,className:Ufe,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Bfe,diffuseConstant:Bfe,direction:null,display:null,dur:null,divisor:Bfe,dominantBaseline:null,download:Dfe,dx:null,dy:null,edgeMode:null,editable:null,elevation:Bfe,enableBackground:null,end:null,event:null,exponent:Bfe,externalResourcesRequired:null,fill:null,fillOpacity:Bfe,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:zfe,g2:zfe,glyphName:zfe,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Bfe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Bfe,horizOriginX:Bfe,horizOriginY:Bfe,id:null,ideographic:Bfe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Bfe,k:Bfe,k1:Bfe,k2:Bfe,k3:Bfe,k4:
vendor: 5,934 bytes, line 205
205Bfe,kernelMatrix:Hfe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Bfe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Bfe,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Bfe,overlineThickness:Bfe,paintOrder:null,panose1:null,path:null,pathLength:Bfe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ufe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Bfe,pointsAtY:Bfe,pointsAtZ:Bfe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Hfe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Hfe,rev:Hfe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Hfe,requiredFeatures:Hfe,requiredFonts:Hfe,requiredFormats:Hfe,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Bfe,specularExponent:Bfe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Bfe,strikethroughThickness:Bfe,string:null,stroke:null,strokeDashArray:Hfe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Bfe,strokeOpacity:Bfe,strokeWidth:null,style:null,surfaceScale:Bfe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Hfe,tabIndex:Bfe,tableValues:null,target:null,targetX:Bfe,targetY:Bfe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Hfe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Bfe,underlineThickness:Bfe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Bfe,values:null,vAlphabetic:Bfe,vMathematical:Bfe,vectorEffect:null,vHanging:Bfe,vIdeographic:Bfe,version:null,vertAdvY:Bfe,vertOriginX:Bfe,vertOriginY:Bfe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Bfe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),rme=Rfe([Xfe,Kfe,Jfe,eme,tme],"html"),ime=Rfe([Xfe,Kfe,Jfe,eme,nme],"svg");function ome(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){-1===r&&(r=n.length,o=!0);const e=n.slice(i,r).trim();!e&&o||t.push(e),i=r+1,r=n.indexOf(",",i)}return t}function ame(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}const sme=/[#.]/g;const lme=/^data[-\w.:]+$/i,cme=/-[a-z]/g,ume=/[A-Z]/g;function dme(e,t){const n=Pfe(t);let r=t,i=jfe;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&lme.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(cme,hme);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!cme.test(e)){let n=e.replace(ume,pme);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=Gfe}return new i(r,t)}function pme(e){return"-"+e.toLowerCase()}function hme(e){return e.charAt(1).toUpperCase()}function fme(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function mme(e){return e.join(" ").trim()}const gme={}.hasOwnProperty;function bme(e,t,n){const r=n&&function(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}(n);return function(n,i){let o,a=-1;for(var s=arguments.length,l=new Array(s>2?s-2:0),c=2;c<s;c++)l[c-2]=arguments[c];if(void 0===n||null===n){o={type:"root",children:[]};const e=i;l.unshift(e)}else if(o=function(e,t){const n=e||"",r={};let i,o,a=0;for(;a<n.length;){sme.lastIndex=a;const e=sme.exec(n),t=n.slice(a,e?e.index:n.length);t&&(i?"#"===i?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:o=t,a+=t.length),e&&(i=e[0],a++)}return{type:"element",tagName:o||t||"div",properties:r,children:[]}}(n,t),o.tagName=o.tagName.toLowerCase(),r&&gme.call(r,o.tagName)&&(o.tagName=r[o.tagName]),function(e){if(null===e||"object"!==typeof e||Array.isArray(e))return!0;
205if("string"!==typeof e.type)return!1;const t=e,n=Object.keys(e);for(const r of n){const e=t[r];if(e&&"object"===typeof e){if(!Array.isArray(e))return!0;const t=e;for(const e of t)if("number"!==typeof e&&"string"!==typeof e)return!0}}if("children"in e&&Array.isArray(e.children))return!0;return!1}(i))l.unshift(i);else{let t;for(t in i)gme.call(i,t)&&vme(e,o.properties,t,i[t])}for(;++a<l.length;)yme(o.children,l[a]);return"element"===o.type&&"template"===o.tagName&&(o.content={type:"root",children:o.children},o.children=[]),o}}function vme(e,t,n,r){const i=dme(e,n);let o,a=-1;if(void 0!==r&&null!==r){if("number"===typeof r){if(Number.isNaN(r))return;o=r}else o="boolean"===typeof r?r:"string"===typeof r?i.spaceSeparated?fme(r):i.commaSeparated?ome(r):i.commaOrSpaceSeparated?fme(ome(r).join(" ")):xme(i,i.property,r):Array.isArray(r)?r.concat():"style"===i.property?function(e){const t=[];let n;for(n in e)gme.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}(r):String(r);if(Array.isArray(o)){const e=[];for(;++a<o.length;){const t=xme(i,i.property,o[a]);e[a]=t}o=e}if("className"===i.property&&Array.isArray(t.className)){const e=o;o=t.className.concat(e)}t[i.property]=o}}function yme(e,t){let n=-1;if(void 0===t||null===t);else if("string"===typeof t||"number"===typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++n<t.length;)yme(e,t[n]);else{if("object"!==typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?yme(e,t.children):e.push(t)}}function xme(e,t,n){if("string"===typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||Pfe(n)===Pfe(t)))return!0}return n}const wme=bme(rme,"div"),Ame=bme(ime,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]);function Eme(e,t){const n=e.indexOf("\r",t),r=e.indexOf("\n",t);return-1===r?n:-1===n||n+1===r?r:n<r?n:r}const Sme={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/"},_me={}.hasOwnProperty,kme=Object.prototype;function Tme(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Ome(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r&&("quirks"===r.mode||"limited-quirks"===r.mode);if(n={type:"root",children:Cme(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const t=String(e.file),r=function(e){const t=String(e),n=[];return{toOffset:function(e){if(e&&"number"===typeof e.line&&"number"===typeof e.column&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){for(;n.length<e.line;){const e=n[n.length-1],r=Eme(t,e),i=-1===r?t.length+1:r+1;if(e===i)break;n.push(i)}const r=(e.line>1?n[e.line-2]:0)+e.column-1;if(r<n[e.line-1])return r}},toPoint:function(e){if("number"===typeof e&&e>-1&&e<=t.length){let r=0;for(;;){let i=n[r];if(void 0===i){const e=Eme(t,n[r-1]);i=-1===e?t.length+1:e+1,n[r]=i}if(i>e)return{line:r+1,column:e-(r>0?n[r-1]:0)+1,offset:e};r++}}}}}(t),i=r.toPoint(0),o=r.toPoint(t.length);n.position={start:i,end:o}}return n}case"#documentType":return n={type:"doctype"},Ome(e,t,n),n;case"#text":{const r=t;return n={type:"text",value:r.value},Ome(e,r,n),n}default:return n=function(e,t){const n=e.schema;e.schema=t.namespaceURI===Sme.svg?ime:rme;let r=-1;const i={};for(;++r<t.attrs.length;){const e=t.attrs[r],n=(e.prefix?e.prefix+":":"")+e.name;_me.call(kme,n)||(i[n]=e.value)}const o="svg"===e.schema.space?Ame:wme,a=o(t.tagName,i,Cme(e,t.childNodes));if(Ome(e,t,a),"template"===a.tagName){const n=t,r=n.sourceCodeLocation,i=r&&r.startTag&&Nme(r.startTag),o=r&&r.endTag&&Nme(r.endTag),s=Tme(e,n.content);i&&o&&e.file&&(s.position={start:i.end,end:o.start}),a.content=s}return e.schema=n,a}(e,t),n}}function Cme(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=Tme(e,t[n]);r.push(i)}return r}function Ome(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=function(e,t,n){const r=Nme(n);if("element"===t.type){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const r={};let i;if(n.attrs)for(i in n.attrs)_me.call(n.attrs,i)&&(r[dme(e.schema,i).property]=Nme(n.attrs[i]));n.startTag;const o=Nme(n.startTag),a=n.endTag?Nme(n.endTag):void 0,s={opening:o};a&&(s.closing=a),s.properties=r,t.data={position:s}}}return r}(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function Nme(e){const t=Ime({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Ime({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Ime(e){return e.line&&e.column?e:void 0}const Rme={}.hasOwnProperty;function Pme(e,t){const n=t||{};
vendor: 4,627 bytes, line 205
205function r(t){let n=r.invalid;const i=r.handlers;if(t&&Rme.call(t,e)){const o=String(t[e]);n=Rme.call(i,o)?i[o]:r.unknown}if(n){for(var o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return n.call(this,t,...a)}}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const jme={},Mme={}.hasOwnProperty,Dme=Pme("type",{handlers:{root:function(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Fme(e.children,n,t),Bme(e,n),n},element:function(e,t){const n=t;let r=n;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===n.space&&(r=ime);const i=[];let o;if(e.properties)for(o in e.properties)if("children"!==o&&Mme.call(e.properties,o)){const t=Lme(r,o,e.properties[o]);t&&i.push(t)}const a=r.space;const s={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:Sme[a],childNodes:[],parentNode:null};s.childNodes=Fme(e.children,s,r),Bme(e,s),"template"===e.tagName&&e.content&&(s.content=function(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Fme(e.children,n,t),Bme(e,n),n}(e.content,r));return s},text:function(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Bme(e,t),t},comment:function(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Bme(e,t),t},doctype:function(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Bme(e,t),t}}});function Lme(e,t,n){const r=dme(e,t);if(!1===n||null===n||void 0===n||"number"===typeof n&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?ame(n):mme(n));const i={name:r.attribute,value:!0===n?"":String(n)};if(r.space&&"html"!==r.space&&"svg"!==r.space){const e=i.name.indexOf(":");e<0?i.prefix="":(i.name=i.name.slice(e+1),i.prefix=r.attribute.slice(0,e)),i.namespace=Sme[r.space]}return i}function Fme(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const o=Dme(e[r],n);o.parentNode=t,i.push(o)}return i}function Bme(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const Ume=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],zme=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Hme="\ufffd";var $me,Vme;(Vme=$me||($me={}))[Vme.EOF=-1]="EOF",Vme[Vme.NULL=0]="NULL",Vme[Vme.TABULATION=9]="TABULATION",Vme[Vme.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",Vme[Vme.LINE_FEED=10]="LINE_FEED",Vme[Vme.FORM_FEED=12]="FORM_FEED",Vme[Vme.SPACE=32]="SPACE",Vme[Vme.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",Vme[Vme.QUOTATION_MARK=34]="QUOTATION_MARK",Vme[Vme.AMPERSAND=38]="AMPERSAND",Vme[Vme.APOSTROPHE=39]="APOSTROPHE",Vme[Vme.HYPHEN_MINUS=45]="HYPHEN_MINUS",Vme[Vme.SOLIDUS=47]="SOLIDUS",Vme[Vme.DIGIT_0=48]="DIGIT_0",Vme[Vme.DIGIT_9=57]="DIGIT_9",Vme[Vme.SEMICOLON=59]="SEMICOLON",Vme[Vme.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",Vme[Vme.EQUALS_SIGN=61]="EQUALS_SIGN",Vme[Vme.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",Vme[Vme.QUESTION_MARK=63]="QUESTION_MARK",Vme[Vme.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",Vme[Vme.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",Vme[Vme.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",Vme[Vme.GRAVE_ACCENT=96]="GRAVE_ACCENT",Vme[Vme.LATIN_SMALL_A=97]="LATIN_SMALL_A",Vme[Vme.LATIN_SMALL_Z=122]="LATIN_SMALL_Z";const Gme="--",Wme="[CDATA[",qme="doctype",Yme="script",Kme="public",Xme="system";function Zme(e){return e>=55296&&e<=57343}function Qme(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function Jme(e){return e>=64976&&e<=65007||zme.has(e)}var ege,tge;(tge=ege||(ege={})).controlCharacterInInputStream="control-character-in-input-stream",tge.noncharacterInInputStream="noncharacter-in-input-stream",tge.surrogateInInputStream="surrogate-in-input-stream",tge.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",tge.endTagWithAttributes="end-tag-with-attributes",tge.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",tge.unexpectedSolidusInTag="unexpected-solidus-in-tag",tge.unexpectedNullCharacter="unexpected-null-character",tge.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",tge.invali
vendor: 6,613 bytes, line 205
205dFirstCharacterOfTagName="invalid-first-character-of-tag-name",tge.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",tge.missingEndTagName="missing-end-tag-name",tge.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",tge.unknownNamedCharacterReference="unknown-named-character-reference",tge.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",tge.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",tge.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",tge.eofBeforeTagName="eof-before-tag-name",tge.eofInTag="eof-in-tag",tge.missingAttributeValue="missing-attribute-value",tge.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",tge.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",tge.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",tge.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",tge.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",tge.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",tge.missingDoctypePublicIdentifier="missing-doctype-public-identifier",tge.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",tge.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",tge.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",tge.cdataInHtmlContent="cdata-in-html-content",tge.incorrectlyOpenedComment="incorrectly-opened-comment",tge.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",tge.eofInDoctype="eof-in-doctype",tge.nestedComment="nested-comment",tge.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",tge.eofInComment="eof-in-comment",tge.incorrectlyClosedComment="incorrectly-closed-comment",tge.eofInCdata="eof-in-cdata",tge.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",tge.nullCharacterReference="null-character-reference",tge.surrogateCharacterReference="surrogate-character-reference",tge.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",tge.controlCharacterReference="control-character-reference",tge.noncharacterCharacterReference="noncharacter-character-reference",tge.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",tge.missingDoctypeName="missing-doctype-name",tge.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",tge.duplicateAttribute="duplicate-attribute",tge.nonConformingDoctype="non-conforming-doctype",tge.missingDoctype="missing-doctype",tge.misplacedDoctype="misplaced-doctype",tge.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",tge.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",tge.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",tge.openElementsLeftAfterEof="open-elements-left-after-eof",tge.abandonedHeadElementChild="abandoned-head-element-child",tge.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",tge.nestedNoscriptInHead="nested-noscript-in-head",tge.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text";class nge{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){const{line:n,col:r,offset:i}=this,o=r+t,a=i+t;return{code:e,startLine:n,endLine:n,startCol:o,endCol:o,startOffset:a,endOffset:a}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(function(e){return e>=56320&&e<=57343}(t))return this.pos++,this._addGap(),1024*(e-55296)+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,$me.EOF;return this._err(ege.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let n=0;n<e.length;n++){if((32|this.html.charCodeAt(this.pos+n))!==e.charCodeAt(n))return!1}return!0}peek(e){const t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,$me.EOF;const n=this.html.charCodeAt(t);return n===$me.CARRIAGE_RETURN?$me.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,$me.EOF;let e=this.html.charCodeAt(this.pos);if(e===$me.CARRIAGE_RETURN)return this.isEol=!0,this.skipNextNewLine=!0,$me.LINE_FEED;if(e===$me.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine))return this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance();this.skipNextNewLine=!1,Zme(e)&&(e=this._processSurrogate(e));return null===this.handler.onParseError||e>31&&e<127||e===$me.LINE_FEED||e===$me.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){Qme(e)?this._err(ege.controlCharacterInInputStream):Jme(e)&&this._err(ege.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var rge,ige;function oge(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}(ige=rge||(rge={}))[ige.CHARACTER=0]="CHARACTER",ige[ige.NULL_CHARACTER=1]="NULL_CHARACTER",
205ige[ige.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",ige[ige.START_TAG=3]="START_TAG",ige[ige.END_TAG=4]="END_TAG",ige[ige.COMMENT=5]="COMMENT",ige[ige.DOCTYPE=6]="DOCTYPE",ige[ige.EOF=7]="EOF",ige[ige.HIBERNATION=8]="HIBERNATION";var age,sge=new Uint16Array('\u1d41<\xd5\u0131\u028a\u049d\u057b\u05d0\u0675\u06de\u07a2\u07d6\u080f\u0a4a\u0a91\u0da1\u0e6d\u0f09\u0f26\u10ca\u1228\u12e1\u1415\u149d\u14c3\u14df\u1525\0\0\0\0\0\0\u156b\u16cd\u198d\u1c12\u1ddd\u1f7e\u2060\u21b0\u228d\u23c0\u23fb\u2442\u2824\u2912\u2d08\u2e48\u2fce\u3016\u32ba\u3639\u37ac\u38fe\u3a28\u3a71\u3ae0\u3b2e\u0800EMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig\u803b\xc6\u40c6P\u803b&\u4026cute\u803b\xc1\u40c1reve;\u4102\u0100iyx}rc\u803b\xc2\u40c2;\u4410r;\uc000\ud835\udd04rave\u803b\xc0\u40c0pha;\u4391acr;\u4100d;\u6a53\u0100gp\x9d\xa1on;\u4104f;\uc000\ud835\udd38plyFunction;\u6061ing\u803b\xc5\u40c5\u0100cs\xbe\xc3r;\uc000\ud835\udc9cign;\u6254ilde\u803b\xc3\u40c3ml\u803b\xc4\u40c4\u0400aceforsu\xe5\xfb\xfe\u0117\u011c\u0122\u0127\u012a\u0100cr\xea\xf2kslash;\u6216\u0176\xf6\xf8;\u6ae7ed;\u6306y;\u4411\u0180crt\u0105\u010b\u0114ause;\u6235noullis;\u612ca;\u4392r;\uc000\ud835\udd05pf;\uc000\ud835\udd39eve;\u42d8c\xf2\u0113mpeq;\u624e\u0700HOacdefhilorsu\u014d\u0151\u0156\u0180\u019e\u01a2\u01b5\u01b7\u01ba\u01dc\u0215\u0273\u0278\u027ecy;\u4427PY\u803b\xa9\u40a9\u0180cpy\u015d\u0162\u017aute;\u4106\u0100;i\u0167\u0168\u62d2talDifferentialD;\u6145leys;\u612d\u0200aeio\u0189\u018e\u0194\u0198ron;\u410cdil\u803b\xc7\u40c7rc;\u4108nint;\u6230ot;\u410a\u0100dn\u01a7\u01adilla;\u40b8terDot;\u40b7\xf2\u017fi;\u43a7rcle\u0200DMPT\u01c7\u01cb\u01d1\u01d6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01e2\u01f8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020foubleQuote;\u601duote;\u6019\u0200lnpu\u021e\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6a74\u0180git\u022f\u0236\u023aruent;\u6261nt;\u622fourIntegral;\u622e\u0100fr\u024c\u024e;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6a2fcr;\uc000\ud835\udc9ep\u0100;C\u0284\u0285\u62d3ap;\u624d\u0580DJSZacefios\u02a0\u02ac\u02b0\u02b4\u02b8\u02cb\u02d7\u02e1\u02e6\u0333\u048d\u0100;o\u0179\u02a5trahd;\u6911cy;\u4402cy;\u4405cy;\u440f\u0180grs\u02bf\u02c4\u02c7ger;\u6021r;\u61a1hv;\u6ae4\u0100ay\u02d0\u02d5ron;\u410e;\u4414l\u0100;t\u02dd\u02de\u6207a;\u4394r;\uc000\ud835\udd07\u0100af\u02eb\u0327\u0100cm\u02f0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031ccute;\u40b4o\u0174\u030b\u030d;\u42d9bleAcute;\u42ddrave;\u4060ilde;\u42dcond;\u62c4ferentialD;\u6146\u0470\u033d\0\0\0\u0342\u0354\0\u0405f;\uc000\ud835\udd3b\u0180;DE\u0348\u0349\u034d\u40a8ot;\u60dcqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03cf\u03e2\u03f8ontourIntegra\xec\u0239o\u0274\u0379\0\0\u037b\xbb\u0349nArrow;\u61d3\u0100eo\u0387\u03a4ft\u0180ART\u0390\u0396\u03a1rrow;\u61d0ightArrow;\u61d4e\xe5\u02cang\u0100LR\u03ab\u03c4eft\u0100AR\u03b3\u03b9rrow;\u67f8ightArrow;\u67faightArrow;\u67f9ight\u0100AT\u03d8\u03derrow;\u61d2ee;\u62a8p\u0241\u03e9\0\0\u03efrrow;\u61d1ownArrow;\u61d5erticalBar;\u6225n\u0300ABLRTa\u0412\u042a\u0430\u045e\u047f\u037crrow\u0180;BU\u041d\u041e\u0422\u6193ar;\u6913pArrow;\u61f5reve;\u4311eft\u02d2\u043a\0\u0446\0\u0450ightVector;\u6950eeVector;\u695eector\u0100;B\u0459\u045a\u61bdar;\u6956ight\u01d4\u0467\0\u0471eeVector;\u695fector\u0100;B\u047a\u047b\u61c1ar;\u6957ee\u0100;A\u0486\u0487\u62a4rrow;\u61a7\u0100ct\u0492\u0497r;\uc000\ud835\udc9frok;\u4110\u0800NTacdfglmopqstux\u04bd\u04c0\u04c4\u04cb\u04de\u04e2\u04e7\u04ee\u04f5\u0521\u052f\u0536\u0552\u055d\u0560\u0565G;\u414aH\u803b\xd0\u40d0cute\u803b\xc9\u40c9\u0180aiy\u04d2\u04d7\u04dcron;\u411arc\u803b\xca\u40ca;\u442dot;\u4116r;\uc000\ud835\udd08rave\u803b\xc8\u40c8ement;\u6208\u0100ap\u04fa\u04fecr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65fberySmallSquare;\u65ab\u0100gp\u0526\u052aon;\u4118f;\uc000\ud835\udd3csilon;\u4395u\u0100ai\u053c\u0549l\u0100;T\u0542\u0543\u6a75ilde;\u6242librium;\u61cc\u0100ci\u0557\u055ar;\u6130m;\u6a73a;\u4397ml\u803b\xcb\u40cb\u0100ip\u056a\u056fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058d\u05b2\u05ccy;\u4424r;\uc000\ud835\udd09lled\u0253\u0597\0\0\u05a3mallSquare;
205\u65fcerySmallSquare;\u65aa\u0370\u05ba\0\u05bf\0\0\u05c4f;\uc000\ud835\udd3dAll;\u6200riertrf;\u6131c\xf2\u05cb\u0600JTabcdfgorst\u05e8\u05ec\u05ef\u05fa\u0600\u0612\u0616\u061b\u061d\u0623\u066c\u0672cy;\u4403\u803b>\u403emma\u0100;d\u05f7\u05f8\u4393;\u43dcreve;\u411e\u0180eiy\u0607\u060c\u0610dil;\u4122rc;\u411c;\u4413ot;\u4120r;\uc000\ud835\udd0a;\u62d9pf;\uc000\ud835\udd3eeater\u0300EFGLST\u0635\u0644\u064e\u0656\u065b\u0666qual\u0100;L\u063e\u063f\u6265ess;\u62dbullEqual;\u6267reater;\u6aa2ess;\u6277lantEqual;\u6a7eilde;\u6273cr;\uc000\ud835\udca2;\u626b\u0400Aacfiosu\u0685\u068b\u0696\u069b\u069e\u06aa\u06be\u06caRDcy;\u442a\u0100ct\u0690\u0694ek;\u42c7;\u405eirc;\u4124r;\u610clbertSpace;\u610b\u01f0\u06af\0\u06b2f;\u610dizontalLine;\u6500\u0100ct\u06c3\u06c5\xf2\u06a9rok;\u4126mp\u0144\u06d0\u06d8ownHum\xf0\u012fqual;\u624f\u0700EJOacdfgmnostu\u06fa\u06fe\u0703\u0707\u070e\u071a\u071e\u0721\u0728\u0744\u0778\u078b\u078f\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803b\xcd\u40cd\u0100iy\u0713\u0718rc\u803b\xce\u40ce;\u4418ot;\u4130r;\u6111rave\u803b\xcc\u40cc\u0180;ap\u0720\u072f\u073f\u0100cg\u0734\u0737r;\u412ainaryI;\u6148lie\xf3\u03dd\u01f4\u0749\0\u0762\u0100;e\u074d\u074e\u622c\u0100gr\u0753\u0758ral;\u622bsection;\u62c2isible\u0100CT\u076c\u0772omma;\u6063imes;\u6062\u0180gpt\u077f\u0783\u0788on;\u412ef;\uc000\ud835\udd40a;\u4399cr;\u6110ilde;\u4128\u01eb\u079a\0\u079ecy;\u4406l\u803b\xcf\u40cf\u0280cfosu\u07ac\u07b7\u07bc\u07c2\u07d0\u0100iy\u07b1\u07b5rc;\u4134;\u4419r;\uc000\ud835\udd0dpf;\uc000\ud835\udd41\u01e3\u07c7\0\u07ccr;\uc000\ud835\udca5rcy;\u4408kcy;\u4404\u0380HJacfos\u07e4\u07e8\u07ec\u07f1\u07fd\u0802\u0808cy;\u4425cy;\u440cppa;\u439a\u0100ey\u07f6\u07fbdil;\u4136;\u441ar;\uc000\ud835\udd0epf;\uc000\ud835\udd42cr;\uc000\ud835\udca6\u0580JTaceflmost\u0825\u0829\u082c\u0850\u0863\u09b3\u09b8\u09c7\u09cd\u0a37\u0a47cy;\u4409\u803b<\u403c\u0280cmnpr\u0837\u083c\u0841\u0844\u084dute;\u4139bda;\u439bg;\u67ealacetrf;\u6112r;\u619e\u0180aey\u0857\u085c\u0861ron;\u413ddil;\u413b;\u441b\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087e\u08a9\u08b1\u08e0\u08e6\u08fc\u092f\u095b\u0390\u096a\u0100nr\u0883\u088fgleBracket;\u67e8row\u0180;BR\u0899\u089a\u089e\u6190ar;\u61e4ightArrow;\u61c6eiling;\u6308o\u01f5\u08b7\0\u08c3bleBracket;\u67e6n\u01d4\u08c8\0\u08d2eeVector;\u6961ector\u0100;B\u08db\u08dc\u61c3ar;\u6959loor;\u630aight\u0100AV\u08ef\u08f5rrow;\u6194ector;\u694e\u0100er\u0901\u0917e\u0180;AV\u0909\u090a\u0910\u62a3rrow;\u61a4ector;\u695aiangle\u0180;BE\u0924\u0925\u0929\u62b2ar;\u69cfqual;\u62b4p\u0180DTV\u0937\u0942\u094cownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61bfar;\u6958ector\u0100;B\u0965\u0966\u61bcar;\u6952ight\xe1\u039cs\u0300EFGLST\u097e\u098b\u0995\u099d\u09a2\u09adqualGreater;\u62daullEqual;\u6266reater;\u6276ess;\u6aa1lantEqual;\u6a7dilde;\u6272r;\uc000\ud835\udd0f\u0100;e\u09bd\u09be\u62d8ftarrow;\u61daidot;\u413f\u0180npw\u09d4\u0a16\u0a1bg\u0200LRlr\u09de\u09f7\u0a02\u0a10eft\u0100AR\u09e6\u09ecrrow;\u67f5ightArrow;\u67f7ightArrow;\u67f6eft\u0100ar\u03b3\u0a0aight\xe1\u03bfight\xe1\u03caf;\uc000\ud835\udd43er\u0100LR\u0a22\u0a2ceftArrow;\u6199ightArrow;\u6198\u0180cht\u0a3e\u0a40\u0a42\xf2\u084c;\u61b0rok;\u4141;\u626a\u0400acefiosu\u0a5a\u0a5d\u0a60\u0a77\u0a7c\u0a85\u0a8b\u0a8ep;\u6905y;\u441c\u0100dl\u0a65\u0a6fiumSpace;\u605flintrf;\u6133r;\uc000\ud835\udd10nusPlus;\u6213pf;\uc000\ud835\udd44c\xf2\u0a76;\u439c\u0480Jacefostu\u0aa3\u0aa7\u0aad\u0ac0\u0b14\u0b19\u0d91\u0d97\u0d9ecy;\u440acute;\u4143\u0180aey\u0ab4\u0ab9\u0aberon;\u4147dil;\u4145;\u441d\u0180gsw\u0ac7\u0af0\u0b0eative\u0180MTV\u0ad3\u0adf\u0ae8ediumSpace;\u600bhi\u0100cn\u0ae6\u0ad8\xeb\u0ad9eryThi\xee\u0ad9ted\u0100GL\u0af8\u0b06reaterGreate\xf2\u0673essLes\xf3\u0a48Line;\u400ar;\uc000\ud835\udd11\u0200Bnpt\u0b22\u0b28\u0b37\u0b3areak;\u6060BreakingSpace;\u40a0f;\u6115\u0680;CDEGHLNPRSTV\u0b55\u0b56\u0b6a\u0b7c\u0ba1\u0beb\u0c04\u0c5e\u0c84\u0ca6\u0cd8\u0d61\u0d85\u6aec\u0100ou\u0b5b\u0b64ngruent;\u6262pCap;\u626doubleVerticalBar;\u6226\u0180lqx\u0b83\u0b8a\u0b9bement;\u6209ual\u0100;T\u0b92\u0b93\u6260ilde;\uc000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0bb6\u0bb7\u0bbd\u0bc9\u0bd3\u0bd8\u0be5\u626fqual;\u6271ullEqual;\uc000\u2267\u0338reater;\uc000\u226b\u0338ess;\u6279lantEqual;\uc000\u2a7e\u0338ilde;\u6275ump\u0144\u0bf2\u0bfdownHump;\uc000\u224e\u0338qual;\uc000\u224f\u0338e\u0100fs\u0c0a\u0c27tTriangle\u0180;BE\u0c1a\u0c1b\u0c21\u62eaar;\uc000\u29cf\u0338qual;\u62ecs\u0300;EGLST\u0c35\u0c36\u0c3c\u0c44\u0c4b\u0c58\u626equal;\u6270reater;\u6278ess;\uc000\u226a\u0338lantEqual;\uc000\u2a7d\u0338ilde;\u6274ested\u0100GL\u0c68\u0c79reaterGreater;\uc000\u2aa2\u0338essLess;\uc000\u2aa1\u0338recedes\u0180;ES\u0c92\u0c93\u0c9b\u6280qual;\uc000\u2aaf\u0338lantEqual;\u62e0\u0100ei\u0cab\u0cb9verseElement;\u620cghtTriangle\u0180;BE\u0ccb\u0ccc\u0cd2\u62ebar;
205\uc000\u29d0\u0338qual;\u62ed\u0100qu\u0cdd\u0d0cuareSu\u0100bp\u0ce8\u0cf9set\u0100;E\u0cf0\u0cf3\uc000\u228f\u0338qual;\u62e2erset\u0100;E\u0d03\u0d06\uc000\u2290\u0338qual;\u62e3\u0180bcp\u0d13\u0d24\u0d4eset\u0100;E\u0d1b\u0d1e\uc000\u2282\u20d2qual;\u6288ceeds\u0200;EST\u0d32\u0d33\u0d3b\u0d46\u6281qual;\uc000\u2ab0\u0338lantEqual;\u62e1ilde;\uc000\u227f\u0338erset\u0100;E\u0d58\u0d5b\uc000\u2283\u20d2qual;\u6289ilde\u0200;EFT\u0d6e\u0d6f\u0d75\u0d7f\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uc000\ud835\udca9ilde\u803b\xd1\u40d1;\u439d\u0700Eacdfgmoprstuv\u0dbd\u0dc2\u0dc9\u0dd5\u0ddb\u0de0\u0de7\u0dfc\u0e02\u0e20\u0e22\u0e32\u0e3f\u0e44lig;\u4152cute\u803b\xd3\u40d3\u0100iy\u0dce\u0dd3rc\u803b\xd4\u40d4;\u441eblac;\u4150r;\uc000\ud835\udd12rave\u803b\xd2\u40d2\u0180aei\u0dee\u0df2\u0df6cr;\u414cga;\u43a9cron;\u439fpf;\uc000\ud835\udd46enCurly\u0100DQ\u0e0e\u0e1aoubleQuote;\u601cuote;\u6018;\u6a54\u0100cl\u0e27\u0e2cr;\uc000\ud835\udcaaash\u803b\xd8\u40d8i\u016c\u0e37\u0e3cde\u803b\xd5\u40d5es;\u6a37ml\u803b\xd6\u40d6er\u0100BP\u0e4b\u0e60\u0100ar\u0e50\u0e53r;\u603eac\u0100ek\u0e5a\u0e5c;\u63deet;\u63b4arenthesis;\u63dc\u0480acfhilors\u0e7f\u0e87\u0e8a\u0e8f\u0e92\u0e94\u0e9d\u0eb0\u0efcrtialD;\u6202y;\u441fr;\uc000\ud835\udd13i;\u43a6;\u43a0usMinus;\u40b1\u0100ip\u0ea2\u0eadncareplan\xe5\u069df;\u6119\u0200;eio\u0eb9\u0eba\u0ee0\u0ee4\u6abbcedes\u0200;EST\u0ec8\u0ec9\u0ecf\u0eda\u627aqual;\u6aaflantEqual;\u627cilde;\u627eme;\u6033\u0100dp\u0ee9\u0eeeuct;\u620fortion\u0100;a\u0225\u0ef9l;\u621d\u0100ci\u0f01\u0f06r;\uc000\ud835\udcab;\u43a8\u0200Ufos\u0f11\u0f16\u0f1b\u0f1fOT\u803b
vendor: 37,111 bytes, line 205
205"\u4022r;\uc000\ud835\udd14pf;\u611acr;\uc000\ud835\udcac\u0600BEacefhiorsu\u0f3e\u0f43\u0f47\u0f60\u0f73\u0fa7\u0faa\u0fad\u1096\u10a9\u10b4\u10bearr;\u6910G\u803b\xae\u40ae\u0180cnr\u0f4e\u0f53\u0f56ute;\u4154g;\u67ebr\u0100;t\u0f5c\u0f5d\u61a0l;\u6916\u0180aey\u0f67\u0f6c\u0f71ron;\u4158dil;\u4156;\u4420\u0100;v\u0f78\u0f79\u611cerse\u0100EU\u0f82\u0f99\u0100lq\u0f87\u0f8eement;\u620builibrium;\u61cbpEquilibrium;\u696fr\xbb\u0f79o;\u43a1ght\u0400ACDFTUVa\u0fc1\u0feb\u0ff3\u1022\u1028\u105b\u1087\u03d8\u0100nr\u0fc6\u0fd2gleBracket;\u67e9row\u0180;BL\u0fdc\u0fdd\u0fe1\u6192ar;\u61e5eftArrow;\u61c4eiling;\u6309o\u01f5\u0ff9\0\u1005bleBracket;\u67e7n\u01d4\u100a\0\u1014eeVector;\u695dector\u0100;B\u101d\u101e\u61c2ar;\u6955loor;\u630b\u0100er\u102d\u1043e\u0180;AV\u1035\u1036\u103c\u62a2rrow;\u61a6ector;\u695biangle\u0180;BE\u1050\u1051\u1055\u62b3ar;\u69d0qual;\u62b5p\u0180DTV\u1063\u106e\u1078ownVector;\u694feeVector;\u695cector\u0100;B\u1082\u1083\u61bear;\u6954ector\u0100;B\u1091\u1092\u61c0ar;\u6953\u0100pu\u109b\u109ef;\u611dndImplies;\u6970ightarrow;\u61db\u0100ch\u10b9\u10bcr;\u611b;\u61b1leDelayed;\u69f4\u0680HOacfhimoqstu\u10e4\u10f1\u10f7\u10fd\u1119\u111e\u1151\u1156\u1161\u1167\u11b5\u11bb\u11bf\u0100Cc\u10e9\u10eeHcy;\u4429y;\u4428FTcy;\u442ccute;\u415a\u0280;aeiy\u1108\u1109\u110e\u1113\u1117\u6abcron;\u4160dil;\u415erc;\u415c;\u4421r;\uc000\ud835\udd16ort\u0200DLRU\u112a\u1134\u113e\u1149ownArrow\xbb\u041eeftArrow\xbb\u089aightArrow\xbb\u0fddpArrow;\u6191gma;\u43a3allCircle;\u6218pf;\uc000\ud835\udd4a\u0272\u116d\0\0\u1170t;\u621aare\u0200;ISU\u117b\u117c\u1189\u11af\u65a1ntersection;\u6293u\u0100bp\u118f\u119eset\u0100;E\u1197\u1198\u628fqual;\u6291erset\u0100;E\u11a8\u11a9\u6290qual;\u6292nion;\u6294cr;\uc000\ud835\udcaear;\u62c6\u0200bcmp\u11c8\u11db\u1209\u120b\u0100;s\u11cd\u11ce\u62d0et\u0100;E\u11cd\u11d5qual;\u6286\u0100ch\u11e0\u1205eeds\u0200;EST\u11ed\u11ee\u11f4\u11ff\u627bqual;\u6ab0lantEqual;\u627dilde;\u627fTh\xe1\u0f8c;\u6211\u0180;es\u1212\u1213\u1223\u62d1rset\u0100;E\u121c\u121d\u6283qual;\u6287et\xbb\u1213\u0580HRSacfhiors\u123e\u1244\u1249\u1255\u125e\u1271\u1276\u129f\u12c2\u12c8\u12d1ORN\u803b\xde\u40deADE;\u6122\u0100Hc\u124e\u1252cy;\u440by;\u4426\u0100bu\u125a\u125c;\u4009;\u43a4\u0180aey\u1265\u126a\u126fron;\u4164dil;\u4162;\u4422r;\uc000\ud835\udd17\u0100ei\u127b\u1289\u01f2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128e\u1298kSpace;\uc000\u205f\u200aSpace;\u6009lde\u0200;EFT\u12ab\u12ac\u12b2\u12bc\u623cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uc000\ud835\udd4bipleDot;\u60db\u0100ct\u12d6\u12dbr;\uc000\ud835\udcafrok;\u4166\u0ae1\u12f7\u130e\u131a\u1326\0\u132c\u1331\0\0\0\0\0\u1338\u133d\u1377\u1385\0\u13ff\u1404\u140a\u1410\u0100cr\u12fb\u1301ute\u803b\xda\u40dar\u0100;o\u1307\u1308\u619fcir;\u6949r\u01e3\u1313\0\u1316y;\u440eve;\u416c\u0100iy\u131e\u1323rc\u803b\xdb\u40db;\u4423blac;\u4170r;\uc000\ud835\udd18rave\u803b\xd9\u40d9acr;\u416a\u0100di\u1341\u1369er\u0100BP\u1348\u135d\u0100ar\u134d\u1350r;\u405fac\u0100ek\u1357\u1359;\u63dfet;\u63b5arenthesis;\u63ddon\u0100;P\u1370\u1371\u62c3lus;\u628e\u0100gp\u137b\u137fon;\u4172f;\uc000\ud835\udd4c\u0400ADETadps\u1395\u13ae\u13b8\u13c4\u03e8\u13d2\u13d7\u13f3rrow\u0180;BD\u1150\u13a0\u13a4ar;\u6912ownArrow;\u61c5ownArrow;\u6195quilibrium;\u696eee\u0100;A\u13cb\u13cc\u62a5rrow;\u61a5own\xe1\u03f3er\u0100LR\u13de\u13e8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13f9\u13fa\u43d2on;\u43a5ing;\u416ecr;\uc000\ud835\udcb0ilde;\u4168ml\u803b\xdc\u40dc\u0480Dbcdefosv\u1427\u142c\u1430\u1433\u143e\u1485\u148a\u1490\u1496ash;\u62abar;\u6aeby;\u4412ash\u0100;l\u143b\u143c\u62a9;\u6ae6\u0100er\u1443\u1445;\u62c1\u0180bty\u144c\u1450\u147aar;\u6016\u0100;i\u144f\u1455cal\u0200BLST\u1461\u1465\u146a\u1474ar;\u6223ine;\u407ceparator;\u6758ilde;\u6240ThinSpace;\u600ar;\uc000\ud835\udd19pf;\uc000\ud835\udd4dcr;\uc000\ud835\udcb1dash;\u62aa\u0280cefos\u14a7\u14ac\u14b1\u14b6\u14bcirc;\u4174dge;\u62c0r;\uc000\ud835\udd1apf;\uc000\ud835\udd4ecr;\uc000\ud835\udcb2\u0200fios\u14cb\u14d0\u14d2\u14d8r;\uc000\ud835\udd1b;\u439epf;\uc000\ud835\udd4fcr;\uc000\ud835\udcb3\u0480AIUacfosu\u14f1\u14f5\u14f9\u14fd\u1504\u150f\u1514\u151a\u1520cy;\u442fcy;\u4407cy;\u442ecute\u803b\xdd\u40dd\u0100iy\u1509\u150drc;\u4176;\u442br;\uc000\ud835\udd1cpf;\uc000\ud835\udd50cr;\uc000\ud835\udcb4ml;\u4178\u0400Hacdefos\u1535\u1539\u153f\u154b\u154f\u155d\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417d;\u4417ot;\u417b\u01f2\u1554\0\u155boWidt\xe8\u0ad9a;\u4396r;\u6128pf;\u6124cr;\uc000\ud835\udcb5\u0be1\u1583\u158a\u1590\0\u15b0\u15b6\u15bf\0\0\0\0\u15c6\u15db\u15eb\u165f\u166d\0\u1695\u169b\u16b2\u16b9\0\u16becute\u803b\xe1\u40e1reve;\u4103\u0300;Ediuy\u159c\u159d\u15a1\u15a3\u15a8\u15ad\u623e;\uc000\u223e\u0333;\u623frc\u803b\xe2\u40e2te\u80bb\xb4\u0306;\u4430lig\u803b\xe6\u40e6\u0100;r\xb2\u15ba;\uc000\ud835\udd1erave\u803b\xe0\u40e0\u0100ep\u15ca\u15d6\u0100fp\u15cf\u15d4sym;\u6135\xe8\u15d3ha;\u43b1\u0100ap\u15dfc\u0100cl\u15e4\u15e7r;\u4101g;\u6a3f\u0264\u15f0\0\0\u160a\u0280;adsv\u15fa\u15fb\u15ff\u1601\u1607\u6227nd;\u6a55;\u6a5clope;\u6a58;\u6a5a\u0380;elmrsz\u1618\u1619\u161b\u161e\u163f\u164f\u1659\u6220;\u69a4e\xbb\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163a\u163c\u163e;\u69a8;\u69a9;\u69aa;\u69ab;\u69ac;\u69ad;\u69ae;\u69aft\u0100;v\u1645\u1646\u621fb\u0100;d\u164c\u164d\u62be;\u699d\u0100pt\u1654\u1657h;\u6222\xbb\xb9arr;\u637c\u0100gp\u1663\u1667on;\u4105f;\uc000\ud835\udd52\u0380;Eaeiop\u12c1\u167b\u167d\u1682\u1684\u1687\u168a;\u6a70cir;\u6a6f;\u624ad;\u624bs;\u4027rox\u0100;e\u12c1\u1692\xf1\u1683ing\u803b\xe5\u40e5\u0180cty\u16a1\u16a6\u16a8r;\uc000\ud835\udcb6;\u402amp\u0100;e\u12c1\u16af\xf1\u0288ilde\u803b\xe3\u40e3ml\u803b\xe4\u40e4\u0100ci\u16c2\u16c8onin\xf4\u0272nt;\u6a11\u0800Nabcdefiklnoprsu\u16ed\u16f1\u1730\u173c\u1743\u1748\u1778\u177d\u17e0\u17e6\u1839\u1850\u170d\u193d\u1948\u1970ot;\u6aed\u0100cr\u16f6\u171ek\u0200ceps\u1700\u1705\u170d\u1713ong;\u624cpsilon;\u43f6rime;\u6035im\u0100;e\u171a\u171b\u623dq;\u62cd\u0176\u1722\u1726ee;\u62bded\u0100;g\u172c\u172d\u6305e\xbb\u172drk\u0100;t\u135c\u1737brk;\u63b6\u0100oy\u1701\u1741;\u4431quo;\u601e\u0280cmprt\u1753\u175b\u1761\u1764\u1768aus\u0100;e\u010a\u0109ptyv;\u69b0s\xe9\u170cno\xf5\u0113\u0180ahw\u176f\u1771\u1773;\u43b2;\u6136een;\u626cr;\uc000\ud835\udd1fg\u0380costuvw\u178d\u179d\u17b3\u17c1\u17d5\u17db\u17de\u0180aiu\u1794\u1796\u179a\xf0\u0760rc;\u65efp\xbb\u1371\u0180dpt\u17a4\u17a8\u17adot;\u6a00lus;\u6a01imes;\u6a02\u0271\u17b9\0\0\u17becup;\u6a06ar;\u6605riangle\u0100du\u17cd\u17d2own;\u65bdp;\u65b3plus;\u6a04e\xe5\u1444\xe5\u14adarow;\u690d\u0180ako\u17ed\u1826\u1835\u0100cn\u17f2\u1823k\u0180lst\u17fa\u05ab\u1802ozenge;\u69ebriangle\u0200;dlr\u1812\u1813\u1818\u181d\u65b4own;\u65beeft;\u65c2ight;\u65b8k;\u6423\u01b1\u182b\0\u1833\u01b2\u182f\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183e\u184d\u0100;q\u1843\u1846\uc000=\u20e5uiv;\uc000\u2261\u20e5t;\u6310\u0200ptwx\u1859\u185e\u1867\u186cf;\uc000\ud835\udd53\u0100;t\u13cb\u1863om\xbb\u13cctie;\u62c8\u0600DHUVbdhmptuv\u1885\u1896\u18aa\u18bb\u18d7\u18db\u18ec\u18ff\u1905\u190a\u1910\u1921\u0200LRlr\u188e\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18a1\u18a2\u18a4\u18a6\u18a8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18b3\u18b5\u18b7\u18b9;\u655d;\u655a;\u655c;\u6559\u0380;HLRhlr\u18ca\u18cb\u18cd\u18cf\u18d1\u18d3\u18d5\u6551;\u656c;\u6563;\u6560;\u656b;\u6562;\u655fox;\u69c9\u0200LRlr\u18e4\u18e6\u18e8\u18ea;\u6555;\u6552;\u6510;\u650c\u0280;DUdu\u06bd\u18f7\u18f9\u18fb\u18fd;\u6565;\u6568;\u652c;\u6534inus;\u629flus;\u629eimes;\u62a0\u0200LRlr\u1919\u191b\u191d\u191f;\u655b;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193b\u6502;\u656a;\u6561;\u655e;\u653c;\u6524;\u651c\u0100ev\u0123\u1942bar\u803b\xa6\u40a6\u0200ceio\u1951\u1956\u195a\u1960r;\uc000\ud835\udcb7mi;\u604fm\u0100;e\u171a\u171cl\u0180;bh\u1968\u1969\u196b\u405c;\u69c5sub;\u67c8\u016c\u1974\u197el\u0100;e\u1979\u197a\u6022t\xbb\u197ap\u0180;Ee\u012f\u1985\u1987;\u6aae\u0100;q\u06dc\u06db\u0ce1\u19a7\0\u19e8\u1a11\u1a15\u1a32\0\u1a37\u1a50\0\0\u1ab4\0\0\u1ac1\0\0\u1b21\u1b2e\u1b4d\u1b52\0\u1bfd\0\u1c0c\u0180cpr\u19ad\u19b2\u19ddute;\u4107\u0300;abcds\u19bf\u19c0\u19c4\u19ca\u19d5\u19d9\u6229nd;\u6a44rcup;\u6a49\u0100au\u19cf\u19d2p;\u6a4bp;\u6a47ot;\u6a40;\uc000\u2229\ufe00\u0100eo\u19e2\u19e5t;\u6041\xee\u0693\u0200aeiu\u19f0\u19fb\u1a01\u1a05\u01f0\u19f5\0\u19f8s;\u6a4don;\u410ddil\u803b\xe7\u40e7rc;\u4109ps\u0100;s\u1a0c\u1a0d\u6a4cm;\u6a50ot;\u410b\u0180dmn\u1a1b\u1a20\u1a26il\u80bb\xb8\u01adptyv;\u69b2t\u8100\xa2;e\u1a2d\u1a2e\u40a2r\xe4\u01b2r;\uc000\ud835\udd20\u0180cei\u1a3d\u1a40\u1a4dy;\u4447ck\u0100;m\u1a47\u1a48\u6713ark\xbb\u1a48;\u43c7r\u0380;Ecefms\u1a5f\u1a60\u1a62\u1a6b\u1aa4\u1aaa\u1aae\u65cb;\u69c3\u0180;el\u1a69\u1a6a\u1a6d\u42c6q;\u6257e\u0261\u1a74\0\0\u1a88rrow\u0100lr\u1a7c\u1a81eft;\u61baight;\u61bb\u0280RSacd\u1a92\u1a94\u1a96\u1a9a\u1a9f\xbb\u0f47;\u64c8st;\u629birc;\u629aash;\u629dnint;\u6a10id;\u6aefcir;\u69c2ubs\u0100;u\u1abb\u1abc\u6663it\xbb\u1abc\u02ec\u1ac7\u1ad4\u1afa\0\u1b0aon\u0100;e\u1acd\u1ace\u403a\u0100;q\xc7\xc6\u026d\u1ad9\0\0\u1ae2a\u0100;t\u1ade\u1adf\u402c;\u4040\u0180;fl\u1ae8\u1ae9\u1aeb\u6201\xee\u1160e\u0100mx\u1af1\u1af6ent\xbb\u1ae9e\xf3\u024d\u01e7\u1afe\0\u1b07\u0100;d\u12bb\u1b02ot;\u6a6dn\xf4\u0246\u0180fry\u1b10\u1b14\u1b17;\uc000\ud835\udd54o\xe4\u0254\u8100\xa9;s\u0155\u1b1dr;\u6117\u0100ao\u1b25\u1b29rr;\u61b5ss;\u6717\u0100cu\u1b32\u1b37r;\uc000\ud835\udcb8\u0100bp\u1b3c\u1b44\u0100;e\u1b41\u1b42\u6acf;\u6ad1\u0100;e\u1b49\u1b4a\u6ad0;\u6ad2dot;\u62ef\u0380delprvw\u1b60\u1b6c\u1b77\u1b82\u1bac\u1bd4\u1bf9arr\u0100lr\u1b68\u1b6a;\u6938;\u6935\u0270\u1b72\0\0\u1b75r;\u62dec;\u62dfarr\u0100;p\u1b7f\u1b80\u61b6;\u693d\u0300;bcdos\u1b8f\u1b90\u1b96\u1ba1\u1ba5\u1ba8\u622arcap;\u6a48\u0100au\u1b9b\u1b9ep;\u6a46p;\u6a4aot;\u628dr;\u6a45;\uc000\u222a\ufe00\u0200alrv\u1bb5\u1bbf\u1bde\u1be3rr\u0100;m\u1bbc\u1bbd\u61b7;\u693cy\u0180evw\u1bc7\u1bd4\u1bd8q\u0270\u1bce\0\0\u1bd2re\xe3\u1b73u\xe3\u1b75ee;\u62ceedge;\u62cfen\u803b\xa4\u40a4earrow\u0100lr\u1bee\u1bf3eft\xbb\u1b80ight\xbb\u1bbde\xe4\u1bdd\u0100ci\u1c01\u1c07onin\xf4\u01f7nt;\u6231lcty;\u632d\u0980AHabcdefhijlorstuwz\u1c38\u1c3b\u1c3f\u1c5d\u1c69\u1c75\u1c8a\u1c9e\u1cac\u1cb7\u1cfb\u1cff\u1d0d\u1d7b\u1d91\u1dab\u1dbb\u1dc6\u1dcdr\xf2\u0381ar;\u6965\u0200glrs\u1c48\u1c4d\u1c52\u1c54ger;\u6020eth;\u6138\xf2\u1133h\u0100;v\u1c5a\u1c5b\u6010\xbb\u090a\u016b\u1c61\u1c67arow;\u690fa\xe3\u0315\u0100ay\u1c6e\u1c73ron;\u410f;\u4434\u0180;ao\u0332\u1c7c\u1c84\u0100gr\u02bf\u1c81r;\u61catseq;\u6a77\u0180glm\u1c91\u1c94\u1c98\u803b\xb0\u40b0ta;\u43b4ptyv;\u69b1\u0100ir\u1ca3\u1ca8sht;\u697f;\uc000\ud835\udd21ar\u0100lr\u1cb3\u1cb5\xbb\u08dc\xbb\u101e\u0280aegsv\u1cc2\u0378\u1cd6\u1cdc\u1ce0m\u0180;os\u0326\u1cca\u1cd4nd\u0100;s\u0326\u1cd1uit;\u6666amma;\u43ddin;\u62f2\u0180;io\u1ce7\u1ce8\u1cf8\u40f7de\u8100\xf7;o\u1ce7\u1cf0ntimes;\u62c7n\xf8\u1cf7cy;\u4452c\u026f\u1d06\0\0\u1d0arn;\u631eop;\u630d\u0280lptuw\u1d18\u1d1d\u1d22\u1d49\u1d55lar;\u4024f;\uc000\ud835\udd55\u0280;emps\u030b\u1d2d\u1d37\u1d3d\u1d42q\u0100;d\u0352\u1d33ot;\u6251inus;\u6238lus;\u6214quare;\u62a1blebarwedg\xe5\xfan\u0180adh\u112e\u1d5d\u1d67ownarrow\xf3\u1c83arpoon\u0100lr\u1d72\u1d76ef\xf4\u1cb4igh\xf4\u1cb6\u0162\u1d7f\u1d85karo\xf7\u0f42\u026f\u1d8a\0\0\u1d8ern;\u631fop;\u630c\u0180cot\u1d98\u1da3\u1da6\u0100ry\u1d9d\u1da1;\uc000\ud835\udcb9;\u4455l;\u69f6rok;\u4111\u0100dr\u1db0\u1db4ot;\u62f1i\u0100;f\u1dba\u1816\u65bf\u0100ah\u1dc0\u1dc3r\xf2\u0429a\xf2\u0fa6angle;\u69a6\u0100ci\u1dd2\u1dd5y;\u445fgrarr;\u67ff\u0900Dacdefglmnopqrstux\u1e01\u1e09\u1e19\u1e38\u0578\u1e3c\u1e49\u1e61\u1e7e\u1ea5\u1eaf\u1ebd\u1ee1\u1f2a\u1f37\u1f44\u1f4e\u1f5a\u0100Do\u1e06\u1d34o\xf4\u1c89\u0100cs\u1e0e\u1e14ute\u803b\xe9\u40e9ter;\u6a6e\u0200aioy\u1e22\u1e27\u1e31\u1e36ron;\u411br\u0100;c\u1e2d\u1e2e\u6256\u803b\xea\u40ealon;\u6255;\u444dot;\u4117\u0100Dr\u1e41\u1e45ot;\u6252;\uc000\ud835\udd22\u0180;rs\u1e50\u1e51\u1e57\u6a9aave\u803b\xe8\u40e8\u0100;d\u1e5c\u1e5d\u6a96ot;\u6a98\u0200;ils\u1e6a\u1e6b\u1e72\u1e74\u6a99nters;\u63e7;\u6113\u0100;d\u1e79\u1e7a\u6a95ot;\u6a97\u0180aps\u1e85\u1e89\u1e97cr;\u4113ty\u0180;sv\u1e92\u1e93\u1e95\u6205et\xbb\u1e93p\u01001;\u1e9d\u1ea4\u0133\u1ea1\u1ea3;\u6004;\u6005\u6003\u0100gs\u1eaa\u1eac;\u414bp;\u6002\u0100gp\u1eb4\u1eb8on;\u4119f;\uc000\ud835\udd56\u0180als\u1ec4\u1ece\u1ed2r\u0100;s\u1eca\u1ecb\u62d5l;\u69e3us;\u6a71i\u0180;lv\u1eda\u1edb\u1edf\u43b5on\xbb\u1edb;\u43f5\u0200csuv\u1eea\u1ef3\u1f0b\u1f23\u0100io\u1eef\u1e31rc\xbb\u1e2e\u0269\u1ef9\0\0\u1efb\xed\u0548ant\u0100gl\u1f02\u1f06tr\xbb\u1e5dess\xbb\u1e7a\u0180aei\u1f12\u1f16\u1f1als;\u403dst;\u625fv\u0100;D\u0235\u1f20D;\u6a78parsl;\u69e5\u0100Da\u1f2f\u1f33ot;\u6253rr;\u6971\u0180cdi\u1f3e\u1f41\u1ef8r;\u612fo\xf4\u0352\u0100ah\u1f49\u1f4b;\u43b7\u803b\xf0\u40f0\u0100mr\u1f53\u1f57l\u803b\xeb\u40ebo;\u60ac\u0180cip\u1f61\u1f64\u1f67l;\u4021s\xf4\u056e\u0100eo\u1f6c\u1f74ctatio\xee\u0559nential\xe5\u0579\u09e1\u1f92\0\u1f9e\0\u1fa1\u1fa7\0\0\u1fc6\u1fcc\0\u1fd3\0\u1fe6\u1fea\u2000\0\u2008\u205allingdotse\xf1\u1e44y;\u4444male;\u6640\u0180ilr\u1fad\u1fb3\u1fc1lig;\u8000\ufb03\u0269\u1fb9\0\0\u1fbdg;\u8000\ufb00ig;\u8000\ufb04;\uc000\ud835\udd23lig;\u8000\ufb01lig;\uc000fj\u0180alt\u1fd9\u1fdc\u1fe1t;\u666dig;\u8000\ufb02ns;\u65b1of;\u4192\u01f0\u1fee\0\u1ff3f;\uc000\ud835\udd57\u0100ak\u05bf\u1ff7\u0100;v\u1ffc\u1ffd\u62d4;\u6ad9artint;\u6a0d\u0100ao\u200c\u2055\u0100cs\u2011\u2052\u03b1\u201a\u2030\u2038\u2045\u2048\0\u2050\u03b2\u2022\u2025\u2027\u202a\u202c\0\u202e\u803b\xbd\u40bd;\u6153\u803b\xbc\u40bc;\u6155;\u6159;\u615b\u01b3\u2034\0\u2036;\u6154;\u6156\u02b4\u203e\u2041\0\0\u2043\u803b\xbe\u40be;\u6157;\u615c5;\u6158\u01b6\u204c\0\u204e;\u615a;\u615d8;\u615el;\u6044wn;\u6322cr;\uc000\ud835\udcbb\u0880Eabcdefgijlnorstv\u2082\u2089\u209f\u20a5\u20b0\u20b4\u20f0\u20f5\u20fa\u20ff\u2103\u2112\u2138\u0317\u213e\u2152\u219e\u0100;l\u064d\u2087;\u6a8c\u0180cmp\u2090\u2095\u209dute;\u41f5ma\u0100;d\u209c\u1cda\u43b3;\u6a86reve;\u411f\u0100iy\u20aa\u20aerc;\u411d;\u4433ot;\u4121\u0200;lqs\u063e\u0642\u20bd\u20c9\u0180;qs\u063e\u064c\u20c4lan\xf4\u0665\u0200;cdl\u0665\u20d2\u20d5\u20e5c;\u6aa9ot\u0100;o\u20dc\u20dd\u6a80\u0100;l\u20e2\u20e3\u6a82;\u6a84\u0100;e\u20ea\u20ed\uc000\u22db\ufe00s;\u6a94r;\uc000\ud835\udd24\u0100;g\u0673\u061bmel;\u6137cy;\u4453\u0200;Eaj\u065a\u210c\u210e\u2110;\u6a92;\u6aa5;\u6aa4\u0200Eaes\u211b\u211d\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6a8arox\xbb\u2124\u0100;q\u212e\u212f\u6a88\u0100;q\u212e\u211bim;\u62e7pf;\uc000\ud835\udd58\u0100ci\u2143\u2146r;\u610am\u0180;el\u066b\u214e\u2150;\u6a8e;\u6a90\u8300>;cdlqr\u05ee\u2160\u216a\u216e\u2173\u2179\u0100ci\u2165\u2167;\u6aa7r;\u6a7aot;\u62d7Par;\u6995uest;\u6a7c\u0280adels\u2184\u216a\u2190\u0656\u219b\u01f0\u2189\0\u218epro\xf8\u209er;\u6978q\u0100lq\u063f\u2196les\xf3\u2088i\xed\u066b\u0100en\u21a3\u21adrtneqq;\uc000\u2269\ufe00\xc5\u21aa\u0500Aabcefkosy\u21c4\u21c7\u21f1\u21f5\u21fa\u2218\u221d\u222f\u2268\u227dr\xf2\u03a0\u0200ilmr\u21d0\u21d4\u21d7\u21dbrs\xf0\u1484f\xbb\u2024il\xf4\u06a9\u0100dr\u21e0\u21e4cy;\u444a\u0180;cw\u08f4\u21eb\u21efir;\u6948;\u61adar;\u610firc;\u4125\u0180alr\u2201\u220e\u2213rts\u0100;u\u2209\u220a\u6665it\xbb\u220alip;\u6026con;\u62b9r;\uc000\ud835\udd25s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223a\u223e\u2243\u225e\u2263rr;\u61fftht;\u623bk\u0100lr\u2249\u2253eftarrow;\u61a9ightarrow;\u61aaf;\uc000\ud835\udd59bar;\u6015\u0180clt\u226f\u2274\u2278r;\uc000\ud835\udcbdas\xe8\u21f4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xbb\u1c5b\u0ae1\u22a3\0\u22aa\0\u22b8\u22c5\u22ce\0\u22d5\u22f3\0\0\u22f8\u2322\u2367\u2362\u237f\0\u2386\u23aa\u23b4cute\u803b\xed\u40ed\u0180;iy\u0771\u22b0\u22b5rc\u803b\xee\u40ee;\u4438\u0100cx\u22bc\u22bfy;\u4435cl\u803b\xa1\u40a1\u0100fr\u039f\u22c9;\uc000\ud835\udd26rave\u803b\xec\u40ec\u0200;ino\u073e\u22dd\u22e9\u22ee\u0100in\u22e2\u22e6nt;\u6a0ct;\u622dfin;\u69dcta;\u6129lig;\u4133\u0180aop\u22fe\u231a\u231d\u0180cgt\u2305\u2308\u2317r;\u412b\u0180elp\u071f\u230f\u2313in\xe5\u078ear\xf4\u0720h;\u4131f;\u62b7ed;\u41b5\u0280;cfot\u04f4\u232c\u2331\u233d\u2341are;\u6105in\u0100;t\u2338\u2339\u621eie;\u69dddo\xf4\u2319\u0280;celp\u0757\u234c\u2350\u235b\u2361al;\u62ba\u0100gr\u2355\u2359er\xf3\u1563\xe3\u234darhk;\u6a17rod;\u6a3c\u0200cgpt\u236f\u2372\u2376\u237by;\u4451on;\u412ff;\uc000\ud835\udd5aa;\u43b9uest\u803b\xbf\u40bf\u0100ci\u238a\u238fr;\uc000\ud835\udcben\u0280;Edsv\u04f4\u239b\u239d\u23a1\u04f3;\u62f9ot;\u62f5\u0100;v\u23a6\u23a7\u62f4;\u62f3\u0100;i\u0777\u23aelde;\u4129\u01eb\u23b8\0\u23bccy;\u4456l\u803b\xef\u40ef\u0300cfmosu\u23cc\u23d7\u23dc\u23e1\u23e7\u23f5\u0100iy\u23d1\u23d5rc;\u4135;\u4439r;\uc000\ud835\udd27ath;\u4237pf;\uc000\ud835\udd5b\u01e3\u23ec\0\u23f1r;\uc000\ud835\udcbfrcy;\u4458kcy;\u4454\u0400acfghjos\u240b\u2416\u2422\u2427\u242d\u2431\u2435\u243bppa\u0100;v\u2413\u2414\u43ba;\u43f0\u0100ey\u241b\u2420dil;\u4137;\u443ar;\uc000\ud835\udd28reen;\u4138cy;\u4445cy;\u445cpf;\uc000\ud835\udd5ccr;\uc000\ud835\udcc0\u0b80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248d\u2491\u250e\u253d\u255a\u2580\u264e\u265e\u2665\u2679\u267d\u269a\u26b2\u26d8\u275d\u2768\u278b\u27c0\u2801\u2812\u0180art\u2477\u247a\u247cr\xf2\u09c6\xf2\u0395ail;\u691barr;\u690e\u0100;g\u0994\u248b;\u6a8bar;\u6962\u0963\u24a5\0\u24aa\0\u24b1\0\0\0\0\0\u24b5\u24ba\0\u24c6\u24c8\u24cd\0\u24f9ute;\u413amptyv;\u69b4ra\xee\u084cbda;\u43bbg\u0180;dl\u088e\u24c1\u24c3;\u6991\xe5\u088e;\u6a85uo\u803b\xab\u40abr\u0400;bfhlpst\u0899\u24de\u24e6\u24e9\u24eb\u24ee\u24f1\u24f5\u0100;f\u089d\u24e3s;\u691fs;\u691d\xeb\u2252p;\u61abl;\u6939im;\u6973l;\u61a2\u0180;ae\u24ff\u2500\u2504\u6aabil;\u6919\u0100;s\u2509\u250a\u6aad;\uc000\u2aad\ufe00\u0180abr\u2515\u2519\u251drr;\u690crk;\u6772\u0100ak\u2522\u252cc\u0100ek\u2528\u252a;\u407b;\u405b\u0100es\u2531\u2533;\u698bl\u0100du\u2539\u253b;\u698f;\u698d\u0200aeuy\u2546\u254b\u2556\u2558ron;\u413e\u0100di\u2550\u2554il;\u413c\xec\u08b0\xe2\u2529;\u443b\u0200cqrs\u2563\u2566\u256d\u257da;\u6936uo\u0100;r\u0e19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694bh;\u61b2\u0280;fgqs\u258b\u258c\u0989\u25f3\u25ff\u6264t\u0280ahlrt\u2598\u25a4\u25b7\u25c2\u25e8rrow\u0100;t\u0899\u25a1a\xe9\u24f6arpoon\u0100du\u25af\u25b4own\xbb\u045ap\xbb\u0966eftarrows;\u61c7ight\u0180ahs\u25cd\u25d6\u25derrow\u0100;s\u08f4\u08a7arpoon\xf3\u0f98quigarro\xf7\u21f0hreetimes;\u62cb\u0180;qs\u258b\u0993\u25falan\xf4\u09ac\u0280;cdgs\u09ac\u260a\u260d\u261d\u2628c;\u6aa8ot\u0100;o\u2614\u2615\u6a7f\u0100;r\u261a\u261b\u6a81;\u6a83\u0100;e\u2622\u2625\uc000\u22da\ufe00s;\u6a93\u0280adegs\u2633\u2639\u263d\u2649\u264bppro\xf8\u24c6ot;\u62d6q\u0100gq\u2643\u2645\xf4\u0989gt\xf2\u248c\xf4\u099bi\xed\u09b2\u0180ilr\u2655\u08e1\u265asht;\u697c;\uc000\ud835\udd29\u0100;E\u099c\u2663;\u6a91\u0161\u2669\u2676r\u0100du\u25b2\u266e\u0100;l\u0965\u2673;\u696alk;\u6584cy;\u4459\u0280;acht\u0a48\u2688\u268b\u2691\u2696r\xf2\u25c1orne\xf2\u1d08ard;\u696bri;\u65fa\u0100io\u269f\u26a4dot;\u4140ust\u0100;a\u26ac\u26ad\u63b0che\xbb\u26ad\u0200Eaes\u26bb\u26bd\u26c9\u26d4;\u6268p\u0100;p\u26c3\u26c4\u6a89rox\xbb\u26c4\u0100;q\u26ce\u26cf\u6a87\u0100;q\u26ce\u26bbim;\u62e6\u0400abnoptwz\u26e9\u26f4\u26f7\u271a\u272f\u2741\u2747\u2750\u0100nr\u26ee\u26f1g;\u67ecr;\u61fdr\xeb\u08c1g\u0180lmr\u26ff\u270d\u2714eft\u0100ar\u09e6\u2707ight\xe1\u09f2apsto;\u67fcight\xe1\u09fdparrow\u0100lr\u2725\u2729ef\xf4\u24edight;\u61ac\u0180afl\u2736\u2739\u273dr;\u6985;\uc000\ud835\udd5dus;\u6a2dimes;\u6a34\u0161\u274b\u274fst;\u6217\xe1\u134e\u0180;ef\u2757\u2758\u1800\u65cange\xbb\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277c\u2785\u2787r\xf2\u08a8orne\xf2\u1d8car\u0100;d\u0f98\u2783;\u696d;\u600eri;\u62bf\u0300achiqt\u2798\u279d\u0a40\u27a2\u27ae\u27bbquo;\u6039r;\uc000\ud835\udcc1m\u0180;eg\u09b2\u27aa\u27ac;\u6a8d;\u6a8f\u0100bu\u252a\u27b3o\u0100;r\u0e1f\u27b9;\u601arok;\u4142\u8400<;cdhilqr\u082b\u27d2\u2639\u27dc\u27e0\u27e5\u27ea\u27f0\u0100ci\u27d7\u27d9;\u6aa6r;\u6a79re\xe5\u25f2mes;\u62c9arr;\u6976uest;\u6a7b\u0100Pi\u27f5\u27f9ar;\u6996\u0180;ef\u2800\u092d\u181b\u65c3r\u0100du\u2807\u280dshar;\u694ahar;\u6966\u0100en\u2817\u2821rtneqq;\uc000\u2268\ufe00\xc5\u281e\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288e\u2893\u28a0\u28a5\u28a8\u28da\u28e2\u28e4\u0a83\u28f3\u2902Dot;\u623a\u0200clpr\u284e\u2852\u2863\u287dr\u803b\xaf\u40af\u0100et\u2857\u2859;\u6642\u0100;e\u285e\u285f\u6720se\xbb\u285f\u0100;s\u103b\u2868to\u0200;dlu\u103b\u2873\u2877\u287bow\xee\u048cef\xf4\u090f\xf0\u13d1ker;\u65ae\u0100oy\u2887\u288cmma;\u6a29;\u443cash;\u6014asuredangle\xbb\u1626r;\uc000\ud835\udd2ao;\u6127\u0180cdn\u28af\u28b4\u28c9ro\u803b\xb5\u40b5\u0200;acd\u1464\u28bd\u28c0\u28c4s\xf4\u16a7ir;\u6af0ot\u80bb\xb7\u01b5us\u0180;bd\u28d2\u1903\u28d3\u6212\u0100;u\u1d3c\u28d8;\u6a2a\u0163\u28de\u28e1p;\u6adb\xf2\u2212\xf0\u0a81\u0100dp\u28e9\u28eeels;\u62a7f;\uc000\ud835\udd5e\u0100ct\u28f8\u28fdr;\uc000\ud835\udcc2pos\xbb\u159d\u0180;lm\u2909\u290a\u290d\u43bctimap;\u62b8\u0c00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297e\u2989\u2998\u29da\u29e9\u2a15\u2a1a\u2a58\u2a5d\u2a83\u2a95\u2aa4\u2aa8\u2b04\u2b07\u2b44\u2b7f\u2bae\u2c34\u2c67\u2c7c\u2ce9\u0100gt\u2947\u294b;\uc000\u22d9\u0338\u0100;v\u2950\u0bcf\uc000\u226b\u20d2\u0180elt\u295a\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61cdightarrow;\u61ce;\uc000\u22d8\u0338\u0100;v\u297b\u0c47\uc000\u226a\u20d2ightarrow;\u61cf\u0100Dd\u298e\u2993ash;\u62afash;\u62ae\u0280bcnpt\u29a3\u29a7\u29ac\u29b1\u29ccla\xbb\u02deute;\u4144g;\uc000\u2220\u20d2\u0280;Eiop\u0d84\u29bc\u29c0\u29c5\u29c8;\uc000\u2a70\u0338d;\uc000\u224b\u0338s;\u4149ro\xf8\u0d84ur\u0100;a\u29d3\u29d4\u666el\u0100;s\u29d3\u0b38\u01f3\u29df\0\u29e3p\u80bb\xa0\u0b37mp\u0100;e\u0bf9\u0c00\u0280aeouy\u29f4\u29fe\u2a03\u2a10\u2a13\u01f0\u29f9\0\u29fb;\u6a43on;\u4148dil;\u4146ng\u0100;d\u0d7e\u2a0aot;\uc000\u2a6d\u0338p;\u6a42;\u443dash;\u6013\u0380;Aadqsx\u0b92\u2a29\u2a2d\u2a3b\u2a41\u2a45\u2a50rr;\u61d7r\u0100hr\u2a33\u2a36k;\u6924\u0100;o\u13f2\u13f0ot;\uc000\u2250\u0338ui\xf6\u0b63\u0100ei\u2a4a\u2a4ear;\u6928\xed\u0b98ist\u0100;s\u0ba0\u0b9fr;\uc000\ud835\udd2b\u0200Eest\u0bc5\u2a66\u2a79\u2a7c\u0180;qs\u0bbc\u2a6d\u0be1\u0180;qs\u0bbc\u0bc5\u2a74lan\xf4\u0be2i\xed\u0bea\u0100;r\u0bb6\u2a81\xbb\u0bb7\u0180Aap\u2a8a\u2a8d\u2a91r\xf2\u2971rr;\u61aear;\u6af2\u0180;sv\u0f8d\u2a9c\u0f8c\u0100;d\u2aa1\u2aa2\u62fc;\u62facy;\u445a\u0380AEadest\u2ab7\u2aba\u2abe\u2ac2\u2ac5\u2af6\u2af9r\xf2\u2966;\uc000\u2266\u0338rr;\u619ar;\u6025\u0200;fqs\u0c3b\u2ace\u2ae3\u2aeft\u0100ar\u2ad4\u2ad9rro\xf7\u2ac1ightarro\xf7\u2a90\u0180;qs\u0c3b\u2aba\u2aealan\xf4\u0c55\u0100;s\u0c55\u2af4\xbb\u0c36i\xed\u0c5d\u0100;r\u0c35\u2afei\u0100;e\u0c1a\u0c25i\xe4\u0d90\u0100pt\u2b0c\u2b11f;\uc000\ud835\udd5f\u8180\xac;in\u2b19\u2b1a\u2b36\u40acn\u0200;Edv\u0b89\u2b24\u2b28\u2b2e;\uc000\u22f9\u0338ot;\uc000\u22f5\u0338\u01e1\u0b89\u2b33\u2b35;\u62f7;\u62f6i\u0100;v\u0cb8\u2b3c\u01e1\u0cb8\u2b41\u2b43;\u62fe;\u62fd\u0180aor\u2b4b\u2b63\u2b69r\u0200;ast\u0b7b\u2b55\u2b5a\u2b5flle\xec\u0b7bl;\uc000\u2afd\u20e5;\uc000\u2202\u0338lint;\u6a14\u0180;ce\u0c92\u2b70\u2b73u\xe5\u0ca5\u0100;c\u0c98\u2b78\u0100;e\u0c92\u2b7d\xf1\u0c98\u0200Aait\u2b88\u2b8b\u2b9d\u2ba7r\xf2\u2988rr\u0180;cw\u2b94\u2b95\u2b99\u619b;\uc000\u2933\u0338;\uc000\u219d\u0338ghtarrow\xbb\u2b95ri\u0100;e\u0ccb\u0cd6\u0380chimpqu\u2bbd\u2bcd\u2bd9\u2b04\u0b78\u2be4\u2bef\u0200;cer\u0d32\u2bc6\u0d37\u2bc9u\xe5\u0d45;\uc000\ud835\udcc3ort\u026d\u2b05\0\0\u2bd6ar\xe1\u2b56m\u0100;e\u0d6e\u2bdf\u0100;q\u0d74\u0d73su\u0100bp\u2beb\u2bed\xe5\u0cf8\xe5\u0d0b\u0180bcp\u2bf6\u2c11\u2c19\u0200;Ees\u2bff\u2c00\u0d22\u2c04\u6284;\uc000\u2ac5\u0338et\u0100;e\u0d1b\u2c0bq\u0100;q\u0d23\u2c00c\u0100;e\u0d32\u2c17\xf1\u0d38\u0200;Ees\u2c22\u2c23\u0d5f\u2c27\u6285;\uc000\u2ac6\u0338et\u0100;e\u0d58\u2c2eq\u0100;q\u0d60\u2c23\u0200gilr\u2c3d\u2c3f\u2c45\u2c47\xec\u0bd7lde\u803b\xf1\u40f1\xe7\u0c43iangle\u0100lr\u2c52\u2c5ceft\u0100;e\u0c1a\u2c5a\xf1\u0c26ight\u0100;e\u0ccb\u2c65\xf1\u0cd7\u0100;m\u2c6c\u2c6d\u43bd\u0180;es\u2c74\u2c75\u2c79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2c8f\u2c94\u2c99\u2c9e\u2ca3\u2cb0\u2cb6\u2cd3\u2ce3ash;\u62adarr;\u6904p;\uc000\u224d\u20d2ash;\u62ac\u0100et\u2ca8\u2cac;\uc000\u2265\u20d2;\uc000>\u20d2nfin;\u69de\u0180Aet\u2cbd\u2cc1\u2cc5rr;\u6902;\uc000\u2264\u20d2\u0100;r\u2cca\u2ccd\uc000<\u20d2ie;\uc000\u22b4\u20d2\u0100At\u2cd8\u2cdcrr;\u6903rie;\uc000\u22b5\u20d2im;\uc000\u223c\u20d2\u0180Aan\u2cf0\u2cf4\u2d02rr;\u61d6r\u0100hr\u2cfa\u2cfdk;\u6923\u0100;o\u13e7\u13e5ear;\u6927\u1253\u1a95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2d2d\0\u2d38\u2d48\u2d60\u2d65\u2d72\u2d84\u1b07\0\0\u2d8d\u2dab\0\u2dc8\u2dce\0\u2ddc\u2e19\u2e2b\u2e3e\u2e43\u0100cs\u2d31\u1a97ute\u803b\xf3\u40f3\u0100iy\u2d3c\u2d45r\u0100;c\u1a9e\u2d42\u803b\xf4\u40f4;\u443e\u0280abios\u1aa0\u2d52\u2d57\u01c8\u2d5alac;\u4151v;\u6a38old;\u69bclig;\u4153\u0100cr\u2d69\u2d6dir;\u69bf;\uc000\ud835\udd2c\u036f\u2d79\0\0\u2d7c\0\u2d82n;\u42dbave\u803b\xf2\u40f2;\u69c1\u0100bm\u2d88\u0df4ar;\u69b5\u0200acit\u2d95\u2d98\u2da5\u2da8r\xf2\u1a80\u0100ir\u2d9d\u2da0r;\u69beoss;\u69bbn\xe5\u0e52;\u69c0\u0180aei\u2db1\u2db5\u2db9cr;\u414dga;\u43c9\u0180cdn\u2dc0\u2dc5\u01cdron;\u43bf;\u69b6pf;\uc000\ud835\udd60\u0180ael\u2dd4\u2dd7\u01d2r;\u69b7rp;\u69b9\u0380;adiosv\u2dea\u2deb\u2dee\u2e08\u2e0d\u2e10\u2e16\u6228r\xf2\u1a86\u0200;efm\u2df7\u2df8\u2e02\u2e05\u6a5dr\u0100;o\u2dfe\u2dff\u6134f\xbb\u2dff\u803b\xaa\u40aa\u803b\xba\u40bagof;\u62b6r;\u6a56lope;\u6a57;\u6a5b\u0180clo\u2e1f\u2e21\u2e27\xf2\u2e01ash\u803b\xf8\u40f8l;\u6298i\u016c\u2e2f\u2e34de\u803b\xf5\u40f5es\u0100;a\u01db\u2e3as;\u6a36ml\u803b\xf6\u40f6bar;\u633d\u0ae1\u2e5e\0\u2e7d\0\u2e80\u2e9d\0\u2ea2\u2eb9\0\0\u2ecb\u0e9c\0\u2f13\0\0\u2f2b\u2fbc\0\u2fc8r\u0200;ast\u0403\u2e67\u2e72\u0e85\u8100\xb6;l\u2e6d\u2e6e\u40b6le\xec\u0403\u0269\u2e78\0\0\u2e7bm;\u6af3;\u6afdy;\u443fr\u0280cimpt\u2e8b\u2e8f\u2e93\u1865\u2e97nt;\u4025od;\u402eil;\u6030enk;\u6031r;\uc000\ud835\udd2d\u0180imo\u2ea8\u2eb0\u2eb4\u0100;v\u2ead\u2eae\u43c6;\u43d5ma\xf4\u0a76ne;\u660e\u0180;tv\u2ebf\u2ec0\u2ec8\u43c0chfork\xbb\u1ffd;\u43d6\u0100au\u2ecf\u2edfn\u0100ck\u2ed5\u2eddk\u0100;h\u21f4\u2edb;\u610e\xf6\u21f4s\u0480;abcdemst\u2ef3\u2ef4\u1908\u2ef9\u2efd\u2f04\u2f06\u2f0a\u2f0e\u402bcir;\u6a23ir;\u6a22\u0100ou\u1d40\u2f02;\u6a25;\u6a72n\u80bb\xb1\u0e9dim;\u6a26wo;\u6a27\u0180ipu\u2f19\u2f20\u2f25ntint;\u6a15f;\uc000\ud835\udd61nd\u803b\xa3\u40a3\u0500;Eaceinosu\u0ec8\u2f3f\u2f41\u2f44\u2f47\u2f81\u2f89\u2f92\u2f7e\u2fb6;\u6ab3p;\u6ab7u\xe5\u0ed9\u0100;c\u0ece\u2f4c\u0300;acens\u0ec8\u2f59\u2f5f\u2f66\u2f68\u2f7eppro\xf8\u2f43urlye\xf1\u0ed9\xf1\u0ece\u0180aes\u2f6f\u2f76\u2f7approx;\u6ab9qq;\u6ab5im;\u62e8i\xed\u0edfme\u0100;s\u2f88\u0eae\u6032\u0180Eas\u2f78\u2f90\u2f7a\xf0\u2f75\u0180dfp\u0eec\u2f99\u2faf\u0180als\u2fa0\u2fa5\u2faalar;\u632eine;\u6312urf;\u6313\u0100;t\u0efb\u2fb4\xef\u0efbrel;\u62b0\u0100ci\u2fc0\u2fc5r;\uc000\ud835\udcc5;\u43c8ncsp;\u6008\u0300fiopsu\u2fda\u22e2\u2fdf\u2fe5\u2feb\u2ff1r;\uc000\ud835\udd2epf;\uc000\ud835\udd62rime;\u6057cr;\uc000\ud835\udcc6\u0180aeo\u2ff8\u3009\u3013t\u0100ei\u2ffe\u3005rnion\xf3\u06b0nt;\u6a16st\u0100;e\u3010\u3011\u403f\xf1\u1f19\xf4\u0f14\u0a80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30e0\u310e\u312b\u3147\u3162\u3172\u318e\u3206\u3215\u3224\u3229\u3258\u326e\u3272\u3290\u32b0\u32b7\u0180art\u3047\u304a\u304cr\xf2\u10b3\xf2\u03ddail;\u691car\xf2\u1c65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307f\u308f\u3094\u30cc\u0100eu\u306d\u3071;\uc000\u223d\u0331te;\u4155i\xe3\u116emptyv;\u69b3g\u0200;del\u0fd1\u3089\u308b\u308d;\u6992;\u69a5\xe5\u0fd1uo\u803b\xbb\u40bbr\u0580;abcfhlpstw\u0fdc\u30ac\u30af\u30b7\u30b9\u30bc\u30be\u30c0\u30c3\u30c7\u30cap;\u6975\u0100;f\u0fe0\u30b4s;\u6920;\u6933s;\u691e\xeb\u225d\xf0\u272el;\u6945im;\u6974l;\u61a3;\u619d\u0100ai\u30d1\u30d5il;\u691ao\u0100;n\u30db\u30dc\u6236al\xf3\u0f1e\u0180abr\u30e7\u30ea\u30eer\xf2\u17e5rk;\u6773\u0100ak\u30f3\u30fdc\u0100ek\u30f9\u30fb;\u407d;\u405d\u0100es\u3102\u3104;\u698cl\u0100du\u310a\u310c;\u698e;\u6990\u0200aeuy\u3117\u311c\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xec\u0ff2\xe2\u30fa;\u4440\u0200clqs\u3134\u3137\u313d\u3144a;\u6937dhar;\u6969uo\u0100;r\u020e\u020dh;\u61b3\u0180acg\u314e\u315f\u0f44l\u0200;ips\u0f78\u3158\u315b\u109cn\xe5\u10bbar\xf4\u0fa9t;\u65ad\u0180ilr\u3169\u1023\u316esht;\u697d;\uc000\ud835\udd2f\u0100ao\u3177\u3186r\u0100du\u317d\u317f\xbb\u047b\u0100;l\u1091\u3184;\u696c\u0100;v\u318b\u318c\u43c1;\u43f1\u0180gns\u3195\u31f9\u31fcht\u0300ahlrst\u31a4\u31b0\u31c2\u31d8\u31e4\u31eerrow\u0100;t\u0fdc\u31ada\xe9\u30c8arpoon\u0100du\u31bb\u31bfow\xee\u317ep\xbb\u1092eft\u0100ah\u31ca\u31d0rrow\xf3\u0feaarpoon\xf3\u0551ightarrows;\u61c9quigarro\xf7\u30cbhreetimes;\u62ccg;\u42daingdotse\xf1\u1f32\u0180ahm\u320d\u3210\u3213r\xf2\u0feaa\xf2\u0551;\u600foust\u0100;a\u321e\u321f\u63b1che\xbb\u321fmid;\u6aee\u0200abpt\u3232\u323d\u3240\u3252\u0100nr\u3237\u323ag;\u67edr;\u61fer\xeb\u1003\u0180afl\u3247\u324a\u324er;\u6986;\uc000\ud835\udd63us;\u6a2eimes;\u6a35\u0100ap\u325d\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6a12ar\xf2\u31e3\u0200achq\u327b\u3280\u10bc\u3285quo;\u603ar;\uc000\ud835\udcc7\u0100bu\u30fb\u328ao\u0100;r\u0214\u0213\u0180hir\u3297\u329b\u32a0re\xe5\u31f8mes;\u62cai\u0200;efl\u32aa\u1059\u1821\u32ab\u65b9tri;\u69celuhar;\u6968;\u611e\u0d61\u32d5\u32db\u32df\u332c\u3338\u3371\0\u337a\u33a4\0\0\u33ec\u33f0\0\u3428\u3448\u345a\u34ad\u34b1\u34ca\u34f1\0\u3616\0\0\u3633cute;\u415bqu\xef\u27ba\u0500;Eaceinpsy\u11ed\u32f3\u32f5\u32ff\u3302\u330b\u330f\u331f\u3326\u3329;\u6ab4\u01f0\u32fa\0\u32fc;\u6ab8on;\u4161u\xe5\u11fe\u0100;d\u11f3\u3307il;\u415frc;\u415d\u0180Eas\u3316\u3318\u331b;\u6ab6p;\u6abaim;\u62e9olint;\u6a13i\xed\u1204;\u4441ot\u0180;be\u3334\u1d47\u3335\u62c5;\u6a66\u0380Aacmstx\u3346\u334a\u3357\u335b\u335e\u3363\u336drr;\u61d8r\u0100hr\u3350\u3352\xeb\u2228\u0100;o\u0a36\u0a34t\u803b\xa7\u40a7i;\u403bwar;\u6929m\u0100in\u3369\xf0nu\xf3\xf1t;\u6736r\u0100;o\u3376\u2055\uc000\ud835\udd30\u0200acoy\u3382\u3386\u3391\u33a0rp;\u666f\u0100hy\u338b\u338fcy;\u4449;\u4448rt\u026d\u3399\0\0\u339ci\xe4\u1464ara\xec\u2e6f\u803b\xad\u40ad\u0100gm\u33a8\u33b4ma\u0180;fv\u33b1\u33b2\u33b2\u43c3;\u43c2\u0400;deglnpr\u12ab\u33c5\u33c9\u33ce\u33d6\u33de\u33e1\u33e6ot;\u6a6a\u0100;q\u12b1\u12b0\u0100;E\u33d3\u33d4\u6a9e;\u6aa0\u0100;E\u33db\u33dc\u6a9d;\u6a9fe;\u6246lus;\u6a24arr;\u6972ar\xf2\u113d\u0200aeit\u33f8\u3408\u340f\u3417\u0100ls\u33fd\u3404lsetm\xe9\u336ahp;\u6a33parsl;\u69e4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341c\u341d\u6aaa\u0100;s\u3422\u3423\u6aac;\uc000\u2aac\ufe00\u0180flp\u342e\u3433\u3442tcy;\u444c\u0100;b\u3438\u3439\u402f\u0100;a\u343e\u343f\u69c4r;\u633ff;\uc000\ud835\udd64a\u0100dr\u344d\u0402es\u0100;u\u3454\u3455\u6660it\xbb\u3455\u0180csu\u3460\u3479\u349f\u0100au\u3465\u346fp\u0100;s\u1188\u346b;\uc000\u2293\ufe00p\u0100;s\u11b4\u3475;\uc000\u2294\ufe00u\u0100bp\u347f\u348f\u0180;es\u1197\u119c\u3486et\u0100;e\u1197\u348d\xf1\u119d\u0180;es\u11a8\u11ad\u3496et\u0100;e\u11a8\u349d\xf1\u11ae\u0180;af\u117b\u34a6\u05b0r\u0165\u34ab\u05b1\xbb\u117car\xf2\u1148\u0200cemt\u34b9\u34be\u34c2\u34c5r;\uc000\ud835\udcc8tm\xee\xf1i\xec\u3415ar\xe6\u11be\u0100ar\u34ce\u34d5r\u0100;f\u34d4\u17bf\u6606\u0100an\u34da\u34edight\u0100ep\u34e3\u34eapsilo\xee\u1ee0h\xe9\u2eafs\xbb\u2852\u0280bcmnp\u34fb\u355e\u1209\u358b\u358e\u0480;Edemnprs\u350e\u350f\u3511\u3515\u351e\u3523\u352c\u3531\u3536\u6282;\u6ac5ot;\u6abd\u0100;d\u11da\u351aot;\u6ac3ult;\u6ac1\u0100Ee\u3528\u352a;\u6acb;\u628alus;\u6abfarr;\u6979\u0180eiu\u353d\u3552\u3555t\u0180;en\u350e\u3545\u354bq\u0100;q\u11da\u350feq\u0100;q\u352b\u3528m;\u6ac7\u0100bp\u355a\u355c;\u6ad5;\u6ad3c\u0300;acens\u11ed\u356c\u3572\u3579\u357b\u3326ppro\xf8\u32faurlye\xf1\u11fe\xf1\u11f3\u0180aes\u3582\u3588\u331bppro\xf8\u331aq\xf1\u3317g;\u666a\u0680123;Edehlmnps\u35a9\u35ac\u35af\u121c\u35b2\u35b4\u35c0\u35c9\u35d5\u35da\u35df\u35e8\u35ed\u803b\xb9\u40b9\u803b\xb2\u40b2\u803b\xb3\u40b3;\u6ac6\u0100os\u35b9\u35bct;\u6abeub;\u6ad8\u0100;d\u1222\u35c5ot;\u6ac4s\u0100ou\u35cf\u35d2l;\u67c9b;\u6ad7arr;\u697bult;\u6ac2\u0100Ee\u35e4\u35e6;\u6acc;\u628blus;\u6ac0\u0180eiu\u35f4\u3609\u360ct\u0180;en\u121c\u35fc\u3602q\u0100;q\u1222\u35b2eq\u0100;q\u35e7\u35e4m;\u6ac8\u0100bp\u3611\u3613;\u6ad4;\u6ad6\u0180Aan\u361c\u3620\u362drr;\u61d9r\u0100hr\u3626\u3628\xeb\u222e\u0100;o\u0a2b\u0a29war;\u692alig\u803b\xdf\u40df\u0be1\u3651\u365d\u3660\u12ce\u3673\u3679\0\u367e\u36c2\0\0\0\0\0\u36db\u3703\0\u3709\u376c\0\0\0\u3787\u0272\u3656\0\0\u365bget;\u6316;\u43c4r\xeb\u0e5f\u0180aey\u3666\u366b\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uc000\ud835\udd31\u0200eiko\u3686\u369d\u36b5\u36bc\u01f2\u368b\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369b\u43b8ym;\u43d1\u0100cn\u36a2\u36b2k\u0100as\u36a8\u36aeppro\xf8\u12c1im\xbb\u12acs\xf0\u129e\u0100as\u36ba\u36ae\xf0\u12c1rn\u803b\xfe\u40fe\u01ec\u031f\u36c6\u22e7es\u8180\xd7;bd\u36cf\u36d0\u36d8\u40d7\u0100;a\u190f\u36d5r;\u6a31;\u6a30\u0180eps\u36e1\u36e3\u3700\xe1\u2a4d\u0200;bcf\u0486\u36ec\u36f0\u36f4ot;\u6336ir;\u6af1\u0100;o\u36f9\u36fc\uc000\ud835\udd65rk;\u6ada\xe1\u3362rime;\u6034\u0180aip\u370f\u3712\u3764d\xe5\u1248\u0380adempst\u3721\u374d\u3740\u3751\u3757\u375c\u375fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65b5own\xbb\u1dbbeft\u0100;e\u2800\u373e\xf1\u092e;\u625cight\u0100;e\u32aa\u374b\xf1\u105aot;\u65ecinus;\u6a3alus;\u6a39b;\u69cdime;\u6a3bezium;\u63e2\u0180cht\u3772\u377d\u3781\u0100ry\u3777\u377b;\uc000\ud835\udcc9;\u4446cy;\u445brok;\u4167\u0100io\u378b\u378ex\xf4\u1777head\u0100lr\u3797\u37a0eftarro\xf7\u084fightarrow\xbb\u0f5d\u0900AHabcdfghlmoprstuw\u37d0\u37d3\u37d7\u37e4\u37f0\u37fc\u380e\u381c\u3823\u3834\u3851\u385d\u386b\u38a9\u38cc\u38d2\u38ea\u38f6r\xf2\u03edar;\u6963\u0100cr\u37dc\u37e2ute\u803b\xfa\u40fa\xf2\u1150r\u01e3\u37ea\0\u37edy;\u445eve;\u416d\u0100iy\u37f5\u37farc\u803b\xfb\u40fb;\u4443\u0180abh\u3803\u3806\u380br\xf2\u13adlac;\u4171a\xf2\u13c3\u0100ir\u3813\u3818sht;\u697e;\uc000\ud835\udd32rave\u803b\xf9\u40f9\u0161\u3827\u3831r\u0100lr\u382c\u382e\xbb\u0957\xbb\u1083lk;\u6580\u0100ct\u3839\u384d\u026f\u383f\0\0\u384arn\u0100;e\u3845\u3846\u631cr\xbb\u3846op;\u630fri;\u65f8\u0100al\u3856\u385acr;\u416b\u80bb\xa8\u0349\u0100gp\u3862\u3866on;\u4173f;\uc000\ud835\udd66\u0300adhlsu\u114b\u3878\u387d\u1372\u3891\u38a0own\xe1\u13b3arpoon\u0100lr\u3888\u388cef\xf4\u382digh\xf4\u382fi\u0180;hl\u3899\u389a\u389c\u43c5\xbb\u13faon\xbb\u389aparrows;\u61c8\u0180cit\u38b0\u38c4\u38c8\u026f\u38b6\0\0\u38c1rn\u0100;e\u38bc\u38bd\u631dr\xbb\u38bdop;\u630eng;\u416fri;\u65f9cr;\uc000\ud835\udcca\u0180dir\u38d9\u38dd\u38e2ot;\u62f0lde;\u4169i\u0100;f\u3730\u38e8\xbb\u1813\u0100am\u38ef\u38f2r\xf2\u38a8l\u803b\xfc\u40fcangle;\u69a7\u0780ABDacdeflnoprsz\u391c\u391f\u3929\u392d\u39b5\u39b8\u39bd\u39df\u39e4\u39e8\u39f3\u39f9\u39fd\u3a01\u3a20r\xf2\u03f7ar\u0100;v\u3926\u3927\u6ae8;\u6ae9as\xe8\u03e1\u0100nr\u3932\u3937grt;\u699c\u0380eknprst\u34e3\u3946\u394b\u3952\u395d\u3964\u3996app\xe1\u2415othin\xe7\u1e96\u0180hir\u34eb\u2ec8\u3959op\xf4\u2fb5\u0100;h\u13b7\u3962\xef\u318d\u0100iu\u3969\u396dgm\xe1\u33b3\u0100bp\u3972\u3984setneq\u0100;q\u397d\u3980\uc000\u228a\ufe00;\uc000\u2acb\ufe00setneq\u0100;q\u398f\u3992\uc000\u228b\ufe00;\uc000\u2acc\ufe00\u0100hr\u399b\u399fet\xe1\u369ciangle\u0100lr\u39aa\u39afeft\xbb\u0925ight\xbb\u1051y;\u4432ash\xbb\u1036\u0180elr\u39c4\u39d2\u39d7\u0180;be\u2dea\u39cb\u39cfar;\u62bbq;\u625alip;\u62ee\u0100bt\u39dc\u1468a\xf2\u1469r;\uc000\ud835\udd33tr\xe9\u39aesu\u0100bp\u39ef\u39f1\xbb\u0d1c\xbb\u0d59pf;\uc000\ud835\udd67ro\xf0\u0efbtr\xe9\u39b4\u0100cu\u3a06\u3a0br;\uc000\ud835\udccb\u0100bp\u3a10\u3a18n\u0100Ee\u3980\u3a16\xbb\u397en\u0100Ee\u3992\u3a1e\xbb\u3990igzag;\u699a\u0380cefoprs\u3a36\u3a3b\u3a56\u3a5b\u3a54\u3a61\u3a6airc;\u4175\u0100di\u3a40\u3a51\u0100bg\u3a45\u3a49ar;\u6a5fe\u0100;q\u15fa\u3a4f;\u6259erp;\u6118r;\uc000\ud835\udd34pf;\uc000\ud835\udd68\u0100;e\u1479\u3a66at\xe8\u1479cr;\uc000\ud835\udccc\u0ae3\u178e\u3a87\0\u3a8b\0\u3a90\u3a9b\0\0\u3a9d\u3aa8\u3aab\u3aaf\0\0\u3ac3\u3ace\0\u3ad8\u17dc\u17dftr\xe9\u17d1r;\uc000\ud835\udd35\u0100Aa\u3a94\u3a97r\xf2\u03c3r\xf2\u09f6;\u43be\u0100Aa\u3aa1\u3aa4r\xf2\u03b8r\xf2\u09eba\xf0\u2713is;\u62fb\u0180dpt\u17a4\u3ab5\u3abe\u0100fl\u3aba\u17a9;\uc000\ud835\udd69im\xe5\u17b2\u0100Aa\u3ac7\u3acar\xf2\u03cer\xf2\u0a01\u0100cq\u3ad2\u17b8r;\uc000\ud835\udccd\u0100pt\u17d6\u3adcr\xe9\u17d4\u0400acefiosu\u3af0\u3afd\u3b08\u3b0c\u3b11\u3b15\u3b1b\u3b21c\u0100uy\u3af6\u3afbte\u803b\xfd\u40fd;\u444f\u0100iy\u3b02\u3b06rc;\u4177;\u444bn\u803b\xa5\u40a5r;\uc000\ud835\udd36cy;\u4457pf;\uc000\ud835\udd6acr;\uc000\ud835\udcce\u0100cm\u3b26\u3b29y;\u444el\u803b\xff\u40ff\u0500acdefhiosw\u3b42\u3b48\u3b54\u3b58\u3b64\u3b69\u3b6d\u3b74\u3b7a\u3b80cute;\u417a\u0100ay\u3b4d\u3b52ron;\u417e;\u4437ot;\u417c\u0100et\u3b5d\u3b61tr\xe6\u155fa;\u43b6r;\uc000\ud835\udd37cy;\u4436grarr;\u61ddpf;\uc000\ud835\udd6bcr;\uc000\ud835\udccf\u0100jn\u3b85\u3b87;\u600dj;\u600c
205'.split("").map((e=>e.charCodeAt(0)))),lge=new Uint16Array("\u0200aglq\t\x15\x18\x1b\u026d\x0f\0\0\x12p;\u4026os;\u4027t;\u403et;\u403cuot;\u4022".split("").map((e=>e.charCodeAt(0))));const cge=new Map([[0,65533],[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]]),uge=null!==(age=String.fromCodePoint)&&void 0!==age?age:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};function dge(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=cge.get(e))&&void 0!==t?t:e}var pge,hge;(hge=pge||(pge={}))[hge.NUM=35]="NUM",hge[hge.SEMI=59]="SEMI",hge[hge.EQUALS=61]="EQUALS",hge[hge.ZERO=48]="ZERO",hge[hge.NINE=57]="NINE",hge[hge.LOWER_A=97]="LOWER_A",hge[hge.LOWER_F=102]="LOWER_F",hge[hge.LOWER_X=120]="LOWER_X",hge[hge.LOWER_Z=122]="LOWER_Z",hge[hge.UPPER_A=65]="UPPER_A",hge[hge.UPPER_F=70]="UPPER_F",hge[hge.UPPER_Z=90]="UPPER_Z";var fge,mge,gge,bge,vge,yge;function xge(e){return e>=pge.ZERO&&e<=pge.NINE}function wge(e){return e===pge.EQUALS||function(e){return e>=pge.UPPER_A&&e<=pge.UPPER_Z||e>=pge.LOWER_A&&e<=pge.LOWER_Z||xge(e)}(e)}(mge=fge||(fge={}))[mge.VALUE_LENGTH=49152]="VALUE_LENGTH",mge[mge.BRANCH_LENGTH=16256]="BRANCH_LENGTH",mge[mge.JUMP_TABLE=127]="JUMP_TABLE",(bge=gge||(gge={}))[bge.EntityStart=0]="EntityStart",bge[bge.NumericStart=1]="NumericStart",bge[bge.NumericDecimal=2]="NumericDecimal",bge[bge.NumericHex=3]="NumericHex",bge[bge.NamedEntity=4]="NamedEntity",(yge=vge||(vge={}))[yge.Legacy=0]="Legacy",yge[yge.Strict=1]="Strict",yge[yge.Attribute=2]="Attribute";class Age{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=gge.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=vge.Strict}startEntity(e){this.decodeMode=e,this.state=gge.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case gge.EntityStart:return e.charCodeAt(t)===pge.NUM?(this.state=gge.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=gge.NamedEntity,this.stateNamedEntity(e,t));case gge.NumericStart:return this.stateNumericStart(e,t);case gge.NumericDecimal:return this.stateNumericDecimal(e,t);case gge.NumericHex:return this.stateNumericHex(e,t);case gge.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===pge.LOWER_X?(this.state=gge.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=gge.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const i=n-t;
vendor: 5,348 bytes, line 205
205this.result=this.result*Math.pow(r,i)+parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){const n=t;for(;t<e.length;){const i=e.charCodeAt(t);if(!(xge(i)||(r=i,r>=pge.UPPER_A&&r<=pge.UPPER_F||r>=pge.LOWER_A&&r<=pge.LOWER_F)))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(i,3);t+=1}var r;return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!xge(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===pge.SEMI)this.consumed+=1;else if(this.decodeMode===vge.Strict)return 0;return this.emitCodePoint(dge(this.result),this.consumed),this.errors&&(e!==pge.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let r=n[this.treeIndex],i=(r&fge.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const o=e.charCodeAt(t);if(this.treeIndex=Sge(n,r,this.treeIndex+Math.max(1,i),o),this.treeIndex<0)return 0===this.result||this.decodeMode===vge.Attribute&&(0===i||wge(o))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],i=(r&fge.VALUE_LENGTH)>>14,0!==i){if(o===pge.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==vge.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&fge.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~fge.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case gge.NamedEntity:return 0===this.result||this.decodeMode===vge.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case gge.NumericDecimal:return this.emitNumericEntity(0,2);case gge.NumericHex:return this.emitNumericEntity(0,3);case gge.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case gge.EntityStart:return 0}}}function Ege(e){let t="";const n=new Age(e,(e=>t+=uge(e)));return function(e,r){let i=0,o=0;for(;(o=e.indexOf("&",o))>=0;){t+=e.slice(i,o),n.startEntity(r);const a=n.write(e,o+1);if(a<0){i=o+n.end();break}i=o+a,o=0===a?i+1:i}const a=t+e.slice(i);return t="",a}}function Sge(e,t,n,r){const i=(t&fge.BRANCH_LENGTH)>>7,o=t&fge.JUMP_TABLE;if(0===i)return 0!==o&&r===o?n:-1;if(o){const t=r-o;return t<0||t>=i?-1:e[n+t]-1}let a=n,s=a+i-1;for(;a<=s;){const t=a+s>>>1,n=e[t];if(n<r)a=t+1;else{if(!(n>r))return e[t+i];s=t-1}}return-1}Ege(sge),Ege(lge);var _ge,kge,Tge,Cge,Oge,Nge,Ige,Rge,Pge;!function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"}(_ge||(_ge={})),(Tge=kge||(kge={})).TYPE="type",Tge.ACTION="action",Tge.ENCODING="encoding",Tge.PROMPT="prompt",Tge.NAME="name",Tge.COLOR="color",Tge.FACE="face",Tge.SIZE="size",(Oge=Cge||(Cge={})).NO_QUIRKS="no-quirks",Oge.QUIRKS="quirks",Oge.LIMITED_QUIRKS="limited-quirks",(Ige=Nge||(Nge={})).A="a",Ige.ADDRESS="address",Ige.ANNOTATION_XML="annotation-xml",Ige.APPLET="applet",Ige.AREA="area",Ige.ARTICLE="article",Ige.ASIDE="aside",Ige.B="b",Ige.BASE="base",Ige.BASEFONT="basefont",Ige.BGSOUND="bgsound",Ige.BIG="big",Ige.BLOCKQUOTE="blockquote",Ige.BODY="body",Ige.BR="br",Ige.BUTTON="button",Ige.CAPTION="caption",Ige.CENTER="center",Ige.CODE="code",Ige.COL="col",Ige.COLGROUP="colgroup",Ige.DD="dd",Ige.DESC="desc",Ige.DETAILS="details",Ige.DIALOG="dialog",Ige.DIR="dir",Ige.DIV="div",Ige.DL="dl",Ige.DT="dt",Ige.EM="em",Ige.EMBED="embed",Ige.FIELDSET="fieldset",Ige.FIGCAPTION="figcaption",Ige.FIGURE="figure",Ige.FONT="font",Ige.FOOTER="footer",Ige.FOREIGN_OBJECT="foreignObject",Ige.FORM="form",Ige.FRAME="frame",Ige.FRAMESET="frameset",Ige.H1="h1",Ige.H2="h2",Ige.H3="h3",Ige.H4="h4",Ige.H5="h5",Ige.H6="h6",Ige.HEAD="head",Ige.HEADER="header",Ige.HGROUP="hgroup",Ige.HR="hr",Ige.HTML="html",Ige.I="i",Ige.IMG="img",Ige.IMAGE="image",Ige.INPUT="input",Ige.IFRAME="iframe",Ige.KEYGEN="keygen",Ige.LABEL="label",Ige.LI="li",Ige.LINK="link",Ige.LISTING="listing",Ige.MAIN="main",Ige.MALIGNMARK="malignmark",Ige.MARQUEE="marquee",Ige.MATH="math",Ige.MENU="menu",Ige.META="meta",Ige.MGLYPH="mglyph",Ige.MI="mi",Ige.MO="mo",Ige.MN="mn",Ige.MS="ms",Ige.MTEXT="mtext",Ige.NAV="nav",Ige.NOBR="nobr",Ige.NOFRAMES="noframes",Ige.NOEMBED="noembed",Ige.NOSCRIPT="noscript",Ige.OBJECT="object",Ige.OL="ol",Ige.OPTGROUP="optgroup",Ige.OPTION="option",Ige.P="p",Ige.PARAM="param",Ige.PLAINTEXT="plaintext",Ige.PRE="pre",Ige.RB="rb",Ige.RP="rp",Ige.RT="rt",Ige.RTC="rtc",Ige.RUBY="ruby",Ige.S="s",Ige.SCRIPT="script",Ige.SEARCH="search",Ige.SECTION="section",Ige.SELECT="select",Ige.SOURCE="source",Ige.SMALL="small",Ige.SPAN="span",Ige.STRIKE="str
205ike",Ige.STRONG="strong",Ige.STYLE="style",Ige.SUB="sub",Ige.SUMMARY="summary",Ige.SUP="sup",Ige.TABLE="table",Ige.TBODY="tbody",Ige.TEMPLATE="template",Ige.TEXTAREA="textarea",Ige.TFOOT="tfoot",Ige.TD="td",Ige.TH="th",Ige.THEAD="thead",Ige.TITLE="title",Ige.TR="tr",Ige.TRACK="track",Ige.TT="tt",Ige.U="u",Ige.UL="ul",Ige.SVG="svg",Ige.VAR="var",Ige.WBR="wbr",Ige.XMP="xmp",(Pge=Rge||(Rge={}))[Pge.UNKNOWN=0]="UNKNOWN",Pge[Pge.A=1]="A",Pge[Pge.ADDRESS=2]="ADDRESS",Pge[Pge.ANNOTATION_XML=3]="ANNOTATION_XML",Pge[Pge.APPLET=4]="APPLET",Pge[Pge.AREA=5]="AREA",Pge[Pge.ARTICLE=6]="ARTICLE",Pge[Pge.ASIDE=7]="ASIDE",Pge[Pge.B=8]="B",Pge[Pge.BASE=9]="BASE",Pge[Pge.BASEFONT=10]="BASEFONT",Pge[Pge.BGSOUND=11]="BGSOUND",Pge[Pge.BIG=12]="BIG",Pge[Pge.BLOCKQUOTE=13]="BLOCKQUOTE",Pge[Pge.BODY=14]="BODY",Pge[Pge.BR=15]="BR",Pge[Pge.BUTTON=16]="BUTTON",Pge[Pge.CAPTION=17]="CAPTION",Pge[Pge.CENTER=18]="CENTER",Pge[Pge.CODE=19]="CODE",Pge[Pge.COL=20]="COL",Pge[Pge.COLGROUP=21]="COLGROUP",Pge[Pge.DD=22]="DD",Pge[Pge.DESC=23]="DESC",Pge[Pge.DETAILS=24]="DETAILS",Pge[Pge.DIALOG=25]="DIALOG",Pge[Pge.DIR=26]="DIR",Pge[Pge.DIV=27]="DIV",Pge[Pge.DL=28]="DL",Pge[Pge.DT=29]="DT",Pge[Pge.EM=30]="EM",Pge[Pge.EMBED=31]="EMBED",Pge[Pge.FIELDSET=32]="FIELDSET",Pge[Pge.FIGCAPTION=33]="FIGCAPTION",Pge[Pge.FIGURE=34]="FIGURE",Pge[Pge.FONT=35]="FONT",Pge[Pge.FOOTER=36]="FOOTER",Pge[Pge.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",Pge[Pge.FORM=38]="FORM",Pge[Pge.FRAME=39]="FRAME",Pge[Pge.FRAMESET=40]="FRAMESET",Pge[Pge.H1=41]="H1",Pge[Pge.H2=42]="H2",Pge[Pge.H3=43]="H3",Pge[Pge.H4=44]="H4",Pge[Pge.H5=45]="H5",Pge[Pge.H6=46]="H6",Pge[Pge.HEAD=47]="HEAD",Pge[Pge.HEADER=48]="HEADER",Pge[Pge.HGROUP=49]="HGROUP",Pge[Pge.HR=50]="HR",Pge[Pge.HTML=51]="HTML",Pge[Pge.I=52]="I",Pge[Pge.IMG=53]="IMG",Pge[Pge.IMAGE=54]="IMAGE",Pge[Pge.INPUT=55]="INPUT",Pge[Pge.IFRAME=56]="IFRAME",Pge[Pge.KEYGEN=57]="KEYGEN",Pge[Pge.LABEL=58]="LABEL",Pge[Pge.LI=59]="LI",Pge[Pge.LINK=60]="LINK",Pge[Pge.LISTING=61]="LISTING",Pge[Pge.MAIN=62]="MAIN",Pge[Pge.MALIGNMARK=63]="MALIGNMARK",Pge[Pge.MARQUEE=64]="MARQUEE",Pge[Pge.MATH=65]="MATH",Pge[Pge.MENU=66]="MENU",Pge[Pge.META=67]="META",Pge[Pge.MGLYPH=68]="MGLYPH",Pge[Pge.MI=69]="MI",Pge[Pge.MO=70]="MO",Pge[Pge.MN=71]="MN",Pge[Pge.MS=72]="MS",Pge[Pge.MTEXT=73]="MTEXT",Pge[Pge.NAV=74]="NAV",Pge[Pge.NOBR=75]="NOBR",Pge[Pge.NOFRAMES=76]="NOFRAMES",Pge[Pge.NOEMBED=77]="NOEMBED",Pge[Pge.NOSCRIPT=78]="NOSCRIPT",Pge[Pge.OBJECT=79]="OBJECT",Pge[Pge.OL=80]="OL",Pge[Pge.OPTGROUP=81]="OPTGROUP",Pge[Pge.OPTION=82]="OPTION",Pge[Pge.P=83]="P",Pge[Pge.PARAM=84]="PARAM",Pge[Pge.PLAINTEXT=85]="PLAINTEXT",Pge[Pge.PRE=86]="PRE",Pge[Pge.RB=87]="RB",Pge[Pge.RP=88]="RP",Pge[Pge.RT=89]="RT",Pge[Pge.RTC=90]="RTC",Pge[Pge.RUBY=91]="RUBY",Pge[Pge.S=92]="S",Pge[Pge.SCRIPT=93]="SCRIPT",Pge[Pge.SEARCH=94]="SEARCH",Pge[Pge.SECTION=95]="SECTION",Pge[Pge.SELECT=96]="SELECT",Pge[Pge.SOURCE=97]="SOURCE",Pge[Pge.SMALL=98]="SMALL",Pge[Pge.SPAN=99]="SPAN",Pge[Pge.STRIKE=100]="STRIKE",Pge[Pge.STRONG=101]="STRONG",Pge[Pge.STYLE=102]="STYLE",Pge[Pge.SUB=103]="SUB",Pge[Pge.SUMMARY=104]="SUMMARY",Pge[Pge.SUP=105]="SUP",Pge[Pge.TABLE=106]="TABLE",Pge[Pge.TBODY=107]="TBODY",Pge[Pge.TEMPLATE=108]="TEMPLATE",Pge[Pge.TEXTAREA=109]="TEXTAREA",Pge[Pge.TFOOT=110]="TFOOT",Pge[Pge.TD=111]="TD",Pge[Pge.TH=112]="TH",Pge[Pge.THEAD=113]="THEAD",Pge[Pge.TITLE=114]="TITLE",Pge[Pge.TR=115]="TR",Pge[Pge.TRACK=116]="TRACK",Pge[Pge.TT=117]="TT",Pge[Pge.U=118]="U",Pge[Pge.UL=119]="UL",Pge[Pge.SVG=120]="SVG",Pge[Pge.VAR=121]="VAR",Pge[Pge.WBR=122]="WBR",Pge[Pge.XMP=123]="XMP";const jge=new Map([[Nge.A,Rge.A],[Nge.ADDRESS,Rge.ADDRESS],[Nge.ANNOTATION_XML,Rge.ANNOTATION_XML],[Nge.APPLET,Rge.APPLET],[Nge.AREA,Rge.AREA],[Nge.ARTICLE,Rge.ARTICLE],[Nge.ASIDE,Rge.ASIDE],[Nge.B,Rge.B],[Nge.BASE,Rge.BASE],[Nge.BASEFONT,Rge.BASEFONT],[Nge.BGSOUND,Rge.BGSOUND],[Nge.BIG,Rge.BIG],[Nge.BLOCKQUOTE,Rge.BLOCKQUOTE],[Nge.BODY,Rge.BODY],[Nge.BR,Rge.BR],[Nge.BUTTON,Rge.BUTTON],[Nge.CAPTION,Rge.CAPTION],[Nge.CENTER,Rge.CENTER],[Nge.CODE,Rge.CODE],[Nge.COL,Rge.COL],[Nge.COLGROUP,Rge.COLGROUP],[Nge.DD,Rge.DD],[Nge.DESC,Rge.DESC],[Nge.DETAILS,Rge.DETAILS],[Nge.DIALOG,Rge.DIALOG],[Nge.DIR,Rge.DIR],[Nge.DIV,Rge.DIV],[Nge.DL,Rge.DL],[Nge.DT,Rge.DT],[Nge.EM,Rge.EM],[Nge.EMBED,Rge.EMBED],[Nge.FIELDSET,Rge.FIELDSET],[Nge.FIGCAPTION,Rge.FIGCAPTION],[Nge.FIGURE,Rge.FIGURE],[Nge.FONT,Rge.FONT],[Nge.FOOTER,Rge.FOOTER],[Nge.FOREIGN_OBJECT,Rge.FOREIGN_OBJECT],[Nge.FORM,Rge.FORM],[Nge.FRAME,Rge.FRAME],[Nge.FRAMESET,Rge.FRAMESET],[Nge.H1,Rge.H1],[Nge.H2,Rge.H2],[Nge.H3,Rge.H3],[Nge.H4,Rge.H4],[Nge.H5,Rge.H5],[Nge.H6,Rge.H6],[Nge.HEAD,Rge.HEAD],[Nge.HEADER,Rge.HEADER],[Nge.HGROUP,Rge.HGROUP],[Nge.HR,Rge.HR],[
vendor: 12,994 bytes, line 205
205Nge.HTML,Rge.HTML],[Nge.I,Rge.I],[Nge.IMG,Rge.IMG],[Nge.IMAGE,Rge.IMAGE],[Nge.INPUT,Rge.INPUT],[Nge.IFRAME,Rge.IFRAME],[Nge.KEYGEN,Rge.KEYGEN],[Nge.LABEL,Rge.LABEL],[Nge.LI,Rge.LI],[Nge.LINK,Rge.LINK],[Nge.LISTING,Rge.LISTING],[Nge.MAIN,Rge.MAIN],[Nge.MALIGNMARK,Rge.MALIGNMARK],[Nge.MARQUEE,Rge.MARQUEE],[Nge.MATH,Rge.MATH],[Nge.MENU,Rge.MENU],[Nge.META,Rge.META],[Nge.MGLYPH,Rge.MGLYPH],[Nge.MI,Rge.MI],[Nge.MO,Rge.MO],[Nge.MN,Rge.MN],[Nge.MS,Rge.MS],[Nge.MTEXT,Rge.MTEXT],[Nge.NAV,Rge.NAV],[Nge.NOBR,Rge.NOBR],[Nge.NOFRAMES,Rge.NOFRAMES],[Nge.NOEMBED,Rge.NOEMBED],[Nge.NOSCRIPT,Rge.NOSCRIPT],[Nge.OBJECT,Rge.OBJECT],[Nge.OL,Rge.OL],[Nge.OPTGROUP,Rge.OPTGROUP],[Nge.OPTION,Rge.OPTION],[Nge.P,Rge.P],[Nge.PARAM,Rge.PARAM],[Nge.PLAINTEXT,Rge.PLAINTEXT],[Nge.PRE,Rge.PRE],[Nge.RB,Rge.RB],[Nge.RP,Rge.RP],[Nge.RT,Rge.RT],[Nge.RTC,Rge.RTC],[Nge.RUBY,Rge.RUBY],[Nge.S,Rge.S],[Nge.SCRIPT,Rge.SCRIPT],[Nge.SEARCH,Rge.SEARCH],[Nge.SECTION,Rge.SECTION],[Nge.SELECT,Rge.SELECT],[Nge.SOURCE,Rge.SOURCE],[Nge.SMALL,Rge.SMALL],[Nge.SPAN,Rge.SPAN],[Nge.STRIKE,Rge.STRIKE],[Nge.STRONG,Rge.STRONG],[Nge.STYLE,Rge.STYLE],[Nge.SUB,Rge.SUB],[Nge.SUMMARY,Rge.SUMMARY],[Nge.SUP,Rge.SUP],[Nge.TABLE,Rge.TABLE],[Nge.TBODY,Rge.TBODY],[Nge.TEMPLATE,Rge.TEMPLATE],[Nge.TEXTAREA,Rge.TEXTAREA],[Nge.TFOOT,Rge.TFOOT],[Nge.TD,Rge.TD],[Nge.TH,Rge.TH],[Nge.THEAD,Rge.THEAD],[Nge.TITLE,Rge.TITLE],[Nge.TR,Rge.TR],[Nge.TRACK,Rge.TRACK],[Nge.TT,Rge.TT],[Nge.U,Rge.U],[Nge.UL,Rge.UL],[Nge.SVG,Rge.SVG],[Nge.VAR,Rge.VAR],[Nge.WBR,Rge.WBR],[Nge.XMP,Rge.XMP]]);function Mge(e){var t;return null!==(t=jge.get(e))&&void 0!==t?t:Rge.UNKNOWN}const Dge=Rge,Lge={[_ge.HTML]:new Set([Dge.ADDRESS,Dge.APPLET,Dge.AREA,Dge.ARTICLE,Dge.ASIDE,Dge.BASE,Dge.BASEFONT,Dge.BGSOUND,Dge.BLOCKQUOTE,Dge.BODY,Dge.BR,Dge.BUTTON,Dge.CAPTION,Dge.CENTER,Dge.COL,Dge.COLGROUP,Dge.DD,Dge.DETAILS,Dge.DIR,Dge.DIV,Dge.DL,Dge.DT,Dge.EMBED,Dge.FIELDSET,Dge.FIGCAPTION,Dge.FIGURE,Dge.FOOTER,Dge.FORM,Dge.FRAME,Dge.FRAMESET,Dge.H1,Dge.H2,Dge.H3,Dge.H4,Dge.H5,Dge.H6,Dge.HEAD,Dge.HEADER,Dge.HGROUP,Dge.HR,Dge.HTML,Dge.IFRAME,Dge.IMG,Dge.INPUT,Dge.LI,Dge.LINK,Dge.LISTING,Dge.MAIN,Dge.MARQUEE,Dge.MENU,Dge.META,Dge.NAV,Dge.NOEMBED,Dge.NOFRAMES,Dge.NOSCRIPT,Dge.OBJECT,Dge.OL,Dge.P,Dge.PARAM,Dge.PLAINTEXT,Dge.PRE,Dge.SCRIPT,Dge.SECTION,Dge.SELECT,Dge.SOURCE,Dge.STYLE,Dge.SUMMARY,Dge.TABLE,Dge.TBODY,Dge.TD,Dge.TEMPLATE,Dge.TEXTAREA,Dge.TFOOT,Dge.TH,Dge.THEAD,Dge.TITLE,Dge.TR,Dge.TRACK,Dge.UL,Dge.WBR,Dge.XMP]),[_ge.MATHML]:new Set([Dge.MI,Dge.MO,Dge.MN,Dge.MS,Dge.MTEXT,Dge.ANNOTATION_XML]),[_ge.SVG]:new Set([Dge.TITLE,Dge.FOREIGN_OBJECT,Dge.DESC]),[_ge.XLINK]:new Set,[_ge.XML]:new Set,[_ge.XMLNS]:new Set},Fge=new Set([Dge.H1,Dge.H2,Dge.H3,Dge.H4,Dge.H5,Dge.H6]);new Set([Nge.STYLE,Nge.SCRIPT,Nge.XMP,Nge.IFRAME,Nge.NOEMBED,Nge.NOFRAMES,Nge.PLAINTEXT]);var Bge,Uge;(Uge=Bge||(Bge={}))[Uge.DATA=0]="DATA",Uge[Uge.RCDATA=1]="RCDATA",Uge[Uge.RAWTEXT=2]="RAWTEXT",Uge[Uge.SCRIPT_DATA=3]="SCRIPT_DATA",Uge[Uge.PLAINTEXT=4]="PLAINTEXT",Uge[Uge.TAG_OPEN=5]="TAG_OPEN",Uge[Uge.END_TAG_OPEN=6]="END_TAG_OPEN",Uge[Uge.TAG_NAME=7]="TAG_NAME",Uge[Uge.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",Uge[Uge.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",Uge[Uge.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",Uge[Uge.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",Uge[Uge.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",Uge[Uge.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",Uge[Uge.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",Uge[Uge.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",Uge[Uge.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",Uge[Uge.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",Uge[Uge.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",Uge[Uge.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",Uge[Uge.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",Uge[Uge.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",Uge[Uge.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",Uge[Uge.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",Uge[Uge.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",Uge[Uge.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",Uge[Uge.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",Uge[Uge.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",Uge[Uge.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",Uge[Uge.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",Uge[Uge.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",Uge[Uge.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",Uge[Uge.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",Uge[Uge.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",Uge[Uge.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",Uge[Uge.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",Uge[Uge.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",Uge[Uge.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",Uge[Uge.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",Uge[Uge.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",Uge[Uge.BOGUS_COMMENT=40]="BOGUS_COMMENT",Uge[Uge.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",Uge[Uge.COMMENT_START=42]="COMMENT_START",Uge[Uge.COMMENT_START_DASH=43]="COMMENT_START_DASH",Uge[Uge.COMMENT=44]="COMMENT",Uge[Uge.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",Uge[Uge.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",Uge[Uge.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",Uge[Uge.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",Uge[Uge.COMMENT_END_DASH=49]="COMMENT_END_DASH",Uge[Uge.COMMENT_END=50]="COMMENT_END",Uge[Uge.COMMENT_END_BANG=51]="COMMENT_END_BANG",Uge[Uge.DOCTYPE=52]="DOCTYPE",Uge[Uge.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",Uge[Uge.DOCTYPE_NAME=54]="DOCTYPE_NAME",Uge[Uge.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",Uge[Uge.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",Uge[Uge.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",Uge[Uge.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",Uge[Uge.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",Uge[Uge.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",Uge[Uge.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",Uge[Uge.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",Uge[Uge.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",Uge[Uge.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",Uge[Uge.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",Uge[Uge.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",Uge[Uge.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",Uge[Uge.CDATA_SECTION=68]="CDATA_SECTION",Uge[Uge.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",Uge[Uge.CDATA_SECTION_END=70]="CDATA_SECTION_END",Uge[Uge.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",Uge[Uge.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND";const zge={DATA:Bge.DATA,RCDATA:Bge.RCDATA,RAWTEXT:Bge.RAWTEXT,SCRIPT_DATA:Bge.SCRIPT_DATA,PLAINTEXT:Bge.PLAINTEXT,CDATA_SECTION:Bge.CDATA_SECTION};function Hge(e){return e>=$me.LATIN_CAPITAL_A&&e<=$me.LATIN_CAPITAL_Z}function $ge(e){return function(e){return e>=$me.LATIN_SMALL_A&&e<=$me.LATIN_SMALL_Z}(e)||Hge(e)}function Vge(e){return $ge(e)||function(e){return e>=$me.DIGIT_0&&e<=$me.DIGIT_9}(e)}function Gge(e){return e+32}function Wge(e){return e===$me.SPACE||e===$me.LINE_FEED||e===$me.TABULATION||e===$me.FORM_FEED}function qge(e){return Wge(e)||e===$me.SOLIDUS||e===$me.GREATER_THAN_SIGN}class Yge{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=Bge.DATA,this.returnState=Bge.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new nge(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Age(sge,((e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)}),t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(ege.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(ege.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{const t=function(e){return e===$me.NULL?ege.nullCharacterReference:e>1114111?ege.characterReferenceOutsideUnicodeRange:Zme(e)?ege.surrogateCharacterReference:Jme(e)?ege.noncharacterCharacterReference:Qme(e)||e===$me.CARRIAGE_RETURN?ege.controlCharacterReference:null}(e);t&&this._err(t,1)}}:void 0)}_err(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;var n,r;null===(r=(n=this.handler).onParseError)||void 0===r||r.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null===e||void 0===e||e())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null===n||void 0===n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return!!this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!0)}_createStartTagToken(){this.currentToken={type:rge.START_TAG,tagName:"",tagID:Rge.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:rge.END_TAG,tagName:"",tagID:Rge.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:rge.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:rge.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;const n=this.currentToken;if(null===oge(n,this.currentAttr.name)){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){(null!==(e=(t=n.location).attrs)&&void 0!==e?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(ege.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e),e.tagID=Mge(e.tagName),e.type===rge.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(ege.endTagWithAttributes),e.selfClosing&&this._err(ege.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case rge.CHARACTER:this.handler.onCh
vendor: 6,349 bytes, line 205
205aracter(this.currentCharacterToken);break;case rge.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case rge.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:rge.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type===e)return void(this.currentCharacterToken.chars+=t);this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(e,t)}_emitCodePoint(e){const t=Wge(e)?rge.WHITESPACE_CHARACTER:e===$me.NULL?rge.NULL_CHARACTER:rge.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(rge.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=Bge.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?vge.Attribute:vge.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===Bge.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Bge.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Bge.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case Bge.DATA:this._stateData(e);break;case Bge.RCDATA:this._stateRcdata(e);break;case Bge.RAWTEXT:this._stateRawtext(e);break;case Bge.SCRIPT_DATA:this._stateScriptData(e);break;case Bge.PLAINTEXT:this._statePlaintext(e);break;case Bge.TAG_OPEN:this._stateTagOpen(e);break;case Bge.END_TAG_OPEN:this._stateEndTagOpen(e);break;case Bge.TAG_NAME:this._stateTagName(e);break;case Bge.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case Bge.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case Bge.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case Bge.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case Bge.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case Bge.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case Bge.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case Bge.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case Bge.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case Bge.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case Bge.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case Bge.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case Bge.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case Bge.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case Bge.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case Bge.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case Bge.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case Bge.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case Bge.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case Bge.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case Bge.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case Bge.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case Bge.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case Bge.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case Bge.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case Bge.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case Bge.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case Bge.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case Bge.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case Bge.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case Bge.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case Bge.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case Bge.BOGUS_COMMENT:this._stateBogusComment(e);break;case Bge.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case Bge.COMMENT_START:this._stateCommentStart(e);break;case Bge.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case Bge.COMMENT:this._stateComment(e);break;case Bge.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case Bge.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case Bge.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case Bge.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case Bge.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case Bge.COMMENT_END:this._stateCommentEnd(e);break;case Bge.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case Bge.DOCTYPE:this._stateDoctype(e);break;case Bge.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case Bge.DOCTYPE_NAME:this._stateDoctypeName(e);break;case Bge.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case Bge.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case Bge.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case Bge.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case Bge.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case Bge.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case Bge.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case Bge.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case Bge.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctype
vendor: 20,661 bytes, line 205
205SystemIdentifier(e);break;case Bge.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case Bge.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case Bge.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case Bge.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case Bge.CDATA_SECTION:this._stateCdataSection(e);break;case Bge.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case Bge.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case Bge.CHARACTER_REFERENCE:this._stateCharacterReference();break;case Bge.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case $me.LESS_THAN_SIGN:this.state=Bge.TAG_OPEN;break;case $me.AMPERSAND:this._startCharacterReference();break;case $me.NULL:this._err(ege.unexpectedNullCharacter),this._emitCodePoint(e);break;case $me.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case $me.AMPERSAND:this._startCharacterReference();break;case $me.LESS_THAN_SIGN:this.state=Bge.RCDATA_LESS_THAN_SIGN;break;case $me.NULL:this._err(ege.unexpectedNullCharacter),this._emitChars(Hme);break;case $me.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case $me.LESS_THAN_SIGN:this.state=Bge.RAWTEXT_LESS_THAN_SIGN;break;case $me.NULL:this._err(ege.unexpectedNullCharacter),this._emitChars(Hme);break;case $me.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case $me.LESS_THAN_SIGN:this.state=Bge.SCRIPT_DATA_LESS_THAN_SIGN;break;case $me.NULL:this._err(ege.unexpectedNullCharacter),this._emitChars(Hme);break;case $me.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case $me.NULL:this._err(ege.unexpectedNullCharacter),this._emitChars(Hme);break;case $me.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if($ge(e))this._createStartTagToken(),this.state=Bge.TAG_NAME,this._stateTagName(e);else switch(e){case $me.EXCLAMATION_MARK:this.state=Bge.MARKUP_DECLARATION_OPEN;break;case $me.SOLIDUS:this.state=Bge.END_TAG_OPEN;break;case $me.QUESTION_MARK:this._err(ege.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=Bge.BOGUS_COMMENT,this._stateBogusComment(e);break;case $me.EOF:this._err(ege.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(ege.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=Bge.DATA,this._stateData(e)}}_stateEndTagOpen(e){if($ge(e))this._createEndTagToken(),this.state=Bge.TAG_NAME,this._stateTagName(e);else switch(e){case $me.GREATER_THAN_SIGN:this._err(ege.missingEndTagName),this.state=Bge.DATA;break;case $me.EOF:this._err(ege.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(ege.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=Bge.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const t=this.currentToken;switch(e){case $me.SPACE:case $me.LINE_FEED:case $me.TABULATION:case $me.FORM_FEED:this.state=Bge.BEFORE_ATTRIBUTE_NAME;break;case $me.SOLIDUS:this.state=Bge.SELF_CLOSING_START_TAG;break;case $me.GREATER_THAN_SIGN:this.state=Bge.DATA,this.emitCurrentTagToken();break;case $me.NULL:this._err(ege.unexpectedNullCharacter),t.tagName+=Hme;break;case $me.EOF:this._err(ege.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(Hge(e)?Gge(e):e)}}_stateRcdataLessThanSign(e){e===$me.SOLIDUS?this.state=Bge.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=Bge.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){$ge(e)?(this.state=Bge.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=Bge.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();this.currentToken.tagName=this.lastStartTagName;switch(this.preprocessor.peek(this.lastStartTagName.length)){case $me.SPACE:case $me.LINE_FEED:case $me.TABULATION:case $me.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=Bge.BEFORE_ATTRIBUTE_NAME,!1;case $me.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=Bge.SELF_CLOSING_START_TAG,!1;case $me.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=Bge.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Bge.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===$me.SOLIDUS?this.state=Bge.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=Bge.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){$ge(e)?(this.state=Bge.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=Bge.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Bge.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case $me.SOLIDUS:this.state=Bge.SCRIPT_DATA_END_TAG_OPEN;break;case $me.EXCLAMATION_MARK:this.state=Bge.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=Bge.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){$ge(e)?(this.state=Bge.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=Bge.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Bge.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===$me.HYPHEN_MINUS?(this.state=Bge.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=Bge.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===$me.HYPHEN_MINUS?(this.state=Bge.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=Bge.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case $me.HYPHEN_MINUS:this.state=Bge.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case $me.LESS_THAN_SIGN:this.state=Bge.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case $me.NULL:this._err(ege.unexpectedNullCharacter),this._emitChars(Hme);break;case $me.EOF:this._err(ege.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case $me.HYPHEN_MINUS:this.state=Bge.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case $me.LESS_THAN_SIGN:this.state=Bge.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case $me.NULL:this._err(ege.unexpectedNullCharacter),this.state=Bge.SCRIPT_DATA_ESCAPED,this._emitChars(Hme);break;case $me.EOF:this._err(ege.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Bge.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case $me.HYPHEN_MINUS:this._emitChars("-");break;case $me.LESS_THAN_SIGN:this.state=Bge.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case $me.GREATER_THAN_SIGN:this.state=Bge.SCRIPT_DATA,this._emitChars(">");break;case $me.NULL:this._err(ege.unexpectedNullCharacter),this.state=Bge.SCRIPT_DATA_ESCAPED,this._emitChars(Hme);break;case $me.EOF:this._err(ege.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Bge.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===$me.SOLIDUS?this.state=Bge.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:$ge(e)?(this._emitChars("<"),this.state=Bge.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=Bge.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){$ge(e)?(this.state=Bge.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=Bge.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Bge.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(Yme,!1)&&qge(this.preprocessor.peek(Yme.length))){this._emitCodePoint(e);for(let e=0;e<Yme.length;e++)this._emitCodePoint(this._consume());this.state=Bge.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=Bge.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case $me.HYPHEN_MINUS:this.state=Bge.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case $me.LESS_THAN_SIGN:this.state=Bge.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case $me.NULL:this._err(ege.unexpectedNullCharacter),this._emitChars(Hme);break;case $me.EOF:this._err(ege.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case $me.HYPHEN_MINUS:this.state=Bge.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case $me.LESS_THAN_SIGN:this.state=Bge.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case $me.NULL:this._err(ege.unexpectedNullCharacter),this.state=Bge.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Hme);break;case $me.EOF:this._err(ege.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Bge.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case $me.HYPHEN_MINUS:this._emitChars("-");break;case $me.LESS_THAN_SIGN:this.state=Bge.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case $me.GREATER_THAN_SIGN:this.state=Bge.SCRIPT_DATA,this._emitChars(">");break;case $me.NULL:this._err(ege.unexpectedNullCharacter),this.state=Bge.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Hme);break;case $me.EOF:this._err(ege.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Bge.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===$me.SOLIDUS?(this.state=Bge.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=Bge.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(Yme,!1)&&qge(this.preprocessor.peek(Yme.length))){this._emitCodePoint(e);for(let e=0;e<Yme.length;e++)this._emitCodePoint(this._consume());this.state=Bge.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=Bge.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case $me.SPACE:case $me.LINE_FEED:case $me.TABULATION:case $me.FORM_FEED:break;case $me.SOLIDUS:case $me.GREATER_THAN_SIGN:case $me.EOF:this.state=Bge.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case $me.EQUALS_SIGN:this._err(ege.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=Bge.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=Bge.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case $me.SPACE:case $me.LINE_FEED:case $me.TABULATION:case $me.FORM_FEED:case $me.SOLIDUS:case $me.GREATER_THAN_SIGN:case $me.EOF:this._leaveAttrName(),this.state=Bge.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case $me.EQUALS_SIGN:this._leaveAttrName(),this.state=Bge.BEFORE_ATTRIBUTE_VALUE;break;case $me.QUOTATION_MARK:case $me.APOSTROPHE:case $me.LESS_THAN_SIGN:this._err(ege.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case $me.NULL:this._err(ege.unexpectedNullCharacter),this.currentAttr.name+=Hme;break;default:this.currentAttr.name+=String.fromCodePoint(Hge(e)?Gge(e):e)}}_stateAfterAttributeName(e){switch(e){case $me.SPACE:case $me.LINE_FEED:case $me.TABULATION:case $me.FORM_FEED:break;case $me.SOLIDUS:this.state=Bge.SELF_CLOSING_START_TAG;break;case $me.EQUALS_SIGN:this.state=Bge.BEFORE_ATTRIBUTE_VALUE;break;case $me.GREATER_THAN_SIGN:this.state=Bge.DATA,this.emitCurrentTagToken();break;case $me.EOF:this._err(ege.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=Bge.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case $me.SPACE:case $me.LINE_FEED:case $me.TABULATION:case $me.FORM_FEED:break;case $me.QUOTATION_MARK:this.state=Bge.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case $me.APOSTROPHE:this.state=Bge.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case $me.GREATER_THAN_SIGN:this._err(ege.missingAttributeValue),this.state=Bge.DATA,this.emitCurrentTagToken();break;default:this.state=Bge.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case $me.QUOTATION_MARK:this.state=Bge.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case $me.AMPERSAND:this._startCharacterReference();break;case $me.NULL:this._err(ege.unexpectedNullCharacter),this.currentAttr.value+=Hme;break;case $me.EOF:this._err(ege.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case $me.APOSTROPHE:this.state=Bge.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case $me.AMPERSAND:this._startCharacterReference();break;case $me.NULL:this._err(ege.unexpectedNullCharacter),this.currentAttr.value+=Hme;break;case $me.EOF:this._err(ege.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case $me.SPACE:case $me.LINE_FEED:case $me.TABULATION:case $me.FORM_FEED:this._leaveAttrValue(),this.state=Bge.BEFORE_ATTRIBUTE_NAME;break;case $me.AMPERSAND:this._startCharacterReference();break;case $me.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=Bge.DATA,this.emitCurrentTagToken();break;case $me.NULL:this._err(ege.unexpectedNullCharacter),this.currentAttr.value+=Hme;break;case $me.QUOTATION_MARK:case $me.APOSTROPHE:case $me.LESS_THAN_SIGN:case $me.EQUALS_SIGN:case $me.GRAVE_ACCENT:this._err(ege.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case $me.EOF:this._err(ege.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case $me.SPACE:case $me.LINE_FEED:case $me.TABULATION:case $me.FORM_FEED:this._leaveAttrValue(),this.state=Bge.BEFORE_ATTRIBUTE_NAME;break;case $me.SOLIDUS:this._leaveAttrValue(),this.state=Bge.SELF_CLOSING_START_TAG;break;case $me.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=Bge.DATA,this.emitCurrentTagToken();break;case $me.EOF:this._err(ege.eofInTag),this._emitEOFToken();break;default:this._err(ege.missingWhitespaceBetweenAttributes),this.state=Bge.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case $me.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=Bge.DATA,this.emitCurrentTagToken();break;case $me.EOF:this._err(ege.eofInTag),this._emitEOFToken();break;default:this._err(ege.unexpectedSolidusInTag),this.state=Bge.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const t=this.currentToken;switch(e){case $me.GREATER_THAN_SIGN:this.state=Bge.DATA,this.emitCurrentComment(t);break;case $me.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case $me.NULL:this._err(ege.unexpectedNullCharacter),t.data+=Hme;break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(Gme,!0)?(this._createCommentToken(Gme.length+1),this.state=Bge.COMMENT_START):this._consumeSequenceIfMatch(qme,!1)?(this.currentLocation=this.getCurrentLocation(qme.length+1),this.state=Bge.DOCTYPE):this._consumeSequenceIfMatch(Wme,!0)?this.inForeignNode?this.state=Bge.CDATA_SECTION:(this._err(ege.cdataInHtmlContent),this._createCommentToken(Wme.length+1),this.currentToken.data="[CDATA[",this.state=Bge.BOGUS_COMMENT):this._ensureHibernation()||(this._err(ege.incorrectlyOpenedComment),this._createCommentToken(2),this.state=Bge.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case $me.HYPHEN_MINUS:this.state=Bge.COMMENT_START_DASH;break;case $me.GREATER_THAN_SIGN:{this._err(ege.abruptClosingOfEmptyComment),this.state=Bge.DATA;const e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=Bge.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case $me.HYPHEN_MINUS:this.state=Bge.COMMENT_END;break;case $me.GREATER_THAN_SIGN:this._err(ege.abruptClosingOfEmptyComment),this.state=Bge.DATA,this.emitCurrentComment(t);break;case $me.EOF:this._err(ege.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=Bge.COMMENT,this._stateComment(e)}}_stateComment(e){const t=this.currentToken;switch(e){case $me.HYPHEN_MINUS:this.state=Bge.COMMENT_END_DASH;break;case $me.LESS_THAN_SIGN:t.data+="<",this.state=Bge.COMMENT_LESS_THAN_SIGN;break;case $me.NULL:this._err(ege.unexpectedNullCharacter),t.data+=Hme;break;case $me.EOF:this._err(ege.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case $me.EXCLAMATION_MARK:t.data+="!",this.state=Bge.COMMENT_LESS_THAN_SIGN_BANG;break;case $me.LESS_THAN_SIGN:t.data+="<";break;default:this.state=Bge.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===$me.HYPHEN_MINUS?this.state=Bge.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=Bge.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===$me.HYPHEN_MINUS?this.state=Bge.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=Bge.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==$me.GREATER_THAN_SIGN&&e!==$me.EOF&&this._err(ege.nestedComment),this.state=Bge.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case $me.HYPHEN_MINUS:this.state=Bge.COMMENT_END;break;case $me.EOF:this._err(ege.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=Bge.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case $me.GREATER_THAN_SIGN:this.state=Bge.DATA,this.emitCurrentComment(t);break;case $me.EXCLAMATION_MARK:this.state=Bge.COMMENT_END_BANG;break;case $me.HYPHEN_MINUS:t.data+="-";break;case $me.EOF:this._err(ege.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=Bge.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case $me.HYPHEN_MINUS:t.data+="--!",this.state=Bge.COMMENT_END_DASH;break;case $me.GREATER_THAN_SIGN:this._err(ege.incorrectlyClosedComment),this.state=Bge.DATA,this.emitCurrentComment(t);break;case $me.EOF:this._err(ege.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=Bge.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case $me.SPACE:case $me.LINE_FEED:case $me.TABULATION:case $me.FORM_FEED:this.state=Bge.BEFORE_DOCTYPE_NAME;break;case $me.GREATER_THAN_SIGN:this.state=Bge.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case $me.EOF:{this._err(ege.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(ege.missingWhitespaceBeforeDoctypeName),this.state=Bge.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(Hge(e))this._createDoctypeToken(String.fromCharCode(Gge(e))),this.state=Bge.DOCTYPE_NAME;else switch(e){case $me.SPACE:case $me.LINE_FEED:case $me.TABULATION:case $me.FORM_FEED:break;case $me.NULL:this._err(ege.unexpectedNullCharacter),this._createDoctypeToken(Hme),this.state=Bge.DOCTYPE_NAME;break;case $me.GREATER_THAN_SIGN:{this._err(ege.missingDoctypeName),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=Bge.DATA;break}case $me.EOF:{this._err(ege.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=Bge.DOCTYPE_NAME}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case $me.SPACE:case $me.LINE_FEED:case $me.TABULATION:case $me.FORM_FEED:this.state=Bge.AFTER_DOCTYPE_NAME;break;case $me.GREATER_THAN_SIGN:this.state=Bge.DATA,this.emitCurrentDoctype(t);break;
vendor: 4,350 bytes, line 205
205case $me.NULL:this._err(ege.unexpectedNullCharacter),t.name+=Hme;break;case $me.EOF:this._err(ege.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(Hge(e)?Gge(e):e)}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case $me.SPACE:case $me.LINE_FEED:case $me.TABULATION:case $me.FORM_FEED:break;case $me.GREATER_THAN_SIGN:this.state=Bge.DATA,this.emitCurrentDoctype(t);break;case $me.EOF:this._err(ege.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch(Kme,!1)?this.state=Bge.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Xme,!1)?this.state=Bge.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(ege.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=Bge.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case $me.SPACE:case $me.LINE_FEED:case $me.TABULATION:case $me.FORM_FEED:this.state=Bge.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case $me.QUOTATION_MARK:this._err(ege.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=Bge.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case $me.APOSTROPHE:this._err(ege.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=Bge.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case $me.GREATER_THAN_SIGN:this._err(ege.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Bge.DATA,this.emitCurrentDoctype(t);break;case $me.EOF:this._err(ege.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(ege.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Bge.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case $me.SPACE:case $me.LINE_FEED:case $me.TABULATION:case $me.FORM_FEED:break;case $me.QUOTATION_MARK:t.publicId="",this.state=Bge.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case $me.APOSTROPHE:t.publicId="",this.state=Bge.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case $me.GREATER_THAN_SIGN:this._err(ege.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Bge.DATA,this.emitCurrentDoctype(t);break;case $me.EOF:this._err(ege.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(ege.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Bge.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case $me.QUOTATION_MARK:this.state=Bge.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case $me.NULL:this._err(ege.unexpectedNullCharacter),t.publicId+=Hme;break;case $me.GREATER_THAN_SIGN:this._err(ege.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Bge.DATA;break;case $me.EOF:this._err(ege.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case $me.APOSTROPHE:this.state=Bge.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case $me.NULL:this._err(ege.unexpectedNullCharacter),t.publicId+=Hme;break;case $me.GREATER_THAN_SIGN:this._err(ege.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Bge.DATA;break;case $me.EOF:this._err(ege.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case $me.SPACE:case $me.LINE_FEED:case $me.TABULATION:case $me.FORM_FEED:this.state=Bge.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case $me.GREATER_THAN_SIGN:this.state=Bge.DATA,this.emitCurrentDoctype(t);break;case $me.QUOTATION_MARK:this._err(ege.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=Bge.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case $me.APOSTROPHE:this._err(ege.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=Bge.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case $me.EOF:this._err(ege.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;
vendor: 40,619 bytes, line 205
205default:this._err(ege.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Bge.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case $me.SPACE:case $me.LINE_FEED:case $me.TABULATION:case $me.FORM_FEED:break;case $me.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Bge.DATA;break;case $me.QUOTATION_MARK:t.systemId="",this.state=Bge.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case $me.APOSTROPHE:t.systemId="",this.state=Bge.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case $me.EOF:this._err(ege.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(ege.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Bge.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case $me.SPACE:case $me.LINE_FEED:case $me.TABULATION:case $me.FORM_FEED:this.state=Bge.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case $me.QUOTATION_MARK:this._err(ege.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=Bge.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case $me.APOSTROPHE:this._err(ege.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=Bge.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case $me.GREATER_THAN_SIGN:this._err(ege.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Bge.DATA,this.emitCurrentDoctype(t);break;case $me.EOF:this._err(ege.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(ege.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Bge.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case $me.SPACE:case $me.LINE_FEED:case $me.TABULATION:case $me.FORM_FEED:break;case $me.QUOTATION_MARK:t.systemId="",this.state=Bge.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case $me.APOSTROPHE:t.systemId="",this.state=Bge.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case $me.GREATER_THAN_SIGN:this._err(ege.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Bge.DATA,this.emitCurrentDoctype(t);break;case $me.EOF:this._err(ege.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(ege.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Bge.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case $me.QUOTATION_MARK:this.state=Bge.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case $me.NULL:this._err(ege.unexpectedNullCharacter),t.systemId+=Hme;break;case $me.GREATER_THAN_SIGN:this._err(ege.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Bge.DATA;break;case $me.EOF:this._err(ege.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case $me.APOSTROPHE:this.state=Bge.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case $me.NULL:this._err(ege.unexpectedNullCharacter),t.systemId+=Hme;break;case $me.GREATER_THAN_SIGN:this._err(ege.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Bge.DATA;break;case $me.EOF:this._err(ege.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case $me.SPACE:case $me.LINE_FEED:case $me.TABULATION:case $me.FORM_FEED:break;case $me.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Bge.DATA;break;case $me.EOF:this._err(ege.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(ege.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=Bge.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case $me.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Bge.DATA;break;case $me.NULL:this._err(ege.unexpectedNullCharacter);break;case $me.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case $me.RIGHT_SQUARE_BRACKET:this.state=Bge.CDATA_SECTION_BRACKET;break;case $me.EOF:this._err(ege.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===$me.RIGHT_SQUARE_BRACKET?this.state=Bge.CDATA_SECTION_END:(this._emitChars("]"),this.state=Bge.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case $me.GREATER_THAN_SIGN:this.state=Bge.DATA;break;case $me.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=Bge.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0){if(!this.preprocessor.lastChunkWritten)return this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,void(this.preprocessor.endOfChunkHit=!0);e=this.entityDecoder.end()}0===e?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference($me.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Vge(this.preprocessor.peek(1))?Bge.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){Vge(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===$me.SEMICOLON&&this._err(ege.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}const Kge=new Set([Rge.DD,Rge.DT,Rge.LI,Rge.OPTGROUP,Rge.OPTION,Rge.P,Rge.RB,Rge.RP,Rge.RT,Rge.RTC]),Xge=new Set([...Kge,Rge.CAPTION,Rge.COLGROUP,Rge.TBODY,Rge.TD,Rge.TFOOT,Rge.TH,Rge.THEAD,Rge.TR]),Zge=new Set([Rge.APPLET,Rge.CAPTION,Rge.HTML,Rge.MARQUEE,Rge.OBJECT,Rge.TABLE,Rge.TD,Rge.TEMPLATE,Rge.TH]),Qge=new Set([...Zge,Rge.OL,Rge.UL]),Jge=new Set([...Zge,Rge.BUTTON]),ebe=new Set([Rge.ANNOTATION_XML,Rge.MI,Rge.MN,Rge.MO,Rge.MS,Rge.MTEXT]),tbe=new Set([Rge.DESC,Rge.FOREIGN_OBJECT,Rge.TITLE]),nbe=new Set([Rge.TR,Rge.TEMPLATE,Rge.HTML]),rbe=new Set([Rge.TBODY,Rge.TFOOT,Rge.THEAD,Rge.TEMPLATE,Rge.HTML]),ibe=new Set([Rge.TABLE,Rge.TEMPLATE,Rge.HTML]),obe=new Set([Rge.TD,Rge.TH]);class abe{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=Rge.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===Rge.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===_ge.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){const r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do{t=this.tagIDs.lastIndexOf(e,t-1)}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==_ge.HTML);this.shortenToLength(t<0?0:t)}shortenToLength(e){for(;this.stackTop>=e;){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){const t=this._indexOf(e);this.shortenToLength(t<0?0:t)}popUntilPopped(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n<0?0:n)}popUntilNumberedHeaderPopped(){this.popUntilPopped(Fge,_ge.HTML)}popUntilTableCellPopped(){this.popUntilPopped(obe,_ge.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(ibe,_ge.HTML)}clearBackToTableBodyContext(){this.clearBackTo(rbe,_ge.HTML)}clearBackToTableRowContext(){this.clearBackTo(nbe,_ge.HTML)}remove(e){const t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===Rge.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===Rge.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case _ge.HTML:if(r===e)return!0;if(t.has(r))return!1;break;case _ge.SVG:if(tbe.has(r))return!1;break;case _ge.MATHML:if(ebe.has(r))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,Zge)}hasInListItemScope(e){return this.hasInDynamicScope(e,Qge)}hasInButtonScope(e){return this.hasInDynamicScope(e,Jge)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case _ge.HTML:if(Fge.has(t))return!0;if(Zge.has(t))return!1;break;case _ge.SVG:if(tbe.has(t))return!1;break;case _ge.MATHML:if(ebe.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===_ge.HTML)switch(this.tagIDs[t]){case e:return!0;case Rge.TABLE:case Rge.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===_ge.HTML)switch(this.tagIDs[e]){case Rge.TBODY:case Rge.THEAD:case Rge.TFOOT:return!0;case Rge.TABLE:case Rge.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===_ge.HTML)switch(this.tagIDs[t]){case e:return!0;case Rge.OPTION:case Rge.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;Kge.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Xge.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&Xge.has(this.currentTagId);)this.pop()}}var sbe,lbe;(lbe=sbe||(sbe={}))[lbe.Marker=0]="Marker",lbe[lbe.Element=1]="Element";const cbe={type:sbe.Marker};class ube{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const n=[],r=t.length,i=this.treeAdapter.getTagName(e),o=this.treeAdapter.getNamespaceURI(e);for(let a=0;a<this.entries.length;a++){const e=this.entries[a];if(e.type===sbe.Marker)break;const{element:t}=e;if(this.treeAdapter.getTagName(t)===i&&this.treeAdapter.getNamespaceURI(t)===o){const e=this.treeAdapter.getAttrList(t);e.length===r&&n.push({idx:a,attrs:e})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<3)return;const t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<3)return;const r=new Map(t.map((e=>[e.name,e.value])));let i=0;for(let o=0;o<n.length;o++){const e=n[o];e.attrs.every((e=>r.get(e.name)===e.value))&&(i+=1,i>=3&&this.entries.splice(e.idx,1))}}insertMarker(){this.entries.unshift(cbe)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:sbe.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:sbe.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);t>=0&&this.entries.splice(t,1)}clearToLastMarker(){const e=this.entries.indexOf(cbe);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){const t=this.entries.find((t=>t.type===sbe.Marker||this.treeAdapter.getTagName(t.element)===e));return t&&t.type===sbe.Element?t:null}getElementEntry(e){return this.entries.find((t=>t.type===sbe.Element&&t.element===e))}}const dbe={createDocument(){return{nodeName:"#document",mode:Cge.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find((e=>"#documentType"===e.nodeName));if(i)i.name=t,i.publicId=n,i.systemId=r;else{const i={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};dbe.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(dbe.isTextNode(n))return void(n.value+=t)}dbe.appendChild(e,dbe.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&dbe.isTextNode(r)?r.value+=t:dbe.insertBefore(e,dbe.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map((e=>e.name)));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return"#text"===e.nodeName},isCommentNode(e){return"#comment"===e.nodeName},isDocumentTypeNode(e){return"#documentType"===e.nodeName},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},pbe="html",hbe=["+//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//"],fbe=[...hbe,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],mbe=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),gbe=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],bbe=[...gbe,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function vbe(e,t){return t.some((t=>e.startsWith(t)))}const ybe="text/html",xbe="application/xhtml+xml",wbe=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((e=>[e.toLowerCase(),e]))),Abe=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:_ge.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:_ge.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:_ge.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:_ge.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:_ge.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:_ge.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:_ge.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:_ge.XML}],["xml:space",{prefix:"xml",name:"space",namespace:_ge.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:_ge.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:_ge.XMLNS}]]),Ebe=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((e=>[e.toLowerCase(),e]))),Sbe=new Set([Rge.B,Rge.BIG,Rge.BLOCKQUOTE,Rge.BODY,Rge.BR,Rge.CENTER,Rge.CODE,Rge.DD,Rge.DIV,Rge.DL,Rge.DT,Rge.EM,Rge.EMBED,Rge.H1,Rge.H2,Rge.H3,Rge.H4,Rge.H5,Rge.H6,Rge.HEAD,Rge.HR,Rge.I,Rge.IMG,Rge.LI,Rge.LISTING,Rge.MENU,Rge.META,Rge.NOBR,Rge.OL,Rge.P,Rge.PRE,Rge.RUBY,Rge.S,Rge.SMALL,Rge.SPAN,Rge.STRONG,Rge.STRIKE,Rge.SUB,Rge.SUP,Rge.TABLE,Rge.TT,Rge.U,Rge.UL,Rge.VAR]);function _be(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}}function kbe(e){for(let t=0;t<e.attrs.length;t++){const n=wbe.get(e.attrs[t].name);null!=n&&(e.attrs[t].name=n)}}function Tbe(e){for(let t=0;t<e.attrs.length;t++){const n=Abe.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function Cbe(e,t,n,r){return(!r||r===_ge.HTML)&&function(e,t,n){if(t===_ge.MATHML&&e===Rge.ANNOTATION_XML)for(let r=0;r<n.length;r++)if(n[r].name===kge.ENCODING){const e=n[r].value.toLowerCase();return e===ybe||e===xbe}return t===_ge.SVG&&(e===Rge.FOREIGN_OBJECT||e===Rge.DESC||e===Rge.TITLE)}(e,t,n)||(!r||r===_ge.MATHML)&&function(e,t){return t===_ge.MATHML&&(e===Rge.MI||e===Rge.MO||e===Rge.MN||e===Rge.MS||e===Rge.MTEXT)}(e,t)}var Obe,Nbe;(Nbe=Obe||(Obe={}))[Nbe.INITIAL=0]="INITIAL",Nbe[Nbe.BEFORE_HTML=1]="BEFORE_HTML",Nbe[Nbe.BEFORE_HEAD=2]="BEFORE_HEAD",Nbe[Nbe.IN_HEAD=3]="IN_HEAD",Nbe[Nbe.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",Nbe[Nbe.AFTER_HEAD=5]="AFTER_HEAD",Nbe[Nbe.IN_BODY=6]="IN_BODY",Nbe[Nbe.TEXT=7]="TEXT",Nbe[Nbe.IN_TABLE=8]="IN_TABLE",Nbe[Nbe.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",Nbe[Nbe.IN_CAPTION=10]="IN_CAPTION",Nbe[Nbe.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",Nbe[Nbe.IN_TABLE_BODY=12]="IN_TABLE_BODY",Nbe[Nbe.IN_ROW=13]="IN_ROW",Nbe[Nbe.IN_CELL=14]="IN_CELL",Nbe[Nbe.IN_SELECT=15]="IN_SELECT",Nbe[Nbe.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",Nbe[Nbe.IN_TEMPLATE=17]="IN_TEMPLATE",Nbe[Nbe.AFTER_BODY=18]="AFTER_BODY",Nbe[Nbe.IN_FRAMESET=19]="IN_FRAMESET",Nbe[Nbe.AFTER_FRAMESET=20]="AFTER_FRAMESET",Nbe[Nbe.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",Nbe[Nbe.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET";const Ibe={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Rbe=new Set([Rge.TABLE,Rge.TBODY,Rge.TFOOT,Rge.THEAD,Rge.TR]),Pbe={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:dbe,onParseError:null};class jbe{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=Obe.INITIAL,this.originalInsertionMode=Obe.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Pbe,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!==t&&void 0!==t?t:this.treeAdapter.createDocument(),this.tokenizer=new Yge(this.options,this),this.activeFormattingElements=new ube(this.treeAdapter),this.fragmentContextID=n?Mge(this.treeAdapter.getTagName(n)):Rge.UNKNOWN,this._setContextModes(null!==n&&void 0!==n?n:this.document,this.fragmentContextID),this.openElements=new abe(this.document,this.treeAdapter,this)}static parse(e,t){const n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){const n={...Pbe,...t};null!==e&&void 0!==e||(e=n.treeAdapter.createElement(Nge.TEMPLATE,_ge.HTML,[]));const r=n.treeAdapter.createElement("documentmock",_ge.HTML,[]),i=new this(n,r,e);return i.fragmentContextID===Rge.TEMPLATE&&i.tmplInsertionModeStack.unshift(Obe.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){var r;if(!this.onParseError)return;const i=null!==(r=e.location)&&void 0!==r?r:Ibe,o={code:t,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:n?i.startLine:i.endLine,endCol:n?i.startCol:i.endCol,endOffset:n?i.startOffset:i.endOffset};this.onParseError(o)}onItemPush(e,t,n){var r,i;null===(i=(r=this.treeAdapter).onItemPush)||void 0===i||i.call(r,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(r=(n=this.treeAdapter).onItemPop)||void 0===r||r.call(n,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):({current:e,currentTagId:t}=this.openElements),this._setContextModes(e,t)}}_setContextModes(e,t){const n=e===this.document||this.treeAdapter.getNamespaceURI(e)===_ge.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,_ge.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=Obe.TEXT}switchToPlaintextParsing(){this.insertionMode=Obe.TEXT,this.originalInsertionMode=Obe.IN_BODY,this.tokenizer.state=zge.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===Nge.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===_ge.HTML)switch(this.fragmentContextID){case Rge.TITLE:case Rge.TEXTAREA:this.tokenizer.state=zge.RCDATA;break;case Rge.STYLE:case Rge.XMP:case Rge.IFRAME:case Rge.NOEMBED:case Rge.NOFRAMES:case Rge.NOSCRIPT:this.tokenizer.state=zge.RAWTEXT;break;case Rge.SCRIPT:this.tokenizer.state=zge.SCRIPT_DATA;break;case Rge.PLAINTEXT:this.tokenizer.state=zge.PLAINTEXT}}_setDocumentType(e){const t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){const t=this.treeAdapter.getChildNodes(this.document).find((e=>this.treeAdapter.isDocumentTypeNode(e)));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){const n=this.treeAdapter.createElement(e,_ge.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,_ge.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(Nge.HTML,_ge.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,Rge.HTML)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?(({parent:t,beforeElement:n}=this._findFosterParentingLocation()),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;const r=this.treeAdapter.getChildNodes(t),i=n?r.lastIndexOf(n):r.length,o=r[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){const{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const n=t.location,r=this.treeAdapter.getTagName(e),i=t.type===rge.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;return 0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):({current:t,currentTagId:n}=this.openElements),(e.tagID!==Rge.SVG||this.treeAdapter.getTagName(t)!==Nge.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==_ge.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===Rge.MGLYPH||e.tagID===Rge.MALIGNMARK)&&!this._isIntegrationPoint(n,t,_ge.HTML))}_processToken(e){switch(e.type){case rge.CHARACTER:this.onCharacter(e);break;case rge.NULL_CHARACTER:this.onNullCharacter(e);break;case rge.COMMENT:this.onComment(e);break;case rge.DOCTYPE:this.onDoctype(e);break;case rge.START_TAG:this._processStartTag(e);break;case rge.END_TAG:this.onEndTag(e);break;case rge.EOF:this.onEof(e);break;case rge.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){return Cbe(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),n)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex((e=>e.type===sbe.Marker||this.openElements.contains(e.element)));for(let n=t<0?e-1:t-1;n>=0;n--){const e=this.activeFormattingElements.entries[n];this._insertElement(e.token,this.treeAdapter.getNamespaceURI(e.element)),e.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Obe.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(Rge.P),this.openElements.popUntilTagNamePopped(Rge.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case Rge.TR:return void(this.insertionMode=Obe.IN_ROW);case Rge.TBODY:case Rge.THEAD:case Rge.TFOOT:return void(this.insertionMode=Obe.IN_TABLE_BODY);case Rge.CAPTION:return void(this.insertionMode=Obe.IN_CAPTION);case Rge.COLGROUP:return void(this.insertionMode=Obe.IN_COLUMN_GROUP);case Rge.TABLE:return void(this.insertionMode=Obe.IN_TABLE);case Rge.BODY:return void(this.insertionMode=Obe.IN_BODY);case Rge.FRAMESET:return void(this.insertionMode=Obe.IN_FRAMESET);case Rge.SELECT:return void this._resetInsertionModeForSelect(e);case Rge.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case Rge.HTML:return void(this.insertionMode=this.headElement?Obe.AFTER_HEAD:Obe.BEFORE_HEAD);case Rge.TD:case Rge.TH:if(e>0)return void(this.insertionMode=Obe.IN_CELL);break;case Rge.HEAD:if(e>0)return void(this.insertionMode=Obe.IN_HEAD)}this.insertionMode=Obe.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===Rge.TEMPLATE)break;if(e===Rge.TABLE)return void(this.insertionMode=Obe.IN_SELECT_IN_TABLE)}this.insertionMode=Obe.IN_SELECT}_isElementCausesFosterParenting(e){return Rbe.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case Rge.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===_ge.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case Rge.TABLE:{const n=this.treeAdapter.getParentNode(t);return n?{parent:n,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){const n=this.treeAdapter.getNamespaceURI(e);return Lge[n].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e);else switch(this.insertionMode){case Obe.INITIAL:Vbe(this,e);break;case Obe.BEFORE_HTML:Gbe(this,e);break;case Obe.BEFORE_HEAD:Wbe(this,e);break;case Obe.IN_HEAD:Kbe(this,e);break;case Obe.IN_HEAD_NO_SCRIPT:Xbe(this,e);break;case Obe.AFTER_HEAD:Zbe(this,e);break;case Obe.IN_BODY:case Obe.IN_CAPTION:case Obe.IN_CELL:case Obe.IN_TEMPLATE:eve(this,e);break;case Obe.TEXT:case Obe.IN_SELECT:case Obe.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case Obe.IN_TABLE:case Obe.IN_TABLE_BODY:case Obe.IN_ROW:cve(this,e);break;case Obe.IN_TABLE_TEXT:fve(this,e);break;case Obe.IN_COLUMN_GROUP:vve(this,e);break;case Obe.AFTER_BODY:Tve(this,e);break;case Obe.AFTER_AFTER_BODY:Cve(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){t.chars=Hme,e._insertCharacters(t)}(this,e);else switch(this.insertionMode){case Obe.INITIAL:Vbe(this,e);break;case Obe.BEFORE_HTML:Gbe(this,e);break;case Obe.BEFORE_HEAD:Wbe(this,e);break;case Obe.IN_HEAD:Kbe(this,e);break;case Obe.IN_HEAD_NO_SCRIPT:Xbe(this,e);break;case Obe.AFTER_HEAD:Zbe(this,e);break;case Obe.TEXT:this._insertCharacters(e);break;case Obe.IN_TABLE:case Obe.IN_TABLE_BODY:case Obe.IN_ROW:cve(this,e);break;case Obe.IN_COLUMN_GROUP:vve(this,e);break;case Obe.AFTER_BODY:Tve(this,e);break;case Obe.AFTER_AFTER_BODY:Cve(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)Hbe(this,e);else switch(this.insertionMode){case Obe.INITIAL:case Obe.BEFORE_HTML:case Obe.BEFORE_HEAD:case Obe.IN_HEAD:case Obe.IN_HEAD_NO_SCRIPT:case Obe.AFTER_HEAD:case Obe.IN_BODY:case Obe.IN_TABLE:case Obe.IN_CAPTION:case Obe.IN_COLUMN_GROUP:case Obe.IN_TABLE_BODY:case Obe.IN_ROW:case Obe.IN_CELL:case Obe.IN_SELECT:case Obe.IN_SELECT_IN_TABLE:case Obe.IN_TEMPLATE:case Obe.IN_FRAMESET:case Obe.AFTER_FRAMESET:Hbe(this,e);break;case Obe.IN_TABLE_TEXT:mve(this,e);break;case Obe.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case Obe.AFTER_AFTER_BODY:case Obe.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case Obe.INITIAL:!function(e,t){e._setDocumentType(t);const n=t.forceQuirks?Cge.QUIRKS:function(e){if(e.name!==pbe)return Cge.QUIRKS;const{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return Cge.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),mbe.has(n))return Cge.QUIRKS;let e=null===t?fbe:hbe;if(vbe(n,e))return Cge.QUIRKS;if(e=null===t?gbe:bbe,vbe(n,e))return Cge.LIMITED_QUIRKS}return Cge.NO_QUIRKS}(t);(function(e){return e.name===pbe&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)})(t)||e._err(t,ege.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Obe.BEFORE_HTML}(this,e);break;case Obe.BEFORE_HEAD:case Obe.IN_HEAD:case Obe.IN_HEAD_NO_SCRIPT:case Obe.AFTER_HEAD:this._err(e,ege.misplacedDoctype);break;case Obe.IN_TABLE_TEXT:mve(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,ege.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){const t=e.tagID;return t===Rge.FONT&&e.attrs.some((e=>{let{name:t}=e;return t===kge.COLOR||t===kge.SIZE||t===kge.FACE}))||Sbe.has(t)}(t))Ove(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===_ge.MATHML?_be(t):r===_ge.SVG&&(!function(e){const t=Ebe.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=Mge(e.tagName))}(t),kbe(t)),Tbe(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case Obe.INITIAL:Vbe(this,e);break;case Obe.BEFORE_HTML:!function(e,t){t.tagID===Rge.HTML?(e._insertElement(t,_ge.HTML),e.insertionMode=Obe.BEFORE_HEAD):Gbe(e,t)}(this,e);break;case Obe.BEFORE_HEAD:!function(e,t){switch(t.tagID){case Rge.HTML:ove(e,t);break;case Rge.HEAD:e._insertElement(t,_ge.HTML),e.headElement=e.openElements.current,e.insertionMode=Obe.IN_HEAD;break;default:Wbe(e,t)}}(this,e);break;case Obe.IN_HEAD:qbe(this,e);break;case Obe.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case Rge.HTML:ove(e,t);break;case Rge.BASEFONT:case Rge.BGSOUND:case Rge.HEAD:case Rge.LINK:case Rge.META:case Rge.NOFRAMES:case Rge.STYLE:qbe(e,t);break;case Rge.NOSCRIPT:e._err(t,ege.nestedNoscriptInHead);break;default:Xbe(e,t)}}(this,e);break;case Obe.AFTER_HEAD:!function(e,t){switch(t.tagID){case Rge.HTML:ove(e,t);break;case Rge.BODY:e._insertElement(t,_ge.HTML),e.framesetOk=!1,e.insertionMode=Obe.IN_BODY;break;case Rge.FRAMESET:e._insertElement(t,_ge.HTML),e.insertionMode=Obe.IN_FRAMESET;break;case Rge.BASE:case Rge.BASEFONT:case Rge.BGSOUND:case Rge.LINK:case Rge.META:case Rge.NOFRAMES:case Rge.SCRIPT:case Rge.STYLE:case Rge.TEMPLATE:case Rge.TITLE:e._err(t,ege.abandonedHeadElementChild),e.openElements.push(e.headElement,Rge.HEAD),qbe(e,t),e.openElements.remove(e.headElement);break;case Rge.HEAD:e._err(t,ege.misplacedStartTagForHeadElement);break;default:Zbe(e,t)}}(this,e);break;case Obe.IN_BODY:ove(this,e);break;case Obe.IN_TABLE:uve(this,e);break;case Obe.IN_TABLE_TEXT:mve(this,e);break;case Obe.IN_CAPTION:!function(e,t){const n=t.tagID;gve.has(n)?e.openElements.hasInTableScope(Rge.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Rge.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Obe.IN_TABLE,uve(e,t)):ove(e,t)}(this,e);break;case Obe.IN_COLUMN_GROUP:bve(this,e);break;case Obe.IN_TABLE_BODY:yve(this,e);break;case Obe.IN_ROW:wve(this,e);break;case Obe.IN_CELL:!function(e,t){const n=t.tagID;gve.has(n)?(e.openElements.hasInTableScope(Rge.TD)||e.openElements.hasInTableScope(Rge.TH))&&(e._closeTableCell(),wve(e,t)):ove(e,t)}(this,e);break;case Obe.IN_SELECT:Eve(this,e);break;case Obe.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===Rge.CAPTION||n===Rge.TABLE||n===Rge.TBODY||n===Rge.TFOOT||n===Rge.THEAD||n===Rge.TR||n===Rge.TD||n===Rge.TH?(e.openElements.popUntilTagNamePopped(Rge.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Eve(e,t)}(this,e);break;case Obe.IN_TEMPLATE:!function(e,t){switch(t.tagID){case Rge.BASE:case Rge.BASEFONT:case Rge.BGSOUND:case Rge.LINK:case Rge.META:case Rge.NOFRAMES:case Rge.SCRIPT:case Rge.STYLE:case Rge.TEMPLATE:case Rge.TITLE:qbe(e,t);break;case Rge.CAPTION:case Rge.COLGROUP:case Rge.TBODY:case Rge.TFOOT:case Rge.THEAD:e.tmplInsertionModeStack[0]=Obe.IN_TABLE,e.insertionMode=Obe.IN_TABLE,uve(e,t);break;case Rge.COL:e.tmplInsertionModeStack[0]=Obe.IN_COLUMN_GROUP,e.insertionMode=Obe.IN_COLUMN_GROUP,bve(e,t);break;case Rge.TR:e.tmplInsertionModeStack[0]=Obe.IN_TABLE_BODY,e.insertionMode=Obe.IN_TABLE_BODY,yve(e,t);break;case Rge.TD:case Rge.TH:e.tmplInsertionModeStack[0]=Obe.IN_ROW,e.insertionMode=Obe.IN_ROW,wve(e,t);break;default:e.tmplInsertionModeStack[0]=Obe.IN_BODY,e.insertionMode=Obe.IN_BODY,ove(e,t)}}(this,e);break;case Obe.AFTER_BODY:!function(e,t){t.tagID===Rge.HTML?ove(e,t):Tve(e,t)}(this,e);break;case Obe.IN_FRAMESET:!function(e,t){switch(t.tagID){case Rge.HTML:ove(e,t);break;case Rge.FRAMESET:e._insertElement(t,_ge.HTML);break;case Rge.FRAME:e._appendElement(t,_ge.HTML),t.ackSelfClosing=!0;break;c
vendor: 4,208 bytes, line 205
205ase Rge.NOFRAMES:qbe(e,t)}}(this,e);break;case Obe.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case Rge.HTML:ove(e,t);break;case Rge.NOFRAMES:qbe(e,t)}}(this,e);break;case Obe.AFTER_AFTER_BODY:!function(e,t){t.tagID===Rge.HTML?ove(e,t):Cve(e,t)}(this,e);break;case Obe.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case Rge.HTML:ove(e,t);break;case Rge.NOFRAMES:qbe(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===Rge.P||t.tagID===Rge.BR)return Ove(e),void e._endTagOutsideForeignContent(t);for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===_ge.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case Obe.INITIAL:Vbe(this,e);break;case Obe.BEFORE_HTML:!function(e,t){const n=t.tagID;n!==Rge.HTML&&n!==Rge.HEAD&&n!==Rge.BODY&&n!==Rge.BR||Gbe(e,t)}(this,e);break;case Obe.BEFORE_HEAD:!function(e,t){const n=t.tagID;n===Rge.HEAD||n===Rge.BODY||n===Rge.HTML||n===Rge.BR?Wbe(e,t):e._err(t,ege.endTagWithoutMatchingOpenElement)}(this,e);break;case Obe.IN_HEAD:!function(e,t){switch(t.tagID){case Rge.HEAD:e.openElements.pop(),e.insertionMode=Obe.AFTER_HEAD;break;case Rge.BODY:case Rge.BR:case Rge.HTML:Kbe(e,t);break;case Rge.TEMPLATE:Ybe(e,t);break;default:e._err(t,ege.endTagWithoutMatchingOpenElement)}}(this,e);break;case Obe.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case Rge.NOSCRIPT:e.openElements.pop(),e.insertionMode=Obe.IN_HEAD;break;case Rge.BR:Xbe(e,t);break;default:e._err(t,ege.endTagWithoutMatchingOpenElement)}}(this,e);break;case Obe.AFTER_HEAD:!function(e,t){switch(t.tagID){case Rge.BODY:case Rge.HTML:case Rge.BR:Zbe(e,t);break;case Rge.TEMPLATE:Ybe(e,t);break;default:e._err(t,ege.endTagWithoutMatchingOpenElement)}}(this,e);break;case Obe.IN_BODY:sve(this,e);break;case Obe.TEXT:!function(e,t){var n;t.tagID===Rge.SCRIPT&&(null===(n=e.scriptHandler)||void 0===n||n.call(e,e.openElements.current));e.openElements.pop(),e.insertionMode=e.originalInsertionMode}(this,e);break;case Obe.IN_TABLE:dve(this,e);break;case Obe.IN_TABLE_TEXT:mve(this,e);break;case Obe.IN_CAPTION:!function(e,t){const n=t.tagID;switch(n){case Rge.CAPTION:case Rge.TABLE:e.openElements.hasInTableScope(Rge.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Rge.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Obe.IN_TABLE,n===Rge.TABLE&&dve(e,t));break;case Rge.BODY:case Rge.COL:case Rge.COLGROUP:case Rge.HTML:case Rge.TBODY:case Rge.TD:case Rge.TFOOT:case Rge.TH:case Rge.THEAD:case Rge.TR:break;default:sve(e,t)}}(this,e);break;case Obe.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case Rge.COLGROUP:e.openElements.currentTagId===Rge.COLGROUP&&(e.openElements.pop(),e.insertionMode=Obe.IN_TABLE);break;case Rge.TEMPLATE:Ybe(e,t);break;case Rge.COL:break;default:vve(e,t)}}(this,e);break;case Obe.IN_TABLE_BODY:xve(this,e);break;case Obe.IN_ROW:Ave(this,e);break;case Obe.IN_CELL:!function(e,t){const n=t.tagID;switch(n){case Rge.TD:case Rge.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Obe.IN_ROW);break;case Rge.TABLE:case Rge.TBODY:case Rge.TFOOT:case Rge.THEAD:case Rge.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Ave(e,t));break;case Rge.BODY:case Rge.CAPTION:case Rge.COL:case Rge.COLGROUP:case Rge.HTML:break;default:sve(e,t)}}(this,e);break;case Obe.IN_SELECT:Sve(this,e);break;case Obe.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===Rge.CAPTION||n===Rge.TABLE||n===Rge.TBODY||n===Rge.TFOOT||n===Rge.THEAD||n===Rge.TR||n===Rge.TD||n===Rge.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(Rge.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Sve(e,t)}(this,e);break;case Obe.IN_TEMPLATE:!function(e,t){t.tagID===Rge.TEMPLATE&&Ybe(e,t)}(this,e);break;case Obe.AFTER_BODY:kve(this,e);break;
vendor: 24,990 bytes, line 205
205case Obe.IN_FRAMESET:!function(e,t){t.tagID!==Rge.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagId===Rge.FRAMESET||(e.insertionMode=Obe.AFTER_FRAMESET))}(this,e);break;case Obe.AFTER_FRAMESET:!function(e,t){t.tagID===Rge.HTML&&(e.insertionMode=Obe.AFTER_AFTER_FRAMESET)}(this,e);break;case Obe.AFTER_AFTER_BODY:Cve(this,e)}}onEof(e){switch(this.insertionMode){case Obe.INITIAL:Vbe(this,e);break;case Obe.BEFORE_HTML:Gbe(this,e);break;case Obe.BEFORE_HEAD:Wbe(this,e);break;case Obe.IN_HEAD:Kbe(this,e);break;case Obe.IN_HEAD_NO_SCRIPT:Xbe(this,e);break;case Obe.AFTER_HEAD:Zbe(this,e);break;case Obe.IN_BODY:case Obe.IN_TABLE:case Obe.IN_CAPTION:case Obe.IN_COLUMN_GROUP:case Obe.IN_TABLE_BODY:case Obe.IN_ROW:case Obe.IN_CELL:case Obe.IN_SELECT:case Obe.IN_SELECT_IN_TABLE:lve(this,e);break;case Obe.TEXT:!function(e,t){e._err(t,ege.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}(this,e);break;case Obe.IN_TABLE_TEXT:mve(this,e);break;case Obe.IN_TEMPLATE:_ve(this,e);break;case Obe.AFTER_BODY:case Obe.IN_FRAMESET:case Obe.AFTER_FRAMESET:case Obe.AFTER_AFTER_BODY:case Obe.AFTER_AFTER_FRAMESET:$be(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===$me.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(e);else switch(this.insertionMode){case Obe.IN_HEAD:case Obe.IN_HEAD_NO_SCRIPT:case Obe.AFTER_HEAD:case Obe.TEXT:case Obe.IN_COLUMN_GROUP:case Obe.IN_SELECT:case Obe.IN_SELECT_IN_TABLE:case Obe.IN_FRAMESET:case Obe.AFTER_FRAMESET:this._insertCharacters(e);break;case Obe.IN_BODY:case Obe.IN_CAPTION:case Obe.IN_CELL:case Obe.IN_TEMPLATE:case Obe.AFTER_BODY:case Obe.AFTER_AFTER_BODY:case Obe.AFTER_AFTER_FRAMESET:Jbe(this,e);break;case Obe.IN_TABLE:case Obe.IN_TABLE_BODY:case Obe.IN_ROW:cve(this,e);break;case Obe.IN_TABLE_TEXT:hve(this,e)}}}function Mbe(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):ave(e,t),n}function Dbe(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function Lbe(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let o=0,a=i;a!==n;o++,a=i){i=e.openElements.getCommonAncestor(a);const n=e.activeFormattingElements.getElementEntry(a),s=n&&o>=3;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(a)):(a=Fbe(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function Fbe(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function Bbe(e,t,n){const r=Mge(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);r===Rge.TEMPLATE&&i===_ge.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Ube(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o,i.tagID)}function zbe(e,t){for(let n=0;n<8;n++){const n=Mbe(e,t);if(!n)break;const r=Dbe(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;const i=Lbe(e,r,n.element),o=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(i),o&&Bbe(e,o,i),Ube(e,r,n)}}function Hbe(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function $be(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){const n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function Vbe(e,t){e._err(t,ege.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Cge.QUIRKS),e.insertionMode=Obe.BEFORE_HTML,e._processToken(t)}function Gbe(e,t){e._insertFakeRootElement(),e.insertionMode=Obe.BEFORE_HEAD,e._processToken(t)}function Wbe(e,t){e._insertFakeElement(Nge.HEAD,Rge.HEAD),e.headElement=e.openElements.current,e.insertionMode=Obe.IN_HEAD,e._processToken(t)}function qbe(e,t){switch(t.tagID){case Rge.HTML:ove(e,t);break;case Rge.BASE:case Rge.BASEFONT:case Rge.BGSOUND:case Rge.LINK:case Rge.META:e._appendElement(t,_ge.HTML),t.ackSelfClosing=!0;break;case Rge.TITLE:e._switchToTextParsing(t,zge.RCDATA);break;case Rge.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,zge.RAWTEXT):(e._insertElement(t,_ge.HTML),e.insertionMode=Obe.IN_HEAD_NO_SCRIPT);break;case Rge.NOFRAMES:case Rge.STYLE:e._switchToTextParsing(t,zge.RAWTEXT);break;case Rge.SCRIPT:e._switchToTextParsing(t,zge.SCRIPT_DATA);break;case Rge.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Obe.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Obe.IN_TEMPLATE);break;case Rge.HEAD:e._err(t,ege.misplacedStartTagForHeadElement);break;default:Kbe(e,t)}}function Ybe(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==Rge.TEMPLATE&&e._err(t,ege.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(Rge.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,ege.endTagWithoutMatchingOpenElement)}function Kbe(e,t){e.openElements.pop(),e.insertionMode=Obe.AFTER_HEAD,e._processToken(t)}function Xbe(e,t){const n=t.type===rge.EOF?ege.openElementsLeftAfterEof:ege.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=Obe.IN_HEAD,e._processToken(t)}function Zbe(e,t){e._insertFakeElement(Nge.BODY,Rge.BODY),e.insertionMode=Obe.IN_BODY,Qbe(e,t)}function Qbe(e,t){switch(t.type){case rge.CHARACTER:eve(e,t);break;case rge.WHITESPACE_CHARACTER:Jbe(e,t);break;case rge.COMMENT:Hbe(e,t);break;case rge.START_TAG:ove(e,t);break;case rge.END_TAG:sve(e,t);break;case rge.EOF:lve(e,t)}}function Jbe(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function eve(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function tve(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,_ge.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function nve(e){const t=oge(e,kge.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function rve(e,t){e._switchToTextParsing(t,zge.RAWTEXT)}function ive(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,_ge.HTML)}function ove(e,t){switch(t.tagID){case Rge.I:case Rge.S:case Rge.B:case Rge.U:case Rge.EM:case Rge.TT:case Rge.BIG:case Rge.CODE:case Rge.FONT:case Rge.SMALL:case Rge.STRIKE:case Rge.STRONG:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,_ge.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case Rge.A:!function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Nge.A);n&&(zbe(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,_ge.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case Rge.H1:case Rge.H2:case Rge.H3:case Rge.H4:case Rge.H5:case Rge.H6:!function(e,t){e.openElements.hasInButtonScope(Rge.P)&&e._closePElement(),Fge.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,_ge.HTML)}(e,t);break;case Rge.P:case Rge.DL:case Rge.OL:case Rge.UL:case Rge.DIV:case Rge.DIR:case Rge.NAV:case Rge.MAIN:case Rge.MENU:case Rge.ASIDE:case Rge.CENTER:case Rge.FIGURE:case Rge.FOOTER:case Rge.HEADER:case Rge.HGROUP:case Rge.DIALOG:case Rge.DETAILS:case Rge.ADDRESS:case Rge.ARTICLE:case Rge.SEARCH:case Rge.SECTION:case Rge.SUMMARY:case Rge.FIELDSET:case Rge.BLOCKQUOTE:case Rge.FIGCAPTION:!function(e,t){e.openElements.hasInButtonScope(Rge.P)&&e._closePElement(),e._insertElement(t,_ge.HTML)}(e,t);break;case Rge.LI:case Rge.DD:case Rge.DT:!function(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const t=e.openElements.tagIDs[r];if(n===Rge.LI&&t===Rge.LI||(n===Rge.DD||n===Rge.DT)&&(t===Rge.DD||t===Rge.DT)){e.openElements.generateImpliedEndTagsWithExclusion(t),e.openElements.popUntilTagNamePopped(t);break}if(t!==Rge.ADDRESS&&t!==Rge.DIV&&t!==Rge.P&&e._isSpecialElement(e.openElements.items[r],t))break}e.openElements.hasInButtonScope(Rge.P)&&e._closePElement(),e._insertElement(t,_ge.HTML)}(e,t);break;case Rge.BR:case Rge.IMG:case Rge.WBR:case Rge.AREA:case Rge.EMBED:case Rge.KEYGEN:tve(e,t);break;case Rge.HR:!function(e,t){e.openElements.hasInButtonScope(Rge.P)&&e._closePElement(),e._appendElement(t,_ge.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break;case Rge.RB:case Rge.RTC:!function(e,t){e.openElements.hasInScope(Rge.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,_ge.HTML)}(e,t);break;case Rge.RT:case Rge.RP:!function(e,t){e.openElements.hasInScope(Rge.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(Rge.RTC),e._insertElement(t,_ge.HTML)}(e,t);break;case Rge.PRE:case Rge.LISTING:!function(e,t){e.openElements.hasInButtonScope(Rge.P)&&e._closePElement(),e._insertElement(t,_ge.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case Rge.XMP:!function(e,t){e.openElements.hasInButtonScope(Rge.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,zge.RAWTEXT)}(e,t);break;case Rge.SVG:!function(e,t){e._reconstructActiveFormattingElements(),kbe(t),Tbe(t),t.selfClosing?e._appendElement(t,_ge.SVG):e._insertElement(t,_ge.SVG),t.ackSelfClosing=!0}(e,t);break;case Rge.HTML:!function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t);break;case Rge.BASE:case Rge.LINK:case Rge.META:case Rge.STYLE:case Rge.TITLE:case Rge.SCRIPT:case Rge.BGSOUND:case Rge.BASEFONT:case Rge.TEMPLATE:qbe(e,t);break;case Rge.BODY:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t);break;case Rge.FORM:!function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(Rge.P)&&e._closePElement(),e._insertElement(t,_ge.HTML),n||(e.formElement=e.openElements.current))}(e,t);break;case Rge.NOBR:!function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(Rge.NOBR)&&(zbe(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,_ge.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case Rge.MATH:!function(e,t){e._reconstructActiveFormattingElements(),_be(t),Tbe(t),t.selfClosing?e._appendElement(t,_ge.MATHML):e._insertElement(t,_ge.MATHML),t.ackSelfClosing=!0}(e,t);break;case Rge.TABLE:!function(e,t){e.treeAdapter.getDocumentMode(e.document)!==Cge.QUIRKS&&e.openElements.hasInButtonScope(Rge.P)&&e._closePElement(),e._insertElement(t,_ge.HTML),e.framesetOk=!1,e.insertionMode=Obe.IN_TABLE}(e,t);break;case Rge.INPUT:!function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,_ge.HTML),nve(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case Rge.PARAM:case Rge.TRACK:case Rge.SOURCE:!function(e,t){e._appendElement(t,_ge.HTML),t.ackSelfClosing=!0}(e,t);break;case Rge.IMAGE:!function(e,t){t.tagName=Nge.IMG,t.tagID=Rge.IMG,tve(e,t)}(e,t);break;case Rge.BUTTON:!function(e,t){e.openElements.hasInScope(Rge.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Rge.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,_ge.HTML),e.framesetOk=!1}(e,t);break;case Rge.APPLET:case Rge.OBJECT:case Rge.MARQUEE:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,_ge.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}(e,t);break;case Rge.IFRAME:!function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,zge.RAWTEXT)}(e,t);break;case Rge.SELECT:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,_ge.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Obe.IN_TABLE||e.insertionMode===Obe.IN_CAPTION||e.insertionMode===Obe.IN_TABLE_BODY||e.insertionMode===Obe.IN_ROW||e.insertionMode===Obe.IN_CELL?Obe.IN_SELECT_IN_TABLE:Obe.IN_SELECT}(e,t);break;case Rge.OPTION:case Rge.OPTGROUP:!function(e,t){e.openElements.currentTagId===Rge.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,_ge.HTML)}(e,t);break;case Rge.NOEMBED:case Rge.NOFRAMES:rve(e,t);break;case Rge.FRAMESET:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,_ge.HTML),e.insertionMode=Obe.IN_FRAMESET)}(e,t);break;case Rge.TEXTAREA:!function(e,t){e._insertElement(t,_ge.HTML),e.skipNextNewLine=!0,e.tokenizer.state=zge.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Obe.TEXT}(e,t);break;case Rge.NOSCRIPT:e.options.scriptingEnabled?rve(e,t):ive(e,t);break;case Rge.PLAINTEXT:!function(e,t){e.openElements.hasInButtonScope(Rge.P)&&e._closePElement(),e._insertElement(t,_ge.HTML),e.tokenizer.state=zge.PLAINTEXT}(e,t);break;case Rge.COL:case Rge.TH:case Rge.TD:case Rge.TR:case Rge.HEAD:case Rge.FRAME:case Rge.TBODY:case Rge.TFOOT:case Rge.THEAD:case Rge.CAPTION:case Rge.COLGROUP:break;default:ive(e,t)}}function ave(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const t=e.openElements.items[i],o=e.openElements.tagIDs[i];if(r===o&&(r!==Rge.UNKNOWN||e.treeAdapter.getTagName(t)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(t,o))break}}function sve(e,t){switch(t.tagID){case Rge.A:case Rge.B:case Rge.I:case Rge.S:case Rge.U:case Rge.EM:case Rge.TT:case Rge.BIG:case Rge.CODE:case Rge.FONT:case Rge.NOBR:case Rge.SMALL:case Rge.STRIKE:case Rge.STRONG:zbe(e,t);break;case Rge.P:!function(e){e.openElements.hasInButtonScope(Rge.P)||e._insertFakeElement(Nge.P,Rge.P),e._closePElement()}(e);break;case Rge.DL:case Rge.UL:case Rge.OL:case Rge.DIR:case Rge.DIV:case Rge.NAV:case Rge.PRE:case Rge.MAIN:case Rge.MENU:case Rge.ASIDE:case Rge.BUTTON:case Rge.CENTER:case Rge.FIGURE:case Rge.FOOTER:case Rge.HEADER:case Rge.HGROUP:case Rge.DIALOG:case Rge.ADDRESS:case Rge.ARTICLE:case Rge.DETAILS:case Rge.SEARCH:case Rge.SECTION:case Rge.SUMMARY:case Rge.LISTING:case Rge.FIELDSET:case Rge.BLOCKQUOTE:case Rge.FIGCAPTION:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case Rge.LI:!function(e){e.openElements.hasInListItemScope(Rge.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(Rge.LI),e.openElements.popUntilTagNamePopped(Rge.LI))}(e);break;case Rge.DD:case Rge.DT:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case Rge.H1:case Rge.H2:case Rge.H3:case Rge.H4:case Rge.H5:case Rge.H6:!function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e);break;case Rge.BR:!function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Nge.BR,Rge.BR),e.openElements.pop(),e.framesetOk=!1}(e);break;case Rge.BODY:!function(e,t){if(e.openElements.hasInScope(Rge.BODY)&&(e.insertionMode=Obe.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}(e,t);break;case Rge.HTML:!function(e,t){e.openElements.hasInScope(Rge.BODY)&&(e.insertionMode=Obe.AFTER_BODY,kve(e,t))}(e,t);break;case Rge.FORM:!function(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(Rge.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(Rge.FORM):n&&e.openElements.remove(n))}(e);break;case Rge.APPLET:case Rge.OBJECT:case Rge.MARQUEE:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}(e,t);break;case Rge.TEMPLATE:Ybe(e,t);break;default:ave(e,t)}}function lve(e,t){e.tmplInsertionModeStack.length>0?_ve(e,t):$be(e,t)}function cve(e,t){if(Rbe.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Obe.IN_TABLE_TEXT,t.type){case rge.CHARACTER:fve(e,t);break;case rge.WHITESPACE_CHARACTER:hve(e,t)}else pve(e,t)}function uve(e,t){switch(t.tagID){case Rge.TD:case Rge.TH:case Rge.TR:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Nge.TBODY,Rge.TBODY),e.insertionMode=Obe.IN_TABLE_BODY,yve(e,t)}(e,t);break;case Rge.STYLE:case Rge.SCRIPT:case Rge.TEMPLATE:qbe(e,t);break;case Rge.COL:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Nge.COLGROUP,Rge.COLGROUP),e.insertionMode=Obe.IN_COLUMN_GROUP,bve(e,t)}(e,t);break;case Rge.FORM:!function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,_ge.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t);break;case Rge.TABLE:!function(e,t){e.openElements.hasInTableScope(Rge.TABLE)&&(e.openElements.popUntilTagNamePopped(Rge.TABLE),e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case Rge.TBODY:case Rge.TFOOT:case Rge.THEAD:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,_ge.HTML),e.insertionMode=Obe.IN_TABLE_BODY}(e,t);break;case Rge.INPUT:!function(e,t){nve(t)?e._appendElement(t,_ge.HTML):pve(e,t),t.ackSelfClosing=!0}(e,t);break;case Rge.CAPTION:!function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,_ge.HTML),e.insertionMode=Obe.IN_CAPTION}(e,t);break;case Rge.COLGROUP:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,_ge.HTML),e.insertionMode=Obe.IN_COLUMN_GROUP}(e,t);break;default:pve(e,t)}}function dve(e,t){switch(t.tagID){case Rge.TABLE:e.openElements.hasInTableScope(Rge.TABLE)&&(e.openElements.popUntilTagNamePopped(Rge.TABLE),e._resetInsertionMode());break;case Rge.TEMPLATE:Ybe(e,t);break;case Rge.BODY:case Rge.CAPTION:case Rge.COL:case Rge.COLGROUP:case Rge.HTML:case Rge.TBODY:case Rge.TD:case Rge.TFOOT:case Rge.TH:case Rge.THEAD:case Rge.TR:break;default:pve(e,t)}}function pve(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Qbe(e,t),e.fosterParentingEnabled=n}function hve(e,t){e.pendingCharacterTokens.push(t)}function fve(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function mve(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)pve(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const gve=new Set([Rge.CAPTION,Rge.COL,Rge.COLGROUP,Rge.TBODY,Rge.TD,Rge.TFOOT,Rge.TH,Rge.THEAD,Rge.TR]);function bve(e,t){switch(t.tagID){case Rge.HTML:ove(e,t);break;case Rge.COL:e._appendElement(t,_ge.HTML),t.ackSelfClosing=!0;break;case Rge.TEMPLATE:qbe(e,t);break;default:vve(e,t)}}function vve(e,t){e.openElements.currentTagId===Rge.COLGROUP&&(e.openElements.pop(),e.insertionMode=Obe.IN_TABLE,e._processToken(t))}function yve(e,t){switch(t.tagID){case Rge.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,_ge.HTML),e.insertionMode=Obe.IN_ROW;break;case Rge.TH:case Rge.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(Nge.TR,Rge.TR),e.insertionMode=Obe.IN_ROW,wve(e,t);break;case Rge.CAPTION:case Rge.COL:case Rge.COLGROUP:case Rge.TBODY:case Rge.TFOOT:case Rge.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Obe.IN_TABLE,uve(e,t));break;default:uve(e,t)}}function xve(e,t){const n=t.tagID;switch(t.tagID){case Rge.TBODY:case Rge.TFOOT:case Rge.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Obe.IN_TABLE);break;case Rge.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Obe.IN_TABLE,dve(e,t));break;case Rge.BODY:case Rge.CAPTION:case Rge.COL:case Rge.COLGROUP:case Rge.HTML:case Rge.TD:case Rge.TH:case Rge.TR:break;default:dve(e,t)}}function wve(e,t){switch(t.tagID){case Rge.TH:case Rge.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,_ge.HTML),e.insertionMode=Obe.IN_CELL,e.activeFormattingElements.insertMarker();break;case Rge.CAPTION:case Rge.COL:case Rge.COLGROUP:case Rge.TBODY:case Rge.TFOOT:case Rge.THEAD:case Rge.TR:e.openElements.hasInTableScope(Rge.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Obe.IN_TABLE_BODY,yve(e,t));break;default:uve(e,t)}}function Ave(e,t){switch(t.tagID){case Rge.TR:e.openElements.hasInTableScope(Rge.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Obe.IN_TABLE_BODY);break;case Rge.TABLE:e.openElements.hasInTableScope(Rge.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Obe.IN_TABLE_BODY,xve(e,t));break;case Rge.TBODY:case Rge.TFOOT:case Rge.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(Rge.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Obe.IN_TABLE_BODY,xve(e,t));break;case Rge.BODY:case Rge.CAPTION:case Rge.COL:case Rge.COLGROUP:case Rge.HTML:case Rge.TD:case Rge.TH:break;default:dve(e,t)}}function Eve(e,t){switch(t.tagID){case Rge.HTML:ove(e,t);break;case Rge.OPTION:e.openElements.currentTagId===Rge.OPTION&&e.openElements.pop(),e._insertElement(t,_ge.HTML);break;case Rge.OPTGROUP:e.openElements.currentTagId===Rge.OPTION&&e.openElements.pop(),e.openElements.currentTagId===Rge.OPTGROUP&&e.openElements.pop(),e._insertElement(t,_ge.HTML);break;case Rge.HR:e.openElements.currentTagId===Rge.OPTION&&e.openElements.pop(),e.openElements.currentTagId===Rge.OPTGROUP&&e.openElements.pop(),e._appendElement(t,_ge.HTML),t.ackSelfClosing=!0;break;case Rge.INPUT:case Rge.KEYGEN:case Rge.TEXTAREA:case Rge.SELECT:e.openElements.hasInSelectScope(Rge.SELECT)&&(e.openElements.popUntilTagNamePopped(Rge.SELECT),e._resetInsertionMode(),t.tagID!==Rge.SELECT&&e._processStartTag(t));break;case Rge.SCRIPT:case Rge.TEMPLATE:qbe(e,t)}}function Sve(e,t){switch(t.tagID){case Rge.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===Rge.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===Rge.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===Rge.OPTGROUP&&e.openElements.pop();break;case Rge.OPTION:e.openElements.currentTagId===Rge.OPTION&&e.openElements.pop();break;case Rge.SELECT:e.openElements.hasInSelectScope(Rge.SELECT)&&(e.openElements.popUntilTagNamePopped(Rge.SELECT),e._resetInsertionMode());break;case Rge.TEMPLATE:Ybe(e,t)}}function _ve(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(Rge.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):$be(e,t)}function kve(e,t){var n;if(t.tagID===Rge.HTML){if(e.fragmentContext||(e.insertionMode=Obe.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===Rge.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(null===(n=e.treeAdapter.getNodeSourceCodeLocation(r))||void 0===n?void 0:n.endTag)&&e._setEndLocation(r,t)}}else Tve(e,t)}function Tve(e,t){e.insertionMode=Obe.IN_BODY,Qbe(e,t)}function Cve(e,t){e.insertionMode=Obe.IN_BODY,Qbe(e,t)}function Ove(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==_ge.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.o
205penElements.current);)e.openElements.pop()}const Nve=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);String.prototype.codePointAt;function Ive(e,t){return function(n){let r,i=0,o="";for(;r=e.exec(n);)i!==r.index&&(o+=n.substring(i,r.index)),o+=t.get(r[0].charCodeAt(0)),i=r.index+1;return o+n.substring(i)}}Ive(/[&<>'"]/g,Nve),Ive(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),Ive(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),new Set([Nge.AREA,Nge.BASE,Nge.BASEFONT,Nge.BGSOUND,Nge.BR,Nge.COL,Nge.EMBED,Nge.FRAME,Nge.HR,Nge.IMG,Nge.INPUT,Nge.KEYGEN,Nge.LINK,Nge.META,Nge.PARAM,Nge.SOURCE,Nge.TRACK,Nge.WBR]);const Rve=jve("end"),Pve=jve("start");function jve(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"===typeof n.line&&n.line>0&&"number"===typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"===typeof n.offset&&n.offset>-1?n.offset:void 0}}}const Mve=function(e){if(null===e||void 0===e)return Lve;if("function"===typeof e)return Dve(e);if("object"===typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Mve(e[n]);return Dve(r);function r(){let e=-1;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(;++e<t.length;)if(t[e].apply(this,r))return!0;return!1}}(e):function(e){const t=e;return Dve(n);function n(n){const r=n;let i;for(i in e)if(r[i]!==t[i])return!1;return!0}}(e);if("string"===typeof e)return function(e){return Dve(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function Dve(e){return function(t,n,r){return Boolean(Fve(t)&&e.call(this,t,"number"===typeof n?n:void 0,r||void 0))}}function Lve(){return!0}function Fve(e){return null!==e&&"object"===typeof e&&"type"in e}const Bve=[],Uve=!0,zve=!1;function Hve(e,t,n,r){let i;"function"===typeof t&&"function"!==typeof n?(r=n,n=t):i=t;const o=Mve(i),a=r?-1:1;!function e(i,s,l){const c=i&&"object"===typeof i?i:{};if("string"===typeof c.type){const e="string"===typeof c.tagName?c.tagName:"string"===typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,p=Bve;if((!t||o(i,s,l[l.length-1]||void 0))&&(p=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[Uve,e];return null===e||void 0===e?Bve:[e]}(n(i,l)),p[0]===zve))return p;if("children"in i&&i.children){const t=i;if(t.children&&"skip"!==p[0])for(u=(r?t.children.length:-1)+a,d=l.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===zve)return c;u="number"===typeof c[1]?c[1]:u+a}}return p}}(e,void 0,[])()}function $ve(e,t,n,r){let i,o,a;"function"===typeof t&&"function"!==typeof n?(o=void 0,a=t,i=n):(o=t,a=n,i=r),Hve(e,o,(function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)}),i)}const Vve=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Gve=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Wve={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function qve(e,t){const n=function(e){const t="root"===e.type?e.children[0]:e;return Boolean(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))}(e),r=Pme("type",{handlers:{root:Kve,element:Xve,text:Zve,comment:eye,doctype:Qve,raw:tye},unknown:nye}),i={parser:n?new jbe(Wve):jbe.getFragmentParser(void 0,Wve),handle(e){r(e,i)},stitches:!1,options:t||{}};r(e,i),rye(i,Pve());const o=function(e,t){const n=t||{};return Tme({file:n.file||void 0,location:!1,schema:"svg"===n.space?ime:rme,verbose:n.verbose||!1},e)}(n?i.parser.document:i.parser.getFragment(),{file:i.options.file});return i.stitches&&$ve(o,"comment",(function(e,t,n){const r=e;if(r.value.stitch&&n&&void 0!==t){return n.children[t]=r.value.stitch,t}})),"root"===o.type&&1===o.children.length&&o.children[0].type===e.type?o.children[0]:o}function Yve(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function Kve(e,t){Yve(e.children,t)}function Xve(e,t){!function(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===zge.PLAINTEXT)return;rye(t,Pve(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:Sme.html;i===Sme.html&&"svg"===n&&(i=Sme.svg);const o=function(e,t){const n=(t||jme).space;return Dme(e,"svg"===n?ime:rme)}({...e,children:[]},{space:i===Sme.svg?"svg":"html"}),a={type:rge.START_TAG,tagName:n,tagID:Mge(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in o?o.attrs:[],location:oye(e)};t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}(e,t),Yve(e.children,t),function(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Ume.includes(n))return;if(t.parser.tokenizer.state===zge.PLAINTEXT)return;rye(t,Rve(e));const r={type:rge.END_TAG,tagName:n,tagID:Mge(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:oye(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n!==t.parser.tokenizer.lastStartTagName||t.parser.tokenizer.state!==zge.RCDATA&&t.parser.tokenizer.state!==zge.RAWTEXT&&t.parser.tokenizer.state!==zge.SCRIPT_DATA||(t.parser.tokenizer.state=zge.DATA)}(e,t)}function Zve(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:rge.CHARACTER,chars:e.value,location:oye(e)};rye(t,Pve(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Qve(e,t){const n={type:rge.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:oye(e)};rye(t,Pve(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Jve(e,t){t.stitches=!0;const n=function(e){return Nfe("children"in e?{...e,children:[]}:e)}(e);if("children"in e&&"children"in n){const r=qve({type:"root",children:e.children},t.options);n.children=r.children}eye({type:"comment",value:{stitch:n}},t)}function eye(e,t){const n=e.value,r={type:rge.COMMENT,data:n,location:oye(e)};rye(t,Pve(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function tye(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,iye(t,Pve(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(Vve,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function nye(e,t){const n=e;
vendor: 6,535 bytes, line 205
205if(!t.options.passThrough||!t.options.passThrough.includes(n.type)){let e="";throw Gve.has(n.type)&&(e=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+e)}Jve(n,t)}function rye(e,t){iye(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=zge.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function iye(e,t){if(t&&void 0!==t.offset){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=1-t.column,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function oye(e){const t=Pve(e)||{line:void 0,column:void 0,offset:void 0},n=Rve(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function aye(e){return function(t,n){return qve(t,{...e,file:n})}}function sye(e,t){const n=String(e);if("string"!==typeof t)throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}const lye=xye(/[A-Za-z]/),cye=xye(/[\dA-Za-z]/),uye=xye(/[#-'*+\--9=?A-Z^-~]/);function dye(e){return null!==e&&(e<32||127===e)}const pye=xye(/\d/),hye=xye(/[\dA-Fa-f]/),fye=xye(/[!-/:-@[-`{-~]/);function mye(e){return null!==e&&e<-2}function gye(e){return null!==e&&(e<0||32===e)}function bye(e){return-2===e||-1===e||32===e}const vye=xye(/\p{P}|\p{S}/u),yye=xye(/\s/);function xye(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function wye(e,t,n){const r=Mve((n||{}).ignore||[]),i=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([Aye(e[0]),Eye(e[1])])}return t}(t);let o=-1;for(;++o<i.length;)Hve(e,"text",a);function a(e,t){let n,a=-1;for(;++a<t.length;){const e=t[a],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=i[o][0],a=i[o][1];let s=0;const l=n.children.indexOf(e);let c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){const n=d.index,i={index:d.index,input:d.input,stack:[...t,e]};let o=a(...d,i);if("string"===typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o?r.lastIndex=n+1:(s!==n&&u.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(o)?u.push(...o):o&&u.push(o),s=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}c?(s<e.value.length&&u.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...u)):u=[e];return l+u.length}(e,t)}}function Aye(e){return"string"===typeof e?new RegExp(function(e){if("string"!==typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function Eye(e){return"function"===typeof e?e:function(){return e}}const Sye="phrasing",_ye=["autolink","link","image","label"];function kye(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Tye(e){this.config.enter.autolinkProtocol.call(this,e)}function Cye(e){this.config.exit.autolinkProtocol.call(this,e)}function Oye(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Nye(e){this.config.exit.autolinkEmail.call(this,e)}function Iye(e){this.exit(e)}function Rye(e){wye(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Pye],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,jye]],{ignore:["link","linkReference"]})}function Pye(e,t,n,r,i){let o="";if(!Mye(i))return!1;if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const a=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=sye(e,"(");let o=sye(e,")");for(;-1!==r&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function jye(e,t,n,r){return!(!Mye(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Mye(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||yye(n)||vye(n))&&(!t||47!==n)}function Dye(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function Lye(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Fye(){this.buffer()}function Bye(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Dye(this.sliceSerialize(e)).toLowerCase()}function Uye(e){this.exit(e)}function zye(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Hye(){this.buffer()}function $ye(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Dye(this.sliceSerialize(e)).toLowerCase()}function Vye(e){this.exit(e)}function Gye(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),s(),a(),o+=i.move("]"),o}
vendor: 8,577 bytes, line 205
205function Wye(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteDefinition"),s=n.enter("label");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),s(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(n.indentLines(n.containerFlow(e,i.current()),qye)),a(),o}function qye(e,t,n){return 0===t?e:(n?"":"    ")+e}Gye.peek=function(){return"["};const Yye=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function Kye(e){this.enter({type:"delete",children:[]},e)}function Xye(e){this.exit(e)}function Zye(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function Qye(e){return e.length}function Jye(e){const t="string"===typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function exe(e,t,n){return">"+(n?"":" ")+e}function txe(e,t,n){if("string"===typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function nxe(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if("\n"===n.unsafe[i].character&&(o=n.stack,a=n.unsafe[i],txe(o,a.inConstruct,!0)&&!txe(o,a.notInConstruct,!1)))return/[ \t]/.test(r.before)?"":" ";var o,a;return"\\\n"}function rxe(e,t,n){return(n?"":"    ")+e}function ixe(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function oxe(e){return"&#x"+e.toString(16).toUpperCase()+";"}function axe(e){return null===e||gye(e)||yye(e)?1:vye(e)?2:void 0}function sxe(e,t,n){const r=axe(e),i=axe(t);return void 0===r?void 0===i?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function lxe(e,t,n,r){const i=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),o=n.enter("emphasis"),a=n.createTracker(r),s=a.move(i);let l=a.move(n.containerPhrasing(e,{after:i,before:s,...a.current()}));const c=l.charCodeAt(0),u=sxe(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=oxe(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=sxe(r.after.charCodeAt(0),d,i);p.inside&&(l=l.slice(0,-1)+oxe(d));const h=a.move(i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+h}Zye.peek=function(){return"~"},lxe.peek=function(e,t,n){return n.options.emphasis||"*"};const cxe={};function uxe(e,t){const n=t||cxe;return dxe(e,"boolean"!==typeof n.includeImageAlt||n.includeImageAlt,"boolean"!==typeof n.includeHtml||n.includeHtml)}function dxe(e,t,n){if(function(e){return Boolean(e&&"object"===typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return pxe(e.children,t,n)}return Array.isArray(e)?pxe(e,t,n):""}function pxe(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=dxe(e[i],t,n);return r.join("")}function hxe(e){return e.value||""}function fxe(e,t,n,r){const i=ixe(n),o='"'===i?"Quote":"Apostrophe",a=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),c+=l.move(")"),a(),c}function mxe(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=u,o(),"full"!==i&&c&&c===d?"shortcut"===i?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function gxe(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const e=n.unsafe[o],t=n.compilePattern(e);let i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(i.index+1)}}return i+r+i}function bxe(e,t){const n=uxe(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function vxe(e,t,n,r){const i=ixe(n),o='"'===i?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(bxe(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=a.move("<");return r+=a.move(n.containerPhrasing(e,{before:r,after:">",...a.current()})),r+=a.move(">"),s(),n.stack=t,r}s=n.enter("link"),l=n.enter("label");let c=a.move("[");return c+=a.move(n.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(l=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${o}`),c+=a.move(" "+i),c+=a.move(n.safe(e.title,{before:c,after:i,...a.current()})),c+=a.move(i),l()),c+=a.move(")"),s(),c}function yxe(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=u,o(),"full"!==i&&c&&c===d?"shortcut"===i?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function xxe(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function wxe(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}hxe.peek=function(){return"<"},fxe.peek=function(){return"!"},mxe.peek=function(){return"!"},gxe.peek=function(){return"`"},vxe.peek=function(e,t,n){return bxe(e,n)?"<":"["},yxe.peek=function(){return"["};const Axe=Mve(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Exe(e,t,n,r){const i=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),o=n.enter("strong"),a=n.createTracker(r),s=a.move(i+i);let l=a.move(n.containerPhrasing(e,{after:i,before:s,...a.current()}));const c=l.charCodeAt(0),u=sxe(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=oxe(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=sxe(r.after.charCodeAt(0),d,i);p.inside&&(l=l.slice(0,-1)+oxe(d));const h=a.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+h}Exe.peek=function(e,t,n){return n.options.strong||"*"};const Sxe={blockquote:function(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const a=n.indentLines(n.containerFlow(e,o.current()),exe);return i(),a},break:nxe,code:function(e,t,n,r){const i=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),o=e.value||"",a="`"===i?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}
vendor: 16,183 bytes, line 205
205(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(o,rxe);return e(),t}const s=n.createTracker(r),l=i.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,a=0;if("string"!==typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===i?++o>a&&(a=o):o=1,i=r+t.length,r=n.indexOf(t,i);return a}(o,i)+1,3)),c=n.enter("codeFenced");let u=s.move(l);if(e.lang){const t=n.enter(`codeFencedLang${a}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${a}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),o&&(u+=s.move(o+"\n")),u+=s.move(l),c(),u},definition:function(e,t,n,r){const i=ixe(n),o='"'===i?"Quote":"Apostrophe",a=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),a(),c},emphasis:lxe,hardBreak:nxe,heading:function(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(function(e,t){let n=!1;return $ve(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,zve})),Boolean((!e.depth||e.depth<3)&&uxe(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),a=n.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return r(),t(),a+"\n"+(1===i?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const a="#".repeat(i),s=n.enter("headingAtx"),l=n.enter("phrasing");o.move(a+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(c)&&(c=oxe(c.charCodeAt(0))+c.slice(1)),c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),l(),s(),c},html:hxe,image:fxe,imageReference:mxe,inlineCode:gxe,link:vxe,linkReference:yxe,list:function(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let a=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):xxe(n);const s=e.ordered?"."===a?")":".":function(e){const t=xxe(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&a===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==a&&"-"!==a||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),wxe(n)===a&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(a=s),n.bulletCurrent=a;const c=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=o,i(),c},listItem:function(e,t,n,r){const i=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let o=n.bulletCurrent||xxe(n);t&&"list"===t.type&&t.ordered&&(o=("number"===typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let a=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(a))+e;return(n?o:o+" ".repeat(a-o.length))+e}));return l(),c},paragraph:function(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),a=n.containerPhrasing(e,r);return o(),i(),a},root:function(e,t,n,r){return(e.children.some((function(e){return Axe(e)}))?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:Exe,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(wxe(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function _xe(e){const t=e._align;this.enter({type:"table",align:t.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function kxe(e){this.exit(e),this.data.inTable=void 0}function Txe(e){this.enter({type:"tableRow",children:[]},e)}function Cxe(e){this.exit(e)}function Oxe(e){this.enter({type:"tableCell",children:[]},e)}function Nxe(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Ixe));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Ixe(e,t){return"|"===t?t:e}function Rxe(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=Sxe.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let i=-1;const o=[],a=t.enter("table");for(;++i<r.length;)o[i]=l(r[i],t,n);return a(),o}(e,n,r),e.align)},tableCell:a,tableRow:function(e,t,n,r){const i=s([l(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function a(e,t,n,r){const i=n.enter("tableCell"),a=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:o,after:o});return a(),i(),s}function s(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Qye,o=[],a=[],s=[],l=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let o=-1;for(e[u].length>c&&(c=e[u].length);++o<e[u].length;){const a=null===(d=e[u][o])||void 0===d?"":String(d);if(!1!==n.alignDelimiters){const e=i(a);r[o]=e,(void 0===l[o]||e>l[o])&&(l[o]=e)}t.push(a)}a[u]=t,s[u]=r}var d;let p=-1;if("object"===typeof r&&"length"in r)for(;++p<c;)o[p]=Jye(r[p]);else{const e=Jye(r);for(;++p<c;)o[p]=e}p=-1;const h=[],f=[];for(;++p<c;){const e=o[p];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,l[p]-t.length-r.length);const a=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&(i=t.length+i+r.length,i>l[p]&&(l[p]=i),f[p]=i),h[p]=a}a.splice(1,0,h),s.splice(1,0,f),u=-1;const m=[];for(;++u<a.length;){const e=a[u],t=s[u];p=-1;const r=[];for(;++p<c;){const i=e[p]||"";let a="",s="";if(!1!==n.alignDelimiters){const e=l[p]-(t[p]||0),n=o[p];114===n?a=" ".repeat(e):99===n?e%2?(a=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):(a=" ".repeat(e/2),s=a):s=" ".repeat(e)}!1===n.delimiterStart||p||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===i||!1===n.delimiterStart&&!p||r.push(" "),!1!==n.alignDelimiters&&r.push(a),r.push(i),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&p===c-1||r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function l(e,t,n){const r=e.children;let i=-1;const o=[],s=t.enter("tableRow");for(;++i<r.length;)o[i]=a(r[i],0,t,n);return s(),o}}function Pxe(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function jxe(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"===typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let i,o=-1;for(;++o<r.length;){const e=r[o];if("paragraph"===e.type){i=e;break}}i===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"===typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function Mxe(e,t,n,r){const i=e.children[0],o="boolean"===typeof e.checked&&i&&"paragraph"===i.type,a="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);o&&s.move(a);let l=Sxe.listItem(e,t,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+a}))),l}function Dxe(e,t,n,r){const i=e.length;let o,a=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function Lxe(e,t){return e.length>0?(Dxe(e,e.length,0,t),e):t}const Fxe={}.hasOwnProperty;function Bxe(e){const t={};let n=-1;for(;++n<e.length;)Uxe(t,e[n]);return t}function Uxe(e,t){let n;for(n in t){const r=(Fxe.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){Fxe.call(r,o)||(r[o]=[]);const e=i[o];zxe(r[o],Array.isArray(e)?e:e?[e]:[])}}}function zxe(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Dxe(e,0,0,r)}const Hxe={tokenize:function(e,t,n){let r=0;return function t(o){if((87===o||119===o)&&r<3)return r++,e.consume(o),t;if(46===o&&3===r)return e.consume(o),i;return n(o)};function i(e){return null===e?n(e):t(e)}},partial:!0},$xe={tokenize:function(e,t,n){let r,i,o;return a;function a(t){return 46===t||95===t?e.check(Gxe,l,s)(t):null===t||gye(t)||yye(t)||45!==t&&vye(t)?l(t):(o=!0,e.consume(t),a)}function s(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),a}function l(e){return i||r||!o?n(e):t(e)}},partial:!0},Vxe={tokenize:function(e,t){let n=0,r=0;return i;function i(a){return 40===a?(n++,e.consume(a),i):41===a&&r<n?o(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?e.check(Gxe,t,o)(a):null===a||gye(a)||yye(a)?t(a):(e.consume(a),i)}function o(t){return 41===t&&r++,e.consume(t),i}},partial:!0},Gxe={tokenize:function(e,t,n){return r;function r(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),r):38===a?(e.consume(a),o):93===a?(e.consume(a),i):60===a||null===a||gye(a)||yye(a)?t(a):n(a)}function i(e){return null===e||40===e||91===e||gye(e)||yye(e)?t(e):r(e)}function o(e){return lye(e)?a(e):n(e)}function a(t){return 59===t?(e.consume(t),r):lye(t)?(e.consume(t),a):n(t)}},partial:!0},Wxe={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return cye(e)?n(e):t(e)}},partial:!0},qxe={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!Qxe.call(r,r.previous)||nwe(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Hxe,e.attempt($xe,e.attempt(Vxe,i),n),n)(t)};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:Qxe},Yxe={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let i="",o=!1;return function(t){if((72===t||104===t)&&Jxe.call(r,r.previous)&&!nwe(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),a;return n(t)};function a(t){if(lye(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),a;if(58===t){const n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),o?l:(o=!0,s)):n(t)}function l(t){return null===t||dye(t)||gye(t)||yye(t)||vye(t)?n(t):e.attempt($xe,e.attempt(Vxe,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:Jxe},Kxe={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let i,o;return function(t){if(!twe(t)||!ewe.call(r,r.previous)||nwe(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return twe(t)?(e.consume(t),a):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(Wxe,c,l)(t):45===t||95===t||cye(t)?(o=!0,e.consume(t),s):c(t)}function l(t){return e.consume(t),i=!0,s}function c(a){return o&&i&&lye(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:ewe},Xxe={};let Zxe=48;for(;Zxe<123;)Xxe[Zxe]=Kxe,Zxe++,58===Zxe?Zxe=65:91===Zxe&&(Zxe=97);function Qxe(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||gye(e)}function Jxe(e){return!lye(e)}function ewe(e){return!(47===e||twe(e))}function twe(e){return 43===e||45===e||46===e||95===e||cye(e)}function nwe(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function rwe(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){if(bye(r))return e.enter(n),a(r);return t(r)};function a(r){return bye(r)&&o++<i?(e.consume(r),a):(e.exit(n),t(r))}}Xxe[43]=Kxe,Xxe[45]=Kxe,Xxe[46]=Kxe,Xxe[95]=Kxe,Xxe[72]=[Kxe,Yxe],Xxe[104]=[Kxe,Yxe],Xxe[87]=[Kxe,qxe],Xxe[119]=[Kxe,qxe];const iwe={partial:!0,tokenize:function(e,t,n){return function(t){return bye(t)?rwe(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||mye(e)?t(e):n(e)}}};const owe={tokenize:function(e,t,n){const r=this;return rwe(e,(function(e){const i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function awe(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const e=r.events[i][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!a||!a._balanced)return n(i);const s=Dye(r.sliceSerialize({start:a.end,end:r.now()}));if(94!==s.codePointAt(0)||!o.includes(s.slice(1)))return n(i);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)}}function swe(e,t){let n,r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},l=[e[r+1],e[r+2],["enter",i,t],e[r+3],e[r+4],["enter",o,t],["exit",o,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(r,e.length-r+1,...l),e}function lwe(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}
vendor: 4,178 bytes, line 205
205function l(s){if(a>999||93===s&&!o||null===s||91===s||gye(s))return n(s);if(93===s){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return i.includes(Dye(r.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return gye(s)||(o=!0),a++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,l):l(t)}}function cwe(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!a||null===t||91===t||gye(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return o=Dye(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return gye(t)||(a=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i.includes(o)||i.push(o),rwe(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function uwe(e,t,n){return e.check(iwe,t,e.attempt(owe,t,n))}function dwe(e){e.exit("gfmFootnoteDefinition")}function pwe(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}function hwe(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const i=this.previous,o=this.events;let a=0;return function(t){if(126===i&&"characterEscape"!==o[o.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(o){const l=axe(i);if(126===o)return a>1?r(o):(e.consume(o),a++,s);if(a<2&&!t)return r(o);const c=e.exit("strikethroughSequenceTemporary"),u=axe(o);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(o)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},o={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",o,t]],s=t.parser.constructs.insideSpan.null;s&&Dxe(a,a.length,0,pwe(s,e.slice(r+1,n),t)),Dxe(a,a.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),Dxe(e,r-1,n-r+3,a),n=r+a.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null!==t&&void 0!==t||(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class fwe{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0===n&&0===r.length)return;for(;i<e.map.length;){if(e.map[i][0]===t)return e.map[i][1]+=n,void e.map[i][2].push(...r);i+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort((function(e,t){return e[0]-t[0]})),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}}function mwe(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left"
vendor: 33,117 bytes, line 205
205:"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}function gwe(e,t,n){const r=this;let i,o=0,a=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const i=t>-1?r.events[t][1].type:null,o="tableHead"===i||"tableRow"===i?x:s;if(o===x&&r.parser.lazy[r.now().line])return n(e);return o(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return l(e);return i=!0,a+=1,l(e)}(t)}function l(t){return null===t?n(t):mye(t)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):bye(t)?rwe(e,l,"whitespace")(t):(a+=1,i&&(i=!1,o+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),i=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||gye(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),i=!1,bye(t)?rwe(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?f(t):124===t?(i=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),h):y(t)}function h(t){return bye(t)?rwe(e,f,"whitespace")(t):f(t)}function f(t){return 58===t?(a+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(a+=1,m(t)):null===t||mye(t)?v(t):y(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):y(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),b):(e.exit("tableDelimiterFiller"),b(t))}function b(t){return bye(t)?rwe(e,v,"whitespace")(t):v(t)}function v(n){return 124===n?p(n):(null===n||mye(n))&&i&&o===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):y(n)}function y(e){return n(e)}function x(t){return e.enter("tableRow"),w(t)}function w(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),w):null===n||mye(n)?(e.exit("tableRow"),t(n)):bye(n)?rwe(e,w,"whitespace")(n):(e.enter("data"),A(n))}function A(t){return null===t||124===t||gye(t)?(e.exit("data"),w(t)):(e.consume(t),92===t?E:A)}function E(t){return 92===t||124===t?(e.consume(t),A):A(t)}}function bwe(e,t){let n,r,i,o=-1,a=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const p=new fwe;for(;++o<e.length;){const h=e[o],f=h[1];"enter"===h[0]?"tableHead"===f.type?(u=!1,0!==d&&(ywe(p,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},f.start),end:Object.assign({},f.end)},p.add(o,0,[["enter",n,t]])):"tableRow"===f.type||"tableDelimiterRow"===f.type?(a=!0,i=void 0,l=[0,0,0,0],c=[0,o+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},f.start),end:Object.assign({},f.end)},p.add(o,0,[["enter",r,t]])),s="tableDelimiterRow"===f.type?2:r?3:1):!s||"data"!==f.type&&"tableDelimiterMarker"!==f.type&&"tableDelimiterFiller"!==f.type?"tableCellDivider"===f.type&&(a?a=!1:(0!==l[1]&&(c[0]=c[1],i=vwe(p,t,l,s,void 0,i)),l=c,c=[l[1],o,0,0])):(a=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],i=vwe(p,t,l,s,void 0,i),l=[0,0,0,0]),c[2]=o)):"tableHead"===f.type?(u=!0,d=o):"tableRow"===f.type||"tableDelimiterRow"===f.type?(d=o,0!==l[1]?(c[0]=c[1],i=vwe(p,t,l,s,o,i)):0!==c[1]&&(i=vwe(p,t,c,s,o,i)),s=0):!s||"data"!==f.type&&"tableDelimiterMarker"!==f.type&&"tableDelimiterFiller"!==f.type||(c[3]=o)}for(0!==d&&ywe(p,t,d,n,r),p.consume(t.events),o=-1;++o<t.events.length;){const e=t.events[o];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=mwe(t.events,o))}return e}function vwe(e,t,n,r,i,o){const a=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(o.end=Object.assign({},xwe(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const s=xwe(t.events,n[1]);if(o={type:a,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",o,t]]),0!==n[2]){const i=xwe(t.events,n[2]),o=xwe(t.events,n[3]),a={type:"tableContent",start:Object.assign({},i),end:Object.assign({},o)};if(e.add(n[2],0,[["enter",a,t]]),2!==r){const r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==i&&(o.end=Object.assign({},xwe(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function ywe(e,t,n,r,i){const o=[],a=xwe(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function xwe(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const wwe={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i};function i(t){return gye(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return mye(r)?t(r):bye(r)?e.check({tokenize:Awe},t,n)(r):n(r)}}};function Awe(e,t,n){return rwe(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}const Ewe={};function Swe(e){const t=e||Ewe,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return Bxe([{text:Xxe},{document:{91:{name:"gfmFootnoteDefinition",tokenize:cwe,continuation:{tokenize:uwe},exit:dwe}},text:{91:{name:"gfmFootnoteCall",tokenize:lwe},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:awe,resolveTo:swe}}},hwe(e),{flow:{null:{name:"table",tokenize:gwe,resolveAll:bwe}}},{text:{91:wwe}}])}(t)),i.push([{transforms:[Rye],enter:{literalAutolink:kye,literalAutolinkEmail:Tye,literalAutolinkHttp:Tye,literalAutolinkWww:Tye},exit:{literalAutolink:Iye,literalAutolinkEmail:Nye,literalAutolinkHttp:Cye,literalAutolinkWww:Oye}},{enter:{gfmFootnoteDefinition:Lye,gfmFootnoteDefinitionLabelString:Fye,gfmFootnoteCall:zye,gfmFootnoteCallString:Hye},exit:{gfmFootnoteDefinition:Uye,gfmFootnoteDefinitionLabelString:Bye,gfmFootnoteCall:Vye,gfmFootnoteCallString:$ye}},{canContainEols:["delete"],enter:{strikethrough:Kye},exit:{strikethrough:Xye}},{enter:{table:_xe,tableData:Oxe,tableHeader:Oxe,tableRow:Txe},exit:{codeText:Nxe,table:kxe,tableData:Cxe,tableHeader:Cxe,tableRow:Cxe}},{exit:{taskListCheckValueChecked:Pxe,taskListCheckValueUnchecked:Pxe,paragraph:jxe}}]),o.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Sye,notInConstruct:_ye},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Sye,notInConstruct:_ye},{character:":",before:"[ps]",after:"\\/",inConstruct:Sye,notInConstruct:_ye}]},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:Wye,footnoteReference:Gye}},{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Yye}],handlers:{delete:Zye}},Rxe(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Mxe}}]}}(t))}const _we=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,kwe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Twe={};function Cwe(e,t){return((t||Twe).jsx?kwe:_we).test(e)}const Owe=/[ \t\n\f\r]/g;function Nwe(e){return""===e.replace(Owe,"")}const Iwe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var Rwe=__webpack_require__(86999),Pwe=Rwe.default||Rwe;function jwe(e){return e&&"object"===typeof e?"position"in e||"type"in e?Dwe(e.position):"start"in e||"end"in e?Dwe(e):"line"in e||"column"in e?Mwe(e):"":""}function Mwe(e){return Lwe(e&&e.line)+":"+Lwe(e&&e.column)}function Dwe(e){return Mwe(e&&e.start)+"-"+Mwe(e&&e.end)}function Lwe(e){return e&&"number"===typeof e?e:1}class Fwe extends Error{constructor(e,t,n){super(),"string"===typeof t&&(n=t,t=void 0);let r="",i={},o=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"===typeof e?r=e:!i.cause&&e&&(o=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"===typeof n){const e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=a?a.line:void 0,this.name=jwe(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&"string"===typeof i.cause.stack?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}Fwe.prototype.file="",Fwe.prototype.name="",Fwe.prototype.reason="",Fwe.prototype.message="",Fwe.prototype.stack="",Fwe.prototype.column=void 0,Fwe.prototype.line=void 0,Fwe.prototype.ancestors=void 0,Fwe.prototype.cause=void 0,Fwe.prototype.fatal=void 0,Fwe.prototype.place=void 0,Fwe.prototype.ruleId=void 0,Fwe.prototype.source=void 0;const Bwe={}.hasOwnProperty,Uwe=new Map,zwe=/[A-Z]/g,Hwe=/-([a-z])/g,$we=new Set(["table","tbody","thead","tfoot","tr"]),Vwe=new Set(["td","th"]),Gwe="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Wwe(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!==typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,i,o){const a=Array.isArray(i.children),s=Pve(n);return t(r,i,o,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!==typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!==typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,i,o){const a=Array.isArray(i.children)?n:t;return o?a(r,i,o):a(r,i)}}(0,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?ime:rme,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},o=qwe(i,e,void 0);return o&&"string"!==typeof o?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function qwe(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let i=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(i=ime,e.schema=i);e.ancestors.push(t);const o=Qwe(e,t.tagName,!1),a=function(e,t){const n={};let r,i;for(i in t.properties)if("children"!==i&&Bwe.call(t.properties,i)){const o=Zwe(e,i,t.properties[i]);if(o){const[i,a]=o;e.tableCellAlignToStyle&&"align"===i&&"string"===typeof a&&Vwe.has(t.tagName)?r=a:n[i]=a}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let s=Xwe(e,t);$we.has(t.tagName)&&(s=s.filter((function(e){return"string"!==typeof e||!("object"===typeof(t=e)?"text"===t.type&&Nwe(t.value):Nwe(t));var t})));return Ywe(e,a,o,t),Kwe(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Jwe(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let i=r;"svg"===t.name&&"html"===r.space&&(i=ime,e.schema=i);e.ancestors.push(t);const o=null===t.name?e.Fragment:Qwe(e,t.name,!0),a=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];t.type;const i=t.expression;i.type;const o=i.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else Jwe(e,t.position);else{const i=r.name;let o;if(r.value&&"object"===typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];t.type,o=e.evaluater.evaluateExpression(t.expression)}else Jwe(e,t.position);else o=null===r.value||r.value;n[i]=o}return n}(e,t),s=Xwe(e,t);return Ywe(e,a,o,t),Kwe(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Jwe(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return Kwe(r,Xwe(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function Ywe(e,t,n,r){"string"!==typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Kwe(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Xwe(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Uwe;for(;++r<t.children.length;){const o=t.children[r];let a;if(e.passKeys){const e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){const t=i.get(e)||0;a=e+"-"+t,i.set(e,t+1)}}const s=qwe(e,o,a);void 0!==s&&n.push(s)}return n}function Zwe(e,t,n){const r=dme(e.schema,t);if(!(null===n||void 0===n||"number"===typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?ame(n):mme(n)),"style"===r.property){let t="object"===typeof n?n:function(e,t){const n={};try{Pwe(t,r)}catch(qUe){if(!e.ignoreInvalidStyle){const n=qUe,r=new Fwe("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Gwe+"#cannot-parse-style-attribute",r}}return n;function r(e,t){let r=e;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(Hwe,tAe)),n[r]=t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)Bwe.call(e,n)&&(t[eAe(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?Iwe[r.property]||r.property:r.attribute,n]}}function Qwe(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,i=-1;for(;++i<e.length;){const t=Cwe(e[i])?{type:"Identifier",name:e[i]}:{type:"Literal",value:e[i]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(i&&"Literal"===t.type),optional:!1}:t}r=n}else r=Cwe(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return Bwe.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);Jwe(e)}function Jwe(e,t){const n=new Fwe("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Gwe+"#cannot-handle-mdx-estrees-without-createevaluater",n}function eAe(e){let t=e.replace(zwe,nAe);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function tAe(e,t){return t.toUpperCase()}function nAe(e){return"-"+e.toLowerCase()}const rAe={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};class iAe{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null===t||void 0===t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const i=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&oAe(this.left,n),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),oAe(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),oAe(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);oAe(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);oAe(this.left,t.reverse())}}}function oAe(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function aAe(e){const t={};let n,r,i,o,a,s,l,c=-1;const u=new iAe(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(s=n[1]._tokenizer.events,i=0,i<s.length&&"lineEndingBlank"===s[i][1].type&&(i+=2),i<s.length&&"content"===s[i][1].type))for(;++i<s.length&&"content"!==s[i][1].type;)"chunkText"===s[i][1].type&&(s[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,sAe(u,c)),c=t[c],l=!0);else if(n[1]._container){for(i=c,r=void 0;i--&&(o=u.get(i),"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type);)"enter"===o[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),o[1].type="lineEnding",r=i);r&&(n[1].end={...u.get(r)[1].start},a=u.slice(r,c),a.unshift(n),u.splice(r,c-r+1,a))}}return Dxe(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function sAe(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[],a=n._tokenizer||r.parser[n.contentType](n.start),s=a.events,l=[],c={};let u,d,p=-1,h=n,f=0,m=0;const g=[m];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(u=r.sliceStream(h),h.next||u.push(null),d&&a.defineSkip(h.start),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=n;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(m=p+1,g.push(m),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(a.events=[],h?(h._tokenizer=void 0,h.previous=void 0):g.pop(),p=g.length;p--;){const t=s.slice(g[p],g[p+1]),n=o.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}for(l.reverse(),p=-1;++p<l.length;)c[f+l[p][0]]=f+l[p][1],f+=l[p][1]-l[p][0]-1;return c}const lAe={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),rwe(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):mye(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),i)}}};const cAe={tokenize:function(e){const t=this,n=[];let r,i,o,a=0;return s;function s(r){if(a<n.length){const i=n[a];return t.containerState=i[1],e.attempt(i[0].continuation,l,c)(r)}return c(r)}function l(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&v();const n=t.events.length;let i,o=n;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){i=t.events[o][1].end;break}b(a);let s=n;for(;s<t.events.length;)t.events[s][1].end={...i},s++;return Dxe(t.events,o+1,0,t.events.slice(n)),t.events.length=s,c(e)}return s(e)}function c(i){if(a===n.length){if(!r)return p(i);if(r.currentConstruct&&r.currentConstruct.concrete)return f(i);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(uAe,u,d)(i)}function u(e){return r&&v(),b(a),p(e)}function d(e){return t.parser.lazy[t.now().line]=a!==n.length,o=t.now().offset,f(e)}function p(n){return t.containerState={},e.attempt(uAe,h,f)(n)}function h(e){return a++,n.push([t.currentConstruct,t.containerState]),p(e)}function f(n){return null===n?(r&&v(),b(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:i}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),b(0),void e.consume(n)):mye(n)?(e.consume(n),g(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(n),m)}function g(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=i,i&&(i.next=e),i=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<o&&(!r.events[e][1].end||r.events[e][1].end.offset>o))return;const n=t.events.length;let i,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(i){s=t.events[l][1].end;break}i=!0}for(b(a),e=n;e<t.events.length;)t.events[e][1].end={...s},e++;Dxe(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function b(r){let i=n.length;for(;i-- >r;){const r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}},uAe={tokenize:function(e,t,n){return rwe(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const dAe={resolve:function(e){return aAe(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):mye(t)?e.check(pAe,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},pAe={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),rwe(e,i,"linePrefix")};function i(i){if(null===i||mye(i))return n(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}};const hAe={tokenize:function(e){const t=this,n=e.attempt(iwe,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,rwe(e,e.attempt(this.parser.constructs.flow,r,e.attempt(dAe,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const fAe={resolveAll:vAe()},mAe=bAe("string"),gAe=bAe("text");function bAe(e){return{resolveAll:vAe("text"===e?yAe:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,o,a);return o;function o(e){return l(e)?i(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function vAe(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function yAe(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],i=t.sliceStream(r);let o,a=i.length,s=-1,l=0;for(;a--;){const e=i[a];if("string"===typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)o=!0,l++;else if(-1!==e){a++;break}}if(l){const i={type:n===e.length||o||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:r.start._bufferIndex+s,_index:r.start._index+a,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,["enter",i,t],["exit",i,t]),n+=2)}n++}return e}const xAe={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,o(e)}(t)};function o(o){return o===r?(e.enter("thematicBreakSequence"),a(o)):i>=3&&(null===o||mye(o))?(e.exit("thematicBreak"),t(o)):n(o)}function a(t){return t===r?(e.consume(t),i++,a):(e.exit("thematicBreakSequence"),bye(t)?rwe(e,o,"whitespace")(t):o(t))}}};const wAe={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(iwe,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,rwe(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){if(r.containerState.furtherBlankLines||!bye(n))return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n);return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(EAe,t,i)(n)}));function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,rwe(e,e.attempt(wAe,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return function(t){const i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:pye(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(xAe,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return pye(t)&&++a<10?(e.consume(t),s):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(iwe,r.interrupt?n:c,e.attempt(AAe,d,u))}function c(e){return r.containerState.initialBlankLine=!0,o++,d(e)}function u(t){return bye(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},AAe={partial:!0,tokenize:function(e,t,n){const r=this;return rwe(e,(function(e){const i=r.events[r.events.length-1];return!bye(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},EAe={partial:!0,tokenize:function(e,t,n){const r=this;return rwe(e,(function(e){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)}};const SAe={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(bye(t))return rwe(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return i(t)};function i(r){return e.attempt(SAe,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return bye(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function _Ae(e,t,n,r,i,o,a,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),d;if(null===t||32===t||41===t||dye(t))return n(t);return e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),f(t)};function d(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||mye(t)?n(t):(e.consume(t),92===t?h:p)}function h(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function f(i){return u||null!==i&&41!==i&&!gye(i)?u<c&&40===i?(e.consume(i),u++,f):41===i?(e.consume(i),u--,f):null===i||32===i||40===i||dye(i)?n(i):(e.consume(i),92===i?m:f):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(i))}function m(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function kAe(e,t,n,r,i,o){const a=this;let s,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(o),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):mye(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||mye(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!bye(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function TAe(e,t,n,r,i,o){let a;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,s;return n(t)};function s(n){return n===a?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),l(n))}function l(t){return t===a?(e.exit(o),s(a)):null===t?n(t):mye(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),rwe(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||mye(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function CAe(e,t){let n;return function r(i){if(mye(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r;if(bye(i))return rwe(e,r,n?"linePrefix":"lineSuffix")(i);return t(i)}}const OAe={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(t){return e.enter("definition"),function(t){return kAe.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return i=Dye(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return gye(t)?CAe(e,s)(t):s(t)}function s(t){return _Ae(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(NAe,c,c)(t)}function c(t){return bye(t)?rwe(e,u,"whitespace")(t):u(t)}function u(o){return null===o||mye(o)?(e.exit("definition"),r.parser.defined.push(i),t(o)):n(o)}}},NAe={partial:!0,tokenize:function(e,t,n){return function(t){return gye(t)?CAe(e,r)(t):n(t)};function r(t){return TAe(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return bye(t)?rwe(e,o,"whitespace")(t):o(t)}function o(e){return null===e||mye(e)?t(e):n(e)}}};const IAe={name:"codeIndented",tokenize:function(e,t,n){const r=this;
vendor: 4,374 bytes, line 205
205return function(t){return e.enter("codeIndented"),rwe(e,i,"linePrefix",5)(t)};function i(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?s(t):mye(t)?e.attempt(RAe,o,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||mye(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},RAe={partial:!0,tokenize:function(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):mye(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):rwe(e,o,"linePrefix",5)(t)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):mye(e)?i(e):n(e)}}};const PAe={name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);i-2>o&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4);i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},Dxe(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&r++<6?(e.consume(t),i):null===t||gye(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||mye(n)?(e.exit("atxHeading"),t(n)):bye(n)?rwe(e,o,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),o(t))}function s(t){return null===t||35===t||gye(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),s)}}};const jAe={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);const a={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",a,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=a;return e.push(["exit",a,t]),e},tokenize:function(e,t,n){const r=this;let i;return function(t){let a,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){a="paragraph"===r.events[s][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||a))return e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t);return n(t)};function o(t){return t===i?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),bye(t)?rwe(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||mye(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const MAe=["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","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],DAe=["pre","script","style","textarea"],LAe={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let i,o,a,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),o=!0,h):63===s?(e.consume(s),i=3,r.interrupt?t:j):lye(s)?(e.consume(s),a=String.fromCharCode(s),f):n(s)}function u(o){return 45===o?(e.consume(o),i=2,d):91===o?(e.consume(o),i=5,s=0,p):lye(o)?(e.consume(o),i=4,r.interrupt?t:j):n(o)}function d(i){return 45===i?(e.consume(i),r.interrupt?t:j):n(i)}function p(i){const o="CDATA[";
vendor: 4,187 bytes, line 205
205return i===o.charCodeAt(s++)?(e.consume(i),6===s?r.interrupt?t:k:p):n(i)}function h(t){return lye(t)?(e.consume(t),a=String.fromCharCode(t),f):n(t)}function f(s){if(null===s||47===s||62===s||gye(s)){const l=47===s,c=a.toLowerCase();return l||o||!DAe.includes(c)?MAe.includes(a.toLowerCase())?(i=6,l?(e.consume(s),m):r.interrupt?t(s):k(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):o?g(s):b(s)):(i=1,r.interrupt?t(s):k(s))}return 45===s||cye(s)?(e.consume(s),a+=String.fromCharCode(s),f):n(s)}function m(i){return 62===i?(e.consume(i),r.interrupt?t:k):n(i)}function g(t){return bye(t)?(e.consume(t),g):S(t)}function b(t){return 47===t?(e.consume(t),S):58===t||95===t||lye(t)?(e.consume(t),v):bye(t)?(e.consume(t),b):S(t)}function v(t){return 45===t||46===t||58===t||95===t||cye(t)?(e.consume(t),v):y(t)}function y(t){return 61===t?(e.consume(t),x):bye(t)?(e.consume(t),y):b(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,w):bye(t)?(e.consume(t),x):A(t)}function w(t){return t===l?(e.consume(t),l=null,E):null===t||mye(t)?n(t):(e.consume(t),w)}function A(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||gye(t)?y(t):(e.consume(t),A)}function E(e){return 47===e||62===e||bye(e)?b(e):n(e)}function S(t){return 62===t?(e.consume(t),_):n(t)}function _(t){return null===t||mye(t)?k(t):bye(t)?(e.consume(t),_):n(t)}function k(t){return 45===t&&2===i?(e.consume(t),N):60===t&&1===i?(e.consume(t),I):62===t&&4===i?(e.consume(t),M):63===t&&3===i?(e.consume(t),j):93===t&&5===i?(e.consume(t),P):!mye(t)||6!==i&&7!==i?null===t||mye(t)?(e.exit("htmlFlowData"),T(t)):(e.consume(t),k):(e.exit("htmlFlowData"),e.check(FAe,D,T)(t))}function T(t){return e.check(BAe,C,D)(t)}function C(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),O}function O(t){return null===t||mye(t)?T(t):(e.enter("htmlFlowData"),k(t))}function N(t){return 45===t?(e.consume(t),j):k(t)}function I(t){return 47===t?(e.consume(t),a="",R):k(t)}function R(t){if(62===t){const n=a.toLowerCase();return DAe.includes(n)?(e.consume(t),M):k(t)}return lye(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),R):k(t)}function P(t){return 93===t?(e.consume(t),j):k(t)}function j(t){return 62===t?(e.consume(t),M):45===t&&2===i?(e.consume(t),j):k(t)}function M(t){return null===t||mye(t)?(e.exit("htmlFlowData"),D(t)):(e.consume(t),M)}function D(n){return e.exit("htmlFlow"),t(n)}}},FAe={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(iwe,t,n)}}},BAe={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(mye(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i;return n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const UAe={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},zAe={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,i={partial:!0,tokenize:function(e,t,n){let i=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),bye(t)?rwe(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===o?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===o?(i++,e.consume(t),u):i>=s?(e.exit("codeFencedFenceSequence"),bye(t)?rwe(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||mye(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let o,a=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===o?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),bye(t)?rwe(e,c,"whitespace")(t):c(t))}function c(n){return null===n||mye(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(UAe,h,v)(n)):(e.enter("co
205deFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||mye(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):bye(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),rwe(e,d,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),u)}function d(t){return null===t||mye(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||mye(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===o?n(t):(e.consume(t),p)}function h(t){return e.attempt(i,v,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&bye(t)?rwe(e,g,"linePrefix",a+1)(t):g(t)}function g(t){return null===t||mye(t)?e.check(UAe,h,v)(t):(e.enter("codeFlowValue"),b(t))}function b(t){return null===t||mye(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),b)}function v(n){return e.exit("codeFenced"),t(n)}}};const HAe=document.createElement("i");function $Ae(e){const t="&"+e+";";HAe.innerHTML=t;const n=HAe.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}const VAe={name:"characterReference",tokenize:function(e,t,n){const r=this;let i,o,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,o=cye,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=hye,c):(e.enter("characterReferenceValue"),i=7,o=pye,c(t))}function c(s){if(59===s&&a){const i=e.exit("characterReferenceValue");return o!==cye||$Ae(r.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return o(s)&&a++<i?(e.consume(s),c):n(s)}}};const GAe={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return fye(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const WAe={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),rwe(e,t,"linePrefix")}}};const qAe={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}e.length!==n.length&&Dxe(e,0,e.length,n);return e},resolveTo:function(e,t){let n,r,i,o,a=e.length,s=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(i=a);const l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},u={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[i-2][1].start}};return o=[["enter",l,t],["enter",c,t]],o=Lxe(o,e.slice(r+1,r+s+3)),o=Lxe(o,[["enter",u,t]]),o=Lxe(o,pwe(t.parser.constructs.insideSpan.null,e.slice(r+s+4,i-3),t)),o=Lxe(o,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),o=Lxe(o,e.slice(i+1)),o=Lxe(o,[["exit",l,t]]),Dxe(e,r,e.length,o),e},tokenize:function(e,t,n){const r=this;let i,o,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){i=r.events[a][1];break}return function(t){if(!i)return n(t);if(i._inactive)return u(t);return o=r.parser.defined.includes(Dye(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s};function s(t){return 40===t?e.attempt(YAe,c,o?c:u)(t):91===t?e.attempt(KAe,c,o?l:u)(t):o?c(t):u(t)}function l(t){return e.attempt(XAe,c,u)(t)}function c(e){return t(e)}function u(e){return i._balanced=!0,n(e)}}},YAe={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return gye(t)?CAe(e,i)(t):i(t)}function i(t){return 41===t?c(t):_Ae(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return gye(t)?CAe(e,s)(t):c(t)}function a(e){return n(e)}function s(t){return 34===t||39===t||40===t?TAe(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return gye(t)?CAe(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},KAe={tokenize:function(e,t,n){const r=this;return function(t){return kAe.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(Dye(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},XAe={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const ZAe={name:"labelStartImage",resolveAll:qAe.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const QAe={name:"attention",resolveAll:function(e,t){let n,r,i,o,a,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[
vendor: 6,517 bytes, line 205
205n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[n][1].end},p={...e[u][1].start};JAe(d,-s),JAe(p,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},i={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:s>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[n][1].end={...o.start},e[u][1].start={...a.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=Lxe(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=Lxe(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=Lxe(l,pwe(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=Lxe(l,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=Lxe(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,Dxe(e,n-1,u-n+3,l),u=n+l.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=axe(r);let o;return function(t){return o=t,e.enter("attentionSequence"),a(t)};function a(s){if(s===o)return e.consume(s),a;const l=e.exit("attentionSequence"),c=axe(s),u=!c||2===c&&i||n.includes(s),d=!i||2===i&&c||n.includes(r);return l._open=Boolean(42===o?u:u&&(i||!d)),l._close=Boolean(42===o?d:d&&(c||!u)),t(s)}}};function JAe(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const eEe={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return lye(t)?(e.consume(t),o):64===t?n(t):l(t)}function o(e){return 43===e||45===e||46===e||cye(e)?(r=1,a(e)):l(e)}function a(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||cye(t))&&r++<32?(e.consume(t),a):(r=0,l(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||dye(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):uye(t)?(e.consume(t),l):n(t)}function c(e){return cye(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||cye(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const tEe={name:"htmlText",tokenize:function(e,t,n){const r=this;let i,o,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),x):63===t?(e.consume(t),v):lye(t)?(e.consume(t),E):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),o=0,h):lye(t)?(e.consume(t),b):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):mye(t)?(a=u,R(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?I(e):45===e?d(e):u(e)}function h(t){const r="CDATA[";return t===r.charCodeAt(o++)?(e.consume(t),6===o?f:h):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),m):mye(t)?(a=f,R(t)):(e.consume(t),f)}function m(t){return 93===t?(e.consume(t),g):f(t)}function g(t){return 62===t?I(t):93===t?(e.consume(t),g):f(t)}function b(t){return null===t||62===t?I(t):mye(t)?(a=b,R(t)):(e.consume(t),b)}function v(t){return null===t?n(t):63===t?(e.consume(t),y):mye(t)?(a=v,R(t)):(e.consume(t),v)}function y(e){return 62===e?I(e):v(e)}function x(t){return lye(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||cye(t)?(e.consume(t),w):A(t)}function A(t){return mye(t)?(a=A,R(t)):bye(t)?(e.consume(t),A):I(t)}function E(t){return 45===t||cye(t)?(e.consume(t),E):47===t||62===t||gye(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),I):58===t||95===t||lye(t)?(e.consume(t),_):mye(t)?(a=S,R(t)):bye(t)?(e.consume(t),S):I(t)}function _(t){return 45===t||46===t||58===t||95===t||cye(t)?(e.consume(t),_):k(t)}function k(t){return 61===t?(e.consume(t),T):mye(t)?(a=k,R(t)):bye(t)?(e.consume(t),k):S(t)}function T(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),i=t,C):mye(t)?(a=T,R(t)):bye(t)?(e.consume(t),T):(e.consume(t),O)}function C(t){return t===i?(e.consume(t),i=void 0,N):null===t?n(t):mye(t)?(a=C,R(t)):(e.consume(t),C)}function O(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||gye(t)?S(t):(e.consume(t),O)}function N(e){return 47===e||62===e||gye(e)?S(e):n(e)}function I(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function R(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),P}function P(t){return bye(t)?rwe(e,j,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):j(t)}function j(t){return e.enter("htmlTextData"),a(t)}}};const nEe={name:"labelStartLink",resolveAll:qAe.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const rEe={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return mye(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const iEe={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[i][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type))for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}t=i-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,o=0;
vendor: 8,154 bytes, line 205
205return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),o++,a):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(i=e.enter("codeTextSequence"),r=0,c(t)):mye(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||mye(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(i.type="codeTextData",l(n))}}};const oEe={42:wAe,43:wAe,45:wAe,48:wAe,49:wAe,50:wAe,51:wAe,52:wAe,53:wAe,54:wAe,55:wAe,56:wAe,57:wAe,62:SAe},aEe={91:OAe},sEe={[-2]:IAe,[-1]:IAe,32:IAe},lEe={35:PAe,42:xAe,45:[jAe,xAe],60:LAe,61:jAe,95:xAe,96:zAe,126:zAe},cEe={38:VAe,92:GAe},uEe={[-5]:WAe,[-4]:WAe,[-3]:WAe,33:ZAe,38:VAe,42:QAe,60:[eEe,tEe],91:nEe,92:[rEe,GAe],93:qAe,95:QAe,96:iEe},dEe={null:[QAe,fAe]},pEe={null:[42,95]},hEe={null:[]};function fEe(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let a=[],s=[],l=!0;const c={attempt:v((function(e,t){y(e,t.from)})),check:v(b),consume:function(e){mye(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,x()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++));u.previous=e,l=!0},enter:function(e,t){const n=t||{};return n.type=e,n.start=f(),u.events.push(["enter",n,u]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=f(),u.events.push(["exit",t,u]),t},interrupt:v(b,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,x()},events:[],now:f,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let a;if("string"===typeof o)a=o;else switch(o){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&i)continue;a=" ";break;default:a=String.fromCharCode(o)}i=-2===o,r.push(a)}return r.join("")}(h(e),t)},sliceStream:h,write:function(e){if(a=Lxe(a,e),m(),null!==a[a.length-1])return[];return y(t,0),u.events=pwe(o,u.events,u),u.events}};let d,p=t.tokenize.call(u,c);return t.resolveAll&&o.push(t),u;function h(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,o)];else{if(a=e.slice(n,i),r>-1){const e=a[0];"string"===typeof e?a[0]=e.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}(a,e)}function f(){const{_bufferIndex:e,_index:t,line:n,column:i,offset:o}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:o}}function m(){let e;for(;r._index<a.length;){const t=a[r._index];if("string"===typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)g(t.charCodeAt(r._bufferIndex));else g(t)}}function g(e){l=void 0,d=e,p=p(e)}function b(e,t){t.restore()}function v(e,t){return function(n,i,o){let a,d,p,h;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return m([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function m(e){return a=e,d=0,0===e.length?o:g(e[d])}function g(e){return function(n){h=function(){const e=f(),t=u.previous,n=u.currentConstruct,i=u.events.length,o=Array.from(s);return{from:i,restore:a};function a(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=i,s=o,x()}}(),p=e,e.partial||(u.currentConstruct=e);if(e.name&&u.parser.constructs.disable.null.includes(e.name))return v(n);return e.tokenize.call(t?Object.assign(Object.create(u),t):u,c,b,v)(n)}}function b(t){return l=!0,e(p,h),i}function v(e){return l=!0,h.restore(),++d<a.length?g(a[d]):o}}}function y(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&Dxe(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function x(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}const mEe=/[\0\t\n\r]/g;function gEe(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":String.fromCodePoint(n)}const bEe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function vEe(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return gEe(n.slice(t?2:1),t?16:10)}return $Ae(n)||e}const yEe={}.hasOwnProperty;function xEe(e,t,r){return"string"!==typeof t&&(r=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(te),autolinkProtocol:_,autolinkEmail:_,atxHeading:o(Z),blockQuote:o(W),characterEscape:_,characterReference:_,codeFenced:o(q),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:o(q,a),codeText:o(Y,a),codeTextData:_,data:_,codeFlowValue:_,definition:o(K),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:o(X),hardBreakEscape:o(Q),hardBreakTrailing:o(Q),htmlFlow:o(J,a),htmlFlowData:_,htmlText:o(J,a),htmlTextData:_,image:o(ee),label:a,link:o(te),listItem:o(re),listItemValue:p,listOrdered:o(ne,d),listUnordered:o(ne),paragraph:o(ie),reference:B,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:o(Z),strong:o(oe),thematicBreak:o(se)},exit:{atxHeading:l(),atxHeadingSequence:w,autolink:l(),autolinkEmail:G,autolinkProtocol:V,blockQuote:l(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:z,characterReferenceMarkerNumeric:z,characterReferenceValue:H,characterReference:$,codeFenced:l(g),codeFencedFence:m,codeFencedFenceInfo:h,codeFencedFenceMeta:f,codeFlowValue:k,codeIndented:l(b),codeText:l(I),codeTextData:k,data:k,definition:l(),definitionDestinationString:x,definitionLabelString:v,definitionTitleString:y,emphasis:l(),hardBreakEscape:l(C),hardBreakTrailing:l(C),htmlFlow:l(O),htmlFlowData:k,htmlText:l(N),htmlTextData:k,image:l(P),label:M,labelText:j,lineEnding:T,link:l(R),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:U,resourceDestinationString:D,resourceTitleString:L,resource:F,setextHeading:l(S),setextHeadingLineSequence:E,setextHeadingText:A,strong:l(),thematicBreak:l()}};AEe(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const o={stack:[r],tokenStack:[],config:t,enter:s,exit:c,buffer:a,resume:u,data:n},l=[];let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])l.push(d);else{d=i(e,l.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]];yEe.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},o),e[d][1])}if(o.tokenStack.length>0){const e=o.tokenStack[o.tokenStack.length-1];(e[1]||SEe).call(o,void 0,e[0])}for(r.position={start:wEe(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:wEe(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r,i,o,a,s=t-1,l=-1,c=!1;for(;++s<=n;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||l||o||(o=s),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=s;for(i=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}
vendor: 14,704 bytes, line 205
205o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){const i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(s,0,["enter",i,t[2]]),s++,n++,o=void 0,a=!0}}}return e[t][1]._spread=c,n}function o(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function a(){this.stack.push({type:"fragment",children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:wEe(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+jwe({start:e.start,end:e.end})+"): it\u2019s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||SEe).call(this,e,r[0])}n.position.end=wEe(e.end)}function u(){return uxe(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function h(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function f(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function v(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Dye(this.sliceSerialize(e)).toLowerCase()}function y(){const e=this.resume();this.stack[this.stack.length-1].title=e}function x(){const e=this.resume();this.stack[this.stack.length-1].url=e}function w(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function E(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function S(){this.data.setextHeadingSlurpLineEnding=void 0}function _(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=ae(),n.position={start:wEe(e.start),end:void 0},t.push(n)),this.stack.push(n)}function k(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=wEe(e.end)}function T(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=wEe(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(_.call(this,e),k.call(this,e))}function C(){this.data.atHardBreak=!0}function O(){const e=this.resume();this.stack[this.stack.length-1].value=e}function N(){const e=this.resume();this.stack[this.stack.length-1].value=e}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function R(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function j(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(bEe,vEe)}(t),n.identifier=Dye(t).toLowerCase()}function M(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function D(){const e=this.resume();this.stack[this.stack.length-1].url=e}function L(){const e=this.resume();this.stack[this.stack.length-1].title=e}function F(){this.data.inReference=void 0}function B(){this.data.referenceType="collapsed"}function U(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Dye(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function z(e){this.data.characterReferenceType=e.type}function H(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=gEe(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=$Ae(t)}this.stack[this.stack.length-1].value+=r}function $(e){this.stack.pop().position.end=wEe(e.end)}function V(e){k.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function G(e){k.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function W(){return{type:"blockquote",children:[]}}function q(){return{type:"code",lang:null,meta:null,value:""}}function Y(){return{type:"inlineCode",value:""}}function K(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function X(){return{type:"emphasis",children:[]}}function Z(){return{type:"heading",depth:0,children:[]}}function Q(){return{type:"break"}}function J(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function ie(){return{type:"paragraph",children:[]}}function oe(){return{type:"strong",children:[]}}function ae(){return{type:"text",value:""}}function se(){return{type:"thematicBreak"}}}(r)(function(e){for(;!aAe(e););return e}(function(e){const t={constructs:Bxe([n,...(e||{}).extensions||[]]),content:r(lAe),defined:[],document:r(cAe),flow:r(hAe),lazy:{},string:r(mAe),text:r(gAe)};return t;function r(e){return function(n){return fEe(t,e,n)}}}(r).document().write(function(){let e,t=1,n="",r=!0;return function(i,o,a){const s=[];let l,c,u,d,p;for(i=n+("string"===typeof i?i.toString():new TextDecoder(o||void 0).decode(i)),u=0,n="",r&&(65279===i.charCodeAt(0)&&u++,r=void 0);u<i.length;){if(mEe.lastIndex=u,l=mEe.exec(i),d=l&&void 0!==l.index?l.index:i.length,p=i.charCodeAt(d),!l){n=i.slice(u);break}if(10===p&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(i.slice(u,d)),t+=d-u),p){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return a&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))}function wEe(e){return{line:e.line,column:e.column,offset:e.offset}}function AEe(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?AEe(e,r):EEe(e,r)}}function EEe(e,t){let n;for(n in t)if(yEe.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function SEe(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+jwe({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+jwe({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+jwe({start:t.start,end:t.end})+") is still open")}function _Ee(e){const t=this;t.parser=function(n){return xEe(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function kEe(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(37===o&&cye(e.charCodeAt(n+1))&&cye(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(a=String.fromCharCode(o,t),i=1):a="\ufffd"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function TEe(e,t){const n=[{type:"text",value:"\u21a9"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function CEe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function OEe(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&"text"===a.type?a.value+=r:i.push({type:"text",value:r}),i}function NEe(e){const t=e.spread;return null===t||void 0===t?e.children.length>1:t}function IEe(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(REe(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(REe(t.slice(i),i>0,!1)),o.join("")}function REe(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}const PEe={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"===typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=kEe(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let a,s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=o+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return OEe(e,t);const i={src:kEe(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const n={src:kEe(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return OEe(e,t);const i={href:kEe(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const n={href:kEe(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=NEe(n[r])}return t}(n):NEe(t),o={},a=[];if("boolean"===typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(i||0!==s||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?a.push(e):a.push(...e.children)}const l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&a.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let i=-1;for("number"===typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){const e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=Pve(t.children[1]),a=Rve(t.children[t.children.length-1]);o&&a&&(r.position={start:o,end:a}),i.push(r)}const o={type:"element",tagName:"table",properties:{}
vendor: 4,705 bytes, line 205
205,children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,a=o?o.length:t.children.length;let s=-1;const l=[];for(;++s<a;){const n=t.children[s],r={},a=o?o[s]:void 0;a&&(r.align=a);let c={type:"element",tagName:i,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:IEe(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:jEe,yaml:jEe,definition:jEe,footnoteDefinition:jEe};function jEe(){}const MEe={}.hasOwnProperty,DEe={};function LEe(e,t){e.position&&(t.position=function(e){const t=Pve(e),n=Rve(e);if(t&&n)return{start:t,end:n}}(e))}function FEe(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;if("string"===typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&i&&Object.assign(n.properties,Nfe(i)),"children"in n&&n.children&&null!==r&&void 0!==r&&(n.children=r)}return n}function BEe(e,t){const n=t.data||{},r=!("value"in t)||MEe.call(n,"hProperties")||MEe.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function UEe(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function zEe(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function HEe(e,t){const n=function(e,t){const n=t||DEe,r=new Map,i=new Map,o=new Map,a={...PEe,...n.handlers},s={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const i=s.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=zEe(i.value)),!Array.isArray(i)&&"element"===i.type)){const e=i.children[0];e&&"text"===e.type&&(e.value=zEe(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:FEe,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:a,one:function(e,t){const n=e.type,r=s.handlers[n];if(MEe.call(s.handlers,n)&&r)return r(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=Nfe(n);return r.children=s.all(e),r}return Nfe(e)}return(s.options.unknownHandler||BEe)(s,e,t)},options:n,patch:LEe,wrap:UEe};return $ve(e,(function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}})),s}(e,t),r=n.one(e,void 0),i=function(e){const t="string"===typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||TEe,r=e.options.footnoteBackLabel||CEe,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const i=e.footnoteById.get(e.footnoteOrder[l]);if(!i)continue;const o=e.all(i),a=String(i.identifier).toUpperCase(),c=kEe(a.toLowerCase());let u=0;const d=[],p=e.footnoteCounts.get(a);for(;void 0!==p&&++u<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"===typeof n?n:n(l,u);"string"===typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"===typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const h=o[o.length-1];if(h&&"element"===h.type&&"p"===h.tagName){const e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...d)}else o.push(...d);const f={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(o,!0)};e.patch(i,f),s.push(f)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Nfe(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)}
vendor: 14,868 bytes, line 205
205,{type:"text",value:"\n"}]}}(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:"\n"},i),o}function $Ee(e,t){return e&&"run"in e?async function(n,r){const i=HEe(n,{file:r,...t});await e.run(i,r)}:function(n,r){return HEe(n,{file:r,...e||t})}}function VEe(e){if(e)throw e}var GEe=__webpack_require__(80755);function WEe(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function qEe(){const e=[],t={run:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];let i=-1;const o=n.pop();if("function"!==typeof o)throw new TypeError("Expected function as last argument, not "+o);!function t(r){const a=e[++i];let s=-1;if(r)o(r);else{for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];for(;++s<n.length;)null!==c[s]&&void 0!==c[s]||(c[s]=n[s]);n=c,a?function(e,t){let n;return i;function i(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];const l=e.length>i.length;let c;l&&i.push(o);try{c=e.apply(this,i)}catch(r){if(l&&n)throw r;return o(r)}l||(c&&c.then&&"function"===typeof c.then?c.then(a,o):c instanceof Error?o(c):a(c))}function o(e){if(!n){n=!0;for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];t(e,...i)}}function a(e){o(null,e)}}(a,t)(...c):o(null,...c)}}(null,...n)},use:function(n){if("function"!==typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const YEe={basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');KEe(e);let n,r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let a=-1,s=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else a<0&&(n=!0,a=o+1),s>-1&&(e.codePointAt(o)===t.codePointAt(s--)?s<0&&(i=o):(s=-1,i=a));r===i?i=a:i<0&&(i=e.length);return e.slice(r,i)},dirname:function(e){if(KEe(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){KEe(e);let t,n=e.length,r=-1,i=0,o=-1,a=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?o<0?o=n:1!==a&&(a=1):o>-1&&(a=-1);else if(t){i=n+1;break}}if(o<0||r<0||0===a||1===a&&o===r-1&&o===i+1)return"";return e.slice(o,r)},join:function(){let e,t=-1;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(;++t<r.length;)KEe(r[t]),r[t]&&(e=void 0===e?r[t]:e+"/"+r[t]);return void 0===e?".":function(e){KEe(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,i="",o=0,a=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(a===l-1||1===s);else if(a!==l-1&&2===s){if(i.length<2||2!==o||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2))if(i.length>2){if(r=i.lastIndexOf("/"),r!==i.length-1){r<0?(i="",o=0):(i=i.slice(0,r),o=i.length-1-i.lastIndexOf("/")),a=l,s=0;continue}}else if(i.length>0){i="",o=0,a=l,s=0;continue}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(a+1,l):i=e.slice(a+1,l),o=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(e)},sep:"/"};function KEe(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const XEe={cwd:function(){return"/"}};function ZEe(e){return Boolean(null!==e&&"object"===typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function QEe(e){if("string"===typeof e)e=new URL(e);else if(!ZEe(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const JEe=["history","path","basename","stem","extname","dirname"];class eSe{constructor(e){let t;t=e?ZEe(e)?{path:e}:"string"===typeof e||function(e){return Boolean(e&&"object"===typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":XEe.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<JEe.length;){const e=JEe[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)JEe.includes(n)||(this[n]=t[n])}get basename(){return"string"===typeof this.path?YEe.basename(this.path):void 0}set basename(e){nSe(e,"basename"),tSe(e,"basename"),this.path=YEe.join(this.dirname||"",e)}get dirname(){return"string"===typeof this.path?YEe.dirname(this.path):void 0}set dirname(e){rSe(this.basename,"dirname"),this.path=YEe.join(e||"",this.basename)}get extname(){return"string"===typeof this.path?YEe.extname(this.path):void 0}set extname(e){if(tSe(e,"extname"),rSe(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=YEe.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){ZEe(e)&&(e=QEe(e)),nSe(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"===typeof this.path?YEe.basename(this.path,this.extname):void 0}set stem(e){nSe(e,"stem"),tSe(e,"stem"),this.path=YEe.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new Fwe(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"===typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function tSe(e,t){if(e&&e.includes(YEe.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+YEe.sep+"`")}function nSe(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function rSe(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const iSe=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},oSe={}.hasOwnProperty;class aSe extends iSe{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=qEe()}copy(){const e=new aSe;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(GEe(!0,{},this.namespace)),e}data(e,t){return"string"===typeof e?2===arguments.length?(uSe("data",this.frozen),this.namespace[e]=t,this):oSe.call(this.namespace,e)&&this.namespace[e]||void 0:e?(uSe("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"===typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=hSe(e),n=this.parser||this.Parser;return lSe("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),lSe("process",this.parser||this.Parser),cSe("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){const o=hSe(e),a=n.parse(o);function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}n.run(a,o,(function(e,t,r){if(e||!t||!r)return s(e);const i=t,o=n.stringify(i,r);var a;"string"===typeof(a=o)||function(e){return Boolean(e&&"object"===typeof e&&"byteLength"in e&&"byteOffset"in e)}(a)?r.value=o:r.result=o,s(e,r)}))}}processSync(e){let t,n=!1;return this.freeze(),lSe("processSync",this.parser||this.Parser),cSe("processSync",this.compiler||this.Compiler),this.process(e,(function(e,r){n=!0,VEe(e),t=r})),pSe("processSync","process",n),t}run(e,t,n){dSe(e),this.freeze();const r=this.transformers;return n||"function"!==typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,o){const a=hSe(t);r.run(e,a,(function(t,r,a){const s=r||e;t?o(t):i?i(s):n(void 0,s,a)}))}}runSync(e,t){let n,r=!1;return this.run(e,t,(function(e,t){VEe(e),n=t,r=!0})),pSe("runSync","run",r),n}stringify(e,t){this.freeze();const n=hSe(t),r=this.compiler||this.Compiler;return cSe("stringify",r),dSe(e),r(e,n)}use(e){const t=this.attachers,n=this.namespace;if(uSe("use",this.frozen),null===e||void 0===e);else if("function"===typeof e){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];c(e,i)}else{if("object"!==typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?l(e):s(e)}return this;function a(e){if("function"===typeof e)c(e,[]);else{if("object"!==typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;c(t,n)}else s(e)}}function s(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(e.plugins),e.settings&&(n.settings=GEe(!0,n.settings,e.settings))}function l(e){let t=-1;if(null===e||void 0===e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){a(e[t])}}}function c(e,n){let r=-1,i=-1;for(;++r<t.length;)if(t[r][0]===e){i=r;break}if(-1===i)t.push([e,...n]);else if(n.length>0){let[r,...o]=n;const a=t[i][1];WEe(a)&&WEe(r)&&(r=GEe(!0,a,r)),t[i]=[e,r,...o]}}}}const sSe=(new aSe).freeze();function lSe(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function cSe(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function uSe(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function dSe(e){if(!WEe(e)||"string"!==typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function pSe(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function hSe(e){return function(e){return Boolean(e&&"object"===typeof e&&"message"in e&&"messages"in e)}(e)?e:new eSe(e)}const fSe=[],mSe={allowDangerousHtml:!0},gSe=/^(https?|ircs?|mailto|xmpp)$/i,bSe=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function vSe(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,a=e.disallowedElements,s=e.rehypePlugins||fSe,l=e.remarkPlugins||fSe,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...mSe}:mSe,u=e.skipHtml,d=e.unwrapDisallowed,p=e.urlTransform||ySe,h=sSe().use(_Ee).use(l).use($Ee,c).use(s),f=new eSe;"string"===typeof r&&(f.value=r);for(const b of bSe)Object.hasOwn(e,b.from)&&(b.from,b.to&&b.to,b.id);const m=h.parse(f);let g=h.runSync(m,f);return i&&(g={type:"element",tagName:"div",properties:{className:i},children:"root"===g.type?g.children:[g]}),$ve(g,(function(e,r,i){if("raw"===e.type&&i&&"number"===typeof r)return u?i.children.splice(r,1):i.children[r]={type:"text",value:e.value},r;if("element"===e.type){let t;for(t in rAe)if(Object.hasOwn(rAe,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=rAe[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=p(String(n||""),t,e))}}if("element"===e.type){let o=t?!t.includes(e.tagName):!!a&&a.includes(e.tagName);if(!o&&n&&"number"===typeof r&&(o=!n(e,r,i)),o&&i&&"number"===typeof r)return d&&e.children?i.children.splice(r,1,...e.children):i.children.splice(r,1),r}})),Wwe(g,{Fragment:L.Fragment,components:o,ignoreInvalidStyle:!0,jsx:L.jsx,jsxs:L.jsxs,passKeys:!0,passNode:!0})}function ySe(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return-1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||gSe.test(e.slice(0,t))?e:""}var xSe=c.createContext({});function wSe(e){return(0,ge.Ay)("MuiAccordion",e)}var ASe=(0,me.A)("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]);const ESe=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","slots","slotProps","TransitionComponent","TransitionProps"],SSe=(0,ne.Ay)(fe.A,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ASe.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})((e=>{let{theme:t}=e;const n={duration:t.transitions.duration.shortest};return{position:"relative",transition:t.transitions.create(["margin"],n),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(t.vars||t).palette.divider,transition:t.transitions.create(["opacity","background-color"],n)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${ASe.expanded}`]:{"&::before":{opacity:0}
205,"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${ASe.disabled}`]:{backgroundColor:(t.vars||t).palette.action.disabledBackground}}}),(e=>{let{theme:t}=e;return{variants:[{props:e=>!e.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(t.vars||t).shape.borderRadius,borderBottomRightRadius:(t.vars||t).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:e=>!e.disableGutters,style:{[`&.${ASe.expanded}`]:{margin:"16px 0"}}}]}}));var _Se=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiAccordion"}),{children:r,className:i,defaultExpanded:o=!1,disabled:a=!1,disableGutters:s=!1,expanded:l,onChange:u,square:d=!1,slots:p={},slotProps:h={},TransitionComponent:f,TransitionProps:m}=n,g=(0,P.A)(n,ESe),[b,v]=(0,ii.A)({controlled:l,default:o,name:"Accordion",state:"expanded"}),y=c.useCallback((e=>{v(!b),u&&u(e,!b)}),[b,u,v]),[x,...w]=c.Children.toArray(r),A=c.useMemo((()=>({expanded:b,disabled:a,disableGutters:s,toggle:y})),[b,a,s,y]),E=(0,R.A)({},n,{square:d,disabled:a,disableGutters:s,expanded:b}),S=(e=>{const{classes:t,square:n,expanded:r,disabled:i,disableGutters:o}=e,a={root:["root",!n&&"rounded",r&&"expanded",i&&"disabled",!o&&"gutters"],region:["region"]};return(0,pe.A)(a,wSe,t)})(E),_=(0,R.A)({transition:f},p),k=(0,R.A)({transition:m},h),[T,C]=yn("transition",{elementType:ji,externalForwardedProps:{slots:_,slotProps:k},ownerState:E});return(0,L.jsxs)(SSe,(0,R.A)({className:(0,de.A)(S.root,i),ref:t,ownerState:E,square:d},g,{children:[(0,L.jsx)(xSe.Provider,{value:A,children:x}),(0,L.jsx)(T,(0,R.A)({in:b,timeout:"auto"},C,{children:(0,L.jsx)("div",{"aria-labelledby":x.props.id,id:x.props["aria-controls"],role:"region",className:S.region,children:w})}))]}))}));function kSe(e){return(0,ge.Ay)("MuiAccordionDetails",e)}(0,me.A)("MuiAccordionDetails",["root"]);const TSe=["className"],CSe=(0,ne.Ay)("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{padding:t.spacing(1,2,2)}}));var OSe=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiAccordionDetails"}),{className:r}=n,i=(0,P.A)(n,TSe),o=n,a=(e=>{const{classes:t}=e;return(0,pe.A)({root:["root"]},kSe,t)})(o);return(0,L.jsx)(CSe,(0,R.A)({className:(0,de.A)(a.root,r),ref:t,ownerState:o},i))}));function NSe(e){return(0,ge.Ay)("MuiAccordionSummary",e)}var ISe=(0,me.A)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]);const RSe=["children","className","expandIcon","focusVisibleClassName","onClick"],PSe=(0,ne.Ay)(We.A,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;const n={duration:t.transitions.duration.shortest};return{display:"flex",minHeight:48,padding:t.spacing(0,2),transition:t.transitions.create(["min-height","background-color"],n),[`&.${ISe.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${ISe.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`&:hover:not(.${ISe.disabled})`]:{cursor:"pointer"},variants:[{props:e=>!e.disableGutters,style:{[`&.${ISe.expanded}`]:{minHeight:64}}}]}})),jSe=(0,ne.Ay)("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})((e=>{let{theme:t}=e;return{display:"flex",flexGrow:1,margin:"12px 0",variants:[{props:e=>!e.disableGutters,style:{transition:t.transitions.create(["margin"],{duration:t.transitions.duration.shortest}),[`&.${ISe.expanded}`]:{margin:"20px 0"}}}]}})),MSe=(0,ne.Ay)("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})((e=>{let{theme:t}=e;return{display:"flex",color:(t.vars||t).palette.action.active,transform:"rotate(0deg)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shortest}),[`&.${ISe.expanded}`]:{transform:"rotate(180deg)"}}}));var DSe=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiAccordionSummary"}),{children:r,className:i,expandIcon:o,focusVisibleClassName:a,onClick:s}=n,l=(0,P.A)(n,RSe),{disabled:u=!1,disableGutters:d,expanded:p,toggle:h}=c.useContext(xSe),f=(0,R.A)({},n,{expanded:p,disabled:u,disableGutters:d}),m=(e=>{const{classes:t,expanded:n,disabled:r,disableGutters:i}=e,o={root:["root",n&&"expanded",r&&"disabled",!i&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!i&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]};return(0,pe.A)(o,NSe,t)})(f);return(0,L.jsxs)(PSe,(0,R.A)({focusRipple:!1,disableRipple:!0,disabled:u,component:"div","aria-expanded":p,className:(0,de.A)(m.root,i),focusVisibleClassName:(0,de.A)(m.focusVisible,a),onClick:e=>{h&&h(e),s&&s(e)},ref:t,ownerState:f},l,{children:[(0,L.jsx)(jSe,{className:m.content,ownerState:f,children:r}),o&&(0,L.jsx)(MSe,{className:m.expandIconWrapper,ownerState:f,children:o})]}))})),LSe={'code[class*="language-"]':{color:"#c5c8c6",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Inconsolata, Monaco, Consolas, 'Courier New', C
205ourier, monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#c5c8c6",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Inconsolata, Monaco, Consolas, 'Courier New', Courier, monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"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",background:"#1d1f21"},':not(pre) > code[class*="language-"]':{background:"#1d1f21",padding:".1em",borderRadius:".3em"},comment:{color:"#7C7C7C"},prolog:{color:"#7C7C7C"},doctype:{color:"#7C7C7C"},cdata:{color:"#7C7C7C"},punctuation:{color:"#c5c8c6"},".namespace":{Opacity:".7"},property:{color:"#96CBFE"},keyword:{color:"#96CBFE"},tag:{color:"#96CBFE"},"class-name":{color:"#FFFFB6",textDecoration:"underline"},boolean:{color:"#99CC99"},constant:{color:"#99CC99"},symbol:{color:"#f92672"},deleted:{color:"#f92672"},number:{color:"#FF73FD"},selector:{color:"#A8FF60"},"attr-name":{color:"#A8FF60"},string:{color:"#A8FF60"},char:{color:"#A8FF60"},builtin:{color:"#A8FF60"},inserted:{color:"#A8FF60"},variable:{color:"#C6C5FE"},operator:{color:"#EDEDED"},entity:{color:"#FFFFB6",cursor:"help"},url:{color:"#96CBFE"},".language-css .token.string":{color:"#87C38A"},".style .token.string":{color:"#87C38A"},atrule:{color:"#F9EE98"},"attr-value":{color:"#F9EE98"},function:{color:"#DAD085"},regex:{color:"#E9C062"},important:{color:"#fd971f",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};const FSe=(0,Ns.A)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);var BSe=e=>{let{i:t,statusText:n,setStatusText:r}=e;const[i,o]=(0,c.useState)(""),[a,s]=(0,c.useState)(!1),[l,u]=(0,c.useState)(""),[d,p]=(0,c.useState)("Thinking"),[h,f]=(0,c.useState)(!1),[m,g]=(0,c.useState)(!1),[b,v]=(0,c.useState)(0),[y,x]=(0,c.useState)(0),[w,A]=(0,c.useState)(!1);(0,c.useEffect)((()=>{E()}),[t]),(0,c.useEffect)((()=>{let e;return null!==t&&void 0!==t&&t.isLoading&&(e=setTimeout((()=>{r("Gathering Information")}),9e3)),()=>{clearTimeout(e)}}),[null===t||void 0===t?void 0:t.isLoading]),(0,c.useEffect)((()=>{let e;return w?e=setInterval((()=>{v((e=>e+1))}),1e3):clearInterval(e),()=>clearInterval(e)}),[w]);const E=async()=>{try{var e;if(null!==t&&void 0!==t&&null!==(e=t.answer)&&void 0!==e&&e.split("<think>")[1]){var n,r;null!==t&&void 0!==t&&null!==(n=t.answer)&&void 0!==n&&n.split("<think>")[1].split("</think>")[1]?(f(!1),p("Thoughts"),A(!1),x(b)):(f(!0),p("Thinking"),w||(A(!0),v(0)));const e=null===t||void 0===t||null===(r=t.answer)||void 0===r?void 0:r.split("<think>")[1].split("</think>");o(e[1]),u(e[0])}else u(""),o(null===t||void 0===t?void 0:t.answer),A(!1)}catch(qUe){console.error(qUe)}};(0,c.useEffect)((()=>{let e;return null!==t&&void 0!==t&&t.isLoading&&(e=setTimeout((()=>{r("Generating")}),8500)),()=>clearTimeout(e)}),[null===t||void 0===t?void 0:t.isLoading]);const S={p:e=>{let{children:t}=e;return(0,L.jsx)("p",{className:"text-gray-700 leading-7 mb-3",children:t})},h1:e=>{let{children:t}=e;return(0,L.jsx)("h1",{className:"text-3xl font-bold text-gray-900 mt-5 mb-2",children:t})},h2:e=>{let{children:t}=e;return(0,L.jsx)("h2",{className:"text-2xl font-semibold text-gray-800 mt-3 mb-2",children:t})},h3:e=>{let{children:t}=e;return(0,L.jsx)("h3",{className:"text-xl font-semibold text-gray-800 mt-5 mb-3",children:t})},ul:e=>{let{children:t}=e;return(0,L.jsx)("ul",{className:"list-disc pl-6 mb-3 space-y-2 text-gray-700",children:t})},ol:e=>{let{children:t}=e;return(0,L.jsx)("ol",{className:"list-decimal pl-6 mb-3 space-y-2 text-gray-700",children:t})},li:e=>{let{children:t}=e;return(0,L.jsx)("li",{className:"leading-relaxed",children:t})},strong:e=>{let{children:t}=e;return(0,L.jsx)("strong",{className:"font-semibold text-gray-900",children:t})},em:e=>{let{children:t}=e;return(0,L.jsx)("em",{className:"italic text-gray-800",children:t})},a:e=>{let{href:t,children:n}=e;return(0,L.jsx)("a",{href:t,className:"text-blue-600 hover:text-blue-800 underline decoration-2 underline-offset-2 transition-colors duration-200",children:n})},blockquote:e=>{let{children:t}=e;return(0,L.jsx)("blockquote",{className:"border-l-4 border-gray-300 pl-4 my-3 italic text-gray-700",children:t})},table:e=>{let{children:t}=e;return(0,L.jsx)("div",{className:"overflow-x-auto my-3",children:(0,L.jsx)("table",{className:"min-w-full border-collapse border border-gray-300",children:t})})},thead:e=>{let{children:t}=e;return(0,L.jsx)("thead",{className:"bg-gray-50",children:t})},tbody:e=>{let{children:t}=e;return(0,L.jsx)("tbody",{className:"divide-y divide-gray-300",children:t})},tr:e=>{let{children:t}=e;return(0,L.jsx)("tr",{className:"hover:bg-gray-50 transition-colors duration-200",children:t})},th:e=>{let{children:t}=e;return(0,L.jsx)("th",{className:"px-4 py-3 text-left text-sm font-semibold text-gray-900 bg-gray-50 border border-gray-300",children:t})},td:e=>{let{children:t}=e;return(0,L.jsx)("td",{className:"px-4 py-4 text-sm text-gray-700 border border-gray-300",children:t})},code:e=>{let{children:t,className:n}=e;if(n){const e=(null===n||void 0===n?void 0:n.replace("language-",""))||"text";return(0,L.jsxs)("div",{className:"relative my-6 rounded-lg overflow-hidden bg-[#1D1F21] border border-gray-700",children:[(0,L.jsxs)("div",{className:"flex items-center justify-between px-4 py-2 bg-[#111]",children:[(0,L.jsx)("span",{className:"text-sm text-gray-400",children:e}),(0,L.jsx)("button",{onClick:()=>{navigator.clipboard.writeText(t),s(!0),setTimeout((()=>s(!1)),2e3)},className:"text-sm px-3 py-1 rounded-md bg-[#1D1F21] text-gray-200 hover:bg-gray-600 transition-colors duration-200",children:a?"Copied!":"Copy code"})]}),(0,L.jsx)("pre",{className:"p-4 m-0 overflow-x-auto",children:(0,L.jsx)(PH,{showLineNumbers:!0,language:e,style:LSe,children:t})})]})}return(0,L.jsx)("code",{className:"px-1.5 py-0.5 rounded bg-gray-100 text-gray-800 text-sm font-mono",children:t})},hr:()=>(0,L.jsx)("hr",{className:"my-4 border-t border-gray-300"})};return(0,L.jsx)("div",{className:"max-w-3xl mx-auto px-4",children:null!==t&&void 0!==t&&t.isLoading?(0,L.jsxs)("div",{className:"flex items-center",children:[(0,L.jsx)(Te.A,{variant:"h4",className:"mr-3",children:n}),(0,L.jsxs)("div",{className:"typing-indicator",children:[(0,L.jsx)("div",{className:"typing-circle"}),(0,L.jsx)("div",{className:"typing-circle"}),(0,L.jsx)("div",{className:"typing-circle"}),(0,L.jsx)("div",{className:"typing-shadow"}),(0,L.jsx)("div",{className:"typing-shadow"}),(0,L.jsx)("div",{className:"typing-shadow"})]})]}):(0,L.jsxs)(L.Fragment,{children:[l&&(0,L.jsxs)(_Se,{className:"border border- rounded mb-4 lg:w-[46rem] bg-[#fff] w-full",expanded:m,onChange:(e,t)=>
205g(t),children:[(0,L.jsx)(DSe,{expandIcon:(0,L.jsx)(Xae,{size:20,className:"text-black"}),className:"border-b border border-[#111]",children:(0,L.jsxs)("div",{className:"flex flex-col",children:[(0,L.jsxs)("div",{className:"flex items-center mb-2",children:["Thinking"===d?(0,L.jsx)(bw,{size:20,className:"mr-2 animate-spin transition-all ease-in-out",color:"#000"}):(0,L.jsx)(FSe,{size:20,className:"mr-2",color:"#000"}),(0,L.jsx)(Te.A,{variant:"h5",children:d}),"Thinking"===d&&b>0&&(0,L.jsxs)("span",{className:"ml-2 text-sm font-semibold",children:["(",b,"s)"]}),"Thoughts"===d&&y>0&&(0,L.jsxs)("span",{className:"ml-2 text-sm font-semibold",children:["for ",y,"s"]})]}),!m&&"Thinking"===d&&(0,L.jsx)("div",{className:"text-sm text-gray-600 pr-4",children:(0,L.jsx)(vSe,{rehypePlugins:[aye],remarkPlugins:[Swe],components:{...S,p:e=>{let{children:t}=e;return(0,L.jsx)("p",{className:"text-gray-600 text-sm leading-5 mb-1",children:t})},h1:e=>{let{children:t}=e;return(0,L.jsx)("span",{className:"font-semibold text-sm",children:t})},h2:e=>{let{children:t}=e;return(0,L.jsx)("span",{className:"font-semibold text-sm",children:t})},h3:e=>{let{children:t}=e;return(0,L.jsx)("span",{className:"font-semibold text-sm",children:t})},ul:e=>{let{children:t}=e;return(0,L.jsx)("span",{className:"text-sm",children:t})},ol:e=>{let{children:t}=e;return(0,L.jsx)("span",{className:"text-sm",children:t})},li:e=>{let{children:t}=e;return(0,L.jsx)("span",{className:"text-sm",children:t})},code:e=>{let{children:t}=e;return(0,L.jsx)("code",{className:"px-1 py-0.5 rounded bg-gray-100 text-xs",children:t})}},className:"prose prose-sm max-w-full",children:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40;if(!e)return"";const n=e.trim().split(/\s+/);return n.length<=t?e:"..."+n.slice(-t).join(" ")}(l)})})]})}),(0,L.jsx)(OSe,{children:(0,L.jsx)("div",{className:"px-4 border-l-4 rounded",children:(0,L.jsx)(vSe,{rehypePlugins:[aye],remarkPlugins:[Swe],components:S,className:"prose prose-gray max-w-full",children:l})})})]}),(0,L.jsx)("div",{style:{overflowY:"auto"},children:(0,L.jsx)(vSe,{rehypePlugins:[aye],remarkPlugins:[Swe],components:S,className:"prose prose-gray max-w-full",children:i})})]})})},USe=(0,Ve.A)((0,L.jsx)("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92"}),"Share"),zSe=__webpack_require__(18703),HSe=__webpack_require__(75587);function $Se(e){return"undefined"!==typeof e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function VSe(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const GSe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:i="any",stringify:o,trim:a=!1}=e;return(e,s)=>{let{inputValue:l,getOptionLabel:c}=s,u=a?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=$Se(u));const d=u?e.filter((e=>{let r=(o||c)(e);return n&&(r=r.toLowerCase()),t&&(r=$Se(r)),"start"===i?0===r.indexOf(u):r.indexOf(u)>-1})):e;return"number"===typeof r?d.slice(0,r):d}}(),WSe=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))},qSe=[];var YSe=function(e){const{unstable_isActiveElementInListbox:t=WSe,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:o=!1,blurOnSelect:a=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:u="useAutocomplete",defaultValue:d=(e.multiple?qSe:null),disableClearable:p=!1,disableCloseOnSelect:h=!1,disabled:f,disabledItemsFocusable:m=!1,disableListWrap:g=!1,filterOptions:b=GSe,filterSelectedOptions:v=!1,freeSolo:y=!1,getOptionDisabled:x,getOptionKey:w,getOptionLabel:A=e=>{var t;return null!=(t=e.label)?t:e},groupBy:E,handleHomeEndKeys:S=!e.freeSolo,id:_,includeInputInList:k=!1,inputValue:T,isOptionEqualToValue:C=(e,t)=>e===t,multiple:O=!1,onChange:N,onClose:I,onHighlightChange:P,onInputChange:j,onOpen:M,open:D,openOnFocus:L=!1,options:F,readOnly:B=!1,selectOnFocus:U=!e.freeSolo,value:z}=e,H=(0,oce.A)(_);let $=A;$=e=>{const t=A(e);return"string"!==typeof t?String(t):t};const V=c.useRef(!1),G=c.useRef(!0),W=c.useRef(null),q=c.useRef(null),[Y,K]=c.useState(null),[X,Z]=c.useState(-1),Q=i?0:-1,J=c.useRef(Q),[ee,te]=(0,Ql.A)({controlled:z,default:d,name:u}),[ne,re]=(0,Ql.A)({controlled:T,default:"",name:u,state:"inputValue"}),[ie,oe]=c.useState(!1),ae=c.useCallback(((e,t)=>{if(!(O?ee.length<t.length:null!==t)&&!s)return;let n;if(O)n="";else if(null==t)n="";else{const e=$(t);n="string"===typeof e?e:""}ne!==n&&(re(n),j&&j(e,n,"reset"))}),[$,ne,O,j,re,s,ee]),[se,le]=(0,Ql.A)({controlled:D,default:!1,name:u,state:"open"}),[ce,ue]=c.useState(!0),de=!O&&null!=ee&&ne===$(ee),pe=se&&!B,he=pe?b(F.filter((e=>!v||!(O?ee:[ee]).some((t=>null!==t&&C(e,t))))),{inputValue:de&&ce?"":ne,getOptionLabel:$}):[],fe=ya({filteredOptions:he,value:ee,inputValue:ne});c.useEffect((()=>{const e=ee!==fe.value;ie&&!e||y&&!e||ae(null,ee)}),[ee,ae,ie,fe.value,y]);const me=se&&he.length>0&&!B,ge=(0,lo.A)((e=>{-1===e?W.current.focus():Y.querySelector(`[data-tag-index="${e}"]`).focus()}));c.useEffect((()=>{O&&X>ee.length-1&&(Z(-1),ge(-1))}),[ee,O,X,ge]);const be=(0,lo.A)((e=>{let{event:t,index:r,reason:i="auto"}=e;if(J.current=r,-1===r?W.current.removeAttribute("aria-activedescendant"):W.current.setAttribute("aria-activedescendant",`${H}-option-${r}`),P&&P(t,-1===r?null:he[r],i),!q.current)return;const o=q.current.querySelector(`[role="option"].${n}-focused`);o&&(o.classList.remove(`${n}-focused`),o.classList.remove(`${n}-focusVisible`));let a=q.current;if("listbox"!==q.current.getAttribute("role")&&(a=q.current.parentElement.querySelector('[role="listbox"]')),!a)return;if(-1===r)return void(a.scrollTop=0);const s=q.current.querySelector(`[data-option-index="${r}"]`);if(s&&(s.classList.add(`${n}-focused`),"keyboard"===i&&s.classList.add(`${n}-focusVisible`),a.scrollHeight>a.clientHeight&&"mouse"!==i&&"touch"!==i)){const e=s,t=a.clientHeight+a.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?a.scrollTop=n-a.clientHeight:e.offsetTop-e.offsetHeight*(E?1.3:0)<a.scrollTop&&(a.scrollTop=e.offsetTop-e.offsetHeight*(E?1.3:0))}})),ve=(0,lo.A)((e=>{let{event:t,diff:n,direction:i="next",reason:o="auto"}=e;if(!pe)return;const a=function(e,t){if(!q.current||e<0||e>=he.length)return-1;let n=e;for(;;){const r=q.current.querySelector(`[data-option-index="${n}"]`),i=!m&&(!r||r.disabled||"true"===r.getAttribute("aria-disabled"));if(r&&r.hasAttribute("tabindex")&&!i)return n;if(n="next"===t?(n+1)%he.length:(n-1+he.length)%he.length,n===e)return-1}}((()=>{const e=he.length-1;if("reset"===n)return Q;if("start"===n)return 0;if("end"===n)return e;const t=J.current+n;return t<0?-1===t&&k?-1:g&&-1!==J.current||Math.abs(n)>1?0:e:t>e?t===e+1&&k?-1:g||Math.abs(n)>1?e:0:t})(),i);if(be({index:a,reason:o,event:t}),r&&"reset"!==n)if(-1===a)W.current.value=ne;else{const e=$(he[a]);W.current.value=e;0===e.toLowerCase().indexOf(ne.toLowerCase())&&ne.length>0&&W.current.setSelectionRange(ne.length,e.length)}})),ye=c.useCallback((()=>
vendor: 6,631 bytes, line 205
205{if(!pe)return;const e=(()=>{if(-1!==J.current&&fe.filteredOptions&&fe.filteredOptions.length!==he.length&&fe.inputValue===ne&&(O?ee.length===fe.value.length&&fe.value.every(((e,t)=>$(ee[t])===$(e))):(e=fe.value,t=ee,(e?$(e):"")===(t?$(t):"")))){const e=fe.filteredOptions[J.current];if(e)return VSe(he,(t=>$(t)===$(e)))}var e,t;return-1})();if(-1!==e)return void(J.current=e);const t=O?ee[0]:ee;if(0!==he.length&&null!=t){if(q.current)if(null==t)J.current>=he.length-1?be({index:he.length-1}):be({index:J.current});else{const e=he[J.current];if(O&&e&&-1!==VSe(ee,(t=>C(e,t))))return;const n=VSe(he,(e=>C(e,t)));-1===n?ve({diff:"reset"}):be({index:n})}}else ve({diff:"reset"})}),[he.length,!O&&ee,v,ve,be,pe,ne,O]),xe=(0,lo.A)((e=>{(0,HSe.A)(q,e),e&&ye()}));c.useEffect((()=>{ye()}),[ye]);const we=e=>{se||(le(!0),ue(!0),M&&M(e))},Ae=(e,t)=>{se&&(le(!1),I&&I(e,t))},Ee=(e,t,n,r)=>{if(O){if(ee.length===t.length&&ee.every(((e,n)=>e===t[n])))return}else if(ee===t)return;N&&N(e,t,n,r),te(t)},Se=c.useRef(!1),_e=function(e,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"selectOption",i=t;if(O){i=Array.isArray(ee)?ee.slice():[];const e=VSe(i,(e=>C(t,e)));-1===e?i.push(t):"freeSolo"!==n&&(i.splice(e,1),r="removeOption")}ae(e,i),Ee(e,i,r,{option:t}),h||e&&(e.ctrlKey||e.metaKey)||Ae(e,r),(!0===a||"touch"===a&&Se.current||"mouse"===a&&!Se.current)&&W.current.blur()},ke=(e,t)=>{if(!O)return;""===ne&&Ae(e,"toggleInput");let n=X;-1===X?""===ne&&"previous"===t&&(n=ee.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===ee.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===ee.length||"previous"===t&&-1===n)return-1;const e=Y.querySelector(`[data-tag-index="${n}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),Z(n),ge(n)},Te=e=>{V.current=!0,re(""),j&&j(e,"","clear"),Ee(e,O?[]:null,"clear")},Ce=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==X&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(Z(-1),ge(-1)),229!==t.which))switch(t.key){case"Home":pe&&S&&(t.preventDefault(),ve({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":pe&&S&&(t.preventDefault(),ve({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ve({diff:-5,direction:"previous",reason:"keyboard",event:t}),we(t);break;case"PageDown":t.preventDefault(),ve({diff:5,direction:"next",reason:"keyboard",event:t}),we(t);break;case"ArrowDown":t.preventDefault(),ve({diff:1,direction:"next",reason:"keyboard",event:t}),we(t);break;case"ArrowUp":t.preventDefault(),ve({diff:-1,direction:"previous",reason:"keyboard",event:t}),we(t);break;case"ArrowLeft":ke(t,"previous");break;case"ArrowRight":ke(t,"next");break;case"Enter":if(-1!==J.current&&pe){const e=he[J.current],n=!!x&&x(e);if(t.preventDefault(),n)return;_e(t,e,"selectOption"),r&&W.current.setSelectionRange(W.current.value.length,W.current.value.length)}else y&&""!==ne&&!1===de&&(O&&t.preventDefault(),_e(t,ne,"createOption","freeSolo"));break;case"Escape":pe?(t.preventDefault(),t.stopPropagation(),Ae(t,"escape")):l&&(""!==ne||O&&ee.length>0)&&(t.preventDefault(),t.stopPropagation(),Te(t));break;case"Backspace":if(O&&!B&&""===ne&&ee.length>0){const e=-1===X?ee.length-1:X,n=ee.slice();n.splice(e,1),Ee(t,n,"removeOption",{option:ee[e]})}break;case"Delete":if(O&&!B&&""===ne&&ee.length>0&&-1!==X){const e=X,n=ee.slice();n.splice(e,1),Ee(t,n,"removeOption",{option:ee[e]})}}},Oe=e=>{oe(!0),L&&!V.current&&we(e)},Ne=e=>{t(q)?W.current.focus():(oe(!1),G.current=!0,V.current=!1,o&&-1!==J.current&&pe?_e(e,he[J.current],"blur"):o&&y&&""!==ne?_e(e,ne,"blur","freeSolo"):s&&ae(e,ee),Ae(e,"blur"))},Ie=e=>{const t=e.target.value;ne!==t&&(re(t),ue(!1),j&&j(e,t,"input")),""===t?p||O||Ee(e,null,"clear"):we(e)},Re=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));J.current!==t&&be({event:e,index:t,reason:"mouse"})},Pe=e=>{be({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Se.current=!0},je=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));_e(e,he[t],"selectOption"),Se.current=!1},Me=e=>t=>{const n=ee.slice();n.splice(e,1),Ee(t,n,"removeOption",{option:ee[e]})},De=e=>{se?Ae(e,"toggleInput"):we(e)},Le=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==H&&e.preventDefault()},Fe=e=>{e.currentTarget.contains(e.target)&&(W.current.focus(),U&&G.current&&W.current.selectionEnd-W.current.selectionStart===0&&W.current.select(),G.current=!1)},Be=e=>{f||""!==ne&&se||De(e)};let Ue=y&&ne.length>0;Ue=Ue||(O?ee.length>0:null!==ee);let ze=he;if(E){new Map;ze=he.reduce(((e,t,n)=>{const r=E(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])}return f&&ie&&Ne(),{getRootProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,R.A)({"aria-owns":me?`${H}-listbox`:null},e,{onKeyDown:Ce(e),onMouseDown:Le,onClick:Fe})},getInputLabelProps:()=>({id:`${H}-label`,htmlFor:H}),getInputProps:()=>({id:H,value:ne,onBlur:Ne,onFocus:Oe,onChange:Ie,onMouseDown:Be,"aria-activedescendant":pe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":me?`${H}-listbox`:void 0,"aria-expanded":me,autoComplete:"off",ref:W,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:f}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Te}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:De}),getTagProps:e=>{let{index:t}=e;return(0,R.A)({key:t,"data-tag-index":t,tabIndex:-1},!B&&{onDelete:Me(t)})},getListboxProps:()=>({role:"listbox",id:`${H}-listbox`,"aria-labelledby":`${H}-label`,ref:xe,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:e=>{let{index:t,option:n}=e;var r;const i=(O?ee:[ee]).some((e=>null!=e&&C(n,e))),o=!!x&&x(n);return{key:null!=(r=null==w?void 0:w(n))?r:$(n),tabIndex:-1,role:"option",id:`${H}-option-${t}`,onMouseMove:Re,onClick:je,onTouchStart:Pe,"data-option-index":t,"aria-disabled":o,"aria-selected":i}},id:H,inputValue:ne,value:ee,dirty:Ue,expanded:pe&&Y,popupOpen:pe,focused:ie||-1!==X,anchorEl:Y,setAnchorEl:K,focusedTag:X,groupedOptions:ze}};function KSe(e){return(0,ge.Ay)("MuiListSubheader",e)}(0,me.A)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const XSe=["className","color","component","disableGutters","disableSticky","inset"],ZSe=(0,ne.Ay)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;
205return[t.root,"default"!==n.color&&t[`color${(0,he.A)(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((e=>{let{theme:t,ownerState:n}=e;return(0,R.A)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14)},"primary"===n.color&&{color:(t.vars||t).palette.primary.main},"inherit"===n.color&&{color:"inherit"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.inset&&{paddingLeft:72},!n.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper})})),QSe=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiListSubheader"}),{className:r,color:i="default",component:o="li",disableGutters:a=!1,disableSticky:s=!1,inset:l=!1}=n,c=(0,P.A)(n,XSe),u=(0,R.A)({},n,{color:i,component:o,disableGutters:a,disableSticky:s,inset:l}),d=(e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:o}=e,a={root:["root","default"!==n&&`color${(0,he.A)(n)}`,!r&&"gutters",i&&"inset",!o&&"sticky"]};return(0,pe.A)(a,KSe,t)})(u);return(0,L.jsx)(ZSe,(0,R.A)({as:o,className:(0,de.A)(d.root,r),ref:t,ownerState:u},c))}));QSe.muiSkipListHighlight=!0;var JSe=QSe,e_e=__webpack_require__(10465),t_e=__webpack_require__(63589),n_e=__webpack_require__(79229),r_e=__webpack_require__(22797),i_e=__webpack_require__(63976);function o_e(e){return(0,ge.Ay)("MuiAutocomplete",e)}var a_e,s_e,l_e=(0,me.A)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","
205input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);const c_e=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],u_e=["ref"],d_e=["key"],p_e=["key"],h_e=(0,ne.Ay)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:o,inputFocused:a,size:s}=n;return[{[`& .${l_e.tag}`]:t.tag},{[`& .${l_e.tag}`]:t[`tagSize${(0,he.A)(s)}`]},{[`& .${l_e.inputRoot}`]:t.inputRoot},{[`& .${l_e.input}`]:t.input},{[`& .${l_e.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,o&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${l_e.focused} .${l_e.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${l_e.clearIndicator}`]:{visibility:"visible"}},[`& .${l_e.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${l_e.inputRoot}`]:{[`.${l_e.hasPopupIcon}&, .${l_e.hasClearIcon}&`]:{paddingRight:30},[`.${l_e.hasPopupIcon}.${l_e.hasClearIcon}&`]:{paddingRight:56},[`& .${l_e.input}`]:{width:0,minWidth:30}},[`& .${e_e.A.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${e_e.A.root}.${t_e.A.sizeSmall}`]:{[`& .${e_e.A.input}`]:{padding:"2px 4px 3px 0"}},[`& .${n_e.A.root}`]:{padding:9,[`.${l_e.hasPopupIcon}&, .${l_e.hasClearIcon}&`]:{paddingRight:39},[`.${l_e.hasPopupIcon}.${l_e.hasClearIcon}&`]:{paddingRight:65},[`& .${l_e.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${l_e.endAdornment}`]:{right:9}},[`& .${n_e.A.root}.${t_e.A.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${l_e.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${r_e.A.root}`]:{paddingTop:19,paddingLeft:8,[`.${l_e.hasPopupIcon}&, .${l_e.hasClearIcon}&`]:{paddingRight:39},[`.${l_e.hasPopupIcon}.${l_e.hasClearIcon}&`]:{paddingRight:65},[`& .${r_e.A.input}`]:{padding:"7px 4px"},[`& .${l_e.endAdornment}`]:{right:9}},[`& .${r_e.A.root}.${t_e.A.sizeSmall}`]:{paddingBottom:1,[`& .${r_e.A.input}`]:{padding:"2.5px 4px"}},[`& .${t_e.A.hiddenLabel}`]:{paddingTop:8},[`& .${r_e.A.root}.${t_e.A.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${l_e.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${r_e.A.root}.${t_e.A.hiddenLabel}.${t_e.A.sizeSmall}`]:{[`& .${l_e.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${l_e.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0}
205,variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${l_e.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${l_e.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${l_e.inputRoot}`]:{flexWrap:"wrap"}}}]}),f_e=(0,ne.Ay)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),m_e=(0,ne.Ay)(Pa.A,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),g_e=(0,ne.Ay)(Pa.A,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{let{ownerState:n}=e;return(0,R.A)({},t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen)}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),b_e=(0,ne.Ay)(Jr,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${l_e.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})((e=>{let{theme:t}=e;return{zIndex:(t.vars||t).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}})),v_e=(0,ne.Ay)(fe.A,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((e=>{let{theme:t}=e;return(0,R.A)({},t.typography.body1,{overflow:"auto"})})),y_e=(0,ne.Ay)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),x_e=(0,ne.Ay)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),w_e=(0,ne.Ay)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((e=>{let{theme:t}=e;return{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${l_e.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[t.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${l_e.focused}`]:{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${l_e.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,$e.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${l_e.focused}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:(0,$e.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},[`&.${l_e.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:(0,$e.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}}}}})),A_e=(0,ne.Ay)(JSe,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((e=>{let{theme:t}=e;return{backgroundColor:(t.vars||t).palette.background.paper,top:-8}})),E_e=(0,ne.Ay)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${l_e.option}`]:{paddingLeft:24}});var S_e=c.forwardRef((function(e,t){var n,r,i,o;const a=(0,X.b)({props:e,name:"MuiAutocomplete"}),{autoComplete:s=!1,autoHighlight:l=!1,autoSelect:u=!1,blurOnSelect:d=!1,ChipProps:p,className:h,clearIcon:f=a_e||(a_e=(0,L.jsx)(Kce,{fontSize:"small"})),clearOnBlur:m=!a.freeSolo,clearOnEscape:g=!1,clearText:b="Clear",closeText:v="Close",componentsProps:y={},defaultValue:x=(a.multiple?[]:null),disableClearable:w=!1,disableCloseOnSelect:A=!1,disabled:E=!1,disabledItemsFocusable:S=!1,disableListWrap:_=!1,disablePortal:k=!1,filterSelectedOptions:T=!1,forcePopupIcon:C="auto",freeSolo:O=!1,fullWidth:N=!1,getLimitTagsText:I=e=>`+${e}`,getOptionLabel:j,groupBy:M,handleHomeEndKeys:D=!a.freeSolo,includeInputInList:F=!1,limitTags:B=-1,ListboxComponent:U="ul",ListboxProps:z,loading:H=!1,loadingText:$="Loading\u2026",multiple:V=!1,noOptionsText:G="No options",openOnFocus:W=!1,openText:q="Open",Pa
205perComponent:Y=fe.A,PopperComponent:K=Jr,popupIcon:Z=s_e||(s_e=(0,L.jsx)(i_e.A,{})),readOnly:Q=!1,renderGroup:J,renderInput:ee,renderOption:te,renderTags:ne,selectOnFocus:re=!a.freeSolo,size:ie="medium",slotProps:oe={}}=a,ae=(0,P.A)(a,c_e),{getRootProps:se,getInputProps:le,getInputLabelProps:ce,getPopupIndicatorProps:ue,getClearProps:me,getTagProps:ge,getListboxProps:be,getOptionProps:ve,value:ye,dirty:xe,expanded:we,id:Ae,popupOpen:Ee,focused:Se,focusedTag:_e,anchorEl:ke,setAnchorEl:Te,inputValue:Ce,groupedOptions:Oe}=YSe((0,R.A)({},a,{componentName:"Autocomplete"})),Ne=!w&&!E&&xe&&!Q,Ie=(!O||!0===C)&&!1!==C,{onMouseDown:Re}=le(),{ref:Pe}=null!=z?z:{},je=be(),{ref:Me}=je,De=(0,P.A)(je,u_e),Le=(0,ti.A)(Me,Pe),Fe=j||(e=>{var t;return null!=(t=e.label)?t:e}),Be=(0,R.A)({},a,{disablePortal:k,expanded:we,focused:Se,fullWidth:N,getOptionLabel:Fe,hasClearIcon:Ne,hasPopupIcon:Ie,inputFocused:-1===_e,popupOpen:Ee,size:ie}),Ue=(e=>{const{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:o,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:c,size:u}=e,d={root:["root",r&&"expanded",i&&"focused",o&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${(0,he.A)(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,pe.A)(d,o_e,t)})(Be);let ze;if(V&&ye.length>0){const e=e=>(0,R.A)({className:Ue.tag,disabled:E},ge(e));ze=ne?ne(ye,e,Be):ye.map(((t,n)=>{const r=e({index:n}),{key:i}=r,o=(0,P.A)(r,d_e);return(0,L.jsx)(so,(0,R.A)({label:Fe(t),size:ie},o,p),i)}))}if(B>-1&&Array.isArray(ze)){const e=ze.length-B;!Se&&e>0&&(ze=ze.splice(0,B),ze.push((0,L.jsx)("span",{className:Ue.tag,children:I(e)},ze.length)))}const He=J||(e=>(0,L.jsxs)("li",{children:[(0,L.jsx)(A_e,{className:Ue.groupLabel,ownerState:Be,component:"div",children:e.group}),(0,L.jsx)(E_e,{className:Ue.groupUl,ownerState:Be,children:e.children})]},e.key)),$e=te||((e,t)=>{const{key:n}=e,r=(0,P.A)(e,p_e);return(0,L.jsx)("li",(0,R.A)({},r,{children:Fe(t)}),n)}),Ve=(e,t)=>{const n=ve({option:e,index:t});return $e((0,R.A)({},n,{className:Ue.option}),e,{selected:n["aria-selected"],index:t,inputValue:Ce},Be)},Ge=null!=(n=oe.clearIndicator)?n:y.clearIndicator,We=null!=(r=oe.paper)?r:y.paper,qe=null!=(i=oe.popper)?i:y.popper,Ye=null!=(o=oe.popupIndicator)?o:y.popupIndicator;return(0,L.jsxs)(c.Fragment,{children:[(0,L.jsx)(h_e,(0,R.A)({ref:t,className:(0,de.A)(Ue.root,h),ownerState:Be},se(ae),{children:ee({id:Ae,disabled:E,fullWidth:!0,size:"small"===ie?"small":void 0,InputLabelProps:ce(),InputProps:(0,R.A)({ref:Te,className:Ue.inputRoot,startAdornment:ze,onClick:e=>{e.target===e.currentTarget&&Re(e)}},(Ne||Ie)&&{endAdornment:(0,L.jsxs)(f_e,{className:Ue.endAdornment,ownerState:Be,children:[Ne?(0,L.jsx)(m_e,(0,R.A)({},me(),{"aria-label":b,title:b,ownerState:Be},Ge,{className:(0,de.A)(Ue.clearIndicator,null==Ge?void 0:Ge.className),children:f})):null,Ie?(0,L.jsx)(g_e,(0,R.A)({},ue(),{disabled:E,"aria-label":Ee?v:q,title:Ee?v:q,ownerState:Be},Ye,{className:(0,de.A)(Ue.popupIndicator,null==Ye?void 0:Ye.className),children:Z})):null]})}),inputProps:(0,R.A)({className:Ue.input,disabled:E,readOnly:Q},le())})})),ke?(0,L.jsx)(b_e,(0,R.A)({as:K,disablePortal:k,style:{width:ke?ke.clientWidth:null},ownerState:Be,role:"presentation",anchorEl:ke,open:Ee},qe,{className:(0,de.A)(Ue.popper,null==qe?void 0:qe.className),children:(0,L.jsxs)(v_e,(0,R.A)({ownerState:Be,as:Y},We,{className:(0,de.A)(Ue.paper,null==We?void 0:We.className),children:[H&&0===Oe.length?(0,L.jsx)(y_e,{className:Ue.loading,ownerState:Be,children:$}):null,0!==Oe.length||O||H?null:(0,L.jsx)(x_e,{className:Ue.noOptions,ownerState:Be,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:G}),Oe.length>0?(0,L.jsx)(w_e,(0,R.A)({as:U,className:Ue.listbox,ownerState:Be},De,z,{ref:Le,children:Oe.map(((e,t)=>M?He({key:e.key,group:e.group,children:e.options.map(((t,n)=>Ve(t,e.index+n)))}):Ve(e,t)))})):null]}))})):null]})}));var __e=e=>{let{kbhub:t,kbs:n,api:r,bot:i,handleSelectChange:o,nav:a,id:s}=e;const l=(0,re.A)(),u=ce(l.breakpoints.down("sm")),d=ce(l.breakpoints.down("md")),[p,h]=(0,c.useState)([]);(0,c.useEffect)((()=>
205{if(i&&i.length>0){const e=t?n.filter((e=>i.includes(e.kb_id))).map((e=>({type:"kb",id:e.kb_id,label:e.kb_name}))):r.filter((e=>i.includes(e.api_key))).map((e=>({type:"api",id:e.api_key,label:e.bot_name})));h(e)}}),[i,n,r,t]);const f=[{type:"title",label:"Knowledge Hubs",disabled:!0},...n.map((e=>({type:"kb",id:e.kb_id,label:e.kb_name}))),...t?[{type:"kb",label:"My Private Files",id:"private"}]:[],{type:"title",label:"AI Assistants",disabled:!0},...r.map((e=>({type:"api",id:e.api_key,label:e.bot_name})))].filter(Boolean);(0,c.useEffect)((()=>{h([])}),[s]);return(0,L.jsx)("div",{style:{flex:1},className:`relative w-full ${u?"mx-2":d?"ml-2":"md:ml-4"} mr-4`,children:(0,L.jsx)(po.A,{spacing:1,children:(0,L.jsx)(S_e,{multiple:!0,value:p,options:f,getOptionLabel:e=>e.label||"",onChange:(e,t)=>{const n=t[t.length-1];n?(h([n]),"kb"===n.type?o({target:{value:n.id}}):"api"===n.type&&a(`/api?k=${n.id}`)):h([])},color:"secondary",isOptionEqualToValue:(e,t)=>e.id===t.id&&e.type===t.type,renderInput:e=>(0,L.jsx)(Xa.A,{...e,variant:"outlined",fullWidth:!0,color:"secondary",placeholder:0===p.length?u?"Select":"Select Knowledge Hubs/AI Assistant":"",className:"bg-white",sx:{"& .MuiInputBase-root":{minHeight:u?"45px":"56px"},"& .MuiInputBase-input":{fontSize:u?"0.875rem":"1rem"},"& .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"#5e35b1"}}}),renderOption:(e,t,n)=>{let{selected:r}=n;return t.disabled?(0,L.jsx)("li",{...e,style:{pointerEvents:"none",width:"100%",padding:"12px 16px",backgroundColor:"#f5f5f5",borderBottom:"1px solid #e0e0e0",marginTop:"Select Assistants"===t.label?"8px":"0"},children:(0,L.jsx)(Te.A,{variant:u?"body1":"subtitle1",sx:{fontWeight:"bold",color:"#444"},children:t.label})}):(0,L.jsx)("li",{...e,style:{width:u?"50%":"33.33%",float:"left",boxSizing:"border-box",padding:"8px 16px",borderBottom:"1px solid #5e35b1",backgroundColor:r?"#5e35b1":"transparent",color:r?"white":"inherit"},children:(0,L.jsx)(Te.A,{variant:u?"body2":"body1",sx:{color:r?"white":"inherit"},children:t.label})})},renderTags:(e,t)=>e.map(((e,n)=>(0,c.createElement)(so,{...t({index:n}),key:`${e.type}-${e.id}`,label:e.label,size:u?"small":"medium",onDelete:()=>{h([])},sx:{backgroundColor:"#5e35b1",color:"white","&:hover":{backgroundColor:"#4527a0"},"& .MuiChip-deleteIcon":{color:"rgba(255, 255, 255, 0.7)","&:hover":{color:"white"}},fontSize:u?"0.75rem":"0.875rem"}}))),ListboxProps:{style:{border:"1px solid #ccc",borderRadius:"4px",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",display:"flex",flexWrap:"wrap",maxHeight:"350px"}},PaperProps:{sx:{border:"1px solid #ccc",borderRadius:"4px",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)","& .MuiAutocomplete-listbox":{display:"flex",flexWrap:"wrap",overflow:"auto",padding:"0","&:after":{content:'""',flex:"auto"}},"& .MuiAutocomplete-groupLabel":{width:"100%"},"& .MuiAutocomplete-option.Mui-focused":{backgroundColor:"rgba(94, 53, 177, 0.2)",color:"#5e35b1"},'& .MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:"#5e35b1",color:"white"},'& .MuiAutocomplete-option[aria-selected="true"].Mui-focused':{backgroundColor:"#5e35b1",opacity:.85}}}})})})};var k_e=e=>{let{sp:t,multi:n=!0,api:r,kbhub:i=!0,handleLeftDrawerToggle:o,showHome:a,toogleData:s,navi:l,bot:u,handleSelectChange:d,kbs:p,chatId:h,shareChat:f,show:m=!0}=e;const g=(0,te.Zp)(),b=(0,re.A)(),[v,y]=(0,c.useState)(!1),[x,w]=(0,c.useState)([]),{getCachedUserInfo:A,getCachedOrgName:E,getAskllyAdmin:S}=ma();return(0,c.useEffect)((()=>((async()=>{try{const e=localStorage.getItem("uid"),t=await A(e),n={email:t.email,organization:await E()},r=await S(n);y(r);const i=new FormData;i.append("email",t.email);let o=(await(0,xi.B)(i)).role.role.split(",");w(o)}catch(qUe){console.log(qUe)}})().then(),()=>{y(!1)})),[]),(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(ue.A,{sx:{width:320,display:"flex",[b.breakpoints.down("md")]:{width:"auto"}},children:[(0,L.jsx)(We.A,{sx:{borderRadius:"12px",overflow:"hidden",mr:1},children:(0,L.jsx)(_n,{variant:"rounded",sx:{...b.typography.commonAvatar,...b.typography.mediumAvatar,transition:"all .2s ease-in-out",background:b.palette.secondary.light,color:b.palette.secondary.dark,"&:hover":{background:b.palette.secondary.dark,color:b.palette.secondary.light}},onClick:s,color:"inherit",children:(0,L.jsx)(Bt,{stroke:1.5,size:"1.3rem"})})}
205),(0,L.jsx)(ue.A,{component:"span",sx:{display:{xs:"none",md:"block"},flexGrow:1},children:(0,L.jsx)(wi,{})}),(0,L.jsx)(We.A,{sx:{ml:1,borderRadius:"12px",overflow:"hidden"},children:(0,L.jsx)(_n,{variant:"rounded",sx:{...b.typography.commonAvatar,...b.typography.mediumAvatar,transition:"all .2s ease-in-out",background:b.palette.secondary.light,color:b.palette.secondary.dark,"&:hover":{background:b.palette.secondary.dark,color:b.palette.secondary.light}},onClick:s,color:"inherit",children:(0,L.jsx)(mi,{placement:"bottom",title:"New Chat",arrow:!0,children:(0,L.jsx)(Pa.A,{onClick:l,children:(0,L.jsx)(zSe.A,{fontSize:"medium",className:"text-[#5E35B1]"})})})})})]}),(0,L.jsx)(ue.A,{sx:{flex:1}}),(0,L.jsx)(ue.A,{sx:{display:"flex",justifyContent:"center",width:"65%"},children:m&&(0,L.jsx)(__e,{id:t,kbhub:i,kbs:p,api:r,bot:u,handleSelectChange:d,nav:g})}),(0,L.jsx)(ue.A,{sx:{flex:1}}),(0,L.jsx)(ue.A,{sx:{ml:.5,mr:.5,[b.breakpoints.down("md")]:{mr:2}},children:(0,L.jsx)(We.A,{sx:{borderRadius:"12px",overflow:"hidden"},children:(0,L.jsx)(_n,{variant:"rounded",sx:{...b.typography.commonAvatar,...b.typography.mediumAvatar,transition:"all .2s ease-in-out",background:b.palette.secondary.light,color:b.palette.secondary.dark,"&:hover":{background:b.palette.secondary.dark,color:b.palette.secondary.light}},onClick:o||(()=>g("/marketplace")),color:"inherit",children:a?(0,L.jsx)(an.A,{stroke:1.5,size:"1.3rem"}):(0,L.jsx)(Bt,{stroke:1.5,size:"1.3rem"})})})}),(0,L.jsx)(ue.A,{className:"hidden md:block",children:h&&(0,L.jsx)(mi,{placement:"bottom",title:"Share Chat",children:(0,L.jsx)(Pa.A,{onClick:()=>f(h),children:(0,L.jsx)(USe,{fontSize:"medium",className:"text-[#5E35B1]"})})})}),(x.includes("Admin")||x.includes("Create Knowledge Base"))&&(0,L.jsx)(ue.A,{className:"hidden md:block",sx:{ml:1,mr:1,[b.breakpoints.down("md")]:{mr:2}},children:(0,L.jsx)(We.A,{sx:{borderRadius:"12px"},onClick:()=>g("/kb"),children:(0,L.jsx)(_n,{variant:"rounded",sx:{...b.typography.commonAvatar,...b.typography.mediumAvatar,transition:"all .2s ease-in-out",background:b.palette.secondary.light,color:b.palette.secondary.dark,"&:hover":{background:b.palette.secondary.dark,color:b.palette.secondary.light}},color:"inherit",children:(0,L.jsx)(mi,{placement:"bottom",title:"Knowledge Hub",arrow:!0,children:(0,L.jsx)(Ya.A,{stroke:1.5,size:"1.3rem"})})})})}),x.includes("Admin")&&(0,L.jsx)(ue.A,{className:"hidden md:block",sx:{ml:.5,mr:.5,[b.breakpoints.down("md")]:{mr:2}},children:(0,L.jsx)(We.A,{sx:{borderRadius:"12px"},onClick:()=>g("/marketplace"),children:(0,L.jsx)(_n,{variant:"rounded",sx:{...b.typography.commonAvatar,...b.typography.mediumAvatar,transition:"all .2s ease-in-out",background:b.palette.secondary.light,color:b.palette.secondary.dark,"&:hover":{background:b.palette.secondary.dark,color:b.palette.secondary.light}},color:"inherit",children:(0,L.jsx)(mi,{placement:"bottom",title:"Available Assistants",arrow:!0,children:(0,L.jsx)(Ka.A,{stroke:1.5,size:"1.3rem"})})})})}),(0,L.jsxs)("div",{className:"md:flex items-center hidden",children:[(0,L.jsx)(Ga,{}),(0,L.jsx)(va,{isAsklly:v})]})]})};const T_e=(0,Ns.A)("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]),C_e=(0,Ns.A)("AlignLeft",[["line",{x1:"21",x2:"3",y1:"6",y2:"6",key:"1fp77t"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}],["line",{x1:"17",x2:"3",y1:"18",y2:"18",key:"1awlsn"}]]),O_e=(0,Ns.A)("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]]),N_e=(0,Ns.A)("VolumeOff",[["path",{d:"M16 9a5 5 0 0 1 .95 2.293",key:"1fgyg8"}],["path",{d:"M19.364 5.636a9 9 0 0 1 1.889 9.96",key:"l3zxae"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"m7 7-.587.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298V11",key:"1gbwow"}],["path",{d:"M9.828 4.172A.686.686 0 0 1 11 4.657v.686",key:"s2je0y"}]]),I_e=(0,Ns.A)("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}
205]]),R_e=(0,Ns.A)("ThumbsDown",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]),P_e=(0,Ns.A)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),j_e=(0,Ns.A)("Tickets",[["path",{d:"m4.5 8 10.58-5.06a1 1 0 0 1 1.342.488L18.5 8",key:"12lg5p"}],["path",{d:"M6 10V8",key:"1y41hn"}],["path",{d:"M6 14v1",key:"cao2tf"}],["path",{d:"M6 19v2",key:"1loha6"}],["rect",{x:"2",y:"8",width:"20",height:"13",rx:"2",key:"p3bz5l"}]]),M_e=(0,Ns.A)("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),D_e=(0,Ns.A)("Clock3",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16.5 12",key:"1aq6pp"}]]);var L_e=function(e){let{item:t,index:n,nav:r,setCollections:i}=e;const[o,a]=(0,c.useState)(null),[s,l]=(0,c.useState)(!1),[u,d]=(0,c.useState)(!1),[p,h]=(0,c.useState)(t.name),[f,m]=(0,c.useState)(null===t||void 0===t?void 0:t.name),g=localStorage.getItem("uid"),[b,v]=(0,c.useState)(!1),y=async(e,t)=>{l(!0);try{await(0,xi.o4)(e,g),i((t=>t.filter((t=>t.id!==e))))}catch(qUe){console.error("Error deleting collection:",qUe)}finally{l(!1)}a(null)},x=e=>{const t=1e3*e,n=Date.now()-t;return Math.floor(n/864e5)},w=()=>{a(null)};return(0,L.jsxs)("div",{className:"bg-[#EDE7F6] text-[#5E35B1] w-full p-4 mt-4 rounded relative duration-300 transition-all ease-in-out",onClick:e=>e.stopPropagation(),children:[(0,L.jsxs)("div",{className:"cursor-pointer w-fit",onClick:e=>{e.stopPropagation(),u||r(`/collection?id=${null===t||void 0===t?void 0:t.id}`)},children:[u?(0,L.jsxs)("div",{className:"flex items-center",children:[(0,L.jsx)(Xa.A,{value:p,onChange:e=>h(e.target.value),autoFocus:!0,variant:"outlined",size:"small"}),(0,L.jsx)(Pa.A,{className:"w-fit",onClick:async()=>{v(!0);const e=new FormData;e.append("new_name",p),await(0,xi.mX)(null===t||void 0===t?void 0:t.id,g,e),m(p),d(!1),v(!1)},disabled:b,children:b?(0,L.jsx)(dA,{size:24}):(0,L.jsx)(vw,{size:19,className:"text-green-500"})}),(0,L.jsx)(Pa.A,{className:"w-fit",onClick:()=>{d(!1),h(f)},disabled:b,children:(0,L.jsx)(mw,{size:19,className:"text-red-500 disabled:text-red-100"})})]}):(0,L.jsx)("h1",{className:"font-medium text-sm",children:f}),(0,L.jsxs)("div",{className:"flex gap-3",children:[(0,L.jsxs)("div",{className:"flex items-center justify-start gap-1",children:[(0,L.jsx)(M_e,{size:15}),(0,L.jsx)("h1",{className:"text-xs",children:null===t||void 0===t?void 0:t.views})]}),(0,L.jsxs)("div",{className:"flex items-center justify-start gap-1",children:[(0,L.jsx)(D_e,{size:15}),(0,L.jsx)("h1",{className:"text-xs",children:0===x(null===t||void 0===t?void 0:t.timestamp)?"Today":`${x(null===t||void 0===t?void 0:t.timestamp)} days ago`})]})]})]}),(0,L.jsxs)("div",{className:"absolute top-2 right-2",onClick:e=>e.stopPropagation(),children:[!u&&(0,L.jsx)(Pa.A,{"aria-label":"more",onClick:e=>{e.preventDefault(),a(e.currentTarget)},children:(0,L.jsx)(jw,{})}),(0,L.jsxs)(pA.A,{anchorEl:o,open:Boolean(o),onClose:w,MenuListProps:{"aria-labelledby":`collection-menu-button-${n}`},children:[(0,L.jsxs)(Qs.A,{onClick:e=>{e.stopPropagation(),d(!0),w()},disabled:s,children:[s?(0,L.jsx)(dA,{size:24,className:"mr-3"}):(0,L.jsx)(eH.A,{className:"mr-3"}),"Rename"]}),(0,L.jsxs)(Qs.A,{onClick:e=>{e.stopPropagation();const{origin:n}=window.location;Mx()(`${n}/share/collection?id=${null===t||void 0===t?void 0:t.id}`),aa.oR.success("Url copied",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}),w()},disabled:s,children:[(0,L.jsx)(xfe,{}),"\xa0\xa0\xa0 Share"]}),(0,L.jsxs)(Qs.A,{onClick:e=>{e.stopPropagation(),y(null===t||void 0===t?void 0:t.id),w()},disabled:s,children:[s?(0,L.jsx)(dA,{size:24,className:"mr-3"}):(0,L.jsx)(hw,{className:"text-red-500 mr-3"}),"Delete"]})]})]})]},n)}
205,F_e=__webpack_require__(99532),B_e=__webpack_require__(97121),U_e=__webpack_require__.n(B_e);var z_e=e=>{let{token:t,setToken:n,setSelectedImage:r,selectedImage:i=[],selectedFiles:o=[],setSelectedFiles:a}=e;const[s,l]=(0,c.useState)(null),[u,d]=(0,c.useState)(!1),[p,h]=(0,c.useState)(null),[f,m]=(0,c.useState)(null),[g,b]=(0,c.useState)(null),v=(0,c.useRef)(null),y=(0,c.useRef)(document.createElement("canvas")),x=(0,c.useRef)(null),w=(0,c.useRef)(null),A=Boolean(s),[E,S]=U_e()();(0,c.useEffect)((()=>{var e,t;try{const e=localStorage.getItem("ga");if(e&&"undefined"!==e){const r=JSON.parse(e);r&&r.access_token&&((t=r)&&t.expires_at&&!(Date.now()>=t.expires_at))?n(r.access_token):(n(""),localStorage.removeItem("ga"))}}catch(qUe){console.error("Error loading auth from localStorage:",qUe),localStorage.removeItem("ga"),n("")}null!==(e=navigator.mediaDevices)&&void 0!==e&&e.getUserMedia||m("Camera access is not supported in this browser")}),[]),(0,c.useEffect)((()=>()=>{g&&g.getTracks().forEach((e=>e.stop()))}),[g]),(0,c.useEffect)((()=>{if(S)if(S.error)console.error("Auth error:",S.error),n(""),localStorage.removeItem("ga");else if(S.access_token)try{localStorage.setItem("ga",JSON.stringify(S)),n(S.access_token)}catch(qUe){console.error("Error saving auth to localStorage:",qUe)}}),[S]);const _=()=>l(null),k=async()=>{_(),d(!0),h(null);try{const e=await navigator.mediaDevices.getUserMedia({video:{facingMode:"environment",width:{ideal:1280},height:{ideal:720}}});b(e),v.current&&(v.current.srcObject=e,v.current.onloadedmetadata=()=>{v.current.play().catch((e=>{m("Could not start video stream: "+e.message)}))})}catch(qUe){console.error("Camera error:",qUe),m("Error accessing camera: "+(qUe.message||"Unknown error"))}},T=e=>{const t=Array.from(e.target.files),n=4-(i.length+o.length);if(n<=0)return void alert("Maximum of 4 files/images allowed");const s=t.slice(0,n);e.target.accept.includes("image")?r((e=>[...e,...s].slice(0,4))):a((e=>[...e,...s].slice(0,4))),e.target.value=null},C=()=>{g&&(g.getTracks().forEach((e=>e.stop())),b(null)),d(!1)},O=e=>{const t=4-(i.length+o.length);if(t<=0)return void alert("Maximum of 4 files/images allowed");e.slice(0,t).forEach((async e=>{try{const t=e.mimeType.startsWith("image/"),n={"application/vnd.google-apps.document":"application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.google-apps.spreadsheet":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.google-apps.presentation":"application/pdf"},i=(e.downloadUrl||(e.id,n[null===e||void 0===e?void 0:e.mimeType]),{name:e.name,type:e.mimeType,size:e.sizeBytes,lastModified:(new Date).getTime(),driveId:e.id,url:e.url,thumbnailUrl:e.thumbnailLink,toString:()=>e.name});t?r((e=>[...e,i])):a((e=>[...e,i]))}catch(qUe){console.error("Error processing Drive file:",qUe),alert(`Failed to process file "${e.name}": ${qUe.message}`)}}))};return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("input",{type:"file",ref:x,style:{display:"none"},accept:"image/*",onChange:T,multiple:!0}),(0,L.jsx)("input",{type:"file",ref:w,style:{display:"none"},accept:".pdf,.doc,.docx,.txt,.xls,.xlsx",onChange:T,multiple:!0}),(0,L.jsx)(Pa.A,{className:"p-1 text-gray-600",onClick:e=>{l(e.currentTarget),m(null)},children:(0,L.jsx)(F_e.A,{})}),(0,L.jsxs)(pA.A,{anchorEl:s,open:A,onClose:_,children:[(0,L.jsxs)(Qs.A,{onClick:()=>{w.current.click(),_()},children:[(0,L.jsx)(T_e,{size:20,style:{marginRight:"8px"}})," Upload Files"]}),(0,L.jsxs)(Qs.A,{onClick:()=>{x.current.click(),_()},children:[(0,L.jsx)($he,{size:20,style:{marginRight:"8px"}})," Add Image"]}),(0,L.jsxs)(Qs.A,{onClick:k,children:[(0,L.jsx)(Vhe,{size:20,style:{marginRight:"8px"}})," Capture Image"]}),(0,L.jsxs)(Qs.A,{onClick:()=>{_(),E({clientId:"217599632578-2ujhg1q5spebg0mih8mat07rr180nl25.apps.googleusercontent.com",developerKey:"AIzaSyDlzhAw5idVWDb0knFlY5uDKPoVIbCPPVE",viewId:"DOCS",viewMimeTypes:["application/pdf","application/vnd.google-apps.document","application/vnd.google-apps.spreadsheet","image/png","image/jpeg","image/gif"].join(","),showUploadView:!1,showUploadFolders:!1,supportDrives:!0,multiselect:!0,token:t,callbackFunction:e=>{"cancel"!==e.action&&("picked"===e.action&&O(e.docs),"error"===e.action&&e.error&&(e.error.includes("token")||e.error.includes("auth"))&&(console.error("Drive picker authentication error:",e.error),n(""),localStorage.removeItem("ga")))}})},children:[(0,L.jsx)("img",{src:"drive.png",alt:"drive",className:"w-5 mr-2"})," Upload From Drive"]})]}),(0,L.jsxs)(mce,{open:u,onClose:C,maxWidth:"md",fullWidth:!0,children:[(0,L.jsx)(Ude,{children:"Capture Image"}),(0,L.jsxs)(Lde,{children:[f&&(0,L.jsx)(rue,{severity:"error",onClose:()=>m(null),sx:{mb:2},children:f}),p?(0,L.jsxs)("div",{children:[(0,L.jsx)("div",{style:{width:"100%",height:"400px",backgroundColor:"#f0f0f0",display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden"}
205,children:(0,L.jsx)("img",{src:p,alt:"Captured",style:{maxWidth:"100%",maxHeight:"100%",objectFit:"contain"}})}),(0,L.jsxs)("div",{style:{display:"flex",gap:"8px",marginTop:"16px"},children:[(0,L.jsx)(Yx.A,{onClick:()=>{h(null),k()},startIcon:(0,L.jsx)(Ghe,{size:16}),color:"secondary",variant:"outlined",fullWidth:!0,children:"Retake"}),(0,L.jsx)(Yx.A,{onClick:()=>{if(i.length+o.length>=4)return alert("Maximum of 4 files/images allowed"),void C();try{fetch(p).then((e=>e.blob())).then((e=>{const t=new File([e],`captured-${Date.now()}.jpg`,{type:"image/jpeg"});r((e=>[...e,t])),C()})).catch((e=>{console.error("Error saving image:",e),m("Failed to save image: "+e.message)}))}catch(e){console.error("Error in handleSaveCapturedImage:",e),m("Error processing image: "+e.message)}},color:"primary",variant:"contained",fullWidth:!0,children:"Use Photo"})]})]}):(0,L.jsxs)("div",{children:[(0,L.jsx)("div",{style:{width:"100%",height:"400px",backgroundColor:"#000",display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",position:"relative"},children:(0,L.jsx)("video",{ref:v,autoPlay:!0,playsInline:!0,style:{width:"100%",height:"100%",objectFit:"contain"}})}),(0,L.jsx)(Yx.A,{onClick:()=>{if(!v.current||!v.current.videoWidth)return void m("Video stream not ready or available");const e=y.current,t=v.current;e.width=t.videoWidth,e.height=t.videoHeight;e.getContext("2d").drawImage(t,0,0,e.width,e.height);try{const t=e.toDataURL("image/jpeg",.9);h(t),g&&g.getTracks().forEach((e=>e.stop()))}catch(n){m("Failed to capture image: "+n.message)}},startIcon:(0,L.jsx)(Vhe,{}),disabled:!!f,sx:{mt:2},fullWidth:!0,variant:"contained",color:"primary",children:"Capture"})]})]})]})]})},H_e=__webpack_require__(29349);const $_e=(0,Ns.A)("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]),V_e=(0,Ns.A)("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);var G_e=function(e){let{checked:t,setChecked:n,selectedBot:r}=e;const[i,o]=c.useState(null),a=Boolean(i);return(0,L.jsxs)("div",{children:[(0,L.jsxs)("button",{onClick:e=>{o(e.currentTarget)},className:"ml-1 flex items-center gap-2 border rounded-full border-black px-3 py-2",children:[(0,L.jsx)($_e,{size:19}),(0,L.jsx)("h1",{className:"font-semibold",children:"Tools"})]}),(0,L.jsx)(pA.A,{anchorEl:i,open:a,onClose:()=>{o(null)},MenuListProps:{"aria-labelledby":"basic-button"},children:(0,L.jsxs)("div",{className:"flex items-center gap-2 px-2 w-60 justify-between",children:[(0,L.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,L.jsx)(Uhe,{size:20}),(0,L.jsx)("h1",{className:"font-semibold",children:"Web search"}),r&&(0,L.jsx)(mi,{title:"Web search is on by default can't turn off",children:(0,L.jsx)(V_e,{size:16,className:"text-gray-500"})})]}),(0,L.jsx)(nw,{disabled:r,checked:t,color:"secondary",onChange:()=>n(!t)})]})})]})},W_e=(0,Ve.A)((0,L.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),q_e=(0,Ve.A)((0,L.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),Y_e=(0,Ve.A)((0,L.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");var K_e=e=>{let{text:t,wordLimit:n=20,onTextChange:r,isLoading:i=!1}=e;const[o,a]=(0,c.useState)(!1),[s,l]=(0,c.useState)(!1),[u,d]=(0,c.useState)(t||""),p=(null===t||void 0===t?void 0:t.split(" "))||[],h=p.length>n,f=o||!h?t:p.slice(0,n).join(" ")+"...",m=()=>{r&&r(u),l(!1)},g=()=>{d(t||""),l(!1)},b=e=>{"Enter"===e.key&&e.ctrlKey?m():"Escape"===e.key&&g()};return s?(0,L.jsxs)(ue.A,{sx:{width:"100%"},children:[(0,L.jsx)("textarea",{value:u,onChange:e=>d(e.target.value),onKeyDown:b,placeholder:"Edit your text here...",className:"w-full px-4 sm:px-6 py-4 bg-white text-gray-700 placeholder-gray-400 resize-none outline-none min-h-[60
205px] max-h-32 mb-4 border border-gray-300 rounded",rows:"1",autoFocus:!0,onInput:e=>{e.target.style.height="auto",e.target.style.height=e.target.scrollHeight+"px"}}),(0,L.jsxs)(ue.A,{sx:{display:"flex",gap:1},children:[(0,L.jsx)(Pa.A,{onClick:m,children:(0,L.jsx)(W_e,{color:"success"})}),(0,L.jsx)(Pa.A,{onClick:g,children:(0,L.jsx)(Dw,{color:"error"})})]})]}):(0,L.jsxs)(ue.A,{children:[(0,L.jsxs)(ue.A,{sx:{display:"flex",alignItems:"flex-start",gap:1},children:[(0,L.jsx)(Te.A,{sx:{fontWeight:"450"},variant:"h3",children:f}),h&&(0,L.jsx)(Pa.A,{onClick:()=>{a(!o)},size:"small",sx:{mt:.5,minWidth:"auto",padding:"2px"},children:o?(0,L.jsx)(q_e,{}):(0,L.jsx)(Y_e,{})})]}),!i&&(0,L.jsx)(ue.A,{sx:{mt:1},children:(0,L.jsx)(Pa.A,{onClick:()=>{d(t||""),l(!0)},size:"small",sx:{minWidth:"auto",padding:"4px"},children:(0,L.jsx)(Mhe,{fontSize:"small"})})})]})};var X_e=function(){var e,t,n,r;const o=(0,re.A)(),a=(0,te.zy)(),[s]=(0,i.ok)(),l=s.get("k"),{fetchtrainedBots:u,chatHistory:d,activeRole:p,handleDeleteChat:h,handleGetAllChats:f,nloading:m,activeTeam:g,getKb:b,uploadImage:v,knowldegeHubsNames:y,getCachedUserInfo:x,fetchtrainedApi:w}=ma(),A=(0,te.Zp)(),E=ce(o.breakpoints.down("sm")),[S,_]=(0,c.useState)(),[k,T]=(0,c.useState)(!1),[C,O]=(0,c.useState)(!1),[N,I]=(0,c.useState)(!1),[R,P]=(0,i.ok)(),[j,M]=(0,c.useState)(""),[D,F]=(0,c.useState)(!E),[B,U]=(0,c.useState)(!E),z=(0,c.useRef)(null),[H,$]=(0,c.useState)(!1),[V,G]=(0,c.useState)(!1),[W,q]=(0,c.useState)(),[Y,K]=(0,c.useState)(),[X,Z]=(0,c.useState)(!1),[Q,J]=(0,c.useState)(""),[ee,ne]=(0,c.useState)(!1),[ie,oe]=(0,c.useState)(""),[ae,se]=(0,c.useState)(""),[le,de]=(0,c.useState)(0),[pe,he]=(0,c.useState)(""),[fe,me]=(0,c.useState)({today:[],yesterday:[],previous7Days:[],previous30Days:[],lastYear:[]}),[ge,be]=(0,c.useState)(""),[ve,ye]=(0,c.useState)(""),[xe,Ae]=(0,c.useState)(""),[Ee,Se]=(0,c.useState)(!1),[_e,Ce]=(0,c.useState)(),[Oe,Ne]=(0,c.useState)(!1),[Ie,Re]=(0,c.useState)([]),Pe=()=>{var e;null===(e=z.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})},{transcript:je,listening:Me,resetTranscript:De}=(0,H_e.Vw)(),Le=async()=>{H_e.Ay.startListening()},Fe=async()=>{H_e.Ay.stopListening()};(0,c.useEffect)((()=>{Xe(je)}),[je]);const[Be,Ue]=(0,c.useState)(null),[ze,He]=(Boolean(Be),(0,c.useState)([])),[$e,Ve]=(0,c.useState)([]),[Ge,We]=(0,c.useState)([]),[qe,Ye]=(0,c.useState)([]),[Ke,Xe]=(0,c.useState)(""),[Ze,Qe]=(0,c.useState)([]),[Je,et]=(0,c.useState)([]),[tt,nt]=(0,c.useState)(""),[rt,it]=(0,c.useState)(!1),[ot,at]=(0,c.useState)("Copy To Clipboard"),[st,lt]=(0,c.useState)([]),[ct,ut]=(0,c.useState)(!1),[dt,pt]=(0,c.useState)(""),[ht,ft]=(0,c.useState)([]),[mt,gt]=(0,c.useState)([]),[bt,vt]=(0,c.useState)(!1),[yt,xt]=(0,c.useState)(!1),[wt,At]=(0,c.useState)(!1),[Et,St]=(0,c.useState)(""),[_t,kt]=(new URLSearchParams(a.search).get("id"),(0,c.useState)({cid:"",index:"",selectedCollectionId:""})),[Tt,Ct]=(0,c.useState)([]),[Ot,Nt]=(0,c.useState)([]),[It,Rt]=(0,c.useState)([]),[Pt,jt]=(0,c.useState)("");(0,c.useEffect)((()=>{F(!E)}),[E]);const[Mt,Dt]=(0,c.useState)(!1),[Lt,Ft]=(0,c.useState)(""),[Bt,Ut]=(0,c.useState)(!0);(0,c.useEffect)((()=>{E&&$t()}),[l]);const[zt,Ht]=(0,c.useState)(null);Boolean(Be),(0,c.useEffect)((()=>{et([]),Qe([]);const e=R.get("id");We([]),pt(""),ft(""),ut(!1),lt([]),M(e),(async()=>{var e;const t=null===(e=p.split(","))||void 0===e?void 0:e.some((e=>"Admin"===e||"Create Knowledge Base"===e));_(t)})(),(async()=>{try{const e=localStorage.getItem("uid"),t=await w(e);if(Ct(t.data),l&&t.data){const e=t.data.find((e=>e.api_key===l));e&&et([e.api_key])}}catch(qUe){console.log(qUe)}})();const t=localStorage.getItem("uid");qt(t),u(t).then((e=>{if(e&&Array.isArray(e.data)&&e.data.length>0){Qe(e.data);const t=e.data.map((e=>e.title));Ye(t)}else Qe([])})).catch((e=>{console.error("Error fetching trained bots:",e)})),e&&($(!0),We([]),(0,xi.TJ)(t,e).then((e=>{var t;if(0===Object.keys(e).length&&e.constructor===Object)return $(!1),A("/chat-with-bot");et(null!==e&&void 0!==e&&e.kbname?e.kbname.split(","):[]),null===(t=e.chatMessages)||void 0===t||t.forEach((e=>{var t,n;const r=null===e||void 0===e||null===(t=e.answer)||void 0===t?void 0:t.match(/references[;;]?([\s\S]*)$/i),i=r?r[1].split(";;;").map((e=>e.replace(/<br\/>/gi," ").replace(/; /g,"").trim())).filter((e=>""!==e)):[],o=(null===e||void 0===e||null===(n=e.answer)||void 0===n?void 0:n.replace(/\\n
205/gi,"\n"))||"",a=r?o.split(r[0])[0]:o,s="string"===typeof e.image?[e.image]:e.image||[],l=[".jpg",".jpeg",".png",".webp"],c=[".pdf",".doc",".docx",".txt"],u=(null===e||void 0===e?void 0:e.web)||[],d=[],p=[];s.forEach((e=>{const t=e.split("?")[0].split("/"),n="."+t[t.length-1].split(".").pop().toLowerCase();l.includes(n)?d.push(e):c.includes(n)&&p.push(e)})),We((t=>[...t,{...e,answer:a,reference:i,isLoading:!1,links:e.link?e.link:[],image:d,files:p,drive:(null===e||void 0===e?void 0:e.drive)||[],web:u,usage:(null===e||void 0===e?void 0:e.usage)||{}}])),lt(e.link||[])})),$(!1)})))}),[R]);const $t=async()=>{F(!D)},[Vt,Gt]=(0,c.useState)(""),Wt=e=>new Promise(((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>{const e=r.result.split(",")[1];t(e)},r.onerror=e=>n(e)}));(0,c.useEffect)((()=>{Ot&&Ot.map((e=>{Wt(e).then((e=>Gt(e)))}))}),[Ot]);const qt=async()=>{const e=localStorage.getItem("uid"),t=localStorage.getItem("gauthcred"),n=await x(e);if(n)if(localStorage.setItem("usr",n),q(n),""!==(null===n||void 0===n?void 0:n.prof))K(null===n||void 0===n?void 0:n.prof),localStorage.setItem("image",null===n||void 0===n?void 0:n.prof);else if(t){const e=Ro(t);localStorage.setItem("image",null===e||void 0===e?void 0:e.picture),K(null===e||void 0===e?void 0:e.picture)}else K("")};(0,c.useEffect)((()=>{qt()}),[]),localStorage.getItem("uid");const Yt=new Date;Yt.setHours(0,0,0,0);const Kt=new Date(Yt);Kt.setDate(Kt.getDate()-1),Kt.setHours(0,0,0,0);const Xt=new Date(Yt);Xt.setDate(Xt.getDate()-7),Xt.setHours(0,0,0,0);const Zt=new Date(Yt);Zt.setDate(Zt.getDate()-30),Zt.setHours(0,0,0,0);const Qt=new Date(Yt);Qt.setFullYear(Qt.getFullYear()-1),Qt.setHours(0,0,0,0),(0,c.useEffect)((()=>{Pe()}),[Ge]);const[Jt,en]=(0,c.useState)("");(0,c.useEffect)((()=>{const e=new URLSearchParams(window.location.search).get("k");jt(l&&l.startsWith("cx-")?"null":e)}),[]);const tn=(0,c.useCallback)((async()=>{try{O(!0);R.get("id");const e=new URLSearchParams(window.location.search).get("id"),t=localStorage.getItem("uid");if("Select a Bot"===Je)return aa.oR.error("Select your knowledge hub to chat",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"});We((e=>[...e,{question:Ke,answer:"Generating the answer...",reference:[],isLoading:!0,links:[]}])),Nt(""),Xe(""),G(!0),Pe();const n=localStorage.getItem("organization"),r=[],i=[],o=[];if(Ot.length>0)for(const f of Ot){if("string"===typeof f&&f.includes("www.googleapis.com"))return;const e=`${Date.now()}.jpg`,t={filename:e,base64_data:await Wt(f)};try{const e=await v(t);r.push(e.url),i.push(e.url)}catch(qUe){console.error("Error uploading",e,qUe)}}const a=[],s=[];if(It.length>0)for(const f of It){if(f.url&&f.url.includes("google.com")){o.push(f.url);const e={file_name:f.name,file_url:f.url};s.push(e);continue}const e=new FileReader,t=(await new Promise(((t,n)=>{e.onload=()=>t(e.result),e.onerror=e=>n(e),e.readAsDataURL(f)}))).split(",")[1],n={filename:f.name,base64_data:t};try{const e=await v(n);r.push(e.url),a.push(e.url)}catch(qUe){console.error("Error uploading",f.name,qUe)}}We((e=>{const t=e.length-1;return e.map(((e,n)=>n===t?{...e,image:i,files:a,drive:s}:e))})),_n("Thinking");const l=window.location.href.split("?")[0];Rt([]),Nt([]),console.log(Je);const c=await fetch("https://sse.asklly.ai/v2/sse/chat",{method:"POST",headers:{"Content-Type":"application/json",GTKN:ge?`Bearer ${ge}`:""},body:JSON.stringify({question:Ke,orgn:n,kbs:Je.join(","),cid:e||"null",uid:t,image:r.length>0?r.join(",,,"):"",drive:o.length>0?o.join(",,,"):"",search:Ee})});if(!c.ok||!c.body)throw new Error("Network response was not ok or streaming not supported");const u=c.body.getReader(),d=new TextDecoder("utf-8");let p="",h="";const m=async e=>{let{done:t,value:n}=e;if(t)return O(!1),G(!1),void await f();const r=d.decode(n),i=r.includes("<<>>")&&r.split("<<>>")[1].split("<<>>")[0]||"",o=r.includes("%%%")&&r.split("%%%")[1].split("%%%")[0]||"";if(o){const e=JSON.parse(o);We((t=>{const n=t.length-1;return t.map(((t,r)=>r===n?{...t,usage:e}:t))}))}if(p+=i?"":r,i)try{const e=i.includes("Chat Completion is Done. Done Streaming")?i.split("Chat Completion is Done. Done Streaming")[0]:i,t=JSON.parse(e);
205We((e=>{const n=e.length-1;return e.map(((e,r)=>r===n?{...e,web:t}:e))}))}catch(b){console.error("Invalid JSON in webSource:",i,b)}const a=p.split("references;;");h=a[0].replace(/\\n/gi,"\n");let s,c=[],g=[];if(a[1]){const e=a[1].split("::id::");if(e[0]&&(c=e[0].split(";;;").filter((e=>""!==e))),e[1]){const t=e[1].split("##links##");s=t[0],t[1]&&(g=t[1].split("$;$").filter((e=>e)),lt((e=>[...e,...g])))}}if(s){const e=l+"?id="+s;window.history.pushState(null,"",e)}if(We((e=>{const t=e.length-1;return e.map(((e,n)=>n===t?{...e,answer:h,reference:c,isLoading:!1,links:g}:e))})),h.includes("Chat Completion is Done. Done Streaming.")){const e=h.replace("Chat Completion is Done. Done Streaming.","");return We((t=>{const n=t.length-1;return t.map(((t,r)=>r===n?{...t,answer:e,isLoading:!1}:t))})),O(!1),G(!1),void await f()}return u.read().then(m)};u.read().then(m)}catch(qUe){console.error(qUe),O(!1),G(!1)}}),[Ke,Je,R,st]),nn=async e=>{await h(e),e===l&&A("/chat-with-bot")},rn=()=>{const{origin:e}=window.location,t=`${e}/share?id=${j}`;Mx()(t),aa.oR.success("Coppied Url",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})},on=(0,c.useCallback)((async e=>{O(!0);try{var t;const n=localStorage.getItem("uid"),r=new URLSearchParams(window.location.search).get("id");We((t=>{const n=[...t];return n[e]={...n[e],isLoading:!0,answer:"",web:[]},n}));const i=Ge.length-1,o=Ge[i],a=(null===o||void 0===o?void 0:o.question)||"",s=[];Array.isArray(null===o||void 0===o?void 0:o.image)&&o.image.length>0&&s.push(...o.image),Array.isArray(null===o||void 0===o?void 0:o.files)&&o.files.length>0&&s.push(...o.files),G(!0),_n("Thinking");const l=await fetch("https://sse.asklly.ai/v2/sse/rechat",{method:"POST",headers:{"Content-Type":"application/json",GTKN:ge?`Bearer ${ge}`:""},body:JSON.stringify({question:a,orgn:localStorage.getItem("organization"),kbs:Je.join(","),cid:r||"null",uid:n,image:s?s.join(",,,"):"",drive:(null===o||void 0===o||null===(t=o.drive)||void 0===t?void 0:t.length)>0?o.drive.map((e=>e.file_url)).join(",,,"):"",search:Ee})});if(!l.ok||!l.body)throw new Error("Network response was not ok or streaming is not supported.");const c=l.body.getReader(),u=new TextDecoder("utf-8");let d="",p="";const h=async t=>{let{done:n,value:r}=t;if(n)return G(!1),void await f();const i=u.decode(r),o=i.includes("<<>>")&&i.split("<<>>")[1].split("<<>>")[0]||"",a=i.includes("%%%")&&i.split("%%%")[1].split("%%%")[0]||"";if(a){const e=JSON.parse(a);We((t=>{const n=t.length-1;return t.map(((t,r)=>r===n?{...t,usage:e}:t))}))}if(d+=o?"":i,o)try{const e=o.includes("Chat Completion is Done. Done Streaming")?o.split("Chat Completion is Done. Done Streaming")[0]:o,t=JSON.parse(e);
205We((e=>{const n=e.length-1;return e.map(((e,r)=>r===n?{...e,web:t}:e))}))}catch(b){console.error("Invalid JSON in webSource:",o,b)}const s=d.split("references;;");p=s[0].replace(/\\n/gi,"\n");let l,m=[],g=[];if(s[1]){const e=s[1].split("::id::");if(e[0]&&(m=e[0].split(";;;").filter((e=>""!==e))),e[1]){const t=e[1].split("##links##");l=t[0],t[1]&&(g=t[1].split("$;$").filter((e=>e)),lt((e=>[...e,...g])))}}if(We((t=>t.map(((t,n)=>n===e?{...t,answer:p,reference:m,isLoading:!1,links:g}:t)))),p.includes("Chat Completion is Done. Done Streaming.")){const t=p.replace("Chat Completion is Done. Done Streaming.","");return We((n=>n.map(((n,r)=>r===e?{...n,answer:t,isLoading:!1}:n)))),G(!1),void await f()}return c.read().then(h)};return await c.read().then(h),{success:!0,message:"Answer refreshed successfully"}}catch(qUe){return console.error(qUe),G(!1),{success:!1,message:"Failed to refresh answer"}}finally{O(!1)}}),[Ge,Je,R,st]),an=(0,c.useCallback)((async e=>{ne(!1),O(!0);try{var t;const n=localStorage.getItem("uid"),r=new URLSearchParams(window.location.search).get("id"),i=(R.get("id"),Ge.length-1),o=Ge[i],a=[];Array.isArray(null===o||void 0===o?void 0:o.image)&&o.image.length>0&&a.push(...o.image),Array.isArray(null===o||void 0===o?void 0:o.files)&&o.files.length>0&&a.push(...o.files),We((t=>{const n=[...t];return n[e]={...n[e],question:ie,isLoading:!0,answer:"",web:[]},n})),G(!0),_n("Thinking");const s=await fetch("https://sse.asklly.ai/v2/sse/rechat",{method:"POST",headers:{"Content-Type":"application/json",GTKN:ge?`Bearer ${ge}`:""},body:JSON.stringify({question:ie,orgn:localStorage.getItem("organization"),kbs:Je.join(","),cid:r||"null",uid:n,image:a?a.join(",,,"):"",drive:(null===o||void 0===o||null===(t=o.drive)||void 0===t?void 0:t.length)>0?o.drive.map((e=>e.file_url)).join(",,,"):"",search:Ee})});if(!s.ok||!s.body)throw new Error("Network response was not ok or streaming is not supported.");const l=s.body.getReader(),c=new TextDecoder("utf-8");let u="",d="";const p=window.location.href.split("?")[0],h=async t=>{let{done:n,value:r}=t;if(n)return G(!1),void await f();const i=c.decode(r),o=i.includes("<<>>")&&i.split("<<>>")[1].split("<<>>")[0]||"";u+=o?"":i;const a=i.includes("%%%")&&i.split("%%%")[1].split("%%%")[0]||"";if(a){const e=JSON.parse(a);We((t=>{const n=t.length-1;return t.map(((t,r)=>r===n?{...t,usage:e}:t))}))}if(o)try{const e=o.includes("Chat Completion is Done. Done Streaming")?o.split("Chat Completion is Done. Done Streaming")[0]:o,t=JSON.parse(e);
205We((e=>{const n=e.length-1;return e.map(((e,r)=>r===n?{...e,web:t}:e))}))}catch(v){console.error("Invalid JSON in webSource:",o,v)}const s=u.split("references;;");d=s[0].replace(/\\n/gi,"\n");let m,g=[],b=[];if(s[1]){const e=s[1].split("::id::");if(e[0]&&(g=e[0].split(";;;").filter((e=>""!==e))),e[1]){const t=e[1].split("##links##");m=t[0],t[1]&&(b=t[1].split("$;$").filter((e=>e)),lt((e=>[...e,...b])))}}if(m){const e=p+"?id="+m;window.history.pushState(null,"",e)}if(We((t=>t.map(((t,n)=>n===e?{...t,answer:d,reference:g,isLoading:!1,links:b||[]}:t)))),d.includes("Chat Completion is Done. Done Streaming.")){const t=d.replace("Chat Completion is Done. Done Streaming.","");return We((n=>n.map(((n,r)=>r===e?{...n,answer:t,isLoading:!1}:n)))),G(!1),void await f()}return l.read().then(h)};return await l.read().then(h),{success:!0,message:"Answer refreshed successfully"}}catch(qUe){return console.error(qUe),G(!1),{success:!1,message:"Failed to refresh answer"}}finally{O(!1)}}),[ie,Je,R,st]),sn=()=>{oe(Ge[Ge.length-1].question),ne(!0)},ln=()=>{ne(!1),oe(" ")},{todayChats:cn,yesterdayChats:un,previous7DaysChats:dn,previous30DaysChats:pn,lastYearChats:hn}=(()=>{const e=[],t=[],n=[],r=[],i=[];return d.forEach((o=>{const a=new Date(1e3*o.timestamp),s=Yt-a,l=Math.ceil(s/864e5);0===l?e.push(o):1===l?t.push(o):l<=7?n.push(o):l<=30?r.push(o):i.push(o)})),{todayChats:e,yesterdayChats:t,previous7DaysChats:n,previous30DaysChats:r,lastYearChats:i}})(),fn=[...cn],mn=[...un],gn=[...dn],bn=[...pn],vn=[...hn];(0,c.useEffect)((()=>{const e=e=>(e=>e.sort(((e,t)=>t.timestamp-e.timestamp)))(e.filter((e=>e.chatName.toLowerCase().includes(pe.toLowerCase()))));me({today:e(fn),yesterday:e(mn),previous7Days:e(gn),previous30Days:e(bn),lastYear:e(vn)})}),[pe,fn,mn,gn,bn,vn]);const yn=(e,t)=>0===t.length?null:(0,L.jsxs)(uw,{children:[(0,L.jsx)(Te.A,{sx:{fontWeight:400},children:e}),t.map((e=>(0,L.jsx)(wfe,{i:e,handleDelete:nn,shareChat:()=>rn(e.chatID),setShow:F,isMobile:E})))]}),[xn,wn]=(0,c.useState)(!1),[An,En]=(0,c.useState)({name:"",description:"",aiPrompt:""}),[Sn,_n]=(0,c.useState)("Processing Image"),[kn,Tn]=(0,c.useState)([]),Cn=()=>{wn(!1),En({name:"",description:"",aiPrompt:""})},On=async()=>{try{const e=localStorage.getItem("uid"),t=await(0,xi.qw)(e);Ve(t.collections)}catch(qUe){console.error(qUe)}},Nn=e=>{Nt((t=>t.filter(((t,n)=>n!==e))))},In=e=>{Rt((t=>t.filter(((t,n)=>n!==e))))};(0,c.useEffect)((()=>{On()}),[]);const[Rn,Pn]=(0,c.useState)(null),jn=(0,c.useMemo)((()=>$e.filter((e=>{var t;return null===(t=e.name.toLowerCase())||void 0===t?void 0:t.includes(ve.toLowerCase().trim())}))),[$e,ve]);return(0,L.jsxs)(ue.A,{sx:{backgroundColor:"#fff",height:"100vh",display:"flex",flexDirection:"column"},children:[(0,L.jsx)(we,{enableColorOnDark:!0,position:"fixed",color:"inherit",elevation:0,sx:{bgcolor:o.palette.background.default},children:(0,L.jsx)(ke,{children:(0,L.jsx)(k_e,{selectedValues:kn,setSelectedValues:Tn,sp:R,api:Tt,handleLeftDrawerToggle:null,showHome:!0,bot:Je,handleSelectChange:e=>{let t=e.target.value;Array.isArray(t)||(t=[t]),console.log("Value as array:",t),t.length<=3?(console.log("Setting value"),et(t)):console.log("Too many values")},kbs:y,navi:()=>{We([]),M(""),A("/chat-with-bot")},toogleData:$t,chatId:j,shareChat:rn})})}),(0,L.jsxs)(uw,{direction:{xs:"column",md:"row"},sx:{flex:1,marginTop:{xs:10,md:9},overflow:"hidden"},children:[D&&(0,L.jsxs)(uw,{sx:{width:{xs:"100%",md:"25%",lg:"19%"},height:"100%",mb:{xs:2,md:0},border:0,overflow:"hidden",padding:"24px 16px"},children:[(0,L.jsx)(Te.A,{variant:"h4",sx:{fontSize:18,fontWeight:"600",color:"#1A1A1A",marginBottom:2,paddingLeft:"4px"},children:"Chats"}),(0,L.jsx)(Qi,{search:pe,setSearch:he}),(0,L.jsx)(ho.A,{sx:{overflow:"auto",flex:1,mt:2,maxHeight:"calc(100vh - 200px)","&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none","-ms-overflow-style":"none"},children:fe?(0,L.jsxs)(L.Fragment,{children:[yn("Today",fe.today),yn("Yesterday",fe.yesterday),yn("Past 7 Days",fe.previous7Days),yn("Past 30 Days",fe.previous30Days),yn("Last Year",fe.lastYear)]}):(0,L.jsxs)(uw,{justifyContent:"center",alignItems:"center",sx:{height:"100%",minHeight:"200px",backgroundColor:"rgba(238, 242, 246, 0.4)",borderRadius:2,py:3},children:[(0,L.jsx)(dA,{color:"secondary",size:32,thickness:4,sx:{mb:2,color:e=>e.palette.secondary.light}}),(0,L.jsx)(Te.A,{variant:"body2",sx:{color:"text.secondary",fontSize:14},children:"Loading chats..."})]})})]}),(0,L.jsx)(uw,{sx:{flex:1,backgroundColor:"#EEF2F6",borderTopLeftRadius:{xs:0,md:10},borderTopRightRadius:{xs:0,md:10},marginTop:{xs:0,md:2},padding:{xs:"8px",sm:"16px"},overflow:"hidden",border:0},children:H?(0,L.jsx)(uw,{justifyContent:"center",alignItems:"center",sx:{height:"100%"},children:(0,L.jsx)(dA,{color:"secondary"})}):Ge.length>0?(0,L.jsxs)(uw,{sx:{flex:1,display:"flex",flexDirection:"column",height:{xs:"c
205alc(100vh - 56px)",sm:"calc(100vh - 64px)"},overflow:"hidden",backgroundColor:"white",borderRadius:2},children:[(0,L.jsx)(ho.A,{sx:{flex:1,overflow:"auto",padding:{xs:1,sm:2},"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none","-ms-overflow-style":"none"},children:(null===Ge||void 0===Ge?void 0:Ge.length)>0&&(null===Ge||void 0===Ge?void 0:Ge.map(((e,t)=>{var n,r;return(0,L.jsxs)(ue.A,{sx:{overflow:"auto",borderBottom:0,borderColor:"#c1c1c1"},children:[(0,L.jsx)(uw,{direction:"row",sx:{height:"90%",p:{xs:1,sm:2}},alignItems:"center",children:(0,L.jsx)(uw,{direction:"column",sx:{width:"100%"},children:!0===ee&&t===Ge.length-1?(0,L.jsxs)(uw,{direction:"column",children:[(0,L.jsx)(Xa.A,{onChange:e=>oe(e.target.value),value:ie,multiline:!0,fullWidth:!0,variant:"outlined",color:"secondary"}),(0,L.jsxs)(uw,{direction:"row",sx:{mt:2},children:[(0,L.jsx)(Yx.A,{variant:"outlined",color:"secondary",onClick:()=>an(t),children:"Submit"}),(0,L.jsx)(Yx.A,{sx:{ml:2},onClick:ln,variant:"text",color:"error",children:"Cancel"})]})]}):(0,L.jsxs)(uw,{direction:"column",children:[(0,L.jsxs)("div",{className:"flex w-full justify-start mb-3 gap-3",children:[(null===e||void 0===e?void 0:e.image)&&e.image.length>0&&(0,L.jsxs)("div",{className:"mb-8",children:[(0,L.jsx)("h3",{className:"text-sm font-medium text-gray-500 mb-3",children:"Images"}),(0,L.jsx)("div",{className:"flex flex-wrap gap-4",children:e.image.map(((e,t)=>(0,L.jsx)("div",{className:"relative w-28 h-28 group",children:(0,L.jsx)("div",{className:"absolute inset-0 rounded-lg border border-gray-200 overflow-hidden shadow-sm transition-all duration-200 group-hover:shadow-md",children:(0,L.jsx)("img",{src:e,alt:`Image ${t+1}`,className:"w-full h-full object-cover cursor-pointer",onClick:()=>{Ft(e),Ae("image"),Dt(!0)}})})},t)))})]}),(null===e||void 0===e?void 0:e.files)&&e.files.length>0&&(0,L.jsxs)("div",{className:"mb-8",children:[(0,L.jsx)("h3",{className:"text-sm font-medium text-gray-500 mb-3",children:"Files"}),(0,L.jsx)("div",{className:"flex flex-wrap gap-4",children:e.files.map(((e,t)=>{const n=e.split("/").pop();return(0,L.jsxs)("div",{className:"w-28 h-28 rounded-lg border border-gray-200 shadow-sm hover:shadow-md transition-all duration-200 flex flex-col items-center justify-center p-2 cursor-pointer",onClick:()=>{Ft(e),Ae("file"),Dt(!0)},children:[(0,L.jsx)(T_e,{size:24,className:"text-gray-400 mb-2"}),(0,L.jsx)("p",{className:"text-xs text-center truncate w-full",title:n,children:n})]},t)}))})]}),(null===e||void 0===e?void 0:e.drive)&&e.drive.length>0&&(0,L.jsxs)("div",{children:[(0,L.jsx)("h3",{className:"text-sm font-medium text-gray-500 mb-3",children:"External Files"}),(0,L.jsx)("div",{className:"flex flex-wrap gap-4",children:e.drive.map(((e,t)=>(0,L.jsxs)("a",{href:e.file_url,target:"_blank",rel:"noopener noreferrer",className:"w-28 h-28 rounded-lg border border-gray-200 shadow-sm hover:shadow-md hover:border-blue-300 transition-all duration-200 flex flex-col items-center justify-center p-2 group",children:[(0,L.jsx)(xfe,{size:24,className:"text-gray-400 group-hover:text-blue-500 mb-2"}),(0,L.jsx)("p",{className:"text-xs text-center truncate w-full group-hover:text-blue-600",title:e.file_name,children:e.file_name})]},t)))})]})]}),(0,L.jsx)(K_e,{text:e.question,wordLimit:100}),t===Ge.length-1&&(0,L.jsx)("div",{className:"w-20",children:(0,L.jsx)(mi,{title:"edit question",placement:"bottom",children:(0,L.jsx)(Pa.A,{disabled:e.isLoading,onClick:sn,children:(0,L.jsx)(Mhe,{sx:{width:20}})})})})]})})}),(0,L.jsxs)(uw,{direction:"row",sx:{height:"fit-content",p:{xs:1,sm:2}},alignItems:"flex-start",children:[(0,L.jsx)(ue.A,{sx:{display:{xs:"none",sm:"block"}},children:(0,L.jsx)(C_e,{})}),(0,L.jsxs)(uw,{direction:"column",children:[(0,L.jsx)(Te.A,{variant:"h3",sx:{fontWeight:"700",ml:{xs:0,sm:2},mb:2},children:"Answer"}),(0,L.jsx)(BSe,{i:e,statusText:Sn,setStatusText:_n}),(0,L.jsxs)(uw,{direction:"row",children:[(null===e||void 0===e?void 0:e.web)&&(null===e||void 0===e?void 0:e.web.length)>0&&(0,L.jsxs)("button",{onClick:()=>{Re(e.web||[]),Ne(!0)},className:"flex items-center space-x-2 p-2 bg-gray-100 rounded-full w-fit",children:[(0,L.jsx)("div",{className:"flex items-center",children:null===(n=e.web)||void 0===n?void 0:n.filter((e=>{var t;return null===e||void 0===e||null===(t=e.profile)||void 0===t?void 0:t.img})).slice(0,3).map(((e,t)=>(0,L.jsx)("img",{src:e.profile.img,alt:`Profile ${t+1}`,className:"w-6 h-6 rounded-full border-2 border-white -ml-2 first:ml-0",style:{zIndex:3-t}},t)))}),(0,L.jsxs)("span",{className:"text-sm font-semibold",children:[null===e||void 0===e||null===(r=e.web)||void 0===r?void 0:r.length," web pages"]})]}),!1===e.isLoading&&(0,L.jsx)(uw,{justifyContent:"space-between",direction:"row",alignItems:"center",children:(0,L.jsxs)(uw,{direction:"row",alignItems:"center",sx:{width:"100%"},children:[(0,L.jsx)(uw,{direction:"row",alignItems:"center",children:(0,L.jsx)(mi,{title:"copy",placement:"bottom",children:(0,L.jsx)(Pa.A,{onClick:()=>(e=>{const t=Ge[e].answer.replace(/<br\/?>/g,"");Mx()(t),aa.oR.success("Coppied text",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})})(t),children:(0,L.jsx)(yw,{size:18})})})}),t===Ge.length-1&&(0,L.jsx)(uw,{direction:"row",alignItems:"center",children:(0,L.jsx)(mi,{title:"Repeat Question",placement:"bottom",children:(0,L.jsx)(Pa.A,{onClick:()=>on(t),children:(0,L.jsx)(O_e,{size:18})})})}),(0,L.jsx)(uw,{direction:"row",alignItems:"center",children:(0,L.jsx)(mi,{title:Rn===t?"Stop Speaking":"Read Aloud",placement:"bottom",children:(0,L.jsx)(Pa.A,{onClick:()=>Rn===t?(window.speechSynthesis.cancel(),void Pn(null)):(async e=>{null!==Rn&&window.speechSynthesis.cancel();const t=Ge[e].answer.replace(/<br\/?>/g,""),n=new SpeechSynthesisUtterance(t);Pn(e),n.onend=()=>{Pn(null)},window.speechSynthesis.speak(n)})(t),children:Rn===t?(0,L.jsx)(N_e,{size:18}):(0,L.jsx)(I_e,{size:18})})})}),(0,L.jsx)(uw,{direction:"row",alignItems:"center",children:(0,L.jsx)(mi,{title:"Bad Review",placement:"bottom",children:(0,L.jsx)(Pa.A,{onClick:()=>{de(t),Z(!0)},children:(0,L.jsx)(R_e,{size:18})})})}),(0,L.jsx)(uw,{direction:"row",alignItems:"center",children:(0,L.jsx)(mi,{title:"Add To Collection",placement:"bottom",children:(0,L.jsx)(Pa.A,{onClick:()=>{kt({..._t,cid:l,index:t}),vt(!0)},children:(0,L.jsx)(P_e,{size:18})})})}),e.usage&&(0,L.jsx)(uw,{direction:"row",alignItems:"center",children:(0,L.jsx)(mi,{title:"Tokens Usage",placement:"bottom",children:(0,L.jsx)(Pa.A,{onClick:()=>{de(t),T(!0)},children:(0,L.jsx)(j_e,{size:18})})})})]})})]})]})]}),(0,L.jsx)("div",{ref:z})]})})))}),(0,L.jsxs)("div",{className:"bg-gray-50 m-6 shadow-md rounded-md border border-gray-200",children:[(0,L.jsxs)("div",{className:"flex w-full justify-start mb-3",children:[0!==Ot.length&&Ot.map(((e,t)=>(0,L.jsxs)("div",{className:"relative w-28 h-28 border rounded-lg overflow-hidden",children:[(0,L.jsx)("button",{className:"absolute top-1 right-1 bg-black bg-opacity-50 text-white rounded-full p-1 text-xs",onClick:()=>Nn(t),children:"\u2716"}),(0,L.jsx)("img",{src:URL.createObjectURL(e),alt:"Selected",className:"w-full h-full object-cover"})]},t))),It.length>0&&It.map(((e,t)=>(0,L.jsxs)("div",{className:"relative mr-2 w-28 h-28 border rounded-lg overflow-hidden flex items-center justify-center p-2",children:[(0,L.jsx)("button",{className:"absolute top-1 right-1 bg-black bg-opacity-50 text-white rounded-full p-1 text-xs",onClick:()=>In(t),children:"\u2716"}),(0,L.jsx)("span",{className:"text-center text-sm break-words",children:e.name})]},t)))]}),(0,L.jsx)("div",{className:"w-full flex items-start px-4 py-2 bg-gray-50",children:(0,L.jsx)("textarea",{placeholder:"Ask a question",className:"flex-grow outline-none text-sm bg-gray-50 text-black placeholder-gray-400 resize-none min-h-[2.5rem] max-h-32 overflow-y-auto",value:Ke,rows:1,onChange:e=>{Xe(e.target.value),e.target.style.height="auto",e.target.style.height=Math.min(e.target.scrollHeight,128)+"px"},onKeyDown:e=>
205{"Enter"!==e.key||e.shiftKey||C||(e.preventDefault(),tn())}})}),(0,L.jsxs)("div",{className:"flex justify-between items-center px-2 py-2",children:[(0,L.jsxs)("div",{className:"flex items-center gap-2",children:[(0,L.jsx)("div",{className:"border rounded-full border-black",children:(0,L.jsx)(z_e,{setToken:be,token:ge,setSelectedImage:Nt,selectedImage:Ot,selectedFiles:It,setSelectedFiles:Rt})}),(0,L.jsx)(G_e,{checked:Ee,setChecked:Se,selectedBot:_e})]}),Me?(0,L.jsx)("button",{className:"p-2 rounded-full bg-black text-white hover:bg-gray-800 disabled:bg-gray-400 disabled:cursor-not-allowed",onClick:Fe,children:(0,L.jsx)(mfe,{className:"w-5 h-5"})}):Ke.length>1?(0,L.jsx)("button",{className:"p-2 rounded-full bg-black text-white hover:bg-gray-800 disabled:bg-gray-400 disabled:cursor-not-allowed",disabled:!Ke.length||C,onClick:tn,children:(0,L.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,L.jsx)("path",{fillRule:"evenodd",d:"M10.293 2.293a1 1 0 011.414 0l6 6a1 1 0 01-1.414 1.414L11 5.414V17a1 1 0 01-2 0V5.414L4.707 9.707A1 1 0 013.293 8.293l6-6z",clipRule:"evenodd"})})}):(0,L.jsx)("button",{className:"p-2 rounded-full bg-black text-white hover:bg-gray-800 disabled:bg-gray-400 disabled:cursor-not-allowed",onClick:Le,children:(0,L.jsx)(gfe,{className:"w-5 h-5"})})]})]})]}):(0,L.jsxs)(uw,{sx:{height:{xs:"calc(100vh - 56px)",sm:"calc(100vh - 64px)"},overflow:"hidden",backgroundColor:"white",borderRadius:2,padding:5},children:[(0,L.jsx)("div",{className:"flex h-full justify-center items-center",children:(0,L.jsx)(Te.A,{variant:"h2",sx:{mb:2,fontWeight:"900"},children:"What can i help you with?"})}),(0,L.jsx)(uw,{sx:{flex:1,display:"flex",flexDirection:"column",justifyContent:"flex-end",alignItems:"center"},children:(0,L.jsxs)("div",{className:"bg-gray-50 w-full shadow-md rounded-md border border-gray-200",children:[(0,L.jsxs)("div",{className:"flex w-full justify-start mb-3",children:[0!==Ot.length&&Ot.map(((e,t)=>(0,L.jsxs)("div",{className:"relative w-28 h-28 border rounded-lg overflow-hidden",children:[(0,L.jsx)("button",{className:"absolute top-1 right-1 bg-black bg-opacity-50 text-white rounded-full p-1 text-xs",onClick:()=>Nn(t),children:"\u2716"}),(0,L.jsx)("img",{src:URL.createObjectURL(e),alt:"Selected",className:"w-full h-full object-cover"})]},t))),It.length>0&&It.map(((e,t)=>(0,L.jsxs)("div",{className:"relative mr-2 w-28 h-28 border rounded-lg overflow-hidden flex items-center justify-center p-2",children:[(0,L.jsx)("button",{className:"absolute top-1 right-1 bg-black bg-opacity-50 text-white rounded-full p-1 text-xs",onClick:()=>In(t),children:"\u2716"}),(0,L.jsx)("span",{className:"text-center text-sm break-words",children:e.name})]},t)))]}),(0,L.jsx)("div",{className:"w-full flex items-center px-4 py-2 bg-gray-50",children:(0,L.jsx)("input",{type:"text",placeholder:"Ask a question",className:"flex-grow outline-none text-sm bg-gray-50 text-black placeholder-gray-400",value:Ke,onChange:e=>{Xe(e.target.value)},onKeyDown:e=>{"Enter"!==e.key||C||tn()}})}),(0,L.jsxs)("div",{className:"flex justify-between items-center px-2 py-2",children:[(0,L.jsxs)("div",{className:"flex items-center gap-2",children:[(0,L.jsx)("div",{className:"border rounded-full border-black",children:(0,L.jsx)(z_e,{setToken:be,token:ge,setSelectedImage:Nt,selectedImage:Ot,selectedFiles:It,setSelectedFiles:Rt})}),(0,L.jsx)(G_e,{checked:Ee,setChecked:Se,selectedBot:_e})]}),Me?(0,L.jsx)("button",{className:"p-2 rounded-full bg-black text-white hover:bg-gray-800 disabled:bg-gray-400 disabled:cursor-not-allowed",onClick:Fe,children:(0,L.jsx)(mfe,{className:"w-5 h-5"})}):Ke.length>1?(0,L.jsx)("button",{className:"p-2 rounded-full bg-black text-white hover:bg-gray-800 disabled:bg-gray-400 disabled:cursor-not-allowed",disabled:!Ke.length||C,onClick:tn,children:(0,L.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,L.jsx)("path",{fillRule:"evenodd",d:"M10.293 2.293a1 1 0 011.414 0l6 6a1 1 0 01-1.414 1.414L11 5.414V17a1 1 0 01-2 0V5.414L4.707 9.707A1 1 0 013.293 8.293l6-6z",clipRule:"evenodd"})})}):(0,L.jsx)("button",{className:"p-2 rounded-full bg-black text-white hover:bg-gray-800 disabled:bg-gray-400 disabled:cursor-not-allowed",onClick:Le,children:(0,L.jsx)(gfe,{className:"w-5 h-5"})})]})]})})]})}),D&&(0,L.jsxs)(uw,{sx:{width:{xs:"100%",md:"25%",lg:"19%"},height:"100%",display:{xs:"none",md:"block"},mb:{xs:2,md:0},border:0,overflow:"hidden",padding:3},children:[(0,L.jsxs)(uw,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{mb:2},children:[(0,L.jsx)(Te.A,{variant:"h4",sx:{fontSize:18,fontWeight:"600",color:"#1A1A1A",marginBottom:2,paddingLeft:"4px"},children:"Collections"}),(0,L.jsx)(mi,{title:"Create Collection",placement:"top",children:(0,L.jsx)(Pa.A,{onClick:()=>{wn(!0)},children:(0,L.jsx)(bfe,{className:"text-lg font-bold"})})})]}),$e.length>0?(0,L.jsx)(Qi,{search:ve,setSearch:ye}):(0,L.jsx)(Te.A,{variant:"body1",children:"Create New Collection"}),(0,L.jsx)(uw,{sx:{width:"100%",height:"100%",display:{xs:D?"block":"none",md:"block"},mb:{xs:2,md:0},border:0,overflow:"hidden"},children:(0,L.jsx)(ho.A,{sx:{overflow:"auto",flex:1,maxHeight:{xs:"c
205alc(100% - 56px)",md:"calc(100% - 64px)"},"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none","-ms-overflow-style":"none"},children:jn.map((e=>(0,L.jsx)(L_e,{item:e,index:$e.findIndex((t=>t.id===e.id)),nav:A,setCollections:Ve},e.id)))})})]})]}),(0,L.jsx)(Ls.A,{open:X,onClose:()=>Z(!1),children:(0,L.jsxs)(ue.A,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:{xs:"90%",sm:"60%",md:"50%"},bgcolor:"background.paper",boxShadow:24,p:{xs:2,sm:4},borderRadius:2},children:[(0,L.jsxs)(uw,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,L.jsx)(Te.A,{variant:"h2",children:"Feedback"}),(0,L.jsx)(Pa.A,{onClick:()=>Z(!1),children:(0,L.jsx)(Dw,{})})]}),(0,L.jsx)(Te.A,{variant:"body1",children:"Your feedback will help us improve the model"}),(0,L.jsx)(ue.A,{sx:{my:3,display:"grid",gridTemplateColumns:{xs:"1fr 1fr",sm:"1fr 1fr 1fr"},gap:2},children:["Answer Inaccurate","Didnt fully followed the prompt","No Answer came","Being lazy","Others"].map((e=>(0,L.jsx)(so,{label:e,sx:{color:dfe.A[800]},variant:Q===e?"filled":"outlined",onClick:()=>J(e)},e)))}),(0,L.jsx)(Xa.A,{fullWidth:!0,color:"secondary",placeholder:"(optional) Enter your Feedback about the answer",onChange:e=>se(e.target.value),multiline:!0,rows:3}),(0,L.jsx)(Yx.A,{variant:"outlined",color:"secondary",sx:{mt:2},onClick:async()=>{const e=localStorage.getItem("uid");if(!Q)return aa.oR.error("Select an feedback",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});if("Others"===Q&&""===ae)return aa.oR.error("Enter an feedback",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});const t={useruid:e,review:"negative",feedback:Q+" "+ae,chatid:j,chatindex:le};await(0,xi.pd)(t),Z(!1),J(""),se("")},children:"Submit"})]})}),(0,L.jsx)(Ls.A,{open:rt,onClose:()=>{Ue(null),it(!1)},"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:(0,L.jsxs)(ue.A,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:{xs:"90%",sm:"70%"},bgcolor:"background.paper",boxShadow:24,p:{xs:2,sm:4},borderRadius:2,maxHeight:"90vh",overflow:"auto"},children:[(0,L.jsx)(Te.A,{variant:"h6",component:"h2",children:"Script Code"}),(0,L.jsx)(ue.A,{sx:{mt:2,p:2,bgcolor:"grey.100",borderRadius:1},children:(0,L.jsx)("pre",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word"},children:(0,L.jsxs)("code",{children:["<head>\n",'   <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/chat_x_interface/dist/output.css">\n',"</head>\n","<script>\n","   window.chatx = {\n",`        chatbotKey: "${tt}"\n`,"   }\n","<\/script>\n",'<script src="https://cdn.jsdelivr.net/npm/chat_x_interface/dist/index.min.js"><\/script>']})})}),(0,L.jsx)(Yx.A,{variant:"contained",color:"primary",onClick:()=>{const e=`\n      <head>\n        <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/chat_x_interface/dist/output.css">\n      </head>\n      <script>\n        window.chatx = {\n          chatbotKey: "${tt}"\n        }\n      <\/script>\n      <script src="https://cdn.jsdelivr.net/npm/chat_x_interface/dist/index.min.js"><\/script>\n    `;Mx()(e),at("Copied")},sx:{mt:2,mr:1},children:ot}),(0,L.jsx)(Yx.A,{variant:"contained",color:"error",onClick:()=>{it(!1)},sx:{mt:2},children:"Close"})]})}),(null===Ge||void 0===Ge||null===(e=Ge[le])||void 0===e?void 0:e.usage)&&(0,L.jsx)(Ls.A,{open:k,onClose:()=>T(!1),children:Ge[le]&&Ge[le].usage&&(0,L.jsxs)(ue.A,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:{xs:"90%",sm:"70%",md:"30%"},bgcolor:"background.paper",boxShadow:24,p:{xs:2,sm:4},borderRadius:2,maxHeight:"90vh",overflow:"auto"},children:[(0,L.jsxs)("div",{className:"flex justify-between items-center mb-4",children:[(0,L.jsx)(Te.A,{variant:"h3",gutterBottom:!0,children:"Token Usage"}),(0,L.jsx)(Pa.A,{onClick:()=>T(!1),children:(0,L.jsx)(mw,{size:20})})]}),(0,L.jsxs)(uw,{spacing:1,children:[(0,L.jsxs)(Te.A,{children:[(0,L.jsx)("strong",{children:"Prompt Token:"})," ",null===(t=Ge[le].usage["prompt Token"])||void 0===t?void 0:t.toLocaleStr
205ing()]}),(0,L.jsxs)(Te.A,{children:[(0,L.jsx)("strong",{children:"Completion Token:"})," ",null===(n=Ge[le].usage["completion Token"])||void 0===n?void 0:n.toLocaleString()]}),(0,L.jsxs)(Te.A,{children:[(0,L.jsx)("strong",{children:"Total Token:"})," ",null===(r=Ge[le].usage["total Token"])||void 0===r?void 0:r.toLocaleString()]})]})]})}),(0,L.jsx)(tH,{file:dt,fileName:ht,openDrawer:ct,close:async()=>{pt(""),ft(""),ut(!1)}}),(0,L.jsxs)(mce,{open:xn,onClose:Cn,fullWidth:!0,maxWidth:"sm",children:[(0,L.jsx)(Ude,{children:"Create New Collection"}),(0,L.jsxs)(Lde,{children:[(0,L.jsx)(Xa.A,{autoFocus:!0,margin:"dense",label:"Name",type:"text",color:"secondary",fullWidth:!0,variant:"outlined",value:An.name,onChange:e=>En({...An,name:e.target.value})}),(0,L.jsx)(Xa.A,{margin:"dense",label:"Description",type:"text",fullWidth:!0,variant:"outlined",color:"secondary",multiline:!0,rows:3,value:An.description,onChange:e=>En({...An,description:e.target.value})}),(0,L.jsx)(Xa.A,{margin:"dense",label:"AI Prompt (optional)",type:"text",fullWidth:!0,variant:"outlined",color:"secondary",multiline:!0,rows:3,value:An.aiPrompt,onChange:e=>En({...An,aiPrompt:e.target.value})})]}),(0,L.jsxs)(Ide,{children:[(0,L.jsx)(Yx.A,{onClick:Cn,color:"error",disabled:yt,children:"Cancel"}),(0,L.jsx)(Yx.A,{onClick:async()=>{xt(!0);const e=localStorage.getItem("uid"),t=new FormData;t.append("collection_name",An.name),t.append("collection_description",An.description),t.append("ai_prompt",An.aiPrompt||"null"),t.append("uid",e),await(0,xi.No)(t),await On(),Cn(),xt(!1)},variant:"outlined",color:"secondary",disabled:!An.name||!An.description||yt,children:yt?"Creating...":"Create"})]})]}),(0,L.jsxs)(mce,{open:bt,sx:{display:"flex",alignItems:"center",justifyContent:"center","& .MuiDialog-paper":{width:{xs:"85vw",sm:"85vw",md:"50vw",lg:"30vw",xl:"30vw"},maxWidth:"80%",maxHeight:{xs:"90vh",sm:"85vh",md:"75vh",lg:"70vh",xl:"70vh"},margin:0}},onClose:()=>{kt({cid:"",index:"",selectedCollectionId:""}),vt(!1)},"aria-labelledby":"collection-dialog-title","aria-describedby":"collection-dialog-description",children:[(0,L.jsx)(Ude,{children:(0,L.jsx)(Te.A,{variant:"h3",children:"Select a Collection"})}),(0,L.jsx)(Lde,{sx:{mt:1,overflowY:"auto"},children:0===$e.length?(0,L.jsx)(Te.A,{children:"No collections available. Create a new collection first."}):(0,L.jsx)(fl.A,{sx:{width:"100%",height:"100%"},children:(0,L.jsx)(Zs.A,{labelId:"collection-select-label",id:"collection-select",value:_t.selectedCollectionId,color:"secondary",onChange:e=>{const t=$e.find((t=>t.id===e.target.value));t&&kt({..._t,selectedCollectionId:t.id})},children:$e.map((e=>(0,L.jsx)(Qs.A,{value:e.id,children:e.name},e.id)))})})}),(0,L.jsxs)(Ide,{children:[(0,L.jsx)(Yx.A,{onClick:()=>{kt({cid:"",index:"",selectedCollectionId:""}),vt(!1)},color:"error",disabled:wt,children:"Cancel"}),(0,L.jsx)(Yx.A,{onClick:async()=>{const e=localStorage.getItem("uid"),t=new FormData;t.append("index",_t.index),t.append("chatID",_t.cid),At(!0),await(0,xi.Eo)(_t.selectedCollectionId,e,t),At(!1),vt(!1)},color:"secondary",variant:"outlined",disabled:!_t.selectedCollectionId||wt,children:wt?"Adding...":"Add"})]})]}),(0,L.jsx)(Ks,{open:Oe,anchor:"right",onClose:()=>{Re([]),Ne(!1)},children:(0,L.jsxs)("div",{className:"p-6 md:max-w-[50vw] w-screen",children:[(0,L.jsxs)("div",{className:"flex justify-between items-center",children:[(0,L.jsx)(Te.A,{variant:"h4",children:"Search Result"}),(0,L.jsx)(Pa.A,{onClick:()=>{Re([]),Ne(!1)},children:(0,L.jsx)(mw,{size:20})})]}),Ie&&Ie.map(((e,t)=>{var n,r;return(0,L.jsxs)("a",{target:"_blank",href:null===e||void 0===e?void 0:e.url,className:"p-2 gap-2",children:[(0,L.jsx)("div",{className:"flex gap-5",children:(0,L.jsx)(Te.A,{variant:"h4",children:null===e||void 0===e?void 0:e.title})}),(0,L.jsx)("p",{className:"mb-3 mt-2",dangerouslySetInnerHTML:{__html:null===e||void 0===e?void 0:e.description}}),(0,L.jsxs)("div",{className:"flex gap-3",children:[(null===e||void 0===e||null===(n=e.profile)||void 0===n?void 0:n.img)&&(0,L.jsx)("img",{src:null===e||void 0===e?void 0:e.profile.img,className:"w-5 h-5 rounded-md"}),(r=e.url,r?new URL(r).hostname.replace("www.",""):"")]})]},t)}))]})}),(0,L.jsx)(Ks,{open:Mt,anchor:"right",onClose:()=>{Ft(""),Ae(""),Dt(!1)},children:(0,L.jsxs)("div",{className:"md:w-[50vw] sm:w-screen p-7",children:[(0,L.jsxs)("div",{className:"flex justify-between items-center",children:[(0,L.jsx)("h2",{className:"font-bold text-xl",children:dt.split("/").pop()||"Attachment"}),(0,L.jsx)(Pa.A,{onClick:()=>{Ft(""),Ae(""),Dt(!1)},children:(0,L.jsx)(Dw,{className:"cursor-pointer"})})]}),(0,L.jsx)("div",{className:"h-[80vh] p-1",children:"image"===xe?(0,L.jsx)("div",{children:(0,L.jsx)("img",{src:Lt,className:"w-3/4"})}):(0,L.jsx)(Xz,{viewerUrl:"https://docs.google.com/gview?url=%URL%&embedded=true",url:Lt||"",loaded:()=>Ut(!1),viewer:"url"})})]})})]})};var Z_e=()=>(0,L.jsx)(Co.A,{title:"Documentation",children:(0,L.jsx)(Te.A,{variant:"body2",children:"Coming Soon!"})});function Q_e(e){return(0,ge.Ay)("MuiCardMedia",e)}(0,me.A)("MuiCardMedia",["root","media","img"]);const J_e=["children","className","component","image","src","style"],eke=(0,ne.Ay)("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:i}=n;return[t.root,r&&t.media,i&&t.img]}})((e=>{let{ownerState:t}=e;
205return(0,R.A)({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},t.isMediaComponent&&{width:"100%"},t.isImageComponent&&{objectFit:"cover"})})),tke=["video","audio","picture","iframe","img"],nke=["picture","img"];var rke=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiCardMedia"}),{children:r,className:i,component:o="div",image:a,src:s,style:l}=n,c=(0,P.A)(n,J_e),u=-1!==tke.indexOf(o),d=!u&&a?(0,R.A)({backgroundImage:`url("${a}")`},l):l,p=(0,R.A)({},n,{component:o,isMediaComponent:u,isImageComponent:-1!==nke.indexOf(o)}),h=(e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e,i={root:["root",n&&"media",r&&"img"]};return(0,pe.A)(i,Q_e,t)})(p);return(0,L.jsx)(eke,(0,R.A)({className:(0,de.A)(h.root,i),as:o,role:!u&&a?"img":void 0,ref:t,style:d,ownerState:p,src:u?a||s:void 0},c,{children:r}))})),ike=__webpack_require__(63359),oke=__webpack_require__.p+"static/media/heroimage.a3206d19fa46313be169.png";function ake(){const e=(0,te.Zp)(),{getCachedUserInfo:t}=ma(),[n,r]=(0,c.useState)([]);(0,c.useEffect)((()=>{(async()=>{try{const e=localStorage.getItem("uid"),n=await t(e),i=new FormData;i.append("email",null===n||void 0===n?void 0:n.email);let o=(await(0,xi.B)(i)).role.role.split(",");r(o)}catch(qUe){console.log(qUe)}})()}),[]);return(0,L.jsx)(Ue,{container:!0,spacing:3,children:(0,L.jsx)(Ue,{item:!0,xs:12,children:(0,L.jsxs)(Ue,{container:!0,spacing:3,children:[(0,L.jsx)(Ue,{item:!0,lg:4,md:6,sm:6,xs:12,children:(0,L.jsx)(Ue,{container:!0,alignItems:"center",justifyContent:"space-between",children:(0,L.jsx)(Ue,{item:!0,children:(0,L.jsxs)(Ce.A,{children:[(0,L.jsx)(Rc.A,{avatar:(0,L.jsx)(_n,{sx:{bgcolor:ike.A[100]},"aria-label":"recipe",children:(0,L.jsx)(Ya.A,{stroke:1.5,size:"1.3rem"})}),action:(0,L.jsx)(Pa.A,{"aria-label":"settings",children:(0,L.jsx)(Xle.A,{})}),title:"Build Knowledge"}),(0,L.jsx)(rke,{component:"img",height:"140",image:oke,className:"hidden md:block",alt:"Create Knowledge Hub"}),(0,L.jsxs)(ea.A,{children:[(0,L.jsx)(Te.A,{variant:"body2",color:"text.secondary",children:"Upload a variety of document formats including PDF, docx, free text, and curated insights."}),n.some((e=>"Admin"===e||"Create Knowledge Base"===e))&&(0,L.jsx)(Yx.A,{variant:"outlined",color:"secondary",sx:{mt:2},onClick:async()=>{e("/kb")},children:"Go to Knowledge Hub"})]})]})})})}),(0,L.jsx)(Ue,{item:!0,lg:4,md:6,sm:6,xs:12,children:(0,L.jsx)(Ue,{container:!0,alignItems:"center",justifyContent:"space-between",children:(0,L.jsx)(Ue,{item:!0,children:(0,L.jsxs)(Ce.A,{children:[(0,L.jsx)(Rc.A,{avatar:(0,L.jsx)(_n,{sx:{bgcolor:ike.A[100]},"aria-label":"recipe",children:(0,L.jsx)(Wa,{stroke:1.5,size:"1.3rem"})}),action:(0,L.jsx)(Pa.A,{"aria-label":"settings",children:(0,L.jsx)(Xle.A,{})}),title:"Explore Knowledge"}),(0,L.jsx)(rke,{component:"img",height:"140",image:oke,className:"hidden md:block",alt:"Create Knowledge Hub"}),(0,L.jsxs)(ea.A,{children:[(0,L.jsx)(Te.A,{variant:"body2",color:"text.secondary",children:"Quickly tap into insights from your Knowledge Hub using an AI powered chat interface."}),n.some((e=>"Admin"===e||"Only Query Knowledge Base"===e))&&(0,L.jsx)(Yx.A,{variant:"outlined",color:"secondary",sx:{mt:2},onClick:async()=>{e("/chat-with-bot")},children:"Let's chat with your Knowledge"})]})]})})})}),(0,L.jsx)(Ue,{item:!0,lg:4,md:6,sm:6,xs:12,children:(0,L.jsx)(Ue,{container:!0,alignItems:"center",justifyContent:"space-between",children:(0,L.jsx)(Ue,{item:!0,children:(0,L.jsxs)(Ce.A,{children:[(0,L.jsx)(Rc.A,{avatar:(0,L.jsx)(_n,{sx:{bgcolor:ike.A[100]},"aria-label":"recipe",children:(0,L.jsx)(Ka.A,{stroke:1.5,size:"1.3rem"})}),action:(0,L.jsx)(Pa.A,{"aria-label":"settings",children:(0,L.jsx)(Xle.A,{})}),title:"Share Knowledge"}),(0,L.jsx)(rke,{component:"img",className:"hidden md:block",height:"140",image:oke,alt:"Create Knowledge Hub"}),(0,L.jsxs)(ea.A,{children:[(0,L.jsx)(Te.A,{variant:"body2",color:"text.secondary",children:"Share your knowledge with others, allowing them to interact with your AI assistant anytime."}),n.includes("Admin")&&(0,L.jsx)(Yx.A,{variant:"outlined",color:"secondary",sx:{mt:2},onClick:async()=>{e("/mybots")},children:"Share your knowledge"})]})]})})})})]})})})}function ske(){const[e,t]=(0,c.useState)([]),[n,r]=(0,c.useState)(!1);(0,c.useEffect)((()=>{o()}),[]);const o=async()=>{try{r(!0);const e=localStorage.getItem("organization"),n=localStorage.getItem("uid"),i=await(0,xi.F5)(e,n);t(i)}catch(qUe){console.log(qUe)}finally{r(!1)}},a=e.filter((e=>e.uname.toLowerCase()||e.title.toLowerCase()||e.message.toLowerCase())),s=[{header:"Date",accessorKey:"created_at",Cell:e=>{let{cell:t}=e;
205return new Date(t.getValue()+"Z").toLocaleString()}},{header:"User",accessorKey:"uname"},{header:"Action",accessorKey:"title"},{header:"Detailed",accessorKey:"message"}];return(0,L.jsxs)(uw,{children:[(0,L.jsxs)(Co.A,{children:[(0,L.jsx)(uw,{justifyContent:"space-between",direction:"row",alignItems:"center",children:(0,L.jsxs)("div",{className:"flex justify-center items-center",children:[(0,L.jsx)(i.N_,{to:"/marketplace",children:(0,L.jsx)(rw.A,{color:"secondary"})}),(0,L.jsx)(jhe.A,{}),(0,L.jsx)(Te.A,{sx:{fontWeight:"bold"},children:"Activities"})]})}),(0,L.jsx)(uw,{sx:{mt:1},children:(0,L.jsx)(Te.A,{children:"User activity log records all actions for tracking and transparency"})})]}),(0,L.jsx)(uw,{sx:{mt:2,borderRadius:"8px",overflow:"hidden"},children:(0,L.jsx)(Rhe,{initialState:{sorting:[{id:"created_at",desc:!0}]},data:a,columns:s,getRowId:e=>e.id,sx:{borderRadius:"8px",overflow:"hidden"},muiTablePaginationProps:{labelRowsPerPage:""},state:{showSkeletons:n}})})]})}const lke=(0,Ns.A)("ArrowUpDown",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]),cke=(0,Ns.A)("Grid3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]),uke=(0,Ns.A)("List",[["line",{x1:"8",x2:"21",y1:"6",y2:"6",key:"7ey8pc"}],["line",{x1:"8",x2:"21",y1:"12",y2:"12",key:"rjfblc"}],["line",{x1:"8",x2:"21",y1:"18",y2:"18",key:"c3b1m8"}],["line",{x1:"3",x2:"3.01",y1:"6",y2:"6",key:"1g7gq3"}],["line",{x1:"3",x2:"3.01",y1:"12",y2:"12",key:"1pjlvk"}],["line",{x1:"3",x2:"3.01",y1:"18",y2:"18",key:"28t2mc"}]]);const dke=e=>{let{children:t,className:n=""}=e;return(0,L.jsx)("div",{className:`bg-white rounded-lg shadow-sm p-6 ${n}`,children:t})},pke=e=>{let{startAdornment:t,className:n="",...r}=e;return(0,L.jsxs)("div",{className:"relative w-full",children:[t&&(0,L.jsx)("div",{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400 pointer-events-none",children:t}),(0,L.jsx)("input",{...r,className:`w-full h-12 px-4 bg-white border border-gray-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500 ${t?"pl-10":""} ${n}`})]})},hke=e=>{let{variant:t="contained",color:n="primary",startIcon:r,children:i,className:o="",disabled:a,...s}=e;const l={contained:(a?"bg-gray-300":"bg-[#5E35B1] hover:bg-[#5E35E6]")+" text-white",outlined:"border-2 "+(a?"border-gray-300 text-gray-400":"border-purple-600 text-purple-600 hover:bg-purple-50"),text:""+(a?"text-gray-400":"text-purple-600 hover:bg-purple-50")};return(0,L.jsxs)("button",{disabled:a,className:`px-4 py-2 rounded-lg flex items-center gap-2 transition-colors ${l[t]} ${o}`,...s,children:[r,i]})},fke=e=>{let{children:t,...n}=e;return(0,L.jsx)("button",{className:"flex items-center gap-2 px-4 py-2 rounded-full bg-purple-100 text-purple-800 hover:bg-purple-200 transition-colors",...n,children:t})},mke=e=>{let{value:t,onChange:n,children:r,startIcon:i}=e;return(0,L.jsxs)("div",{className:"relative",children:[(0,L.jsx)("select",{value:t,onChange:n,className:"appearance-none pl-10 pr-8 py-3 border border-gray-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500 bg-white",children:r}),(0,L.jsx)("div",{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400",children:i}),(0,L.jsx)(Xae,{className:"absolute right-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400"})]})},gke=e=>{let{totalItems:t,itemsPerPage:n,currentPage:r,onPageChange:i}=e;const o=Math.ceil(t/n),a=Array.from({length:o},((e,t)=>t+1));return o<=1?null:(0,L.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,L.jsx)(hke,{variant:"outlined",className:"p-2",onClick:()=>i(r-1),disabled:1===r,children:(0,L.jsx)(Yae,{className:"w-4 h-4"})}),a.map((e=>(0,L.jsx)(hke,{variant:r===e?"contained":"outlined",className:"w-10 h-10 p-0 "+(r===e?"":"hover:bg-purple-50"),onClick:()=>i(e),children:e},e))),(0,L.jsx)(hke,{variant:"outlined",className:"p-2",onClick:()=>i(r+1),disabled:r===o,children:(0,L.jsx)(pw,{className:"w-4 h-4"})})]})};var bke=()=>{const[e,t]=(0,c.useState)("newest"),[n,r]=(0,c.useState)("grid"),[o,a]=(0,c.useState)(1),[s,l]=(0,c.useState)(""),[u,d]=(0,c.useState)(null),p=(0,te.Zp)(),{myAssistant:h,loading:f,activeRole:m,increaseViews:g}=ma(),b=(t=>{switch(e){case"newest":return[...t].sort(((e,t)=>{const n=e.created_at?e.created_at.includes("/")?new Date(e.created_at.split("/").reverse().join("-")).getTime():parseInt(e.created_at):e.timestamp?e.timestamp.includes("/")?new Date(e.timestamp.split("/").reverse().join("-")).getTime():parseInt(e.timestamp):0;return(t.created_at?t.created_at.includes("/")?new Date(t.created_at.split("/").reverse().join("-")).getTime():parseInt(t.created_at):t.timestamp?t.timestamp.includes("/")?new Date(t.timestamp.split("/").reverse().join("-")).getTime():parseInt(t.timestamp):0)-n}));case"most_chats":return[...t].sort(((e,t)=>t.chats-e.chats));case"most_views":return[...t].sort(((e,t)=>t.views-e.views));case"a_to_z":return[...t].sort(((e,t)=>e.botname.localeCompare(t.botname)));case"z_to_a":return[...t].sort(((e,t)=>t.botname.localeCompare(e.botname)));default:return t}})(h.filter((e=>{var t,n,r;return(null===(t=e.botname)||void 0===t?void 0:t.toLowerCase().includes(s.toLowerCase()||""))||(null===(n=e.initial)||void 0===n?void 0:n.toLowerCase().includes(s.toLowerCase()||""))||(null===(r=e.organization)||void 0===r?void 0:r.toLowerCase().includes(s.toLowerCase()||""))}))),v=6*o,y=v-6,x=b.slice(y,v),w=e=>{if(!e)return"Today";const t=e.includes("/")?new Date(e.split("/").reverse().join("-")):new Date(parseInt(e)),n=new Date,r=Math.abs(n-t),i=Math.floor(r/864e5);return 0===i?"Today":`${i}d`},A=async e=>{await g(e),p(`/api?k=${e}`)},E=localStorage.getItem("uid"),S=e=>{var t;let{assistant:n}=e;const r=u===n.id,[i,o]=(0,c.useState)(null),a=()=>{o(null)},s=e=>{e.preventDefault(),e.stopPropagation(),window.location.href=`/api?k=${n.apikey}`};return(0,L.jsx)("div",{onClick:()=>A(n.apikey),children:(0,L.jsx)(dke,{className:"flex flex-col h-full transition-all hover:shadow-md cursor-pointer\n            "+(r?"ring-2 ring-purple-500":""),onClick:s,children:(0,L.jsxs)("div",{className:"flex flex-col h-full",children:[(0,L.jsxs)("div",{className:"flex items-start justify-between mb-4",children:[(0,L.jsxs)("div",{className:"flex items-center",children:[null!==n&&void 0!==n&&n.image&&"null"!==n.image?(0,L.jsx)("img",{className:"w-10 h-10 rounded-full mr-2",src:n.image}):(0,L.jsx)(Ba,{className:"w-8 h-8 text-[#5E35B1] rounded-full mr-2"}),(0,L.jsxs)("div",{children:[(0,L.jsx)("h3",{className:"text-lg font-semibold text-gray-900",children:n.botname}),(0,L.jsxs)("p",{className:"text-sm text-gray-500",children:[n.organization," | ",n.team_name]})]})]}),E===(null===n||void 0===n?void 0:n.uid)&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Pa.A,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(e.currentTarget)},children:(0,L.jsx)(jw,{className:"w-5 h-5 text-purple-500 transition-transform "+(r?"rotate-180":"")})}),(0,L.jsx)(pA.A,{anchorEl:i,open:Boolean(i),onClose:a,children:(0,L.jsxs)(Qs.A,{onClick:e=>{e.preventDefault(),e.stopPropagation();const t=btoa("asklly.ai"+String(n.id));p(`/edit?id=${t}`),a()},children:[(0,L.jsx)(eH.A,{}),"\xa0\xa0\xa0 Edit"]})})]})]}),(0,L.jsx)("p",{className:"text-sm text-gray-600 mb-4",children:n.initial}),(0,L.jsx)("div",{className:"flex flex-wrap gap-2 mb-4",children:n.training_files?n.training_files.split(",").map((e=>(0,L.jsx)("span",{className:"px-2 py-1 bg-purple-50 text-purple-700 rounded-full text-xs",children:e},e))):null}),(0,L.jsx)("div",{className:"flex flex-wrap gap-2 mb-4",children:null===(t=n.tags)||void 0===t?void 0:t.map((e=>(0,L.jsxs)("span",{className:"px-2 py-1 bg-blue-50 text-blue-700 rounded-full text-xs",children:["#",e]},e)))}),(0,L.jsxs)("div",{className:"mt-auto",children:[(0,L.jsxs)("div",{className:"flex items-center gap-4 mb-4",children:[(0,L.jsxs)("div",{className:"flex items-center gap-1",children:[(0,L.jsx)(T_e,{className:"w-4 h-4 text-gray-400"}),(0,L.jsx)("span",{className:"text-sm",children:null===n||void 0===n?void 0:n.no_of_files})]}),(0,L.jsxs)("div",{className:"flex items-center gap-1",children:[(0,L.jsx)(Zz,{className:"w-4 h-4 text-gray-400"}),(0,L.jsx)("span",{className:"text-sm",children:null===n||void 0===n?void 0:n.views})]}),(0,L.jsxs)("div",{className:"flex items-center gap-1",children:[(0,L.jsx)(Qz,{className:"w-4 h-4 text-gray-400"}),(0,L.jsx)("span",{className:"text-sm",children:null===n||void 0===n?void 0:n.chats})]}),(0,L.jsxs)("div",{className:"flex items-center gap-1",children:[(0,L.jsx)(Jz,{className:"w-4 h-4 text-gray-400"}),(0,L.jsx)("span",{className:"text-sm",children:w((null===n||void 0===n?void 0:n.created_at)||(null===n||void 0===n?void 0:n.timestamp))})]})]}),(0,L.jsx)(hke,{variant:"contained",onClick:s,size:"sm",children:"Start Chat"})]})]})})})},_=()=>(0,L.jsxs)(dke,{className:"hover:shadow-md transition-all cursor-pointer",children:[(0,L.jsx)("div",{className:"flex items-start gap-16",children:(0,L.jsxs)("div",{className:"flex-1",children:[(0,L.jsxs)("div",{className:"flex items-center",children:[(0,L.jsx)(vse,{width:40,height:40,variant:"circular"}),(0,L.jsxs)("div",{children:[(0,L.jsx)(vse,{variant:"text",height:25,width:60}),(0,L.jsxs)("div",{className:"flex gap-2",children:[(0,L.jsx)(vse,{variant:"text",height:20,width:40})," | ",(0,L.jsx)(vse,{variant:"text",height:20,width:40})]})]})]}),(0,L.jsx)("div",{className:"my-2",children:(0,L.jsx)(vse,{variant:"text",height:20,width:40})}),(0,L.jsxs)("div",{className:"flex items-center gap-4 mb-4",children:[(0,L.jsxs)("div",{className:"flex items-center gap-1",children:[(0,L.jsx)(T_e,{className:"w-4 h-4 text-gray-400"}),(0,L.jsx)(vse,{variant:"text",height:30,width:18})]}),(0,L.jsxs)("div",{className:"flex items-center gap-1",children:[(0,L.jsx)(Zz,{className:"w-4 h-4 text-gray-400"}),(0,L.jsx)(vse,{variant:"text",height:30,width:18})]}),(0,L.jsxs)("div",{className:"flex items-center gap-1",children:[(0,L.jsx)(Qz,{className:"w-4 h-4 text-gray-400"}),(0,L.jsx)(vse,{variant:"text",height:30,width:18})]}),(0,L.jsxs)("div",{className:"flex items-center gap-1",children:[(0,L.jsx)(Jz,{className:"w-4 h-4 text-gray-400"}),(0,L.jsx)(vse,{variant:"text",height:30,width:18})]})]}),(0,L.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,L.jsx)(vse,{variant:"text",height:20,width:20}),(0,L.jsx)(vse,{variant:"text",height:20,width:20}),(0,L.jsx)(vse,{variant:"text",height:20,width:20})]})]})}),(0,L.jsx)(hke,{variant:"contained",color:"secondary",size:"sm",disabled:!0,children:"Start Chat"})]}),k=e=>{var t;let{assistant:n}=e;return(0,L.jsx)("div",{onClick:()=>A(n.apikey),className:"mx-6",children:(0,L.jsx)(dke,{onClick:()=>p(`/api?k=${n.apikey}`),className:"hover:shadow-md transition-all cursor-pointer",children:(0,L.jsxs)("div",{className:"flex items-start gap-6",children:[(0,L.jsxs)("div",{className:"flex-1",children:[(0,L.jsxs)("div",{className:"flex items-center",children:[null!==n&&void 0!==n&&n.image&&"null"!==n.image?(0,L.jsx)("img",{className:"w-10 h-10 rounded-full mr-2",src:n.image}):(0,L.jsx)(Ba,{className:"w-8 h-8 text-[#5E35B1] rounded-full mr-2"}),(0,L.jsxs)("div",{children:[(0,L.jsx)("h3",{className:"text-lg font-semibold text-gray-900",children:n.botname}),(0,L.jsxs)("p",{className:"text-sm text-gray-500",children:[n.organization," | ",n.team_name]})]})]}),(0,L.jsx)("p",{className:"text-sm text-gray-600 my-2",children:n.initial}),(0,L.jsxs)("div",{className:"flex items-center gap-4 mb-4",children:[(0,L.jsxs)("div",{className:"flex items-center gap-1",children:[(0,L.jsx)(T_e,{className:"w-4 h-4 text-gray-400"}),(0,L.jsx)("span",{className:"text-sm",children:null===n||void 0===n?void 0:n.no_of_files})]}),(0,L.jsxs)("div",{className:"flex items-center gap-1",children:[(0,L.jsx)(Zz,{className:"w-4 h-4 text-gray-400"}),(0,L.jsx)("span",{className:"text-sm",children:null===n||void 0===n?void 0:n.views})]}),(0,L.jsxs)("div",{className:"flex items-center gap-1",children:[(0,L.jsx)(Qz,{className:"w-4 h-4 text-gray-400"}),(0,L.jsx)("span",{className:"text-sm",children:null===n||void 0===n?void 0:n.chats})]}),(0,L.jsxs)("div",{className:"flex items-center gap-1",children:[(0,L.jsx)(Jz,{className:"w-4 h-4 text-gray-400"}),(0,L.jsx)("span",{className:"text-sm",children:w((null===n||void 0===n?void 0:n.created_at)||(null===n||void 0===n?void 0:n.timestamp))})]})]}),(0,L.jsx)("div",{className:"flex flex-wrap gap-2 mt-2 mb-2",children:n.training_files?n.training_files.split(",").map((e=>(0,L.jsx)("span",{className:"px-2 py-1 bg-purple-50 text-purple-700 rounded-full text-xs",children:e},e))):null}),(0,L.jsx)("div",{className:"flex flex-wrap gap-2",children:null===(t=n.tags)||void 0===t?void 0:t.map((e=>(0,L.jsxs)("span",{className:"px-2 py-1 bg-blue-50 text-blue-700 rounded-full text-xs",children:["#",e]},e)))})]}),(0,L.jsx)(hke,{variant:"contained",color:"secondary",size:"sm",onClick:e=>{p(`/api?k=${n.apikey}`)},children:"Start Chat"})]})})})};return(0,L.jsxs)(po.A,{children:[(0,L.jsxs)(dke,{children:[(0,L.jsxs)(po.A,{justifyContent:"space-between",direction:"row",alignItems:"center",children:[(0,L.jsxs)("div",{className:"flex justify-center items-center",children:[(0,L.jsx)(i.N_,{to:"/marketplace",children:(0,L.jsx)(rw.A,{color:"secondary"})}),(0,L.jsx)(pw,{}),(0,L.jsx)(Te.A,{sx:{fontWeight:"bold"},children:"AI Hub"})]}),String(m).split(",").includes("Admin")&&(0,L.jsxs)(fke,{variant:"extended",size:"medium",color:"secondary",onClick:()=>p("/kb"),children:[(0,L.jsx)(P_e,{className:"w-4 h-4"}),"Create AI"]})]}),(0,L.jsx)(po.A,{sx:{mt:1},children:(0,L.jsx)(Te.A,{children:"Discover the perfect AI assistant tailored to meet your enterprise needs, enhancing efficiency and driving innovation"})})]}),(0,L.jsx)(po.A,{sx:{mt:2,borderRadius:"8px",overflow:"hidden"},children:(0,L.jsxs)(dke,{children:[(0,L.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,L.jsx)(pke,{placeholder:"Search AI assistants",value:s,onChange:e=>l(e.target.value),startAdornment:(0,L.jsx)(js,{className:"w-5 h-5"}),className:"flex-1",disabled:f}),(0,L.jsxs)("div",{className:"flex gap-4",children:[(0,L.jsxs)(mke,{value:e,onCh
205ange:e=>t(e.target.value),startIcon:(0,L.jsx)(lke,{className:"w-5 h-5"}),disabled:f,children:[(0,L.jsx)("option",{value:"newest",children:"Newest First"}),(0,L.jsx)("option",{value:"most_chats",children:"Most Chats"}),(0,L.jsx)("option",{value:"most_views",children:"Most Views"}),(0,L.jsx)("option",{value:"a_to_z",children:"Sort A to Z"}),(0,L.jsx)("option",{value:"z_to_a",children:"Sort Z to A"})]}),(0,L.jsxs)("div",{className:"flex gap-2",children:[(0,L.jsx)(hke,{disabled:f,variant:"grid"===n?"contained":"outlined",onClick:()=>r("grid"),children:(0,L.jsx)(cke,{className:"w-4 h-4"})}),(0,L.jsx)(hke,{disabled:f,variant:"list"===n?"contained":"outlined",onClick:()=>r("list"),children:(0,L.jsx)(uke,{className:"w-4 h-4"})})]})]})]}),f?(0,L.jsx)("div",{className:"grid"===n?"grid grid-cols-1 mt-4 md:grid-cols-2 lg:grid-cols-3 gap-6":"space-y-4",children:[...Array(6)].map(((e,t)=>(0,L.jsx)(_,{},t)))}):(0,L.jsxs)("div",{className:"mt-6",children:[b.length>0?"grid"===n?(0,L.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:x.map((e=>(0,L.jsx)(S,{assistant:e},e.id)))}):(0,L.jsx)("div",{className:"space-y-4",children:x.map((e=>(0,L.jsx)(k,{assistant:e},e.id)))}):0===b.length?(0,L.jsxs)("div",{className:"h-[60vh] flex flex-col items-center justify-center text-center",children:[(0,L.jsx)("h2",{className:"text-2xl font-bold mb-2",children:"No AI Assistant Found"}),(0,L.jsx)("p",{className:"text-gray-600 mb-4",children:"Create your new AI assistant!"}),(0,L.jsx)(hke,{variant:"outlined",onClick:()=>p("/kb"),children:"Create AI Assistant"})]}):null,(0,L.jsx)(gke,{totalItems:b.length,itemsPerPage:6,currentPage:o,onPageChange:e=>{a(e),d(null),window.scrollTo({top:0,behavior:"smooth"})}})]})]})})]})};const vke=(0,Ns.A)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);var yke=()=>{var e,t;const n=localStorage.getItem("uid"),r=(0,te.Zp)(),{fetchtrainedBots:i,getKb:o,getCachedUserInfo:a,addToFavorites:s}=ma(),[l,u]=(0,c.useState)("ai-assistants"),[d,p]=(0,c.useState)(""),[h,f]=(0,c.useState)(!1),[m,g]=(0,c.useState)(!1),[b,v]=(0,c.useState)(!1),[y,x]=(0,c.useState)([]),[w,A]=(0,c.useState)([]),[E,S]=(0,c.useState)([]),[_,k]=(0,c.useState)(1);(0,c.useEffect)((()=>{(async()=>{try{const e=new FormData,t=(await a(n)).email;null==t&&(t=localStorage.getItem("email")),e.append("email",t);const r=localStorage.getItem("organization");e.append("organization",r);const s=await o(e),l=await i(n);x(s.kb||[]),A(l.data[0]||[]);const c=await(0,xi.qM)();S(c.favorites)}catch(qUe){console.error("Error fetching data:",qUe)}})();const e=()=>{v(window.innerWidth<768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[n]),(0,c.useEffect)((()=>{k(1)}),[l,d]);const T={"knowledge-hub":y.map((e=>({title:e.file_name,description:e.kb_name,category:"Knowledge Hub",nav:"/kb",onclick:async()=>{await s(null===e||void 0===e?void 0:e.id,"knowledgebase");const t=await(0,xi.qM)();S(t.favorites)},fav:E.some((t=>"Knowledge Hub"===t.category&&t.id===e.id))}))),"ai-assistants":w.map((e=>({title:e.botname,description:"AI Assistant",category:"AI Assistants",nav:`/api?k=${null===e||void 0===e?void 0:e.apikey}`,onclick:async()=>{await s(null===e||void 0===e?void 0:e.id,"bot");const t=await(0,xi.qM)();S(t.favorites)},fav:E.some((t=>"AI Assistants"===t.category&&t.id===e.id))}))),favorites:E.map((e=>({title:"AI Assistants"===e.category?e.botname:e.file_name,description:"AI Assistants"===e.category?"AI Assistant":e.kb_name,category:e.category,nav:"AI Assistants"===e.category?`/api?k=${e.apikey}`:"/kb",onclick:async()=>{await s(null===e||void 0===e?void 0:e.id,"AI Assistants"===e.category?"bot":"knowledgebase");const t=await(0,xi.qM)();S(t.favorites)},fav:!0})))},C=[{id:"favorites",icon:(0,L.jsx)(Is,{className:"w-5 h-5"}),title:"Favorites",items:T.favorites},{id:"knowledge-hub",icon:(0,L.jsx)(Rs,{className:"w-5 h-5"}),title:"Knowledge Hub",items:T["knowledge-hub"]},{id:"ai-assistants",icon:(0,L.jsx)(Ps,{className:"w-5 h-5"}),title:"AI Assistants",items:T["ai-assistants"]}],O=e=>{let{totalItems:t}=e;const n=Math.ceil(t/10);return(0,L.jsx)("div",{className:"flex justify-center mt-6 gap-2",children:Array.from({length:n},((e,t)=>t+1)).map((e=>(0,L.jsx)("button",{onClick:()=>k(e),className:"px-3 py-1 rounded "+(_===e?"bg-purple-600 text-white":"bg-gray-200 hover:bg-gray-300"),children:e},e)))})},N=e=>{let{items:t}=e;const n=10*(_-1),i=t.slice(n,n+10);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{className:"grid gap-4 grid-cols-1 md:grid-cols-2",children:i.map(((e,t)=>(0,L.jsx)("div",{onClick:()=>r(null===e||void 0===e?void 0:e.nav),className:"bg-white rounded-lg p-4 md:p-6 hover:shadow-md transition-all cursor-pointer",children:(0,L.jsx)("div",{className:"flex flex-col h-full",children:(0,L.jsxs)("div",{className:"flex justify-between items-start flex-wrap gap-2",children:[(0,L.jsxs)("div",{className:"flex-1",children:[(0,L.jsx)("h3",{className:"text-lg md:text-xl font-semibold text-gray-900",children:e.title}),(0,L.jsx)("p",{className:"text-gray-600 text-sm md:text-base mt-2",children:e.description})]}),(0,L.jsxs)("div",{className:"flex items-center gap-2",children:[(0,L.jsx)("span",{className:"text-purple-600 text-xs md:text-sm whitespace-nowrap",children:e.category}),(0,L.jsx)(Is,{fill:null!==e&&void 0!==e&&e.fav?"red":"none",className:`w-5 h-5 ${null!==e&&void 0!==e&&e.fav?"text-red-500":"text-gray-400"} hover:text-red-500 cursor-pointer`,onClick:t=>{null===e||void 0===e||e.onclick(),t.stopPropagation()}})]})]})})},t)))}),(0,L.jsx)(O,{totalItems:t.length})]})},I=d?[...T["knowledge-hub"],...T["ai-assistants"]].filter((e=>e.title.toLowerCase().includes(d.toLowerCase())||e.description.toLowerCase().includes(d.toLowerCase())||e.category.toLowerCase().includes(d.toLowerCase()))):"favorites"===l?T.favorites||[]:(null===(e=C.find((e=>e.id===l)))||void 0===e?void 0:e.items)||[];return(0,L.jsxs)("div",{className:"min-h-screen bg-gray-50",children:[(0,L.jsx)("div",{className:"sticky top-0 z-50 bg-white border-b border-gray-200 shadow-sm",children:(0,L.jsx)("div",{className:"max-w-screen-xl mx-auto px-4 py-3",children:(0,L.jsxs)("div",{className:"flex items-center gap-2",children:[b&&!h&&(0,L.jsx)("button",{onClick:()=>{f(!h)},className:"p-2 hover:bg-gray-100 rounded-lg",children:(0,L.jsx)(vke,{className:"h-5 w-5 text-gray-600"})}),(0,L.jsx)("div",{className:"relative flex-1 max-w-3xl mx-auto",children:(0,L.jsxs)("div",{className:`\n                relative flex items-center transition-all duration-200 bg-white\n                ${m?"transform scale-[1.01]":""}\n              `,children:[(0,L.jsx)("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,L.jsx)(js,{className:"h-5 w-5 text-gray-400"})}),(0,L.jsx)("input",{type:"text",placeholder:b?"Search...":"Search knowledge base or AI assistants...",value:d,onChange:e=>p(e.target.value),onFocus:()=>g(!0),onBlur:()=>g(!1),className:"\n                    w-full py-2 md:py-3 pl-10 pr-10\n                    border-2 rounded-full text-sm md:text-base\n                    bg-white \n                    text-gray-900 placeholder-gray-500\n                    focus:outline-none focus:border-purple-500 focus:ring-1 focus:ring-purple-500\n                    transition-all duration-200\n                  "}),d&&(0,L.jsx)("button",{onClick:()=>p(""),className:"absolute right-3 p-1 hover:bg-gray-100 rounded-full",children:(0,L.jsx)(mw,{className:"h-5 w-5 text-gray-400"})})]})})]})})}),(0,L.jsxs)("div",{className:"flex",children:[b&&h&&(0,L.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-40",onClick:()=>f(!1)}),(0,L.jsxs)("nav",{className:`\n          ${b?"fixed inset-y-0 left-0 w-64 z-50 transform transition-transform duration-300 ease-in-out\n               "+(h?"translate-x-0":"-translate-x-full"):"w-64"}\n          bg-white border-r border-gray-200 min-h-screen\n        `,children:[b&&h&&(0,L.jsxs)("div",{className:"p-4 border-b border-gray-200 flex items-center",children:[(0,L.jsx)("button",{onClick:()=>f(!1),className:"p-2 hover:bg-gray-100 rounded-lg",children:(0,L.jsx)(Yae,{className:"h-5 w-5 text-gray-600"})}),(0,L.jsx)("span",{className:"ml-2 font-medium",children:"Menu"})]}),(0,L.jsx)("div",{className:"p-4 space-y-1",children:C.map((e=>(0,L.jsxs)("div",{className:"flex items-center space-x-3 p-3 rounded-lg cursor-pointer\n                  transition-colors "+(l===e.id?"bg-purple-600 text-white":"hover:bg-purple-50 text-gray-600"),onClick:()=>{u(e.id),b&&f(!1)},children:[(0,L.jsx)("div",{className:l===e.id?"text-white":"text-gray-400",children:e.icon}),(0,L.jsx)("div",{className:"font-medium",children:e.title})]},e.id)))})]}),(0,L.jsx)("main",{className:"h-[calc(70vh-200px)] flex-1 p-4 md:p-8 "+(b?"w-full":""),children:(0,L.jsxs)("div",{className:"max-w-6xl mx-auto",children:[(0,L.jsx)("h1",{className:"text-xl md:text-2xl font-bold text-gray-900 mb-6",children:d?"Search Results"+(I.length?`: ${I.length} found`:""):null===(t=C.find((e=>
205e.id===l)))||void 0===t?void 0:t.title}),I.length>0?(0,L.jsx)("div",{className:"overflow-y-auto",children:(0,L.jsx)(N,{items:I})}):(0,L.jsx)("div",{className:"text-gray-600 text-sm md:text-base",children:d?`No results found for "${d}"`:"No items available"})]})})]})]})};const xke=_b((0,c.lazy)((()=>__webpack_require__.e(751).then(__webpack_require__.bind(__webpack_require__,15739)))));var wke={path:"/",element:(0,L.jsx)(Ab,{}),children:[{path:"welcome",element:(0,L.jsx)(ake,{})},{path:"mybots",element:(0,L.jsx)(xke,{})},{path:"marketplace",element:(0,L.jsx)(bke,{})},{path:"search",element:(0,L.jsx)(yke,{})},{path:"upload",element:(0,L.jsx)(qhe,{})},{path:"data",element:(0,L.jsx)(Yhe,{})},{path:"url",element:(0,L.jsx)(Khe,{})},{path:"qa",element:(0,L.jsx)(Xhe,{})},{path:"edit",element:(0,L.jsx)(FH,{})},{path:"profile",element:(0,L.jsx)(_se,{})},{path:"sample",element:(0,L.jsx)(kse,{})},{path:"kb",element:(0,L.jsx)(ffe,{})},{path:"chat",element:(0,L.jsx)(X_e,{})},{path:"docs",element:(0,L.jsx)(Z_e,{})},{path:"audit",element:(0,L.jsx)(ske,{})}]};var Ake=()=>(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(te.sv,{}),(0,L.jsx)(mb,{})]});var Eke=(0,ne.Ay)("div")((e=>{let{theme:t}=e;return{backgroundColor:t.palette.primary.light,minHeight:"100vh"}}));var Ske,_ke,kke=e=>{let{children:t,...n}=e;return(0,L.jsx)(Co.A,{sx:{maxWidth:{xs:400,lg:475},margin:{xs:2.5,md:3},"& > *":{flexGrow:1,flexBasis:"50%"}},content:!1,...n,children:(0,L.jsx)(ue.A,{sx:{p:{xs:2,sm:3,xl:5}},children:t})})};try{Ske=Map}catch(YUe){}try{_ke=Set}catch(YUe){}function Tke(e,t,n){if(!e||"object"!==typeof e||"function"===typeof e)return e;if(e.nodeType&&"cloneNode"in e)return e.cloneNode(!0);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);if(Array.isArray(e))return e.map(Cke);if(Ske&&e instanceof Ske)return new Map(Array.from(e.entries()));if(_ke&&e instanceof _ke)return new Set(Array.from(e.values()));if(e instanceof Object){t.push(e);var r=Object.create(e);for(var i in n.push(r),e){var o=t.findIndex((function(t){return t===e[i]}));r[i]=o>-1?n[o]:Tke(e[i],t,n)}return r}return e}function Cke(e){return Tke(e,[],[])}const Oke=Object.prototype.toString,Nke=Error.prototype.toString,Ike=RegExp.prototype.toString,Rke="undefined"!==typeof Symbol?Symbol.prototype.toString:()=>"",Pke=/^Symbol\((.*)\)(.*)$/;function jke(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null==e||!0===e||!1===e)return""+e;const n=typeof e;if("number"===n)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===n)return t?`"${e}"`:e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return Rke.call(e).replace(Pke,"Symbol($1)");const r=Oke.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+Nke.call(e)+"]":"RegExp"===r?Ike.call(e):null}function Mke(e,t){let n=jke(e,t);return null!==n?n:JSON.stringify(e,(function(e,n){let r=jke(this[e],t);return null!==r?r:n}),2)}let Dke={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:e=>{let{path:t,type:n,value:r,originalValue:i}=e,o=null!=i&&i!==r,a=`${t} must be a \`${n}\` type, but the final value was: \`${Mke(r,!0)}\``+(o?` (cast from the value \`${Mke(i,!0)}\`).`:".");return null===r&&(a+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),a},defined:"${path} must be defined"},Lke={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Fke={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Bke={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Uke={isValue:"${path} field must be ${value}"},zke={noUnknown:"${path} field has unspecified keys: ${unknown}"},Hke={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};Object.assign(Object.create(null),{mixed:Dke,string:Lke,number:Fke,date:Bke,object:zke,array:Hke,boolean:Uke});var $ke=__webpack_require__(26094),Vke=__webpack_require__.n($ke);var Gke=e=>e&&e.__isYupSchema__;var Wke=class{constructor(e,t){if(this.fn=void 0,this.refs=e,this.refs=e,"function"===typeof t)return void(this.fn=t);if(!Vke()(t,"is"))throw new TypeError("`is:` is required for `when()` conditions");
205if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:r,otherwise:i}=t,o="function"===typeof n?n:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.every((e=>e===n))};this.fn=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let a=t.pop(),s=t.pop(),l=o(...t)?r:i;if(l)return"function"===typeof l?l(s):s.concat(l.resolve(a))}}resolve(e,t){let n=this.refs.map((e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context))),r=this.fn.apply(e,n.concat(e,t));if(void 0===r||r===e)return e;if(!Gke(r))throw new TypeError("conditions must return a schema object");return r.resolve(t)}};function qke(e){return null==e?[]:[].concat(e)}function Yke(){return Yke=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yke.apply(this,arguments)}let Kke=/\$\{\s*(\w+)\s*\}/g;class Xke extends Error{static formatError(e,t){const n=t.label||t.path||"this";return n!==t.path&&(t=Yke({},t,{path:n})),"string"===typeof e?e.replace(Kke,((e,n)=>Mke(t[n]))):"function"===typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,n,r){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],qke(e).forEach((e=>{Xke.isError(e)?(this.errors.push(...e.errors),this.inner=this.inner.concat(e.inner.length?e.inner:e)):this.errors.push(e)})),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,Xke)}}function Zke(e,t){let{endEarly:n,tests:r,args:i,value:o,errors:a,sort:s,path:l}=e,c=(e=>{let t=!1;return function(){t||(t=!0,e(...arguments))}})(t),u=r.length;const d=[];if(a=a||[],!u)return a.length?c(new Xke(a,o,l)):c(null,o);for(let p=0;p<r.length;p++){(0,r[p])(i,(function(e){if(e){if(!Xke.isError(e))return c(e,o);if(n)return e.value=o,c(e,o);d.push(e)}if(--u<=0){if(d.length&&(s&&d.sort(s),a.length&&d.push(...a),a=d),a.length)return void c(new Xke(a,o,l),o);c(null,o)}}))}}var Qke=__webpack_require__(6638),Jke=__webpack_require__.n(Qke),eTe=__webpack_require__(88974);const tTe="$",nTe=".";class rTe{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!==typeof e)throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===tTe,this.isValue=this.key[0]===nTe,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?tTe:this.isValue?nTe:"";this.path=this.key.slice(n.length),this.getter=this.path&&(0,eTe.getter)(this.path,!0),this.map=t.map}getValue(e,t,n){let r=this.isContext?n:this.isValue?e:t;return this.getter&&(r=this.getter(r||{})),this.map&&(r=this.map(r)),r}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}function iTe(){return iTe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iTe.apply(this,arguments)}function oTe(e){function t(t,n){let{value:r,path:i="",label:o,options:a,originalValue:s,sync:l}=t,c=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["value","path","label","options","originalValue","sync"]);const{name:u,test:d,params:p,message:h}=e;let{parent:f,context:m}=a;function g(e){return rTe.isRef(e)?e.getValue(r,f,m):e}function b(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Jke()(iTe({value:r,originalValue:s,label:o,path:e.path||i},p,e.params),g),n=new Xke(Xke.formatError(e.message||h,t),r,t.path,e.type||u);return n.params=t,n}let v,y=iTe({path:i,parent:f,type:u,createError:b,resolve:g,options:a,originalValue:s},c);if(l){try{var x;if(v=d.call(y,r,y),"function"===typeof(null==(x=v)?void 0:x.then))throw new Error(`Validation test of type: "${y.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(w){return void n(w)}Xke.isError(v)?n(v):v?n(null,v):n(b())}else try{Promise.resolve(d.call(y,r,y)).then((e=>{Xke.isError(e)?n(e):e?n(null,e):n(b())})).catch(n)}catch(w){n(w)}}return t.OPTIONS=e,t}rTe.prototype.__isYupRef=!0;function aTe(e,t,n){let r,i,o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return t?((0,eTe.forEach)(t,((s,l,c)=>{let u=l?(e=>e.substr(0,e.length-1).substr(1))(s):s;
205if((e=e.resolve({context:a,parent:r,value:n})).innerType){let i=c?parseInt(u,10):0;if(n&&i>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);r=n,n=n&&n[i],e=e.innerType}if(!c){if(!e.fields||!e.fields[u])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${o} which is a type: "${e._type}")`);r=n,n=n&&n[u],e=e.fields[u]}i=u,o=l?"["+s+"]":"."+s})),{schema:e,parent:r,parentPath:i}):{parent:r,parentPath:t,schema:e}}class sTe{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){const e=[];for(const t of this.list)e.push(t);for(const[,t]of this.refs)e.push(t.describe());return e}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(e){return this.toArray().reduce(((t,n)=>t.concat(rTe.isRef(n)?e(n):n)),[])}add(e){rTe.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){rTe.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){const e=new sTe;return e.list=new Set(this.list),e.refs=new Map(this.refs),e}merge(e,t){const n=this.clone();return e.list.forEach((e=>n.add(e))),e.refs.forEach((e=>n.add(e))),t.list.forEach((e=>n.delete(e))),t.refs.forEach((e=>n.delete(e))),n}}function lTe(){return lTe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lTe.apply(this,arguments)}class cTe{constructor(e){this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this._typeError=void 0,this._whitelist=new sTe,this._blacklist=new sTe,this.exclusiveTests=Object.create(null),this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation((()=>{this.typeError(Dke.notType)})),this.type=(null==e?void 0:e.type)||"mixed",this.spec=lTe({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},null==e?void 0:e.spec)}get _type(){return this.type}_typeCheck(e){return!0}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeError=this._typeError,t._whitelistError=this._whitelistError,t._blacklistError=this._blacklistError,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.exclusiveTests=lTe({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=Cke(lTe({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(){if(0===arguments.length)return this.spec.meta;let e=this.clone();return e.spec.meta=Object.assign(e.spec.meta||{},arguments.length<=0?void 0:arguments[0]),e}withMutation(e){let t=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=t,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=this,n=e.clone();const r=lTe({},t.spec,n.spec);return n.spec=r,n._typeError||(n._typeError=t._typeError),n._whitelistError||(n._whitelistError=t._whitelistError),n._blacklistError||(n._blacklistError=t._blacklistError),n._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),n._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),n.tests=t.tests,n.exclusiveTests=t.exclusiveTests,n.withMutation((t=>{e.tests.forEach((e=>{t.test(e.OPTIONS)}))})),n.transforms=[...t.transforms,...n.transforms],n}isType(e){return!(!this.spec.nullable||null!==e)||this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let n=t.conditions;t=t.clone(),t.conditions=[],t=n.reduce(((t,n)=>n.resolve(t,e)),t),t=t.resolve(e)}return t}cast(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.resolve(lTe({value:e},t)),r=n._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==n.isType(r)){let i=Mke(e),o=Mke(r);throw new TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${n._type}". \n\nattempted value: ${i} \n`+(o!==i?`result of cast: ${o}`:""))}return r}_cast(e,t){let n=void 0===e?e:this.transforms.reduce(((t,n)=>n.call(this,t,e,this)),e);return void 0===n&&(n=this.getDefault()),n}_validate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,{sync:r,path:i,from:o=[],originalValue:a=e,strict:s=this.spec.strict,abortEarly:l=this.spec.abortEarly}=t,c=e;s||(c=this._cast(c,lTe({assert:!1},t)));let u={value:c,path:i,options:t,originalValue:a,schema:this,label:this.spec.label,sync:r,from:o},d=[];this._typeError&&d.push(this._typeError);let p=[];this._whitelistError&&p.push(this._whitelistError),this._blacklistError&&p.push(this._blacklistError),Zke({args:u,value:c,path:i,sync:r,tests:d,endEarly:l},(e=>{e?n(e,c):Zke({tests:this.tests.concat(p),args:u,path:i,sync:r,value:c,endEarly:l},n)}))}validate(e,t,n){let r=this.resolve(lTe({},t,{value:e}));return"function"===typeof n?r._validate(e,t,n):new Promise(((n,i)=>r._validate(e,t,((e,t)=>
205{e?i(e):n(t)}))))}validateSync(e,t){let n;return this.resolve(lTe({},t,{value:e}))._validate(e,lTe({},t,{sync:!0}),((e,t)=>{if(e)throw e;n=t})),n}isValid(e,t){return this.validate(e,t).then((()=>!0),(e=>{if(Xke.isError(e))return!1;throw e}))}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(n){if(Xke.isError(n))return!1;throw n}}_getDefault(){let e=this.spec.default;return null==e?e:"function"===typeof e?e.call(this):Cke(e)}getDefault(e){return this.resolve(e||{})._getDefault()}default(e){if(0===arguments.length)return this._getDefault();return this.clone({default:e})}strict(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.clone();return t.spec.strict=e,t}_isPresent(e){return null!=e}defined(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Dke.defined;return this.test({message:e,name:"defined",exclusive:!0,test(e){return void 0!==e}})}required(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Dke.required;return this.clone({presence:"required"}).withMutation((t=>t.test({message:e,name:"required",exclusive:!0,test(e){return this.schema._isPresent(e)}})))}notRequired(){let e=this.clone({presence:"optional"});return e.tests=e.tests.filter((e=>"required"!==e.OPTIONS.name)),e}nullable(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.clone({nullable:!1!==e})}transform(e){let t=this.clone();return t.transforms.push(e),t}test(){let e;if(e=1===arguments.length?"function"===typeof(arguments.length<=0?void 0:arguments[0])?{test:arguments.length<=0?void 0:arguments[0]}:arguments.length<=0?void 0:arguments[0]:2===arguments.length?{name:arguments.length<=0?void 0:arguments[0],test:arguments.length<=1?void 0:arguments[1]}:{name:arguments.length<=0?void 0:arguments[0],message:arguments.length<=1?void 0:arguments[1],test:arguments.length<=2?void 0:arguments[2]},void 0===e.message&&(e.message=Dke.default),"function"!==typeof e.test)throw new TypeError("`test` is a required parameters");let t=this.clone(),n=oTe(e),r=e.exclusive||e.name&&!0===t.exclusiveTests[e.name];if(e.exclusive&&!e.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return e.name&&(t.exclusiveTests[e.name]=!!e.exclusive),t.tests=t.tests.filter((t=>{if(t.OPTIONS.name===e.name){if(r)return!1;if(t.OPTIONS.test===n.OPTIONS.test)return!1}return!0})),t.tests.push(n),t}when(e,t){Array.isArray(e)||"string"===typeof e||(t=e,e=".");let n=this.clone(),r=qke(e).map((e=>new rTe(e)));return r.forEach((e=>{e.isSibling&&n.deps.push(e.key)})),n.conditions.push(new Wke(r,t)),n}typeError(e){let t=this.clone();return t._typeError=oTe({message:e,name:"typeError",test(e){return!(void 0!==e&&!this.schema.isType(e))||this.createError({params:{type:this.schema._type}})}}),t}oneOf(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dke.oneOf,n=this.clone();return e.forEach((e=>{n._whitelist.add(e),n._blacklist.delete(e)})),n._whitelistError=oTe({message:t,name:"oneOf",test(e){if(void 0===e)return!0;let t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:n}})}}),n}notOneOf(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dke.notOneOf,n=this.clone();return e.forEach((e=>{n._blacklist.add(e),n._whitelist.delete(e)})),n._blacklistError=oTe({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:n}})}}),n}strip(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.clone();return t.spec.strip=e,t}describe(){const e=this.clone(),{label:t,meta:n}=e.spec,r={meta:n,label:t,type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map((e=>({name:e.OPTIONS.name,params:e.OPTIONS.params}))).filter(((e,t,n)=>n.findIndex((t=>t.name===e.name))===t))};return r}}cTe.prototype.__isYupSchema__=!0;for(const KUe of["validate","validateSync"])cTe.prototype[`${KUe}At`]=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{parent:r,parentPath:i,schema:o}=aTe(this,e,t,n.context);return o[KUe](r&&r[i],lTe({},n,{parent:r,path:e}))};for(const KUe of["equals","is"])cTe.prototype[KUe]=cTe.prototype.oneOf;for(const KUe of["not","nope"])cTe.prototype[KUe]=cTe.prototype.notOneOf;cTe.prototype.optional=cTe.prototype.notRequired;const uTe=cTe;uTe.prototype;var dTe=e=>null==e;class pTe extends cTe{constructor(){super({type:"boolean"}),this.withMutation((()=>{this.transform((function(e){if(!this.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;
205if(/^(false|0)$/i.test(String(e)))return!1}return e}))}))}_typeCheck(e){return e instanceof Boolean&&(e=e.valueOf()),"boolean"===typeof e}isTrue(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Uke.isValue;return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test(e){return dTe(e)||!0===e}})}isFalse(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Uke.isValue;return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test(e){return dTe(e)||!1===e}})}}pTe.prototype;let hTe=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,fTe=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,mTe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,gTe=e=>dTe(e)||e===e.trim(),bTe={}.toString();function vTe(){return new yTe}class yTe extends cTe{constructor(){super({type:"string"}),this.withMutation((()=>{this.transform((function(e){if(this.isType(e))return e;if(Array.isArray(e))return e;const t=null!=e&&e.toString?e.toString():e;return t===bTe?e:t}))}))}_typeCheck(e){return e instanceof String&&(e=e.valueOf()),"string"===typeof e}_isPresent(e){return super._isPresent(e)&&!!e.length}length(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Lke.length;return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return dTe(t)||t.length===this.resolve(e)}})}min(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Lke.min;return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return dTe(t)||t.length>=this.resolve(e)}})}max(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Lke.max;return this.test({name:"max",exclusive:!0,message:t,params:{max:e},test(t){return dTe(t)||t.length<=this.resolve(e)}})}matches(e,t){let n,r,i=!1;return t&&("object"===typeof t?({excludeEmptyString:i=!1,message:n,name:r}=t):n=t),this.test({name:r||"matches",message:n||Lke.matches,params:{regex:e},test:t=>dTe(t)||""===t&&i||-1!==t.search(e)})}email(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lke.email;return this.matches(hTe,{name:"email",message:e,excludeEmptyString:!0})}url(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lke.url;return this.matches(fTe,{name:"url",message:e,excludeEmptyString:!0})}uuid(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lke.uuid;return this.matches(mTe,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform((e=>null===e?"":e))}trim(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lke.trim;return this.transform((e=>null!=e?e.trim():e)).test({message:e,name:"trim",test:gTe})}lowercase(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lke.lowercase;return this.transform((e=>dTe(e)?e:e.toLowerCase())).test({message:e,name:"string_case",exclusive:!0,test:e=>dTe(e)||e===e.toLowerCase()})}uppercase(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lke.uppercase;return this.transform((e=>dTe(e)?e:e.toUpperCase())).test({message:e,name:"string_case",exclusive:!0,test:e=>dTe(e)||e===e.toUpperCase()})}}vTe.prototype=yTe.prototype;class xTe extends cTe{constructor(){super({type:"number"}),this.withMutation((()=>{this.transform((function(e){let t=e;if("string"===typeof t){if(t=t.replace(/\s/g,""),""===t)return NaN;t=+t}return this.isType(t)?t:parseFloat(t)}))}
205))}_typeCheck(e){return e instanceof Number&&(e=e.valueOf()),"number"===typeof e&&!(e=>e!=+e)(e)}min(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fke.min;return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return dTe(t)||t>=this.resolve(e)}})}max(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fke.max;return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return dTe(t)||t<=this.resolve(e)}})}lessThan(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fke.lessThan;return this.test({message:t,name:"max",exclusive:!0,params:{less:e},test(t){return dTe(t)||t<this.resolve(e)}})}moreThan(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fke.moreThan;return this.test({message:t,name:"min",exclusive:!0,params:{more:e},test(t){return dTe(t)||t>this.resolve(e)}})}positive(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fke.positive;return this.moreThan(0,e)}negative(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fke.negative;return this.lessThan(0,e)}integer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fke.integer;return this.test({name:"integer",message:e,test:e=>dTe(e)||Number.isInteger(e)})}truncate(){return this.transform((e=>dTe(e)?e:0|e))}round(e){var t;let n=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===n.indexOf(e.toLowerCase()))throw new TypeError("Only valid options for round() are: "+n.join(", "));return this.transform((t=>dTe(t)?t:Math[e](t)))}}xTe.prototype;var wTe=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let ATe=new Date("");function ETe(){return new STe}class STe extends cTe{constructor(){super({type:"date"}),this.withMutation((()=>{this.transform((function(e){return this.isType(e)?e:(e=function(e){var t,n,r=[1,4,5,6,7,10,11],i=0;if(n=wTe.exec(e)){for(var o,a=0;o=r[a];++a)n[o]=+n[o]||0;n[2]=(+n[2]||1)-1,n[3]=+n[3]||1,n[7]=n[7]?String(n[7]).substr(0,3):0,void 0!==n[8]&&""!==n[8]||void 0!==n[9]&&""!==n[9]?("Z"!==n[8]&&void 0!==n[9]&&(i=60*n[10]+n[11],"+"===n[9]&&(i=0-i)),t=Date.UTC(n[1],n[2],n[3],n[4],n[5]+i,n[6],n[7])):t=+new Date(n[1],n[2],n[3],n[4],n[5],n[6],n[7])}else t=Date.parse?Date.parse(e):NaN;return t}(e),isNaN(e)?ATe:new Date(e))}))}))}_typeCheck(e){return t=e,"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(e.getTime());var t}prepareParam(e,t){let n;if(rTe.isRef(e))n=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw new TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);n=r}return n}min(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bke.min,n=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(e){return dTe(e)||e>=this.resolve(n)}})}max(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bke.max,n=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(e){return dTe(e)||e<=this.resolve(n)}})}}STe.INVALID_DATE=ATe,ETe.prototype=STe.prototype,ETe.INVALID_DATE=ATe;var _Te=__webpack_require__(51170),kTe=__webpack_require__.n(_Te),TTe=__webpack_require__(56808),CTe=__webpack_require__.n(TTe),OTe=__webpack_require__(6540),NTe=__webpack_require__.n(OTe),ITe=__webpack_require__(52551),RTe=__webpack_require__.n(ITe);function PTe(e,t){let n=1/0;return e.some(((e,r)=>{var i;if(-1!==(null==(i=t.path)?void 0:i.indexOf(e)))return n=r,!0})),n}function jTe(e){return(t,n)=>PTe(e,t)-PTe(e,n)}function MTe(){return MTe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MTe.apply(this,arguments)}let DTe=e=>"[object Object]"===Object.prototype.toString.call(e);const LTe=jTe([]);class FTe extends cTe{constructor(e){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=LTe,this._nodes=[],this._excludedEdges=[],this.withMutation((()=>{this.transform((function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null})),e&&this.shape(e)}))}_typeCheck(e){return DTe(e)||"function"===typeof e}_cast(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n;let r=super._cast(e,t);if(void 0===r)return this.getDefault();if(!this._typeCheck(r))return r;let i=this.fields,o=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,a=this._nodes.concat(Object.keys(r).filter((e=>-1===this._nodes.indexOf(e)))),s={},l=MTe({},t,{parent:s,__validating:t.__validating||!1}),c=!1;for(const u of a){let e=i[u],n=Vke()(r,u);if(e){let n,i=r[u];l.path=(t.path?`${t.path}.`:"")+u,e=e.resolve({value:i,context:t.context,parent:s});let o="spec"in e?e.spec:void 0,a=null==o?void 0:o.strict;if(null==o?void 0:o.strip){c=c||u in r;continue}n=t.__validating&&a?r[u]:e.cast(r[u],l),void 0!==n&&(s[u]=n)}else n&&!o&&(s[u]=r[u]);s[u]!==r[u]&&(c=!0)}return c?s:r}_validate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=[],{sync:i,from:o=[],originalValue:a=e,abortE
205arly:s=this.spec.abortEarly,recursive:l=this.spec.recursive}=t;o=[{schema:this,value:a},...o],t.__validating=!0,t.originalValue=a,t.from=o,super._validate(e,t,((e,c)=>{if(e){if(!Xke.isError(e)||s)return void n(e,c);r.push(e)}if(!l||!DTe(c))return void n(r[0]||null,c);a=a||c;let u=this._nodes.map((e=>(n,r)=>{let i=-1===e.indexOf(".")?(t.path?`${t.path}.`:"")+e:`${t.path||""}["${e}"]`,s=this.fields[e];s&&"validate"in s?s.validate(c[e],MTe({},t,{path:i,from:o,strict:!0,parent:c,originalValue:a[e]}),r):r(null)}));Zke({sync:i,tests:u,value:c,errors:r,endEarly:s,sort:this._sortErrors,path:t.path},n)}))}clone(e){const t=super.clone(e);return t.fields=MTe({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),n=t.fields;for(let[r,i]of Object.entries(this.fields)){const e=n[r];void 0===e?n[r]=i:e instanceof cTe&&i instanceof cTe&&(n[r]=i.concat(e))}return t.withMutation((()=>t.shape(n,this._excludedEdges)))}getDefaultFromShape(){let e={};return this._nodes.forEach((t=>{const n=this.fields[t];e[t]="default"in n?n.getDefault():void 0})),e}_getDefault(){return"default"in this.spec?super._getDefault():this._nodes.length?this.getDefaultFromShape():void 0}shape(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this.clone(),r=Object.assign(n.fields,e);return n.fields=r,n._sortErrors=jTe(Object.keys(r)),t.length&&(Array.isArray(t[0])||(t=[t]),n._excludedEdges=[...n._excludedEdges,...t]),n._nodes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=new Set,i=new Set(t.map((e=>{let[t,n]=e;return`${t}-${n}`})));function o(e,t){let o=(0,eTe.split)(e)[0];r.add(o),i.has(`${t}-${o}`)||n.push([t,o])}for(const a in e)if(Vke()(e,a)){let t=e[a];r.add(a),rTe.isRef(t)&&t.isSibling?o(t.path,a):Gke(t)&&"deps"in t&&t.deps.forEach((e=>o(e,a)))}return RTe().array(Array.from(r),n).reverse()}(r,n._excludedEdges),n}pick(e){const t={};for(const n of e)this.fields[n]&&(t[n]=this.fields[n]);return this.clone().withMutation((e=>(e.fields={},e.shape(t))))}omit(e){const t=this.clone(),n=t.fields;t.fields={};for(const r of e)delete n[r];return t.withMutation((()=>t.shape(n)))}from(e,t,n){let r=(0,eTe.getter)(e,!0);return this.transform((i=>{if(null==i)return i;let o=i;return Vke()(i,e)&&(o=MTe({},i),n||delete o[e],o[t]=r(i)),o}))}noUnknown(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zke.noUnknown;"string"===typeof e&&(t=e,e=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){if(null==t)return!0;const n=function(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter((e=>-1===n.indexOf(e)))}(this.schema,t);return!e||0===n.length||this.createError({params:{unknown:n.join(", ")}})}});return n.spec.noUnknown=e,n}unknown(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zke.noUnknown;return this.noUnknown(!e,t)}transformKeys(e){return this.transform((t=>t&&NTe()(t,((t,n)=>e(n)))))}camelCase(){return this.transformKeys(CTe())}snakeCase(){return this.transformKeys(kTe())}constantCase(){return this.transformKeys((e=>kTe()(e).toUpperCase()))}describe(){let e=super.describe();return e.fields=Jke()(this.fields,(e=>e.describe())),e}}function BTe(e){return new FTe(e)}function UTe(){return UTe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UTe.apply(this,arguments)}BTe.prototype=FTe.prototype;class zTe extends cTe{constructor(e){super({type:"array"}),this.innerType=void 0,this.innerType=e,this.withMutation((()=>{this.transform((function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null}))}))}_typeCheck(e){return Array.isArray(e)}get _subType(){return this.innerType}_cast(e,t){const n=super._cast(e,t);if(!this._typeCheck(n)||!this.innerType)return n;let r=!1;const i=n.map(((e,n)=>{const i=this.innerType.cast(e,UTe({},t,{path:`${t.path||""}[${n}]`}));return i!==e&&(r=!0),i}));return r?i:n}_validate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;var r,i;let o=[],a=t.sync,s=t.path,l=this.innerType,c=null!=(r=t.abortEarly)?r:this.spec.abortEarly,u=null!=(i=t.recursive)?i:this.spec.recursive,d=null!=t.originalValue?t.originalValue:e;super._validate(e,t,((e,r)=>{if(e){if(!Xke.isError(e)||c)return void n(e,r);o.push(e)}if(!u||!l||!this._typeCheck(r))return void n(o[0]||null,r);d=d||r;let i=new Array(r.length);for(let n=0;n<r.length;n++){let e=r[n],o=`${t.path||""}[${n}]`,a=UTe({},t,{path:o,strict:!0,parent:r,index:n,originalValue:d[n]});i[n]=(t,n)=>l.validate(e,a,n)}Zke({sync:a,path:s,value:r,errors:o,endEarly:c,tests:i},n)}))}clone(e){const t=super.clone(e);return t.innerType=this.innerType,t}concat(e){let t=super.concat(e);return t.innerType=this.innerType,e.innerType&&(t.innerType=t.innerType?t.innerType.concat(e.innerType):e.innerType),t}of(e){let t=this.clone();if(!Gke(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+Mke(e));return t.innerType=e,t}length(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Hke.length;return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return dTe(t)||t.length===this.resolve(e)}})}min(e,t){return t=t||Hke.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return dTe(t)||t.length>=this.resolve(e)}})}max(e,t){return t=t||Hke.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return dTe(t)||t.length<=this.resolve(e)}})}ensure(){return this.default((()=>[])).transform(((e,t)=>this._typeCheck(e)?e:null==t?[]:[].concat(t)))}compact(e){let t=e?(t,n,r)=>!e(t,n,r):e=>!!e;return this.transform((e=>null!=e?e.filter(t):e))}describe(){let e=super.describe();return this.innerType&&(e.innerType=this.innerType.describe()),e}nullable(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return super.nullable(e)}defined(){return super.defined()}required(e){return super.required(e)}}zTe.prototype;var HTe=function(e){return function(e){return!!e&&"object"===typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===$Te}(e)}(e)};var $Te="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function VTe(e,t){return!1!==t.clone&&t.isMergeableObject(e)?WTe((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function GTe(e,t,n){return e.concat(t).map((function(e){return VTe(e,n)}))}function WTe(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||GTe,n.isMergeableObject=n.isMergeableObject||HTe;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach((function(t){r[t]=VTe(e[t],n)})),Object.keys(t).forEach((function(i){n.isMergeableObject(t[i])&&e[i]?r[i]=WTe(e[i],t[i],n):r[i]=VTe(t[i],n)})),r}(e,t,n):VTe(t,n)}WTe.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return WTe(e,n,t)}),{})};var qTe=WTe,YTe="object"==typeof global&&global&&global.Object===Object&&global,KTe="object"==typeof self&&self&&self.Object===Object&&self,XTe=YTe||KTe||Function("return this")(),ZTe=XTe.Symbol,QTe=Object.prototype,JTe=QTe.hasOwnProperty,eCe=QTe.toString,tCe=ZTe?ZTe.toStringTag:void 0;var nCe=function(e){var t=JTe.call(e,tCe),n=e[tCe];try{e[tCe]=void 0;var r=!0}catch(o){}var i=eCe.call(e);return r&&(t?e[tCe]=n:delete e[tCe]),i},rCe=Object.prototype.toString;var iCe=function(e){return rCe.call(e)},oCe=ZTe?ZTe.toStringTag:void 0;
vendor: 4,753 bytes, line 205
205var aCe=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":oCe&&oCe in Object(e)?nCe(e):iCe(e)};var sCe=function(e,t){return function(n){return e(t(n))}},lCe=sCe(Object.getPrototypeOf,Object);var cCe=function(e){return null!=e&&"object"==typeof e},uCe=Function.prototype,dCe=Object.prototype,pCe=uCe.toString,hCe=dCe.hasOwnProperty,fCe=pCe.call(Object);var mCe=function(e){if(!cCe(e)||"[object Object]"!=aCe(e))return!1;var t=lCe(e);if(null===t)return!0;var n=hCe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&pCe.call(n)==fCe};var gCe=function(){this.__data__=[],this.size=0};var bCe=function(e,t){return e===t||e!==e&&t!==t};var vCe=function(e,t){for(var n=e.length;n--;)if(bCe(e[n][0],t))return n;return-1},yCe=Array.prototype.splice;var xCe=function(e){var t=this.__data__,n=vCe(t,e);return!(n<0)&&(n==t.length-1?t.pop():yCe.call(t,n,1),--this.size,!0)};var wCe=function(e){var t=this.__data__,n=vCe(t,e);return n<0?void 0:t[n][1]};var ACe=function(e){return vCe(this.__data__,e)>-1};var ECe=function(e,t){var n=this.__data__,r=vCe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function SCe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}SCe.prototype.clear=gCe,SCe.prototype.delete=xCe,SCe.prototype.get=wCe,SCe.prototype.has=ACe,SCe.prototype.set=ECe;var _Ce=SCe;var kCe=function(){this.__data__=new _Ce,this.size=0};var TCe=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var CCe=function(e){return this.__data__.get(e)};var OCe=function(e){return this.__data__.has(e)};var NCe=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var ICe=function(e){if(!NCe(e))return!1;var t=aCe(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},RCe=XTe["__core-js_shared__"],PCe=function(){var e=/[^.]+$/.exec(RCe&&RCe.keys&&RCe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var jCe=function(e){return!!PCe&&PCe in e},MCe=Function.prototype.toString;var DCe=function(e){if(null!=e){try{return MCe.call(e)}catch(t){}try{return e+""}catch(t){}}return""},LCe=/^\[object .+?Constructor\]$/,FCe=Function.prototype,BCe=Object.prototype,UCe=FCe.toString,zCe=BCe.hasOwnProperty,HCe=RegExp("^"+UCe.call(zCe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var $Ce=function(e){return!(!NCe(e)||jCe(e))&&(ICe(e)?HCe:LCe).test(DCe(e))};var VCe=function(e,t){return null==e?void 0:e[t]};var GCe=function(e,t){var n=VCe(e,t);return $Ce(n)?n:void 0},WCe=GCe(XTe,"Map"),qCe=GCe(Object,"create");var YCe=function(){this.__data__=qCe?qCe(null):{},this.size=0};var KCe=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},XCe=Object.prototype.hasOwnProperty;var ZCe=function(e){var t=this.__data__;if(qCe){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return XCe.call(t,e)?t[e]:void 0},QCe=Object.prototype.hasOwnProperty;var JCe=function(e){var t=this.__data__;return qCe?void 0!==t[e]:QCe.call(t,e)};var eOe=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=qCe&&void 0===t?"__lodash_hash_undefined__":t,this};function tOe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}tOe.prototype.clear=YCe,tOe.prototype.delete=KCe,tOe.prototype.get=ZCe,tOe.prototype.has=JCe,tOe.prototype.set=eOe;var nOe=tOe;var rOe=function(){this.size=0,this.__data__={hash:new nOe,map:new(WCe||_Ce),string:new nOe}};var iOe=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var oOe=function(e,t){var n=e.__data__;return iOe(t)?n["string"==typeof t?"string":"hash"]:n.map};var aOe=function(e){var t=oOe(this,e).delete(e);return this.size-=t?1:0,t};var sOe=function(e){return oOe(this,e).get(e)};var lOe=function(e){return oOe(this,e).has(e)};var cOe=function(e,t){var n=oOe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function uOe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}uOe.prototype.clear=rOe,uOe.prototype.delete=aOe,uOe.prototype.get=sOe,uOe.prototype.has=lOe,uOe.prototype.set=cOe;var dOe=uOe;var pOe=function(e,t){var n=this.__data__;if(n instanceof _Ce){var r=n.__data__;if(!WCe||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new dOe(r)}return n.set(e,t),this.size=n.size,this};function hOe(e){var t=this.__data__=new _Ce(e);this.size=t.size}hOe.prototype.clear=kCe,hOe.prototype.delete=TCe,hOe.prototype.get=CCe,hOe.prototype.has=OCe,hOe.prototype.set=pOe;var fOe=hOe;var mOe=function(e,t){for(var n=-1,r=null==e?0:e.length;
vendor: 5,129 bytes, line 205
205++n<r&&!1!==t(e[n],n,e););return e},gOe=function(){try{var e=GCe(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();var bOe=function(e,t,n){"__proto__"==t&&gOe?gOe(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},vOe=Object.prototype.hasOwnProperty;var yOe=function(e,t,n){var r=e[t];vOe.call(e,t)&&bCe(r,n)&&(void 0!==n||t in e)||bOe(e,t,n)};var xOe=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),i?bOe(n,s,l):yOe(n,s,l)}return n};var wOe=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var AOe=function(e){return cCe(e)&&"[object Arguments]"==aCe(e)},EOe=Object.prototype,SOe=EOe.hasOwnProperty,_Oe=EOe.propertyIsEnumerable,kOe=AOe(function(){return arguments}())?AOe:function(e){return cCe(e)&&SOe.call(e,"callee")&&!_Oe.call(e,"callee")},TOe=kOe,COe=Array.isArray;var OOe=function(){return!1},NOe="object"==typeof exports&&exports&&!exports.nodeType&&exports,IOe=NOe&&"object"==typeof module&&module&&!module.nodeType&&module,ROe=IOe&&IOe.exports===NOe?XTe.Buffer:void 0,POe=(ROe?ROe.isBuffer:void 0)||OOe,jOe=/^(?:0|[1-9]\d*)$/;var MOe=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&jOe.test(e))&&e>-1&&e%1==0&&e<t};var DOe=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},LOe={};LOe["[object Float32Array]"]=LOe["[object Float64Array]"]=LOe["[object Int8Array]"]=LOe["[object Int16Array]"]=LOe["[object Int32Array]"]=LOe["[object Uint8Array]"]=LOe["[object Uint8ClampedArray]"]=LOe["[object Uint16Array]"]=LOe["[object Uint32Array]"]=!0,LOe["[object Arguments]"]=LOe["[object Array]"]=LOe["[object ArrayBuffer]"]=LOe["[object Boolean]"]=LOe["[object DataView]"]=LOe["[object Date]"]=LOe["[object Error]"]=LOe["[object Function]"]=LOe["[object Map]"]=LOe["[object Number]"]=LOe["[object Object]"]=LOe["[object RegExp]"]=LOe["[object Set]"]=LOe["[object String]"]=LOe["[object WeakMap]"]=!1;var FOe=function(e){return cCe(e)&&DOe(e.length)&&!!LOe[aCe(e)]};var BOe=function(e){return function(t){return e(t)}},UOe="object"==typeof exports&&exports&&!exports.nodeType&&exports,zOe=UOe&&"object"==typeof module&&module&&!module.nodeType&&module,HOe=zOe&&zOe.exports===UOe&&YTe.process,$Oe=function(){try{var e=zOe&&zOe.require&&zOe.require("util").types;return e||HOe&&HOe.binding&&HOe.binding("util")}catch(t){}}(),VOe=$Oe&&$Oe.isTypedArray,GOe=VOe?BOe(VOe):FOe,WOe=Object.prototype.hasOwnProperty;var qOe=function(e,t){var n=COe(e),r=!n&&TOe(e),i=!n&&!r&&POe(e),o=!n&&!r&&!i&&GOe(e),a=n||r||i||o,s=a?wOe(e.length,String):[],l=s.length;for(var c in e)!t&&!WOe.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||MOe(c,l))||s.push(c);return s},YOe=Object.prototype;var KOe=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||YOe)},XOe=sCe(Object.keys,Object),ZOe=Object.prototype.hasOwnProperty;var QOe=function(e){if(!KOe(e))return XOe(e);var t=[];for(var n in Object(e))ZOe.call(e,n)&&"constructor"!=n&&t.push(n);return t};var JOe=function(e){return null!=e&&DOe(e.length)&&!ICe(e)};var eNe=function(e){return JOe(e)?qOe(e):QOe(e)};var tNe=function(e,t){return e&&xOe(t,eNe(t),e)};var nNe=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},rNe=Object.prototype.hasOwnProperty;var iNe=function(e){if(!NCe(e))return nNe(e);var t=KOe(e),n=[];for(var r in e)("constructor"!=r||!t&&rNe.call(e,r))&&n.push(r);return n};var oNe=function(e){return JOe(e)?qOe(e,!0):iNe(e)};var aNe=function(e,t){return e&&xOe(t,oNe(t),e)},sNe="object"==typeof exports&&exports&&!exports.nodeType&&exports,lNe=sNe&&"object"==typeof module&&module&&!module.nodeType&&module,cNe=lNe&&lNe.exports===sNe?XTe.Buffer:void 0,uNe=cNe?cNe.allocUnsafe:void 0;var dNe=function(e,t){if(t)return e.slice();var n=e.length,r=uNe?uNe(n):new e.constructor(n);return e.copy(r),r};var pNe=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var hNe=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o};var fNe=function(){return[]},mNe=Object.prototype.propertyIsEnumerable,gNe=Object.getOwnPropertySymbols,bNe=gNe?function(e){return null==e?[]:(e=Object(e),hNe(gNe(e),(function(t){return mNe.call(e,t)})))}:fNe;var vNe=function(e,t){return xOe(e,bNe(e),t)};var yNe=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},xNe=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)yNe(t,bNe(e)),e=lCe(e);return t}:fNe;var wNe=function(e,t){return xOe(e,xNe(e),t)};var ANe=function(e,t,n){var r=t(e);return COe(e)?r:yNe(r,n(e))};var ENe=function(e){return ANe(e,eNe,bNe)};var SNe=function(e){return ANe(e,oNe,xNe)},_Ne=GCe(XTe,"DataView"),kNe=GCe(XTe,"Promise"),TNe=GCe(XTe,"Set"),CNe=GCe(XTe,"WeakMap"),ONe="[object Map]",NNe="[object Promise]",INe="[object Set]",RNe="[object WeakMap]",PNe="[object DataView]",jNe=DCe(_Ne),MNe=DCe(WCe),DNe=DCe(kNe),LNe=DCe(TNe),FNe=DCe(CNe),BNe=aCe;(_Ne&&BNe(new _Ne(new ArrayBuffer(1)))!=PNe||WCe&&BNe(new WCe)!=ONe||
205kNe&&BNe(kNe.resolve())!=NNe||TNe&&BNe(new TNe)!=INe||CNe&&BNe(new CNe)!=RNe)&&(BNe=function(e){var t=aCe(e),n="[object Object]"==t?e.constructor:void 0,r=n?DCe(n):"";if(r)switch(r){case jNe:return PNe;case MNe:return ONe;case DNe:return NNe;case LNe:return INe;case FNe:return RNe}return t});var UNe=BNe,zNe=Object.prototype.hasOwnProperty;var HNe=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&zNe.call(e,"index")&&(n.index=e.index,n.input=e.input),n},$Ne=XTe.Uint8Array;var VNe=function(e){var t=new e.constructor(e.byteLength);return new $Ne(t).set(new $Ne(e)),t};var GNe=function(e,t){var n=t?VNe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},WNe=/\w*$/;var qNe=function(e){var t=new e.constructor(e.source,WNe.exec(e));return t.lastIndex=e.lastIndex,t},YNe=ZTe?ZTe.prototype:void 0,KNe=YNe?YNe.valueOf:void 0;var XNe=function(e){return KNe?Object(KNe.call(e)):{}};var ZNe=function(e,t){var n=t?VNe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var QNe=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return VNe(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return GNe(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return ZNe(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return qNe(e);case"[object Symbol]":return XNe(e)}},JNe=Object.create,eIe=function(){function e(){}return function(t){if(!NCe(t))return{};if(JNe)return JNe(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var tIe=function(e){return"function"!=typeof e.constructor||KOe(e)?{}:eIe(lCe(e))};var nIe=function(e){return cCe(e)&&"[object Map]"==UNe(e)},rIe=$Oe&&$Oe.isMap,iIe=rIe?BOe(rIe):nIe;var oIe=function(e){return cCe(e)&&"[object Set]"==UNe(e)},aIe=$Oe&&$Oe.isSet,sIe=aIe?BOe(aIe):oIe,lIe="[object Arguments]",cIe="[object Function]",uIe="[object Object]",dIe={};dIe[lIe]=dIe["[object Array]"]=dIe["[object ArrayBuffer]"]=dIe["[object DataView]"]=dIe["[object Boolean]"]=dIe["[object Date]"]=dIe["[object Float32Array]"]=dIe["[object Float64Array]"]=dIe["[object Int8Array]"]=dIe["[object Int16Array]"]=dIe["[object Int32Array]"]=dIe["[object Map]"]=dIe["[object Number]"]=dIe[uIe]=dIe["[object RegExp]"]=dIe["[object Set]"]=dIe["[object String]"]=dIe["[object Symbol]"]=dIe["[object Uint8Array]"]=dIe["[object Uint8ClampedArray]"]=dIe["[object Uint16Array]"]=dIe["[object Uint32Array]"]=!0,dIe["[object Error]"]=dIe[cIe]=dIe["[object WeakMap]"]=!1;var pIe=function e(t,n,r,i,o,a){var s,l=1&n,c=2&n,u=4&n;if(r&&(s=o?r(t,i,o,a):r(t)),void 0!==s)return s;if(!NCe(t))return t;var d=COe(t);if(d){if(s=HNe(t),!l)return pNe(t,s)}else{var p=UNe(t),h=p==cIe||"[object GeneratorFunction]"==p;if(POe(t))return dNe(t,l);if(p==uIe||p==lIe||h&&!o){if(s=c||h?{}:tIe(t),!l)return c?wNe(t,aNe(s,t)):vNe(t,tNe(s,t))}else{if(!dIe[p])return o?t:{};s=QNe(t,p,l)}}a||(a=new fOe);var f=a.get(t);if(f)return f;a.set(t,s),sIe(t)?t.forEach((function(i){s.add(e(i,n,r,i,t,a))})):iIe(t)&&t.forEach((function(i,o){s.set(o,e(i,n,r,o,t,a))}));var m=d?void 0:(u?c?SNe:ENe:c?oNe:eNe)(t);return mOe(m||t,(function(i,o){m&&(i=t[o=i]),yOe(s,o,e(i,n,r,o,t,a))})),s};var hIe=function(e){return pIe(e,5)},fIe=__webpack_require__(24901),mIe=__webpack_require__.n(fIe);var gIe=function(e,t){};var bIe=function(e){return pIe(e,4)};var vIe=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i};var yIe=function(e){return"symbol"==typeof e||cCe(e)&&"[object Symbol]"==aCe(e)};function xIe(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(xIe.Cache||dOe),n}xIe.Cache=dOe;var wIe=xIe;var AIe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,EIe=/\\(\\)?/g,SIe=function(e){var t=wIe(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(AIe,(function(e,n,r,i){t.push(r?i.replace(EIe,"$1"):n||e)})),t}));var _Ie=function(e){if("string"==typeof e||yIe(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},kIe=ZTe?ZTe.prototype:void 0,TIe=kIe?kIe.toString:void 0;var CIe=function e(t){if("string"==typeof t)return t;if(COe(t))return vIe(t,e)+"";if(yIe(t))return TIe?TIe.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};var OIe=function(e){return null==e?"":CIe(e)};var NIe=function(e){return COe(e)?vIe(e,_Ie):yIe(e)?[e]:pNe(SIe(OIe(e)))};function IIe(){return IIe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IIe.apply(this,arguments)}function RIe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function PIe(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function jIe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var MIe=(0,c.createContext)(void 0);MIe.displayName="FormikContext";var DIe=MIe.Provider;MIe.Consumer;function LIe(){var e=(0,c.useContext)(MIe);return e||gIe(!1),e}var FIe=function(e){return Array.isArray(e)&&0===e.length},BIe=function(e){return"function"===typeof e},UIe=function(e){return null!==e&&"object"===typeof e},zIe=function(e){return String(Math.floor(Number(e)))===e},HIe=function(e){return"[object String]"===Object.prototype.toString.call(e)},$Ie=function(e){return 0===c.Children.count(e)},VIe=function(e){return UIe(e)&&BIe(e.then)};function GIe(e,t,n,r){void 0===r&&(r=0);for(var i=NIe(t);e&&r<i.length;)e=e[i[r++]];return r===i.length||e?void 0===e?n:e:n}function WIe(e,t,n){for(var r=bIe(e),i=r,o=0,a=NIe(t);o<a.length-1;o++){var s=a[o],l=GIe(e,a.slice(0,o+1));if(l&&(UIe(l)||Array.isArray(l)))i=i[s]=bIe(l);else{var c=a[o+1];i=i[s]=zIe(c)&&Number(c)>=0?[]:{}}}return(0===o?e:i)[a[o]]===n?e:(void 0===n?delete i[a[o]]:i[a[o]]=n,0===o&&void 0===n&&delete r[a[o]],r)}function qIe(e,t,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var i=0,o=Object.keys(e);i<o.length;i++){var a=o[i],s=e[a];UIe(s)?n.get(s)||(n.set(s,!0),r[a]=Array.isArray(s)?[]:{},qIe(s,t,n,r[a])):r[a]=t}return r}var YIe={},KIe={};function XIe(e){var t=e.validateOnChange,n=void 0===t||t,r=e.validateOnBlur,i=void 0===r||r,o=e.validateOnMount,a=void 0!==o&&o,s=e.isInitialValid,l=e.enableReinitialize,u=void 0!==l&&l,d=e.onSubmit,p=PIe(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),h=IIe({validateOnChange:n,validateOnBlur:i,validateOnMount:a,onSubmit:d},p),f=(0,c.useRef)(h.initialValues),m=(0,c.useRef)(h.initialErrors||YIe),g=(0,c.useRef)(h.initialTouched||KIe),b=(0,c.useRef)(h.initialStatus),v=(0,c.useRef)(!1),y=(0,c.useRef)({});(0,c.useEffect)((function(){return v.current=!0,function(){v.current=!1}}),[]);var x=(0,c.useState)(0)[1],w=(0,c.useRef)({values:hIe(h.initialValues),errors:hIe(h.initialErrors)||YIe,touched:hIe(h.initialTouched)||KIe,status:hIe(h.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),A=w.current,E=(0,c.useCallback)((function(e){var t=w.current;w.current=function(e,t){switch(t.type){case"SET_VALUES":return IIe({},e,{values:t.payload});case"SET_TOUCHED":return IIe({},e,{touched:t.payload});case"SET_ERRORS":return mIe()(e.errors,t.payload)?e:IIe({},e,{errors:t.payload});case"SET_STATUS":return IIe({},e,{status:t.payload});case"SET_ISSUBMITTING":return IIe({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return IIe({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return IIe({},e,{values:WIe(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return IIe({},e,{touched:WIe(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return IIe({},e,{errors:WIe(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return IIe({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return IIe({},e,{touched:qIe(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return IIe({},e,{isSubmitting:!1});default:return e}}(t,e),t!==w.current&&x((function(e){return e+1}))}),[]),S=(0,c.useCallback)((function(e,t){return new Promise((function(n,r){var i=h.validate(e,t);null==i?n(YIe):VIe(i)?i.then((function(e){n(e||YIe)}),(function(e){r(e)})):n(i)}))}),[h.validate]),_=(0,c.useCallback)((function(e,t){var n=h.validationSchema,r=BIe(n)?n(t):n,i=t&&r.validateAt?r.validateAt(t,e):function(e,t,n,r){void 0===n&&(n=!1);var i=QIe(e);return t[n?"validateSync":"validate"](i,{abortEarly:!1,context:r||i})}(e,r);return new Promise((function(e,t){i.then((function(){e(YIe)}),(function(n){"ValidationError"===n.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return WIe(t,e.path,e.message);var n=e.inner,r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var a=o;GIe(t,a.path)||(t=WIe(t,a.path,a.message))}}return t}(n)):t(n)}))}))}),[h.validationSchema]),k=(0,c.useCallback)((function(e,t){return new Promise((function(n){return n(y.current[e].validate(t))}))}),[]),T=(0,c.useCallback)((function(e){var t=Object.keys(y.current).filter((function(e){return BIe(y.current[e].validate)})),n=t.length>0?t.map((function(t){return k(t,GIe(e,t))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(n).then((function(e){return e.reduce((function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=WIe(e,t[r],n)),e}),{})}))}),[k]),C=(0,c.useCallback)((function(e){return Promise.all([T(e),h.validationSchema?_(e):{},h.validate?S(e):{}]).then((function(e){var t=e[0],n=e[1],r=e[2];return qTe.all([t,n,r],{arrayMerge:JIe})}))}),[h.validate,h.validationSchema,T,S,_]),O=tRe((function(e){return void 0===e&&(e=A.values),E({type:"SET_ISVALIDATING",payload:!0}),C(e).then((function(e){return v.current&&(E({type:"SET_ISVALIDATING",payload:!1}),E({type:"SET_ERRORS",payload:e})),e}))}));(0,c.useEffect)((function(){a&&!0===v.current&&mIe()(f.current,h.initialValues)&&O(f.current)}),[a,O]);var N=(0,c.useCallback)((function(e){var t=e&&e.values?e.values:f.current,n=e&&e.errors?e.errors:m.current?m.current:h.initialErrors||{},r=e&&e.touched?e.touched:g.current?g.current:h.initialTouched||{},i=e&&e.status?e.status:b.current?b.current:h.initialStatus;f.current=t,m.current=n,g.current=r,b.current=i;var o=function(){E({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"===typeof e.submitCount?e.submitCount:0}})};if(h.onReset){var a=h.onReset(A.values,K);VIe(a)?a.then(o):o()}else o()}),[h.initialErrors,h.initialStatus,h.initialTouched,h.onReset]);(0,c.useEffect)((function(){!0!==v.current||mIe()(f.current,h.initialValues)||u&&(f.current=h.initialValues,N(),a&&O(f.current))}),[u,h.initialValues,N,a,O]),(0,c.useEffect)((function(){u&&!0===v.current&&!mIe()(m.current,h.initialErrors)&&(m.current=h.initialErrors||YIe,E({type:"SET_ERRORS",payload:h.initialErrors||YIe}))}),[u,h.initialErrors]),(0,c.useEffect)((function(){u&&!0===v.current&&!mIe()(g.current,h.initialTouched)&&(g.current=h.initialTouched||KIe,E({type:"SET_TOUCHED",payload:h.initialTouched||KIe}))}),[u,h.initialTouched]),(0,c.useEffect)((function(){u&&!0===v.current&&!mIe()(b.current,h.initialStatus)&&(b.current=h.initialStatus,E({type:"SET_STATUS",payload:h.initialStatus}))}),[u,h.initialStatus,h.initialTouched]);var I=tRe((function(e){if(y.current[e]&&BIe(y.current[e].validate)){var t=GIe(A.values,e),n=y.current[e].validate(t);return VIe(n)?(E({type:"SET_ISVALIDATING",payload:!0}),n.then((function(e){return e})).then((function(t){E({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),E({type:"SET_ISVALIDATING",payload:!1})}))):(E({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return h.validationSchema?(E({type:"SET_ISVALIDATING",payload:!0}),_(A.values,e).then((function(e){return e})).then((function(t){E({type:"SET_FIELD_ERROR",payload:{field:e,value:GIe(t,e)}}),E({type:"SET_ISVALIDATING",payload:!1})}))):Promise.resolve()})),R=(0,c.useCallback)((function(e,t){var n=t.validate;y.current[e]={validate:n}}),[]),P=(0,c.useCallback)((function(e){delete y.current[e]}),[]),j=tRe((function(e,t){return E({type:"SET_TOUCHED",payload:e}),(void 0===t?i:t)?O(A.values):Promise.resolve()})),M=(0,c.useCallback)((function(e){E({type:"SET_ERRORS",payload:e})}),[]),D=tRe((function(e,t){var r=BIe(e)?e(A.values):e;return E({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?O(r):Promise.resolve()})),L=(0,c.useCallback)((function(e,t){E({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})}),[]),F=tRe((function(e,t,r){return E({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?O(WIe(A.values,e,t)):Promise.resolve()})),B=(0,c.useCallback)((function(e,t){var n,r=t,i=e;if(!HIe(e)){e.persist&&e.persist();var o=e.target?e.target:e.currentTarget,a=o.type,s=o.name,l=o.id,c=o.value,u=o.checked,d=(o.outerHTML,o.options),p=o.multiple;r=t||(s||l),i=/number|range/.test(a)?(n=parseFloat(c),isNaN(n)?"":n):/checkbox/.test(a)?function(e,t,n){if("boolean"===typeof e)return Boolean(t);var r=[],i=!1,o=-1;if(Array.isArray(e))r=e,i=(o=e.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return Boolean(t);if(t&&n&&!i)return r.concat(n);if(!i)return r;
205return r.slice(0,o).concat(r.slice(o+1))}(GIe(A.values,r),u,c):d&&p?function(e){return Array.from(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(d):c}r&&F(r,i)}),[F,A.values]),U=tRe((function(e){if(HIe(e))return function(t){return B(t,e)};B(e)})),z=tRe((function(e,t,n){return void 0===t&&(t=!0),E({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?i:n)?O(A.values):Promise.resolve()})),H=(0,c.useCallback)((function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,i=n.id,o=(n.outerHTML,t||(r||i));z(o,!0)}),[z]),$=tRe((function(e){if(HIe(e))return function(t){return H(t,e)};H(e)})),V=(0,c.useCallback)((function(e){BIe(e)?E({type:"SET_FORMIK_STATE",payload:e}):E({type:"SET_FORMIK_STATE",payload:function(){return e}})}),[]),G=(0,c.useCallback)((function(e){E({type:"SET_STATUS",payload:e})}),[]),W=(0,c.useCallback)((function(e){E({type:"SET_ISSUBMITTING",payload:e})}),[]),q=tRe((function(){return E({type:"SUBMIT_ATTEMPT"}),O().then((function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var n;try{if(void 0===(n=X()))return}catch(qUe){throw qUe}return Promise.resolve(n).then((function(e){return v.current&&E({type:"SUBMIT_SUCCESS"}),e})).catch((function(e){if(v.current)throw E({type:"SUBMIT_FAILURE"}),e}))}if(v.current&&(E({type:"SUBMIT_FAILURE"}),t))throw e}))})),Y=tRe((function(e){e&&e.preventDefault&&BIe(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&BIe(e.stopPropagation)&&e.stopPropagation(),q().catch((function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)}))})),K={resetForm:N,validateForm:O,validateField:I,setErrors:M,setFieldError:L,setFieldTouched:z,setFieldValue:F,setStatus:G,setSubmitting:W,setTouched:j,setValues:D,setFormikState:V,submitForm:q},X=tRe((function(){return d(A.values,K)})),Z=tRe((function(e){e&&e.preventDefault&&BIe(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&BIe(e.stopPropagation)&&e.stopPropagation(),N()})),Q=(0,c.useCallback)((function(e){return{value:GIe(A.values,e),error:GIe(A.errors,e),touched:!!GIe(A.touched,e),initialValue:GIe(f.current,e),initialTouched:!!GIe(g.current,e),initialError:GIe(m.current,e)}}),[A.errors,A.touched,A.values]),J=(0,c.useCallback)((function(e){return{setValue:function(t,n){return F(e,t,n)},setTouched:function(t,n){return z(e,t,n)},setError:function(t){return L(e,t)}}}),[F,z,L]),ee=(0,c.useCallback)((function(e){var t=UIe(e),n=t?e.name:e,r=GIe(A.values,n),i={name:n,value:r,onChange:U,onBlur:$};if(t){var o=e.type,a=e.value,s=e.as,l=e.multiple;"checkbox"===o?void 0===a?i.checked=!!r:(i.checked=!(!Array.isArray(r)||!~r.indexOf(a)),i.value=a):"radio"===o?(i.checked=r===a,i.value=a):"select"===s&&l&&(i.value=i.value||[],i.multiple=!0)}return i}),[$,U,A.values]),te=(0,c.useMemo)((function(){return!mIe()(f.current,A.values)}),[f.current,A.values]),ne=(0,c.useMemo)((function(){return"undefined"!==typeof s?te?A.errors&&0===Object.keys(A.errors).length:!1!==s&&BIe(s)?s(h):s:A.errors&&0===Object.keys(A.errors).length}),[s,te,A.errors,h]);return IIe({},A,{initialValues:f.current,initialErrors:m.current,initialTouched:g.current,initialStatus:b.current,handleBlur:$,handleChange:U,handleReset:Z,handleSubmit:Y,resetForm:N,setErrors:M,setFormikState:V,setFieldTouched:z,setFieldValue:F,setFieldError:L,setStatus:G,setSubmitting:W,setTouched:j,setValues:D,submitForm:q,validateForm:O,validateField:I,isValid:ne,dirty:te,unregisterField:P,registerField:R,getFieldProps:ee,getFieldMeta:Q,getFieldHelpers:J,validateOnBlur:i,validateOnChange:n,validateOnMount:a})}function ZIe(e){var t=XIe(e),n=e.component,r=e.children,i=e.render,o=e.innerRef;return(0,c.useImperativeHandle)(o,(function(){return t})),(0,c.createElement)(DIe,{value:t},n?(0,c.createElement)(n,t):i?i(t):r?BIe(r)?r(t):$Ie(r)?null:c.Children.only(r):null)}function QIe(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);!0===Array.isArray(e[r])?t[r]=e[r].map((function(e){return!0===Array.isArray(e)||mCe(e)?QIe(e):""!==e?e:void 0})):mCe(e[r])?t[r]=QIe(e[r]):t[r]=""!==e[r]?e[r]:void 0}return t}function JIe(e,t,n){var r=e.slice();return t.forEach((function(t,i){if("undefined"===typeof r[i]){var o=!1!==n.clone&&n.isMergeableObject(t);r[i]=o?qTe(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[i]=qTe(e[i],t,n):-1===e.indexOf(t)&&r.push(t)})),r}var eRe="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?c.useLayoutEffect:c.useEffect;function tRe(e){var t=(0,c.useRef)(e);return eRe((function(){t.current=e})),(0,c.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current.apply(void 0,n)}),[])}(0,c.forwardRef)((function(e,t){var n=e.action,r=PIe(e,["action"]),i=null!=n?n:"#",o=LIe(),a=o.handleReset,s=o.handleSubmit;return(0,c.createElement)("form",IIe({onSubmit:s,ref:t,onReset:a,action:i},r))})).displayName="Form";var nRe=function(e,t,n){var r=rRe(e);return r.splice(t,0,n),r},rRe=function(e){if(e){if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map((function(e){return parseInt(e)})).reduce((function(e,t){return t>e?t:e}),0);return Array.from(IIe({},e,{length:t+1}))}return[]},iRe=function(e,t){var n="function"===typeof e?e:t;return function(e){if(Array.isArray(e)||UIe(e)){var t=rRe(e);return n(t)}return e}},oRe=function(e){function t(t){var n;return(n=e.call(this,t)||this).updateArrayField=function(e,t,r){var i=n.props,o=i.name;(0,i.formik.setFormikState)((function(n){var i=iRe(r,e),a=iRe(t,e),s=WIe(n.values,o,e(GIe(n.values,o))),l=r?i(GIe(n.errors,o)):void 0,c=t?a(GIe(n.touched,o)):void 0;return FIe(l)&&(l=void 0),FIe(c)&&(c=void 0),IIe({},n,{values:s,errors:r?WIe(n.errors,o,l):n.errors,touched:t?WIe(n.touched,o,c):n.touched})}))},n.push=function(e){return n.updateArrayField((function(t){return[].concat(rRe(t),[hIe(e)])}),!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=rRe(e),i=r[t];return r[t]=r[n],r[n]=i,r}(n,e,t)}),!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=rRe(e),i=r[t];return r.splice(t,1),r.splice(n,0,i),r}(n,e,t)}),!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField((function(n){return nRe(n,e,t)}),(function(t){return nRe(t,e,null)}),(function(t){return nRe(t,e,null)}))},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=rRe(e);return r[t]=n,r}(n,e,t)}),!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField((function(n){var r=n?[e].concat(n):[e];return t=r.length,r}),(function(e){return e?[null].concat(e):[null]}),(function(e){return e?[null].concat(e):[null]})),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(jIe(n)),n.pop=n.pop.bind(jIe(n)),n}RIe(t,e);var n=t.prototype;return n.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!mIe()(GIe(e.formik.values,e.name),GIe(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(e){var t;return this.updateArrayField((function(n){var r=n?rRe(n):[];return t||(t=r[e]),BIe(r.splice)&&r.splice(e,1),BIe(r.every)&&r.every((function(e){return void 0===e}))?[]:r}),!0,!0),t},n.pop=function(){var e;return this.updateArrayField((function(t){var n=t.slice();return e||(e=n&&n.pop&&n.pop()),n}),!0,!0),e},n.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,n=t.component,r=t.render,i=t.children,o=t.name,a=IIe({},e,{form:PIe(t.formik,["validate","validationSchema"]),name:o});return n?(0,c.createElement)(n,a):r?r(a):i?"function"===typeof i?i(a):$Ie(i)?null:c.Children.only(i):null},t}(c.Component);oRe.defaultProps={validateOnChange:!0};var aRe=()=>{const e=(0,c.useRef)(!0);return(0,c.useEffect)((()=>()=>{e.current=!1}),[]),e},sRe=__webpack_require__(62375);var lRe=e=>{let{...t}=e;const n=(0,re.A)(),r=aRe(),o=(ce(n.breakpoints.down("md")),x((e=>e.customization))),a=(0,te.Zp)(),[s,l]=(0,c.useState)(!0),[u,d]=(0,c.useState)({}),{login:p,handleLoginCallBackRes:h}=ma();(0,c.useEffect)((()=>{localStorage.getItem("uid")&&a("/kb")}),[]);const[f,m]=(0,c.useState)(!1),g=()=>{m(!f)},b=e=>{e.preventDefault()},[v,y]=(0,c.useState)(!1);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(Ue,{container:!0,direction:"column",justifyContent:"center",alignItems:"center",spacing:2,children:[(0,L.jsx)(Ue,{item:!0,xs:12,children:(0,L.jsx)(hb,{children:v?(0,L.jsxs)("button",{disabled:!0,className:"flex items-center justify-center gap-3 px-6 py-3 bg-white border border-gray-300 rounded-md shadow-sm hover:shadow-md transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2",children:[(0,L.jsx)("div",{className:"w-5 h-5 border-2 border-gray-300 border-t-blue-500 rounded-full animate-spin"}),(0,L.jsx)("span",{className:"text-gray-700 font-medium",children:"Signing in..."})]}):(0,L.jsx)(pa,{onSuccess:async e=>{y(!0),await h(e),y(!1)},onError:e=>{console.log(e)}})})}),(0,L.jsx)(Ue,{item:!0,xs:12,children:(0,L.jsxs)(ue.A,{sx:{alignItems:"center",display:"flex"},children:[(0,L.jsx)(ze.A,{sx:{flexGrow:1},orientation:"horizontal"}),(0,L.jsx)(Yx.A,{variant:"outlined",sx:{cursor:"unset",m:2,py:.5,px:7,borderColor:`${n.palette.grey[100]} !important`,color:`${n.palette.grey[900]}!important`,fontWeight:500,borderRadius:`${o.borderRadius}px`},disableRipple:!0,disabled:!0,children:"OR"}),(0,L.jsx)(ze.A,{sx:{flexGrow:1},orientation:"horizontal"})]})}),(0,L.jsx)(Ue,{item:!0,xs:12,container:!0,alignItems:"center",justifyContent:"center",children:(0,L.jsx)(ue.A,{sx:{mb:2},children:(0,L.jsx)(Te.A,{variant:"subtitle1",children:"Sign in with Email address"})})})]}),(0,L.jsx)(ZIe,{initialValues:{email:"",password:"",submit:null},validationSchema:BTe().shape({email:vTe().email("Must be a valid email").max(255).required("Email is required"),password:vTe().max(255).required("Password is required")}),onSubmit:async(e,t)=>{let{setErrors:n,setStatus:i,setSubmitting:o}=t;
205try{(async e=>{try{y(!0),await p(e.email,e.password),y(!1)}catch(qUe){console.log(qUe),y(!1)}})(e)}catch(a){console.error(a),r.current&&(i({success:!1}),n({submit:a.message}),o(!1))}},children:e=>{let{errors:r,handleBlur:o,handleChange:a,handleSubmit:c,isSubmitting:u,touched:d,values:p}=e;return(0,L.jsxs)("form",{noValidate:!0,onSubmit:c,...t,children:[(0,L.jsxs)(fl.A,{fullWidth:!0,error:Boolean(d.email&&r.email),sx:{...n.typography.customInput},children:[(0,L.jsx)(Zae.A,{htmlFor:"outlined-adornment-email-login",children:"Email Address / Username"}),(0,L.jsx)(Ai.A,{id:"outlined-adornment-email-login",type:"email",value:p.email,name:"email",onBlur:o,onChange:a,label:"Email Address / Username",inputProps:{}}),d.email&&r.email&&(0,L.jsx)(Vue.A,{error:!0,id:"standard-weight-helper-text-email-login",children:r.email})]}),(0,L.jsxs)(fl.A,{fullWidth:!0,error:Boolean(d.password&&r.password),sx:{...n.typography.customInput},children:[(0,L.jsx)(Zae.A,{htmlFor:"outlined-adornment-password-login",children:"Password"}),(0,L.jsx)(Ai.A,{id:"outlined-adornment-password-login",type:f?"text":"password",value:p.password,name:"password",onBlur:o,onChange:a,endAdornment:(0,L.jsx)(Ei.A,{position:"end",children:(0,L.jsx)(Pa.A,{"aria-label":"toggle password visibility",onClick:g,onMouseDown:b,edge:"end",size:"large",children:f?(0,L.jsx)(sRe.A,{}):(0,L.jsx)(ice.A,{})})}),label:"Password",inputProps:{}}),d.password&&r.password&&(0,L.jsx)(Vue.A,{error:!0,id:"standard-weight-helper-text-password-login",children:r.password})]}),(0,L.jsxs)(po.A,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:1,children:[(0,L.jsx)(Nl,{control:(0,L.jsx)(qx,{checked:s,onChange:e=>l(e.target.checked),name:"checked",color:"primary"}),label:"Remember me"}),(0,L.jsx)(Te.A,{component:i.N_,to:"/reset",variant:"subtitle1",color:"secondary",sx:{textDecoration:"none",cursor:"pointer"},children:"Forgot Password?"})]}),r.submit&&(0,L.jsx)(ue.A,{sx:{mt:3},children:(0,L.jsx)(Vue.A,{error:!0,children:r.submit})}),(0,L.jsx)(ue.A,{sx:{mt:2},children:(0,L.jsx)(hb,{children:(0,L.jsx)("button",{disabled:v,className:"btn",children:v?(0,L.jsx)(dA,{}):"Sign In"})})})]})}})]})};var cRe=e=>{let{...t}=e;const n=(0,re.A)(),r=(0,te.Zp)();(0,c.useEffect)((()=>{localStorage.getItem("uid")&&r("/kb")}),[]);const[i,o]=(0,c.useState)(""),[a,s]=(0,c.useState)(!1),{resendOtp:l,verifyOtp:u}=ma();return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(fl.A,{fullWidth:!0,sx:{...n.typography.customInput},children:[(0,L.jsx)(Zae.A,{htmlFor:"outlined-adornment-email-register",children:"Otp"}),(0,L.jsx)(Ai.A,{id:"outlined-adornment-email-register",type:"text",value:i,name:"otp",onChange:e=>o(e.target.value),inputProps:{}})]}),(0,L.jsx)(Yx.A,{variant:"text",onClick:async()=>{try{s(!0);const e=localStorage.getItem("email");await l(e,r)}catch(qUe){console.log(qUe)}finally{s(!1)}},children:(0,L.jsx)(Te.A,{variant:"subtitle1",color:"secondary",sx:{textDecoration:"none",cursor:"pointer"},children:"Haven't received otp? Resend otp"})}),(0,L.jsx)(ue.A,{sx:{mt:2},children:(0,L.jsx)(hb,{children:(0,L.jsx)("button",{onClick:async()=>{try{(i.length<6||i.length>6)&&aa.oR.error("Please enter a valid OTP",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"}),s(!0);const e=localStorage.getItem("email");await u(e,i,r)}catch(qUe){console.log(qUe)}finally{s(!1)}},disabled:a,className:"btn",children:a?(0,L.jsx)(dA,{}):"Verify"})})})]})};var uRe=e=>{let{...t}=e;const n=(0,re.A)(),r=(0,te.Zp)(),[i,o]=(0,c.useState)(""),[a,s]=(0,c.useState)(!1),{forgetPassword:l}=ma();return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(fl.A,{fullWidth:!0,sx:{...n.typography.customInput},children:[(0,L.jsx)(Zae.A,{htmlFor:"outlined-adornment-email-register",children:"Enter Your Registered Email"}),(0,L.jsx)(Ai.A,{id:"outlined-adornment-email-register",type:"text",value:i,name:"otp",onChange:e=>o(e.target.value),inputProps:{}})]}),(0,L.jsx)(ue.A,{sx:{mt:2},children:(0,L.jsx)(hb,{children:(0,L.jsx)("button",{onClick:async()=>{try{if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(i))return void aa.oR.error("Enter an valid email",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"});s(!0),await l(i,r)}catch(qUe){console.log(qUe)}finally{s(!1)}},disabled:a,className:"btn",children:a?(0,L.jsx)(dA,{}):"Verify"})})})]})};var dRe=()=>{const e=(0,re.A)(),t=ce(e.breakpoints.down("md"));return(0,L.jsx)(Eke,{children:(0,L.jsx)(Ue,{container:!0,direction:"column",justifyContent:"flex-end",sx:{minHeight:"100vh"},children:(0,L.jsx)(Ue,{item:!0,xs:12,children:(0,L.jsx)(Ue,{container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:"calc(100vh - 68px)"},children:(0,L.jsx)(Ue,{item:!0,sx:{m:{xs:1,sm:3},mb:0},children:(0,L.jsx)(kke,{children:(0,L.jsxs)(Ue,{container:!0,spacing:2,alignItems:"center",justifyContent:"center",children:[(0,L.jsx)(Ue,{item:!0,xs:12,children:(0,L.jsx)(Ue,{container:!0,direction:t?"column-reverse":"row",alignItems:"center",justifyContent:"center",children:(0,L.jsx)(Ue,{item:!0,children:(0,L.jsx)(po.A,{alignItems:"center",justifyContent:"center",spacing:1,children:(0,L.jsx)(Te.A,{color:e.palette.secondary.main,gutterBottom:!0,variant:t?"h3":"h2",children:"Reset Password"})})})})}),(0,L.jsx)(Ue,{item:!0,xs:12,children:(0,L.jsx)(uRe,{})})]})})})})})})})};var pRe=()=>{const e=(0,re.A)(),t=ce(e.breakpoints.down("md"));return(0,L.jsx)(Eke,{children:(0,L.jsx)(Ue,{container:!0,direction:"column",justifyContent:"flex-end",sx:{minHeight:"100vh"},children:(0,L.jsx)(Ue,{item:!0,xs:12,children:(0,L.jsx)(Ue,{container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:"calc(100vh - 68px)"},children:(0,L.jsx)(Ue,{item:!0,sx:{m:{xs:1,sm:3},mb:0},children:(0,L.jsx)(kke,{children:(0,L.jsxs)(Ue,{container:!0,spacing:2,alignItems:"center",justifyContent:"center",children:[(0,L.jsx)(Ue,{item:!0}),(0,L.jsx)(Ue,{item:!0,xs:12,children:(0,L.jsx)(Ue,{container:!0,direction:t?"column-reverse":"row",alignItems:"center",justifyContent:"center",children:(0,L.jsx)(Ue,{item:!0,children:(0,L.jsxs)(po.A,{alignItems:"center",justifyContent:"center",spacing:1,children:[(0,L.jsx)(Te.A,{color:e.palette.secondary.main,gutterBottom:!0,variant:t?"h3":"h2",children:(0,L.jsxs)("div",{className:"text-2xl font-bold bg-gradient-to-r from-blue-600 to-purple-600 text-transparent bg-clip-text",children:["AskLLY.ai",(0,L.jsx)("p",{className:"text-base font-medium text-gray-600 hover:text-gray-800",children:"Research Purposes Only"})]})}),(0,L.jsx)(Te.A,{color:e.palette.secondary.main,gutterBottom:!0,variant:t?"h3":"h2",children:"Hi, Welcome Back"}),(0,L.jsx)(Te.A,{variant:"caption",fontSize:"16px",textAlign:t?"center":"inherit",children:"Enter your credentials to continue"})]})})})}),(0,L.jsx)(Ue,{item:!0,xs:12,children:(0,L.jsx)(lRe,{})}),(0,L.jsx)(Ue,{item:!0,xs:12,children:(0,L.jsx)(ze.A,{})}),(0,L.jsx)(Ue,{item:!0,xs:12,children:(0,L.jsx)(Ue,{item:!0,container:!0,direction:"column",alignItems:"center",xs:12,children:(0,L.jsx)(Te.A,{component:i.N_,to:"/register",variant:"subtitle1",sx:{textDecoration:"none"},children:"Don't have an account?"})})})]})})})})})})})};var hRe=()=>{const e=(0,re.A)(),t=ce(e.breakpoints.down("md"));return(0,L.jsx)(Eke,{children:(0,L.jsx)(Ue,{container:!0,direction:"column",justifyContent:"flex-end",sx:{minHeight:"100vh"},children:(0,L.jsx)(Ue,{item:!0,xs:12,children:(0,L.jsx)(Ue,{container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:"calc(100vh - 68px)"},children:(0,L.jsx)(Ue,{item:!0,sx:{m:{xs:1,sm:3},mb:0},children:(0,L.jsx)(kke,{children:(0,L.jsxs)(Ue,{container:!0,spacing:2,alignItems:"center",justifyContent:"center",children:[(0,L.jsx)(Ue,{item:!0}),(0,L.jsx)(Ue,{item:!0,xs:12,children:(0,L.jsx)(Ue,{container:!0,direction:t?"column-reverse":"row",alignItems:"center",justifyContent:"center",children:(0,L.jsx)(Ue,{item:!0,children:(0,L.jsx)(po.A,{alignItems:"center",justifyContent:"center",spacing:1,children:(0,L.jsx)(Te.A,{color:e.palette.secondary.main,gutterBottom:!0,variant:t?"h3":"h2",children:"Enter your OTP here"})})})})}),(0,L.jsx)(Ue,{item:!0,xs:12,children:(0,L.jsx)(cRe,{})})]})})})})})})})},fRe={paper:"#fff",primaryLight:"#eef2f6",primary200:"#90caf9",primaryMain:"#2196f3",primaryDark:"#1e88e5",primary800:"#1565c0",secondaryLight:"#ede7f6",secondary200:"#b39ddb",secondaryMain:"#673ab7",secondary
205Dark:"#5e35b1",secondary800:"#4527a0",successLight:"#b9f6ca",success200:"#69f0ae",successMain:"#00e676",successDark:"#00c853",errorLight:"#ef9a9a",errorMain:"#f44336",errorDark:"#c62828",orangeLight:"#fbe9e7",orangeMain:"#ffab91",orangeDark:"#d84315",warningLight:"#fff8e1",warningMain:"#ffe57f",warningDark:"#ffc107",grey50:"#f8fafc",grey100:"#eef2f6",grey200:"#e3e8ef",grey300:"#cdd5df",grey500:"#697586",grey600:"#4b5565",grey700:"#364152",grey900:"#121926",darkPaper:"#111936",darkBackground:"#1a223f",darkLevel1:"#29314f",darkLevel2:"#212946",darkTextTitle:"#d7dcec",darkTextPrimary:"#bdc8f0",darkTextSecondary:"#8492c4",darkPrimaryLight:"#eef2f6",darkPrimaryMain:"#2196f3",darkPrimaryDark:"#1e88e5",darkPrimary200:"#90caf9",darkPrimary800:"#1565c0",darkSecondaryLight:"#d1c4e9",darkSecondaryMain:"#7c4dff",darkSecondaryDark:"#651fff",darkSecondary200:"#b39ddb",darkSecondary800:"#6200ea"};const mRe=e=>e<2?{label:"Poor",color:fRe.errorMain}:e<3?{label:"Weak",color:fRe.warningDark}:e<4?{label:"Normal",color:fRe.orangeMain}:e<5?{label:"Good",color:fRe.successMain}:e<6?{label:"Strong",color:fRe.successDark}:{label:"Poor",color:fRe.errorMain},gRe=e=>{let t=0;return e.length>5&&(t+=1),e.length>7&&(t+=1),(e=>new RegExp(/[0-9]/).test(e))(e)&&(t+=1),(e=>new RegExp(/[!#@$%^&*)(+=._-]/).test(e))(e)&&(t+=1),(e=>new RegExp(/[a-z]/).test(e)&&new RegExp(/[A-Z]/).test(e))(e)&&(t+=1),t};var bRe=e=>{let{...t}=e;const n=(0,re.A)(),r=aRe(),o=ce(n.breakpoints.down("md")),a=x((e=>e.customization)),s=(0,te.Zp)(),[l,u]=(0,c.useState)(!1),[d,p]=(0,c.useState)(!0),[h,f]=(0,c.useState)({}),[m,g]=(0,c.useState)(0),[b,v]=(0,c.useState)(),{setUid:y,signup:w,handleCallBackRes:A}=ma();(0,c.useEffect)((()=>{localStorage.getItem("uid")&&s("/kb")}),[]);const E=()=>{u(!l)},S=e=>{e.preventDefault()},_=e=>{const t=gRe(e);g(t),v(mRe(t))},[k,T]=(0,c.useState)(!1);return(0,c.useEffect)((()=>{_("123456")}),[]),(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(Ue,{container:!0,direction:"column",justifyContent:"center",alignItems:"center",spacing:2,children:[(0,L.jsx)(Ue,{item:!0,xs:12,children:(0,L.jsx)(hb,{children:(0,L.jsx)(pa,{onSuccess:A,onError:e=>{console.log(e)}})})}),(0,L.jsx)(Ue,{item:!0,xs:12,children:(0,L.jsxs)(ue.A,{sx:{alignItems:"center",display:"flex"},children:[(0,L.jsx)(ze.A,{sx:{flexGrow:1},orientation:"horizontal"}),(0,L.jsx)(Yx.A,{variant:"outlined",sx:{cursor:"unset",m:2,py:.5,px:7,borderColor:`${n.palette.grey[100]} !important`,color:`${n.palette.grey[900]}!important`,fontWeight:500,borderRadius:`${a.borderRadius}px`},disableRipple:!0,disabled:!0,children:"OR"}),(0,L.jsx)(ze.A,{sx:{flexGrow:1},orientation:"horizontal"})]})}),(0,L.jsx)(Ue,{item:!0,xs:12,container:!0,alignItems:"center",justifyContent:"center",children:(0,L.jsx)(ue.A,{sx:{mb:2},children:(0,L.jsx)(Te.A,{variant:"subtitle1",children:"Sign up with Email address"})})})]}),(0,L.jsx)(ZIe,{initialValues:{email:"",password:"",fname:"",lname:"",submit:null},validationSchema:BTe().shape({email:vTe().email("Must be a valid email").max(255).required("Email is required"),password:vTe().max(255).required("Password is required")}),onSubmit:async(e,t)=>{let{setErrors:n,setStatus:i,setSubmitting:o}=t;try{(async e=>{try{if(T(!0),m<4)return aa.oR.error("Enter an strong password",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});const t=e.fname+" "+e.lname;await w(t,e.email,e.password,""),T(!1)}catch(qUe){console.error(qUe),T(!1)}})(e)}catch(a){console.error(a),r.current&&(i({success:!1}),n({submit:a.message}),o(!1))}},children:e=>{let{errors:r,handleBlur:a,handleChange:s,handleSubmit:c,isSubmitting:u,touched:h,values:f}=e;return(0,L.jsxs)("form",{noValidate:!0,onSubmit:c,...t,children:[(0,L.jsxs)(Ue,{container:!0,spacing:o?0:2,children:[(0,L.jsx)(Ue,{item:!0,xs:12,sm:6,children:(0,L.jsx)(Xa.A,{fullWidth:!0,label:"First Name",className:"fn",margin:"normal",name:"fname",type:"text",defaultValue:"",sx:{...n.typography.customInput},value:f.firstname,onChange:s})}),(0,L.jsx)(Ue,{item:!0,xs:12,sm:6,children:(0,L.jsx)(Xa.A,{fullWidth:!0,label:"Last Name",className:"ln",margin:"normal",name:"lname",type:"text",defaultValue:"",sx:{...n.typography.customInput},value:f.firstname,onChange:s})})]}),(0,L.jsxs)(fl.A,{fullWidth:!0,error:Boolean(h.email&&r.email),sx:{...n.typography.customInput},children:[(0,L.jsx)(Zae.A,{htmlFor:"outlined-adornment-email-register",children:"Email Address / Username"}),(0,L.jsx)(Ai.A,{id:"outlined-adornment-email-register",type:"email",value:f.email,name:"email",onBlur:a,onChange:s,inputProps:{}}),h.email&&r.email&&(0,L.jsx)(Vue.A,{error:!0,id:"standard-weight-helper-text--register",children:r.email})]}),(0,L.jsxs)(fl.A,{fullWidth:!0,error:Boolean(h.password&&r.password),sx:{...n.typography.customInput},children:[(0,L.jsx)(Zae.A,{htmlFor:"outlined-adornment-password-register",children:"Password"}),(0,L.jsx)(Ai.A,{id:"outlined-adornment-password-register",type:l?"text":"password",value:f.password,name:"password",label:"Password",onBlur:a,onChange:e=>{s(e),_(e.target.value)},endAdornment:(0,L.jsx)(Ei.A,{position:"end",children:(0,L.jsx)(Pa.A,{"aria-label":"toggle password visibility",onClick:E,onMouseDown:S,edge:"end",size:"large",children:l?(0,L.jsx)(sRe.A,{}):(0,L.jsx)(ice.A,{})})}),inputProps:{}}),h.password&&r.password&&(0,L.jsx)(Vue.A,{error:!0,id:"standard-weight-helper-text-password-register",children:r.password})]}),0!==m&&(0,L.jsx)(fl.A,{fullWidth:!0,children:(0,L.jsx)(ue.A,{sx:{mb:2},children:(0,L.jsxs)(Ue,{container:!0,spacing:2,alignItems:"center",children:[(0,L.jsx)(Ue,{item:!0,children:(0,L.jsx)(ue.A,{style:{backgroundColor:null===b||void 0===b?void 0:b.color},sx:{width:85,height:8,borderRadius:"7px"}})}),(0,L.jsx)(Ue,{item:!0,children:(0,L.jsx)(Te.A,{variant:"subtitle1",fontSize:"0.75rem",children:null===b||void 0===b?void 0:b.label})})]})})}),(0,L.jsx)(Ue,{container:!0,alignItems:"center",justifyContent:"space-between",children:(0,L.jsx)(Ue,{item:!0,children:(0,L.jsx)(Nl,{control:(0,L.jsx)(qx,{checked:d,onChange:e=>p(e.target.checked),name:"checked",color:"primary"}),label:(0,L.jsxs)(Te.A,{variant:"subtitle1",children:["Agree with \xa0",(0,L.jsx)(Te.A,{variant:"subtitle1",component:i.N_,to:"#",children:"Terms & Condition."})]})})})}),r.submit&&(0,L.jsx)(ue.A,{sx:{mt:3},children:(0,L.jsx)(Vue.A,{error:!0,children:r.submit})}),(0,L.jsx)(ue.A,{sx:{mt:2},children:(0,L.jsx)(hb,{children:(0,L.jsx)("button",{disabled:k,className:"btn",children:k?(0,L.jsx)(dA,{}):"Sign Up"})})})]})}})]})};var vRe=()=>{const e=(0,re.A)(),t=ce(e.breakpoints.down("md"));return(0,L.jsx)(Eke,{children:(0,L.jsx)(Ue,{container:!0,direction:"column",justifyContent:"flex-end",sx:{minHeight:"100vh"},children:(0,L.jsx)(Ue,{item:!0,xs:12,children:(0,L.jsx)(Ue,{container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:"calc(100vh - 68px)"},children:(0,L.jsx)(Ue,{item:!0,sx:{m:{xs:1,sm:3},mb:0},children:(0,L.jsx)(kke,{children:(0,L.jsxs)(Ue,{container:!0,spacing:2,alignItems:"center",justifyContent:"center",children:[(0,L.jsx)(Ue,{item:!0}),(0,L.jsx)(Ue,{item:!0,xs:12,children:(0,L.jsx)(Ue,{container:!0,direction:t?"column-reverse":"row",alignItems:"center",justifyContent:"center",children:(0,L.jsx)(Ue,{item:!0,children:(0,L.jsxs)(po.A,{alignItems:"center",justifyContent:"center",spacing:1,children:[(0,L.jsx)(Te.A,{color:e.palette.secondary.main,gutterBottom:!0,variant:t?"h3":"h2",children:"Sign up"}),(0,L.jsx)(Te.A,{variant:"caption",fontSize:"16px",textAlign:t?"center":"inherit",children:"Enter your credentials to continue"})]})})})}),(0,L.jsx)(Ue,{item:!0,xs:12,children:(0,L.jsx)(bRe,{})}),(0,L.jsx)(Ue,{item:!0,xs:12,children:(0,L.jsx)(ze.A,{})}),(0,L.jsx)(Ue,{item:!0,xs:12,children:(0,L.jsx)(Ue,{item:!0,container:!0,direction:"column",alignItems:"center",xs:12,children:(0,L.jsx)(Te.A,{component:i.N_,to:"/login",variant:"subtitle1",sx:{textDecoration:"none"},children:"Already have an account?"})})})]})})})})})})})};var yRe=e=>{let{id:t,...n}=e;(0,re.A)();const[r,i]=(0,c.useState)(!1),[o,a]=(0,c.useState)({new:"",confirm:""}),s=(0,te.Zp)(),[l,u]=(0,c.useState)({}),[d,p]=(0,c.useState)(0),[h,f]=(0,c.useState)(),{changePasswordForgot:m}=ma(),g=()=>{i(!r)},b=e=>{e.preventDefault()},v=e=>{const t=gRe(e);p(t),f(mRe(t))},[y,x]=(0,c.useState)(!1);return(0,c.useEffect)((()=>{v("123456")}),[]),(0,L.jsx)(L.Fragment,{children:(0,L.jsxs)("form",{noValidate:!0,onSubmit:async e=>{e.preventDefault();try{if(d<4)return aa.oR.error("Enter an strong password",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});if(o.new!==o.confirm)return aa.oR.error("The password doesnt match",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});x(!0),await m(t,o.new,s),x(!1)}catch(qUe){console.error(qUe),x(!1)}},children:[(0,L.jsxs)(fl.A,{fullWidth:!0,children:[(0,L.jsx)(Zae.A,{htmlFor:"outlined-adornment-password-register",children:"New Password"}),(0,L.jsx)(Ai.A,{id:"outlined-adornment-password-register",type:r?"text":"password",value:o.password,name:"new",label:"New Password",onChange:e=>{a({...o,[e.target.name]:e.target.value}),v(e.target.value)},endAdornment:(0,L.jsx)(Ei.A,{position:"end",children:(0,L.jsx)(Pa.A,{"aria-label":"toggle password visibility",onClick:g,onMouseDown:b,edge:"end",size:"large",children:r?(0,L.jsx)(sRe.A,{}):(0,L.jsx)(ice.A,{})})}),inputProps:{}})]}),(0,L.jsxs)(fl.A,{fullWidth:!0,sx:{mt:2},children:[(0,L.jsx)(Zae.A,{htmlFor:"outlined-adornment-password-register",children:"Confirm Password"}),(0,L.jsx)(Ai.A,{id:"outlined-adornment-password-register",type:r?"text":"password",value:o.confirm,name:"confirm",label:"Confirm Password",onChange:e=>{a({...o,[e.target.name]:e.target.value}),v(e.target.value)},endAdornment:(0,L.jsx)(Ei.A,{position:"end",children:(0,L.jsx)(Pa.A,{"aria-label":"toggle password visibility",onClick:g,onMouseDown:b,edge:"end",size:"large",children:r?(0,L.jsx)(sRe.A,{}):(0,L.jsx)(ice.A,{})})}),inputProps:{}})]}),(0,L.jsx)(ue.A,{sx:{mt:2},children:(0,L.jsx)(hb,{children:(0,L.jsx)("button",{type:"submit",disabled:y,className:"btn",children:y?(0,L.jsx)(dA,{}):"Sign Up"})})})]})})};__webpack_require__.p;var xRe=()=>{const{id:e}=(0,te.g)(),t=(0,re.A)(),n=ce(t.breakpoints.down("md"));return(0,c.useEffect)((()=>{(0,xi.xf)(e).then((e=>console.log(e)))}),[]),(0,L.jsx)(Eke,{children:(0,L.jsx)(Ue,{container:!0,direction:"column",justifyContent:"flex-end",sx:{minHeight:"100vh"},children:(0,L.jsx)(Ue,{item:!0,xs:12,children:(0,L.jsx)(Ue,{container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:"calc(100vh - 68px)"},children:(0,L.jsx)(Ue,{item:!0,sx:{m:{xs:1,sm:3},mb:0},children:(0,L.jsx)(kke,{children:(0,L.jsxs)(Ue,{container:!0,spacing:2,alignItems:"center",justifyContent:"center",children:[(0,L.jsx)(Ue,{item:!0,xs:12,children:(0,L.jsx)(Ue,{container:!0,direction:n?"column-reverse":"row",alignItems:"center",justifyContent:"center",children:(0,L.jsx)(Ue,{item:!0,children:(0,L.jsx)(po.A,{alignItems:"center",justifyContent:"center",spacing:1,children:(0,L.jsx)(Te.A,{color:t.palette.secondary.main,gutterBottom:!0,variant:n?"h3":"h2",children:"Create New Password"})})})})}),(0,L.jsx)(Ue,{item:!0,xs:12,children:(0,L.jsx)(yRe,{id:e})})]})})})})})})})};var wRe=e=>{let{id:t}=e;const n=(0,te.Zp)(),[r,i]=(0,c.useState)(!1);return(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(Ue,{container:!0,direction:"column",justifyContent:"center",alignItems:"center",spacing:2,children:(0,L.jsx)(Ue,{item:!0,xs:12,container:!0,alignItems:"center",justifyContent:"center",children:(0,L.jsx)(ue.A,{sx:{mb:2},children:(0,L.jsx)(hb,{children:(0,L.jsx)("button",{onClick:async()=>{i(!0);try{const e=new FormData;e.append("token",t),await(0,xi.Ql)(e),n("/register")}catch(qUe){console.log(qUe)}finally{i(!1)}},disabled:r,className:"btn",children:r?(0,L.jsx)(dA,{}):"Accept Invite"})})})})})})};var ARe=()=>{const e=(0,re.A)(),t=ce(e.breakpoints.down("md")),{id:n}=(0,te.g)(),[r,i]=(0,c.useState)({}),[o,a]=(0,c.useState)(!1);return(0,c.useEffect)((()=>{(async()=>{a(!0);const e=new FormData;e.append("token",n);const t=await(0,xi.TW)(e);i(t),a(!1)})()}),[]),(0,L.jsx)(Eke,{children:(0,L.jsx)(Ue,{container:!0,direction:"column",justifyContent:"flex-end",sx:{minHeight:"100vh"},children:(0,L.jsx)(Ue,{item:!0,xs:12,children:(0,L.jsx)(Ue,{container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:"calc(100vh - 68px)"},children:o?(0,L.jsx)(dA,{}):(0,L.jsx)(Ue,{item:!0,sx:{m:{xs:1,sm:3},mb:0},children:(0,L.jsx)(kke,{children:(0,L.jsxs)(Ue,{container:!0,spacing:2,alignItems:"center",justifyContent:"center",children:[(0,L.jsx)(Ue,{item:!0,xs:12,children:(0,L.jsx)(Ue,{container:!0,direction:t?"column-reverse":"row",alignItems:"center",justifyContent:"center",children:(0,L.jsx)(Ue,{item:!0,children:(0,L.jsxs)(po.A,{alignItems:"center",justifyContent:"center",spacing:1,children:[(0,L.jsx)(Te.A,{color:e.palette.secondary.main,gutterBottom:!0,variant:t?"h3":"h2",children:"Accept Invite"}),(0,L.jsxs)(Te.A,{variant:"caption",fontSize:"16px",textAlign:"center",children:["You have been invited to join the team ",(0,L.jsx)("span",{className:"font-semibold text-black",children:null===r||void 0===r?void 0:r.team_name})," as  ",(0,L.jsx)("span",{className:"font-semibold text-black",children:null===r||void 0===r?void 0:r.role})]})]})})})}),(0,L.jsx)(Ue,{item:!0,xs:12,children:(0,L.jsx)(wRe,{id:n})})]})})})})})})})};var ERe={path:"/",element:(0,L.jsx)(Ake,{}),children:[{path:"/login",element:(0,L.jsx)(pRe,{})},{path:"/register",element:(0,L.jsx)(vRe,{})},{path:"/otp",element:(0,L.jsx)(hRe,{})},{path:"/reset",element:(0,L.jsx)(dRe,{})},{path:"/reset/:id",element:(0,L.jsx)(xRe,{})},{path:"/accept-invite/:id",element:(0,L.jsx)(ARe,{})}]};var SRe=()=>(0,L.jsx)("footer",{className:"bg-white border-t",children:(0,L.jsxs)("div",{className:"max-w-7xl mx-auto px-4 py-8 md:py-12",children:[(0,L.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-8",children:[(0,L.jsxs)("div",{children:[(0,L.jsx)("div",{className:"text-xl font-bold bg-gradient-to-r from-purple-600 to-pink-600 text-transparent bg-clip-text mb-4",children:"AskLLY.ai"}),(0,L.jsx)("p",{className:"text-gray-500 text-sm",children:"Experience the future of AI assistance, customized just for you."})]}),(0,L.jsxs)("div",{children:[(0,L.jsx)("h3",{className:"font-semibold mb-3",children:"Product"}),(0,L.jsxs)("ul",{className:"space-y-2 text-sm text-gray-500",children:[(0,L.jsx)("li",{children:"Features"}),(0,L.jsx)("li",{children:"Use cases"}),(0,L.jsx)("li",{children:"AI Hub"}),(0,L.jsx)("li",{children:"Docs"})]})]}),(0,L.jsxs)("div",{children:[(0,L.jsx)("h3",{className:"font-semibold mb-3",children:"Company"}),(0,L.jsxs)("ul",{className:"space-y-2 text-sm text-gray-500",children:[(0,L.jsx)("li",{children:"About"}),(0,L.jsx)("li",{children:"Careers"}),(0,L.jsx)("li",{children:"Blog"}),(0,L.jsx)("li",{children:"Contact"})]})]}),(0,L.jsxs)("div",{children:[(0,L.jsx)("h3",{className:"font-semibold mb-3",children:"Legal"}),(0,L.jsxs)("ul",{className:"space-y-2 text-sm text-gray-500",children:[(0,L.jsx)("li",{children:"Privacy Policy"}),(0,L.jsx)("li",{children:"Terms of Service"}),(0,L.jsx)("li",{children:"Cookie Policy"})]})]})]}),(0,L.jsx)("div",{className:"mt-8 pt-8 border-t text-center text-sm text-gray-500",children:(0,L.jsxs)("p",{children:["\xa9 ",(new Date).getFullYear()," AskLLY.ai. Research Purposes Only."]})})]})});const _Re=(0,Ns.A)("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
205y:"oel41y"}]]),kRe=(0,Ns.A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]),TRe=(0,Ns.A)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),CRe=(0,Ns.A)("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);var ORe=()=>(0,L.jsx)("section",{className:"py-12 md:py-24 px-4 bg-gradient-to-br from-gray-900 via-blue-900 to-gray-900 text-white overflow-hidden",children:(0,L.jsx)("div",{className:"max-w-7xl mx-auto",children:(0,L.jsxs)("div",{className:"grid lg:grid-cols-2 gap-12",children:[(0,L.jsxs)("div",{className:"space-y-8",children:[(0,L.jsxs)("div",{children:[(0,L.jsx)("h2",{className:"text-4xl lg:text-5xl font-bold mb-6",children:"Supervision, security and auditing"}),(0,L.jsx)("p",{className:"text-lg text-gray-300 mb-12 max-w-3xl",children:"To mitigate risks inherent in the non-deterministic nature of LLMs, AskLLY.ai wraps LLMs in supervisory layers to reduce hallucinations, ensure security, and prevent abuse."})]}),(0,L.jsx)("div",{className:"transform hover:-translate-y-1 transition-all duration-300 bg-white/5 backdrop-blur-lg p-6 rounded-lg border border-white/10",children:(0,L.jsxs)("div",{className:"flex items-start gap-4",children:[(0,L.jsx)("div",{className:"w-12 h-12 rounded-lg bg-blue-500/20 flex items-center justify-center flex-shrink-0",children:(0,L.jsx)(_Re,{className:"w-6 h-6 text-blue-400"})}),(0,L.jsxs)("div",{children:[(0,L.jsx)("h3",{className:"text-xl font-semibold mb-2",children:"Filters and monitoring"}),(0,L.jsx)("p",{className:"text-gray-400",children:"Built-in monitors and filters for topics and keywords, with per-session evaluation capabilities. Reviews user input and LLM responses to ensure truthful, relevant, and helpful interactions."})]})]})}),(0,L.jsx)("div",{className:"transform hover:-translate-y-1 transition-all duration-300 bg-white/5 backdrop-blur-lg p-6 rounded-lg border border-white/10",children:(0,L.jsxs)("div",{className:"flex items-start gap-4",children:[(0,L.jsx)("div",{className:"w-12 h-12 rounded-lg bg-purple-500/20 flex items-center justify-center flex-shrink-0",children:(0,L.jsx)(kRe,{className:"w-6 h-6 text-purple-400"})}),(0,L.jsxs)("div",{children:[(0,L.jsx)("h3",{className:"text-xl font-semibold mb-2",children:"Secure integration"}),(0,L.jsx)("p",{className:"text-gray-400",children:"Enterprise-grade security measures ensure safe integration with your existing systems while maintaining data privacy and compliance requirements."})]})]})}),(0,L.jsx)("div",{className:"transform hover:-translate-y-1 transition-all duration-300 bg-white/5 backdrop-blur-lg p-6 rounded-lg border border-white/10",children:(0,L.jsxs)("div",{className:"flex items-start gap-4",children:[(0,L.jsx)("div",{className:"w-12 h-12 rounded-lg bg-green-500/20 flex items-center justify-center flex-shrink-0",children:(0,L.jsx)(TRe,{className:"w-6 h-6 text-green-400"})}),(0,L.jsxs)("div",{children:[(0,L.jsx)("h3",{className:"text-xl font-semibold mb-2",children:"Prompt injection detection"}),(0,L.jsx)("p",{className:"text-gray-400",children:"Advanced security features to detect and prevent malicious prompt injection attempts and maintain system integrity."})]})]})}),(0,L.jsx)("div",{className:"transform hover:-translate-y-1 transition-all duration-300 bg-white/5 backdrop-blur-lg p-6 rounded-lg border border-white/10",children:(0,L.jsxs)("div",{className:"flex items-start gap-4",children:[(0,L.jsx)("div",{className:"w-12 h-12 rounded-lg bg-yellow-500/20 flex items-center justify-center flex-shrink-0",children:(0,L.jsx)(CRe,{className:"w-6 h-6 text-yellow-400"})}),(0,L.jsxs)("div",{children:[(0,L.jsx)("h3",{className:"text-xl font-semibold mb-2",children:"Auditing and inspection"}),(0,L.jsx)("p",{className:"text-gray-400",children:"Comprehensive audit trails and inspection tools to monitor system usage, track interactions, and ensure compliance with security policies."})]})]})})]}),(0,L.jsx)("div",{className:"relative hidden lg:block",children:(0,L.jsx)("div",{className:"absolute inset-0",children:(0,L.jsxs)("div",{className:"relative h-full",children:[(0,L.jsx)("div",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-96 h-96 bg-blue-500/20 rounded-full blur-3xl animate-pulse"}),(0,L.jsx)("div",{className:"absolute inset-0 grid grid-cols-8 grid-rows-8 gap-4",children:Array(64).fill(null).map(((e,t)=>(0,L.jsx)("div",{className:"w-full h-full bg-white/5 rounded-lg transform transition-all duration-1000 animate-bounce",style:{animationDelay:t%8*100+"ms",animationDuration:"3s"}},t)))}),(0,L.jsx)("div",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-32 h-32 bg-gradient-to-br from-blue-500/20 to-purple-500/20 rounded-full flex items-center justify-center animate-pulse",children:(0,L.jsx)(_Re,{className:"w-16 h-16 text-white"})}),(0,L.jsx)("div",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-64 h-64 animate-spin",style:{animationDuration:"20s"},children:[0,90,180,270].map(((e,t)=>(0,L.jsxs)("div",{className:"absolute w-12 h-12 bg-white/10 rounded-lg flex items-center justify-center transform -translate-x-1/2 -translate-y-1/2",style:{transform:`rotate(${e}deg) translateX(8rem) rotate(-${e}deg)`},children:[0===t&&(0,L.jsx)(kRe,{className:"w-6 h-6 text-purple-400"}),1===t&&(0,L.jsx)(TRe,{className:"w-6 h-6 text-green-400"}),2===t&&(0,L.jsx)(_Re,{className:"w-6 h-6 text-blue-400"}),3===t&&(0,L.jsx)(CRe,{className:"w-6 h-6 text-yellow-400"})]},t)))})]})})})]})})});var NRe=()=>{const[e,t]=(0,c.useState)(""),[n,r]=(0,c.useState)(!1),i=(0,te.Zp)(),[o,a]=(0,c.useState)(!1);(0,c.useEffect)((()=>{const e=localStorage.getItem("uid");t(e?"/marketplace":"/login")}),[]);const s=()=>{i(e)};return(0,L.jsxs)("div",{className:"min-h-screen bg-gradient-to-b from-gray-50 to-white",children:[(0,L.jsxs)("nav",{className:"bg-white/80 backdrop-blur-md fixed w-full z-50 border-b",children:[(0,L.jsxs)("div",{className:"max-w-7xl mx-auto px-4 h-16 flex items-center justify-between",children:[(0,L.jsxs)("div",{className:"text-2xl font-bold bg-gradient-to-r from-blue-600 to-purple-600 text-transparent bg-clip-text",children:["AskLLY.ai",(0,L.jsx)("p",{className:"text-base font-medium text-gray-600 hover:text-gray-800",children:"Research Purposes Only"})]}),(0,L.jsx)("div",{className:"lg:hidden",children:(0,L.jsx)("button",{onClick:()=>r(!n),className:"p-2",children:(0,L.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,L.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:n?"M6 18L18 6M6 6l12 12":"M4 6h16M4 12h16M4 18h16"})})})}),(0,L.jsxs)("div",{className:"hidden lg:flex gap-6",children:[(0,L.jsx)("button",{className:"px-4 py-2 text-gray-600 hover:text-gray-900",children:"Features"}),(0,L.jsx)("button",{className:"px-4 py-2 text-gray-600 hover:text-gray-900",children:"Use cases"}),(0,L.jsx)("button",{className:"px-4 py-2 text-gray-600 hover:text-gray-900",children:"About"}),(0,L.jsx)("button",{onClick:s,disabled:o,className:"px-4 py-2 bg-gradient-to-r from-blue-600 to-purple-600 text-white rounded-lg",children:o?(0,L.jsx)(dA,{}):"Get Started"})]})]}),n&&(0,L.jsxs)("div",{className:"lg:hidden border-t bg-white",children:[(0,L.jsx)("button",{className:"block w-full px-4 py-3 text-left hover:bg-gray-50",children:"Features"}),(0,L.jsx)("button",{className:"block w-full px-4 py-3 text-left hover:bg-gray-50",children:"Use cases"}),(0,L.jsx)("button",{className:"block w-full px-4 py-3 text-left hover:bg-gray-50",children:"About"}),(0,L.jsx)("button",{onClick:s,disabled:o,className:"block w-full px-4 py-3 text-left bg-gradient-to-r from-blue-600 to-purple-600 text-white",children:o?(0,L.jsx)(dA,{}):"Get Started"})]})]}),(0,L.jsx)("section",{className:"pt-20 md:pt-32 pb-12 md:pb-24 px-4",children:(0,L.jsx)("div",{className:"max-w-7xl mx-auto",children:(0,L.jsxs)("div",{className:"grid lg:grid-cols-2 gap-8 lg:gap-12 items-center",children:[(0,L.jsxs)("div",{className:"text-center lg:text-left",children:[(0,L.jsxs)("h1",{className:"text-4xl lg:text-5xl font-bold mb-4 lg:mb-6",children:["Train Your Perfect",(0,L.jsx)("span",{className:"block text-transparent bg-clip-text bg-gradient-to-r from-blue-600 to-purple-600",children:"AI Assistant"})]}),(0,L.jsx)("p",{className:"text-lg lg:text-xl text-gray-600 mb-6 lg:mb-8",children:"Create customized AI assistants trained on your domain knowledge data with role based user access."}),(0,L.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4 justify-center lg:justify-start",children:[(0,L.jsx)("button",{onClick:s,disabled:o,className:"px-8 py-3 bg-gradient-to-r from-blue-600 to-purple-600 text-white rounded-lg text-lg w-full sm:w-auto",children:o?(0,L.jsx)(dA,{}):"Start Building"}),(0,L.jsx)("button",{className:"px-8 py-3 border border-gray-300 rounded-lg text-lg w-full sm:w-auto",children:"Watch Demo"})]})]}),(0,L.jsxs)("div",{className:"relative mt-8 lg:mt-0",children:[(0,L.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-blue-400/30 to-purple-400/30 rounded-2xl blur-2xl"}),(0,L.jsx)("div",{className:"relative bg-white/90 p-6 lg:p-8 rounded-2xl shadow-xl border",children:(0,L.jsxs)("div",{className:"space-y-4",children:[(0,L.jsxs)("div",{className:"flex gap-3 items-center",children:[(0,L.jsx)("div",{className:"w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center",children:(0,L.jsx)("svg",{className:"w-5 h-5 text-blue-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,L.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})})}),(0,L.jsx)("div",{className:"flex-1",children:(0,L.jsx)("div",{className:"h-2 bg-blue-200 rounded"})})]}),(0,L.jsxs)("div",{className:"flex gap-3 items-center",children:[(0,L.jsx)("div",{className:"w-8 h-8 rounded-full bg-purple-100 flex items-center justify-center",children:(0,L.jsx)("svg",{className:"w-5 h-5 text-purple-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,L.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})})}),(0,L.jsx)("div",{className:"flex-1",children:(0,L.jsx)("div",{className:"h-2 bg-purple-200 rounded"})})]})]})})]})]})})}),(0,L.jsx)("section",{className:"py-12 md:py-24 bg-gray-50 px-4",children:(0,L.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,L.jsx)("div",{className:"text-center mb-12",children:(0,L.jsxs)("h2",{className:"text-3xl lg:text-4xl font-bold",children:["Everything You Need to Build Your",(0,L.jsx)("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-blue-600 to-purple-600",children:" AI Assistant"})]})}),(0,L.jsx)("div",{className:"grid md:grid-cols-3 gap-6 md:gap-8",children:[{title:"Upload Your Data",description:"Import documents, websites, and custom data to train your AI",icon:(0,L.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,L.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"})})},{title:"Train & Customize",description:"Fine-tune your assistant's knowledge and behavior",icon:(0,L.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,L.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19.428 15.428a2 2 0 00-1.022-.547l-2.387-.477a6 6 0 00-3.86.517l-.318.158a6 6 0 01-3.86.517L6.05 15.21a2 2 0 00-1.806.547M8 4h8l-1 1v5.172a2 2 0 00.586 1.414l5 5c1.26 1.26.367 3.414-1.415 3.414H4.828c-1.782 0-2.674-2.154-1.414-3.414l5-5A2 2 0 009 10.172V5L8 4z"})})},{title:"Deploy & Share",description:"Embed on your website or share with your team",icon:(0,L.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,L.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8.684 13.342C8.886 12.938 9 12.482 9 12c0-.482-.114-.938-.316-1.342m0 2.684a3 3 0 110-2.684m0 2.684l6.632 3.316m-6.632-6l6.632-3.3
20516m0 0a3 3 0 105.367-2.684 3 3 0 00-5.367 2.684zm0 9.316a3 3 0 105.367 2.684 3 3 0 00-5.367-2.684z"})})}].map(((e,t)=>(0,L.jsxs)("div",{className:"bg-white p-6 rounded-xl shadow-lg border",children:[(0,L.jsx)("div",{className:"w-12 h-12 rounded-lg bg-gradient-to-r from-blue-600 to-purple-600 flex items-center justify-center text-white mb-4",children:e.icon}),(0,L.jsx)("h3",{className:"text-xl font-semibold mb-2",children:e.title}),(0,L.jsx)("p",{className:"text-gray-600",children:e.description})]},t)))})]})}),(0,L.jsx)("section",{className:"py-12 md:py-24 px-4",children:(0,L.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,L.jsxs)("div",{className:"text-center mb-12",children:[(0,L.jsxs)("h2",{className:"text-3xl lg:text-4xl font-bold",children:["Data & AI",(0,L.jsx)("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-blue-600 to-purple-600",children:" Governance and Privacy"})]}),(0,L.jsx)("p",{className:"mt-4 text-lg text-gray-600",children:"Protect your data and maintain compliance"})]}),(0,L.jsxs)("div",{className:"grid md:grid-cols-4 gap-6 md:gap-8",children:[(0,L.jsxs)("div",{className:"bg-white p-6 rounded-xl shadow-lg border",children:[(0,L.jsx)("div",{className:"w-12 h-12 rounded-lg bg-gradient-to-r from-blue-600 to-purple-600 flex items-center justify-center text-white mb-4",children:(0,L.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,L.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})})}),(0,L.jsx)("h3",{className:"text-xl font-semibold mb-2",children:"Your data is your own"}),(0,L.jsx)("p",{className:"text-gray-600",children:"Ensures strict data separation between customers. Your knowledge base, documents, and guides used to train your AI assistant are securely stored in your private Asklly workspace. No data is ever shared with other companies."})]}),(0,L.jsxs)("div",{className:"bg-white p-6 rounded-xl shadow-lg border",children:[(0,L.jsx)("div",{className:"w-12 h-12 rounded-lg bg-gradient-to-r from-blue-600 to-purple-600 flex items-center justify-center text-white mb-4",children:(0,L.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,L.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 11.5V14m0-2.5v-6a2 2 0 014 0v6m-4 0h4m-4 0h0m-4 0a2 2 0 104 0v-6a2 2 0 00-4 0v6m4 0h4"})})}),(0,L.jsx)("h3",{className:"text-xl font-semibold mb-2",children:"Private data stays private"}),(0,L.jsx)("p",{className:"text-gray-600",children:"Safeguards customer privacy by detecting and masking personal information (PII), such as SSN and credit card details. Ensures sensitive data is accessed only when necessary, maintaining security and data integrity."})]}),(0,L.jsxs)("div",{className:"bg-white p-6 rounded-xl shadow-lg border",children:[(0,L.jsx)("div",{className:"w-12 h-12 rounded-lg bg-gradient-to-r from-blue-600 to-purple-600 flex items-center justify-center text-white mb-4",children:(0,L.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,L.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"})})}),(0,L.jsx)("h3",{className:"text-xl font-semibold mb-2",children:"Enterprise-grade security"}),(0,L.jsx)("p",{className:"text-gray-600",children:"Designed with a security-first approach, it ensures your sensitive information is always protected. Features include end-to-end encryption, secure data storage, and regular security audits. Your data\u2019s safety is our top priority."})]}),(0,L.jsxs)("div",{className:"bg-white p-6 rounded-xl shadow-lg border",children:[(0,L.jsx)("div",{className:"w-12 h-12 rounded-lg bg-gradient-to-r from-blue-600 to-purple-600 flex items-center justify-center text-white mb-4",children:(0,L.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,L.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"})})}),(0,L.jsx)("h3",{className:"text-xl font-semibold mb-2",children:"Compliance ready"}),(0,L.jsx)("p",{className:"text-gray-600",children:"Ensure compliance with industry standards using built-in controls and features. Maintain transparency with detailed audit trails. Manage data effectively with robust governance tools."})]})]})]})}),(0,L.jsx)("section",{className:"py-12 md:py-24 px-4 bg-gray-50",children:(0,L.jsx)("div",{className:"max-w-7xl mx-auto",children:(0,L.jsxs)("div",{className:"grid lg:grid-cols-2 gap-8 lg:gap-12 items-center",children:[(0,L.jsxs)("div",{children:[(0,L.jsxs)("h2",{className:"text-3xl lg:text-4xl font-bold mb-6",children:["See what",(0,L.jsx)("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-blue-600 to-purple-600",children:" AskLLY.ai "}),"can do for you"]}),(0,L.jsx)("p",{className:"text-lg text-gray-600 mb-8",children:"Find out how AskLLY.ai can help your company transform the employee and customer experience with our conversational AI assistants. Our intelligent solutions are designed to enhance customer interactions and streamline your business operations."}),(0,L.jsx)("button",{className:"px-8 py-3 bg-gradient-to-r from-blue-600 to-purple-600 text-white rounded-lg text-lg",children:"Learn More"})]}),(0,L.jsxs)("div",{className:"relative",children:[(0,L.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-blue-400/30 to-purple-400/30 rounded-2xl blur-2xl"}),(0,L.jsx)("div",{className:"relative bg-white/90 p-8 rounded-2xl shadow-xl border",children:(0,L.jsxs)("div",{className:"space-y-6",children:[(0,L.jsxs)("div",{className:"flex gap-4",children:[(0,L.jsx)("div",{className:"w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center",children:(0,L.jsx)("svg",{className:"w-6 h-6 text-blue-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,L.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z"})})}),(0,L.jsxs)("div",{className:"flex-1",children:[(0,L.jsx)("h3",{className:"font-semibold mb-1",children:"Intelligent Conversations"}),(0,L.jsx)("div",{className:"h-2 bg-blue-200 rounded w-3/4"})]})]}),(0,L.jsxs)("div",{className:"flex gap-4",children:[(0,L.jsx)("div",{className:"w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center",children:(0,L.jsx)("svg",{className:"w-6 h-6 text-purple-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,L.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z"})})}),(0,L.jsxs)("div",{className:"flex-1",children:[(0,L.jsx)("h3",{className:"font-semibold mb-1",children:"Use cases"}),(0,L.jsx)("div",{className:"h-2 bg-purple-200 rounded w-2/3"})]})]})]})})]})]})})}),(0,L.jsx)(ORe,{}),(0,L.jsx)("section",{className:"py-12 md:py-24 px-4",children:(0,L.jsxs)("div",{className:"max-w-4xl mx-auto text-center",children:[(0,L.jsxs)("h2",{className:"text-3xl lg:text-4xl font-bold mb-6 lg:mb-8",children:["Ready to Build Your",(0,L.jsx)("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-blue-600 to-purple-600",children:" AI Assistant?"})]}),(0,L.jsx)("button",{className:"w-full sm:w-auto px-8 py-4 bg-gradient-to-r from-blue-600 to-purple-600 text-white rounded-lg text-lg",children:"Get Started for Free"})]})}),(0,L.jsx)(SRe,{})]})};var IRe={path:"/",element:(0,L.jsx)(NRe,{})},RRe=__webpack_require__(29277),PRe=__webpack_require__.p+"static/media/Inbox cleanup-rafiki.dc9fd3099214541593be.png";var jRe=function(){const{id:e}=(0,te.g)(),{knowldegeHubsNames:t,getCachedUserInfo:n}=ma(),[r,o]=c.useState(0),[a,s]=c.useState(10),[l,u]=(0,c.useState)(""),[d,p]=(0,c.useState)([]),[h,f]=(0,c.useState)(!1),[m,g]=c.useState([{email:"",role:[]}]),[b,v]=c.useState(null),[y,x]=(0,c.useState)([]),[w,A]=(0,c.useState)(""),[E,S]=(0,c.useState)(""),[_,k]=(0,c.useState)([]),[T,C]=(0,c.useState)(!1),[O,N]=(0,c.useState)(!1),[I,R]=(0,c.useState)({}),[P,j]=(0,c.useState)(!1),[M,D]=(0,c.useState)(!1),[F,B]=(0,c.useState)(""),[U,z]=(0,c.useState)({}),[H,$]=(0,c.useState)(!1),[V,G]=(0,c.useState)([]),[W,q]=(0,c.useState)([]),[Y,K]=(0,c.useState)(!1),[X,Z]=(0,c.useState)(!1),Q=Boolean(b),J=()=>{v(null)},ee=async()=>{var t,n,r;D(!0);const i=new FormData;i.append("team_id",e);const o=await(0,xi.fP)(i);A(null===o||void 0===o?void 0:o.kb_name),S(null===o||void 0===o||null===(t=o.team)||void 0===t?void 0:t.team_name),G(null===o||void 0===o||null===(n=o.team)||void 0===n||null===(r=n.knowledge_base_limit)||void 0===r?void 0:r.split(",")),z(null===o||void 0===o?void 0:o.team),o.members.length>0?x(o.members):x([]),D(!1)};(0,c.useEffect)((()=>{ee(),(async()=>{const e=await(0,xi.O0)();k(e.roles)})(),(async()=>{const t=new FormData;t.append("team_id",e);const r=localStorage.getItem("uid"),i=await n(r);t.append("email",null===i||void 0===i?void 0:i.email);const o=await(0,xi.EB)(t);C(o)})()}),[]);const ne=(0,te.Zp)(),re=()=>{g((e=>[...e,{email:"",role:[]}]))},ie=(e,t,n)=>{const r=[...m];if("role"===t){const i=Array.isArray(n)?n:[n];r[e][t]=i}else r[e][t]=n;g(r)},oe=()=>{G([])},ae=V.map((e=>{const n=t.find((t=>t.kb_id===e));return n?n.kb_name:null})).filter((e=>null!==e)),se=[{accessorKey:"member_name",header:"Member"},{accessorKey:"status",header:"Status"},{accessorKey:"role",header:"Role"},{accessorKey:"created_at",header:"Created At",Cell:e=>{let{row:t}=e;
205return new Date(t.original.created_at+"Z").toLocaleString()}},{accessorKey:"actions",header:"More",Cell:e=>{let{row:t}=e;return T&&(t.original.member_name===(null===U||void 0===U?void 0:U.team_contact_email)?"Owner cannot be edited or deleted":(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Pa.A,{onClick:e=>{return n=e,r=t.original.id,v(n.currentTarget),void B(r);var n,r},children:(0,L.jsx)(vfe,{})}),(0,L.jsxs)(pA.A,{id:"basic-menu",anchorEl:b,open:Q,onClose:J,MenuListProps:{"aria-labelledby":"basic-button"},children:[(0,L.jsxs)(Qs.A,{onClick:()=>(async()=>{const e=y.find((e=>e.id===F));e&&R({...e,oldemail:null===e||void 0===e?void 0:e.member_name,role:(null===e||void 0===e?void 0:e.role.split(","))||[]}),J(),N(!0)})(t.original.id),children:[(0,L.jsx)(Ot,{className:"mr-2 text-blue-500"}),"Edit User"]}),(0,L.jsxs)(Qs.A,{onClick:()=>(async()=>{const e=localStorage.getItem("uid"),t=new FormData,n=localStorage.getItem("organization");t.append("organization",n),t.append("member_id",F),t.append("team_name",E),t.append("uid",e),await(0,xi.cx)(t),ee(),J(),aa.oR.success("Member deleted succesfully",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})})(t.original.id),children:[(0,L.jsx)(Yt,{className:"mr-2 text-red-500"}),"Delete User"]})]})]}))}}];return(0,L.jsxs)(Co.A,{children:[(0,L.jsx)(po.A,{justifyContent:"space-between",direction:"row",alignItems:"center",children:(0,L.jsxs)("div",{className:"flex justify-center items-center",children:[(0,L.jsx)(i.N_,{to:"/marketplace",children:(0,L.jsx)(rw.A,{color:"secondary"})}),(0,L.jsx)(jhe.A,{}),(0,L.jsx)(i.N_,{to:"/teams",children:(0,L.jsx)(Te.A,{sx:{fontWeight:"bold"},children:"Teams"})}),(0,L.jsx)(jhe.A,{}),(0,L.jsx)(Te.A,{sx:{fontWeight:"bold"},children:"Members"})]})}),(0,L.jsxs)(po.A,{children:[(0,L.jsx)(po.A,{children:(0,L.jsx)(ue.A,{sx:{mt:4,mb:3},children:(0,L.jsxs)(po.A,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,L.jsxs)(po.A,{direction:"column",sx:{width:"100%"},children:[(0,L.jsx)(Te.A,{variant:"h3",sx:{mb:1},children:E}),(0,L.jsxs)(Te.A,{variant:"h5",className:"w-[70%]",children:["Knowledge Hub - ",w]})]}),T&&(0,L.jsxs)(po.A,{direction:"row",children:[(0,L.jsx)(mi,{placement:"top",title:"Add Member",children:(0,L.jsx)(Pa.A,{className:"mr-2",onClick:()=>f(!0),children:(0,L.jsx)(Zt,{className:"text-[#5E35B1]"})})}),(0,L.jsx)(mi,{placement:"top",title:"Edit Team",children:(0,L.jsx)(Pa.A,{className:"mr-2",onClick:()=>$(!0),children:(0,L.jsx)(Ot,{className:"text-[#5E35B1]"})})}),(0,L.jsx)(mi,{placement:"top",title:"Delete Team",children:(0,L.jsx)(Pa.A,{className:"mr-2",onClick:()=>Z(!0),children:(0,L.jsx)(Yt,{className:"text-red-500"})})})]})]})})}),(0,L.jsx)(po.A,{sx:{mt:2,borderRadius:"8px",overflow:"hidden"},children:(0,L.jsx)(Rhe,{columns:se,data:y,enableColumnActions:!1,enableColumnFilters:!1,enablePagination:!0,enableSorting:!0,enableBottomToolbar:!0,enableTopToolbar:!0,muiTableBodyRowProps:{hover:!0},enableGlobalFilter:!0,muiSearchTextFieldProps:{placeholder:"Search Team",variant:"outlined",color:"secondary",InputProps:{startAdornment:(0,L.jsx)(Ei.A,{position:"start",children:(0,L.jsx)(Ht,{})})}},muiTablePaginationProps:{labelRowsPerPage:""},state:{showSkeletons:M}})})]}),(0,L.jsx)(Ks,{open:h,onClose:()=>f(!1),anchor:"right",children:(0,L.jsxs)(ue.A,{sx:{minWidth:"40vw",padding:5},children:[(0,L.jsxs)(po.A,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,L.jsx)(Te.A,{variant:"h3",children:"Add Members"}),(0,L.jsx)(Pa.A,{onClick:()=>f(!1),children:(0,L.jsx)(rn,{})})]}),(0,L.jsx)(po.A,{sx:{overflow:"auto",mt:2,height:"300px"},children:m.map(((e,t)=>(0,L.jsxs)(po.A,{direction:"row",justifyContent:"space-between",children:[(0,L.jsx)(Ai.A,{placeholder:`Member ${t+1} email Here`,variant:"outlined",color:"secondary",sx:{mt:1},value:e.email,onChange:e=>ie(t,"email",e.target.value),endAdornment:(0,L.jsx)(Ei.A,{children:(0,L.jsx)(Pa.A,{onClick:()=>(e=>{const t=[...m];t.splice(e,1),g(t)})(t),children:(0,L.jsx)(rn,{})})})},t),(0,L.jsxs)(fl.A,{variant:"outlined",sx:{mt:1,ml:1,width:"150px"},children:[(0,L.jsx)(Zae.A,{children:"Role"}),(0,L.jsx)(Zs.A,{multiple:!0,value:e.role,onChange:e=>ie(t,"role",e.target.value),label:"Role",color:"secondary",children:null===_||void 0===_?void 0:_.map((e=>(0,L.jsx)(Qs.A,{value:null===e||void 0===e?void 0:e.roles,children:null===e||void 0===e?void 0:e.roles},null===e||void 0===e?void 0:e.id)))})]}),(0,L.jsx)(Yx.A,{color:"secondary",onClick:re,children:"Add"})]},t)))}),(0,L.jsx)(po.A,{sx:{mt:2},children:(0,L.jsx)(Yx.A,{onClick:async()=>{try{const t=m.every((e=>""!==e.email.trim()&&""!==e.role.join(" "))),n=m.every((e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.email.trim())));if(!t)return aa.oR.error("Add Atleast one with role member to continue",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});if(!n)return aa.oR.error("Enter an valid email to continue",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});j(!0);const r=new FormData,i=localStorage.getItem("uid");r.append("team_id",e),r.append("uid",i);const o=m.map((e=>{let{email:t,role:n}=e;return{email:t,role:n.join(",")}}));r.append("membersRoles",JSON.stringify(o));const a=localStorage.getItem("organization");r.append("organization",a);await(0,xi.n7)(r);aa.oR.success("Added Members Succesfully",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}),ee(),g([{email:"",role:[]}]),j(!1),f(!1)}catch(qUe){console.log(qUe)}},disabled:P,variant:"outlined",color:"secondary",children:P?(0,L.jsx)(dA,{color:"secondary"}):"Add Members"})})]})}),(0,L.jsx)(Ks,{open:O,onClose:()=>N(!1),anchor:"right",children:(0,L.jsxs)(ue.A,{sx:{width:{xs:"100vw",md:"50vw"},padding:5},children:[(0,L.jsxs)(po.A,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,L.jsx)(Te.A,{variant:"h3",children:"Edit Member"}),(0,L.jsx)(Pa.A,{onClick:()=>N(!1),children:(0,L.jsx)(rn,{})})]}),(0,L.jsxs)(po.A,{sx:{overflow:"auto",mt:7,height:"300px"},children:[(0,L.jsx)(RRe.A,{htmlFor:"email",children:(0,L.jsx)(Te.A,{variant:"h4",children:"Member Email"})}),(0,L.jsx)(Ai.A,{id:"email",variant:"outlined",color:"secondary",sx:{mt:1},onChange:e=>{R((t=>({...t,member_name:e.target.value})))},value:null===I||void 0===I?void 0:I.member_name}),(0,L.jsx)(RRe.A,{htmlFor:"email",sx:{mt:5},children:(0,L.jsx)(Te.A,{variant:"h4",children:"Member Role"})}),(0,L.jsx)(Zs.A,{multiple:!0,value:null===I||void 0===I?void 0:I.role,onChange:e=>{const{target:{value:t}}=e;R((e=>({...e,role:t})))},color:"secondary",children:null===_||void 0===_?void 0:_.map((e=>(0,L.jsx)(Qs.A,{value:null===e||void 0===e?void 0:e.roles,children:null===e||void 0===e?void 0:e.roles},null===e||void 0===e?void 0:e.id)))})]}),(0,L.jsx)(po.A,{sx:{mt:2},children:(0,L.jsx)(Yx.A,{onClick:async()=>{try{var t,n;const r=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;if(null===I||void 0===I||!I.member_name)return void aa.oR.error("Please fill the email fields.",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});if(!(null!==I&&void 0!==I&&null!==(t=I.role)&&void 0!==t&&t.length)>=1)return void aa.oR.error("Please choose the role.",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});if(!r.test(null===I||void 0===I?void 0:I.member_name))return void aa.oR.error("Enter an correct email to continue",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});j(!0);const i=new FormData;i.append("team_id",e),i.append("email",null===I||void 0===I?void 0:I.member_name);const o=null===I||void 0===I||null===(n=I.role)||void 0===n?void 0:n.join(",");i.append("role",o),i.append("oldemail",null===I||void 0===I?void 0:I.oldemail),await(0,xi.V0)(i,N),ee(),j(!1)}catch(qUe){console.log(qUe),j(!1)}},disabled:P,variant:"outlined",color:"secondary",children:P?(0,L.jsx)(dA,{color:"secondary"}):"Update"})})]})}),(0,L.jsxs)(Ks,{open:H,anchor:"right",onClose:()=>{$(!1)},children:[(0,L.jsxs)("div",{className:"flex justify-between mb-2 items-center px-7 py-3",children:[(0,L.jsx)(Te.A,{variant:"h3",className:"font-bold",children:"Edit Team"}),(0,L.jsx)(Pa.A,{onClick:()=>{$(!1)},children:(0,L.jsx)(rn,{})})]}),(0,L.jsx)(ze.A,{}),(0,L.jsx)("div",{className:"md:w-[50vw] w-[80vw] bg-white",children:(0,L.jsxs)("div",{className:"p-7",children:[(0,L.jsxs)(po.A,{children:[(0,L.jsx)(Te.A,{variant:"h4",children:"Team Name"}),(0,L.jsx)(Xa.A,{placeholder:"Team name Here",value:null===U||void 0===U?void 0:U.team_name,onChange:e=>z({...U,team_name:e.target.value}),variant:"outlined",color:"secondary",sx:{mt:1}})]}),(0,L.jsxs)(po.A,{sx:{mt:2},children:[(0,L.jsx)(Te.A,{variant:"h4",children:"Owner"}),(0,L.jsx)(Xa.A,{placeholder:"Team name Here",variant:"outlined",value:null===U||void 0===U?void 0:U.owner,disabled:!0,color:"secondary",sx:{mt:1}})]}),(0,L.jsxs)(po.A,{sx:{mt:2},children:[(0,L.jsx)(Te.A,{variant:"h4",children:"Knowledge Hub Limit"}),(0,L.jsxs)(fl.A,{variant:"outlined",sx:{mt:2},children:[(0,L.jsx)(Zae.A,{children:"Knowledge Hub"}),(0,L.jsxs)(Zs.A,{multiple:!0,value:ae,onChange:e=>{const n=e.target.value;if(null!==n&&void 0!==n&&n.includes("selectAll")){const e=t.map((e=>e.kb_id));G(e)}else{const e=n.map((e=>{const n=t.find((t=>t.kb_name===e));return n?n.kb_id:null})).filter((e=>null!==e));G(e)}},label:"Knowledge Hub",color:"secondary",sx:{minWidth:200},children:[t&&(null===t||void 0===t?void 0:t.map(((e,t)=>(0,L.jsx)(Qs.A,{value:null===e||void 0===e?void 0:e.kb_name,children:null===e||void 0===e?void 0:e.kb_name},t)))),(0,L.jsx)(Qs.A,{value:!0,children:"Select All Knowledge Hub"})]})]})]}),(0,L.jsx)(po.A,{sx:{mt:10},children:(0,L.jsx)(Yx.A,{onClick:async()=>
205{if((null===U||void 0===U?void 0:U.team_name.length)<3)return aa.oR.error("Team name should be more than 3 characters long",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});const t=new FormData;t.append("team_id",e),t.append("team_name",null===U||void 0===U?void 0:U.team_name),t.append("knowledge_base_limit",V.join(",")),await(0,xi.ki)(t,$,oe),await ee()},variant:"outlined",color:"secondary",children:"Update"})})]})})]}),(0,L.jsx)(Ls.A,{open:X,onClose:()=>{K(!1),Z(!1)},"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",sx:{},children:(0,L.jsx)(ue.A,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:(0,L.jsxs)("div",{className:"bg-white h-[45vh] md:w-[30vw] w-[90%] p-2 rounded-md flex flex-col justify-center items-center",children:[(0,L.jsx)("img",{src:PRe,className:"w-40"}),(0,L.jsxs)("div",{className:"flex flex-col justify-center items-start",children:[(0,L.jsx)(Te.A,{variant:"h3",sx:{mx:1},children:"Delete team"}),(0,L.jsxs)("div",{className:"flex items-center mt-2",children:[(0,L.jsx)(qx,{color:"secondary",value:Y,onClick:()=>{K(!Y)}}),(0,L.jsx)("p",{className:"font-semibold",children:"I Understand that deleting team cannot be recovered"})]}),(0,L.jsxs)("div",{className:"flex items-center mt-2",children:[(0,L.jsx)(Yx.A,{color:"secondary",sx:{mr:2},onClick:()=>{K(!1),Z(!1)},children:"Cancel"}),(0,L.jsx)(Yx.A,{variant:"outlined",color:"error",disabled:!1===Y||!0===P,onClick:async()=>{const t=new FormData,n=localStorage.getItem("uid"),r=localStorage.getItem("organization");t.append("organization",r),t.append("team_id",e),t.append("uid",n);await(0,xi.To)(t);ne("/teams")},children:P?(0,L.jsx)(dA,{color:"error"}):"Delete"})]})]})]})})})]})};function MRe(){const{getmyTeam:e,activeRole:t,knowldegeHubsNames:n,getCachedUserInfo:r}=ma(),[o,a]=(0,c.useState)(!1),[s,l]=(0,c.useState)(!1),[u,d]=(0,c.useState)(""),[p,h]=(0,c.useState)([{email:"",role:[],disabled:!0}]),[f,m]=(0,c.useState)(""),[g,b]=(0,c.useState)([]),[v,y]=(0,c.useState)(null),[x,w]=(0,c.useState)([]),[A,E]=(0,c.useState)([]),[S,_]=(0,c.useState)(!1),[k,T]=(0,c.useState)(!1),C=(0,te.Zp)(),O=async()=>{_(!0);const t=localStorage.getItem("uid"),n=new FormData,i=await r(t);localStorage.getItem("email");n.append("email",null===i||void 0===i?void 0:i.email);const o=localStorage.getItem("organization");n.append("organization",o);const a=await(0,xi.vt)(n);if(await e(),a.teams.length>0){const e=a.teams.sort(((e,t)=>new Date(t.team.created_at)-new Date(e.team.created_at)));w(e)}else w([]);_(!1)};(0,c.useEffect)((()=>{const e=localStorage.getItem("uid");N(e),O(),(async()=>{const e=await(0,xi.O0)();E(e.roles)})()}),[]);const N=async e=>{const t=await r(e);m(t),h([{email:t.email,role:["Admin"],disabled:!0}])},I=()=>{h((e=>[...e,{email:"",role:[],disabled:!1}]))},R=(e,t,n)=>{const r=[...p];if("role"===t){const i=Array.isArray(n)?n:[n];r[e][t]=i}else r[e][t]=n;h(r)},P=g.map((e=>{const t=n.find((t=>t.kb_id===e));return t?t.kb_name:null})).filter((e=>null!==e)),j=(0,c.useMemo)((()=>[{accessorKey:"team.team_name",header:"Team",Cell:e=>{let{row:t}=e;return(0,L.jsx)("span",{className:"hover:underline cursor-pointer",onClick:()=>C(`/teams/${t.original.team.id}`),children:t.original.team.team_name})}},{accessorKey:"kb_name",header:"Knowledge Hub Access"},{accessorKey:"team.owner",header:"Owner"},{accessorKey:"team.team_contact_email",header:"Email"},{accessorKey:"team.created_at",header:"Created At",Cell:e=>{let{row:t}=e;return new Date(t.original.team.created_at+"Z").toLocaleString()}}]),[C]);return(0,L.jsxs)(po.A,{children:[(0,L.jsxs)(Co.A,{children:[(0,L.jsxs)(po.A,{justifyContent:"space-between",direction:"row",alignItems:"center",children:[(0,L.jsxs)("div",{className:"flex justify-center items-center",children:[(0,L.jsx)(i.N_,{to:"/marketplace",children:(0,L.jsx)(rw.A,{color:"secondary"})}),(0,L.jsx)(jhe.A,{}),(0,L.jsx)(i.N_,{to:"/teams",children:(0,L.jsx)(Te.A,{sx:{fontWeight:"bold"},children:"Teams"})})]}),(t.split(",").includes("Admin")||t.split(",").includes("Create Teams"))&&(0,L.jsxs)("button",{onClick:()=>l(!0),className:"flex items-center gap-2 px-4 py-2 text-sm text-purple-700 bg-opacity-80 bg-purple-100 hover:bg-opacity-100 hover:text-purple-700 rounded-full transition-colors duration-200",children:[(0,L.jsx)(F_e.A,{className:"text-base"}),"Team"]})]}),(0,L.jsx)(po.A,{sx:{mt:1},children:(0,L.jsx)(Te.A,{children:"Users to manage teams, manage team members, and assign specific Knowledge Hubs to enhance collaboration and resource access"})})]}),(0,L.jsxs)(po.A,{sx:{mt:2,borderRadius:"8px",overflow:"hidden"},children:[(0,L.jsx)(Rhe,{columns:j,data:x,enableColumnActions:!1,enableColumnFilters:!1,enablePagination:!0,enableSorting:!0,enableBottomToolbar:!0,enableTopToolbar:!0,muiTableBodyRowProps:{hover:!0},enableGlobalFilter:!0,muiSearchTextFieldProps:{placeholder:"Search Team",variant:"outlined",color:"secondary",InputProps:{startAdornment:(0,L.jsx)(Ei.A,{position:"start",children:(0,L.jsx)(Ht,{})})}},muiTablePaginationProps:{labelRowsPerPage:""},state:{showSkeletons:S}}),(0,L.jsxs)(Ks,{anchor:"right",open:s,onClose:()=>{l(!1),b([])},children:[(0,L.jsxs)("div",{className:"flex justify-between mb-2 items-center px-7 py-3",children:[(0,L.jsx)(Te.A,{variant:"h3",className:"font-bold",children:"Add Team"}),(0,L.jsx)(Pa.A,{onClick:()=>{l(!1),b([])},children:(0,L.jsx)(rn,{})})]}),(0,L.jsx)(ze.A,{}),(0,L.jsxs)(ue.A,{sx:{width:{xs:"100vw",md:"50vw"},paddingLeft:4,paddingRight:4},children:[(0,L.jsxs)(po.A,{sx:{mt:2},children:[(0,L.jsx)(Te.A,{variant:"h4",children:"Team Name"}),(0,L.jsx)(Xa.A,{placeholder:"Team name Here",value:u,onChange:e=>d(e.target.value),variant:"outlined",color:"secondary",sx:{mt:1}})]}),(0,L.jsxs)(po.A,{sx:{mt:2},children:[(0,L.jsx)(Te.A,{variant:"h4",children:"Owner"}),(0,L.jsx)(Xa.A,{placeholder:"Team name Here",variant:"outlined",value:f.uname,disabled:!0,color:"secondary",sx:{mt:1}})]}),(0,L.jsxs)(po.A,{sx:{mt:2},children:[(0,L.jsx)(Te.A,{variant:"h4",children:"Choose Knowledge Hub"}),(0,L.jsxs)(fl.A,{variant:"outlined",sx:{mt:2},children:[(0,L.jsx)(Zae.A,{children:"Knowledge Hub"}),(0,L.jsxs)(Zs.A,{multiple:!0,value:P,onChange:e=>{const t=e.target.value;if(null!==t&&void 0!==t&&t.includes("selectAll")){const e=n.map((e=>e.kb_id));b(e)}else{const e=t.map((e=>{const t=n.find((t=>t.kb_name===e));return t?t.kb_id:null})).filter((e=>null!==e));b(e)}},label:"Knowledge Hub",color:"secondary",children:[n&&(null===n||void 0===n?void 0:n.map(((e,t)=>(0,L.jsx)(Qs.A,{value:null===e||void 0===e?void 0:e.kb_name,children:null===e||void 0===e?void 0:e.kb_name},t)))),(0,L.jsx)(Qs.A,{value:"selectAll",children:"Select All Knowledge Hub"})]})]})]}),(0,L.jsxs)(po.A,{sx:{overflow:"auto",mb:5},children:[(0,L.jsx)(Te.A,{variant:"h4",sx:{my:2},children:"Add Members"}),p.map(((e,t)=>(0,L.jsx)(po.A,{children:(0,L.jsxs)(po.A,{direction:"row",justifyContent:"space-between",children:[(0,L.jsx)(Ai.A,{disabled:e.disabled,placeholder:`Member ${t+1} email Here`,variant:"outlined",color:"secondary",sx:{mt:1},value:e.email,onChange:e=>R(t,"email",e.target.value),endAdornment:(0,L.jsx)(Ei.A,{children:(0,L.jsx)(Pa.A,{onClick:()=>(e=>{if(0===e)return;const t=[...p];t.splice(e,1),h(t)})(t),children:(0,L.jsx)(rn,{})})})},t),(0,L.jsxs)(fl.A,{variant:"outlined",sx:{mt:1,ml:1,width:"150px"},children:[(0,L.jsx)(Zae.A,{children:"Role"}),(0,L.jsx)(Zs.A,{multiple:!0,value:e.role,disabled:e.disabled,onChange:e=>R(t,"role",e.target.value),label:"Role",color:"secondary",children:null===A||void 0===A?void 0:A.map((e=>(0,L.jsx)(Qs.A,{value:null===e||void 0===e?void 0:e.roles,children:null===e||void 0===e?void 0:e.roles},null===e||void 0===e?void 0:e.id)))})]}),(0,L.jsx)(Yx.A,{color:"secondary",onClick:I,children:"Add Member"})]},t)})))]}),(0,L.jsx)(po.A,{children:(0,L.jsx)(Yx.A,{onClick:async()=>{const e=localStorage.getItem("uid"),t=await r(e),n=null===t||void 0===t?void 0:t.email,i=localStorage.getItem("organization"),o=new FormData;o.append("uid",e),o.append("organization",i),o.append("team_contact_email",n),o.append("email_addresses",p.map((e=>e.email)).join(",")),o.append("knowledge_base_limit",g),o.append("owner",n),o.append("team_name",u),o.append("created_at",(new Date).toISOString()),o.append("membersRoles",JSON.stringify(p.map((e=>({email:e.email,role:e.role}))))),T(!0);const s=await(0,xi.VN)(o);T(!1),"New Team has been Created"===s.message?(aa.oR.success(s.message),h([{email:"",role:[],disabled:!0}]),d(""),a(!1),O()):aa.oR.error(s.message)},variant:"outlined",color:"secondary",disabled:k,children:k?(0,L.jsx)(dA,{color:"secondary"}):"Add Team"})})]})]})]})]})}var DRe={path:"/teams",element:(0,L.jsx)(Ab,{}),children:[{path:"",element:(0,L.jsx)(MRe,{})},{path:":id",element:(0,L.jsx)(jRe,{})}]};const LRe=["initialWidth","width"],FRe=["xs","sm","md","lg","xl"],BRe=function(e,t){return!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?FRe.indexOf(e)<=FRe.indexOf(t):FRe.indexOf(e)<FRe.indexOf(t)},URe=function(e,t){return arguments.length>2&&void 0!==arguments[2]&&arguments[2]?FRe.indexOf(t)<=FRe.indexOf(e):FRe.indexOf(t)<FRe.indexOf(e)};var zRe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t=>{const{withTheme:n=!1,noSSR:r=!1,initialWidth:i}=e;return function(e){const o=(0,re.A)(),a=e.theme||o,s=(0,oe.A)({theme:a,name:"MuiWithWidth",props:e}),{initialWidth:l,width:u}=s,d=(0,P.A)(s,LRe),[p,h]=c.useState(!1);(0,mo.A)((()=>{h(!0)}),[]);const f=a.breakpoints.keys.slice().reverse().reduce(((e,t)=>{const n=ce(a.breakpoints.up(t));return!e&&n?t:e}),null),m=(0,R.A)({width:u||(p||r?f:void 0)||l||i},n?{theme:a}:{},d);return void 0===m.width?null:(0,L.jsx)(t,(0,R.A)({},m))}}};var HRe=zRe()((function(e){const{children:t,only:n,width:r}=e,i=(0,re.A)();let o=!0;if(n)if(Array.isArray(n))for(let a=0;a<n.length;a+=1){if(r===n[a]){o=!1;break}}else n&&r===n&&(o=!1);if(o)for(let a=0;a<i.breakpoints.keys.length;a+=1){const t=i.breakpoints.keys[a],n=e[`${t}Up`],s=e[`${t}Down`];if(n&&BRe(t,r)||s&&URe(t,r)){o=!1;break}}return o?(0,L.jsx)(c.Fragment,{children:t}):null}));function $Re(e){return(0,ge.Ay)("PrivateHiddenCss",e)}(0,me.A)("PrivateHiddenCss",["root","xlDown","xlUp","onlyXl","lgDown","lgUp","onlyLg","mdDown","mdUp","onlyMd","smDown","smUp","onlySm","xsDown","xsUp","onlyXs"]);const VRe=["children","className","only"],GRe=(0,ne.Ay)("div",{name:"PrivateHiddenCss",slot:"Root"})((e=>{let{theme:t,ownerState:n}=e;const r={display:"none"};return(0,R.A)({},n.breakpoints.map((e=>{let{breakpoint:n,dir:i}=e;return"only"===i?{[t.breakpoints.only(n)]:r}:"up"===i?{[t.breakpoints.up(n)]:r}:{[t.breakpoints.down(n)]:r}})).reduce(((e,t)=>(Object.keys(t).forEach((n=>{e[n]=t[n]})),e)),{}))}));var WRe=function(e){const{children:t,className:n,only:r}=e,i=(0,P.A)(e,VRe),o=(0,re.A)(),a=[];for(let c=0;c<o.breakpoints.keys.length;c+=1){const e=o.breakpoints.keys[c],t=i[`${e}Up`],n=i[`${e}Down`];t&&a.push({breakpoint:e,dir:"up"}),n&&a.push({breakpoint:e,dir:"down"})}
205if(r){(Array.isArray(r)?r:[r]).forEach((e=>{a.push({breakpoint:e,dir:"only"})}))}const s=(0,R.A)({},e,{breakpoints:a}),l=(e=>{const{classes:t,breakpoints:n}=e,r={root:["root",...n.map((e=>{let{breakpoint:t,dir:n}=e;return"only"===n?`${n}${(0,he.A)(t)}`:`${t}${(0,he.A)(n)}`}))]};return(0,pe.A)(r,$Re,t)})(s);return(0,L.jsx)(GRe,{className:(0,de.A)(l.root,n),ownerState:s,children:t})};const qRe=["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"];var YRe=function(e){const{implementation:t="js",lgDown:n=!1,lgUp:r=!1,mdDown:i=!1,mdUp:o=!1,smDown:a=!1,smUp:s=!1,xlDown:l=!1,xlUp:c=!1,xsDown:u=!1,xsUp:d=!1}=e,p=(0,P.A)(e,qRe);return"js"===t?(0,L.jsx)(HRe,(0,R.A)({lgDown:n,lgUp:r,mdDown:i,mdUp:o,smDown:a,smUp:s,xlDown:l,xlUp:c,xsDown:u,xsUp:d},p)):(0,L.jsx)(WRe,(0,R.A)({lgDown:n,lgUp:r,mdDown:i,mdUp:o,smDown:a,smUp:s,xlDown:l,xlUp:c,xsDown:u,xsUp:d},p))},KRe=__webpack_require__(41328),XRe=__webpack_require__(99624);var ZRe=function(){const[e,t]=(0,c.useState)("");(0,c.useEffect)((()=>{const e=localStorage.getItem("uid");t(e?"/marketplace":"/login")}),[]);const[n,r]=(0,c.useState)(!1),i=(0,te.Zp)(),o=((0,ne.Ay)("button")((e=>{let{theme:t}=e;return{backgroundColor:"#fff"}})),()=>{i(e)}),a=()=>{r(!1)},[s,l]=(0,c.useState)(!1);return(0,L.jsxs)(we,{color:"",sx:{boxShadow:"yes",paddingX:{xs:4,sm:10},paddingY:{xs:2,sm:3}},children:[(0,L.jsxs)(po.A,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,L.jsx)("span",{className:"font-sans text-2xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-purple-500 to-blue-800",children:"asklly.ai (Research)"}),(0,L.jsx)(YRe,{smDown:!0,children:(0,L.jsxs)(po.A,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{width:400},children:[(0,L.jsx)(Te.A,{variant:"h4",sx:{fontWeight:500},children:"home"}),(0,L.jsx)(Te.A,{variant:"h4",sx:{fontWeight:500},children:"features"}),(0,L.jsx)(Te.A,{variant:"h4",sx:{fontWeight:500},children:"faq"}),(0,L.jsx)(ue.A,{children:(0,L.jsx)(Yx.A,{color:"secondary",variant:"outlined",onClick:o,children:"Get Started"})})]})}),(0,L.jsx)(YRe,{mdUp:!0,children:(0,L.jsx)(Pa.A,{variant:"outlined",onClick:()=>{r((e=>!e))},children:(0,L.jsx)(XRe.A,{})})})]}),(0,L.jsx)(Ks,{anchor:"top",open:n,onClose:a,children:(u="top",(0,L.jsx)(ue.A,{sx:{width:"top"===u||"bottom"===u?"auto":250},role:"presentation",onClick:a,onKeyDown:a,children:(0,L.jsxs)(ho.A,{children:[(0,L.jsx)(ta.Ay,{disablePadding:!0,children:(0,L.jsxs)(xo,{children:[(0,L.jsx)(So,{children:(0,L.jsx)(an.A,{})}),(0,L.jsx)(_o.A,{primary:"Features"})]})},"Features"),(0,L.jsx)(ta.Ay,{disablePadding:!0,children:(0,L.jsxs)(xo,{children:[(0,L.jsx)(So,{children:(0,L.jsx)(KRe.A,{})}),(0,L.jsx)(_o.A,{primary:"FAQ"})]})},"faq"),(0,L.jsx)(ze.A,{}),(0,L.jsx)(ta.Ay,{disablePadding:!0,children:(0,L.jsx)(ue.A,{sx:{mx:3,mt:2},children:(0,L.jsx)(hb,{children:(0,L.jsx)("button",{onClick:o,disabled:s,className:"btn",children:s?(0,L.jsx)(dA,{}):"Get Started"})})})},"mybots")]})}))})]});var u};var QRe=function(){const{logOut:e}=ma();return(0,L.jsxs)("div",{className:"h-screen",children:[(0,L.jsx)(ZRe,{}),(0,L.jsxs)("div",{className:"h-full flex flex-col justify-center items-center text-center font-semibold text-xl",children:["You haven't assigned any roles or not in any Organization",(0,L.jsx)("br",{}),"If any please contact your admin",(0,L.jsx)(Yx.A,{variant:"outlined",color:"error",onClick:e,children:"LogOut"})]})]})};var JRe={path:"/no-org",element:(0,L.jsx)(QRe,{})};const ePe=(0,Ns.A)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]),tPe=(0,Ns.A)("PanelRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]]),nPe=(0,Ns.A)("LibraryBig",[["rect",{width:"8",height:"18",x:"3",y:"3",rx:"1",key:"oynpb5"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M20.4 18.9c.2.5-.1 1.1-.6 1.3l-1.9.7c-.5.2-1.1-.1-1.3-.6L11.1 5.1c-.2-.5.1-1.1.6-1.3l1.9-.7c.5-.2 1.1.1 1.3.6Z",key:"1qboyk"}]]),rPe=(0,Ns.A)("Pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}
205]]),iPe=(0,Ns.A)("Trash",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]]),oPe=(0,Ns.A)("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]),aPe=(0,Ns.A)("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]),sPe=(0,Ns.A)("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]),lPe="undefined"!==typeof document?c.useLayoutEffect:()=>{};function cPe(e){const t=(0,c.useRef)(null);return lPe((()=>{t.current=e}),[e]),(0,c.useCallback)((function(){const e=t.current;return null===e||void 0===e?void 0:e(...arguments)}),[])}function uPe(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function dPe(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function pPe(e){let t=(0,c.useRef)({isFocused:!1,observer:null});lPe((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=cPe((t=>{null===e||void 0===e||e(t)}));return(0,c.useCallback)((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target,i=e=>{if(t.current.isFocused=!1,r.disabled){let t=uPe(e);n(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}})),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}let hPe=!1;function fPe(e){var t;return"undefined"!==typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}function mPe(e){var t;return"undefined"!==typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function gPe(e){let t=null;return()=>(null==t&&(t=e()),t)}const bPe=gPe((function(){return mPe(/^Mac/i)})),vPe=gPe((function(){return mPe(/^iPhone/i)})),yPe=gPe((function(){return mPe(/^iPad/i)||bPe()&&navigator.maxTouchPoints>1})),xPe=gPe((function(){return vPe()||yPe()})),wPe=(gPe((function(){return bPe()||xPe()})),gPe((function(){return fPe(/AppleWebKit/i)&&!wPe()})),gPe((function(){return fPe(/Chrome/i)}))),APe=gPe((function(){return fPe(/Android/i)}));gPe((function(){return fPe(/Firefox/i)}));const EPe=e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.ownerDocument)&&void 0!==t?t:document},SPe=e=>{if(e&&"window"in e&&e.window===e)return e;return EPe(e).defaultView||window};function _Pe(e){return null!==(t=e)&&"object"===typeof t&&"nodeType"in t&&"number"===typeof t.nodeType&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e;var t}let kPe=null,TPe=new Set,CPe=new Map,OPe=!1,NPe=!1;const IPe={Tab:!0,Escape:!0};function RPe(e,t){for(let n of TPe)n(e,t)}function PPe(e){OPe=!0,function(e){return!(e.metaKey||!bPe()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(kPe="keyboard",RPe("keyboard",e))}function jPe(e){kPe="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(OPe=!0,RPe("pointer",e))}function MPe(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||(APe()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&(OPe=!0,kPe="virtual")}function DPe(e){e.target!==window&&e.target!==document&&!hPe&&e.isTrusted&&(OPe||NPe||(kPe="virtual",RPe("virtual",e)),OPe=!1,NPe=!1)}function LPe(){hPe||(OPe=!1,NPe=!0)}function FPe(e){if("undefined"===typeof window||"undefined"===typeof document||CPe.get(SPe(e)))return;const t=SPe(e),n=EPe(e);
205let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){OPe=!0,r.apply(this,arguments)},n.addEventListener("keydown",PPe,!0),n.addEventListener("keyup",PPe,!0),n.addEventListener("click",MPe,!0),t.addEventListener("focus",DPe,!0),t.addEventListener("blur",LPe,!1),"undefined"!==typeof PointerEvent&&(n.addEventListener("pointerdown",jPe,!0),n.addEventListener("pointermove",jPe,!0),n.addEventListener("pointerup",jPe,!0)),t.addEventListener("beforeunload",(()=>{BPe(e)}),{once:!0}),CPe.set(t,{focus:r})}const BPe=(e,t)=>{const n=SPe(e),r=EPe(e);t&&r.removeEventListener("DOMContentLoaded",t),CPe.has(n)&&(n.HTMLElement.prototype.focus=CPe.get(n).focus,r.removeEventListener("keydown",PPe,!0),r.removeEventListener("keyup",PPe,!0),r.removeEventListener("click",MPe,!0),n.removeEventListener("focus",DPe,!0),n.removeEventListener("blur",LPe,!1),"undefined"!==typeof PointerEvent&&(r.removeEventListener("pointerdown",jPe,!0),r.removeEventListener("pointermove",jPe,!0),r.removeEventListener("pointerup",jPe,!0)),CPe.delete(n))};function UPe(){return"pointer"!==kPe}"undefined"!==typeof document&&function(e){const t=EPe(e);let n;"loading"!==t.readyState?FPe(e):(n=()=>{FPe(e)},t.addEventListener("DOMContentLoaded",n))}();const zPe=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function HPe(e,t,n){FPe(),(0,c.useEffect)((()=>{let t=(t,r)=>{(function(e,t,n){let r=EPe(null===n||void 0===n?void 0:n.target);const i="undefined"!==typeof window?SPe(null===n||void 0===n?void 0:n.target).HTMLInputElement:HTMLInputElement,o="undefined"!==typeof window?SPe(null===n||void 0===n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a="undefined"!==typeof window?SPe(null===n||void 0===n?void 0:n.target).HTMLElement:HTMLElement,s="undefined"!==typeof window?SPe(null===n||void 0===n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||r.activeElement instanceof i&&!zPe.has(r.activeElement.type)||r.activeElement instanceof o||r.activeElement instanceof a&&r.activeElement.isContentEditable)&&"keyboard"===t&&n instanceof s&&!IPe[n.key])})(!!(null===n||void 0===n?void 0:n.isTextInput),t,r)&&e(UPe())};return TPe.add(t),()=>{TPe.delete(t)}}),t)}let $Pe=!1;function VPe(){return $Pe}function GPe(e,t){if(!VPe())return!(!t||!e)&&e.contains(t);if(!e||!t)return!1;let n=t;for(;null!==n;){if(n===e)return!0;n="SLOT"===n.tagName&&n.assignedSlot?n.assignedSlot.parentNode:_Pe(n)?n.host:n.parentNode}return!1}const WPe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;var t;if(!VPe())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(null===(t=n.shadowRoot)||void 0===t?void 0:t.activeElement);)n=n.shadowRoot.activeElement;return n};function qPe(e){return VPe()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function YPe(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=(0,c.useCallback)((e=>{if(e.target===e.currentTarget)return r&&r(e),i&&i(!1),!0}),[r,i]),a=pPe(o),s=(0,c.useCallback)((e=>{const t=EPe(e.target),r=t?WPe(t):WPe();e.target===e.currentTarget&&r===qPe(e.nativeEvent)&&(n&&n(e),i&&i(!0),a(e))}),[i,n,a]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:t||!r&&!i?void 0:o}}}function KPe(){let e=(0,c.useRef)(new Map),t=(0,c.useCallback)(((t,n,r,i)=>{let o=(null===i||void 0===i?void 0:i.once)?function(){e.current.delete(r),r(...arguments)}:r;e.current.set(r,{type:n,eventTarget:t,fn:o,options:i}),t.addEventListener(n,o,i)}),[]),n=(0,c.useCallback)(((t,n,r,i)=>{var o;let a=(null===(o=e.current.get(r))||void 0===o?void 0:o.fn)||r;t.removeEventListener(n,a,i),e.current.delete(r)}),[]),r=(0,c.useCallback)((()=>{e.current.forEach(((e,t)=>{n(e.eventTarget,e.type,t,e.options)}))}),[n]);return(0,c.useEffect)((()=>r),[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function XPe(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=(0,c.useRef)({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:s}=KPe(),l=(0,c.useCallback)((e=>{e.currentTarget.contains(e.target)&&o.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(o.current.isFocusWithin=!1,s(),n&&n(e),i&&i(!1))}),[n,i,o,s]),u=pPe(l),d=(0,c.useCallback)((e=>{if(!e.currentTarget.contains(e.target))return;const t=EPe(e.target),n=WPe(t);if(!o.current.isFocusWithin&&n===qPe(e.nativeEvent)){r&&r(e),i&&i(!0),o.current.isFocusWithin=!0,u(e);let n=e.currentTarget;a(t,"focus",(e=>{if(o.current.isFocusWithin&&!GPe(n,e.target)){let r=new t.defaultView.FocusEvent("blur",{relatedTarget:e.target});dPe(r,n);let i=uPe(r);l(i)}}),{capture:!0})}}),[r,i,u,a,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}
205:{focusWithinProps:{onFocus:d,onBlur:l}}}function ZPe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{autoFocus:t=!1,isTextInput:n,within:r}=e,i=(0,c.useRef)({isFocused:!1,isFocusVisible:t||UPe()}),[o,a]=(0,c.useState)(!1),[s,l]=(0,c.useState)((()=>i.current.isFocused&&i.current.isFocusVisible)),u=(0,c.useCallback)((()=>l(i.current.isFocused&&i.current.isFocusVisible)),[]),d=(0,c.useCallback)((e=>{i.current.isFocused=e,a(e),u()}),[u]);HPe((e=>{i.current.isFocusVisible=e,u()}),[],{isTextInput:n});let{focusProps:p}=YPe({isDisabled:r,onFocusChange:d}),{focusWithinProps:h}=XPe({isDisabled:!r,onFocusWithinChange:d});return{isFocused:o,isFocusVisible:s,focusProps:r?h:p}}let QPe=!1,JPe=0;function eje(e){"touch"===e.pointerType&&(QPe=!0,setTimeout((()=>{QPe=!1}),50))}function tje(){if("undefined"!==typeof document)return"undefined"!==typeof PointerEvent&&document.addEventListener("pointerup",eje),JPe++,()=>{JPe--,JPe>0||"undefined"!==typeof PointerEvent&&document.removeEventListener("pointerup",eje)}}function nje(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,a]=(0,c.useState)(!1),s=(0,c.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,c.useEffect)(tje,[]);let{addGlobalListener:l,removeAllGlobalListeners:u}=KPe(),{hoverProps:d,triggerHoverEnd:p}=(0,c.useMemo)((()=>{let e=(e,t)=>{let i=s.target;s.pointerType="",s.target=null,"touch"!==t&&s.isHovered&&i&&(s.isHovered=!1,u(),r&&r({type:"hoverend",target:i,pointerType:t}),n&&n(!1),a(!1))},o={};return"undefined"!==typeof PointerEvent&&(o.onPointerEnter=r=>{QPe&&"mouse"===r.pointerType||((r,o)=>{if(s.pointerType=o,i||"touch"===o||s.isHovered||!r.currentTarget.contains(r.target))return;s.isHovered=!0;let c=r.currentTarget;s.target=c,l(EPe(r.target),"pointerover",(t=>{s.isHovered&&s.target&&!GPe(s.target,t.target)&&e(t,t.pointerType)}),{capture:!0}),t&&t({type:"hoverstart",target:c,pointerType:o}),n&&n(!0),a(!0)})(r,r.pointerType)},o.onPointerLeave=t=>{!i&&t.currentTarget.contains(t.target)&&e(t,t.pointerType)}),{hoverProps:o,triggerHoverEnd:e}}),[t,n,r,i,s,l,u]);return(0,c.useEffect)((()=>{i&&p({currentTarget:s.target},s.pointerType)}),[i]),{hoverProps:d,isHovered:o}}var rje=Object.defineProperty,ije=(e,t,n)=>(((e,t,n)=>{t in e?rje(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let oje=new class{constructor(){ije(this,"current",this.detect()),ije(this,"handoffState","pending"),ije(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}};function aje(e){var t,n;return oje.isServer?null:e?"ownerDocument"in e?e.ownerDocument:"current"in e?null!=(n=null==(t=e.current)?void 0:t.ownerDocument)?n:document:null:document}function sje(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function lje(){let e=[],t={addEventListener(e,n,r,i){return e.addEventListener(n,r,i),t.add((()=>e.removeEventListener(n,r,i)))},requestAnimationFrame(){let e=requestAnimationFrame(...arguments);return t.add((()=>cancelAnimationFrame(e)))},nextFrame(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.requestAnimationFrame((()=>t.requestAnimationFrame(...n)))},setTimeout(){let e=setTimeout(...arguments);return t.add((()=>clearTimeout(e)))},microTask(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];let i={current:!0};return sje((()=>{i.current&&n[0]()})),t.add((()=>{i.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))},group(e){let t=lje();return e(t),this.add((()=>t.dispose()))},add(t){return e.includes(t)||e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}},dispose(){for(let t of e.splice(0))t()}};return t}function cje(){let[e]=(0,c.useState)(lje);return(0,c.useEffect)((()=>()=>
205e.dispose()),[e]),e}let uje=(e,t)=>{oje.isServer?(0,c.useEffect)(e,t):(0,c.useLayoutEffect)(e,t)};function dje(e){let t=(0,c.useRef)(e);return uje((()=>{t.current=e}),[e]),t}let pje=function(e){let t=dje(e);return c.useCallback((function(){return t.current(...arguments)}),[t])};function hje(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],[n,r]=(0,c.useReducer)((()=>({})),{}),i=(0,c.useMemo)((()=>function(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}(e)),[e,n]);return uje((()=>{if(!e)return;let t=new ResizeObserver(r);return t.observe(e),()=>{t.disconnect()}}),[e]),t?{width:`${i.width}px`,height:`${i.height}px`}:i}class fje extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}}var mje,gje,bje,vje=Object.defineProperty,yje=(e,t,n)=>(((e,t,n)=>{t in e?vje(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),xje=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},wje=(e,t,n)=>(xje(e,t,"read from private field"),n?n.call(e):t.get(e)),Aje=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Eje=(e,t,n,r)=>(xje(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);class Sje{constructor(e){Aje(this,mje,{}),Aje(this,gje,new fje((()=>new Set))),Aje(this,bje,new Set),yje(this,"disposables",lje()),Eje(this,mje,e)}dispose(){this.disposables.dispose()}get state(){return wje(this,mje)}subscribe(e,t){let n={selector:e,callback:t,current:e(wje(this,mje))};return wje(this,bje).add(n),this.disposables.add((()=>{wje(this,bje).delete(n)}))}on(e,t){return wje(this,gje).get(e).add(t),this.disposables.add((()=>{wje(this,gje).get(e).delete(t)}))}send(e){let t=this.reduce(wje(this,mje),e);if(t!==wje(this,mje)){Eje(this,mje,t);for(let e of wje(this,bje)){let t=e.selector(wje(this,mje));_je(e.current,t)||(e.current=t,e.callback(t))}for(let t of wje(this,gje).get(e.type))t(wje(this,mje),e)}}}function _je(e,t){return!!Object.is(e,t)||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&(Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&kje(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size===t.size&&kje(e.entries(),t.entries()):!(!Tje(e)||!Tje(t))&&kje(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()))}function kje(e,t){for(;;){let n=e.next(),r=t.next();if(n.done&&r.done)return!0;if(n.done||r.done||!Object.is(n.value,r.value))return!1}}function Tje(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}function Cje(e){let[t,n]=e(),r=lje();return function(){t(...arguments),r.dispose(),r.microTask(n)}}function Oje(e,t){if(e in t){let o=t[e];for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return"function"==typeof o?o(...r):o}let o=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,Oje),o}mje=new WeakMap,gje=new WeakMap,bje=new WeakMap;var Nje,Ije=Object.defineProperty,Rje=(e,t,n)=>(((e,t,n)=>{t in e?Ije(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),Pje=((Nje=Pje||{})[Nje.Push=0]="Push",Nje[Nje.Pop=1]="Pop",Nje);let jje={0(e,t){let n=t.id,r=e.stack,i=e.stack.indexOf(n);if(-1!==i){let t=e.stack.slice();return t.splice(i,1),t.push(n),r=t,{...e,stack:r}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,r=e.stack.indexOf(n);if(-1===r)return e;let i=e.stack.slice();return i.splice(r,1),{...e,stack:i}}};class Mje extends Sje{constructor(){super(...arguments),Rje(this,"actions",{push:e=>this.send({type:0,id:e}),pop:e=>this.send({type:1,id:e})}),Rje(this,"selectors",{isTop:(e,t)=>e.stack[e.stack.length-1]===t,inStack:(e,t)=>e.stack.includes(t)})}static new(){return new Mje({stack:[]})}reduce(e,t){return Oje(t.type,jje,e,t)}}const Dje=new fje((()=>Mje.new()));var Lje=__webpack_require__(67256);function Fje(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_je;return(0,Lje.useSyncExternalStoreWithSelector)(pje((t=>e.subscribe(Bje,t))),pje((()=>e.state)),pje((()=>e.state)),pje(t),n)}function Bje(e){return e}function Uje(e,t){let n=(0,c.useId)(),r=Dje.get(t),[i,o]=Fje(r,(0,c.useCallback)((e=>[r.selectors.isTop(e,n),r.selectors.inStack(e,n)]),[r,n]));return uje((()=>
205{if(e)return r.actions.push(n),()=>r.actions.pop(n)}),[r,e,n]),!!e&&(!o||i)}let zje=new Map,Hje=new Map;function $je(e){var t;let n=null!=(t=Hje.get(e))?t:0;return Hje.set(e,n+1),0!==n||(zje.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>Vje(e)}function Vje(e){var t;let n=null!=(t=Hje.get(e))?t:1;if(1===n?Hje.delete(e):Hje.set(e,n-1),1!==n)return;let r=zje.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,zje.delete(e))}function Gje(e){let{allowed:t,disallowed:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Uje(e,"inert-others");uje((()=>{var e,i;if(!r)return;let o=lje();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&o.add($je(t));let a=null!=(i=null==t?void 0:t())?i:[];for(let t of a){if(!t)continue;let e=aje(t);if(!e)continue;let n=t.parentElement;for(;n&&n!==e.body;){for(let e of n.children)a.some((t=>e.contains(t)))||o.add($je(e));n=n.parentElement}}return o.dispose}),[r,t,n])}function Wje(e){return"object"==typeof e&&null!==e&&"nodeType"in e}function qje(e){return Wje(e)&&"tagName"in e}function Yje(e){return qje(e)&&"accessKey"in e}function Kje(e){return qje(e)&&"tabIndex"in e}function Xje(e){return Yje(e)&&"INPUT"===e.nodeName}function Zje(e){return Yje(e)&&"LABEL"===e.nodeName}function Qje(e){return Yje(e)&&"FIELDSET"===e.nodeName}function Jje(e){return Yje(e)&&"LEGEND"===e.nodeName}function eMe(e,t,n){let r=dje((e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()}));(0,c.useEffect)((()=>{if(!e)return;let n=null===t?null:Yje(t)?t:t.current;if(!n)return;let i=lje();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver((()=>r.current(n)));e.observe(n),i.add((()=>e.disconnect()))}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver((()=>r.current(n)));e.observe(n),i.add((()=>e.disconnect()))}return()=>i.dispose()}),[t,r,e])}let tMe=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(","),nMe=["[data-autofocus]"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var rMe,iMe=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(iMe||{}),oMe=((rMe=oMe||{})[rMe.Error=0]="Error",rMe[rMe.Overflow=1]="Overflow",rMe[rMe.Success=2]="Success",rMe[rMe.Underflow=3]="Underflow",rMe),aMe=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(aMe||{});function sMe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(tMe)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}var lMe=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(lMe||{});function cMe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;var n;return e!==(null==(n=aje(e))?void 0:n.body)&&Oje(t,{0(){return e.matches(tMe)},1(){let t=e;for(;null!==t;){if(t.matches(tMe))return!0;t=t.parentElement}return!1}})}function uMe(e){let t=aje(e);lje().nextFrame((()=>{t&&Kje(t.activeElement)&&!cMe(t.activeElement,0)&&pMe(e)}))}var dMe=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(dMe||{});function pMe(e){null==e||e.focus({preventScroll:!0})}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));let hMe=["textarea","input"].join(",");function fMe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return e.slice().sort(((e,n)=>{let r=t(e),i=t(n);if(null===r||null===i)return 0;let o=r.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function mMe(e,t){let{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?fMe(e):e:64&t?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(nMe)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e):sMe(e);i.length>0&&a.length>1&&(a=a.filter((e=>!i.some((t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))))),r=null!=r?r:o.activeElement;let s,l=(()=>
205{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,a.indexOf(r))-1;if(4&t)return Math.max(0,a.indexOf(r))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,p=a.length;do{if(d>=p||d+p<=0)return 0;let e=c+d;if(16&t)e=(e+p)%p;else{if(e<0)return 3;if(e>=p)return 1}s=a[e],null==s||s.focus(u),d+=l}while(s!==o.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,hMe))&&n}(s)&&s.select(),2}function gMe(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function bMe(){return gMe()||/Android/gi.test(window.navigator.userAgent)}function vMe(e,t,n,r){let i=dje(n);(0,c.useEffect)((()=>{if(e)return document.addEventListener(t,n,r),()=>document.removeEventListener(t,n,r);function n(e){i.current(e)}}),[e,t,r])}function yMe(e,t,n,r){let i=dje(n);(0,c.useEffect)((()=>{if(e)return window.addEventListener(t,n,r),()=>window.removeEventListener(t,n,r);function n(e){i.current(e)}}),[e,t,r])}function xMe(e,t,n){let r=dje(n),i=(0,c.useCallback)((function(e,n){if(e.defaultPrevented)return;let i=n(e);if(null===i||!i.getRootNode().contains(i)||!i.isConnected)return;let o=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t);for(let t of o)if(null!==t&&(t.contains(i)||e.composed&&e.composedPath().includes(t)))return;return!cMe(i,lMe.Loose)&&-1!==i.tabIndex&&e.preventDefault(),r.current(e,i)}),[r,t]),o=(0,c.useRef)(null);vMe(e,"pointerdown",(e=>{var t,n;bMe()||(o.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),vMe(e,"pointerup",(e=>{if(bMe()||!o.current)return;let t=o.current;return o.current=null,i(e,(()=>t))}),!0);let a=(0,c.useRef)({x:0,y:0});vMe(e,"touchstart",(e=>{a.current.x=e.touches[0].clientX,a.current.y=e.touches[0].clientY}),!0),vMe(e,"touchend",(e=>{let t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY;if(!(Math.abs(t-a.current.x)>=30||Math.abs(n-a.current.y)>=30))return i(e,(()=>Kje(e.target)?e.target:null))}),!0),yMe(e,"blur",(e=>i(e,(()=>function(e){return Yje(e)&&"IFRAME"===e.nodeName}(window.document.activeElement)?window.document.activeElement:null))),!0)}function wMe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,c.useMemo)((()=>aje(...t)),[...t])}var AMe=(e=>(e[e.Ignore=0]="Ignore",e[e.Select=1]="Select",e[e.Close=2]="Close",e))(AMe||{});const EMe={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}};function SMe(e,t){return(0,c.useMemo)((()=>{var n;if(e.type)return e.type;let r=null!=(n=e.as)?n:"button";return"string"==typeof r&&"button"===r.toLowerCase()||"BUTTON"===(null==t?void 0:t.tagName)&&!t.hasAttribute("type")?"button":void 0}),[e.type,e.as,t])}function _Me(){let e;return{before(t){let{doc:n}=t;var r;let i=n.documentElement,o=null!=(r=n.defaultView)?r:window;e=Math.max(0,o.innerWidth-i.clientWidth)},after(t){let{doc:n,d:r}=t,i=n.documentElement,o=Math.max(0,i.clientWidth-i.offsetWidth),a=Math.max(0,e-o);r.style(i,"paddingRight",`${a}px`)}}}function kMe(){return gMe()?{before(e){let{doc:t,d:n,meta:r}=e;function i(e){return r.containers.flatMap((e=>e())).some((t=>t.contains(e)))}n.microTask((()=>{var e;if("auto"!==window.getComputedStyle(t.documentElement).scrollBehavior){let e=lje();e.style(t.documentElement,"scrollBehavior","auto"),n.add((()=>n.microTask((()=>e.dispose()))))}let r=null!=(e=window.scrollY)?e:window.pageYOffset,o=null;n.addEventListener(t,"click",(e=>{if(Kje(e.target))try{let n=e.target.closest("a");if(!n)return;let{hash:r}=new URL(n.href),a=t.querySelector(r);Kje(a)&&!i(a)&&(o=a)}catch{}}),!0),n.addEventListener(t,"touchstart",(e=>{if(Kje(e.target)&&function(e){return qje(e)&&"style"in e}(e.target))if(i(e.target)){let t=e.target;for(;t.parentElement&&i(t.parentElement);)t=t.parentElement;n.style(t,"overscrollBehavior","contain")}else n.style(e.target,"touchAction","none")})),n.addEventListener(t,"touchmove",(e=>{if(Kje(e.target)){if(Xje(e.target))return;if(i(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}}),{passive:!1}),n.add((()=>{var e;let t=null!=(e=window.scrollY)?e:window.pageYOffset;r!==t&&window.scrollTo(0,r),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)}))}))}}:{}}function TMe(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let CMe=function(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(e){return r.add(e),()=>r.delete(e)},dispatch(e){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];let s=t[e].call(n,...o);s&&(n=s,r.forEach((e=>e())))}}}((()=>new Map),{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:lje(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT(e){let{doc:t,d:n,meta:r}=e,i={doc:t,d:n,meta:TMe(r)},o=[kMe(),_Me(),{before(e){let{doc:t,d:n}=e;n.style(t.documentElement,"overflow","hidden")}}];o.forEach((e=>{let{before:t}=e;return null==t?void 0:t(i)})),o.forEach((e=>{let{after:t}=e;return null==t?void 0:t(i)}))},SCROLL_ALLOW(e){let{d:t}=e;t.dispose()},TEARDOWN(e){let{doc:t}=e;this.delete(t)}});function OMe(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>({containers:[]}),r=function(e){return(0,c.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot)}(CMe),i=t?r.get(t):void 0,o=!!i&&i.count>0;return uje((()=>
205{if(t&&e)return CMe.dispatch("PUSH",t,n),()=>CMe.dispatch("POP",t,n)}),[e,t]),o}function NMe(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>[document.body];OMe(Uje(e,"scroll-lock"),t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}}))}CMe.subscribe((()=>{let e=CMe.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&CMe.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&CMe.dispatch("TEARDOWN",n)}}));let IMe=Symbol();function RMe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=(0,c.useRef)(t);(0,c.useEffect)((()=>{r.current=t}),[t]);let i=pje((e=>{for(let t of r.current)null!=t&&("function"==typeof t?t(e):t.current=e)}));return t.every((e=>null==e||(null==e?void 0:e[IMe])))?void 0:i}let PMe=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function jMe(e){var t,n;let r=null!=(t=e.innerText)?t:"",i=e.cloneNode(!0);if(!Yje(i))return r;let o=!1;for(let s of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),o=!0;let a=o?null!=(n=i.innerText)?n:"":r;return PMe.test(a)&&(a=a.replace(PMe,"")),a}function MMe(e){let t=(0,c.useRef)(""),n=(0,c.useRef)("");return pje((()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let o=function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map((e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():jMe(t).trim()}return null})).filter(Boolean);if(e.length>0)return e.join(", ")}return jMe(e).trim()}(r).trim().toLowerCase();return t.current=i,n.current=o,o}))}function DMe(e){return[e.screenX,e.screenY]}var LMe,FMe;"undefined"!=typeof process&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&"test"===(null==(LMe=null==process?void 0:{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_VERSION:"v1.0.1",REACT_APP_G_KEY:"217599632578-2ujhg1q5spebg0mih8mat07rr180nl25.apps.googleusercontent.com",REACT_APP_API_KEY:"AIzaSyDlzhAw5idVWDb0knFlY5uDKPoVIbCPPVE"})?void 0:LMe.NODE_ENV)&&"undefined"==typeof(null==(FMe=null==Element?void 0:Element.prototype)?void 0:FMe.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join("\n")),[]});var BMe,UMe=((BMe=UMe||{})[BMe.None=0]="None",BMe[BMe.Closed=1]="Closed",BMe[BMe.Enter=2]="Enter",BMe[BMe.Leave=4]="Leave",BMe);function zMe(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t}function HMe(e,t,n,r){let[i,o]=(0,c.useState)(n),{hasFlag:a,addFlag:s,removeFlag:l}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,[t,n]=(0,c.useState)(e),r=(0,c.useCallback)((e=>n(e)),[t]),i=(0,c.useCallback)((e=>n((t=>t|e))),[t]),o=(0,c.useCallback)((e=>(t&e)===e),[t]),a=(0,c.useCallback)((e=>n((t=>t&~e))),[n]),s=(0,c.useCallback)((e=>n((t=>t^e))),[n]);return{flags:t,setFlag:r,addFlag:i,hasFlag:o,removeFlag:a,toggleFlag:s}}(e&&i?3:0),u=(0,c.useRef)(!1),d=(0,c.useRef)(!1),p=cje();return uje((()=>{var i;if(e)return n&&o(!0),t?(null==(i=null==r?void 0:r.start)||i.call(r,n),function(e,t){let{prepare:n,run:r,done:i,inFlight:o}=t,a=lje();return function(e,t){let{inFlight:n,prepare:r}=t;if(null!=n&&n.current)return void r();let i=e.style.transition;e.style.transition="none",r(),e.offsetHeight,e.style.transition=i}(e,{prepare:n,inFlight:o}),a.nextFrame((()=>{r(),a.requestAnimationFrame((()=>{a.add(function(e,t){var n,r;let i=lje();if(!e)return i.dispose;let o=!1;i.add((()=>{o=!0}));let a=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter((e=>e instanceof CSSTransition)))?r:[];return 0===a.length?(t(),i.dispose):(Promise.allSettled(a.map((e=>e.finished))).then((()=>{o||t()})),i.dispose)}(e,i))}))})),a.dispose}(t,{inFlight:u,prepare(){d.current?d.current=!1:d.current=u.current,u.current=!0,!d.current&&(n?(s(3),l(4)):(s(4),l(2)))},run(){d.current?n?(l(3),s(4)):(l(4),s(3)):n?l(1):s(1)},done(){var e;d.current&&"function"==typeof t.getAnimations&&t.getAnimations().length>0||(u.current=!1,l(7),n||o(!1),null==(e=null==r?void 0:r.end)||e.call(r,n))}})):void(n&&s(3))}),[e,n,t,p]),e?[i,{closed:a(1),enter:a(2),leave:a(4),transition:a(2)||a(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function $Me(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}const VMe=Math.min,GMe=Math.max,WMe=Math.round,qMe=Math.floor,YMe=e=>({x:e,y:e}
vendor: 16,787 bytes, line 205
205),KMe={left:"right",right:"left",bottom:"top",top:"bottom"},XMe={start:"end",end:"start"};function ZMe(e,t,n){return GMe(e,VMe(t,n))}function QMe(e,t){return"function"===typeof e?e(t):e}function JMe(e){return e.split("-")[0]}function eDe(e){return e.split("-")[1]}function tDe(e){return"x"===e?"y":"x"}function nDe(e){return"y"===e?"height":"width"}function rDe(e){return["top","bottom"].includes(JMe(e))?"y":"x"}function iDe(e){return tDe(rDe(e))}function oDe(e){return e.replace(/start|end/g,(e=>XMe[e]))}function aDe(e){return e.replace(/left|right|bottom|top/g,(e=>KMe[e]))}function sDe(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function lDe(){return"undefined"!==typeof window}function cDe(e){return pDe(e)?(e.nodeName||"").toLowerCase():"#document"}function uDe(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function dDe(e){var t;return null==(t=(pDe(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function pDe(e){return!!lDe()&&(e instanceof Node||e instanceof uDe(e).Node)}function hDe(e){return!!lDe()&&(e instanceof Element||e instanceof uDe(e).Element)}function fDe(e){return!!lDe()&&(e instanceof HTMLElement||e instanceof uDe(e).HTMLElement)}function mDe(e){return!(!lDe()||"undefined"===typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof uDe(e).ShadowRoot)}function gDe(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=ADe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function bDe(e){return["table","td","th"].includes(cDe(e))}function vDe(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(n){return!1}}))}function yDe(e){const t=xDe(),n=hDe(e)?ADe(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function xDe(){return!("undefined"===typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function wDe(e){return["html","body","#document"].includes(cDe(e))}function ADe(e){return uDe(e).getComputedStyle(e)}function EDe(e){return hDe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function SDe(e){if("html"===cDe(e))return e;const t=e.assignedSlot||e.parentNode||mDe(e)&&e.host||dDe(e);return mDe(t)?t.host:t}function _De(e){const t=SDe(e);return wDe(t)?e.ownerDocument?e.ownerDocument.body:e.body:fDe(t)&&gDe(t)?t:_De(t)}function kDe(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=_De(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=uDe(i);if(o){const e=TDe(a);return t.concat(a,a.visualViewport||[],gDe(i)?i:[],e&&n?kDe(e):[])}return t.concat(i,kDe(i,[],n))}function TDe(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function CDe(e,t,n){let{reference:r,floating:i}=e;const o=rDe(t),a=iDe(t),s=nDe(a),l=JMe(t),c="y"===o,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,p=r[s]/2-i[s]/2;let h;switch(l){case"top":h={x:u,y:r.y-i.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-i.width,y:d};break;default:h={x:r.x,y:r.y}}switch(eDe(t)){case"start":h[a]-=p*(n&&c?-1:1);break;case"end":h[a]+=p*(n&&c?-1:1)}return h}async function ODe(e,t){var n;void 0===t&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=QMe(t,e),f=function(e){return"number"!==typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}(h),m=s[p?"floating"===d?"reference":"floating":d],g=sDe(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),b="floating"===d?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,v=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),y=await(null==o.isElement?void 0:o.isElement(v))&&await(null==o.getScale?void 0:o.getScale(v))||{x:1,y:1},x=sDe(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:v,strategy:l}):b);return{top:(g.top-x.top+f.top)/y.y,bottom:(x.bottom-g.bottom+f.bottom)/y.y,left:(g.left-x.left+f.left)/y.x,right:(x.right-g.right+f.right)/y.x}}function NDe(e){const t=ADe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=fDe(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=WMe(n)!==o||WMe(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function IDe(e){return hDe(e)?e:e.contextElement}function RDe(e){const t=IDe(e);if(!fDe(t))return YMe(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=NDe(t);let a=(o?WMe(n.width):n.width)/r,s=(o?WMe(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const PDe=YMe(0);function jDe(e){const t=uDe(e);return xDe()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:PDe}function MDe(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=IDe(e);let a=YMe(1);t&&(r?hDe(r)&&(a=RDe(r)):a=RDe(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==uDe(e))&&t}(o,n,r)?jDe(o):YMe(0);let l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,u=i.width/a.x,d=i.height/a.y;if(o){const e=uDe(o),t=r&&hDe(r)?uDe(r):r;let n=e,i=TDe(n);for(;i&&r&&t!==n;){const e=RDe(i),t=i.getBoundingClientRect(),r=ADe(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=a,n=uDe(i),i=TDe(n)}}return sDe({width:u,height:d,x:l,y:c})}function DDe(e,t){const n=EDe(e).scrollLeft;return t?t.left+n:MDe(dDe(e)).left+n}function LDe(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:DDe(e,r)),y:r.top+t.scrollTop}}function FDe(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=uDe(e),r=dDe(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const e=xDe();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=dDe(e),n=EDe(e),r=e.ownerDocument.body,i=GMe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=GMe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+DDe(e);const s=-n.scrollTop;return"rtl"===ADe(r).direction&&(a+=GMe(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}(dDe(e));else if(hDe(t))r=function(e,t){const n=MDe(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=fDe(e)?RDe(e):YMe(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{const n=jDe(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return sDe(r)}function BDe(e,t){const n=SDe(e);return!(n===t||!hDe(n)||wDe(n))&&("fixed"===ADe(n).position||BDe(n,t))}function UDe(e,t,n){const r=fDe(t),i=dDe(t),o="fixed"===n,a=MDe(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=YMe(0);if(r||!r&&!o)if(("body"!==cDe(t)||gDe(i))&&(s=EDe(t)),r){const e=MDe(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=DDe(i));const c=!i||r||o?YMe(0):LDe(i,s);return{x:a.left+s.scrollLeft-l.x-c.x,y:a.top+s.scrollTop-l.y-c.y,width:a.width,height:a.height}}function zDe(e){return"static"===ADe(e).position}function HDe(e,t){if(!fDe(e)||"fixed"===ADe(e).position)return null;if(t)return t(e);let n=e.offsetParent;return dDe(e)===n&&(n=n.ownerDocument.body),n}function $De(e,t){const n=uDe(e);if(vDe(e))return n;if(!fDe(e)){let t=SDe(e);for(;t&&!wDe(t);){if(hDe(t)&&!zDe(t))return t;t=SDe(t)}return n}let r=HDe(e,t);for(;r&&bDe(r)&&zDe(r);)r=HDe(r,t);return r&&wDe(r)&&zDe(r)&&!yDe(r)?n:r||function(e){let t=SDe(e);for(;fDe(t)&&!wDe(t);){if(yDe(t))return t;if(vDe(t))return null;t=SDe(t)}return null}(e)||n}const VDe={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o="fixed"===i,a=dDe(r),s=!!t&&vDe(t.floating);if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=YMe(1);const u=YMe(0),d=fDe(r);if((d||!d&&!o)&&(("body"!==cDe(r)||gDe(a))&&(l=EDe(r)),fDe(r))){const e=MDe(r);c=RDe(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const p=!a||d||o?YMe(0):LDe(a,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}},getDocumentElement:dDe,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[..."clippingAncestors"===n?vDe(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=kDe(e,[],!1).filter((e=>hDe(e)&&"body"!==cDe(e))),i=null;const o="fixed"===ADe(e).position;let a=o?SDe(e):e;for(;hDe(a)&&!wDe(a);){const t=ADe(a),n=yDe(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||gDe(a)&&!n&&BDe(e,a))?r=r.filter((e=>e!==a)):i=t,a=SDe(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=o[0],s=o.reduce(((e,n)=>{const r=FDe(t,n,i);return e.top=GMe(r.top,e.top),e.right=VMe(r.right,e.right),e.bottom=VMe(r.bottom,e.bottom),e.left=GMe(r.left,e.left),e}),FDe(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:$De,getElementRects:async function(e){const t=this.getOffsetParent||$De,n=this.getDimensions,r=await n(e.floating);return{reference:UDe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=NDe(e);return{width:t,height:n}},getScale:RDe,isElement:hDe,isRTL:function(e){return"rtl"===ADe(e).direction}};function GDe(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function WDe(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"===typeof ResizeObserver,layoutShift:s="function"===typeof IntersectionObserver,animationFrame:l=!1}=r,c=IDe(e),u=i||o?[...c?kDe(c):[],...kDe(t)]:[];u.forEach((e=>{i&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const i=dDe(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:h}=c;if(s||t(),!p||!h)return;const f={rootMargin:-qMe(d)+"px "+-qMe(i.clientWidth-(u+p))+"px "+-qMe(i.clientHeight-(d+h))+"px "+-qMe(u)+"px",threshold:GMe(0,VMe(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return a();r?a(!1,r):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==r||GDe(c,e.getBoundingClientRect())||a(),m=!1}try{r=new IntersectionObserver(g,{...f,root:i.ownerDocument})}catch(b){r=new IntersectionObserver(g,f)}r.observe(e)}(!0),o}(c,n):null;let p,h=-1,f=null;a&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!l&&f.observe(c),f.observe(t));let m=l?MDe(e):null;return l&&function t(){const r=MDe(e);m&&!GDe(m,r)&&n();m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const qDe=ODe,YDe=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:i}=e,o=await(null==r.isRTL?void 0:r.isRTL(i.floating)),a=JMe(n),s=eDe(n),l="y"===rDe(n),c=["left","top"].includes(a)?-1:1,u=o&&l?-1:1,d=QMe(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:f}="number"===typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"===typeof f&&(h="end"===s?-1*f:f),l?{x:h*u,y:p*c}:{x:p*c,y:h*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},KDe=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=QMe(e,t),c={x:n,y:r},u=await ODe(t,l),d=rDe(JMe(i)),p=tDe(d);let h=c[p],f=c[d];if(o){const e="y"===p?"bottom":"right";h=ZMe(h+u["y"===p?"top":"left"],h,h-u[e])}if(a){const e="y"===d?"bottom":"right";f=ZMe(f+u["y"===d?"top":"left"],f,f-u[e])}const m=s.fn({...t,[p]:h,[d]:f});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[p]:o,[d]:a}}}}}},XDe=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=QMe(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const b=JMe(i),v=rDe(s),y=JMe(s)===s,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(y||!m?[aDe(s)]:function(e){const t=aDe(e);return[oDe(e),t,oDe(t)]}(s)),A="none"!==f;!p&&A&&w.push(...function(e,t,n,r){const i=eDe(e);let o=function(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}(JMe(e),"start"===n,r);return i&&(o=o.map((e=>e+"-"+i)),t&&(o=o.concat(o.map(oDe)))),o}(s,m,f,x));const E=[s,...w],S=await ODe(t,g),_=[];let k=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&_.push(S[b]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=eDe(e),i=iDe(e),o=nDe(i);let a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=aDe(a)),[a,aDe(a)]}(i,a,x);_.push(S[e[0]],S[e[1]])}if(k=[...k,{placement:i,overflows:_}],!_.every((e=>e<=0))){var T,C;const e=((null==(T=o.flip)?void 0:T.index)||0)+1,t=E[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(C=k.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:C.placement;if(!n)switch(h){case"bestFit":{var O;const e=null==(O=k.filter((e=>{if(A){const t=rDe(e.placement);return t===v||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:O[0];e&&(n=e);break}case"initialPlacement":n=s}if(i!==n)return{reset:{placement:n}}}return{}}}},ZDe=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:s}=t,{apply:l=()=>{},...c}=QMe(e,t),u=await ODe(t,c),d=JMe(i),p=eDe(i),h="y"===rDe(i),{width:f,height:m}=o.floating;let g,b;"top"===d||"bottom"===d?(g=d,b=p===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(b=d,g="end"===p?"top":"bottom");const v=m-u.top-u.bottom,y=f-u.left-u.right,x=VMe(m-u[g],v),w=VMe(f-u[b],y),A=!t.middlewareData.shift;let E=x,S=w;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(S=y),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(E=v),A&&!p){const e=GMe(u.left,0),t=GMe(u.right,0),n=GMe(u.top,0),r=GMe(u.bottom,0);h?S=f-2*(0!==e||0!==t?e+t:GMe(u.left,u.right)):E=m-2*(0!==n||0!==r?n+r:GMe(u.top,u.bottom))}await l({...t,availableWidth:S,availableHeight:E});const _=await a.getDimensions(s.floating);return f!==_.width||m!==_.height?{reset:{rects:!0}}:{}}}},QDe=(e,t,n)=>{const r=new Map,i={platform:VDe,...n},o={...i.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=CDe(c,r,l),p=r,h={},f=0;for(let m=0;m<s.length;m++){const{name:n,fn:o}=s[m],{x:g,y:b,data:v,reset:y}=await o({x:u,y:d,initialPlacement:r,placement:p,strategy:i,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=b?b:d,h={...h,[n]:{...h[n],...v}},y&&f<=50&&(f++,"object"===typeof y&&(y.placement&&(p=y.placement),y.rects&&(c=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:i}
205):y.rects),({x:u,y:d}=CDe(c,p,l))),m=-1)}return{x:u,y:d,placement:p,strategy:i,middlewareData:h}})(e,t,{...i,platform:o})};var JDe="undefined"!==typeof document?c.useLayoutEffect:c.useEffect;function eLe(e,t){if(e===t)return!0;if(typeof e!==typeof t)return!1;if("function"===typeof e&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&"object"===typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!eLe(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!==r--;){const n=i[r];if(("_owner"!==n||!e.$$typeof)&&!eLe(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function tLe(e){if("undefined"===typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function nLe(e,t){const n=tLe(e);return Math.round(t*n)/n}function rLe(e){const t=c.useRef(e);return JDe((()=>{t.current=e})),t}const iLe=(e,t)=>({...YDe(e),options:[e,t]}),oLe=(e,t)=>({...XDe(e),options:[e,t]}),aLe=(e,t)=>({...ZDe(e),options:[e,t]});const sLe={...u},lLe=sLe.useInsertionEffect||(e=>e());function cLe(e){const t=c.useRef((()=>{0}));return lLe((()=>{t.current=e})),c.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}const uLe="ArrowUp",dLe="ArrowDown",pLe="ArrowLeft",hLe="ArrowRight";var fLe="undefined"!==typeof document?c.useLayoutEffect:c.useEffect;const mLe=[pLe,hLe],gLe=[uLe,dLe];let bLe=!1,vLe=0;const yLe=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+vLe++;const xLe=sLe.useId||function(){const[e,t]=c.useState((()=>bLe?yLe():void 0));return fLe((()=>{null==e&&t(yLe())}),[]),c.useEffect((()=>{bLe=!0}),[]),e};function wLe(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}const ALe=c.createContext(null),ELe=c.createContext(null),SLe=()=>{var e;return(null==(e=c.useContext(ALe))?void 0:e.id)||null},_Le=()=>c.useContext(ELe);const kLe="data-floating-ui-focusable";function TLe(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=xLe(),o=c.useRef({}),[a]=c.useState((()=>wLe())),s=null!=SLe(),[l,u]=c.useState(r.reference),d=cLe(((e,t,r)=>{o.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)})),p=c.useMemo((()=>({setPositionReference:u})),[]),h=c.useMemo((()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference})),[l,r.reference,r.floating]);return c.useMemo((()=>({dataRef:o,open:t,onOpenChange:d,elements:h,events:a,floatingId:i,refs:p})),[t,d,h,a,i,p])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=c.useState(null),[l,u]=c.useState(null),d=(null==i?void 0:i.domReference)||o,p=c.useRef(null),h=_Le();fLe((()=>{d&&(p.current=d)}),[d]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:l=!0,whileElementsMounted:u,open:d}=e,[p,h]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=c.useState(r);eLe(f,r)||m(r);const[g,b]=c.useState(null),[v,y]=c.useState(null),x=c.useCallback((e=>{e!==S.current&&(S.current=e,b(e))}),[]),w=c.useCallback((e=>{e!==_.current&&(_.current=e,y(e))}),[]),A=o||g,E=a||v,S=c.useRef(null),_=c.useRef(null),k=c.useRef(p),T=null!=u,C=rLe(u),O=rLe(i),N=rLe(d),I=c.useCallback((()=>{if(!S.current||!_.current)return;const e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),QDe(S.current,_.current,e).then((e=>{const t={...e,isPositioned:!1!==N.current};R.current&&!eLe(k.current,t)&&(k.current=t,s.flushSync((()=>{h(t)})))}))}),[f,t,n,O,N]);JDe((()=>{!1===d&&k.current.isPositioned&&(k.current.isPositioned=!1,h((e=>({...e,isPositioned:!1}))))}),[d]);const R=c.useRef(!1);JDe((()=>(R.current=!0,()=>{R.current=!1})),[]),JDe((()=>
205{if(A&&(S.current=A),E&&(_.current=E),A&&E){if(C.current)return C.current(A,E,I);I()}}),[A,E,I,C,T]);const P=c.useMemo((()=>({reference:S,floating:_,setReference:x,setFloating:w})),[x,w]),j=c.useMemo((()=>({reference:A,floating:E})),[A,E]),M=c.useMemo((()=>{const e={position:n,left:0,top:0};if(!j.floating)return e;const t=nLe(j.floating,p.x),r=nLe(j.floating,p.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...tLe(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,l,j.floating,p.x,p.y]);return c.useMemo((()=>({...p,update:I,refs:P,elements:j,floatingStyles:M})),[p,I,P,j,M])}({...e,elements:{...i,...l&&{reference:l}}}),m=c.useCallback((e=>{const t=hDe(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;u(t),f.refs.setReference(t)}),[f.refs]),g=c.useCallback((e=>{(hDe(e)||null===e)&&(p.current=e,a(e)),(hDe(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!hDe(e))&&f.refs.setReference(e)}),[f.refs]),b=c.useMemo((()=>({...f.refs,setReference:g,setPositionReference:m,domReference:p})),[f.refs,g,m]),v=c.useMemo((()=>({...f.elements,domReference:d})),[f.elements,d]),y=c.useMemo((()=>({...f,...r,refs:b,elements:v,nodeId:t})),[f,b,v,t,r]);return fLe((()=>{r.dataRef.current.floatingContext=y;const e=null==h?void 0:h.nodesRef.current.find((e=>e.id===t));e&&(e.context=y)})),c.useMemo((()=>({...f,context:y,refs:b,elements:v})),[f,b,v,y])}const CLe="active",OLe="selected";function NLe(e,t,n){const r=new Map,i="item"===n;let o=e;if(i&&e){const{[CLe]:t,[OLe]:n,...r}=e;o=r}return{..."floating"===n&&{tabIndex:-1,[kLe]:""},...o,...t.map((t=>{const r=t?t[n]:null;return"function"===typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,o]=t;var a;i&&[CLe,OLe].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"===typeof o&&(null==(a=r.get(n))||a.push(o),e[n]=function(){for(var e,t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return null==(e=r.get(n))?void 0:e.map((e=>e(...i))).find((e=>void 0!==e))})):e[n]=o)})),e):e),{})}}function ILe(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}let RLe=(0,c.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});RLe.displayName="FloatingContext";let PLe=(0,c.createContext)(null);PLe.displayName="PlacementContext";function jLe(e){let{children:t,enabled:n=!0}=e,[r,i]=(0,c.useState)(null),[o,a]=(0,c.useState)(0),l=(0,c.useRef)(null),[u,d]=(0,c.useState)(null);!function(e){uje((()=>{if(!e)return;let t=new MutationObserver((()=>{let t=window.getComputedStyle(e).maxHeight,n=parseFloat(t);if(isNaN(n))return;let r=parseInt(t);isNaN(r)||n!==r&&(e.style.maxHeight=`${Math.ceil(n)}px`)}));return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}}),[e])}(u);let p=n&&null!==r&&null!==u,{to:h="bottom",gap:f=0,offset:m=0,padding:g=0,inner:b}=function(e,t){var n,r,i;let o=MLe(null!=(n=null==e?void 0:e.gap)?n:"var(--anchor-gap, 0)",t),a=MLe(null!=(r=null==e?void 0:e.offset)?r:"var(--anchor-offset, 0)",t),s=MLe(null!=(i=null==e?void 0:e.padding)?i:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:a,padding:s}}(r,u),[v,y="center"]=h.split(" ");uje((()=>{p&&a(0)}),[p]);let{refs:x,floatingStyles:w,context:A}=TLe({open:p,placement:"selection"===v?"center"===y?"bottom":`bottom-${y}`:"center"===y?`${v}`:`${v}-${y}`,strategy:"absolute",transform:!1,middleware:[iLe({mainAxis:"selection"===v?0:f,crossAxis:m}),(k={padding:g},{...KDe(k),options:[k,T]}),"selection"!==v&&oLe({padding:g}),"selection"===v&&b?(_={...b,padding:g,overflowRef:l,offset:o,minItemsVisible:4,referenceOverflowThreshold:g,onFallbackChange(e){var t,n;if(!e)return;let r=A.elements.floating;if(!r)return;let i=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,o=Math.min(4,r.childElementCount),s=0,l=0;for(let a of null!=(n=null==(t=A.elements.floating)?void 0:t.childNodes)?n:[])if(Yje(a)){let e=a.offsetTop,t=e+a.clientHeight+i,n=r.scrollTop,c=n+r.clientHeight;if(!(e>=n&&t<=c)){l=Math.max(0,Math.min(t,c)-Math.max(e,n)),s=a.clientHeight;break}o--}o>=1&&a((e=>{let t=s*o-l+i;return e>=t?e:t}))}},{name:"inner",options:_,async fn(e){const{listRef:t,overflowRef:n,onFallbackChange:r,offset:i=0,index:o=0,minItemsVisible:a=4,referenceOverflowThreshold:l=0,scrollRef:c,...u}=QMe(_,e),{rects:d,elements:{floating:p}}=e,h=t.current[o],f=(null==c?void 0:c.current)||p,m=p.clientTop||f.clientTop,g=0!==p.clientTop,b=0!==f.clientTop,v=p===f;if(!h)return{};const y={...e,...await iLe(-h.offsetTop-p.clientTop-d.reference.height/2-h.offsetHeight/2-i).fn(e)},x=await qDe(ILe(y,f.scrollHeight+m+p.clientTop),u),w=await qDe(y,{...u,elementContext:"reference"}),A=GMe(0,x.top),E=y.y+A,S=(f.scrollHeight>f.clientHeight?e=>e:WMe)(GMe(0,f.scrollHeight+(g&&v||b?2*m:0)-A-GMe(0,x.bottom)));if(f.style.maxHeight=S+"px",f.scrollTop=A,r){const e=f.offsetHeight<h.offsetHeight*VMe(a,t.current.length)-1||w.top>=-l||w.bottom>=-l;s.flushSync((()=>r(e)))}return n&&(n.current=await qDe(ILe({...y,y:E},f.offsetHeight+m+p.clientTop),u)),{y:E}}}):null,aLe({padding:g,apply(e){let{availableWidth:t,availableHeight:n,elements:r}=e;Object.assign(r.floating.style,{overflow:"auto",maxWidth:`${t}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${n}px)`})}}
205)].filter(Boolean),whileElementsMounted:WDe}),[E=v,S=y]=A.placement.split("-");var _,k,T;"selection"===v&&(E="selection");let C=(0,c.useMemo)((()=>({anchor:[E,S].filter(Boolean).join(" ")})),[E,S]),O=function(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:a,onChange:l}=t,u=cLe(l),d=c.useRef(!1),p=c.useRef(null),h=c.useRef(null);c.useEffect((()=>{if(!i)return;function e(e){if(e.ctrlKey||!t||null==o.current)return;const n=e.deltaY,r=o.current.top>=-.5,i=o.current.bottom>=-.5,a=t.scrollHeight-t.clientHeight,l=n<0?-1:1,c=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!r&&n>0||!i&&n<0?(e.preventDefault(),s.flushSync((()=>{u((e=>e+Math[c](n,a*l)))}))):/firefox/i.test($Me())&&(t.scrollTop+=n))}const t=(null==a?void 0:a.current)||r.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame((()=>{p.current=t.scrollTop,null!=o.current&&(h.current={...o.current})})),()=>{p.current=null,h.current=null,t.removeEventListener("wheel",e)}):void 0}),[i,n,r.floating,o,a,u]);const f=c.useMemo((()=>({onKeyDown(){d.current=!0},onWheel(){d.current=!1},onPointerMove(){d.current=!1},onScroll(){const e=(null==a?void 0:a.current)||r.floating;if(o.current&&e&&d.current){if(null!==p.current){const t=e.scrollTop-p.current;(o.current.bottom<-.5&&t<-1||o.current.top<-.5&&t>1)&&s.flushSync((()=>u((e=>e+t))))}requestAnimationFrame((()=>{p.current=e.scrollTop}))}}})),[r.floating,u,o,a]);return c.useMemo((()=>i?{floating:f}:{}),[i,f])}(A,{overflowRef:l,onChange:a}),{getReferenceProps:N,getFloatingProps:I}=function(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),i=c.useCallback((t=>NLe(t,e,"reference")),t),o=c.useCallback((t=>NLe(t,e,"floating")),n),a=c.useCallback((t=>NLe(t,e,"item")),r);return c.useMemo((()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a})),[i,o,a])}([O]),R=pje((e=>{d(e),x.setFloating(e)}));return c.createElement(PLe.Provider,{value:i},c.createElement(RLe.Provider,{value:{setFloating:R,setReference:x.setReference,styles:w,getReferenceProps:N,getFloatingProps:I,slot:C}},t))}function MLe(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=cje(),i=pje(((e,t)=>{if(null==e)return[n,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[n,null];let i=LLe(e,t);return[i,n=>{let o=DLe(e);{let a=o.map((e=>window.getComputedStyle(t).getPropertyValue(e)));r.requestAnimationFrame((function s(){r.nextFrame(s);let l=!1;for(let[e,n]of o.entries()){let r=window.getComputedStyle(t).getPropertyValue(n);if(a[e]!==r){a[e]=r,l=!0;break}}if(!l)return;let c=LLe(e,t);i!==c&&(n(c),i=c)}))}return r.dispose}]}return[n,null]})),o=(0,c.useMemo)((()=>i(e,t)[0]),[e,t]),[a=o,s]=(0,c.useState)();return uje((()=>{let[n,r]=i(e,t);if(s(n),r)return r(s)}),[e,t]),a}function DLe(e){let t=/var\((.*)\)/.exec(e);if(t){let e=t[1].indexOf(",");if(-1===e)return[t[1]];let n=t[1].slice(0,e).trim(),r=t[1].slice(e+1).trim();return r?[n,...DLe(r)]:[n]}return[]}function LLe(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}let FLe=(0,c.createContext)(null);FLe.displayName="OpenClosedContext";var BLe=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(BLe||{});function ULe(){return(0,c.useContext)(FLe)}function zLe(e){let{value:t,children:n}=e;return c.createElement(FLe.Provider,{value:t},n)}function HLe(e){let{children:t}=e;return c.createElement(FLe.Provider,{value:null},t)}function $Le(e){let t=e.parentElement,n=null;for(;t&&!Qje(t);)Jje(t)&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(Jje(t))return!1;t=t.previousElementSibling}return!0}(n))&&r}var VLe=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(VLe||{});function GLe(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 1:-1===i&&(i=n.length);for(let e=i-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=i+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r;return r;case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}}function WLe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.from(new Set(t.flatMap((e=>
205"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var qLe,YLe=((qLe=YLe||{})[qLe.None=0]="None",qLe[qLe.RenderStrategy=1]="RenderStrategy",qLe[qLe.Static=2]="Static",qLe),KLe=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(KLe||{});function XLe(){let e=function(){let e=(0,c.useRef)([]),t=(0,c.useCallback)((t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)}),[]);return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];if(!r.every((e=>null==e)))return e.current=r,t}}();return(0,c.useCallback)((t=>function(e){let{ourProps:t,theirProps:n,slot:r,defaultTag:i,features:o,visible:a=!0,name:s,mergeRefs:l}=e;l=null!=l?l:QLe;let c=JLe(n,t);if(a)return ZLe(c,r,i,s,l);let u=null!=o?o:0;if(2&u){let{static:e=!1,...t}=c;if(e)return ZLe(t,r,i,s,l)}if(1&u){let{unmount:e=!0,...t}=c;return Oje(e?0:1,{0(){return null},1(){return ZLe({...t,hidden:!0,style:{display:"none"}},r,i,s,l)}})}return ZLe(c,r,i,s,l)}({mergeRefs:e,...t})),[e])}function ZLe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,{as:o=n,children:a,refName:s="ref",...l}=rFe(e,["unmount","static"]),u=void 0!==e.ref?{[s]:e.ref}:{},d="function"==typeof a?a(t):a;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let p={};if(t){let e=!1,n=[];for(let[r,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&n.push(r.replace(/([A-Z])/g,(e=>`-${e.toLowerCase()}`)));if(e){p["data-headlessui-state"]=n.join(" ");for(let e of n)p[`data-${e}`]=""}}if(o===c.Fragment&&(Object.keys(nFe(l)).length>0||Object.keys(nFe(p)).length>0)){if((0,c.isValidElement)(d)&&!(Array.isArray(d)&&d.length>1)){let e=d.props,t=null==e?void 0:e.className,n="function"==typeof t?function(){return WLe(t(...arguments),l.className)}:WLe(t,l.className),r=n?{className:n}:{},o=JLe(d.props,nFe(rFe(l,["ref"])));for(let i in p)i in o&&delete p[i];return(0,c.cloneElement)(d,Object.assign({},o,p,u,{ref:i(iFe(d),u.ref)},r))}if(Object.keys(nFe(l)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(nFe(l)).concat(Object.keys(nFe(p))).map((e=>`  - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>`  - ${e}`)).join("\n")].join("\n"))}return(0,c.createElement)(o,Object.assign({},rFe(l,["ref"]),o!==c.Fragment&&u,o!==c.Fragment&&p),d)}function QLe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.every((e=>null==e))?void 0:e=>{for(let n of t)null!=n&&("function"==typeof n?n(e):n.current=e)}}function JLe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return{};if(1===t.length)return t[0];let r={},i={};for(let o of t)for(let e in o)e.startsWith("on")&&"function"==typeof o[e]?(null!=i[e]||(i[e]=[]),i[e].push(o[e])):r[e]=o[e];if(r.disabled||r["aria-disabled"])for(let o in i)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(o)&&(i[o]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let o in i)Object.assign(r,{[o](e){let t=i[o];for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];for(let i of t){if((e instanceof Event||(null==e?void 0:e.nativeEvent)instanceof Event)&&e.defaultPrevented)return;i(e,...r)}}});return r}function eFe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return{};if(1===t.length)return t[0];let r={},i={};for(let o of t)for(let e in o)e.startsWith("on")&&"function"==typeof o[e]?(null!=i[e]||(i[e]=[]),i[e].push(o[e])):r[e]=o[e];for(let o in i)Object.assign(r,{[o](){let e=i[o];for(let t of e)null==t||t(...arguments)}});return r}function tFe(e){var t;return Object.assign((0,c.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function nFe(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function rFe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function iFe(e){return c.version.split(".")[0]>="19"?e.props.ref:e.ref}let oFe=(0,c.createContext)(void 0);function aFe(){return(0,c.useContext)(oFe)}let sFe=(0,c.createContext)(null);function lFe(){let e=(0,c.useContext)(sFe);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,lFe),e}return e}function cFe(){let[e,t]=(0,c.useState)([]);return[e.length>0?e.join(" "):void 0,(0,c.useMemo)((()=>function(e){let n=pje((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),r=(0,c.useMemo)((()=>({register:n,slot:e.slot,name:e.name,props:e.props,value:e.value})),[n,e.slot,e.name,e.props,e.value]);return c.createElement(sFe.Provider,{value:r},e.children)}),[t])]}sFe.displayName="DescriptionContext";let uFe=tFe((function(e,t){let n=(0,c.useId)(),r=aFe(),{id:i=`headlessui-description-${n}`,...o}=e,a=lFe(),s=RMe(t);uje((()=>a.register(i)),[i,a.register]);let l=r||!1,u=(0,c.useMemo)((()=>({...a.slot,disabled:l})),[a.slot,l]),d={ref:s,...a.props,id:i};return XLe()({ourProps:d,theirProps:o,slot:u,defaultTag:"p",name:a.name||"Description"})})),dFe=Object.assign(uFe,{});var pFe=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(pFe||{});let hFe=(0,c.createContext)(void 0);function fFe(){return(0,c.useContext)(hFe)}let mFe=(0,c.createContext)(null);function gFe(){let e=(0,c.useContext)(mFe);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,gFe),e}return e}function bFe(e){var t,n,r;let i=null!=(n=null==(t=(0,c.useContext)(mFe))?void 0:t.value)?n:void 0;return(null!=(r=null==e?void 0:e.length)?r:0)>
2050?[i,...e].filter(Boolean).join(" "):i}function vFe(){let{inherit:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=bFe(),[n,r]=(0,c.useState)([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,(0,c.useMemo)((()=>function(e){let t=pje((e=>(r((t=>[...t,e])),()=>r((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),n=(0,c.useMemo)((()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value})),[t,e.slot,e.name,e.props,e.value]);return c.createElement(mFe.Provider,{value:n},e.children)}),[r])]}mFe.displayName="LabelContext";let yFe=tFe((function(e,t){var n;let r=(0,c.useId)(),i=gFe(),o=fFe(),a=aFe(),{id:s=`headlessui-label-${r}`,htmlFor:l=(null!=o?o:null==(n=i.props)?void 0:n.htmlFor),passive:u=!1,...d}=e,p=RMe(t);uje((()=>i.register(s)),[s,i.register]);let h=pje((e=>{let t=e.currentTarget;if((e.target===e.currentTarget||!function(e){return!!qje(e)&&e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]')}(e.target))&&(Zje(t)&&e.preventDefault(),i.props&&"onClick"in i.props&&"function"==typeof i.props.onClick&&i.props.onClick(e),Zje(t))){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let n=e.getAttribute("aria-disabled");if("true"===n||""===n)return;(Xje(e)&&("file"===e.type||"radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}})),f=a||!1,m=(0,c.useMemo)((()=>({...i.slot,disabled:f})),[i.slot,f]),g={ref:p,...i.props,id:s,htmlFor:l,onClick:h};return u&&("onClick"in g&&(delete g.htmlFor,delete g.onClick),"onClick"in d&&delete d.onClick),XLe()({ourProps:g,theirProps:d,slot:m,defaultTag:l?"label":"div",name:i.name||"Label"})}));Object.assign(yFe,{});function xFe(e){let t=pje(e),n=(0,c.useRef)(!1);(0,c.useEffect)((()=>(n.current=!1,()=>{n.current=!0,sje((()=>{n.current&&t()}))})),[t])}function wFe(){let e=function(){let e="undefined"==typeof document;return(e=>e.useSyncExternalStore)(u)((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=c.useState(oje.isHandoffComplete);return t&&!1===oje.isHandoffComplete&&n(!1),c.useEffect((()=>{!0!==t&&n(!0)}),[t]),c.useEffect((()=>oje.handoff()),[]),!e&&t}let AFe=(0,c.createContext)(!1);function EFe(e){return c.createElement(AFe.Provider,{value:e.force},e.children)}function SFe(e){let t=(0,c.useContext)(AFe),n=(0,c.useContext)(CFe),[r,i]=(0,c.useState)((()=>{var r;if(!t&&null!==n)return null!=(r=n.current)?r:null;if(oje.isServer)return null;let i=null==e?void 0:e.getElementById("headlessui-portal-root");if(i)return i;if(null===e)return null;let o=e.createElement("div");return o.setAttribute("id","headlessui-portal-root"),e.body.appendChild(o)}));return(0,c.useEffect)((()=>{null!==r&&(null!=e&&e.body.contains(r)||null==e||e.body.appendChild(r))}),[r,e]),(0,c.useEffect)((()=>{t||null!==n&&i(n.current)}),[n,i,t]),r}let _Fe=c.Fragment,kFe=tFe((function(e,t){let{ownerDocument:n=null,...r}=e,i=(0,c.useRef)(null),o=RMe(function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Object.assign(e,{[IMe]:t})}((e=>{i.current=e})),t),a=wMe(i),l=null!=n?n:a,u=SFe(l),[d]=(0,c.useState)((()=>{var e;return oje.isServer?null:null!=(e=null==l?void 0:l.createElement("div"))?e:null})),p=(0,c.useContext)(OFe),h=wFe();uje((()=>{!u||!d||u.contains(d)||(d.setAttribute("data-headlessui-portal",""),u.appendChild(d))}),[u,d]),uje((()=>{if(d&&p)return p.register(d)}),[p,d]),xFe((()=>{var e;!u||!d||(Wje(d)&&u.contains(d)&&u.removeChild(d),u.childNodes.length<=0&&(null==(e=u.parentElement)||e.removeChild(u)))}));let f=XLe();return h&&u&&d?(0,s.createPortal)(f({ourProps:{ref:o},theirProps:r,slot:{},defaultTag:_Fe,name:"Portal"}),d):null}));let TFe=c.Fragment,CFe=(0,c.createContext)(null);let OFe=(0,c.createContext)(null);let NFe=tFe((function(e,t){let n=RMe(t),{enabled:r=!0,ownerDocument:i,...o}=e,a=XLe();return r?c.createElement(kFe,{...o,ownerDocument:i,ref:n}):a({ourProps:{ref:n},theirProps:o,slot:{},defaultTag:_Fe,name:"Portal"})})),IFe=tFe((function(e,t){let{target:n,...r}=e,i={ref:RMe(t)},o=XLe();return c.createElement(CFe.Provider,{value:n},o({ourProps:i,theirProps:r,defaultTag:TFe,name:"Popover.Group"}))})),RFe=Object.assign(NFe,{Group:IFe});var PFe=Object.defineProperty,jFe=(e,t,n)=>(((e,t,n)=>{t in e?PFe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),MFe=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(MFe||{}),DFe=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(DFe||{}),LFe=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItems=5]="RegisterItems",e[e.UnregisterItems=6]="UnregisterItems",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetItemsElement=8]="SetItemsElement",e[e.SortItems=9]="SortItems",e))(LFe||{});function FFe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,n=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,r=fMe(t(e.items.slice()),(e=>e.dataRef.current.domRef.current)),i=n?r.indexOf(n):null;return-1===i&&(i=null),{items:r,activeItemIndex:i}}let BFe={1(e){return 1===e.menuState?e:{...e,activeItemIndex:null,pendingFocus:{focus:VLe.Nothing},menuState:1}},0(e,t){return 0===e.menuState?e:{...e,__demoMode:!1,pendingFocus:t.focus,menuState:0}},2:(e,t)=>{var n,r,i,o,a;if(1===e.menuState)return e;let s={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===VLe.Nothing)return{...s,activeItemIndex:null};if(t.focus===VLe.Specific)return{...s,activeItemIndex:e.items.findIndex((e=>e.id===t.id))};if(t.focus===VLe.Previous){let n=e.activeItemIndex;if(null!==n){let o=e.items[n].dataRef.current.domRef,a=GLe(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==a){let t=e.items[a].dataRef.current.domRef;if((null==(r=o.current)?void 0:r.previousElementSibling)===t.current||null===(null==(i=t.current)?void 0:i.previousElementSibling))return{...s,activeItemIndex:a}}}}else if(t.focus===VLe.Next){let n=e.activeItemIndex;if(null!==n){let r=e.items[n].dataRef.current.domRef,i=GLe(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==i){let t=e.items[i].dataRef.current.domRef;if((null==(o=r.current)?void 0:o.nextElementSibling)===t.current||null===(null==(a=t.current)?void 0:a.nextElementSibling))return{...s,activeItemIndex:i}}}}let l=FFe(e),c=GLe(t,{resolveItems:()=>l.items,resolveActiveIndex:()=>l.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...s,...l,activeItemIndex:c}},3:(e,t)=>
205{let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find((e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))&&!e.dataRef.current.disabled})),o=i?e.items.indexOf(i):-1;return-1===o||o===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:o,activationTrigger:1}},4(e){return""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null}},5:(e,t)=>{let n=e.items.concat(t.items.map((e=>e))),r=e.activeItemIndex;return e.pendingFocus.focus!==VLe.Nothing&&(r=GLe(e.pendingFocus,{resolveItems:()=>n,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),{...e,items:n,activeItemIndex:r,pendingFocus:{focus:VLe.Nothing},pendingShouldSort:!0}},6:(e,t)=>{let n=e.items,r=[],i=new Set(t.items);for(let[o,a]of n.entries())if(i.has(a.id)&&(r.push(o),i.delete(a.id),0===i.size))break;if(r.length>0){n=n.slice();for(let e of r.reverse())n.splice(e,1)}return{...e,items:n,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.itemsElement===t.element?e:{...e,itemsElement:t.element},9:e=>e.pendingShouldSort?{...e,...FFe(e),pendingShouldSort:!1}:e};class UFe extends Sje{constructor(e){super(e),jFe(this,"actions",{registerItem:Cje((()=>{let e=[],t=new Set;return[(n,r)=>{t.has(r)||(t.add(r),e.push({id:n,dataRef:r}))},()=>(t.clear(),this.send({type:5,items:e.splice(0)}))]})),unregisterItem:Cje((()=>{let e=[];return[t=>e.push(t),()=>this.send({type:6,items:e.splice(0)})]}))}),jFe(this,"selectors",{activeDescendantId(e){var t;let n=e.activeItemIndex,r=e.items;return null===n||null==(t=r[n])?void 0:t.id},isActive(e,t){var n;let r=e.activeItemIndex,i=e.items;return null!==r&&(null==(n=i[r])?void 0:n.id)===t},shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.menuState&&0!==e.activationTrigger&&this.isActive(e,t)}}),this.on(5,(()=>{this.disposables.requestAnimationFrame((()=>{this.send({type:9})}))}));{let e=this.state.id,t=Dje.get(null);this.disposables.add(t.on(Pje.Push,(n=>{!t.selectors.isTop(n,e)&&0===this.state.menuState&&this.send({type:1})}))),this.on(0,(()=>t.actions.push(e))),this.on(1,(()=>t.actions.pop(e)))}}static new(e){let{id:t,__demoMode:n=!1}=e;return new UFe({id:t,__demoMode:n,menuState:n?0:1,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1,pendingShouldSort:!1,pendingFocus:{focus:VLe.Nothing}})}reduce(e,t){return Oje(t.type,BFe,e,t)}}const zFe=(0,c.createContext)(null);function HFe(e){let t=(0,c.useContext)(zFe);if(null===t){let t=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,$Fe),t}return t}function $Fe(e){let{id:t,__demoMode:n=!1}=e,r=(0,c.useMemo)((()=>UFe.new({id:t,__demoMode:n})),[]);return xFe((()=>r.dispose())),r}let VFe=c.Fragment;let GFe=YLe.RenderStrategy|YLe.Static;let WFe=c.Fragment;let qFe=tFe((function(e,t){let n=(0,c.useId)(),{__demoMode:r=!1,...i}=e,o=$Fe({id:n,__demoMode:r}),[a,s,l]=Fje(o,(e=>[e.menuState,e.itemsElement,e.buttonElement])),u=RMe(t),d=Dje.get(null);xMe(Fje(d,(0,c.useCallback)((e=>d.selectors.isTop(e,n)),[d,n])),[l,s],((e,t)=>{var n;o.send({type:LFe.CloseMenu}),cMe(t,lMe.Loose)||(e.preventDefault(),null==(n=o.state.buttonElement)||n.focus())}));let p=pje((()=>{o.send({type:LFe.CloseMenu})})),h=(0,c.useMemo)((()=>({open:a===MFe.Open,close:p})),[a,p]),f={ref:u},m=XLe();return c.createElement(jLe,null,c.createElement(zFe.Provider,{value:o},c.createElement(zLe,{value:Oje(a,{[MFe.Open]:BLe.Open,[MFe.Closed]:BLe.Closed})},m({ourProps:f,theirProps:i,slot:h,defaultTag:VFe,name:"Menu"}))))})),YFe=tFe((function(e,t){let n=HFe("Menu.Button"),r=(0,c.useId)(),{id:i=`headlessui-menu-button-${r}`,disabled:o=!1,autoFocus:a=!1,...l}=e,u=(0,c.useRef)(null),d=(0,c.useContext)(RLe).getReferenceProps,p=RMe(t,u,(0,c.useContext)(RLe).setReference,pje((e=>n.send({type:LFe.SetButtonElement,element:e})))),h=pje((e=>{switch(e.key){case pFe.Space:case pFe.Enter:case pFe.ArrowDown:e.preventDefault(),e.stopPropagation(),n.send({type:LFe.OpenMenu,focus:{focus:VLe.First}});break;case pFe.ArrowUp:e.preventDefault(),e.stopPropagation(),n.send({type:LFe.OpenMenu,focus:{focus:VLe.Last}})}})),f=pje((e=>{if(e.key===pFe.Space)e.preventDefault()})),[m,g,b]=Fje(n,(e=>[e.menuState,e.buttonElement,e.itemsElement]));!function(e,t){let{trigger:n,action:r,close:i,select:o}=t,a=(0,c.useRef)(null);vMe(e&&null!==n,"pointerdown",(e=>{Wje(null==e?void 0:e.target)&&null!=n&&n.contains(e.target)&&(a.current=ne
205w Date)})),vMe(e&&null!==n,"pointerup",(e=>{if(null===a.current||!Kje(e.target))return;let t=r(e),n=(new Date).getTime()-a.current.getTime();switch(a.current=null,t.kind){case 0:return;case 1:n>200&&(o(t.target),i());break;case 2:i()}}),{capture:!0})}(m===MFe.Open,{trigger:g,action:(0,c.useCallback)((e=>{if(null!=g&&g.contains(e.target))return EMe.Ignore;let t=e.target.closest('[role="menuitem"]:not([data-disabled])');return Yje(t)?EMe.Select(t):null!=b&&b.contains(e.target)?EMe.Ignore:EMe.Close}),[g,b]),close:(0,c.useCallback)((()=>n.send({type:LFe.CloseMenu})),[]),select:(0,c.useCallback)((e=>e.click()),[])});let v=pje((e=>{var t;if(0===e.button){if($Le(e.currentTarget))return e.preventDefault();o||(m===MFe.Open?((0,s.flushSync)((()=>n.send({type:LFe.CloseMenu}))),null==(t=u.current)||t.focus({preventScroll:!0})):(e.preventDefault(),n.send({type:LFe.OpenMenu,focus:{focus:VLe.Nothing},trigger:DFe.Pointer})))}})),{isFocusVisible:y,focusProps:x}=ZPe({autoFocus:a}),{isHovered:w,hoverProps:A}=nje({isDisabled:o}),{pressed:E,pressProps:S}=function(){let{disabled:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,c.useRef)(null),[n,r]=(0,c.useState)(!1),i=cje(),o=pje((()=>{t.current=null,r(!1),i.dispose()})),a=pje((e=>{if(i.dispose(),null===t.current){t.current=e.currentTarget,r(!0);{let n=aje(e.currentTarget);i.addEventListener(n,"pointerup",o,!1),i.addEventListener(n,"pointermove",(e=>{if(t.current){let n=function(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);r(function(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}(n,t.current.getBoundingClientRect()))}}),!1),i.addEventListener(n,"pointercancel",o,!1)}}}));return{pressed:n,pressProps:e?{}:{onPointerDown:a,onPointerUp:o,onClick:o}}}({disabled:o}),_=(0,c.useMemo)((()=>({open:m===MFe.Open,active:E||m===MFe.Open,disabled:o,hover:w,focus:y,autofocus:a})),[m,w,y,E,o,a]),k=eFe(d(),{ref:p,id:i,type:SMe(e,u.current),"aria-haspopup":"menu","aria-controls":null==b?void 0:b.id,"aria-expanded":m===MFe.Open,disabled:o||void 0,autoFocus:a,onKeyDown:h,onKeyUp:f,onPointerDown:v},x,A,S);return XLe()({ourProps:k,theirProps:l,slot:_,defaultTag:"button",name:"Menu.Button"})})),KFe=tFe((function(e,t){let n=(0,c.useId)(),{id:r=`headlessui-menu-items-${n}`,anchor:i,portal:o=!1,modal:a=!0,transition:l=!1,...u}=e,d=function(e){return(0,c.useMemo)((()=>e?"string"==typeof e?{to:e}:e:null),[e])}(i),p=HFe("Menu.Items"),[h,f]=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=(0,c.useContext)(PLe),n=(0,c.useMemo)((()=>e),[JSON.stringify(e,((e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t}))]);uje((()=>{null==t||t(null!=n?n:null)}),[t,n]);let r=(0,c.useContext)(RLe);return(0,c.useMemo)((()=>[r.setFloating,e?r.styles:{}]),[r.setFloating,e,r.styles])}(d),m=function(){let{getFloatingProps:e,slot:t}=(0,c.useContext)(RLe);return(0,c.useCallback)((function(){return Object.assign({},e(...arguments),{"data-anchor":t.anchor})}),[e,t])}(),[g,b]=(0,c.useState)(null),v=RMe(t,d?h:null,pje((e=>p.send({type:LFe.SetItemsElement,element:e}))),b),[y,x]=Fje(p,(e=>[e.menuState,e.buttonElement])),w=wMe(x),A=wMe(g);d&&(o=!0);let E=ULe(),[S,_]=HMe(l,g,null!==E?(E&BLe.Open)===BLe.Open:y===MFe.Open);eMe(S,x,(()=>{p.send({type:LFe.CloseMenu})}));let k=Fje(p,(e=>e.__demoMode));NMe(!k&&(a&&y===MFe.Open),A),Gje(!k&&(a&&y===MFe.Open),{allowed:(0,c.useCallback)((()=>[x,g]),[x,g])});let T=!function(e,t){let n=(0,c.useRef)({left:0,top:0});if(uje((()=>{if(!t)return;let e=t.getBoundingClientRect();e&&(n.current=e)}),[e,t]),null==t||!e||t===document.activeElement)return!1;let r=t.getBoundingClientRect();return r.top!==n.current.top||r.left!==n.current.left}(y!==MFe.Open,x)&&S;(0,c.useEffect)((()=>{let e=g;e&&y===MFe.Open&&e!==(null==A?void 0:A.activeElement)&&e.focus({preventScroll:!0})}),[y,g,A]),function(e,t){let{container:n,accept:r,walk:i}=t,o=(0,c.useRef)(r),a=(0,c.useRef)(i);(0,c.useEffect)((()=>{o.current=r,a.current=i}),[r,i]),uje((()=>
205{if(!n||!e)return;let t=aje(n);if(!t)return;let r=o.current,i=a.current,s=Object.assign((e=>r(e)),{acceptNode:r}),l=t.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,s,!1);for(;l.nextNode();)i(l.currentNode)}),[n,e,o,a])}(y===MFe.Open,{container:g,accept(e){return"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(e){e.setAttribute("role","none")}});let C=cje(),O=pje((e=>{var t,n,r;switch(C.dispose(),e.key){case pFe.Space:if(""!==p.state.searchQuery)return e.preventDefault(),e.stopPropagation(),p.send({type:LFe.Search,value:e.key});case pFe.Enter:if(e.preventDefault(),e.stopPropagation(),null!==p.state.activeItemIndex){let{dataRef:e}=p.state.items[p.state.activeItemIndex];null==(n=null==(t=e.current)?void 0:t.domRef.current)||n.click()}p.send({type:LFe.CloseMenu}),uMe(p.state.buttonElement);break;case pFe.ArrowDown:return e.preventDefault(),e.stopPropagation(),p.send({type:LFe.GoToItem,focus:VLe.Next});case pFe.ArrowUp:return e.preventDefault(),e.stopPropagation(),p.send({type:LFe.GoToItem,focus:VLe.Previous});case pFe.Home:case pFe.PageUp:return e.preventDefault(),e.stopPropagation(),p.send({type:LFe.GoToItem,focus:VLe.First});case pFe.End:case pFe.PageDown:return e.preventDefault(),e.stopPropagation(),p.send({type:LFe.GoToItem,focus:VLe.Last});case pFe.Escape:e.preventDefault(),e.stopPropagation(),(0,s.flushSync)((()=>p.send({type:LFe.CloseMenu}))),null==(r=p.state.buttonElement)||r.focus({preventScroll:!0});break;case pFe.Tab:e.preventDefault(),e.stopPropagation(),(0,s.flushSync)((()=>p.send({type:LFe.CloseMenu}))),function(e,t){mMe(sMe(),t,{relativeTo:e})}(p.state.buttonElement,e.shiftKey?iMe.Previous:iMe.Next);break;default:1===e.key.length&&(p.send({type:LFe.Search,value:e.key}),C.setTimeout((()=>p.send({type:LFe.ClearSearch})),350))}})),N=pje((e=>{if(e.key===pFe.Space)e.preventDefault()})),I=(0,c.useMemo)((()=>({open:y===MFe.Open})),[y]),R=eFe(d?m():{},{"aria-activedescendant":Fje(p,p.selectors.activeDescendantId),"aria-labelledby":Fje(p,(e=>{var t;return null==(t=e.buttonElement)?void 0:t.id})),id:r,onKeyDown:O,onKeyUp:N,role:"menu",tabIndex:y===MFe.Open?0:void 0,ref:v,style:{...u.style,...f,"--button-width":hje(x,!0).width},...zMe(_)}),P=XLe();return c.createElement(RFe,{enabled:!!o&&(e.static||S),ownerDocument:w},P({ourProps:R,theirProps:u,slot:I,defaultTag:"div",features:GFe,visible:T,name:"Menu.Items"}))})),XFe=tFe((function(e,t){let n=(0,c.useId)(),{id:r=`headlessui-menu-item-${n}`,disabled:i=!1,...o}=e,a=HFe("Menu.Item"),s=Fje(a,(e=>a.selectors.isActive(e,r))),l=(0,c.useRef)(null),u=RMe(t,l),d=Fje(a,(e=>a.selectors.shouldScrollIntoView(e,r)));uje((()=>{if(d)return lje().requestAnimationFrame((()=>{var e,t;null==(t=null==(e=l.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}))}),[d,l]);let p=MMe(l),h=(0,c.useRef)({disabled:i,domRef:l,get textValue(){return p()}});uje((()=>{h.current.disabled=i}),[h,i]),uje((()=>(a.actions.registerItem(r,h),()=>a.actions.unregisterItem(r))),[h,r]);let f=pje((()=>{a.send({type:LFe.CloseMenu})})),m=pje((e=>{if(i)return e.preventDefault();a.send({type:LFe.CloseMenu}),uMe(a.state.buttonElement)})),g=pje((()=>{if(i)return a.send({type:LFe.GoToItem,focus:VLe.Nothing});a.send({type:LFe.GoToItem,focus:VLe.Specific,id:r})})),b=function(){let e=(0,c.useRef)([-1,-1]);return{wasMoved(t){let n=DMe(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=DMe(t)}}}(),v=pje((e=>{b.update(e),!i&&(s||a.send({type:LFe.GoToItem,focus:VLe.Specific,id:r,trigger:DFe.Pointer}))})),y=pje((e=>{b.wasMoved(e)&&(i||s||a.send({type:LFe.GoToItem,focus:VLe.Specific,id:r,trigger:DFe.Pointer}))})),x=pje((e=>{b.wasMoved(e)&&(i||s&&a.send({type:LFe.GoToItem,focus:VLe.Nothing}))}
205)),[w,A]=vFe(),[E,S]=cFe(),_=(0,c.useMemo)((()=>({active:s,focus:s,disabled:i,close:f})),[s,i,f]),k={id:r,ref:u,role:"menuitem",tabIndex:!0===i?void 0:-1,"aria-disabled":!0===i||void 0,"aria-labelledby":w,"aria-describedby":E,disabled:void 0,onClick:m,onFocus:g,onPointerEnter:v,onMouseEnter:v,onPointerMove:y,onMouseMove:y,onPointerLeave:x,onMouseLeave:x},T=XLe();return c.createElement(A,null,c.createElement(S,null,T({ourProps:k,theirProps:o,slot:_,defaultTag:WFe,name:"Menu.Item"})))})),ZFe=tFe((function(e,t){let[n,r]=vFe(),i=e,o={ref:t,"aria-labelledby":n,role:"group"},a=XLe();return c.createElement(r,null,a({ourProps:o,theirProps:i,slot:{},defaultTag:"div",name:"Menu.Section"}))})),QFe=tFe((function(e,t){let n=(0,c.useId)(),{id:r=`headlessui-menu-heading-${n}`,...i}=e,o=gFe();uje((()=>o.register(r)),[r,o.register]);let a={id:r,ref:t,role:"presentation",...o.props};return XLe()({ourProps:a,theirProps:i,slot:{},defaultTag:"header",name:"Menu.Heading"})})),JFe=tFe((function(e,t){let n=e,r={ref:t,role:"separator"};return XLe()({ourProps:r,theirProps:n,slot:{},defaultTag:"div",name:"Menu.Separator"})})),eBe=Object.assign(qFe,{Button:YFe,Items:KFe,Item:XFe,Section:ZFe,Heading:QFe,Separator:JFe});function tBe(){let e=(0,c.useRef)(!1);return uje((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function nBe(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||(null!=(t=e.as)?t:lBe)!==c.Fragment||1===c.Children.count(e.children)}let rBe=(0,c.createContext)(null);rBe.displayName="TransitionContext";var iBe=(e=>(e.Visible="visible",e.Hidden="hidden",e))(iBe||{});let oBe=(0,c.createContext)(null);function aBe(e){return"children"in e?aBe(e.children):e.current.filter((e=>{let{el:t}=e;return null!==t.current})).filter((e=>{let{state:t}=e;return"visible"===t})).length>0}function sBe(e,t){let n=dje(e),r=(0,c.useRef)([]),i=tBe(),o=cje(),a=pje((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:KLe.Hidden,a=r.current.findIndex((t=>{let{el:n}=t;return n===e}));-1!==a&&(Oje(t,{[KLe.Unmount](){r.current.splice(a,1)},[KLe.Hidden](){r.current[a].state="hidden"}}),o.microTask((()=>{var e;!aBe(r)&&i.current&&(null==(e=n.current)||e.call(n))})))})),s=pje((e=>{let t=r.current.find((t=>{let{el:n}=t;return n===e}));return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>a(e,KLe.Unmount)})),l=(0,c.useRef)([]),u=(0,c.useRef)(Promise.resolve()),d=(0,c.useRef)({enter:[],leave:[]}),p=pje(((e,n,r)=>{l.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter((t=>{let[n]=t;return n!==e}))),null==t||t.chains.current[n].push([e,new Promise((e=>{l.current.push(e)}))]),null==t||t.chains.current[n].push([e,new Promise((e=>{Promise.all(d.current[n].map((e=>{let[t,n]=e;return n}))).then((()=>e()))}
205))]),"enter"===n?u.current=u.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(n))):r(n)})),h=pje(((e,t,n)=>{Promise.all(d.current[t].splice(0).map((e=>{let[t,n]=e;return n}))).then((()=>{var e;null==(e=l.current.shift())||e()})).then((()=>n(t)))}));return(0,c.useMemo)((()=>({children:r,register:s,unregister:a,onStart:p,onStop:h,wait:u,chains:d})),[s,a,r,p,h,d,u])}oBe.displayName="NestingContext";let lBe=c.Fragment,cBe=YLe.RenderStrategy;let uBe=tFe((function(e,t){let{show:n,appear:r=!1,unmount:i=!0,...o}=e,a=(0,c.useRef)(null),s=RMe(...nBe(e)?[a,t]:null===t?[]:[t]);wFe();let l=ULe();if(void 0===n&&null!==l&&(n=(l&BLe.Open)===BLe.Open),void 0===n)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,d]=(0,c.useState)(n?"visible":"hidden"),p=sBe((()=>{n||d("hidden")})),[h,f]=(0,c.useState)(!0),m=(0,c.useRef)([n]);uje((()=>{!1!==h&&m.current[m.current.length-1]!==n&&(m.current.push(n),f(!1))}),[m,n]);let g=(0,c.useMemo)((()=>({show:n,appear:r,initial:h})),[n,r,h]);uje((()=>{n?d("visible"):!aBe(p)&&null!==a.current&&d("hidden")}),[n,p]);let b={unmount:i},v=pje((()=>{var t;h&&f(!1),null==(t=e.beforeEnter)||t.call(e)})),y=pje((()=>{var t;h&&f(!1),null==(t=e.beforeLeave)||t.call(e)})),x=XLe();return c.createElement(oBe.Provider,{value:p},c.createElement(rBe.Provider,{value:g},x({ourProps:{...b,as:c.Fragment,children:c.createElement(dBe,{ref:s,...b,...o,beforeEnter:v,beforeLeave:y})},theirProps:{},defaultTag:c.Fragment,features:cBe,visible:"visible"===u,name:"Transition"})))})),dBe=tFe((function(e,t){var n,r;let{transition:i=!0,beforeEnter:o,afterEnter:a,beforeLeave:s,afterLeave:l,enter:u,enterFrom:d,enterTo:p,entered:h,leave:f,leaveFrom:m,leaveTo:g,...b}=e,[v,y]=(0,c.useState)(null),x=(0,c.useRef)(null),w=nBe(e),A=RMe(...w?[x,t,y]:null===t?[]:[t]),E=null==(n=b.unmount)||n?KLe.Unmount:KLe.Hidden,{show:S,appear:_,initial:k}=function(){let e=(0,c.useContext)(rBe);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[T,C]=(0,c.useState)(S?"visible":"hidden"),O=function(){let e=(0,c.useContext)(oBe);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:N,unregister:I}=O;uje((()=>N(x)),[N,x]),uje((()=>{if(E===KLe.Hidden&&x.current)return S&&"visible"!==T?void C("visible"):Oje(T,{hidden:()=>I(x),visible:()=>N(x)})}),[T,x,N,I,S,E]);let R=wFe();uje((()=>{if(w&&R&&"visible"===T&&null===x.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[x,T,R,w]);let P=k&&!_,j=_&&S&&k,M=(0,c.useRef)(!1),D=sBe((()=>{M.current||(C("hidden"),I(x))}),O),L=pje((e=>{M.current=!0;let t=e?"enter":"leave";D.onStart(x,t,(e=>{"enter"===e?null==o||o():"leave"===e&&(null==s||s())}))})),F=pje((e=>{let t=e?"enter":"leave";M.current=!1,D.onStop(x,t,(e=>{"enter"===e?null==a||a():"leave"===e&&(null==l||l())})),"leave"===t&&!aBe(D)&&(C("hidden"),I(x))}));(0,c.useEffect)((()=>{w&&i||(L(S),F(S))}),[S,w,i]);let B=!(!i||!w||!R||P),[,U]=HMe(B,v,S,{start:L,end:F}),z=nFe({ref:A,className:(null==(r=WLe(b.className,j&&u,j&&d,U.enter&&u,U.enter&&U.closed&&d,U.enter&&!U.closed&&p,U.leave&&f,U.leave&&!U.closed&&m,U.leave&&U.closed&&g,!U.transition&&S&&h))?void 0:r.trim())||void 0,...zMe(U)}),H=0;"visible"===T&&(H|=BLe.Open),"hidden"===T&&(H|=BLe.Closed),S&&"hidden"===T&&(H|=BLe.Opening),!S&&"visible"===T&&(H|=BLe.Closing);let $=XLe();return c.createElement(oBe.Provider,{value:D},c.createElement(zLe,{value:H},$({ourProps:z,theirProps:b,defaultTag:lBe,features:cBe,visible:"visible"===T,name:"Transition.Child"})))})),pBe=tFe((function(e,t){let n=null!==(0,c.useContext)(rBe),r=null!==ULe();return c.createElement(c.Fragment,null,!n&&r?c.createElement(uBe,{ref:t,...e}):c.createElement(dBe,{ref:t,...e}))})),hBe=Object.assign(uBe,{Child:pBe,Root:uBe});var fBe=__webpack_require__(72362);function mBe(e){let{options:t=[],selected:n,setSelected:r,id:i,setIsGlobeExpanded:o,isGlobeExpanded:a,setWebSearchDisable:s}=e;const{knowldegeHubsNames:l,fetchtrainedApi:u}=ma(),[d,p]=(0,c.useState)(null),[h,f]=(0,c.useState)(!1),m=Boolean(d),g=m?"simple-popover":void 0,b=Array.isArray(n)?n:n?[n]:[],v=e=>{const n=t.find((t=>t.id===e));return n?n.type:null},y=()=>b.some((e=>"api"===v(e))),x=e=>{const n=t.find((t=>t.id===e));if(!n)return;const i=n.type;let l=[...b];const c=l.indexOf(e);if(c>-1)l.splice(c,1);else if("kb"===i){if(y())l=[e];else{const t=b.filter((e=>"kb"===v(e))).length;t<3&&l.push(e)}s(!1)}else"api"===i&&(l=(b.some((e=>"kb"===v(e))),[e]),o(n.webSearch||a),n.webSearch?s(!0):s(!1));r(l)},w=e=>b.includes(e);return(0,L.jsxs)("div",{children:[(0,L.jsxs)(eBe,{as:"div",className:"relative inline-block text-left",children:[(0,L.jsxs)(eBe.Button,{className:"group flex items-center gap-3 px-4 py-3 bg-white border border-gray-200 rounded-xl shadow-sm hover:shadow-md hover:border-[#5E35E6] transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-[#5E35E6] focu
205s:ring-offset-1 min-w-[280px]",children:[(0,L.jsxs)("div",{className:"flex items-center gap-2 flex-1",children:[(0,L.jsx)(tfe,{className:"w-4 h-4 text-[#5E35E6]"}),(0,L.jsxs)("div",{className:"text-left",children:[0===b.length&&(0,L.jsx)("div",{className:"text-sm font-medium text-gray-900",children:"Select AI Assistant"}),b.length>0&&(0,L.jsx)("div",{className:"text-sm font-medium text-gray-900 truncate max-w-48",children:t.filter((e=>b.includes(e.id))).map((e=>e.label)).join(", ")})]})]}),b.length>0&&(0,L.jsx)("div",{className:"bg-[#5E35E6] text-white text-xs px-2 py-1 rounded-full font-medium",children:y()?"1/1":`${b.length}/3`}),(0,L.jsx)(Xae,{className:"w-4 h-4 text-gray-400 group-hover:text-[#5E35E6] transition-colors duration-200"}),(0,L.jsx)(Pa.A,{"aria-describedby":g,variant:"contained",onClick:e=>{e.stopPropagation(),p(e.currentTarget)},size:"small",style:{marginLeft:4},children:(0,L.jsx)(V_e,{size:16})})]}),(0,L.jsx)(hBe,{as:c.Fragment,enter:"transition ease-out duration-200",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-150",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:(0,L.jsx)(eBe.Items,{className:"absolute z-50 mt-2 w-80 max-h-80 overflow-y-auto rounded-xl bg-white shadow-xl ring-1 ring-black ring-opacity-5 focus:outline-none border border-gray-100",children:(0,L.jsxs)("div",{className:"py-2",children:[h&&(0,L.jsxs)("div",{className:"flex items-center justify-center py-8",children:[(0,L.jsx)("div",{className:"animate-spin rounded-full h-6 w-6 border-2 border-blue-500 border-t-transparent"}),(0,L.jsx)("span",{className:"ml-2 text-sm text-gray-500",children:"Loading..."})]}),!h&&t.map(((e,t)=>"title"===e.type?(0,L.jsxs)("div",{className:"flex items-center gap-2 px-4 py-3 text-xs text-gray-500 uppercase tracking-wide font-semibold border-b border-gray-100 bg-gray-50",children:[(0,L.jsx)(e.icon,{className:"w-3 h-3"}),e.label]},`title-${t}`):(0,L.jsx)(eBe.Item,{children:t=>{let{active:n}=t;const r=w(e.label),i=(e=>{if(w(e.label))return!1;if("kb"===e.type)return b.filter((e=>"kb"===v(e))).length>=3;return e.type,!1})(e);return(0,L.jsxs)("div",{onClick:t=>{t.preventDefault(),t.stopPropagation(),i||x(e.id)},className:`group flex items-center justify-between px-4 py-3 transition-all duration-150 ${i?"cursor-not-allowed opacity-50":"cursor-pointer"} ${n&&!i?"bg-[#5E35E6]/10 border-l-2 border-[#5E35E6]":"border-l-2 border-transparent hover:bg-gray-50"} ${r?"bg-[#5E35E6]/10 border-l-2 border-[#5E35E6]":""}`,children:[(0,L.jsxs)("div",{className:"flex items-center gap-3 flex-1",children:[(0,L.jsx)("div",{className:"p-1.5 rounded-lg "+(r?"bg-[#5E35E6]/20":n&&!i?"bg-[#5E35E6]/10":"bg-gray-100"),children:(0,L.jsx)(e.icon,{className:"w-3 h-3 "+(r||n&&!i?"text-[#5E35E6]":"text-gray-500")})}),(0,L.jsxs)("div",{children:[(0,L.jsx)("div",{className:"text-sm font-medium text-gray-900",children:e.label}),e.description&&(0,L.jsx)("div",{className:"text-xs text-gray-500",children:e.description})]})]}),(0,L.jsxs)("div",{className:"flex items-center gap-2",children:[i&&!r&&(0,L.jsx)("span",{className:"text-xs text-gray-400 font-medium",children:"kb"===e.type?"Max 3":"Max 1"}),r&&(0,L.jsx)("div",{className:"bg-[#5E35E6] rounded-full p-0.5",children:(0,L.jsx)(vw,{className:"w-3 h-3 text-white"})})]})]})}},e.id))),!h&&t.length<=2&&(0,L.jsxs)("div",{className:"px-4 py-8 text-center text-gray-500",children:[(0,L.jsx)(Ps,{className:"w-8 h-8 mx-auto mb-2 text-gray-300"}),(0,L.jsx)("p",{className:"text-sm",children:"No models available"})]})]})})})]}),(0,L.jsx)(fBe.Ay,{id:g,open:m,anchorEl:d,onClose:()=>{p(null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},children:(0,L.jsxs)("ul",{className:"py-3 list-disc px-10",children:[(0,L.jsxs)("li",{children:[(0,L.jsx)("strong",{children:"Knowledge Hub"})," and ",(0,L.jsx)("strong",{children:"AI Assistant"})," cannot be selected together"]}),(0,L.jsxs)("li",{children:["Max of ",(0,L.jsx)("strong",{children:"3 Knowledge Hub"})," can be selected"]}),(0,L.jsxs)("li",{children:["Max of ",(0,L.jsx)("strong",{children:"1 AI Assiatant"})," can be selected"]})]})})]})}function gBe(e,t,n,r){let i=dje(n);(0,c.useEffect)((()=>{function n(e){i.current(e)}return(e=null!=e?e:window).addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}),[e,t,r])}
205var bBe=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(bBe||{});let vBe=tFe((function(e,t){var n;let{features:r=1,...i}=e,o={ref:t,"aria-hidden":2===(2&r)||(null!=(n=i["aria-hidden"])?n:void 0),hidden:4===(4&r)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4===(4&r)&&2!==(2&r)&&{display:"none"}}};return XLe()({ourProps:o,theirProps:i,slot:{},defaultTag:"span",name:"Hidden"})}));let yBe=(0,c.createContext)(null);function xBe(e){let{children:t,node:n}=e,[r,i]=(0,c.useState)(null),o=wBe(null!=n?n:r);return c.createElement(yBe.Provider,{value:o},t,null===o&&c.createElement(vBe,{features:bBe.Hidden,ref:e=>{var t,n;if(e)for(let r of null!=(n=null==(t=aje(e))?void 0:t.querySelectorAll("html > *, body > *"))?n:[])if(r!==document.body&&r!==document.head&&qje(r)&&null!=r&&r.contains(e)){i(r);break}}}))}function wBe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;var t;return null!=(t=(0,c.useContext)(yBe))?t:e}let ABe=(0,c.createContext)((()=>{}));function EBe(e){let{value:t,children:n}=e;return c.createElement(ABe.Provider,{value:t},n)}var SBe=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(SBe||{});function _Be(e,t){let n=(0,c.useRef)([]),r=pje(e);(0,c.useEffect)((()=>{let e=[...n.current];for(let[i,o]of t.entries())if(n.current[i]!==o){let i=r(t,e);return n.current=t,i}}),[r,...t])}let kBe=[];function TBe(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let n of e.current)qje(n.current)&&t.add(n.current);return t}!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}((()=>{function e(e){if(!Kje(e.target)||e.target===document.body||kBe[0]===e.target)return;let t=e.target;t=t.closest(tMe),kBe.unshift(null!=t?t:e.target),kBe=kBe.filter((e=>null!=e&&e.isConnected)),kBe.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})}));var CBe=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(CBe||{});let OBe=tFe((function(e,t){let n=(0,c.useRef)(null),r=RMe(n,t),{initialFocus:i,initialFocusFallback:o,containers:a,features:s=15,...l}=e;wFe()||(s=0);let u=wMe(n);!function(e,t){let{ownerDocument:n}=t,r=!!(8&e),i=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=(0,c.useRef)(kBe.slice());return _Be(((e,n)=>{let[r]=e,[i]=n;!0===i&&!1===r&&sje((()=>{t.current.splice(0)})),!1===i&&!0===r&&(t.current=kBe.slice())}),[e,kBe,t]),pje((()=>{var e;return null!=(e=t.current.find((e=>null!=e&&e.isConnected)))?e:null}))}(r);_Be((()=>{r||(null==n?void 0:n.activeElement)===(null==n?void 0:n.body)&&pMe(i())}),[r]),xFe((()=>{r&&pMe(i())}))}(s,{ownerDocument:u});let d=function(e,t){let{ownerDocument:n,container:r,initialFocus:i,initialFocusFallback:o}=t,a=(0,c.useRef)(null),s=Uje(!!(1&e),"focus-trap#initial-focus"),l=tBe();return _Be((()=>{if(0===e)return;if(!s)return void(null!=o&&o.current&&pMe(o.current));let t=r.current;t&&sje((()=>{if(!l.current)return;let r=null==n?void 0:n.activeElement;if(null!=i&&i.current){if((null==i?void 0:i.current)===r)return void(a.current=r)}else if(t.contains(r))return void(a.current=r);if(null!=i&&i.current)pMe(i.current);else{if(16&e){if(mMe(t,iMe.First|iMe.AutoFocus)!==oMe.Error)return}else if(mMe(t,iMe.First)!==oMe.Error)return;if(null!=o&&o.current&&(pMe(o.current),(null==n?void 0:n.activeElement)===o.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}a.current=null==n?void 0:n.activeElement}))}),[o,s,e]),a}(s,{ownerDocument:u,container:n,initialFocus:i,initialFocusFallback:o});!function(e,t){let{ownerDocument:n,container:r,containers:i,previousActiveElement:o}=t,a=tBe(),s=!!(4&e);gBe(null==n?void 0:n.defaultView,"focus",(e=>{if(!s||!a.current)return;let t=TBe(i);Yje(r.current)&&t.add(r.current);let n=o.current;if(!n)return;let l=e.target;Yje(l)?IBe(t,l)?(o.current=l,pMe(l)):(e.preventDefault(),e.stopPropagation(),pMe(n)):pMe(o.current)}),!0)}(s,{ownerDocument:u,container:n,containers:a,previousActiveElement:d});let p=function(){let e=(0,c.useRef)(0);return yMe(!0,"keydown",(t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)}),!0),e}(),h=pje((e=>{if(!Yje(n.current))return;let t=n.current;Oje(p.current,{[SBe.Forwards]:()=>{mMe(t,iMe.First,{skipElements:[e.relatedTarget,o]})},[SBe.Backwards]:()=>{mMe(t,iMe.Last,{skipElements:[e.relatedTarget,o]})}})})),f=Uje(!!(2&s),"focus-trap#tab-lock"),m=cje(),g=(0,c.useRef)(!1),b={ref:r,onKeyDown(e){"Tab"==e.key&&(g.current=!0,m.requestAnimationFrame((()=>{g.current=!1})))}
205,onBlur(e){if(!(4&s))return;let t=TBe(a);Yje(n.current)&&t.add(n.current);let r=e.relatedTarget;Kje(r)&&"true"!==r.dataset.headlessuiFocusGuard&&(IBe(t,r)||(g.current?mMe(n.current,Oje(p.current,{[SBe.Forwards]:()=>iMe.Next,[SBe.Backwards]:()=>iMe.Previous})|iMe.WrapAround,{relativeTo:e.target}):Kje(e.target)&&pMe(e.target)))}},v=XLe();return c.createElement(c.Fragment,null,f&&c.createElement(vBe,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:h,features:bBe.Focusable}),v({ourProps:b,theirProps:l,defaultTag:"div",name:"FocusTrap"}),f&&c.createElement(vBe,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:h,features:bBe.Focusable}))})),NBe=Object.assign(OBe,{features:CBe});function IBe(e,t){for(let n of e)if(n.contains(t))return!0;return!1}var RBe=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(RBe||{}),PBe=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(PBe||{});let jBe={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},MBe=(0,c.createContext)(null);function DBe(e){let t=(0,c.useContext)(MBe);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,DBe),t}return t}function LBe(e,t){return Oje(t.type,jBe,e,t)}
205MBe.displayName="DialogContext";let FBe=tFe((function(e,t){let n=(0,c.useId)(),{id:r=`headlessui-dialog-${n}`,open:i,onClose:o,initialFocus:a,role:s="dialog",autoFocus:l=!0,__demoMode:u=!1,unmount:d=!1,...p}=e,h=(0,c.useRef)(!1);s="dialog"===s||"alertdialog"===s?s:(h.current||(h.current=!0,console.warn(`Invalid role [${s}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog");let f=ULe();void 0===i&&null!==f&&(i=(f&BLe.Open)===BLe.Open);let m=(0,c.useRef)(null),g=RMe(m,t),b=wMe(m),v=i?0:1,[y,x]=(0,c.useReducer)(LBe,{titleId:null,descriptionId:null,panelRef:(0,c.createRef)()}),w=pje((()=>o(!1))),A=pje((e=>x({type:0,id:e}))),E=!!wFe()&&0===v,[S,_]=function(){let e=(0,c.useContext)(OFe),t=(0,c.useRef)([]),n=pje((n=>(t.current.push(n),e&&e.register(n),()=>r(n)))),r=pje((n=>{let r=t.current.indexOf(n);-1!==r&&t.current.splice(r,1),e&&e.unregister(n)})),i=(0,c.useMemo)((()=>({register:n,unregister:r,portals:t})),[n,r,t]);return[t,(0,c.useMemo)((()=>function(e){let{children:t}=e;return c.createElement(OFe.Provider,{value:i},t)}),[i])]}(),k={get current(){var e;return null!=(e=y.panelRef.current)?e:m.current}},T=wBe(),{resolveContainers:C}=function(){let{defaultContainers:e=[],portals:t,mainTreeNode:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=wMe(n),i=pje((()=>{var i,o;let a=[];for(let t of e)null!==t&&(qje(t)?a.push(t):"current"in t&&qje(t.current)&&a.push(t.current));if(null!=t&&t.current)for(let e of t.current)a.push(e);for(let e of null!=(i=null==r?void 0:r.querySelectorAll("html > *, body > *"))?i:[])e!==document.body&&e!==document.head&&qje(e)&&"headlessui-portal-root"!==e.id&&(n&&(e.contains(n)||e.contains(null==(o=null==n?void 0:n.getRootNode())?void 0:o.host))||a.some((t=>e.contains(t)))||a.push(e));return a}));
205return{resolveContainers:i,contains:pje((e=>i().some((t=>t.contains(e)))))}}({mainTreeNode:T,portals:S,defaultContainers:[k]}),O=null!==f&&(f&BLe.Closing)===BLe.Closing;Gje(!u&&!O&&E,{allowed:pje((()=>{var e,t;return[null!=(t=null==(e=m.current)?void 0:e.closest("[data-headlessui-portal]"))?t:null]})),disallowed:pje((()=>{var e;return[null!=(e=null==T?void 0:T.closest("body > *:not(#headlessui-portal-root)"))?e:null]}))});let N=Dje.get(null);uje((()=>{if(E)return N.actions.push(r),()=>N.actions.pop(r)}),[N,r,E]);let I=Fje(N,(0,c.useCallback)((e=>N.selectors.isTop(e,r)),[N,r]));xMe(I,C,(e=>{e.preventDefault(),w()})),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"undefined"!=typeof document?document.defaultView:null,n=arguments.length>2?arguments[2]:void 0,r=Uje(e,"escape");gBe(t,"keydown",(e=>{r&&(e.defaultPrevented||e.key===pFe.Escape&&n(e))}))}(I,null==b?void 0:b.defaultView,(e=>{e.preventDefault(),e.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur(),w()})),NMe(!u&&!O&&E,b,C),eMe(E,m,w);let[R,P]=cFe(),j=(0,c.useMemo)((()=>[{dialogState:v,close:w,setTitleId:A,unmount:d},y]),[v,y,w,A,d]),M=(0,c.useMemo)((()=>({open:0===v})),[v]),D={ref:g,id:r,role:s,tabIndex:-1,"aria-modal":u?void 0:0===v||void 0,"aria-labelledby":y.titleId,"aria-describedby":R,unmount:d},L=!function(){var e;let[t]=(0,c.useState)((()=>"undefined"!=typeof window&&"function"==typeof window.matchMedia?window.matchMedia("(pointer: coarse)"):null)),[n,r]=(0,c.useState)(null!=(e=null==t?void 0:t.matches)&&e);return uje((()=>{if(t)return t.addEventListener("change",e),()=>t.removeEventListener("change",e);function e(e){r(e.matches)}}),[t]),n}(),F=CBe.None;E&&!u&&(F|=CBe.RestoreFocus,F|=CBe.TabLock,l&&(F|=CBe.AutoFocus),L&&(F|=CBe.InitialFocus));let B=XLe();return c.createElement(HLe,null,c.createElement(EFe,{force:!0},c.createElement(RFe,null,c.createElement(MBe.Provider,{value:j},c.createElement(IFe,{target:m},c.createElement(EFe,{force:!1},c.createElement(P,{slot:M},c.createElement(_,null,c.createElement(NBe,{initialFocus:a,initialFocusFallback:m,containers:C,features:F},c.createElement(EBe,{value:w},B({ourProps:D,theirProps:p,slot:M,defaultTag:BBe,features:UBe,visible:0===v,name:"Dialog"})))))))))))})),BBe="div",UBe=YLe.RenderStrategy|YLe.Static;let zBe=tFe((function(e,t){let{transition:n=!1,open:r,...i}=e,o=ULe(),a=e.hasOwnProperty("open")||null!==o,s=e.hasOwnProperty("onClose");if(!a&&!s)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!a)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!s)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!o&&"boolean"!=typeof e.open)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if("function"!=typeof e.onClose)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return void 0===r&&!n||i.static?c.createElement(xBe,null,c.createElement(FBe,{ref:t,open:r,...i})):c.createElement(xBe,null,c.createElement(hBe,{show:r,transition:n,unmount:i.unmount},c.createElement(FBe,{ref:t,...i})))})),HBe=tFe((function(e,t){let n=(0,c.useId)(),{id:r=`headlessui-dialog-panel-${n}`,transition:i=!1,...o}=e,[{dialogState:a,unmount:s},l]=DBe("Dialog.Panel"),u=RMe(t,l.panelRef),d=(0,c.useMemo)((()=>({open:0===a})),[a]),p={ref:u,id:r,onClick:pje((e=>{e.stopPropagation()}))},h=i?pBe:c.Fragment,f=i?{unmount:s}:{},m=XLe();return c.createElement(h,{...f},m({ourProps:p,theirProps:o,slot:d,defaultTag:"div",name:"Dialog.Panel"}))})),$Be=(tFe((function(e,t){let{transition:n=!1,...r}=e,[{dialogState:i,unmount:o}]=DBe("Dialog.Backdrop"),a=(0,c.useMemo)((()=>({open:0===i})),[i]),s={ref:t,"aria-hidden":!0},l=n?pBe:c.Fragment,u=n?{unmount:o}:{},d=XLe();return c.createElement(l,{...u},d({ourProps:s,theirProps:r,slot:a,defaultTag:"div",name:"Dialog.Backdrop"}))})),tFe((function(e,t){let n=(0,c.useId)(),{id:r=`headlessui-dialog-title-${n}`,...i}=e,[{dialogState:o,setTitleId:a}]=DBe("Dialog.Title"),s=RMe(t);(0,c.useEffect)((()=>(a(r),()=>a(null))),[r,a]);let l=(0,c.useMemo)((()=>({open:0===o})),[o]),u={ref:s,id:r};return XLe()({ourProps:u,theirProps:i,slot:l,defaultTag:"h2",name:"Dialog.Title"})}))),VBe=Object.assign(zBe,{Panel:HBe,Title:$Be,Description:dFe});let GBe=tFe((function(e,t){let n=(0,c.useId)(),r=fFe(),i=aFe(),{id:o=r||`headlessui-input-${n}`,disabled:a=i||!1,autoFocus:s=!1,invalid:l=!1,...u}=e,d=bFe(),p=function(){var e,t;return null!=(t=null==(e=(0,c.useContext)(sFe))?void 0:e.value)?t:void 0}(),{isFocused:h,focusProps:f}=ZPe({autoFocus:s}),{isHovered:m,hoverProps:g}=nje({isDisabled:a}),b=eFe({ref:t,id:o,"aria-labelledby":d,"aria-describedby":p,"aria-invalid":l?"true":void 0,disabled:a||void 0,autoFocus:s},f,g),v=(0,c.useMemo)((()=>({disabled:a,invalid:l,hover:m,focus:h,autofocus:s})),[a,l,m,h,s]);return XLe()({ourProps:b,theirProps:u,slot:v,defaultTag:"input",name:"Input"})}));function WBe(){var e,t,n,r;const o=ce((0,re.A)().breakpoints.down("lg")),a=localStorage.getItem("organization"),{chatHistory:s,getCachedOrgName:l,handleDeleteChat:u,handleGetAllChats:d,uploadImage:p,knowldegeHubsNames:h,fetchtrainedApi:f,fetchonebotapi:m}=ma(),[g,b]=(0,c.useState)(!o),[v,y]=(0,c.useState)(""),[x,w]=(0,c.useState)(""),[A,E]=(0,c.useState)(""),[S,_]=(0,c.useState)([]),[k,T]=(0,c.useState)(null),[C,O]=(0,c.useState)(!1),[N,I]=(0,c.useState)(!1),[R,P]=(0,c.useState)(!1),[j,M]=(0,c.useState)(!1),[D,F]=(0,c.useState)(!1),[B,U]=(0,c.useState)([]),[z,H]=(0,c.useState)([]),[$,V]=(0,c.useState)(!1),[G,W]=(0,c.useState)([]),[q,Y]=(0,c.useState)(!1),[K,X]=(0,c.useState)(""),[Z,Q]=(0,c.useState)(""),[J,ee]=(0,c.useState)(!1),[ne,ie]=(0,c.useState)([]),[oe,ae]=(0,c.useState)([]),[se,le]=(0,c.useState)(""),[de,pe]=(0,c.useState)([]),[he,fe]=(0,c.useState)([]),[me,ge]=(0,c.useState)(""),[be,ve]=(0,c.useState)(0),[ye,xe]=(0,c.useState)(null),[we,Ae]=(0,c.useState)(!1),[Ee,
205Se]=(0,c.useState)(!1),[_e,ke]=(0,c.useState)(!1),[Ce,Oe]=(0,c.useState)(""),[Ne,Ie]=(0,c.useState)(""),[Re,Pe]=(0,c.useState)([]),[je,Me]=(0,c.useState)(!1),[De,Le]=(0,c.useState)(!1),{transcript:Fe,listening:Be,resetTranscript:Ue}=(0,H_e.Vw)(),[ze,He]=(0,c.useState)(null),[$e,Ve]=(0,c.useState)(""),[Ge,We]=(0,c.useState)(""),[qe,Ye]=(0,c.useState)(!1),[Ke,Xe]=(0,c.useState)(!1),[Ze,Qe]=(0,c.useState)(!1);(0,c.useEffect)((()=>("Asklly"===localStorage.getItem("oranization")&&Qe(!0),()=>{Qe(!1)})),[]);const Je=(0,c.useRef)(null),et=(0,c.useRef)(null),tt=(0,c.useRef)(B.length),nt=(0,c.useMemo)((()=>Re.filter((e=>e.name.toLowerCase().includes(Ge.toLowerCase().trim())))),[Re,Ge]);(0,c.useEffect)((()=>{B.length>tt.current&&!Ke&&setTimeout((()=>{Je.current&&Je.current.scrollIntoView({behavior:"smooth"})}),100),tt.current=B.length}),[B.length,Ke]),(0,c.useEffect)((()=>{const e=et.current;if(!e)return;const t=()=>{const t=e.scrollTop+e.clientHeight>=e.scrollHeight-20,n=e.scrollHeight>e.clientHeight+100;Xe(!t),Ye(n&&!t)};return e.addEventListener("scroll",t,{passive:!0}),t(),()=>{e.removeEventListener("scroll",t)}}),[]),(0,c.useEffect)((()=>{setTimeout((()=>{const e=(()=>{const e=et.current;return!!e&&e.scrollHeight>e.clientHeight+100})(),t=(()=>{const e=et.current;return!!e&&e.scrollTop+e.clientHeight>=e.scrollHeight-20})();console.log(e,t),Ye(e&&!t)}),300)}),[B]);const[rt,it]=c.useState(null),[ot,at]=(0,c.useState)(!1),[st,lt]=(0,c.useState)({name:"",description:"",aiPrompt:""}),[ct,ut]=(0,c.useState)([]),[dt,pt]=(0,c.useState)(!1);(0,c.useEffect)((()=>{y(Fe)}),[Fe]);const ht=()=>{at(!1),lt({name:"",description:"",aiPrompt:""})},ft=(e,t)=>{t.stopPropagation(),xe(e),Ae(!0)},mt=()=>{Ae(!1),xe(null)},gt=async()=>{try{const e=localStorage.getItem("uid"),t=await(0,xi.qw)(e);Pe(t.collections)}catch(qUe){console.error(qUe)}},bt=e=>new Promise(((t,n)=>{const r=new FileReader;
205r.readAsDataURL(e),r.onload=()=>{const e=r.result.split(",")[1];t(e)},r.onerror=e=>n(e)})),vt=(0,c.useMemo)((()=>[{type:"title",label:"Knowledge Base",disabled:!0,icon:Bhe},...h.map((e=>({type:"kb",id:e.kb_id,label:e.kb_name,icon:Bhe,description:"Shared knowledge base"}))),{type:"kb",id:"private",label:"My Private Files",icon:ePe,description:"Your personal files"},{type:"title",label:"AI Assistants",disabled:!0,icon:Ps},...de.map((e=>({type:"api",id:e.api_key,label:e.bot_name,webSearch:e.default_websearch,icon:tfe,description:"Custom AI assistant"})))]),[h,de]),[yt,xt]=(0,c.useState)({cid:"",index:"",selectedCollectionId:""}),[wt,At]=(0,i.ok)(),Et=(0,te.Zp)();(0,c.useEffect)((()=>{o&&b(!1)}),[wt,o]);(0,c.useEffect)((()=>{(async()=>{try{const e=localStorage.getItem("uid"),t=await f(e);if(pe(t.data),Z&&t.data){const e=t.data.find((e=>e.api_key===Z));e&&fe([e.api_key])}}catch(qUe){console.log(qUe)}})()}),[]),(0,c.useEffect)((()=>{const e=wt.get("id");if(e){gt(),P(!0),U([]),Q(e),Se(!1);const t=localStorage.getItem("uid");(0,xi.TJ)(t,e).then((async e=>{var t;if(0===Object.keys(e).length&&e.constructor===Object)return P(!1),Se(!1),O(!1),Et("/chatbot");if(_(null!==e&&void 0!==e&&e.kbname?e.kbname.split(","):null!==e&&void 0!==e&&e.api?[null===e||void 0===e?void 0:e.api]:[]),null!==e&&void 0!==e&&e.api){const t=await m(null===e||void 0===e?void 0:e.api);t&&(O(t.data.default_websearch||!1),Se(t.data.default_websearch||!1))}null===(t=e.chatMessages)||void 0===t||t.forEach((e=>{var t,n;const r=null===e||void 0===e||null===(t=e.answer)||void 0===t?void 0:t.match(/references[;;]?([\s\S]*)$/i),i=r?r[1].split(";;;").map((e=>e.replace(/<br\/>/gi," ").replace(/; /g,"").trim())).filter((e=>""!==e)):[],o=(null===e||void 0===e||null===(n=e.answer)||void 0===n?void 0:n.replace(/\\n
205/gi,"\n"))||"",a=r?o.split(r[0])[0]:o,s="string"===typeof e.image?[e.image]:e.image||[],l=[".jpg",".jpeg",".png",".webp"],c=[".pdf",".doc",".docx",".txt"],u=(null===e||void 0===e?void 0:e.web)||[],d=[],p=[];s.forEach((e=>{const t=e.split("?")[0].split("/"),n="."+t[t.length-1].split(".").pop().toLowerCase();l.includes(n)?d.push(e):c.includes(n)&&p.push(e)})),U((t=>[...t,{...e,answer:a,reference:i,isLoading:!1,links:e.link?e.link:[],image:d,files:p,drive:(null===e||void 0===e?void 0:e.drive)||[],web:u,usage:(null===e||void 0===e?void 0:e.usage)||{}}])),console.log(),H(e.link||[])})),P(!1)}))}}),[wt]);const St=async(e,t)=>{e.stopPropagation(),ln(!0),await u(t),it(null),T(null),ln(!1),Z===t&&(U([]),Se(!1),O(!1),Et("/chatbot"))},_t=new Date;_t.setHours(0,0,0,0);const kt=new Date(_t);kt.setDate(kt.getDate()-1),kt.setHours(0,0,0,0);const Tt=new Date(_t);Tt.setDate(Tt.getDate()-7),Tt.setHours(0,0,0,0);const Ct=new Date(_t);Ct.setDate(Ct.getDate()-30),Ct.setHours(0,0,0,0);const Ot=new Date(_t);Ot.setFullYear(Ot.getFullYear()-1),Ot.setHours(0,0,0,0);const{todayChats:Nt,yesterdayChats:It,previous7DaysChats:Rt,previous30DaysChats:Pt,lastYearChats:jt}=(()=>{const e=[],t=[],n=[],r=[],i=[];return s.forEach((o=>{const a=new Date(1e3*o.timestamp),s=_t-a,l=Math.ceil(s/864e5);0===l?e.push(o):1===l?t.push(o):l<=7?n.push(o):l<=30?r.push(o):i.push(o)})),{todayChats:e,yesterdayChats:t,previous7DaysChats:n,previous30DaysChats:r,lastYearChats:i}})(),Mt=[...Nt],Dt=[...It],Lt=[...Rt],Ft=[...Pt],Bt=[...jt],Ut=e=>e.sort(((e,t)=>t.timestamp-e.timestamp)),zt=(0,c.useMemo)((()=>{const e=e=>Ut(e.filter((e=>e.chatName.toLowerCase().includes(A.toLowerCase()))));if(!A.trim()){const e=[...Mt,...Dt,...Lt,...Ft,...Bt],t=Ut(e).slice(0,7),n={today:[],yesterday:[],previous7Days:[],previous30Days:[],lastYear:[]};return t.forEach((e=>{Mt.some((t=>t.chatID===e.chatID))?n.today.push(e):Dt.some((t=>t.chatID===e.chatID))?n.yesterday.push(e):Lt.some((t=>t.chatID===e.chatID))?n.previous7Days.push(e):Ft.some((t=>t.chatID===e.chatID))?n.previous30Days.push(e):Bt.some((t=>t.chatID===e.chatID))&&n.lastYear.push(e)})),n}return{today:e(Mt),yesterday:e(Dt),previous7Days:e(Lt),previous30Days:e(Ft),lastYear:e(Bt)}}),[A,Mt,Dt,Lt,Ft,Bt]),Ht=(0,c.useMemo)((()=>({today:Mt,yesterday:Dt,previous7Days:Lt,previous30Days:Ft,lastYear:Bt})),[Mt,Dt,Lt,Ft,Bt]),$t=()=>{b(!g)},Vt=e=>{Se(!1),O(!1),Et(`/chatbot?id=${e}`),Me(!1),E(""),o&&b(!1)},[Gt,Wt]=(0,c.useState)(null),qt=e=>{const t=vt.find((t=>t.id===e));return t?t.type:null},Yt=()=>S.some((e=>"kb"===qt(e))),Kt=()=>S.some((e=>"api"===qt(e))),Xt=(0,c.useCallback)((async e=>{F(!0);try{wt.get("id");const t=window.location.href,n=localStorage.getItem("uid");U((t=>[...t,{question:e,answer:"Generating the answer...",reference:[],isLoading:!0,links:[],images:ne.length>0?ne.map((e=>URL.createObjectURL(e))):[],files:[],drive:[],web:[]}])),y("");const r=localStorage.getItem("organization"),i=[],o=[],a=[];if(console.log(ne),ne.length>0){w("Processing Image ...");for(const e of ne){const t=`${Date.now()}.jpg`,n={filename:t,base64_data:await bt(e)};try{const e=await p(n);a.push(e.url),o.push(e.url)}catch(qUe){console.error("Error uploading",t,qUe)}}ie([])}const s=[],l=[];if(oe.length>0){w("Processing Files ...");for(const e of oe){if(e.url&&e.url.includes("google.com")){i.push(e.url);const t={file_name:e.name,file_url:e.url};l.push(t);continue}const t=new FileReader,n=(await new Promise(((n,r)=>{t.onload=()=>n(t.result),t.onerror=e=>r(e),t.readAsDataURL(e)}))).split(",")[1],r={filename:e.name,base64_data:n};try{const e=await p(r);a.push(e.url),s.push(e.url)}catch(qUe){console.error("Error uploading",e.name,qUe)}}ae([])}U((e=>{const t=e.length-1;return e.map(((e,n)=>n===t?{...e,image:o,files:s,drive:l,web:[]}:e))})),w("Analyzing Question");const c=await fetch("https://sse.asklly.ai/v2/sse/api",{method:"POST",headers:{"Content-Type":"application/json",GTKN:se?`Bearer ${se}`:""},body:JSON.stringify({question:e,orgn:r,api:S[0],cid:Z||"null",uid:n,image:a.length>0?a.join(",,,"):"",drive:i.length>0?i.join(",,,"):"",search:C})});if(w("Analyzing Question"),!c.ok||!c.body)throw new Error("Network response was not ok or streaming is not supported.");const u=c.body.getReader(),h=new TextDecoder("utf-8");let f="",m="";const g=async e=>{let{done:r,value:i}=e;if(r)return void await d(n);const a=h.decode(i),l=a.includes("%%%")&&a.split("%%%")[1].split("%%%")[0]||"";if(l){const e=JSON.parse(l);U((t=>{const n=t.length-1;return t.map(((t,r)=>r===n?{...t,usage:e}:t))}))}const c=a.includes("<<>>")&&a.split("<<>>")[1].split("<<>>")[0]||"";if(console.log(c),f+=c?"":a,c)try{const e=c.includes("Chat Completion is Done. Done Streaming")?c.split("Chat Completion is Done. Done Streaming")[0]:c,t=JSON.parse(e);U((e=>{const n=e.length-1;return e.map(((e,r)=>r===n?{...e,web:t}:e))}))}catch(x){console.error("Invalid JSON in webSource:",c,x)}let p;const b=f.split("::id::")[1];if(b){p=b.split("%%%")[0]}const v=f.split("references;;");
205m=v[0].split("::id::")[0].split("%%%")[0].replace(/\\n/gi,"\n").replace("Chat Completion is Done. Done Streaming","");let y=[];if(f.split("references;;")[1]&&(y=f.split("references;;")[1].split("::id::")[0].split(";;;").filter((e=>""!==e))),p){const e=t.substring(0,t.indexOf("/api"))+"/chatbot?id="+p;window.history.pushState(null,"",e)}return U((e=>{const t=e.length-1;return e.map(((e,n)=>n===t?{...e,answer:m,reference:y,isLoading:!1,image:o,files:s}:e))})),u.read().then(g)};await u.read().then(g),f=""}catch(qUe){console.error(qUe)}finally{F(!1)}}),[S,wt,z,ne,C,oe]),Zt=async()=>{try{if(Yt())await Qt(v);else{if(!Kt())return aa.oR.error("Select an knowledge base or api to chat",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});await Xt(v)}}catch(e){console.log(e)}},Qt=(0,c.useCallback)((async e=>{try{F(!0),console.log(e);wt.get("id");const t=new URLSearchParams(window.location.search).get("id"),n=localStorage.getItem("uid");U((t=>[...t,{question:e,answer:"Generating the answer...",reference:[],isLoading:!0,links:[],image:[],files:[],drive:[]}])),ie("");const r=localStorage.getItem("organization"),i=[],o=[],a=[];if(ne.length>0){console.log(ne);for(const e of ne){if("string"===typeof e&&e.includes("www.googleapis.com"))return;const t=`${Date.now()}.jpg`,n={filename:t,base64_data:await bt(e)};try{const e=await p(n);i.push(e.url),o.push(e.url)}catch(qUe){console.error("Error uploading",t,qUe)}}}const s=[],l=[];if(oe.length>0){console.log(oe);for(const e of oe){if(e.url&&e.url.includes("google.com")){a.push(e.url);const t={file_name:e.name,file_url:e.url};l.push(t);continue}const t=new FileReader,n=(await new Promise(((n,r)=>{t.onload=()=>n(t.result),t.onerror=e=>r(e),t.readAsDataURL(e)}))).split(",")[1],r={filename:e.name,base64_data:n};try{const e=await p(r);i.push(e.url),s.push(e.url)}catch(qUe){console.error("Error uploading",e.name,qUe)}}}U((e=>{const t=e.length-1;return e.map(((e,n)=>n===t?{...e,image:o,files:s,drive:l}:e))})),w("Analyzing Question");const c=window.location.href.split("?")[0];ae([]),ie([]),console.log(S);const u=await fetch("https://sse.asklly.ai/v2/sse/chat",{method:"POST",headers:{"Content-Type":"application/json",GTKN:se?`Bearer ${se}`:""},body:JSON.stringify({question:e,orgn:r,kbs:S.join(","),cid:t||"null",uid:n,image:i.length>0?i.join(",,,"):"",drive:a.length>0?a.join(",,,"):"",search:C})});if(y(""),!u.ok||!u.body)throw new Error("Network response was not ok or streaming not supported");const h=u.body.getReader(),f=new TextDecoder("utf-8");let m="",g="";const b=async e=>{let{done:t,value:n}=e;if(t)return void await d();const r=f.decode(n),i=r.includes("<<>>")&&r.split("<<>>")[1].split("<<>>")[0]||"",o=r.includes("%%%")&&r.split("%%%")[1].split("%%%")[0]||"";if(o){const e=JSON.parse(o);U((t=>{const n=t.length-1;return t.map(((t,r)=>r===n?{...t,usage:e}:t))}))}if(m+=i?"":r,i)try{const e=i.includes("Chat Completion is Done. Done Streaming")?i.split("Chat Completion is Done. Done Streaming")[0]:i,t=JSON.parse(e);U((e=>{const n=e.length-1;return e.map(((e,r)=>r===n?{...e,web:t}:e))}))}catch(p){console.error("Invalid JSON in webSource:",i,p)}const a=m.split("references;;");
205g=a[0].replace(/\\n/gi,"\n");let s,l=[],u=[];if(a[1]){const e=a[1].split("::id::");if(e[0]&&(l=e[0].split(";;;").filter((e=>""!==e))),e[1]){const t=e[1].split("##links##");s=t[0],t[1]&&(u=t[1].split("$;$").filter((e=>e)),H((e=>[...e,...u])))}}if(s){const e=c+"?id="+s;window.history.pushState(null,"",e)}if(U((e=>{const t=e.length-1;return e.map(((e,n)=>n===t?{...e,answer:g,reference:l,isLoading:!1,links:u}:e))})),g.includes("Chat Completion is Done. Done Streaming.")){const e=g.replace("Chat Completion is Done. Done Streaming.","");return U((t=>{const n=t.length-1;return t.map(((t,r)=>r===n?{...t,answer:e,isLoading:!1}:t))})),F(!1),void await d()}return h.read().then(b)};h.read().then(b)}catch(qUe){console.error(qUe),F(!1)}}),[S,wt,z,ne,C,oe]),Jt=async()=>{try{if(Yt())await en();else{if(!Kt())return aa.oR.error("Select an knowledge base or api to chat",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});await tn()}}catch(e){console.log(e)}},en=(0,c.useCallback)((async()=>{F(!0);try{var e;const t=localStorage.getItem("uid"),n=new URLSearchParams(window.location.search).get("id"),r=B.length-1;U((e=>{const t=[...e];return t[r]={...t[r],isLoading:!0,answer:"",web:[]},t}));const i=B[r],o=(null===i||void 0===i?void 0:i.question)||"",a=[];Array.isArray(null===i||void 0===i?void 0:i.image)&&i.image.length>0&&a.push(...i.image),Array.isArray(null===i||void 0===i?void 0:i.files)&&i.files.length>0&&a.push(...i.files),w("Analyzing Question");const s=await fetch("https://sse.asklly.ai/v2/sse/rechat",{method:"POST",headers:{"Content-Type":"application/json",GTKN:se?`Bearer ${se}`:""},body:JSON.stringify({question:o,orgn:localStorage.getItem("organization"),kbs:S.join(","),cid:n||"null",uid:t,image:a?a.join(",,,"):"",drive:(null===i||void 0===i||null===(e=i.drive)||void 0===e?void 0:e.length)>0?i.drive.map((e=>e.file_url)).join(",,,"):"",search:C})});if(!s.ok||!s.body)throw new Error("Network response was not ok or streaming is not supported.");const l=s.body.getReader(),c=new TextDecoder("utf-8");let u="",p="";const h=async e=>{let{done:t,value:n}=e;if(t)return void await d();const i=c.decode(n),o=i.includes("<<>>")&&i.split("<<>>")[1].split("<<>>")[0]||"",a=i.includes("%%%")&&i.split("%%%")[1].split("%%%")[0]||"";if(a){const e=JSON.parse(a);U((t=>{const n=t.length-1;return t.map(((t,r)=>r===n?{...t,usage:e}:t))}))}if(u+=o?"":i,console.log(u),o)try{const e=o.includes("Chat Completion is Done. Done Streaming")?o.split("Chat Completion is Done. Done Streaming")[0]:o,t=JSON.parse(e);U((e=>{const n=e.length-1;return e.map(((e,r)=>r===n?{...e,web:t}:e))}))}catch(b){console.error("Invalid JSON in webSource:",o,b)}const s=u.split("references;;");
205p=s[0].replace(/\\n/gi,"\n");let f,m=[],g=[];if(s[1]){const e=s[1].split("::id::");if(e[0]&&(m=e[0].split(";;;").filter((e=>""!==e))),e[1]){const t=e[1].split("##links##");f=t[0],t[1]&&(g=t[1].split("$;$").filter((e=>e)),H((e=>[...e,...g])))}}if(U((e=>e.map(((e,t)=>t===r?{...e,answer:p,reference:m,isLoading:!1,links:g}:e)))),p.includes("Chat Completion is Done. Done Streaming.")){const e=p.replace("Chat Completion is Done. Done Streaming.","");return U((t=>t.map(((t,n)=>n===r?{...t,answer:e,isLoading:!1}:t)))),void await d()}return l.read().then(h)};return await l.read().then(h),{success:!0,message:"Answer refreshed successfully"}}catch(qUe){return console.error(qUe),{success:!1,message:"Failed to refresh answer"}}finally{F(!1)}}),[B,he,wt,z,ne,C,oe]),tn=(0,c.useCallback)((async()=>{F(!0);try{var e;const t=B.length-1,n=localStorage.getItem("uid"),r=localStorage.getItem("organization"),i={question:B[t].question,orgn:r,api:S[0],cid:Z||"null",uid:n};U((e=>{const n=[...e];return n[t]={...n[t],web:[],isLoading:!0,answer:""},n}));const o=[],a=B[B.length-1];null!==a&&void 0!==a&&a.image&&o.push(...a.image),null!==a&&void 0!==a&&a.files&&o.push(...a.files.map((e=>e.url))),U((e=>{const n=[...e];return n[t]={...n[t],isLoading:!0,answer:""},n}));const s=B[t],l=[];Array.isArray(null===s||void 0===s?void 0:s.image)&&s.image.length>0&&l.push(...s.image),Array.isArray(null===s||void 0===s?void 0:s.files)&&s.files.length>0&&l.push(...s.files);const c=await fetch("https://sse.asklly.ai/v2/sse/api/rechat",{method:"POST",headers:{"Content-Type":"application/json",GTKN:se?`Bearer ${se}`:""},body:JSON.stringify({question:i.question,orgn:i.orgn,api:i.api,cid:i.cid,uid:i.uid,image:l?l.join(",,,"):"",drive:(null===a||void 0===a||null===(e=a.drive)||void 0===e?void 0:e.length)>0?a.drive.map((e=>e.file_url)).join(",,,"):"",search:C})});if(w("Analyzing Question"),!c.ok||!c.body)throw new Error("Network response was not ok or streaming is not supported.");const u=c.body.getReader(),p=new TextDecoder("utf-8");let h="",f="";window.location.href.split("?")[0];const m=async e=>{let{done:r,value:i}=e;if(r)return void await d(n);const o=p.decode(i),a=o.includes("<<>>")&&o.split("<<>>")[1].split("<<>>")[0]||"",s=o.includes("%%%")&&o.split("%%%")[1].split("%%%")[0]||"";if(s){const e=JSON.parse(s);U((t=>{const n=t.length-1;return t.map(((t,r)=>r===n?{...t,usage:e}:t))}))}if(h+=a?"":o,a)try{const e=a.includes("Chat Completion is Done. Done Streaming")?a.split("Chat Completion is Done. Done Streaming")[0]:a,t=JSON.parse(e);U((e=>{const n=e.length-1;return e.map(((e,r)=>r===n?{...e,web:t}:e))}))}catch(y){console.error("Invalid JSON in webSource:",a,y)}const l=h.split("references;;");
205f=l[0].split("::id::")[0].replace(/\\n/gi,"\n");const c=l[1]?l[1].split("::id::")[0].split(";;;").filter((e=>""!==e)):[];let g,b=[];const v=h.split("::id::")[1];if(v){const e=v.split("%%%")[0].replace(/\\n/gi,"\n").split("Chat Completion is Done. Done Streaming");g=e[0],e[1]&&(b=e[1].split("$;$").filter((e=>e)),H((e=>[...e,...b])))}return U((e=>e.map(((e,n)=>n===t?{...e,answer:f,reference:c,isLoading:!1,links:b||[]}:e)))),u.read().then(m)};return await u.read().then(m),{success:!0,message:"Answer refreshed successfully"}}catch(qUe){return console.error(qUe),{success:!1,message:"Failed to refresh answer"}}finally{F(!1)}}),[B,he,wt,z,,ne,C,oe]),nn=async e=>{try{if(Yt())await rn(e);else{if(!Kt())return aa.oR.error("Select an knowledge base or api to chat",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});await on(e)}}catch(t){console.log(t)}},rn=(0,c.useCallback)((async e=>{F(!0);try{var t;const n=localStorage.getItem("uid"),r=new URLSearchParams(window.location.search).get("id"),i=(wt.get("id"),B.length-1),o=B[i],a=[];Array.isArray(null===o||void 0===o?void 0:o.image)&&o.image.length>0&&a.push(...o.image),Array.isArray(null===o||void 0===o?void 0:o.files)&&o.files.length>0&&a.push(...o.files),U((t=>{const n=[...t];return n[i]={...n[i],question:e,isLoading:!0,answer:"",web:[]},n})),w("Analyzing Question");const s=await fetch("https://sse.asklly.ai/v2/sse/rechat",{method:"POST",headers:{"Content-Type":"application/json",GTKN:se?`Bearer ${se}`:""},body:JSON.stringify({question:e,orgn:localStorage.getItem("organization"),kbs:he.join(","),cid:r||"null",uid:n,image:a?a.join(",,,"):"",drive:(null===o||void 0===o||null===(t=o.drive)||void 0===t?void 0:t.length)>0?o.drive.map((e=>e.file_url)).join(",,,"):"",search:C})});if(!s.ok||!s.body)throw new Error("Network response was not ok or streaming is not supported.");const l=s.body.getReader(),c=new TextDecoder("utf-8");let u="",p="";const h=window.location.href.split("?")[0],f=async e=>{let{done:t,value:n}=e;if(t)return void await d();const r=c.decode(n),o=r.includes("<<>>")&&r.split("<<>>")[1].split("<<>>")[0]||"";u+=o?"":r;const a=r.includes("%%%")&&r.split("%%%")[1].split("%%%")[0]||"";if(a){const e=JSON.parse(a);U((t=>{const n=t.length-1;return t.map(((t,r)=>r===n?{...t,usage:e}:t))}))}if(o)try{const e=o.includes("Chat Completion is Done. Done Streaming")?o.split("Chat Completion is Done. Done Streaming")[0]:o,t=JSON.parse(e);U((e=>{const n=e.length-1;return e.map(((e,r)=>r===n?{...e,web:t}:e))}))}catch(v){console.error("Invalid JSON in webSource:",o,v)}const s=u.split("references;;");
205p=s[0].replace(/\\n/gi,"\n");let m,g=[],b=[];if(s[1]){const e=s[1].split("::id::");if(e[0]&&(g=e[0].split(";;;").filter((e=>""!==e))),e[1]){const t=e[1].split("##links##");m=t[0],t[1]&&(b=t[1].split("$;$").filter((e=>e)),H((e=>[...e,...b])))}}if(m){const e=h+"?id="+m;window.history.pushState(null,"",e)}if(U((e=>e.map(((e,t)=>t===i?{...e,answer:p,reference:g,isLoading:!1,links:b||[]}:e)))),p.includes("Chat Completion is Done. Done Streaming.")){const e=p.replace("Chat Completion is Done. Done Streaming.","");return U((t=>t.map(((t,n)=>n===i?{...t,answer:e,isLoading:!1}:t)))),void await d()}return l.read().then(f)};return await l.read().then(f),{success:!0,message:"Answer refreshed successfully"}}catch(qUe){return console.error(qUe),{success:!1,message:"Failed to refresh answer"}}finally{F(!1)}}),[he,wt,z,ne,C,oe]),on=(0,c.useCallback)((async e=>{F(!0);try{var t;const n=localStorage.getItem("uid"),r=localStorage.getItem("organization"),i={question:e,orgn:r,api:S[0],cid:Z||"null",uid:n};let o="";const a=B.length-1;U((t=>{const n=[...t];return o=n[a].image||"",n[a]={...n[a],question:e,web:[],isLoading:!0,answer:""},n}));const s=B[a],l=[];Array.isArray(null===s||void 0===s?void 0:s.image)&&s.image.length>0&&l.push(...s.image),Array.isArray(null===s||void 0===s?void 0:s.files)&&s.files.length>0&&l.push(...s.files);const c=await fetch("https://sse.asklly.ai/v2/sse/api/rechat",{method:"POST",headers:{"Content-Type":"application/json",GTKN:se?`Bearer ${se}`:""},body:JSON.stringify({question:i.question,orgn:i.orgn,api:i.api,cid:i.cid,uid:i.uid,image:l?l.join(",,,"):"",drive:(null===s||void 0===s||null===(t=s.drive)||void 0===t?void 0:t.length)>0?s.drive.map((e=>e.file_url)).join(",,,"):"",search:C})});if(w("Analyzing Question"),!c.ok||!c.body)throw new Error("Network response was not ok or streaming is not supported.");const u=c.body.getReader(),p=new TextDecoder("utf-8");let h="",f="";window.location.href.split("?")[0];const m=async e=>{let{done:t,value:r}=e;if(t)return void await d(n);const i=p.decode(r),o=i.includes("<<>>")&&i.split("<<>>")[1].split("<<>>")[0]||"";if(h+=o?"":i,console.log(o),o)try{const e=o.includes("Chat Completion is Done. Done Streaming")?o.split("Chat Completion is Done. Done Streaming")[0]:o,t=JSON.parse(e);U((e=>{const n=e.length-1;return e.map(((e,r)=>r===n?{...e,web:t}:e))}))}catch(b){console.error("Invalid JSON in webSource:",o,b)}const s=i.includes("%%%")&&i.split("%%%")[1].split("%%%")[0]||"";if(s){const e=JSON.parse(s);U((t=>{const n=t.length-1;return t.map(((t,r)=>r===n?{...t,usage:e}:t))}))}const l=h.split("references;;");
205f=l[0].split("::id::")[0].replace(/\\n/gi,"\n");const c=l[1]?l[1].split("::id::")[0].split(";;;").filter((e=>""!==e)):[];let g=[];return U((e=>e.map(((e,t)=>t===a?{...e,answer:f,reference:c,isLoading:!1,links:g||[]}:e)))),u.read().then(m)};return await u.read().then(m),{success:!0,message:"Answer refreshed successfully"}}catch(qUe){return console.error(qUe),{success:!1,message:"Failed to refresh answer"}}finally{F(!1)}}),[he,wt,z,,ne,C,oe]),an=()=>{He(null),Ve("")},[sn,ln]=(0,c.useState)(!1),cn=()=>(0,L.jsxs)("div",{className:"h-full flex flex-col bg-white",children:[(0,L.jsxs)("div",{className:"flex items-center justify-between p-5",children:[(0,L.jsx)("div",{className:"flex items-center",children:(0,L.jsx)("span",{className:"font-sans text-2xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-purple-500 to-blue-700",children:a})}),!o&&(0,L.jsx)("button",{onClick:$t,className:"w-8 h-8 rounded-lg rotate-180 flex items-center justify-center cursor-e-resize",children:(0,L.jsx)(tPe,{className:"w-5 h-5 text-gray-600"})})]}),(0,L.jsxs)("div",{className:"p-3",children:[(0,L.jsxs)("button",{className:"flex items-center px-2 py-3 w-full gap-4 rounded-lg hover:bg-gray-100 transition-colors",onClick:()=>{U([]),_([]),Q(""),Se(!1),O(!1),Et("/chatbot")},children:[(0,L.jsx)(eH.A,{className:"w-4 h-4 text-gray-600"}),(0,L.jsx)("span",{className:"text-gray-700 font-medium",children:"New conversation"})]}),(0,L.jsxs)("button",{className:"flex items-center px-2 py-3 w-full gap-4 rounded-lg hover:bg-gray-100 transition-colors",onClick:()=>{Le(!0),o&&$t()},children:[(0,L.jsx)(nPe,{className:"w-4 h-4 text-gray-600"}),(0,L.jsx)("span",{className:"text-gray-700 font-medium",children:"Collections"})]}),(0,L.jsxs)("button",{className:"flex items-center px-2 py-3 w-full gap-4 rounded-lg hover:bg-gray-100 transition-colors",onClick:()=>{Me(!0),o&&$t()},children:[(0,L.jsx)(js,{className:"w-4 h-4 text-gray-600"}),(0,L.jsx)("span",{className:"text-gray-700 font-medium",children:"Search"})]}),(0,L.jsxs)("button",{className:"flex items-center px-2 py-3 w-full gap-4 rounded-lg hover:bg-gray-100 transition-colors",onClick:()=>{Et("/kb")},children:[(0,L.jsx)(Bhe,{className:"w-4 h-4 text-gray-600"}),(0,L.jsx)("span",{className:"text-gray-700 font-medium",children:"Knowledge Base"})]}),(0,L.jsxs)("button",{className:"flex items-center px-2 py-3 w-full gap-4 rounded-lg hover:bg-gray-100 transition-colors",onClick:()=>{Et("/marketplace")},children:[(0,L.jsx)(tfe,{className:"w-4 h-4 text-gray-600"}),(0,L.jsx)("span",{className:"text-gray-700 font-medium",children:"AI Hub"})]})]}),(0,L.jsx)("div",{className:"flex-1 overflow-y-auto px-4 py-2 min-h-0 scrollbar-thin scrollbar-thumb-gray-400 scrollbar-track-gray-200",children:(0,L.jsx)("div",{className:"space-y-1",children:Ht&&"object"===typeof Ht&&Object.entries(Ht).map((e=>{let[t,n]=e;return n.length>0?(0,L.jsxs)("div",{className:"mb-2",children:[(0,L.jsxs)("p",{className:"text-xs font-semibold text-gray-400 uppercase mb-1",children:["today"===t&&"Today","yesterday"===t&&"Yesterday","previous7Days"===t&&"Last 7 Days","previous30Days"===t&&"Last 30 Days","lastYear"===t&&"Older"]}),(0,L.jsx)("div",{className:"space-y-1",children:n.map((e=>(0,L.jsx)("button",{onClick:()=>ze!==e.chatID&&Vt(e.chatID),className:"group relative p-2 rounded-lg hover:bg-gray-100 cursor-pointer w-full text-left",title:e.chatName,children:ze===e.chatID?(0,L.jsxs)("div",{className:"flex items-center gap-2 pr-2",children:[(0,L.jsx)("input",{type:"text",value:$e,onChange:e=>Ve(e.target.value),className:"flex-1 text-sm px-2 py-1 border bg-white  border-gray-300 rounded focus:outline-none focus:ring-2 focus:ring-[#724EE9]",autoFocus:!0,onClick:e=>e.stopPropagation(),disabled:sn}),(0,L.jsx)("button",{onClick:t=>{t.stopPropagation(),(async e=>{ln(!0);const t=localStorage.getItem("uid"),n=await l(),r=new FormData;r.append("organization",n),r.append("name",$e),r.append("userID",t),r.append("chatId",e),await(0,xi.YP)(r),await d(),He(null),Ve(""),it(null),ln(!1)})(e.chatID)},disabled:sn,className:"p-1 text-green-600 hover:bg-green-100 rounded",children:sn?(0,L.jsx)(bw,{size:16,className:"animate-spin"}):(0,L.jsx)(vw,{size:16})}),(0,L.jsx)("button",{onClick:e=>{e.stopPropagation(),an()},disabled:sn,className:"p-1 text-red-600 hover:bg-red-100 rounded",children:(0,L.jsx)(mw,{size:16})})]}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("p",{className:"text-sm text-gray-700 truncate pr-8",children:e.chatName}),(0,L.jsx)("div",{className:"absolute top-1/2 right-2 transform -translate-y-1/2 opacity-0 group-hover:opacity-100 transition-opacity",children:(0,L.jsxs)(eBe,{children:[(0,L.jsx)(YFe,{onClick:e=>e.stopPropagation(),className:"p-1 rounded hover:bg-gray-200 flex items-center justify-center",children:(0,L.jsx)(vfe,{fontSize:"small"})}),(0,L.jsxs)(KFe,{anchor:"bottom",className:"bg-white shadow-lg border rounded-md py-1 min-w-32 z-[9999]",style:{zIndex:9999},children:[(0,L.jsx)(XFe,{children:(0,L.jsxs)("button",{className:"flex items-center w-full gap-2 text-left px-3 py-2 text-sm hover:bg-gray-100",onClick:t=>{t.stopPropagation(),(e=>{console.log("share:",e);const{origin:t}=window.location,n=`${t}/share?id=${e}`;Mx()(n),aa.oR.success("Coppied Url",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})})(e.chatID)},children:[(0,L.jsx)(xfe,{size:16})," share"]})}),(0,L.jsx)(XFe,{children:(0,L.jsxs)("button",{className:"flex items-center w-full gap-2 text-left px-3 py-2 text-sm hover:bg-gray-100",onClick:t=>{var n,r;t.stopPropagation(),n=e.chatID,r=e.chatName,He(n),Ve(r)},children:[(0,L.jsx)(rPe,{size:16})," Rename"]})}),(0,L.jsx)(XFe,{children:(0,L.jsx)("button",{className:"flex items-center gap-2 w-full text-left px-3 py-2 text-sm hover:bg-gray-100 text-red-600",onClick:t=>{t.stopPropagation(),St(t,e.chatID)},disabled:sn,children:sn?(0,L.jsx)(bw,{size:16,className:"animate-spin"}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(iPe,{size:16})," Delete"]})})})]})]})})]})},e.chatID)))})]},t):null}))})})]}),un=e=>{let{children:t,tooltip:n,onClick:r,className:i}=e;const[o,a]=(0,c.useState)(!1);return(0,L.jsxs)("div",{className:"relative",children:[(0,L.jsx)("button",{className:i,onClick:r,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:t}),o&&(0,L.jsx)("div",{className:"absolute left-full ml-2 top-1/2 transform -translate-y-1/2 px-3 py-2 bg-gray-900 text-white text-sm rounded-lg whitespace-nowrap z-50 shadow-lg",children:n})]})};return(0,L.jsxs)("div",{className:"flex h-screen bg-gray-50",children:[!
205o&&(0,L.jsx)("div",{className:"fixed inset-y-0 left-0 z-50 bg-white border-r border-gray-200 transition-all duration-300 ease-in-out lg:relative flex flex-col "+(g?"w-72":"w-12"),children:g?(0,L.jsx)(cn,{}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{className:"flex justify-center p-5",children:(0,L.jsx)("button",{onClick:$t,className:"w-8 h-8 rounded-lg flex items-center justify-center cursor-e-resize",children:(0,L.jsx)(tPe,{className:"w-5 h-5 text-gray-600"})})}),(0,L.jsxs)("div",{className:"p-3 space-y-2",children:[(0,L.jsxs)("div",{className:"p-3 space-y-2",children:[(0,L.jsx)("div",{className:"flex justify-center",children:(0,L.jsx)(un,{tooltip:"New conversation",className:"p-3 rounded-lg hover:bg-gray-100 transition-colors",onClick:()=>{U([]),_([]),Q(""),Se(!1),O(!1),Et("/chatbot")},children:(0,L.jsx)(eH.A,{className:"w-4 h-4 text-gray-600"})})}),(0,L.jsx)("div",{className:"flex justify-center",children:(0,L.jsx)(un,{tooltip:"Collections",className:"p-3 rounded-lg hover:bg-gray-100 transition-colors",onClick:()=>{Le(!0),o&&$t()},children:(0,L.jsx)(nPe,{className:"w-4 h-4 text-gray-600"})})}),(0,L.jsx)("div",{className:"flex justify-center",children:(0,L.jsx)(un,{tooltip:"Search",className:"p-3 rounded-lg hover:bg-gray-100 transition-colors",onClick:()=>Me(!0),children:(0,L.jsx)(js,{className:"w-4 h-4 text-gray-600"})})}),(0,L.jsx)("div",{className:"flex justify-center",children:(0,L.jsx)(un,{tooltip:"Knowledge Base",onClick:()=>Et("/kb"),className:"p-3 rounded-lg hover:bg-gray-100 transition-colors",children:(0,L.jsx)(Bhe,{className:"w-4 h-4 text-gray-600"})})}),(0,L.jsx)("div",{className:"flex justify-center",children:(0,L.jsx)(un,{tooltip:"AI Hub",onClick:()=>Et("/marketplace"),className:"p-3 rounded-lg hover:bg-gray-100 transition-colors",children:(0,L.jsx)(tfe,{className:"w-4 h-4 text-gray-600"})})})]}),(0,L.jsx)("div",{className:"flex justify-center",children:(0,L.jsx)(un,{tooltip:"Recent conversations",className:"p-3 rounded-lg hover:bg-gray-100 transition-colors",onClick:$t,children:(0,L.jsx)(Qz,{className:"w-4 h-4 text-gray-600"})})})]})]})}),o&&(0,L.jsx)(Ks,{anchor:"left",open:g,onClose:()=>b(!1),variant:"temporary",ModalProps:{keepMounted:!0},sx:{"& .MuiDrawer-paper":{width:280,boxSizing:"border-box"}},children:(0,L.jsx)(cn,{})}),(0,L.jsxs)("div",{className:"flex-1 flex flex-col min-h-screen transition-all duration-300 ease-in-out "+(o?"w-full":"ml-0"),children:[(0,L.jsx)("div",{className:"sticky top-0 z-40 bg-gray-50",children:(0,L.jsxs)("div",{className:"flex items-center justify-between px-2 py-3 gap-2",children:[(0,L.jsxs)("div",{className:"flex items-center gap-2 flex-shrink-0",children:[o&&(0,L.jsx)("button",{onClick:$t,className:"p-2 rounded-lg hover:bg-gray-100 transition-colors flex-shrink-0",children:(0,L.jsx)(vke,{className:"w-6 h-6 text-gray-600"})}),(0,L.jsx)("div",{className:"w-full max-w-[70vw] sm:max-w-md md:max-w-lg",children:(0,L.jsx)(mBe,{setWebSearchDisable:Se,isGlobeExpanded:C,setIsGlobeExpanded:O,kb:h,selected:S,setSelected:_,options:vt,title:"Select AI Assistant"})})]}),(0,L.jsx)("div",{children:(0,L.jsx)(va,{isAsklly:Ze})})]})}),(0,L.jsxs)("main",{className:"flex-1 flex flex-col overflow-hidden",children:[(0,L.jsx)("div",{ref:et,className:"flex-1 overflow-y-auto px-4 py-4",children:R?(0,L.jsx)("div",{className:"flex justify-center items-center h-full",children:(0,L.jsx)(bw,{size:30,className:"animate-spin transition-all ease-in-out duration-300"})}):0===B.length?(0,L.jsx)("div",{className:"flex-1 flex flex-col items-center justify-center px-4",children:(0,L.jsx)("div",{className:"max-w-2xl w-full",children:(0,L.jsx)("div",{className:"text-center mb-12",children:(0,L.jsx)("div",{className:"h-[60vh] flex items-center justify-center mb-4",children:(0,L.jsxs)("h1",{className:"text-2xl sm:text-3xl font-light text-gray-800",children:[(()=>{const e=(new Date).getHours();return e<12?"Good Morning!":e<18?"Good Afternoon!":"Good Evening!"})(),!o&&" What are you working on?"]})})})})}):(0,L.jsxs)("div",{className:"max-w-3xl mx-auto space-y-6",children:[B.map(((e,t)=>{var n,r;return(0,L.jsxs)("div",{className:"flex flex-col mb-10",children:[(0,L.jsxs)("div",{className:"flex gap-1 items-center",children:[e.image&&e.image.length>0&&e.image.map(((e,t)=>(0,L.jsx)("div",{onClick:t=>ft(e,t),className:"relative w-28 h-28 border cursor-pointer rounded-2xl overflow-hidden m-2",children:(0,L.jsx)("img",{src:e,alt:"Selected",className:"w-full h-full object-cover"})},t))),e.files.length>0&&e.files.map(((e,t)=>{const n=e.split("/").pop();return(0,L.jsx)("div",{className:"relative cursor-pointer mr-2 w-28 h-28 border rounded-2xl overflow-hidden flex items-center justify-center p-2",onClick:()=>{Oe(e),Ie("file"),ke(!0)},children:(0,L.jsxs)("span",{className:"text-center text-sm break-words",children:[(0,L.jsx)(T_e,{size:24,className:"text-gray-400 mb-2"}),(0,L.jsx)("p",{className:"text-xs text-center truncate w-full",title:n,children:n})]})},t)})),(null===e||void 0===e?void 0:e.drive)&&e.drive.length>0&&(0,L.jsxs)("div",{children:[(0,L.jsx)("h3",{className:"text-sm font-medium text-gray-500 mb-3",children:"Exter
205nal Files"}),(0,L.jsx)("div",{className:"flex flex-wrap gap-4",children:e.drive.map(((e,t)=>(0,L.jsxs)("a",{href:e.file_url,target:"_blank",rel:"noopener noreferrer",className:"w-28 h-28 rounded-lg border border-gray-200 shadow-sm hover:shadow-md hover:border-blue-300 transition-all duration-200 flex flex-col items-center justify-center p-2 group",children:[(0,L.jsx)(xfe,{size:24,className:"text-gray-400 group-hover:text-blue-500 mb-2"}),(0,L.jsx)("p",{className:"text-xs text-center truncate w-full group-hover:text-blue-600",title:e.file_name,children:e.file_name})]},t)))})]})]}),(0,L.jsx)("div",{className:"text-black rounded-2xl mb-3 w-[100%] px-4 py-2 max-w-full",children:(0,L.jsx)(K_e,{text:e.question,isLoading:D,onTextChange:nn})}),(0,L.jsxs)("div",{className:"flex flex-col max-w-full",children:[(0,L.jsx)("div",{children:(0,L.jsx)(BSe,{i:e,setStatusText:w,statusText:x})}),(0,L.jsx)("div",{className:"flex items-center gap-1 sm:gap-2 mt-2 ml-0 flex-wrap",children:(0,L.jsxs)(uw,{direction:o?"column":"row",alignItems:o?"flex-start":"center",gap:2,mt:2,ml:2,children:[(null===e||void 0===e?void 0:e.web)&&e.web.length>0&&(0,L.jsxs)("button",{onClick:()=>{W(e.web||[]),V(!0)},className:"flex items-center space-x-2 p-2 bg-gray-100 rounded-full w-fit",children:[(0,L.jsx)("div",{className:"flex items-center",children:null===(n=e.web)||void 0===n?void 0:n.filter((e=>{var t;return null===e||void 0===e||null===(t=e.profile)||void 0===t?void 0:t.img})).slice(0,3).map(((e,t)=>(0,L.jsx)("img",{src:e.profile.img,alt:`Profile ${t+1}`,className:"w-6 h-6 rounded-full border-2 border-white -ml-2 first:ml-0",style:{zIndex:3-t}},t)))}),(0,L.jsxs)("span",{className:"text-sm font-semibold",children:[null===e||void 0===e||null===(r=e.web)||void 0===r?void 0:r.length," web pages"]})]}),!e.isLoading&&(0,L.jsxs)(uw,{direction:"row",alignItems:"center",gap:0,width:o?"100%":void 0,children:[(0,L.jsx)(mi,{title:"Copy",placement:"bottom",children:(0,L.jsx)(Pa.A,{onClick:()=>(e=>{const t=B[e].answer.replace(/<br\/?>/g,"");Mx()(t),aa.oR.success("Coppied text",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})})(t),children:(0,L.jsx)(yw,{size:18})})}),t===B.length-1&&(0,L.jsx)(mi,{title:"Repeat Question",placement:"bottom",children:(0,L.jsx)(Pa.A,{onClick:Jt,children:(0,L.jsx)(O_e,{size:18})})}),(0,L.jsx)(mi,{title:Gt===t?"Stop Speaking":"Read Aloud",placement:"bottom",children:(0,L.jsx)(Pa.A,{onClick:()=>Gt===t?(window.speechSynthesis.cancel(),void Wt(null)):(async e=>{null!==Gt&&window.speechSynthesis.cancel();const t=B[e].answer.replace(/<br\/?>/g,""),n=new SpeechSynthesisUtterance(t);Wt(e),n.onend=()=>{Wt(null)},window.speechSynthesis.speak(n)})(t),children:Gt===t?(0,L.jsx)(N_e,{size:18}):(0,L.jsx)(I_e,{size:18})})}),(0,L.jsx)(mi,{title:"Bad Review",placement:"bottom",children:(0,L.jsx)(Pa.A,{onClick:()=>{console.log(t),ve(t),Y(!0)},children:(0,L.jsx)(R_e,{size:18})})}),(0,L.jsx)(mi,{title:"Add to Collection",placement:"bottom",children:(0,L.jsx)(Pa.A,{onClick:()=>{xt({...yt,cid:Z,index:t}),M(!0)},children:(0,L.jsx)(P_e,{size:18})})}),e.usage&&(0,L.jsx)(mi,{title:"Tokens Usage",placement:"bottom",children:(0,L.jsx)(Pa.A,{onClick:()=>{ve(t),ee(!0)},children:(0,L.jsx)(j_e,{size:18})})})]})]})})]})]},e.id)})),qe&&(0,L.jsx)("button",{className:"fixed bottom-40 bg-white rounded-full shadow p-0 border border-gray-200 hover:bg-gray-100 z-50 transition-all duration-300",onClick:()=>{Je.current&&(Je.current.scrollIntoView({behavior:"smooth"}),Xe(!1))},title:"Scroll to latest",style:{left:`calc(${g?"384px":"64px"} + (100vw - ${g?"384px":"64px"}) / 2 - 20px)`,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,L.jsx)(oPe,{className:"w-6 h-6 text-gray-500"})}),(0,L.jsx)("div",{ref:Je})]})}),(0,L.jsx)("div",{className:`$${o?"fixed bottom-0 left-0 w-full bg-gray-50 z-50 pb-[env(safe-area-inset-bottom)]":"sticky bottom-0 bg-gray-50"} p-4 pt-0`,children:(0,L.jsx)("div",{className:"max-w-4xl mx-auto",children:(0,L.jsxs)("div",{className:"bg-white rounded-2xl border border-gray-200 shadow-sm overflow-hidden",children:[(0,L.jsxs)("div",{className:"flex gap-1 items-center",children:[ne.length>0&&ne.map(((e,t)=>(0,L.jsxs)("div",{onClick:t=>ft(e,t),className:"relative w-28 h-28 border cursor-pointer rounded-2xl overflow-hidden m-2",children:[(0,L.jsx)("button",{className:"absolute top-1 right-1 bg-black text-white rounded-full p-1 w-6 text-xs",onClick:e=>{var n;e.stopPropagation(),n=t,ie((e=>e.filter(((e,t)=>t!==n))))},children:"\u2716"}),(0,L.jsx)("img",{src:URL.createObjectURL(e),alt:"Selected",className:"w-full h-full object-cover"})]},t))),oe.length>0&&oe.map(((e,t)=>(0,L.jsxs)("div",{className:"relative mr-2 w-28 h-28 border rounded-2xl overflow-hidden flex items-center justify-center p-2",children:[(0,L.jsx)("button",{className:"absolute top-1 right-1 bg-black text-white rounded-full p-1 w-6 text-xs",onClick:()=>{return e=t,void ae((t=>t.filter(((t,n)=>n!==e))));var e},children:"\u2716"}),(0,L.jsx)("span",{className:"text-center text-sm break-words",children:e.name})]},t)))]}),(0,L.jsxs)(VBe,{open:we,onClose:mt,className:"relative z-50",children:[(0,L.jsx)("div",{className:"fixed inset-0 bg-black/75","aria-hidden":"true"}),(0,L.jsx)("div",{className:"fixed inset-0 flex w-screen items-center justify-center p-4",children:(0,L.jsxs)(VBe.Panel,{className:"relative max-w-4xl max-h-full",children:[(0,L.jsx)("button",{onClick:mt,className:"absolute -top-10 right-0 text-white hover:text-gray-300 p-2 z-10",children:(0,L.jsx)(mw,{size:24})}),(0,L.jsx)("div",{className:"bg-white rounded-lg overflow-hidden shadow-2xl",children:ye&&(0,L.jsx)("img",{src:"string"===typeof ye?ye:URL.createObjectURL(ye),alt:"Large view",className:"max-w-full max-h-[80vh] object-contain"})})]})})]}
205),(0,L.jsx)("textarea",{value:v,onChange:e=>y(e.target.value),onKeyPress:async e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),await Zt())},placeholder:"How can I help you today?",className:"w-full px-4 sm:px-6 py-4 bg-white text-gray-700 placeholder-gray-400 resize-none outline-none min-h-[60px] max-h-32",rows:"1",onInput:e=>{e.target.style.height="auto",e.target.style.height=e.target.scrollHeight+"px"}}),(0,L.jsxs)("div",{className:"flex items-center justify-between px-4 sm:px-6 py-3",children:[(0,L.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,L.jsx)(z_e,{token:se,setToken:le,setSelectedImage:ie,selectedImage:ne,selectedFiles:oe,setSelectedFiles:ae}),(0,L.jsxs)("button",{className:`p-1 disabled:cursor-not-allowed flex gap-1 rounded-lg hover:bg-gray-100 transition-all ease-in-out duration-300 ${C?"bg-gray-100 border":""} ${C&&!o?"w-20":""}`,onClick:()=>O(!C),disabled:Ee,children:[(0,L.jsx)(Uhe,{size:20}),C&&!o&&(0,L.jsx)("span",{className:"font-semibold text-sm",children:"Search"})]})]}),(0,L.jsx)("div",{className:"flex items-center space-x-2",children:v?(0,L.jsx)("button",{onClick:Zt,disabled:D,className:"w-8 h-8 bg-black rounded-full flex items-center justify-center hover:bg-gray-800 transition-colors disabled:opacity-50",children:(0,L.jsx)(aPe,{className:"text-white font-semibold text-xs"})}):Be?(0,L.jsx)("button",{onClick:async()=>{H_e.Ay.stopListening()},className:"w-8 h-8 bg-black rounded-full flex items-center justify-center",children:(0,L.jsx)(Zhe,{className:"text-white font-semibold",size:17})}):(0,L.jsx)("button",{onClick:async()=>{H_e.Ay.startListening()},className:"w-8 h-8 bg-black rounded-full flex items-center justify-center",children:(0,L.jsx)(Hhe,{className:"text-white font-semibold",size:17})})})]})]})})})]})]}),(0,L.jsx)(Ks,{open:$,anchor:"right",onClose:()=>{W([]),V(!1)},children:(0,L.jsxs)("div",{className:"p-6 md:max-w-[50vw] w-screen",children:[(0,L.jsxs)("div",{className:"flex justify-between items-center",children:[(0,L.jsx)(Te.A,{variant:"h3",children:"Search Result"}),(0,L.jsx)(Pa.A,{onClick:()=>{W([]),V(!1)},children:(0,L.jsx)(mw,{size:20})})]}),G&&G.map(((e,t)=>{var n,r;return(0,L.jsxs)("a",{target:"_blank",href:null===e||void 0===e?void 0:e.url,className:"p-2 gap-2",children:[(0,L.jsx)("div",{className:"flex gap-5",children:(0,L.jsx)(Te.A,{variant:"h4",children:null===e||void 0===e?void 0:e.title})}),(0,L.jsx)("p",{className:"mb-3 mt-2",dangerouslySetInnerHTML:{__html:null===e||void 0===e?void 0:e.description}}),(0,L.jsxs)("div",{className:"flex gap-3",children:[(null===e||void 0===e||null===(n=e.profile)||void 0===n?void 0:n.img)&&(0,L.jsx)("img",{src:null===e||void 0===e?void 0:e.profile.img,className:"w-5 h-5 rounded-md"}),(r=e.url,r?new URL(r).hostname.replace("www.",""):"")]})]},t)}))]})}),(0,L.jsx)(Ks,{open:_e,anchor:"right",onClose:()=>{Oe(""),Ie(""),ke(!1)},children:(0,L.jsxs)("div",{className:"md:w-[50vw] sm:w-screen p-7",children:[(0,L.jsxs)("div",{className:"flex justify-between items-center",children:[(0,L.jsx)("h2",{className:"font-bold text-xl",children:Ce.split("/").pop()||"Attachment"}),(0,L.jsx)(Pa.A,{onClick:()=>{Oe(""),Ie(""),ke(!1)},children:(0,L.jsx)(Dw,{className:"cursor-pointer"})})]}),(0,L.jsx)("div",{className:"h-[80vh] p-1",children:"image"===Ne?(0,L.jsx)("div",{children:(0,L.jsx)("img",{src:Ce,className:"w-3/4"})}):(0,L.jsx)(Xz,{viewerUrl:"https://docs.google.com/gview?url=%URL%&embedded=true",url:Ce||"",viewer:"url"})})]})}),(0,L.jsxs)(mce,{open:j,sx:{display:"flex",alignItems:"center",justifyContent:"center","& .MuiDialog-paper":{width:{xs:"85vw",sm:"85vw",md:"50vw",lg:"30vw",xl:"30vw"},maxWidth:"80%",maxHeight:{xs:"90vh",sm:"85vh",md:"75vh",lg:"70vh",xl:"70vh"},margin:0}},onClose:()=>{xt({cid:"",index:"",selectedCollectionId:""}),M(!1)},"aria-labelledby":"collection-dialog-title","aria-describedby":"collection-dialog-description",children:[(0,L.jsx)(Ude,{children:(0,L.jsx)(Te.A,{variant:"h3",children:"Select a Collection"})}),(0,L.jsx)(Lde,{sx:{mt:1,overflowY:"auto"},children:0===Re.length?(0,L.jsx)(Te.A,{children:"No collections available. Create a new collection first."}):(0,L.jsx)(fl.A,{sx:{width:"100%",height:"100%"},children:(0,L.jsx)(Zs.A,{labelId:"collection-select-label",id:"collection-select",value:yt.selectedCollectionId,color:"secondary",onChange:e=>{const t=Re.find((t=>t.id===e.target.value));console.log(t),t&&xt({...yt,selectedCollectionId:t.id})},children:Re.map((e=>(0,L.jsx)(XFe,{value:e.id,children:e.name},e.id)))})})}),(0,L.jsxs)(Ide,{children:[(0,L.jsx)(Yx.A,{onClick:()=>{xt({cid:"",index:"",selectedCollectionId:""}),M(!1)},color:"error",disabled:N,children:"Cancel"}),(0,L.jsx)(Yx.A,{onClick:async()=>{const e=localStorage.getItem("uid");console.log(yt);const t=new FormData;t.append("index",yt.index),t.append("chatID",yt.cid),I(!0),await(0,xi.Eo)(yt.selectedCollectionId,e,t),I(!1),M(!1)},color:"secondary",variant:"outlined",disabled:!yt.selectedCollectionId||N,children:N?"Adding...":"Add"})]})]}),(null===B||void 0===B||null===(e=B[be])||void 0===e?void 0:e.usage)&&(0,L.jsx)(Ls.A,{open:J,onClose:()=>ee(!1),children:B[be]&&B[be].usage&&(0,L.jsxs)(ue.A,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:{xs:"95%",
205sm:"60%",md:"25%"},bgcolor:"background.paper",boxShadow:24,p:{xs:1.5,sm:2,md:2.5},borderRadius:2,maxHeight:"80vh",overflow:"auto"},children:[(0,L.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,L.jsx)(Te.A,{variant:"h6",sx:{fontSize:{xs:"1.1rem",sm:"1.25rem"}},children:"Token Usage"}),(0,L.jsx)(Pa.A,{onClick:()=>ee(!1),size:"small",children:(0,L.jsx)(mw,{size:18})})]}),(0,L.jsxs)(uw,{spacing:1.5,children:[(0,L.jsxs)("div",{className:"flex justify-between items-center py-1 border-b border-gray-100",children:[(0,L.jsx)(Te.A,{variant:"body2",sx:{fontWeight:600,fontSize:{xs:"0.875rem",sm:"1rem"}},children:"Prompt Token:"}),(0,L.jsx)(Te.A,{variant:"body2",sx:{fontSize:{xs:"0.875rem",sm:"1rem"}},children:null===(t=B[be].usage["prompt Token"])||void 0===t?void 0:t.toLocaleString()})]}),(0,L.jsxs)("div",{className:"flex justify-between items-center py-1 border-b border-gray-100",children:[(0,L.jsx)(Te.A,{variant:"body2",sx:{fontWeight:600,fontSize:{xs:"0.875rem",sm:"1rem"}},children:"Completion Token:"}),(0,L.jsx)(Te.A,{variant:"body2",sx:{fontSize:{xs:"0.875rem",sm:"1rem"}},children:null===(n=B[be].usage["completion Token"])||void 0===n?void 0:n.toLocaleString()})]}),(0,L.jsxs)("div",{className:"flex justify-between items-center py-1",children:[(0,L.jsx)(Te.A,{variant:"body2",sx:{fontWeight:600,fontSize:{xs:"0.875rem",sm:"1rem"}},children:"Total Token:"}),(0,L.jsx)(Te.A,{variant:"body2",sx:{fontWeight:600,fontSize:{xs:"0.875rem",sm:"1rem"},color:"primary.main"},children:null===(r=B[be].usage["total Token"])||void 0===r?void 0:r.toLocaleString()})]})]})]})}),(0,L.jsx)(Ls.A,{open:q,onClose:()=>Y(!1),children:(0,L.jsxs)(ue.A,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:{xs:"90%",sm:"60%",md:"50%"},bgcolor:"background.paper",boxShadow:24,p:{xs:2,sm:4},borderRadius:2},children:[(0,L.jsxs)(uw,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,L.jsx)(Te.A,{variant:"h2",children:"Feedback"}),(0,L.jsx)(Pa.A,{onClick:()=>Y(!1),children:(0,L.jsx)(Dw,{})})]}),(0,L.jsx)(Te.A,{variant:"body1",children:"Your feedback will help us improve the model"}),(0,L.jsx)(ue.A,{sx:{my:3,display:"grid",gridTemplateColumns:{xs:"1fr 1fr",sm:"1fr 1fr 1fr"},gap:2},children:["Answer Inaccurate","Didnt fully followed the prompt","No Answer came","Being lazy","Others"].map((e=>(0,L.jsx)(so,{label:e,sx:{color:dfe.A[800]},variant:K===e?"filled":"outlined",onClick:()=>X(e)},e)))}),(0,L.jsx)(Xa.A,{fullWidth:!0,color:"secondary",placeholder:"(optional) Enter your Feedback about the answer",onChange:e=>ge(e.target.value),multiline:!0,rows:3}),(0,L.jsx)(Yx.A,{variant:"outlined",color:"secondary",sx:{mt:2},onClick:async()=>{const e=localStorage.getItem("uid");if(!K)return aa.oR.error("Select an feedback",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});if("Others"===K&&""===me)return aa.oR.error("Enter an feedback",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});const t={useruid:e,review:"negative",feedback:K+" "+me,chatid:Z,chatindex:be.toString()};await(0,xi.pd)(t),Y(!1),X(""),ge("")},children:"Submit"})]})}),(0,L.jsxs)(VBe,{open:je,onClose:()=>{E(""),Me(!1)},className:"relative z-50",children:[(0,L.jsx)("div",{className:"fixed inset-0 bg-black/10 backdrop-blur-sm","aria-hidden":"true"}),(0,L.jsx)("div",{className:"fixed inset-0 flex w-screen items-center justify-center p-4",children:(0,L.jsxs)(HBe,{className:"max-w-2xl w-full max-h-[50vh] bg-white rounded-2xl shadow-2xl border border-gray-200 flex flex-col overflow-hidden",children:[(0,L.jsx)("div",{className:"flex items-center border-b border-gray-200 bg-gray-50/50",children:(0,L.jsxs)("div",{className:"flex-1 relative",children:[(0,L.jsx)("input",{className:"w-full h-14 pl-4 pr-12 text-base focus:outline-none bg-transparent placeholder-gray-500",placeholder:"Search conversations...",value:A,onChange:e=>E(e.target.value)}),(0,L.jsx)("button",{className:"absolute right-3 top-1/2 -translate-y-1/2 p-2 rounded-full hover:bg-gray-200 transition-colors",onClick:()=>{E(""),Me(!1)},children:(0,L.jsx)(mw,{size:18,className:"text-gray-600"})})]})}),(0,L.jsxs)("div",{className:"flex-1 overflow-y-auto min-h-0",children:[(0,L.jsxs)("div",{className:"p-4 space-y-3",children:[(0,L.jsxs)("button",{className:"flex items-center w-full p-3 gap-3 rounded-xl hover:bg-gray-50 transition-all duration-200 border border-transparent hover:border-gray-200 group",onClick:()=>{U([]),_([]),Q(""),Me(!1),Se(!1),O(!1),Et("/chatbot")},children:[(0,L.jsx)("div",{className:"rounded-lg",children:(0,L.jsx)(eH.A,{className:"w-4 h-4 text-gray-700"})}),(0,L.jsx)("span",{className:"text-gray-800 font-medium",children:"Start new conversation"})]}),zt&&"object"===typeof zt&&Object.entries(zt).map((e=>{let[t,n]=e;return n.length>0?(0,L.jsxs)("div",{className:"space-y-2",children:[(0,L.jsx)("div",{className:"flex items-center gap-2 mt-6 first:mt-0",children:(0,L.jsxs)("h3",{className:"text-xs font-semibold text-gray-500 uppercase tracking-wide px-2",children:["today"===t&&"Today","yesterday"===t&&"Yesterday","previous7Days"===t&&"Previous 7 Days","previous30Days"===t&&"Previous 30 Days","lastYear"===t&&"Older"]}
205)}),(0,L.jsx)("div",{className:"space-y-1",children:n.map((e=>(0,L.jsx)("button",{onClick:()=>ze!==e.chatID&&Vt(e.chatID),className:"group relative w-full p-3 rounded-xl hover:bg-gray-50 transition-all duration-200 text-left border border-transparent hover:border-gray-200",title:e.chatName,children:(0,L.jsxs)("div",{className:"flex items-center gap-3",children:[(0,L.jsx)(sPe,{className:"w-4 h-4 text-gray-700 transition-colors flex-shrink-0"}),(0,L.jsx)("p",{className:"text-sm text-gray-700 group-hover:text-gray-900 truncate flex-1 leading-relaxed",children:e.chatName})]})},e.chatID)))})]},t):null}))]}),(!zt||Object.values(zt).every((e=>0===e.length)))&&A&&(0,L.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 px-4",children:[(0,L.jsx)("div",{className:"w-16 h-16 rounded-full text-gray-100 flex items-center justify-center mb-4",children:(0,L.jsx)(sPe,{})}),(0,L.jsx)("p",{className:"text-gray-500 text-center",children:"No conversations found"}),(0,L.jsx)("p",{className:"text-gray-400 text-sm text-center mt-1",children:"Try adjusting your search terms"})]})]})]})})]}),(0,L.jsx)(Ks,{open:De,onClose:()=>{Le(!1)},anchor:"right",children:(0,L.jsxs)(uw,{sx:{width:"100%",height:"100%",mb:{xs:2,md:0},border:0,overflow:"hidden"},className:"p-6 lg:max-w-[40vw] md:max-w-[50vw] w-screen",children:[(0,L.jsxs)(uw,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{mb:2},children:[(0,L.jsx)(Te.A,{variant:"h4",sx:{fontSize:18,fontWeight:"600",color:"#1A1A1A",paddingLeft:"4px"},children:"Collections"}),(0,L.jsxs)("div",{className:"flex gap-5",children:[(0,L.jsx)(mi,{title:"Create Collection",placement:"top",children:(0,L.jsx)(Pa.A,{onClick:()=>{at(!0)},children:(0,L.jsx)(bfe,{className:"text-lg font-bold"})})}),(0,L.jsx)(Pa.A,{onClick:()=>Le(!1),children:(0,L.jsx)(mw,{size:20})})]})]}),Re.length>0?(0,L.jsxs)("div",{className:"relative w-full",children:[(0,L.jsx)("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,L.jsx)(js,{className:"h-5 w-5 text-gray-400"})}),(0,L.jsx)(GBe,{value:Ge,onChange:e=>We(e.target.value),placeholder:"Search Collections",className:"w-full bg-white border border-gray-300 rounded-lg py-3 pl-10 pr-10 text-sm leading-5 text-gray-900 focus:border-[#5E35B1] outline-none transition-colors placeholder-gray-400"})]}):(0,L.jsx)(Te.A,{variant:"body1",children:"Create New Collection"}),(0,L.jsx)(ho.A,{sx:{overflow:"auto",flex:1,"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none","-ms-overflow-style":"none"},children:nt.map((e=>(0,L.jsx)(L_e,{item:e,index:Re.findIndex((t=>t.id===e.id)),nav:Et,setCollections:Pe},e.id)))})]})}),(0,L.jsxs)(mce,{open:ot,onClose:ht,fullWidth:!0,maxWidth:"sm",children:[(0,L.jsx)(Ude,{children:"Create New Collection"}),(0,L.jsxs)(Lde,{children:[(0,L.jsx)(Xa.A,{autoFocus:!0,margin:"dense",label:"Name",type:"text",color:"secondary",fullWidth:!0,variant:"outlined",value:st.name,onChange:e=>lt({...st,name:e.target.value})}),(0,L.jsx)(Xa.A,{margin:"dense",label:"Description",type:"text",fullWidth:!0,variant:"outlined",color:"secondary",multiline:!0,rows:3,value:st.description,onChange:e=>lt({...st,description:e.target.value})}),(0,L.jsx)(Xa.A,{margin:"dense",label:"AI Prompt (optional)",type:"text",fullWidth:!0,variant:"outlined",color:"secondary",multiline:!0,rows:3,value:st.aiPrompt,onChange:e=>lt({...st,aiPrompt:e.target.value})})]}),(0,L.jsxs)(Ide,{children:[(0,L.jsx)(Yx.A,{onClick:ht,color:"error",disabled:dt,children:"Cancel"}),(0,L.jsx)(Yx.A,{onClick:async()=>{pt(!0);const e=localStorage.getItem("uid"),t=new FormData;t.append("collection_name",st.name),t.append("collection_description",st.description),t.append("ai_prompt",st.aiPrompt||"null"),t.append("uid",e),await(0,xi.No)(t),await gt(),ht(),pt(!1)},variant:"outlined",color:"secondary",disabled:!st.name||!st.description||dt,children:dt?"Creating...":"Create"})]})]})]})}var qBe={path:"/chatbot",element:(0,L.jsx)(WBe,{})};var YBe={path:"/chat-with-bot",element:(0,L.jsx)(X_e,{})},KBe=(0,Ve.A)((0,L.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Email"),XBe=(0,Ve.A)((0,L.jsx)("path",{d:"M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3m-3 11H8v-5h8zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m-1-9H6v4h12z"}),"Print"),ZBe=(0,Ve.A)((0,L.jsx)("path",{d:"M16.75 13.96c.25.13.41.2.46.3.06.11.04.61-.21 1.18-.2.56-1.24 1.1-1.7 1.12-.46.02-.47.36-2.96-.73-2.49-1.09-3.99-3.75-4.11-3.92-.12-.17-.96-1.38-.92-2.61.05-1.22.69-1.8.95-2.04.24-.26.51-.29.68-.26h.47c.15 0 .36-.06.55.45l.69 1.87c.06.13.1.28.01.44l-.27.41-.39.42c-.12.12-.26.25-.12.5.12.26.62 1.09 1.32 1.78.91.88 1.71 1.17 1.95 1.3.24.14.39.12.54-.04l.81-.94c.19-.25.35-.19.58-.11l1.67.88M12 2a10 10 0 0 1 10 10 10 10 0 0 1-10 10c-1.97 0-3.8-.57-5.35-1.55L2 22l1.55-4.65A9.969 9.969 0 0 1 2 12 10 10 0 0 1 12 2m0 2a8 8 0 0 0-8 8c0 1.72.54 3.31 1.46 4.61L4.5 19.5l2.89-.96A7.95 7.95 0 0 0 12 20a8 8 0 0 0 8-8 8 8 0 0 0-8-8z"}),"WhatsApp"),QBe=(0,Ve.A)((0,L.jsx)("path",{d:"M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.38-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29 0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15 0 1.49.75 2.81 1.91 3.56-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07 4.28 4.28 0 0 0 4 2.98 8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21 16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56.84-.6 1.56-1.36 2.14-2.23z"}),"Twitter"),JBe=(0,Ve.A)((0,L.jsx)("path",{d:"M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8 1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z"}),"Instagram"),eUe=__webpack_require__.p+"static/media/chatnotfound1.cdc1a461ae938d379511.png",tUe=__webpack_require__(6939);var nUe=function(){const e=(0,re.A)(),[t,n]=(0,i.ok)(),[r,o]=(0,c.useState)(""),a=(0,c.useRef)(null),[s,l]=(0,c.useState)(!1),[u,d]=(0,c.useState)([]),[p,h]=(0,c.useState)("Select a Bot"),[f,m]=(0,c.useState)([]),[g,b]=(0,c.useState)("");return(0,c.useEffect)((()=>{const e=t.get("id");d([]),o(e),e&&(l(!0),d([]),(0,xi.qX)(e).then((e=>{var t;l(!1),e&&e.chatMessages?(h(e.kbname),null===(t=e.chatMessages)||void 0===t||t.forEach((e=>{var t,n;const r=null===e||void 0===e||null===(t=e.answer)||void 0===t?void 0:t.match(/references\s*([\s\S]+)$/i),i=[];if(r&&r[1]){const e=r[1].trim();i.push(...e.split(",").map((e=>e.trim())))}const o=null===e||void 0===e||null===(n=e.answer)||void 0===n?void 0:n.replace(/\\n
205/gi,"\n").replace(/\n/gi,"<br/>");d((t=>{var n,r;return[...t,{...e,answer:i?null===o||void 0===o?void 0:o.split("references")[0]:o,reference:null!==e&&void 0!==e&&null!==(n=e.answer)&&void 0!==n&&n.split("references")[1]?null===e||void 0===e||null===(r=e.answer)||void 0===r?void 0:r.split("references")[1].split(";"):[],isLoading:!1}]})),e.link?m(e.link):m([])})),b((null===e||void 0===e?void 0:e.bot_name)||"")):d([])})).catch((()=>{l(!1),d([])})))}),[t]),(0,L.jsxs)(ue.A,{sx:{height:"90vh",backgroundColor:"#fff"},children:[(0,L.jsx)(we,{enableColorOnDark:!0,position:"fixed",color:"inherit",elevation:0,sx:{bgcolor:e.palette.background.default},children:(0,L.jsx)(ke,{children:(0,L.jsxs)(ue.A,{sx:{width:"100vw",display:"flex",justifyContent:"space-between"},children:[(0,L.jsx)(ue.A,{component:"span",sx:{display:{xs:"none",md:"block"}},children:(0,L.jsx)(wi,{})}),(0,L.jsxs)(ue.A,{sx:{display:"flex",alignItems:"center",ml:2},children:[(0,L.jsx)(mi,{title:"Share via Email",arrow:!0,children:(0,L.jsx)(Pa.A,{onClick:()=>window.open(`mailto:?subject=Check out this chat&body=${encodeURIComponent(u.map((e=>`${e.question}: ${e.answer}`)).join("\n"))}`),"aria-label":"Email",children:(0,L.jsx)(KBe,{})})}),(0,L.jsx)(mi,{title:"Print this chat",arrow:!0,children:(0,L.jsx)(Pa.A,{onClick:()=>window.print(),"aria-label":"Print",children:(0,L.jsx)(XBe,{})})}),(0,L.jsx)(mi,{title:"Share on WhatsApp",arrow:!0,children:(0,L.jsx)(Pa.A,{onClick:()=>window.open(`whatsapp://send?text=${encodeURIComponent(u.map((e=>`${e.question}: ${e.answer}`)).join("\n"))}`),"aria-label":"WhatsApp",children:(0,L.jsx)(ZBe,{})})}),(0,L.jsx)(mi,{title:"Share on Twitter",arrow:!0,children:(0,L.jsx)(Pa.A,{onClick:()=>window.open(`https://twitter.com/intent/tweet?text=${encodeURIComponent(u.map((e=>`${e.question}: ${e.answer}`)).join("\n"))}`),"aria-label":"X",children:(0,L.jsx)(QBe,{})})}),(0,L.jsx)(mi,{title:"Share on Instagram",arrow:!0,children:(0,L.jsx)(Pa.A,{onClick:()=>alert("Instagram sharing is not supported directly. Please copy the text to share."),"aria-label":"Instagram",children:(0,L.jsx)(JBe,{})})})]})]})})}),s?(0,L.jsxs)(uw,{sx:{height:"110vh",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"},children:[(0,L.jsx)(dA,{}),(0,L.jsx)("h1",{children:"Loading ..."})]}):(0,L.jsx)(uw,{direction:"row",sx:{mt:9},children:u.length>0?(0,L.jsxs)(Co.A,{sx:{width:"100%",minHeight:"80vh",px:2},children:[(0,L.jsx)(uw,{direction:"row",justifyContent:"space-between",alignItems:"center",children:(0,L.jsx)(uw,{direction:"row",alignItems:"center",children:p?(0,L.jsxs)(Te.A,{variant:"h4",children:["Knowledge Hub: ",p]}):(0,L.jsxs)(Te.A,{variant:"h4",children:["Api: ",g]})})}),(0,L.jsx)(ho.A,{children:null===u||void 0===u?void 0:u.map(((e,t)=>(0,L.jsxs)(ue.A,{sx:{borderBottom:1,borderColor:"#c1c1c1"},children:[(0,L.jsx)(uw,{direction:"row",sx:{height:"fit-content",p:{sm:1,md:2}},alignItems:"center",children:(0,L.jsx)(uw,{direction:"column",sx:{width:"100%"},children:(0,L.jsx)(uw,{direction:"column",children:(0,L.jsx)(Te.A,{sx:{fontWeight:"500"},variant:"h2",children:e.question})})})}),(0,L.jsxs)(uw,{direction:"row",sx:{height:"fit-content",p:{sm:1,md:2}},alignItems:"flex-start",children:[(0,L.jsx)(ue.A,{sx:{display:{sm:"none",md:"block"}},children:(0,L.jsx)(tUe.A,{})}),(0,L.jsxs)(uw,{direction:"column",children:[(0,L.jsx)(Te.A,{variant:"h3",sx:{fontWeight:"700",ml:2,mb:2},children:"Answer"}),(0,L.jsx)(BSe,{i:e,setStatusText:null,statusText:!1})]})]}),!1===e.isLoading&&(0,L.jsx)(uw,{sx:{ml:{sm:1,md:5}},justifyContent:"space-between",direction:"row",alignItems:"center",children:(0,L.jsx)(uw,{direction:"row",alignItems:"center",children:(0,L.jsx)(mi,{title:"copy",placement:"bottom",children:(0,L.jsx)(Pa.A,{onClick:()=>(e=>{const t=u[e].answer.replace(/<br\/?>/g,"");Mx()(t),aa.oR.success("Copied text",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})})(t),children:(0,L.jsx)(yw,{size:18})})})})}),(0,L.jsx)("div",{ref:a})]},t)))}),(0,L.jsx)(Te.A,{sx:{mt:2,color:"#b1b1b1"},style:{justifyContent:"center",alignItems:"center"},children:"asklly.ai can make mistakes. Consider checking important information."})]}):(0,L.jsxs)(uw,{direction:"column",height:"75vh",width:"100%",justifyContent:"center",alignItems:"center",children:[(0,L.jsx)("img",{alt:"no chat",src:eUe,className:"w-72"}),(0,L.jsxs)(Te.A,{variant:"h3",sx:{textAlign:"center"},children:["You came wrong way!",(0,L.jsx)("br",{}),"Chat Not Found",(0,L.jsx)("br",{}),"Check the url and try again"]})]})})]})};var rUe={path:"/share",element:(0,L.jsx)(nUe,{})};function iUe(){const e=(0,te.Zp)();return(0,L.jsxs)("div",{className:"h-screen",children:[(0,L.jsx)(ZRe,{}),(0,L.jsxs)("div",{className:"h-full flex flex-col justify-center items-center bg-white",children:[(0,L.jsx)("img",{src:"404(1).png",className:"w-80"}),(0,L.jsx)(Yx.A,{variant:"outlined",color:"secondary",onClick:()=>e("/"),children:"Nav Back To Home"})]})]})}var oUe={path:"/404",element:(0,L.jsx)(iUe,{})};const aUe=(0,Ns.A)("CirclePlus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]),sUe={PaperProps:{style:{maxHeight:224,width:250}}};var lUe=e=>{let{fetchTenants:t}=e;const{getCachedUserInfo:n}=ma(),[r,i]=(0,c.useState)(""),[o,a]=(0,c.useState)(""),[s,l]=(0,c.useState)(""),[u,d]=(0,c.useState)(""),[p,h]=(0,c.useState)(""),[f,m]=(0,c.useState)([{email:"",role:[]}]),[g,b]=(0,c.useState)(!1),[v,y]=(0,c.useState)([]),[x,w]=(0,c.useState)(!0),[A,E]=(0,c.useState)(null),S=(0,c.useRef)(null),_=(0,te.Zp)();(0,c.useEffect)((()=>{const e=localStorage.getItem("uid");n(e).then((e=>{const t={email:e.email,organization:localStorage.getItem("organization")};(0,xi.qf)(t).then((e=>{w(!1),e||_("/404")}))})),(0,xi.O0)().then((e=>y(null===e||void 0===e?void 0:e.roles)))}),[]);const k=(e,t,n)=>{const r=[...f];r[e][t]=n,m(r)},T=()=>{i(""),a(""),l(""),d(""),h(""),m([{email:"",role:[]}]),_("/tenants/view")};return(0,L.jsx)("div",{className:"px-7 w-screen md:w-[50vw]",children:x?(0,L.jsx)("div",{className:"flex justify-center items-center h-[40vh]",children:(0,L.jsx)(dA,{color:"primary"})}):(0,L.jsxs)("div",{children:[(0,L.jsx)("h2",{className:"text-xl font-medium mt
205-4 mb-2 text-gray-700",children:"Organization"}),(0,L.jsxs)("div",{className:"justify-between items-center",children:[(0,L.jsx)(Xa.A,{id:"name-input",name:"organization_name",label:"Organization Name",type:"text",variant:"outlined",margin:"normal",onChange:e=>i(e.target.value),fullWidth:!0,color:"secondary",value:r}),(0,L.jsx)("input",{type:"file",accept:"image/*",className:"hidden",ref:S,onChange:e=>{a(e.target.files[0]);const t=new FileReader;t.onloadend=()=>{E(t.result)},t.readAsDataURL(e.target.files[0])},required:!0}),(0,L.jsxs)("div",{className:"flex justify-start items-center",children:[(0,L.jsx)(Yx.A,{color:"secondary",variant:"outlined",onClick:()=>{S.current.click()},children:"Upload Logo"}),A&&(0,L.jsx)("div",{style:{marginLeft:"20px"},children:(0,L.jsx)("img",{src:A,alt:"Preview",style:{width:"100px",height:"100px",objectFit:"cover",border:"1px solid #ddd"}})})]})]}),(0,L.jsx)("h2",{className:"text-xl font-medium mt-4 mb-2 text-gray-700",children:"Team Details"}),(0,L.jsxs)("div",{className:"space-y-4",children:[(0,L.jsx)(Xa.A,{id:"team-name-input",name:"Team_Name",label:"Team Name",type:"text",variant:"outlined",margin:"normal",onChange:e=>l(e.target.value),fullWidth:!0,color:"secondary",value:s}),(0,L.jsx)(Xa.A,{id:"admin-name-input",name:"Enterprise_Admin_Name",label:"Enterprise Admin Name",type:"text",variant:"outlined",margin:"normal",onChange:e=>d(e.target.value),fullWidth:!0,color:"secondary",value:u}),(0,L.jsx)(Xa.A,{id:"admin-email-input",name:"Enterprise_Admin_Email",label:"Enterprise Admin Email",type:"text",variant:"outlined",margin:"normal",onChange:e=>h(e.target.value),fullWidth:!0,color:"secondary",value:p})]}),(0,L.jsx)("h2",{className:"text-xl font-medium mt-4 mb-2 text-gray-700",children:"Members"}),f.map(((e,t)=>(0,L.jsxs)("div",{className:"flex items-center space-x-2 mb-2",children:[(0,L.jsx)(Xa.A,{id:"member-email-input",name:"Member_Email",label:"Member e-mail",type:"text",variant:"outlined",margin:"normal",onChange:e=>k(t,"email",e.target.value),color:"secondary",value:e.email,fullWidth:!0}),(0,L.jsx)(fl.A,{className:"w-[40%]",size:"medium",children:(0,L.jsx)(Zs.A,{labelId:"role-label",id:"role",multiple:!0,color:"secondary",value:e.role,onChange:e=>{const{target:{value:n}}=e,r="string"===typeof n?n.split(","):n;k(t,"role",r)},MenuProps:sUe,children:v.map((e=>(0,L.jsx)(Qs.A,{value:e.roles,children:e.roles},e.roles)))})}),(0,L.jsx)("button",{onClick:()=>(e=>{const t=f.filter(((t,n)=>n!==e));m(t)})(t),className:"p-2 text-red-600 hover:text-red-800",children:(0,L.jsx)(hw,{size:20})})]},t))),(0,L.jsxs)("button",{onClick:()=>{m([...f,{email:"",role:[]}])},className:"flex items-center text-blue-600 hover:text-blue-800 mt-2",children:[(0,L.jsx)(aUe,{size:20,className:"mr-2"}),"Add Member"]}),(0,L.jsx)(Yx.A,{color:"secondary",variant:"outlined",disabled:g,onClick:async()=>{if(!r||!o)return void aa.oR.error("All Field required",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});const e=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);if(!e(p))return void aa.oR.error("Invalid admin email address",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});for(const t of f){if(!t.email||!t.role.length)return void aa.oR.error("Member email and role are required",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});if(!e(t.email))return void aa.oR.error(`Invalid email address for member: ${t.email}`,{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}const n=new FormData;n.append("tenant_name",r),n.append("tenant_logo",o),n.append("team_name",s),n.append("team_email",p),n.append("admin_name",u),n.append("members",JSON.stringify(f.map((e=>({email:e.email,role:e.role.join(",")})))));try{b(!0);await(0,xi.uS)(n,T);await t()}catch(qUe){console.error("Error:",qUe)}finally{b(!1)}},className:"mt-8",children:g?(0,L.jsx)(dA,{color:"primary"}):"Create new tenant"})]})})};function cUe(e){return(0,ge.Ay)("MuiDialogContentText",e)}(0,me.A)("MuiDialogContentText",["root"]);const uUe=["children","className"],dUe=(0,ne.Ay)(Te.A,{shouldForwardProp:e=>(0,fo.A)(e)||"classes"===e,name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({});var pUe=c.forwardRef((function(e,t){const n=(0,X.b)({props:e,name:"MuiDialogContentText"}),{className:r}=n,i=(0,P.A)(n,uUe),o=(e=>{const{classes:t}=e,n=(0,pe.A)({root:["root"]},cUe,t);return(0,R.A)({},t,n)})(i);return(0,L.jsx)(dUe,(0,R.A)({component:"p",variant:"body1",color:"text.secondary",ref:t,ownerState:i,className:(0,de.A)(o.root,r)},n,{classes:o}))})),hUe=(0,Ve.A)((0,L.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),fUe=(0,Ve.A)((0,L.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"HomeSharp");var mUe=()=>{const e=(0,te.Zp)(),{activeTeam:t,getCachedUserInfo:n,getCachedOrgName:r,fetchMetricsChart:o,fetchtrainedApi:a}=ma(),[s,l]=(0,c.useState)([]),[u,d]=(0,c.useState)(!0),[p,h]=(0,c.useState)(!1),[f,m]=(0,c.useState)(null),[g,b]=(0,c.useState)(!1),[v,y]=(0,c.useState)(!1),[x,w]=(0,c.useState)(null),[A,E]=(0,c.useState)(!1),[S,_]=(0,c.useState)(null),[k,T]=(0,c.useState)(""),[C,O]=(0,c.useState)(""),[N,I]=(0,c.useState)(""),[R,P]=(0,c.useState)(null),[j,M]=(0,c.useState)(!1),[D,F]=(0,c.useState)(null),[B,U]=(0,c.useState)(!1),[z,H]=(0,c.useState)(),[$,V]=(0,c.useState)([]);(0,c.useEffect)((()=>{const i=localStorage.getItem("uid");n(i).then((async n=>{const i={email:n.email,organization:await r(),team_id:t};(0,xi.qf)(i).then((t=>{t||e("/404")}))})),G()}),[]);const G=async()=>{d(!0);try{const e=(await(0,xi.Mn)()).sort(((e,t)=>new Date(t.created_at)-new Date(e.created_at)));l(e)}catch(qUe){console.error("Error fetching tenants:",qUe)}finally{d(!1)}},[W,q]=(0,c.useState)(!1),[Y,K]=(0,c.useState)([]);(0,c.useEffect)((()=>{(async()=>{try{H(),q(!0);const e=localStorage.getItem("uid"),t=await o({organization:x.org_id}),n=await(0,xi.Mn)(x.name),r=await a(e,x.org_id);V(r.data),K(t),H({...n}),q(!1)}catch(qUe){console.error(qUe)}})()}),[x]);const X=(0,c.useMemo)((()=>[{accessorKey:"name",header:"Tenant Name"},{accessorKey:"admin_name",header:"Enterprise Admin Name"},{accessorKey:"admin_email",header:"Enterprise Admin Email"},{accessorKey:"created_at",header:"Created At",Cell:e=>{let{cell:t}=e;
205return new Date(t.getValue()).toLocaleString()},sortingFn:"datetime",sortDescFirst:!0},{id:"actions",header:"Actions",Cell:e=>{let{row:t}=e;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(mi,{title:"View Tenant",arrow:!0,children:(0,L.jsx)(Pa.A,{variant:"contained",color:"secondary",onClick:()=>{w(t.original),y(!0)},children:(0,L.jsx)(hUe,{})})}),(0,L.jsx)(mi,{title:"Edit Tenant",arrow:!0,children:(0,L.jsx)(Pa.A,{variant:"contained",color:"secondary",onClick:()=>{_(t.original),T(t.original.name),O(t.original.admin_name),I(t.original.admin_email),E(!0)},children:(0,L.jsx)(Ot,{})})}),(0,L.jsx)(mi,{title:"Delete Tenant",arrow:!0,children:(0,L.jsx)(Pa.A,{variant:"contained",color:"secondary",onClick:()=>{m(t.original.name),h(!0)},children:(0,L.jsx)(hw,{color:"red"})})})]})}}]),[]),Z=e=>t=>{("keydown"!==t.type||"Tab"!==t.key&&"Shift"!==t.key)&&U(e)};return(0,L.jsxs)(po.A,{children:[(0,L.jsxs)(Co.A,{children:[(0,L.jsxs)(po.A,{justifyContent:"space-between",direction:"row",alignItems:"center",children:[(0,L.jsxs)("div",{className:"flex justify-center items-center",children:[(0,L.jsx)(i.N_,{to:"/marketplace",children:(0,L.jsx)(fUe,{color:"secondary"})}),(0,L.jsx)(jhe.A,{}),(0,L.jsx)(Te.A,{sx:{fontWeight:"bold"},children:"Tenants"})]}),(0,L.jsxs)("button",{onClick:Z(!0),className:"flex items-center gap-2 px-4 py-2 text-sm text-purple-700 bg-opacity-80 bg-purple-100 hover:bg-opacity-100 hover:text-purple-700 rounded-full transition-colors duration-200",children:[(0,L.jsx)(F_e.A,{className:"text-base"}),"Tenant"]})]}),(0,L.jsx)(po.A,{sx:{mt:1},children:(0,L.jsx)(Te.A,{children:"Manage all onboarded tenants seamlessly on the platform for streamlined administration and oversight."})})]}),(0,L.jsxs)(po.A,{sx:{mt:2,borderRadius:"8px",overflow:"hidden"},children:[(0,L.jsx)(Rhe,{state:{showSkeletons:u},columns:X,data:s,enableColumnActions:!1,enableColumnFilters:!1,enablePagination:!0,enableSorting:!0,enableBottomToolbar:!0,enableTopToolbar:!0,muiTableBodyRowProps:{hover:!0},enableGlobalFilter:!0,muiSearchTextFieldProps:{placeholder:"Search Tenants",variant:"outlined",label:"Search",InputLabelProps:{shrink:!0}},sx:{borderRadius:"8px",overflow:"hidden"},muiTablePaginationProps:{labelRowsPerPage:""},initialState:{sorting:[{id:"created_at",desc:!0}]}}),(0,L.jsxs)(mce,{open:p,onClose:()=>{g||h(!1)},children:[(0,L.jsx)(Ude,{children:"Confirm Deletion"}),(0,L.jsx)(Lde,{children:(0,L.jsx)(pUe,{children:"Are you sure you want to delete this tenant?"})}),(0,L.jsxs)(Ide,{children:[(0,L.jsx)(Yx.A,{disabled:g,onClick:()=>h(!1),color:"primary",children:"Cancel"}),(0,L.jsx)(Yx.A,{disabled:g,onClick:async()=>{b(!0),f&&(await(0,xi.QA)(f),G(),h(!1),m(null)),b(!1)},color:"secondary",children:"Delete"})]})]}),(0,L.jsxs)(Ks,{anchor:"right",open:v,onClose:()=>y(!1),children:[(0,L.jsxs)("div",{className:"flex justify-between mb-2 items-center px-7 py-3",children:[(0,L.jsx)(Te.A,{variant:"h3",className:"font-bold",children:"Tenant Details"}),(0,L.jsx)(Pa.A,{onClick:()=>y(!1),children:(0,L.jsx)(mw,{})})]}),(0,L.jsx)(ze.A,{}),(0,L.jsx)("div",{className:"w-screen md:w-[50vw] p-8",children:z?(0,L.jsxs)("div",{className:"space-y-6",children:[(0,L.jsxs)("div",{className:"bg-gray-50 p-6 rounded-lg",children:[(0,L.jsxs)("div",{className:"flex h-24 items-center gap-4",children:[z.tenant.logo_url&&(0,L.jsx)("div",{className:"flex justify-center",children:(0,L.jsx)("img",{src:z.tenant.logo_url,className:"w-24 p-1 object-contain rounded-lg shadow-md",alt:"Tenant Logo"})}),(0,L.jsxs)("div",{children:[(0,L.jsx)(Te.A,{variant:"h4",children:z.tenant.name}),(0,L.jsx)(Te.A,{variant:"h6",children:z.tenant.admin_name})]})]}),(0,L.jsxs)("div",{className:"space-y-4",children:[(0,L.jsxs)("div",{children:[(0,L.jsx)(Te.A,{variant:"subtitle2",color:"textSecondary",children:"Enterprise Admin Email"}),(0,L.jsx)(Te.A,{variant:"h6",children:z.tenant.admin_email})]}),(0,L.jsxs)("div",{children:[(0,L.jsx)(Te.A,{variant:"subtitle2",color:"textSecondary",children:"Created At"}),(0,L.jsx)(Te.A,{variant:"h6",children:new Date(z.tenant.created_at).toLocaleDateString()})]})]}),(0,L.jsxs)("div",{className:"flex gap-4 mb-2",children:[(0,L.jsx)(Ce.A,{className:"w-full",children:(0,L.jsx)(ea.A,{className:"p-6",children:(0,L.jsxs)("div",{className:"space-y-4",children:[(0,L.jsx)("p",{className:"text-gray-600",children:"No. of Knowledge Hub created"}),(0,L.jsx)("p",{className:"text-xl font-semibold",children:z.metrics.total_kb})]})})}),(0,L.jsx)(Ce.A,{className:"w-full",children:(0,L.jsx)(ea.A,{className:"p-6",children:(0,L.jsxs)("div",{className:"space-y-4",children:[(0,L.jsx)("p",{className:"text-gray-600",children:"No. of Assistants created"}),(0,L.jsx)("p",{className:"text-xl font-semibold",children:z.metrics.total_bots})]})})})]}),(0,L.jsxs)("div",{className:"flex gap-4 mb-2",children:[(0,L.jsx)(Ce.A,{className:"w-full mb-2",children:(0,L.jsx)(ea.A,{className:"p-6",children:(0,L.jsxs)("div",{className:"space-y-4",children:[(0,L.jsx)("p",{className:"text-gray-600",children:"Total no. of files uploaded"}),(0,L.jsx)("p",{className:"text-xl font-semibold",children:z.metrics.total_files})]})})}),(0,L.jsx)(Ce.A,{className:"w-full mb-2",children:(0,L.jsx)(ea.A,{className:"p-6",children:(0,L.jsxs)("div",{className:"space-y-4",children:[(0,L.jsx)("p",{className:"text-gray-600",children:"Total file size"}),(0,L.jsxs)("p",{className:"text-xl font-semibold",children:[z.metrics.total_file_size," Mb"]})]})})})]}),(0,L.jsxs)("div",{className:"flex gap-4 mb-2",children:[(0,L.jsx)(Ce.A,{className:"w-full mb-2",children:(0,L.jsx)(ea.A,{className:"p-6",children:(0,L.jsxs)("div",{className:"space-y-4",children:[(0,L.jsx)("p",{className:"text-gray-600",children:"TotalTeams"}),(0,L.jsx)("p",{className:"text-xl font-semibold",children:z.metrics.teams})]})})}),(0,L.jsx)(Ce.A,{className:"w-full mb-2",children:(0,L.jsx)(ea.A,{className:"p-6",children:(0,L.jsxs)("div",{className:"space-y-4",children:[(0,L.jsx)("p",{className:"text-gray-600",children:"Total Users"}),(0,L.jsx)("p",{className:"text-xl font-semibold",children:z.metrics.users})]})})})]}),(0,L.jsx)(Ce.A,{className:"mb-2",children:(0,L.jsx)(ea.A,{className:"p-6",children:(0,L.jsxs)("div",{className:"space-y-4",children:[(0,L.jsx)("p",{className:"text-gray-600",children:"Total Chats"}),(0,L.jsx)("p",{className:"text-xl font-semibold",children:z.metrics.chats})]})})}),(0,L.jsx)(Ce.A,{className:"mb-2",children:(0,L.jsx)(ea.A,{className:"p-6",children:(0,L.jsxs)("div",{className:"space-y-4",children:[(0,L.jsx)("p",{className:"text-gray-600",children:"Total No Of Chat Tokens Used"}),(0,L.jsx)("p",{className:"text-xl font-semibold",children:Number(z.metrics.token).toLocaleStr
205ing()})]})})})]}),(0,L.jsx)(wse,{api_bots:$,loadindChart:W,apiData:Y,selectedTenant:z.tenant,fetchMetricsChart:async e=>{try{q(!0);const t=await o(e);return K(t),q(!1),t}catch(qUe){console.error(qUe)}}})]}):(0,L.jsx)("div",{className:"flex h-full justify-center items-center",children:(0,L.jsx)(dA,{})})})]}),(0,L.jsxs)(Ks,{anchor:"right",open:A,onClose:()=>E(!1),children:[(0,L.jsxs)("div",{className:"flex justify-between mb-2 items-center px-7 py-3",children:[(0,L.jsx)(Te.A,{variant:"h3",className:"font-bold",children:"Edit Tenant"}),(0,L.jsx)(Pa.A,{onClick:()=>E(!1),children:(0,L.jsx)(mw,{})})]}),(0,L.jsx)(ze.A,{}),(0,L.jsxs)("div",{style:{width:{xs:"100vw",md:"50vw"},padding:"20px"},children:[(0,L.jsx)(Xa.A,{autoFocus:!0,margin:"dense",label:"Tenant Name",type:"text",fullWidth:!0,color:"secondary",value:k,onChange:e=>T(e.target.value),disabled:j}),(0,L.jsx)(Xa.A,{margin:"dense",label:"Admin Name",type:"text",color:"secondary",fullWidth:!0,value:C,onChange:e=>O(e.target.value),disabled:j}),(0,L.jsx)(Xa.A,{margin:"dense",label:"Admin Email",type:"email",fullWidth:!0,color:"secondary",value:N,onChange:e=>I(e.target.value),disabled:j}),(0,L.jsx)("input",{accept:"image/*",style:{display:"none"},id:"raised-button-file-drawer",type:"file",onChange:e=>{const t=e.target.files[0];if(P(t),t){const e=new FileReader;e.onloadend=()=>{F(e.result)},e.readAsDataURL(t)}else F(null)},disabled:j}),(0,L.jsx)("label",{htmlFor:"raised-button-file-drawer",children:(0,L.jsx)(Yx.A,{variant:"contained",component:"span",color:"secondary",disabled:j,style:{marginTop:"10px"},children:"Upload New Logo"})}),R&&(0,L.jsx)(Te.A,{children:R.name}),D&&(0,L.jsxs)("div",{style:{marginTop:"10px"},children:[(0,L.jsx)(Te.A,{children:"Preview:"}),(0,L.jsx)("img",{src:D,alt:"Logo Preview",style:{maxWidth:"100%",maxHeight:"200px"}})]}),(0,L.jsxs)("div",{style:{display:"flex",justifyContent:"flex-end",marginTop:"20px"},children:[(0,L.jsx)(Yx.A,{onClick:()=>E(!1),color:"error",disabled:j,style:{marginRight:"10px"},children:"Cancel"}),(0,L.jsx)(Yx.A,{onClick:async()=>{if(S){M(!0);const e=new FormData;e.append("tenant_id",S.id),k&&e.append("new_tenant_name",k),C&&e.append("new_admin_name",C),N&&e.append("new_admin_email",N),R&&e.append("new_logo",R);try{await(0,xi.bN)(S.id,e),G(),E(!1),_(null),T(""),O(""),I(""),P(null),F(null)}catch(qUe){console.error("Error editing tenant:",qUe)}finally{M(!1)}}},color:"secondary",disabled:j,children:j?(0,L.jsx)(dA,{size:24}):"Save Changes"})]})]})]}),(0,L.jsxs)(Ks,{anchor:"right",open:B,onClose:Z(!1),className:"flex justify-center items-center h-full",children:[(0,L.jsxs)("div",{className:"flex justify-between mb-2 items-center px-7 py-3",children:[(0,L.jsx)(Te.A,{variant:"h3",className:"font-bold",children:"New Tenant"}),(0,L.jsx)(Pa.A,{onClick:()=>U(!1),children:(0,L.jsx)(mw,{})})]}),(0,L.jsx)(ze.A,{}),(0,L.jsx)(lUe,{fetchTenants:G})]})]})]})};var gUe={path:"/tenants",element:(0,L.jsx)(Ab,{}),children:[{path:"view",element:(0,L.jsx)(mUe,{})}]},bUe=__webpack_require__(7148);const vUe=(0,Ns.A)("ListTree",[["path",{d:"M21 12h-8",key:"1bmf0i"}],["path",{d:"M21 6H8",key:"1pqkrb"}],["path",{d:"M21 18h-8",key:"1tm79t"}],["path",{d:"M3 6v4c0 1.1.9 2 2 2h3",key:"1ywdgy"}],["path",{d:"M3 10v6c0 1.1.9 2 2 2h3",key:"2wc746"}]]);var yUe=function(){const e=(0,bUe.A)(),t=(0,te.Zp)(),[n,r]=(0,c.useState)(!0),[o,a]=(0,c.useState)(""),[s,l]=(0,i.ok)(),[u,d]=(0,c.useState)([]),[p,h]=(0,c.useState)(!1),[f,m]=(0,c.useState)({name:"",description:"",aiPrompt:""}),[g,b]=(0,c.useState)([]),[v,y]=(0,c.useState)(!1),[x,w]=(0,c.useState)(0),[A,E]=(0,c.useState)([]),[S,_]=(0,c.useState)(!1),[k,T]=(0,c.useState)(!1),[C,O]=(0,c.useState)(""),[N,I]=(0,c.useState)(""),[R,P]=(0,c.useState)([]),[j,M]=(0,c.useState)(""),[D,F]=(0,c.useState)({cid:"",index:"",selectedCollectionId:""}),[B,U]=(0,c.useState)({today:[],yesterday:[],previous7Days:[],previous30Days:[],lastYear:[]}),[z,H]=(0,c.useState)(!1),[$,V]=(0,c.useState)(!1),[G,W]=(0,c.useState)(""),[q,Y]=(0,c.useState)([]),K=s.get("id"),X=localStorage.getItem("uid"),Z=(0,c.useRef)(),[Q,J]=(0,c.useState)(!1),[ee,ne]=(0,c.useState)(""),[re,ie]=(0,c.useState)(""),{handleDeleteChat:oe,chatHistory:ae,nloading:se}=ma(),le=new Date;le.setHours(0,0,0,0);const{todayChats:ce,yesterdayChats:de,previous7DaysChats:pe,previous30DaysChats:he,lastYearChats:fe}=(()=>{const e=[],t=[],n=[],r=[],i=[];return ae.forEach((o=>{const a=new Date(1e3*o.timestamp),s=le-a,l=Math.ceil(s/864e5);
2050===l?e.push(o):1===l?t.push(o):l<=7?n.push(o):l<=30?r.push(o):i.push(o)})),{todayChats:e,yesterdayChats:t,previous7DaysChats:n,previous30DaysChats:r,lastYearChats:i}})(),me=[...ce],ge=[...de],be=[...pe],ve=[...he],ye=[...fe];(0,c.useEffect)((()=>{const e=e=>(e=>e.sort(((e,t)=>t.timestamp-e.timestamp)))(e.filter((e=>e.chatName.toLowerCase().includes(o.toLowerCase())))),t={today:e(me),yesterday:e(ge),previous7Days:e(be),previous30Days:e(ve),lastYear:e(ye)};JSON.stringify(t)!==JSON.stringify(B)&&U(t)}),[o,me,ge,be,ve,ye,B]);const xe=(e,t)=>0===t.length?null:(0,L.jsxs)(uw,{children:[(0,L.jsx)(Te.A,{sx:{fontWeight:400},children:e}),t.map((e=>(0,L.jsx)(wfe,{i:e,handleDelete:Ce,shareChat:()=>Oe(e.chatID)})))]}),Ae=async()=>{try{const e=await(0,xi.qw)(X,t);0===e.collections.length?t("/404"):d(e.collections)}catch(qUe){console.error(qUe),t("/404")}};(0,c.useEffect)((()=>{b([]),Ae(),(0,xi.yM)(K,X).then((e=>{var t;I(e.collection.name),M(e.collection.id),null===(t=e.collection.messages)||void 0===t||t.map((e=>{var t,n,r,i;const o=null===e||void 0===e||null===(t=e.answer)||void 0===t?void 0:t.match(/references\s*([\s\S]+)$/i),a=[];if(o&&o[1]){const e=o[1].trim();a.push(...e.split(",").map((e=>e.trim())))}const s=((null===e||void 0===e||null===(n=e.answer)||void 0===n?void 0:n.replace(/\\n
205/gi,"\n"))||"").split("references;;"),l=(s[1],s[0]),c=null!==e&&void 0!==e&&null!==(r=e.answer)&&void 0!==r&&r.split("references;;")[1]?null===e||void 0===e||null===(i=e.answer)||void 0===i?void 0:i.split("references;;")[1].split(";;;"):[];b((t=>[...t,{...e,answer:l,reference:c.length>0?c.map((e=>e.replace(/<br\/>/gi," "))):[],isLoading:!1,links:e.link?e.link:[]}])),E(e.link||[])}))}))}),[s]);const Ee=()=>{h(!1),m({name:"",description:"",aiPrompt:""})},[Se,_e]=(0,c.useState)([]),Ce=async e=>{await oe(e);new URLSearchParams(window.location.search).get("id")===e&&t("/chat-with-bot")},Oe=e=>{const{origin:t}=window.location,n=`${t}/share?id=${e}`;Mx()(n),aa.oR.success("Coppied Url",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})},Ne=(0,c.useMemo)((()=>{const e=u.filter((e=>e.name.toLowerCase().includes(G.toLowerCase().trim())));return e.length>0?e:[]}),[G,u]);return(0,L.jsxs)(ue.A,{sx:{backgroundColor:"#fff",height:"100vh",display:"flex",flexDirection:"column"},children:[(0,L.jsx)(we,{enableColorOnDark:!0,position:"fixed",color:"inherit",elevation:0,sx:{bgcolor:e.palette.background.default},children:(0,L.jsx)(ke,{children:(0,L.jsx)(k_e,{handleLeftDrawerToggle:null,showHome:!0,bot:null,show:!1,handleSelectChange:null,kbs:null,navi:()=>t("/chat-with-bot"),toogleData:()=>r(!n),chatId:null,shareChat:null})})}),(0,L.jsxs)(uw,{direction:{xs:"column",md:"row"},sx:{flex:1,marginTop:{xs:10,md:9},overflow:"hidden"},children:[n&&(0,L.jsxs)(uw,{sx:{width:{xs:"100%",md:"25%",lg:"19%"},height:"100%",display:{xs:n?"block":"none",md:"block"},mb:{xs:2,md:0},border:0,overflow:"hidden",padding:3,mt:{xs:0,md:1}},children:[(0,L.jsx)(Qi,{search:o,setSearch:a}),(0,L.jsx)(ho.A,{sx:{overflow:"auto",flex:1,maxHeight:{xs:"calc(100% - 56px)",md:"calc(100% - 64px)"},"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none","-ms-overflow-style":"none"},children:se?(0,L.jsx)(uw,{justifyContent:"center",alignItems:"center",sx:{height:"100%"},children:(0,L.jsx)(dA,{color:"secondary"})}):(0,L.jsxs)(L.Fragment,{children:[xe("Today",B.today),xe("Yesterday",B.yesterday),xe("Past 7 Days",B.previous7Days),xe("Past 30 Days",B.previous30Days),xe("Last Year",B.lastYear)]})})]}),(0,L.jsx)(uw,{sx:{flex:1,backgroundColor:"#EEF2F6",borderTopLeftRadius:{xs:0,md:10},borderTopRightRadius:{xs:0,md:10},marginTop:{xs:0,md:2},padding:{xs:"8px",sm:"16px"},overflow:"hidden"},children:(0,L.jsx)(uw,{sx:{flex:1,display:"flex",flexDirection:"column",height:{xs:"calc(100vh - 56px)",sm:"calc(100vh - 64px)"},overflow:"hidden",backgroundColor:"white",borderRadius:2},children:(0,L.jsxs)(ho.A,{sx:{flex:1,overflow:"auto",padding:{xs:1,sm:2},"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none","-ms-overflow-style":"none"},children:[N?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,L.jsx)(Te.A,{variant:"h3",children:N}),(0,L.jsx)(Pa.A,{onClick:e=>{e.stopPropagation();const{origin:t}=window.location;Mx()(`${t}/share/collection?id=${j}`),aa.oR.success("Url copied",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})},children:(0,L.jsx)(xfe,{size:20})})]}),(0,L.jsx)(ze.A,{})," "]}):(0,L.jsx)(L.Fragment,{}),se?(0,L.jsx)(uw,{justifyContent:"center",alignItems:"center",sx:{height:"100%"},children:(0,L.jsx)(dA,{color:"secondary"})}):(null===g||void 0===g?void 0:g.length)>0&&(null===g||void 0===g?void 0:g.map(((e,t)=>{var n,r;return(0,L.jsxs)(ue.A,{sx:{overflow:"auto",borderBottom:0,borderColor:"#c1c1c1"},children:[(0,L.jsx)(uw,{direction:"row",sx:{height:"fit-content",p:{xs:1,sm:2}},alignItems:"center",children:(0,L.jsxs)(uw,{direction:"column",sx:{width:"100%"},children:[(0,L.jsxs)("div",{className:"flex w-full justify-start mb-3 gap-3",children:[(null===e||void 0===e?void 0:e.image)&&e.image.length>0&&(0,L.jsxs)("div",{className:"mb-8",children:[(0,L.jsx)("h3",{className:"text-sm font-medium text-gray-500 mb-3",children:"Images"}),(0,L.jsx)("div",{className:"flex flex-wrap gap-4",children:e.image.map(((e,t)=>(0,L.jsx)("div",{className:"relative w-28 h-28 group",children:(0,L.jsx)("div",{className:"absolute inset-0 rounded-lg border border-gray-200 overflow-hidden shadow-sm transition-all duration-200 group-hover:shadow-md",children:(0,L.jsx)("img",{src:e,alt:`Image ${t+1}`,className:"w-full h-full object-cover cursor-pointer",onClick:()=>{ne(e),ie("image"),J(!0)}})})},t)))})]}),(null===e||void 0===e?void 0:e.files)&&e.files.length>0&&(0,L.jsxs)("div",{className:"mb-8",children:[(0,L.jsx)("h3",{className:"text-sm font-medium text-gray-500 mb-3",children:"Files"}),(0,L.jsx)("div",{className:"flex flex-wrap gap-4",children:e.files.map(((e,t)=>{const n=e.split("/").pop();return(0,L.jsxs)("div",{className:"w-28 h-28 rounded-lg border border-gray-200 shadow-sm hover:shadow-md transition-all duration-200 flex flex-col items-center justify-center p-2 cursor-pointer",onClick:()=>{ne(e),ie("file"),J(!0)},children:[(0,L.jsx)(T_e,{size:24,className:"text-gray-400 mb-2"}),(0,L.jsx)("p",{className:"text-xs text-center truncate w-full",title:n,children:n})]},t)}))})]}),(null===e||void 0===e?void 0:e.drive)&&e.drive.length>0&&(0,L.jsxs)("div",{children:[(0,L.jsx)("h3",{className:"text-sm font-medium text-gray-500 mb-3",children:"Exter
205nal Files"}),(0,L.jsx)("div",{className:"flex flex-wrap gap-4",children:e.drive.map(((e,t)=>(0,L.jsxs)("a",{href:e.file_url,target:"_blank",rel:"noopener noreferrer",className:"w-28 h-28 rounded-lg border border-gray-200 shadow-sm hover:shadow-md hover:border-blue-300 transition-all duration-200 flex flex-col items-center justify-center p-2 group",children:[(0,L.jsx)(xfe,{size:24,className:"text-gray-400 group-hover:text-blue-500 mb-2"}),(0,L.jsx)("p",{className:"text-xs text-center truncate w-full group-hover:text-blue-600",title:e.file_name,children:e.file_name})]},t)))})]})]}),(0,L.jsx)(uw,{direction:"column",children:(0,L.jsx)(Te.A,{sx:{fontWeight:"500"},variant:"h2",children:e.question})})]})}),(0,L.jsxs)(uw,{direction:"row",sx:{height:"fit-content",p:{xs:1,sm:2}},alignItems:"flex-start",children:[(0,L.jsx)(ue.A,{sx:{display:{xs:"none",sm:"block"}},children:(0,L.jsx)(C_e,{})}),(0,L.jsxs)(uw,{direction:"column",children:[(0,L.jsx)(Te.A,{variant:"h3",sx:{fontWeight:"700",ml:{xs:0,sm:2},mb:2},children:"Answer"}),(0,L.jsx)(BSe,{i:e})]})]}),!1===e.isLoading&&(0,L.jsx)(uw,{sx:{ml:{xs:0,sm:5}},justifyContent:"space-between",direction:"row",alignItems:"center",children:(0,L.jsxs)(uw,{direction:"row",alignItems:"center",children:[(0,L.jsx)(uw,{direction:"row",alignItems:"center",children:(0,L.jsx)(mi,{title:"copy",placement:"bottom",children:(0,L.jsx)(Pa.A,{onClick:()=>(e=>{const t=g[e].answer.replace(/<br\/?>/g,"");Mx()(t),aa.oR.success("Copied text",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})})(t),children:(0,L.jsx)(yw,{size:18})})})}),(0,L.jsx)(uw,{direction:"row",alignItems:"center",children:(0,L.jsx)(mi,{title:"Bad Review",placement:"bottom",children:(0,L.jsx)(Pa.A,{onClick:()=>{w(t),y(!0)},children:(0,L.jsx)(R_e,{size:18})})})}),(0,L.jsx)(uw,{direction:"row",alignItems:"center",children:(0,L.jsx)(mi,{title:"Delete From Collection",placement:"bottom",children:(0,L.jsx)(Pa.A,{onClick:()=>(async e=>{const t=new URLSearchParams(window.location.search).get("id");_e((t=>[...t,e]));try{await(0,xi.Zg)(t,e,X),b((t=>t.filter(((t,n)=>n!==e))))}catch(qUe){console.error("Error deleting message:",qUe)}finally{_e((t=>t.filter((t=>t!==e))))}})(t),disabled:Se.includes(t),children:Se.includes(t)?(0,L.jsx)(dA,{size:24}):(0,L.jsx)(hw,{size:18})})})})]})}),(null===e||void 0===e||null===(n=e.reference)||void 0===n?void 0:n.length)>0&&(0,L.jsxs)(uw,{direction:"row",sx:{height:"fit-content",p:{xs:1,sm:2}},alignItems:"flex-start",children:[(0,L.jsx)(ue.A,{sx:{display:{xs:"none",sm:"block"}},children:(0,L.jsx)(vUe,{})}),!1===e.isLoading&&(0,L.jsxs)(uw,{direction:"column",children:[(0,L.jsx)(Te.A,{variant:"h3",sx:{fontWeight:"700",ml:{xs:0,sm:2},mb:2},children:"Sources"}),(0,L.jsx)("div",{className:"grid md:grid-cols-8 sm:grid-cols-4 grid-cols-2 gap-3 mt-2",children:null===e||void 0===e||null===(r=e.reference)||void 0===r?void 0:r.map(((t,n)=>(0,L.jsx)(so,{label:"\n\n"!==t&&t,sx:{color:dfe.A[800]},variant:"outlined",onClick:()=>(async(e,t)=>{if(A&&0!==A.length){const e=t.trim(),n=A.find((t=>t.includes(e)));n?(O(n),P(e),T(!0)):console.error("Link not found for file:",e)}})(0,t,e.links[n])},n)))})]})]}),(0,L.jsx)("div",{ref:Z})]})})))]})})}),n&&(0,L.jsxs)(uw,{sx:{width:{xs:"100%",md:"25%",lg:"19%"},height:"100%",display:{xs:"none",md:"block"},mb:{xs:2,md:0},border:0,overflow:"hidden",padding:3},children:[(0,L.jsxs)(uw,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{mb:2},children:[(0,L.jsx)(Te.A,{variant:"h4",children:"Collections"}),(0,L.jsx)(mi,{title:"Create Collection",placement:"top",children:(0,L.jsx)(Pa.A,{onClick:()=>{h(!0)},children:(0,L.jsx)(bfe,{className:"text-lg font-bold"})})})]}),u.length>0?(0,L.jsx)(Qi,{search:G,setSearch:W}):(0,L.jsx)(Te.A,{variant:"body1",children:"Create New Collection"}),(0,L.jsx)(uw,{sx:{width:"100%",height:"100%"},children:(0,L.jsx)(ho.A,{sx:{overflow:"auto",flex:1,maxHeight:{xs:"calc(100% - 56px)",md:"calc(100% - 64px)"},"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none","-ms-overflow-style":"none"},children:Ne.map((e=>
205(0,L.jsx)(L_e,{item:e,index:u.findIndex((t=>t.id===e.id)),nav:t,setCollections:d},e.id)))})})]})]}),(0,L.jsx)(tH,{file:C,fileName:R,openDrawer:k,close:async()=>{O(""),P(""),T(!1)}}),(0,L.jsxs)(mce,{open:p,onClose:Ee,fullWidth:!0,maxWidth:"sm",children:[(0,L.jsx)(Ude,{children:"Create New Collection"}),(0,L.jsxs)(Lde,{children:[(0,L.jsx)(Xa.A,{autoFocus:!0,margin:"dense",label:"Name",type:"text",color:"secondary",fullWidth:!0,variant:"outlined",value:f.name,onChange:e=>m({...f,name:e.target.value})}),(0,L.jsx)(Xa.A,{margin:"dense",label:"Description",type:"text",fullWidth:!0,variant:"outlined",color:"secondary",multiline:!0,rows:3,value:f.description,onChange:e=>m({...f,description:e.target.value})}),(0,L.jsx)(Xa.A,{margin:"dense",label:"AI Prompt (optional)",type:"text",fullWidth:!0,variant:"outlined",color:"secondary",multiline:!0,rows:3,value:f.aiPrompt,onChange:e=>m({...f,aiPrompt:e.target.value})})]}),(0,L.jsxs)(Ide,{children:[(0,L.jsx)(Yx.A,{onClick:Ee,color:"error",disabled:z,children:"Cancel"}),(0,L.jsx)(Yx.A,{onClick:async()=>{H(!0);const e=localStorage.getItem("uid"),t=new FormData;t.append("collection_name",f.name),t.append("collection_description",f.description),t.append("ai_prompt",f.aiPrompt||"null"),t.append("uid",e),await(0,xi.No)(t),await Ae(),Ee(),H(!1)},variant:"outlined",color:"secondary",disabled:!f.name||!f.description||z,children:z?"Creating...":"Create"})]})]}),(0,L.jsxs)(mce,{open:S,sx:{display:"flex",alignItems:"center",justifyContent:"center","& .MuiDialog-paper":{width:{xs:"85vw",sm:"85vw",md:"50vw",lg:"30vw",xl:"30vw"},maxWidth:"80%",height:{md:"25%"},margin:0}},onClose:()=>{F({cid:"",index:"",selectedCollectionId:""}),_(!1)},"aria-labelledby":"collection-dialog-title","aria-describedby":"collection-dialog-description",children:[(0,L.jsx)(Ude,{id:"collection-dialog-title",children:(0,L.jsx)(Te.A,{variant:"h3",children:"Select a Collection"})}),(0,L.jsx)(Lde,{sx:{mt:4},children:0===u.length?(0,L.jsx)(Te.A,{children:"No collections available. Create a new collection first."}):(0,L.jsx)(fl.A,{sx:{width:"100%",height:"100%"},children:(0,L.jsx)(Zs.A,{labelId:"collection-select-label",id:"collection-select",value:D.selectedCollectionId,color:"secondary",onChange:e=>{const t=u.find((t=>t.id===e.target.value));t&&F({...D,selectedCollectionId:t.id})},children:u.map((e=>(0,L.jsx)(Qs.A,{value:e.id,children:e.name},e.id)))})})}),(0,L.jsxs)(Ide,{children:[(0,L.jsx)(Yx.A,{onClick:()=>{F({cid:"",index:"",selectedCollectionId:""}),_(!1)},color:"error",disabled:$,children:"Cancel"}),(0,L.jsx)(Yx.A,{onClick:async()=>{const e=localStorage.getItem("uid"),t=new FormData;t.append("index",D.index),t.append("chatID",D.cid),V(!0),await(0,xi.Eo)(D.selectedCollectionId,e,t),V(!1),_(!1)},color:"secondary",variant:"outlined",disabled:!D.selectedCollectionId||$,children:$?"Adding...":"Add"})]})]}),(0,L.jsx)(Ks,{open:Q,anchor:"right",onClose:()=>{ne(""),ie(""),J(!1)},children:(0,L.jsxs)("div",{className:"md:w-[50vw] sm:w-screen p-7",children:[(0,L.jsxs)("div",{className:"flex justify-between items-center",children:[(0,L.jsx)("h2",{className:"font-bold text-xl",children:ee.split("/").pop()||"Attachment"}),(0,L.jsx)(Pa.A,{onClick:()=>{ne(""),ie(""),J(!1)},children:(0,L.jsx)(Dw,{className:"cursor-pointer"})})]}),(0,L.jsx)("div",{className:"h-[80vh] p-1",children:"image"===re?(0,L.jsx)("div",{children:(0,L.jsx)("img",{src:ee,className:"w-3/4"})}):(0,L.jsx)(Xz,{viewerUrl:"https://docs.google.com/gview?url=%URL%&embedded=true",url:ee||"",viewer:"url"})})]})})]})};var xUe={path:"/collection",element:(0,L.jsx)(yUe,{})};var wUe=function(){const e=(0,re.A)(),[t,n]=(0,i.ok)(),[r,o]=(0,c.useState)(""),a=(0,c.useRef)(null),[s,l]=(0,c.useState)(!1),[u,d]=(0,c.useState)([]),[p,h]=(0,c.useState)("Select a Bot"),[f,m]=(0,c.useState)([]),[g,b]=(0,c.useState)(!1),[v,y]=(0,c.useState)(""),[x,w]=(0,c.useState)(""),[A,E]=(0,c.useState)("");return(0,c.useEffect)((()=>{const e=t.get("id");d([]),o(e),e&&(l(!0),d([]),(0,xi.fS)(e).then((e=>{var t;l(!1),e&&e.messages?(h(e.name),null===(t=e.messages)||void 0===t||t.map((e=>{var t,n;const r=null===e||void 0===e||null===(t=e.answer)||void 0===t?void 0:t.match(/references\s*([\s\S]+)$/i),i=[];if(r&&r[1]){const e=r[1].trim();i.push(...e.split(",").map((e=>e.trim())))}const o=null===e||void 0===e||null===(n=e.answer)||void 0===n?void 0:n.replace(/\\n
205/gi,"\n").replace(/\n/gi,"<br/>");d((t=>{var n,r;return[...t,{...e,answer:i?null===o||void 0===o?void 0:o.split("references")[0]:o,reference:null!==e&&void 0!==e&&null!==(n=e.answer)&&void 0!==n&&n.split("references")[1]?null===e||void 0===e||null===(r=e.answer)||void 0===r?void 0:r.split("references")[1].split(";"):[],isLoading:!1}]})),e.link?m(e.link):m([])}))):d([])})).catch((()=>{l(!1),d([])})))}),[t]),(0,L.jsxs)(ue.A,{sx:{height:"90vh",backgroundColor:"#fff"},children:[(0,L.jsx)(we,{enableColorOnDark:!0,position:"fixed",color:"inherit",elevation:0,sx:{bgcolor:e.palette.background.default},children:(0,L.jsx)(ke,{children:(0,L.jsxs)(ue.A,{sx:{width:"100vw",display:"flex",justifyContent:"space-between"},children:[(0,L.jsx)(ue.A,{component:"span",sx:{display:{xs:"none",md:"block"}},children:(0,L.jsx)(wi,{})}),(0,L.jsxs)(ue.A,{sx:{display:"flex",alignItems:"center",ml:2},children:[(0,L.jsx)(mi,{title:"Share via Email",arrow:!0,children:(0,L.jsx)(Pa.A,{onClick:()=>window.open(`mailto:?subject=Check out this chat&body=${encodeURIComponent(u.map((e=>`${e.question}: ${e.answer}`)).join("\n"))}`),"aria-label":"Email",children:(0,L.jsx)(KBe,{})})}),(0,L.jsx)(mi,{title:"Print this chat",arrow:!0,children:(0,L.jsx)(Pa.A,{onClick:()=>window.print(),"aria-label":"Print",children:(0,L.jsx)(XBe,{})})}),(0,L.jsx)(mi,{title:"Share on WhatsApp",arrow:!0,children:(0,L.jsx)(Pa.A,{onClick:()=>window.open(`whatsapp://send?text=${encodeURIComponent(u.map((e=>`${e.question}: ${e.answer}`)).join("\n"))}`),"aria-label":"WhatsApp",children:(0,L.jsx)(ZBe,{})})}),(0,L.jsx)(mi,{title:"Share on Twitter",arrow:!0,children:(0,L.jsx)(Pa.A,{onClick:()=>window.open(`https://twitter.com/intent/tweet?text=${encodeURIComponent(u.map((e=>`${e.question}: ${e.answer}`)).join("\n"))}`),"aria-label":"X",children:(0,L.jsx)(QBe,{})})}),(0,L.jsx)(mi,{title:"Share on Instagram",arrow:!0,children:(0,L.jsx)(Pa.A,{onClick:()=>alert("Instagram sharing is not supported directly. Please copy the text to share."),"aria-label":"Instagram",children:(0,L.jsx)(JBe,{})})})]})]})})}),s?(0,L.jsxs)(uw,{sx:{height:"110vh",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",backgroundColor:"white"},children:[(0,L.jsx)(dA,{}),(0,L.jsx)("h1",{children:"Loading ..."})]}):(0,L.jsx)(uw,{direction:"row",sx:{mt:9},children:u.length>0?(0,L.jsxs)(Co.A,{sx:{width:"100%",minHeight:"80vh",px:2},children:[(0,L.jsx)(uw,{direction:"row",justifyContent:"space-between",alignItems:"center",children:(0,L.jsx)(uw,{direction:"row",alignItems:"center",children:(0,L.jsxs)(Te.A,{variant:"h4",children:["Collection Name: ",p]})})}),(0,L.jsx)(ho.A,{children:null===u||void 0===u?void 0:u.map(((e,t)=>(0,L.jsxs)(ue.A,{sx:{borderBottom:1,borderColor:"#c1c1c1"},children:[(0,L.jsx)(uw,{direction:"row",sx:{height:"fit-content",p:{sm:1,md:2}},alignItems:"center",children:(0,L.jsxs)(uw,{direction:"column",sx:{width:"100%"},children:[(0,L.jsxs)("div",{className:"flex w-full justify-start mb-3 gap-3",children:[(null===e||void 0===e?void 0:e.image)&&e.image.length>0&&(0,L.jsxs)("div",{className:"mb-8",children:[(0,L.jsx)("h3",{className:"text-sm font-medium text-gray-500 mb-3",children:"Images"}),(0,L.jsx)("div",{className:"flex flex-wrap gap-4",children:e.image.map(((e,t)=>(0,L.jsx)("div",{className:"relative w-28 h-28 group",children:(0,L.jsx)("div",{className:"absolute inset-0 rounded-lg border border-gray-200 overflow-hidden shadow-sm transition-all duration-200 group-hover:shadow-md",children:(0,L.jsx)("img",{src:e,alt:`Image ${t+1}`,className:"w-full h-full object-cover cursor-pointer",onClick:()=>{y(e),w("image"),b(!0)}})})},t)))})]}),(null===e||void 0===e?void 0:e.files)&&e.files.length>0&&(0,L.jsxs)("div",{className:"mb-8",children:[(0,L.jsx)("h3",{className:"text-sm font-medium text-gray-500 mb-3",children:"Files"}),(0,L.jsx)("div",{className:"flex flex-wrap gap-4",children:e.files.map(((e,t)=>{const n=e.split("/").pop();return(0,L.jsxs)("div",{className:"w-28 h-28 rounded-lg border border-gray-200 shadow-sm hover:shadow-md transition-all duration-200 flex flex-col items-center justify-center p-2 cursor-pointer",onClick:()=>{y(e),w("file"),b(!0)},children:[(0,L.jsx)(T_e,{size:24,className:"text-gray-400 mb-2"}),(0,L.jsx)("p",{className:"text-xs text-center truncate w-full",title:n,children:n})]},t)}))})]}),(null===e||void 0===e?void 0:e.drive)&&e.drive.length>0&&(0,L.jsxs)("div",{children:[(0,L.jsx)("h3",{className:"text-sm font-medium text-gray-500 mb-3",children:"Exter
205nal Files"}),(0,L.jsx)("div",{className:"flex flex-wrap gap-4",children:e.drive.map(((e,t)=>(0,L.jsxs)("a",{href:e.file_url,target:"_blank",rel:"noopener noreferrer",className:"w-28 h-28 rounded-lg border border-gray-200 shadow-sm hover:shadow-md hover:border-blue-300 transition-all duration-200 flex flex-col items-center justify-center p-2 group",children:[(0,L.jsx)(xfe,{size:24,className:"text-gray-400 group-hover:text-blue-500 mb-2"}),(0,L.jsx)("p",{className:"text-xs text-center truncate w-full group-hover:text-blue-600",title:e.file_name,children:e.file_name})]},t)))})]})]}),(0,L.jsx)(uw,{direction:"column",children:(0,L.jsx)(Te.A,{sx:{fontWeight:"500"},variant:"h2",children:e.question})})]})}),(0,L.jsxs)(uw,{direction:"row",sx:{height:"fit-content",p:{sm:1,md:2}},alignItems:"flex-start",children:[(0,L.jsx)(ue.A,{sx:{display:{sm:"none",md:"block"}},children:(0,L.jsx)(tUe.A,{})}),(0,L.jsxs)(uw,{direction:"column",children:[(0,L.jsx)(Te.A,{variant:"h3",sx:{fontWeight:"700",ml:2,mb:2},children:"Answer"}),(0,L.jsx)(BSe,{i:e})]})]}),!1===e.isLoading&&(0,L.jsx)(uw,{sx:{ml:{sm:1,md:5}},justifyContent:"space-between",direction:"row",alignItems:"center",children:(0,L.jsx)(uw,{direction:"row",alignItems:"center",children:(0,L.jsx)(mi,{title:"copy",placement:"bottom",children:(0,L.jsx)(Pa.A,{onClick:()=>(e=>{const t=u[e].answer.replace(/<br\/?>/g,"");Mx()(t),aa.oR.success("Copied text",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})})(t),children:(0,L.jsx)(yw,{size:18})})})})}),(0,L.jsx)("div",{ref:a})]},t)))}),(0,L.jsx)(Te.A,{sx:{mt:2,color:"#b1b1b1"},style:{justifyContent:"center",alignItems:"center"},children:"asklly.ai can make mistakes. Consider checking important information."})]}):(0,L.jsxs)(uw,{direction:"column",height:"75vh",width:"100%",justifyContent:"center",alignItems:"center",children:[(0,L.jsx)("img",{alt:"no chat",src:eUe,className:"w-72"}),(0,L.jsxs)(Te.A,{variant:"h3",sx:{textAlign:"center"},children:["You came wrong way!",(0,L.jsx)("br",{}),"Chat Not Found",(0,L.jsx)("br",{}),"Check the url and try again"]})]})}),(0,L.jsx)(Ks,{open:g,anchor:"right",onClose:()=>{y(""),w(""),b(!1)},children:(0,L.jsxs)("div",{className:"md:w-[50vw] sm:w-screen p-7",children:[(0,L.jsxs)("div",{className:"flex justify-between items-center",children:[(0,L.jsx)("h2",{className:"font-bold text-xl",children:v.split("/").pop()||"Attachment"}),(0,L.jsx)(Pa.A,{onClick:()=>{y(""),w(""),b(!1)},children:(0,L.jsx)(Dw,{className:"cursor-pointer"})})]}),(0,L.jsx)("div",{className:"h-[80vh] p-1",children:"image"===x?(0,L.jsx)("div",{children:(0,L.jsx)("img",{src:v,className:"w-3/4"})}):(0,L.jsx)(Xz,{viewerUrl:"https://docs.google.com/gview?url=%URL%&embedded=true",url:v||"",loaded:()=>l(!1),viewer:"url"})})]})})]})};var AUe={path:"/share/collection",element:(0,L.jsx)(wUe,{})};var EUe=function(){var e,t,n,r;const o=(0,re.A)(),a=(0,te.zy)(),[s]=(0,i.ok)(),l=s.get("k"),{fetchtrainedApi:u,fetchtrainedBots:d,activeRole:p,handleDeleteChat:h,chatHistory:f,handleGetAllChats:m,nloading:g,activeTeam:b,getKb:v,uploadImage:y,getCachedUserInfo:x}=ma(),w=(0,te.Zp)(),A=ce(o.breakpoints.down("sm")),[E,S]=(0,c.useState)(),[_,k]=(0,c.useState)(!1),[T,C]=(0,c.useState)(!1),[O,N]=(0,c.useState)(!1),[I,R]=(0,i.ok)(),[P,j]=(0,c.useState)(""),[M,D]=(0,c.useState)(!A),[F,B]=(0,c.useState)(!A),U=(0,c.useRef)(null),[z,H]=(0,c.useState)(!1),[$,V]=(0,c.useState)(!1),[G,W]=(0,c.useState)(),[q,Y]=(0,c.useState)(),[K,X]=(0,c.useState)(!1),[Z,Q]=(0,c.useState)(""),[J,ee]=(0,c.useState)(!1),[ne,ie]=(0,c.useState)(""),[oe,ae]=(0,c.useState)(""),[se,le]=(0,c.useState)(0),[de,pe]=(0,c.useState)(""),[he,fe]=(0,c.useState)({today:[],yesterday:[],previous7Days:[],previous30Days:[],lastYear:[]}),[me,ge]=(0,c.useState)(""),[be,ve]=(0,c.useState)(""),[ye,xe]=(0,c.useState)(""),[Ae,Ee]=(0,c.useState)(!1),[Se,_e]=(0,c.useState)(),[Ce,Oe]=(0,c.useState)(!1),[Ne,Ie]=(0,c.useState)([]),Re=()=>{var e;null===(e=U.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})},{transcript:Pe,listening:je,resetTranscript:Me}=(0,H_e.Vw)(),De=async()=>{H_e.Ay.startListening()},Le=async()=>{H_e.Ay.stopListening()};(0,c.useEffect)((()=>{Ke(Pe)}),[Pe]);const[Fe,Be]=(0,c.useState)(null),[Ue,ze]=(Boolean(Fe),(0,c.useState)([])),[He,$e]=(0,c.useState)([]),[Ve,Ge]=(0,c.useState)([]),[We,qe]=(0,c.useState)([]),[Ye,Ke]=(0,c.useState)(""),[Xe,Ze]=(0,c.useState)([]),[Qe,Je]=(0,c.useState)([]),[et,tt]=(0,c.useState)(""),[nt,rt]=(0,c.useState)(!1),[it,ot]=(0,c.useState)("Copy To Clipboard"),[at,st]=(0,c.useState)([]),[lt,ct]=(0,c.useState)(!1),[ut,dt]=(0,c.useState)(""),[pt,ht]=(0,c.useState)([]),[ft,mt]=(0,c.useState)([]),[gt,bt]=(0,c.useState)(!1),[vt,yt]=(0,c.useState)(!1),[xt,wt]=(0,c.useState)(!1),[At,Et]=(0,c.useState)(""),[St,_t]=(new URLSearchParams(a.search).get("id"),(0,c.useState)({cid:"",index:"",selectedCollectionId:""})),[kt,Tt]=(0,c.useState)([]),[Ct,Ot]=(0,c.useState)([]),[Nt,It]=(0,c.useState)([]),[Rt,Pt]=(0,c.useState)("");(0,c.useEffect)((()=>{D(!A)}),[A]);
205const[jt,Mt]=(0,c.useState)(!1),[Dt,Lt]=(0,c.useState)(""),[Ft,Bt]=(0,c.useState)(!0);(0,c.useEffect)((()=>{A&&Ht()}),[l]);const[Ut,zt]=(0,c.useState)(null);Boolean(Fe),(0,c.useEffect)((()=>{(async()=>{try{const e=localStorage.getItem("uid"),t=await u(e);if(Tt(t.data),l&&t.data){const e=t.data.find((e=>e.api_key===l));e&&Je([e.api_key])}}catch(qUe){console.log(qUe)}})()}),[l]),(0,c.useEffect)((()=>{(async()=>{const e=l.startsWith("cx-");Ge([]),dt(""),ht(""),ct(!1),st([]),j(e?"null":l),(async()=>{var e;const t=null===(e=p.split(","))||void 0===e?void 0:e.some((e=>"Admin"===e||"Create Knowledge Base"===e));S(t)})();const t=localStorage.getItem("uid");Wt(t);let n=[];try{const e=await d(t);if(e&&Array.isArray(e.data)){n=e.data;const t=n.map((e=>e.title));qe(t)}else Ze([])}catch(s){console.error("Error fetching trained bots:",s)}if(e){const e=n.filter((e=>e.apikey===l));var r,i;if(e.length>0)_e(null===(r=e[0])||void 0===r?void 0:r.default_websearch),Ee(null===(i=e[0])||void 0===i?void 0:i.default_websearch);else _e({})}else{H(!0),Ge([]);try{var o;const e=await(0,xi.TJ)(t,l);if(0===Object.keys(e).length&&e.constructor===Object)return H(!1),w("/chat-with-bot");Je(null!==e&&void 0!==e&&e.api?[null===e||void 0===e?void 0:e.api]:[]),Et((null===e||void 0===e?void 0:e.api)||"");const r=n.filter((t=>t.apikey===(null===e||void 0===e?void 0:e.api)));var a;if(r.length>0)_e(r[0]),Ee(null===(a=r[0])||void 0===a?void 0:a.default_websearch);else _e({});null===(o=e.chatMessages)||void 0===o||o.forEach((e=>{var t,n,r,i;const o=null===e||void 0===e||null===(t=e.answer)||void 0===t?void 0:t.match(/references\s*([\s\S]+)$/i),a=[];if(o&&o[1]){const e=o[1].trim();a.push(...e.split(",").map((e=>e.trim())))}const s=(null===e||void 0===e||null===(n=e.answer)||void 0===n?void 0:n.replace(/\\n
205/gi,"\n"))||"",l=s.split("references;;"),c=l[1]?l[0]:s.split("references")[1]?s.split("references")[0]:s,u=null!==e&&void 0!==e&&null!==(r=e.answer)&&void 0!==r&&r.split("references;;")[1]?null===e||void 0===e||null===(i=e.answer)||void 0===i?void 0:i.split("references;;")[1].split(";;;"):s.split("references")[1]?s.split("references")[1].split(";").map((e=>e.replace(/<br\/>/gi," "))):[],d="string"===typeof e.image?[e.image]:e.image||[],p=[".jpg",".jpeg",".png",".webp"],h=[".pdf",".doc",".docx",".txt"],f=(null===e||void 0===e?void 0:e.web)||[],m=[],g=[];d.forEach((e=>{const t=e.split("?")[0].split("/"),n="."+t[t.length-1].split(".").pop().toLowerCase();p.includes(n)?m.push(e):h.includes(n)&&g.push(e)})),Ge((t=>[...t,{...e,answer:c,reference:u,isLoading:!1,links:e.link||[],image:m,files:g,drive:e.drive||[],web:f,usage:e.usage||{}}])),st(e.link||[])})),H(!1)}catch(s){console.error("Error fetching chat by id:",s),H(!1)}}})()}),[l]),(0,c.useEffect)((()=>{(null===Xe||void 0===Xe?void 0:Xe.length)>0&&(null===Xe||void 0===Xe||Xe.map((e=>{e.title===Qe&&tt(e.apikey)})))}),[Qe]);const Ht=async()=>{D(!M)},[$t,Vt]=(0,c.useState)(""),Gt=e=>new Promise(((t,n)=>{const r=new FileReader;
205r.readAsDataURL(e),r.onload=()=>{const e=r.result.split(",")[1];t(e)},r.onerror=e=>n(e)}));(0,c.useEffect)((()=>{Ct&&Ct.map((e=>{Gt(e).then((e=>Vt(e)))}))}),[Ct]);const Wt=async()=>{const e=localStorage.getItem("uid"),t=localStorage.getItem("gauthcred"),n=await x(e);if(n)if(localStorage.setItem("usr",n),W(n),""!==(null===n||void 0===n?void 0:n.prof))Y(null===n||void 0===n?void 0:n.prof),localStorage.setItem("image",null===n||void 0===n?void 0:n.prof);else if(t){const e=Ro(t);localStorage.setItem("image",null===e||void 0===e?void 0:e.picture),Y(null===e||void 0===e?void 0:e.picture)}else Y("")};(0,c.useEffect)((()=>{Wt()}),[]);const[qt,Yt]=(0,c.useState)([]),Kt=(localStorage.getItem("uid"),new Date);Kt.setHours(0,0,0,0);const Xt=new Date(Kt);Xt.setDate(Xt.getDate()-1),Xt.setHours(0,0,0,0);const Zt=new Date(Kt);Zt.setDate(Zt.getDate()-7),Zt.setHours(0,0,0,0);const Qt=new Date(Kt);Qt.setDate(Qt.getDate()-30),Qt.setHours(0,0,0,0);const Jt=new Date(Kt);Jt.setFullYear(Jt.getFullYear()-1),Jt.setHours(0,0,0,0);const en=()=>{const e=[],t=[],n=[],r=[],i=[];return f.forEach((o=>{const a=new Date(1e3*o.timestamp),s=Kt-a,l=Math.ceil(s/864e5);0===l?e.push(o):1===l?t.push(o):l<=7?n.push(o):l<=30?r.push(o):i.push(o)})),{todayChats:e,yesterdayChats:t,previous7DaysChats:n,previous30DaysChats:r,lastYearChats:i}};(0,c.useEffect)((()=>{(async()=>{const{todayChats:e,yesterdayChats:t,previous7DaysChats:n,previous30DaysChats:r,lastYearChats:i}=en()})()}),[]),(0,c.useEffect)((()=>{Re()}),[Ve]);const[tn,nn]=(0,c.useState)("");(0,c.useEffect)((()=>{const e=new URLSearchParams(window.location.search).get("k");Pt(l.startsWith("cx-")?"null":e)}),[]);const rn=(0,c.useCallback)((async()=>{C(!0);try{I.get("id");const e=window.location.href,t=localStorage.getItem("uid");if("Select a Bot"===Qe)return aa.oR.error("Select your knowledge hub to chat",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"});Ge((e=>[...e,{question:Ye,answer:"Generating the answer...",reference:[],isLoading:!0,links:[],images:Ct.length>0?Ct.map((e=>URL.createObjectURL(e))):[],files:[],drive:[],web:[]}])),Ke(""),V(!0),Re();const n=localStorage.getItem("organization"),r=[],i=[],o=[];if(Ct.length>0)for(const l of Ct){const e=`${Date.now()}.jpg`,t={filename:e,base64_data:await Gt(l)};try{const e=await y(t);o.push(e.url),i.push(e.url)}catch(qUe){console.error("Error uploading",e,qUe)}}const a=[],s=[];if(Nt.length>0)for(const l of Nt){if(l.url&&l.url.includes("google.com")){r.push(l.url);const e={file_name:l.name,file_url:l.url};s.push(e);continue}const e=new FileReader,t=(await new Promise(((t,n)=>{e.onload=()=>t(e.result),e.onerror=e=>n(e),e.readAsDataURL(l)}))).split(",")[1],n={filename:l.name,base64_data:t};try{const e=await y(n);o.push(e.url),a.push(e.url)}catch(qUe){console.error("Error uploading",l.name,qUe)}}Ge((e=>{const t=e.length-1;return e.map(((e,n)=>n===t?{...e,image:i,files:a,drive:s,web:[]}:e))})),Ot([]),It([]),Tn("Thinking");const c=await fetch("https://sse.asklly.ai/v2/sse/api",{method:"POST",headers:{"Content-Type":"application/json",GTKN:me?`Bearer ${me}`:""},body:JSON.stringify({question:Ye,orgn:n,api:l.startsWith("cx-")?l:At,cid:Rt,uid:t,image:o.length>0?o.join(",,,"):"",drive:r.length>0?r.join(",,,"):"",search:Ae})});if(Tn("Thinking"),!c.ok||!c.body)throw new Error("Network response was not ok or streaming is not supported.");const u=c.body.getReader(),d=new TextDecoder("utf-8");let p="",h="";const f=async n=>{let{done:r,value:o}=n;if(r)return await m(t),void V(!1);const s=d.decode(o),l=s.includes("%%%")&&s.split("%%%")[1].split("%%%")[0]||"";if(l){const e=JSON.parse(l);Ge((t=>{const n=t.length-1;return t.map(((t,r)=>r===n?{...t,usage:e}:t))}))}const c=s.includes("<<>>")&&s.split("<<>>")[1].split("<<>>")[0]||"";if(p+=c?"":s,c)try{const e=c.includes("Chat Completion is Done. Done Streaming")?c.split("Chat Completion is Done. Done Streaming")[0]:c,t=JSON.parse(e);Ge((e=>{const n=e.length-1;return e.map(((e,r)=>r===n?{...e,web:t}:e))}))}catch(x){console.error("Invalid JSON in webSource:",c,x)}let g;const b=p.split("::id::")[1];if(b){g=b.split("%%%")[0]}const v=p.split("references;;");
205h=v[0].split("::id::")[0].split("%%%")[0].replace(/\\n/gi,"\n").replace("Chat Completion is Done. Done Streaming","");let y=[];if(p.split("references;;")[1]&&(y=p.split("references;;")[1].split("::id::")[0].split(";;;").filter((e=>""!==e))),g){const t=e.substring(0,e.indexOf("/api"));j(g);const n=t+"/api?k="+g;Pt(g),window.history.pushState(null,"",n)}return Ge((e=>{const t=e.length-1;return e.map(((e,n)=>n===t?{...e,answer:h,reference:y,isLoading:!1,image:i,files:a}:e))})),u.read().then(f)};await u.read().then(f),p="",V(!1)}catch(qUe){console.error(qUe)}finally{C(!1)}}),[Ye,Qe,I,at,Ae]),on=async e=>{await h(e),e===l&&w("/chat-with-bot")},an=()=>{const{origin:e}=window.location,t=`${e}/share?id=${P}`;Mx()(t),aa.oR.success("Coppied Url",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})},sn=(0,c.useCallback)((async e=>{C(!1);try{var t,n;const r=localStorage.getItem("uid"),i=localStorage.getItem("organization"),o=s.get("k"),a={question:Ve[e].question,orgn:i,api:l.startsWith("cx-")?l:At,cid:o||"null",uid:r};Ge((t=>{const n=[...t];return n[e]={...n[e],web:[],isLoading:!0,answer:""},n})),V(!0);const c=[],u=Ve[Ve.length-1];null!==u&&void 0!==u&&u.image&&c.push(...u.image),null!==u&&void 0!==u&&u.files&&c.push(...u.files.map((e=>e.url))),Ge((t=>{const n=[...t];return n[e]={...n[e],isLoading:!0,answer:""},n})),V(!0);const d=Ve.length-1,p=Ve[d],h=[];Array.isArray(null===p||void 0===p?void 0:p.image)&&p.image.length>0&&h.push(...p.image),Array.isArray(null===p||void 0===p?void 0:p.files)&&p.files.length>0&&h.push(...p.files);new URLSearchParams({question:a.question,orgn:a.orgn,api:a.api,cid:a.cid,uid:a.uid,image:h?h.join(",,,"):"",drive:(null===u||void 0===u||null===(t=u.drive)||void 0===t?void 0:t.length)>0?u.drive.map((e=>e.file_url)).join(",,,"):"",search:Ae});const f=await fetch("https://sse.asklly.ai/v2/sse/api/rechat",{method:"POST",headers:{"Content-Type":"application/json",GTKN:me?`Bearer ${me}`:""},body:JSON.stringify({question:a.question,orgn:a.orgn,api:a.api,cid:a.cid,uid:a.uid,image:h?h.join(",,,"):"",drive:(null===u||void 0===u||null===(n=u.drive)||void 0===n?void 0:n.length)>0?u.drive.map((e=>e.file_url)).join(",,,"):"",search:Ae})});if(Tn("Thinking"),!f.ok||!f.body)throw new Error("Network response was not ok or streaming is not supported.");const g=f.body.getReader(),b=new TextDecoder("utf-8");let v="",y="";window.location.href.split("?")[0];const x=async t=>{let{done:n,value:i}=t;if(n)return await m(r),void V(!1);const o=b.decode(i),a=o.includes("<<>>")&&o.split("<<>>")[1].split("<<>>")[0]||"",s=o.includes("%%%")&&o.split("%%%")[1].split("%%%")[0]||"";if(s){const e=JSON.parse(s);Ge((t=>{const n=t.length-1;return t.map(((t,r)=>r===n?{...t,usage:e}:t))}))}if(v+=a?"":o,a)try{const e=a.includes("Chat Completion is Done. Done Streaming")?a.split("Chat Completion is Done. Done Streaming")[0]:a,t=JSON.parse(e);Ge((e=>{const n=e.length-1;return e.map(((e,r)=>r===n?{...e,web:t}:e))}))}catch(h){console.error("Invalid JSON in webSource:",a,h)}const l=v.split("references;;");
205y=l[0].split("::id::")[0].replace(/\\n/gi,"\n");const c=l[1]?l[1].split("::id::")[0].split(";;;").filter((e=>""!==e)):[];let u,d=[];const p=v.split("::id::")[1];if(p){const e=p.split("%%%")[0].replace(/\\n/gi,"\n").split("Chat Completion is Done. Done Streaming");u=e[0],e[1]&&(d=e[1].split("$;$").filter((e=>e)),st((e=>[...e,...d])));const t=u.split("Chat Completion is Done. Done Streaming")[0];Pt(t)}return Ge((t=>t.map(((t,n)=>n===e?{...t,answer:y,reference:c,isLoading:!1,links:d||[]}:t)))),g.read().then(x)};return await g.read().then(x),{success:!0,message:"Answer refreshed successfully"}}catch(qUe){return console.error(qUe),V(!1),{success:!1,message:"Failed to refresh answer"}}finally{C(!1)}}),[Ve,Qe,I,at,Ae]),ln=(0,c.useCallback)((async e=>{C(!0),ee(!1);try{var t,n;const r=localStorage.getItem("uid"),i=localStorage.getItem("organization"),o=s.get("k")||"null",a={question:ne,orgn:i,api:l.startsWith("cx-")?l:At,cid:o,uid:r};let c="";Ge((t=>{const n=[...t];return c=n[e].image||"",n[e]={...n[e],question:ne,web:[],isLoading:!0,answer:""},n})),V(!0);const u=Ve.length-1,d=Ve[u],p=[];Array.isArray(null===d||void 0===d?void 0:d.image)&&d.image.length>0&&p.push(...d.image),Array.isArray(null===d||void 0===d?void 0:d.files)&&d.files.length>0&&p.push(...d.files);new URLSearchParams({question:a.question,orgn:a.orgn,api:a.api,cid:a.cid,uid:a.uid,image:p?p.join(",,,"):"",drive:(null===d||void 0===d||null===(t=d.drive)||void 0===t?void 0:t.length)>0?d.drive.map((e=>e.file_url)).join(",,,"):"",search:Ae});const h=await fetch("https://sse.asklly.ai/v2/sse/api/rechat",{method:"POST",headers:{"Content-Type":"application/json",GTKN:me?`Bearer ${me}`:""},body:JSON.stringify({question:a.question,orgn:a.orgn,api:a.api,cid:a.cid,uid:a.uid,image:p?p.join(",,,"):"",drive:(null===d||void 0===d||null===(n=d.drive)||void 0===n?void 0:n.length)>0?d.drive.map((e=>e.file_url)).join(",,,"):"",search:Ae})});if(Tn("Thinking"),!h.ok||!h.body)throw new Error("Network response was not ok or streaming is not supported.");const f=h.body.getReader(),g=new TextDecoder("utf-8");let b="",v="";window.location.href.split("?")[0];const y=async t=>{let{done:n,value:i}=t;if(n)return await m(r),void V(!1);const o=g.decode(i),a=o.includes("<<>>")&&o.split("<<>>")[1].split("<<>>")[0]||"";if(b+=a?"":o,a)try{const e=a.includes("Chat Completion is Done. Done Streaming")?a.split("Chat Completion is Done. Done Streaming")[0]:a,t=JSON.parse(e);Ge((e=>{const n=e.length-1;return e.map(((e,r)=>r===n?{...e,web:t}:e))}))}catch(h){console.error("Invalid JSON in webSource:",a,h)}const s=o.includes("%%%")&&o.split("%%%")[1].split("%%%")[0]||"";if(s){const e=JSON.parse(s);Ge((t=>{const n=t.length-1;return t.map(((t,r)=>r===n?{...t,usage:e}:t))}))}const l=b.split("references;;");
205v=l[0].split("::id::")[0].replace(/\\n/gi,"\n");const c=l[1]?l[1].split("::id::")[0].split(";;;").filter((e=>""!==e)):[];let u,d=[];const p=b.split("::id::")[1];if(p){u=p.split("%%%")[0].replace(/\\n/gi,"\n").split("Chat Completion is Done. Done Streaming")[0],Pt(u)}return Ge((t=>t.map(((t,n)=>n===e?{...t,answer:v,reference:c,isLoading:!1,links:d||[]}:t)))),f.read().then(y)};return await f.read().then(y),V(!1),{success:!0,message:"Answer refreshed successfully"}}catch(qUe){return console.error(qUe),V(!1),{success:!1,message:"Failed to refresh answer"}}finally{C(!1)}}),[ne,Qe,I,at,Ae]),cn=()=>{ie(Ve[Ve.length-1].question),ee(!0)},un=()=>{ee(!1),ie(" ")},{todayChats:dn,yesterdayChats:pn,previous7DaysChats:hn,previous30DaysChats:fn,lastYearChats:mn}=en(),gn=[...dn],bn=[...pn],vn=[...hn],yn=[...fn],xn=[...mn];(0,c.useEffect)((()=>{const e=e=>(e=>e.sort(((e,t)=>t.timestamp-e.timestamp)))(e.filter((e=>e.chatName.toLowerCase().includes(de.toLowerCase()))));fe({today:e(gn),yesterday:e(bn),previous7Days:e(vn),previous30Days:e(yn),lastYear:e(xn)})}),[de,gn,bn,vn,yn,xn]);const wn=(e,t)=>0===t.length?null:(0,L.jsxs)(uw,{children:[(0,L.jsx)(Te.A,{sx:{fontWeight:400},children:e}),t.map((e=>(0,L.jsx)(wfe,{i:e,handleDelete:on,shareChat:()=>an(e.chatID),setShow:D,isMobile:A})))]}),[An,En]=(0,c.useState)(!1),[Sn,_n]=(0,c.useState)({name:"",description:"",aiPrompt:""}),[kn,Tn]=(0,c.useState)("Processing Image"),[Cn,On]=(0,c.useState)([]),Nn=()=>{En(!1),_n({name:"",description:"",aiPrompt:""})},In=async()=>{try{const e=localStorage.getItem("uid"),t=await(0,xi.qw)(e);$e(t.collections)}catch(qUe){console.error(qUe)}},Rn=e=>{Ot((t=>t.filter(((t,n)=>n!==e))))},Pn=e=>{It((t=>t.filter(((t,n)=>n!==e))))};(0,c.useEffect)((()=>{In()}),[]);const[jn,Mn]=(0,c.useState)(null),Dn=(0,c.useMemo)((()=>He.filter((e=>e.name.toLowerCase().includes(be.toLowerCase().trim())))),[He,be]);return(0,L.jsxs)(ue.A,{sx:{backgroundColor:"#fff",height:"100vh",display:"flex",flexDirection:"column"},children:[(0,L.jsx)(we,{enableColorOnDark:!0,position:"fixed",color:"inherit",elevation:0,sx:{bgcolor:o.palette.background.default},children:(0,L.jsx)(ke,{children:(0,L.jsx)(k_e,{selectedValues:Cn,setSelectedValues:On,api:kt,multi:!1,kbhub:!1,handleLeftDrawerToggle:null,showHome:!0,bot:Qe,handleSelectChange:e=>{const t=e.target.value;t.length<=3&&Je(t)},kbs:[],navi:()=>{Ge([]),j(""),w("/chat-with-bot")},toogleData:Ht,chatId:P,shareChat:an})})}),(0,L.jsxs)(uw,{direction:{xs:"column",md:"row"},sx:{flex:1,marginTop:{xs:10,md:9},overflow:"hidden"},children:[M&&(0,L.jsxs)(uw,{sx:{width:{xs:"100%",md:"25%",lg:"19%"},height:"100%",mb:{xs:2,md:0},border:0,overflow:"hidden",padding:"24px 16px"},children:[(0,L.jsx)(Te.A,{variant:"h4",sx:{fontSize:18,fontWeight:"600",color:"#1A1A1A",marginBottom:2,paddingLeft:"4px"},children:"Chats"}),(0,L.jsx)(Qi,{search:de,setSearch:pe}),(0,L.jsx)(ho.A,{sx:{overflow:"auto",flex:1,mt:2,maxHeight:"calc(100vh - 200px)","&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none","-ms-overflow-style":"none"},children:g?(0,L.jsxs)(uw,{justifyContent:"center",alignItems:"center",sx:{height:"100%",minHeight:"200px",backgroundColor:"rgba(238, 242, 246, 0.4)",borderRadius:2,py:3},children:[(0,L.jsx)(dA,{color:"secondary",size:32,thickness:4,sx:{mb:2,color:e=>e.palette.secondary.light}}),(0,L.jsx)(Te.A,{variant:"body2",sx:{color:"text.secondary",fontSize:14},children:"Loading chats..."})]}):(0,L.jsxs)(L.Fragment,{children:[wn("Today",he.today),wn("Yesterday",he.yesterday),wn("Past 7 Days",he.previous7Days),wn("Past 30 Days",he.previous30Days),wn("Last Year",he.lastYear)]})})]}),(0,L.jsx)(uw,{sx:{flex:1,backgroundColor:"#EEF2F6",borderTopLeftRadius:{xs:0,md:10},borderTopRightRadius:{xs:0,md:10},marginTop:{xs:0,md:2},padding:{xs:"8px",sm:"16px"},overflow:"hidden",border:0},children:z?(0,L.jsx)(uw,{justifyContent:"center",alignItems:"center",sx:{height:"100%"},children:(0,L.jsx)(dA,{color:"secondary"})}):Ve.length>0?(0,L.jsxs)(uw,{sx:{flex:1,display:"flex",flexDirection:"column",height:{xs:"calc(100vh - 56px)",sm:"calc(100vh - 64px)"},overflow:"hidden",backgroundColor:"white",borderRadius:2},children:[(0,L.jsx)(ho.A,{sx:{flex:1,overflow:"auto",padding:{xs:1,sm:2},"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none","-ms-overflow-style":"none"},children:(null===Ve||void 0===Ve?void 0:Ve.length)>0&&(null===Ve||void 0===Ve?void 0:Ve.map(((e,t)=>{var n,r;return(0,L.jsxs)(ue.A,{sx:{overflow:"auto",borderBottom:0,borderColor:"#c1c1c1"},children:[(0,L.jsx)(uw,{direction:"row",sx:{height:"90%",p:{xs:1,sm:2}},alignItems:"center",children:(0,L.jsx)(uw,{direction:"column",sx:{width:"100%"},children:!0===J&&t===Ve.length-1?(0,L.jsxs)(uw,{direction:"column",children:[(0,L.jsx)(Xa.A,{onChange:e=>ie(e.target.value),value:ne,multiline:!0,fullWidth:!0,variant:"outlined",color:"secondary"}),(0,L.jsxs)(uw,{direction:"row",sx:{mt:2},children:[(0,L.jsx)(Yx.A,{variant:"outlined",color:"secondary",onClick:()=>ln(t),children:"Submit"}),(0,L.jsx)(Yx.A,{sx:{ml:2},onClick:un,variant:"text",color:"error",children:"Cancel"})]})]}):(0,L.jsxs)(uw,{direction:"column",children:[(0,L.jsxs)("div",{className:"flex w-full justify-start mb-3 gap-3",children:[(null===e||void 0===e?void 0:e.image)&&e.image.length>0&&(0,L.jsxs)("div",{className:"mb-8",children:[(0,L.jsx)("h3",{className:"text-sm font-medium text-gray-500 mb-3",children:"Images"}),(0,L.jsx)("div",{className:"flex flex-wrap gap-4",children:e.image.map(((e,t)=>(0,L.jsx)("div",{className:"relative w-28 h-28 group",children:(0,L.jsx)("div",{className:"absolute inset-0 rounded-lg border border-gray-200 overflow-hidden shadow-sm transition-all duration-200 group-hover:shadow-md",children:(0,L.jsx)("img",{src:e,alt:`Image ${t+1}`,className:"w-full h-full object-cover cursor-pointer",onClick:()=>{Lt(e),xe("image"),Mt(!0)}})})},t)))})]}),(null===e||void 0===e?void 0:e.files)&&e.files.length>0&&(0,L.jsxs)("div",{className:"mb-8",children:[(0,L.jsx)("h3",{className:"text-sm font-medium text-gray-500 mb-3",children:"Files"}),(0,L.jsx)("div",{className:"flex flex-wrap gap-4",children:e.files.map(((e,t)=>{const n=e.split("/").pop();return(0,L.jsxs)("div",{className:"w-28 h-28 rounded-lg border border-gray-200 shadow-sm hover:shadow-md transition-all duration-200 flex flex-col items-center justify-center p-2 cursor-pointer",onClick:()=>{Lt(e),xe("file"),Mt(!0)},children:[(0,L.jsx)(T_e,{size:24,className:"text-gray-400 mb-2"}),(0,L.jsx)("p",{className:"text-xs text-center truncate w-full",title:n,children:n})]},t)}))})]}),(null===e||void 0===e?void 0:e.drive)&&e.drive.length>0&&(0,L.jsxs)("div",{children:[(0,L.jsx)("h3",{className:"text-sm font-medium text-gray-500 mb-3",children:"Exter
205nal Files"}),(0,L.jsx)("div",{className:"flex flex-wrap gap-4",children:e.drive.map(((e,t)=>(0,L.jsxs)("a",{href:e.file_url,target:"_blank",rel:"noopener noreferrer",className:"w-28 h-28 rounded-lg border border-gray-200 shadow-sm hover:shadow-md hover:border-blue-300 transition-all duration-200 flex flex-col items-center justify-center p-2 group",children:[(0,L.jsx)(xfe,{size:24,className:"text-gray-400 group-hover:text-blue-500 mb-2"}),(0,L.jsx)("p",{className:"text-xs text-center truncate w-full group-hover:text-blue-600",title:e.file_name,children:e.file_name})]},t)))})]})]}),(0,L.jsx)(K_e,{text:e.question,wordLimit:100}),t===Ve.length-1&&(0,L.jsx)("div",{className:"w-20",children:(0,L.jsx)(mi,{title:"edit question",placement:"bottom",children:(0,L.jsx)(Pa.A,{disabled:e.isLoading,onClick:cn,children:(0,L.jsx)(Mhe,{sx:{width:20}})})})})]})})}),(0,L.jsxs)(uw,{direction:"row",sx:{height:"fit-content",p:{xs:1,sm:2}},alignItems:"flex-start",children:[(0,L.jsx)(ue.A,{sx:{display:{xs:"none",sm:"block"}},children:(0,L.jsx)(C_e,{})}),(0,L.jsxs)(uw,{direction:"column",children:[(0,L.jsx)(Te.A,{variant:"h3",sx:{fontWeight:"700",ml:{xs:0,sm:2},mb:2},children:"Answer"}),(0,L.jsx)(BSe,{i:e,statusText:kn,setStatusText:Tn}),(0,L.jsxs)(uw,{direction:"row",children:[(null===e||void 0===e?void 0:e.web)&&(null===e||void 0===e?void 0:e.web.length)>0&&(0,L.jsxs)("button",{onClick:()=>{Ie(e.web||[]),Oe(!0)},className:"flex items-center space-x-2 p-2 bg-gray-100 rounded-full w-fit",children:[(0,L.jsx)("div",{className:"flex items-center",children:null===(n=e.web)||void 0===n?void 0:n.filter((e=>{var t;return null===e||void 0===e||null===(t=e.profile)||void 0===t?void 0:t.img})).slice(0,3).map(((e,t)=>(0,L.jsx)("img",{src:e.profile.img,alt:`Profile ${t+1}`,className:"w-6 h-6 rounded-full border-2 border-white -ml-2 first:ml-0",style:{zIndex:3-t}},t)))}),(0,L.jsxs)("span",{className:"text-sm font-semibold",children:[null===e||void 0===e||null===(r=e.web)||void 0===r?void 0:r.length," web pages"]})]}),!1===e.isLoading&&(0,L.jsx)(uw,{justifyContent:"space-between",direction:"row",alignItems:"center",children:(0,L.jsxs)(uw,{direction:"row",alignItems:"center",sx:{width:"100%"},children:[(0,L.jsx)(uw,{direction:"row",alignItems:"center",children:(0,L.jsx)(mi,{title:"copy",placement:"bottom",children:(0,L.jsx)(Pa.A,{onClick:()=>(e=>{const t=Ve[e].answer.replace(/<br\/?>/g,"");Mx()(t),aa.oR.success("Coppied text",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})})(t),children:(0,L.jsx)(yw,{size:18})})})}),t===Ve.length-1&&(0,L.jsx)(uw,{direction:"row",alignItems:"center",children:(0,L.jsx)(mi,{title:"Repeat Question",placement:"bottom",children:(0,L.jsx)(Pa.A,{onClick:()=>sn(t),children:(0,L.jsx)(O_e,{size:18})})})}),(0,L.jsx)(uw,{direction:"row",alignItems:"center",children:(0,L.jsx)(mi,{title:jn===t?"Stop Speaking":"Read Aloud",placement:"bottom",children:(0,L.jsx)(Pa.A,{onClick:()=>jn===t?(window.speechSynthesis.cancel(),void Mn(null)):(async e=>{null!==jn&&window.speechSynthesis.cancel();const t=Ve[e].answer.replace(/<br\/?>/g,""),n=new SpeechSynthesisUtterance(t);Mn(e),n.onend=()=>{Mn(null)},window.speechSynthesis.speak(n)})(t),children:jn===t?(0,L.jsx)(N_e,{size:18}):(0,L.jsx)(I_e,{size:18})})})}),(0,L.jsx)(uw,{direction:"row",alignItems:"center",children:(0,L.jsx)(mi,{title:"Bad Review",placement:"bottom",children:(0,L.jsx)(Pa.A,{onClick:()=>{le(t),X(!0)},children:(0,L.jsx)(R_e,{size:18})})})}),(0,L.jsx)(uw,{direction:"row",alignItems:"center",children:(0,L.jsx)(mi,{title:"Add To Collection",placement:"bottom",children:(0,L.jsx)(Pa.A,{onClick:()=>{_t({...St,cid:l,index:t}),bt(!0)},children:(0,L.jsx)(P_e,{size:18})})})}),e.usage&&(0,L.jsx)(uw,{direction:"row",alignItems:"center",children:(0,L.jsx)(mi,{title:"Tokens Usage",placement:"bottom",children:(0,L.jsx)(Pa.A,{onClick:()=>{le(t),k(!0)},children:(0,L.jsx)(j_e,{size:18})})})})]})})]})]})]}),(0,L.jsx)("div",{ref:U})]})})))}),(null===Ve||void 0===Ve||null===(e=Ve[se])||void 0===e?void 0:e.usage)&&(0,L.jsx)(Ls.A,{open:_,onClose:()=>
205k(!1),children:Ve[se]&&Ve[se].usage&&(0,L.jsxs)(ue.A,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:{xs:"90%",sm:"70%",md:"30%"},bgcolor:"background.paper",boxShadow:24,p:{xs:2,sm:4},borderRadius:2,maxHeight:"90vh",overflow:"auto"},children:[(0,L.jsxs)("div",{className:"flex justify-between items-center mb-4",children:[(0,L.jsx)(Te.A,{variant:"h3",gutterBottom:!0,children:"Token Usage"}),(0,L.jsx)(Pa.A,{onClick:()=>k(!1),children:(0,L.jsx)(mw,{size:20})})]}),(0,L.jsxs)(uw,{spacing:1,children:[(0,L.jsxs)(Te.A,{children:[(0,L.jsx)("strong",{children:"Prompt Token:"})," ",null===(t=Ve[se].usage["prompt Token"])||void 0===t?void 0:t.toLocaleString()]}),(0,L.jsxs)(Te.A,{children:[(0,L.jsx)("strong",{children:"Completion Token:"})," ",null===(n=Ve[se].usage["completion Token"])||void 0===n?void 0:n.toLocaleString()]}),(0,L.jsxs)(Te.A,{children:[(0,L.jsx)("strong",{children:"Total Token:"})," ",null===(r=Ve[se].usage["total Token"])||void 0===r?void 0:r.toLocaleString()]})]})]})}),(0,L.jsxs)("div",{className:"bg-gray-50 m-6 shadow-md rounded-md border border-gray-200",children:[(0,L.jsxs)("div",{className:"flex w-full justify-start mb-3",children:[0!==Ct.length&&Ct.map(((e,t)=>(0,L.jsxs)("div",{className:"relative w-28 h-28 border rounded-lg overflow-hidden",children:[(0,L.jsx)("button",{className:"absolute top-1 right-1 bg-black bg-opacity-50 text-white rounded-full p-1 text-xs",onClick:()=>Rn(t),children:"\u2716"}),(0,L.jsx)("img",{src:URL.createObjectURL(e),alt:"Selected",className:"w-full h-full object-cover"})]},t))),Nt.length>0&&Nt.map(((e,t)=>(0,L.jsxs)("div",{className:"relative mr-2 w-28 h-28 border rounded-lg overflow-hidden flex items-center justify-center p-2",children:[(0,L.jsx)("button",{className:"absolute top-1 right-1 bg-black bg-opacity-50 text-white rounded-full p-1 text-xs",onClick:()=>Pn(t),children:"\u2716"}),(0,L.jsx)("span",{className:"text-center text-sm break-words",children:e.name})]},t)))]}),(0,L.jsx)("div",{className:"w-full flex items-center px-4 py-2 bg-gray-50",children:(0,L.jsx)("input",{type:"text",placeholder:"Ask a question",className:"flex-grow outline-none text-sm bg-gray-50 text-black placeholder-gray-400",value:Ye,onChange:e=>{Ke(e.target.value)},onKeyDown:e=>{"Enter"!==e.key||T||rn()}})}),(0,L.jsxs)("div",{className:"flex justify-between items-center px-2 py-2",children:[(0,L.jsxs)("div",{className:"flex items-center gap-2",children:[(0,L.jsx)("div",{className:"border rounded-full border-black",children:(0,L.jsx)(z_e,{setToken:ge,token:me,setSelectedImage:Ot,selectedImage:Ct,selectedFiles:Nt,setSelectedFiles:It})}),(0,L.jsx)(G_e,{checked:Ae,setChecked:Ee,selectedBot:Se})]}),je?(0,L.jsx)("button",{className:"p-2 rounded-full bg-black text-white hover:bg-gray-800 disabled:bg-gray-400 disabled:cursor-not-allowed",onClick:Le,children:(0,L.jsx)(mfe,{className:"w-5 h-5"})}):Ye.length>1?(0,L.jsx)("button",{className:"p-2 rounded-full bg-black text-white hover:bg-gray-800 disabled:bg-gray-400 disabled:cursor-not-allowed",disabled:!Ye.length||T,onClick:rn,children:(0,L.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,L.jsx)("path",{fillRule:"evenodd",d:"M10.293 2.293a1 1 0 011.414 0l6 6a1 1 0 01-1.414 1.414L11 5.414V17a1 1 0 01-2 0V5.414L4.707 9.707A1 1 0 013.293 8.293l6-6z",clipRule:"evenodd"})})}):(0,L.jsx)("button",{className:"p-2 rounded-full bg-black text-white hover:bg-gray-800 disabled:bg-gray-400 disabled:cursor-not-allowed",onClick:De,children:(0,L.jsx)(gfe,{className:"w-5 h-5"})})]})]})]}):(0,L.jsxs)(uw,{sx:{height:{xs:"calc(100vh - 56px)",sm:"calc(100vh - 64px)"},overflow:"hidden",backgroundColor:"white",borderRadius:2,padding:5},children:[(0,L.jsx)("div",{className:"flex h-full justify-center items-center",children:(0,L.jsx)(Te.A,{variant:"h2",sx:{mb:2,fontWeight:"900"},children:"What can i help you with?"})}),(0,L.jsx)(uw,{sx:{flex:1,display:"flex",flexDirection:"column",justifyContent:"flex-end",alignItems:"center"},children:(0,L.jsxs)("div",{className:"bg-gray-50 w-full shadow-md rounded-md border border-gray-200",children:[(0,L.jsxs)("div",{className:"flex w-full justify-start mb-3",children:[0!==Ct.length&&Ct.map(((e,t)=>(0,L.jsxs)("div",{className:"relative w-28 h-28 border rounded-lg overflow-hidden",children:[(0,L.jsx)("button",{className:"absolute top-1 right-1 bg-black bg-opacity-50 text-white rounded-full p-1 text-xs",onClick:()=>Rn(t),children:"\u2716"}),(0,L.jsx)("img",{src:URL.createObjectURL(e),alt:"Selected",className:"w-full h-full object-cover"})]},t))),Nt.length>0&&Nt.map(((e,t)=>(0,L.jsxs)("div",{className:"relative mr-2 w-28 h-28 border rounded-lg overflow-hidden flex items-center justify-center p-2",children:[(0,L.jsx)("button",{className:"absolute top-1 right-1 bg-black bg-opacity-50 text-white rounded-full p-1 text-xs",onClick:()=>Pn(t),children:"\u2716"}),(0,L.jsx)("span",{className:"text-center text-sm break-words",children:e.name})]},t)))]}),(0,L.jsx)("div",{className:"w-full flex items-center px-4 py-2 bg-gray-50",children:(0,L.jsx)("input",{type:"text",placeholder:"Ask a question",className:"flex-grow outline-none text-sm bg-gray-50 text-black placeholder-gray-400",value:Ye,onChange:e=>{Ke(e.target.value)},onKeyDown:e=>{"Enter"!==e.key||T||rn()}})}),(0,L.jsxs)("div",{className:"flex justify-between items-center px-2 py-2",children:[(0,L.jsxs)("div",{className:"flex items-center gap-2",children:[(0,L.jsx)("div",{className:"border rounded-full border-black",children:(0,L.jsx)(z_e,{setToken:ge,token:me,setSelectedImage:Ot,selectedImage:Ct,selectedFiles:Nt,setSelectedFiles:It})}),(0,L.jsx)(G_e,{checked:Ae,setChecked:Ee,selectedBot:Se})]}),je?(0,L.jsx)("button",{className:"p-2 rounded-full bg-black text-white hover:bg-gray-800 disabled:bg-gray-400 disabled:cursor-not-allowed",onClick:Le,children:(0,L.jsx)(mfe,{className:"w-5 h-5"})}):Ye.length>1?(0,L.jsx)("button",{className:"p-2 rounded-full bg-black text-white hover:bg-gray-800 disabled:bg-gray-400 disabled:cursor-not-allowed",disabled:!Ye.length||T,onClick:rn,children:(0,L.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,L.jsx)("path",{fillRule:"evenodd",d:"M10.293 2.293a1 1 0 011.414 0l6 6a1 1 0 01-1.414 1.414L11 5.414V17a1 1 0 01-2 0V5.414L4.707 9.707A1 1 0 013.293 8.293l6-6z",clipRule:"evenodd"})})}):(0,L.jsx)("button",{className:"p-2 rounded-full bg-black text-white hover:bg-gray-800 disabled:bg-gray-400 disabled:cursor-not-allowed",onClick:De,children:(0,L.jsx)(gfe,{className:"w-5 h-5"})})]})]})})]})}),M&&(0,L.jsxs)(uw,{sx:{width:{xs:"100%",md:"25%",lg:"19%"},height:"100%",display:{xs:"none",md:"block"},mb:{xs:2,md:0},border:0,overflow:"hidden",padding:3},children:[(0,L.jsxs)(uw,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{mb:2},children:[(0,L.jsx)(Te.A,{variant:"h4",sx:{fontSize:18,fontWeight:"600",color:"#1A1A1A",marginBottom:2,paddingLeft:"4px"},children:"Collections"}),(0,L.jsx)(mi,{title:"Create Collection",placement:"top",children:(0,L.jsx)(Pa.A,{onClick:()=>{En(!0)},children:(0,L.jsx)(bfe,{className:"text-lg font-bold"})})})]}),He.length>0?(0,L.jsx)(Qi,{search:be,setSearch:ve}):(0,L.jsx)(Te.A,{variant:"body1",children:"Create New Collection"}),(0,L.jsx)(uw,{sx:{width:"100%",height:"100%",display:{xs:M?"block":"none",md:"block"},mb:{xs:2,md:0},border:0,overflow:"hidden"},children:(0,L.jsx)(ho.A,{sx:{overflow:"auto",flex:1,maxHeight:{xs:"c
205alc(100% - 56px)",md:"calc(100% - 64px)"},"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none","-ms-overflow-style":"none"},children:Dn.map((e=>(0,L.jsx)(L_e,{item:e,index:He.findIndex((t=>t.id===e.id)),nav:w,setCollections:$e},e.id)))})})]})]}),(0,L.jsx)(Ls.A,{open:K,onClose:()=>X(!1),children:(0,L.jsxs)(ue.A,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:{xs:"90%",sm:"60%",md:"50%"},bgcolor:"background.paper",boxShadow:24,p:{xs:2,sm:4},borderRadius:2},children:[(0,L.jsxs)(uw,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,L.jsx)(Te.A,{variant:"h2",children:"Feedback"}),(0,L.jsx)(Pa.A,{onClick:()=>X(!1),children:(0,L.jsx)(Dw,{})})]}),(0,L.jsx)(Te.A,{variant:"body1",children:"Your feedback will help us improve the model"}),(0,L.jsx)(ue.A,{sx:{my:3,display:"grid",gridTemplateColumns:{xs:"1fr 1fr",sm:"1fr 1fr 1fr"},gap:2},children:["Answer Inaccurate","Didnt fully followed the prompt","No Answer came","Being lazy","Others"].map((e=>(0,L.jsx)(so,{label:e,sx:{color:dfe.A[800]},variant:Z===e?"filled":"outlined",onClick:()=>Q(e)},e)))}),(0,L.jsx)(Xa.A,{fullWidth:!0,color:"secondary",placeholder:"(optional) Enter your Feedback about the answer",onChange:e=>ae(e.target.value),multiline:!0,rows:3}),(0,L.jsx)(Yx.A,{variant:"outlined",color:"secondary",sx:{mt:2},onClick:async()=>{const e=localStorage.getItem("uid");if(!Z)return aa.oR.error("Select an feedback",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});if("Others"===Z&&""===oe)return aa.oR.error("Enter an feedback",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});const t={useruid:e,review:"negative",feedback:Z+" "+oe,chatid:P,chatindex:se};await(0,xi.pd)(t),X(!1),Q(""),ae("")},children:"Submit"})]})}),(0,L.jsx)(Ls.A,{open:nt,onClose:()=>{Be(null),rt(!1)},"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:(0,L.jsxs)(ue.A,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:{xs:"90%",sm:"70%"},bgcolor:"background.paper",boxShadow:24,p:{xs:2,sm:4},borderRadius:2,maxHeight:"90vh",overflow:"auto"},children:[(0,L.jsx)(Te.A,{variant:"h6",component:"h2",children:"Script Code"}),(0,L.jsx)(ue.A,{sx:{mt:2,p:2,bgcolor:"grey.100",borderRadius:1},children:(0,L.jsx)("pre",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word"},children:(0,L.jsxs)("code",{children:["<head>\n",'   <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/chat_x_interface/dist/output.css">\n',"</head>\n","<script>\n","   window.chatx = {\n",`        chatbotKey: "${et}"\n`,"   }\n","<\/script>\n",'<script src="https://cdn.jsdelivr.net/npm/chat_x_interface/dist/index.min.js"><\/script>']})})}),(0,L.jsx)(Yx.A,{variant:"contained",color:"primary",onClick:()=>{const e=`\n      <head>\n        <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/chat_x_interface/dist/output.css">\n      </head>\n      <script>\n        window.chatx = {\n          chatbotKey: "${et}"\n        }\n      <\/script>\n      <script src="https://cdn.jsdelivr.net/npm/chat_x_interface/dist/index.min.js"><\/script>\n    `;Mx()(e),ot("Copied")},sx:{mt:2,mr:1},children:it}),(0,L.jsx)(Yx.A,{variant:"contained",color:"error",onClick:()=>{rt(!1)},sx:{mt:2},children:"Close"})]})}),(0,L.jsx)(tH,{file:ut,fileName:pt,openDrawer:lt,close:async()=>{dt(""),ht(""),ct(!1)}}),(0,L.jsxs)(mce,{open:An,onClose:Nn,fullWidth:!0,maxWidth:"sm",children:[(0,L.jsx)(Ude,{children:"Create New Collection"}),(0,L.jsxs)(Lde,{children:[(0,L.jsx)(Xa.A,{autoFocus:!0,margin:"dense",label:"Name",type:"text",color:"secondary",fullWidth:!0,variant:"outlined",value:Sn.name,onChange:e=>_n({...Sn,name:e.target.value})}),(0,L.jsx)(Xa.A,{margin:"dense",label:"Description",type:"text",fullWidth:!0,variant:"outlined",color:"secondary",multiline:!0,rows:3,value:Sn.description,onChange:e=>_n({...Sn,description:e.target.value})}),(0,L.jsx)(Xa.A,{margin:"dense",label:"AI Prompt (optional)",type:"text",fullWidth:!0,variant:"outlined",color:"secondary",multiline:!0,rows:3,value:Sn.aiPrompt,onChange:e=>_n({...Sn,aiPrompt:e.target.value})})]}),(0,L.jsxs)(Ide,{children:[(0,L.jsx)(Yx.A,{onClick:Nn,color:"error",disabled:vt,children:"Cancel"}),(0,L.jsx)(Yx.A,{onClick:async()=>{yt(!0);const e=localStorage.getItem("uid"),t=new FormData;t.append("collection_name",Sn.name),t.append("collection_description",Sn.description),t.append("ai_prompt",Sn.aiPrompt||"null"),t.append("uid",e),await(0,xi.No)(t),await In(),Nn(),yt(!1)},variant:"outlined",color:"secondary",disabled:!Sn.name||!Sn.description||vt,children:vt?"Creating...":"Create"})]})]}
205),(0,L.jsxs)(mce,{open:gt,sx:{display:"flex",alignItems:"center",justifyContent:"center","& .MuiDialog-paper":{width:{xs:"85vw",sm:"85vw",md:"50vw",lg:"30vw",xl:"30vw"},maxWidth:"80%",maxHeight:{xs:"90vh",sm:"85vh",md:"75vh",lg:"70vh",xl:"70vh"},margin:0}},onClose:()=>{_t({cid:"",index:"",selectedCollectionId:""}),bt(!1)},"aria-labelledby":"collection-dialog-title","aria-describedby":"collection-dialog-description",children:[(0,L.jsx)(Ude,{children:(0,L.jsx)(Te.A,{variant:"h3",children:"Select a Collection"})}),(0,L.jsx)(Lde,{sx:{mt:1,overflowY:"auto"},children:0===He.length?(0,L.jsx)(Te.A,{children:"No collections available. Create a new collection first."}):(0,L.jsx)(fl.A,{sx:{width:"100%",height:"100%"},children:(0,L.jsx)(Zs.A,{labelId:"collection-select-label",id:"collection-select",value:St.selectedCollectionId,color:"secondary",onChange:e=>{const t=He.find((t=>t.id===e.target.value));t&&_t({...St,selectedCollectionId:t.id})},children:He.map((e=>(0,L.jsx)(Qs.A,{value:e.id,children:e.name},e.id)))})})}),(0,L.jsxs)(Ide,{children:[(0,L.jsx)(Yx.A,{onClick:()=>{_t({cid:"",index:"",selectedCollectionId:""}),bt(!1)},color:"error",disabled:xt,children:"Cancel"}),(0,L.jsx)(Yx.A,{onClick:async()=>{const e=localStorage.getItem("uid"),t=new FormData;t.append("index",St.index),t.append("chatID",St.cid),wt(!0),await(0,xi.Eo)(St.selectedCollectionId,e,t),wt(!1),bt(!1)},color:"secondary",variant:"outlined",disabled:!St.selectedCollectionId||xt,children:xt?"Adding...":"Add"})]})]}),(0,L.jsx)(Ks,{open:Ce,anchor:"right",onClose:()=>{Ie([]),Oe(!1)},children:(0,L.jsxs)("div",{className:"p-6 md:max-w-[50vw] w-screen",children:[(0,L.jsxs)("div",{className:"flex justify-between items-center",children:[(0,L.jsx)(Te.A,{variant:"h4",children:"Search Result"}),(0,L.jsx)(Pa.A,{onClick:()=>{Ie([]),Oe(!1)},children:(0,L.jsx)(mw,{size:20})})]}),Ne&&Ne.map(((e,t)=>{var n,r;return(0,L.jsxs)("a",{target:"_blank",href:null===e||void 0===e?void 0:e.url,className:"p-2 gap-2",children:[(0,L.jsx)("div",{className:"flex gap-5",children:(0,L.jsx)(Te.A,{variant:"h4",children:null===e||void 0===e?void 0:e.title})}),(0,L.jsx)("p",{className:"mb-3 mt-2",dangerouslySetInnerHTML:{__html:null===e||void 0===e?void 0:e.description}}),(0,L.jsxs)("div",{className:"flex gap-3",children:[(null===e||void 0===e||null===(n=e.profile)||void 0===n?void 0:n.img)&&(0,L.jsx)("img",{src:null===e||void 0===e?void 0:e.profile.img,className:"w-5 h-5 rounded-md"}),(r=e.url,r?new URL(r).hostname.replace("www.",""):"")]})]},t)}))]})}),(0,L.jsx)(Ks,{open:jt,anchor:"right",onClose:()=>{Lt(""),xe(""),Mt(!1)},children:(0,L.jsxs)("div",{className:"md:w-[50vw] sm:w-screen p-7",children:[(0,L.jsxs)("div",{className:"flex justify-between items-center",children:[(0,L.jsx)("h2",{className:"font-bold text-xl",children:ut.split("/").pop()||"Attachment"}),(0,L.jsx)(Pa.A,{onClick:()=>{Lt(""),xe(""),Mt(!1)},children:(0,L.jsx)(Dw,{className:"cursor-pointer"})})]}),(0,L.jsx)("div",{className:"h-[80vh] p-1",children:"image"===ye?(0,L.jsx)("div",{children:(0,L.jsx)("img",{src:Dt,className:"w-3/4"})}):(0,L.jsx)(Xz,{viewerUrl:"https://docs.google.com/gview?url=%URL%&embedded=true",url:Dt||"",loaded:()=>Bt(!1),viewer:"url"})})]})})]})};var SUe={path:"/api",element:(0,L.jsx)(EUe,{})};var _Ue=function(){var e;const{getCachedUserInfo:t,fetchMetricsChart:n,fetchtrainedApi:r}=ma(),[o,a]=(0,c.useState)(null),[s,l]=(0,c.useState)(!1),[u,d]=(0,c.useState)([]),[p,h]=(0,c.useState)(!1),[f,m]=(0,c.useState)([]);(0,c.useEffect)((()=>{b()}),[]);const g=async e=>{try{h(!0);const t=await n(e);return m(t),h(!1),t}catch(qUe){console.error(qUe)}};(0,c.useEffect)((()=>{(async()=>{try{const e=localStorage.getItem("uid"),t=await r(e);d(t.data)}catch(e){console.error(e)}})()}),[]);const b=async()=>{l(!0);const e=new FormData,t=localStorage.getItem("organization"),n=localStorage.getItem("uid");e.append("org",t),e.append("uid",n);const r={organization:t},i=await(0,xi.ms)(e);console.log(i);const o=await g(r);a(i),m(o),l(!1)};return(0,L.jsxs)("div",{children:[(0,L.jsxs)(Co.A,{children:[(0,L.jsx)(uw,{justifyContent:"space-between",direction:"row",alignItems:"center",children:(0,L.jsxs)("div",{className:"flex justify-center items-center",children:[(0,L.jsx)(i.N_,{to:"/marketplace",children:(0,L.jsx)(rw.A,{color:"secondary"})}),(0,L.jsx)(pw,{}),(0,L.jsx)(i.N_,{to:"/usage",children:(0,L.jsx)(Te.A,{sx:{fontWeight:"bold"},children:"Usage"})})]})}),(0,L.jsx)(uw,{sx:{mt:1},children:(0,L.jsx)(Te.A,{children:"Organization Usage Details"})})]}),s?(0,L.jsx)("div",{className:"h-[50vh] flex justify-center items-center",children:(0,L.jsx)(dA,{color:"secondary"})}):o&&(0,L.jsx)(L.Fragment,{children:(0,L.jsxs)("div",{className:"max-w-full mx-auto pt-5 space-y-6",children:[(0,L.jsxs)("div",{className:"grid md:grid-cols-2 gap-6",children:[(0,L.jsx)(Ce.A,{children:(0,L.jsx)(ea.A,{className:"p-6",children:(0,L.jsxs)("div",{className:"space-y-4",children:[(0,L.jsx)("p",{className:"text-gray-600",children:"No. of Knowledge Hub created"}),(0,L.jsx)("p",{className:"text-4xl font-semibold",children:o.total_kb})]})})}),(0,L.jsx)(Ce.A,{children:(0,L.jsx)(ea.A,{className:"p-6",children:(0,L.jsxs)("div",{className:"space-y-4",children:[(0,L.jsx)("p",{className:"text-gray-600",children:"No. of files uploaded"}),(0,L.jsx)("p",{className:"text-4xl font-semibold",children:o.total_files}),(0,L.jsxs)("div",{className:"space-y-2",children:[(0,L.jsxs)("div",{className:"flex justify-between text-sm",children:[(0,L.jsxs)("span",{children:[o.total_file_size," Mb used"]}),(0,L.jsx)("span",{children:"24.96 GB Remain"})]}),(0,L.jsx)("div",{className:"w-full bg-gray-200 rounded-full h-2",children:(0,L.jsx)("div",{className:"bg-purple-600 h-2 rounded-full",style:{width:"0.16%"}})})]})]})})})]}),(0,L.jsx)(Ce.A,{children:(0,L.jsx)(ea.A,{className:"p-6",children:(0,L.jsxs)("div",{className:"space-y-4",children:[(0,L.jsx)("p",{className:"text-gray-600",children:"No. of Assistants Created"}),(0,L.jsx)("p",{className:"text-4xl font-semibold",children:o.total_bots})]})})}),(0,L.jsx)(Ce.A,{children:(0,L.jsx)(ea.A,{className:"p-6",children:(0,L.jsx)("div",{className:"flex justify-between items-center",children:(0,L.jsxs)("div",{className:"space-y-1",children:[(0,L.jsx)("p",{className:"text-gray-600",children:"No. of Chat Tokens used"}),(0,L.jsx)("p",{className:"font-semibold",children:o.tokens})]})})})}),(0,L.jsx)(Ce.A,{children:(0,L.jsx)(ea.A,{className:"p-6",children:(0,L.jsx)(wse,{fetchMetricsChart:g,apiData:f,loading:p,api_bots:u,selectedTenant:{org_id:localStorage.getItem("organization")}})})}),(0,L.jsxs)("div",{className:"space-y-4",children:[(0,L.jsxs)("div",{className:"flex justify-between items-center",children:[(0,L.jsx)("h2",{className:"text-xl font-semibold",children:"Knowledge Base Usage"}),(0,L.jsxs)("button",{className:"flex items-center gap-2 px-4 py-2 border rounded-md hover:bg-gray-50",onClick:()=>
205{if(!o||!o.kb_metrics)return void aa.oR.error("No data available to download");const e=[["Name","No of Files","Storage (MB)"],...o.kb_metrics.map((e=>[e.kb_name,e.no_of_files,Number(e.size).toFixed(1)]))].map((e=>e.join(","))).join("\n"),t=new Blob([e],{type:"text/csv;charset=utf-8;"}),n=document.createElement("a");if(void 0!==n.download){const e=URL.createObjectURL(t);n.setAttribute("href",e),n.setAttribute("download","knowledge_base_usage.csv"),n.style.visibility="hidden",document.body.appendChild(n),n.click(),document.body.removeChild(n)}},children:["Download Usage as CSV",(0,L.jsx)(Xae,{className:"w-4 h-4"})]})]}),(0,L.jsx)("div",{className:"overflow-x-auto",children:(0,L.jsxs)("table",{className:"w-full",children:[(0,L.jsx)("thead",{children:(0,L.jsxs)("tr",{className:"border-b",children:[(0,L.jsx)("th",{className:"text-left py-4 px-4 font-medium text-gray-600",children:"Name"}),(0,L.jsx)("th",{className:"text-left py-4 px-4 font-medium text-gray-600",children:"No of Files"}),(0,L.jsx)("th",{className:"text-left py-4 px-4 font-medium text-gray-600",children:"Storage (MB)"})]})}),(0,L.jsx)("tbody",{children:0===(null===o||void 0===o||null===(e=o.kb_metrics)||void 0===e?void 0:e.length)?(0,L.jsx)("tr",{className:"border-b hover:bg-gray-50",children:(0,L.jsx)("td",{colSpan:"3",className:"py-4 px-4 text-center",children:"No knowledge hub have been created"})}):o.kb_metrics.map(((e,t)=>(0,L.jsxs)("tr",{className:"border-b hover:bg-gray-50",children:[(0,L.jsx)("td",{className:"py-4 px-4 text-purple-600",children:e.kb_name}),(0,L.jsx)("td",{className:"py-4 px-4",children:e.no_of_files}),(0,L.jsx)("td",{className:"py-4 px-4",children:Number(e.size).toFixed(1)})]},t)))})]})})]})]})})]})};var kUe={path:"/usage",element:(0,L.jsx)(Ab,{}),children:[{path:"",element:(0,L.jsx)(_Ue,{})}]};function TUe(){return(0,te.Ye)([IRe,wke,ERe,DRe,JRe,qBe,YBe,rUe,oUe,gUe,kUe,xUe,AUe,SUe])}var CUe=__webpack_require__(79525);function OUe(e){var t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,b,v,y,x,w,A,E,S,_,k,T,C,O,N,I,R,P;return{mode:null===e||void 0===e||null===(t=e.customization)||void 0===t?void 0:t.navType,common:{black:null===(n=e.colors)||void 0===n?void 0:n.darkPaper},primary:{light:null===(r=e.colors)||void 0===r?void 0:r.primaryLight,main:null===(i=e.colors)||void 0===i?void 0:i.primaryMain,dark:null===(o=e.colors)||void 0===o?void 0:o.primaryDark,200:null===(a=e.colors)||void 0===a?void 0:a.primary200,800:null===(s=e.colors)||void 0===s?void 0:s.primary800},secondary:{light:null===(l=e.colors)||void 0===l?void 0:l.secondaryLight,main:null===(c=e.colors)||void 0===c?void 0:c.secondaryMain,dark:null===(u=e.colors)||void 0===u?void 0:u.secondaryDark,200:null===(d=e.colors)||void 0===d?void 0:d.secondary200,800:null===(p=e.colors)||void 0===p?void 0:p.secondary800},error:{light:null===(h=e.colors)||void 0===h?void 0:h.errorLight,main:null===(f=e.colors)||void 0===f?void 0:f.errorMain,dark:null===(m=e.colors)||void 0===m?void 0:m.errorDark},orange:{light:null===(g=e.colors)||void 0===g?void 0:g.orangeLight,main:null===(b=e.colors)||void 0===b?void 0:b.orangeMain,dark:null===(v=e.colors)||void 0===v?void 0:v.orangeDark},warning:{light:null===(y=e.colors)||void 0===y?void 0:y.warningLight,main:null===(x=e.colors)||void 0===x?void 0:x.warningMain,dark:null===(w=e.colors)||void 0===w?void 0:w.warningDark},success:{light:null===(A=e.colors)||void 0===A?void 0:A.successLight,200:null===(E=e.colors)||void 0===E?void 0:E.success200,main:null===(S=e.colors)||void 0===S?void 0:S.successMain,dark:null===(_=e.colors)||void 0===_?void 0:_.successDark},grey:{50:null===(k=e.colors)||void 0===k?void 0:k.grey50,100:null===(T=e.colors)||void 0===T?void 0:T.grey100,500:e.darkTextSecondary,600:e.heading,700:e.darkTextPrimary,900:e.textDark},dark:{light:null===(C=e.colors)||void 0===C?void 0:C.darkTextPrimary,main:null===(O=e.colors)||void 0===O?void 0:O.darkLevel1,dark:null===(N=e.colors)||void 0===N?void 0:N.darkLevel2,800:null===(I=e.colors)||void 0===I?void 0:I.darkBackground,900:null===(R=e.colors)||void 0===R?void 0:R.darkPaper},text:{primary:e.darkTextPrimary,secondary:e.darkTextSecondary,dark:e.textDark,hint:null===(P=e.colors)||void 0===P?void 0:P.grey100},background:{paper:e.paper,default:e.backgroundDefault}}}function NUe(e){var t,n;return{fontFamily:null===e||void 0===e||null===(t=e.customization)||void 0===t?void 0:t.fontFamily,h6:{fontWeight:500,color:e.heading,fontSize:"0.75rem"},h5:{fontSize:"0.875rem",color:e.heading,fontWeight:500},h4:{fontSize:"1rem",color:e.heading,fontWeight:600},h3:{fontSize:"1.25rem",color:e.heading,fontWeight:600},h2:{fontSize:"1.5rem",color:e.heading,fontWeight:700},h1:{fontSize:"2.125rem",color:e.heading,fontWeight:700},subtitle1:{fontSize:"0.875rem",fontWeight:500,color:e.textDark},subtitle2:{fontSize:"0.75rem",fontWeight:400,color:e.darkTextSecondary},caption:{fontSize:"0.75rem",color:e.darkTextSecondary,fontWeight:400},body1:{fontSize:"0.875rem",fontWeight:400,lineHeight:"1.334em"},body2:{letterSpacing:"0em",fontWeight:400,lineHeight:"1.5em",color:e.darkTextPrimary},button:{textTransform:"capitalize"},customInput:{marginTop:1,marginBottom:1,"& > label":{top:23,left:0,color:e.grey500,'&[data-shrink="false"]':{top:5}},"& > div > input":{padding:"30.5px 14px 11.5px !important"},"& legend":{display:"none"},"& fieldset":{top:0}},mainContent:{backgroundColor:e.background,width:"100%",minHeight:"calc(100vh - 88px)",flexGrow:1,padding:"20px",marginTop:"88px",marginRight:"20px",borderRadius:`${null===e||void 0===e||null===(n=e.customization)||void 0===n?void 0:n.borderRadius}px`},menuCaption:{fontSize:"0.875rem",fontWeight:500,color:e.heading,padding:"6px",textTransform:"capitalize",marginTop:"10px"},subMenuCaption:{fontSize:"0.6875rem",fontWeight:500,color:e.darkTextSecondary,textTransform:"capitalize"},commonAvatar:{cursor:"pointer",borderRadius:"8px"},smallAvatar:{width:"22px",height:"22px",fontSize:"1rem"},mediumAvatar:{width:"34px",height:"34px",fontSize:"1.2rem"},largeAvatar:{width:"44px",height:"44px",fontSize:"1.5rem"}}}var IUe=e=>{const t={colors:fRe,heading:fRe.grey900,paper:fRe.paper,backgroundDefault:fRe.paper,background:fRe.primaryLight,darkTextPrimary:fRe.grey700,darkTextSecondary:fRe.grey500,textDark:fRe.grey900,menuSelected:fRe.secondary
205Dark,menuSelectedBack:fRe.secondaryLight,divider:fRe.grey200,customization:e},n={direction:"ltr",palette:OUe(t),mixins:{toolbar:{minHeight:"48px",padding:"16px","@media (min-width: 600px)":{minHeight:"48px"}}},typography:NUe(t)},r=(0,CUe.A)(n);return r.components=function(e){var t,n,r,i,o,a,s,l,c,u,d,p,h;const f=null===(t=e.colors)||void 0===t?void 0:t.grey50;return{MuiButton:{styleOverrides:{root:{fontWeight:500,borderRadius:"4px"}}},MuiPaper:{defaultProps:{elevation:0},styleOverrides:{root:{backgroundImage:"none"},rounded:{borderRadius:`${null===e||void 0===e||null===(n=e.customization)||void 0===n?void 0:n.borderRadius}px`}}},MuiCardHeader:{styleOverrides:{root:{color:null===(r=e.colors)||void 0===r?void 0:r.textDark,padding:"24px"},title:{fontSize:"1.125rem"}}},MuiCardContent:{styleOverrides:{root:{padding:"24px"}}},MuiCardActions:{styleOverrides:{root:{padding:"24px"}}},MuiListItemButton:{styleOverrides:{root:{color:e.darkTextPrimary,paddingTop:"10px",paddingBottom:"10px","&.Mui-selected":{color:e.menuSelected,backgroundColor:e.menuSelectedBack,"&:hover":{backgroundColor:e.menuSelectedBack},"& .MuiListItemIcon-root":{color:e.menuSelected}},"&:hover":{backgroundColor:e.menuSelectedBack,color:e.menuSelected,"& .MuiListItemIcon-root":{color:e.menuSelected}}}}},MuiListItemIcon:{styleOverrides:{root:{color:e.darkTextPrimary,minWidth:"36px"}}},MuiListItemText:{styleOverrides:{primary:{color:e.textDark}}},MuiInputBase:{styleOverrides:{input:{color:e.textDark,"&::placeholder":{color:e.darkTextSecondary,fontSize:"0.875rem"}}}},MuiOutlinedInput:{styleOverrides:{root:{background:f,borderRadius:`${null===e||void 0===e||null===(i=e.customization)||void 0===i?void 0:i.borderRadius}px`,"& .MuiOutlinedInput-notchedOutline":{borderColor:null===(o=e.colors)||void 0===o?void 0:o.grey400},"&:hover $notchedOutline":{borderColor:null===(a=e.colors)||void 0===a?void 0:a.primaryLight},"&.MuiInputBase-multiline":{padding:1}},input:{fontWeight:500,background:f,padding:"15.5px 14px",borderRadius:`${null===e||void 0===e||null===(s=e.customization)||void 0===s?void 0:s.borderRadius}px`,"&.MuiInputBase-inputSizeSmall":{padding:"10px 14px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0}}},inputAdornedStart:{paddingLeft:4},notchedOutline:{borderRadius:`${null===e||void 0===e||null===(l=e.customization)||void 0===l?void 0:l.borderRadius}px`}}},MuiSlider:{styleOverrides:{root:{"&.Mui-disabled":{color:null===(c=e.colors)||void 0===c?void 0:c.grey300}},mark:{backgroundColor:e.paper,width:"4px"},valueLabel:{color:null===e||void 0===e||null===(u=e.colors)||void 0===u?void 0:u.primaryLight}}},MuiDivider:{styleOverrides:{root:{borderColor:e.divider,opacity:1}}},MuiAvatar:{styleOverrides:{root:{color:null===(d=e.colors)||void 0===d?void 0:d.primaryDark,background:null===(p=e.colors)||void 0===p?void 0:p.primary200}}},MuiChip:{styleOverrides:{root:{"&.MuiChip-deletable .MuiChip-deleteIcon":{color:"inherit"}}}},MuiTooltip:{styleOverrides:{tooltip:{color:e.paper,background:null===(h=e.colors)||void 0===h?void 0:h.grey700}}}}}(t),r},RUe=__webpack_require__(11942);const PUe=e=>{let{children:t}=e;const n=(0,te.zy)(),{pathname:r}=n;return(0,c.useEffect)((()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})}),[r]),t||null};PUe.propTypes={children:__webpack_require__.n(RUe)().node};var jUe=PUe;var MUe=()=>{const e=x((e=>e.customization));return(0,L.jsx)(K.A,{injectFirst:!0,children:(0,L.jsx)(Y,{theme:IUe(e),children:(0,L.jsxs)(fa,{children:[(0,L.jsx)(ee,{}),(0,L.jsx)(jUe,{children:(0,L.jsx)(TUe,{})})]})})})};function DUe(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var LUe="function"===typeof Symbol&&Symbol.observable||"@@observable",FUe=function(){return Math.random().toString(36).substring(7).split("").join(".")},BUe={INIT:"@@redux/INIT"+FUe(),REPLACE:"@@redux/REPLACE"+FUe(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+FUe()}};function UUe(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function zUe(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(DUe(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(DUe(1));return n(zUe)(e,t)}if("function"!==typeof e)throw new Error(DUe(2));var i=e,o=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function u(){if(l)throw new Error(DUe(3));return o}function d(e){if("function"!==typeof e)throw new Error(DUe(4));if(l)throw new Error(DUe(5));var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error(DUe(6));t=!1,c();var n=s.indexOf(e);s.splice(n,1),a=null}}}
205function p(e){if(!UUe(e))throw new Error(DUe(7));if("undefined"===typeof e.type)throw new Error(DUe(8));if(l)throw new Error(DUe(9));try{l=!0,o=i(o,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}return p({type:BUe.INIT}),(r={dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!==typeof e)throw new Error(DUe(10));i=e,p({type:BUe.REPLACE})}})[LUe]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(DUe(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[LUe]=function(){return this},e},r}const HUe={isOpen:[],defaultId:"default",fontFamily:ot.fontFamily,borderRadius:ot.borderRadius,opened:!0};var $Ue=function(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:HUe,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case bi:return e=n.id,{...t,isOpen:[e]};case gi:return{...t,opened:n.opened};case vi:return{...t,fontFamily:n.fontFamily};case yi:return{...t,borderRadius:n.borderRadius};default:return t}};const VUe=zUe(function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];0,"function"===typeof e[i]&&(n[i]=e[i])}var o,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if("undefined"===typeof n(void 0,{type:BUe.INIT}))throw new Error(DUe(12));if("undefined"===typeof n(void 0,{type:BUe.PROBE_UNKNOWN_ACTION()}))throw new Error(DUe(13))}))}(n)}catch(s){o=s}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var r=!1,i={},s=0;s<a.length;s++){var l=a[s],c=n[l],u=e[l],d=c(u,t);if("undefined"===typeof d){t&&t.type;throw new Error(DUe(14))}i[l]=d,r=r||d!==u}return(r=r||a.length!==Object.keys(e).length)?i:e}}({customization:$Ue}));const GUe=document.getElementById("root");(0,r.H)(GUe).render((0,L.jsx)(_,{store:VUe,children:(0,L.jsx)(la,{clientId:"213035923017-4srpv6fnu4r8qfohdq0ouflh173e705q.apps.googleusercontent.com",children:(0,L.jsxs)(i.Kd,{children:[(0,L.jsx)(MUe,{}),(0,L.jsx)(aa.N9,{})]})})})),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((e=>{e.unregister()})).catch((e=>{console.error(e.message)}))}()})();

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