@meltingspot/widget 1.19.0 → 1.21.0
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/CHANGELOG.md +24 -0
- package/index.cjs +1 -1
- package/index.mjs +15 -5
- package/index.standalone.js +4 -4
- package/package.json +3 -3
- package/widget.d.ts +24 -0
- package/widgetContent.d.ts +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -15,6 +15,30 @@ Date: YYYY-MM-DD
|
|
|
15
15
|
|
|
16
16
|
-->
|
|
17
17
|
|
|
18
|
+
## Unreleased
|
|
19
|
+
|
|
20
|
+
### Minor Changes
|
|
21
|
+
|
|
22
|
+
- New optional `parentOrigin` widget option: the origin of the page hosting the
|
|
23
|
+
widget. When set, a widget running an audio or video practice session tells
|
|
24
|
+
that page when the session starts and ends, so it can ask before closing it.
|
|
25
|
+
|
|
26
|
+
## v1.21.0
|
|
27
|
+
|
|
28
|
+
Date: 2026-11-25
|
|
29
|
+
|
|
30
|
+
### Minor Changes
|
|
31
|
+
|
|
32
|
+
- Bump `@meltingspot/core` and `@meltingspot/embed` to `1.21.0`.
|
|
33
|
+
|
|
34
|
+
## v1.20.0
|
|
35
|
+
|
|
36
|
+
Date: 2026-11-17
|
|
37
|
+
|
|
38
|
+
### Minor Changes
|
|
39
|
+
|
|
40
|
+
- Bump `@meltingspot/core` and `@meltingspot/embed` to `1.20.0`.
|
|
41
|
+
|
|
18
42
|
## v1.19.0
|
|
19
43
|
|
|
20
44
|
Date: 2026-11-09
|
package/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("@meltingspot/core"),t=require("@meltingspot/embed");var n=new e.Logger({appName:`Widget SDK`,appVersion:`1.
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("@meltingspot/core"),t=require("@meltingspot/embed");var n=new e.Logger({appName:`Widget SDK`,appVersion:`1.21.0`}),r=class{constructor(e,t,n){this.content=e,this.rootDocument=t,this.dialogClassname=n,this.dialogElement=null,this.triggerElement=null,this.iframeElement=null,this.currentListener=null}inject({into:t,bind:n,options:r}){this.remove();let i=(0,e.getHTMLElement)({input:t,rootDocument:this.rootDocument});if(this.dialogElement=(0,e.createDialog)(this.rootDocument),this.dialogElement.classList.add(this.dialogClassname),this.dialogElement.onclose=()=>this.#t(),i.appendChild(this.dialogElement),n){this.triggerElement=(0,e.getHTMLElement)({input:n,rootDocument:this.rootDocument});let t=this.open.bind(this,r);this.currentListener=e=>{e.stopPropagation(),e.preventDefault(),t()},this.triggerElement.addEventListener(`click`,this.currentListener)}}remove(){this.dialogElement&&=(this.dialogElement.remove(),this.dialogElement.onclose=null,null),this.triggerElement&&(this.currentListener&&this.triggerElement.removeEventListener(`click`,this.currentListener),this.triggerElement=null,this.currentListener=null)}open(e){this.dialogElement||this.inject({into:this.rootDocument.body}),this.dialogElement&&(this.#e(),this.dialogElement.showModal())}close(){this.dialogElement&&this.dialogElement.close()}#e(){this.dialogElement&&(this.iframeElement=this.dialogElement.appendChild(this.content.iframe))}#t(){this.iframeElement&&=(this.iframeElement.remove(),null)}},i=class extends r{constructor(e,t){super(e,t,`ms-drawer`)}open(e){let{position:t=`right`}=e??{};super.open(e),this.dialogElement&&(this.dialogElement.dataset.position=t)}},a=class extends r{constructor(e,t){super(e,t,`ms-modal`)}},o=class{constructor(t){this.baseURL=(0,e.formatBaseUrl)(t.baseURL),this.spotId=(0,e.formatUUID)(t.spotId),this.widgetId=(0,e.formatUUID)(t.widgetId),this.authToken=t.authToken??null,this.themeMode=t.themeMode??`auto`,this.domain=t.domain??null,this.utmParameters=t.utmParameters??null,this.rootDocument=t.rootDocument,this.intentId=t.intentId??null,this.hotspotId=t.hotspotId??null,this.surface=t.surface??null,this.parentOrigin=t.parentOrigin??null}get iframe(){let t=new URL(`/widgets/spot/${this.spotId}/widget/${this.widgetId}`,(0,e.trimSlashRight)(this.baseURL)),n=(0,e.createIframe)({url:t,searchParams:{themeMode:this.themeMode,ms_token:this.authToken,domain:this.domain,intentId:this.intentId,hotspotId:this.hotspotId,surface:this.surface,parentOrigin:this.parentOrigin,...(0,e.flattenUtmParameters)(this.utmParameters)},rootDocument:this.rootDocument});return n.classList.add(`ms-widget`),n}},s=class{constructor(t){this.baseURL=(0,e.formatBaseUrl)(t.baseURL),this.spotId=(0,e.formatUUID)(t.spotId),this.widgetContentId=(0,e.formatUUID)(t.widgetContentId),this.contentId=(0,e.formatUUID)(t.contentId),this.widgetId=(0,e.formatUUID)(t.widgetId),this.contentType=t.contentType,this.authToken=t.authToken??null,this.themeMode=t.themeMode??`auto`,this.domain=t.domain??null,this.utmParameters=t.utmParameters??null,this.parentOrigin=t.parentOrigin??null,this.rootDocument=t.rootDocument}get iframe(){let t=new URL(`/widgets/spot/${this.spotId}/widgetContent/${this.widgetContentId}`,(0,e.trimSlashRight)(this.baseURL));t.searchParams.set(`widgetId`,this.widgetId);let n=(0,e.createIframe)({url:t,searchParams:{themeMode:this.themeMode,ms_token:this.authToken,domain:this.domain,contentId:this.contentId,contentType:this.contentType,parentOrigin:this.parentOrigin,...(0,e.flattenUtmParameters)(this.utmParameters)},rootDocument:this.rootDocument});return n.classList.add(`ms-widget-content`),n}},c=class r{static{this.widgets=[]}static{this.messageListened=!1}static{this.widgetOptions={}}static injectWidgetInto(i,a){let{spotId:o,rootDocument:s,msCommunityWebBaseUrl:c}=e.ConfigurationService.getConfiguration({spotId:a.spotId,rootDocument:a.rootDocument,msCommunityWebBaseUrl:a.baseURL});if(!o)throw n.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let{widget:l,args:u}=r.createWidget({...a,spotId:o,rootDocument:s,baseURL:c}),d=new t.EmbedFrame(l);return d.inject(i),r.widgets.push(d),n.log(`Widget injected`,r.cleanupLoggedArgs(u),i),d}static injectWidgetContentInto(i,a){let{spotId:o,rootDocument:s,msCommunityWebBaseUrl:c}=e.ConfigurationService.getConfiguration({spotId:a.spotId,rootDocument:a.rootDocument,msCommunityWebBaseUrl:a.baseURL});if(!o)throw n.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let{widgetContent:l,args:u}=r.createWidgetContent({...a,spotId:o,rootDocument:s,baseURL:c}),d=new t.EmbedFrame(l);return d.inject(i),r.widgets.push(d),n.log(`WidgetContent injected`,r.cleanupLoggedArgs(u),i),d}static bindWidgetModalTo(e,t){return r.bindEntityModalTo(e,{type:`Widget`,data:t})}static bindWidgetDrawerTo(e,t){return r.bindEntityDrawerTo(e,{type:`Widget`,data:t})}static createWidgetDrawer(e){let{widget:t}=r.createWidget(e);return n.log(`Create Widget drawer`,{data:r.cleanupLoggedArgs(e)}),new i(t,e.rootDocument??document)}static createWidgetModal(e){let{widget:t}=r.createWidget(e);return n.log(`Create Widget modal`,{data:r.cleanupLoggedArgs(e)}),new a(t,e.rootDocument??document)}static createWidgetEmbed(e){let{widget:i}=r.createWidget(e),a=new t.EmbedFrame(i);return n.log(`Create Widget embed`,{data:r.cleanupLoggedArgs(e)}),a}static clear(){r.widgets.forEach(e=>{e.remove()}),r.widgets=[],r.widgetOptions={},n.log(`All Widget SDK MeltingSpot elements were cleared`)}static bindEntityDrawerTo(t,a){let{spotId:o,rootDocument:s,msCommunityWebBaseUrl:c}=e.ConfigurationService.getConfiguration({spotId:a.data.spotId,rootDocument:a.data.rootDocument??document,msCommunityWebBaseUrl:a.data.baseURL});if(!o)throw n.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let l,u;switch(a.type){case`Widget`:{let e=r.createWidget({...a.data,spotId:o,rootDocument:s,baseURL:c});l=e.widget,u=e.args}break;case`WidgetContent`:{let e=r.createWidgetContent({...a.data,spotId:o,rootDocument:s,baseURL:c});l=e.widgetContent,u=e.args}}let d=new i(l,s),f={position:a.data.position},p=a.data.into??s.body;return d.inject({into:p,bind:t,options:f}),r.widgets.push(d),n.log(`Widget bound to drawer`,r.cleanupLoggedArgs(u),f,p,t),d}static bindEntityModalTo(t,i){let{spotId:o,rootDocument:s,msCommunityWebBaseUrl:c}=e.ConfigurationService.getConfiguration({spotId:i.data.spotId,rootDocument:i.data.rootDocument??document,msCommunityWebBaseUrl:i.data.baseURL});if(!o)throw n.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let l,u;switch(i.type){case`Widget`:{let e=r.createWidget({...i.data,spotId:o,rootDocument:s,baseURL:c});l=e.widget,u=e.args}break;case`WidgetContent`:{let e=r.createWidgetContent({...i.data,spotId:o,rootDocument:s,baseURL:c});l=e.widgetContent,u=e.args}}let d=new a(l,s),f=i.data.into??s.body;return d.inject({into:f,bind:t}),r.widgets.push(d),n.log(`Widget bound to modal`,r.cleanupLoggedArgs(u),f,t),d}static handleMessageEvent(t){if(!t.data||typeof t.data!=`object`||t.data.type!==`OpenWidgetContent`)return;let o=t.data?.widgetId;if(!o||typeof o!=`string`){n.error(`widgetId is required in the message event data`);return}let s=r.widgetOptions[o];if(!s){n.error(`No widget options found for widgetId`,{widgetId:o});return}let c=null;try{c=new URL(s.baseURL).origin}catch{c=null}if(!c||t.origin!==c){n.warn(`Ignoring OpenWidgetContent from unexpected origin`,{origin:t.origin,expectedOrigin:c});return}let{spotId:l,rootDocument:u,msCommunityWebBaseUrl:d}=e.ConfigurationService.getConfiguration({spotId:s.spotId,rootDocument:s.rootDocument??document,msCommunityWebBaseUrl:s.baseURL}),{widgetContent:f}=r.createWidgetContent({...s,widgetContentId:t.data.widgetContentId,contentType:t.data.contentType,contentId:t.data.contentId,widgetId:o,spotId:l,rootDocument:u,baseURL:d});t.data.openingIn===`Drawer`?new i(f,u).open():t.data.openingIn===`Modal`&&new a(f,u).open()}static createWidget(t){let n=new URLSearchParams(window.location.search),i={spotId:t.spotId,widgetId:t.widgetId,authToken:t.authToken,themeMode:t.themeMode,domain:t.domain,rootDocument:t.rootDocument,baseURL:t.baseURL,utmParameters:t.utmParameters??(0,e.parseUtmParameters)(n),intentId:t.intentId,hotspotId:t.hotspotId,surface:t.surface,parentOrigin:t.parentOrigin};return r.widgetOptions[i.widgetId]=i,r.messageListened||=(window.addEventListener(`message`,r.handleMessageEvent),!0),{widget:new o(i),args:i}}static createWidgetContent(t){let n=new URLSearchParams(window.location.search),r={spotId:t.spotId,contentId:t.contentId,contentType:t.contentType,widgetContentId:t.widgetContentId,widgetId:t.widgetId,authToken:t.authToken,themeMode:t.themeMode,domain:t.domain,rootDocument:t.rootDocument,baseURL:t.baseURL,utmParameters:t.utmParameters??(0,e.parseUtmParameters)(n),parentOrigin:t.parentOrigin};return{widgetContent:new s(r),args:r}}static cleanupLoggedArgs(e){let{authToken:t,...n}=e;return{...n,authToken:t?`***`:void 0}}},l=globalThis;l.MeltingSpot||={},l.MeltingSpot.Widget=c,exports.Drawer=i,exports.Modal=a,exports.Widget=c;
|
package/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { EmbedFrame as u } from "@meltingspot/embed";
|
|
|
4
4
|
//#region src/logger.ts
|
|
5
5
|
var d = new t({
|
|
6
6
|
appName: "Widget SDK",
|
|
7
|
-
appVersion: "1.
|
|
7
|
+
appVersion: "1.21.0"
|
|
8
8
|
}), f = class {
|
|
9
9
|
constructor(e, t, n) {
|
|
10
10
|
this.content = e, this.rootDocument = t, this.dialogClassname = n, this.dialogElement = null, this.triggerElement = null, this.iframeElement = null, this.currentListener = null;
|
|
@@ -55,7 +55,7 @@ var d = new t({
|
|
|
55
55
|
}
|
|
56
56
|
}, h = class {
|
|
57
57
|
constructor(e) {
|
|
58
|
-
this.baseURL = a(e.baseURL), this.spotId = o(e.spotId), this.widgetId = o(e.widgetId), this.authToken = e.authToken ?? null, this.themeMode = e.themeMode ?? "auto", this.domain = e.domain ?? null, this.utmParameters = e.utmParameters ?? null, this.rootDocument = e.rootDocument;
|
|
58
|
+
this.baseURL = a(e.baseURL), this.spotId = o(e.spotId), this.widgetId = o(e.widgetId), this.authToken = e.authToken ?? null, this.themeMode = e.themeMode ?? "auto", this.domain = e.domain ?? null, this.utmParameters = e.utmParameters ?? null, this.rootDocument = e.rootDocument, this.intentId = e.intentId ?? null, this.hotspotId = e.hotspotId ?? null, this.surface = e.surface ?? null, this.parentOrigin = e.parentOrigin ?? null;
|
|
59
59
|
}
|
|
60
60
|
get iframe() {
|
|
61
61
|
let e = new URL(`/widgets/spot/${this.spotId}/widget/${this.widgetId}`, l(this.baseURL)), t = r({
|
|
@@ -64,6 +64,10 @@ var d = new t({
|
|
|
64
64
|
themeMode: this.themeMode,
|
|
65
65
|
ms_token: this.authToken,
|
|
66
66
|
domain: this.domain,
|
|
67
|
+
intentId: this.intentId,
|
|
68
|
+
hotspotId: this.hotspotId,
|
|
69
|
+
surface: this.surface,
|
|
70
|
+
parentOrigin: this.parentOrigin,
|
|
67
71
|
...i(this.utmParameters)
|
|
68
72
|
},
|
|
69
73
|
rootDocument: this.rootDocument
|
|
@@ -72,7 +76,7 @@ var d = new t({
|
|
|
72
76
|
}
|
|
73
77
|
}, g = class {
|
|
74
78
|
constructor(e) {
|
|
75
|
-
this.baseURL = a(e.baseURL), this.spotId = o(e.spotId), this.widgetContentId = o(e.widgetContentId), this.contentId = o(e.contentId), this.widgetId = o(e.widgetId), this.contentType = e.contentType, this.authToken = e.authToken ?? null, this.themeMode = e.themeMode ?? "auto", this.domain = e.domain ?? null, this.utmParameters = e.utmParameters ?? null, this.rootDocument = e.rootDocument;
|
|
79
|
+
this.baseURL = a(e.baseURL), this.spotId = o(e.spotId), this.widgetContentId = o(e.widgetContentId), this.contentId = o(e.contentId), this.widgetId = o(e.widgetId), this.contentType = e.contentType, this.authToken = e.authToken ?? null, this.themeMode = e.themeMode ?? "auto", this.domain = e.domain ?? null, this.utmParameters = e.utmParameters ?? null, this.parentOrigin = e.parentOrigin ?? null, this.rootDocument = e.rootDocument;
|
|
76
80
|
}
|
|
77
81
|
get iframe() {
|
|
78
82
|
let e = new URL(`/widgets/spot/${this.spotId}/widgetContent/${this.widgetContentId}`, l(this.baseURL));
|
|
@@ -85,6 +89,7 @@ var d = new t({
|
|
|
85
89
|
domain: this.domain,
|
|
86
90
|
contentId: this.contentId,
|
|
87
91
|
contentType: this.contentType,
|
|
92
|
+
parentOrigin: this.parentOrigin,
|
|
88
93
|
...i(this.utmParameters)
|
|
89
94
|
},
|
|
90
95
|
rootDocument: this.rootDocument
|
|
@@ -283,7 +288,11 @@ var d = new t({
|
|
|
283
288
|
domain: e.domain,
|
|
284
289
|
rootDocument: e.rootDocument,
|
|
285
290
|
baseURL: e.baseURL,
|
|
286
|
-
utmParameters: e.utmParameters ?? c(n)
|
|
291
|
+
utmParameters: e.utmParameters ?? c(n),
|
|
292
|
+
intentId: e.intentId,
|
|
293
|
+
hotspotId: e.hotspotId,
|
|
294
|
+
surface: e.surface,
|
|
295
|
+
parentOrigin: e.parentOrigin
|
|
287
296
|
};
|
|
288
297
|
return t.widgetOptions[r.widgetId] = r, t.messageListened ||= (window.addEventListener("message", t.handleMessageEvent), !0), {
|
|
289
298
|
widget: new h(r),
|
|
@@ -302,7 +311,8 @@ var d = new t({
|
|
|
302
311
|
domain: e.domain,
|
|
303
312
|
rootDocument: e.rootDocument,
|
|
304
313
|
baseURL: e.baseURL,
|
|
305
|
-
utmParameters: e.utmParameters ?? c(t)
|
|
314
|
+
utmParameters: e.utmParameters ?? c(t),
|
|
315
|
+
parentOrigin: e.parentOrigin
|
|
306
316
|
};
|
|
307
317
|
return {
|
|
308
318
|
widgetContent: new g(n),
|
package/index.standalone.js
CHANGED
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
</span>
|
|
12
12
|
</button>
|
|
13
13
|
</form>
|
|
14
|
-
`,t.classList.add(`ms-dialog`),t.addEventListener(`click`,e=>{e.target===t&&t.close()});let n=t.querySelector(`.ms-dialog-close-button`);return n&&n.addEventListener(`click`,e=>{e.preventDefault(),e.stopPropagation(),t.close()}),t},ue=[`accelerometer *`,`autoplay`,`camera`,`clipboard-write *`,`display-capture`,`encrypted-media *`,`fullscreen`,`gyroscope *`,`microphone`,`picture-in-picture *`,`screen-wake-lock`],de=e=>{let{url:t,searchParams:n={},permissionPolicies:r=[],rootDocument:i=document}=e;Object.entries(n).forEach(([e,n])=>{n!=null&&t.searchParams.set(e,String(n))});let a=i.createElement(`iframe`);return a.src=t.toString(),a.allow=ue.concat(r).join(`; `),a.width=`100%`,a.height=`100%`,a.style.border=`0`,a},fe=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|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,g={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(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,ee=function(e){return e instanceof T||!(!e||!e[x])},S=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},C=function(e,t){if(ee(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new T(n)},w=v;w.l=S,w.i=ee,w.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var T=function(){function g(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(w.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.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()},_.$utils=function(){return w},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=C(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return C(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<C(e)},_.$g=function(e,t,n){return w.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!w.u(t)||t,u=w.p(e),p=function(e,t){var i=w.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return w.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=w.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[w.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=w.p(u),h=function(e){var t=C(p);return w.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return w.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=w.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return w.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return w.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return w.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return w.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return w.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return w.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return w.s(t.$s,2,`0`);case`SSS`:return w.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=w.p(f),_=C(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return w.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:w.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=S(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return w.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),E=T.prototype;return C.prototype=E,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){E[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),C.extend=function(e,t){return e.$i||=(e(t,T,C),!0),C},C.locale=S,C.isDayjs=ee,C.unix=function(e){return C(1e3*e)},C.en=b[y],C.Ls=b,C.p={},C}))})),pe=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){"use strict";return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`YYYY-MM-DDTHH:mm:ssZ`).replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),me=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localizedFormat=r()})(e,(function(){"use strict";var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`};return function(t,n,r){var i=n.prototype,a=i.format;r.en.formats=e,i.format=function(t){t===void 0&&(t=`YYYY-MM-DDTHH:mm:ssZ`);var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var a=i&&i.toUpperCase();return r||n[i]||e[i]||n[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,n===void 0?{}:n);return a.call(this,r)}}}))})),he=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_timezone=r()})(e,(function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(n,r,i){var a,o=function(e,n,r){r===void 0&&(r={});var i=new Date(e);return function(e,n){n===void 0&&(n={});var r=n.timeZoneName||`short`,i=e+`|`+r,a=t[i];return a||(a=new Intl.DateTimeFormat(`en-US`,{hour12:!1,timeZone:e,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,timeZoneName:r}),t[i]=a),a}(n,r).formatToParts(i)},s=function(t,n){for(var r=o(t,n),a=[],s=0;s<r.length;s+=1){var c=r[s],l=c.type,u=c.value,d=e[l];d>=0&&(a[d]=parseInt(u,10))}var f=a[3],p=f===24?0:f,m=a[0]+`-`+a[1]+`-`+a[2]+` `+p+`:`+a[4]+`:`+a[5]+`:000`,h=+t;return(i.utc(m).valueOf()-(h-=h%1e3))/6e4},c=r.prototype;c.tz=function(e,t){e===void 0&&(e=a);var n,r=this.utcOffset(),o=this.toDate(),s=o.toLocaleString(`en-US`,{timeZone:e}),c=Math.round((o-new Date(s))/1e3/60),l=15*-Math.round(o.getTimezoneOffset()/15)-c;if(!Number(l))n=this.utcOffset(0,t);else if(n=i(s,{locale:this.$L}).$set(`millisecond`,this.$ms).utcOffset(l,!0),t){var u=n.utcOffset();n=n.add(r-u,`minute`)}return n.$x.$timezone=e,n},c.offsetName=function(e){var t=this.$x.$timezone||i.tz.guess(),n=o(this.valueOf(),t,{timeZoneName:e}).find((function(e){return e.type.toLowerCase()===`timezonename`}));return n&&n.value};var l=c.startOf;c.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return l.call(this,e,t);var n=i(this.format(`YYYY-MM-DD HH:mm:ss:SSS`),{locale:this.$L});return l.call(n,e,t).tz(this.$x.$timezone,!0)},i.tz=function(e,t,n){var r=n&&t,o=n||t||a,c=s(+i(),o);if(typeof e!=`string`)return i(e).tz(o);var l=function(e,t,n){var r=e-60*t*1e3,i=s(r,n);if(t===i)return[r,t];var a=s(r-=60*(i-t)*1e3,n);return i===a?[r,i]:[e-60*Math.min(i,a)*1e3,Math.max(i,a)]}(i.utc(e,r).valueOf(),c,o),u=l[0],d=l[1],f=i(u).utcOffset(d);return f.$x.$timezone=o,f},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(e){a=e}}}))})),ge=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_utc=r()})(e,(function(){"use strict";var e=`minute`,t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,a){var o=i.prototype;a.utc=function(e){return new i({date:e,utc:!0,args:arguments})},o.utc=function(t){var n=a(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},o.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var s=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var c=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else c.call(this)};var l=o.utcOffset;o.utcOffset=function(r,i){var a=this.$utils().u;if(a(r))return this.$u?0:a(this.$offset)?l.call(this):this.$offset;if(typeof r==`string`&&(r=function(e){e===void 0&&(e=``);var r=e.match(t);if(!r)return null;var i=(``+r[0]).match(n)||[`-`,0,0],a=i[0],o=60*i[1]+ +i[2];return o===0?0:a===`+`?o:-o}(r),r===null))return this;var o=Math.abs(r)<=16?60*r:r,s=this;if(i)return s.$offset=o,s.$u=r===0,s;if(r!==0){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(o+c,e)).$offset=o,s.$x.$localOffset=c}else s=this.utc();return s};var u=o.format;o.format=function(e){var t=e||(this.$u?`YYYY-MM-DDTHH:mm:ss[Z]`:``);return u.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var d=o.toDate;o.toDate=function(e){return e===`s`&&this.$offset?a(this.format(`YYYY-MM-DD HH:mm:ss:SSS`)).toDate():d.call(this)};var f=o.diff;o.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),i=a(e).local();return f.call(r,i,t,n)}}}))})),_e=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(fe()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_de=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={s:`ein paar Sekunden`,m:[`eine Minute`,`einer Minute`],mm:`%d Minuten`,h:[`eine Stunde`,`einer Stunde`],hh:`%d Stunden`,d:[`ein Tag`,`einem Tag`],dd:[`%d Tage`,`%d Tagen`],M:[`ein Monat`,`einem Monat`],MM:[`%d Monate`,`%d Monaten`],y:[`ein Jahr`,`einem Jahr`],yy:[`%d Jahre`,`%d Jahren`]};function i(e,t,n){var i=r[n];return Array.isArray(i)&&(i=i[+!t]),i.replace(`%d`,e)}var a={name:`de`,weekdays:`Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag`.split(`_`),weekdaysShort:`So._Mo._Di._Mi._Do._Fr._Sa.`.split(`_`),weekdaysMin:`So_Mo_Di_Mi_Do_Fr_Sa`.split(`_`),months:`Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember`.split(`_`),monthsShort:`Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.`.split(`_`),ordinal:function(e){return e+`.`},weekStart:1,yearStart:4,formats:{LTS:`HH:mm:ss`,LT:`HH:mm`,L:`DD.MM.YYYY`,LL:`D. MMMM YYYY`,LLL:`D. MMMM YYYY HH:mm`,LLLL:`dddd, D. MMMM YYYY HH:mm`},relativeTime:{future:`in %s`,past:`vor %s`,s:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i}};return n.default.locale(a,null,!0),a}))})),ve=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(fe()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_fr=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`fr`,weekdays:`dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi`.split(`_`),weekdaysShort:`dim._lun._mar._mer._jeu._ven._sam.`.split(`_`),weekdaysMin:`di_lu_ma_me_je_ve_sa`.split(`_`),months:`janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre`.split(`_`),monthsShort:`janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.`.split(`_`),weekStart:1,yearStart:4,formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY HH:mm`,LLLL:`dddd D MMMM YYYY HH:mm`},relativeTime:{future:`dans %s`,past:`il y a %s`,s:`quelques secondes`,m:`une minute`,mm:`%d minutes`,h:`une heure`,hh:`%d heures`,d:`un jour`,dd:`%d jours`,M:`un mois`,MM:`%d mois`,y:`un an`,yy:`%d ans`},ordinal:function(e){return``+e+(e===1?`er`:``)}};return n.default.locale(r,null,!0),r}))})),ye=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_en=r()})(e,(function(){"use strict";return{name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}}}))})),be=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(fe()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_es=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`es`,monthsShort:`ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic`.split(`_`),weekdays:`domingo_lunes_martes_miércoles_jueves_viernes_sábado`.split(`_`),weekdaysShort:`dom._lun._mar._mié._jue._vie._sáb.`.split(`_`),weekdaysMin:`do_lu_ma_mi_ju_vi_sá`.split(`_`),months:`enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre`.split(`_`),weekStart:1,formats:{LT:`H:mm`,LTS:`H:mm:ss`,L:`DD/MM/YYYY`,LL:`D [de] MMMM [de] YYYY`,LLL:`D [de] MMMM [de] YYYY H:mm`,LLLL:`dddd, D [de] MMMM [de] YYYY H:mm`},relativeTime:{future:`en %s`,past:`hace %s`,s:`unos segundos`,m:`un minuto`,mm:`%d minutos`,h:`una hora`,hh:`%d horas`,d:`un día`,dd:`%d días`,M:`un mes`,MM:`%d meses`,y:`un año`,yy:`%d años`},ordinal:function(e){return e+`º`}};return n.default.locale(r,null,!0),r}))})),xe=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(fe()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_it=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`it`,weekdays:`domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato`.split(`_`),weekdaysShort:`dom_lun_mar_mer_gio_ven_sab`.split(`_`),weekdaysMin:`do_lu_ma_me_gi_ve_sa`.split(`_`),months:`gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre`.split(`_`),weekStart:1,monthsShort:`gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic`.split(`_`),formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY HH:mm`,LLLL:`dddd D MMMM YYYY HH:mm`},relativeTime:{future:`tra %s`,past:`%s fa`,s:`qualche secondo`,m:`un minuto`,mm:`%d minuti`,h:`un' ora`,hh:`%d ore`,d:`un giorno`,dd:`%d giorni`,M:`un mese`,MM:`%d mesi`,y:`un anno`,yy:`%d anni`},ordinal:function(e){return e+`º`}};return n.default.locale(r,null,!0),r}))})),Se=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(fe()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_pt=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`pt`,weekdays:`domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado`.split(`_`),weekdaysShort:`dom_seg_ter_qua_qui_sex_sab`.split(`_`),weekdaysMin:`Do_2ª_3ª_4ª_5ª_6ª_Sa`.split(`_`),months:`janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro`.split(`_`),monthsShort:`jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez`.split(`_`),ordinal:function(e){return e+`º`},weekStart:1,yearStart:4,formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D [de] MMMM [de] YYYY`,LLL:`D [de] MMMM [de] YYYY [às] HH:mm`,LLLL:`dddd, D [de] MMMM [de] YYYY [às] HH:mm`},relativeTime:{future:`em %s`,past:`há %s`,s:`alguns segundos`,m:`um minuto`,mm:`%d minutos`,h:`uma hora`,hh:`%d horas`,d:`um dia`,dd:`%d dias`,M:`um mês`,MM:`%d meses`,y:`um ano`,yy:`%d anos`}};return n.default.locale(r,null,!0),r}))})),Ce=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(fe()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_nl=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`nl`,weekdays:`zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag`.split(`_`),weekdaysShort:`zo._ma._di._wo._do._vr._za.`.split(`_`),weekdaysMin:`zo_ma_di_wo_do_vr_za`.split(`_`),months:`januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december`.split(`_`),monthsShort:`jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec`.split(`_`),ordinal:function(e){return`[`+e+(e===1||e===8||e>=20?`ste`:`de`)+`]`},weekStart:1,yearStart:4,formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD-MM-YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY HH:mm`,LLLL:`dddd D MMMM YYYY HH:mm`},relativeTime:{future:`over %s`,past:`%s geleden`,s:`een paar seconden`,m:`een minuut`,mm:`%d minuten`,h:`een uur`,hh:`%d uur`,d:`een dag`,dd:`%d dagen`,M:`een maand`,MM:`%d maanden`,y:`een jaar`,yy:`%d jaar`}};return n.default.locale(r,null,!0),r}))})),we=u(fe()),Te=u(pe()),Ee=u(me()),De=u(he()),Oe=u(ge());_e(),ve(),ye(),be(),xe(),Se(),Ce(),we.default.extend(Oe.default),we.default.extend(De.default),we.default.extend(Ee.default),we.default.extend(Te.default),s(((e,t)=>{(function(){var n,r=`Expected a function`,i=`__lodash_hash_undefined__`,a=`__lodash_placeholder__`,o=1,s=2,c=8,l=16,u=32,d=64,f=128,p=256,m=512,h=1/0,g=9007199254740991,_=17976931348623157e292,v=NaN,y=4294967295,b=y-1,x=y>>>1,ee=[[`ary`,f],[`bind`,o],[`bindKey`,s],[`curry`,c],[`curryRight`,l],[`flip`,m],[`partial`,u],[`partialRight`,d],[`rearg`,p]],S=`[object Arguments]`,C=`[object Array]`,w=`[object AsyncFunction]`,T=`[object Boolean]`,E=`[object Date]`,te=`[object DOMException]`,ne=`[object Error]`,D=`[object Function]`,re=`[object GeneratorFunction]`,ie=`[object Map]`,ae=`[object Number]`,oe=`[object Null]`,se=`[object Object]`,ce=`[object Promise]`,le=`[object Proxy]`,ue=`[object RegExp]`,de=`[object Set]`,fe=`[object String]`,pe=`[object Symbol]`,me=`[object Undefined]`,he=`[object WeakMap]`,ge=`[object WeakSet]`,_e=`[object ArrayBuffer]`,ve=`[object DataView]`,ye=`[object Float32Array]`,be=`[object Float64Array]`,xe=`[object Int8Array]`,Se=`[object Int16Array]`,Ce=`[object Int32Array]`,we=`[object Uint8Array]`,Te=`[object Uint8ClampedArray]`,Ee=`[object Uint16Array]`,De=`[object Uint32Array]`,Oe=/\b__p \+= '';/g,ke=/\b(__p \+=) '' \+/g,Ae=/(__e\(.*?\)|\b__t\)) \+\n'';/g,je=/&(?:amp|lt|gt|quot|#39);/g,Me=/[&<>"']/g,Ne=RegExp(je.source),Pe=RegExp(Me.source),Fe=/<%-([\s\S]+?)%>/g,Ie=/<%([\s\S]+?)%>/g,Le=/<%=([\s\S]+?)%>/g,Re=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ze=/^\w*$/,Be=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ve=/[\\^$.*+?()[\]{}|]/g,He=RegExp(Ve.source),Ue=/^\s+/,O=/\s/,We=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ge=/\{\n\/\* \[wrapped with (.+)\] \*/,Ke=/,? & /,qe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Je=/[()=,{}\[\]\/\s]/,Ye=/\\(\\)?/g,Xe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ze=/\w*$/,Qe=/^[-+]0x[0-9a-f]+$/i,k=/^0b[01]+$/i,$e=/^\[object .+?Constructor\]$/,et=/^0o[0-7]+$/i,tt=/^(?:0|[1-9]\d*)$/,nt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rt=/($^)/,it=/['\n\r\u2028\u2029\\]/g,at=`\\ud800-\\udfff`,ot=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,st=`\\u2700-\\u27bf`,A=`a-z\\xdf-\\xf6\\xf8-\\xff`,ct=`\\xac\\xb1\\xd7\\xf7`,lt=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,ut=`\\u2000-\\u206f`,j=` \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,M=`A-Z\\xc0-\\xd6\\xd8-\\xde`,dt=`\\ufe0e\\ufe0f`,ft=ct+lt+ut+j,pt=`['’]`,N=`[`+at+`]`,mt=`[`+ft+`]`,P=`[`+ot+`]`,ht=`\\d+`,gt=`[`+st+`]`,_t=`[`+A+`]`,vt=`[^`+at+ft+ht+st+A+M+`]`,yt=`\\ud83c[\\udffb-\\udfff]`,bt=`(?:`+P+`|`+yt+`)`,xt=`[^`+at+`]`,St=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Ct=`[\\ud800-\\udbff][\\udc00-\\udfff]`,wt=`[`+M+`]`,Tt=`\\u200d`,Et=`(?:`+_t+`|`+vt+`)`,Dt=`(?:`+wt+`|`+vt+`)`,Ot=`(?:`+pt+`(?:d|ll|m|re|s|t|ve))?`,kt=`(?:`+pt+`(?:D|LL|M|RE|S|T|VE))?`,At=bt+`?`,jt=`[`+dt+`]?`,Mt=`(?:`+Tt+`(?:`+[xt,St,Ct].join(`|`)+`)`+jt+At+`)*`,Nt=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,Pt=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,Ft=jt+At+Mt,It=`(?:`+[gt,St,Ct].join(`|`)+`)`+Ft,Lt=`(?:`+[xt+P+`?`,P,St,Ct,N].join(`|`)+`)`,Rt=RegExp(pt,`g`),zt=RegExp(P,`g`),Bt=RegExp(yt+`(?=`+yt+`)|`+Lt+Ft,`g`),Vt=RegExp([wt+`?`+_t+`+`+Ot+`(?=`+[mt,wt,`$`].join(`|`)+`)`,Dt+`+`+kt+`(?=`+[mt,wt+Et,`$`].join(`|`)+`)`,wt+`?`+Et+`+`+Ot,wt+`+`+kt,Pt,Nt,ht,It].join(`|`),`g`),Ht=RegExp(`[`+Tt+at+ot+dt+`]`),F=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ut=`Array.Buffer.DataView.Date.Error.Float32Array.Float64Array.Function.Int8Array.Int16Array.Int32Array.Map.Math.Object.Promise.RegExp.Set.String.Symbol.TypeError.Uint8Array.Uint8ClampedArray.Uint16Array.Uint32Array.WeakMap._.clearTimeout.isFinite.parseInt.setTimeout`.split(`.`),Wt=-1,I={};I[ye]=I[be]=I[xe]=I[Se]=I[Ce]=I[we]=I[Te]=I[Ee]=I[De]=!0,I[S]=I[C]=I[_e]=I[T]=I[ve]=I[E]=I[ne]=I[D]=I[ie]=I[ae]=I[se]=I[ue]=I[de]=I[fe]=I[he]=!1;var L={};L[S]=L[C]=L[_e]=L[ve]=L[T]=L[E]=L[ye]=L[be]=L[xe]=L[Se]=L[Ce]=L[ie]=L[ae]=L[se]=L[ue]=L[de]=L[fe]=L[pe]=L[we]=L[Te]=L[Ee]=L[De]=!0,L[ne]=L[D]=L[he]=!1;var R={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`s`},Gt={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},Kt={"&":`&`,"<":`<`,">":`>`,""":`"`,"'":`'`},qt={"\\":`\\`,"'":`'`,"\n":`n`,"\r":`r`,"\u2028":`u2028`,"\u2029":`u2029`},Jt=parseFloat,Yt=parseInt,Xt=typeof global==`object`&&global&&global.Object===Object&&global,Zt=typeof self==`object`&&self&&self.Object===Object&&self,z=Xt||Zt||Function(`return this`)(),Qt=typeof e==`object`&&e&&!e.nodeType&&e,$t=Qt&&typeof t==`object`&&t&&!t.nodeType&&t,en=$t&&$t.exports===Qt,tn=en&&Xt.process,B=function(){try{return $t&&$t.require&&$t.require(`util`).types||tn&&tn.binding&&tn.binding(`util`)}catch{}}(),nn=B&&B.isArrayBuffer,rn=B&&B.isDate,an=B&&B.isMap,on=B&&B.isRegExp,sn=B&&B.isSet,cn=B&&B.isTypedArray;function ln(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function un(e,t,n,r){for(var i=-1,a=e==null?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function dn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function fn(e,t){for(var n=e==null?0:e.length;n--&&t(e[n],n,e)!==!1;);return e}function pn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function mn(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function hn(e,t){return!!(e!=null&&e.length)&&En(e,t,0)>-1}function gn(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function V(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function _n(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function vn(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function yn(e,t,n,r){var i=e==null?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function bn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var xn=An(`length`);function Sn(e){return e.split(``)}function Cn(e){return e.match(qe)||[]}function wn(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function Tn(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function En(e,t,n){return t===t?nr(e,t,n):Tn(e,On,n)}function Dn(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function On(e){return e!==e}function kn(e,t){var n=e==null?0:e.length;return n?Pn(e,t)/n:v}function An(e){return function(t){return t==null?n:t[e]}}function jn(e){return function(t){return e==null?n:e[t]}}function Mn(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function Nn(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function Pn(e,t){for(var r,i=-1,a=e.length;++i<a;){var o=t(e[i]);o!==n&&(r=r===n?o:r+o)}return r}function Fn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function In(e,t){return V(t,function(t){return[t,e[t]]})}function Ln(e){return e&&e.slice(0,or(e)+1).replace(Ue,``)}function Rn(e){return function(t){return e(t)}}function zn(e,t){return V(t,function(t){return e[t]})}function Bn(e,t){return e.has(t)}function Vn(e,t){for(var n=-1,r=e.length;++n<r&&En(t,e[n],0)>-1;);return n}function Hn(e,t){for(var n=e.length;n--&&En(t,e[n],0)>-1;);return n}function Un(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Wn=jn(R),Gn=jn(Gt);function Kn(e){return`\\`+qt[e]}function qn(e,t){return e==null?n:e[t]}function Jn(e){return Ht.test(e)}function Yn(e){return F.test(e)}function Xn(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function Zn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Qn(e,t){return function(n){return e(t(n))}}function $n(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];(s===t||s===a)&&(e[n]=a,o[i++]=n)}return o}function er(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function tr(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function nr(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function rr(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}function ir(e){return Jn(e)?cr(e):xn(e)}function ar(e){return Jn(e)?lr(e):Sn(e)}function or(e){for(var t=e.length;t--&&O.test(e.charAt(t)););return t}var sr=jn(Kt);function cr(e){for(var t=Bt.lastIndex=0;Bt.test(e);)++t;return t}function lr(e){return e.match(Bt)||[]}function ur(e){return e.match(Vt)||[]}var dr=(function e(t){t=t==null?z:dr.defaults(z.Object(),t,dr.pick(z,Ut));var O=t.Array,qe=t.Date,at=t.Error,ot=t.Function,st=t.Math,A=t.Object,ct=t.RegExp,lt=t.String,ut=t.TypeError,j=O.prototype,M=ot.prototype,dt=A.prototype,ft=t[`__core-js_shared__`],pt=M.toString,N=dt.hasOwnProperty,mt=0,P=function(){var e=/[^.]+$/.exec(ft&&ft.keys&&ft.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),ht=dt.toString,gt=pt.call(A),_t=z._,vt=ct(`^`+pt.call(N).replace(Ve,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),yt=en?t.Buffer:n,bt=t.Symbol,xt=t.Uint8Array,St=yt?yt.allocUnsafe:n,Ct=Qn(A.getPrototypeOf,A),wt=A.create,Tt=dt.propertyIsEnumerable,Et=j.splice,Dt=bt?bt.isConcatSpreadable:n,Ot=bt?bt.iterator:n,kt=bt?bt.toStringTag:n,At=function(){try{var e=Io(A,`defineProperty`);return e({},``,{}),e}catch{}}(),jt=t.clearTimeout!==z.clearTimeout&&t.clearTimeout,Mt=qe&&qe.now!==z.Date.now&&qe.now,Nt=t.setTimeout!==z.setTimeout&&t.setTimeout,Pt=st.ceil,Ft=st.floor,It=A.getOwnPropertySymbols,Lt=yt?yt.isBuffer:n,Bt=t.isFinite,Vt=j.join,Ht=Qn(A.keys,A),F=st.max,R=st.min,Gt=qe.now,Kt=t.parseInt,qt=st.random,Xt=j.reverse,Zt=Io(t,`DataView`),Qt=Io(t,`Map`),$t=Io(t,`Promise`),tn=Io(t,`Set`),B=Io(t,`WeakMap`),xn=Io(A,`create`),Sn=B&&new B,jn={},nr=xs(Zt),cr=xs(Qt),lr=xs($t),fr=xs(tn),pr=xs(B),mr=bt?bt.prototype:n,hr=mr?mr.valueOf:n,gr=mr?mr.toString:n;function H(e){if(X(e)&&!q(e)&&!(e instanceof U)){if(e instanceof yr)return e;if(N.call(e,`__wrapped__`))return Cs(e)}return new yr(e)}var _r=function(){function e(){}return function(t){if(!Y(t))return{};if(wt)return wt(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function vr(){}function yr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}H.templateSettings={escape:Fe,evaluate:Ie,interpolate:Le,variable:``,imports:{_:H}},H.prototype=vr.prototype,H.prototype.constructor=H,yr.prototype=_r(vr.prototype),yr.prototype.constructor=yr;function U(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=y,this.__views__=[]}function br(){var e=new U(this.__wrapped__);return e.__actions__=qa(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=qa(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=qa(this.__views__),e}function xr(){if(this.__filtered__){var e=new U(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Sr(){var e=this.__wrapped__.value(),t=this.__dir__,n=q(e),r=t<0,i=n?e.length:0,a=Vo(0,i,this.__views__),o=a.start,s=a.end,c=s-o,l=r?s:o-1,u=this.__iteratees__,d=u.length,f=0,p=R(c,this.__takeCount__);if(!n||!r&&i==c&&p==c)return Oa(e,this.__actions__);var m=[];outer:for(;c--&&f<p;){l+=t;for(var h=-1,g=e[l];++h<d;){var _=u[h],v=_.iteratee,y=_.type,b=v(g);if(y==2)g=b;else if(!b){if(y==1)continue outer;break outer}}m[f++]=g}return m}U.prototype=_r(vr.prototype),U.prototype.constructor=U;function Cr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function wr(){this.__data__=xn?xn(null):{},this.size=0}function Tr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function Er(e){var t=this.__data__;if(xn){var r=t[e];return r===i?n:r}return N.call(t,e)?t[e]:n}function Dr(e){var t=this.__data__;return xn?t[e]!==n:N.call(t,e)}function Or(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=xn&&t===n?i:t,this}Cr.prototype.clear=wr,Cr.prototype.delete=Tr,Cr.prototype.get=Er,Cr.prototype.has=Dr,Cr.prototype.set=Or;function kr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ar(){this.__data__=[],this.size=0}function jr(e){var t=this.__data__,n=ni(t,e);return n<0?!1:(n==t.length-1?t.pop():Et.call(t,n,1),--this.size,!0)}function Mr(e){var t=this.__data__,r=ni(t,e);return r<0?n:t[r][1]}function Nr(e){return ni(this.__data__,e)>-1}function Pr(e,t){var n=this.__data__,r=ni(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}kr.prototype.clear=Ar,kr.prototype.delete=jr,kr.prototype.get=Mr,kr.prototype.has=Nr,kr.prototype.set=Pr;function Fr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ir(){this.size=0,this.__data__={hash:new Cr,map:new(Qt||kr),string:new Cr}}function Lr(e){var t=Po(this,e).delete(e);return this.size-=+!!t,t}function Rr(e){return Po(this,e).get(e)}function zr(e){return Po(this,e).has(e)}function Br(e,t){var n=Po(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}Fr.prototype.clear=Ir,Fr.prototype.delete=Lr,Fr.prototype.get=Rr,Fr.prototype.has=zr,Fr.prototype.set=Br;function Vr(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Fr;++t<n;)this.add(e[t])}function Hr(e){return this.__data__.set(e,i),this}function Ur(e){return this.__data__.has(e)}Vr.prototype.add=Vr.prototype.push=Hr,Vr.prototype.has=Ur;function Wr(e){var t=this.__data__=new kr(e);this.size=t.size}function Gr(){this.__data__=new kr,this.size=0}function Kr(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function qr(e){return this.__data__.get(e)}function Jr(e){return this.__data__.has(e)}function Yr(e,t){var n=this.__data__;if(n instanceof kr){var r=n.__data__;if(!Qt||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Fr(r)}return n.set(e,t),this.size=n.size,this}Wr.prototype.clear=Gr,Wr.prototype.delete=Kr,Wr.prototype.get=qr,Wr.prototype.has=Jr,Wr.prototype.set=Yr;function Xr(e,t){var n=q(e),r=!n&&Xl(e),i=!n&&!r&&eu(e),a=!n&&!r&&!i&&Tu(e),o=n||r||i||a,s=o?Fn(e.length,lt):[],c=s.length;for(var l in e)(t||N.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Yo(l,c)))&&s.push(l);return s}function Zr(e){var t=e.length;return t?e[ca(0,t-1)]:n}function Qr(e,t){return vs(qa(e),ci(t,0,e.length))}function $r(e){return vs(qa(e))}function ei(e,t,r){(r!==n&&!ql(e[t],r)||r===n&&!(t in e))&&oi(e,t,r)}function ti(e,t,r){var i=e[t];(!(N.call(e,t)&&ql(i,r))||r===n&&!(t in e))&&oi(e,t,r)}function ni(e,t){for(var n=e.length;n--;)if(ql(e[n][0],t))return n;return-1}function ri(e,t,n,r){return mi(e,function(e,i,a){t(r,e,n(e),a)}),r}function ii(e,t){return e&&Ja(t,$(t),e)}function ai(e,t){return e&&Ja(t,ad(t),e)}function oi(e,t,n){t==`__proto__`&&At?At(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function si(e,t){for(var r=-1,i=t.length,a=O(i),o=e==null;++r<i;)a[r]=o?n:$u(e,t[r]);return a}function ci(e,t,r){return e===e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function li(e,t,r,i,a,o){var s,c=t&1,l=t&2,u=t&4;if(r&&(s=a?r(e,i,a,o):r(e)),s!==n)return s;if(!Y(e))return e;var d=q(e);if(d){if(s=Wo(e),!c)return qa(e,s)}else{var f=Bo(e),p=f==D||f==re;if(eu(e))return La(e,c);if(f==se||f==S||p&&!a){if(s=l||p?{}:Go(e),!c)return l?Xa(e,ai(s,e)):Ya(e,ii(s,e))}else{if(!L[f])return a?e:{};s=Ko(e,f,c)}}o||=new Wr;var m=o.get(e);if(m)return m;o.set(e,s),Su(e)?e.forEach(function(n){s.add(li(n,t,r,n,e,o))}):du(e)&&e.forEach(function(n,i){s.set(i,li(n,t,r,i,e,o))});var h=d?n:(u?l?Ao:ko:l?ad:$)(e);return dn(h||e,function(n,i){h&&(i=n,n=e[i]),ti(s,i,li(n,t,r,i,e,o))}),s}function ui(e){var t=$(e);return function(n){return di(n,e,t)}}function di(e,t,r){var i=r.length;if(e==null)return!i;for(e=A(e);i--;){var a=r[i],o=t[a],s=e[a];if(s===n&&!(a in e)||!o(s))return!1}return!0}function fi(e,t,i){if(typeof e!=`function`)throw new ut(r);return ms(function(){e.apply(n,i)},t)}function pi(e,t,n,r){var i=-1,a=hn,o=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=V(t,Rn(n))),r?(a=gn,o=!1):t.length>=200&&(a=Bn,o=!1,t=new Vr(t));outer:for(;++i<s;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,o&&d===d){for(var f=l;f--;)if(t[f]===d)continue outer;c.push(u)}else a(t,d,r)||c.push(u)}return c}var mi=$a(Si),hi=$a(Ci,!0);function gi(e,t){var n=!0;return mi(e,function(e,r,i){return n=!!t(e,r,i),n}),n}function _i(e,t,r){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(s!=null&&(c===n?s===s&&!wu(s):r(s,c)))var c=s,l=o}return l}function vi(e,t,r,i){var a=e.length;for(r=Z(r),r<0&&(r=-r>a?0:a+r),i=i===n||i>a?a:Z(i),i<0&&(i+=a),i=r>i?0:Nu(i);r<i;)e[r++]=t;return e}function yi(e,t){var n=[];return mi(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function W(e,t,n,r,i){var a=-1,o=e.length;for(n||=Jo,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?W(s,t-1,n,r,i):_n(i,s):r||(i[i.length]=s)}return i}var bi=eo(),xi=eo(!0);function Si(e,t){return e&&bi(e,t,$)}function Ci(e,t){return e&&xi(e,t,$)}function wi(e,t){return mn(t,function(t){return cu(e[t])})}function Ti(e,t){t=Na(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[bs(t[r++])];return r&&r==i?e:n}function Ei(e,t,n){var r=t(e);return q(e)?r:_n(r,n(e))}function Di(e){return e==null?e===n?me:oe:kt&&kt in A(e)?Lo(e):cs(e)}function Oi(e,t){return e>t}function ki(e,t){return e!=null&&N.call(e,t)}function Ai(e,t){return e!=null&&t in A(e)}function ji(e,t,n){return e>=R(t,n)&&e<F(t,n)}function Mi(e,t,r){for(var i=r?gn:hn,a=e[0].length,o=e.length,s=o,c=O(o),l=1/0,u=[];s--;){var d=e[s];s&&t&&(d=V(d,Rn(t))),l=R(d.length,l),c[s]=!r&&(t||a>=120&&d.length>=120)?new Vr(s&&d):n}d=e[0];var f=-1,p=c[0];outer:for(;++f<a&&u.length<l;){var m=d[f],h=t?t(m):m;if(m=r||m!==0?m:0,!(p?Bn(p,h):i(u,h,r))){for(s=o;--s;){var g=c[s];if(!(g?Bn(g,h):i(e[s],h,r)))continue outer}p&&p.push(h),u.push(m)}}return u}function Ni(e,t,n,r){return Si(e,function(e,i,a){t(r,n(e),i,a)}),r}function Pi(e,t,r){t=Na(t,e),e=us(e,t);var i=e==null?e:e[bs(Js(t))];return i==null?n:ln(i,e,r)}function Fi(e){return X(e)&&Di(e)==S}function Ii(e){return X(e)&&Di(e)==_e}function Li(e){return X(e)&&Di(e)==E}function Ri(e,t,n,r,i){return e===t?!0:e==null||t==null||!X(e)&&!X(t)?e!==e&&t!==t:zi(e,t,n,r,Ri,i)}function zi(e,t,n,r,i,a){var o=q(e),s=q(t),c=o?C:Bo(e),l=s?C:Bo(t);c=c==S?se:c,l=l==S?se:l;var u=c==se,d=l==se,f=c==l;if(f&&eu(e)){if(!eu(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new Wr,o||Tu(e)?To(e,t,n,r,i,a):Eo(e,t,c,n,r,i,a);if(!(n&1)){var p=u&&N.call(e,`__wrapped__`),m=d&&N.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new Wr,i(h,g,n,r,a)}}return f?(a||=new Wr,Do(e,t,n,r,i,a)):!1}function Bi(e){return X(e)&&Bo(e)==ie}function Vi(e,t,r,i){var a=r.length,o=a,s=!i;if(e==null)return!o;for(e=A(e);a--;){var c=r[a];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<o;){c=r[a];var l=c[0],u=e[l],d=c[1];if(s&&c[2]){if(u===n&&!(l in e))return!1}else{var f=new Wr;if(i)var p=i(u,d,l,e,t,f);if(!(p===n?Ri(d,u,3,i,f):p))return!1}}return!0}function Hi(e){return!Y(e)||es(e)?!1:(cu(e)?vt:$e).test(xs(e))}function Ui(e){return X(e)&&Di(e)==ue}function Wi(e){return X(e)&&Bo(e)==de}function Gi(e){return X(e)&&uu(e.length)&&!!I[Di(e)]}function Ki(e){return typeof e==`function`?e:e==null?pf:typeof e==`object`?q(e)?Qi(e[0],e[1]):Zi(e):Ef(e)}function qi(e){if(!ns(e))return Ht(e);var t=[];for(var n in A(e))N.call(e,n)&&n!=`constructor`&&t.push(n);return t}function Ji(e){if(!Y(e))return ss(e);var t=ns(e),n=[];for(var r in e)r==`constructor`&&(t||!N.call(e,r))||n.push(r);return n}function Yi(e,t){return e<t}function Xi(e,t){var n=-1,r=Ql(e)?O(e.length):[];return mi(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function Zi(e){var t=Fo(e);return t.length==1&&t[0][2]?is(t[0][0],t[0][1]):function(n){return n===e||Vi(n,e,t)}}function Qi(e,t){return Zo(e)&&rs(t)?is(bs(e),t):function(r){var i=$u(r,e);return i===n&&i===t?td(r,e):Ri(t,i,3)}}function $i(e,t,r,i,a){e!==t&&bi(t,function(o,s){if(a||=new Wr,Y(o))ea(e,t,s,r,$i,i,a);else{var c=i?i(fs(e,s),o,s+``,e,t,a):n;c===n&&(c=o),ei(e,s,c)}},ad)}function ea(e,t,r,i,a,o,s){var c=fs(e,r),l=fs(t,r),u=s.get(l);if(u){ei(e,r,u);return}var d=o?o(c,l,r+``,e,t,s):n,f=d===n;if(f){var p=q(l),m=!p&&eu(l),h=!p&&!m&&Tu(l);d=l,p||m||h?q(c)?d=c:J(c)?d=qa(c):m?(f=!1,d=La(l,!0)):h?(f=!1,d=Ha(l,!0)):d=[]:yu(l)||Xl(l)?(d=c,Xl(c)?d=Fu(c):(!Y(c)||cu(c))&&(d=Go(l))):f=!1}f&&(s.set(l,d),a(d,l,i,o,s),s.delete(l)),ei(e,r,d)}function ta(e,t){var r=e.length;if(r)return t+=t<0?r:0,Yo(t,r)?e[t]:n}function na(e,t,n){t=t.length?V(t,function(e){return q(e)?function(t){return Ti(t,e.length===1?e[0]:e)}:e}):[pf];var r=-1;return t=V(t,Rn(K())),Nn(Xi(e,function(e,n,i){return{criteria:V(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return Wa(e,t,n)})}function ra(e,t){return ia(e,t,function(t,n){return td(e,n)})}function ia(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=Ti(e,o);n(s,o)&&pa(a,Na(o,e),s)}return a}function aa(e){return function(t){return Ti(t,e)}}function oa(e,t,n,r){var i=r?Dn:En,a=-1,o=t.length,s=e;for(e===t&&(t=qa(t)),n&&(s=V(e,Rn(n)));++a<o;)for(var c=0,l=t[a],u=n?n(l):l;(c=i(s,u,c,r))>-1;)s!==e&&Et.call(s,c,1),Et.call(e,c,1);return e}function sa(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;Yo(i)?Et.call(e,i,1):Ta(e,i)}}return e}function ca(e,t){return e+Ft(qt()*(t-e+1))}function la(e,t,n,r){for(var i=-1,a=F(Pt((t-e)/(n||1)),0),o=O(a);a--;)o[r?a:++i]=e,e+=n;return o}function ua(e,t){var n=``;if(!e||t<1||t>g)return n;do t%2&&(n+=e),t=Ft(t/2),t&&(e+=e);while(t);return n}function G(e,t){return hs(ls(e,t,pf),e+``)}function da(e){return Zr(Cd(e))}function fa(e,t){var n=Cd(e);return vs(n,ci(t,0,n.length))}function pa(e,t,r,i){if(!Y(e))return e;t=Na(t,e);for(var a=-1,o=t.length,s=o-1,c=e;c!=null&&++a<o;){var l=bs(t[a]),u=r;if(l===`__proto__`||l===`constructor`||l===`prototype`)return e;if(a!=s){var d=c[l];u=i?i(d,l,c):n,u===n&&(u=Y(d)?d:Yo(t[a+1])?[]:{})}ti(c,l,u),c=c[l]}return e}var ma=Sn?function(e,t){return Sn.set(e,t),e}:pf,ha=At?function(e,t){return At(e,`toString`,{configurable:!0,enumerable:!1,value:lf(t),writable:!0})}:pf;function ga(e){return vs(Cd(e))}function _a(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=O(i);++r<i;)a[r]=e[r+t];return a}function va(e,t){var n;return mi(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function ya(e,t,n){var r=0,i=e==null?r:e.length;if(typeof t==`number`&&t===t&&i<=x){for(;r<i;){var a=r+i>>>1,o=e[a];o!==null&&!wu(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return ba(e,t,pf,n)}function ba(e,t,r,i){var a=0,o=e==null?0:e.length;if(o===0)return 0;t=r(t);for(var s=t!==t,c=t===null,l=wu(t),u=t===n;a<o;){var d=Ft((a+o)/2),f=r(e[d]),p=f!==n,m=f===null,h=f===f,g=wu(f);if(s)var _=i||h;else _=u?h&&(i||p):c?h&&p&&(i||!m):l?h&&p&&!m&&(i||!g):m||g?!1:i?f<=t:f<t;_?a=d+1:o=d}return R(o,b)}function xa(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!ql(s,c)){var c=s;a[i++]=o===0?0:o}}return a}function Sa(e){return typeof e==`number`?e:wu(e)?v:+e}function Ca(e){if(typeof e==`string`)return e;if(q(e))return V(e,Ca)+``;if(wu(e))return gr?gr.call(e):``;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function wa(e,t,n){var r=-1,i=hn,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=gn;else if(a>=200){var l=t?null:yo(e);if(l)return er(l);o=!1,i=Bn,c=new Vr}else c=t?[]:s;outer:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue outer;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}function Ta(e,t){return t=Na(t,e),e=us(e,t),e==null||delete e[bs(Js(t))]}function Ea(e,t,n,r){return pa(e,t,n(Ti(e,t)),r)}function Da(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?_a(e,r?0:a,r?a+1:i):_a(e,r?a+1:0,r?i:a)}function Oa(e,t){var n=e;return n instanceof U&&(n=n.value()),vn(t,function(e,t){return t.func.apply(t.thisArg,_n([e],t.args))},n)}function ka(e,t,n){var r=e.length;if(r<2)return r?wa(e[0]):[];for(var i=-1,a=O(r);++i<r;)for(var o=e[i],s=-1;++s<r;)s!=i&&(a[i]=pi(a[i]||o,e[s],t,n));return wa(W(a,1),t,n)}function Aa(e,t,r){for(var i=-1,a=e.length,o=t.length,s={};++i<a;){var c=i<o?t[i]:n;r(s,e[i],c)}return s}function ja(e){return J(e)?e:[]}function Ma(e){return typeof e==`function`?e:pf}function Na(e,t){return q(e)?e:Zo(e,t)?[e]:ys(Q(e))}var Pa=G;function Fa(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:_a(e,t,r)}var Ia=jt||function(e){return z.clearTimeout(e)};function La(e,t){if(t)return e.slice();var n=e.length,r=St?St(n):new e.constructor(n);return e.copy(r),r}function Ra(e){var t=new e.constructor(e.byteLength);return new xt(t).set(new xt(e)),t}function za(e,t){var n=t?Ra(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Ba(e){var t=new e.constructor(e.source,Ze.exec(e));return t.lastIndex=e.lastIndex,t}function Va(e){return hr?A(hr.call(e)):{}}function Ha(e,t){var n=t?Ra(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ua(e,t){if(e!==t){var r=e!==n,i=e===null,a=e===e,o=wu(e),s=t!==n,c=t===null,l=t===t,u=wu(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||i&&s&&l||!r&&l||!a)return 1;if(!i&&!o&&!u&&e<t||u&&r&&a&&!i&&!o||c&&r&&a||!s&&a||!l)return-1}return 0}function Wa(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=Ua(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}function Ga(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,c=t.length,l=F(a-o,0),u=O(c+l),d=!r;++s<c;)u[s]=t[s];for(;++i<o;)(d||i<a)&&(u[n[i]]=e[i]);for(;l--;)u[s++]=e[i++];return u}function Ka(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,c=-1,l=t.length,u=F(a-s,0),d=O(u+l),f=!r;++i<u;)d[i]=e[i];for(var p=i;++c<l;)d[p+c]=t[c];for(;++o<s;)(f||i<a)&&(d[p+n[o]]=e[i++]);return d}function qa(e,t){var n=-1,r=e.length;for(t||=O(r);++n<r;)t[n]=e[n];return t}function Ja(e,t,r,i){var a=!r;r||={};for(var o=-1,s=t.length;++o<s;){var c=t[o],l=i?i(r[c],e[c],c,r,e):n;l===n&&(l=e[c]),a?oi(r,c,l):ti(r,c,l)}return r}function Ya(e,t){return Ja(e,Ro(e),t)}function Xa(e,t){return Ja(e,zo(e),t)}function Za(e,t){return function(n,r){var i=q(n)?un:ri,a=t?t():{};return i(n,e,K(r,2),a)}}function Qa(e){return G(function(t,r){var i=-1,a=r.length,o=a>1?r[a-1]:n,s=a>2?r[2]:n;for(o=e.length>3&&typeof o==`function`?(a--,o):n,s&&Xo(r[0],r[1],s)&&(o=a<3?n:o,a=1),t=A(t);++i<a;){var c=r[i];c&&e(t,c,i,o)}return t})}function $a(e,t){return function(n,r){if(n==null)return n;if(!Ql(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=A(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}function eo(e){return function(t,n,r){for(var i=-1,a=A(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function to(e,t,n){var r=t&o,i=io(e);function a(){return(this&&this!==z&&this instanceof a?i:e).apply(r?n:this,arguments)}return a}function no(e){return function(t){t=Q(t);var r=Jn(t)?ar(t):n,i=r?r[0]:t.charAt(0),a=r?Fa(r,1).join(``):t.slice(1);return i[e]()+a}}function ro(e){return function(t){return vn(rf(Ad(t).replace(Rt,``)),e,``)}}function io(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=_r(e.prototype),r=e.apply(n,t);return Y(r)?r:n}}function ao(e,t,r){var i=io(e);function a(){for(var o=arguments.length,s=O(o),c=o,l=No(a);c--;)s[c]=arguments[c];var u=o<3&&s[0]!==l&&s[o-1]!==l?[]:$n(s,l);return o-=u.length,o<r?_o(e,t,co,a.placeholder,n,s,u,n,n,r-o):ln(this&&this!==z&&this instanceof a?i:e,this,s)}return a}function oo(e){return function(t,r,i){var a=A(t);if(!Ql(t)){var o=K(r,3);t=$(t),r=function(e){return o(a[e],e,a)}}var s=e(t,r,i);return s>-1?a[o?t[s]:s]:n}}function so(e){return Oo(function(t){var i=t.length,a=i,o=yr.prototype.thru;for(e&&t.reverse();a--;){var s=t[a];if(typeof s!=`function`)throw new ut(r);if(o&&!l&&Mo(s)==`wrapper`)var l=new yr([],!0)}for(a=l?a:i;++a<i;){s=t[a];var d=Mo(s),m=d==`wrapper`?jo(s):n;l=m&&$o(m[0])&&m[1]==(f|c|u|p)&&!m[4].length&&m[9]==1?l[Mo(m[0])].apply(l,m[3]):s.length==1&&$o(s)?l[d]():l.thru(s)}return function(){var e=arguments,n=e[0];if(l&&e.length==1&&q(n))return l.plant(n).value();for(var r=0,a=i?t[r].apply(this,e):n;++r<i;)a=t[r].call(this,a);return a}})}function co(e,t,r,i,a,u,d,p,h,g){var _=t&f,v=t&o,y=t&s,b=t&(c|l),x=t&m,ee=y?n:io(e);function S(){for(var n=arguments.length,o=O(n),s=n;s--;)o[s]=arguments[s];if(b)var c=No(S),l=Un(o,c);if(i&&(o=Ga(o,i,a,b)),u&&(o=Ka(o,u,d,b)),n-=l,b&&n<g){var f=$n(o,c);return _o(e,t,co,S.placeholder,r,o,f,p,h,g-n)}var m=v?r:this,C=y?m[e]:e;return n=o.length,p?o=ds(o,p):x&&n>1&&o.reverse(),_&&h<n&&(o.length=h),this&&this!==z&&this instanceof S&&(C=ee||io(C)),C.apply(m,o)}return S}function lo(e,t){return function(n,r){return Ni(n,e,t(r),{})}}function uo(e,t){return function(r,i){var a;if(r===n&&i===n)return t;if(r!==n&&(a=r),i!==n){if(a===n)return i;typeof r==`string`||typeof i==`string`?(r=Ca(r),i=Ca(i)):(r=Sa(r),i=Sa(i)),a=e(r,i)}return a}}function fo(e){return Oo(function(t){return t=V(t,Rn(K())),G(function(n){var r=this;return e(t,function(e){return ln(e,r,n)})})})}function po(e,t){t=t===n?` `:Ca(t);var r=t.length;if(r<2)return r?ua(t,e):t;var i=ua(t,Pt(e/ir(t)));return Jn(t)?Fa(ar(i),0,e).join(``):i.slice(0,e)}function mo(e,t,n,r){var i=t&o,a=io(e);function s(){for(var t=-1,o=arguments.length,c=-1,l=r.length,u=O(l+o),d=this&&this!==z&&this instanceof s?a:e;++c<l;)u[c]=r[c];for(;o--;)u[c++]=arguments[++t];return ln(d,i?n:this,u)}return s}function ho(e){return function(t,r,i){return i&&typeof i!=`number`&&Xo(t,r,i)&&(r=i=n),t=Mu(t),r===n?(r=t,t=0):r=Mu(r),i=i===n?t<r?1:-1:Mu(i),la(t,r,i,e)}}function go(e){return function(t,n){return(typeof t!=`string`||typeof n!=`string`)&&(t=Pu(t),n=Pu(n)),e(t,n)}}function _o(e,t,r,i,a,l,f,p,m,h){var g=t&c,_=g?f:n,v=g?n:f,y=g?l:n,b=g?n:l;t|=g?u:d,t&=~(g?d:u),t&4||(t&=~(o|s));var x=[e,t,a,y,_,b,v,p,m,h],ee=r.apply(n,x);return $o(e)&&ps(ee,x),ee.placeholder=i,gs(ee,e,t)}function vo(e){var t=st[e];return function(e,n){if(e=Pu(e),n=n==null?0:R(Z(n),292),n&&Bt(e)){var r=(Q(e)+`e`).split(`e`);return r=(Q(t(r[0]+`e`+(+r[1]+n)))+`e`).split(`e`),+(r[0]+`e`+(+r[1]-n))}return t(e)}}var yo=tn&&1/er(new tn([,-0]))[1]==h?function(e){return new tn(e)}:xf;function bo(e){return function(t){var n=Bo(t);return n==ie?Zn(t):n==de?tr(t):In(t,e(t))}}function xo(e,t,i,a,f,p,m,h){var g=t&s;if(!g&&typeof e!=`function`)throw new ut(r);var _=a?a.length:0;if(_||(t&=~(u|d),a=f=n),m=m===n?m:F(Z(m),0),h=h===n?h:Z(h),_-=f?f.length:0,t&d){var v=a,y=f;a=f=n}var b=g?n:jo(e),x=[e,t,i,a,f,v,y,p,m,h];if(b&&os(x,b),e=x[0],t=x[1],i=x[2],a=x[3],f=x[4],h=x[9]=x[9]===n?g?0:e.length:F(x[9]-_,0),!h&&t&(c|l)&&(t&=~(c|l)),!t||t==o)var ee=to(e,t,i);else ee=t==c||t==l?ao(e,t,h):(t==u||t==(o|u))&&!f.length?mo(e,t,i,a):co.apply(n,x);return gs((b?ma:ps)(ee,x),e,t)}function So(e,t,r,i){return e===n||ql(e,dt[r])&&!N.call(i,r)?t:e}function Co(e,t,r,i,a,o){return Y(e)&&Y(t)&&(o.set(t,e),$i(e,t,n,Co,o),o.delete(t)),e}function wo(e){return yu(e)?n:e}function To(e,t,r,i,a,o){var s=r&1,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,m=r&2?new Vr:n;for(o.set(e,t),o.set(t,e);++f<c;){var h=e[f],g=t[f];if(i)var _=s?i(g,h,f,t,e,o):i(h,g,f,e,t,o);if(_!==n){if(_)continue;p=!1;break}if(m){if(!bn(t,function(e,t){if(!Bn(m,t)&&(h===e||a(h,e,r,i,o)))return m.push(t)})){p=!1;break}}else if(!(h===g||a(h,g,r,i,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function Eo(e,t,n,r,i,a,o){switch(n){case ve:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _e:return!(e.byteLength!=t.byteLength||!a(new xt(e),new xt(t)));case T:case E:case ae:return ql(+e,+t);case ne:return e.name==t.name&&e.message==t.message;case ue:case fe:return e==t+``;case ie:var s=Zn;case de:var c=r&1;if(s||=er,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=2,o.set(e,t);var u=To(s(e),s(t),r,i,a,o);return o.delete(e),u;case pe:if(hr)return hr.call(e)==hr.call(t)}return!1}function Do(e,t,r,i,a,o){var s=r&1,c=ko(e),l=c.length;if(l!=ko(t).length&&!s)return!1;for(var u=l;u--;){var d=c[u];if(!(s?d in t:N.call(t,d)))return!1}var f=o.get(e),p=o.get(t);if(f&&p)return f==t&&p==e;var m=!0;o.set(e,t),o.set(t,e);for(var h=s;++u<l;){d=c[u];var g=e[d],_=t[d];if(i)var v=s?i(_,g,d,t,e,o):i(g,_,d,e,t,o);if(!(v===n?g===_||a(g,_,r,i,o):v)){m=!1;break}h||=d==`constructor`}if(m&&!h){var y=e.constructor,b=t.constructor;y!=b&&`constructor`in e&&`constructor`in t&&!(typeof y==`function`&&y instanceof y&&typeof b==`function`&&b instanceof b)&&(m=!1)}return o.delete(e),o.delete(t),m}function Oo(e){return hs(ls(e,n,Ls),e+``)}function ko(e){return Ei(e,$,Ro)}function Ao(e){return Ei(e,ad,zo)}var jo=Sn?function(e){return Sn.get(e)}:xf;function Mo(e){for(var t=e.name+``,n=jn[t],r=N.call(jn,t)?n.length:0;r--;){var i=n[r],a=i.func;if(a==null||a==e)return i.name}return t}function No(e){return(N.call(H,`placeholder`)?H:e).placeholder}function K(){var e=H.iteratee||mf;return e=e===mf?Ki:e,arguments.length?e(arguments[0],arguments[1]):e}function Po(e,t){var n=e.__data__;return Qo(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Fo(e){for(var t=$(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,rs(i)]}return t}function Io(e,t){var r=qn(e,t);return Hi(r)?r:n}function Lo(e){var t=N.call(e,kt),r=e[kt];try{e[kt]=n;var i=!0}catch{}var a=ht.call(e);return i&&(t?e[kt]=r:delete e[kt]),a}var Ro=It?function(e){return e==null?[]:(e=A(e),mn(It(e),function(t){return Tt.call(e,t)}))}:Af,zo=It?function(e){for(var t=[];e;)_n(t,Ro(e)),e=Ct(e);return t}:Af,Bo=Di;(Zt&&Bo(new Zt(new ArrayBuffer(1)))!=ve||Qt&&Bo(new Qt)!=ie||$t&&Bo($t.resolve())!=ce||tn&&Bo(new tn)!=de||B&&Bo(new B)!=he)&&(Bo=function(e){var t=Di(e),r=t==se?e.constructor:n,i=r?xs(r):``;if(i)switch(i){case nr:return ve;case cr:return ie;case lr:return ce;case fr:return de;case pr:return he}return t});function Vo(e,t,n){for(var r=-1,i=n.length;++r<i;){var a=n[r],o=a.size;switch(a.type){case`drop`:e+=o;break;case`dropRight`:t-=o;break;case`take`:t=R(t,e+o);break;case`takeRight`:e=F(e,t-o)}}return{start:e,end:t}}function Ho(e){var t=e.match(Ge);return t?t[1].split(Ke):[]}function Uo(e,t,n){t=Na(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=bs(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&uu(i)&&Yo(o,i)&&(q(e)||Xl(e)))}function Wo(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&N.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function Go(e){return typeof e.constructor==`function`&&!ns(e)?_r(Ct(e)):{}}function Ko(e,t,n){var r=e.constructor;switch(t){case _e:return Ra(e);case T:case E:return new r(+e);case ve:return za(e,n);case ye:case be:case xe:case Se:case Ce:case we:case Te:case Ee:case De:return Ha(e,n);case ie:return new r;case ae:case fe:return new r(e);case ue:return Ba(e);case de:return new r;case pe:return Va(e)}}function qo(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?`& `:``)+t[r],t=t.join(n>2?`, `:` `),e.replace(We,`{
|
|
14
|
+
`,t.classList.add(`ms-dialog`),t.addEventListener(`click`,e=>{e.target===t&&t.close()});let n=t.querySelector(`.ms-dialog-close-button`);return n&&n.addEventListener(`click`,e=>{e.preventDefault(),e.stopPropagation(),t.close()}),t},ue=[`accelerometer *`,`autoplay`,`camera`,`clipboard-write *`,`display-capture`,`encrypted-media *`,`fullscreen`,`gyroscope *`,`microphone`,`picture-in-picture *`,`screen-wake-lock`],de=e=>{let{url:t,searchParams:n={},permissionPolicies:r=[],rootDocument:i=document}=e;Object.entries(n).forEach(([e,n])=>{n!=null&&t.searchParams.set(e,String(n))});let a=i.createElement(`iframe`);return a.src=t.toString(),a.allow=ue.concat(r).join(`; `),a.width=`100%`,a.height=`100%`,a.style.border=`0`,a},fe=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|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,g={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(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,ee=function(e){return e instanceof T||!(!e||!e[x])},S=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},C=function(e,t){if(ee(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new T(n)},w=v;w.l=S,w.i=ee,w.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var T=function(){function g(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(w.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.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()},_.$utils=function(){return w},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=C(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return C(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<C(e)},_.$g=function(e,t,n){return w.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!w.u(t)||t,u=w.p(e),p=function(e,t){var i=w.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return w.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=w.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[w.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=w.p(u),h=function(e){var t=C(p);return w.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return w.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=w.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return w.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return w.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return w.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return w.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return w.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return w.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return w.s(t.$s,2,`0`);case`SSS`:return w.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=w.p(f),_=C(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return w.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:w.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=S(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return w.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),E=T.prototype;return C.prototype=E,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){E[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),C.extend=function(e,t){return e.$i||=(e(t,T,C),!0),C},C.locale=S,C.isDayjs=ee,C.unix=function(e){return C(1e3*e)},C.en=b[y],C.Ls=b,C.p={},C}))})),pe=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){"use strict";return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`YYYY-MM-DDTHH:mm:ssZ`).replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),me=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localizedFormat=r()})(e,(function(){"use strict";var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`};return function(t,n,r){var i=n.prototype,a=i.format;r.en.formats=e,i.format=function(t){t===void 0&&(t=`YYYY-MM-DDTHH:mm:ssZ`);var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var a=i&&i.toUpperCase();return r||n[i]||e[i]||n[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,n===void 0?{}:n);return a.call(this,r)}}}))})),he=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_timezone=r()})(e,(function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(n,r,i){var a,o=function(e,n,r){r===void 0&&(r={});var i=new Date(e);return function(e,n){n===void 0&&(n={});var r=n.timeZoneName||`short`,i=e+`|`+r,a=t[i];return a||(a=new Intl.DateTimeFormat(`en-US`,{hour12:!1,timeZone:e,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,timeZoneName:r}),t[i]=a),a}(n,r).formatToParts(i)},s=function(t,n){for(var r=o(t,n),a=[],s=0;s<r.length;s+=1){var c=r[s],l=c.type,u=c.value,d=e[l];d>=0&&(a[d]=parseInt(u,10))}var f=a[3],p=f===24?0:f,m=a[0]+`-`+a[1]+`-`+a[2]+` `+p+`:`+a[4]+`:`+a[5]+`:000`,h=+t;return(i.utc(m).valueOf()-(h-=h%1e3))/6e4},c=r.prototype;c.tz=function(e,t){e===void 0&&(e=a);var n,r=this.utcOffset(),o=this.toDate(),s=o.toLocaleString(`en-US`,{timeZone:e}),c=Math.round((o-new Date(s))/1e3/60),l=15*-Math.round(o.getTimezoneOffset()/15)-c;if(!Number(l))n=this.utcOffset(0,t);else if(n=i(s,{locale:this.$L}).$set(`millisecond`,this.$ms).utcOffset(l,!0),t){var u=n.utcOffset();n=n.add(r-u,`minute`)}return n.$x.$timezone=e,n},c.offsetName=function(e){var t=this.$x.$timezone||i.tz.guess(),n=o(this.valueOf(),t,{timeZoneName:e}).find((function(e){return e.type.toLowerCase()===`timezonename`}));return n&&n.value};var l=c.startOf;c.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return l.call(this,e,t);var n=i(this.format(`YYYY-MM-DD HH:mm:ss:SSS`),{locale:this.$L});return l.call(n,e,t).tz(this.$x.$timezone,!0)},i.tz=function(e,t,n){var r=n&&t,o=n||t||a,c=s(+i(),o);if(typeof e!=`string`)return i(e).tz(o);var l=function(e,t,n){var r=e-60*t*1e3,i=s(r,n);if(t===i)return[r,t];var a=s(r-=60*(i-t)*1e3,n);return i===a?[r,i]:[e-60*Math.min(i,a)*1e3,Math.max(i,a)]}(i.utc(e,r).valueOf(),c,o),u=l[0],d=l[1],f=i(u).utcOffset(d);return f.$x.$timezone=o,f},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(e){a=e}}}))})),ge=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_utc=r()})(e,(function(){"use strict";var e=`minute`,t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,a){var o=i.prototype;a.utc=function(e){return new i({date:e,utc:!0,args:arguments})},o.utc=function(t){var n=a(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},o.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var s=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var c=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else c.call(this)};var l=o.utcOffset;o.utcOffset=function(r,i){var a=this.$utils().u;if(a(r))return this.$u?0:a(this.$offset)?l.call(this):this.$offset;if(typeof r==`string`&&(r=function(e){e===void 0&&(e=``);var r=e.match(t);if(!r)return null;var i=(``+r[0]).match(n)||[`-`,0,0],a=i[0],o=60*i[1]+ +i[2];return o===0?0:a===`+`?o:-o}(r),r===null))return this;var o=Math.abs(r)<=16?60*r:r,s=this;if(i)return s.$offset=o,s.$u=r===0,s;if(r!==0){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(o+c,e)).$offset=o,s.$x.$localOffset=c}else s=this.utc();return s};var u=o.format;o.format=function(e){var t=e||(this.$u?`YYYY-MM-DDTHH:mm:ss[Z]`:``);return u.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var d=o.toDate;o.toDate=function(e){return e===`s`&&this.$offset?a(this.format(`YYYY-MM-DD HH:mm:ss:SSS`)).toDate():d.call(this)};var f=o.diff;o.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),i=a(e).local();return f.call(r,i,t,n)}}}))})),_e=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(fe()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_de=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={s:`ein paar Sekunden`,m:[`eine Minute`,`einer Minute`],mm:`%d Minuten`,h:[`eine Stunde`,`einer Stunde`],hh:`%d Stunden`,d:[`ein Tag`,`einem Tag`],dd:[`%d Tage`,`%d Tagen`],M:[`ein Monat`,`einem Monat`],MM:[`%d Monate`,`%d Monaten`],y:[`ein Jahr`,`einem Jahr`],yy:[`%d Jahre`,`%d Jahren`]};function i(e,t,n){var i=r[n];return Array.isArray(i)&&(i=i[+!t]),i.replace(`%d`,e)}var a={name:`de`,weekdays:`Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag`.split(`_`),weekdaysShort:`So._Mo._Di._Mi._Do._Fr._Sa.`.split(`_`),weekdaysMin:`So_Mo_Di_Mi_Do_Fr_Sa`.split(`_`),months:`Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember`.split(`_`),monthsShort:`Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.`.split(`_`),ordinal:function(e){return e+`.`},weekStart:1,yearStart:4,formats:{LTS:`HH:mm:ss`,LT:`HH:mm`,L:`DD.MM.YYYY`,LL:`D. MMMM YYYY`,LLL:`D. MMMM YYYY HH:mm`,LLLL:`dddd, D. MMMM YYYY HH:mm`},relativeTime:{future:`in %s`,past:`vor %s`,s:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i}};return n.default.locale(a,null,!0),a}))})),ve=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(fe()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_fr=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`fr`,weekdays:`dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi`.split(`_`),weekdaysShort:`dim._lun._mar._mer._jeu._ven._sam.`.split(`_`),weekdaysMin:`di_lu_ma_me_je_ve_sa`.split(`_`),months:`janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre`.split(`_`),monthsShort:`janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.`.split(`_`),weekStart:1,yearStart:4,formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY HH:mm`,LLLL:`dddd D MMMM YYYY HH:mm`},relativeTime:{future:`dans %s`,past:`il y a %s`,s:`quelques secondes`,m:`une minute`,mm:`%d minutes`,h:`une heure`,hh:`%d heures`,d:`un jour`,dd:`%d jours`,M:`un mois`,MM:`%d mois`,y:`un an`,yy:`%d ans`},ordinal:function(e){return``+e+(e===1?`er`:``)}};return n.default.locale(r,null,!0),r}))})),ye=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_en=r()})(e,(function(){"use strict";return{name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}}}))})),be=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(fe()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_es=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`es`,monthsShort:`ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic`.split(`_`),weekdays:`domingo_lunes_martes_miércoles_jueves_viernes_sábado`.split(`_`),weekdaysShort:`dom._lun._mar._mié._jue._vie._sáb.`.split(`_`),weekdaysMin:`do_lu_ma_mi_ju_vi_sá`.split(`_`),months:`enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre`.split(`_`),weekStart:1,formats:{LT:`H:mm`,LTS:`H:mm:ss`,L:`DD/MM/YYYY`,LL:`D [de] MMMM [de] YYYY`,LLL:`D [de] MMMM [de] YYYY H:mm`,LLLL:`dddd, D [de] MMMM [de] YYYY H:mm`},relativeTime:{future:`en %s`,past:`hace %s`,s:`unos segundos`,m:`un minuto`,mm:`%d minutos`,h:`una hora`,hh:`%d horas`,d:`un día`,dd:`%d días`,M:`un mes`,MM:`%d meses`,y:`un año`,yy:`%d años`},ordinal:function(e){return e+`º`}};return n.default.locale(r,null,!0),r}))})),xe=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(fe()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_it=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`it`,weekdays:`domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato`.split(`_`),weekdaysShort:`dom_lun_mar_mer_gio_ven_sab`.split(`_`),weekdaysMin:`do_lu_ma_me_gi_ve_sa`.split(`_`),months:`gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre`.split(`_`),weekStart:1,monthsShort:`gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic`.split(`_`),formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY HH:mm`,LLLL:`dddd D MMMM YYYY HH:mm`},relativeTime:{future:`tra %s`,past:`%s fa`,s:`qualche secondo`,m:`un minuto`,mm:`%d minuti`,h:`un' ora`,hh:`%d ore`,d:`un giorno`,dd:`%d giorni`,M:`un mese`,MM:`%d mesi`,y:`un anno`,yy:`%d anni`},ordinal:function(e){return e+`º`}};return n.default.locale(r,null,!0),r}))})),Se=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(fe()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_pt=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`pt`,weekdays:`domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado`.split(`_`),weekdaysShort:`dom_seg_ter_qua_qui_sex_sab`.split(`_`),weekdaysMin:`Do_2ª_3ª_4ª_5ª_6ª_Sa`.split(`_`),months:`janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro`.split(`_`),monthsShort:`jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez`.split(`_`),ordinal:function(e){return e+`º`},weekStart:1,yearStart:4,formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D [de] MMMM [de] YYYY`,LLL:`D [de] MMMM [de] YYYY [às] HH:mm`,LLLL:`dddd, D [de] MMMM [de] YYYY [às] HH:mm`},relativeTime:{future:`em %s`,past:`há %s`,s:`alguns segundos`,m:`um minuto`,mm:`%d minutos`,h:`uma hora`,hh:`%d horas`,d:`um dia`,dd:`%d dias`,M:`um mês`,MM:`%d meses`,y:`um ano`,yy:`%d anos`}};return n.default.locale(r,null,!0),r}))})),Ce=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(fe()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_nl=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`nl`,weekdays:`zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag`.split(`_`),weekdaysShort:`zo._ma._di._wo._do._vr._za.`.split(`_`),weekdaysMin:`zo_ma_di_wo_do_vr_za`.split(`_`),months:`januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december`.split(`_`),monthsShort:`jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec`.split(`_`),ordinal:function(e){return`[`+e+(e===1||e===8||e>=20?`ste`:`de`)+`]`},weekStart:1,yearStart:4,formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD-MM-YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY HH:mm`,LLLL:`dddd D MMMM YYYY HH:mm`},relativeTime:{future:`over %s`,past:`%s geleden`,s:`een paar seconden`,m:`een minuut`,mm:`%d minuten`,h:`een uur`,hh:`%d uur`,d:`een dag`,dd:`%d dagen`,M:`een maand`,MM:`%d maanden`,y:`een jaar`,yy:`%d jaar`}};return n.default.locale(r,null,!0),r}))})),we=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(fe()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_ko=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`ko`,weekdays:`일요일_월요일_화요일_수요일_목요일_금요일_토요일`.split(`_`),weekdaysShort:`일_월_화_수_목_금_토`.split(`_`),weekdaysMin:`일_월_화_수_목_금_토`.split(`_`),months:`1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월`.split(`_`),monthsShort:`1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월`.split(`_`),ordinal:function(e){return e+`일`},formats:{LT:`A h:mm`,LTS:`A h:mm:ss`,L:`YYYY.MM.DD.`,LL:`YYYY년 MMMM D일`,LLL:`YYYY년 MMMM D일 A h:mm`,LLLL:`YYYY년 MMMM D일 dddd A h:mm`,l:`YYYY.MM.DD.`,ll:`YYYY년 MMMM D일`,lll:`YYYY년 MMMM D일 A h:mm`,llll:`YYYY년 MMMM D일 dddd A h:mm`},meridiem:function(e){return e<12?`오전`:`오후`},relativeTime:{future:`%s 후`,past:`%s 전`,s:`몇 초`,m:`1분`,mm:`%d분`,h:`한 시간`,hh:`%d시간`,d:`하루`,dd:`%d일`,M:`한 달`,MM:`%d달`,y:`일 년`,yy:`%d년`}};return n.default.locale(r,null,!0),r}))})),Te=u(fe()),Ee=u(pe()),De=u(me()),Oe=u(he()),ke=u(ge());_e(),ve(),ye(),be(),xe(),Se(),Ce(),we(),Te.default.extend(ke.default),Te.default.extend(Oe.default),Te.default.extend(De.default),Te.default.extend(Ee.default),s(((e,t)=>{(function(){var n,r=`Expected a function`,i=`__lodash_hash_undefined__`,a=`__lodash_placeholder__`,o=1,s=2,c=8,l=16,u=32,d=64,f=128,p=256,m=512,h=1/0,g=9007199254740991,_=17976931348623157e292,v=NaN,y=4294967295,b=y-1,x=y>>>1,ee=[[`ary`,f],[`bind`,o],[`bindKey`,s],[`curry`,c],[`curryRight`,l],[`flip`,m],[`partial`,u],[`partialRight`,d],[`rearg`,p]],S=`[object Arguments]`,C=`[object Array]`,w=`[object AsyncFunction]`,T=`[object Boolean]`,E=`[object Date]`,te=`[object DOMException]`,ne=`[object Error]`,D=`[object Function]`,re=`[object GeneratorFunction]`,ie=`[object Map]`,ae=`[object Number]`,oe=`[object Null]`,se=`[object Object]`,ce=`[object Promise]`,le=`[object Proxy]`,ue=`[object RegExp]`,de=`[object Set]`,fe=`[object String]`,pe=`[object Symbol]`,me=`[object Undefined]`,he=`[object WeakMap]`,ge=`[object WeakSet]`,_e=`[object ArrayBuffer]`,ve=`[object DataView]`,ye=`[object Float32Array]`,be=`[object Float64Array]`,xe=`[object Int8Array]`,Se=`[object Int16Array]`,Ce=`[object Int32Array]`,we=`[object Uint8Array]`,Te=`[object Uint8ClampedArray]`,Ee=`[object Uint16Array]`,De=`[object Uint32Array]`,Oe=/\b__p \+= '';/g,ke=/\b(__p \+=) '' \+/g,Ae=/(__e\(.*?\)|\b__t\)) \+\n'';/g,je=/&(?:amp|lt|gt|quot|#39);/g,Me=/[&<>"']/g,Ne=RegExp(je.source),Pe=RegExp(Me.source),Fe=/<%-([\s\S]+?)%>/g,Ie=/<%([\s\S]+?)%>/g,Le=/<%=([\s\S]+?)%>/g,Re=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ze=/^\w*$/,Be=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ve=/[\\^$.*+?()[\]{}|]/g,He=RegExp(Ve.source),Ue=/^\s+/,O=/\s/,We=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ge=/\{\n\/\* \[wrapped with (.+)\] \*/,Ke=/,? & /,qe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Je=/[()=,{}\[\]\/\s]/,Ye=/\\(\\)?/g,Xe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ze=/\w*$/,Qe=/^[-+]0x[0-9a-f]+$/i,$e=/^0b[01]+$/i,et=/^\[object .+?Constructor\]$/,tt=/^0o[0-7]+$/i,k=/^(?:0|[1-9]\d*)$/,nt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rt=/($^)/,it=/['\n\r\u2028\u2029\\]/g,at=`\\ud800-\\udfff`,ot=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,st=`\\u2700-\\u27bf`,A=`a-z\\xdf-\\xf6\\xf8-\\xff`,ct=`\\xac\\xb1\\xd7\\xf7`,lt=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,ut=`\\u2000-\\u206f`,dt=` \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,ft=`A-Z\\xc0-\\xd6\\xd8-\\xde`,pt=`\\ufe0e\\ufe0f`,j=ct+lt+ut+dt,M=`['’]`,N=`[`+at+`]`,mt=`[`+j+`]`,ht=`[`+ot+`]`,gt=`\\d+`,_t=`[`+st+`]`,vt=`[`+A+`]`,yt=`[^`+at+j+gt+st+A+ft+`]`,P=`\\ud83c[\\udffb-\\udfff]`,bt=`(?:`+ht+`|`+P+`)`,xt=`[^`+at+`]`,St=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Ct=`[\\ud800-\\udbff][\\udc00-\\udfff]`,wt=`[`+ft+`]`,Tt=`\\u200d`,Et=`(?:`+vt+`|`+yt+`)`,Dt=`(?:`+wt+`|`+yt+`)`,Ot=`(?:`+M+`(?:d|ll|m|re|s|t|ve))?`,kt=`(?:`+M+`(?:D|LL|M|RE|S|T|VE))?`,At=bt+`?`,jt=`[`+pt+`]?`,Mt=`(?:`+Tt+`(?:`+[xt,St,Ct].join(`|`)+`)`+jt+At+`)*`,Nt=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,Pt=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,Ft=jt+At+Mt,It=`(?:`+[_t,St,Ct].join(`|`)+`)`+Ft,Lt=`(?:`+[xt+ht+`?`,ht,St,Ct,N].join(`|`)+`)`,Rt=RegExp(M,`g`),zt=RegExp(ht,`g`),Bt=RegExp(P+`(?=`+P+`)|`+Lt+Ft,`g`),Vt=RegExp([wt+`?`+vt+`+`+Ot+`(?=`+[mt,wt,`$`].join(`|`)+`)`,Dt+`+`+kt+`(?=`+[mt,wt+Et,`$`].join(`|`)+`)`,wt+`?`+Et+`+`+Ot,wt+`+`+kt,Pt,Nt,gt,It].join(`|`),`g`),Ht=RegExp(`[`+Tt+at+ot+pt+`]`),F=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ut=`Array.Buffer.DataView.Date.Error.Float32Array.Float64Array.Function.Int8Array.Int16Array.Int32Array.Map.Math.Object.Promise.RegExp.Set.String.Symbol.TypeError.Uint8Array.Uint8ClampedArray.Uint16Array.Uint32Array.WeakMap._.clearTimeout.isFinite.parseInt.setTimeout`.split(`.`),Wt=-1,I={};I[ye]=I[be]=I[xe]=I[Se]=I[Ce]=I[we]=I[Te]=I[Ee]=I[De]=!0,I[S]=I[C]=I[_e]=I[T]=I[ve]=I[E]=I[ne]=I[D]=I[ie]=I[ae]=I[se]=I[ue]=I[de]=I[fe]=I[he]=!1;var L={};L[S]=L[C]=L[_e]=L[ve]=L[T]=L[E]=L[ye]=L[be]=L[xe]=L[Se]=L[Ce]=L[ie]=L[ae]=L[se]=L[ue]=L[de]=L[fe]=L[pe]=L[we]=L[Te]=L[Ee]=L[De]=!0,L[ne]=L[D]=L[he]=!1;var R={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`s`},Gt={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},Kt={"&":`&`,"<":`<`,">":`>`,""":`"`,"'":`'`},z={"\\":`\\`,"'":`'`,"\n":`n`,"\r":`r`,"\u2028":`u2028`,"\u2029":`u2029`},qt=parseFloat,Jt=parseInt,Yt=typeof global==`object`&&global&&global.Object===Object&&global,Xt=typeof self==`object`&&self&&self.Object===Object&&self,B=Yt||Xt||Function(`return this`)(),Zt=typeof e==`object`&&e&&!e.nodeType&&e,Qt=Zt&&typeof t==`object`&&t&&!t.nodeType&&t,$t=Qt&&Qt.exports===Zt,en=$t&&Yt.process,V=function(){try{return Qt&&Qt.require&&Qt.require(`util`).types||en&&en.binding&&en.binding(`util`)}catch{}}(),tn=V&&V.isArrayBuffer,nn=V&&V.isDate,rn=V&&V.isMap,an=V&&V.isRegExp,on=V&&V.isSet,sn=V&&V.isTypedArray;function cn(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function ln(e,t,n,r){for(var i=-1,a=e==null?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function un(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function dn(e,t){for(var n=e==null?0:e.length;n--&&t(e[n],n,e)!==!1;);return e}function fn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function pn(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function mn(e,t){return!!(e!=null&&e.length)&&Tn(e,t,0)>-1}function hn(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function H(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function gn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function _n(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function vn(e,t,n,r){var i=e==null?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function yn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var bn=kn(`length`);function xn(e){return e.split(``)}function Sn(e){return e.match(qe)||[]}function Cn(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function wn(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function Tn(e,t,n){return t===t?tr(e,t,n):wn(e,Dn,n)}function En(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function Dn(e){return e!==e}function On(e,t){var n=e==null?0:e.length;return n?Nn(e,t)/n:v}function kn(e){return function(t){return t==null?n:t[e]}}function An(e){return function(t){return e==null?n:e[t]}}function jn(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function Mn(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function Nn(e,t){for(var r,i=-1,a=e.length;++i<a;){var o=t(e[i]);o!==n&&(r=r===n?o:r+o)}return r}function Pn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Fn(e,t){return H(t,function(t){return[t,e[t]]})}function In(e){return e&&e.slice(0,ar(e)+1).replace(Ue,``)}function Ln(e){return function(t){return e(t)}}function Rn(e,t){return H(t,function(t){return e[t]})}function zn(e,t){return e.has(t)}function Bn(e,t){for(var n=-1,r=e.length;++n<r&&Tn(t,e[n],0)>-1;);return n}function Vn(e,t){for(var n=e.length;n--&&Tn(t,e[n],0)>-1;);return n}function Hn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Un=An(R),Wn=An(Gt);function Gn(e){return`\\`+z[e]}function Kn(e,t){return e==null?n:e[t]}function qn(e){return Ht.test(e)}function Jn(e){return F.test(e)}function Yn(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function Xn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Zn(e,t){return function(n){return e(t(n))}}function Qn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];(s===t||s===a)&&(e[n]=a,o[i++]=n)}return o}function $n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function er(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function tr(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function nr(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}function rr(e){return qn(e)?sr(e):bn(e)}function ir(e){return qn(e)?cr(e):xn(e)}function ar(e){for(var t=e.length;t--&&O.test(e.charAt(t)););return t}var or=An(Kt);function sr(e){for(var t=Bt.lastIndex=0;Bt.test(e);)++t;return t}function cr(e){return e.match(Bt)||[]}function lr(e){return e.match(Vt)||[]}var ur=(function e(t){t=t==null?B:ur.defaults(B.Object(),t,ur.pick(B,Ut));var O=t.Array,qe=t.Date,at=t.Error,ot=t.Function,st=t.Math,A=t.Object,ct=t.RegExp,lt=t.String,ut=t.TypeError,dt=O.prototype,ft=ot.prototype,pt=A.prototype,j=t[`__core-js_shared__`],M=ft.toString,N=pt.hasOwnProperty,mt=0,ht=function(){var e=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),gt=pt.toString,_t=M.call(A),vt=B._,yt=ct(`^`+M.call(N).replace(Ve,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),P=$t?t.Buffer:n,bt=t.Symbol,xt=t.Uint8Array,St=P?P.allocUnsafe:n,Ct=Zn(A.getPrototypeOf,A),wt=A.create,Tt=pt.propertyIsEnumerable,Et=dt.splice,Dt=bt?bt.isConcatSpreadable:n,Ot=bt?bt.iterator:n,kt=bt?bt.toStringTag:n,At=function(){try{var e=Io(A,`defineProperty`);return e({},``,{}),e}catch{}}(),jt=t.clearTimeout!==B.clearTimeout&&t.clearTimeout,Mt=qe&&qe.now!==B.Date.now&&qe.now,Nt=t.setTimeout!==B.setTimeout&&t.setTimeout,Pt=st.ceil,Ft=st.floor,It=A.getOwnPropertySymbols,Lt=P?P.isBuffer:n,Bt=t.isFinite,Vt=dt.join,Ht=Zn(A.keys,A),F=st.max,R=st.min,Gt=qe.now,Kt=t.parseInt,z=st.random,Yt=dt.reverse,Xt=Io(t,`DataView`),Zt=Io(t,`Map`),Qt=Io(t,`Promise`),en=Io(t,`Set`),V=Io(t,`WeakMap`),bn=Io(A,`create`),xn=V&&new V,An={},tr=xs(Xt),sr=xs(Zt),cr=xs(Qt),dr=xs(en),fr=xs(V),pr=bt?bt.prototype:n,mr=pr?pr.valueOf:n,hr=pr?pr.toString:n;function U(e){if(X(e)&&!q(e)&&!(e instanceof W)){if(e instanceof vr)return e;if(N.call(e,`__wrapped__`))return Cs(e)}return new vr(e)}var gr=function(){function e(){}return function(t){if(!Y(t))return{};if(wt)return wt(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function _r(){}function vr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}U.templateSettings={escape:Fe,evaluate:Ie,interpolate:Le,variable:``,imports:{_:U}},U.prototype=_r.prototype,U.prototype.constructor=U,vr.prototype=gr(_r.prototype),vr.prototype.constructor=vr;function W(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=y,this.__views__=[]}function yr(){var e=new W(this.__wrapped__);return e.__actions__=qa(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=qa(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=qa(this.__views__),e}function br(){if(this.__filtered__){var e=new W(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function xr(){var e=this.__wrapped__.value(),t=this.__dir__,n=q(e),r=t<0,i=n?e.length:0,a=Vo(0,i,this.__views__),o=a.start,s=a.end,c=s-o,l=r?s:o-1,u=this.__iteratees__,d=u.length,f=0,p=R(c,this.__takeCount__);if(!n||!r&&i==c&&p==c)return Oa(e,this.__actions__);var m=[];outer:for(;c--&&f<p;){l+=t;for(var h=-1,g=e[l];++h<d;){var _=u[h],v=_.iteratee,y=_.type,b=v(g);if(y==2)g=b;else if(!b){if(y==1)continue outer;break outer}}m[f++]=g}return m}W.prototype=gr(_r.prototype),W.prototype.constructor=W;function Sr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Cr(){this.__data__=bn?bn(null):{},this.size=0}function wr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function Tr(e){var t=this.__data__;if(bn){var r=t[e];return r===i?n:r}return N.call(t,e)?t[e]:n}function Er(e){var t=this.__data__;return bn?t[e]!==n:N.call(t,e)}function Dr(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=bn&&t===n?i:t,this}Sr.prototype.clear=Cr,Sr.prototype.delete=wr,Sr.prototype.get=Tr,Sr.prototype.has=Er,Sr.prototype.set=Dr;function Or(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function kr(){this.__data__=[],this.size=0}function Ar(e){var t=this.__data__,n=ti(t,e);return n<0?!1:(n==t.length-1?t.pop():Et.call(t,n,1),--this.size,!0)}function jr(e){var t=this.__data__,r=ti(t,e);return r<0?n:t[r][1]}function Mr(e){return ti(this.__data__,e)>-1}function Nr(e,t){var n=this.__data__,r=ti(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}Or.prototype.clear=kr,Or.prototype.delete=Ar,Or.prototype.get=jr,Or.prototype.has=Mr,Or.prototype.set=Nr;function Pr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Fr(){this.size=0,this.__data__={hash:new Sr,map:new(Zt||Or),string:new Sr}}function Ir(e){var t=Po(this,e).delete(e);return this.size-=+!!t,t}function Lr(e){return Po(this,e).get(e)}function Rr(e){return Po(this,e).has(e)}function zr(e,t){var n=Po(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}Pr.prototype.clear=Fr,Pr.prototype.delete=Ir,Pr.prototype.get=Lr,Pr.prototype.has=Rr,Pr.prototype.set=zr;function Br(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Pr;++t<n;)this.add(e[t])}function Vr(e){return this.__data__.set(e,i),this}function Hr(e){return this.__data__.has(e)}Br.prototype.add=Br.prototype.push=Vr,Br.prototype.has=Hr;function Ur(e){var t=this.__data__=new Or(e);this.size=t.size}function Wr(){this.__data__=new Or,this.size=0}function Gr(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Kr(e){return this.__data__.get(e)}function qr(e){return this.__data__.has(e)}function Jr(e,t){var n=this.__data__;if(n instanceof Or){var r=n.__data__;if(!Zt||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Pr(r)}return n.set(e,t),this.size=n.size,this}Ur.prototype.clear=Wr,Ur.prototype.delete=Gr,Ur.prototype.get=Kr,Ur.prototype.has=qr,Ur.prototype.set=Jr;function Yr(e,t){var n=q(e),r=!n&&Xl(e),i=!n&&!r&&eu(e),a=!n&&!r&&!i&&Tu(e),o=n||r||i||a,s=o?Pn(e.length,lt):[],c=s.length;for(var l in e)(t||N.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Yo(l,c)))&&s.push(l);return s}function Xr(e){var t=e.length;return t?e[ca(0,t-1)]:n}function Zr(e,t){return vs(qa(e),si(t,0,e.length))}function Qr(e){return vs(qa(e))}function $r(e,t,r){(r!==n&&!ql(e[t],r)||r===n&&!(t in e))&&ai(e,t,r)}function ei(e,t,r){var i=e[t];(!(N.call(e,t)&&ql(i,r))||r===n&&!(t in e))&&ai(e,t,r)}function ti(e,t){for(var n=e.length;n--;)if(ql(e[n][0],t))return n;return-1}function ni(e,t,n,r){return pi(e,function(e,i,a){t(r,e,n(e),a)}),r}function ri(e,t){return e&&Ja(t,$(t),e)}function ii(e,t){return e&&Ja(t,ad(t),e)}function ai(e,t,n){t==`__proto__`&&At?At(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function oi(e,t){for(var r=-1,i=t.length,a=O(i),o=e==null;++r<i;)a[r]=o?n:$u(e,t[r]);return a}function si(e,t,r){return e===e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function ci(e,t,r,i,a,o){var s,c=t&1,l=t&2,u=t&4;if(r&&(s=a?r(e,i,a,o):r(e)),s!==n)return s;if(!Y(e))return e;var d=q(e);if(d){if(s=Wo(e),!c)return qa(e,s)}else{var f=Bo(e),p=f==D||f==re;if(eu(e))return La(e,c);if(f==se||f==S||p&&!a){if(s=l||p?{}:Go(e),!c)return l?Xa(e,ii(s,e)):Ya(e,ri(s,e))}else{if(!L[f])return a?e:{};s=Ko(e,f,c)}}o||=new Ur;var m=o.get(e);if(m)return m;o.set(e,s),Su(e)?e.forEach(function(n){s.add(ci(n,t,r,n,e,o))}):du(e)&&e.forEach(function(n,i){s.set(i,ci(n,t,r,i,e,o))});var h=d?n:(u?l?Ao:ko:l?ad:$)(e);return un(h||e,function(n,i){h&&(i=n,n=e[i]),ei(s,i,ci(n,t,r,i,e,o))}),s}function li(e){var t=$(e);return function(n){return ui(n,e,t)}}function ui(e,t,r){var i=r.length;if(e==null)return!i;for(e=A(e);i--;){var a=r[i],o=t[a],s=e[a];if(s===n&&!(a in e)||!o(s))return!1}return!0}function di(e,t,i){if(typeof e!=`function`)throw new ut(r);return ms(function(){e.apply(n,i)},t)}function fi(e,t,n,r){var i=-1,a=mn,o=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=H(t,Ln(n))),r?(a=hn,o=!1):t.length>=200&&(a=zn,o=!1,t=new Br(t));outer:for(;++i<s;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,o&&d===d){for(var f=l;f--;)if(t[f]===d)continue outer;c.push(u)}else a(t,d,r)||c.push(u)}return c}var pi=$a(Si),mi=$a(Ci,!0);function hi(e,t){var n=!0;return pi(e,function(e,r,i){return n=!!t(e,r,i),n}),n}function gi(e,t,r){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(s!=null&&(c===n?s===s&&!wu(s):r(s,c)))var c=s,l=o}return l}function _i(e,t,r,i){var a=e.length;for(r=Z(r),r<0&&(r=-r>a?0:a+r),i=i===n||i>a?a:Z(i),i<0&&(i+=a),i=r>i?0:Nu(i);r<i;)e[r++]=t;return e}function vi(e,t){var n=[];return pi(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function yi(e,t,n,r,i){var a=-1,o=e.length;for(n||=Jo,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?yi(s,t-1,n,r,i):gn(i,s):r||(i[i.length]=s)}return i}var bi=eo(),xi=eo(!0);function Si(e,t){return e&&bi(e,t,$)}function Ci(e,t){return e&&xi(e,t,$)}function wi(e,t){return pn(t,function(t){return cu(e[t])})}function Ti(e,t){t=Na(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[bs(t[r++])];return r&&r==i?e:n}function Ei(e,t,n){var r=t(e);return q(e)?r:gn(r,n(e))}function Di(e){return e==null?e===n?me:oe:kt&&kt in A(e)?Lo(e):cs(e)}function Oi(e,t){return e>t}function ki(e,t){return e!=null&&N.call(e,t)}function Ai(e,t){return e!=null&&t in A(e)}function ji(e,t,n){return e>=R(t,n)&&e<F(t,n)}function Mi(e,t,r){for(var i=r?hn:mn,a=e[0].length,o=e.length,s=o,c=O(o),l=1/0,u=[];s--;){var d=e[s];s&&t&&(d=H(d,Ln(t))),l=R(d.length,l),c[s]=!r&&(t||a>=120&&d.length>=120)?new Br(s&&d):n}d=e[0];var f=-1,p=c[0];outer:for(;++f<a&&u.length<l;){var m=d[f],h=t?t(m):m;if(m=r||m!==0?m:0,!(p?zn(p,h):i(u,h,r))){for(s=o;--s;){var g=c[s];if(!(g?zn(g,h):i(e[s],h,r)))continue outer}p&&p.push(h),u.push(m)}}return u}function Ni(e,t,n,r){return Si(e,function(e,i,a){t(r,n(e),i,a)}),r}function Pi(e,t,r){t=Na(t,e),e=us(e,t);var i=e==null?e:e[bs(Js(t))];return i==null?n:cn(i,e,r)}function Fi(e){return X(e)&&Di(e)==S}function Ii(e){return X(e)&&Di(e)==_e}function Li(e){return X(e)&&Di(e)==E}function Ri(e,t,n,r,i){return e===t?!0:e==null||t==null||!X(e)&&!X(t)?e!==e&&t!==t:zi(e,t,n,r,Ri,i)}function zi(e,t,n,r,i,a){var o=q(e),s=q(t),c=o?C:Bo(e),l=s?C:Bo(t);c=c==S?se:c,l=l==S?se:l;var u=c==se,d=l==se,f=c==l;if(f&&eu(e)){if(!eu(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new Ur,o||Tu(e)?To(e,t,n,r,i,a):Eo(e,t,c,n,r,i,a);if(!(n&1)){var p=u&&N.call(e,`__wrapped__`),m=d&&N.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new Ur,i(h,g,n,r,a)}}return f?(a||=new Ur,Do(e,t,n,r,i,a)):!1}function Bi(e){return X(e)&&Bo(e)==ie}function Vi(e,t,r,i){var a=r.length,o=a,s=!i;if(e==null)return!o;for(e=A(e);a--;){var c=r[a];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<o;){c=r[a];var l=c[0],u=e[l],d=c[1];if(s&&c[2]){if(u===n&&!(l in e))return!1}else{var f=new Ur;if(i)var p=i(u,d,l,e,t,f);if(!(p===n?Ri(d,u,3,i,f):p))return!1}}return!0}function Hi(e){return!Y(e)||es(e)?!1:(cu(e)?yt:et).test(xs(e))}function Ui(e){return X(e)&&Di(e)==ue}function Wi(e){return X(e)&&Bo(e)==de}function Gi(e){return X(e)&&uu(e.length)&&!!I[Di(e)]}function Ki(e){return typeof e==`function`?e:e==null?pf:typeof e==`object`?q(e)?Qi(e[0],e[1]):Zi(e):Ef(e)}function qi(e){if(!ns(e))return Ht(e);var t=[];for(var n in A(e))N.call(e,n)&&n!=`constructor`&&t.push(n);return t}function Ji(e){if(!Y(e))return ss(e);var t=ns(e),n=[];for(var r in e)r==`constructor`&&(t||!N.call(e,r))||n.push(r);return n}function Yi(e,t){return e<t}function Xi(e,t){var n=-1,r=Ql(e)?O(e.length):[];return pi(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function Zi(e){var t=Fo(e);return t.length==1&&t[0][2]?is(t[0][0],t[0][1]):function(n){return n===e||Vi(n,e,t)}}function Qi(e,t){return Zo(e)&&rs(t)?is(bs(e),t):function(r){var i=$u(r,e);return i===n&&i===t?td(r,e):Ri(t,i,3)}}function $i(e,t,r,i,a){e!==t&&bi(t,function(o,s){if(a||=new Ur,Y(o))ea(e,t,s,r,$i,i,a);else{var c=i?i(fs(e,s),o,s+``,e,t,a):n;c===n&&(c=o),$r(e,s,c)}},ad)}function ea(e,t,r,i,a,o,s){var c=fs(e,r),l=fs(t,r),u=s.get(l);if(u){$r(e,r,u);return}var d=o?o(c,l,r+``,e,t,s):n,f=d===n;if(f){var p=q(l),m=!p&&eu(l),h=!p&&!m&&Tu(l);d=l,p||m||h?q(c)?d=c:J(c)?d=qa(c):m?(f=!1,d=La(l,!0)):h?(f=!1,d=Ha(l,!0)):d=[]:yu(l)||Xl(l)?(d=c,Xl(c)?d=Fu(c):(!Y(c)||cu(c))&&(d=Go(l))):f=!1}f&&(s.set(l,d),a(d,l,i,o,s),s.delete(l)),$r(e,r,d)}function ta(e,t){var r=e.length;if(r)return t+=t<0?r:0,Yo(t,r)?e[t]:n}function na(e,t,n){t=t.length?H(t,function(e){return q(e)?function(t){return Ti(t,e.length===1?e[0]:e)}:e}):[pf];var r=-1;return t=H(t,Ln(K())),Mn(Xi(e,function(e,n,i){return{criteria:H(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return Wa(e,t,n)})}function ra(e,t){return ia(e,t,function(t,n){return td(e,n)})}function ia(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=Ti(e,o);n(s,o)&&pa(a,Na(o,e),s)}return a}function aa(e){return function(t){return Ti(t,e)}}function oa(e,t,n,r){var i=r?En:Tn,a=-1,o=t.length,s=e;for(e===t&&(t=qa(t)),n&&(s=H(e,Ln(n)));++a<o;)for(var c=0,l=t[a],u=n?n(l):l;(c=i(s,u,c,r))>-1;)s!==e&&Et.call(s,c,1),Et.call(e,c,1);return e}function sa(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;Yo(i)?Et.call(e,i,1):Ta(e,i)}}return e}function ca(e,t){return e+Ft(z()*(t-e+1))}function la(e,t,n,r){for(var i=-1,a=F(Pt((t-e)/(n||1)),0),o=O(a);a--;)o[r?a:++i]=e,e+=n;return o}function ua(e,t){var n=``;if(!e||t<1||t>g)return n;do t%2&&(n+=e),t=Ft(t/2),t&&(e+=e);while(t);return n}function G(e,t){return hs(ls(e,t,pf),e+``)}function da(e){return Xr(Cd(e))}function fa(e,t){var n=Cd(e);return vs(n,si(t,0,n.length))}function pa(e,t,r,i){if(!Y(e))return e;t=Na(t,e);for(var a=-1,o=t.length,s=o-1,c=e;c!=null&&++a<o;){var l=bs(t[a]),u=r;if(l===`__proto__`||l===`constructor`||l===`prototype`)return e;if(a!=s){var d=c[l];u=i?i(d,l,c):n,u===n&&(u=Y(d)?d:Yo(t[a+1])?[]:{})}ei(c,l,u),c=c[l]}return e}var ma=xn?function(e,t){return xn.set(e,t),e}:pf,ha=At?function(e,t){return At(e,`toString`,{configurable:!0,enumerable:!1,value:lf(t),writable:!0})}:pf;function ga(e){return vs(Cd(e))}function _a(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=O(i);++r<i;)a[r]=e[r+t];return a}function va(e,t){var n;return pi(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function ya(e,t,n){var r=0,i=e==null?r:e.length;if(typeof t==`number`&&t===t&&i<=x){for(;r<i;){var a=r+i>>>1,o=e[a];o!==null&&!wu(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return ba(e,t,pf,n)}function ba(e,t,r,i){var a=0,o=e==null?0:e.length;if(o===0)return 0;t=r(t);for(var s=t!==t,c=t===null,l=wu(t),u=t===n;a<o;){var d=Ft((a+o)/2),f=r(e[d]),p=f!==n,m=f===null,h=f===f,g=wu(f);if(s)var _=i||h;else _=u?h&&(i||p):c?h&&p&&(i||!m):l?h&&p&&!m&&(i||!g):m||g?!1:i?f<=t:f<t;_?a=d+1:o=d}return R(o,b)}function xa(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!ql(s,c)){var c=s;a[i++]=o===0?0:o}}return a}function Sa(e){return typeof e==`number`?e:wu(e)?v:+e}function Ca(e){if(typeof e==`string`)return e;if(q(e))return H(e,Ca)+``;if(wu(e))return hr?hr.call(e):``;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function wa(e,t,n){var r=-1,i=mn,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=hn;else if(a>=200){var l=t?null:yo(e);if(l)return $n(l);o=!1,i=zn,c=new Br}else c=t?[]:s;outer:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue outer;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}function Ta(e,t){return t=Na(t,e),e=us(e,t),e==null||delete e[bs(Js(t))]}function Ea(e,t,n,r){return pa(e,t,n(Ti(e,t)),r)}function Da(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?_a(e,r?0:a,r?a+1:i):_a(e,r?a+1:0,r?i:a)}function Oa(e,t){var n=e;return n instanceof W&&(n=n.value()),_n(t,function(e,t){return t.func.apply(t.thisArg,gn([e],t.args))},n)}function ka(e,t,n){var r=e.length;if(r<2)return r?wa(e[0]):[];for(var i=-1,a=O(r);++i<r;)for(var o=e[i],s=-1;++s<r;)s!=i&&(a[i]=fi(a[i]||o,e[s],t,n));return wa(yi(a,1),t,n)}function Aa(e,t,r){for(var i=-1,a=e.length,o=t.length,s={};++i<a;){var c=i<o?t[i]:n;r(s,e[i],c)}return s}function ja(e){return J(e)?e:[]}function Ma(e){return typeof e==`function`?e:pf}function Na(e,t){return q(e)?e:Zo(e,t)?[e]:ys(Q(e))}var Pa=G;function Fa(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:_a(e,t,r)}var Ia=jt||function(e){return B.clearTimeout(e)};function La(e,t){if(t)return e.slice();var n=e.length,r=St?St(n):new e.constructor(n);return e.copy(r),r}function Ra(e){var t=new e.constructor(e.byteLength);return new xt(t).set(new xt(e)),t}function za(e,t){var n=t?Ra(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Ba(e){var t=new e.constructor(e.source,Ze.exec(e));return t.lastIndex=e.lastIndex,t}function Va(e){return mr?A(mr.call(e)):{}}function Ha(e,t){var n=t?Ra(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ua(e,t){if(e!==t){var r=e!==n,i=e===null,a=e===e,o=wu(e),s=t!==n,c=t===null,l=t===t,u=wu(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||i&&s&&l||!r&&l||!a)return 1;if(!i&&!o&&!u&&e<t||u&&r&&a&&!i&&!o||c&&r&&a||!s&&a||!l)return-1}return 0}function Wa(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=Ua(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}function Ga(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,c=t.length,l=F(a-o,0),u=O(c+l),d=!r;++s<c;)u[s]=t[s];for(;++i<o;)(d||i<a)&&(u[n[i]]=e[i]);for(;l--;)u[s++]=e[i++];return u}function Ka(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,c=-1,l=t.length,u=F(a-s,0),d=O(u+l),f=!r;++i<u;)d[i]=e[i];for(var p=i;++c<l;)d[p+c]=t[c];for(;++o<s;)(f||i<a)&&(d[p+n[o]]=e[i++]);return d}function qa(e,t){var n=-1,r=e.length;for(t||=O(r);++n<r;)t[n]=e[n];return t}function Ja(e,t,r,i){var a=!r;r||={};for(var o=-1,s=t.length;++o<s;){var c=t[o],l=i?i(r[c],e[c],c,r,e):n;l===n&&(l=e[c]),a?ai(r,c,l):ei(r,c,l)}return r}function Ya(e,t){return Ja(e,Ro(e),t)}function Xa(e,t){return Ja(e,zo(e),t)}function Za(e,t){return function(n,r){var i=q(n)?ln:ni,a=t?t():{};return i(n,e,K(r,2),a)}}function Qa(e){return G(function(t,r){var i=-1,a=r.length,o=a>1?r[a-1]:n,s=a>2?r[2]:n;for(o=e.length>3&&typeof o==`function`?(a--,o):n,s&&Xo(r[0],r[1],s)&&(o=a<3?n:o,a=1),t=A(t);++i<a;){var c=r[i];c&&e(t,c,i,o)}return t})}function $a(e,t){return function(n,r){if(n==null)return n;if(!Ql(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=A(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}function eo(e){return function(t,n,r){for(var i=-1,a=A(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function to(e,t,n){var r=t&o,i=io(e);function a(){return(this&&this!==B&&this instanceof a?i:e).apply(r?n:this,arguments)}return a}function no(e){return function(t){t=Q(t);var r=qn(t)?ir(t):n,i=r?r[0]:t.charAt(0),a=r?Fa(r,1).join(``):t.slice(1);return i[e]()+a}}function ro(e){return function(t){return _n(rf(Ad(t).replace(Rt,``)),e,``)}}function io(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=gr(e.prototype),r=e.apply(n,t);return Y(r)?r:n}}function ao(e,t,r){var i=io(e);function a(){for(var o=arguments.length,s=O(o),c=o,l=No(a);c--;)s[c]=arguments[c];var u=o<3&&s[0]!==l&&s[o-1]!==l?[]:Qn(s,l);return o-=u.length,o<r?_o(e,t,co,a.placeholder,n,s,u,n,n,r-o):cn(this&&this!==B&&this instanceof a?i:e,this,s)}return a}function oo(e){return function(t,r,i){var a=A(t);if(!Ql(t)){var o=K(r,3);t=$(t),r=function(e){return o(a[e],e,a)}}var s=e(t,r,i);return s>-1?a[o?t[s]:s]:n}}function so(e){return Oo(function(t){var i=t.length,a=i,o=vr.prototype.thru;for(e&&t.reverse();a--;){var s=t[a];if(typeof s!=`function`)throw new ut(r);if(o&&!l&&Mo(s)==`wrapper`)var l=new vr([],!0)}for(a=l?a:i;++a<i;){s=t[a];var d=Mo(s),m=d==`wrapper`?jo(s):n;l=m&&$o(m[0])&&m[1]==(f|c|u|p)&&!m[4].length&&m[9]==1?l[Mo(m[0])].apply(l,m[3]):s.length==1&&$o(s)?l[d]():l.thru(s)}return function(){var e=arguments,n=e[0];if(l&&e.length==1&&q(n))return l.plant(n).value();for(var r=0,a=i?t[r].apply(this,e):n;++r<i;)a=t[r].call(this,a);return a}})}function co(e,t,r,i,a,u,d,p,h,g){var _=t&f,v=t&o,y=t&s,b=t&(c|l),x=t&m,ee=y?n:io(e);function S(){for(var n=arguments.length,o=O(n),s=n;s--;)o[s]=arguments[s];if(b)var c=No(S),l=Hn(o,c);if(i&&(o=Ga(o,i,a,b)),u&&(o=Ka(o,u,d,b)),n-=l,b&&n<g){var f=Qn(o,c);return _o(e,t,co,S.placeholder,r,o,f,p,h,g-n)}var m=v?r:this,C=y?m[e]:e;return n=o.length,p?o=ds(o,p):x&&n>1&&o.reverse(),_&&h<n&&(o.length=h),this&&this!==B&&this instanceof S&&(C=ee||io(C)),C.apply(m,o)}return S}function lo(e,t){return function(n,r){return Ni(n,e,t(r),{})}}function uo(e,t){return function(r,i){var a;if(r===n&&i===n)return t;if(r!==n&&(a=r),i!==n){if(a===n)return i;typeof r==`string`||typeof i==`string`?(r=Ca(r),i=Ca(i)):(r=Sa(r),i=Sa(i)),a=e(r,i)}return a}}function fo(e){return Oo(function(t){return t=H(t,Ln(K())),G(function(n){var r=this;return e(t,function(e){return cn(e,r,n)})})})}function po(e,t){t=t===n?` `:Ca(t);var r=t.length;if(r<2)return r?ua(t,e):t;var i=ua(t,Pt(e/rr(t)));return qn(t)?Fa(ir(i),0,e).join(``):i.slice(0,e)}function mo(e,t,n,r){var i=t&o,a=io(e);function s(){for(var t=-1,o=arguments.length,c=-1,l=r.length,u=O(l+o),d=this&&this!==B&&this instanceof s?a:e;++c<l;)u[c]=r[c];for(;o--;)u[c++]=arguments[++t];return cn(d,i?n:this,u)}return s}function ho(e){return function(t,r,i){return i&&typeof i!=`number`&&Xo(t,r,i)&&(r=i=n),t=Mu(t),r===n?(r=t,t=0):r=Mu(r),i=i===n?t<r?1:-1:Mu(i),la(t,r,i,e)}}function go(e){return function(t,n){return(typeof t!=`string`||typeof n!=`string`)&&(t=Pu(t),n=Pu(n)),e(t,n)}}function _o(e,t,r,i,a,l,f,p,m,h){var g=t&c,_=g?f:n,v=g?n:f,y=g?l:n,b=g?n:l;t|=g?u:d,t&=~(g?d:u),t&4||(t&=~(o|s));var x=[e,t,a,y,_,b,v,p,m,h],ee=r.apply(n,x);return $o(e)&&ps(ee,x),ee.placeholder=i,gs(ee,e,t)}function vo(e){var t=st[e];return function(e,n){if(e=Pu(e),n=n==null?0:R(Z(n),292),n&&Bt(e)){var r=(Q(e)+`e`).split(`e`);return r=(Q(t(r[0]+`e`+(+r[1]+n)))+`e`).split(`e`),+(r[0]+`e`+(+r[1]-n))}return t(e)}}var yo=en&&1/$n(new en([,-0]))[1]==h?function(e){return new en(e)}:xf;function bo(e){return function(t){var n=Bo(t);return n==ie?Xn(t):n==de?er(t):Fn(t,e(t))}}function xo(e,t,i,a,f,p,m,h){var g=t&s;if(!g&&typeof e!=`function`)throw new ut(r);var _=a?a.length:0;if(_||(t&=~(u|d),a=f=n),m=m===n?m:F(Z(m),0),h=h===n?h:Z(h),_-=f?f.length:0,t&d){var v=a,y=f;a=f=n}var b=g?n:jo(e),x=[e,t,i,a,f,v,y,p,m,h];if(b&&os(x,b),e=x[0],t=x[1],i=x[2],a=x[3],f=x[4],h=x[9]=x[9]===n?g?0:e.length:F(x[9]-_,0),!h&&t&(c|l)&&(t&=~(c|l)),!t||t==o)var ee=to(e,t,i);else ee=t==c||t==l?ao(e,t,h):(t==u||t==(o|u))&&!f.length?mo(e,t,i,a):co.apply(n,x);return gs((b?ma:ps)(ee,x),e,t)}function So(e,t,r,i){return e===n||ql(e,pt[r])&&!N.call(i,r)?t:e}function Co(e,t,r,i,a,o){return Y(e)&&Y(t)&&(o.set(t,e),$i(e,t,n,Co,o),o.delete(t)),e}function wo(e){return yu(e)?n:e}function To(e,t,r,i,a,o){var s=r&1,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,m=r&2?new Br:n;for(o.set(e,t),o.set(t,e);++f<c;){var h=e[f],g=t[f];if(i)var _=s?i(g,h,f,t,e,o):i(h,g,f,e,t,o);if(_!==n){if(_)continue;p=!1;break}if(m){if(!yn(t,function(e,t){if(!zn(m,t)&&(h===e||a(h,e,r,i,o)))return m.push(t)})){p=!1;break}}else if(!(h===g||a(h,g,r,i,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function Eo(e,t,n,r,i,a,o){switch(n){case ve:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _e:return!(e.byteLength!=t.byteLength||!a(new xt(e),new xt(t)));case T:case E:case ae:return ql(+e,+t);case ne:return e.name==t.name&&e.message==t.message;case ue:case fe:return e==t+``;case ie:var s=Xn;case de:var c=r&1;if(s||=$n,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=2,o.set(e,t);var u=To(s(e),s(t),r,i,a,o);return o.delete(e),u;case pe:if(mr)return mr.call(e)==mr.call(t)}return!1}function Do(e,t,r,i,a,o){var s=r&1,c=ko(e),l=c.length;if(l!=ko(t).length&&!s)return!1;for(var u=l;u--;){var d=c[u];if(!(s?d in t:N.call(t,d)))return!1}var f=o.get(e),p=o.get(t);if(f&&p)return f==t&&p==e;var m=!0;o.set(e,t),o.set(t,e);for(var h=s;++u<l;){d=c[u];var g=e[d],_=t[d];if(i)var v=s?i(_,g,d,t,e,o):i(g,_,d,e,t,o);if(!(v===n?g===_||a(g,_,r,i,o):v)){m=!1;break}h||=d==`constructor`}if(m&&!h){var y=e.constructor,b=t.constructor;y!=b&&`constructor`in e&&`constructor`in t&&!(typeof y==`function`&&y instanceof y&&typeof b==`function`&&b instanceof b)&&(m=!1)}return o.delete(e),o.delete(t),m}function Oo(e){return hs(ls(e,n,Ls),e+``)}function ko(e){return Ei(e,$,Ro)}function Ao(e){return Ei(e,ad,zo)}var jo=xn?function(e){return xn.get(e)}:xf;function Mo(e){for(var t=e.name+``,n=An[t],r=N.call(An,t)?n.length:0;r--;){var i=n[r],a=i.func;if(a==null||a==e)return i.name}return t}function No(e){return(N.call(U,`placeholder`)?U:e).placeholder}function K(){var e=U.iteratee||mf;return e=e===mf?Ki:e,arguments.length?e(arguments[0],arguments[1]):e}function Po(e,t){var n=e.__data__;return Qo(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Fo(e){for(var t=$(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,rs(i)]}return t}function Io(e,t){var r=Kn(e,t);return Hi(r)?r:n}function Lo(e){var t=N.call(e,kt),r=e[kt];try{e[kt]=n;var i=!0}catch{}var a=gt.call(e);return i&&(t?e[kt]=r:delete e[kt]),a}var Ro=It?function(e){return e==null?[]:(e=A(e),pn(It(e),function(t){return Tt.call(e,t)}))}:Af,zo=It?function(e){for(var t=[];e;)gn(t,Ro(e)),e=Ct(e);return t}:Af,Bo=Di;(Xt&&Bo(new Xt(new ArrayBuffer(1)))!=ve||Zt&&Bo(new Zt)!=ie||Qt&&Bo(Qt.resolve())!=ce||en&&Bo(new en)!=de||V&&Bo(new V)!=he)&&(Bo=function(e){var t=Di(e),r=t==se?e.constructor:n,i=r?xs(r):``;if(i)switch(i){case tr:return ve;case sr:return ie;case cr:return ce;case dr:return de;case fr:return he}return t});function Vo(e,t,n){for(var r=-1,i=n.length;++r<i;){var a=n[r],o=a.size;switch(a.type){case`drop`:e+=o;break;case`dropRight`:t-=o;break;case`take`:t=R(t,e+o);break;case`takeRight`:e=F(e,t-o)}}return{start:e,end:t}}function Ho(e){var t=e.match(Ge);return t?t[1].split(Ke):[]}function Uo(e,t,n){t=Na(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=bs(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&uu(i)&&Yo(o,i)&&(q(e)||Xl(e)))}function Wo(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&N.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function Go(e){return typeof e.constructor==`function`&&!ns(e)?gr(Ct(e)):{}}function Ko(e,t,n){var r=e.constructor;switch(t){case _e:return Ra(e);case T:case E:return new r(+e);case ve:return za(e,n);case ye:case be:case xe:case Se:case Ce:case we:case Te:case Ee:case De:return Ha(e,n);case ie:return new r;case ae:case fe:return new r(e);case ue:return Ba(e);case de:return new r;case pe:return Va(e)}}function qo(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?`& `:``)+t[r],t=t.join(n>2?`, `:` `),e.replace(We,`{
|
|
15
15
|
/* [wrapped with `+t+`] */
|
|
16
|
-
`)}function Jo(e){return q(e)||Xl(e)||!!(Dt&&e&&e[Dt])}function Yo(e,t){var n=typeof e;return t??=g,!!t&&(n==`number`||n!=`symbol`&&tt.test(e))&&e>-1&&e%1==0&&e<t}function Xo(e,t,n){if(!Y(n))return!1;var r=typeof t;return(r==`number`?Ql(n)&&Yo(t,n.length):r==`string`&&t in n)?ql(n[t],e):!1}function Zo(e,t){if(q(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||wu(e)?!0:ze.test(e)||!Re.test(e)||t!=null&&e in A(t)}function Qo(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function $o(e){var t=Mo(e),n=H[t];if(typeof n!=`function`||!(t in U.prototype))return!1;if(e===n)return!0;var r=jo(n);return!!r&&e===r[0]}function es(e){return!!P&&P in e}var ts=ft?cu:jf;function ns(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||dt)}function rs(e){return e===e&&!Y(e)}function is(e,t){return function(r){return r!=null&&r[e]===t&&(t!==n||e in A(r))}}function as(e){var t=kl(e,function(e){return n.size===500&&n.clear(),e}),n=t.cache;return t}function os(e,t){var n=e[1],r=t[1],i=n|r,l=i<(o|s|f),u=r==f&&n==c||r==f&&n==p&&e[7].length<=t[8]||r==(f|p)&&t[7].length<=t[8]&&n==c;if(!(l||u))return e;r&o&&(e[2]=t[2],i|=n&o?0:4);var d=t[3];if(d){var m=e[3];e[3]=m?Ga(m,d,t[4]):d,e[4]=m?$n(e[3],a):t[4]}return d=t[5],d&&(m=e[5],e[5]=m?Ka(m,d,t[6]):d,e[6]=m?$n(e[5],a):t[6]),d=t[7],d&&(e[7]=d),r&f&&(e[8]=e[8]==null?t[8]:R(e[8],t[8])),e[9]??=t[9],e[0]=t[0],e[1]=i,e}function ss(e){var t=[];if(e!=null)for(var n in A(e))t.push(n);return t}function cs(e){return ht.call(e)}function ls(e,t,r){return t=F(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=F(n.length-t,0),o=O(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=O(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),ln(e,this,s)}}function us(e,t){return t.length<2?e:Ti(e,_a(t,0,-1))}function ds(e,t){for(var r=e.length,i=R(t.length,r),a=qa(e);i--;){var o=t[i];e[i]=Yo(o,r)?a[o]:n}return e}function fs(e,t){if((t!==`constructor`||typeof e[t]!=`function`)&&t!=`__proto__`)return e[t]}var ps=_s(ma),ms=Nt||function(e,t){return z.setTimeout(e,t)},hs=_s(ha);function gs(e,t,n){var r=t+``;return hs(e,qo(r,Ss(Ho(r),n)))}function _s(e){var t=0,r=0;return function(){var i=Gt(),a=16-(i-r);if(r=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function vs(e,t){var r=-1,i=e.length,a=i-1;for(t=t===n?i:t;++r<t;){var o=ca(r,a),s=e[o];e[o]=e[r],e[r]=s}return e.length=t,e}var ys=as(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Be,function(e,n,r,i){t.push(r?i.replace(Ye,`$1`):n||e)}),t});function bs(e){if(typeof e==`string`||wu(e))return e;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function xs(e){if(e!=null){try{return pt.call(e)}catch{}try{return e+``}catch{}}return``}function Ss(e,t){return dn(ee,function(n){var r=`_.`+n[0];t&n[1]&&!hn(e,r)&&e.push(r)}),e.sort()}function Cs(e){if(e instanceof U)return e.clone();var t=new yr(e.__wrapped__,e.__chain__);return t.__actions__=qa(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function ws(e,t,r){t=(r?Xo(e,t,r):t===n)?1:F(Z(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var a=0,o=0,s=O(Pt(i/t));a<i;)s[o++]=_a(e,a,a+=t);return s}function Ts(e){for(var t=-1,n=e==null?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i}function Es(){var e=arguments.length;if(!e)return[];for(var t=O(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return _n(q(n)?qa(n):[n],W(t,1))}var Ds=G(function(e,t){return J(e)?pi(e,W(t,1,J,!0)):[]}),Os=G(function(e,t){var r=Js(t);return J(r)&&(r=n),J(e)?pi(e,W(t,1,J,!0),K(r,2)):[]}),ks=G(function(e,t){var r=Js(t);return J(r)&&(r=n),J(e)?pi(e,W(t,1,J,!0),n,r):[]});function As(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Z(t),_a(e,t<0?0:t,i)):[]}function js(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Z(t),t=i-t,_a(e,0,t<0?0:t)):[]}function Ms(e,t){return e&&e.length?Da(e,K(t,3),!0,!0):[]}function Ns(e,t){return e&&e.length?Da(e,K(t,3),!0):[]}function Ps(e,t,n,r){var i=e==null?0:e.length;return i?(n&&typeof n!=`number`&&Xo(e,t,n)&&(n=0,r=i),vi(e,t,n,r)):[]}function Fs(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Z(n);return i<0&&(i=F(r+i,0)),Tn(e,K(t,3),i)}function Is(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i-1;return r!==n&&(a=Z(r),a=r<0?F(i+a,0):R(a,i-1)),Tn(e,K(t,3),a,!0)}function Ls(e){return e!=null&&e.length?W(e,1):[]}function Rs(e){return e!=null&&e.length?W(e,h):[]}function zs(e,t){return e!=null&&e.length?(t=t===n?1:Z(t),W(e,t)):[]}function Bs(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}function Vs(e){return e&&e.length?e[0]:n}function Hs(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Z(n);return i<0&&(i=F(r+i,0)),En(e,t,i)}function Us(e){return e!=null&&e.length?_a(e,0,-1):[]}var Ws=G(function(e){var t=V(e,ja);return t.length&&t[0]===e[0]?Mi(t):[]}),Gs=G(function(e){var t=Js(e),r=V(e,ja);return t===Js(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Mi(r,K(t,2)):[]}),Ks=G(function(e){var t=Js(e),r=V(e,ja);return t=typeof t==`function`?t:n,t&&r.pop(),r.length&&r[0]===e[0]?Mi(r,n,t):[]});function qs(e,t){return e==null?``:Vt.call(e,t)}function Js(e){var t=e==null?0:e.length;return t?e[t-1]:n}function Ys(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i;return r!==n&&(a=Z(r),a=a<0?F(i+a,0):R(a,i-1)),t===t?rr(e,t,a):Tn(e,On,a,!0)}function Xs(e,t){return e&&e.length?ta(e,Z(t)):n}var Zs=G(Qs);function Qs(e,t){return e&&e.length&&t&&t.length?oa(e,t):e}function $s(e,t,n){return e&&e.length&&t&&t.length?oa(e,t,K(n,2)):e}function ec(e,t,r){return e&&e.length&&t&&t.length?oa(e,t,n,r):e}var tc=Oo(function(e,t){var n=e==null?0:e.length,r=si(e,t);return sa(e,V(t,function(e){return Yo(e,n)?+e:e}).sort(Ua)),r});function nc(e,t){var n=[];if(!(e&&e.length))return n;var r=-1,i=[],a=e.length;for(t=K(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return sa(e,i),n}function rc(e){return e==null?e:Xt.call(e)}function ic(e,t,r){var i=e==null?0:e.length;return i?(r&&typeof r!=`number`&&Xo(e,t,r)?(t=0,r=i):(t=t==null?0:Z(t),r=r===n?i:Z(r)),_a(e,t,r)):[]}function ac(e,t){return ya(e,t)}function oc(e,t,n){return ba(e,t,K(n,2))}function sc(e,t){var n=e==null?0:e.length;if(n){var r=ya(e,t);if(r<n&&ql(e[r],t))return r}return-1}function cc(e,t){return ya(e,t,!0)}function lc(e,t,n){return ba(e,t,K(n,2),!0)}function uc(e,t){if(e!=null&&e.length){var n=ya(e,t,!0)-1;if(ql(e[n],t))return n}return-1}function dc(e){return e&&e.length?xa(e):[]}function fc(e,t){return e&&e.length?xa(e,K(t,2)):[]}function pc(e){var t=e==null?0:e.length;return t?_a(e,1,t):[]}function mc(e,t,r){return e&&e.length?(t=r||t===n?1:Z(t),_a(e,0,t<0?0:t)):[]}function hc(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Z(t),t=i-t,_a(e,t<0?0:t,i)):[]}function gc(e,t){return e&&e.length?Da(e,K(t,3),!1,!0):[]}function _c(e,t){return e&&e.length?Da(e,K(t,3)):[]}var vc=G(function(e){return wa(W(e,1,J,!0))}),yc=G(function(e){var t=Js(e);return J(t)&&(t=n),wa(W(e,1,J,!0),K(t,2))}),bc=G(function(e){var t=Js(e);return t=typeof t==`function`?t:n,wa(W(e,1,J,!0),n,t)});function xc(e){return e&&e.length?wa(e):[]}function Sc(e,t){return e&&e.length?wa(e,K(t,2)):[]}function Cc(e,t){return t=typeof t==`function`?t:n,e&&e.length?wa(e,n,t):[]}function wc(e){if(!(e&&e.length))return[];var t=0;return e=mn(e,function(e){if(J(e))return t=F(e.length,t),!0}),Fn(t,function(t){return V(e,An(t))})}function Tc(e,t){if(!(e&&e.length))return[];var r=wc(e);return t==null?r:V(r,function(e){return ln(t,n,e)})}var Ec=G(function(e,t){return J(e)?pi(e,t):[]}),Dc=G(function(e){return ka(mn(e,J))}),Oc=G(function(e){var t=Js(e);return J(t)&&(t=n),ka(mn(e,J),K(t,2))}),kc=G(function(e){var t=Js(e);return t=typeof t==`function`?t:n,ka(mn(e,J),n,t)}),Ac=G(wc);function jc(e,t){return Aa(e||[],t||[],ti)}function Mc(e,t){return Aa(e||[],t||[],pa)}var Nc=G(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r==`function`?(e.pop(),r):n,Tc(e,r)});function Pc(e){var t=H(e);return t.__chain__=!0,t}function Fc(e,t){return t(e),e}function Ic(e,t){return t(e)}var Lc=Oo(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,a=function(t){return si(t,e)};return t>1||this.__actions__.length||!(i instanceof U)||!Yo(r)?this.thru(a):(i=i.slice(r,+r+ +!!t),i.__actions__.push({func:Ic,args:[a],thisArg:n}),new yr(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(n),e}))});function Rc(){return Pc(this)}function zc(){return new yr(this.value(),this.__chain__)}function Bc(){this.__values__===n&&(this.__values__=ju(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}}function Vc(){return this}function Hc(e){for(var t,r=this;r instanceof vr;){var i=Cs(r);i.__index__=0,i.__values__=n,t?a.__wrapped__=i:t=i;var a=i;r=r.__wrapped__}return a.__wrapped__=e,t}function Uc(){var e=this.__wrapped__;if(e instanceof U){var t=e;return this.__actions__.length&&(t=new U(this)),t=t.reverse(),t.__actions__.push({func:Ic,args:[rc],thisArg:n}),new yr(t,this.__chain__)}return this.thru(rc)}function Wc(){return Oa(this.__wrapped__,this.__actions__)}var Gc=Za(function(e,t,n){N.call(e,n)?++e[n]:oi(e,n,1)});function Kc(e,t,r){var i=q(e)?pn:gi;return r&&Xo(e,t,r)&&(t=n),i(e,K(t,3))}function qc(e,t){return(q(e)?mn:yi)(e,K(t,3))}var Jc=oo(Fs),Yc=oo(Is);function Xc(e,t){return W(al(e,t),1)}function Zc(e,t){return W(al(e,t),h)}function Qc(e,t,r){return r=r===n?1:Z(r),W(al(e,t),r)}function $c(e,t){return(q(e)?dn:mi)(e,K(t,3))}function el(e,t){return(q(e)?fn:hi)(e,K(t,3))}var tl=Za(function(e,t,n){N.call(e,n)?e[n].push(t):oi(e,n,[t])});function nl(e,t,n,r){e=Ql(e)?e:Cd(e),n=n&&!r?Z(n):0;var i=e.length;return n<0&&(n=F(i+n,0)),Cu(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&En(e,t,n)>-1}var rl=G(function(e,t,n){var r=-1,i=typeof t==`function`,a=Ql(e)?O(e.length):[];return mi(e,function(e){a[++r]=i?ln(t,e,n):Pi(e,t,n)}),a}),il=Za(function(e,t,n){oi(e,n,t)});function al(e,t){return(q(e)?V:Xi)(e,K(t,3))}function ol(e,t,r,i){return e==null?[]:(q(t)||(t=t==null?[]:[t]),r=i?n:r,q(r)||(r=r==null?[]:[r]),na(e,t,r))}var sl=Za(function(e,t,n){e[+!n].push(t)},function(){return[[],[]]});function cl(e,t,n){var r=q(e)?vn:Mn,i=arguments.length<3;return r(e,K(t,4),n,i,mi)}function ll(e,t,n){var r=q(e)?yn:Mn,i=arguments.length<3;return r(e,K(t,4),n,i,hi)}function ul(e,t){return(q(e)?mn:yi)(e,Al(K(t,3)))}function dl(e){return(q(e)?Zr:da)(e)}function fl(e,t,r){return t=(r?Xo(e,t,r):t===n)?1:Z(t),(q(e)?Qr:fa)(e,t)}function pl(e){return(q(e)?$r:ga)(e)}function ml(e){if(e==null)return 0;if(Ql(e))return Cu(e)?ir(e):e.length;var t=Bo(e);return t==ie||t==de?e.size:qi(e).length}function hl(e,t,r){var i=q(e)?bn:va;return r&&Xo(e,t,r)&&(t=n),i(e,K(t,3))}var gl=G(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Xo(e,t[0],t[1])?t=[]:n>2&&Xo(t[0],t[1],t[2])&&(t=[t[0]]),na(e,W(t,1),[])}),_l=Mt||function(){return z.Date.now()};function vl(e,t){if(typeof t!=`function`)throw new ut(r);return e=Z(e),function(){if(--e<1)return t.apply(this,arguments)}}function yl(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,xo(e,f,n,n,n,n,t)}function bl(e,t){var i;if(typeof t!=`function`)throw new ut(r);return e=Z(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var xl=G(function(e,t,n){var r=o;if(n.length){var i=$n(n,No(xl));r|=u}return xo(e,r,t,n,i)}),Sl=G(function(e,t,n){var r=o|s;if(n.length){var i=$n(n,No(Sl));r|=u}return xo(t,r,e,n,i)});function Cl(e,t,r){t=r?n:t;var i=xo(e,c,n,n,n,n,n,t);return i.placeholder=Cl.placeholder,i}function wl(e,t,r){t=r?n:t;var i=xo(e,l,n,n,n,n,n,t);return i.placeholder=wl.placeholder,i}function Tl(e,t,i){var a,o,s,c,l,u,d=0,f=!1,p=!1,m=!0;if(typeof e!=`function`)throw new ut(r);t=Pu(t)||0,Y(i)&&(f=!!i.leading,p=`maxWait`in i,s=p?F(Pu(i.maxWait)||0,t):s,m=`trailing`in i?!!i.trailing:m);function h(t){var r=a,i=o;return a=o=n,d=t,c=e.apply(i,r),c}function g(e){return d=e,l=ms(y,t),f?h(e):c}function _(e){var n=e-u,r=e-d,i=t-n;return p?R(i,s-r):i}function v(e){var r=e-u,i=e-d;return u===n||r>=t||r<0||p&&i>=s}function y(){var e=_l();if(v(e))return b(e);l=ms(y,_(e))}function b(e){return l=n,m&&a?h(e):(a=o=n,c)}function x(){l!==n&&Ia(l),d=0,a=u=o=l=n}function ee(){return l===n?c:b(_l())}function S(){var e=_l(),r=v(e);if(a=arguments,o=this,u=e,r){if(l===n)return g(u);if(p)return Ia(l),l=ms(y,t),h(u)}return l===n&&(l=ms(y,t)),c}return S.cancel=x,S.flush=ee,S}var El=G(function(e,t){return fi(e,1,t)}),Dl=G(function(e,t,n){return fi(e,Pu(t)||0,n)});function Ol(e){return xo(e,m)}function kl(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw new ut(r);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(kl.Cache||Fr),n}kl.Cache=Fr;function Al(e){if(typeof e!=`function`)throw new ut(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function jl(e){return bl(2,e)}var Ml=Pa(function(e,t){t=t.length==1&&q(t[0])?V(t[0],Rn(K())):V(W(t,1),Rn(K()));var n=t.length;return G(function(r){for(var i=-1,a=R(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return ln(e,this,r)})}),Nl=G(function(e,t){return xo(e,u,n,t,$n(t,No(Nl)))}),Pl=G(function(e,t){return xo(e,d,n,t,$n(t,No(Pl)))}),Fl=Oo(function(e,t){return xo(e,p,n,n,n,t)});function Il(e,t){if(typeof e!=`function`)throw new ut(r);return t=t===n?t:Z(t),G(e,t)}function Ll(e,t){if(typeof e!=`function`)throw new ut(r);return t=t==null?0:F(Z(t),0),G(function(n){var r=n[t],i=Fa(n,0,t);return r&&_n(i,r),ln(e,this,i)})}function Rl(e,t,n){var i=!0,a=!0;if(typeof e!=`function`)throw new ut(r);return Y(n)&&(i=`leading`in n?!!n.leading:i,a=`trailing`in n?!!n.trailing:a),Tl(e,t,{leading:i,maxWait:t,trailing:a})}function zl(e){return yl(e,1)}function Bl(e,t){return Nl(Ma(t),e)}function Vl(){if(!arguments.length)return[];var e=arguments[0];return q(e)?e:[e]}function Hl(e){return li(e,4)}function Ul(e,t){return t=typeof t==`function`?t:n,li(e,4,t)}function Wl(e){return li(e,5)}function Gl(e,t){return t=typeof t==`function`?t:n,li(e,5,t)}function Kl(e,t){return t==null||di(e,t,$(t))}function ql(e,t){return e===t||e!==e&&t!==t}var Jl=go(Oi),Yl=go(function(e,t){return e>=t}),Xl=Fi(function(){return arguments}())?Fi:function(e){return X(e)&&N.call(e,`callee`)&&!Tt.call(e,`callee`)},q=O.isArray,Zl=nn?Rn(nn):Ii;function Ql(e){return e!=null&&uu(e.length)&&!cu(e)}function J(e){return X(e)&&Ql(e)}function $l(e){return e===!0||e===!1||X(e)&&Di(e)==T}var eu=Lt||jf,tu=rn?Rn(rn):Li;function nu(e){return X(e)&&e.nodeType===1&&!yu(e)}function ru(e){if(e==null)return!0;if(Ql(e)&&(q(e)||typeof e==`string`||typeof e.splice==`function`||eu(e)||Tu(e)||Xl(e)))return!e.length;var t=Bo(e);if(t==ie||t==de)return!e.size;if(ns(e))return!qi(e).length;for(var n in e)if(N.call(e,n))return!1;return!0}function iu(e,t){return Ri(e,t)}function au(e,t,r){r=typeof r==`function`?r:n;var i=r?r(e,t):n;return i===n?Ri(e,t,n,r):!!i}function ou(e){if(!X(e))return!1;var t=Di(e);return t==ne||t==te||typeof e.message==`string`&&typeof e.name==`string`&&!yu(e)}function su(e){return typeof e==`number`&&Bt(e)}function cu(e){if(!Y(e))return!1;var t=Di(e);return t==D||t==re||t==w||t==le}function lu(e){return typeof e==`number`&&e==Z(e)}function uu(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=g}function Y(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function X(e){return typeof e==`object`&&!!e}var du=an?Rn(an):Bi;function fu(e,t){return e===t||Vi(e,t,Fo(t))}function pu(e,t,r){return r=typeof r==`function`?r:n,Vi(e,t,Fo(t),r)}function mu(e){return vu(e)&&e!=+e}function hu(e){if(ts(e))throw new at(`Unsupported core-js use. Try https://npms.io/search?q=ponyfill.`);return Hi(e)}function gu(e){return e===null}function _u(e){return e==null}function vu(e){return typeof e==`number`||X(e)&&Di(e)==ae}function yu(e){if(!X(e)||Di(e)!=se)return!1;var t=Ct(e);if(t===null)return!0;var n=N.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&pt.call(n)==gt}var bu=on?Rn(on):Ui;function xu(e){return lu(e)&&e>=-g&&e<=g}var Su=sn?Rn(sn):Wi;function Cu(e){return typeof e==`string`||!q(e)&&X(e)&&Di(e)==fe}function wu(e){return typeof e==`symbol`||X(e)&&Di(e)==pe}var Tu=cn?Rn(cn):Gi;function Eu(e){return e===n}function Du(e){return X(e)&&Bo(e)==he}function Ou(e){return X(e)&&Di(e)==ge}var ku=go(Yi),Au=go(function(e,t){return e<=t});function ju(e){if(!e)return[];if(Ql(e))return Cu(e)?ar(e):qa(e);if(Ot&&e[Ot])return Xn(e[Ot]());var t=Bo(e);return(t==ie?Zn:t==de?er:Cd)(e)}function Mu(e){return e?(e=Pu(e),e===h||e===-1/0?(e<0?-1:1)*_:e===e?e:0):e===0?e:0}function Z(e){var t=Mu(e),n=t%1;return t===t?n?t-n:t:0}function Nu(e){return e?ci(Z(e),0,y):0}function Pu(e){if(typeof e==`number`)return e;if(wu(e))return v;if(Y(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=Y(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=Ln(e);var n=k.test(e);return n||et.test(e)?Yt(e.slice(2),n?2:8):Qe.test(e)?v:+e}function Fu(e){return Ja(e,ad(e))}function Iu(e){return e?ci(Z(e),-g,g):e===0?e:0}function Q(e){return e==null?``:Ca(e)}var Lu=Qa(function(e,t){if(ns(t)||Ql(t)){Ja(t,$(t),e);return}for(var n in t)N.call(t,n)&&ti(e,n,t[n])}),Ru=Qa(function(e,t){Ja(t,ad(t),e)}),zu=Qa(function(e,t,n,r){Ja(t,ad(t),e,r)}),Bu=Qa(function(e,t,n,r){Ja(t,$(t),e,r)}),Vu=Oo(si);function Hu(e,t){var n=_r(e);return t==null?n:ii(n,t)}var Uu=G(function(e,t){e=A(e);var r=-1,i=t.length,a=i>2?t[2]:n;for(a&&Xo(t[0],t[1],a)&&(i=1);++r<i;)for(var o=t[r],s=ad(o),c=-1,l=s.length;++c<l;){var u=s[c],d=e[u];(d===n||ql(d,dt[u])&&!N.call(e,u))&&(e[u]=o[u])}return e}),Wu=G(function(e){return e.push(n,Co),ln(ld,n,e)});function Gu(e,t){return wn(e,K(t,3),Si)}function Ku(e,t){return wn(e,K(t,3),Ci)}function qu(e,t){return e==null?e:bi(e,K(t,3),ad)}function Ju(e,t){return e==null?e:xi(e,K(t,3),ad)}function Yu(e,t){return e&&Si(e,K(t,3))}function Xu(e,t){return e&&Ci(e,K(t,3))}function Zu(e){return e==null?[]:wi(e,$(e))}function Qu(e){return e==null?[]:wi(e,ad(e))}function $u(e,t,r){var i=e==null?n:Ti(e,t);return i===n?r:i}function ed(e,t){return e!=null&&Uo(e,t,ki)}function td(e,t){return e!=null&&Uo(e,t,Ai)}var nd=lo(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=ht.call(t)),e[t]=n},lf(pf)),rd=lo(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=ht.call(t)),N.call(e,t)?e[t].push(n):e[t]=[n]},K),id=G(Pi);function $(e){return Ql(e)?Xr(e):qi(e)}function ad(e){return Ql(e)?Xr(e,!0):Ji(e)}function od(e,t){var n={};return t=K(t,3),Si(e,function(e,r,i){oi(n,t(e,r,i),e)}),n}function sd(e,t){var n={};return t=K(t,3),Si(e,function(e,r,i){oi(n,r,t(e,r,i))}),n}var cd=Qa(function(e,t,n){$i(e,t,n)}),ld=Qa(function(e,t,n,r){$i(e,t,n,r)}),ud=Oo(function(e,t){var n={};if(e==null)return n;var r=!1;t=V(t,function(t){return t=Na(t,e),r||=t.length>1,t}),Ja(e,Ao(e),n),r&&(n=li(n,7,wo));for(var i=t.length;i--;)Ta(n,t[i]);return n});function dd(e,t){return pd(e,Al(K(t)))}var fd=Oo(function(e,t){return e==null?{}:ra(e,t)});function pd(e,t){if(e==null)return{};var n=V(Ao(e),function(e){return[e]});return t=K(t),ia(e,n,function(e,n){return t(e,n[0])})}function md(e,t,r){t=Na(t,e);var i=-1,a=t.length;for(a||(a=1,e=n);++i<a;){var o=e==null?n:e[bs(t[i])];o===n&&(i=a,o=r),e=cu(o)?o.call(e):o}return e}function hd(e,t,n){return e==null?e:pa(e,t,n)}function gd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:pa(e,t,r,i)}var _d=bo($),vd=bo(ad);function yd(e,t,n){var r=q(e),i=r||eu(e)||Tu(e);if(t=K(t,4),n==null){var a=e&&e.constructor;n=i?r?new a:[]:Y(e)&&cu(a)?_r(Ct(e)):{}}return(i?dn:Si)(e,function(e,r,i){return t(n,e,r,i)}),n}function bd(e,t){return e==null||Ta(e,t)}function xd(e,t,n){return e==null?e:Ea(e,t,Ma(n))}function Sd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:Ea(e,t,Ma(r),i)}function Cd(e){return e==null?[]:zn(e,$(e))}function wd(e){return e==null?[]:zn(e,ad(e))}function Td(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=Pu(r),r=r===r?r:0),t!==n&&(t=Pu(t),t=t===t?t:0),ci(Pu(e),t,r)}function Ed(e,t,r){return t=Mu(t),r===n?(r=t,t=0):r=Mu(r),e=Pu(e),ji(e,t,r)}function Dd(e,t,r){if(r&&typeof r!=`boolean`&&Xo(e,t,r)&&(t=r=n),r===n&&(typeof t==`boolean`?(r=t,t=n):typeof e==`boolean`&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=Mu(e),t===n?(t=e,e=0):t=Mu(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var a=qt();return R(e+a*(t-e+Jt(`1e-`+((a+``).length-1))),t)}return ca(e,t)}var Od=ro(function(e,t,n){return t=t.toLowerCase(),e+(n?kd(t):t)});function kd(e){return nf(Q(e).toLowerCase())}function Ad(e){return e=Q(e),e&&e.replace(nt,Wn).replace(zt,``)}function jd(e,t,r){e=Q(e),t=Ca(t);var i=e.length;r=r===n?i:ci(Z(r),0,i);var a=r;return r-=t.length,r>=0&&e.slice(r,a)==t}function Md(e){return e=Q(e),e&&Pe.test(e)?e.replace(Me,Gn):e}function Nd(e){return e=Q(e),e&&He.test(e)?e.replace(Ve,`\\$&`):e}var Pd=ro(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()}),Fd=ro(function(e,t,n){return e+(n?` `:``)+t.toLowerCase()}),Id=no(`toLowerCase`);function Ld(e,t,n){e=Q(e),t=Z(t);var r=t?ir(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return po(Ft(i),n)+e+po(Pt(i),n)}function Rd(e,t,n){e=Q(e),t=Z(t);var r=t?ir(e):0;return t&&r<t?e+po(t-r,n):e}function zd(e,t,n){e=Q(e),t=Z(t);var r=t?ir(e):0;return t&&r<t?po(t-r,n)+e:e}function Bd(e,t,n){return n||t==null?t=0:t&&=+t,Kt(Q(e).replace(Ue,``),t||0)}function Vd(e,t,r){return t=(r?Xo(e,t,r):t===n)?1:Z(t),ua(Q(e),t)}function Hd(){var e=arguments,t=Q(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Ud=ro(function(e,t,n){return e+(n?`_`:``)+t.toLowerCase()});function Wd(e,t,r){return r&&typeof r!=`number`&&Xo(e,t,r)&&(t=r=n),r=r===n?y:r>>>0,r?(e=Q(e),e&&(typeof t==`string`||t!=null&&!bu(t))&&(t=Ca(t),!t&&Jn(e))?Fa(ar(e),0,r):e.split(t,r)):[]}var Gd=ro(function(e,t,n){return e+(n?` `:``)+nf(t)});function Kd(e,t,n){return e=Q(e),n=n==null?0:ci(Z(n),0,e.length),t=Ca(t),e.slice(n,n+t.length)==t}function qd(e,t,r){var i=H.templateSettings;r&&Xo(e,t,r)&&(t=n),e=Q(e),t=zu({},t,i,So);var a=zu({},t.imports,i.imports,So),o=$(a),s=zn(a,o),c,l,u=0,d=t.interpolate||rt,f=`__p += '`,p=ct((t.escape||rt).source+`|`+d.source+`|`+(d===Le?Xe:rt).source+`|`+(t.evaluate||rt).source+`|$`,`g`),m=`//# sourceURL=`+(N.call(t,`sourceURL`)?(t.sourceURL+``).replace(/\s/g,` `):`lodash.templateSources[`+ ++Wt+`]`)+`
|
|
17
|
-
`;e.replace(p,function(t,n,r,i,a,o){return r||=i,f+=e.slice(u,o).replace(it,
|
|
16
|
+
`)}function Jo(e){return q(e)||Xl(e)||!!(Dt&&e&&e[Dt])}function Yo(e,t){var n=typeof e;return t??=g,!!t&&(n==`number`||n!=`symbol`&&k.test(e))&&e>-1&&e%1==0&&e<t}function Xo(e,t,n){if(!Y(n))return!1;var r=typeof t;return(r==`number`?Ql(n)&&Yo(t,n.length):r==`string`&&t in n)?ql(n[t],e):!1}function Zo(e,t){if(q(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||wu(e)?!0:ze.test(e)||!Re.test(e)||t!=null&&e in A(t)}function Qo(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function $o(e){var t=Mo(e),n=U[t];if(typeof n!=`function`||!(t in W.prototype))return!1;if(e===n)return!0;var r=jo(n);return!!r&&e===r[0]}function es(e){return!!ht&&ht in e}var ts=j?cu:jf;function ns(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||pt)}function rs(e){return e===e&&!Y(e)}function is(e,t){return function(r){return r!=null&&r[e]===t&&(t!==n||e in A(r))}}function as(e){var t=kl(e,function(e){return n.size===500&&n.clear(),e}),n=t.cache;return t}function os(e,t){var n=e[1],r=t[1],i=n|r,l=i<(o|s|f),u=r==f&&n==c||r==f&&n==p&&e[7].length<=t[8]||r==(f|p)&&t[7].length<=t[8]&&n==c;if(!(l||u))return e;r&o&&(e[2]=t[2],i|=n&o?0:4);var d=t[3];if(d){var m=e[3];e[3]=m?Ga(m,d,t[4]):d,e[4]=m?Qn(e[3],a):t[4]}return d=t[5],d&&(m=e[5],e[5]=m?Ka(m,d,t[6]):d,e[6]=m?Qn(e[5],a):t[6]),d=t[7],d&&(e[7]=d),r&f&&(e[8]=e[8]==null?t[8]:R(e[8],t[8])),e[9]??=t[9],e[0]=t[0],e[1]=i,e}function ss(e){var t=[];if(e!=null)for(var n in A(e))t.push(n);return t}function cs(e){return gt.call(e)}function ls(e,t,r){return t=F(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=F(n.length-t,0),o=O(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=O(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),cn(e,this,s)}}function us(e,t){return t.length<2?e:Ti(e,_a(t,0,-1))}function ds(e,t){for(var r=e.length,i=R(t.length,r),a=qa(e);i--;){var o=t[i];e[i]=Yo(o,r)?a[o]:n}return e}function fs(e,t){if((t!==`constructor`||typeof e[t]!=`function`)&&t!=`__proto__`)return e[t]}var ps=_s(ma),ms=Nt||function(e,t){return B.setTimeout(e,t)},hs=_s(ha);function gs(e,t,n){var r=t+``;return hs(e,qo(r,Ss(Ho(r),n)))}function _s(e){var t=0,r=0;return function(){var i=Gt(),a=16-(i-r);if(r=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function vs(e,t){var r=-1,i=e.length,a=i-1;for(t=t===n?i:t;++r<t;){var o=ca(r,a),s=e[o];e[o]=e[r],e[r]=s}return e.length=t,e}var ys=as(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Be,function(e,n,r,i){t.push(r?i.replace(Ye,`$1`):n||e)}),t});function bs(e){if(typeof e==`string`||wu(e))return e;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function xs(e){if(e!=null){try{return M.call(e)}catch{}try{return e+``}catch{}}return``}function Ss(e,t){return un(ee,function(n){var r=`_.`+n[0];t&n[1]&&!mn(e,r)&&e.push(r)}),e.sort()}function Cs(e){if(e instanceof W)return e.clone();var t=new vr(e.__wrapped__,e.__chain__);return t.__actions__=qa(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function ws(e,t,r){t=(r?Xo(e,t,r):t===n)?1:F(Z(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var a=0,o=0,s=O(Pt(i/t));a<i;)s[o++]=_a(e,a,a+=t);return s}function Ts(e){for(var t=-1,n=e==null?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i}function Es(){var e=arguments.length;if(!e)return[];for(var t=O(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return gn(q(n)?qa(n):[n],yi(t,1))}var Ds=G(function(e,t){return J(e)?fi(e,yi(t,1,J,!0)):[]}),Os=G(function(e,t){var r=Js(t);return J(r)&&(r=n),J(e)?fi(e,yi(t,1,J,!0),K(r,2)):[]}),ks=G(function(e,t){var r=Js(t);return J(r)&&(r=n),J(e)?fi(e,yi(t,1,J,!0),n,r):[]});function As(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Z(t),_a(e,t<0?0:t,i)):[]}function js(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Z(t),t=i-t,_a(e,0,t<0?0:t)):[]}function Ms(e,t){return e&&e.length?Da(e,K(t,3),!0,!0):[]}function Ns(e,t){return e&&e.length?Da(e,K(t,3),!0):[]}function Ps(e,t,n,r){var i=e==null?0:e.length;return i?(n&&typeof n!=`number`&&Xo(e,t,n)&&(n=0,r=i),_i(e,t,n,r)):[]}function Fs(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Z(n);return i<0&&(i=F(r+i,0)),wn(e,K(t,3),i)}function Is(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i-1;return r!==n&&(a=Z(r),a=r<0?F(i+a,0):R(a,i-1)),wn(e,K(t,3),a,!0)}function Ls(e){return e!=null&&e.length?yi(e,1):[]}function Rs(e){return e!=null&&e.length?yi(e,h):[]}function zs(e,t){return e!=null&&e.length?(t=t===n?1:Z(t),yi(e,t)):[]}function Bs(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}function Vs(e){return e&&e.length?e[0]:n}function Hs(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Z(n);return i<0&&(i=F(r+i,0)),Tn(e,t,i)}function Us(e){return e!=null&&e.length?_a(e,0,-1):[]}var Ws=G(function(e){var t=H(e,ja);return t.length&&t[0]===e[0]?Mi(t):[]}),Gs=G(function(e){var t=Js(e),r=H(e,ja);return t===Js(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Mi(r,K(t,2)):[]}),Ks=G(function(e){var t=Js(e),r=H(e,ja);return t=typeof t==`function`?t:n,t&&r.pop(),r.length&&r[0]===e[0]?Mi(r,n,t):[]});function qs(e,t){return e==null?``:Vt.call(e,t)}function Js(e){var t=e==null?0:e.length;return t?e[t-1]:n}function Ys(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i;return r!==n&&(a=Z(r),a=a<0?F(i+a,0):R(a,i-1)),t===t?nr(e,t,a):wn(e,Dn,a,!0)}function Xs(e,t){return e&&e.length?ta(e,Z(t)):n}var Zs=G(Qs);function Qs(e,t){return e&&e.length&&t&&t.length?oa(e,t):e}function $s(e,t,n){return e&&e.length&&t&&t.length?oa(e,t,K(n,2)):e}function ec(e,t,r){return e&&e.length&&t&&t.length?oa(e,t,n,r):e}var tc=Oo(function(e,t){var n=e==null?0:e.length,r=oi(e,t);return sa(e,H(t,function(e){return Yo(e,n)?+e:e}).sort(Ua)),r});function nc(e,t){var n=[];if(!(e&&e.length))return n;var r=-1,i=[],a=e.length;for(t=K(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return sa(e,i),n}function rc(e){return e==null?e:Yt.call(e)}function ic(e,t,r){var i=e==null?0:e.length;return i?(r&&typeof r!=`number`&&Xo(e,t,r)?(t=0,r=i):(t=t==null?0:Z(t),r=r===n?i:Z(r)),_a(e,t,r)):[]}function ac(e,t){return ya(e,t)}function oc(e,t,n){return ba(e,t,K(n,2))}function sc(e,t){var n=e==null?0:e.length;if(n){var r=ya(e,t);if(r<n&&ql(e[r],t))return r}return-1}function cc(e,t){return ya(e,t,!0)}function lc(e,t,n){return ba(e,t,K(n,2),!0)}function uc(e,t){if(e!=null&&e.length){var n=ya(e,t,!0)-1;if(ql(e[n],t))return n}return-1}function dc(e){return e&&e.length?xa(e):[]}function fc(e,t){return e&&e.length?xa(e,K(t,2)):[]}function pc(e){var t=e==null?0:e.length;return t?_a(e,1,t):[]}function mc(e,t,r){return e&&e.length?(t=r||t===n?1:Z(t),_a(e,0,t<0?0:t)):[]}function hc(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Z(t),t=i-t,_a(e,t<0?0:t,i)):[]}function gc(e,t){return e&&e.length?Da(e,K(t,3),!1,!0):[]}function _c(e,t){return e&&e.length?Da(e,K(t,3)):[]}var vc=G(function(e){return wa(yi(e,1,J,!0))}),yc=G(function(e){var t=Js(e);return J(t)&&(t=n),wa(yi(e,1,J,!0),K(t,2))}),bc=G(function(e){var t=Js(e);return t=typeof t==`function`?t:n,wa(yi(e,1,J,!0),n,t)});function xc(e){return e&&e.length?wa(e):[]}function Sc(e,t){return e&&e.length?wa(e,K(t,2)):[]}function Cc(e,t){return t=typeof t==`function`?t:n,e&&e.length?wa(e,n,t):[]}function wc(e){if(!(e&&e.length))return[];var t=0;return e=pn(e,function(e){if(J(e))return t=F(e.length,t),!0}),Pn(t,function(t){return H(e,kn(t))})}function Tc(e,t){if(!(e&&e.length))return[];var r=wc(e);return t==null?r:H(r,function(e){return cn(t,n,e)})}var Ec=G(function(e,t){return J(e)?fi(e,t):[]}),Dc=G(function(e){return ka(pn(e,J))}),Oc=G(function(e){var t=Js(e);return J(t)&&(t=n),ka(pn(e,J),K(t,2))}),kc=G(function(e){var t=Js(e);return t=typeof t==`function`?t:n,ka(pn(e,J),n,t)}),Ac=G(wc);function jc(e,t){return Aa(e||[],t||[],ei)}function Mc(e,t){return Aa(e||[],t||[],pa)}var Nc=G(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r==`function`?(e.pop(),r):n,Tc(e,r)});function Pc(e){var t=U(e);return t.__chain__=!0,t}function Fc(e,t){return t(e),e}function Ic(e,t){return t(e)}var Lc=Oo(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,a=function(t){return oi(t,e)};return t>1||this.__actions__.length||!(i instanceof W)||!Yo(r)?this.thru(a):(i=i.slice(r,+r+ +!!t),i.__actions__.push({func:Ic,args:[a],thisArg:n}),new vr(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(n),e}))});function Rc(){return Pc(this)}function zc(){return new vr(this.value(),this.__chain__)}function Bc(){this.__values__===n&&(this.__values__=ju(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}}function Vc(){return this}function Hc(e){for(var t,r=this;r instanceof _r;){var i=Cs(r);i.__index__=0,i.__values__=n,t?a.__wrapped__=i:t=i;var a=i;r=r.__wrapped__}return a.__wrapped__=e,t}function Uc(){var e=this.__wrapped__;if(e instanceof W){var t=e;return this.__actions__.length&&(t=new W(this)),t=t.reverse(),t.__actions__.push({func:Ic,args:[rc],thisArg:n}),new vr(t,this.__chain__)}return this.thru(rc)}function Wc(){return Oa(this.__wrapped__,this.__actions__)}var Gc=Za(function(e,t,n){N.call(e,n)?++e[n]:ai(e,n,1)});function Kc(e,t,r){var i=q(e)?fn:hi;return r&&Xo(e,t,r)&&(t=n),i(e,K(t,3))}function qc(e,t){return(q(e)?pn:vi)(e,K(t,3))}var Jc=oo(Fs),Yc=oo(Is);function Xc(e,t){return yi(al(e,t),1)}function Zc(e,t){return yi(al(e,t),h)}function Qc(e,t,r){return r=r===n?1:Z(r),yi(al(e,t),r)}function $c(e,t){return(q(e)?un:pi)(e,K(t,3))}function el(e,t){return(q(e)?dn:mi)(e,K(t,3))}var tl=Za(function(e,t,n){N.call(e,n)?e[n].push(t):ai(e,n,[t])});function nl(e,t,n,r){e=Ql(e)?e:Cd(e),n=n&&!r?Z(n):0;var i=e.length;return n<0&&(n=F(i+n,0)),Cu(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Tn(e,t,n)>-1}var rl=G(function(e,t,n){var r=-1,i=typeof t==`function`,a=Ql(e)?O(e.length):[];return pi(e,function(e){a[++r]=i?cn(t,e,n):Pi(e,t,n)}),a}),il=Za(function(e,t,n){ai(e,n,t)});function al(e,t){return(q(e)?H:Xi)(e,K(t,3))}function ol(e,t,r,i){return e==null?[]:(q(t)||(t=t==null?[]:[t]),r=i?n:r,q(r)||(r=r==null?[]:[r]),na(e,t,r))}var sl=Za(function(e,t,n){e[+!n].push(t)},function(){return[[],[]]});function cl(e,t,n){var r=q(e)?_n:jn,i=arguments.length<3;return r(e,K(t,4),n,i,pi)}function ll(e,t,n){var r=q(e)?vn:jn,i=arguments.length<3;return r(e,K(t,4),n,i,mi)}function ul(e,t){return(q(e)?pn:vi)(e,Al(K(t,3)))}function dl(e){return(q(e)?Xr:da)(e)}function fl(e,t,r){return t=(r?Xo(e,t,r):t===n)?1:Z(t),(q(e)?Zr:fa)(e,t)}function pl(e){return(q(e)?Qr:ga)(e)}function ml(e){if(e==null)return 0;if(Ql(e))return Cu(e)?rr(e):e.length;var t=Bo(e);return t==ie||t==de?e.size:qi(e).length}function hl(e,t,r){var i=q(e)?yn:va;return r&&Xo(e,t,r)&&(t=n),i(e,K(t,3))}var gl=G(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Xo(e,t[0],t[1])?t=[]:n>2&&Xo(t[0],t[1],t[2])&&(t=[t[0]]),na(e,yi(t,1),[])}),_l=Mt||function(){return B.Date.now()};function vl(e,t){if(typeof t!=`function`)throw new ut(r);return e=Z(e),function(){if(--e<1)return t.apply(this,arguments)}}function yl(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,xo(e,f,n,n,n,n,t)}function bl(e,t){var i;if(typeof t!=`function`)throw new ut(r);return e=Z(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var xl=G(function(e,t,n){var r=o;if(n.length){var i=Qn(n,No(xl));r|=u}return xo(e,r,t,n,i)}),Sl=G(function(e,t,n){var r=o|s;if(n.length){var i=Qn(n,No(Sl));r|=u}return xo(t,r,e,n,i)});function Cl(e,t,r){t=r?n:t;var i=xo(e,c,n,n,n,n,n,t);return i.placeholder=Cl.placeholder,i}function wl(e,t,r){t=r?n:t;var i=xo(e,l,n,n,n,n,n,t);return i.placeholder=wl.placeholder,i}function Tl(e,t,i){var a,o,s,c,l,u,d=0,f=!1,p=!1,m=!0;if(typeof e!=`function`)throw new ut(r);t=Pu(t)||0,Y(i)&&(f=!!i.leading,p=`maxWait`in i,s=p?F(Pu(i.maxWait)||0,t):s,m=`trailing`in i?!!i.trailing:m);function h(t){var r=a,i=o;return a=o=n,d=t,c=e.apply(i,r),c}function g(e){return d=e,l=ms(y,t),f?h(e):c}function _(e){var n=e-u,r=e-d,i=t-n;return p?R(i,s-r):i}function v(e){var r=e-u,i=e-d;return u===n||r>=t||r<0||p&&i>=s}function y(){var e=_l();if(v(e))return b(e);l=ms(y,_(e))}function b(e){return l=n,m&&a?h(e):(a=o=n,c)}function x(){l!==n&&Ia(l),d=0,a=u=o=l=n}function ee(){return l===n?c:b(_l())}function S(){var e=_l(),r=v(e);if(a=arguments,o=this,u=e,r){if(l===n)return g(u);if(p)return Ia(l),l=ms(y,t),h(u)}return l===n&&(l=ms(y,t)),c}return S.cancel=x,S.flush=ee,S}var El=G(function(e,t){return di(e,1,t)}),Dl=G(function(e,t,n){return di(e,Pu(t)||0,n)});function Ol(e){return xo(e,m)}function kl(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw new ut(r);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(kl.Cache||Pr),n}kl.Cache=Pr;function Al(e){if(typeof e!=`function`)throw new ut(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function jl(e){return bl(2,e)}var Ml=Pa(function(e,t){t=t.length==1&&q(t[0])?H(t[0],Ln(K())):H(yi(t,1),Ln(K()));var n=t.length;return G(function(r){for(var i=-1,a=R(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return cn(e,this,r)})}),Nl=G(function(e,t){return xo(e,u,n,t,Qn(t,No(Nl)))}),Pl=G(function(e,t){return xo(e,d,n,t,Qn(t,No(Pl)))}),Fl=Oo(function(e,t){return xo(e,p,n,n,n,t)});function Il(e,t){if(typeof e!=`function`)throw new ut(r);return t=t===n?t:Z(t),G(e,t)}function Ll(e,t){if(typeof e!=`function`)throw new ut(r);return t=t==null?0:F(Z(t),0),G(function(n){var r=n[t],i=Fa(n,0,t);return r&&gn(i,r),cn(e,this,i)})}function Rl(e,t,n){var i=!0,a=!0;if(typeof e!=`function`)throw new ut(r);return Y(n)&&(i=`leading`in n?!!n.leading:i,a=`trailing`in n?!!n.trailing:a),Tl(e,t,{leading:i,maxWait:t,trailing:a})}function zl(e){return yl(e,1)}function Bl(e,t){return Nl(Ma(t),e)}function Vl(){if(!arguments.length)return[];var e=arguments[0];return q(e)?e:[e]}function Hl(e){return ci(e,4)}function Ul(e,t){return t=typeof t==`function`?t:n,ci(e,4,t)}function Wl(e){return ci(e,5)}function Gl(e,t){return t=typeof t==`function`?t:n,ci(e,5,t)}function Kl(e,t){return t==null||ui(e,t,$(t))}function ql(e,t){return e===t||e!==e&&t!==t}var Jl=go(Oi),Yl=go(function(e,t){return e>=t}),Xl=Fi(function(){return arguments}())?Fi:function(e){return X(e)&&N.call(e,`callee`)&&!Tt.call(e,`callee`)},q=O.isArray,Zl=tn?Ln(tn):Ii;function Ql(e){return e!=null&&uu(e.length)&&!cu(e)}function J(e){return X(e)&&Ql(e)}function $l(e){return e===!0||e===!1||X(e)&&Di(e)==T}var eu=Lt||jf,tu=nn?Ln(nn):Li;function nu(e){return X(e)&&e.nodeType===1&&!yu(e)}function ru(e){if(e==null)return!0;if(Ql(e)&&(q(e)||typeof e==`string`||typeof e.splice==`function`||eu(e)||Tu(e)||Xl(e)))return!e.length;var t=Bo(e);if(t==ie||t==de)return!e.size;if(ns(e))return!qi(e).length;for(var n in e)if(N.call(e,n))return!1;return!0}function iu(e,t){return Ri(e,t)}function au(e,t,r){r=typeof r==`function`?r:n;var i=r?r(e,t):n;return i===n?Ri(e,t,n,r):!!i}function ou(e){if(!X(e))return!1;var t=Di(e);return t==ne||t==te||typeof e.message==`string`&&typeof e.name==`string`&&!yu(e)}function su(e){return typeof e==`number`&&Bt(e)}function cu(e){if(!Y(e))return!1;var t=Di(e);return t==D||t==re||t==w||t==le}function lu(e){return typeof e==`number`&&e==Z(e)}function uu(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=g}function Y(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function X(e){return typeof e==`object`&&!!e}var du=rn?Ln(rn):Bi;function fu(e,t){return e===t||Vi(e,t,Fo(t))}function pu(e,t,r){return r=typeof r==`function`?r:n,Vi(e,t,Fo(t),r)}function mu(e){return vu(e)&&e!=+e}function hu(e){if(ts(e))throw new at(`Unsupported core-js use. Try https://npms.io/search?q=ponyfill.`);return Hi(e)}function gu(e){return e===null}function _u(e){return e==null}function vu(e){return typeof e==`number`||X(e)&&Di(e)==ae}function yu(e){if(!X(e)||Di(e)!=se)return!1;var t=Ct(e);if(t===null)return!0;var n=N.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&M.call(n)==_t}var bu=an?Ln(an):Ui;function xu(e){return lu(e)&&e>=-g&&e<=g}var Su=on?Ln(on):Wi;function Cu(e){return typeof e==`string`||!q(e)&&X(e)&&Di(e)==fe}function wu(e){return typeof e==`symbol`||X(e)&&Di(e)==pe}var Tu=sn?Ln(sn):Gi;function Eu(e){return e===n}function Du(e){return X(e)&&Bo(e)==he}function Ou(e){return X(e)&&Di(e)==ge}var ku=go(Yi),Au=go(function(e,t){return e<=t});function ju(e){if(!e)return[];if(Ql(e))return Cu(e)?ir(e):qa(e);if(Ot&&e[Ot])return Yn(e[Ot]());var t=Bo(e);return(t==ie?Xn:t==de?$n:Cd)(e)}function Mu(e){return e?(e=Pu(e),e===h||e===-1/0?(e<0?-1:1)*_:e===e?e:0):e===0?e:0}function Z(e){var t=Mu(e),n=t%1;return t===t?n?t-n:t:0}function Nu(e){return e?si(Z(e),0,y):0}function Pu(e){if(typeof e==`number`)return e;if(wu(e))return v;if(Y(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=Y(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=In(e);var n=$e.test(e);return n||tt.test(e)?Jt(e.slice(2),n?2:8):Qe.test(e)?v:+e}function Fu(e){return Ja(e,ad(e))}function Iu(e){return e?si(Z(e),-g,g):e===0?e:0}function Q(e){return e==null?``:Ca(e)}var Lu=Qa(function(e,t){if(ns(t)||Ql(t)){Ja(t,$(t),e);return}for(var n in t)N.call(t,n)&&ei(e,n,t[n])}),Ru=Qa(function(e,t){Ja(t,ad(t),e)}),zu=Qa(function(e,t,n,r){Ja(t,ad(t),e,r)}),Bu=Qa(function(e,t,n,r){Ja(t,$(t),e,r)}),Vu=Oo(oi);function Hu(e,t){var n=gr(e);return t==null?n:ri(n,t)}var Uu=G(function(e,t){e=A(e);var r=-1,i=t.length,a=i>2?t[2]:n;for(a&&Xo(t[0],t[1],a)&&(i=1);++r<i;)for(var o=t[r],s=ad(o),c=-1,l=s.length;++c<l;){var u=s[c],d=e[u];(d===n||ql(d,pt[u])&&!N.call(e,u))&&(e[u]=o[u])}return e}),Wu=G(function(e){return e.push(n,Co),cn(ld,n,e)});function Gu(e,t){return Cn(e,K(t,3),Si)}function Ku(e,t){return Cn(e,K(t,3),Ci)}function qu(e,t){return e==null?e:bi(e,K(t,3),ad)}function Ju(e,t){return e==null?e:xi(e,K(t,3),ad)}function Yu(e,t){return e&&Si(e,K(t,3))}function Xu(e,t){return e&&Ci(e,K(t,3))}function Zu(e){return e==null?[]:wi(e,$(e))}function Qu(e){return e==null?[]:wi(e,ad(e))}function $u(e,t,r){var i=e==null?n:Ti(e,t);return i===n?r:i}function ed(e,t){return e!=null&&Uo(e,t,ki)}function td(e,t){return e!=null&&Uo(e,t,Ai)}var nd=lo(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=gt.call(t)),e[t]=n},lf(pf)),rd=lo(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=gt.call(t)),N.call(e,t)?e[t].push(n):e[t]=[n]},K),id=G(Pi);function $(e){return Ql(e)?Yr(e):qi(e)}function ad(e){return Ql(e)?Yr(e,!0):Ji(e)}function od(e,t){var n={};return t=K(t,3),Si(e,function(e,r,i){ai(n,t(e,r,i),e)}),n}function sd(e,t){var n={};return t=K(t,3),Si(e,function(e,r,i){ai(n,r,t(e,r,i))}),n}var cd=Qa(function(e,t,n){$i(e,t,n)}),ld=Qa(function(e,t,n,r){$i(e,t,n,r)}),ud=Oo(function(e,t){var n={};if(e==null)return n;var r=!1;t=H(t,function(t){return t=Na(t,e),r||=t.length>1,t}),Ja(e,Ao(e),n),r&&(n=ci(n,7,wo));for(var i=t.length;i--;)Ta(n,t[i]);return n});function dd(e,t){return pd(e,Al(K(t)))}var fd=Oo(function(e,t){return e==null?{}:ra(e,t)});function pd(e,t){if(e==null)return{};var n=H(Ao(e),function(e){return[e]});return t=K(t),ia(e,n,function(e,n){return t(e,n[0])})}function md(e,t,r){t=Na(t,e);var i=-1,a=t.length;for(a||(a=1,e=n);++i<a;){var o=e==null?n:e[bs(t[i])];o===n&&(i=a,o=r),e=cu(o)?o.call(e):o}return e}function hd(e,t,n){return e==null?e:pa(e,t,n)}function gd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:pa(e,t,r,i)}var _d=bo($),vd=bo(ad);function yd(e,t,n){var r=q(e),i=r||eu(e)||Tu(e);if(t=K(t,4),n==null){var a=e&&e.constructor;n=i?r?new a:[]:Y(e)&&cu(a)?gr(Ct(e)):{}}return(i?un:Si)(e,function(e,r,i){return t(n,e,r,i)}),n}function bd(e,t){return e==null||Ta(e,t)}function xd(e,t,n){return e==null?e:Ea(e,t,Ma(n))}function Sd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:Ea(e,t,Ma(r),i)}function Cd(e){return e==null?[]:Rn(e,$(e))}function wd(e){return e==null?[]:Rn(e,ad(e))}function Td(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=Pu(r),r=r===r?r:0),t!==n&&(t=Pu(t),t=t===t?t:0),si(Pu(e),t,r)}function Ed(e,t,r){return t=Mu(t),r===n?(r=t,t=0):r=Mu(r),e=Pu(e),ji(e,t,r)}function Dd(e,t,r){if(r&&typeof r!=`boolean`&&Xo(e,t,r)&&(t=r=n),r===n&&(typeof t==`boolean`?(r=t,t=n):typeof e==`boolean`&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=Mu(e),t===n?(t=e,e=0):t=Mu(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var a=z();return R(e+a*(t-e+qt(`1e-`+((a+``).length-1))),t)}return ca(e,t)}var Od=ro(function(e,t,n){return t=t.toLowerCase(),e+(n?kd(t):t)});function kd(e){return nf(Q(e).toLowerCase())}function Ad(e){return e=Q(e),e&&e.replace(nt,Un).replace(zt,``)}function jd(e,t,r){e=Q(e),t=Ca(t);var i=e.length;r=r===n?i:si(Z(r),0,i);var a=r;return r-=t.length,r>=0&&e.slice(r,a)==t}function Md(e){return e=Q(e),e&&Pe.test(e)?e.replace(Me,Wn):e}function Nd(e){return e=Q(e),e&&He.test(e)?e.replace(Ve,`\\$&`):e}var Pd=ro(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()}),Fd=ro(function(e,t,n){return e+(n?` `:``)+t.toLowerCase()}),Id=no(`toLowerCase`);function Ld(e,t,n){e=Q(e),t=Z(t);var r=t?rr(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return po(Ft(i),n)+e+po(Pt(i),n)}function Rd(e,t,n){e=Q(e),t=Z(t);var r=t?rr(e):0;return t&&r<t?e+po(t-r,n):e}function zd(e,t,n){e=Q(e),t=Z(t);var r=t?rr(e):0;return t&&r<t?po(t-r,n)+e:e}function Bd(e,t,n){return n||t==null?t=0:t&&=+t,Kt(Q(e).replace(Ue,``),t||0)}function Vd(e,t,r){return t=(r?Xo(e,t,r):t===n)?1:Z(t),ua(Q(e),t)}function Hd(){var e=arguments,t=Q(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Ud=ro(function(e,t,n){return e+(n?`_`:``)+t.toLowerCase()});function Wd(e,t,r){return r&&typeof r!=`number`&&Xo(e,t,r)&&(t=r=n),r=r===n?y:r>>>0,r?(e=Q(e),e&&(typeof t==`string`||t!=null&&!bu(t))&&(t=Ca(t),!t&&qn(e))?Fa(ir(e),0,r):e.split(t,r)):[]}var Gd=ro(function(e,t,n){return e+(n?` `:``)+nf(t)});function Kd(e,t,n){return e=Q(e),n=n==null?0:si(Z(n),0,e.length),t=Ca(t),e.slice(n,n+t.length)==t}function qd(e,t,r){var i=U.templateSettings;r&&Xo(e,t,r)&&(t=n),e=Q(e),t=zu({},t,i,So);var a=zu({},t.imports,i.imports,So),o=$(a),s=Rn(a,o),c,l,u=0,d=t.interpolate||rt,f=`__p += '`,p=ct((t.escape||rt).source+`|`+d.source+`|`+(d===Le?Xe:rt).source+`|`+(t.evaluate||rt).source+`|$`,`g`),m=`//# sourceURL=`+(N.call(t,`sourceURL`)?(t.sourceURL+``).replace(/\s/g,` `):`lodash.templateSources[`+ ++Wt+`]`)+`
|
|
17
|
+
`;e.replace(p,function(t,n,r,i,a,o){return r||=i,f+=e.slice(u,o).replace(it,Gn),n&&(c=!0,f+=`' +
|
|
18
18
|
__e(`+n+`) +
|
|
19
19
|
'`),a&&(l=!0,f+=`';
|
|
20
20
|
`+a+`;
|
|
@@ -30,4 +30,4 @@ __p += '`),r&&(f+=`' +
|
|
|
30
30
|
function print() { __p += __j.call(arguments, '') }
|
|
31
31
|
`:`;
|
|
32
32
|
`)+f+`return __p
|
|
33
|
-
}`;var g=af(function(){return ot(o,m+`return `+f).apply(n,s)});if(g.source=f,ou(g))throw g;return g}function Jd(e){return Q(e).toLowerCase()}function Yd(e){return Q(e).toUpperCase()}function Xd(e,t,r){if(e=Q(e),e&&(r||t===n))return Ln(e);if(!e||!(t=Ca(t)))return e;var i=ar(e),a=ar(t);return Fa(i,Vn(i,a),Hn(i,a)+1).join(``)}function Zd(e,t,r){if(e=Q(e),e&&(r||t===n))return e.slice(0,or(e)+1);if(!e||!(t=Ca(t)))return e;var i=ar(e);return Fa(i,0,Hn(i,ar(t))+1).join(``)}function Qd(e,t,r){if(e=Q(e),e&&(r||t===n))return e.replace(Ue,``);if(!e||!(t=Ca(t)))return e;var i=ar(e);return Fa(i,Vn(i,ar(t))).join(``)}function $d(e,t){var r=30,i=`...`;if(Y(t)){var a=`separator`in t?t.separator:a;r=`length`in t?Z(t.length):r,i=`omission`in t?Ca(t.omission):i}e=Q(e);var o=e.length;if(Jn(e)){var s=ar(e);o=s.length}if(r>=o)return e;var c=r-ir(i);if(c<1)return i;var l=s?Fa(s,0,c).join(``):e.slice(0,c);if(a===n)return l+i;if(s&&(c+=l.length-c),bu(a)){if(e.slice(c).search(a)){var u,d=l;for(a.global||(a=ct(a.source,Q(Ze.exec(a))+`g`)),a.lastIndex=0;u=a.exec(d);)var f=u.index;l=l.slice(0,f===n?c:f)}}else if(e.indexOf(Ca(a),c)!=c){var p=l.lastIndexOf(a);p>-1&&(l=l.slice(0,p))}return l+i}function ef(e){return e=Q(e),e&&Ne.test(e)?e.replace(je,sr):e}var tf=ro(function(e,t,n){return e+(n?` `:``)+t.toUpperCase()}),nf=no(`toUpperCase`);function rf(e,t,r){return e=Q(e),t=r?n:t,t===n?Yn(e)?ur(e):Cn(e):e.match(t)||[]}var af=G(function(e,t){try{return ln(e,n,t)}catch(e){return ou(e)?e:new at(e)}}),of=Oo(function(e,t){return dn(t,function(t){t=bs(t),oi(e,t,xl(e[t],e))}),e});function sf(e){var t=e==null?0:e.length,n=K();return e=t?V(e,function(e){if(typeof e[1]!=`function`)throw new ut(r);return[n(e[0]),e[1]]}):[],G(function(n){for(var r=-1;++r<t;){var i=e[r];if(ln(i[0],this,n))return ln(i[1],this,n)}})}function cf(e){return ui(li(e,1))}function lf(e){return function(){return e}}function uf(e,t){return e==null||e!==e?t:e}var df=so(),ff=so(!0);function pf(e){return e}function mf(e){return Ki(typeof e==`function`?e:li(e,1))}function hf(e){return Zi(li(e,1))}function gf(e,t){return Qi(e,li(t,1))}var _f=G(function(e,t){return function(n){return Pi(n,e,t)}}),vf=G(function(e,t){return function(n){return Pi(e,n,t)}});function yf(e,t,n){var r=$(t),i=wi(t,r);n==null&&!(Y(t)&&(i.length||!r.length))&&(n=t,t=e,e=this,i=wi(t,$(t)));var a=!(Y(n)&&`chain`in n)||!!n.chain,o=cu(e);return dn(i,function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=qa(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,_n([this.value()],arguments))})}),e}function bf(){return z._===this&&(z._=_t),this}function xf(){}function Sf(e){return e=Z(e),G(function(t){return ta(t,e)})}var Cf=fo(V),wf=fo(pn),Tf=fo(bn);function Ef(e){return Zo(e)?An(bs(e)):aa(e)}function Df(e){return function(t){return e==null?n:Ti(e,t)}}var Of=ho(),kf=ho(!0);function Af(){return[]}function jf(){return!1}function Mf(){return{}}function Nf(){return``}function Pf(){return!0}function Ff(e,t){if(e=Z(e),e<1||e>g)return[];var n=y,r=R(e,y);t=K(t),e-=y;for(var i=Fn(r,t);++n<e;)t(n);return i}function If(e){return q(e)?V(e,bs):wu(e)?[e]:qa(ys(Q(e)))}function Lf(e){var t=++mt;return Q(e)+t}var Rf=uo(function(e,t){return e+t},0),zf=vo(`ceil`),Bf=uo(function(e,t){return e/t},1),Vf=vo(`floor`);function Hf(e){return e&&e.length?_i(e,pf,Oi):n}function Uf(e,t){return e&&e.length?_i(e,K(t,2),Oi):n}function Wf(e){return kn(e,pf)}function Gf(e,t){return kn(e,K(t,2))}function Kf(e){return e&&e.length?_i(e,pf,Yi):n}function qf(e,t){return e&&e.length?_i(e,K(t,2),Yi):n}var Jf=uo(function(e,t){return e*t},1),Yf=vo(`round`),Xf=uo(function(e,t){return e-t},0);function Zf(e){return e&&e.length?Pn(e,pf):0}function Qf(e,t){return e&&e.length?Pn(e,K(t,2)):0}return H.after=vl,H.ary=yl,H.assign=Lu,H.assignIn=Ru,H.assignInWith=zu,H.assignWith=Bu,H.at=Vu,H.before=bl,H.bind=xl,H.bindAll=of,H.bindKey=Sl,H.castArray=Vl,H.chain=Pc,H.chunk=ws,H.compact=Ts,H.concat=Es,H.cond=sf,H.conforms=cf,H.constant=lf,H.countBy=Gc,H.create=Hu,H.curry=Cl,H.curryRight=wl,H.debounce=Tl,H.defaults=Uu,H.defaultsDeep=Wu,H.defer=El,H.delay=Dl,H.difference=Ds,H.differenceBy=Os,H.differenceWith=ks,H.drop=As,H.dropRight=js,H.dropRightWhile=Ms,H.dropWhile=Ns,H.fill=Ps,H.filter=qc,H.flatMap=Xc,H.flatMapDeep=Zc,H.flatMapDepth=Qc,H.flatten=Ls,H.flattenDeep=Rs,H.flattenDepth=zs,H.flip=Ol,H.flow=df,H.flowRight=ff,H.fromPairs=Bs,H.functions=Zu,H.functionsIn=Qu,H.groupBy=tl,H.initial=Us,H.intersection=Ws,H.intersectionBy=Gs,H.intersectionWith=Ks,H.invert=nd,H.invertBy=rd,H.invokeMap=rl,H.iteratee=mf,H.keyBy=il,H.keys=$,H.keysIn=ad,H.map=al,H.mapKeys=od,H.mapValues=sd,H.matches=hf,H.matchesProperty=gf,H.memoize=kl,H.merge=cd,H.mergeWith=ld,H.method=_f,H.methodOf=vf,H.mixin=yf,H.negate=Al,H.nthArg=Sf,H.omit=ud,H.omitBy=dd,H.once=jl,H.orderBy=ol,H.over=Cf,H.overArgs=Ml,H.overEvery=wf,H.overSome=Tf,H.partial=Nl,H.partialRight=Pl,H.partition=sl,H.pick=fd,H.pickBy=pd,H.property=Ef,H.propertyOf=Df,H.pull=Zs,H.pullAll=Qs,H.pullAllBy=$s,H.pullAllWith=ec,H.pullAt=tc,H.range=Of,H.rangeRight=kf,H.rearg=Fl,H.reject=ul,H.remove=nc,H.rest=Il,H.reverse=rc,H.sampleSize=fl,H.set=hd,H.setWith=gd,H.shuffle=pl,H.slice=ic,H.sortBy=gl,H.sortedUniq=dc,H.sortedUniqBy=fc,H.split=Wd,H.spread=Ll,H.tail=pc,H.take=mc,H.takeRight=hc,H.takeRightWhile=gc,H.takeWhile=_c,H.tap=Fc,H.throttle=Rl,H.thru=Ic,H.toArray=ju,H.toPairs=_d,H.toPairsIn=vd,H.toPath=If,H.toPlainObject=Fu,H.transform=yd,H.unary=zl,H.union=vc,H.unionBy=yc,H.unionWith=bc,H.uniq=xc,H.uniqBy=Sc,H.uniqWith=Cc,H.unset=bd,H.unzip=wc,H.unzipWith=Tc,H.update=xd,H.updateWith=Sd,H.values=Cd,H.valuesIn=wd,H.without=Ec,H.words=rf,H.wrap=Bl,H.xor=Dc,H.xorBy=Oc,H.xorWith=kc,H.zip=Ac,H.zipObject=jc,H.zipObjectDeep=Mc,H.zipWith=Nc,H.entries=_d,H.entriesIn=vd,H.extend=Ru,H.extendWith=zu,yf(H,H),H.add=Rf,H.attempt=af,H.camelCase=Od,H.capitalize=kd,H.ceil=zf,H.clamp=Td,H.clone=Hl,H.cloneDeep=Wl,H.cloneDeepWith=Gl,H.cloneWith=Ul,H.conformsTo=Kl,H.deburr=Ad,H.defaultTo=uf,H.divide=Bf,H.endsWith=jd,H.eq=ql,H.escape=Md,H.escapeRegExp=Nd,H.every=Kc,H.find=Jc,H.findIndex=Fs,H.findKey=Gu,H.findLast=Yc,H.findLastIndex=Is,H.findLastKey=Ku,H.floor=Vf,H.forEach=$c,H.forEachRight=el,H.forIn=qu,H.forInRight=Ju,H.forOwn=Yu,H.forOwnRight=Xu,H.get=$u,H.gt=Jl,H.gte=Yl,H.has=ed,H.hasIn=td,H.head=Vs,H.identity=pf,H.includes=nl,H.indexOf=Hs,H.inRange=Ed,H.invoke=id,H.isArguments=Xl,H.isArray=q,H.isArrayBuffer=Zl,H.isArrayLike=Ql,H.isArrayLikeObject=J,H.isBoolean=$l,H.isBuffer=eu,H.isDate=tu,H.isElement=nu,H.isEmpty=ru,H.isEqual=iu,H.isEqualWith=au,H.isError=ou,H.isFinite=su,H.isFunction=cu,H.isInteger=lu,H.isLength=uu,H.isMap=du,H.isMatch=fu,H.isMatchWith=pu,H.isNaN=mu,H.isNative=hu,H.isNil=_u,H.isNull=gu,H.isNumber=vu,H.isObject=Y,H.isObjectLike=X,H.isPlainObject=yu,H.isRegExp=bu,H.isSafeInteger=xu,H.isSet=Su,H.isString=Cu,H.isSymbol=wu,H.isTypedArray=Tu,H.isUndefined=Eu,H.isWeakMap=Du,H.isWeakSet=Ou,H.join=qs,H.kebabCase=Pd,H.last=Js,H.lastIndexOf=Ys,H.lowerCase=Fd,H.lowerFirst=Id,H.lt=ku,H.lte=Au,H.max=Hf,H.maxBy=Uf,H.mean=Wf,H.meanBy=Gf,H.min=Kf,H.minBy=qf,H.stubArray=Af,H.stubFalse=jf,H.stubObject=Mf,H.stubString=Nf,H.stubTrue=Pf,H.multiply=Jf,H.nth=Xs,H.noConflict=bf,H.noop=xf,H.now=_l,H.pad=Ld,H.padEnd=Rd,H.padStart=zd,H.parseInt=Bd,H.random=Dd,H.reduce=cl,H.reduceRight=ll,H.repeat=Vd,H.replace=Hd,H.result=md,H.round=Yf,H.runInContext=e,H.sample=dl,H.size=ml,H.snakeCase=Ud,H.some=hl,H.sortedIndex=ac,H.sortedIndexBy=oc,H.sortedIndexOf=sc,H.sortedLastIndex=cc,H.sortedLastIndexBy=lc,H.sortedLastIndexOf=uc,H.startCase=Gd,H.startsWith=Kd,H.subtract=Xf,H.sum=Zf,H.sumBy=Qf,H.template=qd,H.times=Ff,H.toFinite=Mu,H.toInteger=Z,H.toLength=Nu,H.toLower=Jd,H.toNumber=Pu,H.toSafeInteger=Iu,H.toString=Q,H.toUpper=Yd,H.trim=Xd,H.trimEnd=Zd,H.trimStart=Qd,H.truncate=$d,H.unescape=ef,H.uniqueId=Lf,H.upperCase=tf,H.upperFirst=nf,H.each=$c,H.eachRight=el,H.first=Vs,yf(H,function(){var e={};return Si(H,function(t,n){N.call(H.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),H.VERSION=`4.17.21`,dn([`bind`,`bindKey`,`curry`,`curryRight`,`partial`,`partialRight`],function(e){H[e].placeholder=H}),dn([`drop`,`take`],function(e,t){U.prototype[e]=function(r){r=r===n?1:F(Z(r),0);var i=this.__filtered__&&!t?new U(this):this.clone();return i.__filtered__?i.__takeCount__=R(r,i.__takeCount__):i.__views__.push({size:R(r,y),type:e+(i.__dir__<0?`Right`:``)}),i},U.prototype[e+`Right`]=function(t){return this.reverse()[e](t).reverse()}}),dn([`filter`,`map`,`takeWhile`],function(e,t){var n=t+1,r=n==1||n==3;U.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:K(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),dn([`head`,`last`],function(e,t){var n=`take`+(t?`Right`:``);U.prototype[e]=function(){return this[n](1).value()[0]}}),dn([`initial`,`tail`],function(e,t){var n=`drop`+(t?``:`Right`);U.prototype[e]=function(){return this.__filtered__?new U(this):this[n](1)}}),U.prototype.compact=function(){return this.filter(pf)},U.prototype.find=function(e){return this.filter(e).head()},U.prototype.findLast=function(e){return this.reverse().find(e)},U.prototype.invokeMap=G(function(e,t){return typeof e==`function`?new U(this):this.map(function(n){return Pi(n,e,t)})}),U.prototype.reject=function(e){return this.filter(Al(K(e)))},U.prototype.slice=function(e,t){e=Z(e);var r=this;return r.__filtered__&&(e>0||t<0)?new U(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(t=Z(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},U.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},U.prototype.toArray=function(){return this.take(y)},Si(U.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=H[i?`take`+(t==`last`?`Right`:``):t],o=i||/^find/.test(t);a&&(H.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,c=t instanceof U,l=s[0],u=c||q(t),d=function(e){var t=a.apply(H,_n([e],s));return i&&f?t[0]:t};u&&r&&typeof l==`function`&&l.length!=1&&(c=u=!1);var f=this.__chain__,p=!!this.__actions__.length,m=o&&!f,h=c&&!p;if(!o&&u){t=h?t:new U(this);var g=e.apply(t,s);return g.__actions__.push({func:Ic,args:[d],thisArg:n}),new yr(g,f)}return m&&h?e.apply(this,s):(g=this.thru(d),m?i?g.value()[0]:g.value():g)})}),dn([`pop`,`push`,`shift`,`sort`,`splice`,`unshift`],function(e){var t=j[e],n=/^(?:push|sort|unshift)$/.test(e)?`tap`:`thru`,r=/^(?:pop|shift)$/.test(e);H.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(q(i)?i:[],e)}return this[n](function(n){return t.apply(q(n)?n:[],e)})}}),Si(U.prototype,function(e,t){var n=H[t];if(n){var r=n.name+``;N.call(jn,r)||(jn[r]=[]),jn[r].push({name:t,func:n})}}),jn[co(n,s).name]=[{name:`wrapper`,func:n}],U.prototype.clone=br,U.prototype.reverse=xr,U.prototype.value=Sr,H.prototype.at=Lc,H.prototype.chain=Rc,H.prototype.commit=zc,H.prototype.next=Bc,H.prototype.plant=Hc,H.prototype.reverse=Uc,H.prototype.toJSON=H.prototype.valueOf=H.prototype.value=Wc,H.prototype.first=H.prototype.head,Ot&&(H.prototype[Ot]=Vc),H})();typeof define==`function`&&typeof define.amd==`object`&&define.amd?(z._=dr,define(function(){return dr})):$t?(($t.exports=dr)._=dr,Qt._=dr):z._=dr}).call(e)}))(),Object.values(function(e){return e.EditMode=`edit-mode`,e.Preview=`preview`,e}({}));var ke=`1.19.0`,Ae=class{constructor(e){this.debug=!1,this.debug=e?.debug??!1,this.appName=e?.appName,this.appVersion=e?.appVersion}log(e,...t){this.debug&&this.print(e,`info`,t)}warn(e,...t){this.print(e,`warn`,t)}error(e,...t){this.print(e,`error`,t)}print(e,t,n){let r=[`[${[`MeltingSpot`,this.appName,this.appVersion].filter(Boolean).join(` - `)}] ${e}`];n.length&&r.push(...n),console[t](...r)}},je=new Ae({appName:`Core SDK`,appVersion:ke}),Me=e=>e.toLowerCase().replace(/[^a-z0-9-]/g,``),Ne=[`/user`],Pe=({deeplink:e,spotId:t})=>{try{let n=new URL(e,`https://unused.com`),r=n.pathname;return n.search&&(r+=n.search),n.hash&&(r+=n.hash),Ne.some(e=>r.startsWith(e))||(r=`/spot/${t}/${ie(r)}`),r}catch(e){return je.warn(`Failed to parse deeplink URL`,e),null}},Fe=[/(^|\.)meltingspot\.io$/i],Ie=e=>{let t;try{let n=oe(e);t=new URL(n)}catch{throw Error(`Invalid baseURL: ${e}`)}let n=t.hostname===`localhost`||t.hostname===`127.0.0.1`,r=t.protocol===`https:`,i=Fe.some(e=>e.test(t.hostname));if(!n&&(!r||!i))throw Error(`Untrusted baseURL origin: ${t.origin}`);return t.origin},Le={msApiBaseUrl:`https://openapi.meltingspot.io/`,msCommunityWebBaseUrl:`https://go.meltingspot.io/`,msCoreBaseUrl:`https://go-api.meltingspot.io/`,ssoToken:void 0,spotId:``,autoJoin:!1,rootDocument:globalThis.document},Re=class e{constructor(){this.configuration=Le}static getInstance(){return e.instance||=new e,e.instance}setConfiguration(e){this.configuration={...this.configuration,...e}}static getConfiguration(t={}){let n=e.getInstance(),r=Object.fromEntries(Object.entries(t).filter(([,e])=>e!==void 0));return{...n.configuration,...r}}},ze=RegExp(`(%[a-f0-9]{2})|([^%]+?)`,`gi`),Be=RegExp(`(%[a-f0-9]{2})+`,`gi`);function Ve(e,t){try{return[decodeURIComponent(e.join(``))]}catch{}if(e.length===1)return e;t||=1;let n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],Ve(n),Ve(r))}function He(e){try{return decodeURIComponent(e)}catch{let t=e.match(ze)||[];for(let n=1;n<t.length;n++)e=Ve(t,n).join(``),t=e.match(ze)||[];return e}}function Ue(e){let t={"%FE%FF":`��`,"%FF%FE":`��`},n=Be.exec(e);for(;n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{let e=He(n[0]);e!==n[0]&&(t[n[0]]=e)}n=Be.exec(e)}t[`%C2`]=`�`;let r=Object.keys(t);for(let n of r)e=e.replace(new RegExp(n,`g`),t[n]);return e}function O(e){if(typeof e!=`string`)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return Ue(e)}}function We(e,t){let n={};if(Array.isArray(t))for(let r of t){let t=Object.getOwnPropertyDescriptor(e,r);t?.enumerable&&Object.defineProperty(n,r,t)}else for(let r of Reflect.ownKeys(e)){let i=Object.getOwnPropertyDescriptor(e,r);if(i.enumerable){let a=e[r];t(r,a,e)&&Object.defineProperty(n,r,i)}}return n}function Ge(e,t){if(typeof e!=`string`||typeof t!=`string`)throw TypeError("Expected the arguments to be of type `string`");if(e===``||t===``)return[];let n=e.indexOf(t);return n===-1?[]:[e.slice(0,n),e.slice(n+t.length)]}var Ke=c({exclude:()=>lt,extract:()=>it,parse:()=>at,parseUrl:()=>st,pick:()=>ct,stringify:()=>ot,stringifyUrl:()=>A}),qe=e=>e==null,Je=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),Ye=Symbol(`encodeFragmentIdentifier`);function Xe(e){switch(e.arrayFormat){case`index`:return t=>(n,r)=>{let i=n.length;return r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?[...n,[k(t,e),`[`,i,`]`].join(``)]:[...n,[k(t,e),`[`,k(i,e),`]=`,k(r,e)].join(``)]};case`bracket`:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?[...n,[k(t,e),`[]`].join(``)]:[...n,[k(t,e),`[]=`,k(r,e)].join(``)];case`colon-list-separator`:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?[...n,[k(t,e),`:list=`].join(``)]:[...n,[k(t,e),`:list=`,k(r,e)].join(``)];case`comma`:case`separator`:case`bracket-separator`:{let t=e.arrayFormat===`bracket-separator`?`[]=`:`=`;return n=>(r,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===``?r:(i=i===null?``:i,r.length===0?[[k(n,e),t,k(i,e)].join(``)]:[[r,k(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?[...n,k(t,e)]:[...n,[k(t,e),`=`,k(r,e)].join(``)]}}function Ze(e){let t;switch(e.arrayFormat){case`index`:return(e,n,r)=>{if(t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,``),!t){r[e]=n;return}r[e]===void 0&&(r[e]={}),r[e][t[1]]=n};case`bracket`:return(e,n,r)=>{if(t=/(\[])$/.exec(e),e=e.replace(/\[]$/,``),!t){r[e]=n;return}if(r[e]===void 0){r[e]=[n];return}r[e]=[...r[e],n]};case`colon-list-separator`:return(e,n,r)=>{if(t=/(:list)$/.exec(e),e=e.replace(/:list$/,``),!t){r[e]=n;return}if(r[e]===void 0){r[e]=[n];return}r[e]=[...r[e],n]};case`comma`:case`separator`:return(t,n,r)=>{let i=typeof n==`string`&&n.includes(e.arrayFormatSeparator),a=typeof n==`string`&&!i&&$e(n,e).includes(e.arrayFormatSeparator);n=a?$e(n,e):n,r[t]=i||a?n.split(e.arrayFormatSeparator).map(t=>$e(t,e)):n===null?n:$e(n,e)};case`bracket-separator`:return(t,n,r)=>{let i=/(\[])$/.test(t);if(t=t.replace(/\[]$/,``),!i){r[t]=n&&$e(n,e);return}let a=n===null?[]:$e(n,e).split(e.arrayFormatSeparator);if(r[t]===void 0){r[t]=a;return}r[t]=[...r[t],...a]};default:return(e,t,n)=>{if(n[e]===void 0){n[e]=t;return}n[e]=[...[n[e]].flat(),t]}}}function Qe(e){if(typeof e!=`string`||e.length!==1)throw TypeError(`arrayFormatSeparator must be single character string`)}function k(e,t){return t.encode?t.strict?Je(e):encodeURIComponent(e):e}function $e(e,t){return t.decode?O(e):e}function et(e){return Array.isArray(e)?e.sort():typeof e==`object`?et(Object.keys(e)).sort((e,t)=>Number(e)-Number(t)).map(t=>e[t]):e}function tt(e){let t=e.indexOf(`#`);return t!==-1&&(e=e.slice(0,t)),e}function nt(e){let t=``,n=e.indexOf(`#`);return n!==-1&&(t=e.slice(n)),t}function rt(e,t,n){return n===`string`&&typeof e==`string`?e:typeof n==`function`&&typeof e==`string`?n(e):n===`boolean`&&e===null?!0:n===`boolean`&&e!==null&&(e.toLowerCase()===`true`||e.toLowerCase()===`false`)?e.toLowerCase()===`true`:n===`boolean`&&e!==null&&(e.toLowerCase()===`1`||e.toLowerCase()===`0`)?e.toLowerCase()===`1`:n===`string[]`&&t.arrayFormat!==`none`&&typeof e==`string`?[e]:n===`number[]`&&t.arrayFormat!==`none`&&!Number.isNaN(Number(e))&&typeof e==`string`&&e.trim()!==``?[Number(e)]:n===`number`&&!Number.isNaN(Number(e))&&typeof e==`string`&&e.trim()!==``?Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()===`true`||e.toLowerCase()===`false`)?e.toLowerCase()===`true`:t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e==`string`&&e.trim()!==``?Number(e):e}function it(e){e=tt(e);let t=e.indexOf(`?`);return t===-1?``:e.slice(t+1)}function at(e,t){t={decode:!0,sort:!0,arrayFormat:`none`,arrayFormatSeparator:`,`,parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...t},Qe(t.arrayFormatSeparator);let n=Ze(t),r=Object.create(null);if(typeof e!=`string`||(e=e.trim().replace(/^[?#&]/,``),!e))return r;for(let i of e.split(`&`)){if(i===``)continue;let e=t.decode?i.replaceAll(`+`,` `):i,[a,o]=Ge(e,`=`);a===void 0&&(a=e),o=o===void 0?null:[`comma`,`separator`,`bracket-separator`].includes(t.arrayFormat)?o:$e(o,t),n($e(a,t),o,r)}for(let[e,n]of Object.entries(r))if(typeof n==`object`&&n&&t.types[e]!==`string`)for(let[r,i]of Object.entries(n)){let a=t.types[e]?t.types[e].replace(`[]`,``):void 0;n[r]=rt(i,t,a)}else r[e]=typeof n==`object`&&n&&t.types[e]===`string`?Object.values(n).join(t.arrayFormatSeparator):rt(n,t,t.types[e]);return t.sort===!1?r:(t.sort===!0?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>{let n=r[t];return e[t]=n&&typeof n==`object`&&!Array.isArray(n)?et(n):n,e},Object.create(null))}function ot(e,t){if(!e)return``;t={encode:!0,strict:!0,arrayFormat:`none`,arrayFormatSeparator:`,`,...t},Qe(t.arrayFormatSeparator);let n=n=>t.skipNull&&qe(e[n])||t.skipEmptyString&&e[n]===``,r=Xe(t),i={};for(let[t,r]of Object.entries(e))n(t)||(i[t]=r);let a=Object.keys(i);return t.sort!==!1&&a.sort(t.sort),a.map(n=>{let i=e[n];return i===void 0?``:i===null?k(n,t):Array.isArray(i)?i.length===0&&t.arrayFormat===`bracket-separator`?k(n,t)+`[]`:i.reduce(r(n),[]).join(`&`):k(n,t)+`=`+k(i,t)}).filter(e=>e.length>0).join(`&`)}function st(e,t){t={decode:!0,...t};let[n,r]=Ge(e,`#`);return n===void 0&&(n=e),{url:n?.split(`?`)?.[0]??``,query:at(it(e),t),...t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:$e(r,t)}:{}}}function A(e,t){t={encode:!0,strict:!0,[Ye]:!0,...t};let n=tt(e.url).split(`?`)[0]||``,r=ot({...at(it(e.url),{sort:!1,...t}),...e.query},t);r&&=`?${r}`;let i=nt(e.url);if(typeof e.fragmentIdentifier==`string`){let r=new URL(n);r.hash=e.fragmentIdentifier,i=t[Ye]?r.hash:`#${e.fragmentIdentifier}`}return`${n}${r}${i}`}function ct(e,t,n){n={parseFragmentIdentifier:!0,[Ye]:!1,...n};let{url:r,query:i,fragmentIdentifier:a}=st(e,n);return A({url:r,query:We(i,t),fragmentIdentifier:a},n)}function lt(e,t,n){return ct(e,Array.isArray(t)?e=>!t.includes(e):(e,n)=>!t(e,n),n)}var ut=Ke,j=class e extends Error{constructor(t,n){super(`HTTP Error ${t}${n?`: ${n}`:``}`),this.code=t,this.name=`HttpError`,Object.setPrototypeOf(this,e.prototype)}},M=function(e){return e.DELETE=`DELETE`,e.GET=`GET`,e.PATCH=`PATCH`,e.POST=`POST`,e}({}),dt=class e{constructor(){this.headers={}}setHeaders(e){this.headers=e}async get(t){try{let n=t.query?`${t.url}?${this.serializeQuery(t.query)}`:t.url,r=await fetch(n,{headers:{...this.headers,...t.headers,"Content-Type":`application/json`},...t.signal?{signal:t.signal}:{}});return r.ok?T(await e.parseBody(r)):E(new j(r.status,await r.text()))}catch(e){let t=e instanceof Error?e.message:`Unknown error`;return E(new j(D.INTERNAL_SERVER_ERROR,t))}}async post(t){try{let n=await fetch(t.url,{method:`POST`,headers:{...this.headers,...t.headers,"Content-Type":`application/json`},body:JSON.stringify(t.payload),...t.signal?{signal:t.signal}:{}});return n.ok?T(await e.parseBody(n)):E(new j(n.status,await n.text()))}catch(e){let t=e instanceof Error?e.message:`Unknown error`;return E(new j(D.INTERNAL_SERVER_ERROR,t))}}async delete(t){try{let n=await fetch(t.url,{method:`DELETE`,headers:{...this.headers,...t.headers,Accept:`application/json`},...t.signal?{signal:t.signal}:{}});return n.ok?T(await e.parseBody(n)):E(new j(n.status,await n.text()))}catch(e){let t=e instanceof Error?e.message:`Unknown error`;return E(new j(D.INTERNAL_SERVER_ERROR,t))}}async patch(t){try{let n=await fetch(t.url,{method:`PATCH`,headers:{...this.headers,...t.headers,"Content-Type":`application/json`},body:JSON.stringify(t.payload),...t.signal?{signal:t.signal}:{}});return n.ok?T(await e.parseBody(n)):E(new j(n.status,await n.text()))}catch(e){let t=e instanceof Error?e.message:`Unknown error`;return E(new j(D.INTERNAL_SERVER_ERROR,t))}}static async parseBody(e){if(e.status!==D.NO_CONTENT)return await e.json()}serializeQuery(e){if(typeof e==`string`)return e;if(typeof e==`object`)for(let t in e)e[t]===void 0&&delete e[t];return e=ut.stringify(e,{arrayFormat:`none`}),e}},ft={accessToken:{email:`/v1/auth/accessToken/email`,sso:{jwt:`/v1/auth/accessToken/sso/jwt`}},refreshAccessToken:`/v1/auth/accessToken~refresh`,password:{reset:`/v1/auth/password~reset`}},pt=class e extends EventTarget{constructor(){super(),this.accessToken=null,this.refreshToken=null}static getInstance(){return e.instance||=new e,e.instance}async loginWithPassword(e,t){let n=await this.callApi({endpoint:ft.accessToken.email,method:`POST`,body:{email:e,password:t},withSpotId:!0});if(n.isErr())return E(n.error);let{accessToken:r,refreshToken:i}=n.value;return this.setTokens(r.token,i.token),T({accessToken:r.token,refreshToken:i.token})}async loginWithSsoToken(e){let t=await this.callApi({endpoint:ft.accessToken.sso.jwt,method:`POST`,body:{token:e},withSpotId:!0});if(t.isErr())return E(t.error);let{accessToken:n,refreshToken:r}=t.value;return this.setTokens(n.token,r.token),T({accessToken:n.token,refreshToken:r.token})}loginWithAuthTokens(e,t){return this.setTokens(e,t),{accessToken:e,refreshToken:t}}resetPassword(e){return this.callApi({endpoint:ft.password.reset,method:`POST`,body:{email:e}})}refresh(){return this.refreshInFlight??=this.doRefresh().finally(()=>{this.refreshInFlight=void 0}).then(({result:e,superseded:t})=>(t||this.emitRefreshRejected(e),e)),this.refreshInFlight}async doRefresh(){let e=this.refreshToken,t=await this.callApi({endpoint:ft.refreshAccessToken,method:`POST`,body:{refreshToken:e}});if(this.refreshToken!==e)return{result:this.currentSessionResult(),superseded:!0};if(t.isErr())return{result:E(t.error),superseded:!1};let{accessToken:n,refreshToken:r}=t.value;return this.setTokens(n.token,r.token),{result:T({accessToken:n.token,refreshToken:r.token}),superseded:!1}}currentSessionResult(){return!this.accessToken||!this.refreshToken?E(new j(D.UNAUTHORIZED,`Logged out while the refresh was in flight`)):T({accessToken:this.accessToken,refreshToken:this.refreshToken})}emitRefreshRejected(e){e.isOk()||e.error.code!==D.UNAUTHORIZED||this.dispatchEvent(new CustomEvent(`auth:refresh-rejected`,{detail:{status:e.error.code}}))}async logout(){this.setTokens(null,null)}getAccessToken(){return this.accessToken}getRefreshToken(){return this.refreshToken}setTokens(e,t){if(this.accessToken!==e||this.refreshToken!==t){this.accessToken=e,this.refreshToken=t;let n=new CustomEvent(`auth:tokens-updated`,{detail:{accessToken:e,refreshToken:t}});this.dispatchEvent(n)}}async callApi(e){try{let{spotId:t,msApiBaseUrl:n}=Re.getConfiguration(),r=se(e.endpoint,n),i={"Content-Type":`application/json`,...e.headers};e.withSpotId&&t&&(i[N.SpotId]=t);let a=await fetch(r,{method:e.method,body:e.body?JSON.stringify(e.body):void 0,headers:i});return a.ok?a.status===D.NO_CONTENT?T(void 0):T(await a.json()):E(new j(a.status,a.statusText))}catch(e){return E(new j(D.INTERNAL_SERVER_ERROR,e instanceof Error?e.message:String(e)))}}},N=function(e){return e.Authorization=`Authorization`,e.SpotId=`x-spotid`,e}({}),mt=class e{static getInstance(){return e.instance||=new e,e.instance}static buildAuthenticatedRequest(e){let{msApiBaseUrl:t,spotId:n}=Re.getConfiguration(),r=se(e,t),i=pt.getInstance().getAccessToken();if(!i)return E(Error(`Not authenticated`));let a={"Content-Type":`application/json`,Authorization:`Bearer ${i}`};return n&&(a[`x-spotid`]=n),T({url:r,headers:a})}static async stream(t,n,r){let{streamTransport:i}=Re.getConfiguration();if(i)return i({endpoint:t,body:n,signal:r});let a=e.buildAuthenticatedRequest(t);if(a.isErr())return E(a.error);let{url:o,headers:s}=a.value;try{let e=await fetch(o,{method:`POST`,headers:s,...n===void 0?{}:{body:JSON.stringify(n)},...r?{signal:r}:{}});if(!e.ok){let t=await e.text();return E(Error(`HTTP ${e.status}: ${t}`))}return e.body?T(e.body):E(Error(`Response body is empty`))}catch(e){let t=e instanceof Error?e.message:`Unknown error`;return E(e instanceof Error?e:Error(t))}}get pendingCount(){return this.queue.length}constructor(){this.queue=[],this.isProcessing=!1,this.isPaused=!1,this.authService=pt.getInstance(),this.httpService=new dt}enqueue(e){return new Promise(t=>{this.queue.push(async()=>{try{t(await e())}catch(e){t(E(new j(D.INTERNAL_SERVER_ERROR,e instanceof Error?e.message:`Unknown error`)))}}),this.processQueue()})}async processQueue(){if(!this.isProcessing){this.isProcessing=!0;try{for(;!this.isPaused&&this.queue.length>0;){let e=this.queue.shift();if(!e)break;await e()}}finally{this.isProcessing=!1,!this.isPaused&&this.queue.length>0&&Promise.resolve().then(()=>this.processQueue())}}}pauseQueue(){this.isPaused=!0}resumeQueue(){let e=this.isPaused;this.isPaused=!1,e&&this.processQueue()}async call(e){return this.enqueue(async()=>{let t=async()=>{let{spotId:t,msApiBaseUrl:n}=Re.getConfiguration(),r={...e.options?.headers??{}};t&&(r[`x-spotid`]=t);let i=this.authService.getAccessToken(),{requiresAuth:a=!0}=e;if(!i&&a)return E(new j(D.UNAUTHORIZED));i&&(r.Authorization=`Bearer ${i}`);let o=se(e.endpoint,n);switch(e.method){case M.DELETE:return this.httpService.delete({...e.options??{},headers:r,url:o});case M.GET:return this.httpService.get({...e.options??{},headers:r,url:o});case M.PATCH:return this.httpService.patch({...e.options??{},headers:r,url:o});case M.POST:return this.httpService.post({...e.options??{},headers:r,url:o});default:return E(new j(D.METHOD_NOT_ALLOWED,`Method not allowed`))}},n=await t();if(n.isErr()&&n.error.code===D.UNAUTHORIZED){let e=await this.authService.refresh();if(e.isErr())return E(new j(D.UNAUTHORIZED,e.error.message));n=await t()}return n})}},P={playbooks:`/v1/playbooks`,pages:e=>`/v1/playbooks/${e}/pages`,hotspots:(e,t)=>`/v1/playbooks/${e}/pages/${t}/hotspots`,hotspot:(e,t,n)=>`/v1/playbooks/${e}/pages/${t}/hotspots/${n}`,accessibleIntents:(e,t)=>`/v1/playbooks/${e}/pages/${t}/accessibleIntents`,intents:(e,t,n)=>`/v1/playbooks/${e}/pages/${t}/hotspots/${n}/intents`,intent:(e,t,n,r)=>`/v1/playbooks/${e}/pages/${t}/hotspots/${n}/intents/${r}`,intentStandaloneTitle:`/v1/melty/intentStandalone~generateTitle`},ht=50,gt=class e{static getInstance(){return e.instance||=new e,e.instance}constructor(){this.meltingSpotApi=mt.getInstance()}async listPlaybooks(e){let t=await this.meltingSpotApi.call({method:M.GET,endpoint:P.playbooks,options:{query:{page:e?.page??1,limit:e?.limit??ht,...e?.domain?{"domain[eq]":e.domain}:{},...e?.host===void 0?{}:{"domain[matchesHost]":e.host}}}});return t.isErr()?E(t.error):T(t.value)}async listPlaybookPages(e){let t=await this.meltingSpotApi.call({method:M.GET,endpoint:P.pages(e.playbookId),options:{query:{page:e.page??1,limit:e.limit??ht,...e.url?{"url[eq]":e.url}:{}}}});return t.isErr()?E(t.error):T(t.value)}async createPlaybookPage(e,t){let n=await this.meltingSpotApi.call({method:M.POST,endpoint:P.pages(e.playbookId),options:{payload:t}});return n.isErr()?E(n.error):T(n.value)}async listAccessiblePlaybookIntents(e){let t=await this.meltingSpotApi.call({method:M.GET,endpoint:P.accessibleIntents(e.playbookId,e.pageId),options:{query:{...e.domain?{domain:e.domain}:{}}}});return t.isErr()?E(t.error):T(t.value)}async listPlaybookHotspots(e){let t=await this.meltingSpotApi.call({method:M.GET,endpoint:P.hotspots(e.playbookId,e.pageId),options:{query:{page:e.page??1,limit:e.limit??ht,...e.intentStatus?{"intentStatus[eq]":e.intentStatus}:{},...e.widgetType?{"widgetType[eq]":e.widgetType}:{}}}});return t.isErr()?E(t.error):T(t.value)}async createPlaybookHotspot(e,t){let n=await this.meltingSpotApi.call({method:M.POST,endpoint:P.hotspots(e.playbookId,e.pageId),options:{payload:t}});return n.isErr()?E(n.error):T(n.value)}async updatePlaybookHotspot(e,t){let n=await this.meltingSpotApi.call({method:M.PATCH,endpoint:P.hotspot(e.playbookId,e.pageId,e.hotspotId),options:{payload:t}});return n.isErr()?E(n.error):T(n.value)}async listPlaybookIntents(e){let t=await this.meltingSpotApi.call({method:M.GET,endpoint:P.intents(e.playbookId,e.pageId,e.hotspotId),options:{query:{page:e.page??1,limit:e.limit??ht,...e.status?{"status[eq]":e.status}:{}}}});return t.isErr()?E(t.error):T(t.value)}async createPlaybookIntent(e,t){let n=await this.meltingSpotApi.call({method:M.POST,endpoint:P.intents(e.playbookId,e.pageId,e.hotspotId),options:{payload:t}});return n.isErr()?E(n.error):T(n.value)}async generateIntentStandaloneTitle(e){let t=await this.meltingSpotApi.call({method:M.POST,endpoint:P.intentStandaloneTitle,options:{payload:e}});return t.isErr()?E(t.error):T(t.value)}async updatePlaybookIntent(e,t){let n=await this.meltingSpotApi.call({method:M.PATCH,endpoint:P.intent(e.playbookId,e.pageId,e.hotspotId,e.intentId),options:{payload:t}});return n.isErr()?E(n.error):T(n.value)}},_t={me:`/v1/spots/me`},vt=1,yt=class e{static getInstance(){return e.instance||=new e,e.instance}constructor(){this.meltingSpotApi=mt.getInstance()}async listSpotsForMe(e){let t=await this.meltingSpotApi.call({method:M.GET,endpoint:_t.me,options:{query:{page:e?.page??vt,limit:e?.limit??50,...e?.spotMemberRole?{"spotMemberRole[eq]":e.spotMemberRole}:{},...e?.id?{"id[eq]":e.id}:{},...e?.name?{"name[contains]":e.name}:{}}}});return t.isErr()?E(t.error):T(t.value)}},bt={spotMember:{me:`/v1/spotMembers/me`,joinFromSso:`/v1/spotMembers~joinFromSso`,search:`/v1/spotMembers~search`}},xt=class e{static getInstance(){return e.instance||=new e,e.instance}constructor(){this.meltingSpotApi=mt.getInstance()}async getSpotMemberForMe(){let e=await this.meltingSpotApi.call({method:M.GET,endpoint:bt.spotMember.me});return e.isErr()?E(e.error):T(e.value)}async searchSpotMembers(e){let t={page:e.page,limit:e.limit};e.search&&(t.search=e.search);let n=await this.meltingSpotApi.call({method:M.GET,endpoint:bt.spotMember.search,options:{query:t}});return n.isErr()?E(n.error):T(n.value)}async joinFromSso(e){let t=await this.meltingSpotApi.call({method:M.POST,endpoint:bt.spotMember.joinFromSso,options:{payload:{token:e}}});return t.isErr()?E(t.error):T(t.value)}},St={spotMemberSsoToken:`/v1/spotMembers/auth/sso/jwt`,previewAccessKey:`/v1/spotMembers/auth/preview/accessKey`},Ct=class e{static getInstance(){return e.instance||=new e,e.instance}constructor(){this.meltingSpotApi=mt.getInstance()}async generateSsoToken(){let e=await this.meltingSpotApi.call({method:M.POST,endpoint:St.spotMemberSsoToken,options:{payload:{}}});return e.isErr()?E(e.error):T(e.value.token)}async generatePreviewAccessKey(e){let t=await this.meltingSpotApi.call({method:M.POST,endpoint:St.previewAccessKey,options:{payload:{targetSpotMemberId:e.targetSpotMemberId}}});return t.isErr()?E(t.error):T(t.value)}},wt=class e{static getInstance(){return e.instance||=new e,e.instance}constructor(){this.spotMemberAuthApiService=Ct.getInstance()}async generateSsoToken(){return this.spotMemberAuthApiService.generateSsoToken()}},Tt=e=>{let t=e.get(`utm_source`);if(t)return{source:t,medium:e.get(`utm_medium`)??void 0,campaign:e.get(`utm_campaign`)??void 0,term:e.get(`utm_term`)??void 0,content:e.get(`utm_content`)??void 0}},Et=e=>e?Object.entries(e).reduce((e,[t,n])=>(n!=null&&(e[`utm_${t}`]=n),e),{}):{},Dt=Re.getInstance(),Ot=pt.getInstance(),kt=wt.getInstance(),At={Playbook:gt.getInstance(),Spot:yt.getInstance(),SpotMember:xt.getInstance()},jt=globalThis;jt.MeltingSpot||={},jt.MeltingSpot.Configuration=Dt,jt.MeltingSpot.Auth=Ot,jt.MeltingSpot.Sso=kt,jt.MeltingSpot.Api=At;var Mt=new Ae({appName:`Embed SDK`,appVersion:`1.19.0`}),Nt=`EmbedRedirect`,Pt=/^\/spot\/([^/]+)\/sso\/oidc\/embed\/authorize$/,Ft=e=>{try{return new URL(e).origin}catch{return}},It=(e,t)=>{let n=t.find(({contentWindow:t})=>t!==null&&t===e.source);if(!n||!n.origin||e.origin!==n.origin)return;let r=e.data?.url;if(typeof r!=`string`)return;let i;try{i=new URL(r)}catch{return}let a=Ft(n.msCoreBaseUrl),o=Pt.exec(i.pathname)?.[1];if(!(!a||i.origin!==a||o?.toLowerCase()!==n.spotId.toLowerCase()||i.searchParams.get(`mode`)!==Nt))return{source:e.source,origin:e.origin,url:i.toString()}},Lt=e=>{window.location.assign(e)},Rt={ATTEMPT:`ms_oidc_attempt`,CODE:`ms_oidc_code`,ERROR:`ms_oidc_error`},zt=(e=window.location,t=window.history)=>{let n=new URLSearchParams(e.hash.replace(/^#/,``)),r=Object.values(Rt);if(!r.some(e=>n.has(e)))return;let i=n.get(Rt.ATTEMPT),a=n.get(Rt.CODE)||void 0,o=n.get(Rt.ERROR)||void 0;r.forEach(e=>n.delete(e));let s=n.toString();return t.replaceState(t.state,``,e.pathname+e.search+(s?`#${s}`:``)),i&&(a||o)?{attemptId:i,code:a,error:o}:void 0},Bt=e=>{let t=new URLSearchParams({[Rt.ATTEMPT]:e.attemptId});return e.code&&t.set(Rt.CODE,e.code),e.error&&t.set(Rt.ERROR,e.error),t.toString()},Vt=class{#e=null;#t=null;constructor(e){this.content=e}set onRemove(e){this.#t=e}get contentWindow(){return this.#e?.contentWindow??null}get origin(){if(!this.#e)return null;try{return new URL(this.#e.src).origin}catch{return null}}inject(e){this.remove();let t=ce({input:e,rootDocument:this.content.rootDocument});this.#e=this.content.iframe,this.#e.classList.add(`ms-embed`),t.appendChild(this.#e)}remove(){this.#e&&=(this.#e.contentWindow&&this.#t?.(this.#e.contentWindow),this.#e.remove(),null)}},Ht=class{#e;constructor(e){this.baseURL=Ie(e.baseURL),this.spotId=Me(e.spotId),this.authToken=e.authToken??null,this.themeMode=e.themeMode??`auto`,this.domain=e.domain??null,this.deeplink=e.deeplink?Pe({deeplink:e.deeplink,spotId:this.spotId}):null,this.utmParameters=e.utmParameters??null,this.rootDocument=e.rootDocument,this.#e=e.oidcReturn??null}get iframe(){let e=this.#e;this.#e=null;let t=e?null:this.authToken,n=this.getPath(e,t),r=new URL(`/spot/${this.spotId}${n}`,oe(this.baseURL));e&&(r.hash=Bt(e));let i=de({url:r,searchParams:{embed:this.spotId,themeMode:this.themeMode,ms_token:t,domain:this.domain,deeplink:this.deeplink,...Et(this.utmParameters)},rootDocument:this.rootDocument});return i.classList.add(`ms-spot`),i}getPath(e,t){return e?`/sso/oidc/embed`:t&&t.trim().length>0?`/sso/jwt`:``}},F={READY:`meltingspot:ready`,ERROR:`meltingspot:error`,PREFILL_DRAFT:`meltingspot:prefillDraft`,OIDC_REDIRECT:`ms:sso:oidc:redirect`,OIDC_REDIRECT_ACK:`ms:sso:oidc:redirect:ack`},Ut=class e{static{this.embeds=[]}static{this.messageListened=!1}static{this.iframeCallbacks=new Map}static injectSpotInto(t,n){let{onReady:r,onError:i,...a}=n,{spotId:o,rootDocument:s,msCommunityWebBaseUrl:c,msCoreBaseUrl:l}=Re.getConfiguration({spotId:a.spotId,rootDocument:a.rootDocument,msCommunityWebBaseUrl:a.baseURL});if(!o)throw Mt.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let u=new URLSearchParams(window.location.search),d={spotId:o,authToken:a.authToken??u.get(`ms_token`),domain:a.domain,deeplink:a.deeplink??u.get(`ms_url`),themeMode:a.themeMode,utmParameters:a.utmParameters??Tt(u),baseURL:c,rootDocument:s},f=ce({input:t,rootDocument:s}),p=new Ht({...d,oidcReturn:zt()}),m=new Vt(p);if(m.inject(f),e.embeds.push({frame:m,spotId:p.spotId,msCoreBaseUrl:l}),e.ensureMessageListener(),r||i){let t=m.content.iframe.contentWindow;t&&(e.iframeCallbacks.set(t,{onReady:r,onError:i}),m.onRemove=t=>{e.iframeCallbacks.delete(t)})}return Mt.log(`Spot injected`,d,typeof t==`string`?t:t.id),m}static clear(){e.embeds.forEach(({frame:e})=>{e.remove()}),e.embeds=[],e.iframeCallbacks.clear(),e.messageListened&&=(window.removeEventListener(`message`,e.handleMessageEvent),!1),Mt.log(`All MeltingSpot embeds cleared`)}static handleMessageEvent(t){if(!t.data||typeof t.data!=`object`)return;if(t.data.type===F.OIDC_REDIRECT){e.handleOidcRedirect(t);return}if(t.data.type!==F.READY&&t.data.type!==F.ERROR)return;let n=t.source,r=e.iframeCallbacks.get(n);if(!r)return;let{msCommunityWebBaseUrl:i}=Re.getConfiguration({});if(i)try{let e=new URL(i).origin;if(t.origin!==e)return}catch{}t.data.type===F.READY?r.onReady?.():r.onError?.(t.data.error)}static handleOidcRedirect(t){let n=It(t,e.embeds.map(({frame:e,spotId:t,msCoreBaseUrl:n})=>({contentWindow:e.contentWindow,origin:e.origin,spotId:t,msCoreBaseUrl:n})));if(!n){Mt.warn(`OpenID Connect login request ignored`);return}n.source.postMessage({type:F.OIDC_REDIRECT_ACK},n.origin),Mt.log(`Navigating to the OpenID Connect login`),Lt(n.url)}static ensureMessageListener(){e.messageListened||=(window.addEventListener(`message`,e.handleMessageEvent),!0)}},Wt=globalThis;Wt.MeltingSpot||={},Wt.MeltingSpot.Embed=Ut;var I=new Ae({appName:`Widget SDK`,appVersion:`1.19.0`}),L=class{constructor(e,t,n){this.content=e,this.rootDocument=t,this.dialogClassname=n,this.dialogElement=null,this.triggerElement=null,this.iframeElement=null,this.currentListener=null}inject({into:e,bind:t,options:n}){this.remove();let r=ce({input:e,rootDocument:this.rootDocument});if(this.dialogElement=le(this.rootDocument),this.dialogElement.classList.add(this.dialogClassname),this.dialogElement.onclose=()=>this.#t(),r.appendChild(this.dialogElement),t){this.triggerElement=ce({input:t,rootDocument:this.rootDocument});let e=this.open.bind(this,n);this.currentListener=t=>{t.stopPropagation(),t.preventDefault(),e()},this.triggerElement.addEventListener(`click`,this.currentListener)}}remove(){this.dialogElement&&=(this.dialogElement.remove(),this.dialogElement.onclose=null,null),this.triggerElement&&(this.currentListener&&this.triggerElement.removeEventListener(`click`,this.currentListener),this.triggerElement=null,this.currentListener=null)}open(e){this.dialogElement||this.inject({into:this.rootDocument.body}),this.dialogElement&&(this.#e(),this.dialogElement.showModal())}close(){this.dialogElement&&this.dialogElement.close()}#e(){this.dialogElement&&(this.iframeElement=this.dialogElement.appendChild(this.content.iframe))}#t(){this.iframeElement&&=(this.iframeElement.remove(),null)}},R=class extends L{constructor(e,t){super(e,t,`ms-drawer`)}open(e){let{position:t=`right`}=e??{};super.open(e),this.dialogElement&&(this.dialogElement.dataset.position=t)}},Gt=class extends L{constructor(e,t){super(e,t,`ms-modal`)}},Kt=class{constructor(e){this.baseURL=Ie(e.baseURL),this.spotId=Me(e.spotId),this.widgetId=Me(e.widgetId),this.authToken=e.authToken??null,this.themeMode=e.themeMode??`auto`,this.domain=e.domain??null,this.utmParameters=e.utmParameters??null,this.rootDocument=e.rootDocument}get iframe(){let e=de({url:new URL(`/widgets/spot/${this.spotId}/widget/${this.widgetId}`,oe(this.baseURL)),searchParams:{themeMode:this.themeMode,ms_token:this.authToken,domain:this.domain,...Et(this.utmParameters)},rootDocument:this.rootDocument});return e.classList.add(`ms-widget`),e}},qt=class{constructor(e){this.baseURL=Ie(e.baseURL),this.spotId=Me(e.spotId),this.widgetContentId=Me(e.widgetContentId),this.contentId=Me(e.contentId),this.widgetId=Me(e.widgetId),this.contentType=e.contentType,this.authToken=e.authToken??null,this.themeMode=e.themeMode??`auto`,this.domain=e.domain??null,this.utmParameters=e.utmParameters??null,this.rootDocument=e.rootDocument}get iframe(){let e=new URL(`/widgets/spot/${this.spotId}/widgetContent/${this.widgetContentId}`,oe(this.baseURL));e.searchParams.set(`widgetId`,this.widgetId);let t=de({url:e,searchParams:{themeMode:this.themeMode,ms_token:this.authToken,domain:this.domain,contentId:this.contentId,contentType:this.contentType,...Et(this.utmParameters)},rootDocument:this.rootDocument});return t.classList.add(`ms-widget-content`),t}},Jt=class e{static{this.widgets=[]}static{this.messageListened=!1}static{this.widgetOptions={}}static injectWidgetInto(t,n){let{spotId:r,rootDocument:i,msCommunityWebBaseUrl:a}=Re.getConfiguration({spotId:n.spotId,rootDocument:n.rootDocument,msCommunityWebBaseUrl:n.baseURL});if(!r)throw I.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let{widget:o,args:s}=e.createWidget({...n,spotId:r,rootDocument:i,baseURL:a}),c=new Vt(o);return c.inject(t),e.widgets.push(c),I.log(`Widget injected`,e.cleanupLoggedArgs(s),t),c}static injectWidgetContentInto(t,n){let{spotId:r,rootDocument:i,msCommunityWebBaseUrl:a}=Re.getConfiguration({spotId:n.spotId,rootDocument:n.rootDocument,msCommunityWebBaseUrl:n.baseURL});if(!r)throw I.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let{widgetContent:o,args:s}=e.createWidgetContent({...n,spotId:r,rootDocument:i,baseURL:a}),c=new Vt(o);return c.inject(t),e.widgets.push(c),I.log(`WidgetContent injected`,e.cleanupLoggedArgs(s),t),c}static bindWidgetModalTo(t,n){return e.bindEntityModalTo(t,{type:`Widget`,data:n})}static bindWidgetDrawerTo(t,n){return e.bindEntityDrawerTo(t,{type:`Widget`,data:n})}static createWidgetDrawer(t){let{widget:n}=e.createWidget(t);return I.log(`Create Widget drawer`,{data:e.cleanupLoggedArgs(t)}),new R(n,t.rootDocument??document)}static createWidgetModal(t){let{widget:n}=e.createWidget(t);return I.log(`Create Widget modal`,{data:e.cleanupLoggedArgs(t)}),new Gt(n,t.rootDocument??document)}static createWidgetEmbed(t){let{widget:n}=e.createWidget(t),r=new Vt(n);return I.log(`Create Widget embed`,{data:e.cleanupLoggedArgs(t)}),r}static clear(){e.widgets.forEach(e=>{e.remove()}),e.widgets=[],e.widgetOptions={},I.log(`All Widget SDK MeltingSpot elements were cleared`)}static bindEntityDrawerTo(t,n){let{spotId:r,rootDocument:i,msCommunityWebBaseUrl:a}=Re.getConfiguration({spotId:n.data.spotId,rootDocument:n.data.rootDocument??document,msCommunityWebBaseUrl:n.data.baseURL});if(!r)throw I.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let o,s;switch(n.type){case`Widget`:{let t=e.createWidget({...n.data,spotId:r,rootDocument:i,baseURL:a});o=t.widget,s=t.args}break;case`WidgetContent`:{let t=e.createWidgetContent({...n.data,spotId:r,rootDocument:i,baseURL:a});o=t.widgetContent,s=t.args}}let c=new R(o,i),l={position:n.data.position},u=n.data.into??i.body;return c.inject({into:u,bind:t,options:l}),e.widgets.push(c),I.log(`Widget bound to drawer`,e.cleanupLoggedArgs(s),l,u,t),c}static bindEntityModalTo(t,n){let{spotId:r,rootDocument:i,msCommunityWebBaseUrl:a}=Re.getConfiguration({spotId:n.data.spotId,rootDocument:n.data.rootDocument??document,msCommunityWebBaseUrl:n.data.baseURL});if(!r)throw I.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let o,s;switch(n.type){case`Widget`:{let t=e.createWidget({...n.data,spotId:r,rootDocument:i,baseURL:a});o=t.widget,s=t.args}break;case`WidgetContent`:{let t=e.createWidgetContent({...n.data,spotId:r,rootDocument:i,baseURL:a});o=t.widgetContent,s=t.args}}let c=new Gt(o,i),l=n.data.into??i.body;return c.inject({into:l,bind:t}),e.widgets.push(c),I.log(`Widget bound to modal`,e.cleanupLoggedArgs(s),l,t),c}static handleMessageEvent(t){if(!t.data||typeof t.data!=`object`||t.data.type!==`OpenWidgetContent`)return;let n=t.data?.widgetId;if(!n||typeof n!=`string`){I.error(`widgetId is required in the message event data`);return}let r=e.widgetOptions[n];if(!r){I.error(`No widget options found for widgetId`,{widgetId:n});return}let i=null;try{i=new URL(r.baseURL).origin}catch{i=null}if(!i||t.origin!==i){I.warn(`Ignoring OpenWidgetContent from unexpected origin`,{origin:t.origin,expectedOrigin:i});return}let{spotId:a,rootDocument:o,msCommunityWebBaseUrl:s}=Re.getConfiguration({spotId:r.spotId,rootDocument:r.rootDocument??document,msCommunityWebBaseUrl:r.baseURL}),{widgetContent:c}=e.createWidgetContent({...r,widgetContentId:t.data.widgetContentId,contentType:t.data.contentType,contentId:t.data.contentId,widgetId:n,spotId:a,rootDocument:o,baseURL:s});t.data.openingIn===`Drawer`?new R(c,o).open():t.data.openingIn===`Modal`&&new Gt(c,o).open()}static createWidget(t){let n=new URLSearchParams(window.location.search),r={spotId:t.spotId,widgetId:t.widgetId,authToken:t.authToken,themeMode:t.themeMode,domain:t.domain,rootDocument:t.rootDocument,baseURL:t.baseURL,utmParameters:t.utmParameters??Tt(n)};return e.widgetOptions[r.widgetId]=r,e.messageListened||=(window.addEventListener(`message`,e.handleMessageEvent),!0),{widget:new Kt(r),args:r}}static createWidgetContent(e){let t=new URLSearchParams(window.location.search),n={spotId:e.spotId,contentId:e.contentId,contentType:e.contentType,widgetContentId:e.widgetContentId,widgetId:e.widgetId,authToken:e.authToken,themeMode:e.themeMode,domain:e.domain,rootDocument:e.rootDocument,baseURL:e.baseURL,utmParameters:e.utmParameters??Tt(t)};return{widgetContent:new qt(n),args:n}}static cleanupLoggedArgs(e){let{authToken:t,...n}=e;return{...n,authToken:t?`***`:void 0}}},Yt=globalThis;Yt.MeltingSpot||={},Yt.MeltingSpot.Widget=Jt,e.Drawer=R,e.Modal=Gt,e.Widget=Jt});
|
|
33
|
+
}`;var g=af(function(){return ot(o,m+`return `+f).apply(n,s)});if(g.source=f,ou(g))throw g;return g}function Jd(e){return Q(e).toLowerCase()}function Yd(e){return Q(e).toUpperCase()}function Xd(e,t,r){if(e=Q(e),e&&(r||t===n))return In(e);if(!e||!(t=Ca(t)))return e;var i=ir(e),a=ir(t);return Fa(i,Bn(i,a),Vn(i,a)+1).join(``)}function Zd(e,t,r){if(e=Q(e),e&&(r||t===n))return e.slice(0,ar(e)+1);if(!e||!(t=Ca(t)))return e;var i=ir(e);return Fa(i,0,Vn(i,ir(t))+1).join(``)}function Qd(e,t,r){if(e=Q(e),e&&(r||t===n))return e.replace(Ue,``);if(!e||!(t=Ca(t)))return e;var i=ir(e);return Fa(i,Bn(i,ir(t))).join(``)}function $d(e,t){var r=30,i=`...`;if(Y(t)){var a=`separator`in t?t.separator:a;r=`length`in t?Z(t.length):r,i=`omission`in t?Ca(t.omission):i}e=Q(e);var o=e.length;if(qn(e)){var s=ir(e);o=s.length}if(r>=o)return e;var c=r-rr(i);if(c<1)return i;var l=s?Fa(s,0,c).join(``):e.slice(0,c);if(a===n)return l+i;if(s&&(c+=l.length-c),bu(a)){if(e.slice(c).search(a)){var u,d=l;for(a.global||(a=ct(a.source,Q(Ze.exec(a))+`g`)),a.lastIndex=0;u=a.exec(d);)var f=u.index;l=l.slice(0,f===n?c:f)}}else if(e.indexOf(Ca(a),c)!=c){var p=l.lastIndexOf(a);p>-1&&(l=l.slice(0,p))}return l+i}function ef(e){return e=Q(e),e&&Ne.test(e)?e.replace(je,or):e}var tf=ro(function(e,t,n){return e+(n?` `:``)+t.toUpperCase()}),nf=no(`toUpperCase`);function rf(e,t,r){return e=Q(e),t=r?n:t,t===n?Jn(e)?lr(e):Sn(e):e.match(t)||[]}var af=G(function(e,t){try{return cn(e,n,t)}catch(e){return ou(e)?e:new at(e)}}),of=Oo(function(e,t){return un(t,function(t){t=bs(t),ai(e,t,xl(e[t],e))}),e});function sf(e){var t=e==null?0:e.length,n=K();return e=t?H(e,function(e){if(typeof e[1]!=`function`)throw new ut(r);return[n(e[0]),e[1]]}):[],G(function(n){for(var r=-1;++r<t;){var i=e[r];if(cn(i[0],this,n))return cn(i[1],this,n)}})}function cf(e){return li(ci(e,1))}function lf(e){return function(){return e}}function uf(e,t){return e==null||e!==e?t:e}var df=so(),ff=so(!0);function pf(e){return e}function mf(e){return Ki(typeof e==`function`?e:ci(e,1))}function hf(e){return Zi(ci(e,1))}function gf(e,t){return Qi(e,ci(t,1))}var _f=G(function(e,t){return function(n){return Pi(n,e,t)}}),vf=G(function(e,t){return function(n){return Pi(e,n,t)}});function yf(e,t,n){var r=$(t),i=wi(t,r);n==null&&!(Y(t)&&(i.length||!r.length))&&(n=t,t=e,e=this,i=wi(t,$(t)));var a=!(Y(n)&&`chain`in n)||!!n.chain,o=cu(e);return un(i,function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=qa(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,gn([this.value()],arguments))})}),e}function bf(){return B._===this&&(B._=vt),this}function xf(){}function Sf(e){return e=Z(e),G(function(t){return ta(t,e)})}var Cf=fo(H),wf=fo(fn),Tf=fo(yn);function Ef(e){return Zo(e)?kn(bs(e)):aa(e)}function Df(e){return function(t){return e==null?n:Ti(e,t)}}var Of=ho(),kf=ho(!0);function Af(){return[]}function jf(){return!1}function Mf(){return{}}function Nf(){return``}function Pf(){return!0}function Ff(e,t){if(e=Z(e),e<1||e>g)return[];var n=y,r=R(e,y);t=K(t),e-=y;for(var i=Pn(r,t);++n<e;)t(n);return i}function If(e){return q(e)?H(e,bs):wu(e)?[e]:qa(ys(Q(e)))}function Lf(e){var t=++mt;return Q(e)+t}var Rf=uo(function(e,t){return e+t},0),zf=vo(`ceil`),Bf=uo(function(e,t){return e/t},1),Vf=vo(`floor`);function Hf(e){return e&&e.length?gi(e,pf,Oi):n}function Uf(e,t){return e&&e.length?gi(e,K(t,2),Oi):n}function Wf(e){return On(e,pf)}function Gf(e,t){return On(e,K(t,2))}function Kf(e){return e&&e.length?gi(e,pf,Yi):n}function qf(e,t){return e&&e.length?gi(e,K(t,2),Yi):n}var Jf=uo(function(e,t){return e*t},1),Yf=vo(`round`),Xf=uo(function(e,t){return e-t},0);function Zf(e){return e&&e.length?Nn(e,pf):0}function Qf(e,t){return e&&e.length?Nn(e,K(t,2)):0}return U.after=vl,U.ary=yl,U.assign=Lu,U.assignIn=Ru,U.assignInWith=zu,U.assignWith=Bu,U.at=Vu,U.before=bl,U.bind=xl,U.bindAll=of,U.bindKey=Sl,U.castArray=Vl,U.chain=Pc,U.chunk=ws,U.compact=Ts,U.concat=Es,U.cond=sf,U.conforms=cf,U.constant=lf,U.countBy=Gc,U.create=Hu,U.curry=Cl,U.curryRight=wl,U.debounce=Tl,U.defaults=Uu,U.defaultsDeep=Wu,U.defer=El,U.delay=Dl,U.difference=Ds,U.differenceBy=Os,U.differenceWith=ks,U.drop=As,U.dropRight=js,U.dropRightWhile=Ms,U.dropWhile=Ns,U.fill=Ps,U.filter=qc,U.flatMap=Xc,U.flatMapDeep=Zc,U.flatMapDepth=Qc,U.flatten=Ls,U.flattenDeep=Rs,U.flattenDepth=zs,U.flip=Ol,U.flow=df,U.flowRight=ff,U.fromPairs=Bs,U.functions=Zu,U.functionsIn=Qu,U.groupBy=tl,U.initial=Us,U.intersection=Ws,U.intersectionBy=Gs,U.intersectionWith=Ks,U.invert=nd,U.invertBy=rd,U.invokeMap=rl,U.iteratee=mf,U.keyBy=il,U.keys=$,U.keysIn=ad,U.map=al,U.mapKeys=od,U.mapValues=sd,U.matches=hf,U.matchesProperty=gf,U.memoize=kl,U.merge=cd,U.mergeWith=ld,U.method=_f,U.methodOf=vf,U.mixin=yf,U.negate=Al,U.nthArg=Sf,U.omit=ud,U.omitBy=dd,U.once=jl,U.orderBy=ol,U.over=Cf,U.overArgs=Ml,U.overEvery=wf,U.overSome=Tf,U.partial=Nl,U.partialRight=Pl,U.partition=sl,U.pick=fd,U.pickBy=pd,U.property=Ef,U.propertyOf=Df,U.pull=Zs,U.pullAll=Qs,U.pullAllBy=$s,U.pullAllWith=ec,U.pullAt=tc,U.range=Of,U.rangeRight=kf,U.rearg=Fl,U.reject=ul,U.remove=nc,U.rest=Il,U.reverse=rc,U.sampleSize=fl,U.set=hd,U.setWith=gd,U.shuffle=pl,U.slice=ic,U.sortBy=gl,U.sortedUniq=dc,U.sortedUniqBy=fc,U.split=Wd,U.spread=Ll,U.tail=pc,U.take=mc,U.takeRight=hc,U.takeRightWhile=gc,U.takeWhile=_c,U.tap=Fc,U.throttle=Rl,U.thru=Ic,U.toArray=ju,U.toPairs=_d,U.toPairsIn=vd,U.toPath=If,U.toPlainObject=Fu,U.transform=yd,U.unary=zl,U.union=vc,U.unionBy=yc,U.unionWith=bc,U.uniq=xc,U.uniqBy=Sc,U.uniqWith=Cc,U.unset=bd,U.unzip=wc,U.unzipWith=Tc,U.update=xd,U.updateWith=Sd,U.values=Cd,U.valuesIn=wd,U.without=Ec,U.words=rf,U.wrap=Bl,U.xor=Dc,U.xorBy=Oc,U.xorWith=kc,U.zip=Ac,U.zipObject=jc,U.zipObjectDeep=Mc,U.zipWith=Nc,U.entries=_d,U.entriesIn=vd,U.extend=Ru,U.extendWith=zu,yf(U,U),U.add=Rf,U.attempt=af,U.camelCase=Od,U.capitalize=kd,U.ceil=zf,U.clamp=Td,U.clone=Hl,U.cloneDeep=Wl,U.cloneDeepWith=Gl,U.cloneWith=Ul,U.conformsTo=Kl,U.deburr=Ad,U.defaultTo=uf,U.divide=Bf,U.endsWith=jd,U.eq=ql,U.escape=Md,U.escapeRegExp=Nd,U.every=Kc,U.find=Jc,U.findIndex=Fs,U.findKey=Gu,U.findLast=Yc,U.findLastIndex=Is,U.findLastKey=Ku,U.floor=Vf,U.forEach=$c,U.forEachRight=el,U.forIn=qu,U.forInRight=Ju,U.forOwn=Yu,U.forOwnRight=Xu,U.get=$u,U.gt=Jl,U.gte=Yl,U.has=ed,U.hasIn=td,U.head=Vs,U.identity=pf,U.includes=nl,U.indexOf=Hs,U.inRange=Ed,U.invoke=id,U.isArguments=Xl,U.isArray=q,U.isArrayBuffer=Zl,U.isArrayLike=Ql,U.isArrayLikeObject=J,U.isBoolean=$l,U.isBuffer=eu,U.isDate=tu,U.isElement=nu,U.isEmpty=ru,U.isEqual=iu,U.isEqualWith=au,U.isError=ou,U.isFinite=su,U.isFunction=cu,U.isInteger=lu,U.isLength=uu,U.isMap=du,U.isMatch=fu,U.isMatchWith=pu,U.isNaN=mu,U.isNative=hu,U.isNil=_u,U.isNull=gu,U.isNumber=vu,U.isObject=Y,U.isObjectLike=X,U.isPlainObject=yu,U.isRegExp=bu,U.isSafeInteger=xu,U.isSet=Su,U.isString=Cu,U.isSymbol=wu,U.isTypedArray=Tu,U.isUndefined=Eu,U.isWeakMap=Du,U.isWeakSet=Ou,U.join=qs,U.kebabCase=Pd,U.last=Js,U.lastIndexOf=Ys,U.lowerCase=Fd,U.lowerFirst=Id,U.lt=ku,U.lte=Au,U.max=Hf,U.maxBy=Uf,U.mean=Wf,U.meanBy=Gf,U.min=Kf,U.minBy=qf,U.stubArray=Af,U.stubFalse=jf,U.stubObject=Mf,U.stubString=Nf,U.stubTrue=Pf,U.multiply=Jf,U.nth=Xs,U.noConflict=bf,U.noop=xf,U.now=_l,U.pad=Ld,U.padEnd=Rd,U.padStart=zd,U.parseInt=Bd,U.random=Dd,U.reduce=cl,U.reduceRight=ll,U.repeat=Vd,U.replace=Hd,U.result=md,U.round=Yf,U.runInContext=e,U.sample=dl,U.size=ml,U.snakeCase=Ud,U.some=hl,U.sortedIndex=ac,U.sortedIndexBy=oc,U.sortedIndexOf=sc,U.sortedLastIndex=cc,U.sortedLastIndexBy=lc,U.sortedLastIndexOf=uc,U.startCase=Gd,U.startsWith=Kd,U.subtract=Xf,U.sum=Zf,U.sumBy=Qf,U.template=qd,U.times=Ff,U.toFinite=Mu,U.toInteger=Z,U.toLength=Nu,U.toLower=Jd,U.toNumber=Pu,U.toSafeInteger=Iu,U.toString=Q,U.toUpper=Yd,U.trim=Xd,U.trimEnd=Zd,U.trimStart=Qd,U.truncate=$d,U.unescape=ef,U.uniqueId=Lf,U.upperCase=tf,U.upperFirst=nf,U.each=$c,U.eachRight=el,U.first=Vs,yf(U,function(){var e={};return Si(U,function(t,n){N.call(U.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),U.VERSION=`4.17.21`,un([`bind`,`bindKey`,`curry`,`curryRight`,`partial`,`partialRight`],function(e){U[e].placeholder=U}),un([`drop`,`take`],function(e,t){W.prototype[e]=function(r){r=r===n?1:F(Z(r),0);var i=this.__filtered__&&!t?new W(this):this.clone();return i.__filtered__?i.__takeCount__=R(r,i.__takeCount__):i.__views__.push({size:R(r,y),type:e+(i.__dir__<0?`Right`:``)}),i},W.prototype[e+`Right`]=function(t){return this.reverse()[e](t).reverse()}}),un([`filter`,`map`,`takeWhile`],function(e,t){var n=t+1,r=n==1||n==3;W.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:K(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),un([`head`,`last`],function(e,t){var n=`take`+(t?`Right`:``);W.prototype[e]=function(){return this[n](1).value()[0]}}),un([`initial`,`tail`],function(e,t){var n=`drop`+(t?``:`Right`);W.prototype[e]=function(){return this.__filtered__?new W(this):this[n](1)}}),W.prototype.compact=function(){return this.filter(pf)},W.prototype.find=function(e){return this.filter(e).head()},W.prototype.findLast=function(e){return this.reverse().find(e)},W.prototype.invokeMap=G(function(e,t){return typeof e==`function`?new W(this):this.map(function(n){return Pi(n,e,t)})}),W.prototype.reject=function(e){return this.filter(Al(K(e)))},W.prototype.slice=function(e,t){e=Z(e);var r=this;return r.__filtered__&&(e>0||t<0)?new W(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(t=Z(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},W.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},W.prototype.toArray=function(){return this.take(y)},Si(W.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=U[i?`take`+(t==`last`?`Right`:``):t],o=i||/^find/.test(t);a&&(U.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,c=t instanceof W,l=s[0],u=c||q(t),d=function(e){var t=a.apply(U,gn([e],s));return i&&f?t[0]:t};u&&r&&typeof l==`function`&&l.length!=1&&(c=u=!1);var f=this.__chain__,p=!!this.__actions__.length,m=o&&!f,h=c&&!p;if(!o&&u){t=h?t:new W(this);var g=e.apply(t,s);return g.__actions__.push({func:Ic,args:[d],thisArg:n}),new vr(g,f)}return m&&h?e.apply(this,s):(g=this.thru(d),m?i?g.value()[0]:g.value():g)})}),un([`pop`,`push`,`shift`,`sort`,`splice`,`unshift`],function(e){var t=dt[e],n=/^(?:push|sort|unshift)$/.test(e)?`tap`:`thru`,r=/^(?:pop|shift)$/.test(e);U.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(q(i)?i:[],e)}return this[n](function(n){return t.apply(q(n)?n:[],e)})}}),Si(W.prototype,function(e,t){var n=U[t];if(n){var r=n.name+``;N.call(An,r)||(An[r]=[]),An[r].push({name:t,func:n})}}),An[co(n,s).name]=[{name:`wrapper`,func:n}],W.prototype.clone=yr,W.prototype.reverse=br,W.prototype.value=xr,U.prototype.at=Lc,U.prototype.chain=Rc,U.prototype.commit=zc,U.prototype.next=Bc,U.prototype.plant=Hc,U.prototype.reverse=Uc,U.prototype.toJSON=U.prototype.valueOf=U.prototype.value=Wc,U.prototype.first=U.prototype.head,Ot&&(U.prototype[Ot]=Vc),U})();typeof define==`function`&&typeof define.amd==`object`&&define.amd?(B._=ur,define(function(){return ur})):Qt?((Qt.exports=ur)._=ur,Zt._=ur):B._=ur}).call(e)}))(),Object.values(function(e){return e.EditMode=`edit-mode`,e.Preview=`preview`,e}({}));var Ae=`1.21.0`,je=e=>e.message?`${e.name}: ${e.message}`:e.name,Me=e=>e instanceof Error?je(e):typeof e==`object`&&e&&`data`in e&&e.data instanceof Error?je(e.data):e,Ne=class{constructor(e){this.debug=!1,this.debug=e?.debug??!1,this.appName=e?.appName,this.appVersion=e?.appVersion}log(e,...t){this.debug&&this.print(e,`info`,t)}warn(e,...t){this.print(e,`warn`,t)}error(e,...t){this.print(e,`error`,t)}print(e,t,n){let r=[`[${[`MeltingSpot`,this.appName,this.appVersion].filter(Boolean).join(` - `)}] ${e}`];n.length&&r.push(...n.map(Me)),console[t](...r)}},Pe=new Ne({appName:`Core SDK`,appVersion:Ae}),Fe=e=>e.toLowerCase().replace(/[^a-z0-9-]/g,``),Ie=[`/user`],Le=({deeplink:e,spotId:t})=>{try{let n=new URL(e,`https://unused.com`),r=n.pathname;return n.search&&(r+=n.search),n.hash&&(r+=n.hash),Ie.some(e=>r.startsWith(e))||(r=`/spot/${t}/${ie(r)}`),r}catch(e){return Pe.warn(`Failed to parse deeplink URL`,e),null}},Re=[/(^|\.)meltingspot\.io$/i],ze=e=>{let t;try{let n=oe(e);t=new URL(n)}catch{throw Error(`Invalid baseURL: ${e}`)}let n=t.hostname===`localhost`||t.hostname===`127.0.0.1`,r=t.protocol===`https:`,i=Re.some(e=>e.test(t.hostname));if(!n&&(!r||!i))throw Error(`Untrusted baseURL origin: ${t.origin}`);return t.origin},Be={msApiBaseUrl:`https://openapi.meltingspot.io/`,msCommunityWebBaseUrl:`https://go.meltingspot.io/`,msCoreBaseUrl:`https://go-api.meltingspot.io/`,ssoToken:void 0,spotId:``,autoJoin:!1,rootDocument:globalThis.document},Ve=class e{constructor(){this.configuration=Be}static getInstance(){return e.instance||=new e,e.instance}setConfiguration(e){this.configuration={...this.configuration,...e}}static getConfiguration(t={}){let n=e.getInstance(),r=Object.fromEntries(Object.entries(t).filter(([,e])=>e!==void 0));return{...n.configuration,...r}}},He=RegExp(`(%[a-f0-9]{2})|([^%]+?)`,`gi`),Ue=RegExp(`(%[a-f0-9]{2})+`,`gi`);function O(e,t){try{return[decodeURIComponent(e.join(``))]}catch{}if(e.length===1)return e;t||=1;let n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],O(n),O(r))}function We(e){try{return decodeURIComponent(e)}catch{let t=e.match(He)||[];for(let n=1;n<t.length;n++)e=O(t,n).join(``),t=e.match(He)||[];return e}}function Ge(e){let t={"%FE%FF":`��`,"%FF%FE":`��`},n=Ue.exec(e);for(;n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{let e=We(n[0]);e!==n[0]&&(t[n[0]]=e)}n=Ue.exec(e)}t[`%C2`]=`�`;let r=Object.keys(t);for(let n of r)e=e.replace(new RegExp(n,`g`),t[n]);return e}function Ke(e){if(typeof e!=`string`)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return Ge(e)}}function qe(e,t){let n={};if(Array.isArray(t))for(let r of t){let t=Object.getOwnPropertyDescriptor(e,r);t?.enumerable&&Object.defineProperty(n,r,t)}else for(let r of Reflect.ownKeys(e)){let i=Object.getOwnPropertyDescriptor(e,r);if(i.enumerable){let a=e[r];t(r,a,e)&&Object.defineProperty(n,r,i)}}return n}function Je(e,t){if(typeof e!=`string`||typeof t!=`string`)throw TypeError("Expected the arguments to be of type `string`");if(e===``||t===``)return[];let n=e.indexOf(t);return n===-1?[]:[e.slice(0,n),e.slice(n+t.length)]}var Ye=c({exclude:()=>ft,extract:()=>st,parse:()=>A,parseUrl:()=>lt,pick:()=>dt,stringify:()=>ct,stringifyUrl:()=>ut}),Xe=e=>e==null,Ze=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),Qe=Symbol(`encodeFragmentIdentifier`);function $e(e){switch(e.arrayFormat){case`index`:return t=>(n,r)=>{let i=n.length;return r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?[...n,[k(t,e),`[`,i,`]`].join(``)]:[...n,[k(t,e),`[`,k(i,e),`]=`,k(r,e)].join(``)]};case`bracket`:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?[...n,[k(t,e),`[]`].join(``)]:[...n,[k(t,e),`[]=`,k(r,e)].join(``)];case`colon-list-separator`:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?[...n,[k(t,e),`:list=`].join(``)]:[...n,[k(t,e),`:list=`,k(r,e)].join(``)];case`comma`:case`separator`:case`bracket-separator`:{let t=e.arrayFormat===`bracket-separator`?`[]=`:`=`;return n=>(r,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===``?r:(i=i===null?``:i,r.length===0?[[k(n,e),t,k(i,e)].join(``)]:[[r,k(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?[...n,k(t,e)]:[...n,[k(t,e),`=`,k(r,e)].join(``)]}}function et(e){let t;switch(e.arrayFormat){case`index`:return(e,n,r)=>{if(t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,``),!t){r[e]=n;return}r[e]===void 0&&(r[e]={}),r[e][t[1]]=n};case`bracket`:return(e,n,r)=>{if(t=/(\[])$/.exec(e),e=e.replace(/\[]$/,``),!t){r[e]=n;return}if(r[e]===void 0){r[e]=[n];return}r[e]=[...r[e],n]};case`colon-list-separator`:return(e,n,r)=>{if(t=/(:list)$/.exec(e),e=e.replace(/:list$/,``),!t){r[e]=n;return}if(r[e]===void 0){r[e]=[n];return}r[e]=[...r[e],n]};case`comma`:case`separator`:return(t,n,r)=>{let i=typeof n==`string`&&n.includes(e.arrayFormatSeparator),a=typeof n==`string`&&!i&&nt(n,e).includes(e.arrayFormatSeparator);n=a?nt(n,e):n,r[t]=i||a?n.split(e.arrayFormatSeparator).map(t=>nt(t,e)):n===null?n:nt(n,e)};case`bracket-separator`:return(t,n,r)=>{let i=/(\[])$/.test(t);if(t=t.replace(/\[]$/,``),!i){r[t]=n&&nt(n,e);return}let a=n===null?[]:nt(n,e).split(e.arrayFormatSeparator);if(r[t]===void 0){r[t]=a;return}r[t]=[...r[t],...a]};default:return(e,t,n)=>{if(n[e]===void 0){n[e]=t;return}n[e]=[...[n[e]].flat(),t]}}}function tt(e){if(typeof e!=`string`||e.length!==1)throw TypeError(`arrayFormatSeparator must be single character string`)}function k(e,t){return t.encode?t.strict?Ze(e):encodeURIComponent(e):e}function nt(e,t){return t.decode?Ke(e):e}function rt(e){return Array.isArray(e)?e.sort():typeof e==`object`?rt(Object.keys(e)).sort((e,t)=>Number(e)-Number(t)).map(t=>e[t]):e}function it(e){let t=e.indexOf(`#`);return t!==-1&&(e=e.slice(0,t)),e}function at(e){let t=``,n=e.indexOf(`#`);return n!==-1&&(t=e.slice(n)),t}function ot(e,t,n){return n===`string`&&typeof e==`string`?e:typeof n==`function`&&typeof e==`string`?n(e):n===`boolean`&&e===null?!0:n===`boolean`&&e!==null&&(e.toLowerCase()===`true`||e.toLowerCase()===`false`)?e.toLowerCase()===`true`:n===`boolean`&&e!==null&&(e.toLowerCase()===`1`||e.toLowerCase()===`0`)?e.toLowerCase()===`1`:n===`string[]`&&t.arrayFormat!==`none`&&typeof e==`string`?[e]:n===`number[]`&&t.arrayFormat!==`none`&&!Number.isNaN(Number(e))&&typeof e==`string`&&e.trim()!==``?[Number(e)]:n===`number`&&!Number.isNaN(Number(e))&&typeof e==`string`&&e.trim()!==``?Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()===`true`||e.toLowerCase()===`false`)?e.toLowerCase()===`true`:t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e==`string`&&e.trim()!==``?Number(e):e}function st(e){e=it(e);let t=e.indexOf(`?`);return t===-1?``:e.slice(t+1)}function A(e,t){t={decode:!0,sort:!0,arrayFormat:`none`,arrayFormatSeparator:`,`,parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...t},tt(t.arrayFormatSeparator);let n=et(t),r=Object.create(null);if(typeof e!=`string`||(e=e.trim().replace(/^[?#&]/,``),!e))return r;for(let i of e.split(`&`)){if(i===``)continue;let e=t.decode?i.replaceAll(`+`,` `):i,[a,o]=Je(e,`=`);a===void 0&&(a=e),o=o===void 0?null:[`comma`,`separator`,`bracket-separator`].includes(t.arrayFormat)?o:nt(o,t),n(nt(a,t),o,r)}for(let[e,n]of Object.entries(r))if(typeof n==`object`&&n&&t.types[e]!==`string`)for(let[r,i]of Object.entries(n)){let a=t.types[e]?t.types[e].replace(`[]`,``):void 0;n[r]=ot(i,t,a)}else r[e]=typeof n==`object`&&n&&t.types[e]===`string`?Object.values(n).join(t.arrayFormatSeparator):ot(n,t,t.types[e]);return t.sort===!1?r:(t.sort===!0?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>{let n=r[t];return e[t]=n&&typeof n==`object`&&!Array.isArray(n)?rt(n):n,e},Object.create(null))}function ct(e,t){if(!e)return``;t={encode:!0,strict:!0,arrayFormat:`none`,arrayFormatSeparator:`,`,...t},tt(t.arrayFormatSeparator);let n=n=>t.skipNull&&Xe(e[n])||t.skipEmptyString&&e[n]===``,r=$e(t),i={};for(let[t,r]of Object.entries(e))n(t)||(i[t]=r);let a=Object.keys(i);return t.sort!==!1&&a.sort(t.sort),a.map(n=>{let i=e[n];return i===void 0?``:i===null?k(n,t):Array.isArray(i)?i.length===0&&t.arrayFormat===`bracket-separator`?k(n,t)+`[]`:i.reduce(r(n),[]).join(`&`):k(n,t)+`=`+k(i,t)}).filter(e=>e.length>0).join(`&`)}function lt(e,t){t={decode:!0,...t};let[n,r]=Je(e,`#`);return n===void 0&&(n=e),{url:n?.split(`?`)?.[0]??``,query:A(st(e),t),...t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:nt(r,t)}:{}}}function ut(e,t){t={encode:!0,strict:!0,[Qe]:!0,...t};let n=it(e.url).split(`?`)[0]||``,r=ct({...A(st(e.url),{sort:!1,...t}),...e.query},t);r&&=`?${r}`;let i=at(e.url);if(typeof e.fragmentIdentifier==`string`){let r=new URL(n);r.hash=e.fragmentIdentifier,i=t[Qe]?r.hash:`#${e.fragmentIdentifier}`}return`${n}${r}${i}`}function dt(e,t,n){n={parseFragmentIdentifier:!0,[Qe]:!1,...n};let{url:r,query:i,fragmentIdentifier:a}=lt(e,n);return ut({url:r,query:qe(i,t),fragmentIdentifier:a},n)}function ft(e,t,n){return dt(e,Array.isArray(t)?e=>!t.includes(e):(e,n)=>!t(e,n),n)}var pt=Ye,j=class e extends Error{constructor(t,n){super(`HTTP Error ${t}${n?`: ${n}`:``}`),this.code=t,this.name=`HttpError`,Object.setPrototypeOf(this,e.prototype)}},M=function(e){return e.DELETE=`DELETE`,e.GET=`GET`,e.PATCH=`PATCH`,e.POST=`POST`,e}({}),N=class e{constructor(){this.headers={}}setHeaders(e){this.headers=e}async get(t){try{let n=t.query?`${t.url}?${this.serializeQuery(t.query)}`:t.url,r=await fetch(n,{headers:{...this.headers,...t.headers,"Content-Type":`application/json`},...t.signal?{signal:t.signal}:{}});return r.ok?T(await e.parseBody(r)):E(new j(r.status,await r.text()))}catch(e){let t=e instanceof Error?e.message:`Unknown error`;return E(new j(D.INTERNAL_SERVER_ERROR,t))}}async post(t){try{let n=await fetch(t.url,{method:`POST`,headers:{...this.headers,...t.headers,"Content-Type":`application/json`},body:JSON.stringify(t.payload),...t.signal?{signal:t.signal}:{}});return n.ok?T(await e.parseBody(n)):E(new j(n.status,await n.text()))}catch(e){let t=e instanceof Error?e.message:`Unknown error`;return E(new j(D.INTERNAL_SERVER_ERROR,t))}}async delete(t){try{let n=await fetch(t.url,{method:`DELETE`,headers:{...this.headers,...t.headers,Accept:`application/json`},...t.signal?{signal:t.signal}:{}});return n.ok?T(await e.parseBody(n)):E(new j(n.status,await n.text()))}catch(e){let t=e instanceof Error?e.message:`Unknown error`;return E(new j(D.INTERNAL_SERVER_ERROR,t))}}async patch(t){try{let n=await fetch(t.url,{method:`PATCH`,headers:{...this.headers,...t.headers,"Content-Type":`application/json`},body:JSON.stringify(t.payload),...t.signal?{signal:t.signal}:{}});return n.ok?T(await e.parseBody(n)):E(new j(n.status,await n.text()))}catch(e){let t=e instanceof Error?e.message:`Unknown error`;return E(new j(D.INTERNAL_SERVER_ERROR,t))}}static async parseBody(e){if(e.status!==D.NO_CONTENT)return await e.json()}serializeQuery(e){if(typeof e==`string`)return e;if(typeof e==`object`)for(let t in e)e[t]===void 0&&delete e[t];return e=pt.stringify(e,{arrayFormat:`none`}),e}},mt={accessToken:{email:`/v1/auth/accessToken/email`,sso:{jwt:`/v1/auth/accessToken/sso/jwt`}},refreshAccessToken:`/v1/auth/accessToken~refresh`,password:{reset:`/v1/auth/password~reset`}},ht=class e extends EventTarget{constructor(){super(),this.accessToken=null,this.refreshToken=null}static getInstance(){return e.instance||=new e,e.instance}async loginWithPassword(e,t){let n=await this.callApi({endpoint:mt.accessToken.email,method:`POST`,body:{email:e,password:t},withSpotId:!0});if(n.isErr())return E(n.error);let{accessToken:r,refreshToken:i}=n.value;return this.setTokens(r.token,i.token),T({accessToken:r.token,refreshToken:i.token})}async loginWithSsoToken(e){let t=await this.callApi({endpoint:mt.accessToken.sso.jwt,method:`POST`,body:{token:e},withSpotId:!0});if(t.isErr())return E(t.error);let{accessToken:n,refreshToken:r}=t.value;return this.setTokens(n.token,r.token),T({accessToken:n.token,refreshToken:r.token})}loginWithAuthTokens(e,t){return this.setTokens(e,t),{accessToken:e,refreshToken:t}}resetPassword(e){return this.callApi({endpoint:mt.password.reset,method:`POST`,body:{email:e}})}refresh(){return this.refreshInFlight??=this.doRefresh().finally(()=>{this.refreshInFlight=void 0}).then(({result:e,superseded:t})=>(t||this.emitRefreshRejected(e),e)),this.refreshInFlight}async doRefresh(){let e=this.refreshToken,t=await this.callApi({endpoint:mt.refreshAccessToken,method:`POST`,body:{refreshToken:e}});if(this.refreshToken!==e)return{result:this.currentSessionResult(),superseded:!0};if(t.isErr())return{result:E(t.error),superseded:!1};let{accessToken:n,refreshToken:r}=t.value;return this.setTokens(n.token,r.token),{result:T({accessToken:n.token,refreshToken:r.token}),superseded:!1}}currentSessionResult(){return!this.accessToken||!this.refreshToken?E(new j(D.UNAUTHORIZED,`Logged out while the refresh was in flight`)):T({accessToken:this.accessToken,refreshToken:this.refreshToken})}emitRefreshRejected(e){e.isOk()||e.error.code!==D.UNAUTHORIZED||this.dispatchEvent(new CustomEvent(`auth:refresh-rejected`,{detail:{status:e.error.code}}))}async logout(){this.setTokens(null,null)}getAccessToken(){return this.accessToken}getRefreshToken(){return this.refreshToken}setTokens(e,t){if(this.accessToken!==e||this.refreshToken!==t){this.accessToken=e,this.refreshToken=t;let n=new CustomEvent(`auth:tokens-updated`,{detail:{accessToken:e,refreshToken:t}});this.dispatchEvent(n)}}async callApi(e){try{let{spotId:t,msApiBaseUrl:n}=Ve.getConfiguration(),r=se(e.endpoint,n),i={"Content-Type":`application/json`,...e.headers};e.withSpotId&&t&&(i[gt.SpotId]=t);let a=await fetch(r,{method:e.method,body:e.body?JSON.stringify(e.body):void 0,headers:i});return a.ok?a.status===D.NO_CONTENT?T(void 0):T(await a.json()):E(new j(a.status,a.statusText))}catch(e){return E(new j(D.INTERNAL_SERVER_ERROR,e instanceof Error?e.message:String(e)))}}},gt=function(e){return e.Authorization=`Authorization`,e.SpotId=`x-spotid`,e}({}),_t=class e{static getInstance(){return e.instance||=new e,e.instance}static buildAuthenticatedRequest(e){let{msApiBaseUrl:t,spotId:n}=Ve.getConfiguration(),r=se(e,t),i=ht.getInstance().getAccessToken();if(!i)return E(Error(`Not authenticated`));let a={"Content-Type":`application/json`,Authorization:`Bearer ${i}`};return n&&(a[`x-spotid`]=n),T({url:r,headers:a})}static async stream(t,n,r){let{streamTransport:i}=Ve.getConfiguration();if(i)return i({endpoint:t,body:n,signal:r});let a=e.buildAuthenticatedRequest(t);if(a.isErr())return E(a.error);let{url:o,headers:s}=a.value;try{let e=await fetch(o,{method:`POST`,headers:s,...n===void 0?{}:{body:JSON.stringify(n)},...r?{signal:r}:{}});if(!e.ok){let t=await e.text();return E(Error(`HTTP ${e.status}: ${t}`))}if(e.status===D.NO_CONTENT){let t=e.body?.getReader();for(;t&&!(await t.read()).done;);return T(new ReadableStream({start:e=>e.close()}))}return e.body?T(e.body):E(Error(`Response body is empty`))}catch(e){let t=e instanceof Error?e.message:`Unknown error`;return E(e instanceof Error?e:Error(t))}}get pendingCount(){return this.queue.length}constructor(){this.queue=[],this.isProcessing=!1,this.isPaused=!1,this.authService=ht.getInstance(),this.httpService=new N}enqueue(e){return new Promise(t=>{this.queue.push(async()=>{try{t(await e())}catch(e){t(E(new j(D.INTERNAL_SERVER_ERROR,e instanceof Error?e.message:`Unknown error`)))}}),this.processQueue()})}async processQueue(){if(!this.isProcessing){this.isProcessing=!0;try{for(;!this.isPaused&&this.queue.length>0;){let e=this.queue.shift();if(!e)break;await e()}}finally{this.isProcessing=!1,!this.isPaused&&this.queue.length>0&&Promise.resolve().then(()=>this.processQueue())}}}pauseQueue(){this.isPaused=!0}resumeQueue(){let e=this.isPaused;this.isPaused=!1,e&&this.processQueue()}async call(e){return this.enqueue(async()=>{let t=async()=>{let{spotId:t,msApiBaseUrl:n}=Ve.getConfiguration(),r={...e.options?.headers??{}};t&&(r[`x-spotid`]=t);let i=this.authService.getAccessToken(),{requiresAuth:a=!0}=e;if(!i&&a)return E(new j(D.UNAUTHORIZED));i&&(r.Authorization=`Bearer ${i}`);let o=se(e.endpoint,n);switch(e.method){case M.DELETE:return this.httpService.delete({...e.options??{},headers:r,url:o});case M.GET:return this.httpService.get({...e.options??{},headers:r,url:o});case M.PATCH:return this.httpService.patch({...e.options??{},headers:r,url:o});case M.POST:return this.httpService.post({...e.options??{},headers:r,url:o});default:return E(new j(D.METHOD_NOT_ALLOWED,`Method not allowed`))}},n=await t();if(n.isErr()&&n.error.code===D.UNAUTHORIZED){let e=await this.authService.refresh();if(e.isErr())return E(new j(D.UNAUTHORIZED,e.error.message));n=await t()}return n})}},vt={config:`/v1/melty/config`},yt=class e{static getInstance(){return e.instance||=new e,e.instance}constructor(){this.meltingSpotApi=_t.getInstance()}async getConfig(){let e=await this.meltingSpotApi.call({method:M.GET,endpoint:vt.config});if(e.isErr())return E(e.error);let t=e.value?.capabilities;return T({capabilities:{intentStandaloneAuthoring:t?.intentStandaloneAuthoring===!0,intentStandaloneAuthoringAvailable:t?.intentStandaloneAuthoringAvailable===!0}})}},P={playbooks:`/v1/playbooks`,pages:e=>`/v1/playbooks/${e}/pages`,hotspots:(e,t)=>`/v1/playbooks/${e}/pages/${t}/hotspots`,hotspot:(e,t,n)=>`/v1/playbooks/${e}/pages/${t}/hotspots/${n}`,accessibleIntents:(e,t)=>`/v1/playbooks/${e}/pages/${t}/accessibleIntents`,intents:(e,t,n)=>`/v1/playbooks/${e}/pages/${t}/hotspots/${n}/intents`,intent:(e,t,n,r)=>`/v1/playbooks/${e}/pages/${t}/hotspots/${n}/intents/${r}`,intentStandaloneTitle:`/v1/melty/intentStandalone~generateTitle`},bt=50,xt=class e{static getInstance(){return e.instance||=new e,e.instance}constructor(){this.meltingSpotApi=_t.getInstance()}async listPlaybooks(e){let t=await this.meltingSpotApi.call({method:M.GET,endpoint:P.playbooks,options:{query:{page:e?.page??1,limit:e?.limit??bt,...e?.domain?{"domain[eq]":e.domain}:{},...e?.host===void 0?{}:{"domain[matchesHost]":e.host}}}});return t.isErr()?E(t.error):T(t.value)}async listPlaybookPages(e){let t=await this.meltingSpotApi.call({method:M.GET,endpoint:P.pages(e.playbookId),options:{query:{page:e.page??1,limit:e.limit??bt,...e.url?{"url[eq]":e.url}:{}}}});return t.isErr()?E(t.error):T(t.value)}async createPlaybookPage(e,t){let n=await this.meltingSpotApi.call({method:M.POST,endpoint:P.pages(e.playbookId),options:{payload:t}});return n.isErr()?E(n.error):T(n.value)}async listAccessiblePlaybookIntents(e){let t=await this.meltingSpotApi.call({method:M.GET,endpoint:P.accessibleIntents(e.playbookId,e.pageId),options:{query:{...e.domain?{domain:e.domain}:{},...e.capabilities?.length?{capabilities:e.capabilities}:{}}}});return t.isErr()?E(t.error):T(t.value)}async listPlaybookHotspots(e){let t=await this.meltingSpotApi.call({method:M.GET,endpoint:P.hotspots(e.playbookId,e.pageId),options:{query:{page:e.page??1,limit:e.limit??bt,...e.intentStatus?{"intentStatus[eq]":e.intentStatus}:{},...e.widgetType?{"widgetType[eq]":e.widgetType}:{}}}});return t.isErr()?E(t.error):T(t.value)}async createPlaybookHotspot(e,t){let n=await this.meltingSpotApi.call({method:M.POST,endpoint:P.hotspots(e.playbookId,e.pageId),options:{payload:t}});return n.isErr()?E(n.error):T(n.value)}async updatePlaybookHotspot(e,t){let n=await this.meltingSpotApi.call({method:M.PATCH,endpoint:P.hotspot(e.playbookId,e.pageId,e.hotspotId),options:{payload:t}});return n.isErr()?E(n.error):T(n.value)}async listPlaybookIntents(e){let t=await this.meltingSpotApi.call({method:M.GET,endpoint:P.intents(e.playbookId,e.pageId,e.hotspotId),options:{query:{page:e.page??1,limit:e.limit??bt,...e.status?{"status[eq]":e.status}:{}}}});return t.isErr()?E(t.error):T(t.value)}async createPlaybookIntent(e,t){let n=await this.meltingSpotApi.call({method:M.POST,endpoint:P.intents(e.playbookId,e.pageId,e.hotspotId),options:{payload:t}});return n.isErr()?E(n.error):T(n.value)}async generateIntentStandaloneTitle(e){let t=await this.meltingSpotApi.call({method:M.POST,endpoint:P.intentStandaloneTitle,options:{payload:e}});return t.isErr()?E(t.error):T(t.value)}async updatePlaybookIntent(e,t){let n=await this.meltingSpotApi.call({method:M.PATCH,endpoint:P.intent(e.playbookId,e.pageId,e.hotspotId,e.intentId),options:{payload:t}});return n.isErr()?E(n.error):T(n.value)}},St={me:`/v1/spots/me`},Ct=1,wt=class e{static getInstance(){return e.instance||=new e,e.instance}constructor(){this.meltingSpotApi=_t.getInstance()}async listSpotsForMe(e){let t=await this.meltingSpotApi.call({method:M.GET,endpoint:St.me,options:{query:{page:e?.page??Ct,limit:e?.limit??50,...e?.spotMemberRole?{"spotMemberRole[eq]":e.spotMemberRole}:{},...e?.id?{"id[eq]":e.id}:{},...e?.name?{"name[contains]":e.name}:{}}}});return t.isErr()?E(t.error):T(t.value)}},Tt={spotMember:{me:`/v1/spotMembers/me`,joinFromSso:`/v1/spotMembers~joinFromSso`,search:`/v1/spotMembers~search`}},Et=class e{static getInstance(){return e.instance||=new e,e.instance}constructor(){this.meltingSpotApi=_t.getInstance()}async getSpotMemberForMe(){let e=await this.meltingSpotApi.call({method:M.GET,endpoint:Tt.spotMember.me});return e.isErr()?E(e.error):T(e.value)}async searchSpotMembers(e){let t={page:e.page,limit:e.limit};e.search&&(t.search=e.search);let n=await this.meltingSpotApi.call({method:M.GET,endpoint:Tt.spotMember.search,options:{query:t}});return n.isErr()?E(n.error):T(n.value)}async joinFromSso(e){let t=await this.meltingSpotApi.call({method:M.POST,endpoint:Tt.spotMember.joinFromSso,options:{payload:{token:e}}});return t.isErr()?E(t.error):T(t.value)}},Dt={spotMemberSsoToken:`/v1/spotMembers/auth/sso/jwt`,previewAccessKey:`/v1/spotMembers/auth/preview/accessKey`},Ot=class e{static getInstance(){return e.instance||=new e,e.instance}constructor(){this.meltingSpotApi=_t.getInstance()}async generateSsoToken(){let e=await this.meltingSpotApi.call({method:M.POST,endpoint:Dt.spotMemberSsoToken,options:{payload:{}}});return e.isErr()?E(e.error):T(e.value.token)}async generatePreviewAccessKey(e){let t=await this.meltingSpotApi.call({method:M.POST,endpoint:Dt.previewAccessKey,options:{payload:{targetSpotMemberId:e.targetSpotMemberId}}});return t.isErr()?E(t.error):T(t.value)}},kt=class e{static getInstance(){return e.instance||=new e,e.instance}constructor(){this.spotMemberAuthApiService=Ot.getInstance()}async generateSsoToken(){return this.spotMemberAuthApiService.generateSsoToken()}},At=e=>{let t=e.get(`utm_source`);if(t)return{source:t,medium:e.get(`utm_medium`)??void 0,campaign:e.get(`utm_campaign`)??void 0,term:e.get(`utm_term`)??void 0,content:e.get(`utm_content`)??void 0}},jt=e=>e?Object.entries(e).reduce((e,[t,n])=>(n!=null&&(e[`utm_${t}`]=n),e),{}):{},Mt=Ve.getInstance(),Nt=ht.getInstance(),Pt=kt.getInstance(),Ft={Melty:yt.getInstance(),Playbook:xt.getInstance(),Spot:wt.getInstance(),SpotMember:Et.getInstance()},It=globalThis;It.MeltingSpot||={},It.MeltingSpot.Configuration=Mt,It.MeltingSpot.Auth=Nt,It.MeltingSpot.Sso=Pt,It.MeltingSpot.Api=Ft;var Lt=new Ne({appName:`Embed SDK`,appVersion:`1.21.0`}),Rt=`EmbedRedirect`,zt=/^\/spot\/([^/]+)\/sso\/oidc\/embed\/authorize$/,Bt=e=>{try{return new URL(e).origin}catch{return}},Vt=(e,t)=>{let n=t.find(({contentWindow:t})=>t!==null&&t===e.source);if(!n||!n.origin||e.origin!==n.origin)return;let r=e.data?.url;if(typeof r!=`string`)return;let i;try{i=new URL(r)}catch{return}let a=Bt(n.msCoreBaseUrl),o=zt.exec(i.pathname)?.[1];if(!(!a||i.origin!==a||o?.toLowerCase()!==n.spotId.toLowerCase()||i.searchParams.get(`mode`)!==Rt))return{source:e.source,origin:e.origin,url:i.toString()}},Ht=e=>{window.location.assign(e)},F={ATTEMPT:`ms_oidc_attempt`,CODE:`ms_oidc_code`,ERROR:`ms_oidc_error`},Ut=(e=window.location,t=window.history)=>{let n=new URLSearchParams(e.hash.replace(/^#/,``)),r=Object.values(F);if(!r.some(e=>n.has(e)))return;let i=n.get(F.ATTEMPT),a=n.get(F.CODE)||void 0,o=n.get(F.ERROR)||void 0;r.forEach(e=>n.delete(e));let s=n.toString();return t.replaceState(t.state,``,e.pathname+e.search+(s?`#${s}`:``)),i&&(a||o)?{attemptId:i,code:a,error:o}:void 0},Wt=e=>{let t=new URLSearchParams({[F.ATTEMPT]:e.attemptId});return e.code&&t.set(F.CODE,e.code),e.error&&t.set(F.ERROR,e.error),t.toString()},I=class{#e=null;#t=null;constructor(e){this.content=e}set onRemove(e){this.#t=e}get contentWindow(){return this.#e?.contentWindow??null}get origin(){if(!this.#e)return null;try{return new URL(this.#e.src).origin}catch{return null}}inject(e){this.remove();let t=ce({input:e,rootDocument:this.content.rootDocument});this.#e=this.content.iframe,this.#e.classList.add(`ms-embed`),t.appendChild(this.#e)}remove(){this.#e&&=(this.#e.contentWindow&&this.#t?.(this.#e.contentWindow),this.#e.remove(),null)}},L=class{#e;constructor(e){this.baseURL=ze(e.baseURL),this.spotId=Fe(e.spotId),this.authToken=e.authToken??null,this.themeMode=e.themeMode??`auto`,this.domain=e.domain??null,this.deeplink=e.deeplink?Le({deeplink:e.deeplink,spotId:this.spotId}):null,this.utmParameters=e.utmParameters??null,this.rootDocument=e.rootDocument,this.#e=e.oidcReturn??null}get iframe(){let e=this.#e;this.#e=null;let t=e?null:this.authToken,n=this.getPath(e,t),r=new URL(`/spot/${this.spotId}${n}`,oe(this.baseURL));e&&(r.hash=Wt(e));let i=de({url:r,searchParams:{embed:this.spotId,themeMode:this.themeMode,ms_token:t,domain:this.domain,deeplink:this.deeplink,...jt(this.utmParameters)},rootDocument:this.rootDocument});return i.classList.add(`ms-spot`),i}getPath(e,t){return e?`/sso/oidc/embed`:t&&t.trim().length>0?`/sso/jwt`:``}},R={READY:`meltingspot:ready`,ERROR:`meltingspot:error`,PREFILL_DRAFT:`meltingspot:prefillDraft`,OIDC_REDIRECT:`ms:sso:oidc:redirect`,OIDC_REDIRECT_ACK:`ms:sso:oidc:redirect:ack`,BUSY:`meltingspot:busy`,IDLE:`meltingspot:idle`},Gt=class e{static{this.embeds=[]}static{this.messageListened=!1}static{this.iframeCallbacks=new Map}static injectSpotInto(t,n){let{onReady:r,onError:i,...a}=n,{spotId:o,rootDocument:s,msCommunityWebBaseUrl:c,msCoreBaseUrl:l}=Ve.getConfiguration({spotId:a.spotId,rootDocument:a.rootDocument,msCommunityWebBaseUrl:a.baseURL});if(!o)throw Lt.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let u=new URLSearchParams(window.location.search),d={spotId:o,authToken:a.authToken??u.get(`ms_token`),domain:a.domain,deeplink:a.deeplink??u.get(`ms_url`),themeMode:a.themeMode,utmParameters:a.utmParameters??At(u),baseURL:c,rootDocument:s},f=ce({input:t,rootDocument:s}),p=new L({...d,oidcReturn:Ut()}),m=new I(p);if(m.inject(f),e.embeds.push({frame:m,spotId:p.spotId,msCoreBaseUrl:l}),e.ensureMessageListener(),r||i){let t=m.content.iframe.contentWindow;t&&(e.iframeCallbacks.set(t,{onReady:r,onError:i}),m.onRemove=t=>{e.iframeCallbacks.delete(t)})}return Lt.log(`Spot injected`,d,typeof t==`string`?t:t.id),m}static clear(){e.embeds.forEach(({frame:e})=>{e.remove()}),e.embeds=[],e.iframeCallbacks.clear(),e.messageListened&&=(window.removeEventListener(`message`,e.handleMessageEvent),!1),Lt.log(`All MeltingSpot embeds cleared`)}static handleMessageEvent(t){if(!t.data||typeof t.data!=`object`)return;if(t.data.type===R.OIDC_REDIRECT){e.handleOidcRedirect(t);return}if(t.data.type!==R.READY&&t.data.type!==R.ERROR)return;let n=t.source,r=e.iframeCallbacks.get(n);if(!r)return;let{msCommunityWebBaseUrl:i}=Ve.getConfiguration({});if(i)try{let e=new URL(i).origin;if(t.origin!==e)return}catch{}t.data.type===R.READY?r.onReady?.():r.onError?.(t.data.error)}static handleOidcRedirect(t){let n=Vt(t,e.embeds.map(({frame:e,spotId:t,msCoreBaseUrl:n})=>({contentWindow:e.contentWindow,origin:e.origin,spotId:t,msCoreBaseUrl:n})));if(!n){Lt.warn(`OpenID Connect login request ignored`);return}n.source.postMessage({type:R.OIDC_REDIRECT_ACK},n.origin),Lt.log(`Navigating to the OpenID Connect login`),Ht(n.url)}static ensureMessageListener(){e.messageListened||=(window.addEventListener(`message`,e.handleMessageEvent),!0)}},Kt=globalThis;Kt.MeltingSpot||={},Kt.MeltingSpot.Embed=Gt;var z=new Ne({appName:`Widget SDK`,appVersion:`1.21.0`}),qt=class{constructor(e,t,n){this.content=e,this.rootDocument=t,this.dialogClassname=n,this.dialogElement=null,this.triggerElement=null,this.iframeElement=null,this.currentListener=null}inject({into:e,bind:t,options:n}){this.remove();let r=ce({input:e,rootDocument:this.rootDocument});if(this.dialogElement=le(this.rootDocument),this.dialogElement.classList.add(this.dialogClassname),this.dialogElement.onclose=()=>this.#t(),r.appendChild(this.dialogElement),t){this.triggerElement=ce({input:t,rootDocument:this.rootDocument});let e=this.open.bind(this,n);this.currentListener=t=>{t.stopPropagation(),t.preventDefault(),e()},this.triggerElement.addEventListener(`click`,this.currentListener)}}remove(){this.dialogElement&&=(this.dialogElement.remove(),this.dialogElement.onclose=null,null),this.triggerElement&&(this.currentListener&&this.triggerElement.removeEventListener(`click`,this.currentListener),this.triggerElement=null,this.currentListener=null)}open(e){this.dialogElement||this.inject({into:this.rootDocument.body}),this.dialogElement&&(this.#e(),this.dialogElement.showModal())}close(){this.dialogElement&&this.dialogElement.close()}#e(){this.dialogElement&&(this.iframeElement=this.dialogElement.appendChild(this.content.iframe))}#t(){this.iframeElement&&=(this.iframeElement.remove(),null)}},Jt=class extends qt{constructor(e,t){super(e,t,`ms-drawer`)}open(e){let{position:t=`right`}=e??{};super.open(e),this.dialogElement&&(this.dialogElement.dataset.position=t)}},Yt=class extends qt{constructor(e,t){super(e,t,`ms-modal`)}},Xt=class{constructor(e){this.baseURL=ze(e.baseURL),this.spotId=Fe(e.spotId),this.widgetId=Fe(e.widgetId),this.authToken=e.authToken??null,this.themeMode=e.themeMode??`auto`,this.domain=e.domain??null,this.utmParameters=e.utmParameters??null,this.rootDocument=e.rootDocument,this.intentId=e.intentId??null,this.hotspotId=e.hotspotId??null,this.surface=e.surface??null,this.parentOrigin=e.parentOrigin??null}get iframe(){let e=de({url:new URL(`/widgets/spot/${this.spotId}/widget/${this.widgetId}`,oe(this.baseURL)),searchParams:{themeMode:this.themeMode,ms_token:this.authToken,domain:this.domain,intentId:this.intentId,hotspotId:this.hotspotId,surface:this.surface,parentOrigin:this.parentOrigin,...jt(this.utmParameters)},rootDocument:this.rootDocument});return e.classList.add(`ms-widget`),e}},B=class{constructor(e){this.baseURL=ze(e.baseURL),this.spotId=Fe(e.spotId),this.widgetContentId=Fe(e.widgetContentId),this.contentId=Fe(e.contentId),this.widgetId=Fe(e.widgetId),this.contentType=e.contentType,this.authToken=e.authToken??null,this.themeMode=e.themeMode??`auto`,this.domain=e.domain??null,this.utmParameters=e.utmParameters??null,this.parentOrigin=e.parentOrigin??null,this.rootDocument=e.rootDocument}get iframe(){let e=new URL(`/widgets/spot/${this.spotId}/widgetContent/${this.widgetContentId}`,oe(this.baseURL));e.searchParams.set(`widgetId`,this.widgetId);let t=de({url:e,searchParams:{themeMode:this.themeMode,ms_token:this.authToken,domain:this.domain,contentId:this.contentId,contentType:this.contentType,parentOrigin:this.parentOrigin,...jt(this.utmParameters)},rootDocument:this.rootDocument});return t.classList.add(`ms-widget-content`),t}},Zt=class e{static{this.widgets=[]}static{this.messageListened=!1}static{this.widgetOptions={}}static injectWidgetInto(t,n){let{spotId:r,rootDocument:i,msCommunityWebBaseUrl:a}=Ve.getConfiguration({spotId:n.spotId,rootDocument:n.rootDocument,msCommunityWebBaseUrl:n.baseURL});if(!r)throw z.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let{widget:o,args:s}=e.createWidget({...n,spotId:r,rootDocument:i,baseURL:a}),c=new I(o);return c.inject(t),e.widgets.push(c),z.log(`Widget injected`,e.cleanupLoggedArgs(s),t),c}static injectWidgetContentInto(t,n){let{spotId:r,rootDocument:i,msCommunityWebBaseUrl:a}=Ve.getConfiguration({spotId:n.spotId,rootDocument:n.rootDocument,msCommunityWebBaseUrl:n.baseURL});if(!r)throw z.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let{widgetContent:o,args:s}=e.createWidgetContent({...n,spotId:r,rootDocument:i,baseURL:a}),c=new I(o);return c.inject(t),e.widgets.push(c),z.log(`WidgetContent injected`,e.cleanupLoggedArgs(s),t),c}static bindWidgetModalTo(t,n){return e.bindEntityModalTo(t,{type:`Widget`,data:n})}static bindWidgetDrawerTo(t,n){return e.bindEntityDrawerTo(t,{type:`Widget`,data:n})}static createWidgetDrawer(t){let{widget:n}=e.createWidget(t);return z.log(`Create Widget drawer`,{data:e.cleanupLoggedArgs(t)}),new Jt(n,t.rootDocument??document)}static createWidgetModal(t){let{widget:n}=e.createWidget(t);return z.log(`Create Widget modal`,{data:e.cleanupLoggedArgs(t)}),new Yt(n,t.rootDocument??document)}static createWidgetEmbed(t){let{widget:n}=e.createWidget(t),r=new I(n);return z.log(`Create Widget embed`,{data:e.cleanupLoggedArgs(t)}),r}static clear(){e.widgets.forEach(e=>{e.remove()}),e.widgets=[],e.widgetOptions={},z.log(`All Widget SDK MeltingSpot elements were cleared`)}static bindEntityDrawerTo(t,n){let{spotId:r,rootDocument:i,msCommunityWebBaseUrl:a}=Ve.getConfiguration({spotId:n.data.spotId,rootDocument:n.data.rootDocument??document,msCommunityWebBaseUrl:n.data.baseURL});if(!r)throw z.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let o,s;switch(n.type){case`Widget`:{let t=e.createWidget({...n.data,spotId:r,rootDocument:i,baseURL:a});o=t.widget,s=t.args}break;case`WidgetContent`:{let t=e.createWidgetContent({...n.data,spotId:r,rootDocument:i,baseURL:a});o=t.widgetContent,s=t.args}}let c=new Jt(o,i),l={position:n.data.position},u=n.data.into??i.body;return c.inject({into:u,bind:t,options:l}),e.widgets.push(c),z.log(`Widget bound to drawer`,e.cleanupLoggedArgs(s),l,u,t),c}static bindEntityModalTo(t,n){let{spotId:r,rootDocument:i,msCommunityWebBaseUrl:a}=Ve.getConfiguration({spotId:n.data.spotId,rootDocument:n.data.rootDocument??document,msCommunityWebBaseUrl:n.data.baseURL});if(!r)throw z.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let o,s;switch(n.type){case`Widget`:{let t=e.createWidget({...n.data,spotId:r,rootDocument:i,baseURL:a});o=t.widget,s=t.args}break;case`WidgetContent`:{let t=e.createWidgetContent({...n.data,spotId:r,rootDocument:i,baseURL:a});o=t.widgetContent,s=t.args}}let c=new Yt(o,i),l=n.data.into??i.body;return c.inject({into:l,bind:t}),e.widgets.push(c),z.log(`Widget bound to modal`,e.cleanupLoggedArgs(s),l,t),c}static handleMessageEvent(t){if(!t.data||typeof t.data!=`object`||t.data.type!==`OpenWidgetContent`)return;let n=t.data?.widgetId;if(!n||typeof n!=`string`){z.error(`widgetId is required in the message event data`);return}let r=e.widgetOptions[n];if(!r){z.error(`No widget options found for widgetId`,{widgetId:n});return}let i=null;try{i=new URL(r.baseURL).origin}catch{i=null}if(!i||t.origin!==i){z.warn(`Ignoring OpenWidgetContent from unexpected origin`,{origin:t.origin,expectedOrigin:i});return}let{spotId:a,rootDocument:o,msCommunityWebBaseUrl:s}=Ve.getConfiguration({spotId:r.spotId,rootDocument:r.rootDocument??document,msCommunityWebBaseUrl:r.baseURL}),{widgetContent:c}=e.createWidgetContent({...r,widgetContentId:t.data.widgetContentId,contentType:t.data.contentType,contentId:t.data.contentId,widgetId:n,spotId:a,rootDocument:o,baseURL:s});t.data.openingIn===`Drawer`?new Jt(c,o).open():t.data.openingIn===`Modal`&&new Yt(c,o).open()}static createWidget(t){let n=new URLSearchParams(window.location.search),r={spotId:t.spotId,widgetId:t.widgetId,authToken:t.authToken,themeMode:t.themeMode,domain:t.domain,rootDocument:t.rootDocument,baseURL:t.baseURL,utmParameters:t.utmParameters??At(n),intentId:t.intentId,hotspotId:t.hotspotId,surface:t.surface,parentOrigin:t.parentOrigin};return e.widgetOptions[r.widgetId]=r,e.messageListened||=(window.addEventListener(`message`,e.handleMessageEvent),!0),{widget:new Xt(r),args:r}}static createWidgetContent(e){let t=new URLSearchParams(window.location.search),n={spotId:e.spotId,contentId:e.contentId,contentType:e.contentType,widgetContentId:e.widgetContentId,widgetId:e.widgetId,authToken:e.authToken,themeMode:e.themeMode,domain:e.domain,rootDocument:e.rootDocument,baseURL:e.baseURL,utmParameters:e.utmParameters??At(t),parentOrigin:e.parentOrigin};return{widgetContent:new B(n),args:n}}static cleanupLoggedArgs(e){let{authToken:t,...n}=e;return{...n,authToken:t?`***`:void 0}}},Qt=globalThis;Qt.MeltingSpot||={},Qt.MeltingSpot.Widget=Zt,e.Drawer=Jt,e.Modal=Yt,e.Widget=Zt});
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "MeltingSpot Widget SDK",
|
|
4
4
|
"homepage": "https://meltingspot.io",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.21.0",
|
|
7
7
|
"main": "./index.cjs",
|
|
8
8
|
"module": "./index.mjs",
|
|
9
9
|
"typings": "./index.d.ts",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@meltingspot/core": "1.
|
|
25
|
-
"@meltingspot/embed": "1.
|
|
24
|
+
"@meltingspot/core": "1.21.0",
|
|
25
|
+
"@meltingspot/embed": "1.21.0"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"provenance": false
|
package/widget.d.ts
CHANGED
|
@@ -30,6 +30,26 @@ export interface WidgetArgs {
|
|
|
30
30
|
* The base URL to use for the widget links.
|
|
31
31
|
*/
|
|
32
32
|
baseURL: string;
|
|
33
|
+
/**
|
|
34
|
+
* The playbook intent the widget is opened from (the coach opening it from
|
|
35
|
+
* the intent of a hotspot). Omitted for any other open.
|
|
36
|
+
*/
|
|
37
|
+
intentId?: string;
|
|
38
|
+
/**
|
|
39
|
+
* The playbook hotspot the widget is opened from, alongside `intentId`.
|
|
40
|
+
*/
|
|
41
|
+
hotspotId?: string;
|
|
42
|
+
/**
|
|
43
|
+
* The surface hosting the widget (e.g. `Extension` when the coach runs in a
|
|
44
|
+
* browser extension). Omitted when the widget runs on the host page itself.
|
|
45
|
+
*/
|
|
46
|
+
surface?: string;
|
|
47
|
+
/**
|
|
48
|
+
* The origin of the page hosting the widget iframe (e.g. the coach passes
|
|
49
|
+
* `window.location.origin`). The widget posts its busy / idle signals to
|
|
50
|
+
* this origin only; omitted, it posts none.
|
|
51
|
+
*/
|
|
52
|
+
parentOrigin?: string;
|
|
33
53
|
/**
|
|
34
54
|
* The root document to use for the widget injection.
|
|
35
55
|
*/
|
|
@@ -44,6 +64,10 @@ export declare class Widget implements DialogContent, EmbedContent {
|
|
|
44
64
|
readonly domain: Nullable<string>;
|
|
45
65
|
readonly utmParameters: Nullable<UtmParameters>;
|
|
46
66
|
readonly rootDocument?: Document;
|
|
67
|
+
readonly intentId: Nullable<string>;
|
|
68
|
+
readonly hotspotId: Nullable<string>;
|
|
69
|
+
readonly surface: Nullable<string>;
|
|
70
|
+
readonly parentOrigin: Nullable<string>;
|
|
47
71
|
constructor(args: WidgetArgs);
|
|
48
72
|
get iframe(): HTMLIFrameElement;
|
|
49
73
|
}
|
package/widgetContent.d.ts
CHANGED
|
@@ -41,6 +41,12 @@ export interface WidgetContentArgs {
|
|
|
41
41
|
* The base URL to use for the widget links.
|
|
42
42
|
*/
|
|
43
43
|
baseURL: string;
|
|
44
|
+
/**
|
|
45
|
+
* The origin of the page hosting the widget content iframe (e.g. the coach
|
|
46
|
+
* passes `window.location.origin`). The widget content posts its busy /
|
|
47
|
+
* idle signals to this origin only; omitted, it posts none.
|
|
48
|
+
*/
|
|
49
|
+
parentOrigin?: string;
|
|
44
50
|
/**
|
|
45
51
|
* The root document to use for the widget content injection.
|
|
46
52
|
*/
|
|
@@ -57,6 +63,7 @@ export declare class WidgetContent implements DialogContent {
|
|
|
57
63
|
readonly themeMode: ThemeMode;
|
|
58
64
|
readonly domain: Nullable<string>;
|
|
59
65
|
readonly utmParameters: Nullable<UtmParameters>;
|
|
66
|
+
readonly parentOrigin: Nullable<string>;
|
|
60
67
|
readonly rootDocument?: Document;
|
|
61
68
|
constructor(args: WidgetContentArgs);
|
|
62
69
|
get iframe(): HTMLIFrameElement;
|