@nylas/react 1.1.0-canary.18 → 1.1.0-canary.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{add-circle-icon_2.entry-3b13ee64.js → add-circle-icon_2.entry-3ca337a6.js} +5 -5
- package/dist/{add-circle-icon_2.entry-3091976b.cjs → add-circle-icon_2.entry-adde5fdf.cjs} +1 -1
- package/dist/{archive-icon_7.entry-c2b6d860.cjs → archive-icon_7.entry-2b56ef80.cjs} +1 -1
- package/dist/{archive-icon_7.entry-8932618a.js → archive-icon_7.entry-896a1054.js} +13 -13
- package/dist/{arrow-icon.entry-a159bee8.cjs → arrow-icon.entry-0288f3fc.cjs} +1 -1
- package/dist/arrow-icon.entry-9aaa93fd.js +15 -0
- package/dist/{bold-icon_3.entry-447d0537.js → bold-icon_3.entry-0061cf1f.js} +4 -4
- package/dist/{bold-icon_3.entry-c51e1af3.cjs → bold-icon_3.entry-e7810620.cjs} +1 -1
- package/dist/button-component_4.entry-276606e6.js +115 -0
- package/dist/button-component_4.entry-e53a8f37.cjs +1 -0
- package/dist/calendar-agenda-fill-icon_35.entry-a19cae9c.js +4178 -0
- package/dist/calendar-agenda-fill-icon_35.entry-fa968081.cjs +7 -0
- package/dist/{calendar-cancel-icon.entry-a78f27bc.js → calendar-cancel-icon.entry-71eae711.js} +1 -1
- package/dist/{calendar-cancel-icon.entry-805febcc.cjs → calendar-cancel-icon.entry-8e8b25b6.cjs} +1 -1
- package/dist/{calendar-check-icon_2.entry-4a0fd7bd.cjs → calendar-check-icon_2.entry-562e98cf.cjs} +1 -1
- package/dist/{calendar-check-icon_2.entry-7c8b6c92.js → calendar-check-icon_2.entry-6f971ca2.js} +1 -1
- package/dist/{calendar-icon.entry-1fc018b4.cjs → calendar-icon.entry-3a59af30.cjs} +1 -1
- package/dist/{calendar-icon.entry-96f9727f.js → calendar-icon.entry-3e496896.js} +1 -1
- package/dist/{chevron-icon_3.entry-25d90239.js → chevron-icon_3.entry-7eac0ed5.js} +37 -34
- package/dist/chevron-icon_3.entry-7ff10540.cjs +1 -0
- package/dist/{clock-icon_2.entry-c1b22ed4.js → clock-icon_2.entry-120d672e.js} +5 -5
- package/dist/{clock-icon_2.entry-2406c3d0.cjs → clock-icon_2.entry-43873262.cjs} +1 -1
- package/dist/{constants-f34b9c6e-b774916c.cjs → constants-7ce66b44-a951d78c.cjs} +5 -5
- package/dist/{constants-f34b9c6e-f1c4dd0d.js → constants-7ce66b44-e7ca66c2.js} +484 -383
- package/dist/copy-icon_4.entry-57874c4f.cjs +1 -0
- package/dist/copy-icon_4.entry-9a949d24.js +45 -0
- package/dist/{document-refresh-icon.entry-570f9c9d.js → document-refresh-icon.entry-f0d95ac8.js} +5 -5
- package/dist/document-refresh-icon.entry-f1d3f32d.cjs +1 -0
- package/dist/elements/index.d.ts +14 -0
- package/dist/{elements-dc5b338e-550a6cb1.cjs → elements-dc5b338e-62b53496.cjs} +1 -1
- package/dist/{elements-dc5b338e-cafa7a55.js → elements-dc5b338e-974e2077.js} +1 -1
- package/dist/{focus-visible-e8093c16-022799ce.js → focus-visible-e8093c16-7a512fc0.js} +1 -1
- package/dist/{focus-visible-e8093c16-c14162e8.cjs → focus-visible-e8093c16-923e1041.cjs} +1 -1
- package/dist/{forward-icon_6.entry-55752b23.cjs → forward-icon_6.entry-45b70066.cjs} +3 -3
- package/dist/{forward-icon_6.entry-9b832146.js → forward-icon_6.entry-675c0b73.js} +9 -9
- package/dist/{globe-icon.entry-2b61820e.js → globe-icon.entry-3296e427.js} +2 -2
- package/dist/{globe-icon.entry-dabe7b8b.cjs → globe-icon.entry-7ecd6221.cjs} +1 -1
- package/dist/google-logo-icon_4.entry-aa9f8b35.js +584 -0
- package/dist/google-logo-icon_4.entry-fd734a59.cjs +1 -0
- package/dist/index-53420959-1c0d390d.js +5 -0
- package/dist/index-53420959-8e7b10db.cjs +1 -0
- package/dist/{index-812162da.js → index-5efb84b8.js} +813 -793
- package/dist/{index-6d9eeb53-3edef246.js → index-6d9eeb53-4e2a7f9f.js} +2 -2
- package/dist/{index-6d9eeb53-3049fc04.cjs → index-6d9eeb53-aa1dfa96.cjs} +1 -1
- package/dist/index-d36b8fb8.cjs +42 -0
- package/dist/{index.es-9cc0eb3c-52226859.js → index.es-9cc0eb3c-65f8af0c.js} +1 -1
- package/dist/{index.es-9cc0eb3c-0c99c055.cjs → index.es-9cc0eb3c-8eefd4fc.cjs} +1 -1
- package/dist/{info-icon_2.entry-5f6b9af8.cjs → info-icon_2.entry-e612f1d6.cjs} +1 -1
- package/dist/{info-icon_2.entry-2fe6c16c.js → info-icon_2.entry-f06c8dd0.js} +8 -8
- package/dist/{input-dropdown_2.entry-dbdb5aa3.cjs → input-dropdown_2.entry-ad380260.cjs} +1 -1
- package/dist/{input-dropdown_2.entry-dbd0d6f4.js → input-dropdown_2.entry-ccd95678.js} +3 -3
- package/dist/{loading-icon.entry-e179f122.cjs → loading-icon.entry-678a6b3f.cjs} +1 -1
- package/dist/loading-icon.entry-9e6670d5.js +15 -0
- package/dist/{mailbox-store-64b4ef7c-0eac526c.cjs → mailbox-store-64b4ef7c-9bd02ffd.cjs} +1 -1
- package/dist/{mailbox-store-64b4ef7c-22a6c565.js → mailbox-store-64b4ef7c-b56d5e78.js} +2 -2
- package/dist/multi-select-dropdown.entry-5bb80d89.cjs +1 -0
- package/dist/multi-select-dropdown.entry-edf10867.js +91 -0
- package/dist/{nylas-booked-event-card_10.entry-e0990f5b.js → nylas-booked-event-card_10.entry-92f6e85d.js} +267 -235
- package/dist/nylas-booked-event-card_10.entry-ad4671b2.cjs +1 -0
- package/dist/{nylas-custom-booking-flow.entry-bc64af5f.js → nylas-custom-booking-flow.entry-b39a2bf2.js} +3 -3
- package/dist/{nylas-custom-booking-flow.entry-898c8cc9.cjs → nylas-custom-booking-flow.entry-cef0041a.cjs} +1 -1
- package/dist/{nylas-form-card.entry-c564b52e.js → nylas-form-card.entry-bf4545e2.js} +11 -11
- package/dist/{nylas-form-card.entry-0c71f4fc.cjs → nylas-form-card.entry-fba5d623.cjs} +1 -1
- package/dist/{nylas-if-state.entry-e9486e12.js → nylas-if-state.entry-2739dc10.js} +3 -3
- package/dist/{nylas-if-state.entry-ff6a2046.cjs → nylas-if-state.entry-d7b818a6.cjs} +1 -1
- package/dist/{nylas-list-folders.entry-90716d2b.cjs → nylas-list-folders.entry-0ec6ba20.cjs} +1 -1
- package/dist/{nylas-list-folders.entry-0258af1e.js → nylas-list-folders.entry-3197e390.js} +7 -7
- package/dist/{nylas-list-threads.entry-21edf012.cjs → nylas-list-threads.entry-2a7e1e84.cjs} +1 -1
- package/dist/{nylas-list-threads.entry-1abcdd30.js → nylas-list-threads.entry-9004c490.js} +3 -3
- package/dist/{nylas-login.entry-2e0ce95e.cjs → nylas-login.entry-c2ffd6a5.cjs} +1 -1
- package/dist/{nylas-login.entry-ba7383ac.js → nylas-login.entry-f2927406.js} +3 -3
- package/dist/{nylas-mailbox-pagination.entry-ba6beb08.cjs → nylas-mailbox-pagination.entry-839c9ad3.cjs} +1 -1
- package/dist/{nylas-mailbox-pagination.entry-f6186560.js → nylas-mailbox-pagination.entry-e9356835.js} +2 -2
- package/dist/{nylas-mailbox-toolbar-button.entry-e18059b0.js → nylas-mailbox-toolbar-button.entry-298a3c47.js} +10 -10
- package/dist/{nylas-mailbox-toolbar-button.entry-0875aadb.cjs → nylas-mailbox-toolbar-button.entry-43812d51.cjs} +1 -1
- package/dist/{nylas-mailbox.entry-2e3815ed.js → nylas-mailbox.entry-aa42f6c4.js} +4 -4
- package/dist/{nylas-mailbox.entry-bb2905bf.cjs → nylas-mailbox.entry-cf13ddf5.cjs} +1 -1
- package/dist/{nylas-provider.entry-69ee5061.js → nylas-provider.entry-1a3a195f.js} +39 -39
- package/dist/{nylas-provider.entry-51c5cdbf.cjs → nylas-provider.entry-843b5593.cjs} +1 -1
- package/dist/nylas-scheduler-editor.entry-048e7a8f.cjs +2 -0
- package/dist/{nylas-scheduler-editor.entry-d4a9afb1.js → nylas-scheduler-editor.entry-d56d6d2a.js} +138 -119
- package/dist/nylas-scheduling.entry-0ad9b1d0.cjs +1 -0
- package/dist/{nylas-scheduling.entry-f82a2822.js → nylas-scheduling.entry-7039a890.js} +52 -52
- package/dist/{nylas-threads-refresh.entry-99001756.cjs → nylas-threads-refresh.entry-9cae6ac8.cjs} +1 -1
- package/dist/{nylas-threads-refresh.entry-72482d2f.js → nylas-threads-refresh.entry-d951050a.js} +10 -10
- package/dist/nylas-threads-search.entry-0d34c5a8.cjs +1 -0
- package/dist/{nylas-threads-search.entry-c5fe50e5.js → nylas-threads-search.entry-7a4bbc75.js} +17 -17
- package/dist/{nylas-time-window-picker.entry-ccffcf2b.cjs → nylas-time-window-picker.entry-062bc8c1.cjs} +1 -1
- package/dist/{nylas-time-window-picker.entry-0d93e7cc.js → nylas-time-window-picker.entry-210c3f1a.js} +2 -2
- package/dist/{nylas-view-thread.entry-2d34b41c.js → nylas-view-thread.entry-8b39a997.js} +6 -6
- package/dist/{nylas-view-thread.entry-58432a52.cjs → nylas-view-thread.entry-db78ed9c.cjs} +1 -1
- package/dist/play-icon_2.entry-19271982.cjs +1 -0
- package/dist/play-icon_2.entry-c53f3cac.js +25 -0
- package/dist/react.cjs +1 -1
- package/dist/react.js +115 -101
- package/dist/{refresh-icon.entry-a041136d.js → refresh-icon.entry-75139a0c.js} +4 -4
- package/dist/{refresh-icon.entry-1e670732.cjs → refresh-icon.entry-e695cf7f.cjs} +1 -1
- package/dist/{register-component-a5a9ca5d-a5c01c35.js → register-component-a5a9ca5d-d69a7a05.js} +1 -1
- package/dist/{register-component-a5a9ca5d-b68b6039.cjs → register-component-a5a9ca5d-eebf89e7.cjs} +1 -1
- package/dist/scheduler-config-store-9ccfba4d-22a58b7d.cjs +1 -0
- package/dist/{scheduler-config-store-4a50a03d-ee42ff96.js → scheduler-config-store-9ccfba4d-fd62a421.js} +8 -6
- package/dist/{scheduler-store-f02ce045-23a14e3f.js → scheduler-store-8a400448-3b007d4d.js} +125 -96
- package/dist/scheduler-store-8a400448-44e0edad.cjs +1 -0
- package/dist/{textarea-component.entry-24a830c1.cjs → textarea-component.entry-48feabb3.cjs} +1 -1
- package/dist/{textarea-component.entry-1b4c771b.js → textarea-component.entry-ead5ab00.js} +7 -6
- package/dist/{translate-icon.entry-44bde57b.js → translate-icon.entry-55043beb.js} +2 -2
- package/dist/{translate-icon.entry-0c0add25.cjs → translate-icon.entry-5f62bc61.cjs} +1 -1
- package/dist/{warning-icon.entry-9a77ab01.cjs → warning-icon.entry-2e0a80da.cjs} +1 -1
- package/dist/{warning-icon.entry-8956cba2.js → warning-icon.entry-fa644462.js} +5 -5
- package/package.json +3 -3
- package/dist/arrow-icon.entry-1f54c377.js +0 -15
- package/dist/button-component.entry-52ccb6d9.js +0 -16
- package/dist/button-component.entry-e79b2d08.cjs +0 -1
- package/dist/calendar-info-icon_28.entry-2054703c.cjs +0 -1
- package/dist/calendar-info-icon_28.entry-e7bebd13.js +0 -2083
- package/dist/chevron-icon_3.entry-7bd4a4b5.cjs +0 -1
- package/dist/document-refresh-icon.entry-a0293858.cjs +0 -1
- package/dist/google-logo-icon_4.entry-60c0d39a.cjs +0 -1
- package/dist/google-logo-icon_4.entry-a0dc33da.js +0 -467
- package/dist/index-53420959-67beefed.js +0 -5
- package/dist/index-53420959-d3254a34.cjs +0 -1
- package/dist/index-e3e9b594.cjs +0 -42
- package/dist/input-component.entry-1195d579.js +0 -45
- package/dist/input-component.entry-2b6e44c4.cjs +0 -1
- package/dist/loading-icon.entry-027a2ad1.js +0 -15
- package/dist/nylas-booked-event-card_10.entry-84f64ba5.cjs +0 -1
- package/dist/nylas-scheduler-editor.entry-923b8566.cjs +0 -2
- package/dist/nylas-scheduling.entry-54f1a5e9.cjs +0 -1
- package/dist/nylas-threads-search.entry-462527fd.cjs +0 -1
- package/dist/play-icon_2.entry-1ea3fd6b.cjs +0 -1
- package/dist/play-icon_2.entry-d08adf17.js +0 -25
- package/dist/scheduler-config-store-4a50a03d-884e6df8.cjs +0 -1
- package/dist/scheduler-store-f02ce045-42e3647c.cjs +0 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";var Fi=Object.defineProperty;var Li=(t,e,n)=>e in t?Fi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Mt=(t,e,n)=>(Li(t,typeof e!="symbol"?e+"":e,n),n);const Te=require("react");require("react-dom");const Ui="nylas-web-elements",gr={allRenderFn:!0,appendChildSlotFix:!1,asyncLoading:!0,asyncQueue:!1,attachStyles:!0,cloneNodeFix:!1,cmpDidLoad:!0,cmpDidRender:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpShouldUpdate:!1,cmpWillLoad:!0,cmpWillRender:!0,cmpWillUpdate:!0,connectedCallback:!0,constructableCSS:!0,cssAnnotations:!0,devTools:!1,disconnectedCallback:!0,element:!1,event:!0,experimentalScopedSlotChanges:!1,experimentalSlotFixes:!1,formAssociated:!0,hasRenderFn:!0,hostListener:!0,hostListenerTarget:!0,hostListenerTargetBody:!0,hostListenerTargetDocument:!0,hostListenerTargetParent:!1,hostListenerTargetWindow:!0,hotModuleReplacement:!1,hydrateClientSide:!1,hydrateServerSide:!1,hydratedAttribute:!1,hydratedClass:!0,initializeNextTick:!1,invisiblePrehydration:!0,isDebug:!1,isDev:!1,isTesting:!1,lazyLoad:!0,lifecycle:!0,lifecycleDOMEvents:!1,member:!0,method:!0,mode:!1,observeAttribute:!0,profile:!1,prop:!0,propBoolean:!0,propMutable:!0,propNumber:!0,propString:!0,reflect:!1,scoped:!0,scopedSlotTextContentFix:!1,scriptDataOpts:!1,shadowDelegatesFocus:!1,shadowDom:!0,slot:!0,slotChildNodesFix:!1,slotRelocation:!0,state:!0,style:!0,svg:!0,taskQueue:!0,transformTagName:!1,updatable:!0,vdomAttribute:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomPropOrAttr:!0,vdomRef:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,vdomXlink:!1,watchCallback:!0};let Ze,Ht,Ct,vr=!1,pt=!1,on=!1,de=!1,Bt=null,Wt=!1;const Pe=(t,e="")=>()=>{},Yi=(t,e)=>()=>{},Hi="{visibility:hidden}.hydrated{visibility:inherit}",wr="slot-fb{display:contents}slot-fb[hidden]{display:none}",Bi=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],On={},Wi="http://www.w3.org/2000/svg",ji="http://www.w3.org/1999/xhtml",qi=t=>t!=null,an=t=>(t=typeof t,t==="object"||t==="function");function br(t){var e,n,r;return(r=(n=(e=t.head)===null||e===void 0?void 0:e.querySelector('meta[name="csp-nonce"]'))===null||n===void 0?void 0:n.getAttribute("content"))!==null&&r!==void 0?r:void 0}const sn=(t,e,...n)=>{let r=null,i=null,a=null,o=!1,s=!1;const l=[],u=f=>{for(let h=0;h<f.length;h++)r=f[h],Array.isArray(r)?u(r):r!=null&&typeof r!="boolean"&&((o=typeof t!="function"&&!an(r))&&(r=String(r)),o&&s?l[l.length-1].$text$+=r:l.push(o?yt(null,r):r),s=o)};if(u(n),e){e.key&&(i=e.key),e.name&&(a=e.name);{const f=e.className||e.class;f&&(e.class=typeof f!="object"?f:Object.keys(f).filter(h=>f[h]).join(" "))}}if(typeof t=="function")return t(e===null?{}:e,l,Ki);const d=yt(t,null);return d.$attrs$=e,l.length>0&&(d.$children$=l),d.$key$=i,d.$name$=a,d},yt=(t,e)=>{const n={$flags$:0,$tag$:t,$text$:e,$elm$:null,$children$:null};return n.$attrs$=null,n.$key$=null,n.$name$=null,n},$r={},zi=t=>t&&t.$tag$===$r,Ki={forEach:(t,e)=>t.map(Mn).forEach(e),map:(t,e)=>t.map(Mn).map(e).map(Gi)},Mn=t=>({vattrs:t.$attrs$,vchildren:t.$children$,vkey:t.$key$,vname:t.$name$,vtag:t.$tag$,vtext:t.$text$}),Gi=t=>{if(typeof t.vtag=="function"){const n=Object.assign({},t.vattrs);return t.vkey&&(n.key=t.vkey),t.vname&&(n.name=t.vname),sn(t.vtag,n,...t.vchildren||[])}const e=yt(t.vtag,t.vtext);return e.$attrs$=t.vattrs,e.$children$=t.vchildren,e.$key$=t.vkey,e.$name$=t.vname,e},Zi=(t,e)=>t!=null&&!an(t)?e&4?t==="false"?!1:t===""||!!t:e&2?parseFloat(t):e&1?String(t):t:t,Er=t=>xe(t).$hostElement$,Ji=(t,e,n)=>{const r=Er(t);return{emit:i=>Cr(r,e,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:i})}},Cr=(t,e,n)=>{const r=z.ce(e,n);return t.dispatchEvent(r),r},Nn=new WeakMap,Xi=(t,e,n)=>{let r=gt.get(t);So&&n?(r=r||new CSSStyleSheet,typeof r=="string"?r=e:r.replaceSync(e)):r=e,gt.set(t,r)},Qi=(t,e,n)=>{var r;const i=Tr(e),a=gt.get(i);if(t=t.nodeType===11?t:oe,a)if(typeof a=="string"){t=t.head||t;let o=Nn.get(t),s;if(o||Nn.set(t,o=new Set),!o.has(i)){{s=oe.createElement("style"),s.innerHTML=a;const l=(r=z.$nonce$)!==null&&r!==void 0?r:br(oe);l!=null&&s.setAttribute("nonce",l),t.insertBefore(s,t.querySelector("link"))}e.$flags$&4&&(s.innerHTML+=wr),o&&o.add(i)}}else t.adoptedStyleSheets.includes(a)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,a]);return i},Vi=t=>{const e=t.$cmpMeta$,n=t.$hostElement$,r=e.$flags$,i=Pe("attachStyles",e.$tagName$),a=Qi(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);r&10&&(n["s-sc"]=a,n.classList.add(a+"-h"),r&2&&n.classList.add(a+"-s")),i()},Tr=(t,e)=>"sc-"+t.$tagName$,Pn=(t,e,n,r,i,a)=>{if(n!==r){let o=Wn(t,e),s=e.toLowerCase();if(e==="class"){const l=t.classList,u=Fn(n),d=Fn(r);l.remove(...u.filter(f=>f&&!d.includes(f))),l.add(...d.filter(f=>f&&!u.includes(f)))}else if(e==="style"){for(const l in n)(!r||r[l]==null)&&(l.includes("-")?t.style.removeProperty(l):t.style[l]="");for(const l in r)(!n||r[l]!==n[l])&&(l.includes("-")?t.style.setProperty(l,r[l]):t.style[l]=r[l])}else if(e!=="key")if(e==="ref")r&&r(t);else if(!o&&e[0]==="o"&&e[1]==="n"){if(e[2]==="-"?e=e.slice(3):Wn(ct,s)?e=s.slice(2):e=s[2]+e.slice(3),n||r){const l=e.endsWith(kr);e=e.replace(to,""),n&&z.rel(t,e,n,l),r&&z.ael(t,e,r,l)}}else{const l=an(r);if((o||l&&r!==null)&&!i)try{if(t.tagName.includes("-"))t[e]=r;else{const u=r??"";e==="list"?o=!1:(n==null||t[e]!=u)&&(t[e]=u)}}catch{}r==null||r===!1?(r!==!1||t.getAttribute(e)==="")&&t.removeAttribute(e):(!o||a&4||i)&&!l&&(r=r===!0?"":r,t.setAttribute(e,r))}}},eo=/\s/,Fn=t=>t?t.split(eo):[],kr="Capture",to=new RegExp(kr+"$"),xr=(t,e,n,r)=>{const i=e.$elm$.nodeType===11&&e.$elm$.host?e.$elm$.host:e.$elm$,a=t&&t.$attrs$||On,o=e.$attrs$||On;for(r in a)r in o||Pn(i,r,a[r],void 0,n,e.$flags$);for(r in o)Pn(i,r,a[r],o[r],n,e.$flags$)},mt=(t,e,n,r)=>{const i=e.$children$[n];let a=0,o,s,l;if(vr||(on=!0,i.$tag$==="slot"&&(Ze&&r.classList.add(Ze+"-s"),i.$flags$|=i.$children$?2:1)),i.$text$!==null)o=i.$elm$=oe.createTextNode(i.$text$);else if(i.$flags$&1)o=i.$elm$=oe.createTextNode("");else{if(de||(de=i.$tag$==="svg"),o=i.$elm$=oe.createElementNS(de?Wi:ji,i.$flags$&2?"slot-fb":i.$tag$),de&&i.$tag$==="foreignObject"&&(de=!1),xr(null,i,de),qi(Ze)&&o["s-si"]!==Ze&&o.classList.add(o["s-si"]=Ze),i.$children$)for(a=0;a<i.$children$.length;++a)s=mt(t,i,a,o),s&&o.appendChild(s);i.$tag$==="svg"?de=!1:o.tagName==="foreignObject"&&(de=!0)}return o["s-hn"]=Ct,i.$flags$&3&&(o["s-sr"]=!0,o["s-cr"]=Ht,o["s-sn"]=i.$name$||"",l=t&&t.$children$&&t.$children$[n],l&&l.$tag$===i.$tag$&&t.$elm$&&st(t.$elm$,!1)),o},st=(t,e)=>{z.$flags$|=1;const n=t.childNodes;for(let r=n.length-1;r>=0;r--){const i=n[r];i["s-hn"]!==Ct&&i["s-ol"]&&(Dr(i).insertBefore(i,ln(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,on=!0),e&&st(i,e)}z.$flags$&=-2},Sr=(t,e,n,r,i,a)=>{let o=t["s-cr"]&&t["s-cr"].parentNode||t,s;for(o.shadowRoot&&o.tagName===Ct&&(o=o.shadowRoot);i<=a;++i)r[i]&&(s=mt(null,n,i,t),s&&(r[i].$elm$=s,o.insertBefore(s,ln(e))))},Ir=(t,e,n)=>{for(let r=e;r<=n;++r){const i=t[r];if(i){const a=i.$elm$;Ar(i),a&&(pt=!0,a["s-ol"]?a["s-ol"].remove():st(a,!0),a.remove())}}},no=(t,e,n,r,i=!1)=>{let a=0,o=0,s=0,l=0,u=e.length-1,d=e[0],f=e[u],h=r.length-1,p=r[0],m=r[h],w,b;for(;a<=u&&o<=h;)if(d==null)d=e[++a];else if(f==null)f=e[--u];else if(p==null)p=r[++o];else if(m==null)m=r[--h];else if(ht(d,p,i))Je(d,p,i),d=e[++a],p=r[++o];else if(ht(f,m,i))Je(f,m,i),f=e[--u],m=r[--h];else if(ht(d,m,i))(d.$tag$==="slot"||m.$tag$==="slot")&&st(d.$elm$.parentNode,!1),Je(d,m,i),t.insertBefore(d.$elm$,f.$elm$.nextSibling),d=e[++a],m=r[--h];else if(ht(f,p,i))(d.$tag$==="slot"||m.$tag$==="slot")&&st(f.$elm$.parentNode,!1),Je(f,p,i),t.insertBefore(f.$elm$,d.$elm$),f=e[--u],p=r[++o];else{for(s=-1,l=a;l<=u;++l)if(e[l]&&e[l].$key$!==null&&e[l].$key$===p.$key$){s=l;break}s>=0?(b=e[s],b.$tag$!==p.$tag$?w=mt(e&&e[o],n,s,t):(Je(b,p,i),e[s]=void 0,w=b.$elm$),p=r[++o]):(w=mt(e&&e[o],n,o,t),p=r[++o]),w&&Dr(d.$elm$).insertBefore(w,ln(d.$elm$))}a>u?Sr(t,r[h+1]==null?null:r[h+1].$elm$,n,r,o,h):o>h&&Ir(e,a,u)},ht=(t,e,n=!1)=>t.$tag$===e.$tag$?t.$tag$==="slot"?t.$name$===e.$name$:n?!0:t.$key$===e.$key$:!1,ln=t=>t&&t["s-ol"]||t,Dr=t=>(t["s-ol"]?t["s-ol"]:t).parentNode,Je=(t,e,n=!1)=>{const r=e.$elm$=t.$elm$,i=t.$children$,a=e.$children$,o=e.$tag$,s=e.$text$;let l;s===null?(de=o==="svg"?!0:o==="foreignObject"?!1:de,o==="slot"||xr(t,e,de),i!==null&&a!==null?no(r,i,e,a,n):a!==null?(t.$text$!==null&&(r.textContent=""),Sr(r,null,e,a,0,a.length-1)):i!==null&&Ir(i,0,i.length-1),de&&o==="svg"&&(de=!1)):(l=r["s-cr"])?l.parentNode.textContent=s:t.$text$!==s&&(r.data=s)},_r=t=>{const e=t.childNodes;for(const n of e)if(n.nodeType===1){if(n["s-sr"]){const r=n["s-sn"];n.hidden=!1;for(const i of e)if(i!==n){if(i["s-hn"]!==n["s-hn"]||r!==""){if(i.nodeType===1&&(r===i.getAttribute("slot")||r===i["s-sn"])){n.hidden=!0;break}}else if(i.nodeType===1||i.nodeType===3&&i.textContent.trim()!==""){n.hidden=!0;break}}}_r(n)}},Oe=[],Rr=t=>{let e,n,r;for(const i of t.childNodes){if(i["s-sr"]&&(e=i["s-cr"])&&e.parentNode){n=e.parentNode.childNodes;const a=i["s-sn"];for(r=n.length-1;r>=0;r--)if(e=n[r],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==i["s-hn"]&&!gr.experimentalSlotFixes)if(Ln(e,a)){let o=Oe.find(s=>s.$nodeToRelocate$===e);pt=!0,e["s-sn"]=e["s-sn"]||a,o?(o.$nodeToRelocate$["s-sh"]=i["s-hn"],o.$slotRefNode$=i):(e["s-sh"]=i["s-hn"],Oe.push({$slotRefNode$:i,$nodeToRelocate$:e})),e["s-sr"]&&Oe.map(s=>{Ln(s.$nodeToRelocate$,e["s-sn"])&&(o=Oe.find(l=>l.$nodeToRelocate$===e),o&&!s.$slotRefNode$&&(s.$slotRefNode$=o.$slotRefNode$))})}else Oe.some(o=>o.$nodeToRelocate$===e)||Oe.push({$nodeToRelocate$:e})}i.nodeType===1&&Rr(i)}},Ln=(t,e)=>t.nodeType===1?t.getAttribute("slot")===null&&e===""||t.getAttribute("slot")===e:t["s-sn"]===e?!0:e==="",Ar=t=>{t.$attrs$&&t.$attrs$.ref&&t.$attrs$.ref(null),t.$children$&&t.$children$.map(Ar)},ro=(t,e,n=!1)=>{var r,i,a,o;const s=t.$hostElement$,l=t.$cmpMeta$,u=t.$vnode$||yt(null,null),d=zi(e)?e:sn(null,null,e);if(Ct=s.tagName,n&&d.$attrs$)for(const f of Object.keys(d.$attrs$))s.hasAttribute(f)&&!["key","ref","style","class"].includes(f)&&(d.$attrs$[f]=s[f]);d.$tag$=null,d.$flags$|=4,t.$vnode$=d,d.$elm$=u.$elm$=s.shadowRoot||s,Ze=s["s-sc"],Ht=s["s-cr"],vr=(l.$flags$&1)!==0,pt=!1,Je(u,d,n);{if(z.$flags$|=1,on){Rr(d.$elm$);for(const f of Oe){const h=f.$nodeToRelocate$;if(!h["s-ol"]){const p=oe.createTextNode("");p["s-nr"]=h,h.parentNode.insertBefore(h["s-ol"]=p,h)}}for(const f of Oe){const h=f.$nodeToRelocate$,p=f.$slotRefNode$;if(p){const m=p.parentNode;let w=p.nextSibling;{let b=(r=h["s-ol"])===null||r===void 0?void 0:r.previousSibling;for(;b;){let k=(i=b["s-nr"])!==null&&i!==void 0?i:null;if(k&&k["s-sn"]===h["s-sn"]&&m===k.parentNode&&(k=k.nextSibling,!k||!k["s-nr"])){w=k;break}b=b.previousSibling}}(!w&&m!==h.parentNode||h.nextSibling!==w)&&h!==w&&(!h["s-hn"]&&h["s-ol"]&&(h["s-hn"]=h["s-ol"].parentNode.nodeName),m.insertBefore(h,w),h.nodeType===1&&(h.hidden=(a=h["s-ih"])!==null&&a!==void 0?a:!1))}else h.nodeType===1&&(n&&(h["s-ih"]=(o=h.hidden)!==null&&o!==void 0?o:!1),h.hidden=!0)}}pt&&_r(d.$elm$),z.$flags$&=-2,Oe.length=0}Ht=void 0},Or=(t,e)=>{e&&!t.$onRenderResolve$&&e["s-p"]&&e["s-p"].push(new Promise(n=>t.$onRenderResolve$=n))},Tt=(t,e)=>{if(t.$flags$|=16,t.$flags$&4){t.$flags$|=512;return}return Or(t,t.$ancestorComponent$),Do(()=>io(t,e))},io=(t,e)=>{const n=Pe("scheduleUpdate",t.$cmpMeta$.$tagName$),r=t.$lazyInstance$;let i;return e?(t.$flags$|=256,t.$queuedListeners$&&(t.$queuedListeners$.map(([a,o])=>Me(r,a,o)),t.$queuedListeners$=void 0),i=Me(r,"componentWillLoad")):i=Me(r,"componentWillUpdate"),i=Un(i,()=>Me(r,"componentWillRender")),n(),Un(i,()=>ao(t,r,e))},Un=(t,e)=>oo(t)?t.then(e):e(),oo=t=>t instanceof Promise||t&&t.then&&typeof t.then=="function",ao=async(t,e,n)=>{var r;const i=t.$hostElement$,a=Pe("update",t.$cmpMeta$.$tagName$),o=i["s-rc"];n&&Vi(t);const s=Pe("render",t.$cmpMeta$.$tagName$);so(t,e,i,n),o&&(o.map(l=>l()),i["s-rc"]=void 0),s(),a();{const l=(r=i["s-p"])!==null&&r!==void 0?r:[],u=()=>lo(t);l.length===0?u():(Promise.all(l).then(u),t.$flags$|=4,l.length=0)}},so=(t,e,n,r)=>{try{Bt=e,e=e.render(),t.$flags$&=-17,t.$flags$|=2,ro(t,e,r)}catch(i){I(i,t.$hostElement$)}return Bt=null,null},Yn=()=>Bt,lo=t=>{const e=t.$cmpMeta$.$tagName$,n=t.$hostElement$,r=Pe("postUpdate",e),i=t.$lazyInstance$,a=t.$ancestorComponent$;Me(i,"componentDidRender"),t.$flags$&64?(Me(i,"componentDidUpdate"),r()):(t.$flags$|=64,Nr(n),Me(i,"componentDidLoad"),r(),t.$onReadyResolve$(n),a||Mr()),t.$onInstanceResolve$(n),t.$onRenderResolve$&&(t.$onRenderResolve$(),t.$onRenderResolve$=void 0),t.$flags$&512&&un(()=>Tt(t,!1)),t.$flags$&=-517},Hn=t=>{{const e=xe(t),n=e.$hostElement$.isConnected;return n&&(e.$flags$&18)===2&&Tt(e,!1),n}},Mr=t=>{Nr(oe.documentElement),un(()=>Cr(ct,"appload",{detail:{namespace:Ui}}))},Me=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(r){I(r)}},Nr=t=>t.classList.add("hydrated"),co=(t,e)=>xe(t).$instanceValues$.get(e),uo=(t,e,n,r)=>{const i=xe(t),a=i.$hostElement$,o=i.$instanceValues$.get(e),s=i.$flags$,l=i.$lazyInstance$;n=Zi(n,r.$members$[e][0]);const u=Number.isNaN(o)&&Number.isNaN(n),d=n!==o&&!u;if((!(s&8)||o===void 0)&&d&&(i.$instanceValues$.set(e,n),l)){if(r.$watchers$&&s&128){const f=r.$watchers$[e];f&&f.map(h=>{try{l[h](n,o,e)}catch(p){I(p,a)}})}(s&18)===2&&Tt(i,!1)}},Pr=(t,e,n)=>{var r;const i=t.prototype;if(e.$flags$&64&&n&1&&Bi.forEach(a=>Object.defineProperty(i,a,{value(...o){const s=xe(this),l=s.$lazyInstance$;if(!l)s.$onReadyPromise$.then(u=>{const d=u[a];typeof d=="function"&&d.call(u,...o)});else{const u=l[a];typeof u=="function"&&u.call(l,...o)}}})),e.$members$){t.watchers&&(e.$watchers$=t.watchers);const a=Object.entries(e.$members$);if(a.map(([o,[s]])=>{s&31||n&2&&s&32?Object.defineProperty(i,o,{get(){return co(this,o)},set(l){uo(this,o,l,e)},configurable:!0,enumerable:!0}):n&1&&s&64&&Object.defineProperty(i,o,{value(...l){var u;const d=xe(this);return(u=d==null?void 0:d.$onInstancePromise$)===null||u===void 0?void 0:u.then(()=>{var f;return(f=d.$lazyInstance$)===null||f===void 0?void 0:f[o](...l)})}})}),n&1){const o=new Map;i.attributeChangedCallback=function(s,l,u){z.jmp(()=>{var d;const f=o.get(s);if(this.hasOwnProperty(f))u=this[f],delete this[f];else{if(i.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==u)return;if(f==null){const h=xe(this),p=h==null?void 0:h.$flags$;if(p&&!(p&8)&&p&128&&u!==l){const m=h.$lazyInstance$,w=(d=e.$watchers$)===null||d===void 0?void 0:d[s];w==null||w.forEach(b=>{m[b]!=null&&m[b].call(m,u,l,s)})}return}}this[f]=u===null&&typeof this[f]=="boolean"?!1:u})},t.observedAttributes=Array.from(new Set([...Object.keys((r=e.$watchers$)!==null&&r!==void 0?r:{}),...a.filter(([s,l])=>l[0]&15).map(([s,l])=>{const u=l[1]||s;return o.set(u,s),u})]))}}return t},fo=async(t,e,n,r)=>{let i;if(!(e.$flags$&32)){e.$flags$|=32;{if(i=To(n),i.then){const l=Yi();i=await i,l()}i.isProxied||(n.$watchers$=i.watchers,Pr(i,n,2),i.isProxied=!0);const s=Pe("createInstance",n.$tagName$);e.$flags$|=8;try{new i(e)}catch(l){I(l)}e.$flags$&=-9,e.$flags$|=128,s(),jt(e.$lazyInstance$)}if(i.style){let s=i.style;const l=Tr(n);if(!gt.has(l)){const u=Pe("registerStyles",n.$tagName$);Xi(l,s,!!(n.$flags$&1)),u()}}}const a=e.$ancestorComponent$,o=()=>Tt(e,!0);a&&a["s-rc"]?a["s-rc"].push(o):o()},jt=t=>{Me(t,"connectedCallback")},ho=t=>{if(!(z.$flags$&1)){const e=xe(t),n=e.$cmpMeta$,r=Pe("connectedCallback",n.$tagName$);if(e.$flags$&1)Fr(t,e,n.$listeners$),e!=null&&e.$lazyInstance$?jt(e.$lazyInstance$):e!=null&&e.$onReadyPromise$&&e.$onReadyPromise$.then(()=>jt(e.$lazyInstance$));else{e.$flags$|=1,n.$flags$&12&&po(t);{let i=t;for(;i=i.parentNode||i.host;)if(i["s-p"]){Or(e,e.$ancestorComponent$=i);break}}n.$members$&&Object.entries(n.$members$).map(([i,[a]])=>{if(a&31&&t.hasOwnProperty(i)){const o=t[i];delete t[i],t[i]=o}}),fo(t,e,n)}r()}},po=t=>{const e=t["s-cr"]=oe.createComment("");e["s-cn"]=!0,t.insertBefore(e,t.firstChild)},Bn=t=>{Me(t,"disconnectedCallback")},yo=async t=>{if(!(z.$flags$&1)){const e=xe(t);e.$rmListeners$&&(e.$rmListeners$.map(n=>n()),e.$rmListeners$=void 0),e!=null&&e.$lazyInstance$?Bn(e.$lazyInstance$):e!=null&&e.$onReadyPromise$&&e.$onReadyPromise$.then(()=>Bn(e.$lazyInstance$))}},mo=(t,e={})=>{var n;const r=Pe(),i=[],a=e.exclude||[],o=ct.customElements,s=oe.head,l=s.querySelector("meta[charset]"),u=oe.createElement("style"),d=[];let f,h=!0;Object.assign(z,e),z.$resourcesUrl$=new URL(e.resourcesUrl||"./",oe.baseURI).href;let p=!1;if(t.map(m=>{m[1].map(w=>{var b;const k={$flags$:w[0],$tagName$:w[1],$members$:w[2],$listeners$:w[3]};k.$flags$&4&&(p=!0),k.$members$=w[2],k.$listeners$=w[3],k.$watchers$=(b=w[4])!==null&&b!==void 0?b:{};const M=k.$tagName$,te=class extends HTMLElement{constructor(le){super(le),le=this,Co(le,k),k.$flags$&1&&le.attachShadow({mode:"open"})}connectedCallback(){f&&(clearTimeout(f),f=null),h?d.push(this):z.jmp(()=>ho(this))}disconnectedCallback(){z.jmp(()=>yo(this))}componentOnReady(){return xe(this).$onReadyPromise$}};k.$flags$&64&&(te.formAssociated=!0),k.$lazyBundleId$=m[0],!a.includes(M)&&!o.get(M)&&(i.push(M),o.define(M,Pr(te,k,1)))})}),p&&(u.innerHTML+=wr),u.innerHTML+=i+Hi,u.innerHTML.length){u.setAttribute("data-styles","");const m=(n=z.$nonce$)!==null&&n!==void 0?n:br(oe);m!=null&&u.setAttribute("nonce",m),s.insertBefore(u,l?l.nextSibling:s.firstChild)}h=!1,d.length?d.map(m=>m.connectedCallback()):z.jmp(()=>f=setTimeout(Mr,30)),r()},go=(t,e)=>e,Fr=(t,e,n,r)=>{n&&n.map(([i,a,o])=>{const s=wo(t,i),l=vo(e,o),u=bo(i);z.ael(s,a,l,u),(e.$rmListeners$=e.$rmListeners$||[]).push(()=>z.rel(s,a,l,u))})},vo=(t,e)=>n=>{try{t.$flags$&256?t.$lazyInstance$[e](n):(t.$queuedListeners$=t.$queuedListeners$||[]).push([e,n])}catch(r){I(r)}},wo=(t,e)=>e&4?oe:e&8?ct:e&16?oe.body:t,bo=t=>ko?{passive:(t&1)!==0,capture:(t&2)!==0}:(t&2)!==0,$o=t=>z.$nonce$=t,cn=new WeakMap,xe=t=>cn.get(t),Eo=(t,e)=>cn.set(e.$lazyInstance$=t,e),Co=(t,e)=>{const n={$flags$:0,$hostElement$:t,$cmpMeta$:e,$instanceValues$:new Map};return n.$onInstancePromise$=new Promise(r=>n.$onInstanceResolve$=r),n.$onReadyPromise$=new Promise(r=>n.$onReadyResolve$=r),t["s-p"]=[],t["s-rc"]=[],Fr(t,n,e.$listeners$),cn.set(t,n)},Wn=(t,e)=>e in t,I=(t,e)=>(0,console.error)(t,e),Nt=new Map,To=(t,e,n)=>{const r=t.$tagName$.replace(/-/g,"_"),i=t.$lazyBundleId$,a=Nt.get(i);if(a)return a[r];if(!n||!gr.hotModuleReplacement){const o=s=>(Nt.set(i,s),s[r]);switch(i){case"document-refresh-icon":return Promise.resolve().then(()=>require("./document-refresh-icon.entry-f1d3f32d.cjs")).then(o,I);case"nylas-custom-booking-flow":return Promise.resolve().then(()=>require("./nylas-custom-booking-flow.entry-cef0041a.cjs")).then(o,I);case"nylas-if-state":return Promise.resolve().then(()=>require("./nylas-if-state.entry-d7b818a6.cjs")).then(o,I);case"nylas-list-folders":return Promise.resolve().then(()=>require("./nylas-list-folders.entry-0ec6ba20.cjs")).then(o,I);case"nylas-list-threads":return Promise.resolve().then(()=>require("./nylas-list-threads.entry-2a7e1e84.cjs")).then(o,I);case"nylas-login":return Promise.resolve().then(()=>require("./nylas-login.entry-c2ffd6a5.cjs")).then(o,I);case"nylas-mailbox":return Promise.resolve().then(()=>require("./nylas-mailbox.entry-cf13ddf5.cjs")).then(o,I);case"nylas-mailbox-pagination":return Promise.resolve().then(()=>require("./nylas-mailbox-pagination.entry-839c9ad3.cjs")).then(o,I);case"nylas-mailbox-toolbar-button":return Promise.resolve().then(()=>require("./nylas-mailbox-toolbar-button.entry-43812d51.cjs")).then(o,I);case"nylas-provider":return Promise.resolve().then(()=>require("./nylas-provider.entry-843b5593.cjs")).then(o,I);case"nylas-scheduler-editor":return Promise.resolve().then(()=>require("./nylas-scheduler-editor.entry-048e7a8f.cjs")).then(o,I);case"nylas-scheduling":return Promise.resolve().then(()=>require("./nylas-scheduling.entry-0ad9b1d0.cjs")).then(o,I);case"nylas-threads-refresh":return Promise.resolve().then(()=>require("./nylas-threads-refresh.entry-9cae6ac8.cjs")).then(o,I);case"nylas-threads-search":return Promise.resolve().then(()=>require("./nylas-threads-search.entry-0d34c5a8.cjs")).then(o,I);case"nylas-view-thread":return Promise.resolve().then(()=>require("./nylas-view-thread.entry-db78ed9c.cjs")).then(o,I);case"archive-icon_7":return Promise.resolve().then(()=>require("./archive-icon_7.entry-2b56ef80.cjs")).then(o,I);case"arrow-icon":return Promise.resolve().then(()=>require("./arrow-icon.entry-0288f3fc.cjs")).then(o,I);case"forward-icon_6":return Promise.resolve().then(()=>require("./forward-icon_6.entry-45b70066.cjs")).then(o,I);case"google-logo-icon_4":return Promise.resolve().then(()=>require("./google-logo-icon_4.entry-fd734a59.cjs")).then(o,I);case"nylas-booked-event-card_10":return Promise.resolve().then(()=>require("./nylas-booked-event-card_10.entry-ad4671b2.cjs")).then(o,I);case"bold-icon_3":return Promise.resolve().then(()=>require("./bold-icon_3.entry-e7810620.cjs")).then(o,I);case"calendar-agenda-fill-icon_35":return Promise.resolve().then(()=>require("./calendar-agenda-fill-icon_35.entry-fa968081.cjs")).then(o,I);case"calendar-check-icon_2":return Promise.resolve().then(()=>require("./calendar-check-icon_2.entry-562e98cf.cjs")).then(o,I);case"clock-icon_2":return Promise.resolve().then(()=>require("./clock-icon_2.entry-43873262.cjs")).then(o,I);case"copy-icon_4":return Promise.resolve().then(()=>require("./copy-icon_4.entry-57874c4f.cjs")).then(o,I);case"play-icon_2":return Promise.resolve().then(()=>require("./play-icon_2.entry-19271982.cjs")).then(o,I);case"refresh-icon":return Promise.resolve().then(()=>require("./refresh-icon.entry-e695cf7f.cjs")).then(o,I);case"textarea-component":return Promise.resolve().then(()=>require("./textarea-component.entry-48feabb3.cjs")).then(o,I);case"translate-icon":return Promise.resolve().then(()=>require("./translate-icon.entry-5f62bc61.cjs")).then(o,I);case"warning-icon":return Promise.resolve().then(()=>require("./warning-icon.entry-2e0a80da.cjs")).then(o,I);case"calendar-cancel-icon":return Promise.resolve().then(()=>require("./calendar-cancel-icon.entry-8e8b25b6.cjs")).then(o,I);case"calendar-icon":return Promise.resolve().then(()=>require("./calendar-icon.entry-3a59af30.cjs")).then(o,I);case"multi-select-dropdown":return Promise.resolve().then(()=>require("./multi-select-dropdown.entry-5bb80d89.cjs")).then(o,I);case"nylas-time-window-picker":return Promise.resolve().then(()=>require("./nylas-time-window-picker.entry-062bc8c1.cjs")).then(o,I);case"button-component_4":return Promise.resolve().then(()=>require("./button-component_4.entry-e53a8f37.cjs")).then(o,I);case"nylas-form-card":return Promise.resolve().then(()=>require("./nylas-form-card.entry-fba5d623.cjs")).then(o,I);case"input-dropdown_2":return Promise.resolve().then(()=>require("./input-dropdown_2.entry-ad380260.cjs")).then(o,I);case"loading-icon":return Promise.resolve().then(()=>require("./loading-icon.entry-678a6b3f.cjs")).then(o,I);case"add-circle-icon_2":return Promise.resolve().then(()=>require("./add-circle-icon_2.entry-adde5fdf.cjs")).then(o,I);case"globe-icon":return Promise.resolve().then(()=>require("./globe-icon.entry-7ecd6221.cjs")).then(o,I);case"info-icon_2":return Promise.resolve().then(()=>require("./info-icon_2.entry-e612f1d6.cjs")).then(o,I);case"chevron-icon_3":return Promise.resolve().then(()=>require("./chevron-icon_3.entry-7ff10540.cjs")).then(o,I)}}return import(`./${i}.entry.js`).then(o=>(Nt.set(i,o),o[r]),I)},gt=new Map,ct=typeof window<"u"?window:{},oe=ct.document||{head:{}},z={$flags$:0,$resourcesUrl$:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,r)=>t.addEventListener(e,n,r),rel:(t,e,n,r)=>t.removeEventListener(e,n,r),ce:(t,e)=>new CustomEvent(t,e)},ko=(()=>{let t=!1;try{oe.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),xo=t=>Promise.resolve(t),So=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),jn=[],Lr=[],Io=(t,e)=>n=>{t.push(n),Wt||(Wt=!0,e&&z.$flags$&4?un(qt):z.raf(qt))},qn=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(n){I(n)}t.length=0},qt=()=>{qn(jn),qn(Lr),(Wt=jn.length>0)&&z.raf(qt)},un=t=>xo().then(t),Do=Io(Lr,!0),_o=(t,e,n)=>{const r=t.get(e);r?r.includes(n)||r.push(n):t.set(e,[n])},Ro=(t,e)=>{let n;return(...r)=>{n&&clearTimeout(n),n=setTimeout(()=>{n=0,t(...r)},e)}},Ao=t=>!("isConnected"in t)||t.isConnected,zn=Ro(t=>{for(let e of t.keys())t.set(e,t.get(e).filter(Ao))},2e3),Oo=()=>{if(typeof Yn!="function")return{};const t=new Map;return{dispose:()=>t.clear(),get:e=>{const n=Yn();n&&_o(t,e,n)},set:e=>{const n=t.get(e);n&&t.set(e,n.filter(Hn)),zn(t)},reset:()=>{t.forEach(e=>e.forEach(Hn)),zn(t)}}},Pt=t=>typeof t=="function"?t():t,Mo=(t,e=(n,r)=>n!==r)=>{const n=Pt(t);let r=new Map(Object.entries(n??{}));const i={dispose:[],get:[],set:[],reset:[]},a=()=>{var m;r=new Map(Object.entries((m=Pt(t))!==null&&m!==void 0?m:{})),i.reset.forEach(w=>w())},o=()=>{i.dispose.forEach(m=>m()),a()},s=m=>(i.get.forEach(w=>w(m)),r.get(m)),l=(m,w)=>{const b=r.get(m);e(w,b,m)&&(r.set(m,w),i.set.forEach(k=>k(m,w,b)))},u=typeof Proxy>"u"?{}:new Proxy(n,{get(m,w){return s(w)},ownKeys(m){return Array.from(r.keys())},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}},has(m,w){return r.has(w)},set(m,w,b){return l(w,b),!0}}),d=(m,w)=>(i[m].push(w),()=>{No(i[m],w)});return{state:u,get:s,set:l,on:d,onChange:(m,w)=>{const b=d("set",(M,te)=>{M===m&&w(te)}),k=d("reset",()=>w(Pt(t)[m]));return()=>{b(),k()}},use:(...m)=>{const w=m.reduce((b,k)=>(k.set&&b.push(d("set",k.set)),k.get&&b.push(d("get",k.get)),k.reset&&b.push(d("reset",k.reset)),k.dispose&&b.push(d("dispose",k.dispose)),b),[]);return()=>w.forEach(b=>b())},dispose:o,reset:a,forceUpdate:m=>{const w=r.get(m);i.set.forEach(b=>b(m,w,w))}}},No=(t,e)=>{const n=t.indexOf(e);n>=0&&(t[n]=t[t.length-1],t.length--)},Ur=(t,e)=>{const n=Mo(t,e);return n.use(Oo()),n},zt=typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{};var ke=[],ye=[],Po=typeof Uint8Array<"u"?Uint8Array:Array,dn=!1;function Yr(){dn=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,n=t.length;e<n;++e)ke[e]=t[e],ye[t.charCodeAt(e)]=e;ye["-".charCodeAt(0)]=62,ye["_".charCodeAt(0)]=63}function Fo(t){dn||Yr();var e,n,r,i,a,o,s=t.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a=t[s-2]==="="?2:t[s-1]==="="?1:0,o=new Po(s*3/4-a),r=a>0?s-4:s;var l=0;for(e=0,n=0;e<r;e+=4,n+=3)i=ye[t.charCodeAt(e)]<<18|ye[t.charCodeAt(e+1)]<<12|ye[t.charCodeAt(e+2)]<<6|ye[t.charCodeAt(e+3)],o[l++]=i>>16&255,o[l++]=i>>8&255,o[l++]=i&255;return a===2?(i=ye[t.charCodeAt(e)]<<2|ye[t.charCodeAt(e+1)]>>4,o[l++]=i&255):a===1&&(i=ye[t.charCodeAt(e)]<<10|ye[t.charCodeAt(e+1)]<<4|ye[t.charCodeAt(e+2)]>>2,o[l++]=i>>8&255,o[l++]=i&255),o}function Lo(t){return ke[t>>18&63]+ke[t>>12&63]+ke[t>>6&63]+ke[t&63]}function Uo(t,e,n){for(var r,i=[],a=e;a<n;a+=3)r=(t[a]<<16)+(t[a+1]<<8)+t[a+2],i.push(Lo(r));return i.join("")}function Kn(t){dn||Yr();for(var e,n=t.length,r=n%3,i="",a=[],o=16383,s=0,l=n-r;s<l;s+=o)a.push(Uo(t,s,s+o>l?l:s+o));return r===1?(e=t[n-1],i+=ke[e>>2],i+=ke[e<<4&63],i+="=="):r===2&&(e=(t[n-2]<<8)+t[n-1],i+=ke[e>>10],i+=ke[e>>4&63],i+=ke[e<<2&63],i+="="),a.push(i),a.join("")}function kt(t,e,n,r,i){var a,o,s=i*8-r-1,l=(1<<s)-1,u=l>>1,d=-7,f=n?i-1:0,h=n?-1:1,p=t[e+f];for(f+=h,a=p&(1<<-d)-1,p>>=-d,d+=s;d>0;a=a*256+t[e+f],f+=h,d-=8);for(o=a&(1<<-d)-1,a>>=-d,d+=r;d>0;o=o*256+t[e+f],f+=h,d-=8);if(a===0)a=1-u;else{if(a===l)return o?NaN:(p?-1:1)*(1/0);o=o+Math.pow(2,r),a=a-u}return(p?-1:1)*o*Math.pow(2,a-r)}function Hr(t,e,n,r,i,a){var o,s,l,u=a*8-i-1,d=(1<<u)-1,f=d>>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:a-1,m=r?1:-1,w=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=d):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+f>=1?e+=h/l:e+=h*Math.pow(2,1-f),e*l>=2&&(o++,l/=2),o+f>=d?(s=0,o=d):o+f>=1?(s=(e*l-1)*Math.pow(2,i),o=o+f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;t[n+p]=s&255,p+=m,s/=256,i-=8);for(o=o<<i|s,u+=i;u>0;t[n+p]=o&255,p+=m,o/=256,u-=8);t[n+p-m]|=w*128}var Yo={}.toString,Br=Array.isArray||function(t){return Yo.call(t)=="[object Array]"};/*!
|
|
2
|
+
* The buffer module from node.js, for the browser.
|
|
3
|
+
*
|
|
4
|
+
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/var Ho=50;g.TYPED_ARRAY_SUPPORT=zt.TYPED_ARRAY_SUPPORT!==void 0?zt.TYPED_ARRAY_SUPPORT:!0;function Kt(){return g.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Ne(t,e){if(Kt()<e)throw new RangeError("Invalid typed array length");return g.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=g.prototype):(t===null&&(t=new g(e)),t.length=e),t}function g(t,e,n){if(!g.TYPED_ARRAY_SUPPORT&&!(this instanceof g))return new g(t,e,n);if(typeof t=="number"){if(typeof e=="string")throw new Error("If encoding is specified then the first argument must be a string");return fn(this,t)}return Wr(this,t,e,n)}g.poolSize=8192;g._augment=function(t){return t.__proto__=g.prototype,t};function Wr(t,e,n,r){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer?jo(t,e,n,r):typeof e=="string"?Wo(t,e,n):qo(t,e)}g.from=function(t,e,n){return Wr(null,t,e,n)};g.TYPED_ARRAY_SUPPORT&&(g.prototype.__proto__=Uint8Array.prototype,g.__proto__=Uint8Array);function jr(t){if(typeof t!="number")throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function Bo(t,e,n,r){return jr(e),e<=0?Ne(t,e):n!==void 0?typeof r=="string"?Ne(t,e).fill(n,r):Ne(t,e).fill(n):Ne(t,e)}g.alloc=function(t,e,n){return Bo(null,t,e,n)};function fn(t,e){if(jr(e),t=Ne(t,e<0?0:hn(e)|0),!g.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}g.allocUnsafe=function(t){return fn(null,t)};g.allocUnsafeSlow=function(t){return fn(null,t)};function Wo(t,e,n){if((typeof n!="string"||n==="")&&(n="utf8"),!g.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=qr(e,n)|0;t=Ne(t,r);var i=t.write(e,n);return i!==r&&(t=t.slice(0,i)),t}function Gt(t,e){var n=e.length<0?0:hn(e.length)|0;t=Ne(t,n);for(var r=0;r<n;r+=1)t[r]=e[r]&255;return t}function jo(t,e,n,r){if(n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return n===void 0&&r===void 0?e=new Uint8Array(e):r===void 0?e=new Uint8Array(e,n):e=new Uint8Array(e,n,r),g.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=g.prototype):t=Gt(t,e),t}function qo(t,e){if(Se(e)){var n=hn(e.length)|0;return t=Ne(t,n),t.length===0||e.copy(t,0,0,n),t}if(e){if(typeof ArrayBuffer<"u"&&e.buffer instanceof ArrayBuffer||"length"in e)return typeof e.length!="number"||ua(e.length)?Ne(t,0):Gt(t,e);if(e.type==="Buffer"&&Br(e.data))return Gt(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function hn(t){if(t>=Kt())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Kt().toString(16)+" bytes");return t|0}g.isBuffer=da;function Se(t){return!!(t!=null&&t._isBuffer)}g.compare=function(e,n){if(!Se(e)||!Se(n))throw new TypeError("Arguments must be Buffers");if(e===n)return 0;for(var r=e.length,i=n.length,a=0,o=Math.min(r,i);a<o;++a)if(e[a]!==n[a]){r=e[a],i=n[a];break}return r<i?-1:i<r?1:0};g.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};g.concat=function(e,n){if(!Br(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return g.alloc(0);var r;if(n===void 0)for(n=0,r=0;r<e.length;++r)n+=e[r].length;var i=g.allocUnsafe(n),a=0;for(r=0;r<e.length;++r){var o=e[r];if(!Se(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,a),a+=o.length}return i};function qr(t,e){if(Se(t))return t.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!="string"&&(t=""+t);var n=t.length;if(n===0)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return vt(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return Qr(t).length;default:if(r)return vt(t).length;e=(""+e).toLowerCase(),r=!0}}g.byteLength=qr;function zo(t,e,n){var r=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,e>>>=0,n<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return na(this,e,n);case"utf8":case"utf-8":return Gr(this,e,n);case"ascii":return ea(this,e,n);case"latin1":case"binary":return ta(this,e,n);case"base64":return Qo(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ra(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}g.prototype._isBuffer=!0;function Be(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}g.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<e;n+=2)Be(this,n,n+1);return this};g.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<e;n+=4)Be(this,n,n+3),Be(this,n+1,n+2);return this};g.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<e;n+=8)Be(this,n,n+7),Be(this,n+1,n+6),Be(this,n+2,n+5),Be(this,n+3,n+4);return this};g.prototype.toString=function(){var e=this.length|0;return e===0?"":arguments.length===0?Gr(this,0,e):zo.apply(this,arguments)};g.prototype.equals=function(e){if(!Se(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:g.compare(this,e)===0};g.prototype.inspect=function(){var e="",n=Ho;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"};g.prototype.compare=function(e,n,r,i,a){if(!Se(e))throw new TypeError("Argument must be a Buffer");if(n===void 0&&(n=0),r===void 0&&(r=e?e.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),n<0||r>e.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&n>=r)return 0;if(i>=a)return-1;if(n>=r)return 1;if(n>>>=0,r>>>=0,i>>>=0,a>>>=0,this===e)return 0;for(var o=a-i,s=r-n,l=Math.min(o,s),u=this.slice(i,a),d=e.slice(n,r),f=0;f<l;++f)if(u[f]!==d[f]){o=u[f],s=d[f];break}return o<s?-1:s<o?1:0};function zr(t,e,n,r,i){if(t.length===0)return-1;if(typeof n=="string"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof e=="string"&&(e=g.from(e,r)),Se(e))return e.length===0?-1:Gn(t,e,n,r,i);if(typeof e=="number")return e=e&255,g.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):Gn(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function Gn(t,e,n,r,i){var a=1,o=t.length,s=e.length;if(r!==void 0&&(r=String(r).toLowerCase(),r==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(t.length<2||e.length<2)return-1;a=2,o/=2,s/=2,n/=2}function l(p,m){return a===1?p[m]:p.readUInt16BE(m*a)}var u;if(i){var d=-1;for(u=n;u<o;u++)if(l(t,u)===l(e,d===-1?0:u-d)){if(d===-1&&(d=u),u-d+1===s)return d*a}else d!==-1&&(u-=u-d),d=-1}else for(n+s>o&&(n=o-s),u=n;u>=0;u--){for(var f=!0,h=0;h<s;h++)if(l(t,u+h)!==l(e,h)){f=!1;break}if(f)return u}return-1}g.prototype.includes=function(e,n,r){return this.indexOf(e,n,r)!==-1};g.prototype.indexOf=function(e,n,r){return zr(this,e,n,r,!0)};g.prototype.lastIndexOf=function(e,n,r){return zr(this,e,n,r,!1)};function Ko(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var a=e.length;if(a%2!==0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(e.substr(o*2,2),16);if(isNaN(s))return o;t[n+o]=s}return o}function Go(t,e,n,r){return It(vt(e,t.length-n),t,n,r)}function Kr(t,e,n,r){return It(la(e),t,n,r)}function Zo(t,e,n,r){return Kr(t,e,n,r)}function Jo(t,e,n,r){return It(Qr(e),t,n,r)}function Xo(t,e,n,r){return It(ca(e,t.length-n),t,n,r)}g.prototype.write=function(e,n,r,i){if(n===void 0)i="utf8",r=this.length,n=0;else if(r===void 0&&typeof n=="string")i=n,r=this.length,n=0;else if(isFinite(n))n=n|0,isFinite(r)?(r=r|0,i===void 0&&(i="utf8")):(i=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-n;if((r===void 0||r>a)&&(r=a),e.length>0&&(r<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return Ko(this,e,n,r);case"utf8":case"utf-8":return Go(this,e,n,r);case"ascii":return Kr(this,e,n,r);case"latin1":case"binary":return Zo(this,e,n,r);case"base64":return Jo(this,e,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Xo(this,e,n,r);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Qo(t,e,n){return e===0&&n===t.length?Kn(t):Kn(t.slice(e,n))}function Gr(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var a=t[i],o=null,s=a>239?4:a>223?3:a>191?2:1;if(i+s<=n){var l,u,d,f;switch(s){case 1:a<128&&(o=a);break;case 2:l=t[i+1],(l&192)===128&&(f=(a&31)<<6|l&63,f>127&&(o=f));break;case 3:l=t[i+1],u=t[i+2],(l&192)===128&&(u&192)===128&&(f=(a&15)<<12|(l&63)<<6|u&63,f>2047&&(f<55296||f>57343)&&(o=f));break;case 4:l=t[i+1],u=t[i+2],d=t[i+3],(l&192)===128&&(u&192)===128&&(d&192)===128&&(f=(a&15)<<18|(l&63)<<12|(u&63)<<6|d&63,f>65535&&f<1114112&&(o=f))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|o&1023),r.push(o),i+=s}return Vo(r)}var Zn=4096;function Vo(t){var e=t.length;if(e<=Zn)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=Zn));return n}function ea(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]&127);return r}function ta(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function na(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=e;a<n;++a)i+=sa(t[a]);return i}function ra(t,e,n){for(var r=t.slice(e,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+r[a+1]*256);return i}g.prototype.slice=function(e,n){var r=this.length;e=~~e,n=n===void 0?r:~~n,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),n<e&&(n=e);var i;if(g.TYPED_ARRAY_SUPPORT)i=this.subarray(e,n),i.__proto__=g.prototype;else{var a=n-e;i=new g(a,void 0);for(var o=0;o<a;++o)i[o]=this[o+e]}return i};function ee(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUIntLE=function(e,n,r){e=e|0,n=n|0,r||ee(e,n,this.length);for(var i=this[e],a=1,o=0;++o<n&&(a*=256);)i+=this[e+o]*a;return i};g.prototype.readUIntBE=function(e,n,r){e=e|0,n=n|0,r||ee(e,n,this.length);for(var i=this[e+--n],a=1;n>0&&(a*=256);)i+=this[e+--n]*a;return i};g.prototype.readUInt8=function(e,n){return n||ee(e,1,this.length),this[e]};g.prototype.readUInt16LE=function(e,n){return n||ee(e,2,this.length),this[e]|this[e+1]<<8};g.prototype.readUInt16BE=function(e,n){return n||ee(e,2,this.length),this[e]<<8|this[e+1]};g.prototype.readUInt32LE=function(e,n){return n||ee(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};g.prototype.readUInt32BE=function(e,n){return n||ee(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};g.prototype.readIntLE=function(e,n,r){e=e|0,n=n|0,r||ee(e,n,this.length);for(var i=this[e],a=1,o=0;++o<n&&(a*=256);)i+=this[e+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*n)),i};g.prototype.readIntBE=function(e,n,r){e=e|0,n=n|0,r||ee(e,n,this.length);for(var i=n,a=1,o=this[e+--i];i>0&&(a*=256);)o+=this[e+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*n)),o};g.prototype.readInt8=function(e,n){return n||ee(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};g.prototype.readInt16LE=function(e,n){n||ee(e,2,this.length);var r=this[e]|this[e+1]<<8;return r&32768?r|4294901760:r};g.prototype.readInt16BE=function(e,n){n||ee(e,2,this.length);var r=this[e+1]|this[e]<<8;return r&32768?r|4294901760:r};g.prototype.readInt32LE=function(e,n){return n||ee(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};g.prototype.readInt32BE=function(e,n){return n||ee(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};g.prototype.readFloatLE=function(e,n){return n||ee(e,4,this.length),kt(this,e,!0,23,4)};g.prototype.readFloatBE=function(e,n){return n||ee(e,4,this.length),kt(this,e,!1,23,4)};g.prototype.readDoubleLE=function(e,n){return n||ee(e,8,this.length),kt(this,e,!0,52,8)};g.prototype.readDoubleBE=function(e,n){return n||ee(e,8,this.length),kt(this,e,!1,52,8)};function ce(t,e,n,r,i,a){if(!Se(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}g.prototype.writeUIntLE=function(e,n,r,i){if(e=+e,n=n|0,r=r|0,!i){var a=Math.pow(2,8*r)-1;ce(this,e,n,r,a,0)}var o=1,s=0;for(this[n]=e&255;++s<r&&(o*=256);)this[n+s]=e/o&255;return n+r};g.prototype.writeUIntBE=function(e,n,r,i){if(e=+e,n=n|0,r=r|0,!i){var a=Math.pow(2,8*r)-1;ce(this,e,n,r,a,0)}var o=r-1,s=1;for(this[n+o]=e&255;--o>=0&&(s*=256);)this[n+o]=e/s&255;return n+r};g.prototype.writeUInt8=function(e,n,r){return e=+e,n=n|0,r||ce(this,e,n,1,255,0),g.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[n]=e&255,n+1};function xt(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,a=Math.min(t.length-n,2);i<a;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>(r?i:1-i)*8}g.prototype.writeUInt16LE=function(e,n,r){return e=+e,n=n|0,r||ce(this,e,n,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[n]=e&255,this[n+1]=e>>>8):xt(this,e,n,!0),n+2};g.prototype.writeUInt16BE=function(e,n,r){return e=+e,n=n|0,r||ce(this,e,n,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=e&255):xt(this,e,n,!1),n+2};function St(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,a=Math.min(t.length-n,4);i<a;++i)t[n+i]=e>>>(r?i:3-i)*8&255}g.prototype.writeUInt32LE=function(e,n,r){return e=+e,n=n|0,r||ce(this,e,n,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=e&255):St(this,e,n,!0),n+4};g.prototype.writeUInt32BE=function(e,n,r){return e=+e,n=n|0,r||ce(this,e,n,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=e&255):St(this,e,n,!1),n+4};g.prototype.writeIntLE=function(e,n,r,i){if(e=+e,n=n|0,!i){var a=Math.pow(2,8*r-1);ce(this,e,n,r,a-1,-a)}var o=0,s=1,l=0;for(this[n]=e&255;++o<r&&(s*=256);)e<0&&l===0&&this[n+o-1]!==0&&(l=1),this[n+o]=(e/s>>0)-l&255;return n+r};g.prototype.writeIntBE=function(e,n,r,i){if(e=+e,n=n|0,!i){var a=Math.pow(2,8*r-1);ce(this,e,n,r,a-1,-a)}var o=r-1,s=1,l=0;for(this[n+o]=e&255;--o>=0&&(s*=256);)e<0&&l===0&&this[n+o+1]!==0&&(l=1),this[n+o]=(e/s>>0)-l&255;return n+r};g.prototype.writeInt8=function(e,n,r){return e=+e,n=n|0,r||ce(this,e,n,1,127,-128),g.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[n]=e&255,n+1};g.prototype.writeInt16LE=function(e,n,r){return e=+e,n=n|0,r||ce(this,e,n,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[n]=e&255,this[n+1]=e>>>8):xt(this,e,n,!0),n+2};g.prototype.writeInt16BE=function(e,n,r){return e=+e,n=n|0,r||ce(this,e,n,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=e&255):xt(this,e,n,!1),n+2};g.prototype.writeInt32LE=function(e,n,r){return e=+e,n=n|0,r||ce(this,e,n,4,2147483647,-2147483648),g.TYPED_ARRAY_SUPPORT?(this[n]=e&255,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24):St(this,e,n,!0),n+4};g.prototype.writeInt32BE=function(e,n,r){return e=+e,n=n|0,r||ce(this,e,n,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),g.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=e&255):St(this,e,n,!1),n+4};function Zr(t,e,n,r,i,a){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Jr(t,e,n,r,i){return i||Zr(t,e,n,4),Hr(t,e,n,r,23,4),n+4}g.prototype.writeFloatLE=function(e,n,r){return Jr(this,e,n,!0,r)};g.prototype.writeFloatBE=function(e,n,r){return Jr(this,e,n,!1,r)};function Xr(t,e,n,r,i){return i||Zr(t,e,n,8),Hr(t,e,n,r,52,8),n+8}g.prototype.writeDoubleLE=function(e,n,r){return Xr(this,e,n,!0,r)};g.prototype.writeDoubleBE=function(e,n,r){return Xr(this,e,n,!1,r)};g.prototype.copy=function(e,n,r,i){if(r||(r=0),!i&&i!==0&&(i=this.length),n>=e.length&&(n=e.length),n||(n=0),i>0&&i<r&&(i=r),i===r||e.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-n<i-r&&(i=e.length-n+r);var a=i-r,o;if(this===e&&r<n&&n<i)for(o=a-1;o>=0;--o)e[o+n]=this[o+r];else if(a<1e3||!g.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)e[o+n]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+a),n);return a};g.prototype.fill=function(e,n,r,i){if(typeof e=="string"){if(typeof n=="string"?(i=n,n=0,r=this.length):typeof r=="string"&&(i=r,r=this.length),e.length===1){var a=e.charCodeAt(0);a<256&&(e=a)}if(i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!g.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else typeof e=="number"&&(e=e&255);if(n<0||this.length<n||this.length<r)throw new RangeError("Out of range index");if(r<=n)return this;n=n>>>0,r=r===void 0?this.length:r>>>0,e||(e=0);var o;if(typeof e=="number")for(o=n;o<r;++o)this[o]=e;else{var s=Se(e)?e:vt(new g(e,i).toString()),l=s.length;for(o=0;o<r-n;++o)this[o+n]=s[o%l]}return this};var ia=/[^+\/0-9A-Za-z-_]/g;function oa(t){if(t=aa(t).replace(ia,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function aa(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function sa(t){return t<16?"0"+t.toString(16):t.toString(16)}function vt(t,e){e=e||1/0;for(var n,r=t.length,i=null,a=[],o=0;o<r;++o){if(n=t.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(e-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;a.push(n)}else if(n<2048){if((e-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((e-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((e-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return a}function la(t){for(var e=[],n=0;n<t.length;++n)e.push(t.charCodeAt(n)&255);return e}function ca(t,e){for(var n,r,i,a=[],o=0;o<t.length&&!((e-=2)<0);++o)n=t.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}function Qr(t){return Fo(oa(t))}function It(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function ua(t){return t!==t}function da(t){return t!=null&&(!!t._isBuffer||Vr(t)||fa(t))}function Vr(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function fa(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&Vr(t.slice(0,0))}var ei=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ha(t){if(t.__esModule)return t;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(t).forEach(function(n){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}),e}var ti={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ei,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",u="day",d="week",f="month",h="quarter",p="year",m="date",w="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,k=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(S){var T=["th","st","nd","rd"],E=S%100;return"["+S+(T[(E-20)%10]||T[E]||T[0])+"]"}},te=function(S,T,E){var R=String(S);return!R||R.length>=T?S:""+Array(T+1-R.length).join(E)+S},le={s:te,z:function(S){var T=-S.utcOffset(),E=Math.abs(T),R=Math.floor(E/60),x=E%60;return(T<=0?"+":"-")+te(R,2,"0")+":"+te(x,2,"0")},m:function S(T,E){if(T.date()<E.date())return-S(E,T);var R=12*(E.year()-T.year())+(E.month()-T.month()),x=T.clone().add(R,f),O=E-x<0,A=T.clone().add(R+(O?-1:1),f);return+(-(R+(E-x)/(O?x-A:A-x))||0)},a:function(S){return S<0?Math.ceil(S)||0:Math.floor(S)},p:function(S){return{M:f,y:p,w:d,d:u,D:m,h:l,m:s,s:o,ms:a,Q:h}[S]||String(S||"").toLowerCase().replace(/s$/,"")},u:function(S){return S===void 0}},ge="en",ne={};ne[ge]=M;var Ye=function(S){return S instanceof qe},je=function S(T,E,R){var x;if(!T)return ge;if(typeof T=="string"){var O=T.toLowerCase();ne[O]&&(x=O),E&&(ne[O]=E,x=O);var A=T.split("-");if(!x&&A.length>1)return S(A[0])}else{var U=T.name;ne[U]=T,x=U}return!R&&x&&(ge=x),x||!R&&ge},K=function(S,T){if(Ye(S))return S.clone();var E=typeof T=="object"?T:{};return E.date=S,E.args=arguments,new qe(E)},H=le;H.l=je,H.i=Ye,H.w=function(S,T){return K(S,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var qe=function(){function S(E){this.$L=je(E.locale,null,!0),this.parse(E)}var T=S.prototype;return T.parse=function(E){this.$d=function(R){var x=R.date,O=R.utc;if(x===null)return new Date(NaN);if(H.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var A=x.match(b);if(A){var U=A[2]-1||0,q=(A[7]||"0").substring(0,3);return O?new Date(Date.UTC(A[1],U,A[3]||1,A[4]||0,A[5]||0,A[6]||0,q)):new Date(A[1],U,A[3]||1,A[4]||0,A[5]||0,A[6]||0,q)}}return new Date(x)}(E),this.$x=E.x||{},this.init()},T.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},T.$utils=function(){return H},T.isValid=function(){return this.$d.toString()!==w},T.isSame=function(E,R){var x=K(E);return this.startOf(R)<=x&&x<=this.endOf(R)},T.isAfter=function(E,R){return K(E)<this.startOf(R)},T.isBefore=function(E,R){return this.endOf(R)<K(E)},T.$g=function(E,R,x){return H.u(E)?this[R]:this.set(x,E)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(E,R){var x=this,O=!!H.u(R)||R,A=H.p(E),U=function(we,Q){var ue=H.w(x.$u?Date.UTC(x.$y,Q,we):new Date(x.$y,Q,we),x);return O?ue:ue.endOf(u)},q=function(we,Q){return H.w(x.toDate()[we].apply(x.toDate("s"),(O?[0,0,0,0]:[23,59,59,999]).slice(Q)),x)},j=this.$W,X=this.$M,$e=this.$D,ve="set"+(this.$u?"UTC":"");switch(A){case p:return O?U(1,0):U(31,11);case f:return O?U(1,X):U(0,X+1);case d:var De=this.$locale().weekStart||0,_e=(j<De?j+7:j)-De;return U(O?$e-_e:$e+(6-_e),X);case u:case m:return q(ve+"Hours",0);case l:return q(ve+"Minutes",1);case s:return q(ve+"Seconds",2);case o:return q(ve+"Milliseconds",3);default:return this.clone()}},T.endOf=function(E){return this.startOf(E,!1)},T.$set=function(E,R){var x,O=H.p(E),A="set"+(this.$u?"UTC":""),U=(x={},x[u]=A+"Date",x[m]=A+"Date",x[f]=A+"Month",x[p]=A+"FullYear",x[l]=A+"Hours",x[s]=A+"Minutes",x[o]=A+"Seconds",x[a]=A+"Milliseconds",x)[O],q=O===u?this.$D+(R-this.$W):R;if(O===f||O===p){var j=this.clone().set(m,1);j.$d[U](q),j.init(),this.$d=j.set(m,Math.min(this.$D,j.daysInMonth())).$d}else U&&this.$d[U](q);return this.init(),this},T.set=function(E,R){return this.clone().$set(E,R)},T.get=function(E){return this[H.p(E)]()},T.add=function(E,R){var x,O=this;E=Number(E);var A=H.p(R),U=function(X){var $e=K(O);return H.w($e.date($e.date()+Math.round(X*E)),O)};if(A===f)return this.set(f,this.$M+E);if(A===p)return this.set(p,this.$y+E);if(A===u)return U(1);if(A===d)return U(7);var q=(x={},x[s]=r,x[l]=i,x[o]=n,x)[A]||1,j=this.$d.getTime()+E*q;return H.w(j,this)},T.subtract=function(E,R){return this.add(-1*E,R)},T.format=function(E){var R=this,x=this.$locale();if(!this.isValid())return x.invalidDate||w;var O=E||"YYYY-MM-DDTHH:mm:ssZ",A=H.z(this),U=this.$H,q=this.$m,j=this.$M,X=x.weekdays,$e=x.months,ve=function(Q,ue,tt,He){return Q&&(Q[ue]||Q(R,O))||tt[ue].slice(0,He)},De=function(Q){return H.s(U%12||12,Q,"0")},_e=x.meridiem||function(Q,ue,tt){var He=Q<12?"AM":"PM";return tt?He.toLowerCase():He},we={YY:String(this.$y).slice(-2),YYYY:this.$y,M:j+1,MM:H.s(j+1,2,"0"),MMM:ve(x.monthsShort,j,$e,3),MMMM:ve($e,j),D:this.$D,DD:H.s(this.$D,2,"0"),d:String(this.$W),dd:ve(x.weekdaysMin,this.$W,X,2),ddd:ve(x.weekdaysShort,this.$W,X,3),dddd:X[this.$W],H:String(U),HH:H.s(U,2,"0"),h:De(1),hh:De(2),a:_e(U,q,!0),A:_e(U,q,!1),m:String(q),mm:H.s(q,2,"0"),s:String(this.$s),ss:H.s(this.$s,2,"0"),SSS:H.s(this.$ms,3,"0"),Z:A};return O.replace(k,function(Q,ue){return ue||we[Q]||A.replace(":","")})},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(E,R,x){var O,A=H.p(R),U=K(E),q=(U.utcOffset()-this.utcOffset())*r,j=this-U,X=H.m(this,U);return X=(O={},O[p]=X/12,O[f]=X,O[h]=X/3,O[d]=(j-q)/6048e5,O[u]=(j-q)/864e5,O[l]=j/i,O[s]=j/r,O[o]=j/n,O)[A]||j,x?X:H.a(X)},T.daysInMonth=function(){return this.endOf(f).$D},T.$locale=function(){return ne[this.$L]},T.locale=function(E,R){if(!E)return this.$L;var x=this.clone(),O=je(E,R,!0);return O&&(x.$L=O),x},T.clone=function(){return H.w(this.$d,this)},T.toDate=function(){return new Date(this.valueOf())},T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toISOString=function(){return this.$d.toISOString()},T.toString=function(){return this.$d.toUTCString()},S}(),et=qe.prototype;return K.prototype=et,[["$ms",a],["$s",o],["$m",s],["$H",l],["$W",u],["$M",f],["$y",p],["$D",m]].forEach(function(S){et[S[1]]=function(T){return this.$g(T,S[0],S[1])}}),K.extend=function(S,T){return S.$i||(S(T,qe,K),S.$i=!0),K},K.locale=je,K.isDayjs=Ye,K.unix=function(S){return K(1e3*S)},K.en=ne[ge],K.Ls=ne,K.p={},K})})(ti);const pn=ti.exports;var Zt=["MO","TU","WE","TH","FR","SA","SU"],se=function(){function t(e,n){if(n===0)throw new Error("Can't create weekday with n == 0");this.weekday=e,this.n=n}return t.fromStr=function(e){return new t(Zt.indexOf(e))},t.prototype.nth=function(e){return this.n===e?this:new t(this.weekday,e)},t.prototype.equals=function(e){return this.weekday===e.weekday&&this.n===e.n},t.prototype.toString=function(){var e=Zt[this.weekday];return this.n&&(e=(this.n>0?"+":"")+String(this.n)+e),e},t.prototype.getJsWeekday=function(){return this.weekday===6?0:this.weekday+1},t}(),J=function(t){return t!=null},Ee=function(t){return typeof t=="number"},Jn=function(t){return typeof t=="string"&&Zt.includes(t)},fe=Array.isArray,Ie=function(t,e){e===void 0&&(e=t),arguments.length===1&&(e=t,t=0);for(var n=[],r=t;r<e;r++)n.push(r);return n},F=function(t,e){var n=0,r=[];if(fe(t))for(;n<e;n++)r[n]=[].concat(t);else for(;n<e;n++)r[n]=t;return r},pa=function(t){return fe(t)?t:[t]};function Ge(t,e,n){n===void 0&&(n=" ");var r=String(t);return e=e>>0,r.length>e?String(r):(e=e-r.length,e>n.length&&(n+=F(n,e/n.length)),n.slice(0,e)+String(r))}var ya=function(t,e,n){var r=t.split(e);return n?r.slice(0,n).concat([r.slice(n).join(e)]):r},me=function(t,e){var n=t%e;return n*e<0?n+e:n},Ft=function(t,e){return{div:Math.floor(t/e),mod:me(t,e)}},Ce=function(t){return!J(t)||t.length===0},V=function(t){return!Ce(t)},W=function(t,e){return V(t)&&t.indexOf(e)!==-1},We=function(t,e,n,r,i,a){return r===void 0&&(r=0),i===void 0&&(i=0),a===void 0&&(a=0),new Date(Date.UTC(t,e-1,n,r,i,a))},ma=[31,28,31,30,31,30,31,31,30,31,30,31],ni=1e3*60*60*24,ri=9999,ii=We(1970,1,1),ga=[6,0,1,2,3,4,5],at=function(t){return t%4===0&&t%100!==0||t%400===0},oi=function(t){return t instanceof Date},ot=function(t){return oi(t)&&!isNaN(t.getTime())},Xn=function(t){return t.getTimezoneOffset()*60*1e3},va=function(t,e){var n=t.getTime()-Xn(t),r=e.getTime()-Xn(e),i=n-r;return Math.round(i/ni)},Jt=function(t){return va(t,ii)},ai=function(t){return new Date(ii.getTime()+t*ni)},wa=function(t){var e=t.getUTCMonth();return e===1&&at(t.getUTCFullYear())?29:ma[e]},Qe=function(t){return ga[t.getUTCDay()]},Qn=function(t,e){var n=We(t,e+1,1);return[Qe(n),wa(n)]},si=function(t,e){return e=e||t,new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()))},Xt=function(t){var e=new Date(t.getTime());return e},Vn=function(t){for(var e=[],n=0;n<t.length;n++)e.push(Xt(t[n]));return e},lt=function(t){t.sort(function(e,n){return e.getTime()-n.getTime()})},yn=function(t,e){e===void 0&&(e=!0);var n=new Date(t);return[Ge(n.getUTCFullYear().toString(),4,"0"),Ge(n.getUTCMonth()+1,2,"0"),Ge(n.getUTCDate(),2,"0"),"T",Ge(n.getUTCHours(),2,"0"),Ge(n.getUTCMinutes(),2,"0"),Ge(n.getUTCSeconds(),2,"0"),e?"Z":""].join("")},mn=function(t){var e=/^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/,n=e.exec(t);if(!n)throw new Error("Invalid UNTIL value: ".concat(t));return new Date(Date.UTC(parseInt(n[1],10),parseInt(n[2],10)-1,parseInt(n[3],10),parseInt(n[5],10)||0,parseInt(n[6],10)||0,parseInt(n[7],10)||0))},er=function(t,e){var n=t.toLocaleString("sv-SE",{timeZone:e});return n.replace(" ","T")+"Z"},ba=function(t,e){var n=Intl.DateTimeFormat().resolvedOptions().timeZone,r=new Date(er(t,n)),i=new Date(er(t,e??"UTC")),a=i.getTime()-r.getTime();return new Date(t.getTime()-a)},Xe=function(){function t(e,n){this.minDate=null,this.maxDate=null,this._result=[],this.total=0,this.method=e,this.args=n,e==="between"?(this.maxDate=n.inc?n.before:new Date(n.before.getTime()-1),this.minDate=n.inc?n.after:new Date(n.after.getTime()+1)):e==="before"?this.maxDate=n.inc?n.dt:new Date(n.dt.getTime()-1):e==="after"&&(this.minDate=n.inc?n.dt:new Date(n.dt.getTime()+1))}return t.prototype.accept=function(e){++this.total;var n=this.minDate&&e<this.minDate,r=this.maxDate&&e>this.maxDate;if(this.method==="between"){if(n)return!0;if(r)return!1}else if(this.method==="before"){if(r)return!1}else if(this.method==="after")return n?!0:(this.add(e),!1);return this.add(e)},t.prototype.add=function(e){return this._result.push(e),!0},t.prototype.getValue=function(){var e=this._result;switch(this.method){case"all":case"between":return e;case"before":case"after":default:return e.length?e[e.length-1]:null}},t.prototype.clone=function(){return new t(this.method,this.args)},t}(),Qt=function(t,e){return Qt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Qt(t,e)};function gn(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Qt(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var he=function(){return he=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},he.apply(this,arguments)};function $(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,a;r<i;r++)(a||!(r in e))&&(a||(a=Array.prototype.slice.call(e,0,r)),a[r]=e[r]);return t.concat(a||Array.prototype.slice.call(e))}var tr=function(t){gn(e,t);function e(n,r,i){var a=t.call(this,n,r)||this;return a.iterator=i,a}return e.prototype.add=function(n){return this.iterator(n,this._result.length)?(this._result.push(n),!0):!1},e}(Xe),wt={dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],tokens:{SKIP:/^[ \r\n\t]+|^\.$/,number:/^[1-9][0-9]*/,numberAsText:/^(one|two|three)/i,every:/^every/i,"day(s)":/^days?/i,"weekday(s)":/^weekdays?/i,"week(s)":/^weeks?/i,"hour(s)":/^hours?/i,"minute(s)":/^minutes?/i,"month(s)":/^months?/i,"year(s)":/^years?/i,on:/^(on|in)/i,at:/^(at)/i,the:/^the/i,first:/^first/i,second:/^second/i,third:/^third/i,nth:/^([1-9][0-9]*)(\.|th|nd|rd|st)/i,last:/^last/i,for:/^for/i,"time(s)":/^times?/i,until:/^(un)?til/i,monday:/^mo(n(day)?)?/i,tuesday:/^tu(e(s(day)?)?)?/i,wednesday:/^we(d(n(esday)?)?)?/i,thursday:/^th(u(r(sday)?)?)?/i,friday:/^fr(i(day)?)?/i,saturday:/^sa(t(urday)?)?/i,sunday:/^su(n(day)?)?/i,january:/^jan(uary)?/i,february:/^feb(ruary)?/i,march:/^mar(ch)?/i,april:/^apr(il)?/i,may:/^may/i,june:/^june?/i,july:/^july?/i,august:/^aug(ust)?/i,september:/^sep(t(ember)?)?/i,october:/^oct(ober)?/i,november:/^nov(ember)?/i,december:/^dec(ember)?/i,comma:/^(,\s*|(and|or)\s*)+/i}},nr=function(t,e){return t.indexOf(e)!==-1},$a=function(t){return t.toString()},Ea=function(t,e,n){return"".concat(e," ").concat(n,", ").concat(t)},Fe=function(){function t(e,n,r,i){if(n===void 0&&(n=$a),r===void 0&&(r=wt),i===void 0&&(i=Ea),this.text=[],this.language=r||wt,this.gettext=n,this.dateFormatter=i,this.rrule=e,this.options=e.options,this.origOptions=e.origOptions,this.origOptions.bymonthday){var a=[].concat(this.options.bymonthday),o=[].concat(this.options.bynmonthday);a.sort(function(d,f){return d-f}),o.sort(function(d,f){return f-d}),this.bymonthday=a.concat(o),this.bymonthday.length||(this.bymonthday=null)}if(J(this.origOptions.byweekday)){var s=fe(this.origOptions.byweekday)?this.origOptions.byweekday:[this.origOptions.byweekday],l=String(s);this.byweekday={allWeeks:s.filter(function(d){return!d.n}),someWeeks:s.filter(function(d){return!!d.n}),isWeekdays:l.indexOf("MO")!==-1&&l.indexOf("TU")!==-1&&l.indexOf("WE")!==-1&&l.indexOf("TH")!==-1&&l.indexOf("FR")!==-1&&l.indexOf("SA")===-1&&l.indexOf("SU")===-1,isEveryDay:l.indexOf("MO")!==-1&&l.indexOf("TU")!==-1&&l.indexOf("WE")!==-1&&l.indexOf("TH")!==-1&&l.indexOf("FR")!==-1&&l.indexOf("SA")!==-1&&l.indexOf("SU")!==-1};var u=function(d,f){return d.weekday-f.weekday};this.byweekday.allWeeks.sort(u),this.byweekday.someWeeks.sort(u),this.byweekday.allWeeks.length||(this.byweekday.allWeeks=null),this.byweekday.someWeeks.length||(this.byweekday.someWeeks=null)}else this.byweekday=null}return t.isFullyConvertible=function(e){var n=!0;if(!(e.options.freq in t.IMPLEMENTED)||e.origOptions.until&&e.origOptions.count)return!1;for(var r in e.origOptions){if(nr(["dtstart","wkst","freq"],r))return!0;if(!nr(t.IMPLEMENTED[e.options.freq],r))return!1}return n},t.prototype.isFullyConvertible=function(){return t.isFullyConvertible(this.rrule)},t.prototype.toString=function(){var e=this.gettext;if(!(this.options.freq in t.IMPLEMENTED))return e("RRule error: Unable to fully convert this rrule to text");if(this.text=[e("every")],this[D.FREQUENCIES[this.options.freq]](),this.options.until){this.add(e("until"));var n=this.options.until;this.add(this.dateFormatter(n.getUTCFullYear(),this.language.monthNames[n.getUTCMonth()],n.getUTCDate()))}else this.options.count&&this.add(e("for")).add(this.options.count.toString()).add(this.plural(this.options.count)?e("times"):e("time"));return this.isFullyConvertible()||this.add(e("(~ approximate)")),this.text.join("")},t.prototype.HOURLY=function(){var e=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("hours"):e("hour"))},t.prototype.MINUTELY=function(){var e=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("minutes"):e("minute"))},t.prototype.DAILY=function(){var e=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.byweekday&&this.byweekday.isWeekdays?this.add(this.plural(this.options.interval)?e("weekdays"):e("weekday")):this.add(this.plural(this.options.interval)?e("days"):e("day")),this.origOptions.bymonth&&(this.add(e("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday?this._byweekday():this.origOptions.byhour&&this._byhour()},t.prototype.WEEKLY=function(){var e=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()).add(this.plural(this.options.interval)?e("weeks"):e("week")),this.byweekday&&this.byweekday.isWeekdays?this.options.interval===1?this.add(this.plural(this.options.interval)?e("weekdays"):e("weekday")):this.add(e("on")).add(e("weekdays")):this.byweekday&&this.byweekday.isEveryDay?this.add(this.plural(this.options.interval)?e("days"):e("day")):(this.options.interval===1&&this.add(e("week")),this.origOptions.bymonth&&(this.add(e("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday())},t.prototype.MONTHLY=function(){var e=this.gettext;this.origOptions.bymonth?(this.options.interval!==1&&(this.add(this.options.interval.toString()).add(e("months")),this.plural(this.options.interval)&&this.add(e("in"))),this._bymonth()):(this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("months"):e("month"))),this.bymonthday?this._bymonthday():this.byweekday&&this.byweekday.isWeekdays?this.add(e("on")).add(e("weekdays")):this.byweekday&&this._byweekday()},t.prototype.YEARLY=function(){var e=this.gettext;this.origOptions.bymonth?(this.options.interval!==1&&(this.add(this.options.interval.toString()),this.add(e("years"))),this._bymonth()):(this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("years"):e("year"))),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.options.byyearday&&this.add(e("on the")).add(this.list(this.options.byyearday,this.nth,e("and"))).add(e("day")),this.options.byweekno&&this.add(e("in")).add(this.plural(this.options.byweekno.length)?e("weeks"):e("week")).add(this.list(this.options.byweekno,void 0,e("and")))},t.prototype._bymonthday=function(){var e=this.gettext;this.byweekday&&this.byweekday.allWeeks?this.add(e("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext,e("or"))).add(e("the")).add(this.list(this.bymonthday,this.nth,e("or"))):this.add(e("on the")).add(this.list(this.bymonthday,this.nth,e("and")))},t.prototype._byweekday=function(){var e=this.gettext;this.byweekday.allWeeks&&!this.byweekday.isWeekdays&&this.add(e("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext)),this.byweekday.someWeeks&&(this.byweekday.allWeeks&&this.add(e("and")),this.add(e("on the")).add(this.list(this.byweekday.someWeeks,this.weekdaytext,e("and"))))},t.prototype._byhour=function(){var e=this.gettext;this.add(e("at")).add(this.list(this.origOptions.byhour,void 0,e("and")))},t.prototype._bymonth=function(){this.add(this.list(this.options.bymonth,this.monthtext,this.gettext("and")))},t.prototype.nth=function(e){e=parseInt(e.toString(),10);var n,r=this.gettext;if(e===-1)return r("last");var i=Math.abs(e);switch(i){case 1:case 21:case 31:n=i+r("st");break;case 2:case 22:n=i+r("nd");break;case 3:case 23:n=i+r("rd");break;default:n=i+r("th")}return e<0?n+" "+r("last"):n},t.prototype.monthtext=function(e){return this.language.monthNames[e-1]},t.prototype.weekdaytext=function(e){var n=Ee(e)?(e+1)%7:e.getJsWeekday();return(e.n?this.nth(e.n)+" ":"")+this.language.dayNames[n]},t.prototype.plural=function(e){return e%100!==1},t.prototype.add=function(e){return this.text.push(" "),this.text.push(e),this},t.prototype.list=function(e,n,r,i){var a=this;i===void 0&&(i=","),fe(e)||(e=[e]);var o=function(l,u,d){for(var f="",h=0;h<l.length;h++)h!==0&&(h===l.length-1?f+=" "+d+" ":f+=u+" "),f+=l[h];return f};n=n||function(l){return l.toString()};var s=function(l){return n&&n.call(a,l)};return r?o(e.map(s),i,r):e.map(s).join(i+" ")},t}(),Ca=function(){function t(e){this.done=!0,this.rules=e}return t.prototype.start=function(e){return this.text=e,this.done=!1,this.nextSymbol()},t.prototype.isDone=function(){return this.done&&this.symbol===null},t.prototype.nextSymbol=function(){var e,n;this.symbol=null,this.value=null;do{if(this.done)return!1;var r=void 0;e=null;for(var i in this.rules){r=this.rules[i];var a=r.exec(this.text);a&&(e===null||a[0].length>e[0].length)&&(e=a,n=i)}if(e!=null&&(this.text=this.text.substr(e[0].length),this.text===""&&(this.done=!0)),e==null){this.done=!0,this.symbol=null,this.value=null;return}}while(n==="SKIP");return this.symbol=n,this.value=e,!0},t.prototype.accept=function(e){if(this.symbol===e){if(this.value){var n=this.value;return this.nextSymbol(),n}return this.nextSymbol(),!0}return!1},t.prototype.acceptNumber=function(){return this.accept("number")},t.prototype.expect=function(e){if(this.accept(e))return!0;throw new Error("expected "+e+" but found "+this.symbol)},t}();function li(t,e){e===void 0&&(e=wt);var n={},r=new Ca(e.tokens);if(!r.start(t))return null;return i(),n;function i(){r.expect("every");var h=r.acceptNumber();if(h&&(n.interval=parseInt(h[0],10)),r.isDone())throw new Error("Unexpected end");switch(r.symbol){case"day(s)":n.freq=D.DAILY,r.nextSymbol()&&(o(),f());break;case"weekday(s)":n.freq=D.WEEKLY,n.byweekday=[D.MO,D.TU,D.WE,D.TH,D.FR],r.nextSymbol(),f();break;case"week(s)":n.freq=D.WEEKLY,r.nextSymbol()&&(a(),f());break;case"hour(s)":n.freq=D.HOURLY,r.nextSymbol()&&(a(),f());break;case"minute(s)":n.freq=D.MINUTELY,r.nextSymbol()&&(a(),f());break;case"month(s)":n.freq=D.MONTHLY,r.nextSymbol()&&(a(),f());break;case"year(s)":n.freq=D.YEARLY,r.nextSymbol()&&(a(),f());break;case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":n.freq=D.WEEKLY;var p=r.symbol.substr(0,2).toUpperCase();if(n.byweekday=[D[p]],!r.nextSymbol())return;for(;r.accept("comma");){if(r.isDone())throw new Error("Unexpected end");var m=l();if(!m)throw new Error("Unexpected symbol "+r.symbol+", expected weekday");n.byweekday.push(D[m]),r.nextSymbol()}d(),f();break;case"january":case"february":case"march":case"april":case"may":case"june":case"july":case"august":case"september":case"october":case"november":case"december":if(n.freq=D.YEARLY,n.bymonth=[s()],!r.nextSymbol())return;for(;r.accept("comma");){if(r.isDone())throw new Error("Unexpected end");var w=s();if(!w)throw new Error("Unexpected symbol "+r.symbol+", expected month");n.bymonth.push(w),r.nextSymbol()}a(),f();break;default:throw new Error("Unknown symbol")}}function a(){var h=r.accept("on"),p=r.accept("the");if(h||p)do{var m=u(),w=l(),b=s();if(m)w?(r.nextSymbol(),n.byweekday||(n.byweekday=[]),n.byweekday.push(D[w].nth(m))):(n.bymonthday||(n.bymonthday=[]),n.bymonthday.push(m),r.accept("day(s)"));else if(w)r.nextSymbol(),n.byweekday||(n.byweekday=[]),n.byweekday.push(D[w]);else if(r.symbol==="weekday(s)")r.nextSymbol(),n.byweekday||(n.byweekday=[D.MO,D.TU,D.WE,D.TH,D.FR]);else if(r.symbol==="week(s)"){r.nextSymbol();var k=r.acceptNumber();if(!k)throw new Error("Unexpected symbol "+r.symbol+", expected week number");for(n.byweekno=[parseInt(k[0],10)];r.accept("comma");){if(k=r.acceptNumber(),!k)throw new Error("Unexpected symbol "+r.symbol+"; expected monthday");n.byweekno.push(parseInt(k[0],10))}}else if(b)r.nextSymbol(),n.bymonth||(n.bymonth=[]),n.bymonth.push(b);else return}while(r.accept("comma")||r.accept("the")||r.accept("on"))}function o(){var h=r.accept("at");if(h)do{var p=r.acceptNumber();if(!p)throw new Error("Unexpected symbol "+r.symbol+", expected hour");for(n.byhour=[parseInt(p[0],10)];r.accept("comma");){if(p=r.acceptNumber(),!p)throw new Error("Unexpected symbol "+r.symbol+"; expected hour");n.byhour.push(parseInt(p[0],10))}}while(r.accept("comma")||r.accept("at"))}function s(){switch(r.symbol){case"january":return 1;case"february":return 2;case"march":return 3;case"april":return 4;case"may":return 5;case"june":return 6;case"july":return 7;case"august":return 8;case"september":return 9;case"october":return 10;case"november":return 11;case"december":return 12;default:return!1}}function l(){switch(r.symbol){case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":return r.symbol.substr(0,2).toUpperCase();default:return!1}}function u(){switch(r.symbol){case"last":return r.nextSymbol(),-1;case"first":return r.nextSymbol(),1;case"second":return r.nextSymbol(),r.accept("last")?-2:2;case"third":return r.nextSymbol(),r.accept("last")?-3:3;case"nth":var h=parseInt(r.value[1],10);if(h<-366||h>366)throw new Error("Nth out of range: "+h);return r.nextSymbol(),r.accept("last")?-h:h;default:return!1}}function d(){r.accept("on"),r.accept("the");var h=u();if(h)for(n.bymonthday=[h],r.nextSymbol();r.accept("comma");){if(h=u(),!h)throw new Error("Unexpected symbol "+r.symbol+"; expected monthday");n.bymonthday.push(h),r.nextSymbol()}}function f(){if(r.symbol==="until"){var h=Date.parse(r.text);if(!h)throw new Error("Cannot parse until date:"+r.text);n.until=new Date(h)}else r.accept("for")&&(n.count=parseInt(r.value[0],10),r.expect("number"))}}var L;(function(t){t[t.YEARLY=0]="YEARLY",t[t.MONTHLY=1]="MONTHLY",t[t.WEEKLY=2]="WEEKLY",t[t.DAILY=3]="DAILY",t[t.HOURLY=4]="HOURLY",t[t.MINUTELY=5]="MINUTELY",t[t.SECONDLY=6]="SECONDLY"})(L||(L={}));function vn(t){return t<L.HOURLY}var Ta=function(t,e){return e===void 0&&(e=wt),new D(li(t,e)||void 0)},Ve=["count","until","interval","byweekday","bymonthday","bymonth"];Fe.IMPLEMENTED=[];Fe.IMPLEMENTED[L.HOURLY]=Ve;Fe.IMPLEMENTED[L.MINUTELY]=Ve;Fe.IMPLEMENTED[L.DAILY]=["byhour"].concat(Ve);Fe.IMPLEMENTED[L.WEEKLY]=Ve;Fe.IMPLEMENTED[L.MONTHLY]=Ve;Fe.IMPLEMENTED[L.YEARLY]=["byweekno","byyearday"].concat(Ve);var ka=function(t,e,n,r){return new Fe(t,e,n,r).toString()},xa=Fe.isFullyConvertible,bt=function(){function t(e,n,r,i){this.hour=e,this.minute=n,this.second=r,this.millisecond=i||0}return t.prototype.getHours=function(){return this.hour},t.prototype.getMinutes=function(){return this.minute},t.prototype.getSeconds=function(){return this.second},t.prototype.getMilliseconds=function(){return this.millisecond},t.prototype.getTime=function(){return(this.hour*60*60+this.minute*60+this.second)*1e3+this.millisecond},t}(),Sa=function(t){gn(e,t);function e(n,r,i,a,o,s,l){var u=t.call(this,a,o,s,l)||this;return u.year=n,u.month=r,u.day=i,u}return e.fromDate=function(n){return new this(n.getUTCFullYear(),n.getUTCMonth()+1,n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.valueOf()%1e3)},e.prototype.getWeekday=function(){return Qe(new Date(this.getTime()))},e.prototype.getTime=function(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond)).getTime()},e.prototype.getDay=function(){return this.day},e.prototype.getMonth=function(){return this.month},e.prototype.getYear=function(){return this.year},e.prototype.addYears=function(n){this.year+=n},e.prototype.addMonths=function(n){if(this.month+=n,this.month>12){var r=Math.floor(this.month/12),i=me(this.month,12);this.month=i,this.year+=r,this.month===0&&(this.month=12,--this.year)}},e.prototype.addWeekly=function(n,r){r>this.getWeekday()?this.day+=-(this.getWeekday()+1+(6-r))+n*7:this.day+=-(this.getWeekday()-r)+n*7,this.fixDay()},e.prototype.addDaily=function(n){this.day+=n,this.fixDay()},e.prototype.addHours=function(n,r,i){for(r&&(this.hour+=Math.floor((23-this.hour)/n)*n);;){this.hour+=n;var a=Ft(this.hour,24),o=a.div,s=a.mod;if(o&&(this.hour=s,this.addDaily(o)),Ce(i)||W(i,this.hour))break}},e.prototype.addMinutes=function(n,r,i,a){for(r&&(this.minute+=Math.floor((1439-(this.hour*60+this.minute))/n)*n);;){this.minute+=n;var o=Ft(this.minute,60),s=o.div,l=o.mod;if(s&&(this.minute=l,this.addHours(s,!1,i)),(Ce(i)||W(i,this.hour))&&(Ce(a)||W(a,this.minute)))break}},e.prototype.addSeconds=function(n,r,i,a,o){for(r&&(this.second+=Math.floor((86399-(this.hour*3600+this.minute*60+this.second))/n)*n);;){this.second+=n;var s=Ft(this.second,60),l=s.div,u=s.mod;if(l&&(this.second=u,this.addMinutes(l,!1,i,a)),(Ce(i)||W(i,this.hour))&&(Ce(a)||W(a,this.minute))&&(Ce(o)||W(o,this.second)))break}},e.prototype.fixDay=function(){if(!(this.day<=28)){var n=Qn(this.year,this.month-1)[1];if(!(this.day<=n))for(;this.day>n;){if(this.day-=n,++this.month,this.month===13&&(this.month=1,++this.year,this.year>ri))return;n=Qn(this.year,this.month-1)[1]}}},e.prototype.add=function(n,r){var i=n.freq,a=n.interval,o=n.wkst,s=n.byhour,l=n.byminute,u=n.bysecond;switch(i){case L.YEARLY:return this.addYears(a);case L.MONTHLY:return this.addMonths(a);case L.WEEKLY:return this.addWeekly(a,o);case L.DAILY:return this.addDaily(a);case L.HOURLY:return this.addHours(a,r,s);case L.MINUTELY:return this.addMinutes(a,r,s,l);case L.SECONDLY:return this.addSeconds(a,r,s,l,u)}},e}(bt);function ci(t){for(var e=[],n=Object.keys(t),r=0,i=n;r<i.length;r++){var a=i[r];W(rs,a)||e.push(a),oi(t[a])&&!ot(t[a])&&e.push(a)}if(e.length)throw new Error("Invalid options: "+e.join(", "));return he({},t)}function Ia(t){var e=he(he({},wn),ci(t));if(J(e.byeaster)&&(e.freq=D.YEARLY),!(J(e.freq)&&D.FREQUENCIES[e.freq]))throw new Error("Invalid frequency: ".concat(e.freq," ").concat(t.freq));if(e.dtstart||(e.dtstart=new Date(new Date().setMilliseconds(0))),J(e.wkst)?Ee(e.wkst)||(e.wkst=e.wkst.weekday):e.wkst=D.MO.weekday,J(e.bysetpos)){Ee(e.bysetpos)&&(e.bysetpos=[e.bysetpos]);for(var n=0;n<e.bysetpos.length;n++){var r=e.bysetpos[n];if(r===0||!(r>=-366&&r<=366))throw new Error("bysetpos must be between 1 and 366, or between -366 and -1")}}if(!(e.byweekno||V(e.byweekno)||V(e.byyearday)||e.bymonthday||V(e.bymonthday)||J(e.byweekday)||J(e.byeaster)))switch(e.freq){case D.YEARLY:e.bymonth||(e.bymonth=e.dtstart.getUTCMonth()+1),e.bymonthday=e.dtstart.getUTCDate();break;case D.MONTHLY:e.bymonthday=e.dtstart.getUTCDate();break;case D.WEEKLY:e.byweekday=[Qe(e.dtstart)];break}if(J(e.bymonth)&&!fe(e.bymonth)&&(e.bymonth=[e.bymonth]),J(e.byyearday)&&!fe(e.byyearday)&&Ee(e.byyearday)&&(e.byyearday=[e.byyearday]),!J(e.bymonthday))e.bymonthday=[],e.bynmonthday=[];else if(fe(e.bymonthday)){for(var i=[],a=[],n=0;n<e.bymonthday.length;n++){var r=e.bymonthday[n];r>0?i.push(r):r<0&&a.push(r)}e.bymonthday=i,e.bynmonthday=a}else e.bymonthday<0?(e.bynmonthday=[e.bymonthday],e.bymonthday=[]):(e.bynmonthday=[],e.bymonthday=[e.bymonthday]);if(J(e.byweekno)&&!fe(e.byweekno)&&(e.byweekno=[e.byweekno]),!J(e.byweekday))e.bynweekday=null;else if(Ee(e.byweekday))e.byweekday=[e.byweekday],e.bynweekday=null;else if(Jn(e.byweekday))e.byweekday=[se.fromStr(e.byweekday).weekday],e.bynweekday=null;else if(e.byweekday instanceof se)!e.byweekday.n||e.freq>D.MONTHLY?(e.byweekday=[e.byweekday.weekday],e.bynweekday=null):(e.bynweekday=[[e.byweekday.weekday,e.byweekday.n]],e.byweekday=null);else{for(var o=[],s=[],n=0;n<e.byweekday.length;n++){var l=e.byweekday[n];if(Ee(l)){o.push(l);continue}else if(Jn(l)){o.push(se.fromStr(l).weekday);continue}!l.n||e.freq>D.MONTHLY?o.push(l.weekday):s.push([l.weekday,l.n])}e.byweekday=V(o)?o:null,e.bynweekday=V(s)?s:null}return J(e.byhour)?Ee(e.byhour)&&(e.byhour=[e.byhour]):e.byhour=e.freq<D.HOURLY?[e.dtstart.getUTCHours()]:null,J(e.byminute)?Ee(e.byminute)&&(e.byminute=[e.byminute]):e.byminute=e.freq<D.MINUTELY?[e.dtstart.getUTCMinutes()]:null,J(e.bysecond)?Ee(e.bysecond)&&(e.bysecond=[e.bysecond]):e.bysecond=e.freq<D.SECONDLY?[e.dtstart.getUTCSeconds()]:null,{parsedOptions:e}}function Da(t){var e=t.dtstart.getTime()%1e3;if(!vn(t.freq))return[];var n=[];return t.byhour.forEach(function(r){t.byminute.forEach(function(i){t.bysecond.forEach(function(a){n.push(new bt(r,i,a,e))})})}),n}function Vt(t){var e=t.split(`
|
|
7
|
+
`).map(_a).filter(function(n){return n!==null});return he(he({},e[0]),e[1])}function $t(t){var e={},n=/DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(t);if(!n)return e;var r=n[1],i=n[2];return r&&(e.tzid=r),e.dtstart=mn(i),e}function _a(t){if(t=t.replace(/^\s+|\s+$/,""),!t.length)return null;var e=/^([A-Z]+?)[:;]/.exec(t.toUpperCase());if(!e)return rr(t);var n=e[1];switch(n.toUpperCase()){case"RRULE":case"EXRULE":return rr(t);case"DTSTART":return $t(t);default:throw new Error("Unsupported RFC prop ".concat(n," in ").concat(t))}}function rr(t){var e=t.replace(/^RRULE:/i,""),n=$t(e),r=t.replace(/^(?:RRULE|EXRULE):/i,"").split(";");return r.forEach(function(i){var a=i.split("="),o=a[0],s=a[1];switch(o.toUpperCase()){case"FREQ":n.freq=L[s.toUpperCase()];break;case"WKST":n.wkst=be[s.toUpperCase()];break;case"COUNT":case"INTERVAL":case"BYSETPOS":case"BYMONTH":case"BYMONTHDAY":case"BYYEARDAY":case"BYWEEKNO":case"BYHOUR":case"BYMINUTE":case"BYSECOND":var l=Ra(s),u=o.toLowerCase();n[u]=l;break;case"BYWEEKDAY":case"BYDAY":n.byweekday=Aa(s);break;case"DTSTART":case"TZID":var d=$t(t);n.tzid=d.tzid,n.dtstart=d.dtstart;break;case"UNTIL":n.until=mn(s);break;case"BYEASTER":n.byeaster=Number(s);break;default:throw new Error("Unknown RRULE property '"+o+"'")}}),n}function Ra(t){if(t.indexOf(",")!==-1){var e=t.split(",");return e.map(ir)}return ir(t)}function ir(t){return/^[+-]?\d+$/.test(t)?Number(t):t}function Aa(t){var e=t.split(",");return e.map(function(n){if(n.length===2)return be[n];var r=n.match(/^([+-]?\d{1,2})([A-Z]{2})$/);if(!r||r.length<3)throw new SyntaxError("Invalid weekday string: ".concat(n));var i=Number(r[1]),a=r[2],o=be[a].weekday;return new se(o,i)})}var Et=function(){function t(e,n){if(isNaN(e.getTime()))throw new RangeError("Invalid date passed to DateWithZone");this.date=e,this.tzid=n}return Object.defineProperty(t.prototype,"isUTC",{get:function(){return!this.tzid||this.tzid.toUpperCase()==="UTC"},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e=yn(this.date.getTime(),this.isUTC);return this.isUTC?":".concat(e):";TZID=".concat(this.tzid,":").concat(e)},t.prototype.getTime=function(){return this.date.getTime()},t.prototype.rezonedDate=function(){return this.isUTC?this.date:ba(this.date,this.tzid)},t}();function en(t){for(var e=[],n="",r=Object.keys(t),i=Object.keys(wn),a=0;a<r.length;a++)if(r[a]!=="tzid"&&W(i,r[a])){var o=r[a].toUpperCase(),s=t[r[a]],l="";if(!(!J(s)||fe(s)&&!s.length)){switch(o){case"FREQ":l=D.FREQUENCIES[t.freq];break;case"WKST":Ee(s)?l=new se(s).toString():l=s.toString();break;case"BYWEEKDAY":o="BYDAY",l=pa(s).map(function(p){return p instanceof se?p:fe(p)?new se(p[0],p[1]):new se(p)}).toString();break;case"DTSTART":n=Oa(s,t.tzid);break;case"UNTIL":l=yn(s,!t.tzid);break;default:if(fe(s)){for(var u=[],d=0;d<s.length;d++)u[d]=String(s[d]);l=u.toString()}else l=String(s)}l&&e.push([o,l])}}var f=e.map(function(p){var m=p[0],w=p[1];return"".concat(m,"=").concat(w.toString())}).join(";"),h="";return f!==""&&(h="RRULE:".concat(f)),[n,h].filter(function(p){return!!p}).join(`
|
|
8
|
+
`)}function Oa(t,e){return t?"DTSTART"+new Et(new Date(t),e).toString():""}function Ma(t,e){return Array.isArray(t)?!Array.isArray(e)||t.length!==e.length?!1:t.every(function(n,r){return n.getTime()===e[r].getTime()}):t instanceof Date?e instanceof Date&&t.getTime()===e.getTime():t===e}var Na=function(){function t(){this.all=!1,this.before=[],this.after=[],this.between=[]}return t.prototype._cacheAdd=function(e,n,r){n&&(n=n instanceof Date?Xt(n):Vn(n)),e==="all"?this.all=n:(r._value=n,this[e].push(r))},t.prototype._cacheGet=function(e,n){var r=!1,i=n?Object.keys(n):[],a=function(d){for(var f=0;f<i.length;f++){var h=i[f];if(!Ma(n[h],d[h]))return!0}return!1},o=this[e];if(e==="all")r=this.all;else if(fe(o))for(var s=0;s<o.length;s++){var l=o[s];if(!(i.length&&a(l))){r=l._value;break}}if(!r&&this.all){for(var u=new Xe(e,n),s=0;s<this.all.length&&u.accept(this.all[s]);s++);r=u.getValue(),this._cacheAdd(e,r,n)}return fe(r)?Vn(r):r instanceof Date?Xt(r):r},t}(),Pa=$($($($($($($($($($($($($([],F(1,31),!0),F(2,28),!0),F(3,31),!0),F(4,30),!0),F(5,31),!0),F(6,30),!0),F(7,31),!0),F(8,31),!0),F(9,30),!0),F(10,31),!0),F(11,30),!0),F(12,31),!0),F(1,7),!0),Fa=$($($($($($($($($($($($($([],F(1,31),!0),F(2,29),!0),F(3,31),!0),F(4,30),!0),F(5,31),!0),F(6,30),!0),F(7,31),!0),F(8,31),!0),F(9,30),!0),F(10,31),!0),F(11,30),!0),F(12,31),!0),F(1,7),!0),La=Ie(1,29),Ua=Ie(1,30),Le=Ie(1,31),re=Ie(1,32),Ya=$($($($($($($($($($($($($([],re,!0),Ua,!0),re,!0),Le,!0),re,!0),Le,!0),re,!0),re,!0),Le,!0),re,!0),Le,!0),re,!0),re.slice(0,7),!0),Ha=$($($($($($($($($($($($($([],re,!0),La,!0),re,!0),Le,!0),re,!0),Le,!0),re,!0),re,!0),Le,!0),re,!0),Le,!0),re,!0),re.slice(0,7),!0),Ba=Ie(-28,0),Wa=Ie(-29,0),Ue=Ie(-30,0),ie=Ie(-31,0),ja=$($($($($($($($($($($($($([],ie,!0),Wa,!0),ie,!0),Ue,!0),ie,!0),Ue,!0),ie,!0),ie,!0),Ue,!0),ie,!0),Ue,!0),ie,!0),ie.slice(0,7),!0),qa=$($($($($($($($($($($($($([],ie,!0),Ba,!0),ie,!0),Ue,!0),ie,!0),Ue,!0),ie,!0),ie,!0),Ue,!0),ie,!0),Ue,!0),ie,!0),ie.slice(0,7),!0),za=[0,31,60,91,121,152,182,213,244,274,305,335,366],Ka=[0,31,59,90,120,151,181,212,243,273,304,334,365],or=function(){for(var t=[],e=0;e<55;e++)t=t.concat(Ie(7));return t}();function Ga(t,e){var n=We(t,1,1),r=at(t)?366:365,i=at(t+1)?366:365,a=Jt(n),o=Qe(n),s=he(he({yearlen:r,nextyearlen:i,yearordinal:a,yearweekday:o},Za(t)),{wnomask:null});if(Ce(e.byweekno))return s;s.wnomask=F(0,r+7);var l,u,d=l=me(7-o+e.wkst,7);d>=4?(d=0,u=s.yearlen+me(o-e.wkst,7)):u=r-d;for(var f=Math.floor(u/7),h=me(u,7),p=Math.floor(f+h/4),m=0;m<e.byweekno.length;m++){var w=e.byweekno[m];if(w<0&&(w+=p+1),w>0&&w<=p){var b=void 0;w>1?(b=d+(w-1)*7,d!==l&&(b-=7-l)):b=d;for(var k=0;k<7&&(s.wnomask[b]=1,b++,s.wdaymask[b]!==e.wkst);k++);}}if(W(e.byweekno,1)){var b=d+p*7;if(d!==l&&(b-=7-l),b<r)for(var m=0;m<7&&(s.wnomask[b]=1,b+=1,s.wdaymask[b]!==e.wkst);m++);}if(d){var M=void 0;if(W(e.byweekno,-1))M=-1;else{var te=Qe(We(t-1,1,1)),le=me(7-te.valueOf()+e.wkst,7),ge=at(t-1)?366:365,ne=void 0;le>=4?(le=0,ne=ge+me(te-e.wkst,7)):ne=r-d,M=Math.floor(52+me(ne,7)/4)}if(W(e.byweekno,M))for(var b=0;b<d;b++)s.wnomask[b]=1}return s}function Za(t){var e=at(t)?366:365,n=We(t,1,1),r=Qe(n);return e===365?{mmask:Pa,mdaymask:Ha,nmdaymask:qa,wdaymask:or.slice(r),mrange:Ka}:{mmask:Fa,mdaymask:Ya,nmdaymask:ja,wdaymask:or.slice(r),mrange:za}}function Ja(t,e,n,r,i,a){var o={lastyear:t,lastmonth:e,nwdaymask:[]},s=[];if(a.freq===D.YEARLY)if(Ce(a.bymonth))s=[[0,n]];else for(var l=0;l<a.bymonth.length;l++)e=a.bymonth[l],s.push(r.slice(e-1,e+1));else a.freq===D.MONTHLY&&(s=[r.slice(e-1,e+1)]);if(Ce(s))return o;o.nwdaymask=F(0,n);for(var l=0;l<s.length;l++)for(var u=s[l],d=u[0],f=u[1]-1,h=0;h<a.bynweekday.length;h++){var p=void 0,m=a.bynweekday[h],w=m[0],b=m[1];b<0?(p=f+(b+1)*7,p-=me(i[p]-w,7)):(p=d+(b-1)*7,p+=me(7-i[p]+w,7)),d<=p&&p<=f&&(o.nwdaymask[p]=1)}return o}function Xa(t,e){e===void 0&&(e=0);var n=t%19,r=Math.floor(t/100),i=t%100,a=Math.floor(r/4),o=r%4,s=Math.floor((r+8)/25),l=Math.floor((r-s+1)/3),u=Math.floor(19*n+r-a-l+15)%30,d=Math.floor(i/4),f=i%4,h=Math.floor(32+2*o+2*d-u-f)%7,p=Math.floor((n+11*u+22*h)/451),m=Math.floor((u+h-7*p+114)/31),w=(u+h-7*p+114)%31+1,b=Date.UTC(t,m-1,w+e),k=Date.UTC(t,0,1);return[Math.ceil((b-k)/(1e3*60*60*24))]}var Qa=function(){function t(e){this.options=e}return t.prototype.rebuild=function(e,n){var r=this.options;if(e!==this.lastyear&&(this.yearinfo=Ga(e,r)),V(r.bynweekday)&&(n!==this.lastmonth||e!==this.lastyear)){var i=this.yearinfo,a=i.yearlen,o=i.mrange,s=i.wdaymask;this.monthinfo=Ja(e,n,a,o,s,r)}J(r.byeaster)&&(this.eastermask=Xa(e,r.byeaster))},Object.defineProperty(t.prototype,"lastyear",{get:function(){return this.monthinfo?this.monthinfo.lastyear:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastmonth",{get:function(){return this.monthinfo?this.monthinfo.lastmonth:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yearlen",{get:function(){return this.yearinfo.yearlen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yearordinal",{get:function(){return this.yearinfo.yearordinal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mrange",{get:function(){return this.yearinfo.mrange},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wdaymask",{get:function(){return this.yearinfo.wdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mmask",{get:function(){return this.yearinfo.mmask},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wnomask",{get:function(){return this.yearinfo.wnomask},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nwdaymask",{get:function(){return this.monthinfo?this.monthinfo.nwdaymask:[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nextyearlen",{get:function(){return this.yearinfo.nextyearlen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mdaymask",{get:function(){return this.yearinfo.mdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nmdaymask",{get:function(){return this.yearinfo.nmdaymask},enumerable:!1,configurable:!0}),t.prototype.ydayset=function(){return[Ie(this.yearlen),0,this.yearlen]},t.prototype.mdayset=function(e,n){for(var r=this.mrange[n-1],i=this.mrange[n],a=F(null,this.yearlen),o=r;o<i;o++)a[o]=o;return[a,r,i]},t.prototype.wdayset=function(e,n,r){for(var i=F(null,this.yearlen+7),a=Jt(We(e,n,r))-this.yearordinal,o=a,s=0;s<7&&(i[a]=a,++a,this.wdaymask[a]!==this.options.wkst);s++);return[i,o,a]},t.prototype.ddayset=function(e,n,r){var i=F(null,this.yearlen),a=Jt(We(e,n,r))-this.yearordinal;return i[a]=a,[i,a,a+1]},t.prototype.htimeset=function(e,n,r,i){var a=this,o=[];return this.options.byminute.forEach(function(s){o=o.concat(a.mtimeset(e,s,r,i))}),lt(o),o},t.prototype.mtimeset=function(e,n,r,i){var a=this.options.bysecond.map(function(o){return new bt(e,n,o,i)});return lt(a),a},t.prototype.stimeset=function(e,n,r,i){return[new bt(e,n,r,i)]},t.prototype.getdayset=function(e){switch(e){case L.YEARLY:return this.ydayset.bind(this);case L.MONTHLY:return this.mdayset.bind(this);case L.WEEKLY:return this.wdayset.bind(this);case L.DAILY:return this.ddayset.bind(this);default:return this.ddayset.bind(this)}},t.prototype.gettimeset=function(e){switch(e){case L.HOURLY:return this.htimeset.bind(this);case L.MINUTELY:return this.mtimeset.bind(this);case L.SECONDLY:return this.stimeset.bind(this)}},t}();function Va(t,e,n,r,i,a){for(var o=[],s=0;s<t.length;s++){var l=void 0,u=void 0,d=t[s];d<0?(l=Math.floor(d/e.length),u=me(d,e.length)):(l=Math.floor((d-1)/e.length),u=me(d-1,e.length));for(var f=[],h=n;h<r;h++){var p=a[h];J(p)&&f.push(p)}var m=void 0;l<0?m=f.slice(l)[0]:m=f[l];var w=e[u],b=ai(i.yearordinal+m),k=si(b,w);W(o,k)||o.push(k)}return lt(o),o}function ui(t,e){var n=e.dtstart,r=e.freq,i=e.interval,a=e.until,o=e.bysetpos,s=e.count;if(s===0||i===0)return Ae(t);var l=Sa.fromDate(n),u=new Qa(e);u.rebuild(l.year,l.month);for(var d=ns(u,l,e);;){var f=u.getdayset(r)(l.year,l.month,l.day),h=f[0],p=f[1],m=f[2],w=ts(h,p,m,u,e);if(V(o))for(var b=Va(o,d,p,m,u,h),k=0;k<b.length;k++){var M=b[k];if(a&&M>a)return Ae(t);if(M>=n){var te=ar(M,e);if(!t.accept(te)||s&&(--s,!s))return Ae(t)}}else for(var k=p;k<m;k++){var le=h[k];if(J(le))for(var ge=ai(u.yearordinal+le),ne=0;ne<d.length;ne++){var Ye=d[ne],M=si(ge,Ye);if(a&&M>a)return Ae(t);if(M>=n){var te=ar(M,e);if(!t.accept(te)||s&&(--s,!s))return Ae(t)}}}if(e.interval===0||(l.add(e,w),l.year>ri))return Ae(t);vn(r)||(d=u.gettimeset(r)(l.hour,l.minute,l.second,0)),u.rebuild(l.year,l.month)}}function es(t,e,n){var r=n.bymonth,i=n.byweekno,a=n.byweekday,o=n.byeaster,s=n.bymonthday,l=n.bynmonthday,u=n.byyearday;return V(r)&&!W(r,t.mmask[e])||V(i)&&!t.wnomask[e]||V(a)&&!W(a,t.wdaymask[e])||V(t.nwdaymask)&&!t.nwdaymask[e]||o!==null&&!W(t.eastermask,e)||(V(s)||V(l))&&!W(s,t.mdaymask[e])&&!W(l,t.nmdaymask[e])||V(u)&&(e<t.yearlen&&!W(u,e+1)&&!W(u,-t.yearlen+e)||e>=t.yearlen&&!W(u,e+1-t.yearlen)&&!W(u,-t.nextyearlen+e-t.yearlen))}function ar(t,e){return new Et(t,e.tzid).rezonedDate()}function Ae(t){return t.getValue()}function ts(t,e,n,r,i){for(var a=!1,o=e;o<n;o++){var s=t[o];a=es(r,s,i),a&&(t[s]=null)}return a}function ns(t,e,n){var r=n.freq,i=n.byhour,a=n.byminute,o=n.bysecond;return vn(r)?Da(n):r>=D.HOURLY&&V(i)&&!W(i,e.hour)||r>=D.MINUTELY&&V(a)&&!W(a,e.minute)||r>=D.SECONDLY&&V(o)&&!W(o,e.second)?[]:t.gettimeset(r)(e.hour,e.minute,e.second,e.millisecond)}var be={MO:new se(0),TU:new se(1),WE:new se(2),TH:new se(3),FR:new se(4),SA:new se(5),SU:new se(6)},wn={freq:L.YEARLY,dtstart:null,interval:1,wkst:be.MO,count:null,until:null,tzid:null,bysetpos:null,bymonth:null,bymonthday:null,bynmonthday:null,byyearday:null,byweekno:null,byweekday:null,bynweekday:null,byhour:null,byminute:null,bysecond:null,byeaster:null},rs=Object.keys(wn),D=function(){function t(e,n){e===void 0&&(e={}),n===void 0&&(n=!1),this._cache=n?null:new Na,this.origOptions=ci(e);var r=Ia(e).parsedOptions;this.options=r}return t.parseText=function(e,n){return li(e,n)},t.fromText=function(e,n){return Ta(e,n)},t.fromString=function(e){return new t(t.parseString(e)||void 0)},t.prototype._iter=function(e){return ui(e,this.options)},t.prototype._cacheGet=function(e,n){return this._cache?this._cache._cacheGet(e,n):!1},t.prototype._cacheAdd=function(e,n,r){if(this._cache)return this._cache._cacheAdd(e,n,r)},t.prototype.all=function(e){if(e)return this._iter(new tr("all",{},e));var n=this._cacheGet("all");return n===!1&&(n=this._iter(new Xe("all",{})),this._cacheAdd("all",n)),n},t.prototype.between=function(e,n,r,i){if(r===void 0&&(r=!1),!ot(e)||!ot(n))throw new Error("Invalid date passed in to RRule.between");var a={before:n,after:e,inc:r};if(i)return this._iter(new tr("between",a,i));var o=this._cacheGet("between",a);return o===!1&&(o=this._iter(new Xe("between",a)),this._cacheAdd("between",o,a)),o},t.prototype.before=function(e,n){if(n===void 0&&(n=!1),!ot(e))throw new Error("Invalid date passed in to RRule.before");var r={dt:e,inc:n},i=this._cacheGet("before",r);return i===!1&&(i=this._iter(new Xe("before",r)),this._cacheAdd("before",i,r)),i},t.prototype.after=function(e,n){if(n===void 0&&(n=!1),!ot(e))throw new Error("Invalid date passed in to RRule.after");var r={dt:e,inc:n},i=this._cacheGet("after",r);return i===!1&&(i=this._iter(new Xe("after",r)),this._cacheAdd("after",i,r)),i},t.prototype.count=function(){return this.all().length},t.prototype.toString=function(){return en(this.origOptions)},t.prototype.toText=function(e,n,r){return ka(this,e,n,r)},t.prototype.isFullyConvertibleToText=function(){return xa(this)},t.prototype.clone=function(){return new t(this.origOptions)},t.FREQUENCIES=["YEARLY","MONTHLY","WEEKLY","DAILY","HOURLY","MINUTELY","SECONDLY"],t.YEARLY=L.YEARLY,t.MONTHLY=L.MONTHLY,t.WEEKLY=L.WEEKLY,t.DAILY=L.DAILY,t.HOURLY=L.HOURLY,t.MINUTELY=L.MINUTELY,t.SECONDLY=L.SECONDLY,t.MO=be.MO,t.TU=be.TU,t.WE=be.WE,t.TH=be.TH,t.FR=be.FR,t.SA=be.SA,t.SU=be.SU,t.parseString=Vt,t.optionsToString=en,t}();function is(t,e,n,r,i,a){var o={},s=t.accept;function l(h,p){n.forEach(function(m){m.between(h,p,!0).forEach(function(w){o[Number(w)]=!0})})}i.forEach(function(h){var p=new Et(h,a).rezonedDate();o[Number(p)]=!0}),t.accept=function(h){var p=Number(h);return isNaN(p)?s.call(this,h):!o[p]&&(l(new Date(p-1),new Date(p+1)),!o[p])?(o[p]=!0,s.call(this,h)):!0},t.method==="between"&&(l(t.args.after,t.args.before),t.accept=function(h){var p=Number(h);return o[p]?!0:(o[p]=!0,s.call(this,h))});for(var u=0;u<r.length;u++){var d=new Et(r[u],a).rezonedDate();if(!t.accept(new Date(d.getTime())))break}e.forEach(function(h){ui(t,h.options)});var f=t._result;switch(lt(f),t.method){case"all":case"between":return f;case"before":return f.length&&f[f.length-1]||null;case"after":default:return f.length&&f[0]||null}}var sr={dtstart:null,cache:!1,unfold:!1,forceset:!1,compatible:!1,tzid:null};function os(t,e){var n=[],r=[],i=[],a=[],o=$t(t),s=o.dtstart,l=o.tzid,u=us(t,e.unfold);return u.forEach(function(d){var f;if(d){var h=cs(d),p=h.name,m=h.parms,w=h.value;switch(p.toUpperCase()){case"RRULE":if(m.length)throw new Error("unsupported RRULE parm: ".concat(m.join(",")));n.push(Vt(d));break;case"RDATE":var b=(f=/RDATE(?:;TZID=([^:=]+))?/i.exec(d))!==null&&f!==void 0?f:[],k=b[1];k&&!l&&(l=k),r=r.concat(cr(w,m));break;case"EXRULE":if(m.length)throw new Error("unsupported EXRULE parm: ".concat(m.join(",")));i.push(Vt(w));break;case"EXDATE":a=a.concat(cr(w,m));break;case"DTSTART":break;default:throw new Error("unsupported property: "+p)}}}),{dtstart:s,tzid:l,rrulevals:n,rdatevals:r,exrulevals:i,exdatevals:a}}function as(t,e){var n=os(t,e),r=n.rrulevals,i=n.rdatevals,a=n.exrulevals,o=n.exdatevals,s=n.dtstart,l=n.tzid,u=e.cache===!1;if(e.compatible&&(e.forceset=!0,e.unfold=!0),e.forceset||r.length>1||i.length||a.length||o.length){var d=new fs(u);return d.dtstart(s),d.tzid(l||void 0),r.forEach(function(h){d.rrule(new D(Lt(h,s,l),u))}),i.forEach(function(h){d.rdate(h)}),a.forEach(function(h){d.exrule(new D(Lt(h,s,l),u))}),o.forEach(function(h){d.exdate(h)}),e.compatible&&e.dtstart&&d.rdate(s),d}var f=r[0]||{};return new D(Lt(f,f.dtstart||e.dtstart||s,f.tzid||e.tzid||l),u)}function lr(t,e){return e===void 0&&(e={}),as(t,ss(e))}function Lt(t,e,n){return he(he({},t),{dtstart:e,tzid:n})}function ss(t){var e=[],n=Object.keys(t),r=Object.keys(sr);if(n.forEach(function(i){W(r,i)||e.push(i)}),e.length)throw new Error("Invalid options: "+e.join(", "));return he(he({},sr),t)}function ls(t){if(t.indexOf(":")===-1)return{name:"RRULE",value:t};var e=ya(t,":",1),n=e[0],r=e[1];return{name:n,value:r}}function cs(t){var e=ls(t),n=e.name,r=e.value,i=n.split(";");if(!i)throw new Error("empty property name");return{name:i[0].toUpperCase(),parms:i.slice(1),value:r}}function us(t,e){if(e===void 0&&(e=!1),t=t&&t.trim(),!t)throw new Error("Invalid empty string");if(!e)return t.split(/\s/);for(var n=t.split(`
|
|
9
|
+
`),r=0;r<n.length;){var i=n[r]=n[r].replace(/\s+$/g,"");i?r>0&&i[0]===" "?(n[r-1]+=i.slice(1),n.splice(r,1)):r+=1:n.splice(r,1)}return n}function ds(t){t.forEach(function(e){if(!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(e))throw new Error("unsupported RDATE/EXDATE parm: "+e)})}function cr(t,e){return ds(e),t.split(",").map(function(n){return mn(n)})}function ur(t){var e=this;return function(n){if(n!==void 0&&(e["_".concat(t)]=n),e["_".concat(t)]!==void 0)return e["_".concat(t)];for(var r=0;r<e._rrule.length;r++){var i=e._rrule[r].origOptions[t];if(i)return i}}}var fs=function(t){gn(e,t);function e(n){n===void 0&&(n=!1);var r=t.call(this,{},n)||this;return r.dtstart=ur.apply(r,["dtstart"]),r.tzid=ur.apply(r,["tzid"]),r._rrule=[],r._rdate=[],r._exrule=[],r._exdate=[],r}return e.prototype._iter=function(n){return is(n,this._rrule,this._exrule,this._rdate,this._exdate,this.tzid())},e.prototype.rrule=function(n){dr(n,this._rrule)},e.prototype.exrule=function(n){dr(n,this._exrule)},e.prototype.rdate=function(n){fr(n,this._rdate)},e.prototype.exdate=function(n){fr(n,this._exdate)},e.prototype.rrules=function(){return this._rrule.map(function(n){return lr(n.toString())})},e.prototype.exrules=function(){return this._exrule.map(function(n){return lr(n.toString())})},e.prototype.rdates=function(){return this._rdate.map(function(n){return new Date(n.getTime())})},e.prototype.exdates=function(){return this._exdate.map(function(n){return new Date(n.getTime())})},e.prototype.valueOf=function(){var n=[];return!this._rrule.length&&this._dtstart&&(n=n.concat(en({dtstart:this._dtstart}))),this._rrule.forEach(function(r){n=n.concat(r.toString().split(`
|
|
10
|
+
`))}),this._exrule.forEach(function(r){n=n.concat(r.toString().split(`
|
|
11
|
+
`).map(function(i){return i.replace(/^RRULE:/,"EXRULE:")}).filter(function(i){return!/^DTSTART/.test(i)}))}),this._rdate.length&&n.push(hr("RDATE",this._rdate,this.tzid())),this._exdate.length&&n.push(hr("EXDATE",this._exdate,this.tzid())),n},e.prototype.toString=function(){return this.valueOf().join(`
|
|
12
|
+
`)},e.prototype.clone=function(){var n=new e(!!this._cache);return this._rrule.forEach(function(r){return n.rrule(r.clone())}),this._exrule.forEach(function(r){return n.exrule(r.clone())}),this._rdate.forEach(function(r){return n.rdate(new Date(r.getTime()))}),this._exdate.forEach(function(r){return n.exdate(new Date(r.getTime()))}),n},e}(D);function dr(t,e){if(!(t instanceof D))throw new TypeError(String(t)+" is not RRule instance");W(e.map(String),String(t))||e.push(t)}function fr(t,e){if(!(t instanceof Date))throw new TypeError(String(t)+" is not Date instance");W(e.map(Number),Number(t))||(e.push(t),lt(e))}function hr(t,e,n){var r=!n||n.toUpperCase()==="UTC",i=r?"".concat(t,":"):"".concat(t,";TZID=").concat(n,":"),a=e.map(function(o){return yn(o.valueOf(),r)}).join(",");return"".concat(i).concat(a)}function hs(...t){window&&window.localStorage&&window.localStorage.getItem("debug")&&(console.group(...t),console.trace(),console.groupEnd())}function ps(...t){console.error(...t)}function ys(){return Math.random().toString(36).substr(2,9)}function ms(t){return t.toString().replace(/^on/,"")}function gs(t){const e=new Date(t*1e3),n=new Date,r=new Date(n.getFullYear(),n.getMonth(),n.getDate());return e>=r?new Intl.DateTimeFormat("default",{hour:"numeric",minute:"numeric",hour12:!0}).format(e):new Intl.DateTimeFormat("default",{month:"short",day:"numeric"}).format(e)}function vs(t){return t.name?`${t.name} - ${t.email}`:t.email}function ws(t,e="",n=1,r=3){const i=t.find(l=>{var u;return((u=l.email)==null?void 0:u.toLowerCase())===e.toLowerCase()}),a=t.filter(l=>{var u;return((u=l.email)==null?void 0:u.toLowerCase())!==e.toLowerCase()}),o=a.length,s=a.slice(0,r).map(l=>l.name||l.email).join(", ");return o===0?i?"me":"":o===1?i&&n>1?`me, ${s}`:s:o===2?i?`me, ${s}`:`${s}`:i?`me, ${s}, +${o-r}`:`${s}, +${o-r}`}const pr=[{amount:60,name:"seconds"},{amount:60,name:"minutes"},{amount:24,name:"hours"},{amount:7,name:"days"},{amount:4.34524,name:"weeks"},{amount:12,name:"months"},{amount:Number.POSITIVE_INFINITY,name:"years"}],bs=t=>{const e=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),n=new Date;let r=(t.getTime()-n.getTime())/1e3;for(let i=0;i<=pr.length;i++){const a=pr[i];if(Math.abs(r)<a.amount)return e.format(Math.round(r),a.name);r/=a.amount}};function $s(t){return new Date(t.getFullYear(),t.getMonth()+1,0)}function Es(t){return new Date(t.getFullYear(),t.getMonth(),1)}function Cs(t,e){return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()}function Ts(t,e){return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()}function ks(t){return t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase())}function xs(t){return t.replace("CATEGORY_","").replace(/_/g," ")}function di(t){return/<[^>]*>/g.test(t)?"html":"plain"}function Ss(t){var i,a;const e=t.headers,n=e&&((i=e.find(o=>o.name==="Content-Type"))==null?void 0:i.value)||"",r=e&&((a=e.find(o=>o.name==="Content-Disposition"))==null?void 0:a.value)||"";return!!(n.includes("text/html")||r.includes("inline")||t.body&&di(t.body)==="html")}function Is(t){let r=t.split(`
|
|
13
|
+
`).filter(a=>a.trim().length>0).map(a=>`<p>${a}</p>`).join("");const i=/((?:https?|ftp):\/\/[^\s]+)/g;return r=r.replace(i,'<a href="$1">$1</a>'),r}function Ds(t){return new DOMParser().parseFromString(t,"text/html").body.textContent||""}const _s=t=>t===""?!0:/^(0[0-9]|1[0-2]|^[0-9])(:[0-5][0-9][ap]m?|:[0-5][0-9]|:[0-5]|:)?$/i.test(t),Rs=t=>/^(0[1-9]|1[0-2]):([0-5][0-9])(am|pm)$/i.test(t);function As(t=null){let e=pn();t&&(e=t);const n=e.minute()%15;let r;return n!==0?r=e.add(15-n,"minute"):r=e,r}function Os(t){const e=pn();let n="";const[r,i]=t.split(":");r.length===1?n+="0"+r:r.length===2&&(n+=r),n+=":",i===void 0||i==""?n+="00":i.length===1?n+=i+"0":n+=i;const a=n.slice(-1);return a==="a"&&(n+="m"),a==="p"&&(n+="m"),n.slice(-1)!=="m"&&(n.split(":")[0]=="00"?n+="am":n+=e.format("a")),n}function Ms(t){const[e,n]=t.split(":").map(s=>parseInt(s,10));let r=e;const i=r>=12?"pm":"am";r=r%12,r=r||12;const a=r.toString().padStart(2,"0"),o=n.toString().padStart(2,"0");return`${a}:${o}${i}`}function Ns(t){const[e,n]=t.split(/(am|pm)/i),[r,i]=e.split(":").map(o=>parseInt(o,10));let a=r;return n.toLowerCase()==="pm"&&a<12?a+=12:n.toLowerCase()==="am"&&a===12&&(a=0),`${a.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`}function Ps(t){const[e,n]=t.match(/(\d+):(\d+)(am|pm)/).slice(1);let r=parseInt(e,10)*60+parseInt(n,10);return t.includes("pm")&&parseInt(e,10)<12&&(r+=12*60),t.includes("am")&&parseInt(e,10)===12&&(r-=12*60),r}function Fs(t){const e=Math.floor(t/60),n=t%60;return`${e}:${n<10?"0":""}${n}`}function Ls(){const t=navigator.userAgent,e=/Chrome/.test(t)&&/Google Inc/.test(navigator.vendor),n=/Safari/.test(t)&&/Apple Computer/.test(navigator.vendor),r=/Firefox/.test(t),i=/Trident/.test(t),a=/Edge/.test(t);return e&&/Edg/.test(t)?"Edge (Chromium)":e?"Chrome":n?"Safari":r?"Firefox":i?"Internet Explorer":a?"Edge (Legacy)":"Unknown"}function tn(t,e=null){return e?[null,e]:[t,null]}function Us(t,e){const n={"config.id":e==null?void 0:e.id,id:e==null?void 0:e.id};return Object.keys(n).forEach(r=>{t=t.replace(`{${r}}`,n[r])}),t}function Ys(t){if(t.keyCode<48||t.keyCode>90&&t.keyCode<96||t.keyCode>111&&t.keyCode<186||t.keyCode>222||t.keyCode===32||t.keyCode===91||t.keyCode===92||t.keyCode===93||t.keyCode>=112&&t.keyCode<=123||t.keyCode>=37&&t.keyCode<=40||t.ctrlKey||t.altKey||t.metaKey)return!0;const e=[48,49,50,51,52,53,54,55,56,57,186,187,188,189,190,191,192,219,220,221,222];return t.shiftKey&&e.includes(t.keyCode),!1}function Hs(t,e){const n=new Date(t);return n.setDate(n.getDate()+e),n.setHours(23),n.setMinutes(59),n.setSeconds(0),n.setMilliseconds(0),n}function Ut(t){return t&&typeof t=="object"&&!Array.isArray(t)}function nn(t,e){if(Array.isArray(t)&&Array.isArray(e)&&t!==e){if(t.some(n=>n.is_organizer)&&e.some(n=>n.is_organizer))t=t.map(n=>({...n,is_organizer:!1}));else if(!e.some(n=>n.is_organizer)){let n=!1;t=t.map(r=>n?r:(n=!0,{...r,is_organizer:!0}))}return t.map((n,r)=>e[r]?nn(n,e[r]):n).concat(e.slice(t.length))}else if(Ut(t)&&Ut(e)){const n=Object.assign({},t);return Object.keys(e).forEach(r=>{Ut(e[r])&&r in t?n[r]=nn(t[r],e[r]):n[r]=e[r]}),n}return e}function Bs(t){if(t<60)return`${t} minutes`;const e=Math.floor(t/60),n=t%60;return`${e} hour${e>1?"s":""} ${n||""} ${n?n>1?"minutes":"minute":""}`}function Ws(t,e){t.forEach(n=>{var a;const r=(a=e.shadowRoot)==null?void 0:a.querySelector(`slot[name="${n}"]`),i=r==null?void 0:r.assignedNodes();i&&i.length===0&&console.warn(`${e.nodeName} No content provided for slot="${n}".`)})}function js(t){const e=g.from(t,"base64"),n=e.slice(0,16),r=e.slice(16,32);function i(s){const l=s.toString("hex");return`${l.slice(0,8)}-${l.slice(8,12)}-${l.slice(12,16)}-${l.slice(16,20)}-${l.slice(20)}`}const a=i(n),o=i(r);return[a,o]}class qs{constructor(e){this.defaultAuthArgs=[],this.session=e}setActiveGrantId(e){this.activeGrantId=e}async request({method:e,path:n,body:r,headers:i}){try{const a=await this.session.fetch(`grants/me/${n}`,{method:e,headers:i?new Headers(i):void 0,body:r,...this.session.isMultiAccount()&&this.activeGrantId?{grant_id:this.activeGrantId}:{}});if(typeof a>"u")throw new Error("Response is undefined");return tn(a)}catch(a){let o=String(a);return String(a).includes("Access token not found")&&(o="Session expired, please log in again. Redirecting...",setTimeout(()=>{localStorage.removeItem("grant"),localStorage.removeItem("user"),window.location.reload()},1e3)),tn(null,{message:o})}}async currentUser(){const e=this.session.isMultiAccount()?this.activeGrantId:void 0,n=await this.session.getProfile(e);return n?{id:n.sub,email:n.email,name:n.name,provider:n.provider}:null}async authenticationUrl(e){const n=(e==null?void 0:e.provider)||"google";let i=this.defaultAuthArgs.find(a=>a.provider===n)||{};return e&&(i={...i,...e}),this.session.auth(i)}setDefaultAuthArgs(e){this.defaultAuthArgs=e}}Ur({});function zs(){var t=[];if(typeof window<"u"){var e=window;(!e.customElements||e.Element&&(!e.Element.prototype.closest||!e.Element.prototype.matches||!e.Element.prototype.remove||!e.Element.prototype.getRootNode))&&t.push(Promise.resolve().then(()=>require("./dom-68f08be9.cjs")));var n=function(){try{var r=new URL("b","http://a");return r.pathname="c%20d",r.href==="http://a/c%20d"&&r.searchParams}catch{return!1}};(typeof Object.assign!="function"||!Object.entries||!Array.prototype.find||!Array.prototype.includes||!String.prototype.startsWith||!String.prototype.endsWith||e.NodeList&&!e.NodeList.prototype.forEach||!e.fetch||!n()||typeof WeakMap>"u")&&t.push(Promise.resolve().then(()=>require("./core-js-38e53e34.cjs")))}return Promise.all(t)}async function Ks(){await Promise.resolve().then(()=>require("./elements-dc5b338e-62b53496.cjs"))}const Gs=Ks,fi=(t,e)=>{if(!(typeof window>"u"))return Gs(),mo(JSON.parse('[["nylas-scheduler-editor",[[1,"nylas-scheduler-editor",{"configurationId":[1025,"configuration-id"],"nylasApiRequest":[1040],"nylasSessionsConfig":[16],"defaultAuthArgs":[16],"eventOverrides":[16],"schedulerPreviewLink":[1,"scheduler-preview-link"],"defaultSchedulerConfigState":[16],"mode":[1],"additionalParticipants":[16],"hideEditorTabs":[16],"conferenceProviders":[16],"automaticComponentRegistration":[32],"store":[64],"schedulerConnector":[64]},[[0,"registerComponent","registerComponentHandler"],[0,"unregisterComponent","unregisterComponentHandler"]],{"configurationId":["configurationIdChanged"]}]]],["nylas-scheduling",[[1,"nylas-scheduling",{"mode":[1],"defaultSchedulerState":[16],"sessionId":[1,"session-id"],"schedulerApiUrl":[1,"scheduler-api-url"],"bookingInfo":[16],"rescheduleBookingRef":[1,"reschedule-booking-ref"],"cancelBookingRef":[1,"cancel-booking-ref"],"configurationId":[1,"configuration-id"],"nylasBranding":[4,"nylas-branding"],"eventOverrides":[16],"isLoading":[4,"is-loading"],"themeConfig":[16],"showNotification":[4,"show-notification"],"automaticComponentRegistration":[32],"selectedDateLabel":[32],"refConfigId":[32],"getNylasSchedulerStore":[64],"getNylasSchedulerConnector":[64],"getRef":[64]},[[0,"registerComponent","registerComponentHandler"],[0,"unregisterComponent","unregisterComponentHandler"],[0,"monthChanged","monthChangedHandler"],[0,"detailsConfirmed","bookButtonClickedHandler"],[0,"dateSelected","dateSelectedHandler"],[0,"cancelBookedEventError","cancelBookedEventErrorHandler"],[0,"cancelBookedEventValidationError","cancelBookedEventValidationErrorHandler"],[0,"rescheduleBookedEventError","rescheduleBookedEventErrorHandler"]],{"bookingInfo":["bookingInfoChanged"],"rescheduleBookingRef":["rescheduleBookingRefChanged"],"cancelBookingRef":["cancelBookingRefChanged"]}]]],["nylas-view-thread",[[1,"nylas-view-thread",{"draft":[16],"thread":[16],"messages":[16],"attachments":[16],"state":[32],"internalMessages":[32],"showAllEmails":[32],"showComposer":[32]},null,{"thread":["threadChanged"],"messages":["updateInternalMessages"]}]]],["nylas-list-folders",[[1,"nylas-list-folders",{"folders":[16],"selectedFolder":[1,"selected-folder"],"defaultFolders":[32],"otherFolders":[32]},null,{"folders":["watchFolders"]}]]],["nylas-custom-booking-flow",[[65,"nylas-custom-booking-flow",{"selectedConfiguration":[16],"name":[1],"bookingType":[1,"booking-type"],"selectedBookingType":[32]},[[0,"nylasFormDropdownChanged","nylasFormDropdownChangedHandler"]],{"name":["elementNameChangedHandler"],"selectedConfiguration":["selectedConfigurationChangedHandler"]}]]],["nylas-mailbox-pagination",[[1,"nylas-mailbox-pagination",{"state":[1],"hasNextPage":[4,"has-next-page"],"hasPreviousPage":[4,"has-previous-page"],"scrollTarget":[1,"scroll-target"],"mobileOnlyInfiniteScroll":[4,"mobile-only-infinite-scroll"],"mobileViewPortWidth":[2,"mobile-view-port-width"],"nextPage":[64],"previousPage":[64]},[[9,"scroll","handlePageScroll"]]]]],["nylas-threads-refresh",[[1,"nylas-threads-refresh",{"start":[32],"state":[32],"pulling":[32],"updateState":[64]}]]],["document-refresh-icon",[[2,"document-refresh-icon",{"width":[1],"height":[1]}]]],["nylas-if-state",[[1,"nylas-if-state",{"state":[1],"isStateSet":[4,"is-state-set"],"isBoolean":[4,"is-boolean"],"getStore":[16],"transition":[1],"show":[32],"classes":[32]},null,{"getStore":["onGetStoreChange"]}]]],["nylas-list-threads",[[1,"nylas-list-threads",{"threads":[16],"isAuthenticated":[4,"is-authenticated"],"tokenInfo":[16],"state":[1],"showCheckbox":[4,"show-checkbox"]}]]],["nylas-login",[[1,"nylas-login",{"isAuthenticated":[4,"is-authenticated"],"nylasConnector":[16],"scopes":[16],"loginMethod":[1,"login-method"],"companyName":[1,"company-name"],"logoUrl":[1,"logo-url"],"logoWidth":[1,"logo-width"],"providers":[1],"buttonText":[1,"button-text"],"email":[32]}]]],["nylas-mailbox",[[1,"nylas-mailbox",{"automaticComponentRegistration":[4,"automatic-component-registration"],"eventOverrides":[16],"authConfig":[16],"defaultAuthStoreState":[16],"defaultMailboxStoreState":[16],"getMailboxStore":[64],"getAuthStore":[64],"getNylasAuth":[64],"getNylasMailboxConnector":[64]},[[0,"registerComponent","registerComponentHandler"],[0,"unregisterComponent","unregisterComponentHandler"]]]]],["nylas-mailbox-toolbar-button",[[1,"nylas-mailbox-toolbar-button",{"method":[1],"dataState":[1,"data-state"],"iconOnly":[4,"icon-only"],"mailboxConnector":[16]}]]],["nylas-provider",[[1,"nylas-provider",{"authConfig":[16],"eventOverrides":[16],"automaticComponentRegistration":[4,"automatic-component-registration"],"getNylasAuth":[64],"getNylasConnector":[64],"getMailboxStore":[64],"getAuthStore":[64],"getNylasSchedulerStore":[64],"getNylasSchedulerConfigStore":[64]},[[0,"registerComponent","registerComponentHandler"],[0,"unregisterComponent","unregisterComponentHandler"]]]]],["nylas-threads-search",[[1,"nylas-threads-search",{"query":[1],"internalQuery":[32]},null,{"query":["onQueryChange"]}]]],["arrow-icon",[[2,"arrow-icon",{"width":[1],"height":[1]}]]],["refresh-icon",[[2,"refresh-icon",{"width":[1],"height":[1]}]]],["textarea-component",[[1,"textarea-component",{"name":[1],"defaultValue":[1,"default-value"],"label":[1],"placeholder":[1],"required":[4],"readOnly":[4,"read-only"],"autoFocus":[4,"auto-focus"],"maxLength":[2,"max-length"],"type":[1],"value":[32],"error":[32]},[[4,"bookingFormSubmitted","handleBookingFormSubmitted"]]]]],["translate-icon",[[2,"translate-icon",{"width":[1],"height":[1]}]]],["warning-icon",[[2,"warning-icon",{"width":[1],"height":[1]}]]],["calendar-cancel-icon",[[2,"calendar-cancel-icon",{"width":[1],"height":[1]}]]],["multi-select-dropdown",[[1,"multi-select-dropdown",{"name":[1],"label":[1],"options":[16],"error":[1],"availableOptions":[32],"isOpen":[32],"ariaActivedescendant":[32],"shouldFocusFirstOption":[32]},[[6,"click","handleOutsideClick"]]]]],["calendar-agenda-fill-icon_35",[[65,"nylas-participants-custom-availability",{"selectedConfiguration":[16],"name":[1],"participants":[16],"selectedParticipants":[32]},[[0,"nylasFormSwitchToggled","nylasFormSwitchToggledHandler"],[0,"valueChanged","handleValueChanged"]],{"name":["elementNameChangedHandler"],"selectedConfiguration":["selectedConfigurationChangedHandler"]}],[65,"nylas-event-location",{"name":[1],"userProvider":[1,"user-provider"],"eventConferencing":[16],"conferenceProviders":[16],"selectedConfiguration":[16],"eventLocation":[1,"event-location"],"location":[32],"grantId":[32],"selectedLocationOption":[32]},[[0,"nylasFormDropdownChanged","nylasFormDropdownChangedHandler"]],{"name":["elementNameChangedHandler"],"selectedConfiguration":["selectedConfigurationChangedHandler"],"eventLocation":["eventLocationChangedHandler"]}],[65,"nylas-booking-form-config",{"selectedConfiguration":[16],"name":[1],"additonalFields":[16],"formFields":[32]},[[0,"nylasFormDropdownChanged","nylasFormDropdownChangedHandler"],[0,"nylasFormInputChanged","nylasFormInputChangedHandler"]],{"name":["elementNameChangedHandler"],"formFields":["watchHandler"]}],[65,"nylas-limit-future-bookings",{"selectedConfiguration":[16],"availableDaysInFuture":[2,"available-days-in-future"],"name":[1],"selectedNumber":[32],"selectedPeriod":[32]},[[0,"timePeriodChanged","timePeriodChangedHandler"]],{"name":["elementNameChangedHandler"],"selectedConfiguration":["selectedConfigurationChangedHandler"],"availableDaysInFuture":["availableDaysInFutureChanged"]}],[65,"nylas-min-booking-notice",{"selectedConfiguration":[16],"minBookingNotice":[2,"min-booking-notice"],"name":[1],"selectedNumber":[32],"selectedPeriod":[32]},[[0,"timePeriodChanged","timePeriodChangedHandler"]],{"name":["elementNameChangedHandler"],"selectedConfiguration":["selectedConfigurationChangedHandler"],"availableDaysInFuture":["availableDaysInFutureChanged"]}],[65,"nylas-min-cancellation-notice",{"selectedConfiguration":[16],"minCancellationNotice":[2,"min-cancellation-notice"],"name":[1],"selectedNumber":[32],"selectedPeriod":[32]},[[0,"timePeriodChanged","timePeriodChangedHandler"]],{"name":["elementNameChangedHandler"],"selectedConfiguration":["selectedConfigurationChangedHandler"],"availableDaysInFuture":["availableDaysInFutureChanged"]}],[65,"nylas-connected-calendars",{"name":[1],"participants":[16],"calendars":[16],"participantOptions":[16],"selectedCalendars":[32],"participantCalendars":[32],"participantDefaultSelectedCalendars":[32]},[[0,"valueChanged","handleValueChanged"]],{"name":["elementNameChangedHandler"],"calendars":["calendarsChangedHandler"],"participants":["participantsChangedHandler"],"participantOptions":["participantOptionsChangedHandler"]}],[65,"nylas-event-duration",{"selectedConfiguration":[16],"name":[1],"eventDurationMinutes":[2,"event-duration-minutes"],"duration":[32],"durationMinutes":[32],"durationIncrement":[32],"durationMinutesOptions":[32]},[[0,"nylasFormDropdownChanged","nylasFormDropdownChangedHandler"],[0,"inputOptionChanged","inputOptionChangedHandler"]],{"name":["elementNameChangedHandler"],"selectedConfiguration":["selectedConfigurationChangedHandler"],"durationMinutes":["durationMinutesChangedHandler"]}],[65,"nylas-participant-booking-calendars",{"selectedConfiguration":[16],"name":[1],"participants":[16],"calendars":[16],"participantOptions":[16],"selectedCalendars":[32],"participantCalendars":[32],"participantDefaultSelectedCalendar":[32]},[[0,"valueChanged","handleValueChanged"]],{"name":["elementNameChangedHandler"],"calendars":["calendarsChangedHandler"],"participants":["participantsChangedHandler"],"participantOptions":["participantOptionsChangedHandler"],"selectedConfiguration":["selectedConfigurationChangedHandler"]}],[65,"nylas-timeslot-interval",{"selectedConfiguration":[16],"name":[1],"eventDurationMinutes":[2,"event-duration-minutes"],"defaultIntervalMinutes":[2,"default-interval-minutes"],"defaultRoundTo":[2,"default-round-to"],"selectedInterval":[32],"selectedRoundTo":[32]},[[0,"nylasFormDropdownChanged","nylasFormDropdownChangedHandler"],[0,"nylasFormRadioChanged","nylasFormRadioChangedHandler"]],{"name":["elementNameChangedHandler"],"selectedConfiguration":["selectedConfigurationChangedHandler"]}],[65,"nylas-additional-participants",{"name":[1],"eventParticipants":[16],"participantOptions":[16],"participants":[32],"participantErrors":[32]},[[0,"inputOptionChanged","onInputOptionChanged"]],{"name":["elementNameChangedHandler"]}],[65,"nylas-buffer-time",{"name":[1],"buffer":[16],"selectedBeforeBufferTime":[32],"selectedAfterBufferTime":[32]},[[0,"nylasFormDropdownChanged","nylasFormDropdownChangedHandler"]],{"name":["elementNameChangedHandler"]}],[65,"nylas-customize-booking-settings",{"selectedConfiguration":[16],"defaultHideAdditionalGuests":[4,"default-hide-additional-guests"],"defaultHideCancellationOptions":[4,"default-hide-cancellation-options"],"defaultHideReschedulingOptions":[4,"default-hide-rescheduling-options"],"name":[1],"allowGuestsToInvite":[32],"hideCancellationOptions":[32],"hideReschedulingOptions":[32]},[[0,"nylasFormCheckboxToggled","checkboxToggledHandler"]],{"name":["elementNameChangedHandler"],"selectedConfiguration":["selectedConfigurationChangedHandler"]}],[65,"nylas-cancellation-policy",{"selectedConfiguration":[16],"cancellationPolicy":[1,"cancellation-policy"],"name":[1],"message":[32]},null,{"name":["elementNameChangedHandler"],"selectedConfiguration":["selectedConfigurationChangedHandler"]}],[65,"nylas-event-description",{"selectedConfiguration":[16],"eventDescription":[1,"event-description"],"name":[1],"description":[32]},null,{"name":["elementNameChangedHandler"],"selectedConfiguration":["selectedConfigurationChangedHandler"]}],[65,"nylas-event-title",{"selectedConfiguration":[16],"eventTitle":[1,"event-title"],"name":[1],"showTokens":[32],"availableTokens":[32],"filteredTokens":[32],"ariaActivedescendant":[32],"currentWord":[32],"validationError":[32]},[[8,"formSubmitted","formSubmittedHandler"]],{"name":["elementNameChangedHandler"],"ariaActivedescendant":["ariaActivedescendantChangedHandler"],"selectedConfiguration":["configChangedHandler"]}],[65,"nylas-event-info"],[65,"nylas-event-limits"],[2,"calendar-agenda-fill-icon",{"width":[1],"height":[1]}],[2,"calendar-agenda-icon",{"width":[1],"height":[1]}],[2,"calendar-info-icon",{"width":[1],"height":[1]}],[2,"calendar-patterns-icon",{"width":[1],"height":[1]}],[2,"flow-icon",{"width":[1],"height":[1]}],[2,"people-icon",{"width":[1],"height":[1]}],[65,"nylas-availability-picker",{"selectedConfiguration":[16],"openHours":[16],"name":[1],"defaultTimezone":[1,"default-timezone"],"hideHeader":[4,"hide-header"],"schedule":[32],"timezone":[32],"overlapDays":[32]},[[0,"nylasFormDropdownChanged","nylasFormDropdownChangedHandler"],[0,"timeChange","setTime"],[0,"formError","setFormError"]],{"name":["elementNameChangedHandler"],"selectedConfiguration":["configChangedHandler"],"schedule":["scheduleChanged"]}],[65,"nylas-booking-calendar-picker",{"calendars":[16],"currentUser":[16],"name":[1],"defaultBookingCalendar":[1,"default-booking-calendar"],"hideHeader":[4,"hide-header"],"selectedCalendar":[32]},[[0,"nylasFormDropdownChanged","nylasFormDropdownChangedHandler"]],{"name":["elementNameChangedHandler"]}],[65,"nylas-calendar-picker",{"calendars":[16],"currentUser":[16],"name":[1],"defaultSelectedCalendars":[16],"selectedCalendars":[32],"error":[32]},[[0,"selectedOptionsChanged","selectedOptionsChangedHandler"]],{"name":["elementNameChangedHandler"]}],[2,"dragable-icon",{"width":[1],"height":[1]}],[2,"google-meet-icon",{"width":[1],"height":[1]}],[2,"location-icon",{"width":[1],"height":[1]}],[2,"location-off-icon",{"width":[1],"height":[1]}],[2,"microsoft-teams-icon",{"width":[1],"height":[1]}],[2,"plus-icon",{"width":[1],"height":[1]}],[1,"toggle-switch",{"name":[1],"checked":[4],"label":[1],"isChecked":[32]}],[2,"zoom-icon",{"width":[1],"height":[1]}]]],["google-logo-icon_4",[[6,"nylas-editor-tabs",{"calendars":[16],"selectedConfiguration":[16],"currentUser":[16],"schedulerPreviewLink":[1,"scheduler-preview-link"],"mode":[1],"hideEditorTabs":[16],"action":[32],"activeTab":[32],"isLoading":[32],"hasUnsavedChanges":[32],"changesSaved":[32],"formState":[32],"error":[32]},[[0,"valueChanged","handleValueChanged"]],{"selectedConfiguration":["configChangedHandler"]}],[1,"nylas-list-configurations",{"configurations":[16],"schedulerPreviewLink":[1,"scheduler-preview-link"],"listConfigurationsNextCursor":[1,"list-configurations-next-cursor"],"state":[32],"error":[32],"currentCursor":[32],"previousCursors":[32],"disableNextPageButton":[32],"getState":[64],"setState":[64],"setError":[64]},[[0,"nylasFormDropdownChanged","handleNylasFormDropdownChanged"]],{"listConfigurationsNextCursor":["listConfigurationsNextCursorChangedHandler"]}],[2,"google-logo-icon",{"width":[1],"height":[1]}],[2,"microsoft-logo-icon",{"width":[1],"height":[1]}]]],["calendar-check-icon_2",[[2,"calendar-check-icon",{"width":[1],"height":[1]}],[2,"checkmark-circle-icon",{"width":[1],"height":[1]}]]],["clock-icon_2",[[2,"clock-icon",{"width":[1],"height":[1]}],[2,"person-icon",{"width":[1],"height":[1]}]]],["play-icon_2",[[2,"play-icon",{"width":[1],"height":[1]}],[2,"stop-icon",{"width":[1],"height":[1]}]]],["calendar-icon",[[2,"calendar-icon",{"width":[1],"height":[1]}]]],["nylas-time-window-picker",[[1,"nylas-time-window-picker",{"time":[1],"minimumStartTime":[1,"minimum-start-time"],"placeholder":[1],"name":[1],"hasError":[4,"has-error"],"err":[32],"showTimes":[32],"ariaActivedescendant":[32],"times":[32],"shouldAutoScroll":[32]},[[6,"click","handleOutsideClick"]],{"minimumStartTime":["minimumStartTimeChangedHandler"]}]]],["nylas-form-card",[[65,"nylas-form-card"]]],["bold-icon_3",[[2,"bold-icon",{"width":[1],"height":[1]}],[2,"italic-icon",{"width":[1],"height":[1]}],[2,"underline-icon",{"width":[1],"height":[1]}]]],["loading-icon",[[1,"loading-icon",{"width":[1],"height":[1]}]]],["forward-icon_6",[[1,"nylas-composer",{"message":[16],"viewEmailElement":[16]},null,{"message":["watchBody"]}],[1,"nylas-summarize-message-button",{"message":[16],"state":[32],"updateState":[64],"playAudio":[64]}],[2,"forward-icon",{"width":[1],"height":[1]}],[1,"nylas-view-email",{"message":[16],"parent":[16],"attachments":[16],"detectDarkMode":[4,"detect-dark-mode"],"state":[32],"sanitizedBody":[32],"styles":[32],"viewEmailElement":[32],"hoistedFontURLs":[32]},[[9,"resize","handleScroll"]],{"message":["messageChanged"],"viewEmailElement":["viewEmailElementChanged"]}],[2,"reply-all-icon",{"width":[1],"height":[1]}],[2,"reply-icon",{"width":[1],"height":[1]}]]],["archive-icon_7",[[2,"archive-icon",{"width":[1],"height":[1]}],[2,"folder-icon",{"width":[1],"height":[1]}],[2,"inbox-icon",{"width":[1],"height":[1]}],[2,"sent-icon",{"width":[1],"height":[1]}],[2,"spam-icon",{"width":[1],"height":[1]}],[2,"star-icon",{"width":[1],"height":[1]}],[2,"trash-icon",{"width":[1],"height":[1]}]]],["copy-icon_4",[[2,"copy-icon",{"width":[1],"height":[1]}],[2,"delete-icon",{"width":[1],"height":[1]}],[2,"edit-icon",{"width":[1],"height":[1]}],[2,"eye-icon",{"width":[1],"height":[1]}]]],["globe-icon",[[2,"globe-icon",{"width":[1],"height":[1]}]]],["chevron-icon_3",[[1,"select-dropdown",{"name":[1],"options":[16],"defaultSelectedOption":[16],"withSearch":[4,"with-search"],"label":[1],"required":[4],"pluralizedLabel":[1,"pluralized-label"],"dropdownButtonText":[1,"dropdown-button-text"],"withChevron":[4,"with-chevron"],"selectedOption":[32],"isOpen":[32],"searchValue":[32],"filteredOptions":[32],"ariaActivedescendant":[32],"errorMessage":[32]},[[4,"bookingFormSubmitted","handleBookingFormSubmitted"],[6,"click","handleOutsideClick"]],{"options":["optionsChangedHandler"],"defaultSelectedOption":["defaultSelectedOptionChangedHandler"]}],[2,"search-icon",{"width":[1],"height":[1]}],[2,"chevron-icon",{"width":[1],"height":[1]}]]],["input-dropdown_2",[[2,"time-period-selector",{"timePeriods":[16],"defaultSelectedPeriod":[1,"default-selected-period"],"defaultSelectedNumber":[2,"default-selected-number"],"selectedPeriod":[32],"selectedNumber":[32],"numberOptions":[32],"timePeriodOptions":[32]},[[0,"inputOptionChanged","inputOptionChangedHandler"],[0,"nylasFormDropdownChanged","nylasFormDropdownChangedHandler"]],{"defaultSelectedPeriod":["defaultSelectedPeriodChangedHandler"],"defaultSelectedNumber":["defaultSelectedNumberChangedHandler"],"timePeriods":["timePeriodsChangedHandler"]}],[1,"input-dropdown",{"name":[1],"options":[16],"defaultInputOption":[16],"inputValue":[1,"input-value"],"pluralizedLabel":[1,"pluralized-label"],"filterable":[4],"selectedOption":[32],"isOpen":[32],"filteredOptions":[32],"ariaActivedescendant":[32],"shouldAutoScroll":[32]},[[6,"click","handleOutsideClick"]],{"options":["optionsChangedHandler"],"defaultInputOption":["defaultSelectedOptionChangedHandler"],"inputValue":["inputValueChangedHandler"]}]]],["button-component_4",[[6,"button-component",{"variant":[1],"disabled":[4],"type":[1],"clickHandler":[16],"mouseOverHandler":[16],"mouseOutHandler":[16],"focusHandler":[16],"blurHandler":[16]}],[1,"checkbox-component",{"name":[1],"checked":[4],"label":[1],"required":[4],"isChecked":[32],"error":[32]},[[4,"bookingFormSubmitted","handleBookingFormSubmitted"]]],[1,"input-component",{"name":[1],"defaultValue":[1,"default-value"],"label":[1],"type":[1],"placeholder":[1],"required":[4],"readOnly":[4,"read-only"],"autoFocus":[4,"auto-focus"],"pattern":[16],"maxLength":[2,"max-length"],"patternError":[1,"pattern-error"],"value":[32],"error":[32]},[[4,"bookingFormSubmitted","handleBookingFormSubmitted"]],{"defaultValue":["handleDefaultValueChange"]}],[1,"radio-button-group",{"name":[1],"options":[16],"defaultSelectedValue":[1,"default-selected-value"],"label":[1],"required":[4],"selectedValue":[32],"error":[32]},[[4,"bookingFormSubmitted","handleBookingFormSubmitted"]]]]],["add-circle-icon_2",[[2,"add-circle-icon",{"width":[1],"height":[1]}],[2,"close-icon",{"width":[1],"height":[1]}]]],["nylas-booked-event-card_10",[[1,"nylas-booking-form",{"isLoading":[4,"is-loading"],"bookingInfo":[8,"booking-info"],"eventInfo":[16],"configSettings":[8,"config-settings"],"name":[32],"email":[32],"guestEmails":[32],"guestEmailErrors":[32],"isNameValid":[32],"isEmailValid":[32],"additionalFields":[32],"validationError":[32]},[[0,"nylasFormInputChanged","nylasFormInputChangedHandler"],[0,"nylasFormDropdownChanged","selectOptionChangedHandler"],[0,"nylasFormSwitchToggled","switchToggledHandler"],[0,"nylasFormCheckboxToggled","checkboxToggledHandler"],[0,"nylasFormRadioChanged","radioChangedHandler"]],{"bookingInfo":["bookingInfoChangedHandler"]}],[1,"nylas-locale-switch",{"selectedTimezone":[1025,"selected-timezone"],"selectedLanguage":[1025,"selected-language"]},[[0,"nylasFormDropdownChanged","nylasFormDropdownChangedHandler"]]],[1,"nylas-booked-event-card",{"eventInfo":[16],"rescheduleBookingId":[1,"reschedule-booking-id"],"bookingInfo":[8,"booking-info"],"selectedTimezone":[1,"selected-timezone"],"selectedTimeslot":[16],"configSettings":[8,"config-settings"],"isLoading":[4,"is-loading"]}],[1,"nylas-date-picker",{"selectableDates":[16],"selectedDate":[16],"configSettings":[16],"isLoading":[4,"is-loading"],"eventDuration":[2,"event-duration"],"month":[32],"dates":[32],"disableNextMonthButton":[32]},null,{"configSettings":["configSettingsChanged"]}],[1,"nylas-notification",{"ttl":[8],"allowedCategories":[16],"notifications":[32]},[[16,"nylasSchedulerError","onError"],[16,"nylasSchedulerWarning","onWarning"],[16,"nylasSchedulerInfo","onInfo"],[16,"nylasSchedulerSuccess","onSuccess"]]],[1,"nylas-selected-event-card",{"selectedDate":[16],"selectedTimeslot":[16],"selectedTimezone":[1,"selected-timezone"],"startTime":[32],"endTime":[32]},null,{"selectedTimeslot":["handleSelectedTimeslotChange"]}],[1,"nylas-cancel-booking-form",{"cancelBookingId":[1,"cancel-booking-id"],"configSettings":[16],"selectedTimeslot":[16],"cancellationReason":[32],"cancellationError":[32],"cancellationPolicy":[32]},null,{"configSettings":["configSettingsChangedHandler"]}],[1,"nylas-cancelled-event-card",{"cancelledEventInfo":[16],"configSettings":[16],"isClosing":[32]}],[2,"nylas-logo",{"width":[1],"height":[1]}],[1,"nylas-timeslot-picker",{"selectedDate":[16],"availability":[16],"selectedTimeslot":[16],"isLoading":[4,"loading-state"],"selectedTimezone":[1,"selected-timezone"],"times":[32],"hoveredTimeslotIndex":[32],"selectedTimeslotIndex":[32]},null,{"selectedDate":["selectedDateChanged"],"availability":["availabilityChanged"]}]]],["info-icon_2",[[1,"tooltip-component",{"position":[1]}],[2,"info-icon",{"width":[1],"height":[1]}]]]]'),e)};(function(){if(typeof window<"u"&&window.Reflect!==void 0&&window.customElements!==void 0){var t=HTMLElement;window.HTMLElement=function(){return Reflect.construct(t,[],this.constructor)},HTMLElement.prototype=t.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,t)}})();var rn={exports:{}},rt={};/**
|
|
14
|
+
* @license React
|
|
15
|
+
* react-jsx-runtime.production.min.js
|
|
16
|
+
*
|
|
17
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the MIT license found in the
|
|
20
|
+
* LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/var yr;function Zs(){if(yr)return rt;yr=1;var t=Te,e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function o(s,l,u){var d,f={},h=null,p=null;u!==void 0&&(h=""+u),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(p=l.ref);for(d in l)r.call(l,d)&&!a.hasOwnProperty(d)&&(f[d]=l[d]);if(s&&s.defaultProps)for(d in l=s.defaultProps,l)f[d]===void 0&&(f[d]=l[d]);return{$$typeof:e,type:s,key:h,ref:p,props:f,_owner:i.current}}return rt.Fragment=n,rt.jsx=o,rt.jsxs=o,rt}var it={};/**
|
|
22
|
+
* @license React
|
|
23
|
+
* react-jsx-runtime.development.js
|
|
24
|
+
*
|
|
25
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
26
|
+
*
|
|
27
|
+
* This source code is licensed under the MIT license found in the
|
|
28
|
+
* LICENSE file in the root directory of this source tree.
|
|
29
|
+
*/var mr;function Js(){return mr||(mr=1,process.env.NODE_ENV!=="production"&&function(){var t=Te,e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m=Symbol.iterator,w="@@iterator";function b(c){if(c===null||typeof c!="object")return null;var v=m&&c[m]||c[w];return typeof v=="function"?v:null}var k=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function M(c){{for(var v=arguments.length,C=new Array(v>1?v-1:0),_=1;_<v;_++)C[_-1]=arguments[_];te("error",c,C)}}function te(c,v,C){{var _=k.ReactDebugCurrentFrame,Y=_.getStackAddendum();Y!==""&&(v+="%s",C=C.concat([Y]));var B=C.map(function(P){return String(P)});B.unshift("Warning: "+v),Function.prototype.apply.call(console[c],console,B)}}var le=!1,ge=!1,ne=!1,Ye=!1,je=!1,K;K=Symbol.for("react.module.reference");function H(c){return!!(typeof c=="string"||typeof c=="function"||c===r||c===a||je||c===i||c===u||c===d||Ye||c===p||le||ge||ne||typeof c=="object"&&c!==null&&(c.$$typeof===h||c.$$typeof===f||c.$$typeof===o||c.$$typeof===s||c.$$typeof===l||c.$$typeof===K||c.getModuleId!==void 0))}function qe(c,v,C){var _=c.displayName;if(_)return _;var Y=v.displayName||v.name||"";return Y!==""?C+"("+Y+")":C}function et(c){return c.displayName||"Context"}function S(c){if(c==null)return null;if(typeof c.tag=="number"&&M("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case r:return"Fragment";case n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case s:var v=c;return et(v)+".Consumer";case o:var C=c;return et(C._context)+".Provider";case l:return qe(c,c.render,"ForwardRef");case f:var _=c.displayName||null;return _!==null?_:S(c.type)||"Memo";case h:{var Y=c,B=Y._payload,P=Y._init;try{return S(P(B))}catch{return null}}}return null}var T=Object.assign,E=0,R,x,O,A,U,q,j;function X(){}X.__reactDisabledLog=!0;function $e(){{if(E===0){R=console.log,x=console.info,O=console.warn,A=console.error,U=console.group,q=console.groupCollapsed,j=console.groupEnd;var c={configurable:!0,enumerable:!0,value:X,writable:!0};Object.defineProperties(console,{info:c,log:c,warn:c,error:c,group:c,groupCollapsed:c,groupEnd:c})}E++}}function ve(){{if(E--,E===0){var c={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:T({},c,{value:R}),info:T({},c,{value:x}),warn:T({},c,{value:O}),error:T({},c,{value:A}),group:T({},c,{value:U}),groupCollapsed:T({},c,{value:q}),groupEnd:T({},c,{value:j})})}E<0&&M("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var De=k.ReactCurrentDispatcher,_e;function we(c,v,C){{if(_e===void 0)try{throw Error()}catch(Y){var _=Y.stack.trim().match(/\n( *(at )?)/);_e=_&&_[1]||""}return`
|
|
30
|
+
`+_e+c}}var Q=!1,ue;{var tt=typeof WeakMap=="function"?WeakMap:Map;ue=new tt}function He(c,v){if(!c||Q)return"";{var C=ue.get(c);if(C!==void 0)return C}var _;Q=!0;var Y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var B;B=De.current,De.current=null,$e();try{if(v){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(Re){_=Re}Reflect.construct(c,[],P)}else{try{P.call()}catch(Re){_=Re}c.call(P.prototype)}}else{try{throw Error()}catch(Re){_=Re}c()}}catch(Re){if(Re&&_&&typeof Re.stack=="string"){for(var N=Re.stack.split(`
|
|
31
|
+
`),ae=_.stack.split(`
|
|
32
|
+
`),G=N.length-1,Z=ae.length-1;G>=1&&Z>=0&&N[G]!==ae[Z];)Z--;for(;G>=1&&Z>=0;G--,Z--)if(N[G]!==ae[Z]){if(G!==1||Z!==1)do if(G--,Z--,Z<0||N[G]!==ae[Z]){var pe=`
|
|
33
|
+
`+N[G].replace(" at new "," at ");return c.displayName&&pe.includes("<anonymous>")&&(pe=pe.replace("<anonymous>",c.displayName)),typeof c=="function"&&ue.set(c,pe),pe}while(G>=1&&Z>=0);break}}}finally{Q=!1,De.current=B,ve(),Error.prepareStackTrace=Y}var Ke=c?c.displayName||c.name:"",An=Ke?we(Ke):"";return typeof c=="function"&&ue.set(c,An),An}function yi(c,v,C){return He(c,!1)}function mi(c){var v=c.prototype;return!!(v&&v.isReactComponent)}function ut(c,v,C){if(c==null)return"";if(typeof c=="function")return He(c,mi(c));if(typeof c=="string")return we(c);switch(c){case u:return we("Suspense");case d:return we("SuspenseList")}if(typeof c=="object")switch(c.$$typeof){case l:return yi(c.render);case f:return ut(c.type,v,C);case h:{var _=c,Y=_._payload,B=_._init;try{return ut(B(Y),v,C)}catch{}}}return""}var dt=Object.prototype.hasOwnProperty,bn={},$n=k.ReactDebugCurrentFrame;function ft(c){if(c){var v=c._owner,C=ut(c.type,c._source,v?v.type:null);$n.setExtraStackFrame(C)}else $n.setExtraStackFrame(null)}function gi(c,v,C,_,Y){{var B=Function.call.bind(dt);for(var P in c)if(B(c,P)){var N=void 0;try{if(typeof c[P]!="function"){var ae=Error((_||"React class")+": "+C+" type `"+P+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof c[P]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ae.name="Invariant Violation",ae}N=c[P](v,P,_,C,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(G){N=G}N&&!(N instanceof Error)&&(ft(Y),M("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",_||"React class",C,P,typeof N),ft(null)),N instanceof Error&&!(N.message in bn)&&(bn[N.message]=!0,ft(Y),M("Failed %s type: %s",C,N.message),ft(null))}}}var vi=Array.isArray;function Dt(c){return vi(c)}function wi(c){{var v=typeof Symbol=="function"&&Symbol.toStringTag,C=v&&c[Symbol.toStringTag]||c.constructor.name||"Object";return C}}function bi(c){try{return En(c),!1}catch{return!0}}function En(c){return""+c}function Cn(c){if(bi(c))return M("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",wi(c)),En(c)}var nt=k.ReactCurrentOwner,$i={key:!0,ref:!0,__self:!0,__source:!0},Tn,kn,_t;_t={};function Ei(c){if(dt.call(c,"ref")){var v=Object.getOwnPropertyDescriptor(c,"ref").get;if(v&&v.isReactWarning)return!1}return c.ref!==void 0}function Ci(c){if(dt.call(c,"key")){var v=Object.getOwnPropertyDescriptor(c,"key").get;if(v&&v.isReactWarning)return!1}return c.key!==void 0}function Ti(c,v){if(typeof c.ref=="string"&&nt.current&&v&&nt.current.stateNode!==v){var C=S(nt.current.type);_t[C]||(M('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',S(nt.current.type),c.ref),_t[C]=!0)}}function ki(c,v){{var C=function(){Tn||(Tn=!0,M("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",v))};C.isReactWarning=!0,Object.defineProperty(c,"key",{get:C,configurable:!0})}}function xi(c,v){{var C=function(){kn||(kn=!0,M("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",v))};C.isReactWarning=!0,Object.defineProperty(c,"ref",{get:C,configurable:!0})}}var Si=function(c,v,C,_,Y,B,P){var N={$$typeof:e,type:c,key:v,ref:C,props:P,_owner:B};return N._store={},Object.defineProperty(N._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(N,"_self",{configurable:!1,enumerable:!1,writable:!1,value:_}),Object.defineProperty(N,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Y}),Object.freeze&&(Object.freeze(N.props),Object.freeze(N)),N};function Ii(c,v,C,_,Y){{var B,P={},N=null,ae=null;C!==void 0&&(Cn(C),N=""+C),Ci(v)&&(Cn(v.key),N=""+v.key),Ei(v)&&(ae=v.ref,Ti(v,Y));for(B in v)dt.call(v,B)&&!$i.hasOwnProperty(B)&&(P[B]=v[B]);if(c&&c.defaultProps){var G=c.defaultProps;for(B in G)P[B]===void 0&&(P[B]=G[B])}if(N||ae){var Z=typeof c=="function"?c.displayName||c.name||"Unknown":c;N&&ki(P,Z),ae&&xi(P,Z)}return Si(c,N,ae,Y,_,nt.current,P)}}var Rt=k.ReactCurrentOwner,xn=k.ReactDebugCurrentFrame;function ze(c){if(c){var v=c._owner,C=ut(c.type,c._source,v?v.type:null);xn.setExtraStackFrame(C)}else xn.setExtraStackFrame(null)}var At;At=!1;function Ot(c){return typeof c=="object"&&c!==null&&c.$$typeof===e}function Sn(){{if(Rt.current){var c=S(Rt.current.type);if(c)return`
|
|
34
|
+
|
|
35
|
+
Check the render method of \``+c+"`."}return""}}function Di(c){{if(c!==void 0){var v=c.fileName.replace(/^.*[\\\/]/,""),C=c.lineNumber;return`
|
|
36
|
+
|
|
37
|
+
Check your code at `+v+":"+C+"."}return""}}var In={};function _i(c){{var v=Sn();if(!v){var C=typeof c=="string"?c:c.displayName||c.name;C&&(v=`
|
|
38
|
+
|
|
39
|
+
Check the top-level render call using <`+C+">.")}return v}}function Dn(c,v){{if(!c._store||c._store.validated||c.key!=null)return;c._store.validated=!0;var C=_i(v);if(In[C])return;In[C]=!0;var _="";c&&c._owner&&c._owner!==Rt.current&&(_=" It was passed a child from "+S(c._owner.type)+"."),ze(c),M('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',C,_),ze(null)}}function _n(c,v){{if(typeof c!="object")return;if(Dt(c))for(var C=0;C<c.length;C++){var _=c[C];Ot(_)&&Dn(_,v)}else if(Ot(c))c._store&&(c._store.validated=!0);else if(c){var Y=b(c);if(typeof Y=="function"&&Y!==c.entries)for(var B=Y.call(c),P;!(P=B.next()).done;)Ot(P.value)&&Dn(P.value,v)}}}function Ri(c){{var v=c.type;if(v==null||typeof v=="string")return;var C;if(typeof v=="function")C=v.propTypes;else if(typeof v=="object"&&(v.$$typeof===l||v.$$typeof===f))C=v.propTypes;else return;if(C){var _=S(v);gi(C,c.props,"prop",_,c)}else if(v.PropTypes!==void 0&&!At){At=!0;var Y=S(v);M("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Y||"Unknown")}typeof v.getDefaultProps=="function"&&!v.getDefaultProps.isReactClassApproved&&M("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ai(c){{for(var v=Object.keys(c.props),C=0;C<v.length;C++){var _=v[C];if(_!=="children"&&_!=="key"){ze(c),M("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",_),ze(null);break}}c.ref!==null&&(ze(c),M("Invalid attribute `ref` supplied to `React.Fragment`."),ze(null))}}function Rn(c,v,C,_,Y,B){{var P=H(c);if(!P){var N="";(c===void 0||typeof c=="object"&&c!==null&&Object.keys(c).length===0)&&(N+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ae=Di(Y);ae?N+=ae:N+=Sn();var G;c===null?G="null":Dt(c)?G="array":c!==void 0&&c.$$typeof===e?(G="<"+(S(c.type)||"Unknown")+" />",N=" Did you accidentally export a JSX literal instead of a component?"):G=typeof c,M("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",G,N)}var Z=Ii(c,v,C,Y,B);if(Z==null)return Z;if(P){var pe=v.children;if(pe!==void 0)if(_)if(Dt(pe)){for(var Ke=0;Ke<pe.length;Ke++)_n(pe[Ke],c);Object.freeze&&Object.freeze(pe)}else M("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else _n(pe,c)}return c===r?Ai(Z):Ri(Z),Z}}function Oi(c,v,C){return Rn(c,v,C,!0)}function Mi(c,v,C){return Rn(c,v,C,!1)}var Ni=Mi,Pi=Oi;it.Fragment=r,it.jsx=Ni,it.jsxs=Pi}()),it}process.env.NODE_ENV==="production"?rn.exports=Zs():rn.exports=Js();var Xs=rn.exports;const Qs=t=>t.toLowerCase().split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(""),hi=t=>t.replace(/([A-Z])/g,e=>`-${e[0].toLowerCase()}`),Vs=(t,e,n={})=>{if(t instanceof Element){const r=el(t.classList,e,n);r!==""&&(t.className=r),Object.keys(e).forEach(i=>{if(!(i==="children"||i==="style"||i==="ref"||i==="class"||i==="className"||i==="forwardedRef"))if(i.indexOf("on")===0&&i[2]===i[2].toUpperCase()){const a=i.substring(2),o=a[0].toLowerCase()+a.substring(1);pi(o)||nl(t,o,e[i])}else t[i]=e[i],typeof e[i]==="string"&&t.setAttribute(hi(i),e[i])})}},el=(t,e,n)=>{const r=e.className||e.class,i=n.className||n.class,a=Yt(t),o=Yt(r?r.split(" "):[]),s=Yt(i?i.split(" "):[]),l=[];return a.forEach(u=>{o.has(u)?(l.push(u),o.delete(u)):s.has(u)||l.push(u)}),o.forEach(u=>l.push(u)),l.join(" ")},tl=t=>{switch(t){case"doubleclick":return"dblclick"}return t};/**
|
|
40
|
+
* Checks if an event is supported in the current execution environment.
|
|
41
|
+
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
42
|
+
*/const pi=t=>{if(typeof document>"u")return!0;{const e="on"+tl(t);let n=e in document;if(!n){const r=document.createElement("div");r.setAttribute(e,"return;"),n=typeof r[e]=="function"}return n}},nl=(t,e,n)=>{const r=t.__events||(t.__events={}),i=r[e];i&&t.removeEventListener(e,i),t.addEventListener(e,r[e]=function(o){n&&n.call(this,o)})},Yt=t=>{const e=new Map;return t.forEach(n=>e.set(n,n)),e},rl=(t,e)=>{typeof t=="function"?t(e):t!=null&&(t.current=e)},il=(...t)=>e=>{t.forEach(n=>{rl(n,e)})},ol=(t,e)=>{const n=(r,i)=>Xs.jsx(t,{...r,forwardedRef:i});return n.displayName=e,Te.forwardRef(n)},y=(t,e,n,r)=>{r!==void 0&&r();const i=Qs(t),a=class extends Te.Component{constructor(s){super(s);Mt(this,"componentEl");Mt(this,"setComponentElRef",s=>{this.componentEl=s})}componentDidMount(){this.componentDidUpdate(this.props)}componentDidUpdate(s){Vs(this.componentEl,this.props,s)}render(){const{children:s,forwardedRef:l,style:u,className:d,ref:f,...h}=this.props;let p=Object.keys(h).reduce((w,b)=>{const k=h[b];if(b.indexOf("on")===0&&b[2]===b[2].toUpperCase()){const M=b.substring(2).toLowerCase();typeof document<"u"&&pi(M)&&(w[b]=k)}else{const M=typeof k;(M==="string"||M==="boolean"||M==="number")&&(w[hi(b)]=k)}return w},{});n&&(p=n(this.props,p));const m={...p,ref:il(l,this.setComponentElRef),style:u};return Te.createElement(t,m,s)}static get displayName(){return i}};return e&&(a.contextType=e),ol(a,i)};fi();const al=y("add-circle-icon"),sl=y("archive-icon"),ll=y("arrow-icon"),cl=y("bold-icon"),ul=y("button-component"),dl=y("calendar-agenda-fill-icon"),fl=y("calendar-agenda-icon"),hl=y("calendar-cancel-icon"),pl=y("calendar-check-icon"),yl=y("calendar-icon"),ml=y("calendar-info-icon"),gl=y("calendar-patterns-icon"),vl=y("checkbox-component"),wl=y("checkmark-circle-icon"),bl=y("chevron-icon"),$l=y("clock-icon"),El=y("close-icon"),Cl=y("copy-icon"),Tl=y("delete-icon"),kl=y("document-refresh-icon"),xl=y("dragable-icon"),Sl=y("edit-icon"),Il=y("eye-icon"),Dl=y("flow-icon"),_l=y("folder-icon"),Rl=y("forward-icon"),Al=y("globe-icon"),Ol=y("google-logo-icon"),Ml=y("google-meet-icon"),Nl=y("inbox-icon"),Pl=y("info-icon"),Fl=y("input-component"),Ll=y("input-dropdown"),Ul=y("italic-icon"),Yl=y("loading-icon"),Hl=y("location-icon"),Bl=y("location-off-icon"),Wl=y("microsoft-logo-icon"),jl=y("microsoft-teams-icon"),ql=y("multi-select-dropdown"),zl=y("nylas-additional-participants"),Kl=y("nylas-availability-picker"),Gl=y("nylas-booked-event-card"),Zl=y("nylas-booking-calendar-picker"),Jl=y("nylas-booking-form"),Xl=y("nylas-booking-form-config"),Ql=y("nylas-buffer-time"),Vl=y("nylas-calendar-picker"),ec=y("nylas-cancel-booking-form"),tc=y("nylas-cancellation-policy"),nc=y("nylas-cancelled-event-card"),rc=y("nylas-composer"),ic=y("nylas-connected-calendars"),oc=y("nylas-custom-booking-flow"),ac=y("nylas-customize-booking-settings"),sc=y("nylas-date-picker"),lc=y("nylas-editor-tabs"),cc=y("nylas-event-description"),uc=y("nylas-event-duration"),dc=y("nylas-event-info"),fc=y("nylas-event-limits"),hc=y("nylas-event-location"),pc=y("nylas-event-title"),yc=y("nylas-form-card"),mc=y("nylas-if-state"),gc=y("nylas-limit-future-bookings"),vc=y("nylas-list-configurations"),wc=y("nylas-list-folders"),bc=y("nylas-list-threads"),$c=y("nylas-locale-switch"),Ec=y("nylas-login"),Cc=y("nylas-logo"),Tc=y("nylas-mailbox"),kc=y("nylas-mailbox-pagination"),xc=y("nylas-mailbox-toolbar-button"),Sc=y("nylas-min-booking-notice"),Ic=y("nylas-min-cancellation-notice"),Dc=y("nylas-notification"),_c=y("nylas-participant-booking-calendars"),Rc=y("nylas-participants-custom-availability"),Ac=y("nylas-provider"),Oc=y("nylas-scheduler-editor"),Mc=y("nylas-scheduling"),Nc=y("nylas-selected-event-card"),Pc=y("nylas-summarize-message-button"),Fc=y("nylas-threads-refresh"),Lc=y("nylas-threads-search"),Uc=y("nylas-time-window-picker"),Yc=y("nylas-timeslot-interval"),Hc=y("nylas-timeslot-picker"),Bc=y("nylas-view-email"),Wc=y("nylas-view-thread"),jc=y("people-icon"),qc=y("person-icon"),zc=y("play-icon"),Kc=y("plus-icon"),Gc=y("radio-button-group"),Zc=y("refresh-icon"),Jc=y("reply-all-icon"),Xc=y("reply-icon"),Qc=y("search-icon"),Vc=y("select-dropdown"),eu=y("sent-icon"),tu=y("spam-icon"),nu=y("star-icon"),ru=y("stop-icon"),iu=y("textarea-component"),ou=y("time-period-selector"),au=y("toggle-switch"),su=y("tooltip-component"),lu=y("translate-icon"),cu=y("trash-icon"),uu=y("underline-icon"),du=y("warning-icon"),fu=y("zoom-icon");function hu(){const[,t]=Te.useReducer(i=>i+1,0),e=Te.useRef(),n=Te.useRef(null),r=Te.useRef(null);return Te.useEffect(()=>{e.current&&(n.current||e.current.getNylasMailboxConnector().then(i=>{i&&(n.current=i,r.current=n.current.nylasAuthStore,i.nylasAuthStore.on("set",t),t())}))},[]),[e,r.current]}exports.AddCircleIcon=al;exports.ArchiveIcon=sl;exports.ArrowIcon=ll;exports.BoldIcon=cl;exports.Buffer=g;exports.ButtonComponent=ul;exports.CalendarAgendaFillIcon=dl;exports.CalendarAgendaIcon=fl;exports.CalendarCancelIcon=hl;exports.CalendarCheckIcon=pl;exports.CalendarIcon=yl;exports.CalendarInfoIcon=ml;exports.CalendarPatternsIcon=gl;exports.CheckboxComponent=vl;exports.CheckmarkCircleIcon=wl;exports.ChevronIcon=bl;exports.ClockIcon=$l;exports.CloseIcon=El;exports.CopyIcon=Cl;exports.DeleteIcon=Tl;exports.DocumentRefreshIcon=kl;exports.DragableIcon=xl;exports.EditIcon=Sl;exports.EyeIcon=Il;exports.FlowIcon=Dl;exports.FolderIcon=_l;exports.ForwardIcon=Rl;exports.Fragment=go;exports.GlobeIcon=Al;exports.GoogleLogoIcon=Ol;exports.GoogleMeetIcon=Ml;exports.Host=$r;exports.InboxIcon=Nl;exports.InfoIcon=Pl;exports.InputComponent=Fl;exports.InputDropdown=Ll;exports.ItalicIcon=Ul;exports.LoadingIcon=Yl;exports.LocationIcon=Hl;exports.LocationOffIcon=Bl;exports.MicrosoftLogoIcon=Wl;exports.MicrosoftTeamsIcon=jl;exports.MultiSelectDropdown=ql;exports.NylasAdditionalParticipants=zl;exports.NylasAvailabilityPicker=Kl;exports.NylasBookedEventCard=Gl;exports.NylasBookingCalendarPicker=Zl;exports.NylasBookingForm=Jl;exports.NylasBookingFormConfig=Xl;exports.NylasBufferTime=Ql;exports.NylasCalendarPicker=Vl;exports.NylasCancelBookingForm=ec;exports.NylasCancellationPolicy=tc;exports.NylasCancelledEventCard=nc;exports.NylasComposer=rc;exports.NylasConnectedCalendars=ic;exports.NylasCustomBookingFlow=oc;exports.NylasCustomizeBookingSettings=ac;exports.NylasDatePicker=sc;exports.NylasEditorTabs=lc;exports.NylasEventDescription=cc;exports.NylasEventDuration=uc;exports.NylasEventInfo=dc;exports.NylasEventLimits=fc;exports.NylasEventLocation=hc;exports.NylasEventTitle=pc;exports.NylasFormCard=yc;exports.NylasIdentityRequestWrapper=qs;exports.NylasIfState=mc;exports.NylasLimitFutureBookings=gc;exports.NylasListConfigurations=vc;exports.NylasListFolders=wc;exports.NylasListThreads=bc;exports.NylasLocaleSwitch=$c;exports.NylasLogin=Ec;exports.NylasLogo=Cc;exports.NylasMailbox=Tc;exports.NylasMailboxPagination=kc;exports.NylasMailboxToolbarButton=xc;exports.NylasMinBookingNotice=Sc;exports.NylasMinCancellationNotice=Ic;exports.NylasNotification=Dc;exports.NylasParticipantBookingCalendars=_c;exports.NylasParticipantsCustomAvailability=Rc;exports.NylasProvider=Ac;exports.NylasSchedulerEditor=Oc;exports.NylasScheduling=Mc;exports.NylasSelectedEventCard=Nc;exports.NylasSummarizeMessageButton=Pc;exports.NylasThreadsRefresh=Fc;exports.NylasThreadsSearch=Lc;exports.NylasTimeWindowPicker=Uc;exports.NylasTimeslotInterval=Yc;exports.NylasTimeslotPicker=Hc;exports.NylasViewEmail=Bc;exports.NylasViewThread=Wc;exports.PeopleIcon=jc;exports.PersonIcon=qc;exports.PlayIcon=zc;exports.PlusIcon=Kc;exports.RadioButtonGroup=Gc;exports.RefreshIcon=Zc;exports.ReplyAllIcon=Jc;exports.ReplyIcon=Xc;exports.SearchIcon=Qc;exports.SelectDropdown=Vc;exports.SentIcon=eu;exports.SpamIcon=tu;exports.StarIcon=nu;exports.StopIcon=ru;exports.TextareaComponent=iu;exports.TimePeriodSelector=ou;exports.ToggleSwitch=au;exports.TooltipComponent=su;exports.TranslateIcon=lu;exports.TrashIcon=cu;exports.UnderlineIcon=uu;exports.WarningIcon=du;exports.ZoomIcon=fu;exports.addDaysToCurrentDate=Hs;exports.applyPolyfills=zs;exports.autocompleteTimeFormat=Os;exports.checkForMissingSlots=Ws;exports.commonjsGlobal=ei;exports.compactStringToUUIDs=js;exports.convertMinutesToHoursAndMinutes=Bs;exports.convertTo12HourFormat=Ms;exports.convertTo24HourFormat=Ns;exports.createEvent=Ji;exports.createStore=Ur;exports.dataResponse=tn;exports.dayjs=pn;exports.debug=hs;exports.defineCustomElements=fi;exports.detectHTMLOrPlainText=di;exports.detectIfMessageIsHTML=Ss;exports.error=ps;exports.formatDateTime=gs;exports.formatEventName=ms;exports.formatFolderName=xs;exports.formatParticipants=ws;exports.formatRecipient=vs;exports.formatTimeAgo=bs;exports.getAugmentedNamespace=ha;exports.getBrowser=Ls;exports.getElement=Er;exports.getFirstDayOfMonth=Es;exports.getLastDayOfMonth=$s;exports.global$1=zt;exports.h=sn;exports.htmlToPlainText=Ds;exports.isNonPrintableKey=Ys;exports.isSameDay=Cs;exports.isSameMonth=Ts;exports.mergeDeep=nn;exports.minutesToTime=Fs;exports.parsePlainTextToHTML=Is;exports.parsePreviewLink=Us;exports.registerInstance=Eo;exports.roundToNearest15Minutes=As;exports.setNonce=$o;exports.timeToMinutes=Ps;exports.toTitleCase=ks;exports.uniqueID=ys;exports.useNylasMailboxElement=hu;exports.validateExactTimeFormat=Rs;exports.validateTimeFormatInput=_s;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as nr, d as T, u as rr, n as hn } from "./index-
|
|
1
|
+
import { m as nr, d as T, u as rr, n as hn } from "./index-5efb84b8.js";
|
|
2
2
|
class sr {
|
|
3
3
|
constructor(e, n, r = !0, s) {
|
|
4
4
|
this.automaticComponentRegistration = !0, this.registeredComponents = {}, this.propStateRegistrations = /* @__PURE__ */ new Map(), this.eventListenerRegistrations = /* @__PURE__ */ new Map(), this.host = e, this.stores = n, this.automaticComponentRegistration = r, this.eventOverrides = s, T(`[${this.hostTagName}] Initializing (abstract) provider.`, { eventOverrides: s }), this.registerComponent = this.registerComponent.bind(this), this.getStore = this.getStore.bind(this), Object.keys(this.stores).forEach((i) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const T=require("./index-e3e9b594.cjs");class nr{constructor(e,n,r=!0,s){this.automaticComponentRegistration=!0,this.registeredComponents={},this.propStateRegistrations=new Map,this.eventListenerRegistrations=new Map,this.host=e,this.stores=n,this.automaticComponentRegistration=r,this.eventOverrides=s,T.debug(`[${this.hostTagName}] Initializing (abstract) provider.`,{eventOverrides:s}),this.registerComponent=this.registerComponent.bind(this),this.getStore=this.getStore.bind(this),Object.keys(this.stores).forEach(i=>{this.propStateRegistrations.set(i,new Map)})}async componentWillLoad(e){T.debug(`[${this.hostTagName}] Will load`),this.setupStoreListeners(),this.nylasConnector=e;const n=Array.from(this.host.querySelectorAll("*")).filter(r=>r.tagName.toLowerCase().startsWith("nylas-"));T.debug(`[${this.hostTagName}] Found ${n.length} child component(s).`,{childComponents:n}),n.forEach(r=>{const s=r;if(!s){T.debug(`[~${this.hostTagName}] Component ${s.tagName} does not have a name. Skipping.`);return}if(!s.registerNylasComponent){T.debug(`[~${this.hostTagName}] Component ${s.tagName} is not a component that can be registered. Skipping.`,{component:s});return}const i={element:s,name:s.tagName.toLowerCase(),getStoresToProp:s.getStoresToProp,storeToProps:s.storeToProps,stateToProps:s.stateToProps,authToProp:s.authToProp,eventToProps:s.eventToProps,connectorToProp:s.connectorToProp,localPropsToProp:s.localPropsToProp};this.registerComponent(i)})}async componentDidLoad(){T.debug(`[${this.hostTagName}] Did load`)}async componentDisconnected(){Object.values(this.stores).forEach(e=>{e.dispose()})}async registerComponentHandler(e){if(e.stopPropagation(),!this.automaticComponentRegistration){T.debug(`[${this.hostTagName}] Automatic component registration disabled. Skipping registration of ${e.detail.name}.`);return}this.registerComponent(e.detail)}async unregisterComponentHandler(e){if(e.stopPropagation(),!this.automaticComponentRegistration){T.debug(`[${this.hostTagName}] Automatic component registration disabled. Skipping unregistration of ${e.detail.name}.`);return}this.unregisterComponent(e.detail)}registerComponent(e){T.debug(`[${this.hostTagName}] Registering component ${e.name}.`);const n=e.element.dataset.nylasId;if(n&&this.registeredComponents[n]){T.debug(`[${this.hostTagName}] Component ${e.name} already registered. Skipping.`);return}const{stateToProps:r,getStoresToProp:s,eventToProps:i,storeToProps:o,connectorToProp:u,localPropsToProp:a,element:c}=e;c.dataset.nylasId=T.uniqueID(),this.registeredComponents[c.dataset.nylasId]=e;const d=this.eventOverrides;i==null||i.forEach((l,h)=>{var y;const f=this.nylasConnector,m=async g=>{T.debug(`[${this.hostTagName}] Handling "${e.name}" prop "${String(h)}" event.`,{event:g}),h in d&&(T.debug(`[${this.hostTagName}] Found event override for "${String(h)}" event. Calling override.`),await d[h](g,f)),g.defaultPrevented||await l(g,f)},p=e.element.dataset.nylasId;p&&!this.eventListenerRegistrations.has(p)&&this.eventListenerRegistrations.set(p,[]),p&&((y=this.eventListenerRegistrations.get(p))==null||y.push([c,h,m])),T.debug(`[${this.hostTagName}] Setting "${e.name}" event "${String(h)}" to automcially call NylasConnector method.`);const v=T.formatEventName(h.toString());T.debug(`[${this.hostTagName}] Adding event listener for "${v}" on "${c.tagName}"`),c.addEventListener(v,m)}),r==null||r.forEach((l,h)=>{var y,g,b,k;const[f,m]=h.split("."),v=this.getStore(f).state[m];if(!c.dataset.nylasId){T.debug(`[${this.hostTagName}] Component "${e.name}" not registered. Skipping.`,{component:e});return}this.propStateRegistrations.has(f)||this.propStateRegistrations.set(f,new Map),(y=this.propStateRegistrations.get(f))!=null&&y.has(m)?(k=(b=this.propStateRegistrations.get(f))==null?void 0:b.get(m))==null||k.push({elementId:c.dataset.nylasId,propKey:l}):(g=this.propStateRegistrations.get(f))==null||g.set(m,[{elementId:c.dataset.nylasId,propKey:l}]),c[l.toString()]=v,T.debug(`[${this.hostTagName}] Setting "${e.name}" prop "${l.toString()}" to "${h}" value.`,{stateValue:v})}),a==null||a.forEach((l,h)=>{const f=this.host[h];c[l.toString()]=f,T.debug(`[${this.hostTagName}] Setting "${e.name}" prop "${l.toString()}" to the value of "${h}" value.`,{value:h,mappedPropValue:f})}),s&&(c[s==null?void 0:s.toString()]=this.getStore,T.debug(`[${this.hostTagName}] Setting "${e.name}" prop "${s.toString()}" to "getStore" method.`)),o==null||o.forEach((l,h)=>{const f=this.getStore(h);c[l.toString()]=f,T.debug(`[${this.hostTagName}] Setting "${e.name}" prop "${l.toString()}" to "${h}" store.`,{store:f})}),u&&(c[u==null?void 0:u.toString()]=this.nylasConnector,T.debug(`[${this.hostTagName}] Setting "${e.name}" prop "${u.toString()}" to "nylasConnector" value.`,{connectorToProp:u})),T.debug(`[${this.hostTagName}] Component ${e.name} registered.`)}unregisterComponent(e){T.debug(`[${this.hostTagName}] Unregistering component ${e.name}.`);const n=e.element.dataset.nylasId;if(!n){T.debug(`[${this.hostTagName}] Component ${e.name} not registered. Skipping.`);return}if(this.registeredComponents[n]){T.debug(`[${this.hostTagName}] Component ${e.name} not registered. Skipping.`);return}this.propStateRegistrations.forEach((s,i)=>{s.forEach((o,u)=>{var d,l;const a=(d=this.propStateRegistrations.get(i))==null?void 0:d.get(u),c=a==null?void 0:a.filter(h=>h.elementId!==n);c&&((l=this.propStateRegistrations.get(i))==null||l.set(u,c))})});const r=this.eventListenerRegistrations.get(n);r==null||r.forEach(([s,i,o])=>{const u=T.formatEventName(i.toString());T.debug(`[${this.hostTagName}] Removing event listener for "${u}" on "${s.tagName}"`),s.removeEventListener(u,o)}),delete this.registeredComponents[n]}getStore(e){const n=this.stores[e];if(!n)throw new Error(`[${this.hostTagName}] Store "${e.toString()}" not found.`);return n}async setupStoreListeners(){const e=this;Object.entries(this.stores).forEach(([n,r])=>{T.debug(`[${e.hostTagName}] Listening for changes in "${n}" store.`),r.use({set(s,i,o){var c;if(T.debug(`[${e.hostTagName}] Store "${n}" state "${s.toString()}" changed`,{newValue:i,oldValue:o}),i===o){T.debug(`[${e.hostTagName}] Store "${n}" state "${s.toString()}" unchanged. Skipping.`);return}const u=e.registeredComponents;if(!u){T.debug(`[${e.hostTagName}] No registered components found. Skipping.`);return}const a=((c=e.propStateRegistrations.get(n))==null?void 0:c.get(s.toString()))||[];T.debug(`[${e.hostTagName}] Found ${a.length} prop(s) registered for "${s.toString()}" store.`,{props:a,propStateRegistrations:e.propStateRegistrations}),a.forEach(({elementId:d,propKey:l})=>{const h=u[d];if(!h){T.debug(`[${e.hostTagName}] Component "${d}" not found. Skipping.`,{component:h});return}const m=e.getStore(n).state[s];h.element[l.toString()]=m,T.debug(`[${e.hostTagName}] Setting "${h.name}" prop "${l.toString()}" to "${s.toString()}" value.`,{stateValue:m})})}})})}get hostTagName(){var e,n;return((n=(e=this.host)==null?void 0:e.tagName)==null?void 0:n.toLowerCase())??"nylas-provider"}}class rr extends nr{}var sr=Object.defineProperty,ir=(t,e,n)=>e in t?sr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ut=(t,e,n)=>(ir(t,typeof e!="symbol"?e+"":e,n),n),Sn=(t=>(t.Error="error",t.Warning="warning",t.Info="info",t.Success="success",t))(Sn||{});const or=t=>t!==null&&typeof t=="object"&&"error"in t;class ar extends Error{constructor(e){super(e==null?void 0:e.message),ut(this,"apiError"),this.name="NylasAPIError",this.stack=new Error().stack,this.apiError=e}}async function hn(t){const e=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",e),r=Array.from(new Uint8Array(n)).map(s=>s.toString(16).padStart(2,"0")).join("");return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}const K=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:T.global$1,$=Object.keys,M=Array.isArray;function U(t,e){return typeof e!="object"||$(e).forEach(function(n){t[n]=e[n]}),t}typeof Promise>"u"||K.Promise||(K.Promise=Promise);const Be=Object.getPrototypeOf,ur={}.hasOwnProperty;function z(t,e){return ur.call(t,e)}function Pe(t,e){typeof e=="function"&&(e=e(Be(t))),(typeof Reflect>"u"?$:Reflect.ownKeys)(e).forEach(n=>{ee(t,n,e[n])})}const Pn=Object.defineProperty;function ee(t,e,n,r){Pn(t,e,U(n&&z(n,"get")&&typeof n.get=="function"?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function ke(t){return{from:function(e){return t.prototype=Object.create(e.prototype),ee(t.prototype,"constructor",t),{extend:Pe.bind(null,t.prototype)}}}}const lr=Object.getOwnPropertyDescriptor;function Jt(t,e){let n;return lr(t,e)||(n=Be(t))&&Jt(n,e)}const cr=[].slice;function lt(t,e,n){return cr.call(t,e,n)}function En(t,e){return e(t)}function Ie(t){if(!t)throw new Error("Assertion Failed")}function Cn(t){K.setImmediate?setImmediate(t):setTimeout(t,0)}function Tn(t,e){return t.reduce((n,r,s)=>{var i=e(r,s);return i&&(n[i[0]]=i[1]),n},{})}function te(t,e){if(z(t,e))return t[e];if(!e)return t;if(typeof e!="string"){for(var n=[],r=0,s=e.length;r<s;++r){var i=te(t,e[r]);n.push(i)}return n}var o=e.indexOf(".");if(o!==-1){var u=t[e.substr(0,o)];return u===void 0?void 0:te(u,e.substr(o+1))}}function H(t,e,n){if(t&&e!==void 0&&(!("isFrozen"in Object)||!Object.isFrozen(t)))if(typeof e!="string"&&"length"in e){Ie(typeof n!="string"&&"length"in n);for(var r=0,s=e.length;r<s;++r)H(t,e[r],n[r])}else{var i=e.indexOf(".");if(i!==-1){var o=e.substr(0,i),u=e.substr(i+1);if(u==="")n===void 0?M(t)&&!isNaN(parseInt(o))?t.splice(o,1):delete t[o]:t[o]=n;else{var a=t[o];a&&z(t,o)||(a=t[o]={}),H(a,u,n)}}else n===void 0?M(t)&&!isNaN(parseInt(e))?t.splice(e,1):delete t[e]:t[e]=n}}function An(t){var e={};for(var n in t)z(t,n)&&(e[n]=t[n]);return e}const hr=[].concat;function On(t){return hr.apply([],t)}const In="Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(On([8,16,32,64].map(t=>["Int","Uint","Float"].map(e=>e+t+"Array")))).filter(t=>K[t]),dr=In.map(t=>K[t]);Tn(In,t=>[t,!0]);let se=null;function We(t){se=typeof WeakMap<"u"&&new WeakMap;const e=Ct(t);return se=null,e}function Ct(t){if(!t||typeof t!="object")return t;let e=se&&se.get(t);if(e)return e;if(M(t)){e=[],se&&se.set(t,e);for(var n=0,r=t.length;n<r;++n)e.push(Ct(t[n]))}else if(dr.indexOf(t.constructor)>=0)e=t;else{const i=Be(t);for(var s in e=i===Object.prototype?{}:Object.create(i),se&&se.set(t,e),t)z(t,s)&&(e[s]=Ct(t[s]))}return e}const{toString:fr}={};function Tt(t){return fr.call(t).slice(8,-1)}const At=typeof Symbol<"u"?Symbol.iterator:"@@iterator",pr=typeof At=="symbol"?function(t){var e;return t!=null&&(e=t[At])&&e.apply(t)}:function(){return null},_e={};function J(t){var e,n,r,s;if(arguments.length===1){if(M(t))return t.slice();if(this===_e&&typeof t=="string")return[t];if(s=pr(t)){for(n=[];!(r=s.next()).done;)n.push(r.value);return n}if(t==null)return[t];if(typeof(e=t.length)=="number"){for(n=new Array(e);e--;)n[e]=t[e];return n}return[t]}for(e=arguments.length,n=new Array(e);e--;)n[e]=arguments[e];return n}const Zt=typeof Symbol<"u"?t=>t[Symbol.toStringTag]==="AsyncFunction":()=>!1;var G=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function Kn(t,e){G=t,jn=e}var jn=()=>!0;const mr=!new Error("").stack;function Ee(){if(mr)try{throw new Error}catch(t){return t}return new Error}function Ot(t,e){var n=t.stack;return n?(e=e||0,n.indexOf(t.name)===0&&(e+=(t.name+t.message).split(`
|
|
1
|
+
"use strict";const T=require("./index-d36b8fb8.cjs");class nr{constructor(e,n,r=!0,s){this.automaticComponentRegistration=!0,this.registeredComponents={},this.propStateRegistrations=new Map,this.eventListenerRegistrations=new Map,this.host=e,this.stores=n,this.automaticComponentRegistration=r,this.eventOverrides=s,T.debug(`[${this.hostTagName}] Initializing (abstract) provider.`,{eventOverrides:s}),this.registerComponent=this.registerComponent.bind(this),this.getStore=this.getStore.bind(this),Object.keys(this.stores).forEach(i=>{this.propStateRegistrations.set(i,new Map)})}async componentWillLoad(e){T.debug(`[${this.hostTagName}] Will load`),this.setupStoreListeners(),this.nylasConnector=e;const n=Array.from(this.host.querySelectorAll("*")).filter(r=>r.tagName.toLowerCase().startsWith("nylas-"));T.debug(`[${this.hostTagName}] Found ${n.length} child component(s).`,{childComponents:n}),n.forEach(r=>{const s=r;if(!s){T.debug(`[~${this.hostTagName}] Component ${s.tagName} does not have a name. Skipping.`);return}if(!s.registerNylasComponent){T.debug(`[~${this.hostTagName}] Component ${s.tagName} is not a component that can be registered. Skipping.`,{component:s});return}const i={element:s,name:s.tagName.toLowerCase(),getStoresToProp:s.getStoresToProp,storeToProps:s.storeToProps,stateToProps:s.stateToProps,authToProp:s.authToProp,eventToProps:s.eventToProps,connectorToProp:s.connectorToProp,localPropsToProp:s.localPropsToProp};this.registerComponent(i)})}async componentDidLoad(){T.debug(`[${this.hostTagName}] Did load`)}async componentDisconnected(){Object.values(this.stores).forEach(e=>{e.dispose()})}async registerComponentHandler(e){if(e.stopPropagation(),!this.automaticComponentRegistration){T.debug(`[${this.hostTagName}] Automatic component registration disabled. Skipping registration of ${e.detail.name}.`);return}this.registerComponent(e.detail)}async unregisterComponentHandler(e){if(e.stopPropagation(),!this.automaticComponentRegistration){T.debug(`[${this.hostTagName}] Automatic component registration disabled. Skipping unregistration of ${e.detail.name}.`);return}this.unregisterComponent(e.detail)}registerComponent(e){T.debug(`[${this.hostTagName}] Registering component ${e.name}.`);const n=e.element.dataset.nylasId;if(n&&this.registeredComponents[n]){T.debug(`[${this.hostTagName}] Component ${e.name} already registered. Skipping.`);return}const{stateToProps:r,getStoresToProp:s,eventToProps:i,storeToProps:o,connectorToProp:u,localPropsToProp:a,element:c}=e;c.dataset.nylasId=T.uniqueID(),this.registeredComponents[c.dataset.nylasId]=e;const d=this.eventOverrides;i==null||i.forEach((l,h)=>{var y;const f=this.nylasConnector,m=async g=>{T.debug(`[${this.hostTagName}] Handling "${e.name}" prop "${String(h)}" event.`,{event:g}),h in d&&(T.debug(`[${this.hostTagName}] Found event override for "${String(h)}" event. Calling override.`),await d[h](g,f)),g.defaultPrevented||await l(g,f)},p=e.element.dataset.nylasId;p&&!this.eventListenerRegistrations.has(p)&&this.eventListenerRegistrations.set(p,[]),p&&((y=this.eventListenerRegistrations.get(p))==null||y.push([c,h,m])),T.debug(`[${this.hostTagName}] Setting "${e.name}" event "${String(h)}" to automcially call NylasConnector method.`);const v=T.formatEventName(h.toString());T.debug(`[${this.hostTagName}] Adding event listener for "${v}" on "${c.tagName}"`),c.addEventListener(v,m)}),r==null||r.forEach((l,h)=>{var y,g,b,k;const[f,m]=h.split("."),v=this.getStore(f).state[m];if(!c.dataset.nylasId){T.debug(`[${this.hostTagName}] Component "${e.name}" not registered. Skipping.`,{component:e});return}this.propStateRegistrations.has(f)||this.propStateRegistrations.set(f,new Map),(y=this.propStateRegistrations.get(f))!=null&&y.has(m)?(k=(b=this.propStateRegistrations.get(f))==null?void 0:b.get(m))==null||k.push({elementId:c.dataset.nylasId,propKey:l}):(g=this.propStateRegistrations.get(f))==null||g.set(m,[{elementId:c.dataset.nylasId,propKey:l}]),c[l.toString()]=v,T.debug(`[${this.hostTagName}] Setting "${e.name}" prop "${l.toString()}" to "${h}" value.`,{stateValue:v})}),a==null||a.forEach((l,h)=>{const f=this.host[h];c[l.toString()]=f,T.debug(`[${this.hostTagName}] Setting "${e.name}" prop "${l.toString()}" to the value of "${h}" value.`,{value:h,mappedPropValue:f})}),s&&(c[s==null?void 0:s.toString()]=this.getStore,T.debug(`[${this.hostTagName}] Setting "${e.name}" prop "${s.toString()}" to "getStore" method.`)),o==null||o.forEach((l,h)=>{const f=this.getStore(h);c[l.toString()]=f,T.debug(`[${this.hostTagName}] Setting "${e.name}" prop "${l.toString()}" to "${h}" store.`,{store:f})}),u&&(c[u==null?void 0:u.toString()]=this.nylasConnector,T.debug(`[${this.hostTagName}] Setting "${e.name}" prop "${u.toString()}" to "nylasConnector" value.`,{connectorToProp:u})),T.debug(`[${this.hostTagName}] Component ${e.name} registered.`)}unregisterComponent(e){T.debug(`[${this.hostTagName}] Unregistering component ${e.name}.`);const n=e.element.dataset.nylasId;if(!n){T.debug(`[${this.hostTagName}] Component ${e.name} not registered. Skipping.`);return}if(this.registeredComponents[n]){T.debug(`[${this.hostTagName}] Component ${e.name} not registered. Skipping.`);return}this.propStateRegistrations.forEach((s,i)=>{s.forEach((o,u)=>{var d,l;const a=(d=this.propStateRegistrations.get(i))==null?void 0:d.get(u),c=a==null?void 0:a.filter(h=>h.elementId!==n);c&&((l=this.propStateRegistrations.get(i))==null||l.set(u,c))})});const r=this.eventListenerRegistrations.get(n);r==null||r.forEach(([s,i,o])=>{const u=T.formatEventName(i.toString());T.debug(`[${this.hostTagName}] Removing event listener for "${u}" on "${s.tagName}"`),s.removeEventListener(u,o)}),delete this.registeredComponents[n]}getStore(e){const n=this.stores[e];if(!n)throw new Error(`[${this.hostTagName}] Store "${e.toString()}" not found.`);return n}async setupStoreListeners(){const e=this;Object.entries(this.stores).forEach(([n,r])=>{T.debug(`[${e.hostTagName}] Listening for changes in "${n}" store.`),r.use({set(s,i,o){var c;if(T.debug(`[${e.hostTagName}] Store "${n}" state "${s.toString()}" changed`,{newValue:i,oldValue:o}),i===o){T.debug(`[${e.hostTagName}] Store "${n}" state "${s.toString()}" unchanged. Skipping.`);return}const u=e.registeredComponents;if(!u){T.debug(`[${e.hostTagName}] No registered components found. Skipping.`);return}const a=((c=e.propStateRegistrations.get(n))==null?void 0:c.get(s.toString()))||[];T.debug(`[${e.hostTagName}] Found ${a.length} prop(s) registered for "${s.toString()}" store.`,{props:a,propStateRegistrations:e.propStateRegistrations}),a.forEach(({elementId:d,propKey:l})=>{const h=u[d];if(!h){T.debug(`[${e.hostTagName}] Component "${d}" not found. Skipping.`,{component:h});return}const m=e.getStore(n).state[s];h.element[l.toString()]=m,T.debug(`[${e.hostTagName}] Setting "${h.name}" prop "${l.toString()}" to "${s.toString()}" value.`,{stateValue:m})})}})})}get hostTagName(){var e,n;return((n=(e=this.host)==null?void 0:e.tagName)==null?void 0:n.toLowerCase())??"nylas-provider"}}class rr extends nr{}var sr=Object.defineProperty,ir=(t,e,n)=>e in t?sr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ut=(t,e,n)=>(ir(t,typeof e!="symbol"?e+"":e,n),n),Sn=(t=>(t.Error="error",t.Warning="warning",t.Info="info",t.Success="success",t))(Sn||{});const or=t=>t!==null&&typeof t=="object"&&"error"in t;class ar extends Error{constructor(e){super(e==null?void 0:e.message),ut(this,"apiError"),this.name="NylasAPIError",this.stack=new Error().stack,this.apiError=e}}async function hn(t){const e=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",e),r=Array.from(new Uint8Array(n)).map(s=>s.toString(16).padStart(2,"0")).join("");return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}const K=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:T.global$1,$=Object.keys,M=Array.isArray;function U(t,e){return typeof e!="object"||$(e).forEach(function(n){t[n]=e[n]}),t}typeof Promise>"u"||K.Promise||(K.Promise=Promise);const Be=Object.getPrototypeOf,ur={}.hasOwnProperty;function z(t,e){return ur.call(t,e)}function Pe(t,e){typeof e=="function"&&(e=e(Be(t))),(typeof Reflect>"u"?$:Reflect.ownKeys)(e).forEach(n=>{ee(t,n,e[n])})}const Pn=Object.defineProperty;function ee(t,e,n,r){Pn(t,e,U(n&&z(n,"get")&&typeof n.get=="function"?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function ke(t){return{from:function(e){return t.prototype=Object.create(e.prototype),ee(t.prototype,"constructor",t),{extend:Pe.bind(null,t.prototype)}}}}const lr=Object.getOwnPropertyDescriptor;function Jt(t,e){let n;return lr(t,e)||(n=Be(t))&&Jt(n,e)}const cr=[].slice;function lt(t,e,n){return cr.call(t,e,n)}function En(t,e){return e(t)}function Ie(t){if(!t)throw new Error("Assertion Failed")}function Cn(t){K.setImmediate?setImmediate(t):setTimeout(t,0)}function Tn(t,e){return t.reduce((n,r,s)=>{var i=e(r,s);return i&&(n[i[0]]=i[1]),n},{})}function te(t,e){if(z(t,e))return t[e];if(!e)return t;if(typeof e!="string"){for(var n=[],r=0,s=e.length;r<s;++r){var i=te(t,e[r]);n.push(i)}return n}var o=e.indexOf(".");if(o!==-1){var u=t[e.substr(0,o)];return u===void 0?void 0:te(u,e.substr(o+1))}}function H(t,e,n){if(t&&e!==void 0&&(!("isFrozen"in Object)||!Object.isFrozen(t)))if(typeof e!="string"&&"length"in e){Ie(typeof n!="string"&&"length"in n);for(var r=0,s=e.length;r<s;++r)H(t,e[r],n[r])}else{var i=e.indexOf(".");if(i!==-1){var o=e.substr(0,i),u=e.substr(i+1);if(u==="")n===void 0?M(t)&&!isNaN(parseInt(o))?t.splice(o,1):delete t[o]:t[o]=n;else{var a=t[o];a&&z(t,o)||(a=t[o]={}),H(a,u,n)}}else n===void 0?M(t)&&!isNaN(parseInt(e))?t.splice(e,1):delete t[e]:t[e]=n}}function An(t){var e={};for(var n in t)z(t,n)&&(e[n]=t[n]);return e}const hr=[].concat;function On(t){return hr.apply([],t)}const In="Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(On([8,16,32,64].map(t=>["Int","Uint","Float"].map(e=>e+t+"Array")))).filter(t=>K[t]),dr=In.map(t=>K[t]);Tn(In,t=>[t,!0]);let se=null;function We(t){se=typeof WeakMap<"u"&&new WeakMap;const e=Ct(t);return se=null,e}function Ct(t){if(!t||typeof t!="object")return t;let e=se&&se.get(t);if(e)return e;if(M(t)){e=[],se&&se.set(t,e);for(var n=0,r=t.length;n<r;++n)e.push(Ct(t[n]))}else if(dr.indexOf(t.constructor)>=0)e=t;else{const i=Be(t);for(var s in e=i===Object.prototype?{}:Object.create(i),se&&se.set(t,e),t)z(t,s)&&(e[s]=Ct(t[s]))}return e}const{toString:fr}={};function Tt(t){return fr.call(t).slice(8,-1)}const At=typeof Symbol<"u"?Symbol.iterator:"@@iterator",pr=typeof At=="symbol"?function(t){var e;return t!=null&&(e=t[At])&&e.apply(t)}:function(){return null},_e={};function J(t){var e,n,r,s;if(arguments.length===1){if(M(t))return t.slice();if(this===_e&&typeof t=="string")return[t];if(s=pr(t)){for(n=[];!(r=s.next()).done;)n.push(r.value);return n}if(t==null)return[t];if(typeof(e=t.length)=="number"){for(n=new Array(e);e--;)n[e]=t[e];return n}return[t]}for(e=arguments.length,n=new Array(e);e--;)n[e]=arguments[e];return n}const Zt=typeof Symbol<"u"?t=>t[Symbol.toStringTag]==="AsyncFunction":()=>!1;var G=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function Kn(t,e){G=t,jn=e}var jn=()=>!0;const mr=!new Error("").stack;function Ee(){if(mr)try{throw new Error}catch(t){return t}return new Error}function Ot(t,e){var n=t.stack;return n?(e=e||0,n.indexOf(t.name)===0&&(e+=(t.name+t.message).split(`
|
|
2
2
|
`).length),n.split(`
|
|
3
3
|
`).slice(e).filter(jn).map(r=>`
|
|
4
4
|
`+r).join("")):""}var Rn=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],en=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(Rn),gr={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function xe(t,e){this._e=Ee(),this.name=t,this.message=e}function Nn(t,e){return t+". Errors: "+Object.keys(e).map(n=>e[n].toString()).filter((n,r,s)=>s.indexOf(n)===r).join(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-d36b8fb8.cjs");require("react");require("react-dom");const i=".sc-info-icon-h{display:flex}",a=i,o=class{constructor(e){t.registerInstance(this,e),this.width="14",this.height="14"}render(){return t.h("svg",{key:"d933385137674b4a0a1f3ff62d24633a5cd0d924",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"aa549c6a295bb9a19ed97485b7008495ec124778",fill:"currentColor",d:"M6.5 5.5C6.77614 5.5 7 5.72386 7 6V9C7 9.27614 6.77614 9.5 6.5 9.5C6.22386 9.5 6 9.27614 6 9V6C6 5.72386 6.22386 5.5 6.5 5.5ZM6.50001 4.74907C6.91369 4.74907 7.24905 4.41371 7.24905 4.00003C7.24905 3.58635 6.91369 3.251 6.50001 3.251C6.08633 3.251 5.75098 3.58635 5.75098 4.00003C5.75098 4.41371 6.08633 4.74907 6.50001 4.74907ZM0.5 6.5C0.5 3.18629 3.18629 0.5 6.5 0.5C9.81371 0.5 12.5 3.18629 12.5 6.5C12.5 9.81371 9.81371 12.5 6.5 12.5C3.18629 12.5 0.5 9.81371 0.5 6.5ZM6.5 1.5C3.73858 1.5 1.5 3.73858 1.5 6.5C1.5 9.26142 3.73858 11.5 6.5 11.5C9.26142 11.5 11.5 9.26142 11.5 6.5C11.5 3.73858 9.26142 1.5 6.5 1.5Z"}))}};o.style=a;const s='.tooltip-container{position:relative;display:flex;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.tooltip-content{visibility:hidden;background-color:var(--nylas-base-800);color:var(--nylas-base-0);text-align:left;border-radius:6px;padding:5px 0;position:absolute;z-index:1;opacity:0;transition:opacity 0.3s;padding:0.5rem 1rem;max-width:200px;width:max-content}.tooltip-content.top{bottom:0;left:0;margin-bottom:1.25rem;transform:translateX(-50%)}.tooltip-content.right{top:50%;left:0%;margin-left:1.25rem;transform:translateY(-50%)}.tooltip-content.bottom{top:0;left:0;margin-top:1.25rem;transform:translateX(-50%)}.tooltip-content.left{top:50%;right:0%;margin-right:1.25rem;transform:translateY(-50%)}.tooltip-container:hover .tooltip-content,.tooltip-container:focus-within .tooltip-content{visibility:visible;opacity:1}.tooltip-content::after{content:"";position:absolute;top:-0.75rem;left:50%;transform:rotate(180deg);border-width:6px;border-style:solid;border-color:black transparent transparent transparent}.tooltip-content.top::after{top:100%;left:50%;transform:rotate(0deg)}.tooltip-content.bottom::after{top:-0.75rem;left:50%;transform:rotate(180deg)}.tooltip-content.left::after{top:47.5%;left:100%;transform:rotate(270deg)}.tooltip-content.right::after{top:47.5%;left:-0.75rem;transform:rotate(90deg)}',r=s,n=class{constructor(e){t.registerInstance(this,e),this.position="bottom"}showTooltip(e){e.target.nextElementSibling.style.visibility="visible",e.target.nextElementSibling.style.opacity="1"}hideTooltip(e){e.target.nextElementSibling.style.visibility="hidden",e.target.nextElementSibling.style.opacity="0"}render(){return t.h("div",{key:"d943b820dabf17942c9892bd029ee186fd393cde",class:"tooltip-container",part:"tc__container"},t.h("span",{key:"8915e5b427e646ebbe0b8ff496d9a5cd113a4e52",class:"info-icon",tabindex:"0",onFocus:this.showTooltip.bind(this),onBlur:this.hideTooltip.bind(this)},t.h("slot",{key:"81e1037d095b49891d74a81a80492dc86ebc6192",name:"tooltip-icon"},"i")),t.h("span",{key:"7b6359c221c834e58115c9ea444dd2dddefd1cf7",class:`tooltip-content ${this.position}`,part:"tc__content"},t.h("slot",{key:"a3b353fd3bc079542d64ac868b4c3b66f0f86341",name:"tooltip-content"},"This is a help text.")))}get el(){return t.getElement(this)}};n.style=r;exports.info_icon=o;exports.tooltip_component=n;
|