@clickview/reports 0.85.0-rc.1 → 0.85.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/manifest.json +284 -284
- package/dist/bundles.json +1 -1
- package/dist/en.json +1 -1
- package/dist/scripts/{DMI-Lxl02.chunk.js → BCcIdtcy2.chunk.js} +2 -2
- package/dist/scripts/{DMI-Lxl02.chunk.js.map → BCcIdtcy2.chunk.js.map} +1 -1
- package/dist/scripts/{ClOZ7MLV.chunk.js → BIlepbnA.chunk.js} +2 -2
- package/dist/scripts/{ClOZ7MLV.chunk.js.map → BIlepbnA.chunk.js.map} +1 -1
- package/dist/scripts/{3EzrYsbw2.chunk.js → BX5YDJVD2.chunk.js} +2 -2
- package/dist/scripts/{3EzrYsbw2.chunk.js.map → BX5YDJVD2.chunk.js.map} +1 -1
- package/dist/scripts/{Bua2prVk2.chunk.js → BY9ZIRoW2.chunk.js} +2 -2
- package/dist/scripts/{Bua2prVk2.chunk.js.map → BY9ZIRoW2.chunk.js.map} +1 -1
- package/dist/scripts/{CowZxgkl2.chunk.js → BkkPVinl2.chunk.js} +2 -2
- package/dist/scripts/{CowZxgkl2.chunk.js.map → BkkPVinl2.chunk.js.map} +1 -1
- package/dist/scripts/{Udxe63DQ.chunk.js → BsAss53i.chunk.js} +2 -2
- package/dist/scripts/{Udxe63DQ.chunk.js.map → BsAss53i.chunk.js.map} +1 -1
- package/dist/scripts/{CJIwkABI.chunk.js → BsTmrvS_.chunk.js} +2 -2
- package/dist/scripts/{CJIwkABI.chunk.js.map → BsTmrvS_.chunk.js.map} +1 -1
- package/dist/scripts/{1pdbKMyH.chunk.js → BzSZm3J1.chunk.js} +2 -2
- package/dist/scripts/{1pdbKMyH.chunk.js.map → BzSZm3J1.chunk.js.map} +1 -1
- package/dist/scripts/{c7dUmf3R.chunk.js → C5k6lVOP.chunk.js} +2 -2
- package/dist/scripts/{c7dUmf3R.chunk.js.map → C5k6lVOP.chunk.js.map} +1 -1
- package/dist/scripts/{DTy5e0Yv2.chunk.js → CPp4jaPB2.chunk.js} +2 -2
- package/dist/scripts/{DTy5e0Yv2.chunk.js.map → CPp4jaPB2.chunk.js.map} +1 -1
- package/dist/scripts/{r-dVoZ7W2.chunk.js → Cdlk0Qkj2.chunk.js} +2 -2
- package/dist/scripts/{r-dVoZ7W2.chunk.js.map → Cdlk0Qkj2.chunk.js.map} +1 -1
- package/dist/scripts/ClX2mOw_.chunk.js +1 -0
- package/dist/scripts/{CMKPCLR42.chunk.js → D0fFZDhm2.chunk.js} +2 -2
- package/dist/scripts/{CMKPCLR42.chunk.js.map → D0fFZDhm2.chunk.js.map} +1 -1
- package/dist/scripts/{B9S_LeFP.chunk.js → DMuXCE-z.chunk.js} +2 -2
- package/dist/scripts/{B9S_LeFP.chunk.js.map → DMuXCE-z.chunk.js.map} +1 -1
- package/dist/scripts/{3q7nyVif2.chunk.js → DNZvrGV22.chunk.js} +2 -2
- package/dist/scripts/{3q7nyVif2.chunk.js.map → DNZvrGV22.chunk.js.map} +1 -1
- package/dist/scripts/{2MxiB_er.chunk.js → DUzAx5n_.chunk.js} +2 -2
- package/dist/scripts/{2MxiB_er.chunk.js.map → DUzAx5n_.chunk.js.map} +1 -1
- package/dist/scripts/DaBzvZF9.chunk.js +1 -0
- package/dist/scripts/{Cpm-LpwK.chunk.js → DkhktXkG.chunk.js} +2 -2
- package/dist/scripts/{Cpm-LpwK.chunk.js.map → DkhktXkG.chunk.js.map} +1 -1
- package/dist/scripts/{Bx5qk-PZ.chunk.js → DtSAu9Xt.chunk.js} +3 -3
- package/dist/scripts/{Bx5qk-PZ.chunk.js.map → DtSAu9Xt.chunk.js.map} +1 -1
- package/dist/scripts/{ktNy7dHM2.chunk.js → DvxtrAxT2.chunk.js} +2 -2
- package/dist/scripts/{ktNy7dHM2.chunk.js.map → DvxtrAxT2.chunk.js.map} +1 -1
- package/dist/scripts/{BvNaANAO2.chunk.js → DxD2uVzf2.chunk.js} +2 -2
- package/dist/scripts/{BvNaANAO2.chunk.js.map → DxD2uVzf2.chunk.js.map} +1 -1
- package/dist/scripts/{DgPadkLi2.chunk.js → I9MVVxo82.chunk.js} +2 -2
- package/dist/scripts/{DgPadkLi2.chunk.js.map → I9MVVxo82.chunk.js.map} +1 -1
- package/dist/scripts/{BnfA2fln.chunk.js → IH7D3jLI.chunk.js} +2 -2
- package/dist/scripts/{BnfA2fln.chunk.js.map → IH7D3jLI.chunk.js.map} +1 -1
- package/dist/scripts/{CKRKdk5U.chunk.js → OU_kRJz_.chunk.js} +2 -2
- package/dist/scripts/{CKRKdk5U.chunk.js.map → OU_kRJz_.chunk.js.map} +1 -1
- package/dist/scripts/{n2iCrpxU.chunk.js → P4zTQoDZ.chunk.js} +2 -2
- package/dist/scripts/{n2iCrpxU.chunk.js.map → P4zTQoDZ.chunk.js.map} +1 -1
- package/dist/scripts/{CqCz1X85.chunk.js → PZOjj17O.chunk.js} +2 -2
- package/dist/scripts/{CqCz1X85.chunk.js.map → PZOjj17O.chunk.js.map} +1 -1
- package/dist/scripts/{CCLDpjnt2.chunk.js → XgwoBT6z2.chunk.js} +2 -2
- package/dist/scripts/{CCLDpjnt2.chunk.js.map → XgwoBT6z2.chunk.js.map} +1 -1
- package/dist/scripts/{app-BigOHyYp.js → app-m6P7KXE1.js} +3 -3
- package/dist/scripts/{app-BigOHyYp.js.map → app-m6P7KXE1.js.map} +1 -1
- package/dist/scripts/{BpzXy-5d.chunk.js → bNV2NeSi.chunk.js} +2 -2
- package/dist/scripts/{BpzXy-5d.chunk.js.map → bNV2NeSi.chunk.js.map} +1 -1
- package/dist/scripts/{BKW2JeVr.chunk.js → fIFpt-kC.chunk.js} +2 -2
- package/dist/scripts/{BKW2JeVr.chunk.js.map → fIFpt-kC.chunk.js.map} +1 -1
- package/dist/scripts/{CKVaLGJC.chunk.js → fOHWXn7-.chunk.js} +2 -2
- package/dist/scripts/{CKVaLGJC.chunk.js.map → fOHWXn7-.chunk.js.map} +1 -1
- package/dist/scripts/{BfhdSOSX2.chunk.js → jXHCFC1j2.chunk.js} +2 -2
- package/dist/scripts/{BfhdSOSX2.chunk.js.map → jXHCFC1j2.chunk.js.map} +1 -1
- package/package.json +1 -1
- package/dist/scripts/Bs1YLdQb.chunk.js +0 -1
- package/dist/scripts/Cah5ISd-.chunk.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["scripts/
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["scripts/CPp4jaPB2.chunk.js","scripts/CM0wW4AE.chunk.js","scripts/CNQKHXPY.chunk.js","scripts/B01-hGyk.chunk.js","css/DGqaaeH3.chunk.css","scripts/NaTUzw6f.chunk.js","scripts/I5Dnl_eN.chunk.js","scripts/XgwoBT6z2.chunk.js","scripts/dUFTODMz.chunk.js","scripts/C5CZZ7Gl.chunk.js","scripts/CO7H3BC5.chunk.js","css/BoFq06ch.chunk.css","scripts/C7xZhn-Q.chunk.js","scripts/CjM_tQvd.chunk.js","css/DXwbT8Tl.chunk.css","scripts/DvxtrAxT2.chunk.js","scripts/I9MVVxo82.chunk.js","scripts/KyOyA3o8.chunk.js","scripts/mApnhyGa2.chunk.js","scripts/C7JDFkYU.chunk.js","scripts/S6AM6CLE.chunk.js","scripts/DYHGbCb9.chunk.js","scripts/DHk1ZJ0C.chunk.js","scripts/qnBOI0yM.chunk.js","css/FUAcQhsk.chunk.css","scripts/DNZvrGV22.chunk.js","scripts/C1BFkCSD2.chunk.js","scripts/BX5YDJVD2.chunk.js","scripts/nTOBPrI-2.chunk.js","scripts/CGPW10so.chunk.js","scripts/BzSZm3J1.chunk.js","scripts/Cdlk0Qkj2.chunk.js","css/CefkkHEQ.chunk.css","scripts/Brdddu_K2.chunk.js","scripts/CZWFQGjD2.chunk.js","css/B5-FZvcI.chunk.css","scripts/BXBnJv6U.chunk.js","scripts/BY9ZIRoW2.chunk.js","scripts/H5KLIhR_.chunk.js","scripts/BkkPVinl2.chunk.js","css/BRxMycUo.chunk.css","scripts/D0fFZDhm2.chunk.js","scripts/DIAxWspB.chunk.js","css/B27vnbEi.chunk.css","css/BaadNO4A.chunk.css","css/BCirgt9A.chunk.css","scripts/bNV2NeSi.chunk.js","scripts/CX3PLISe2.chunk.js","scripts/CnyxksnC.chunk.js","scripts/DJRw8tJz.chunk.js","scripts/CWLHiStI2.chunk.js","scripts/DBUhRXiX.chunk.js","scripts/Gzu4DnsP.chunk.js","scripts/DkhktXkG.chunk.js","css/wNUL7bNL.chunk.css","scripts/DxD2uVzf2.chunk.js","scripts/BIlepbnA.chunk.js","scripts/BsAss53i.chunk.js","css/D6yowpw3.chunk.css","scripts/dSmIXyxJ.chunk.js","scripts/CT_mfyYn.chunk.js","css/CmSB6UmR.chunk.css","scripts/g3_3Vjd9.chunk.js","scripts/BVJCiAPm.chunk.js","css/CPWYJrd8.chunk.css","scripts/ClX2mOw_.chunk.js","scripts/PZOjj17O.chunk.js","scripts/DGCz68te.chunk.js","scripts/fIFpt-kC.chunk.js","scripts/jXHCFC1j2.chunk.js","scripts/BfFVn85k.chunk.js","css/CAp81MU9.chunk.css","scripts/IH7D3jLI.chunk.js","scripts/BCcIdtcy2.chunk.js","css/C1-mauxJ.chunk.css","scripts/C5k6lVOP.chunk.js","scripts/P4zTQoDZ.chunk.js","css/ByuL_xKJ.chunk.css","scripts/DUzAx5n_.chunk.js","scripts/fOHWXn7-.chunk.js","css/DlOtoSz0.chunk.css","scripts/BsTmrvS_.chunk.js","css/DlxOgKUu.chunk.css","scripts/OU_kRJz_.chunk.js","scripts/DMuXCE-z.chunk.js","css/CLyodmO6.chunk.css","css/Bswye0o_.chunk.css","scripts/DtSAu9Xt.chunk.js","scripts/CrcohiH5.chunk.js","css/ZsK0Jwk2.chunk.css"])))=>i.map(i=>d[i]);
|
|
2
2
|
import{$t as e,A as t,B as n,Bt as r,C as i,D as a,Dn as o,E as s,F as c,Fn as l,G as u,Gn as d,Gt as f,H as p,Hn as m,Ht as h,Jn as g,Jt as _,Kn as v,Kt as y,L as b,Ln as x,N as S,O as C,On as w,P as T,Q as E,Qt as D,R as O,S as k,T as A,U as j,Un as M,Ut as N,Vt as P,Wn as F,Wt as I,X as L,Xt as ee,Yt as te,Zt as R,a as ne,an as z,at as re,cn as ie,ct as ae,dn as oe,et as se,gn as ce,hn as le,in as ue,it as de,j as fe,k as pe,kn as me,l as he,ln as ge,nn as _e,nt as ve,o as ye,on as be,p as xe,pn as Se,qn as Ce,qt as we,rn as Te,rt as Ee,s as De,sn as Oe,st as ke,tn as Ae,tt as je,un as Me,x as Ne,z as Pe,zn as Fe,zt as Ie}from"./CM0wW4AE.chunk.js";import{$ as Le,A as Re,B as ze,C as Be,D as Ve,E as He,F as Ue,G as We,H as Ge,I as Ke,J as qe,K as Je,L as Ye,M as Xe,N as Ze,O as Qe,P as $e,Q as et,R as tt,S as nt,T as rt,U as it,V as at,W as ot,X as st,Y as ct,Z as lt,c as ut,d as dt,et as ft,f as pt,g as mt,i as ht,j as gt,k as _t,m as vt,n as yt,nt as bt,o as xt,p as St,q as Ct,r as wt,s as Tt,tt as Et,v as Dt,w as Ot,x as kt,z as At}from"./B01-hGyk.chunk.js";import{a as jt,i as Mt,n as Nt,o as Pt,t as Ft}from"./S6AM6CLE.chunk.js";import{a as It,b as Lt,c as Rt,d as zt,f as Bt,g as Vt,h as Ht,i as Ut,l as Wt,m as Gt,n as Kt,o as qt,p as Jt,r as Yt,s as Xt,u as Zt,v as Qt,x as $t,y as en}from"./dUFTODMz.chunk.js";import{t as tn}from"./C5CZZ7Gl.chunk.js";import{a as nn,i as rn,n as an,o as on,r as sn,s as cn,t as ln}from"./KyOyA3o8.chunk.js";import{n as un,t as dn}from"./CjM_tQvd.chunk.js";import{n as fn,r as pn,t as mn}from"./NaTUzw6f.chunk.js";import{n as hn,t as gn}from"./CNQKHXPY.chunk.js";import{t as _n}from"./g3_3Vjd9.chunk.js";import{a as vn,i as yn,l as bn,n as xn,o as Sn,r as Cn,s as wn,t as Tn}from"./DYHGbCb9.chunk.js";import{t as En}from"./BXBnJv6U.chunk.js";import{n as Dn,t as B}from"./I5Dnl_eN.chunk.js";import{n as On,r as kn,t as An}from"./C7JDFkYU.chunk.js";import{n as jn,r as Mn,t as Nn}from"./H5KLIhR_.chunk.js";import{t as Pn}from"./CO7H3BC5.chunk.js";import{n as Fn,t as In}from"./BfFVn85k.chunk.js";import{t as Ln}from"./DGCz68te.chunk.js";import{a as Rn,i as zn,o as Bn,r as Vn,s as Hn,t as Un}from"./CnyxksnC.chunk.js";import{n as Wn}from"./DJRw8tJz.chunk.js";import{n as Gn,t as Kn}from"./DBUhRXiX.chunk.js";import{t as qn}from"./Gzu4DnsP.chunk.js";import{t as Jn,u as Yn}from"./dSmIXyxJ.chunk.js";import{n as Xn,t as Zn}from"./C7xZhn-Q.chunk.js";import{t as Qn}from"./CrcohiH5.chunk.js";import{n as $n,t as er}from"./DHk1ZJ0C.chunk.js";import{t as tr}from"./qnBOI0yM.chunk.js";import{t as nr}from"./DIAxWspB.chunk.js";var rr=v(((e,t)=>{var n=function(e){var t=Object.prototype,n=t.hasOwnProperty,r,i=typeof Symbol==`function`?Symbol:{},a=i.iterator||`@@iterator`,o=i.asyncIterator||`@@asyncIterator`,s=i.toStringTag||`@@toStringTag`;function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},``)}catch{c=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype);return a._invoke=T(e,n,new k(r||[])),a}e.wrap=l;function u(e,t,n){try{return{type:`normal`,arg:e.call(t,n)}}catch(e){return{type:`throw`,arg:e}}}var d=`suspendedStart`,f=`suspendedYield`,p=`executing`,m=`completed`,h={};function g(){}function _(){}function v(){}var y={};c(y,a,function(){return this});var b=Object.getPrototypeOf,x=b&&b(b(A([])));x&&x!==t&&n.call(x,a)&&(y=x);var S=v.prototype=g.prototype=Object.create(y);_.prototype=v,c(S,`constructor`,v),c(v,`constructor`,_),_.displayName=c(v,s,`GeneratorFunction`);function C(e){[`next`,`throw`,`return`].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}e.isGeneratorFunction=function(e){var t=typeof e==`function`&&e.constructor;return t?t===_||(t.displayName||t.name)===`GeneratorFunction`:!1},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,`GeneratorFunction`)),e.prototype=Object.create(S),e},e.awrap=function(e){return{__await:e}};function w(e,t){function r(i,a,o,s){var c=u(e[i],e,a);if(c.type===`throw`)s(c.arg);else{var l=c.arg,d=l.value;return d&&typeof d==`object`&&n.call(d,`__await`)?t.resolve(d.__await).then(function(e){r(`next`,e,o,s)},function(e){r(`throw`,e,o,s)}):t.resolve(d).then(function(e){l.value=e,o(l)},function(e){return r(`throw`,e,o,s)})}}var i;function a(e,n){function a(){return new t(function(t,i){r(e,n,t,i)})}return i=i?i.then(a,a):a()}this._invoke=a}C(w.prototype),c(w.prototype,o,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,i,a){a===void 0&&(a=Promise);var o=new w(l(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then(function(e){return e.done?e.value:o.next()})};function T(e,t,n){var r=d;return function(i,a){if(r===p)throw Error(`Generator is already running`);if(r===m){if(i===`throw`)throw a;return j()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=E(o,n);if(s){if(s===h)continue;return s}}if(n.method===`next`)n.sent=n._sent=n.arg;else if(n.method===`throw`){if(r===d)throw r=m,n.arg;n.dispatchException(n.arg)}else n.method===`return`&&n.abrupt(`return`,n.arg);r=p;var c=u(e,t,n);if(c.type===`normal`){if(r=n.done?m:f,c.arg===h)continue;return{value:c.arg,done:n.done}}else c.type===`throw`&&(r=m,n.method=`throw`,n.arg=c.arg)}}}function E(e,t){var n=e.iterator[t.method];if(n===r){if(t.delegate=null,t.method===`throw`){if(e.iterator.return&&(t.method=`return`,t.arg=r,E(e,t),t.method===`throw`))return h;t.method=`throw`,t.arg=TypeError(`The iterator does not provide a 'throw' method`)}return h}var i=u(n,e.iterator,t.arg);if(i.type===`throw`)return t.method=`throw`,t.arg=i.arg,t.delegate=null,h;var a=i.arg;if(!a)return t.method=`throw`,t.arg=TypeError(`iterator result is not an object`),t.delegate=null,h;if(a.done)t[e.resultName]=a.value,t.next=e.nextLoc,t.method!==`return`&&(t.method=`next`,t.arg=r);else return a;return t.delegate=null,h}C(S),c(S,s,`Generator`),c(S,a,function(){return this}),c(S,`toString`,function(){return`[object Generator]`});function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type=`normal`,delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:`root`}],e.forEach(D,this),this.reset(!0)}e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}};function A(e){if(e){var t=e[a];if(t)return t.call(e);if(typeof e.next==`function`)return e;if(!isNaN(e.length)){var i=-1,o=function t(){for(;++i<e.length;)if(n.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=r,t.done=!0,t};return o.next=o}}return{next:j}}e.values=A;function j(){return{value:r,done:!0}}return k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method=`next`,this.arg=r,this.tryEntries.forEach(O),!e)for(var t in this)t.charAt(0)===`t`&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=r)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(e.type===`throw`)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(n,i){return s.type=`throw`,s.arg=e,t.next=n,i&&(t.method=`next`,t.arg=r),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if(o.tryLoc===`root`)return i(`end`);if(o.tryLoc<=this.prev){var c=n.call(o,`catchLoc`),l=n.call(o,`finallyLoc`);if(c&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else if(l){if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else throw Error(`try statement without catch or finally`)}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,`finallyLoc`)&&this.prev<i.finallyLoc){var a=i;break}}a&&(e===`break`||e===`continue`)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method=`next`,this.next=a.finallyLoc,h):this.complete(o)},complete:function(e,t){if(e.type===`throw`)throw e.arg;return e.type===`break`||e.type===`continue`?this.next=e.arg:e.type===`return`?(this.rval=this.arg=e.arg,this.method=`return`,this.next=`end`):e.type===`normal`&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if(r.type===`throw`){var i=r.arg;O(n)}return i}}throw Error(`illegal catch attempt`)},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},this.method===`next`&&(this.arg=r),h}},e}(typeof t==`object`?t.exports:{});try{regeneratorRuntime=n}catch{typeof globalThis==`object`?globalThis.regeneratorRuntime=n:Function(`r`,`regeneratorRuntime = r`)(n)}})),V=v(((e,t)=>{var n=function(e){return e&&e.Math===Math&&e};t.exports=n(typeof globalThis==`object`&&globalThis)||n(typeof window==`object`&&window)||n(typeof self==`object`&&self)||n(typeof globalThis==`object`&&globalThis)||n(typeof e==`object`&&e)||(function(){return this})()||Function(`return this`)()})),H=v(((e,t)=>{t.exports=function(e){try{return!!e()}catch{return!0}}})),U=v(((e,t)=>{t.exports=!H()(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})})),ir=v(((e,t)=>{t.exports=!H()(function(){var e=(function(){}).bind();return typeof e!=`function`||e.hasOwnProperty(`prototype`)})})),W=v(((e,t)=>{var n=ir(),r=Function.prototype.call;t.exports=n?r.bind(r):function(){return r.apply(r,arguments)}})),ar=v((e=>{var t={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor;e.f=n&&!t.call({1:2},1)?function(e){var t=n(this,e);return!!t&&t.enumerable}:t})),or=v(((e,t)=>{t.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}})),G=v(((e,t)=>{var n=ir(),r=Function.prototype,i=r.call,a=n&&r.bind.bind(i,i);t.exports=n?a:function(e){return function(){return i.apply(e,arguments)}}})),sr=v(((e,t)=>{var n=G(),r=n({}.toString),i=n(``.slice);t.exports=function(e){return i(r(e),8,-1)}})),cr=v(((e,t)=>{var n=G(),r=H(),i=sr(),a=Object,o=n(``.split);t.exports=r(function(){return!a(`z`).propertyIsEnumerable(0)})?function(e){return i(e)===`String`?o(e,``):a(e)}:a})),lr=v(((e,t)=>{t.exports=function(e){return e==null}})),ur=v(((e,t)=>{var n=lr(),r=TypeError;t.exports=function(e){if(n(e))throw new r(`Can't call method on `+e);return e}})),dr=v(((e,t)=>{var n=cr(),r=ur();t.exports=function(e){return n(r(e))}})),fr=v(((e,t)=>{var n=typeof document==`object`&&document.all;t.exports=n===void 0&&n!==void 0?function(e){return typeof e==`function`||e===n}:function(e){return typeof e==`function`}})),pr=v(((e,t)=>{var n=fr();t.exports=function(e){return typeof e==`object`?e!==null:n(e)}})),mr=v(((e,t)=>{var n=V(),r=fr(),i=function(e){return r(e)?e:void 0};t.exports=function(e,t){return arguments.length<2?i(n[e]):n[e]&&n[e][t]}})),hr=v(((e,t)=>{t.exports=G()({}.isPrototypeOf)})),gr=v(((e,t)=>{var n=V().navigator,r=n&&n.userAgent;t.exports=r?String(r):``})),_r=v(((e,t)=>{var n=V(),r=gr(),i=n.process,a=n.Deno,o=i&&i.versions||a&&a.version,s=o&&o.v8,c,l;s&&(c=s.split(`.`),l=c[0]>0&&c[0]<4?1:+(c[0]+c[1])),!l&&r&&(c=r.match(/Edge\/(\d+)/),(!c||c[1]>=74)&&(c=r.match(/Chrome\/(\d+)/),c&&(l=+c[1]))),t.exports=l})),vr=v(((e,t)=>{var n=_r(),r=H(),i=V().String;t.exports=!!Object.getOwnPropertySymbols&&!r(function(){var e=Symbol(`symbol detection`);return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})})),yr=v(((e,t)=>{t.exports=vr()&&!Symbol.sham&&typeof Symbol.iterator==`symbol`})),br=v(((e,t)=>{var n=mr(),r=fr(),i=hr(),a=yr(),o=Object;t.exports=a?function(e){return typeof e==`symbol`}:function(e){var t=n(`Symbol`);return r(t)&&i(t.prototype,o(e))}})),xr=v(((e,t)=>{var n=String;t.exports=function(e){try{return n(e)}catch{return`Object`}}})),Sr=v(((e,t)=>{var n=fr(),r=xr(),i=TypeError;t.exports=function(e){if(n(e))return e;throw new i(r(e)+` is not a function`)}})),Cr=v(((e,t)=>{var n=Sr(),r=lr();t.exports=function(e,t){var i=e[t];return r(i)?void 0:n(i)}})),wr=v(((e,t)=>{var n=W(),r=fr(),i=pr(),a=TypeError;t.exports=function(e,t){var o,s;if(t===`string`&&r(o=e.toString)&&!i(s=n(o,e))||r(o=e.valueOf)&&!i(s=n(o,e))||t!==`string`&&r(o=e.toString)&&!i(s=n(o,e)))return s;throw new a(`Can't convert object to primitive value`)}})),Tr=v(((e,t)=>{t.exports=!1})),Er=v(((e,t)=>{var n=V(),r=Object.defineProperty;t.exports=function(e,t){try{r(n,e,{value:t,configurable:!0,writable:!0})}catch{n[e]=t}return t}})),Dr=v(((e,t)=>{var n=Tr(),r=V(),i=Er(),a=`__core-js_shared__`,o=t.exports=r[a]||i(a,{});(o.versions||=[]).push({version:`3.45.1`,mode:n?`pure`:`global`,copyright:`© 2014-2025 Denis Pushkarev (zloirock.ru)`,license:`https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE`,source:`https://github.com/zloirock/core-js`})})),Or=v(((e,t)=>{var n=Dr();t.exports=function(e,t){return n[e]||(n[e]=t||{})}})),kr=v(((e,t)=>{var n=ur(),r=Object;t.exports=function(e){return r(n(e))}})),Ar=v(((e,t)=>{var n=G(),r=kr(),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return i(r(e),t)}})),jr=v(((e,t)=>{var n=G(),r=0,i=Math.random(),a=n(1.1.toString);t.exports=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+a(++r+i,36)}})),Mr=v(((e,t)=>{var n=V(),r=Or(),i=Ar(),a=jr(),o=vr(),s=yr(),c=n.Symbol,l=r(`wks`),u=s?c.for||c:c&&c.withoutSetter||a;t.exports=function(e){return i(l,e)||(l[e]=o&&i(c,e)?c[e]:u(`Symbol.`+e)),l[e]}})),Nr=v(((e,t)=>{var n=W(),r=pr(),i=br(),a=Cr(),o=wr(),s=Mr(),c=TypeError,l=s(`toPrimitive`);t.exports=function(e,t){if(!r(e)||i(e))return e;var s=a(e,l),u;if(s){if(t===void 0&&(t=`default`),u=n(s,e,t),!r(u)||i(u))return u;throw new c(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),o(e,t)}})),Pr=v(((e,t)=>{var n=Nr(),r=br();t.exports=function(e){var t=n(e,`string`);return r(t)?t:t+``}})),Fr=v(((e,t)=>{var n=V(),r=pr(),i=n.document,a=r(i)&&r(i.createElement);t.exports=function(e){return a?i.createElement(e):{}}})),Ir=v(((e,t)=>{var n=U(),r=H(),i=Fr();t.exports=!n&&!r(function(){return Object.defineProperty(i(`div`),`a`,{get:function(){return 7}}).a!==7})})),Lr=v((e=>{var t=U(),n=W(),r=ar(),i=or(),a=dr(),o=Pr(),s=Ar(),c=Ir(),l=Object.getOwnPropertyDescriptor;e.f=t?l:function(e,t){if(e=a(e),t=o(t),c)try{return l(e,t)}catch{}if(s(e,t))return i(!n(r.f,e,t),e[t])}})),Rr=v(((e,t)=>{var n=U(),r=H();t.exports=n&&r(function(){return Object.defineProperty(function(){},`prototype`,{value:42,writable:!1}).prototype!==42})})),K=v(((e,t)=>{var n=pr(),r=String,i=TypeError;t.exports=function(e){if(n(e))return e;throw new i(r(e)+` is not an object`)}})),zr=v((e=>{var t=U(),n=Ir(),r=Rr(),i=K(),a=Pr(),o=TypeError,s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,l=`enumerable`,u=`configurable`,d=`writable`;e.f=t?r?function(e,t,n){if(i(e),t=a(t),i(n),typeof e==`function`&&t===`prototype`&&`value`in n&&d in n&&!n[d]){var r=c(e,t);r&&r[d]&&(e[t]=n.value,n={configurable:u in n?n[u]:r[u],enumerable:l in n?n[l]:r[l],writable:!1})}return s(e,t,n)}:s:function(e,t,r){if(i(e),t=a(t),i(r),n)try{return s(e,t,r)}catch{}if(`get`in r||`set`in r)throw new o(`Accessors not supported`);return`value`in r&&(e[t]=r.value),e}})),Br=v(((e,t)=>{var n=U(),r=zr(),i=or();t.exports=n?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}})),Vr=v(((e,t)=>{var n=U(),r=Ar(),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,o=r(i,`name`);t.exports={EXISTS:o,PROPER:o&&(function(){}).name===`something`,CONFIGURABLE:o&&(!n||n&&a(i,`name`).configurable)}})),Hr=v(((e,t)=>{var n=G(),r=fr(),i=Dr(),a=n(Function.toString);r(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),t.exports=i.inspectSource})),Ur=v(((e,t)=>{var n=V(),r=fr(),i=n.WeakMap;t.exports=r(i)&&/native code/.test(String(i))})),Wr=v(((e,t)=>{var n=Or(),r=jr(),i=n(`keys`);t.exports=function(e){return i[e]||(i[e]=r(e))}})),Gr=v(((e,t)=>{t.exports={}})),Kr=v(((e,t)=>{var n=Ur(),r=V(),i=pr(),a=Br(),o=Ar(),s=Dr(),c=Wr(),l=Gr(),u=`Object already initialized`,d=r.TypeError,f=r.WeakMap,p,m,h,g=function(e){return h(e)?m(e):p(e,{})},_=function(e){return function(t){var n;if(!i(t)||(n=m(t)).type!==e)throw new d(`Incompatible receiver, `+e+` required`);return n}};if(n||s.state){var v=s.state||=new f;v.get=v.get,v.has=v.has,v.set=v.set,p=function(e,t){if(v.has(e))throw new d(u);return t.facade=e,v.set(e,t),t},m=function(e){return v.get(e)||{}},h=function(e){return v.has(e)}}else{var y=c(`state`);l[y]=!0,p=function(e,t){if(o(e,y))throw new d(u);return t.facade=e,a(e,y,t),t},m=function(e){return o(e,y)?e[y]:{}},h=function(e){return o(e,y)}}t.exports={set:p,get:m,has:h,enforce:g,getterFor:_}})),qr=v(((e,t)=>{var n=G(),r=H(),i=fr(),a=Ar(),o=U(),s=Vr().CONFIGURABLE,c=Hr(),l=Kr(),u=l.enforce,d=l.get,f=String,p=Object.defineProperty,m=n(``.slice),h=n(``.replace),g=n([].join),_=o&&!r(function(){return p(function(){},`length`,{value:8}).length!==8}),v=String(String).split(`String`),y=t.exports=function(e,t,n){m(f(t),0,7)===`Symbol(`&&(t=`[`+h(f(t),/^Symbol\(([^)]*)\).*$/,`$1`)+`]`),n&&n.getter&&(t=`get `+t),n&&n.setter&&(t=`set `+t),(!a(e,`name`)||s&&e.name!==t)&&(o?p(e,`name`,{value:t,configurable:!0}):e.name=t),_&&n&&a(n,`arity`)&&e.length!==n.arity&&p(e,`length`,{value:n.arity});try{n&&a(n,`constructor`)&&n.constructor?o&&p(e,`prototype`,{writable:!1}):e.prototype&&=void 0}catch{}var r=u(e);return a(r,`source`)||(r.source=g(v,typeof t==`string`?t:``)),e};Function.prototype.toString=y(function(){return i(this)&&d(this).source||c(this)},`toString`)})),Jr=v(((e,t)=>{var n=fr(),r=zr(),i=qr(),a=Er();t.exports=function(e,t,o,s){s||={};var c=s.enumerable,l=s.name===void 0?t:s.name;if(n(o)&&i(o,l,s),s.global)c?e[t]=o:a(t,o);else{try{s.unsafe?e[t]&&(c=!0):delete e[t]}catch{}c?e[t]=o:r.f(e,t,{value:o,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}})),Yr=v(((e,t)=>{var n=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?r:n)(t)}})),Xr=v(((e,t)=>{var n=Yr();t.exports=function(e){var t=+e;return t!==t||t===0?0:n(t)}})),Zr=v(((e,t)=>{var n=Xr(),r=Math.max,i=Math.min;t.exports=function(e,t){var a=n(e);return a<0?r(a+t,0):i(a,t)}})),Qr=v(((e,t)=>{var n=Xr(),r=Math.min;t.exports=function(e){var t=n(e);return t>0?r(t,9007199254740991):0}})),$r=v(((e,t)=>{var n=Qr();t.exports=function(e){return n(e.length)}})),ei=v(((e,t)=>{var n=dr(),r=Zr(),i=$r(),a=function(e){return function(t,a,o){var s=n(t),c=i(s);if(c===0)return!e&&-1;var l=r(o,c),u;if(e&&a!==a){for(;c>l;)if(u=s[l++],u!==u)return!0}else for(;c>l;l++)if((e||l in s)&&s[l]===a)return e||l||0;return!e&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}})),ti=v(((e,t)=>{var n=G(),r=Ar(),i=dr(),a=ei().indexOf,o=Gr(),s=n([].push);t.exports=function(e,t){var n=i(e),c=0,l=[],u;for(u in n)!r(o,u)&&r(n,u)&&s(l,u);for(;t.length>c;)r(n,u=t[c++])&&(~a(l,u)||s(l,u));return l}})),ni=v(((e,t)=>{t.exports=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`]})),ri=v((e=>{var t=ti(),n=ni().concat(`length`,`prototype`);e.f=Object.getOwnPropertyNames||function(e){return t(e,n)}})),ii=v((e=>{e.f=Object.getOwnPropertySymbols})),ai=v(((e,t)=>{var n=mr(),r=G(),i=ri(),a=ii(),o=K(),s=r([].concat);t.exports=n(`Reflect`,`ownKeys`)||function(e){var t=i.f(o(e)),n=a.f;return n?s(t,n(e)):t}})),oi=v(((e,t)=>{var n=Ar(),r=ai(),i=Lr(),a=zr();t.exports=function(e,t,o){for(var s=r(t),c=a.f,l=i.f,u=0;u<s.length;u++){var d=s[u];!n(e,d)&&!(o&&n(o,d))&&c(e,d,l(t,d))}}})),si=v(((e,t)=>{var n=H(),r=fr(),i=/#|\.prototype\./,a=function(e,t){var i=s[o(e)];return i===l?!0:i===c?!1:r(t)?n(t):!!t},o=a.normalize=function(e){return String(e).replace(i,`.`).toLowerCase()},s=a.data={},c=a.NATIVE=`N`,l=a.POLYFILL=`P`;t.exports=a})),q=v(((e,t)=>{var n=V(),r=Lr().f,i=Br(),a=Jr(),o=Er(),s=oi(),c=si();t.exports=function(e,t){var l=e.target,u=e.global,d=e.stat,f,p=u?n:d?n[l]||o(l,{}):n[l]&&n[l].prototype,m,h,g,_;if(p)for(m in t){if(g=t[m],e.dontCallGetSet?(_=r(p,m),h=_&&_.value):h=p[m],f=c(u?m:l+(d?`.`:`#`)+m,e.forced),!f&&h!==void 0){if(typeof g==typeof h)continue;s(g,h)}(e.sham||h&&h.sham)&&i(g,`sham`,!0),a(p,m,g,e)}}})),ci=v(((e,t)=>{var n=Mr()(`toStringTag`),r={};r[n]=`z`,t.exports=String(r)===`[object z]`})),li=v(((e,t)=>{var n=ci(),r=fr(),i=sr(),a=Mr()(`toStringTag`),o=Object,s=i(function(){return arguments}())===`Arguments`,c=function(e,t){try{return e[t]}catch{}};t.exports=n?i:function(e){var t,n,l;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=c(t=o(e),a))==`string`?n:s?i(t):(l=i(t))===`Object`&&r(t.callee)?`Arguments`:l}})),ui=v(((e,t)=>{var n=li(),r=String;t.exports=function(e){if(n(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return r(e)}})),di=v(((e,t)=>{var n=ti(),r=ni();t.exports=Object.keys||function(e){return n(e,r)}})),fi=v((e=>{var t=U(),n=Rr(),r=zr(),i=K(),a=dr(),o=di();e.f=t&&!n?Object.defineProperties:function(e,t){i(e);for(var n=a(t),s=o(t),c=s.length,l=0,u;c>l;)r.f(e,u=s[l++],n[u]);return e}})),pi=v(((e,t)=>{t.exports=mr()(`document`,`documentElement`)})),mi=v(((e,t)=>{var n=K(),r=fi(),i=ni(),a=Gr(),o=pi(),s=Fr(),c=Wr(),l=`>`,u=`<`,d=`prototype`,f=`script`,p=c(`IE_PROTO`),m=function(){},h=function(e){return u+f+l+e+u+`/`+f+l},g=function(e){e.write(h(``)),e.close();var t=e.parentWindow.Object;return e=null,t},_=function(){var e=s(`iframe`),t=`java`+f+`:`,n;return e.style.display=`none`,o.appendChild(e),e.src=String(t),n=e.contentWindow.document,n.open(),n.write(h(`document.F=Object`)),n.close(),n.F},v,y=function(){try{v=new ActiveXObject(`htmlfile`)}catch{}y=typeof document<`u`?document.domain&&v?g(v):_():g(v);for(var e=i.length;e--;)delete y[d][i[e]];return y()};a[p]=!0,t.exports=Object.create||function(e,t){var i;return e===null?i=y():(m[d]=n(e),i=new m,m[d]=null,i[p]=e),t===void 0?i:r.f(i,t)}})),hi=v(((e,t)=>{t.exports=G()([].slice)})),gi=v(((e,t)=>{var n=sr(),r=dr(),i=ri().f,a=hi(),o=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch{return a(o)}};t.exports.f=function(e){return o&&n(e)===`Window`?s(e):i(r(e))}})),_i=v(((e,t)=>{var n=qr(),r=zr();t.exports=function(e,t,i){return i.get&&n(i.get,t,{getter:!0}),i.set&&n(i.set,t,{setter:!0}),r.f(e,t,i)}})),vi=v((e=>{e.f=Mr()})),yi=v(((e,t)=>{t.exports=V()})),bi=v(((e,t)=>{var n=yi(),r=Ar(),i=vi(),a=zr().f;t.exports=function(e){var t=n.Symbol||={};r(t,e)||a(t,e,{value:i.f(e)})}})),xi=v(((e,t)=>{var n=W(),r=mr(),i=Mr(),a=Jr();t.exports=function(){var e=r(`Symbol`),t=e&&e.prototype,o=t&&t.valueOf,s=i(`toPrimitive`);t&&!t[s]&&a(t,s,function(e){return n(o,this)},{arity:1})}})),Si=v(((e,t)=>{var n=zr().f,r=Ar(),i=Mr()(`toStringTag`);t.exports=function(e,t,a){e&&!a&&(e=e.prototype),e&&!r(e,i)&&n(e,i,{configurable:!0,value:t})}})),Ci=v(((e,t)=>{var n=sr(),r=G();t.exports=function(e){if(n(e)===`Function`)return r(e)}})),wi=v(((e,t)=>{var n=Ci(),r=Sr(),i=ir(),a=n(n.bind);t.exports=function(e,t){return r(e),t===void 0?e:i?a(e,t):function(){return e.apply(t,arguments)}}})),Ti=v(((e,t)=>{var n=sr();t.exports=Array.isArray||function(e){return n(e)===`Array`}})),Ei=v(((e,t)=>{var n=G(),r=H(),i=fr(),a=li(),o=mr(),s=Hr(),c=function(){},l=o(`Reflect`,`construct`),u=/^\s*(?:class|function)\b/,d=n(u.exec),f=!u.test(c),p=function(e){if(!i(e))return!1;try{return l(c,[],e),!0}catch{return!1}},m=function(e){if(!i(e))return!1;switch(a(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}try{return f||!!d(u,s(e))}catch{return!0}};m.sham=!0,t.exports=!l||r(function(){var e;return p(p.call)||!p(Object)||!p(function(){e=!0})||e})?m:p})),Di=v(((e,t)=>{var n=Ti(),r=Ei(),i=pr(),a=Mr()(`species`),o=Array;t.exports=function(e){var t;return n(e)&&(t=e.constructor,r(t)&&(t===o||n(t.prototype))?t=void 0:i(t)&&(t=t[a],t===null&&(t=void 0))),t===void 0?o:t}})),Oi=v(((e,t)=>{var n=Di();t.exports=function(e,t){return new(n(e))(t===0?0:t)}})),ki=v(((e,t)=>{var n=wi(),r=G(),i=cr(),a=kr(),o=$r(),s=Oi(),c=r([].push),l=function(e){var t=e===1,r=e===2,l=e===3,u=e===4,d=e===6,f=e===7,p=e===5||d;return function(m,h,g,_){for(var v=a(m),y=i(v),b=o(y),x=n(h,g),S=0,C=_||s,w=t?C(m,b):r||f?C(m,0):void 0,T,E;b>S;S++)if((p||S in y)&&(T=y[S],E=x(T,S,v),e))if(t)w[S]=E;else if(E)switch(e){case 3:return!0;case 5:return T;case 6:return S;case 2:c(w,T)}else switch(e){case 4:return!1;case 7:c(w,T)}return d?-1:l||u?u:w}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}})),Ai=v((()=>{var e=q(),t=V(),n=W(),r=G(),i=Tr(),a=U(),o=vr(),s=H(),c=Ar(),l=hr(),u=K(),d=dr(),f=Pr(),p=ui(),m=or(),h=mi(),g=di(),_=ri(),v=gi(),y=ii(),b=Lr(),x=zr(),S=fi(),C=ar(),w=Jr(),T=_i(),E=Or(),D=Wr(),O=Gr(),k=jr(),A=Mr(),j=vi(),M=bi(),N=xi(),P=Si(),F=Kr(),I=ki().forEach,L=D(`hidden`),ee=`Symbol`,te=`prototype`,R=F.set,ne=F.getterFor(ee),z=Object[te],re=t.Symbol,ie=re&&re[te],ae=t.RangeError,oe=t.TypeError,se=t.QObject,ce=b.f,le=x.f,ue=v.f,de=C.f,fe=r([].push),pe=E(`symbols`),me=E(`op-symbols`),he=E(`wks`),ge=!se||!se[te]||!se[te].findChild,_e=function(e,t,n){var r=ce(z,t);r&&delete z[t],le(e,t,n),r&&e!==z&&le(z,t,r)},ve=a&&s(function(){return h(le({},`a`,{get:function(){return le(this,`a`,{value:7}).a}})).a!==7})?_e:le,ye=function(e,t){var n=pe[e]=h(ie);return R(n,{type:ee,tag:e,description:t}),a||(n.description=t),n},be=function(e,t,n){e===z&&be(me,t,n),u(e);var r=f(t);return u(n),c(pe,r)?(n.enumerable?(c(e,L)&&e[L][r]&&(e[L][r]=!1),n=h(n,{enumerable:m(0,!1)})):(c(e,L)||le(e,L,m(1,h(null))),e[L][r]=!0),ve(e,r,n)):le(e,r,n)},xe=function(e,t){u(e);var r=d(t);return I(g(r).concat(Ee(r)),function(t){(!a||n(Ce,r,t))&&be(e,t,r[t])}),e},Se=function(e,t){return t===void 0?h(e):xe(h(e),t)},Ce=function(e){var t=f(e),r=n(de,this,t);return this===z&&c(pe,t)&&!c(me,t)?!1:r||!c(this,t)||!c(pe,t)||c(this,L)&&this[L][t]?r:!0},we=function(e,t){var n=d(e),r=f(t);if(!(n===z&&c(pe,r)&&!c(me,r))){var i=ce(n,r);return i&&c(pe,r)&&!(c(n,L)&&n[L][r])&&(i.enumerable=!0),i}},Te=function(e){var t=ue(d(e)),n=[];return I(t,function(e){!c(pe,e)&&!c(O,e)&&fe(n,e)}),n},Ee=function(e){var t=e===z,n=ue(t?me:d(e)),r=[];return I(n,function(e){c(pe,e)&&(!t||c(z,e))&&fe(r,pe[e])}),r};o||(re=function(){if(l(ie,this))throw new oe(`Symbol is not a constructor`);var e=!arguments.length||arguments[0]===void 0?void 0:p(arguments[0]),r=k(e),i=function(e){var a=this===void 0?t:this;a===z&&n(i,me,e),c(a,L)&&c(a[L],r)&&(a[L][r]=!1);var o=m(1,e);try{ve(a,r,o)}catch(e){if(!(e instanceof ae))throw e;_e(a,r,o)}};return a&&ge&&ve(z,r,{configurable:!0,set:i}),ye(r,e)},ie=re[te],w(ie,`toString`,function(){return ne(this).tag}),w(re,`withoutSetter`,function(e){return ye(k(e),e)}),C.f=Ce,x.f=be,S.f=xe,b.f=we,_.f=v.f=Te,y.f=Ee,j.f=function(e){return ye(A(e),e)},a&&(T(ie,`description`,{configurable:!0,get:function(){return ne(this).description}}),i||w(z,`propertyIsEnumerable`,Ce,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!o,sham:!o},{Symbol:re}),I(g(he),function(e){M(e)}),e({target:ee,stat:!0,forced:!o},{useSetter:function(){ge=!0},useSimple:function(){ge=!1}}),e({target:`Object`,stat:!0,forced:!o,sham:!a},{create:Se,defineProperty:be,defineProperties:xe,getOwnPropertyDescriptor:we}),e({target:`Object`,stat:!0,forced:!o},{getOwnPropertyNames:Te}),N(),P(re,ee),O[L]=!0})),ji=v(((e,t)=>{t.exports=vr()&&!!Symbol.for&&!!Symbol.keyFor})),Mi=v((()=>{var e=q(),t=mr(),n=Ar(),r=ui(),i=Or(),a=ji(),o=i(`string-to-symbol-registry`),s=i(`symbol-to-string-registry`);e({target:`Symbol`,stat:!0,forced:!a},{for:function(e){var i=r(e);if(n(o,i))return o[i];var a=t(`Symbol`)(i);return o[i]=a,s[a]=i,a}})})),Ni=v((()=>{var e=q(),t=Ar(),n=br(),r=xr(),i=Or(),a=ji(),o=i(`symbol-to-string-registry`);e({target:`Symbol`,stat:!0,forced:!a},{keyFor:function(e){if(!n(e))throw TypeError(r(e)+` is not a symbol`);if(t(o,e))return o[e]}})})),Pi=v(((e,t)=>{var n=ir(),r=Function.prototype,i=r.apply,a=r.call;t.exports=typeof Reflect==`object`&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})})),Fi=v(((e,t)=>{var n=G(),r=Ti(),i=fr(),a=sr(),o=ui(),s=n([].push);t.exports=function(e){if(i(e))return e;if(r(e)){for(var t=e.length,n=[],c=0;c<t;c++){var l=e[c];typeof l==`string`?s(n,l):(typeof l==`number`||a(l)===`Number`||a(l)===`String`)&&s(n,o(l))}var u=n.length,d=!0;return function(e,t){if(d)return d=!1,t;if(r(this))return t;for(var i=0;i<u;i++)if(n[i]===e)return t}}}})),Ii=v((()=>{var e=q(),t=mr(),n=Pi(),r=W(),i=G(),a=H(),o=fr(),s=br(),c=hi(),l=Fi(),u=vr(),d=String,f=t(`JSON`,`stringify`),p=i(/./.exec),m=i(``.charAt),h=i(``.charCodeAt),g=i(``.replace),_=i(1.1.toString),v=/[\uD800-\uDFFF]/g,y=/^[\uD800-\uDBFF]$/,b=/^[\uDC00-\uDFFF]$/,x=!u||a(function(){var e=t(`Symbol`)(`stringify detection`);return f([e])!==`[null]`||f({a:e})!==`{}`||f(Object(e))!==`{}`}),S=a(function(){return f(`\udf06\ud834`)!==`"\\udf06\\ud834"`||f(`\udead`)!==`"\\udead"`}),C=function(e,t){var i=c(arguments),a=l(t);if(!(!o(a)&&(e===void 0||s(e))))return i[1]=function(e,t){if(o(a)&&(t=r(a,this,d(e),t)),!s(t))return t},n(f,null,i)},w=function(e,t,n){var r=m(n,t-1),i=m(n,t+1);return p(y,e)&&!p(b,i)||p(b,e)&&!p(y,r)?`\\u`+_(h(e,0),16):e};f&&e({target:`JSON`,stat:!0,arity:3,forced:x||S},{stringify:function(e,t,r){var i=c(arguments),a=n(x?C:f,null,i);return S&&typeof a==`string`?g(a,v,w):a}})})),Li=v((()=>{var e=q(),t=vr(),n=H(),r=ii(),i=kr();e({target:`Object`,stat:!0,forced:!t||n(function(){r.f(1)})},{getOwnPropertySymbols:function(e){var t=r.f;return t?t(i(e)):[]}})})),Ri=v((()=>{Ai(),Mi(),Ni(),Ii(),Li()})),zi=v((()=>{var e=q(),t=U(),n=V(),r=G(),i=Ar(),a=fr(),o=hr(),s=ui(),c=_i(),l=oi(),u=n.Symbol,d=u&&u.prototype;if(t&&a(u)&&(!(`description`in d)||u().description!==void 0)){var f={},p=function(){var e=arguments.length<1||arguments[0]===void 0?void 0:s(arguments[0]),t=o(d,this)?new u(e):e===void 0?u():u(e);return e===``&&(f[t]=!0),t};l(p,u),p.prototype=d,d.constructor=p;var m=String(u(`description detection`))===`Symbol(description detection)`,h=r(d.valueOf),g=r(d.toString),_=/^Symbol\((.*)\)[^)]+$/,v=r(``.replace),y=r(``.slice);c(d,`description`,{configurable:!0,get:function(){var e=h(this);if(i(f,e))return``;var t=g(e),n=m?y(t,7,-1):v(t,_,`$1`);return n===``?void 0:n}}),e({global:!0,constructor:!0,forced:!0},{Symbol:p})}})),Bi=v((()=>{var e=V(),t=bi(),n=zr().f,r=Lr().f,i=e.Symbol;if(t(`asyncDispose`),i){var a=r(i,`asyncDispose`);a.enumerable&&a.configurable&&a.writable&&n(i,`asyncDispose`,{value:a.value,enumerable:!1,configurable:!1,writable:!1})}})),Vi=v((()=>{bi()(`asyncIterator`)})),Hi=v((()=>{var e=V(),t=bi(),n=zr().f,r=Lr().f,i=e.Symbol;if(t(`dispose`),i){var a=r(i,`dispose`);a.enumerable&&a.configurable&&a.writable&&n(i,`dispose`,{value:a.value,enumerable:!1,configurable:!1,writable:!1})}})),Ui=v((()=>{bi()(`hasInstance`)})),Wi=v((()=>{bi()(`isConcatSpreadable`)})),Gi=v((()=>{bi()(`iterator`)})),Ki=v((()=>{bi()(`match`)})),qi=v((()=>{bi()(`matchAll`)})),Ji=v((()=>{bi()(`replace`)})),Yi=v((()=>{bi()(`search`)})),Xi=v((()=>{bi()(`species`)})),Zi=v((()=>{bi()(`split`)})),Qi=v((()=>{var e=bi(),t=xi();e(`toPrimitive`),t()})),$i=v((()=>{var e=mr(),t=bi(),n=Si();t(`toStringTag`),n(e(`Symbol`),`Symbol`)})),ea=v((()=>{bi()(`unscopables`)})),ta=v(((e,t)=>{var n=G(),r=Sr();t.exports=function(e,t,i){try{return n(r(Object.getOwnPropertyDescriptor(e,t)[i]))}catch{}}})),na=v(((e,t)=>{var n=pr();t.exports=function(e){return n(e)||e===null}})),ra=v(((e,t)=>{var n=na(),r=String,i=TypeError;t.exports=function(e){if(n(e))return e;throw new i(`Can't set `+r(e)+` as a prototype`)}})),ia=v(((e,t)=>{var n=ta(),r=pr(),i=ur(),a=ra();t.exports=Object.setPrototypeOf||(`__proto__`in{}?function(){var e=!1,t={},o;try{o=n(Object.prototype,`__proto__`,`set`),o(t,[]),e=t instanceof Array}catch{}return function(t,n){return i(t),a(n),r(t)&&(e?o(t,n):t.__proto__=n),t}}():void 0)})),aa=v(((e,t)=>{var n=zr().f;t.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}})),oa=v(((e,t)=>{var n=fr(),r=pr(),i=ia();t.exports=function(e,t,a){var o,s;return i&&n(o=t.constructor)&&o!==a&&r(s=o.prototype)&&s!==a.prototype&&i(e,s),e}})),sa=v(((e,t)=>{var n=ui();t.exports=function(e,t){return e===void 0?arguments.length<2?``:t:n(e)}})),ca=v(((e,t)=>{var n=pr(),r=Br();t.exports=function(e,t){n(t)&&`cause`in t&&r(e,`cause`,t.cause)}})),la=v(((e,t)=>{var n=G(),r=Error,i=n(``.replace),a=(function(e){return String(new r(e).stack)})(`zxcasd`),o=/\n\s*at [^:]*:[^\n]*/,s=o.test(a);t.exports=function(e,t){if(s&&typeof e==`string`&&!r.prepareStackTrace)for(;t--;)e=i(e,o,``);return e}})),ua=v(((e,t)=>{var n=H(),r=or();t.exports=!n(function(){var e=Error(`a`);return`stack`in e?(Object.defineProperty(e,`stack`,r(1,7)),e.stack!==7):!0})})),da=v(((e,t)=>{var n=Br(),r=la(),i=ua(),a=Error.captureStackTrace;t.exports=function(e,t,o,s){i&&(a?a(e,t):n(e,`stack`,r(o,s)))}})),fa=v(((e,t)=>{var n=mr(),r=Ar(),i=Br(),a=hr(),o=ia(),s=oi(),c=aa(),l=oa(),u=sa(),d=ca(),f=da(),p=U(),m=Tr();t.exports=function(e,t,h,g){var _=`stackTraceLimit`,v=g?2:1,y=e.split(`.`),b=y[y.length-1],x=n.apply(null,y);if(x){var S=x.prototype;if(!m&&r(S,`cause`)&&delete S.cause,!h)return x;var C=n(`Error`),w=t(function(e,t){var n=u(g?t:e,void 0),r=g?new x(e):new x;return n!==void 0&&i(r,`message`,n),f(r,w,r.stack,2),this&&a(S,this)&&l(r,this,w),arguments.length>v&&d(r,arguments[v]),r});if(w.prototype=S,b===`Error`?p&&_ in x&&(c(w,x,_),c(w,x,`prepareStackTrace`)):o?o(w,C):s(w,C,{name:!0}),s(w,x),!m)try{S.name!==b&&i(S,`name`,b),S.constructor=w}catch{}return w}}})),pa=v((()=>{var e=q(),t=V(),n=Pi(),r=fa(),i=`WebAssembly`,a=t[i],o=Error(`e`,{cause:7}).cause!==7,s=function(t,n){var i={};i[t]=r(t,n,o),e({global:!0,constructor:!0,arity:1,forced:o},i)},c=function(t,n){if(a&&a[t]){var s={};s[t]=r(i+`.`+t,n,o),e({target:i,stat:!0,constructor:!0,arity:1,forced:o},s)}};s(`Error`,function(e){return function(t){return n(e,this,arguments)}}),s(`EvalError`,function(e){return function(t){return n(e,this,arguments)}}),s(`RangeError`,function(e){return function(t){return n(e,this,arguments)}}),s(`ReferenceError`,function(e){return function(t){return n(e,this,arguments)}}),s(`SyntaxError`,function(e){return function(t){return n(e,this,arguments)}}),s(`TypeError`,function(e){return function(t){return n(e,this,arguments)}}),s(`URIError`,function(e){return function(t){return n(e,this,arguments)}}),c(`CompileError`,function(e){return function(t){return n(e,this,arguments)}}),c(`LinkError`,function(e){return function(t){return n(e,this,arguments)}}),c(`RuntimeError`,function(e){return function(t){return n(e,this,arguments)}})})),ma=v((()=>{var e=q(),t=mr(),n=pr(),r=li(),i=H(),a=`Error`,o=`DOMException`,s=Object.setPrototypeOf||{}.__proto__,c=t(o),l=Error,u=l.isError;e({target:`Error`,stat:!0,sham:!0,forced:!u||!s||i(function(){return c&&!u(new c(o))||!u(new l(a,{cause:function(){}}))||u(t(`Object`,`create`)(l.prototype))})},{isError:function(e){if(!n(e))return!1;var t=r(e);return t===a||t===o}})})),ha=v(((e,t)=>{var n=U(),r=H(),i=K(),a=sa(),o=Error.prototype.toString;t.exports=r(function(){if(n){var e=Object.create(Object.defineProperty({},`name`,{get:function(){return this===e}}));if(o.call(e)!==`true`)return!0}return o.call({message:1,name:2})!==`2: 1`||o.call({})!==`Error`})?function(){var e=i(this),t=a(e.name,`Error`),n=a(e.message);return t?n?t+`: `+n:t:n}:o})),ga=v((()=>{var e=Jr(),t=ha(),n=Error.prototype;n.toString!==t&&e(n,`toString`,t)})),_a=v(((e,t)=>{t.exports=!H()(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})})),va=v(((e,t)=>{var n=Ar(),r=fr(),i=kr(),a=Wr(),o=_a(),s=a(`IE_PROTO`),c=Object,l=c.prototype;t.exports=o?c.getPrototypeOf:function(e){var t=i(e);if(n(t,s))return t[s];var a=t.constructor;return r(a)&&t instanceof a?a.prototype:t instanceof c?l:null}})),ya=v(((e,t)=>{t.exports={}})),ba=v(((e,t)=>{var n=Mr(),r=ya(),i=n(`iterator`),a=Array.prototype;t.exports=function(e){return e!==void 0&&(r.Array===e||a[i]===e)}})),xa=v(((e,t)=>{var n=li(),r=Cr(),i=lr(),a=ya(),o=Mr()(`iterator`);t.exports=function(e){if(!i(e))return r(e,o)||r(e,`@@iterator`)||a[n(e)]}})),Sa=v(((e,t)=>{var n=W(),r=Sr(),i=K(),a=xr(),o=xa(),s=TypeError;t.exports=function(e,t){var c=arguments.length<2?o(e):t;if(r(c))return i(n(c,e));throw new s(a(e)+` is not iterable`)}})),Ca=v(((e,t)=>{var n=W(),r=K(),i=Cr();t.exports=function(e,t,a){var o,s;r(e);try{if(o=i(e,`return`),!o){if(t===`throw`)throw a;return a}o=n(o,e)}catch(e){s=!0,o=e}if(t===`throw`)throw a;if(s)throw o;return r(o),a}})),wa=v(((e,t)=>{var n=wi(),r=W(),i=K(),a=xr(),o=ba(),s=$r(),c=hr(),l=Sa(),u=xa(),d=Ca(),f=TypeError,p=function(e,t){this.stopped=e,this.result=t},m=p.prototype;t.exports=function(e,t,h){var g=h&&h.that,_=!!(h&&h.AS_ENTRIES),v=!!(h&&h.IS_RECORD),y=!!(h&&h.IS_ITERATOR),b=!!(h&&h.INTERRUPTED),x=n(t,g),S,C,w,T,E,D,O,k=function(e){return S&&d(S,`normal`),new p(!0,e)},A=function(e){return _?(i(e),b?x(e[0],e[1],k):x(e[0],e[1])):b?x(e,k):x(e)};if(v)S=e.iterator;else if(y)S=e;else{if(C=u(e),!C)throw new f(a(e)+` is not iterable`);if(o(C)){for(w=0,T=s(e);T>w;w++)if(E=A(e[w]),E&&c(m,E))return E;return new p(!1)}S=l(e,C)}for(D=v?e.next:S.next;!(O=r(D,S)).done;){try{E=A(O.value)}catch(e){d(S,`throw`,e)}if(typeof E==`object`&&E&&c(m,E))return E}return new p(!1)}})),Ta=v((()=>{var e=q(),t=hr(),n=va(),r=ia(),i=oi(),a=mi(),o=Br(),s=or(),c=ca(),l=da(),u=wa(),d=sa(),f=Mr()(`toStringTag`),p=Error,m=[].push,h=function(e,i){var s=t(g,this),_;r?_=r(new p,s?n(this):g):(_=s?this:a(g),o(_,f,`Error`)),i!==void 0&&o(_,`message`,d(i)),l(_,h,_.stack,1),arguments.length>2&&c(_,arguments[2]);var v=[];return u(e,m,{that:v}),o(_,`errors`,v),_};r?r(h,p):i(h,p,{name:!0});var g=h.prototype=a(p.prototype,{constructor:s(1,h),message:s(1,``),name:s(1,`AggregateError`)});e({global:!0,constructor:!0,arity:2},{AggregateError:h})})),Ea=v((()=>{Ta()})),Da=v((()=>{var e=q(),t=mr(),n=Pi(),r=H(),i=fa(),a=`AggregateError`,o=t(a),s=!r(function(){return o([1]).errors[0]!==1})&&r(function(){return o([1],a,{cause:7}).cause!==7});e({global:!0,constructor:!0,arity:2,forced:s},{AggregateError:i(a,function(e){return function(t,r){return n(e,this,arguments)}},s,!0)})})),Oa=v((()=>{var e=q(),t=V(),n=hr(),r=va(),i=ia(),a=oi(),o=mi(),s=Br(),c=or(),l=da(),u=sa(),d=Mr(),f=H(),p=Tr(),m=t.SuppressedError,h=d(`toStringTag`),g=Error,_=!!m&&m.length!==3,v=!!m&&f(function(){return new m(1,2,3,{cause:4}).cause===4}),y=_||v,b=function(e,t,a){var c=n(x,this),d;return i?d=y&&(!c||r(this)===x)?new m:i(new g,c?r(this):x):(d=c?this:o(x),s(d,h,`Error`)),a!==void 0&&s(d,`message`,u(a)),l(d,b,d.stack,1),s(d,`error`,e),s(d,`suppressed`,t),d};i?i(b,g):a(b,g,{name:!0});var x=b.prototype=y?m.prototype:o(g.prototype,{constructor:c(1,b),message:c(1,``),name:c(1,`SuppressedError`)});y&&!p&&(x.constructor=b),e({global:!0,constructor:!0,arity:3,forced:y},{SuppressedError:b})})),ka=v(((e,t)=>{var n=Mr(),r=mi(),i=zr().f,a=n(`unscopables`),o=Array.prototype;o[a]===void 0&&i(o,a,{configurable:!0,value:r(null)}),t.exports=function(e){o[a][e]=!0}})),Aa=v((()=>{var e=q(),t=kr(),n=$r(),r=Xr(),i=ka();e({target:`Array`,proto:!0},{at:function(e){var i=t(this),a=n(i),o=r(e),s=o>=0?o:a+o;return s<0||s>=a?void 0:i[s]}}),i(`at`)})),ja=v(((e,t)=>{var n=TypeError,r=9007199254740991;t.exports=function(e){if(e>r)throw n(`Maximum allowed index exceeded`);return e}})),Ma=v(((e,t)=>{var n=U(),r=zr(),i=or();t.exports=function(e,t,a){n?r.f(e,t,i(0,a)):e[t]=a}})),Na=v(((e,t)=>{var n=H(),r=Mr(),i=_r(),a=r(`species`);t.exports=function(e){return i>=51||!n(function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},t[e](Boolean).foo!==1})}})),Pa=v((()=>{var e=q(),t=H(),n=Ti(),r=pr(),i=kr(),a=$r(),o=ja(),s=Ma(),c=Oi(),l=Na(),u=Mr(),d=_r(),f=u(`isConcatSpreadable`),p=d>=51||!t(function(){var e=[];return e[f]=!1,e.concat()[0]!==e}),m=function(e){if(!r(e))return!1;var t=e[f];return t===void 0?n(e):!!t};e({target:`Array`,proto:!0,arity:1,forced:!p||!l(`concat`)},{concat:function(e){var t=i(this),n=c(t,0),r=0,l,u,d,f,p;for(l=-1,d=arguments.length;l<d;l++)if(p=l===-1?t:arguments[l],m(p))for(f=a(p),o(r+f),u=0;u<f;u++,r++)u in p&&s(n,r,p[u]);else o(r+1),s(n,r++,p);return n.length=r,n}})})),Fa=v(((e,t)=>{var n=xr(),r=TypeError;t.exports=function(e,t){if(!delete e[t])throw new r(`Cannot delete property `+n(t)+` of `+n(e))}})),Ia=v(((e,t)=>{var n=kr(),r=Zr(),i=$r(),a=Fa(),o=Math.min;t.exports=[].copyWithin||function(e,t){var s=n(this),c=i(s),l=r(e,c),u=r(t,c),d=arguments.length>2?arguments[2]:void 0,f=o((d===void 0?c:r(d,c))-u,c-l),p=1;for(u<l&&l<u+f&&(p=-1,u+=f-1,l+=f-1);f-- >0;)u in s?s[l]=s[u]:a(s,l),l+=p,u+=p;return s}})),La=v((()=>{var e=q(),t=Ia(),n=ka();e({target:`Array`,proto:!0},{copyWithin:t}),n(`copyWithin`)})),Ra=v(((e,t)=>{var n=H();t.exports=function(e,t){var r=[][e];return!!r&&n(function(){r.call(null,t||function(){return 1},1)})}})),za=v((()=>{var e=q(),t=ki().every;e({target:`Array`,proto:!0,forced:!Ra()(`every`)},{every:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}})})),Ba=v(((e,t)=>{var n=kr(),r=Zr(),i=$r();t.exports=function(e){for(var t=n(this),a=i(t),o=arguments.length,s=r(o>1?arguments[1]:void 0,a),c=o>2?arguments[2]:void 0,l=c===void 0?a:r(c,a);l>s;)t[s++]=e;return t}})),Va=v((()=>{var e=q(),t=Ba(),n=ka();e({target:`Array`,proto:!0},{fill:t}),n(`fill`)})),Ha=v((()=>{var e=q(),t=ki().filter;e({target:`Array`,proto:!0,forced:!Na()(`filter`)},{filter:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}})})),Ua=v((()=>{var e=q(),t=ki().find,n=ka(),r=`find`,i=!0;r in[]&&[,][r](function(){i=!1}),e({target:`Array`,proto:!0,forced:i},{find:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),n(r)})),Wa=v((()=>{var e=q(),t=ki().findIndex,n=ka(),r=`findIndex`,i=!0;r in[]&&[,][r](function(){i=!1}),e({target:`Array`,proto:!0,forced:i},{findIndex:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),n(r)})),Ga=v(((e,t)=>{var n=wi(),r=cr(),i=kr(),a=$r(),o=function(e){var t=e===1;return function(o,s,c){for(var l=i(o),u=r(l),d=a(u),f=n(s,c),p,m;d-- >0;)if(p=u[d],m=f(p,d,l),m)switch(e){case 0:return p;case 1:return d}return t?-1:void 0}};t.exports={findLast:o(0),findLastIndex:o(1)}})),Ka=v((()=>{var e=q(),t=Ga().findLast,n=ka();e({target:`Array`,proto:!0},{findLast:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),n(`findLast`)})),qa=v((()=>{var e=q(),t=Ga().findLastIndex,n=ka();e({target:`Array`,proto:!0},{findLastIndex:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),n(`findLastIndex`)})),Ja=v(((e,t)=>{var n=Ti(),r=$r(),i=ja(),a=wi(),o=function(e,t,s,c,l,u,d,f){for(var p=l,m=0,h=d?a(d,f):!1,g,_;m<c;)m in s&&(g=h?h(s[m],m,t):s[m],u>0&&n(g)?(_=r(g),p=o(e,t,g,_,p,u-1)-1):(i(p+1),e[p]=g),p++),m++;return p};t.exports=o})),Ya=v((()=>{var e=q(),t=Ja(),n=kr(),r=$r(),i=Xr(),a=Oi();e({target:`Array`,proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,o=n(this),s=r(o),c=a(o,0);return c.length=t(c,o,o,s,0,e===void 0?1:i(e)),c}})})),Xa=v((()=>{var e=q(),t=Ja(),n=Sr(),r=kr(),i=$r(),a=Oi();e({target:`Array`,proto:!0},{flatMap:function(e){var o=r(this),s=i(o),c;return n(e),c=a(o,0),c.length=t(c,o,o,s,0,1,e,arguments.length>1?arguments[1]:void 0),c}})})),Za=v(((e,t)=>{var n=ki().forEach;t.exports=Ra()(`forEach`)?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}})),Qa=v((()=>{var e=q(),t=Za();e({target:`Array`,proto:!0,forced:[].forEach!==t},{forEach:t})})),$a=v(((e,t)=>{var n=K(),r=Ca();t.exports=function(e,t,i,a){try{return a?t(n(i)[0],i[1]):t(i)}catch(t){r(e,`throw`,t)}}})),eo=v(((e,t)=>{var n=wi(),r=W(),i=kr(),a=$a(),o=ba(),s=Ei(),c=$r(),l=Ma(),u=Sa(),d=xa(),f=Array;t.exports=function(e){var t=i(e),p=s(this),m=arguments.length,h=m>1?arguments[1]:void 0,g=h!==void 0;g&&(h=n(h,m>2?arguments[2]:void 0));var _=d(t),v=0,y,b,x,S,C,w;if(_&&!(this===f&&o(_)))for(b=p?new this:[],S=u(t,_),C=S.next;!(x=r(C,S)).done;v++)w=g?a(S,h,[x.value,v],!0):x.value,l(b,v,w);else for(y=c(t),b=p?new this(y):f(y);y>v;v++)w=g?h(t[v],v):t[v],l(b,v,w);return b.length=v,b}})),to=v(((e,t)=>{var n=Mr()(`iterator`),r=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){r=!0}};a[n]=function(){return this},Array.from(a,function(){throw 2})}catch{}t.exports=function(e,t){try{if(!t&&!r)return!1}catch{return!1}var i=!1;try{var a={};a[n]=function(){return{next:function(){return{done:i=!0}}}},e(a)}catch{}return i}})),no=v((()=>{var e=q(),t=eo();e({target:`Array`,stat:!0,forced:!to()(function(e){Array.from(e)})},{from:t})})),ro=v((()=>{var e=q(),t=ei().includes,n=H(),r=ka();e({target:`Array`,proto:!0,forced:n(function(){return![,].includes()})},{includes:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),r(`includes`)})),io=v((()=>{var e=q(),t=Ci(),n=ei().indexOf,r=Ra(),i=t([].indexOf),a=!!i&&1/i([1],1,-0)<0;e({target:`Array`,proto:!0,forced:a||!r(`indexOf`)},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return a?i(this,e,t)||0:n(this,e,t)}})})),ao=v((()=>{q()({target:`Array`,stat:!0},{isArray:Ti()})})),oo=v(((e,t)=>{var n=H(),r=fr(),i=pr(),a=mi(),o=va(),s=Jr(),c=Mr(),l=Tr(),u=c(`iterator`),d=!1,f,p,m;[].keys&&(m=[].keys(),`next`in m?(p=o(o(m)),p!==Object.prototype&&(f=p)):d=!0),!i(f)||n(function(){var e={};return f[u].call(e)!==e})?f={}:l&&(f=a(f)),r(f[u])||s(f,u,function(){return this}),t.exports={IteratorPrototype:f,BUGGY_SAFARI_ITERATORS:d}})),so=v(((e,t)=>{var n=oo().IteratorPrototype,r=mi(),i=or(),a=Si(),o=ya(),s=function(){return this};t.exports=function(e,t,c,l){var u=t+` Iterator`;return e.prototype=r(n,{next:i(+!l,c)}),a(e,u,!1,!0),o[u]=s,e}})),co=v(((e,t)=>{var n=q(),r=W(),i=Tr(),a=Vr(),o=fr(),s=so(),c=va(),l=ia(),u=Si(),d=Br(),f=Jr(),p=Mr(),m=ya(),h=oo(),g=a.PROPER,_=a.CONFIGURABLE,v=h.IteratorPrototype,y=h.BUGGY_SAFARI_ITERATORS,b=p(`iterator`),x=`keys`,S=`values`,C=`entries`,w=function(){return this};t.exports=function(e,t,a,p,h,T,E){s(a,t,p);var D=function(e){if(e===h&&M)return M;if(!y&&e&&e in A)return A[e];switch(e){case x:return function(){return new a(this,e)};case S:return function(){return new a(this,e)};case C:return function(){return new a(this,e)}}return function(){return new a(this)}},O=t+` Iterator`,k=!1,A=e.prototype,j=A[b]||A[`@@iterator`]||h&&A[h],M=!y&&j||D(h),N=t===`Array`&&A.entries||j,P,F,I;if(N&&(P=c(N.call(new e)),P!==Object.prototype&&P.next&&(!i&&c(P)!==v&&(l?l(P,v):o(P[b])||f(P,b,w)),u(P,O,!0,!0),i&&(m[O]=w))),g&&h===S&&j&&j.name!==S&&(!i&&_?d(A,`name`,S):(k=!0,M=function(){return r(j,this)})),h)if(F={values:D(S),keys:T?M:D(x),entries:D(C)},E)for(I in F)(y||k||!(I in A))&&f(A,I,F[I]);else n({target:t,proto:!0,forced:y||k},F);return(!i||E)&&A[b]!==M&&f(A,b,M,{name:h}),m[t]=M,F}})),lo=v(((e,t)=>{t.exports=function(e,t){return{value:e,done:t}}})),uo=v(((e,t)=>{var n=dr(),r=ka(),i=ya(),a=Kr(),o=zr().f,s=co(),c=lo(),l=Tr(),u=U(),d=`Array Iterator`,f=a.set,p=a.getterFor(d);t.exports=s(Array,`Array`,function(e,t){f(this,{type:d,target:n(e),index:0,kind:t})},function(){var e=p(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,c(void 0,!0);switch(e.kind){case`keys`:return c(n,!1);case`values`:return c(t[n],!1)}return c([n,t[n]],!1)},`values`);var m=i.Arguments=i.Array;if(r(`keys`),r(`values`),r(`entries`),!l&&u&&m.name!==`values`)try{o(m,`name`,{value:`values`})}catch{}})),fo=v((()=>{var e=q(),t=G(),n=cr(),r=dr(),i=Ra(),a=t([].join);e({target:`Array`,proto:!0,forced:n!==Object||!i(`join`,`,`)},{join:function(e){return a(r(this),e===void 0?`,`:e)}})})),po=v(((e,t)=>{var n=Pi(),r=dr(),i=Xr(),a=$r(),o=Ra(),s=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,u=o(`lastIndexOf`);t.exports=l||!u?function(e){if(l)return n(c,this,arguments)||0;var t=r(this),o=a(t);if(o===0)return-1;var u=o-1;for(arguments.length>1&&(u=s(u,i(arguments[1]))),u<0&&(u=o+u);u>=0;u--)if(u in t&&t[u]===e)return u||0;return-1}:c})),mo=v((()=>{var e=q(),t=po();e({target:`Array`,proto:!0,forced:t!==[].lastIndexOf},{lastIndexOf:t})})),ho=v((()=>{var e=q(),t=ki().map;e({target:`Array`,proto:!0,forced:!Na()(`map`)},{map:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}})})),go=v((()=>{var e=q(),t=H(),n=Ei(),r=Ma(),i=Array;e({target:`Array`,stat:!0,forced:t(function(){function e(){}return!(i.of.call(e)instanceof e)})},{of:function(){for(var e=0,t=arguments.length,a=new(n(this)?this:i)(t);t>e;)r(a,e,arguments[e++]);return a.length=t,a}})})),_o=v(((e,t)=>{var n=U(),r=Ti(),i=TypeError,a=Object.getOwnPropertyDescriptor;t.exports=n&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],`length`,{writable:!1}).length=1}catch(e){return e instanceof TypeError}}()?function(e,t){if(r(e)&&!a(e,`length`).writable)throw new i(`Cannot set read only .length`);return e.length=t}:function(e,t){return e.length=t}})),vo=v((()=>{var e=q(),t=kr(),n=$r(),r=_o(),i=ja();e({target:`Array`,proto:!0,arity:1,forced:H()(function(){return[].push.call({length:4294967296},1)!==4294967297})||!function(){try{Object.defineProperty([],`length`,{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var a=t(this),o=n(a),s=arguments.length;i(o+s);for(var c=0;c<s;c++)a[o]=arguments[c],o++;return r(a,o),o}})})),yo=v(((e,t)=>{var n=Sr(),r=kr(),i=cr(),a=$r(),o=TypeError,s=`Reduce of empty array with no initial value`,c=function(e){return function(t,c,l,u){var d=r(t),f=i(d),p=a(d);if(n(c),p===0&&l<2)throw new o(s);var m=e?p-1:0,h=e?-1:1;if(l<2)for(;;){if(m in f){u=f[m],m+=h;break}if(m+=h,e?m<0:p<=m)throw new o(s)}for(;e?m>=0:p>m;m+=h)m in f&&(u=c(u,f[m],m,d));return u}};t.exports={left:c(!1),right:c(!0)}})),bo=v(((e,t)=>{var n=V(),r=gr(),i=sr(),a=function(e){return r.slice(0,e.length)===e};t.exports=(function(){return a(`Bun/`)?`BUN`:a(`Cloudflare-Workers`)?`CLOUDFLARE`:a(`Deno/`)?`DENO`:a(`Node.js/`)?`NODE`:n.Bun&&typeof Bun.version==`string`?`BUN`:n.Deno&&typeof Deno.version==`object`?`DENO`:i(n.process)===`process`?`NODE`:n.window&&n.document?`BROWSER`:`REST`})()})),xo=v(((e,t)=>{t.exports=bo()===`NODE`})),So=v((()=>{var e=q(),t=yo().left,n=Ra(),r=_r();e({target:`Array`,proto:!0,forced:!xo()&&r>79&&r<83||!n(`reduce`)},{reduce:function(e){var n=arguments.length;return t(this,e,n,n>1?arguments[1]:void 0)}})})),Co=v((()=>{var e=q(),t=yo().right,n=Ra(),r=_r();e({target:`Array`,proto:!0,forced:!xo()&&r>79&&r<83||!n(`reduceRight`)},{reduceRight:function(e){return t(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})})),wo=v((()=>{var e=q(),t=G(),n=Ti(),r=t([].reverse),i=[1,2];e({target:`Array`,proto:!0,forced:String(i)===String(i.reverse())},{reverse:function(){return n(this)&&(this.length=this.length),r(this)}})})),To=v((()=>{var e=q(),t=Ti(),n=Ei(),r=pr(),i=Zr(),a=$r(),o=dr(),s=Ma(),c=Mr(),l=Na(),u=hi(),d=l(`slice`),f=c(`species`),p=Array,m=Math.max;e({target:`Array`,proto:!0,forced:!d},{slice:function(e,c){var l=o(this),d=a(l),h=i(e,d),g=i(c===void 0?d:c,d),_,v,y;if(t(l)&&(_=l.constructor,n(_)&&(_===p||t(_.prototype))?_=void 0:r(_)&&(_=_[f],_===null&&(_=void 0)),_===p||_===void 0))return u(l,h,g);for(v=new(_===void 0?p:_)(m(g-h,0)),y=0;h<g;h++,y++)h in l&&s(v,y,l[h]);return v.length=y,v}})})),Eo=v((()=>{var e=q(),t=ki().some;e({target:`Array`,proto:!0,forced:!Ra()(`some`)},{some:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}})})),Do=v(((e,t)=>{var n=hi(),r=Math.floor,i=function(e,t){var a=e.length;if(a<8)for(var o=1,s,c;o<a;){for(c=o,s=e[o];c&&t(e[c-1],s)>0;)e[c]=e[--c];c!==o++&&(e[c]=s)}else for(var l=r(a/2),u=i(n(e,0,l),t),d=i(n(e,l),t),f=u.length,p=d.length,m=0,h=0;m<f||h<p;)e[m+h]=m<f&&h<p?t(u[m],d[h])<=0?u[m++]:d[h++]:m<f?u[m++]:d[h++];return e};t.exports=i})),Oo=v(((e,t)=>{var n=gr().match(/firefox\/(\d+)/i);t.exports=!!n&&+n[1]})),ko=v(((e,t)=>{var n=gr();t.exports=/MSIE|Trident/.test(n)})),Ao=v(((e,t)=>{var n=gr().match(/AppleWebKit\/(\d+)\./);t.exports=!!n&&+n[1]})),jo=v((()=>{var e=q(),t=G(),n=Sr(),r=kr(),i=$r(),a=Fa(),o=ui(),s=H(),c=Do(),l=Ra(),u=Oo(),d=ko(),f=_r(),p=Ao(),m=[],h=t(m.sort),g=t(m.push),_=s(function(){m.sort(void 0)}),v=s(function(){m.sort(null)}),y=l(`sort`),b=!s(function(){if(f)return f<70;if(!(u&&u>3)){if(d)return!0;if(p)return p<603;var e=``,t,n,r,i;for(t=65;t<76;t++){switch(n=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(i=0;i<47;i++)m.push({k:n+i,v:r})}for(m.sort(function(e,t){return t.v-e.v}),i=0;i<m.length;i++)n=m[i].k.charAt(0),e.charAt(e.length-1)!==n&&(e+=n);return e!==`DGBEFHACIJK`}}),x=_||!v||!y||!b,S=function(e){return function(t,n){return n===void 0?-1:t===void 0?1:e===void 0?o(t)>o(n)?1:-1:+e(t,n)||0}};e({target:`Array`,proto:!0,forced:x},{sort:function(e){e!==void 0&&n(e);var t=r(this);if(b)return e===void 0?h(t):h(t,e);var o=[],s=i(t),l,u;for(u=0;u<s;u++)u in t&&g(o,t[u]);for(c(o,S(e)),l=i(o),u=0;u<l;)t[u]=o[u++];for(;u<s;)a(t,u++);return t}})})),Mo=v(((e,t)=>{var n=mr(),r=_i(),i=Mr(),a=U(),o=i(`species`);t.exports=function(e){var t=n(e);a&&t&&!t[o]&&r(t,o,{configurable:!0,get:function(){return this}})}})),No=v((()=>{Mo()(`Array`)})),Po=v((()=>{var e=q(),t=kr(),n=Zr(),r=Xr(),i=$r(),a=_o(),o=ja(),s=Oi(),c=Ma(),l=Fa(),u=Na()(`splice`),d=Math.max,f=Math.min;e({target:`Array`,proto:!0,forced:!u},{splice:function(e,u){var p=t(this),m=i(p),h=n(e,m),g=arguments.length,_,v,y,b,x,S;for(g===0?_=v=0:g===1?(_=0,v=m-h):(_=g-2,v=f(d(r(u),0),m-h)),o(m+_-v),y=s(p,v),b=0;b<v;b++)x=h+b,x in p&&c(y,b,p[x]);if(y.length=v,_<v){for(b=h;b<m-v;b++)x=b+v,S=b+_,x in p?p[S]=p[x]:l(p,S);for(b=m;b>m-v+_;b--)l(p,b-1)}else if(_>v)for(b=m-v;b>h;b--)x=b+v-1,S=b+_-1,x in p?p[S]=p[x]:l(p,S);for(b=0;b<_;b++)p[b+h]=arguments[b+2];return a(p,m-v+_),y}})})),Fo=v(((e,t)=>{var n=$r();t.exports=function(e,t){for(var r=n(e),i=new t(r),a=0;a<r;a++)i[a]=e[r-a-1];return i}})),Io=v((()=>{var e=q(),t=Fo(),n=dr(),r=ka(),i=Array;e({target:`Array`,proto:!0},{toReversed:function(){return t(n(this),i)}}),r(`toReversed`)})),Lo=v(((e,t)=>{var n=$r();t.exports=function(e,t,r){for(var i=0,a=arguments.length>2?r:n(t),o=new e(a);a>i;)o[i]=t[i++];return o}})),Ro=v(((e,t)=>{var n=V();t.exports=function(e,t){var r=n[e],i=r&&r.prototype;return i&&i[t]}})),zo=v((()=>{var e=q(),t=G(),n=Sr(),r=dr(),i=Lo(),a=Ro(),o=ka(),s=Array,c=t(a(`Array`,`sort`));e({target:`Array`,proto:!0},{toSorted:function(e){return e!==void 0&&n(e),c(i(s,r(this)),e)}}),o(`toSorted`)})),Bo=v((()=>{var e=q(),t=ka(),n=ja(),r=$r(),i=Zr(),a=dr(),o=Xr(),s=Array,c=Math.max,l=Math.min;e({target:`Array`,proto:!0},{toSpliced:function(e,t){var u=a(this),d=r(u),f=i(e,d),p=arguments.length,m=0,h,g,_,v;for(p===0?h=g=0:p===1?(h=0,g=d-f):(h=p-2,g=l(c(o(t),0),d-f)),_=n(d+h-g),v=s(_);m<f;m++)v[m]=u[m];for(;m<f+h;m++)v[m]=arguments[m-f+2];for(;m<_;m++)v[m]=u[m+g-h];return v}}),t(`toSpliced`)})),Vo=v((()=>{ka()(`flat`)})),Ho=v((()=>{ka()(`flatMap`)})),Uo=v((()=>{var e=q(),t=kr(),n=$r(),r=_o(),i=Fa(),a=ja();e({target:`Array`,proto:!0,arity:1,forced:[].unshift(0)!==1||!function(){try{Object.defineProperty([],`length`,{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}()},{unshift:function(e){var o=t(this),s=n(o),c=arguments.length;if(c){a(s+c);for(var l=s;l--;){var u=l+c;l in o?o[u]=o[l]:i(o,u)}for(var d=0;d<c;d++)o[d]=arguments[d]}return r(o,s+c)}})})),Wo=v(((e,t)=>{var n=$r(),r=Xr(),i=RangeError;t.exports=function(e,t,a,o){var s=n(e),c=r(a),l=c<0?s+c:c;if(l>=s||l<0)throw new i(`Incorrect index`);for(var u=new t(s),d=0;d<s;d++)u[d]=d===l?o:e[d];return u}})),Go=v((()=>{var e=q(),t=Wo(),n=dr(),r=Array;e({target:`Array`,proto:!0,forced:(function(){try{[].with({valueOf:function(){throw 4}},null)}catch(e){return e!==4}})()},{with:function(e,i){return t(n(this),r,e,i)}})})),Ko=v(((e,t)=>{t.exports=typeof ArrayBuffer<`u`&&typeof DataView<`u`})),qo=v(((e,t)=>{var n=Jr();t.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}})),Jo=v(((e,t)=>{var n=hr(),r=TypeError;t.exports=function(e,t){if(n(t,e))return e;throw new r(`Incorrect invocation`)}})),Yo=v(((e,t)=>{var n=Xr(),r=Qr(),i=RangeError;t.exports=function(e){if(e===void 0)return 0;var t=n(e),a=r(t);if(t!==a)throw new i(`Wrong length or index`);return a}})),Xo=v(((e,t)=>{t.exports=Math.sign||function(e){var t=+e;return t===0||t!==t?t:t<0?-1:1}})),Zo=v(((e,t)=>{var n=1/2220446049250313e-31;t.exports=function(e){return e+n-n}})),Qo=v(((e,t)=>{var n=Xo(),r=Zo(),i=Math.abs,a=2220446049250313e-31;t.exports=function(e,t,o,s){var c=+e,l=i(c),u=n(c);if(l<s)return u*r(l/s/t)*s*t;var d=(1+t/a)*l,f=d-(d-l);return f>o||f!==f?u*(1/0):u*f}})),$o=v(((e,t)=>{var n=Qo(),r=1.1920928955078125e-7,i=34028234663852886e22,a=11754943508222875e-54;t.exports=Math.fround||function(e){return n(e,r,i,a)}})),es=v(((e,t)=>{var n=Array,r=Math.abs,i=Math.pow,a=Math.floor,o=Math.log,s=Math.LN2;t.exports={pack:function(e,t,c){var l=n(c),u=c*8-t-1,d=(1<<u)-1,f=d>>1,p=t===23?i(2,-24)-i(2,-77):0,m=e<0||e===0&&1/e<0?1:0,h=0,g,_,v;for(e=r(e),e!==e||e===1/0?(_=e===e?0:1,g=d):(g=a(o(e)/s),v=i(2,-g),e*v<1&&(g--,v*=2),g+f>=1?e+=p/v:e+=p*i(2,1-f),e*v>=2&&(g++,v/=2),g+f>=d?(_=0,g=d):g+f>=1?(_=(e*v-1)*i(2,t),g+=f):(_=e*i(2,f-1)*i(2,t),g=0));t>=8;)l[h++]=_&255,_/=256,t-=8;for(g=g<<t|_,u+=t;u>0;)l[h++]=g&255,g/=256,u-=8;return l[h-1]|=m*128,l},unpack:function(e,t){var n=e.length,r=n*8-t-1,a=(1<<r)-1,o=a>>1,s=r-7,c=n-1,l=e[c--],u=l&127,d;for(l>>=7;s>0;)u=u*256+e[c--],s-=8;for(d=u&(1<<-s)-1,u>>=-s,s+=t;s>0;)d=d*256+e[c--],s-=8;if(u===0)u=1-o;else if(u===a)return d?NaN:l?-1/0:1/0;else d+=i(2,t),u-=o;return(l?-1:1)*d*i(2,u-t)}}})),ts=v(((e,t)=>{var n=V(),r=G(),i=U(),a=Ko(),o=Vr(),s=Br(),c=_i(),l=qo(),u=H(),d=Jo(),f=Xr(),p=Qr(),m=Yo(),h=$o(),g=es(),_=va(),v=ia(),y=Ba(),b=hi(),x=oa(),S=oi(),C=Si(),w=Kr(),T=o.PROPER,E=o.CONFIGURABLE,D=`ArrayBuffer`,O=`DataView`,k=`prototype`,A=`Wrong length`,j=`Wrong index`,M=w.getterFor(D),N=w.getterFor(O),P=w.set,F=n[D],I=F,L=I&&I[k],ee=n[O],te=ee&&ee[k],R=Object.prototype,ne=n.Array,z=n.RangeError,re=r(y),ie=r([].reverse),ae=g.pack,oe=g.unpack,se=function(e){return[e&255]},ce=function(e){return[e&255,e>>8&255]},le=function(e){return[e&255,e>>8&255,e>>16&255,e>>24&255]},ue=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},de=function(e){return ae(h(e),23,4)},fe=function(e){return ae(e,52,8)},pe=function(e,t,n){c(e[k],t,{configurable:!0,get:function(){return n(this)[t]}})},me=function(e,t,n,r){var i=N(e),a=m(n),o=!!r;if(a+t>i.byteLength)throw new z(j);var s=i.bytes,c=a+i.byteOffset,l=b(s,c,c+t);return o?l:ie(l)},he=function(e,t,n,r,i,a){var o=N(e),s=m(n),c=r(+i),l=!!a;if(s+t>o.byteLength)throw new z(j);for(var u=o.bytes,d=s+o.byteOffset,f=0;f<t;f++)u[d+f]=c[l?f:t-f-1]};if(!a)I=function(e){d(this,L);var t=m(e);P(this,{type:D,bytes:re(ne(t),0),byteLength:t}),i||(this.byteLength=t,this.detached=!1)},L=I[k],ee=function(e,t,n){d(this,te),d(e,L);var r=M(e),a=r.byteLength,o=f(t);if(o<0||o>a)throw new z(`Wrong offset`);if(n=n===void 0?a-o:p(n),o+n>a)throw new z(A);P(this,{type:O,buffer:e,byteLength:n,byteOffset:o,bytes:r.bytes}),i||(this.buffer=e,this.byteLength=n,this.byteOffset=o)},te=ee[k],i&&(pe(I,`byteLength`,M),pe(ee,`buffer`,N),pe(ee,`byteLength`,N),pe(ee,`byteOffset`,N)),l(te,{getInt8:function(e){return me(this,1,e)[0]<<24>>24},getUint8:function(e){return me(this,1,e)[0]},getInt16:function(e){var t=me(this,2,e,arguments.length>1?arguments[1]:!1);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=me(this,2,e,arguments.length>1?arguments[1]:!1);return t[1]<<8|t[0]},getInt32:function(e){return ue(me(this,4,e,arguments.length>1?arguments[1]:!1))},getUint32:function(e){return ue(me(this,4,e,arguments.length>1?arguments[1]:!1))>>>0},getFloat32:function(e){return oe(me(this,4,e,arguments.length>1?arguments[1]:!1),23)},getFloat64:function(e){return oe(me(this,8,e,arguments.length>1?arguments[1]:!1),52)},setInt8:function(e,t){he(this,1,e,se,t)},setUint8:function(e,t){he(this,1,e,se,t)},setInt16:function(e,t){he(this,2,e,ce,t,arguments.length>2?arguments[2]:!1)},setUint16:function(e,t){he(this,2,e,ce,t,arguments.length>2?arguments[2]:!1)},setInt32:function(e,t){he(this,4,e,le,t,arguments.length>2?arguments[2]:!1)},setUint32:function(e,t){he(this,4,e,le,t,arguments.length>2?arguments[2]:!1)},setFloat32:function(e,t){he(this,4,e,de,t,arguments.length>2?arguments[2]:!1)},setFloat64:function(e,t){he(this,8,e,fe,t,arguments.length>2?arguments[2]:!1)}});else{var ge=T&&F.name!==D;!u(function(){F(1)})||!u(function(){new F(-1)})||u(function(){return new F,new F(1.5),new F(NaN),F.length!==1||ge&&!E})?(I=function(e){return d(this,L),x(new F(m(e)),this,I)},I[k]=L,L.constructor=I,S(I,F)):ge&&E&&s(F,`name`,D),v&&_(te)!==R&&v(te,R);var _e=new ee(new I(2)),ve=r(te.setInt8);_e.setInt8(0,2147483648),_e.setInt8(1,2147483649),(_e.getInt8(0)||!_e.getInt8(1))&&l(te,{setInt8:function(e,t){ve(this,e,t<<24>>24)},setUint8:function(e,t){ve(this,e,t<<24>>24)}},{unsafe:!0})}C(I,D),C(ee,O),t.exports={ArrayBuffer:I,DataView:ee}})),ns=v((()=>{var e=q(),t=V(),n=ts(),r=Mo(),i=`ArrayBuffer`,a=n[i],o=t[i];e({global:!0,constructor:!0,forced:o!==a},{ArrayBuffer:a}),r(i)})),rs=v(((e,t)=>{var n=Ko(),r=U(),i=V(),a=fr(),o=pr(),s=Ar(),c=li(),l=xr(),u=Br(),d=Jr(),f=_i(),p=hr(),m=va(),h=ia(),g=Mr(),_=jr(),v=Kr(),y=v.enforce,b=v.get,x=i.Int8Array,S=x&&x.prototype,C=i.Uint8ClampedArray,w=C&&C.prototype,T=x&&m(x),E=S&&m(S),D=Object.prototype,O=i.TypeError,k=g(`toStringTag`),A=_(`TYPED_ARRAY_TAG`),j=`TypedArrayConstructor`,M=n&&!!h&&c(i.opera)!==`Opera`,N=!1,P,F,I,L={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},ee={BigInt64Array:8,BigUint64Array:8},te=function(e){if(!o(e))return!1;var t=c(e);return t===`DataView`||s(L,t)||s(ee,t)},R=function(e){var t=m(e);if(o(t)){var n=b(t);return n&&s(n,j)?n[j]:R(t)}},ne=function(e){if(!o(e))return!1;var t=c(e);return s(L,t)||s(ee,t)},z=function(e){if(ne(e))return e;throw new O(`Target is not a typed array`)},re=function(e){if(a(e)&&(!h||p(T,e)))return e;throw new O(l(e)+` is not a typed array constructor`)},ie=function(e,t,n,a){if(r){if(n)for(var o in L){var c=i[o];if(c&&s(c.prototype,e))try{delete c.prototype[e]}catch{try{c.prototype[e]=t}catch{}}}(!E[e]||n)&&d(E,e,n?t:M&&S[e]||t,a)}},ae=function(e,t,n){var a,o;if(r){if(h){if(n){for(a in L)if(o=i[a],o&&s(o,e))try{delete o[e]}catch{}}if(!T[e]||n)try{return d(T,e,n?t:M&&T[e]||t)}catch{}else return}for(a in L)o=i[a],o&&(!o[e]||n)&&d(o,e,t)}};for(P in L)F=i[P],I=F&&F.prototype,I?y(I)[j]=F:M=!1;for(P in ee)F=i[P],I=F&&F.prototype,I&&(y(I)[j]=F);if((!M||!a(T)||T===Function.prototype)&&(T=function(){throw new O(`Incorrect invocation`)},M))for(P in L)i[P]&&h(i[P],T);if((!M||!E||E===D)&&(E=T.prototype,M))for(P in L)i[P]&&h(i[P].prototype,E);if(M&&m(w)!==E&&h(w,E),r&&!s(E,k))for(P in N=!0,f(E,k,{configurable:!0,get:function(){return o(this)?this[A]:void 0}}),L)i[P]&&u(i[P],A,P);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_TAG:N&&A,aTypedArray:z,aTypedArrayConstructor:re,exportTypedArrayMethod:ie,exportTypedArrayStaticMethod:ae,getTypedArrayConstructor:R,isView:te,isTypedArray:ne,TypedArray:T,TypedArrayPrototype:E}})),is=v((()=>{var e=q(),t=rs(),n=t.NATIVE_ARRAY_BUFFER_VIEWS;e({target:`ArrayBuffer`,stat:!0,forced:!n},{isView:t.isView})})),as=v((()=>{var e=q(),t=Ci(),n=H(),r=ts(),i=K(),a=Zr(),o=Qr(),s=r.ArrayBuffer,c=r.DataView,l=c.prototype,u=t(s.prototype.slice),d=t(l.getUint8),f=t(l.setUint8);e({target:`ArrayBuffer`,proto:!0,unsafe:!0,forced:n(function(){return!new s(2).slice(1,void 0).byteLength})},{slice:function(e,t){if(u&&t===void 0)return u(i(this),e);for(var n=i(this).byteLength,r=a(e,n),l=a(t===void 0?n:t,n),p=new s(o(l-r)),m=new c(this),h=new c(p),g=0;r<l;)f(h,g++,d(m,r++));return p}})})),os=v((()=>{var e=q(),t=ts();e({global:!0,constructor:!0,forced:!Ko()},{DataView:t.DataView})})),ss=v((()=>{os()})),cs=v((()=>{var e=q(),t=G(),n=Math.pow,r=31,i=1023,a=n(2,-24),o=.0009765625,s=function(e){var t=e>>>15,s=e>>>10&r,c=e&i;return s===r?c===0?t===0?1/0:-1/0:NaN:s===0?c*(t===0?a:-a):n(2,s-15)*(t===0?1+c*o:-1-c*o)},c=t(DataView.prototype.getUint16);e({target:`DataView`,proto:!0},{getFloat16:function(e){return s(c(this,e,arguments.length>1?arguments[1]:!1))}})})),ls=v(((e,t)=>{var n=li(),r=TypeError;t.exports=function(e){if(n(e)===`DataView`)return e;throw new r(`Argument is not a DataView`)}})),us=v(((e,t)=>{var n=Math.log,r=Math.LN2;t.exports=Math.log2||function(e){return n(e)/r}})),ds=v((()=>{var e=q(),t=G(),n=ls(),r=Yo(),i=us(),a=Zo(),o=Math.pow,s=65520,c=61005353927612305e-21,l=16777216,u=1024,d=function(e){if(e!==e)return 32256;if(e===0)return(1/e==-1/0)<<15;var t=e<0;if(t&&(e=-e),e>=s)return t<<15|31744;if(e<c)return t<<15|a(e*l);var n=i(e)|0;if(n===-15)return t<<15|u;var r=a((e*o(2,-n)-1)*u);return r===u?t<<15|n+16<<10:t<<15|n+15<<10|r},f=t(DataView.prototype.setUint16);e({target:`DataView`,proto:!0},{setFloat16:function(e,t){f(n(this),r(e),d(+t),arguments.length>2?arguments[2]:!1)}})})),fs=v(((e,t)=>{var n=V(),r=ta(),i=sr(),a=n.ArrayBuffer,o=n.TypeError;t.exports=a&&r(a.prototype,`byteLength`,`get`)||function(e){if(i(e)!==`ArrayBuffer`)throw new o(`ArrayBuffer expected`);return e.byteLength}})),ps=v(((e,t)=>{var n=V(),r=Ko(),i=fs(),a=n.DataView;t.exports=function(e){if(!r||i(e)!==0)return!1;try{return new a(e),!1}catch{return!0}}})),ms=v((()=>{var e=U(),t=_i(),n=ps(),r=ArrayBuffer.prototype;e&&!(`detached`in r)&&t(r,`detached`,{configurable:!0,get:function(){return n(this)}})})),hs=v(((e,t)=>{var n=ps(),r=TypeError;t.exports=function(e){if(n(e))throw new r(`ArrayBuffer is detached`);return e}})),gs=v(((e,t)=>{var n=V(),r=xo();t.exports=function(e){if(r){try{return n.process.getBuiltinModule(e)}catch{}try{return Function(`return require("`+e+`")`)()}catch{}}}})),_s=v(((e,t)=>{var n=V(),r=H(),i=_r(),a=bo(),o=n.structuredClone;t.exports=!!o&&!r(function(){if(a===`DENO`&&i>92||a===`NODE`&&i>94||a===`BROWSER`&&i>97)return!1;var e=new ArrayBuffer(8),t=o(e,{transfer:[e]});return e.byteLength!==0||t.byteLength!==8})})),vs=v(((e,t)=>{var n=V(),r=gs(),i=_s(),a=n.structuredClone,o=n.ArrayBuffer,s=n.MessageChannel,c=!1,l,u,d,f;if(i)c=function(e){a(e,{transfer:[e]})};else if(o)try{s||(l=r(`worker_threads`),l&&(s=l.MessageChannel)),s&&(u=new s,d=new o(2),f=function(e){u.port1.postMessage(null,[e])},d.byteLength===2&&(f(d),d.byteLength===0&&(c=f)))}catch{}t.exports=c})),ys=v(((e,t)=>{var n=V(),r=G(),i=ta(),a=Yo(),o=hs(),s=fs(),c=vs(),l=_s(),u=n.structuredClone,d=n.ArrayBuffer,f=n.DataView,p=Math.min,m=d.prototype,h=f.prototype,g=r(m.slice),_=i(m,`resizable`,`get`),v=i(m,`maxByteLength`,`get`),y=r(h.getInt8),b=r(h.setInt8);t.exports=(l||c)&&function(e,t,n){var r=s(e),i=t===void 0?r:a(t),m=!_||!_(e),h;if(o(e),l&&(e=u(e,{transfer:[e]}),r===i&&(n||m)))return e;if(r>=i&&(!n||m))h=g(e,0,i);else{h=new d(i,n&&!m&&v?{maxByteLength:v(e)}:void 0);for(var x=new f(e),S=new f(h),C=p(i,r),w=0;w<C;w++)b(S,w,y(x,w))}return l||c(e),h}})),bs=v((()=>{var e=q(),t=ys();t&&e({target:`ArrayBuffer`,proto:!0},{transfer:function(){return t(this,arguments.length?arguments[0]:void 0,!0)}})})),xs=v((()=>{var e=q(),t=ys();t&&e({target:`ArrayBuffer`,proto:!0},{transferToFixedLength:function(){return t(this,arguments.length?arguments[0]:void 0,!1)}})})),Ss=v((()=>{var e=q(),t=G(),n=H()(function(){return new Date(16e11).getYear()!==120}),r=t(Date.prototype.getFullYear);e({target:`Date`,proto:!0,forced:n},{getYear:function(){return r(this)-1900}})})),Cs=v((()=>{var e=q(),t=G(),n=Date,r=t(n.prototype.getTime);e({target:`Date`,stat:!0},{now:function(){return r(new n)}})})),ws=v((()=>{var e=q(),t=G(),n=Xr(),r=Date.prototype,i=t(r.getTime),a=t(r.setFullYear);e({target:`Date`,proto:!0},{setYear:function(e){i(this);var t=n(e),r=t>=0&&t<=99?t+1900:t;return a(this,r)}})})),Ts=v((()=>{q()({target:`Date`,proto:!0},{toGMTString:Date.prototype.toUTCString})})),Es=v(((e,t)=>{var n=Xr(),r=ui(),i=ur(),a=RangeError;t.exports=function(e){var t=r(i(this)),o=``,s=n(e);if(s<0||s===1/0)throw new a(`Wrong number of repetitions`);for(;s>0;(s>>>=1)&&(t+=t))s&1&&(o+=t);return o}})),Ds=v(((e,t)=>{var n=G(),r=Qr(),i=ui(),a=Es(),o=ur(),s=n(a),c=n(``.slice),l=Math.ceil,u=function(e){return function(t,n,a){var u=i(o(t)),d=r(n),f=u.length,p=a===void 0?` `:i(a),m,h;return d<=f||p===``?u:(m=d-f,h=s(p,l(m/p.length)),h.length>m&&(h=c(h,0,m)),e?u+h:h+u)}};t.exports={start:u(!1),end:u(!0)}})),Os=v(((e,t)=>{var n=G(),r=H(),i=Ds().start,a=RangeError,o=isFinite,s=Math.abs,c=Date.prototype,l=c.toISOString,u=n(c.getTime),d=n(c.getUTCDate),f=n(c.getUTCFullYear),p=n(c.getUTCHours),m=n(c.getUTCMilliseconds),h=n(c.getUTCMinutes),g=n(c.getUTCMonth),_=n(c.getUTCSeconds);t.exports=r(function(){return l.call(new Date(-50000000000001))!==`0385-07-25T07:06:39.999Z`})||!r(function(){l.call(new Date(NaN))})?function(){if(!o(u(this)))throw new a(`Invalid time value`);var e=this,t=f(e),n=m(e),r=t<0?`-`:t>9999?`+`:``;return r+i(s(t),r?6:4,0)+`-`+i(g(e)+1,2,0)+`-`+i(d(e),2,0)+`T`+i(p(e),2,0)+`:`+i(h(e),2,0)+`:`+i(_(e),2,0)+`.`+i(n,3,0)+`Z`}:l})),ks=v((()=>{var e=q(),t=Os();e({target:`Date`,proto:!0,forced:Date.prototype.toISOString!==t},{toISOString:t})})),As=v((()=>{var e=q(),t=H(),n=kr(),r=Nr();e({target:`Date`,proto:!0,arity:1,forced:t(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){return 1}})!==1})},{toJSON:function(e){var t=n(this),i=r(t,`number`);return typeof i==`number`&&!isFinite(i)?null:t.toISOString()}})})),js=v(((e,t)=>{var n=K(),r=wr(),i=TypeError;t.exports=function(e){if(n(this),e===`string`||e===`default`)e=`string`;else if(e!==`number`)throw new i(`Incorrect hint`);return r(this,e)}})),Ms=v((()=>{var e=Ar(),t=Jr(),n=js(),r=Mr()(`toPrimitive`),i=Date.prototype;e(i,r)||t(i,r,n)})),Ns=v((()=>{var e=G(),t=Jr(),n=Date.prototype,r=`Invalid Date`,i=`toString`,a=e(n[i]),o=e(n.getTime);String(new Date(NaN))!==r&&t(n,i,function(){var e=o(this);return e===e?a(this):r})})),Ps=v(((e,t)=>{var n=mr(),r=W(),i=G(),a=wi(),o=K(),s=Sr(),c=lr(),l=Cr(),u=Mr(),d=u(`asyncDispose`),f=u(`dispose`),p=i([].push),m=function(e,t){if(t===`async-dispose`){var i=l(e,d);return i!==void 0||(i=l(e,f),i===void 0)?i:function(){var e=this;return new(n(`Promise`))(function(t){r(i,e),t(void 0)})}}return l(e,f)},h=function(e,t,n){return arguments.length<3&&!c(e)&&(n=s(m(o(e),t))),n===void 0?function(){}:a(n,e)};t.exports=function(e,t,n,r){var i;if(arguments.length<4){if(c(t)&&n===`sync-dispose`)return;i=h(t,n)}else i=h(void 0,n,r);p(e.stack,i)}})),Fs=v((()=>{var e=q(),t=U(),n=mr(),r=Sr(),i=Jo(),a=Jr(),o=qo(),s=_i(),c=Mr(),l=Kr(),u=Ps(),d=n(`SuppressedError`),f=ReferenceError,p=c(`dispose`),m=c(`toStringTag`),h=`DisposableStack`,g=l.set,_=l.getterFor(h),v=`sync-dispose`,y=`disposed`,b=`pending`,x=function(e){var t=_(e);if(t.state===y)throw new f(h+` already disposed`);return t},S=function(){g(i(this,C),{type:h,state:b,stack:[]}),t||(this.disposed=!1)},C=S.prototype;o(C,{dispose:function(){var e=_(this);if(e.state!==y){e.state=y,t||(this.disposed=!0);for(var n=e.stack,r=n.length,i=!1,a;r;){var o=n[--r];n[r]=null;try{o()}catch(e){i?a=new d(e,a):(i=!0,a=e)}}if(e.stack=null,i)throw a}},use:function(e){return u(x(this),e,v),e},adopt:function(e,t){var n=x(this);return r(t),u(n,void 0,v,function(){t(e)}),e},defer:function(e){var t=x(this);r(e),u(t,void 0,v,e)},move:function(){var e=x(this),n=new S;return _(n).stack=e.stack,e.stack=[],e.state=y,t||(this.disposed=!0),n}}),t&&s(C,`disposed`,{configurable:!0,get:function(){return _(this).state===y}}),a(C,p,C.dispose,{name:`dispose`}),a(C,m,h,{nonWritable:!0}),e({global:!0,constructor:!0},{DisposableStack:S})})),Is=v((()=>{var e=q(),t=G(),n=ui(),r=t(``.charAt),i=t(``.charCodeAt),a=t(/./.exec),o=t(1.1.toString),s=t(``.toUpperCase),c=/[\w*+\-./@]/,l=function(e,t){for(var n=o(e,16);n.length<t;)n=`0`+n;return n};e({global:!0},{escape:function(e){for(var t=n(e),o=``,u=t.length,d=0,f,p;d<u;)f=r(t,d++),a(c,f)?o+=f:(p=i(f,0),p<256?o+=`%`+l(p,2):o+=`%u`+s(l(p,4)));return o}})})),Ls=v(((e,t)=>{var n=G(),r=Sr(),i=pr(),a=Ar(),o=hi(),s=ir(),c=Function,l=n([].concat),u=n([].join),d={},f=function(e,t,n){if(!a(d,t)){for(var r=[],i=0;i<t;i++)r[i]=`a[`+i+`]`;d[t]=c(`C,a`,`return new C(`+u(r,`,`)+`)`)}return d[t](e,n)};t.exports=s?c.bind:function(e){var t=r(this),n=t.prototype,a=o(arguments,1),s=function(){var n=l(a,o(arguments));return this instanceof s?f(t,n.length,n):t.apply(e,n)};return i(n)&&(s.prototype=n),s}})),Rs=v((()=>{var e=q(),t=Ls();e({target:`Function`,proto:!0,forced:Function.bind!==t},{bind:t})})),zs=v((()=>{var e=fr(),t=pr(),n=zr(),r=hr(),i=Mr(),a=qr(),o=i(`hasInstance`),s=Function.prototype;o in s||n.f(s,o,{value:a(function(n){if(!e(this)||!t(n))return!1;var i=this.prototype;return t(i)?r(i,n):n instanceof this},o)})})),Bs=v((()=>{var e=U(),t=Vr().EXISTS,n=G(),r=_i(),i=Function.prototype,a=n(i.toString),o=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,s=n(o.exec);e&&!t&&r(i,`name`,{configurable:!0,get:function(){try{return s(o,a(this))[1]}catch{return``}}})})),Vs=v((()=>{var e=q(),t=V();e({global:!0,forced:t.globalThis!==t},{globalThis:t})})),Hs=v((()=>{var e=q(),t=V(),n=Jo(),r=K(),i=fr(),a=va(),o=_i(),s=Ma(),c=H(),l=Ar(),u=Mr(),d=oo().IteratorPrototype,f=U(),p=Tr(),m=`constructor`,h=`Iterator`,g=u(`toStringTag`),_=TypeError,v=t[h],y=p||!i(v)||v.prototype!==d||!c(function(){v({})}),b=function(){if(n(this,d),a(this)===d)throw new _(`Abstract class Iterator not directly constructable`)},x=function(e,t){f?o(d,e,{configurable:!0,get:function(){return t},set:function(t){if(r(this),this===d)throw new _(`You can't redefine this property`);l(this,e)?this[e]=t:s(this,e,t)}}):d[e]=t};l(d,g)||x(g,h),(y||!l(d,m)||d[m]===Object)&&x(m,b),b.prototype=d,e({global:!0,constructor:!0,forced:y},{Iterator:b})})),Us=v((()=>{var e=W(),t=Jr(),n=Cr(),r=Ar(),i=Mr(),a=oo().IteratorPrototype,o=i(`dispose`);r(a,o)||t(a,o,function(){var t=n(this,`return`);t&&e(t,this)})})),Ws=v(((e,t)=>{t.exports=function(e){return{iterator:e,next:e.next,done:!1}}})),Gs=v(((e,t)=>{var n=RangeError;t.exports=function(e){if(e===e)return e;throw new n(`NaN is not allowed`)}})),Ks=v(((e,t)=>{var n=Xr(),r=RangeError;t.exports=function(e){var t=n(e);if(t<0)throw new r(`The argument can't be less than 0`);return t}})),qs=v(((e,t)=>{var n=Ca();t.exports=function(e,t,r){for(var i=e.length-1;i>=0;i--)if(e[i]!==void 0)try{r=n(e[i].iterator,t,r)}catch(e){t=`throw`,r=e}if(t===`throw`)throw r;return r}})),Js=v(((e,t)=>{var n=W(),r=mi(),i=Br(),a=qo(),o=Mr(),s=Kr(),c=Cr(),l=oo().IteratorPrototype,u=lo(),d=Ca(),f=qs(),p=o(`toStringTag`),m=`IteratorHelper`,h=`WrapForValidIterator`,g=`normal`,_=`throw`,v=s.set,y=function(e){var t=s.getterFor(e?h:m);return a(r(l),{next:function(){var n=t(this);if(e)return n.nextHandler();if(n.done)return u(void 0,!0);try{var r=n.nextHandler();return n.returnHandlerResult?r:u(r,n.done)}catch(e){throw n.done=!0,e}},return:function(){var r=t(this),i=r.iterator;if(r.done=!0,e){var a=c(i,`return`);return a?n(a,i):u(void 0,!0)}if(r.inner)try{d(r.inner.iterator,g)}catch(e){return d(i,_,e)}if(r.openIters)try{f(r.openIters,g)}catch(e){return d(i,_,e)}return i&&d(i,g),u(void 0,!0)}})},b=y(!0),x=y(!1);i(x,p,`Iterator Helper`),t.exports=function(e,t,n){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?h:m,i.returnHandlerResult=!!n,i.nextHandler=e,i.counter=0,i.done=!1,v(this,i)};return r.prototype=t?b:x,r}})),Ys=v(((e,t)=>{t.exports=function(e,t){var n=typeof Iterator==`function`&&Iterator.prototype[e];if(n)try{n.call({next:null},t).next()}catch{return!0}}})),Xs=v(((e,t)=>{var n=V();t.exports=function(e,t){var r=n.Iterator,i=r&&r.prototype,a=i&&i[e],o=!1;if(a)try{a.call({next:function(){return{done:!0}},return:function(){o=!0}},-1)}catch(e){e instanceof t||(o=!1)}if(!o)return a}})),Zs=v((()=>{var e=q(),t=W(),n=K(),r=Ws(),i=Gs(),a=Ks(),o=Ca(),s=Js(),c=Ys(),l=Xs(),u=Tr(),d=!u&&!c(`drop`,0),f=!u&&!d&&l(`drop`,RangeError),p=u||d||f,m=s(function(){for(var e=this.iterator,r=this.next,i,a;this.remaining;)if(this.remaining--,i=n(t(r,e)),a=this.done=!!i.done,a)return;if(i=n(t(r,e)),a=this.done=!!i.done,!a)return i.value});e({target:`Iterator`,proto:!0,real:!0,forced:p},{drop:function(e){n(this);var s;try{s=a(i(+e))}catch(e){o(this,`throw`,e)}return f?t(f,this,s):new m(r(this),{remaining:s})}})})),Qs=v((()=>{var e=q(),t=W(),n=wa(),r=Sr(),i=K(),a=Ws(),o=Ca(),s=Xs()(`every`,TypeError);e({target:`Iterator`,proto:!0,real:!0,forced:s},{every:function(e){i(this);try{r(e)}catch(e){o(this,`throw`,e)}if(s)return t(s,this,e);var c=a(this),l=0;return!n(c,function(t,n){if(!e(t,l++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})})),$s=v((()=>{var e=q(),t=W(),n=Sr(),r=K(),i=Ws(),a=Js(),o=$a(),s=Tr(),c=Ca(),l=Ys(),u=Xs(),d=!s&&!l(`filter`,function(){}),f=!s&&!d&&u(`filter`,TypeError),p=s||d||f,m=a(function(){for(var e=this.iterator,n=this.predicate,i=this.next,a,s,c;;){if(a=r(t(i,e)),s=this.done=!!a.done,s)return;if(c=a.value,o(e,n,[c,this.counter++],!0))return c}});e({target:`Iterator`,proto:!0,real:!0,forced:p},{filter:function(e){r(this);try{n(e)}catch(e){c(this,`throw`,e)}return f?t(f,this,e):new m(i(this),{predicate:e})}})})),ec=v((()=>{var e=q(),t=W(),n=wa(),r=Sr(),i=K(),a=Ws(),o=Ca(),s=Xs()(`find`,TypeError);e({target:`Iterator`,proto:!0,real:!0,forced:s},{find:function(e){i(this);try{r(e)}catch(e){o(this,`throw`,e)}if(s)return t(s,this,e);var c=a(this),l=0;return n(c,function(t,n){if(e(t,l++))return n(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})})),tc=v(((e,t)=>{var n=W(),r=K(),i=Ws(),a=xa();t.exports=function(e,t){(!t||typeof e!=`string`)&&r(e);var o=a(e);return i(r(o===void 0?e:n(o,e)))}})),nc=v((()=>{var e=q(),t=W(),n=Sr(),r=K(),i=Ws(),a=tc(),o=Js(),s=Ca(),c=Tr(),l=Ys(),u=Xs(),d=!c&&!l(`flatMap`,function(){}),f=!c&&!d&&u(`flatMap`,TypeError),p=c||d||f,m=o(function(){for(var e=this.iterator,n=this.mapper,i,o;;){if(o=this.inner)try{if(i=r(t(o.next,o.iterator)),!i.done)return i.value;this.inner=null}catch(t){s(e,`throw`,t)}if(i=r(t(this.next,e)),this.done=!!i.done)return;try{this.inner=a(n(i.value,this.counter++),!1)}catch(t){s(e,`throw`,t)}}});e({target:`Iterator`,proto:!0,real:!0,forced:p},{flatMap:function(e){r(this);try{n(e)}catch(e){s(this,`throw`,e)}return f?t(f,this,e):new m(i(this),{mapper:e,inner:null})}})})),rc=v((()=>{var e=q(),t=W(),n=wa(),r=Sr(),i=K(),a=Ws(),o=Ca(),s=Xs()(`forEach`,TypeError);e({target:`Iterator`,proto:!0,real:!0,forced:s},{forEach:function(e){i(this);try{r(e)}catch(e){o(this,`throw`,e)}if(s)return t(s,this,e);var c=a(this),l=0;n(c,function(t){e(t,l++)},{IS_RECORD:!0})}})})),ic=v((()=>{var e=q(),t=W(),n=kr(),r=hr(),i=oo().IteratorPrototype,a=Js(),o=tc(),s=Tr()||function(){try{Iterator.from({return:null}).return()}catch{return!0}}(),c=a(function(){return t(this.next,this.iterator)},!0);e({target:`Iterator`,stat:!0,forced:s},{from:function(e){var t=o(typeof e==`string`?n(e):e,!0);return r(i,t.iterator)?t.iterator:new c(t)}})})),ac=v((()=>{var e=q(),t=W(),n=Sr(),r=K(),i=Ws(),a=Js(),o=$a(),s=Ca(),c=Ys(),l=Xs(),u=Tr(),d=!u&&!c(`map`,function(){}),f=!u&&!d&&l(`map`,TypeError),p=u||d||f,m=a(function(){var e=this.iterator,n=r(t(this.next,e));if(!(this.done=!!n.done))return o(e,this.mapper,[n.value,this.counter++],!0)});e({target:`Iterator`,proto:!0,real:!0,forced:p},{map:function(e){r(this);try{n(e)}catch(e){s(this,`throw`,e)}return f?t(f,this,e):new m(i(this),{mapper:e})}})})),oc=v((()=>{var e=q(),t=wa(),n=Sr(),r=K(),i=Ws(),a=Ca(),o=Xs(),s=Pi(),c=H(),l=TypeError,u=c(function(){[].keys().reduce(function(){},void 0)}),d=!u&&o(`reduce`,l);e({target:`Iterator`,proto:!0,real:!0,forced:u||d},{reduce:function(e){r(this);try{n(e)}catch(e){a(this,`throw`,e)}var o=arguments.length<2,c=o?void 0:arguments[1];if(d)return s(d,this,o?[e]:[e,c]);var u=i(this),f=0;if(t(u,function(t){o?(o=!1,c=t):c=e(c,t,f),f++},{IS_RECORD:!0}),o)throw new l(`Reduce of empty iterator with no initial value`);return c}})})),sc=v((()=>{var e=q(),t=W(),n=wa(),r=Sr(),i=K(),a=Ws(),o=Ca(),s=Xs()(`some`,TypeError);e({target:`Iterator`,proto:!0,real:!0,forced:s},{some:function(e){i(this);try{r(e)}catch(e){o(this,`throw`,e)}if(s)return t(s,this,e);var c=a(this),l=0;return n(c,function(t,n){if(e(t,l++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})})),cc=v((()=>{var e=q(),t=W(),n=K(),r=Ws(),i=Gs(),a=Ks(),o=Js(),s=Ca(),c=Xs(),l=Tr(),u=!l&&c(`take`,RangeError),d=o(function(){var e=this.iterator;if(!this.remaining--)return this.done=!0,s(e,`normal`,void 0);var r=n(t(this.next,e));if(!(this.done=!!r.done))return r.value});e({target:`Iterator`,proto:!0,real:!0,forced:l||u},{take:function(e){n(this);var o;try{o=a(i(+e))}catch(e){s(this,`throw`,e)}return u?t(u,this,o):new d(r(this),{remaining:o})}})})),lc=v((()=>{var e=q(),t=K(),n=wa(),r=Ws(),i=[].push;e({target:`Iterator`,proto:!0,real:!0},{toArray:function(){var e=[];return n(r(t(this)),i,{that:e,IS_RECORD:!0}),e}})})),uc=v((()=>{var e=V();Si()(e.JSON,`JSON`,!0)})),dc=v(((e,t)=>{t.exports=H()(function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,`a`,{value:8})}})})),fc=v(((e,t)=>{var n=H(),r=pr(),i=sr(),a=dc(),o=Object.isExtensible;t.exports=n(function(){o(1)})||a?function(e){return!r(e)||a&&i(e)===`ArrayBuffer`?!1:o?o(e):!0}:o})),pc=v(((e,t)=>{t.exports=!H()(function(){return Object.isExtensible(Object.preventExtensions({}))})})),mc=v(((e,t)=>{var n=q(),r=G(),i=Gr(),a=pr(),o=Ar(),s=zr().f,c=ri(),l=gi(),u=fc(),d=jr(),f=pc(),p=!1,m=d(`meta`),h=0,g=function(e){s(e,m,{value:{objectID:`O`+ h++,weakData:{}}})},_=t.exports={enable:function(){_.enable=function(){},p=!0;var e=c.f,t=r([].splice),i={};i[m]=1,e(i).length&&(c.f=function(n){for(var r=e(n),i=0,a=r.length;i<a;i++)if(r[i]===m){t(r,i,1);break}return r},n({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(e,t){if(!a(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!o(e,m)){if(!u(e))return`F`;if(!t)return`E`;g(e)}return e[m].objectID},getWeakData:function(e,t){if(!o(e,m)){if(!u(e))return!0;if(!t)return!1;g(e)}return e[m].weakData},onFreeze:function(e){return f&&p&&u(e)&&!o(e,m)&&g(e),e}};i[m]=!0})),hc=v(((e,t)=>{var n=q(),r=V(),i=G(),a=si(),o=Jr(),s=mc(),c=wa(),l=Jo(),u=fr(),d=lr(),f=pr(),p=H(),m=to(),h=Si(),g=oa();t.exports=function(e,t,_){var v=e.indexOf(`Map`)!==-1,y=e.indexOf(`Weak`)!==-1,b=v?`set`:`add`,x=r[e],S=x&&x.prototype,C=x,w={},T=function(e){var t=i(S[e]);o(S,e,e===`add`?function(e){return t(this,e===0?0:e),this}:e===`delete`?function(e){return y&&!f(e)?!1:t(this,e===0?0:e)}:e===`get`?function(e){return y&&!f(e)?void 0:t(this,e===0?0:e)}:e===`has`?function(e){return y&&!f(e)?!1:t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(a(e,!u(x)||!(y||S.forEach&&!p(function(){new x().entries().next()}))))C=_.getConstructor(t,e,v,b),s.enable();else if(a(e,!0)){var E=new C,D=E[b](y?{}:-0,1)!==E,O=p(function(){E.has(1)}),k=m(function(e){new x(e)}),A=!y&&p(function(){for(var e=new x,t=5;t--;)e[b](t,t);return!e.has(-0)});k||(C=t(function(e,t){l(e,S);var n=g(new x,e,C);return d(t)||c(t,n[b],{that:n,AS_ENTRIES:v}),n}),C.prototype=S,S.constructor=C),(O||A)&&(T(`delete`),T(`has`),v&&T(`get`)),(A||D)&&T(b),y&&S.clear&&delete S.clear}return w[e]=C,n({global:!0,constructor:!0,forced:C!==x},w),h(C,e),y||_.setStrong(C,e,v),C}})),gc=v(((e,t)=>{var n=mi(),r=_i(),i=qo(),a=wi(),o=Jo(),s=lr(),c=wa(),l=co(),u=lo(),d=Mo(),f=U(),p=mc().fastKey,m=Kr(),h=m.set,g=m.getterFor;t.exports={getConstructor:function(e,t,l,u){var d=e(function(e,r){o(e,m),h(e,{type:t,index:n(null),first:null,last:null,size:0}),f||(e.size=0),s(r)||c(r,e[u],{that:e,AS_ENTRIES:l})}),m=d.prototype,_=g(t),v=function(e,t,n){var r=_(e),i=y(e,t),a,o;return i?i.value=n:(r.last=i={index:o=p(t,!0),key:t,value:n,previous:a=r.last,next:null,removed:!1},r.first||=i,a&&(a.next=i),f?r.size++:e.size++,o!==`F`&&(r.index[o]=i)),e},y=function(e,t){var n=_(e),r=p(t),i;if(r!==`F`)return n.index[r];for(i=n.first;i;i=i.next)if(i.key===t)return i};return i(m,{clear:function(){for(var e=this,t=_(e),r=t.first;r;)r.removed=!0,r.previous&&=r.previous.next=null,r=r.next;t.first=t.last=null,t.index=n(null),f?t.size=0:e.size=0},delete:function(e){var t=this,n=_(t),r=y(t,e);if(r){var i=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=i),i&&(i.previous=a),n.first===r&&(n.first=i),n.last===r&&(n.last=a),f?n.size--:t.size--}return!!r},forEach:function(e){for(var t=_(this),n=a(e,arguments.length>1?arguments[1]:void 0),r;r=r?r.next:t.first;)for(n(r.value,r.key,this);r&&r.removed;)r=r.previous},has:function(e){return!!y(this,e)}}),i(m,l?{get:function(e){var t=y(this,e);return t&&t.value},set:function(e,t){return v(this,e===0?0:e,t)}}:{add:function(e){return v(this,e=e===0?0:e,e)}}),f&&r(m,`size`,{configurable:!0,get:function(){return _(this).size}}),d},setStrong:function(e,t,n){var r=t+` Iterator`,i=g(t),a=g(r);l(e,t,function(e,t){h(this,{type:r,target:e,state:i(e),kind:t,last:null})},function(){for(var e=a(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return!e.target||!(e.last=n=n?n.next:e.state.first)?(e.target=null,u(void 0,!0)):u(t===`keys`?n.key:t===`values`?n.value:[n.key,n.value],!1)},n?`entries`:`values`,!n,!0),d(t)}}})),_c=v((()=>{hc()(`Map`,function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},gc())})),vc=v((()=>{_c()})),yc=v(((e,t)=>{var n=G(),r=Map.prototype;t.exports={Map,set:n(r.set),get:n(r.get),has:n(r.has),remove:n(r.delete),proto:r}})),bc=v((()=>{var e=q(),t=G(),n=Sr(),r=ur(),i=wa(),a=yc(),o=Tr(),s=H(),c=a.Map,l=a.has,u=a.get,d=a.set,f=t([].push),p=o||s(function(){return c.groupBy(`ab`,function(e){return e}).get(`a`).length!==1});e({target:`Map`,stat:!0,forced:o||p},{groupBy:function(e,t){r(e),n(t);var a=new c,o=0;return i(e,function(e){var n=t(e,o++);l(a,n)?f(u(a,n),e):d(a,n,[e])}),a}})})),xc=v(((e,t)=>{var n=Math.log;t.exports=Math.log1p||function(e){var t=+e;return t>-1e-8&&t<1e-8?t-t*t/2:n(1+t)}})),Sc=v((()=>{var e=q(),t=xc(),n=Math.acosh,r=Math.log,i=Math.sqrt,a=Math.LN2;e({target:`Math`,stat:!0,forced:!n||Math.floor(n(Number.MAX_VALUE))!==710||n(1/0)!==1/0},{acosh:function(e){var n=+e;return n<1?NaN:n>94906265.62425156?r(n)+a:t(n-1+i(n-1)*i(n+1))}})})),Cc=v((()=>{var e=q(),t=Math.asinh,n=Math.log,r=Math.sqrt;function i(e){var t=+e;return!isFinite(t)||t===0?t:t<0?-i(-t):n(t+r(t*t+1))}e({target:`Math`,stat:!0,forced:!(t&&1/t(0)>0)},{asinh:i})})),wc=v((()=>{var e=q(),t=Math.atanh,n=Math.log;e({target:`Math`,stat:!0,forced:!(t&&1/t(-0)<0)},{atanh:function(e){var t=+e;return t===0?t:n((1+t)/(1-t))/2}})})),Tc=v((()=>{var e=q(),t=Xo(),n=Math.abs,r=Math.pow;e({target:`Math`,stat:!0},{cbrt:function(e){var i=+e;return t(i)*r(n(i),1/3)}})})),Ec=v((()=>{var e=q(),t=Math.floor,n=Math.log,r=Math.LOG2E;e({target:`Math`,stat:!0},{clz32:function(e){var i=e>>>0;return i?31-t(n(i+.5)*r):32}})})),Dc=v(((e,t)=>{var n=Math.expm1,r=Math.exp;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||n(-2e-17)!==-2e-17?function(e){var t=+e;return t===0?t:t>-1e-6&&t<1e-6?t+t*t/2:r(t)-1}:n})),Oc=v((()=>{var e=q(),t=Dc(),n=Math.cosh,r=Math.abs,i=Math.E;e({target:`Math`,stat:!0,forced:!n||n(710)===1/0},{cosh:function(e){var n=t(r(e)-1)+1;return(n+1/(n*i*i))*(i/2)}})})),kc=v((()=>{var e=q(),t=Dc();e({target:`Math`,stat:!0,forced:t!==Math.expm1},{expm1:t})})),Ac=v((()=>{q()({target:`Math`,stat:!0},{fround:$o()})})),jc=v((()=>{var e=q(),t=Qo(),n=.0009765625,r=65504,i=6103515625e-14;e({target:`Math`,stat:!0},{f16round:function(e){return t(e,n,r,i)}})})),Mc=v((()=>{var e=q(),t=Math.hypot,n=Math.abs,r=Math.sqrt;e({target:`Math`,stat:!0,arity:2,forced:!!t&&t(1/0,NaN)!==1/0},{hypot:function(e,t){for(var i=0,a=0,o=arguments.length,s=0,c,l;a<o;)c=n(arguments[a++]),s<c?(l=s/c,i=i*l*l+1,s=c):c>0?(l=c/s,i+=l*l):i+=c;return s===1/0?1/0:s*r(i)}})})),Nc=v((()=>{var e=q(),t=H(),n=Math.imul;e({target:`Math`,stat:!0,forced:t(function(){return n(4294967295,5)!==-5||n.length!==2})},{imul:function(e,t){var n=65535,r=+e,i=+t,a=n&r,o=n&i;return 0|a*o+((n&r>>>16)*o+a*(n&i>>>16)<<16>>>0)}})})),Pc=v(((e,t)=>{var n=Math.log,r=Math.LOG10E;t.exports=Math.log10||function(e){return n(e)*r}})),Fc=v((()=>{q()({target:`Math`,stat:!0},{log10:Pc()})})),Ic=v((()=>{q()({target:`Math`,stat:!0},{log1p:xc()})})),Lc=v((()=>{q()({target:`Math`,stat:!0},{log2:us()})})),Rc=v((()=>{q()({target:`Math`,stat:!0},{sign:Xo()})})),zc=v((()=>{var e=q(),t=H(),n=Dc(),r=Math.abs,i=Math.exp,a=Math.E;e({target:`Math`,stat:!0,forced:t(function(){return Math.sinh(-2e-17)!==-2e-17})},{sinh:function(e){var t=+e;return r(t)<1?(n(t)-n(-t))/2:(i(t-1)-i(-t-1))*(a/2)}})})),Bc=v((()=>{var e=q(),t=G(),n=wa(),r=RangeError,i=TypeError,a=1/0,o=NaN,s=Math.abs,c=Math.pow,l=t([].push),u=c(2,1023),d=c(2,53)-1,f=Number.MAX_VALUE,p=c(2,971),m={},h={},g={},_={},v={},y=function(e,t){var n=e+t;return{hi:n,lo:t-(n-e)}};e({target:`Math`,stat:!0},{sumPrecise:function(e){var t=[],c=0,b=_;switch(n(e,function(e){if(++c>=d)throw new r(`Maximum allowed index exceeded`);if(typeof e!=`number`)throw new i(`Value is not a number`);b!==m&&(e===e?e===a?b=b===h?m:g:e===-a?b=b===g?m:h:(e!==0||1/e===a)&&(b===_||b===v)&&(b=v,l(t,e)):b=m)}),b){case m:return o;case h:return-a;case g:return a;case _:return-0}for(var x=[],S=0,C,w,T,E,D,O,k=0;k<t.length;k++){C=t[k];for(var A=0,j=0;j<x.length;j++){if(w=x[j],s(C)<s(w)&&(O=C,C=w,w=O),T=y(C,w),E=T.hi,D=T.lo,s(E)===a){var M=E===a?1:-1;S+=M,C=C-M*u-M*u,s(C)<s(w)&&(O=C,C=w,w=O),T=y(C,w),E=T.hi,D=T.lo}D!==0&&(x[A++]=D),C=E}x.length=A,C!==0&&l(x,C)}var N=x.length-1;if(E=0,D=0,S!==0){var P=N>=0?x[N]:0;if(N--,s(S)>1||S>0&&P>0||S<0&&P<0)return S>0?a:-a;if(T=y(S*u,P/2),E=T.hi,D=T.lo,D*=2,s(2*E)===a)return E>0?E===u&&D===-(p/2)&&N>=0&&x[N]<0?f:a:E===-u&&D===p/2&&N>=0&&x[N]>0?-f:-a;D!==0&&(x[++N]=D,D=0),E*=2}for(;N>=0&&(T=y(E,x[N--]),E=T.hi,D=T.lo,D===0););return N>=0&&(D<0&&x[N]<0||D>0&&x[N]>0)&&(w=D*2,C=E+w,w===C-E&&(E=C)),E}})})),Vc=v((()=>{var e=q(),t=Dc(),n=Math.exp;e({target:`Math`,stat:!0},{tanh:function(e){var r=+e,i=t(r),a=t(-r);return i===1/0?1:a===1/0?-1:(i-a)/(n(r)+n(-r))}})})),Hc=v((()=>{Si()(Math,`Math`,!0)})),Uc=v((()=>{q()({target:`Math`,stat:!0},{trunc:Yr()})})),Wc=v(((e,t)=>{t.exports=G()(1.1.valueOf)})),Gc=v(((e,t)=>{t.exports=`
|
|
3
3
|
\v\f\r \xA0 \u2028\u2029`})),Kc=v(((e,t)=>{var n=G(),r=ur(),i=ui(),a=Gc(),o=n(``.replace),s=RegExp(`^[`+a+`]+`),c=RegExp(`(^|[^`+a+`])[`+a+`]+$`),l=function(e){return function(t){var n=i(r(t));return e&1&&(n=o(n,s,``)),e&2&&(n=o(n,c,`$1`)),n}};t.exports={start:l(1),end:l(2),trim:l(3)}})),qc=v((()=>{var e=q(),t=Tr(),n=U(),r=V(),i=yi(),a=G(),o=si(),s=Ar(),c=oa(),l=hr(),u=br(),d=Nr(),f=H(),p=ri().f,m=Lr().f,h=zr().f,g=Wc(),_=Kc().trim,v=`Number`,y=r[v],b=i[v],x=y.prototype,S=r.TypeError,C=a(``.slice),w=a(``.charCodeAt),T=function(e){var t=d(e,`number`);return typeof t==`bigint`?t:E(t)},E=function(e){var t=d(e,`number`),n,r,i,a,o,s,c,l;if(u(t))throw new S(`Cannot convert a Symbol value to a number`);if(typeof t==`string`&&t.length>2){if(t=_(t),n=w(t,0),n===43||n===45){if(r=w(t,2),r===88||r===120)return NaN}else if(n===48){switch(w(t,1)){case 66:case 98:i=2,a=49;break;case 79:case 111:i=8,a=55;break;default:return+t}for(o=C(t,2),s=o.length,c=0;c<s;c++)if(l=w(o,c),l<48||l>a)return NaN;return parseInt(o,i)}}return+t},D=o(v,!y(` 0o1`)||!y(`0b1`)||y(`+0x1`)),O=function(e){return l(x,e)&&f(function(){g(e)})},k=function(e){var t=arguments.length<1?0:y(T(e));return O(this)?c(Object(t),this,k):t};k.prototype=x,D&&!t&&(x.constructor=k),e({global:!0,constructor:!0,wrap:!0,forced:D},{Number:k});var A=function(e,t){for(var r=n?p(t):`MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range`.split(`,`),i=0,a;r.length>i;i++)s(t,a=r[i])&&!s(e,a)&&h(e,a,m(t,a))};t&&b&&A(i[v],b),(D||t)&&A(i[v],y)})),Jc=v((()=>{q()({target:`Number`,stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:2**-52})})),Yc=v(((e,t)=>{var n=V().isFinite;t.exports=Number.isFinite||function(e){return typeof e==`number`&&n(e)}})),Xc=v((()=>{q()({target:`Number`,stat:!0},{isFinite:Yc()})})),Zc=v(((e,t)=>{var n=pr(),r=Math.floor;t.exports=Number.isInteger||function(e){return!n(e)&&isFinite(e)&&r(e)===e}})),Qc=v((()=>{q()({target:`Number`,stat:!0},{isInteger:Zc()})})),$c=v((()=>{q()({target:`Number`,stat:!0},{isNaN:function(e){return e!==e}})})),el=v((()=>{var e=q(),t=Zc(),n=Math.abs;e({target:`Number`,stat:!0},{isSafeInteger:function(e){return t(e)&&n(e)<=9007199254740991}})})),tl=v((()=>{q()({target:`Number`,stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})})),nl=v((()=>{q()({target:`Number`,stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})})),rl=v(((e,t)=>{var n=V(),r=H(),i=G(),a=ui(),o=Kc().trim,s=Gc(),c=i(``.charAt),l=n.parseFloat,u=n.Symbol,d=u&&u.iterator;t.exports=1/l(s+`-0`)!=-1/0||d&&!r(function(){l(Object(d))})?function(e){var t=o(a(e)),n=l(t);return n===0&&c(t,0)===`-`?-0:n}:l})),il=v((()=>{var e=q(),t=rl();e({target:`Number`,stat:!0,forced:Number.parseFloat!==t},{parseFloat:t})})),al=v(((e,t)=>{var n=V(),r=H(),i=G(),a=ui(),o=Kc().trim,s=Gc(),c=n.parseInt,l=n.Symbol,u=l&&l.iterator,d=/^[+-]?0x/i,f=i(d.exec);t.exports=c(s+`08`)!==8||c(s+`0x16`)!==22||u&&!r(function(){c(Object(u))})?function(e,t){var n=o(a(e));return c(n,t>>>0||(f(d,n)?16:10))}:c})),ol=v((()=>{var e=q(),t=al();e({target:`Number`,stat:!0,forced:Number.parseInt!==t},{parseInt:t})})),sl=v((()=>{var e=q(),t=G(),n=Xr(),r=Wc(),i=Es(),a=Pc(),o=H(),s=RangeError,c=String,l=isFinite,u=Math.abs,d=Math.floor,f=Math.pow,p=Math.round,m=t(1.1.toExponential),h=t(i),g=t(``.slice),_=m(-69e-12,4)===`-6.9000e-11`&&m(1.255,2)===`1.25e+0`&&m(12345,3)===`1.235e+4`&&m(25,0)===`3e+1`;e({target:`Number`,proto:!0,forced:!_||!function(){return o(function(){m(1,1/0)})&&o(function(){m(1,-1/0)})}()||!function(){return!o(function(){m(1/0,1/0),m(NaN,1/0)})}()},{toExponential:function(e){var t=r(this);if(e===void 0)return m(t);var i=n(e);if(!l(t))return String(t);if(i<0||i>20)throw new s(`Incorrect fraction digits`);if(_)return m(t,i);var o=``,v,y,b,x;if(t<0&&(o=`-`,t=-t),t===0)y=0,v=h(`0`,i+1);else{y=d(a(t));var S=f(10,y-i),C=p(t/S);2*t>=(2*C+1)*S&&(C+=1),C>=f(10,i+1)&&(C/=10,y+=1),v=c(C)}return i!==0&&(v=g(v,0,1)+`.`+g(v,1)),y===0?(b=`+`,x=`0`):(b=y>0?`+`:`-`,x=c(u(y))),v+=`e`+b+x,o+v}})})),cl=v((()=>{var e=q(),t=G(),n=Xr(),r=Wc(),i=Es(),a=H(),o=RangeError,s=String,c=Math.floor,l=t(i),u=t(``.slice),d=t(1.1.toFixed),f=function(e,t,n){return t===0?n:t%2==1?f(e,t-1,n*e):f(e*e,t/2,n)},p=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t},m=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=c(i/1e7)},h=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=c(r/t),r=r%t*1e7},g=function(e){for(var t=6,n=``;--t>=0;)if(n!==``||t===0||e[t]!==0){var r=s(e[t]);n=n===``?r:n+l(`0`,7-r.length)+r}return n};e({target:`Number`,proto:!0,forced:a(function(){return d(8e-5,3)!==`0.000`||d(.9,0)!==`1`||d(1.255,2)!==`1.25`||d(0xde0b6b3a7640080,0)!==`1000000000000000128`})||!a(function(){d({})})},{toFixed:function(e){var t=r(this),i=n(e),a=[0,0,0,0,0,0],c=``,d=`0`,_,v,y,b;if(i<0||i>20)throw new o(`Incorrect fraction digits`);if(t!==t)return`NaN`;if(t<=-1e21||t>=1e21)return s(t);if(t<0&&(c=`-`,t=-t),t>1e-21)if(_=p(t*f(2,69,1))-69,v=_<0?t*f(2,-_,1):t/f(2,_,1),v*=4503599627370496,_=52-_,_>0){for(m(a,0,v),y=i;y>=7;)m(a,1e7,0),y-=7;for(m(a,f(10,y,1),0),y=_-1;y>=23;)h(a,1<<23),y-=23;h(a,1<<y),m(a,1,1),h(a,2),d=g(a)}else m(a,0,v),m(a,1<<-_,0),d=g(a)+l(`0`,i);return i>0?(b=d.length,d=c+(b<=i?`0.`+l(`0`,i-b)+d:u(d,0,b-i)+`.`+u(d,b-i))):d=c+d,d}})})),ll=v((()=>{var e=q(),t=G(),n=H(),r=Wc(),i=t(1.1.toPrecision);e({target:`Number`,proto:!0,forced:n(function(){return i(1,void 0)!==`1`})||!n(function(){i({})})},{toPrecision:function(e){return e===void 0?i(r(this)):i(r(this),e)}})})),ul=v(((e,t)=>{var n=U(),r=G(),i=W(),a=H(),o=di(),s=ii(),c=ar(),l=kr(),u=cr(),d=Object.assign,f=Object.defineProperty,p=r([].concat);t.exports=!d||a(function(){if(n&&d({b:1},d(f({},`a`,{enumerable:!0,get:function(){f(this,`b`,{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol(`assign detection`),i=`abcdefghijklmnopqrst`;return e[r]=7,i.split(``).forEach(function(e){t[e]=e}),d({},e)[r]!==7||o(d({},t)).join(``)!==i})?function(e,t){for(var r=l(e),a=arguments.length,d=1,f=s.f,m=c.f;a>d;)for(var h=u(arguments[d++]),g=f?p(o(h),f(h)):o(h),_=g.length,v=0,y;_>v;)y=g[v++],(!n||i(m,h,y))&&(r[y]=h[y]);return r}:d})),dl=v((()=>{var e=q(),t=ul();e({target:`Object`,stat:!0,arity:2,forced:Object.assign!==t},{assign:t})})),fl=v((()=>{var e=q(),t=U(),n=mi();e({target:`Object`,stat:!0,sham:!t},{create:n})})),pl=v(((e,t)=>{var n=Tr(),r=V(),i=H(),a=Ao();t.exports=n||!i(function(){if(!(a&&a<535)){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete r[e]}})})),ml=v((()=>{var e=q(),t=U(),n=pl(),r=Sr(),i=kr(),a=zr();t&&e({target:`Object`,proto:!0,forced:n},{__defineGetter__:function(e,t){a.f(i(this),e,{get:r(t),enumerable:!0,configurable:!0})}})})),hl=v((()=>{var e=q(),t=U(),n=fi().f;e({target:`Object`,stat:!0,forced:Object.defineProperties!==n,sham:!t},{defineProperties:n})})),gl=v((()=>{var e=q(),t=U(),n=zr().f;e({target:`Object`,stat:!0,forced:Object.defineProperty!==n,sham:!t},{defineProperty:n})})),_l=v((()=>{var e=q(),t=U(),n=pl(),r=Sr(),i=kr(),a=zr();t&&e({target:`Object`,proto:!0,forced:n},{__defineSetter__:function(e,t){a.f(i(this),e,{set:r(t),enumerable:!0,configurable:!0})}})})),vl=v(((e,t)=>{var n=U(),r=H(),i=G(),a=va(),o=di(),s=dr(),c=ar().f,l=i(c),u=i([].push),d=n&&r(function(){var e=Object.create(null);return e[2]=2,!l(e,2)}),f=function(e){return function(t){for(var r=s(t),i=o(r),c=d&&a(r)===null,f=i.length,p=0,m=[],h;f>p;)h=i[p++],(!n||(c?h in r:l(r,h)))&&u(m,e?[h,r[h]]:r[h]);return m}};t.exports={entries:f(!0),values:f(!1)}})),yl=v((()=>{var e=q(),t=vl().entries;e({target:`Object`,stat:!0},{entries:function(e){return t(e)}})})),bl=v((()=>{var e=q(),t=pc(),n=H(),r=pr(),i=mc().onFreeze,a=Object.freeze;e({target:`Object`,stat:!0,forced:n(function(){a(1)}),sham:!t},{freeze:function(e){return a&&r(e)?a(i(e)):e}})})),xl=v((()=>{var e=q(),t=wa(),n=Ma();e({target:`Object`,stat:!0},{fromEntries:function(e){var r={};return t(e,function(e,t){n(r,e,t)},{AS_ENTRIES:!0}),r}})})),Sl=v((()=>{var e=q(),t=H(),n=dr(),r=Lr().f,i=U();e({target:`Object`,stat:!0,forced:!i||t(function(){r(1)}),sham:!i},{getOwnPropertyDescriptor:function(e,t){return r(n(e),t)}})})),Cl=v((()=>{var e=q(),t=U(),n=ai(),r=dr(),i=Lr(),a=Ma();e({target:`Object`,stat:!0,sham:!t},{getOwnPropertyDescriptors:function(e){for(var t=r(e),o=i.f,s=n(t),c={},l=0,u,d;s.length>l;)d=o(t,u=s[l++]),d!==void 0&&a(c,u,d);return c}})})),wl=v((()=>{var e=q(),t=H(),n=gi().f;e({target:`Object`,stat:!0,forced:t(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:n})})),Tl=v((()=>{var e=q(),t=H(),n=kr(),r=va(),i=_a();e({target:`Object`,stat:!0,forced:t(function(){r(1)}),sham:!i},{getPrototypeOf:function(e){return r(n(e))}})})),El=v((()=>{var e=q(),t=mr(),n=G(),r=Sr(),i=ur(),a=Pr(),o=wa(),s=H(),c=Object.groupBy,l=t(`Object`,`create`),u=n([].push);e({target:`Object`,stat:!0,forced:!c||s(function(){return c(`ab`,function(e){return e}).a.length!==1})},{groupBy:function(e,t){i(e),r(t);var n=l(null),s=0;return o(e,function(e){var r=a(t(e,s++));r in n?u(n[r],e):n[r]=[e]}),n}})})),Dl=v((()=>{q()({target:`Object`,stat:!0},{hasOwn:Ar()})})),Ol=v(((e,t)=>{t.exports=Object.is||function(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}})),kl=v((()=>{q()({target:`Object`,stat:!0},{is:Ol()})})),Al=v((()=>{var e=q(),t=fc();e({target:`Object`,stat:!0,forced:Object.isExtensible!==t},{isExtensible:t})})),jl=v((()=>{var e=q(),t=H(),n=pr(),r=sr(),i=dc(),a=Object.isFrozen;e({target:`Object`,stat:!0,forced:i||t(function(){a(1)})},{isFrozen:function(e){return!n(e)||i&&r(e)===`ArrayBuffer`?!0:a?a(e):!1}})})),Ml=v((()=>{var e=q(),t=H(),n=pr(),r=sr(),i=dc(),a=Object.isSealed;e({target:`Object`,stat:!0,forced:i||t(function(){a(1)})},{isSealed:function(e){return!n(e)||i&&r(e)===`ArrayBuffer`?!0:a?a(e):!1}})})),Nl=v((()=>{var e=q(),t=kr(),n=di();e({target:`Object`,stat:!0,forced:H()(function(){n(1)})},{keys:function(e){return n(t(e))}})})),Pl=v((()=>{var e=q(),t=U(),n=pl(),r=kr(),i=Pr(),a=va(),o=Lr().f;t&&e({target:`Object`,proto:!0,forced:n},{__lookupGetter__:function(e){var t=r(this),n=i(e),s;do if(s=o(t,n))return s.get;while(t=a(t))}})})),Fl=v((()=>{var e=q(),t=U(),n=pl(),r=kr(),i=Pr(),a=va(),o=Lr().f;t&&e({target:`Object`,proto:!0,forced:n},{__lookupSetter__:function(e){var t=r(this),n=i(e),s;do if(s=o(t,n))return s.set;while(t=a(t))}})})),Il=v((()=>{var e=q(),t=pr(),n=mc().onFreeze,r=pc(),i=H(),a=Object.preventExtensions;e({target:`Object`,stat:!0,forced:i(function(){a(1)}),sham:!r},{preventExtensions:function(e){return a&&t(e)?a(n(e)):e}})})),Ll=v((()=>{var e=U(),t=_i(),n=pr(),r=na(),i=kr(),a=ur(),o=Object.getPrototypeOf,s=Object.setPrototypeOf,c=Object.prototype,l=`__proto__`;if(e&&o&&s&&!(l in c))try{t(c,l,{configurable:!0,get:function(){return o(i(this))},set:function(e){var t=a(this);r(e)&&n(t)&&s(t,e)}})}catch{}})),Rl=v((()=>{var e=q(),t=pr(),n=mc().onFreeze,r=pc(),i=H(),a=Object.seal;e({target:`Object`,stat:!0,forced:i(function(){a(1)}),sham:!r},{seal:function(e){return a&&t(e)?a(n(e)):e}})})),zl=v((()=>{q()({target:`Object`,stat:!0},{setPrototypeOf:ia()})})),Bl=v(((e,t)=>{var n=ci(),r=li();t.exports=n?{}.toString:function(){return`[object `+r(this)+`]`}})),Vl=v((()=>{var e=ci(),t=Jr(),n=Bl();e||t(Object.prototype,`toString`,n,{unsafe:!0})})),Hl=v((()=>{var e=q(),t=vl().values;e({target:`Object`,stat:!0},{values:function(e){return t(e)}})})),Ul=v((()=>{var e=q(),t=rl();e({global:!0,forced:parseFloat!==t},{parseFloat:t})})),Wl=v((()=>{var e=q(),t=al();e({global:!0,forced:parseInt!==t},{parseInt:t})})),Gl=v(((e,t)=>{var n=Ei(),r=xr(),i=TypeError;t.exports=function(e){if(n(e))return e;throw new i(r(e)+` is not a constructor`)}})),Kl=v(((e,t)=>{var n=K(),r=Gl(),i=lr(),a=Mr()(`species`);t.exports=function(e,t){var o=n(e).constructor,s;return o===void 0||i(s=n(o)[a])?t:r(s)}})),ql=v(((e,t)=>{var n=TypeError;t.exports=function(e,t){if(e<t)throw new n(`Not enough arguments`);return e}})),Jl=v(((e,t)=>{var n=gr();t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)})),Yl=v(((e,t)=>{var n=V(),r=Pi(),i=wi(),a=fr(),o=Ar(),s=H(),c=pi(),l=hi(),u=Fr(),d=ql(),f=Jl(),p=xo(),m=n.setImmediate,h=n.clearImmediate,g=n.process,_=n.Dispatch,v=n.Function,y=n.MessageChannel,b=n.String,x=0,S={},C=`onreadystatechange`,w,T,E,D;s(function(){w=n.location});var O=function(e){if(o(S,e)){var t=S[e];delete S[e],t()}},k=function(e){return function(){O(e)}},A=function(e){O(e.data)},j=function(e){n.postMessage(b(e),w.protocol+`//`+w.host)};(!m||!h)&&(m=function(e){d(arguments.length,1);var t=a(e)?e:v(e),n=l(arguments,1);return S[++x]=function(){r(t,void 0,n)},T(x),x},h=function(e){delete S[e]},p?T=function(e){g.nextTick(k(e))}:_&&_.now?T=function(e){_.now(k(e))}:y&&!f?(E=new y,D=E.port2,E.port1.onmessage=A,T=i(D.postMessage,D)):n.addEventListener&&a(n.postMessage)&&!n.importScripts&&w&&w.protocol!==`file:`&&!s(j)?(T=j,n.addEventListener(`message`,A,!1)):T=C in u(`script`)?function(e){c.appendChild(u(`script`))[C]=function(){c.removeChild(this),O(e)}}:function(e){setTimeout(k(e),0)}),t.exports={set:m,clear:h}})),Xl=v(((e,t)=>{var n=V(),r=U(),i=Object.getOwnPropertyDescriptor;t.exports=function(e){if(!r)return n[e];var t=i(n,e);return t&&t.value}})),Zl=v(((e,t)=>{var n=function(){this.head=null,this.tail=null};n.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return(this.head=e.next)===null&&(this.tail=null),e.item}},t.exports=n})),Ql=v(((e,t)=>{var n=gr();t.exports=/ipad|iphone|ipod/i.test(n)&&typeof Pebble<`u`})),$l=v(((e,t)=>{var n=gr();t.exports=/web0s(?!.*chrome)/i.test(n)})),eu=v(((e,t)=>{var n=V(),r=Xl(),i=wi(),a=Yl().set,o=Zl(),s=Jl(),c=Ql(),l=$l(),u=xo(),d=n.MutationObserver||n.WebKitMutationObserver,f=n.document,p=n.process,m=n.Promise,h=r(`queueMicrotask`),g,_,v,y,b;if(!h){var x=new o,S=function(){var e,t;for(u&&(e=p.domain)&&e.exit();t=x.get();)try{t()}catch(e){throw x.head&&g(),e}e&&e.enter()};!s&&!u&&!l&&d&&f?(_=!0,v=f.createTextNode(``),new d(S).observe(v,{characterData:!0}),g=function(){v.data=_=!_}):!c&&m&&m.resolve?(y=m.resolve(void 0),y.constructor=m,b=i(y.then,y),g=function(){b(S)}):u?g=function(){p.nextTick(S)}:(a=i(a,n),g=function(){a(S)}),h=function(e){x.head||g(),x.add(e)}}t.exports=h})),tu=v(((e,t)=>{t.exports=function(e,t){try{arguments.length===1?console.error(e):console.error(e,t)}catch{}}})),nu=v(((e,t)=>{t.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}})),ru=v(((e,t)=>{t.exports=V().Promise})),iu=v(((e,t)=>{var n=V(),r=ru(),i=fr(),a=si(),o=Hr(),s=Mr(),c=bo(),l=Tr(),u=_r(),d=r&&r.prototype,f=s(`species`),p=!1,m=i(n.PromiseRejectionEvent);t.exports={CONSTRUCTOR:a(`Promise`,function(){var e=o(r),t=e!==String(r);if(!t&&u===66||l&&!(d.catch&&d.finally))return!0;if(!u||u<51||!/native code/.test(e)){var n=new r(function(e){e(1)}),i=function(e){e(function(){},function(){})},a=n.constructor={};if(a[f]=i,p=n.then(function(){})instanceof i,!p)return!0}return!t&&(c===`BROWSER`||c===`DENO`)&&!m}),REJECTION_EVENT:m,SUBCLASSING:p}})),au=v(((e,t)=>{var n=Sr(),r=TypeError,i=function(e){var t,i;this.promise=new e(function(e,n){if(t!==void 0||i!==void 0)throw new r(`Bad Promise constructor`);t=e,i=n}),this.resolve=n(t),this.reject=n(i)};t.exports.f=function(e){return new i(e)}})),ou=v((()=>{var e=q(),t=Tr(),n=xo(),r=V(),i=yi(),a=W(),o=Jr(),s=ia(),c=Si(),l=Mo(),u=Sr(),d=fr(),f=pr(),p=Jo(),m=Kl(),h=Yl().set,g=eu(),_=tu(),v=nu(),y=Zl(),b=Kr(),x=ru(),S=iu(),C=au(),w=`Promise`,T=S.CONSTRUCTOR,E=S.REJECTION_EVENT,D=S.SUBCLASSING,O=b.getterFor(w),k=b.set,A=x&&x.prototype,j=x,M=A,N=r.TypeError,P=r.document,F=r.process,I=C.f,L=I,ee=!!(P&&P.createEvent&&r.dispatchEvent),te=`unhandledrejection`,R=`rejectionhandled`,ne=0,z=1,re=2,ie=1,ae=2,oe,se,ce,le,ue=function(e){var t;return f(e)&&d(t=e.then)?t:!1},de=function(e,t){var n=t.value,r=t.state===z,i=r?e.ok:e.fail,o=e.resolve,s=e.reject,c=e.domain,l,u,d;try{i?(r||(t.rejection===ae&&ge(t),t.rejection=ie),i===!0?l=n:(c&&c.enter(),l=i(n),c&&(c.exit(),d=!0)),l===e.promise?s(new N(`Promise-chain cycle`)):(u=ue(l))?a(u,l,o,s):o(l)):s(n)}catch(e){c&&!d&&c.exit(),s(e)}},fe=function(e,t){e.notified||(e.notified=!0,g(function(){for(var n=e.reactions,r;r=n.get();)de(r,e);e.notified=!1,t&&!e.rejection&&me(e)}))},pe=function(e,t,n){var i,a;ee?(i=P.createEvent(`Event`),i.promise=t,i.reason=n,i.initEvent(e,!1,!0),r.dispatchEvent(i)):i={promise:t,reason:n},!E&&(a=r[`on`+e])?a(i):e===te&&_(`Unhandled promise rejection`,n)},me=function(e){a(h,r,function(){var t=e.facade,r=e.value,i=he(e),a;if(i&&(a=v(function(){n?F.emit(`unhandledRejection`,r,t):pe(te,t,r)}),e.rejection=n||he(e)?ae:ie,a.error))throw a.value})},he=function(e){return e.rejection!==ie&&!e.parent},ge=function(e){a(h,r,function(){var t=e.facade;n?F.emit(`rejectionHandled`,t):pe(R,t,e.value)})},_e=function(e,t,n){return function(r){e(t,r,n)}},ve=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=re,fe(e,!0))},ye=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new N(`Promise can't be resolved itself`);var r=ue(t);r?g(function(){var n={done:!1};try{a(r,t,_e(ye,n,e),_e(ve,n,e))}catch(t){ve(n,t,e)}}):(e.value=t,e.state=z,fe(e,!1))}catch(t){ve({done:!1},t,e)}}};if(T&&(j=function(e){p(this,M),u(e),a(oe,this);var t=O(this);try{e(_e(ye,t),_e(ve,t))}catch(e){ve(t,e)}},M=j.prototype,oe=function(e){k(this,{type:w,done:!1,notified:!1,parent:!1,reactions:new y,rejection:!1,state:ne,value:null})},oe.prototype=o(M,`then`,function(e,t){var r=O(this),i=I(m(this,j));return r.parent=!0,i.ok=d(e)?e:!0,i.fail=d(t)&&t,i.domain=n?F.domain:void 0,r.state===ne?r.reactions.add(i):g(function(){de(i,r)}),i.promise}),se=function(){var e=new oe,t=O(e);this.promise=e,this.resolve=_e(ye,t),this.reject=_e(ve,t)},C.f=I=function(e){return e===j||e===ce?new se(e):L(e)},!t&&d(x)&&A!==Object.prototype)){le=A.then,D||o(A,`then`,function(e,t){var n=this;return new j(function(e,t){a(le,n,e,t)}).then(e,t)},{unsafe:!0});try{delete A.constructor}catch{}s&&s(A,M)}e({global:!0,constructor:!0,wrap:!0,forced:T},{Promise:j}),ce=i.Promise,c(j,w,!1,!0),l(w)})),su=v(((e,t)=>{var n=ru(),r=to();t.exports=iu().CONSTRUCTOR||!r(function(e){n.all(e).then(void 0,function(){})})})),cu=v((()=>{var e=q(),t=W(),n=Sr(),r=au(),i=nu(),a=wa();e({target:`Promise`,stat:!0,forced:su()},{all:function(e){var o=this,s=r.f(o),c=s.resolve,l=s.reject,u=i(function(){var r=n(o.resolve),i=[],s=0,u=1;a(e,function(e){var n=s++,a=!1;u++,t(r,o,e).then(function(e){a||(a=!0,i[n]=e,--u||c(i))},l)}),--u||c(i)});return u.error&&l(u.value),s.promise}})})),lu=v((()=>{var e=q(),t=Tr(),n=iu().CONSTRUCTOR,r=ru(),i=mr(),a=fr(),o=Jr(),s=r&&r.prototype;if(e({target:`Promise`,proto:!0,forced:n,real:!0},{catch:function(e){return this.then(void 0,e)}}),!t&&a(r)){var c=i(`Promise`).prototype.catch;s.catch!==c&&o(s,`catch`,c,{unsafe:!0})}})),uu=v((()=>{var e=q(),t=W(),n=Sr(),r=au(),i=nu(),a=wa();e({target:`Promise`,stat:!0,forced:su()},{race:function(e){var o=this,s=r.f(o),c=s.reject,l=i(function(){var r=n(o.resolve);a(e,function(e){t(r,o,e).then(s.resolve,c)})});return l.error&&c(l.value),s.promise}})})),du=v((()=>{var e=q(),t=au(),n=iu().CONSTRUCTOR;e({target:`Promise`,stat:!0,forced:n},{reject:function(e){var n=t.f(this),r=n.reject;return r(e),n.promise}})})),fu=v(((e,t)=>{var n=K(),r=pr(),i=au();t.exports=function(e,t){if(n(e),r(t)&&t.constructor===e)return t;var a=i.f(e),o=a.resolve;return o(t),a.promise}})),pu=v((()=>{var e=q(),t=mr(),n=Tr(),r=ru(),i=iu().CONSTRUCTOR,a=fu(),o=t(`Promise`),s=n&&!i;e({target:`Promise`,stat:!0,forced:n||i},{resolve:function(e){return a(s&&this===o?r:this,e)}})})),mu=v((()=>{ou(),cu(),lu(),uu(),du(),pu()})),hu=v((()=>{var e=q(),t=W(),n=Sr(),r=au(),i=nu(),a=wa();e({target:`Promise`,stat:!0,forced:su()},{allSettled:function(e){var o=this,s=r.f(o),c=s.resolve,l=s.reject,u=i(function(){var r=n(o.resolve),i=[],s=0,l=1;a(e,function(e){var n=s++,a=!1;l++,t(r,o,e).then(function(e){a||(a=!0,i[n]={status:`fulfilled`,value:e},--l||c(i))},function(e){a||(a=!0,i[n]={status:`rejected`,reason:e},--l||c(i))})}),--l||c(i)});return u.error&&l(u.value),s.promise}})})),gu=v((()=>{var e=q(),t=W(),n=Sr(),r=mr(),i=au(),a=nu(),o=wa(),s=su(),c=`No one promise resolved`;e({target:`Promise`,stat:!0,forced:s},{any:function(e){var s=this,l=r(`AggregateError`),u=i.f(s),d=u.resolve,f=u.reject,p=a(function(){var r=n(s.resolve),i=[],a=0,u=1,p=!1;o(e,function(e){var n=a++,o=!1;u++,t(r,s,e).then(function(e){o||p||(p=!0,d(e))},function(e){o||p||(o=!0,i[n]=e,--u||f(new l(i,c)))})}),--u||f(new l(i,c))});return p.error&&f(p.value),u.promise}})})),_u=v((()=>{var e=q(),t=Tr(),n=ru(),r=H(),i=mr(),a=fr(),o=Kl(),s=fu(),c=Jr(),l=n&&n.prototype;if(e({target:`Promise`,proto:!0,real:!0,forced:!!n&&r(function(){l.finally.call({then:function(){}},function(){})})},{finally:function(e){var t=o(this,i(`Promise`)),n=a(e);return this.then(n?function(n){return s(t,e()).then(function(){return n})}:e,n?function(n){return s(t,e()).then(function(){throw n})}:e)}}),!t&&a(n)){var u=i(`Promise`).prototype.finally;l.finally!==u&&c(l,`finally`,u,{unsafe:!0})}})),vu=v((()=>{var e=q(),t=V(),n=Pi(),r=hi(),i=au(),a=Sr(),o=nu(),s=t.Promise,c=!1;e({target:`Promise`,stat:!0,forced:!s||!s.try||o(function(){s.try(function(e){c=e===8},8)}).error||!c},{try:function(e){var t=arguments.length>1?r(arguments,1):[],s=i.f(this),c=o(function(){return n(a(e),void 0,t)});return(c.error?s.reject:s.resolve)(c.value),s.promise}})})),yu=v((()=>{var e=q(),t=au();e({target:`Promise`,stat:!0},{withResolvers:function(){var e=t.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}})})),bu=v(((e,t)=>{var n=V(),r=Dr(),i=fr(),a=mi(),o=va(),s=Jr(),c=Mr(),l=Tr(),u=`USE_FUNCTION_CONSTRUCTOR`,d=c(`asyncIterator`),f=n.AsyncIterator,p=r.AsyncIteratorPrototype,m,h;if(p)m=p;else if(i(f))m=f.prototype;else if(r[u]||n[u])try{h=o(o(o(Function(`return async function*(){}()`)()))),o(h)===Object.prototype&&(m=h)}catch{}m?l&&(m=a(m)):m={},i(m[d])||s(m,d,function(){return this}),t.exports=m})),xu=v(((e,t)=>{var n=W(),r=K(),i=mi(),a=Cr(),o=qo(),s=Kr(),c=Ca(),l=mr(),u=bu(),d=lo(),f=l(`Promise`),p=`AsyncFromSyncIterator`,m=s.set,h=s.getterFor(p),g=function(e,t,n,r,i){var a=e.done;f.resolve(e.value).then(function(e){t(d(e,a))},function(e){if(!a&&i)try{c(r,`throw`,e)}catch(t){e=t}n(e)})},_=function(e){e.type=p,m(this,e)};_.prototype=o(i(u),{next:function(){var e=h(this);return new f(function(t,i){g(r(n(e.next,e.iterator)),t,i,e.iterator,!0)})},return:function(){var e=h(this).iterator;return new f(function(t,i){var o=a(e,`return`);if(o===void 0)return t(d(void 0,!0));g(r(n(o,e)),t,i,e)})}}),t.exports=_})),Su=v(((e,t)=>{var n=W(),r=xu(),i=K(),a=Sa(),o=Ws(),s=Cr(),c=Mr()(`asyncIterator`);t.exports=function(e,t){var l=arguments.length<2?s(e,c):t;return l?i(n(l,e)):new r(o(a(e)))}})),Cu=v(((e,t)=>{var n=W(),r=mr(),i=Cr();t.exports=function(e,t,a,o){try{var s=i(e,`return`);if(s)return r(`Promise`).resolve(n(s,e)).then(function(){t(a)},function(e){o(e)})}catch(e){return o(e)}t(a)}})),wu=v(((e,t)=>{var n=W(),r=Sr(),i=K(),a=pr(),o=ja(),s=mr(),c=Ws(),l=Cu(),u=function(e){var t=e===0,u=e===1,d=e===2,f=e===3;return function(e,p,m){i(e);var h=p!==void 0;(h||!t)&&r(p);var g=c(e),_=s(`Promise`),v=g.iterator,y=g.next,b=0;return new _(function(e,r){var s=function(e){l(v,r,e,r)},c=function(){try{if(h)try{o(b)}catch(e){s(e)}_.resolve(i(n(y,v))).then(function(n){try{if(i(n).done)t?(m.length=b,e(m)):e(f?!1:d||void 0);else{var o=n.value;try{if(h){var g=p(o,b),y=function(n){if(u)c();else if(d)n?c():l(v,e,!1,r);else if(t)try{m[b++]=n,c()}catch(e){s(e)}else n?l(v,e,f||o,r):c()};a(g)?_.resolve(g).then(y,s):y(g)}else m[b++]=o,c()}catch(e){s(e)}}}catch(e){r(e)}},r)}catch(e){r(e)}};c()})}};t.exports={toArray:u(0),forEach:u(1),every:u(2),some:u(3),find:u(4)}})),Tu=v(((e,t)=>{var n=wi(),r=G(),i=kr(),a=Ei(),o=Su(),s=Sa(),c=Ws(),l=xa(),u=Cr(),d=mr(),f=Ro(),p=Mr(),m=xu(),h=wu().toArray,g=p(`asyncIterator`),_=r(f(`Array`,`values`)),v=r(_([]).next),y=function(){return new b(this)},b=function(e){this.iterator=_(e)};b.prototype.next=function(){return v(this.iterator)},t.exports=function(e){var t=this,r=arguments.length,f=r>1?arguments[1]:void 0,p=r>2?arguments[2]:void 0;return new(d(`Promise`))(function(r){var d=i(e);f!==void 0&&(f=n(f,p));var _=u(d,g),v=_?void 0:l(d)||y,b=a(t)?new t:[];r(h(_?o(d,_):new m(c(s(d,v))),f,b))})}})),Eu=v((()=>{var e=q(),t=Tu(),n=H(),r=Array.fromAsync;e({target:`Array`,stat:!0,forced:!r||n(function(){var e=0;return r.call(function(){return e++,[]},{length:0}),e!==1})},{fromAsync:t})})),Du=v((()=>{var e=q(),t=U(),n=mr(),r=Sr(),i=Jo(),a=Jr(),o=qo(),s=_i(),c=Mr(),l=Kr(),u=Ps(),d=_r(),f=n(`Promise`),p=n(`SuppressedError`),m=ReferenceError,h=c(`asyncDispose`),g=c(`toStringTag`),_=`AsyncDisposableStack`,v=l.set,y=l.getterFor(_),b=`async-dispose`,x=`disposed`,S=`pending`,C=function(e){var t=y(e);if(t.state===x)throw new m(_+` already disposed`);return t},w=function(){v(i(this,T),{type:_,state:S,stack:[]}),t||(this.disposed=!1)},T=w.prototype;o(T,{disposeAsync:function(){var e=this;return new f(function(n,r){var i=y(e);if(i.state===x)return n(void 0);i.state=x,t||(e.disposed=!0);var a=i.stack,o=a.length,s=!1,c,l=function(e){s?c=new p(e,c):(s=!0,c=e),u()},u=function(){if(o){var e=a[--o];a[o]=null;try{f.resolve(e()).then(u,l)}catch(e){l(e)}}else i.stack=null,s?r(c):n(void 0)};u()})},use:function(e){return u(C(this),e,b),e},adopt:function(e,t){var n=C(this);return r(t),u(n,void 0,b,function(){return t(e)}),e},defer:function(e){var t=C(this);r(e),u(t,void 0,b,e)},move:function(){var e=C(this),n=new w;return y(n).stack=e.stack,e.stack=[],e.state=x,t||(this.disposed=!0),n}}),t&&s(T,`disposed`,{configurable:!0,get:function(){return y(this).state===x}}),a(T,h,T.disposeAsync,{name:`disposeAsync`}),a(T,g,_,{nonWritable:!0}),e({global:!0,constructor:!0,forced:d&&d<136},{AsyncDisposableStack:w})})),Ou=v((()=>{var e=W(),t=Jr(),n=mr(),r=Cr(),i=Ar(),a=Mr(),o=bu(),s=a(`asyncDispose`),c=n(`Promise`);i(o,s)||t(o,s,function(){var t=this;return new c(function(n,i){var a=r(t,`return`);a?c.resolve(e(a,t)).then(function(){n(void 0)},i):n(void 0)})})})),ku=v((()=>{var e=q(),t=Pi(),n=Sr(),r=K();e({target:`Reflect`,stat:!0,forced:!H()(function(){Reflect.apply(function(){})})},{apply:function(e,i,a){return t(n(e),i,r(a))}})})),Au=v((()=>{var e=q(),t=mr(),n=Pi(),r=Ls(),i=Gl(),a=K(),o=pr(),s=mi(),c=H(),l=t(`Reflect`,`construct`),u=Object.prototype,d=[].push,f=c(function(){function e(){}return!(l(function(){},[],e)instanceof e)}),p=!c(function(){l(function(){})}),m=f||p;e({target:`Reflect`,stat:!0,forced:m,sham:m},{construct:function(e,t){i(e),a(t);var c=arguments.length<3?e:i(arguments[2]);if(p&&!f)return l(e,t,c);if(e===c){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])}var m=[null];return n(d,m,t),new(n(r,e,m))}var h=c.prototype,g=s(o(h)?h:u),_=n(e,g,t);return o(_)?_:g}})})),ju=v((()=>{var e=q(),t=U(),n=K(),r=Pr(),i=zr();e({target:`Reflect`,stat:!0,forced:H()(function(){Reflect.defineProperty(i.f({},1,{value:1}),1,{value:2})}),sham:!t},{defineProperty:function(e,t,a){n(e);var o=r(t);n(a);try{return i.f(e,o,a),!0}catch{return!1}}})})),Mu=v((()=>{var e=q(),t=K(),n=Lr().f;e({target:`Reflect`,stat:!0},{deleteProperty:function(e,r){var i=n(t(e),r);return i&&!i.configurable?!1:delete e[r]}})})),Nu=v(((e,t)=>{var n=Ar();t.exports=function(e){return e!==void 0&&(n(e,`value`)||n(e,`writable`))}})),Pu=v((()=>{var e=q(),t=W(),n=pr(),r=K(),i=Nu(),a=Lr(),o=va();function s(e,c){var l=arguments.length<3?e:arguments[2],u,d;if(r(e)===l)return e[c];if(u=a.f(e,c),u)return i(u)?u.value:u.get===void 0?void 0:t(u.get,l);if(n(d=o(e)))return s(d,c,l)}e({target:`Reflect`,stat:!0},{get:s})})),Fu=v((()=>{var e=q(),t=U(),n=K(),r=Lr();e({target:`Reflect`,stat:!0,sham:!t},{getOwnPropertyDescriptor:function(e,t){return r.f(n(e),t)}})})),Iu=v((()=>{var e=q(),t=K(),n=va();e({target:`Reflect`,stat:!0,sham:!_a()},{getPrototypeOf:function(e){return n(t(e))}})})),Lu=v((()=>{q()({target:`Reflect`,stat:!0},{has:function(e,t){return t in e}})})),Ru=v((()=>{var e=q(),t=K(),n=fc();e({target:`Reflect`,stat:!0},{isExtensible:function(e){return t(e),n(e)}})})),zu=v((()=>{q()({target:`Reflect`,stat:!0},{ownKeys:ai()})})),Bu=v((()=>{var e=q(),t=mr(),n=K();e({target:`Reflect`,stat:!0,sham:!pc()},{preventExtensions:function(e){n(e);try{var r=t(`Object`,`preventExtensions`);return r&&r(e),!0}catch{return!1}}})})),Vu=v((()=>{var e=q(),t=W(),n=K(),r=pr(),i=Nu(),a=H(),o=zr(),s=Lr(),c=va(),l=or();function u(e,a,d){var f=arguments.length<4?e:arguments[3],p=s.f(n(e),a),m,h,g;if(!p){if(r(h=c(e)))return u(h,a,d,f);p=l(0)}if(i(p)){if(p.writable===!1||!r(f))return!1;if(m=s.f(f,a)){if(m.get||m.set||m.writable===!1)return!1;m.value=d,o.f(f,a,m)}else o.f(f,a,l(0,d))}else{if(g=p.set,g===void 0)return!1;t(g,f,d)}return!0}e({target:`Reflect`,stat:!0,forced:a(function(){var e=function(){},t=o.f(new e,`a`,{configurable:!0});return Reflect.set(e.prototype,`a`,1,t)!==!1})},{set:u})})),Hu=v((()=>{var e=q(),t=K(),n=ra(),r=ia();r&&e({target:`Reflect`,stat:!0},{setPrototypeOf:function(e,i){t(e),n(i);try{return r(e,i),!0}catch{return!1}}})})),Uu=v((()=>{var e=q(),t=V(),n=Si();e({global:!0},{Reflect:{}}),n(t.Reflect,`Reflect`,!0)})),Wu=v(((e,t)=>{var n=pr(),r=sr(),i=Mr()(`match`);t.exports=function(e){var t;return n(e)&&((t=e[i])===void 0?r(e)===`RegExp`:!!t)}})),Gu=v(((e,t)=>{var n=V(),r=H(),i=n.RegExp;t.exports={correct:!r(function(){var e=!0;try{i(`.`,`d`)}catch{e=!1}var t={},n=``,r=e?`dgimsy`:`gimsy`,a=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},o={dotAll:`s`,global:`g`,ignoreCase:`i`,multiline:`m`,sticky:`y`};for(var s in e&&(o.hasIndices=`d`),o)a(s,o[s]);return Object.getOwnPropertyDescriptor(i.prototype,`flags`).get.call(t)!==r||n!==r})}})),Ku=v(((e,t)=>{var n=K();t.exports=function(){var e=n(this),t=``;return e.hasIndices&&(t+=`d`),e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.unicodeSets&&(t+=`v`),e.sticky&&(t+=`y`),t}})),qu=v(((e,t)=>{var n=W(),r=Ar(),i=hr(),a=Gu(),o=Ku(),s=RegExp.prototype;t.exports=a.correct?function(e){return e.flags}:function(e){return!a.correct&&i(s,e)&&!r(e,`flags`)?n(o,e):e.flags}})),Ju=v(((e,t)=>{var n=H(),r=V().RegExp,i=n(function(){var e=r(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!==null}),a=i||n(function(){return!r(`a`,`y`).sticky});t.exports={BROKEN_CARET:i||n(function(){var e=r(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!==null}),MISSED_STICKY:a,UNSUPPORTED_Y:i}})),Yu=v(((e,t)=>{var n=H(),r=V().RegExp;t.exports=n(function(){var e=r(`.`,`s`);return!(e.dotAll&&e.test(`
|
|
4
4
|
`)&&e.flags===`s`)})})),Xu=v(((e,t)=>{var n=H(),r=V().RegExp;t.exports=n(function(){var e=r(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})})),Zu=v((()=>{var e=U(),t=V(),n=G(),r=si(),i=oa(),a=Br(),o=mi(),s=ri().f,c=hr(),l=Wu(),u=ui(),d=qu(),f=Ju(),p=aa(),m=Jr(),h=H(),g=Ar(),_=Kr().enforce,v=Mo(),y=Mr(),b=Yu(),x=Xu(),S=y(`match`),C=t.RegExp,w=C.prototype,T=t.SyntaxError,E=n(w.exec),D=n(``.charAt),O=n(``.replace),k=n(``.indexOf),A=n(``.slice),j=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,M=/a/g,N=/a/g,P=new C(M)!==M,F=f.MISSED_STICKY,I=f.UNSUPPORTED_Y,L=e&&(!P||F||b||x||h(function(){return N[S]=!1,C(M)!==M||C(N)===N||String(C(M,`i`))!==`/a/i`})),ee=function(e){for(var t=e.length,n=0,r=``,i=!1,a;n<=t;n++){if(a=D(e,n),a===`\\`){r+=a+D(e,++n);continue}!i&&a===`.`?r+=`[\\s\\S]`:(a===`[`?i=!0:a===`]`&&(i=!1),r+=a)}return r},te=function(e){for(var t=e.length,n=0,r=``,i=[],a=o(null),s=!1,c=!1,l=0,u=``,d;n<=t;n++){if(d=D(e,n),d===`\\`)d+=D(e,++n);else if(d===`]`)s=!1;else if(!s)switch(!0){case d===`[`:s=!0;break;case d===`(`:if(r+=d,A(e,n+1,n+3)===`?:`)continue;E(j,A(e,n+1))&&(n+=2,c=!0),l++;continue;case d===`>`&&c:if(u===``||g(a,u))throw new T(`Invalid capture group name`);a[u]=!0,i[i.length]=[u,l],c=!1,u=``;continue}c?u+=d:r+=d}return[r,i]};if(r(`RegExp`,L)){for(var R=function(e,t){var n=c(w,this),r=l(e),o=t===void 0,s=[],f=e,p,m,h,g,v,y;if(!n&&r&&o&&e.constructor===R)return e;if((r||c(w,e))&&(e=e.source,o&&(t=d(f))),e=e===void 0?``:u(e),t=t===void 0?``:u(t),f=e,b&&`dotAll`in M&&(m=!!t&&k(t,`s`)>-1,m&&(t=O(t,/s/g,``))),p=t,F&&`sticky`in M&&(h=!!t&&k(t,`y`)>-1,h&&I&&(t=O(t,/y/g,``))),x&&(g=te(e),e=g[0],s=g[1]),v=i(C(e,t),n?this:w,R),(m||h||s.length)&&(y=_(v),m&&(y.dotAll=!0,y.raw=R(ee(e),p)),h&&(y.sticky=!0),s.length&&(y.groups=s)),e!==f)try{a(v,`source`,f===``?`(?:)`:f)}catch{}return v},ne=s(C),z=0;ne.length>z;)p(R,C,ne[z++]);w.constructor=R,R.prototype=w,m(t,`RegExp`,R,{constructor:!0})}v(`RegExp`)})),Qu=v(((e,t)=>{var n=TypeError;t.exports=function(e){if(typeof e==`string`)return e;throw new n(`Argument is not a string`)}})),$u=v((()=>{var e=q(),t=G(),n=Qu(),r=Ar(),i=Ds().start,a=Gc(),o=Array,s=RegExp.escape,c=t(``.charAt),l=t(``.charCodeAt),u=t(1.1.toString),d=t([].join),f=/^[0-9a-z]/i,p=/^[$()*+./?[\\\]^{|}]/,m=RegExp(`^[!"#%&',\\-:;<=>@\`~`+a+`]`),h=t(f.exec),g={" ":`t`,"\n":`n`,"\v":`v`,"\f":`f`,"\r":`r`},_=function(e){var t=u(l(e,0),16);return t.length<3?`\\x`+i(t,2,`0`):`\\u`+i(t,4,`0`)};e({target:`RegExp`,stat:!0,forced:!s||s(`ab`)!==`\\x61b`},{escape:function(e){n(e);for(var t=e.length,i=o(t),a=0;a<t;a++){var s=c(e,a);if(a===0&&h(f,s))i[a]=_(s);else if(r(g,s))i[a]=`\\`+g[s];else if(h(p,s))i[a]=`\\`+s;else if(h(m,s))i[a]=_(s);else{var u=l(s,0);(u&63488)==55296?u>=56320||a+1>=t||(l(e,a+1)&64512)!=56320?i[a]=_(s):(i[a]=s,i[++a]=c(e,a)):i[a]=s}}return d(i,``)}})})),ed=v((()=>{var e=U(),t=Yu(),n=sr(),r=_i(),i=Kr().get,a=RegExp.prototype,o=TypeError;e&&t&&r(a,`dotAll`,{configurable:!0,get:function(){if(this!==a){if(n(this)===`RegExp`)return!!i(this).dotAll;throw new o(`Incompatible receiver, RegExp required`)}}})})),td=v(((e,t)=>{var n=W(),r=G(),i=ui(),a=Ku(),o=Ju(),s=Or(),c=mi(),l=Kr().get,u=Yu(),d=Xu(),f=s(`native-string-replace`,String.prototype.replace),p=RegExp.prototype.exec,m=p,h=r(``.charAt),g=r(``.indexOf),_=r(``.replace),v=r(``.slice),y=(function(){var e=/a/,t=/b*/g;return n(p,e,`a`),n(p,t,`a`),e.lastIndex!==0||t.lastIndex!==0})(),b=o.BROKEN_CARET,x=/()??/.exec(``)[1]!==void 0;(y||x||b||u||d)&&(m=function(e){var t=this,r=l(t),o=i(e),s=r.raw,u,d,S,C,w,T,E;if(s)return s.lastIndex=t.lastIndex,u=n(m,s,o),t.lastIndex=s.lastIndex,u;var D=r.groups,O=b&&t.sticky,k=n(a,t),A=t.source,j=0,M=o;if(O&&(k=_(k,`y`,``),g(k,`g`)===-1&&(k+=`g`),M=v(o,t.lastIndex),t.lastIndex>0&&(!t.multiline||t.multiline&&h(o,t.lastIndex-1)!==`
|
|
5
5
|
`)&&(A=`(?: `+A+`)`,M=` `+M,j++),d=RegExp(`^(?:`+A+`)`,k)),x&&(d=RegExp(`^`+A+`$(?!\\s)`,k)),y&&(S=t.lastIndex),C=n(p,O?d:t,M),O?C?(C.input=v(C.input,j),C[0]=v(C[0],j),C.index=t.lastIndex,t.lastIndex+=C[0].length):t.lastIndex=0:y&&C&&(t.lastIndex=t.global?C.index+C[0].length:S),x&&C&&C.length>1&&n(f,C[0],d,function(){for(w=1;w<arguments.length-2;w++)arguments[w]===void 0&&(C[w]=void 0)}),C&&D)for(C.groups=T=c(null),w=0;w<D.length;w++)E=D[w],T[E[0]]=C[E[1]];return C}),t.exports=m})),nd=v((()=>{var e=q(),t=td();e({target:`RegExp`,proto:!0,forced:/./.exec!==t},{exec:t})})),rd=v((()=>{var e=U(),t=_i(),n=Gu(),r=Ku();e&&!n.correct&&(t(RegExp.prototype,`flags`,{configurable:!0,get:r}),n.correct=!0)})),id=v((()=>{var e=U(),t=Ju().MISSED_STICKY,n=sr(),r=_i(),i=Kr().get,a=RegExp.prototype,o=TypeError;e&&t&&r(a,`sticky`,{configurable:!0,get:function(){if(this!==a){if(n(this)===`RegExp`)return!!i(this).sticky;throw new o(`Incompatible receiver, RegExp required`)}}})})),ad=v((()=>{nd();var e=q(),t=W(),n=fr(),r=K(),i=ui(),a=function(){var e=!1,t=/[ac]/;return t.exec=function(){return e=!0,/./.exec.apply(this,arguments)},t.test(`abc`)===!0&&e}(),o=/./.test;e({target:`RegExp`,proto:!0,forced:!a},{test:function(e){var a=r(this),s=i(e),c=a.exec;if(!n(c))return t(o,a,s);var l=t(c,a,s);return l===null?!1:(r(l),!0)}})})),od=v((()=>{var e=Vr().PROPER,t=Jr(),n=K(),r=ui(),i=H(),a=qu(),o=`toString`,s=RegExp.prototype,c=s[o],l=i(function(){return c.call({source:`a`,flags:`b`})!==`/a/b`}),u=e&&c.name!==o;(l||u)&&t(s,o,function(){var e=n(this),t=r(e.source),i=r(a(e));return`/`+t+`/`+i},{unsafe:!0})})),sd=v((()=>{hc()(`Set`,function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},gc())})),cd=v((()=>{sd()})),ld=v(((e,t)=>{var n=G(),r=Set.prototype;t.exports={Set,add:n(r.add),has:n(r.has),remove:n(r.delete),proto:r}})),ud=v(((e,t)=>{var n=ld().has;t.exports=function(e){return n(e),e}})),dd=v(((e,t)=>{var n=W();t.exports=function(e,t,r){for(var i=r?e:e.iterator,a=e.next,o,s;!(o=n(a,i)).done;)if(s=t(o.value),s!==void 0)return s}})),fd=v(((e,t)=>{var n=G(),r=dd(),i=ld(),a=i.Set,o=i.proto,s=n(o.forEach),c=n(o.keys),l=c(new a).next;t.exports=function(e,t,n){return n?r({iterator:c(e),next:l},t):s(e,t)}})),pd=v(((e,t)=>{var n=ld(),r=fd(),i=n.Set,a=n.add;t.exports=function(e){var t=new i;return r(e,function(e){a(t,e)}),t}})),md=v(((e,t)=>{t.exports=ta()(ld().proto,`size`,`get`)||function(e){return e.size}})),hd=v(((e,t)=>{var n=Sr(),r=K(),i=W(),a=Xr(),o=Ws(),s=`Invalid size`,c=RangeError,l=TypeError,u=Math.max,d=function(e,t){this.set=e,this.size=u(t,0),this.has=n(e.has),this.keys=n(e.keys)};d.prototype={getIterator:function(){return o(r(i(this.keys,this.set)))},includes:function(e){return i(this.has,this.set,e)}},t.exports=function(e){r(e);var t=+e.size;if(t!==t)throw new l(s);var n=a(t);if(n<0)throw new c(s);return new d(e,n)}})),gd=v(((e,t)=>{var n=ud(),r=ld(),i=pd(),a=md(),o=hd(),s=fd(),c=dd(),l=r.has,u=r.remove;t.exports=function(e){var t=n(this),r=o(e),d=i(t);return a(t)<=r.size?s(t,function(e){r.includes(e)&&u(d,e)}):c(r.getIterator(),function(e){l(d,e)&&u(d,e)}),d}})),_d=v(((e,t)=>{var n=mr(),r=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},i=function(e){return{size:e,has:function(){return!0},keys:function(){throw Error(`e`)}}};t.exports=function(e,t){var a=n(`Set`);try{new a()[e](r(0));try{return new a()[e](r(-1)),!1}catch{if(!t)return!0;try{return new a()[e](i(-1/0)),!1}catch{var o=new a;return o.add(1),o.add(2),t(o[e](i(1/0)))}}}catch{return!1}}})),vd=v((()=>{var e=q(),t=gd(),n=H();e({target:`Set`,proto:!0,real:!0,forced:!_d()(`difference`,function(e){return e.size===0})||n(function(){var e={size:1,has:function(){return!0},keys:function(){var e=0;return{next:function(){var n=e++>1;return t.has(1)&&t.clear(),{done:n,value:2}}}}},t=new Set([1,2,3,4]);return t.difference(e).size!==3})},{difference:t})})),yd=v(((e,t)=>{var n=ud(),r=ld(),i=md(),a=hd(),o=fd(),s=dd(),c=r.Set,l=r.add,u=r.has;t.exports=function(e){var t=n(this),r=a(e),d=new c;return i(t)>r.size?s(r.getIterator(),function(e){u(t,e)&&l(d,e)}):o(t,function(e){r.includes(e)&&l(d,e)}),d}})),bd=v((()=>{var e=q(),t=H(),n=yd();e({target:`Set`,proto:!0,real:!0,forced:!_d()(`intersection`,function(e){return e.size===2&&e.has(1)&&e.has(2)})||t(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!==`3,2`})},{intersection:n})})),xd=v(((e,t)=>{var n=ud(),r=ld().has,i=md(),a=hd(),o=fd(),s=dd(),c=Ca();t.exports=function(e){var t=n(this),l=a(e);if(i(t)<=l.size)return o(t,function(e){if(l.includes(e))return!1},!0)!==!1;var u=l.getIterator();return s(u,function(e){if(r(t,e))return c(u,`normal`,!1)})!==!1}})),Sd=v((()=>{var e=q(),t=xd();e({target:`Set`,proto:!0,real:!0,forced:!_d()(`isDisjointFrom`,function(e){return!e})},{isDisjointFrom:t})})),Cd=v(((e,t)=>{var n=ud(),r=md(),i=fd(),a=hd();t.exports=function(e){var t=n(this),o=a(e);return r(t)>o.size?!1:i(t,function(e){if(!o.includes(e))return!1},!0)!==!1}})),wd=v((()=>{var e=q(),t=Cd();e({target:`Set`,proto:!0,real:!0,forced:!_d()(`isSubsetOf`,function(e){return e})},{isSubsetOf:t})})),Td=v(((e,t)=>{var n=ud(),r=ld().has,i=md(),a=hd(),o=dd(),s=Ca();t.exports=function(e){var t=n(this),c=a(e);if(i(t)<c.size)return!1;var l=c.getIterator();return o(l,function(e){if(!r(t,e))return s(l,`normal`,!1)})!==!1}})),Ed=v((()=>{var e=q(),t=Td();e({target:`Set`,proto:!0,real:!0,forced:!_d()(`isSupersetOf`,function(e){return!e})},{isSupersetOf:t})})),Dd=v(((e,t)=>{var n=ud(),r=ld(),i=pd(),a=hd(),o=dd(),s=r.add,c=r.has,l=r.remove;t.exports=function(e){var t=n(this),r=a(e).getIterator(),u=i(t);return o(r,function(e){c(t,e)?l(u,e):s(u,e)}),u}})),Od=v(((e,t)=>{t.exports=function(e){try{var t=new Set,n=t[e]({size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},`next`,{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}});return n.size===1&&n.values().next().value===4}catch{return!1}}})),kd=v((()=>{var e=q(),t=Dd(),n=Od();e({target:`Set`,proto:!0,real:!0,forced:!_d()(`symmetricDifference`)||!n(`symmetricDifference`)},{symmetricDifference:t})})),Ad=v(((e,t)=>{var n=ud(),r=ld().add,i=pd(),a=hd(),o=dd();t.exports=function(e){var t=n(this),s=a(e).getIterator(),c=i(t);return o(s,function(e){r(c,e)}),c}})),jd=v((()=>{var e=q(),t=Ad(),n=Od();e({target:`Set`,proto:!0,real:!0,forced:!_d()(`union`)||!n(`union`)},{union:t})})),Md=v((()=>{var e=q(),t=G(),n=ur(),r=Xr(),i=ui(),a=H(),o=t(``.charAt);e({target:`String`,proto:!0,forced:a(function(){return`𠮷`.at(-2)!==`\ud842`})},{at:function(e){var t=i(n(this)),a=t.length,s=r(e),c=s>=0?s:a+s;return c<0||c>=a?void 0:o(t,c)}})})),Nd=v(((e,t)=>{var n=G(),r=Xr(),i=ui(),a=ur(),o=n(``.charAt),s=n(``.charCodeAt),c=n(``.slice),l=function(e){return function(t,n){var l=i(a(t)),u=r(n),d=l.length,f,p;return u<0||u>=d?e?``:void 0:(f=s(l,u),f<55296||f>56319||u+1===d||(p=s(l,u+1))<56320||p>57343?e?o(l,u):f:e?c(l,u,u+2):(f-55296<<10)+(p-56320)+65536)}};t.exports={codeAt:l(!1),charAt:l(!0)}})),Pd=v((()=>{var e=q(),t=Nd().codeAt;e({target:`String`,proto:!0},{codePointAt:function(e){return t(this,e)}})})),Fd=v(((e,t)=>{var n=Wu(),r=TypeError;t.exports=function(e){if(n(e))throw new r(`The method doesn't accept regular expressions`);return e}})),Id=v(((e,t)=>{var n=Mr()(`match`);t.exports=function(e){var t=/./;try{`/./`[e](t)}catch{try{return t[n]=!1,`/./`[e](t)}catch{}}return!1}})),Ld=v((()=>{var e=q(),t=Ci(),n=Lr().f,r=Qr(),i=ui(),a=Fd(),o=ur(),s=Id(),c=Tr(),l=t(``.slice),u=Math.min,d=s(`endsWith`);e({target:`String`,proto:!0,forced:!(!c&&!d&&function(){var e=n(String.prototype,`endsWith`);return e&&!e.writable}())&&!d},{endsWith:function(e){var t=i(o(this));a(e);var n=arguments.length>1?arguments[1]:void 0,s=t.length,c=n===void 0?s:u(r(n),s),d=i(e);return l(t,c-d.length,c)===d}})})),Rd=v((()=>{var e=q(),t=G(),n=Zr(),r=RangeError,i=String.fromCharCode,a=String.fromCodePoint,o=t([].join);e({target:`String`,stat:!0,arity:1,forced:!!a&&a.length!==1},{fromCodePoint:function(e){for(var t=[],a=arguments.length,s=0,c;a>s;){if(c=+arguments[s++],n(c,1114111)!==c)throw new r(c+` is not a valid code point`);t[s]=c<65536?i(c):i(((c-=65536)>>10)+55296,c%1024+56320)}return o(t,``)}})})),zd=v((()=>{var e=q(),t=G(),n=Fd(),r=ur(),i=ui(),a=Id(),o=t(``.indexOf);e({target:`String`,proto:!0,forced:!a(`includes`)},{includes:function(e){return!!~o(i(r(this)),i(n(e)),arguments.length>1?arguments[1]:void 0)}})})),Bd=v((()=>{var e=q(),t=G(),n=ur(),r=ui(),i=t(``.charCodeAt);e({target:`String`,proto:!0},{isWellFormed:function(){for(var e=r(n(this)),t=e.length,a=0;a<t;a++){var o=i(e,a);if((o&63488)==55296&&(o>=56320||++a>=t||(i(e,a)&64512)!=56320))return!1}return!0}})})),Vd=v((()=>{var e=Nd().charAt,t=ui(),n=Kr(),r=co(),i=lo(),a=`String Iterator`,o=n.set,s=n.getterFor(a);r(String,`String`,function(e){o(this,{type:a,string:t(e),index:0})},function(){var t=s(this),n=t.string,r=t.index,a;return r>=n.length?i(void 0,!0):(a=e(n,r),t.index+=a.length,i(a,!1))})})),Hd=v(((e,t)=>{nd();var n=W(),r=Jr(),i=td(),a=H(),o=Mr(),s=Br(),c=o(`species`),l=RegExp.prototype;t.exports=function(e,t,u,d){var f=o(e),p=!a(function(){var t={};return t[f]=function(){return 7},``[e](t)!==7}),m=p&&!a(function(){var t=!1,n=/a/;return e===`split`&&(n={},n.constructor={},n.constructor[c]=function(){return n},n.flags=``,n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](``),!t});if(!p||!m||u){var h=/./[f],g=t(f,``[e],function(e,t,r,a,o){var s=t.exec;return s===i||s===l.exec?p&&!o?{done:!0,value:n(h,t,r,a)}:{done:!0,value:n(e,r,t,a)}:{done:!1}});r(String.prototype,e,g[0]),r(l,f,g[1])}d&&s(l[f],`sham`,!0)}})),Ud=v(((e,t)=>{var n=Nd().charAt;t.exports=function(e,t,r){return t+(r?n(e,t).length:1)}})),Wd=v(((e,t)=>{var n=W(),r=K(),i=fr(),a=sr(),o=td(),s=TypeError;t.exports=function(e,t){var c=e.exec;if(i(c)){var l=n(c,e,t);return l!==null&&r(l),l}if(a(e)===`RegExp`)return n(o,e,t);throw new s(`RegExp#exec called on incompatible receiver`)}})),Gd=v((()=>{var e=W(),t=G(),n=Hd(),r=K(),i=pr(),a=Qr(),o=ui(),s=ur(),c=Cr(),l=Ud(),u=qu(),d=Wd(),f=t(``.indexOf);n(`match`,function(t,n,p){return[function(n){var r=s(this),a=i(n)?c(n,t):void 0;return a?e(a,n,r):new RegExp(n)[t](o(r))},function(e){var t=r(this),i=o(e),s=p(n,t,i);if(s.done)return s.value;var c=o(u(t));if(f(c,`g`)===-1)return d(t,i);var m=f(c,`u`)!==-1;t.lastIndex=0;for(var h=[],g=0,_;(_=d(t,i))!==null;){var v=o(_[0]);h[g]=v,v===``&&(t.lastIndex=l(i,a(t.lastIndex),m)),g++}return g===0?null:h}]})})),Kd=v((()=>{var e=q(),t=W(),n=Ci(),r=so(),i=lo(),a=ur(),o=Qr(),s=ui(),c=K(),l=pr(),u=sr(),d=Wu(),f=qu(),p=Cr(),m=Jr(),h=H(),g=Mr(),_=Kl(),v=Ud(),y=Wd(),b=Kr(),x=Tr(),S=g(`matchAll`),C=`RegExp String`,w=C+` Iterator`,T=b.set,E=b.getterFor(w),D=RegExp.prototype,O=TypeError,k=n(``.indexOf),A=n(``.matchAll),j=!!A&&!h(function(){A(`a`,/./)}),M=r(function(e,t,n,r){T(this,{type:w,regexp:e,string:t,global:n,unicode:r,done:!1})},C,function(){var e=E(this);if(e.done)return i(void 0,!0);var t=e.regexp,n=e.string,r=y(t,n);return r===null?(e.done=!0,i(void 0,!0)):e.global?(s(r[0])===``&&(t.lastIndex=v(n,o(t.lastIndex),e.unicode)),i(r,!1)):(e.done=!0,i(r,!1))}),N=function(e){var t=c(this),n=s(e),r=_(t,RegExp),i=s(f(t)),a=new r(r===RegExp?t.source:t,i),l=!!~k(i,`g`),u=!!~k(i,`u`);return a.lastIndex=o(t.lastIndex),new M(a,n,l,u)};e({target:`String`,proto:!0,forced:j},{matchAll:function(e){var n=a(this),r,i,o,c;if(l(e)){if(d(e)&&(r=s(a(f(e))),!~k(r,`g`)))throw new O("`.matchAll` does not allow non-global regexes");if(j)return A(n,e);if(o=p(e,S),o===void 0&&x&&u(e)===`RegExp`&&(o=N),o)return t(o,e,n)}else if(j)return A(n,e);return i=s(n),c=new RegExp(e,`g`),x?t(N,c,i):c[S](i)}}),x||S in D||m(D,S,N)})),qd=v(((e,t)=>{var n=gr();t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(n)})),Jd=v((()=>{var e=q(),t=Ds().end;e({target:`String`,proto:!0,forced:qd()},{padEnd:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}})})),Yd=v((()=>{var e=q(),t=Ds().start;e({target:`String`,proto:!0,forced:qd()},{padStart:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}})})),Xd=v((()=>{var e=q(),t=G(),n=dr(),r=kr(),i=ui(),a=$r(),o=t([].push),s=t([].join);e({target:`String`,stat:!0},{raw:function(e){var t=n(r(e).raw),c=a(t);if(!c)return``;for(var l=arguments.length,u=[],d=0;;){if(o(u,i(t[d++])),d===c)return s(u,``);d<l&&o(u,i(arguments[d]))}}})})),Zd=v((()=>{q()({target:`String`,proto:!0},{repeat:Es()})})),Qd=v(((e,t)=>{var n=G(),r=kr(),i=Math.floor,a=n(``.charAt),o=n(``.replace),s=n(``.slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(e,t,n,u,d,f){var p=n+e.length,m=u.length,h=l;return d!==void 0&&(d=r(d),h=c),o(f,h,function(r,o){var c;switch(a(o,0)){case`$`:return`$`;case`&`:return e;case"`":return s(t,0,n);case`'`:return s(t,p);case`<`:c=d[s(o,1,-1)];break;default:var l=+o;if(l===0)return r;if(l>m){var f=i(l/10);return f===0?r:f<=m?u[f-1]===void 0?a(o,1):u[f-1]+a(o,1):r}c=u[l-1]}return c===void 0?``:c})}})),$d=v((()=>{var e=Pi(),t=W(),n=G(),r=Hd(),i=H(),a=K(),o=fr(),s=pr(),c=Xr(),l=Qr(),u=ui(),d=ur(),f=Ud(),p=Cr(),m=Qd(),h=qu(),g=Wd(),_=Mr()(`replace`),v=Math.max,y=Math.min,b=n([].concat),x=n([].push),S=n(``.indexOf),C=n(``.slice),w=function(e){return e===void 0?e:String(e)},T=(function(){return`a`.replace(/./,`$0`)===`$0`})(),E=(function(){return/./[_]?/./[_](`a`,`$0`)===``:!1})();r(`replace`,function(n,r,i){var T=E?`$`:`$0`;return[function(e,n){var i=d(this),a=s(e)?p(e,_):void 0;return a?t(a,e,i,n):t(r,u(i),e,n)},function(t,n){var s=a(this),d=u(t);if(typeof n==`string`&&S(n,T)===-1&&S(n,`$<`)===-1){var p=i(r,s,d,n);if(p.done)return p.value}var _=o(n);_||(n=u(n));var E=u(h(s)),D=S(E,`g`)!==-1,O;D&&(O=S(E,`u`)!==-1,s.lastIndex=0);for(var k=[],A;A=g(s,d),!(A===null||(x(k,A),!D));)u(A[0])===``&&(s.lastIndex=f(d,l(s.lastIndex),O));for(var j=``,M=0,N=0;N<k.length;N++){A=k[N];for(var P=u(A[0]),F=v(y(c(A.index),d.length),0),I=[],L,ee=1;ee<A.length;ee++)x(I,w(A[ee]));var te=A.groups;if(_){var R=b([P],I,F,d);te!==void 0&&x(R,te),L=u(e(n,void 0,R))}else L=m(P,d,F,I,te,n);F>=M&&(j+=C(d,M,F)+L,M=F+P.length)}return j+C(d,M)}]},!!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`})||!T||E)})),ef=v((()=>{var e=q(),t=W(),n=G(),r=ur(),i=fr(),a=pr(),o=Wu(),s=ui(),c=Cr(),l=qu(),u=Qd(),d=Mr(),f=Tr(),p=d(`replace`),m=TypeError,h=n(``.indexOf),g=n(``.replace),_=n(``.slice),v=Math.max;e({target:`String`,proto:!0},{replaceAll:function(e,n){var d=r(this),y,b,x,S,C,w,T,E,D,O,k=0,A=``;if(a(e)){if(y=o(e),y&&(b=s(r(l(e))),!~h(b,`g`)))throw new m("`.replaceAll` does not allow non-global regexes");if(x=c(e,p),x)return t(x,e,d,n);if(f&&y)return g(s(d),e,n)}for(S=s(d),C=s(e),w=i(n),w||(n=s(n)),T=C.length,E=v(1,T),D=h(S,C);D!==-1;)O=w?s(n(C,D,S)):u(C,S,D,[],void 0,n),A+=_(S,k,D)+O,k=D+T,D=D+E>S.length?-1:h(S,C,D+E);return k<S.length&&(A+=_(S,k)),A}})})),tf=v((()=>{var e=W(),t=Hd(),n=K(),r=pr(),i=ur(),a=Ol(),o=ui(),s=Cr(),c=Wd();t(`search`,function(t,l,u){return[function(n){var a=i(this),c=r(n)?s(n,t):void 0;return c?e(c,n,a):new RegExp(n)[t](o(a))},function(e){var t=n(this),r=o(e),i=u(l,t,r);if(i.done)return i.value;var s=t.lastIndex;a(s,0)||(t.lastIndex=0);var d=c(t,r);return a(t.lastIndex,s)||(t.lastIndex=s),d===null?-1:d.index}]})})),nf=v((()=>{var e=W(),t=G(),n=Hd(),r=K(),i=pr(),a=ur(),o=Kl(),s=Ud(),c=Qr(),l=ui(),u=Cr(),d=Wd(),f=Ju(),p=H(),m=f.UNSUPPORTED_Y,h=4294967295,g=Math.min,_=t([].push),v=t(``.slice),y=!p(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=`ab`.split(e);return n.length!==2||n[0]!==`a`||n[1]!==`b`}),b=`abbc`.split(/(b)*/)[1]===`c`||`test`.split(/(?:)/,-1).length!==4||`ab`.split(/(?:ab)*/).length!==2||`.`.split(/(.?)(.?)/).length!==4||`.`.split(/()()/).length>1||``.split(/.?/).length;n(`split`,function(t,n,f){var p=`0`.split(void 0,0).length?function(t,r){return t===void 0&&r===0?[]:e(n,this,t,r)}:n;return[function(n,r){var o=a(this),s=i(n)?u(n,t):void 0;return s?e(s,n,o,r):e(p,l(o),n,r)},function(e,t){var i=r(this),a=l(e);if(!b){var u=f(p,i,a,t,p!==n);if(u.done)return u.value}var y=o(i,RegExp),x=i.unicode,S=(i.ignoreCase?`i`:``)+(i.multiline?`m`:``)+(i.unicode?`u`:``)+(m?`g`:`y`),C=new y(m?`^(?:`+i.source+`)`:i,S),w=t===void 0?h:t>>>0;if(w===0)return[];if(a.length===0)return d(C,a)===null?[a]:[];for(var T=0,E=0,D=[];E<a.length;){C.lastIndex=m?0:E;var O=d(C,m?v(a,E):a),k;if(O===null||(k=g(c(C.lastIndex+(m?E:0)),a.length))===T)E=s(a,E,x);else{if(_(D,v(a,T,E)),D.length===w)return D;for(var A=1;A<=O.length-1;A++)if(_(D,O[A]),D.length===w)return D;E=T=k}}return _(D,v(a,T)),D}]},b||!y,m)})),rf=v((()=>{var e=q(),t=Ci(),n=Lr().f,r=Qr(),i=ui(),a=Fd(),o=ur(),s=Id(),c=Tr(),l=t(``.slice),u=Math.min,d=s(`startsWith`);e({target:`String`,proto:!0,forced:!(!c&&!d&&function(){var e=n(String.prototype,`startsWith`);return e&&!e.writable}())&&!d},{startsWith:function(e){var t=i(o(this));a(e);var n=r(u(arguments.length>1?arguments[1]:void 0,t.length)),s=i(e);return l(t,n,n+s.length)===s}})})),af=v((()=>{var e=q(),t=G(),n=ur(),r=Xr(),i=ui(),a=t(``.slice),o=Math.max,s=Math.min;e({target:`String`,proto:!0,forced:!``.substr||`ab`.substr(-1)!==`b`},{substr:function(e,t){var c=i(n(this)),l=c.length,u=r(e),d,f;return u===1/0&&(u=0),u<0&&(u=o(l+u,0)),d=t===void 0?l:r(t),d<=0||d===1/0?``:(f=s(u+d,l),u>=f?``:a(c,u,f))}})})),of=v((()=>{var e=q(),t=W(),n=G(),r=ur(),i=ui(),a=H(),o=Array,s=n(``.charAt),c=n(``.charCodeAt),l=n([].join),u=``.toWellFormed,d=`�`,f=u&&a(function(){return t(u,1)!==`1`});e({target:`String`,proto:!0,forced:f},{toWellFormed:function(){var e=i(r(this));if(f)return t(u,e);for(var n=e.length,a=o(n),p=0;p<n;p++){var m=c(e,p);(m&63488)==55296?m>=56320||p+1>=n||(c(e,p+1)&64512)!=56320?a[p]=d:(a[p]=s(e,p),a[++p]=s(e,p)):a[p]=s(e,p)}return l(a,``)}})})),sf=v(((e,t)=>{var n=Vr().PROPER,r=H(),i=Gc(),a=`
`;t.exports=function(e){return r(function(){return!!i[e]()||a[e]()!==a||n&&i[e].name!==e})}})),cf=v((()=>{var e=q(),t=Kc().trim;e({target:`String`,proto:!0,forced:sf()(`trim`)},{trim:function(){return t(this)}})})),lf=v(((e,t)=>{var n=Kc().end;t.exports=sf()(`trimEnd`)?function(){return n(this)}:``.trimEnd})),uf=v((()=>{var e=q(),t=lf();e({target:`String`,proto:!0,name:`trimEnd`,forced:``.trimRight!==t},{trimRight:t})})),df=v((()=>{uf();var e=q(),t=lf();e({target:`String`,proto:!0,name:`trimEnd`,forced:``.trimEnd!==t},{trimEnd:t})})),ff=v(((e,t)=>{var n=Kc().start;t.exports=sf()(`trimStart`)?function(){return n(this)}:``.trimStart})),pf=v((()=>{var e=q(),t=ff();e({target:`String`,proto:!0,name:`trimStart`,forced:``.trimLeft!==t},{trimLeft:t})})),mf=v((()=>{pf();var e=q(),t=ff();e({target:`String`,proto:!0,name:`trimStart`,forced:``.trimStart!==t},{trimStart:t})})),hf=v(((e,t)=>{var n=G(),r=ur(),i=ui(),a=/"/g,o=n(``.replace);t.exports=function(e,t,n,s){var c=i(r(e)),l=`<`+t;return n!==``&&(l+=` `+n+`="`+o(i(s),a,`"`)+`"`),l+`>`+c+`</`+t+`>`}})),gf=v(((e,t)=>{var n=H();t.exports=function(e){return n(function(){var t=``[e](`"`);return t!==t.toLowerCase()||t.split(`"`).length>3})}})),_f=v((()=>{var e=q(),t=hf();e({target:`String`,proto:!0,forced:gf()(`anchor`)},{anchor:function(e){return t(this,`a`,`name`,e)}})})),vf=v((()=>{var e=q(),t=hf();e({target:`String`,proto:!0,forced:gf()(`big`)},{big:function(){return t(this,`big`,``,``)}})})),yf=v((()=>{var e=q(),t=hf();e({target:`String`,proto:!0,forced:gf()(`blink`)},{blink:function(){return t(this,`blink`,``,``)}})})),bf=v((()=>{var e=q(),t=hf();e({target:`String`,proto:!0,forced:gf()(`bold`)},{bold:function(){return t(this,`b`,``,``)}})})),xf=v((()=>{var e=q(),t=hf();e({target:`String`,proto:!0,forced:gf()(`fixed`)},{fixed:function(){return t(this,`tt`,``,``)}})})),Sf=v((()=>{var e=q(),t=hf();e({target:`String`,proto:!0,forced:gf()(`fontcolor`)},{fontcolor:function(e){return t(this,`font`,`color`,e)}})})),Cf=v((()=>{var e=q(),t=hf();e({target:`String`,proto:!0,forced:gf()(`fontsize`)},{fontsize:function(e){return t(this,`font`,`size`,e)}})})),wf=v((()=>{var e=q(),t=hf();e({target:`String`,proto:!0,forced:gf()(`italics`)},{italics:function(){return t(this,`i`,``,``)}})})),Tf=v((()=>{var e=q(),t=hf();e({target:`String`,proto:!0,forced:gf()(`link`)},{link:function(e){return t(this,`a`,`href`,e)}})})),Ef=v((()=>{var e=q(),t=hf();e({target:`String`,proto:!0,forced:gf()(`small`)},{small:function(){return t(this,`small`,``,``)}})})),Df=v((()=>{var e=q(),t=hf();e({target:`String`,proto:!0,forced:gf()(`strike`)},{strike:function(){return t(this,`strike`,``,``)}})})),Of=v((()=>{var e=q(),t=hf();e({target:`String`,proto:!0,forced:gf()(`sub`)},{sub:function(){return t(this,`sub`,``,``)}})})),kf=v((()=>{var e=q(),t=hf();e({target:`String`,proto:!0,forced:gf()(`sup`)},{sup:function(){return t(this,`sup`,``,``)}})})),Af=v(((e,t)=>{var n=V(),r=H(),i=to(),a=rs().NATIVE_ARRAY_BUFFER_VIEWS,o=n.ArrayBuffer,s=n.Int8Array;t.exports=!a||!r(function(){s(1)})||!r(function(){new s(-1)})||!i(function(e){new s,new s(null),new s(1.5),new s(e)},!0)||r(function(){return new s(new o(2),1,void 0).length!==1})})),jf=v(((e,t)=>{var n=Ks(),r=RangeError;t.exports=function(e,t){var i=n(e);if(i%t)throw new r(`Wrong offset`);return i}})),Mf=v(((e,t)=>{var n=Math.round;t.exports=function(e){var t=n(e);return t<0?0:t>255?255:t&255}})),Nf=v(((e,t)=>{var n=li();t.exports=function(e){var t=n(e);return t===`BigInt64Array`||t===`BigUint64Array`}})),Pf=v(((e,t)=>{var n=Nr(),r=TypeError;t.exports=function(e){var t=n(e,`number`);if(typeof t==`number`)throw new r(`Can't convert number to bigint`);return BigInt(t)}})),Ff=v(((e,t)=>{var n=wi(),r=W(),i=Gl(),a=kr(),o=$r(),s=Sa(),c=xa(),l=ba(),u=Nf(),d=rs().aTypedArrayConstructor,f=Pf();t.exports=function(e){var t=i(this),p=a(e),m=arguments.length,h=m>1?arguments[1]:void 0,g=h!==void 0,_=c(p),v,y,b,x,S,C,w,T;if(_&&!l(_))for(w=s(p,_),T=w.next,p=[];!(C=r(T,w)).done;)p.push(C.value);for(g&&m>2&&(h=n(h,arguments[2])),y=o(p),b=new(d(t))(y),x=u(b),v=0;y>v;v++)S=g?h(p[v],v):p[v],b[v]=x?f(S):+S;return b}})),If=v(((e,t)=>{var n=q(),r=V(),i=W(),a=U(),o=Af(),s=rs(),c=ts(),l=Jo(),u=or(),d=Br(),f=Zc(),p=Qr(),m=Yo(),h=jf(),g=Mf(),_=Pr(),v=Ar(),y=li(),b=pr(),x=br(),S=mi(),C=hr(),w=ia(),T=ri().f,E=Ff(),D=ki().forEach,O=Mo(),k=_i(),A=zr(),j=Lr(),M=Lo(),N=Kr(),P=oa(),F=N.get,I=N.set,L=N.enforce,ee=A.f,te=j.f,R=r.RangeError,ne=c.ArrayBuffer,z=ne.prototype,re=c.DataView,ie=s.NATIVE_ARRAY_BUFFER_VIEWS,ae=s.TYPED_ARRAY_TAG,oe=s.TypedArray,se=s.TypedArrayPrototype,ce=s.isTypedArray,le=`BYTES_PER_ELEMENT`,ue=`Wrong length`,de=function(e,t){k(e,t,{configurable:!0,get:function(){return F(this)[t]}})},fe=function(e){var t;return C(z,e)||(t=y(e))===`ArrayBuffer`||t===`SharedArrayBuffer`},pe=function(e,t){return ce(e)&&!x(t)&&t in e&&f(+t)&&t>=0},me=function(e,t){return t=_(t),pe(e,t)?u(2,e[t]):te(e,t)},he=function(e,t,n){return t=_(t),pe(e,t)&&b(n)&&v(n,`value`)&&!v(n,`get`)&&!v(n,`set`)&&!n.configurable&&(!v(n,`writable`)||n.writable)&&(!v(n,`enumerable`)||n.enumerable)?(e[t]=n.value,e):ee(e,t,n)};a?(ie||(j.f=me,A.f=he,de(se,`buffer`),de(se,`byteOffset`),de(se,`byteLength`),de(se,`length`)),n({target:`Object`,stat:!0,forced:!ie},{getOwnPropertyDescriptor:me,defineProperty:he}),t.exports=function(e,t,a){var s=e.match(/\d+/)[0]/8,c=e+(a?`Clamped`:``)+`Array`,u=`get`+e,f=`set`+e,_=r[c],v=_,y=v&&v.prototype,x={},C=function(e,t){var n=F(e);return n.view[u](t*s+n.byteOffset,!0)},k=function(e,t,n){var r=F(e);r.view[f](t*s+r.byteOffset,a?g(n):n,!0)},A=function(e,t){ee(e,t,{get:function(){return C(this,t)},set:function(e){return k(this,t,e)},enumerable:!0})};ie?o&&(v=t(function(e,t,n,r){return l(e,y),P(function(){return b(t)?fe(t)?r===void 0?n===void 0?new _(t):new _(t,h(n,s)):new _(t,h(n,s),r):ce(t)?M(v,t):i(E,v,t):new _(m(t))}(),e,v)}),w&&w(v,oe),D(T(_),function(e){e in v||d(v,e,_[e])}),v.prototype=y):(v=t(function(e,t,n,r){l(e,y);var a=0,o=0,c,u,d;if(!b(t))d=m(t),u=d*s,c=new ne(u);else if(fe(t)){c=t,o=h(n,s);var f=t.byteLength;if(r===void 0){if(f%s||(u=f-o,u<0))throw new R(ue)}else if(u=p(r)*s,u+o>f)throw new R(ue);d=u/s}else if(ce(t))return M(v,t);else return i(E,v,t);for(I(e,{buffer:c,byteOffset:o,byteLength:u,length:d,view:new re(c)});a<d;)A(e,a++)}),w&&w(v,oe),y=v.prototype=S(se)),y.constructor!==v&&d(y,`constructor`,v),L(y).TypedArrayConstructor=v,ae&&d(y,ae,c);var j=v!==_;x[c]=v,n({global:!0,constructor:!0,forced:j,sham:!ie},x),le in v||d(v,le,s),le in y||d(y,le,s),O(c)}):t.exports=function(){}})),Lf=v((()=>{If()(`Float32`,function(e){return function(t,n,r){return e(this,t,n,r)}})})),Rf=v((()=>{If()(`Float64`,function(e){return function(t,n,r){return e(this,t,n,r)}})})),zf=v((()=>{If()(`Int8`,function(e){return function(t,n,r){return e(this,t,n,r)}})})),Bf=v((()=>{If()(`Int16`,function(e){return function(t,n,r){return e(this,t,n,r)}})})),Vf=v((()=>{If()(`Int32`,function(e){return function(t,n,r){return e(this,t,n,r)}})})),Hf=v((()=>{If()(`Uint8`,function(e){return function(t,n,r){return e(this,t,n,r)}})})),Uf=v((()=>{If()(`Uint8`,function(e){return function(t,n,r){return e(this,t,n,r)}},!0)})),Wf=v((()=>{If()(`Uint16`,function(e){return function(t,n,r){return e(this,t,n,r)}})})),Gf=v((()=>{If()(`Uint32`,function(e){return function(t,n,r){return e(this,t,n,r)}})})),Kf=v((()=>{var e=rs(),t=$r(),n=Xr(),r=e.aTypedArray,i=e.exportTypedArrayMethod;i(`at`,function(e){var i=r(this),a=t(i),o=n(e),s=o>=0?o:a+o;return s<0||s>=a?void 0:i[s]})})),qf=v((()=>{var e=G(),t=rs(),n=e(Ia()),r=t.aTypedArray,i=t.exportTypedArrayMethod;i(`copyWithin`,function(e,t){return n(r(this),e,t,arguments.length>2?arguments[2]:void 0)})})),Jf=v((()=>{var e=rs(),t=ki().every,n=e.aTypedArray,r=e.exportTypedArrayMethod;r(`every`,function(e){return t(n(this),e,arguments.length>1?arguments[1]:void 0)})})),Yf=v((()=>{var e=rs(),t=Ba(),n=Pf(),r=li(),i=W(),a=G(),o=H(),s=e.aTypedArray,c=e.exportTypedArrayMethod,l=a(``.slice);c(`fill`,function(e){var a=arguments.length;s(this);var o=l(r(this),0,3)===`Big`?n(e):+e;return i(t,this,o,a>1?arguments[1]:void 0,a>2?arguments[2]:void 0)},o(function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),e!==1}))})),Xf=v(((e,t)=>{var n=Lo(),r=rs().getTypedArrayConstructor;t.exports=function(e,t){return n(r(e),t)}})),Zf=v((()=>{var e=rs(),t=ki().filter,n=Xf(),r=e.aTypedArray,i=e.exportTypedArrayMethod;i(`filter`,function(e){var i=t(r(this),e,arguments.length>1?arguments[1]:void 0);return n(this,i)})})),Qf=v((()=>{var e=rs(),t=ki().find,n=e.aTypedArray,r=e.exportTypedArrayMethod;r(`find`,function(e){return t(n(this),e,arguments.length>1?arguments[1]:void 0)})})),$f=v((()=>{var e=rs(),t=ki().findIndex,n=e.aTypedArray,r=e.exportTypedArrayMethod;r(`findIndex`,function(e){return t(n(this),e,arguments.length>1?arguments[1]:void 0)})})),ep=v((()=>{var e=rs(),t=Ga().findLast,n=e.aTypedArray,r=e.exportTypedArrayMethod;r(`findLast`,function(e){return t(n(this),e,arguments.length>1?arguments[1]:void 0)})})),tp=v((()=>{var e=rs(),t=Ga().findLastIndex,n=e.aTypedArray,r=e.exportTypedArrayMethod;r(`findLastIndex`,function(e){return t(n(this),e,arguments.length>1?arguments[1]:void 0)})})),np=v((()=>{var e=rs(),t=ki().forEach,n=e.aTypedArray,r=e.exportTypedArrayMethod;r(`forEach`,function(e){t(n(this),e,arguments.length>1?arguments[1]:void 0)})})),rp=v((()=>{var e=Af(),t=rs().exportTypedArrayStaticMethod;t(`from`,Ff(),e)})),ip=v((()=>{var e=rs(),t=ei().includes,n=e.aTypedArray,r=e.exportTypedArrayMethod;r(`includes`,function(e){return t(n(this),e,arguments.length>1?arguments[1]:void 0)})})),ap=v((()=>{var e=rs(),t=ei().indexOf,n=e.aTypedArray,r=e.exportTypedArrayMethod;r(`indexOf`,function(e){return t(n(this),e,arguments.length>1?arguments[1]:void 0)})})),op=v((()=>{var e=V(),t=H(),n=G(),r=rs(),i=uo(),a=Mr()(`iterator`),o=e.Uint8Array,s=n(i.values),c=n(i.keys),l=n(i.entries),u=r.aTypedArray,d=r.exportTypedArrayMethod,f=o&&o.prototype,p=!t(function(){f[a].call([1])}),m=!!f&&f.values&&f[a]===f.values&&f.values.name===`values`,h=function(){return s(u(this))};d(`entries`,function(){return l(u(this))},p),d(`keys`,function(){return c(u(this))},p),d(`values`,h,p||!m,{name:`values`}),d(a,h,p||!m,{name:`values`})})),sp=v((()=>{var e=rs(),t=G(),n=e.aTypedArray,r=e.exportTypedArrayMethod,i=t([].join);r(`join`,function(e){return i(n(this),e)})})),cp=v((()=>{var e=rs(),t=Pi(),n=po(),r=e.aTypedArray,i=e.exportTypedArrayMethod;i(`lastIndexOf`,function(e){var i=arguments.length;return t(n,r(this),i>1?[e,arguments[1]]:[e])})})),lp=v((()=>{var e=rs(),t=ki().map,n=e.aTypedArray,r=e.getTypedArrayConstructor,i=e.exportTypedArrayMethod;i(`map`,function(e){return t(n(this),e,arguments.length>1?arguments[1]:void 0,function(e,t){return new(r(e))(t)})})})),up=v((()=>{var e=rs(),t=Af(),n=e.aTypedArrayConstructor,r=e.exportTypedArrayStaticMethod;r(`of`,function(){for(var e=0,t=arguments.length,r=new(n(this))(t);t>e;)r[e]=arguments[e++];return r},t)})),dp=v((()=>{var e=rs(),t=yo().left,n=e.aTypedArray,r=e.exportTypedArrayMethod;r(`reduce`,function(e){var r=arguments.length;return t(n(this),e,r,r>1?arguments[1]:void 0)})})),fp=v((()=>{var e=rs(),t=yo().right,n=e.aTypedArray,r=e.exportTypedArrayMethod;r(`reduceRight`,function(e){var r=arguments.length;return t(n(this),e,r,r>1?arguments[1]:void 0)})})),pp=v((()=>{var e=rs(),t=e.aTypedArray,n=e.exportTypedArrayMethod,r=Math.floor;n(`reverse`,function(){for(var e=this,n=t(e).length,i=r(n/2),a=0,o;a<i;)o=e[a],e[a++]=e[--n],e[n]=o;return e})})),mp=v((()=>{var e=V(),t=W(),n=rs(),r=$r(),i=jf(),a=kr(),o=H(),s=e.RangeError,c=e.Int8Array,l=c&&c.prototype,u=l&&l.set,d=n.aTypedArray,f=n.exportTypedArrayMethod,p=!o(function(){var e=new Uint8ClampedArray(2);return t(u,e,{length:1,0:3},1),e[1]!==3}),m=p&&n.NATIVE_ARRAY_BUFFER_VIEWS&&o(function(){var e=new c(2);return e.set(1),e.set(`2`,1),e[0]!==0||e[1]!==2});f(`set`,function(e){d(this);var n=i(arguments.length>1?arguments[1]:void 0,1),o=a(e);if(p)return t(u,this,o,n);var c=this.length,l=r(o),f=0;if(l+n>c)throw new s(`Wrong length`);for(;f<l;)this[n+f]=o[f++]},!p||m)})),hp=v((()=>{var e=rs(),t=H(),n=hi(),r=e.aTypedArray,i=e.getTypedArrayConstructor,a=e.exportTypedArrayMethod;a(`slice`,function(e,t){for(var a=n(r(this),e,t),o=i(this),s=0,c=a.length,l=new o(c);c>s;)l[s]=a[s++];return l},t(function(){new Int8Array(1).slice()}))})),gp=v((()=>{var e=rs(),t=ki().some,n=e.aTypedArray,r=e.exportTypedArrayMethod;r(`some`,function(e){return t(n(this),e,arguments.length>1?arguments[1]:void 0)})})),_p=v((()=>{var e=V(),t=Ci(),n=H(),r=Sr(),i=Do(),a=rs(),o=Oo(),s=ko(),c=_r(),l=Ao(),u=a.aTypedArray,d=a.exportTypedArrayMethod,f=e.Uint16Array,p=f&&t(f.prototype.sort),m=!!p&&!(n(function(){p(new f(2),null)})&&n(function(){p(new f(2),{})})),h=!!p&&!n(function(){if(c)return c<74;if(o)return o<67;if(s)return!0;if(l)return l<602;var e=new f(516),t=Array(516),n,r;for(n=0;n<516;n++)r=n%4,e[n]=515-n,t[n]=n-2*r+3;for(p(e,function(e,t){return(e/4|0)-(t/4|0)}),n=0;n<516;n++)if(e[n]!==t[n])return!0}),g=function(e){return function(t,n){return e===void 0?n===n?t===t?t===0&&n===0?1/t>0&&1/n<0?1:-1:t>n:1:-1:+e(t,n)||0}};d(`sort`,function(e){return e!==void 0&&r(e),h?p(this,e):i(u(this),g(e))},!h||m)})),vp=v((()=>{var e=rs(),t=Qr(),n=Zr(),r=e.aTypedArray,i=e.getTypedArrayConstructor,a=e.exportTypedArrayMethod;a(`subarray`,function(e,a){var o=r(this),s=o.length,c=n(e,s);return new(i(o))(o.buffer,o.byteOffset+c*o.BYTES_PER_ELEMENT,t((a===void 0?s:n(a,s))-c))})})),yp=v((()=>{var e=V(),t=Pi(),n=rs(),r=H(),i=hi(),a=e.Int8Array,o=n.aTypedArray,s=n.exportTypedArrayMethod,c=[].toLocaleString,l=!!a&&r(function(){c.call(new a(1))});s(`toLocaleString`,function(){return t(c,l?i(o(this)):o(this),i(arguments))},r(function(){return[1,2].toLocaleString()!==new a([1,2]).toLocaleString()})||!r(function(){a.prototype.toLocaleString.call([1,2])}))})),bp=v((()=>{var e=Fo(),t=rs(),n=t.aTypedArray,r=t.exportTypedArrayMethod,i=t.getTypedArrayConstructor;r(`toReversed`,function(){return e(n(this),i(this))})})),xp=v((()=>{var e=rs(),t=G(),n=Sr(),r=Lo(),i=e.aTypedArray,a=e.getTypedArrayConstructor,o=e.exportTypedArrayMethod,s=t(e.TypedArrayPrototype.sort);o(`toSorted`,function(e){e!==void 0&&n(e);var t=i(this);return s(r(a(t),t),e)})})),Sp=v((()=>{var e=rs().exportTypedArrayMethod,t=H(),n=V(),r=G(),i=n.Uint8Array,a=i&&i.prototype||{},o=[].toString,s=r([].join);t(function(){o.call({})})&&(o=function(){return s(this)});var c=a.toString!==o;e(`toString`,o,c)})),Cp=v((()=>{var e=Wo(),t=rs(),n=Nf(),r=Xr(),i=Pf(),a=t.aTypedArray,o=t.getTypedArrayConstructor,s=t.exportTypedArrayMethod,c=function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(e){return e===8}}(),l=c&&function(){try{new Int8Array(1).with(-.5,1)}catch{return!0}}();s(`with`,{with:function(t,s){var c=a(this),l=r(t),u=n(c)?i(s):+s;return e(c,o(c),l,u)}}.with,!c||l)})),wp=v(((e,t)=>{var n=pr(),r=String,i=TypeError;t.exports=function(e){if(e===void 0||n(e))return e;throw new i(r(e)+` is not an object or undefined`)}})),Tp=v(((e,t)=>{var n=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`,r=n+`+/`,i=n+`-_`,a=function(e){for(var t={},n=0;n<64;n++)t[e.charAt(n)]=n;return t};t.exports={i2c:r,c2i:a(r),i2cUrl:i,c2iUrl:a(i)}})),Ep=v(((e,t)=>{var n=TypeError;t.exports=function(e){var t=e&&e.alphabet;if(t===void 0||t===`base64`||t===`base64url`)return t||`base64`;throw new n("Incorrect `alphabet` option")}})),Dp=v(((e,t)=>{var n=V(),r=G(),i=wp(),a=Qu(),o=Ar(),s=Tp(),c=Ep(),l=hs(),u=s.c2i,d=s.c2iUrl,f=n.SyntaxError,p=n.TypeError,m=r(``.charAt),h=function(e,t){for(var n=e.length;t<n;t++){var r=m(e,t);if(r!==` `&&r!==` `&&r!==`
|
|
6
|
-
`&&r!==`\f`&&r!==`\r`)break}return t},g=function(e,t,n){var r=e.length;r<4&&(e+=r===2?`AA`:`A`);var i=(t[m(e,0)]<<18)+(t[m(e,1)]<<12)+(t[m(e,2)]<<6)+t[m(e,3)],a=[i>>16&255,i>>8&255,i&255];if(r===2){if(n&&a[1]!==0)throw new f(`Extra bits`);return[a[0]]}if(r===3){if(n&&a[2]!==0)throw new f(`Extra bits`);return[a[0],a[1]]}return a},_=function(e,t,n){for(var r=t.length,i=0;i<r;i++)e[n+i]=t[i];return n+r};t.exports=function(e,t,n,r){a(e),i(t);var s=c(t)===`base64`?u:d,v=t?t.lastChunkHandling:void 0;if(v===void 0&&(v=`loose`),v!==`loose`&&v!==`strict`&&v!==`stop-before-partial`)throw new p("Incorrect `lastChunkHandling` option");n&&l(n.buffer);var y=e.length,b=n||[],x=0,S=0,C=``,w=0;if(r)for(;;){if(w=h(e,w),w===y){if(C.length>0){if(v===`stop-before-partial`)break;if(v===`loose`){if(C.length===1)throw new f(`Malformed padding: exactly one additional character`);x=_(b,g(C,s,!1),x)}else throw new f(`Missing padding`)}S=y;break}var T=m(e,w);if(++w,T===`=`){if(C.length<2)throw new f(`Padding is too early`);if(w=h(e,w),C.length===2){if(w===y){if(v===`stop-before-partial`)break;throw new f(`Malformed padding: only one =`)}m(e,w)===`=`&&(++w,w=h(e,w))}if(w<y)throw new f(`Unexpected character after padding`);x=_(b,g(C,s,v===`strict`),x),S=y;break}if(!o(s,T))throw new f(`Unexpected character`);var E=r-x;if(E===1&&C.length===2||E===2&&C.length===3||(C+=T,C.length===4&&(x=_(b,g(C,s,!1),x),C=``,S=w,x===r)))break}return{bytes:b,read:S,written:x}}})),Op=v((()=>{var e=q(),t=V(),n=Lo(),r=Dp(),i=t.Uint8Array,a=!i||!i.fromBase64||!function(){try{i.fromBase64(`a`);return}catch{}try{i.fromBase64(``,null)}catch{return!0}}();i&&e({target:`Uint8Array`,stat:!0,forced:a},{fromBase64:function(e){return n(i,r(e,arguments.length>1?arguments[1]:void 0,null,9007199254740991).bytes)}})})),kp=v(((e,t)=>{var n=V(),r=G(),i=n.Uint8Array,a=n.SyntaxError,o=n.parseInt,s=Math.min,c=/[^\da-f]/i,l=r(c.exec),u=r(``.slice);t.exports=function(e,t){var n=e.length;if(n%2!=0)throw new a(`String should be an even number of characters`);for(var r=t?s(t.length,n/2):n/2,d=t||new i(r),f=0,p=0;p<r;){var m=u(e,f,f+=2);if(l(c,m))throw new a(`String should only contain hex characters`);d[p++]=o(m,16)}return{bytes:d,read:f}}})),Ap=v((()=>{var e=q(),t=V(),n=Qu(),r=kp();t.Uint8Array&&e({target:`Uint8Array`,stat:!0},{fromHex:function(e){return r(n(e)).bytes}})})),jp=v(((e,t)=>{var n=li(),r=TypeError;t.exports=function(e){if(n(e)===`Uint8Array`)return e;throw new r(`Argument is not an Uint8Array`)}})),Mp=v((()=>{var e=q(),t=V(),n=Dp(),r=jp(),i=t.Uint8Array,a=!i||!i.prototype.setFromBase64||!function(){var e=new i([255,255,255,255,255]);try{e.setFromBase64(``,null);return}catch{}try{e.setFromBase64(`a`);return}catch{}try{e.setFromBase64(`MjYyZg===`)}catch{return e[0]===50&&e[1]===54&&e[2]===50&&e[3]===255&&e[4]===255}}();i&&e({target:`Uint8Array`,proto:!0,forced:a},{setFromBase64:function(e){r(this);var t=n(e,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:t.read,written:t.written}}})})),Np=v((()=>{var e=q(),t=V(),n=Qu(),r=jp(),i=hs(),a=kp();t.Uint8Array&&e({target:`Uint8Array`,proto:!0},{setFromHex:function(e){r(this),n(e),i(this.buffer);var t=a(e,this).read;return{read:t,written:t/2}}})})),Pp=v((()=>{var e=q(),t=V(),n=G(),r=wp(),i=jp(),a=hs(),o=Tp(),s=Ep(),c=o.i2c,l=o.i2cUrl,u=n(``.charAt),d=t.Uint8Array,f=!d||!d.prototype.toBase64||!function(){try{new d().toBase64(null)}catch{return!0}}();d&&e({target:`Uint8Array`,proto:!0,forced:f},{toBase64:function(){var e=i(this),t=arguments.length?r(arguments[0]):void 0,n=s(t)===`base64`?c:l,o=!!t&&!!t.omitPadding;a(this.buffer);for(var d=``,f=0,p=e.length,m,h=function(e){return u(n,m>>6*e&63)};f+2<p;f+=3)m=(e[f]<<16)+(e[f+1]<<8)+e[f+2],d+=h(3)+h(2)+h(1)+h(0);return f+2===p?(m=(e[f]<<16)+(e[f+1]<<8),d+=h(3)+h(2)+h(1)+(o?``:`=`)):f+1===p&&(m=e[f]<<16,d+=h(3)+h(2)+(o?``:`==`)),d}})})),Fp=v((()=>{var e=q(),t=V(),n=G(),r=jp(),i=hs(),a=n(1.1.toString),o=t.Uint8Array,s=!o||!o.prototype.toHex||!(function(){try{return new o([255,255,255,255,255,255,255,255]).toHex()===`ffffffffffffffff`}catch{return!1}})();o&&e({target:`Uint8Array`,proto:!0,forced:s},{toHex:function(){r(this),i(this.buffer);for(var e=``,t=0,n=this.length;t<n;t++){var o=a(this[t],16);e+=o.length===1?`0`+o:o}return e}})})),Ip=v((()=>{var e=q(),t=G(),n=ui(),r=String.fromCharCode,i=t(``.charAt),a=t(/./.exec),o=t(``.slice),s=/^[\da-f]{2}$/i,c=/^[\da-f]{4}$/i;e({global:!0},{unescape:function(e){for(var t=n(e),l=``,u=t.length,d=0,f,p;d<u;){if(f=i(t,d++),f===`%`){if(i(t,d)===`u`){if(p=o(t,d+1,d+5),a(c,p)){l+=r(parseInt(p,16)),d+=5;continue}}else if(p=o(t,d,d+2),a(s,p)){l+=r(parseInt(p,16)),d+=2;continue}}l+=f}return l}})})),Lp=v(((e,t)=>{var n=G(),r=qo(),i=mc().getWeakData,a=Jo(),o=K(),s=lr(),c=pr(),l=wa(),u=ki(),d=Ar(),f=Kr(),p=f.set,m=f.getterFor,h=u.find,g=u.findIndex,_=n([].splice),v=0,y=function(e){return e.frozen||=new b},b=function(){this.entries=[]},x=function(e,t){return h(e.entries,function(e){return e[0]===t})};b.prototype={get:function(e){var t=x(this,e);if(t)return t[1]},has:function(e){return!!x(this,e)},set:function(e,t){var n=x(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=g(this.entries,function(t){return t[0]===e});return~t&&_(this.entries,t,1),!!~t}},t.exports={getConstructor:function(e,t,n,u){var f=e(function(e,r){a(e,h),p(e,{type:t,id:v++,frozen:null}),s(r)||l(r,e[u],{that:e,AS_ENTRIES:n})}),h=f.prototype,g=m(t),_=function(e,t,n){var r=g(e),a=i(o(t),!0);return a===!0?y(r).set(t,n):a[r.id]=n,e};return r(h,{delete:function(e){var t=g(this);if(!c(e))return!1;var n=i(e);return n===!0?y(t).delete(e):n&&d(n,t.id)&&delete n[t.id]},has:function(e){var t=g(this);if(!c(e))return!1;var n=i(e);return n===!0?y(t).has(e):n&&d(n,t.id)}}),r(h,n?{get:function(e){var t=g(this);if(c(e)){var n=i(e);if(n===!0)return y(t).get(e);if(n)return n[t.id]}},set:function(e,t){return _(this,e,t)}}:{add:function(e){return _(this,e,!0)}}),f}}})),Rp=v((()=>{var e=pc(),t=V(),n=G(),r=qo(),i=mc(),a=hc(),o=Lp(),s=pr(),c=Kr().enforce,l=H(),u=Ur(),d=Object,f=Array.isArray,p=d.isExtensible,m=d.isFrozen,h=d.isSealed,g=d.freeze,_=d.seal,v=!t.ActiveXObject&&`ActiveXObject`in t,y,b=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},x=a(`WeakMap`,b,o),S=x.prototype,C=n(S.set),w=function(){return e&&l(function(){var e=g([]);return C(new x,e,1),!m(e)})};if(u)if(v){y=o.getConstructor(b,`WeakMap`,!0),i.enable();var T=n(S.delete),E=n(S.has),D=n(S.get);r(S,{delete:function(e){if(s(e)&&!p(e)){var t=c(this);return t.frozen||=new y,T(this,e)||t.frozen.delete(e)}return T(this,e)},has:function(e){if(s(e)&&!p(e)){var t=c(this);return t.frozen||=new y,E(this,e)||t.frozen.has(e)}return E(this,e)},get:function(e){if(s(e)&&!p(e)){var t=c(this);return t.frozen||=new y,E(this,e)?D(this,e):t.frozen.get(e)}return D(this,e)},set:function(e,t){if(s(e)&&!p(e)){var n=c(this);n.frozen||=new y,E(this,e)?C(this,e,t):n.frozen.set(e,t)}else C(this,e,t);return this}})}else w()&&r(S,{set:function(e,t){var n;return f(e)&&(m(e)?n=g:h(e)&&(n=_)),C(this,e,t),n&&n(e),this}})})),zp=v((()=>{Rp()})),Bp=v((()=>{hc()(`WeakSet`,function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Lp())})),Vp=v((()=>{Bp()})),Hp=v((()=>{var e=q(),t=V(),n=mr(),r=G(),i=W(),a=H(),o=ui(),s=ql(),c=Tp().c2i,l=/[^\d+/a-z]/i,u=/[\t\n\f\r ]+/g,d=/[=]{1,2}$/,f=n(`atob`),p=String.fromCharCode,m=r(``.charAt),h=r(``.replace),g=r(l.exec),_=!!f&&!a(function(){return f(`aGk=`)!==`hi`}),v=_&&a(function(){return f(` `)!==``}),y=_&&!a(function(){f(`a`)}),b=_&&!a(function(){f()}),x=_&&f.length!==1;e({global:!0,bind:!0,enumerable:!0,forced:!_||v||y||b||x},{atob:function(e){if(s(arguments.length,1),_&&!v&&!y)return i(f,t,e);var r=h(o(e),u,``),a=``,b=0,x=0,S,C,w;if(r.length%4==0&&(r=h(r,d,``)),S=r.length,S%4==1||g(l,r))throw new(n(`DOMException`))(`The string is not correctly encoded`,`InvalidCharacterError`);for(;b<S;)C=m(r,b++),w=x%4?w*64+c[C]:c[C],x++%4&&(a+=p(255&w>>(-2*x&6)));return a}})})),Up=v((()=>{var e=q(),t=V(),n=mr(),r=G(),i=W(),a=H(),o=ui(),s=ql(),c=Tp().i2c,l=n(`btoa`),u=r(``.charAt),d=r(``.charCodeAt),f=!!l&&!a(function(){return l(`hi`)!==`aGk=`}),p=f&&!a(function(){l()}),m=f&&a(function(){return l(null)!==`bnVsbA==`}),h=f&&l.length!==1;e({global:!0,bind:!0,enumerable:!0,forced:!f||p||m||h},{btoa:function(e){if(s(arguments.length,1),f)return i(l,t,o(e));for(var r=o(e),a=``,p=0,m=c,h,g;u(r,p)||(m=`=`,p%1);){if(g=d(r,p+=3/4),g>255)throw new(n(`DOMException`))(`The string contains characters outside of the Latin1 range`,`InvalidCharacterError`);h=h<<8|g,a+=u(m,63&h>>8-p%1*8)}return a}})})),Wp=v(((e,t)=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}})),Gp=v(((e,t)=>{var n=Fr()(`span`).classList,r=n&&n.constructor&&n.constructor.prototype;t.exports=r===Object.prototype?void 0:r})),Kp=v((()=>{var e=V(),t=Wp(),n=Gp(),r=Za(),i=Br(),a=function(e){if(e&&e.forEach!==r)try{i(e,`forEach`,r)}catch{e.forEach=r}};for(var o in t)t[o]&&a(e[o]&&e[o].prototype);a(n)})),qp=v((()=>{var e=V(),t=Wp(),n=Gp(),r=uo(),i=Br(),a=Si(),o=Mr()(`iterator`),s=r.values,c=function(e,n){if(e){if(e[o]!==s)try{i(e,o,s)}catch{e[o]=s}if(a(e,n,!0),t[n]){for(var c in r)if(e[c]!==r[c])try{i(e,c,r[c])}catch{e[c]=r[c]}}}};for(var l in t)c(e[l]&&e[l].prototype,l);c(n,`DOMTokenList`)})),Jp=v(((e,t)=>{t.exports={IndexSizeError:{s:`INDEX_SIZE_ERR`,c:1,m:1},DOMStringSizeError:{s:`DOMSTRING_SIZE_ERR`,c:2,m:0},HierarchyRequestError:{s:`HIERARCHY_REQUEST_ERR`,c:3,m:1},WrongDocumentError:{s:`WRONG_DOCUMENT_ERR`,c:4,m:1},InvalidCharacterError:{s:`INVALID_CHARACTER_ERR`,c:5,m:1},NoDataAllowedError:{s:`NO_DATA_ALLOWED_ERR`,c:6,m:0},NoModificationAllowedError:{s:`NO_MODIFICATION_ALLOWED_ERR`,c:7,m:1},NotFoundError:{s:`NOT_FOUND_ERR`,c:8,m:1},NotSupportedError:{s:`NOT_SUPPORTED_ERR`,c:9,m:1},InUseAttributeError:{s:`INUSE_ATTRIBUTE_ERR`,c:10,m:1},InvalidStateError:{s:`INVALID_STATE_ERR`,c:11,m:1},SyntaxError:{s:`SYNTAX_ERR`,c:12,m:1},InvalidModificationError:{s:`INVALID_MODIFICATION_ERR`,c:13,m:1},NamespaceError:{s:`NAMESPACE_ERR`,c:14,m:1},InvalidAccessError:{s:`INVALID_ACCESS_ERR`,c:15,m:1},ValidationError:{s:`VALIDATION_ERR`,c:16,m:0},TypeMismatchError:{s:`TYPE_MISMATCH_ERR`,c:17,m:1},SecurityError:{s:`SECURITY_ERR`,c:18,m:1},NetworkError:{s:`NETWORK_ERR`,c:19,m:1},AbortError:{s:`ABORT_ERR`,c:20,m:1},URLMismatchError:{s:`URL_MISMATCH_ERR`,c:21,m:1},QuotaExceededError:{s:`QUOTA_EXCEEDED_ERR`,c:22,m:1},TimeoutError:{s:`TIMEOUT_ERR`,c:23,m:1},InvalidNodeTypeError:{s:`INVALID_NODE_TYPE_ERR`,c:24,m:1},DataCloneError:{s:`DATA_CLONE_ERR`,c:25,m:1}}})),Yp=v((()=>{var e=q(),t=mr(),n=gs(),r=H(),i=mi(),a=or(),o=zr().f,s=Jr(),c=_i(),l=Ar(),u=Jo(),d=K(),f=ha(),p=sa(),m=Jp(),h=la(),g=Kr(),_=U(),v=Tr(),y=`DOMException`,b=`DATA_CLONE_ERR`,x=t(`Error`),S=t(y)||(function(){try{new((t(`MessageChannel`))||(n(`worker_threads`)).MessageChannel)().port1.postMessage(new WeakMap)}catch(e){if(e.name===b&&e.code===25)return e.constructor}})(),C=S&&S.prototype,w=x.prototype,T=g.set,E=g.getterFor(y),D=`stack`in new x(y),O=function(e){return l(m,e)&&m[e].m?m[e].c:0},k=function(){u(this,A);var e=arguments.length,t=p(e<1?void 0:arguments[0]),n=p(e<2?void 0:arguments[1],`Error`),r=O(n);if(T(this,{type:y,name:n,message:t,code:r}),_||(this.name=n,this.message=t,this.code=r),D){var i=new x(t);i.name=y,o(this,`stack`,a(1,h(i.stack,1)))}},A=k.prototype=i(w),j=function(e){return{enumerable:!0,configurable:!0,get:e}},M=function(e){return j(function(){return E(this)[e]})};_&&(c(A,`code`,M(`code`)),c(A,`message`,M(`message`)),c(A,`name`,M(`name`))),o(A,`constructor`,a(1,k));var N=r(function(){return!(new S instanceof x)}),P=N||r(function(){return w.toString!==f||String(new S(1,2))!==`2: 1`}),F=N||r(function(){return new S(1,`DataCloneError`).code!==25}),I=N||S[b]!==25||C[b]!==25,L=v?P||F||I:N;e({global:!0,constructor:!0,forced:L},{DOMException:L?k:S});var ee=t(y),te=ee.prototype;for(var R in P&&(v||S===ee)&&s(te,`toString`,f),F&&_&&S===ee&&c(te,`code`,j(function(){return O(d(this).name)})),m)if(l(m,R)){var ne=m[R],z=ne.s,re=a(6,ne.c);l(ee,z)||o(ee,z,re),l(te,z)||o(te,z,re)}})),Xp=v((()=>{var e=q(),t=V(),n=mr(),r=or(),i=zr().f,a=Ar(),o=Jo(),s=oa(),c=sa(),l=Jp(),u=la(),d=U(),f=Tr(),p=`DOMException`,m=n(`Error`),h=n(p),g=function(){o(this,_);var e=arguments.length,t=c(e<1?void 0:arguments[0]),n=new h(t,c(e<2?void 0:arguments[1],`Error`)),a=new m(t);return a.name=p,i(n,`stack`,r(1,u(a.stack,1))),s(n,this,g),n},_=g.prototype=h.prototype,v=`stack`in new m(p),y=`stack`in new h(1,2),b=h&&d&&Object.getOwnPropertyDescriptor(t,p),x=!!b&&!(b.writable&&b.configurable),S=v&&!x&&!y;e({global:!0,constructor:!0,forced:f||S},{DOMException:S?g:h});var C=n(p),w=C.prototype;if(w.constructor!==C){for(var T in f||i(w,`constructor`,r(1,C)),l)if(a(l,T)){var E=l[T],D=E.s;a(C,D)||i(C,D,r(6,E.c))}}})),Zp=v((()=>{var e=mr(),t=Si(),n=`DOMException`;t(e(n),n)})),Qp=v((()=>{var e=q(),t=V(),n=Yl().clear;e({global:!0,bind:!0,enumerable:!0,forced:t.clearImmediate!==n},{clearImmediate:n})})),$p=v(((e,t)=>{var n=V(),r=Pi(),i=fr(),a=bo(),o=gr(),s=hi(),c=ql(),l=n.Function,u=/MSIE .\./.test(o)||a===`BUN`&&(function(){var e=n.Bun.version.split(`.`);return e.length<3||e[0]===`0`&&(e[1]<3||e[1]===`3`&&e[2]===`0`)})();t.exports=function(e,t){var n=t?2:1;return u?function(a,o){var u=c(arguments.length,1)>n,d=i(a)?a:l(a),f=u?s(arguments,n):[],p=u?function(){r(d,this,f)}:d;return t?e(p,o):e(p)}:e}})),em=v((()=>{var e=q(),t=V(),n=Yl().set,r=$p(),i=t.setImmediate?r(n,!1):n;e({global:!0,bind:!0,enumerable:!0,forced:t.setImmediate!==i},{setImmediate:i})})),tm=v((()=>{Qp(),em()})),nm=v((()=>{var e=q(),t=V(),n=eu(),r=Sr(),i=ql(),a=H(),o=U();e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:a(function(){return o&&Object.getOwnPropertyDescriptor(t,`queueMicrotask`).value.length!==1})},{queueMicrotask:function(e){i(arguments.length,1),n(r(e))}})})),rm=v((()=>{var e=q(),t=V(),n=_i(),r=U(),i=TypeError,a=Object.defineProperty,o=t.self!==t;try{if(r){var s=Object.getOwnPropertyDescriptor(t,`self`);(o||!s||!s.get||!s.enumerable)&&n(t,`self`,{get:function(){return t},set:function(e){if(this!==t)throw new i(`Illegal invocation`);a(t,`self`,{value:e,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else e({global:!0,simple:!0,forced:o},{self:t})}catch{}})),im=v((()=>{var e=Tr(),t=q(),n=V(),r=mr(),i=G(),a=H(),o=jr(),s=fr(),c=Ei(),l=lr(),u=pr(),d=br(),f=wa(),p=K(),m=li(),h=Ar(),g=Ma(),_=Br(),v=$r(),y=ql(),b=qu(),x=yc(),S=ld(),C=fd(),w=vs(),T=ua(),E=_s(),D=n.Object,O=n.Array,k=n.Date,A=n.Error,j=n.TypeError,M=n.PerformanceMark,N=r(`DOMException`),P=x.Map,F=x.has,I=x.get,L=x.set,ee=S.Set,te=S.add,R=S.has,ne=r(`Object`,`keys`),z=i([].push),re=i((!0).valueOf),ie=i(1.1.valueOf),ae=i(``.valueOf),oe=i(k.prototype.getTime),se=o(`structuredClone`),ce=`DataCloneError`,le=`Transferring`,ue=function(e){return!a(function(){var t=new n.Set([7]),r=e(t),i=e(D(7));return r===t||!r.has(7)||!u(i)||+i!=7})&&e},de=function(e,t){return!a(function(){var n=new t,r=e({a:n,b:n});return!(r&&r.a===r.b&&r.a instanceof t&&r.a.stack===n.stack)})},fe=function(e){return!a(function(){var t=e(new n.AggregateError([1],se,{cause:3}));return t.name!==`AggregateError`||t.errors[0]!==1||t.message!==se||t.cause!==3})},pe=n.structuredClone,me=e||!de(pe,A)||!de(pe,N)||!fe(pe),he=!pe&&ue(function(e){return new M(se,{detail:e}).detail}),ge=ue(pe)||he,_e=function(e){throw new N(`Uncloneable type: `+e,ce)},ve=function(e,t){throw new N((t||`Cloning`)+` of `+e+` cannot be properly polyfilled in this engine`,ce)},ye=function(e,t){return ge||ve(t),ge(e)},be=function(){var e;try{e=new n.DataTransfer}catch{try{e=new n.ClipboardEvent(``).clipboardData}catch{}}return e&&e.items&&e.files?e:null},xe=function(e,t,r){if(F(t,e))return I(t,e);var i=r||m(e),a,o,c,l,u,d;if(i===`SharedArrayBuffer`)a=ge?ge(e):e;else{var f=n.DataView;!f&&!s(e.slice)&&ve(`ArrayBuffer`);try{if(s(e.slice)&&!e.resizable)a=e.slice(0);else for(o=e.byteLength,c=(`maxByteLength`in e)?{maxByteLength:e.maxByteLength}:void 0,a=new ArrayBuffer(o,c),l=new f(e),u=new f(a),d=0;d<o;d++)u.setUint8(d,l.getUint8(d))}catch{throw new N(`ArrayBuffer is detached`,ce)}}return L(t,e,a),a},Se=function(e,t,r,i,a){var o=n[t];return u(o)||ve(t),new o(xe(e.buffer,a),r,i)},Ce=function(e,t){if(d(e)&&_e(`Symbol`),!u(e))return e;if(t){if(F(t,e))return I(t,e)}else t=new P;var i=m(e),a,o,c,l,f,p,y,x;switch(i){case`Array`:c=O(v(e));break;case`Object`:c={};break;case`Map`:c=new P;break;case`Set`:c=new ee;break;case`RegExp`:c=new RegExp(e.source,b(e));break;case`Error`:switch(o=e.name,o){case`AggregateError`:c=new(r(o))([]);break;case`EvalError`:case`RangeError`:case`ReferenceError`:case`SuppressedError`:case`SyntaxError`:case`TypeError`:case`URIError`:c=new(r(o));break;case`CompileError`:case`LinkError`:case`RuntimeError`:c=new(r(`WebAssembly`,o));break;default:c=new A}break;case`DOMException`:c=new N(e.message,e.name);break;case`ArrayBuffer`:case`SharedArrayBuffer`:c=xe(e,t,i);break;case`DataView`:case`Int8Array`:case`Uint8Array`:case`Uint8ClampedArray`:case`Int16Array`:case`Uint16Array`:case`Int32Array`:case`Uint32Array`:case`Float16Array`:case`Float32Array`:case`Float64Array`:case`BigInt64Array`:case`BigUint64Array`:p=i===`DataView`?e.byteLength:e.length,c=Se(e,i,e.byteOffset,p,t);break;case`DOMQuad`:try{c=new DOMQuad(Ce(e.p1,t),Ce(e.p2,t),Ce(e.p3,t),Ce(e.p4,t))}catch{c=ye(e,i)}break;case`File`:if(ge)try{c=ge(e),m(c)!==i&&(c=void 0)}catch{}if(!c)try{c=new File([e],e.name,e)}catch{}c||ve(i);break;case`FileList`:if(l=be(),l){for(f=0,p=v(e);f<p;f++)l.items.add(Ce(e[f],t));c=l.files}else c=ye(e,i);break;case`ImageData`:try{c=new ImageData(Ce(e.data,t),e.width,e.height,{colorSpace:e.colorSpace})}catch{c=ye(e,i)}break;default:if(ge)c=ge(e);else switch(i){case`BigInt`:c=D(e.valueOf());break;case`Boolean`:c=D(re(e));break;case`Number`:c=D(ie(e));break;case`String`:c=D(ae(e));break;case`Date`:c=new k(oe(e));break;case`Blob`:try{c=e.slice(0,e.size,e.type)}catch{ve(i)}break;case`DOMPoint`:case`DOMPointReadOnly`:a=n[i];try{c=a.fromPoint?a.fromPoint(e):new a(e.x,e.y,e.z,e.w)}catch{ve(i)}break;case`DOMRect`:case`DOMRectReadOnly`:a=n[i];try{c=a.fromRect?a.fromRect(e):new a(e.x,e.y,e.width,e.height)}catch{ve(i)}break;case`DOMMatrix`:case`DOMMatrixReadOnly`:a=n[i];try{c=a.fromMatrix?a.fromMatrix(e):new a(e)}catch{ve(i)}break;case`AudioData`:case`VideoFrame`:s(e.clone)||ve(i);try{c=e.clone()}catch{_e(i)}break;case`CropTarget`:case`CryptoKey`:case`FileSystemDirectoryHandle`:case`FileSystemFileHandle`:case`FileSystemHandle`:case`GPUCompilationInfo`:case`GPUCompilationMessage`:case`ImageBitmap`:case`RTCCertificate`:case`WebAssembly.Module`:ve(i);default:_e(i)}}switch(L(t,e,c),i){case`Array`:case`Object`:for(y=ne(e),f=0,p=v(y);f<p;f++)x=y[f],g(c,x,Ce(e[x],t));break;case`Map`:e.forEach(function(e,n){L(c,Ce(n,t),Ce(e,t))});break;case`Set`:e.forEach(function(e){te(c,Ce(e,t))});break;case`Error`:_(c,`message`,Ce(e.message,t)),h(e,`cause`)&&_(c,`cause`,Ce(e.cause,t)),o===`AggregateError`?c.errors=Ce(e.errors,t):o===`SuppressedError`&&(c.error=Ce(e.error,t),c.suppressed=Ce(e.suppressed,t));case`DOMException`:T&&_(c,`stack`,Ce(e.stack,t))}return c},we=function(e,t){if(!u(e))throw new j(`Transfer option cannot be converted to a sequence`);var r=[];f(e,function(e){z(r,p(e))});for(var i=0,a=v(r),o=new ee,l,d,h,g,_,y;i<a;){if(l=r[i++],d=m(l),d===`ArrayBuffer`?R(o,l):F(t,l))throw new N(`Duplicate transferable`,ce);if(d===`ArrayBuffer`){te(o,l);continue}if(E)g=pe(l,{transfer:[l]});else switch(d){case`ImageBitmap`:h=n.OffscreenCanvas,c(h)||ve(d,le);try{_=new h(l.width,l.height),y=_.getContext(`bitmaprenderer`),y.transferFromImageBitmap(l),g=_.transferToImageBitmap()}catch{}break;case`AudioData`:case`VideoFrame`:(!s(l.clone)||!s(l.close))&&ve(d,le);try{g=l.clone(),l.close()}catch{}break;case`MediaSourceHandle`:case`MessagePort`:case`MIDIAccess`:case`OffscreenCanvas`:case`ReadableStream`:case`RTCDataChannel`:case`TransformStream`:case`WebTransportReceiveStream`:case`WebTransportSendStream`:case`WritableStream`:ve(d,le)}if(g===void 0)throw new N(`This object cannot be transferred: `+d,ce);L(t,l,g)}return o},Te=function(e){C(e,function(e){E?ge(e,{transfer:[e]}):s(e.transfer)?e.transfer():w?w(e):ve(`ArrayBuffer`,le)})};t({global:!0,enumerable:!0,sham:!E,forced:me},{structuredClone:function(e){var t=y(arguments.length,1)>1&&!l(arguments[1])?p(arguments[1]):void 0,n=t?t.transfer:void 0,r,i;n!==void 0&&(r=new P,i=we(n,r));var a=Ce(e,r);return i&&Te(i),a}})})),am=v((()=>{var e=q(),t=V(),n=$p()(t.setInterval,!0);e({global:!0,bind:!0,forced:t.setInterval!==n},{setInterval:n})})),om=v((()=>{var e=q(),t=V(),n=$p()(t.setTimeout,!0);e({global:!0,bind:!0,forced:t.setTimeout!==n},{setTimeout:n})})),sm=v((()=>{am(),om()})),cm=v(((e,t)=>{var n=H(),r=Mr(),i=U(),a=Tr(),o=r(`iterator`);t.exports=!n(function(){var e=new URL(`b?a=1&b=2&c=3`,`https://a`),t=e.searchParams,n=new URLSearchParams(`a=1&a=2&b=3`),r=``;return e.pathname=`c%20d`,t.forEach(function(e,n){t.delete(`b`),r+=n+e}),n.delete(`a`,2),n.delete(`b`,void 0),a&&(!e.toJSON||!n.has(`a`,1)||n.has(`a`,2)||!n.has(`a`,void 0)||n.has(`b`))||!t.size&&(a||!i)||!t.sort||e.href!==`https://a/c%20d?a=1&c=3`||t.get(`c`)!==`3`||String(new URLSearchParams(`?a=1`))!==`a=1`||!t[o]||new URL(`https://a@b`).username!==`a`||new URLSearchParams(new URLSearchParams(`a=b`)).get(`a`)!==`b`||new URL(`https://тест`).host!==`xn--e1aybc`||new URL(`https://a#б`).hash!==`#%D0%B1`||r!==`a1c3`||new URL(`https://x`,void 0).host!==`x`})})),lm=v(((e,t)=>{var n=G(),r=2147483647,i=36,a=1,o=26,s=38,c=700,l=72,u=128,d=`-`,f=/[^\0-\u007E]/,p=/[.\u3002\uFF0E\uFF61]/g,m=`Overflow: input needs wider integers to process`,h=i-a,g=RangeError,_=n(p.exec),v=Math.floor,y=String.fromCharCode,b=n(``.charCodeAt),x=n([].join),S=n([].push),C=n(``.replace),w=n(``.split),T=n(``.toLowerCase),E=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=b(e,n++);if(i>=55296&&i<=56319&&n<r){var a=b(e,n++);(a&64512)==56320?S(t,((i&1023)<<10)+(a&1023)+65536):(S(t,i),n--)}else S(t,i)}return t},D=function(e){return e+22+75*(e<26)},O=function(e,t,n){var r=0;for(e=n?v(e/c):e>>1,e+=v(e/t);e>h*o>>1;)e=v(e/h),r+=i;return v(r+(h+1)*e/(e+s))},k=function(e){var t=[];e=E(e);var n=e.length,s=u,c=0,f=l,p,h;for(p=0;p<e.length;p++)h=e[p],h<128&&S(t,y(h));var _=t.length,b=_;for(_&&S(t,d);b<n;){var C=r;for(p=0;p<e.length;p++)h=e[p],h>=s&&h<C&&(C=h);var w=b+1;if(C-s>v((r-c)/w))throw new g(m);for(c+=(C-s)*w,s=C,p=0;p<e.length;p++){if(h=e[p],h<s&&++c>r)throw new g(m);if(h===s){for(var T=c,k=i;;){var A=k<=f?a:k>=f+o?o:k-f;if(T<A)break;var j=T-A,M=i-A;S(t,y(D(A+j%M))),T=v(j/M),k+=i}S(t,y(D(T))),f=O(c,w,b===_),c=0,b++}}c++,s++}return x(t,``)};t.exports=function(e){var t=[],n=w(C(T(e),p,`.`),`.`),r,i;for(r=0;r<n.length;r++)i=n[r],S(t,_(f,i)?`xn--`+k(i):i);return x(t,`.`)}})),um=v(((e,t)=>{uo(),Rd();var n=q(),r=V(),i=Xl(),a=mr(),o=W(),s=G(),c=U(),l=cm(),u=Jr(),d=_i(),f=qo(),p=Si(),m=so(),h=Kr(),g=Jo(),_=fr(),v=Ar(),y=wi(),b=li(),x=K(),S=pr(),C=ui(),w=mi(),T=or(),E=Sa(),D=xa(),O=lo(),k=ql(),A=Mr(),j=Do(),M=A(`iterator`),N=`URLSearchParams`,P=N+`Iterator`,F=h.set,I=h.getterFor(N),L=h.getterFor(P),ee=i(`fetch`),te=i(`Request`),R=i(`Headers`),ne=te&&te.prototype,z=R&&R.prototype,re=r.TypeError,ie=r.encodeURIComponent,ae=String.fromCharCode,oe=a(`String`,`fromCodePoint`),se=parseInt,ce=s(``.charAt),le=s([].join),ue=s([].push),de=s(``.replace),fe=s([].shift),pe=s([].splice),me=s(``.split),he=s(``.slice),ge=s(/./.exec),_e=/\+/g,ve=`�`,ye=/^[0-9a-f]+$/i,be=function(e,t){var n=he(e,t,t+2);return ge(ye,n)?se(n,16):NaN},xe=function(e){for(var t=0,n=128;n>0&&(e&n)!==0;n>>=1)t++;return t},Se=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(e[0]&31)<<6|e[1]&63;break;case 3:t=(e[0]&15)<<12|(e[1]&63)<<6|e[2]&63;break;case 4:t=(e[0]&7)<<18|(e[1]&63)<<12|(e[2]&63)<<6|e[3]&63;break}return t>1114111?null:t},Ce=function(e){e=de(e,_e,` `);for(var t=e.length,n=``,r=0;r<t;){var i=ce(e,r);if(i===`%`){if(ce(e,r+1)===`%`||r+3>t){n+=`%`,r++;continue}var a=be(e,r+1);if(a!==a){n+=i,r++;continue}r+=2;var o=xe(a);if(o===0)i=ae(a);else{if(o===1||o>4){n+=ve,r++;continue}for(var s=[a],c=1;c<o&&(r++,!(r+3>t||ce(e,r)!==`%`));){var l=be(e,r+1);if(l!==l){r+=3;break}if(l>191||l<128)break;ue(s,l),r+=2,c++}if(s.length!==o){n+=ve;continue}var u=Se(s);u===null?n+=ve:i=oe(u)}}n+=i,r++}return n},we=/[!'()~]|%20/g,Te={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`},Ee=function(e){return Te[e]},De=function(e){return de(ie(e),we,Ee)},Oe=m(function(e,t){F(this,{type:P,target:I(e).entries,index:0,kind:t})},N,function(){var e=L(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,O(void 0,!0);var r=t[n];switch(e.kind){case`keys`:return O(r.key,!1);case`values`:return O(r.value,!1)}return O([r.key,r.value],!1)},!0),ke=function(e){this.entries=[],this.url=null,e!==void 0&&(S(e)?this.parseObject(e):this.parseQuery(typeof e==`string`?ce(e,0)===`?`?he(e,1):e:C(e)))};ke.prototype={type:N,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t=this.entries,n=D(e),r,i,a,s,c,l,u;if(n)for(r=E(e,n),i=r.next;!(a=o(i,r)).done;){if(s=E(x(a.value)),c=s.next,(l=o(c,s)).done||(u=o(c,s)).done||!o(c,s).done)throw new re(`Expected sequence with length 2`);ue(t,{key:C(l.value),value:C(u.value)})}else for(var d in e)v(e,d)&&ue(t,{key:d,value:C(e[d])})},parseQuery:function(e){if(e)for(var t=this.entries,n=me(e,`&`),r=0,i,a;r<n.length;)i=n[r++],i.length&&(a=me(i,`=`),ue(t,{key:Ce(fe(a)),value:Ce(le(a,`=`))}))},serialize:function(){for(var e=this.entries,t=[],n=0,r;n<e.length;)r=e[n++],ue(t,De(r.key)+`=`+De(r.value));return le(t,`&`)},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Ae=function(){g(this,je);var e=arguments.length>0?arguments[0]:void 0,t=F(this,new ke(e));c||(this.size=t.entries.length)},je=Ae.prototype;if(f(je,{append:function(e,t){var n=I(this);k(arguments.length,2),ue(n.entries,{key:C(e),value:C(t)}),c||this.length++,n.updateURL()},delete:function(e){for(var t=I(this),n=k(arguments.length,1),r=t.entries,i=C(e),a=n<2?void 0:arguments[1],o=a===void 0?a:C(a),s=0;s<r.length;){var l=r[s];if(l.key===i&&(o===void 0||l.value===o)){if(pe(r,s,1),o!==void 0)break}else s++}c||(this.size=r.length),t.updateURL()},get:function(e){var t=I(this).entries;k(arguments.length,1);for(var n=C(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=I(this).entries;k(arguments.length,1);for(var n=C(e),r=[],i=0;i<t.length;i++)t[i].key===n&&ue(r,t[i].value);return r},has:function(e){for(var t=I(this).entries,n=k(arguments.length,1),r=C(e),i=n<2?void 0:arguments[1],a=i===void 0?i:C(i),o=0;o<t.length;){var s=t[o++];if(s.key===r&&(a===void 0||s.value===a))return!0}return!1},set:function(e,t){var n=I(this);k(arguments.length,1);for(var r=n.entries,i=!1,a=C(e),o=C(t),s=0,l;s<r.length;s++)l=r[s],l.key===a&&(i?pe(r,s--,1):(i=!0,l.value=o));i||ue(r,{key:a,value:o}),c||(this.size=r.length),n.updateURL()},sort:function(){var e=I(this);j(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t=I(this).entries,n=y(e,arguments.length>1?arguments[1]:void 0),r=0,i;r<t.length;)i=t[r++],n(i.value,i.key,this)},keys:function(){return new Oe(this,`keys`)},values:function(){return new Oe(this,`values`)},entries:function(){return new Oe(this,`entries`)}},{enumerable:!0}),u(je,M,je.entries,{name:`entries`}),u(je,`toString`,function(){return I(this).serialize()},{enumerable:!0}),c&&d(je,`size`,{get:function(){return I(this).entries.length},configurable:!0,enumerable:!0}),p(Ae,N),n({global:!0,constructor:!0,forced:!l},{URLSearchParams:Ae}),!l&&_(R)){var Me=s(z.has),Ne=s(z.set),Pe=function(e){if(S(e)){var t=e.body,n;if(b(t)===N)return n=e.headers?new R(e.headers):new R,Me(n,`content-type`)||Ne(n,`content-type`,`application/x-www-form-urlencoded;charset=UTF-8`),w(e,{body:T(0,C(t)),headers:T(0,n)})}return e};if(_(ee)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return ee(e,arguments.length>1?Pe(arguments[1]):{})}}),_(te)){var Fe=function(e){return g(this,ne),new te(e,arguments.length>1?Pe(arguments[1]):{})};ne.constructor=Fe,Fe.prototype=ne,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Fe})}}t.exports={URLSearchParams:Ae,getState:I}})),dm=v((()=>{Vd();var e=q(),t=U(),n=cm(),r=V(),i=wi(),a=G(),o=Jr(),s=_i(),c=Jo(),l=Ar(),u=ul(),d=eo(),f=hi(),p=Nd().codeAt,m=lm(),h=ui(),g=Si(),_=ql(),v=um(),y=Kr(),b=y.set,x=y.getterFor(`URL`),S=v.URLSearchParams,C=v.getState,w=r.URL,T=r.TypeError,E=r.parseInt,D=Math.floor,O=Math.pow,k=a(``.charAt),A=a(/./.exec),j=a([].join),M=a(1.1.toString),N=a([].pop),P=a([].push),F=a(``.replace),I=a([].shift),L=a(``.split),ee=a(``.slice),te=a(``.toLowerCase),R=a([].unshift),ne=`Invalid authority`,z=`Invalid scheme`,re=`Invalid host`,ie=`Invalid port`,ae=/[a-z]/i,oe=/[\d+-.a-z]/i,se=/\d/,ce=/^0x/i,le=/^[0-7]+$/,ue=/^\d+$/,de=/^[\da-f]+$/i,fe=/[\0\t\n\r #%/:<>?@[\\\]^|]/,pe=/[\0\t\n\r #/:<>?@[\\\]^|]/,me=/^[\u0000-\u0020]+/,he=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ge=/[\t\n\r]/g,_e,ve=function(e){var t=L(e,`.`),n,r,i,a,o,s,c;if(t.length&&t[t.length-1]===``&&t.length--,n=t.length,n>4)return e;for(r=[],i=0;i<n;i++){if(a=t[i],a===``)return e;if(o=10,a.length>1&&k(a,0)===`0`&&(o=A(ce,a)?16:8,a=ee(a,o===8?1:2)),a===``)s=0;else{if(!A(o===10?ue:o===8?le:de,a))return e;s=E(a,o)}P(r,s)}for(i=0;i<n;i++)if(s=r[i],i===n-1){if(s>=O(256,5-n))return null}else if(s>255)return null;for(c=N(r),i=0;i<r.length;i++)c+=r[i]*O(256,3-i);return c},ye=function(e){var t=[0,0,0,0,0,0,0,0],n=0,r=null,i=0,a,o,s,c,l,u,d,f=function(){return k(e,i)};if(f()===`:`){if(k(e,1)!==`:`)return;i+=2,n++,r=n}for(;f();){if(n===8)return;if(f()===`:`){if(r!==null)return;i++,n++,r=n;continue}for(a=o=0;o<4&&A(de,f());)a=a*16+E(f(),16),i++,o++;if(f()===`.`){if(o===0||(i-=o,n>6))return;for(s=0;f();){if(c=null,s>0)if(f()===`.`&&s<4)i++;else return;if(!A(se,f()))return;for(;A(se,f());){if(l=E(f(),10),c===null)c=l;else if(c===0)return;else c=c*10+l;if(c>255)return;i++}t[n]=t[n]*256+c,s++,(s===2||s===4)&&n++}if(s!==4)return;break}else if(f()===`:`){if(i++,!f())return}else if(f())return;t[n++]=a}if(r!==null)for(u=n-r,n=7;n!==0&&u>0;)d=t[n],t[n--]=t[r+u-1],t[r+--u]=d;else if(n!==8)return;return t},be=function(e){for(var t=null,n=1,r=null,i=0,a=0;a<8;a++)e[a]===0?(r===null&&(r=a),++i):(i>n&&(t=r,n=i),r=null,i=0);return i>n?r:t},xe=function(e){var t,n,r,i;if(typeof e==`number`){for(t=[],n=0;n<4;n++)R(t,e%256),e=D(e/256);return j(t,`.`)}if(typeof e==`object`){for(t=``,r=be(e),n=0;n<8;n++)i&&e[n]===0||(i&&=!1,r===n?(t+=n?`:`:`::`,i=!0):(t+=M(e[n],16),n<7&&(t+=`:`)));return`[`+t+`]`}return e},Se={},Ce=u({},Se,{" ":1,'"':1,"<":1,">":1,"`":1}),we=u({},Ce,{"#":1,"?":1,"{":1,"}":1}),Te=u({},we,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Ee=function(e,t){var n=p(e,0);return n>32&&n<127&&!l(t,e)?e:encodeURIComponent(e)},De={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Oe=function(e,t){var n;return e.length===2&&A(ae,k(e,0))&&((n=k(e,1))===`:`||!t&&n===`|`)},ke=function(e){var t;return e.length>1&&Oe(ee(e,0,2))&&(e.length===2||(t=k(e,2))===`/`||t===`\\`||t===`?`||t===`#`)},Ae=function(e){return e===`.`||te(e)===`%2e`},je=function(e){return e=te(e),e===`..`||e===`%2e.`||e===`.%2e`||e===`%2e%2e`},Me={},Ne={},Pe={},Fe={},Ie={},Le={},Re={},ze={},Be={},Ve={},He={},Ue={},We={},Ge={},Ke={},qe={},Je={},Ye={},Xe={},Ze={},Qe={},$e=function(e,t,n){var r=h(e),i,a,o;if(t){if(a=this.parse(r),a)throw new T(a);this.searchParams=null}else{if(n!==void 0&&(i=new $e(n,!0)),a=this.parse(r,null,i),a)throw new T(a);o=C(new S),o.bindURL(this),this.searchParams=o}};$e.prototype={type:`URL`,parse:function(e,t,n){var r=this,i=t||Me,a=0,o=``,s=!1,c=!1,u=!1,p,m,g,_;for(e=h(e),t||(r.scheme=``,r.username=``,r.password=``,r.host=null,r.port=null,r.path=[],r.query=null,r.fragment=null,r.cannotBeABaseURL=!1,e=F(e,me,``),e=F(e,he,`$1`)),e=F(e,ge,``),p=d(e);a<=p.length;){switch(m=p[a],i){case Me:if(m&&A(ae,m))o+=te(m),i=Ne;else if(t)return z;else{i=Pe;continue}break;case Ne:if(m&&(A(oe,m)||m===`+`||m===`-`||m===`.`))o+=te(m);else if(m===`:`){if(t&&(r.isSpecial()!==l(De,o)||o===`file`&&(r.includesCredentials()||r.port!==null)||r.scheme===`file`&&!r.host))return;if(r.scheme=o,t){r.isSpecial()&&De[r.scheme]===r.port&&(r.port=null);return}o=``,r.scheme===`file`?i=Ge:r.isSpecial()&&n&&n.scheme===r.scheme?i=Fe:r.isSpecial()?i=ze:p[a+1]===`/`?(i=Ie,a++):(r.cannotBeABaseURL=!0,P(r.path,``),i=Xe)}else if(t)return z;else{o=``,i=Pe,a=0;continue}break;case Pe:if(!n||n.cannotBeABaseURL&&m!==`#`)return z;if(n.cannotBeABaseURL&&m===`#`){r.scheme=n.scheme,r.path=f(n.path),r.query=n.query,r.fragment=``,r.cannotBeABaseURL=!0,i=Qe;break}i=n.scheme===`file`?Ge:Le;continue;case Fe:if(m===`/`&&p[a+1]===`/`)i=Be,a++;else{i=Le;continue}break;case Ie:if(m===`/`){i=Ve;break}else{i=Ye;continue}case Le:if(r.scheme=n.scheme,m===_e)r.username=n.username,r.password=n.password,r.host=n.host,r.port=n.port,r.path=f(n.path),r.query=n.query;else if(m===`/`||m===`\\`&&r.isSpecial())i=Re;else if(m===`?`)r.username=n.username,r.password=n.password,r.host=n.host,r.port=n.port,r.path=f(n.path),r.query=``,i=Ze;else if(m===`#`)r.username=n.username,r.password=n.password,r.host=n.host,r.port=n.port,r.path=f(n.path),r.query=n.query,r.fragment=``,i=Qe;else{r.username=n.username,r.password=n.password,r.host=n.host,r.port=n.port,r.path=f(n.path),r.path.length--,i=Ye;continue}break;case Re:if(r.isSpecial()&&(m===`/`||m===`\\`))i=Be;else if(m===`/`)i=Ve;else{r.username=n.username,r.password=n.password,r.host=n.host,r.port=n.port,i=Ye;continue}break;case ze:if(i=Be,m!==`/`||k(o,a+1)!==`/`)continue;a++;break;case Be:if(m!==`/`&&m!==`\\`){i=Ve;continue}break;case Ve:if(m===`@`){s&&(o=`%40`+o),s=!0,g=d(o);for(var v=0;v<g.length;v++){var y=g[v];if(y===`:`&&!u){u=!0;continue}var b=Ee(y,Te);u?r.password+=b:r.username+=b}o=``}else if(m===_e||m===`/`||m===`?`||m===`#`||m===`\\`&&r.isSpecial()){if(s&&o===``)return ne;a-=d(o).length+1,o=``,i=He}else o+=m;break;case He:case Ue:if(t&&r.scheme===`file`){i=qe;continue}else if(m===`:`&&!c){if(o===``)return re;if(_=r.parseHost(o),_)return _;if(o=``,i=We,t===Ue)return}else if(m===_e||m===`/`||m===`?`||m===`#`||m===`\\`&&r.isSpecial()){if(r.isSpecial()&&o===``)return re;if(t&&o===``&&(r.includesCredentials()||r.port!==null))return;if(_=r.parseHost(o),_)return _;if(o=``,i=Je,t)return;continue}else m===`[`?c=!0:m===`]`&&(c=!1),o+=m;break;case We:if(A(se,m))o+=m;else if(m===_e||m===`/`||m===`?`||m===`#`||m===`\\`&&r.isSpecial()||t){if(o!==``){var x=E(o,10);if(x>65535)return ie;r.port=r.isSpecial()&&x===De[r.scheme]?null:x,o=``}if(t)return;i=Je;continue}else return ie;break;case Ge:if(r.scheme=`file`,m===`/`||m===`\\`)i=Ke;else if(n&&n.scheme===`file`)switch(m){case _e:r.host=n.host,r.path=f(n.path),r.query=n.query;break;case`?`:r.host=n.host,r.path=f(n.path),r.query=``,i=Ze;break;case`#`:r.host=n.host,r.path=f(n.path),r.query=n.query,r.fragment=``,i=Qe;break;default:ke(j(f(p,a),``))||(r.host=n.host,r.path=f(n.path),r.shortenPath()),i=Ye;continue}else{i=Ye;continue}break;case Ke:if(m===`/`||m===`\\`){i=qe;break}n&&n.scheme===`file`&&!ke(j(f(p,a),``))&&(Oe(n.path[0],!0)?P(r.path,n.path[0]):r.host=n.host),i=Ye;continue;case qe:if(m===_e||m===`/`||m===`\\`||m===`?`||m===`#`){if(!t&&Oe(o))i=Ye;else if(o===``){if(r.host=``,t)return;i=Je}else{if(_=r.parseHost(o),_)return _;if(r.host===`localhost`&&(r.host=``),t)return;o=``,i=Je}continue}else o+=m;break;case Je:if(r.isSpecial()){if(i=Ye,m!==`/`&&m!==`\\`)continue}else if(!t&&m===`?`)r.query=``,i=Ze;else if(!t&&m===`#`)r.fragment=``,i=Qe;else if(m!==_e&&(i=Ye,m!==`/`))continue;break;case Ye:if(m===_e||m===`/`||m===`\\`&&r.isSpecial()||!t&&(m===`?`||m===`#`)){if(je(o)?(r.shortenPath(),m!==`/`&&!(m===`\\`&&r.isSpecial())&&P(r.path,``)):Ae(o)?m!==`/`&&!(m===`\\`&&r.isSpecial())&&P(r.path,``):(r.scheme===`file`&&!r.path.length&&Oe(o)&&(r.host&&=``,o=k(o,0)+`:`),P(r.path,o)),o=``,r.scheme===`file`&&(m===_e||m===`?`||m===`#`))for(;r.path.length>1&&r.path[0]===``;)I(r.path);m===`?`?(r.query=``,i=Ze):m===`#`&&(r.fragment=``,i=Qe)}else o+=Ee(m,we);break;case Xe:m===`?`?(r.query=``,i=Ze):m===`#`?(r.fragment=``,i=Qe):m!==_e&&(r.path[0]+=Ee(m,Se));break;case Ze:!t&&m===`#`?(r.fragment=``,i=Qe):m!==_e&&(m===`'`&&r.isSpecial()?r.query+=`%27`:m===`#`?r.query+=`%23`:r.query+=Ee(m,Se));break;case Qe:m!==_e&&(r.fragment+=Ee(m,Ce));break}a++}},parseHost:function(e){var t,n,r;if(k(e,0)===`[`){if(k(e,e.length-1)!==`]`||(t=ye(ee(e,1,-1)),!t))return re;this.host=t}else if(this.isSpecial()){if(e=m(e),A(fe,e)||(t=ve(e),t===null))return re;this.host=t}else{if(A(pe,e))return re;for(t=``,n=d(e),r=0;r<n.length;r++)t+=Ee(n[r],Se);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||this.scheme===`file`},includesCredentials:function(){return this.username!==``||this.password!==``},isSpecial:function(){return l(De,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;t&&(this.scheme!==`file`||t!==1||!Oe(e[0],!0))&&e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,i=e.host,a=e.port,o=e.path,s=e.query,c=e.fragment,l=t+`:`;return i===null?t===`file`&&(l+=`//`):(l+=`//`,e.includesCredentials()&&(l+=n+(r?`:`+r:``)+`@`),l+=xe(i),a!==null&&(l+=`:`+a)),l+=e.cannotBeABaseURL?o[0]:o.length?`/`+j(o,`/`):``,s!==null&&(l+=`?`+s),c!==null&&(l+=`#`+c),l},setHref:function(e){var t=this.parse(e);if(t)throw new T(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if(e===`blob`)try{return new et(e.path[0]).origin}catch{return`null`}return e===`file`||!this.isSpecial()?`null`:e+`://`+xe(this.host)+(t===null?``:`:`+t)},getProtocol:function(){return this.scheme+`:`},setProtocol:function(e){this.parse(h(e)+`:`,Me)},getUsername:function(){return this.username},setUsername:function(e){var t=d(h(e));if(!this.cannotHaveUsernamePasswordPort()){this.username=``;for(var n=0;n<t.length;n++)this.username+=Ee(t[n],Te)}},getPassword:function(){return this.password},setPassword:function(e){var t=d(h(e));if(!this.cannotHaveUsernamePasswordPort()){this.password=``;for(var n=0;n<t.length;n++)this.password+=Ee(t[n],Te)}},getHost:function(){var e=this.host,t=this.port;return e===null?``:t===null?xe(e):xe(e)+`:`+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,He)},getHostname:function(){var e=this.host;return e===null?``:xe(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Ue)},getPort:function(){var e=this.port;return e===null?``:h(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(e=h(e),e===``?this.port=null:this.parse(e,We))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?`/`+j(e,`/`):``},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Je))},getSearch:function(){var e=this.query;return e?`?`+e:``},setSearch:function(e){e=h(e),e===``?this.query=null:(k(e,0)===`?`&&(e=ee(e,1)),this.query=``,this.parse(e,Ze)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?`#`+e:``},setHash:function(e){if(e=h(e),e===``){this.fragment=null;return}k(e,0)===`#`&&(e=ee(e,1)),this.fragment=``,this.parse(e,Qe)},update:function(){this.query=this.searchParams.serialize()||null}};var et=function(e){var n=c(this,tt),r=b(n,new $e(e,!1,_(arguments.length,1)>1?arguments[1]:void 0));t||(n.href=r.serialize(),n.origin=r.getOrigin(),n.protocol=r.getProtocol(),n.username=r.getUsername(),n.password=r.getPassword(),n.host=r.getHost(),n.hostname=r.getHostname(),n.port=r.getPort(),n.pathname=r.getPathname(),n.search=r.getSearch(),n.searchParams=r.getSearchParams(),n.hash=r.getHash())},tt=et.prototype,nt=function(e,t){return{get:function(){return x(this)[e]()},set:t&&function(e){return x(this)[t](e)},configurable:!0,enumerable:!0}};if(t&&(s(tt,`href`,nt(`serialize`,`setHref`)),s(tt,`origin`,nt(`getOrigin`)),s(tt,`protocol`,nt(`getProtocol`,`setProtocol`)),s(tt,`username`,nt(`getUsername`,`setUsername`)),s(tt,`password`,nt(`getPassword`,`setPassword`)),s(tt,`host`,nt(`getHost`,`setHost`)),s(tt,`hostname`,nt(`getHostname`,`setHostname`)),s(tt,`port`,nt(`getPort`,`setPort`)),s(tt,`pathname`,nt(`getPathname`,`setPathname`)),s(tt,`search`,nt(`getSearch`,`setSearch`)),s(tt,`searchParams`,nt(`getSearchParams`)),s(tt,`hash`,nt(`getHash`,`setHash`))),o(tt,`toJSON`,function(){return x(this).serialize()},{enumerable:!0}),o(tt,`toString`,function(){return x(this).serialize()},{enumerable:!0}),w){var rt=w.createObjectURL,it=w.revokeObjectURL;rt&&o(et,`createObjectURL`,i(rt,w)),it&&o(et,`revokeObjectURL`,i(it,w))}g(et,`URL`),e({global:!0,constructor:!0,forced:!n,sham:!t},{URL:et})})),fm=v((()=>{dm()})),pm=v((()=>{var e=q(),t=mr(),n=H(),r=ql(),i=ui(),a=cm(),o=t(`URL`),s=a&&n(function(){o.canParse()}),c=n(function(){return o.canParse.length!==1});e({target:`URL`,stat:!0,forced:!s||c},{canParse:function(e){var t=r(arguments.length,1),n=i(e),a=t<2||arguments[1]===void 0?void 0:i(arguments[1]);try{return!!new o(n,a)}catch{return!1}}})})),mm=v((()=>{var e=q(),t=mr(),n=ql(),r=ui(),i=cm(),a=t(`URL`);e({target:`URL`,stat:!0,forced:!i},{parse:function(e){var t=n(arguments.length,1),i=r(e),o=t<2||arguments[1]===void 0?void 0:r(arguments[1]);try{return new a(i,o)}catch{return null}}})})),hm=v((()=>{var e=q(),t=W();e({target:`URL`,proto:!0,enumerable:!0},{toJSON:function(){return t(URL.prototype.toString,this)}})})),gm=v((()=>{um()})),_m=v((()=>{var e=Jr(),t=G(),n=ui(),r=ql(),i=URLSearchParams,a=i.prototype,o=t(a.append),s=t(a.delete),c=t(a.forEach),l=t([].push),u=new i(`a=1&a=2&b=3`);u.delete(`a`,1),u.delete(`b`,void 0),u+``!=`a=2`&&e(a,`delete`,function(e){var t=arguments.length,i=t<2?void 0:arguments[1];if(t&&i===void 0)return s(this,e);var a=[];c(this,function(e,t){l(a,{key:t,value:e})}),r(t,1);for(var u=n(e),d=n(i),f=0,p=0,m=!1,h=a.length,g;f<h;)g=a[f++],m||g.key===u?(m=!0,s(this,g.key)):p++;for(;p<h;)g=a[p++],g.key===u&&g.value===d||o(this,g.key,g.value)},{enumerable:!0,unsafe:!0})})),vm=v((()=>{var e=Jr(),t=G(),n=ui(),r=ql(),i=URLSearchParams,a=i.prototype,o=t(a.getAll),s=t(a.has),c=new i(`a=1`);(c.has(`a`,2)||!c.has(`a`,void 0))&&e(a,`has`,function(e){var t=arguments.length,i=t<2?void 0:arguments[1];if(t&&i===void 0)return s(this,e);var a=o(this,e);r(t,1);for(var c=n(i),l=0;l<a.length;)if(a[l++]===c)return!0;return!1},{enumerable:!0,unsafe:!0})})),ym=v((()=>{var e=U(),t=G(),n=_i(),r=URLSearchParams.prototype,i=t(r.forEach);e&&!(`size`in r)&&n(r,`size`,{get:function(){var e=0;return i(this,function(){e++}),e},configurable:!0,enumerable:!0})})),bm=v(((e,t)=>{Ri(),zi(),Bi(),Vi(),Hi(),Ui(),Wi(),Gi(),Ki(),qi(),Ji(),Yi(),Xi(),Zi(),Qi(),$i(),ea(),pa(),ma(),ga(),Ea(),Da(),Oa(),Aa(),Pa(),La(),za(),Va(),Ha(),Ua(),Wa(),Ka(),qa(),Ya(),Xa(),Qa(),no(),ro(),io(),ao(),uo(),fo(),mo(),ho(),go(),vo(),So(),Co(),wo(),To(),Eo(),jo(),No(),Po(),Io(),zo(),Bo(),Vo(),Ho(),Uo(),Go(),ns(),is(),as(),ss(),cs(),ds(),ms(),bs(),xs(),Ss(),Cs(),ws(),Ts(),ks(),As(),Ms(),Ns(),Fs(),Is(),Rs(),zs(),Bs(),Vs(),Hs(),Us(),Zs(),Qs(),$s(),ec(),nc(),rc(),ic(),ac(),oc(),sc(),cc(),lc(),Ii(),uc(),vc(),bc(),Sc(),Cc(),wc(),Tc(),Ec(),Oc(),kc(),Ac(),jc(),Mc(),Nc(),Fc(),Ic(),Lc(),Rc(),zc(),Bc(),Vc(),Hc(),Uc(),qc(),Jc(),Xc(),Qc(),$c(),el(),tl(),nl(),il(),ol(),sl(),cl(),ll(),dl(),fl(),ml(),hl(),gl(),_l(),yl(),bl(),xl(),Sl(),Cl(),wl(),Tl(),El(),Dl(),kl(),Al(),jl(),Ml(),Nl(),Pl(),Fl(),Il(),Ll(),Rl(),zl(),Vl(),Hl(),Ul(),Wl(),mu(),hu(),gu(),_u(),vu(),yu(),Eu(),Du(),Ou(),ku(),Au(),ju(),Mu(),Pu(),Fu(),Iu(),Lu(),Ru(),zu(),Bu(),Vu(),Hu(),Uu(),Zu(),$u(),ed(),nd(),rd(),id(),ad(),od(),cd(),vd(),bd(),Sd(),wd(),Ed(),kd(),jd(),Md(),Pd(),Ld(),Rd(),zd(),Bd(),Vd(),Gd(),Kd(),Jd(),Yd(),Xd(),Zd(),$d(),ef(),tf(),nf(),rf(),af(),of(),cf(),df(),mf(),_f(),vf(),yf(),bf(),xf(),Sf(),Cf(),wf(),Tf(),Ef(),Df(),Of(),kf(),Lf(),Rf(),zf(),Bf(),Vf(),Hf(),Uf(),Wf(),Gf(),Kf(),qf(),Jf(),Yf(),Zf(),Qf(),$f(),ep(),tp(),np(),rp(),ip(),ap(),op(),sp(),cp(),lp(),up(),dp(),fp(),pp(),mp(),hp(),gp(),_p(),vp(),yp(),bp(),xp(),Sp(),Cp(),Op(),Ap(),Mp(),Np(),Pp(),Fp(),Ip(),zp(),Vp(),Hp(),Up(),Kp(),qp(),Yp(),Xp(),Zp(),tm(),nm(),rm(),im(),sm(),fm(),pm(),mm(),hm(),gm(),_m(),vm(),ym(),t.exports=yi()}));rr(),bm();function xm(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!Ze(i)||!$e(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function Sm(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});!Ze(r)||!$e(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var Cm={name:`applyStyles`,enabled:!0,phase:`write`,fn:xm,effect:Sm,requires:[`computeStyles`]},wm=Be({defaultModifiers:[Re,rt,gt,Cm]}),Tm=Be({defaultModifiers:[Re,rt,gt,Cm,He,Qe,Ot,Xe,Ve]}),Em=Ce({afterMain:()=>Ue,afterRead:()=>Ke,afterWrite:()=>Ye,applyStyles:()=>Cm,arrow:()=>Xe,auto:()=>tt,basePlacements:()=>At,beforeMain:()=>ze,beforeRead:()=>at,beforeWrite:()=>Ge,bottom:()=>it,clippingParents:()=>ot,computeStyles:()=>gt,createPopper:()=>Tm,createPopperBase:()=>nt,createPopperLite:()=>wm,detectOverflow:()=>_t,end:()=>`end`,eventListeners:()=>Re,flip:()=>Qe,hide:()=>Ve,left:()=>We,main:()=>Je,modifierPhases:()=>Ct,offset:()=>He,placements:()=>qe,popper:()=>ct,popperGenerator:()=>Be,popperOffsets:()=>rt,preventOverflow:()=>Ot,read:()=>st,reference:()=>lt,right:()=>et,start:()=>Le,top:()=>`top`,variationPlacements:()=>ft,viewport:()=>Et,write:()=>bt}),Dm=new Map,Om={set(e,t,n){Dm.has(e)||Dm.set(e,new Map);let r=Dm.get(e);if(!r.has(t)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(t,n)},get(e,t){return Dm.has(e)&&Dm.get(e).get(t)||null},remove(e,t){if(!Dm.has(e))return;let n=Dm.get(e);n.delete(t),n.size===0&&Dm.delete(e)}},km=1e6,Am=1e3,jm=`transitionend`,Mm=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),Nm=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),Pm=e=>{do e+=Math.floor(Math.random()*km);while(document.getElementById(e));return e},Fm=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);return!Number.parseFloat(t)&&!Number.parseFloat(n)?0:(t=t.split(`,`)[0],n=n.split(`,`)[0],(Number.parseFloat(t)+Number.parseFloat(n))*Am)},Im=e=>{e.dispatchEvent(new Event(jm))},Lm=e=>!e||typeof e!=`object`?!1:(e.jquery!==void 0&&(e=e[0]),e.nodeType!==void 0),Rm=e=>Lm(e)?e.jquery?e[0]:e:typeof e==`string`&&e.length>0?document.querySelector(Mm(e)):null,zm=e=>{if(!Lm(e)||e.getClientRects().length===0)return!1;let t=getComputedStyle(e).getPropertyValue(`visibility`)===`visible`,n=e.closest(`details:not([open])`);if(!n)return t;if(n!==e){let t=e.closest(`summary`);if(t&&t.parentNode!==n||t===null)return!1}return t},Bm=e=>!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains(`disabled`)?!0:e.disabled===void 0?e.hasAttribute(`disabled`)&&e.getAttribute(`disabled`)!==`false`:e.disabled,Vm=e=>{if(!document.documentElement.attachShadow)return null;if(typeof e.getRootNode==`function`){let t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?Vm(e.parentNode):null},Hm=()=>{},Um=e=>{e.offsetHeight},Wm=()=>window.jQuery&&!document.body.hasAttribute(`data-bs-no-jquery`)?window.jQuery:null,Gm=[],Km=e=>{document.readyState===`loading`?(Gm.length||document.addEventListener(`DOMContentLoaded`,()=>{for(let e of Gm)e()}),Gm.push(e)):e()},qm=()=>document.documentElement.dir===`rtl`,Jm=e=>{Km(()=>{let t=Wm();if(t){let n=e.NAME,r=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=r,e.jQueryInterface)}})},Ym=(e,t=[],n=e)=>typeof e==`function`?e(...t):n,Xm=(e,t,n=!0)=>{if(!n){Ym(e);return}let r=Fm(t)+5,i=!1,a=({target:n})=>{n===t&&(i=!0,t.removeEventListener(jm,a),Ym(e))};t.addEventListener(jm,a),setTimeout(()=>{i||Im(t)},r)},Zm=(e,t,n,r)=>{let i=e.length,a=e.indexOf(t);return a===-1?!n&&r?e[i-1]:e[0]:(a+=n?1:-1,r&&(a=(a+i)%i),e[Math.max(0,Math.min(a,i-1))])},Qm=/[^.]*(?=\..*)\.|.*/,$m=/\..*/,eh=/::\d+$/,th={},nh=1,rh={mouseenter:`mouseover`,mouseleave:`mouseout`},ih=new Set(`click.dblclick.mouseup.mousedown.contextmenu.mousewheel.DOMMouseScroll.mouseover.mouseout.mousemove.selectstart.selectend.keydown.keypress.keyup.orientationchange.touchstart.touchmove.touchend.touchcancel.pointerdown.pointermove.pointerup.pointerleave.pointercancel.gesturestart.gesturechange.gestureend.focus.blur.change.reset.select.submit.focusin.focusout.load.unload.beforeunload.resize.move.DOMContentLoaded.readystatechange.error.abort.scroll`.split(`.`));function ah(e,t){return t&&`${t}::${nh++}`||e.uidEvent||nh++}function oh(e){let t=ah(e);return e.uidEvent=t,th[t]=th[t]||{},th[t]}function sh(e,t){return function n(r){return hh(r,{delegateTarget:e}),n.oneOff&&J.off(e,r.type,t),t.apply(e,[r])}}function ch(e,t,n){return function r(i){let a=e.querySelectorAll(t);for(let{target:o}=i;o&&o!==this;o=o.parentNode)for(let s of a)if(s===o)return hh(i,{delegateTarget:o}),r.oneOff&&J.off(e,i.type,t,n),n.apply(o,[i])}}function lh(e,t,n=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===n)}function uh(e,t,n){let r=typeof t==`string`,i=r?n:t||n,a=mh(e);return ih.has(a)||(a=e),[r,i,a]}function dh(e,t,n,r,i){if(typeof t!=`string`||!e)return;let[a,o,s]=uh(t,n,r);t in rh&&(o=(e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)})(o));let c=oh(e),l=c[s]||(c[s]={}),u=lh(l,o,a?n:null);if(u){u.oneOff=u.oneOff&&i;return}let d=ah(o,t.replace(Qm,``)),f=a?ch(e,n,o):sh(e,o);f.delegationSelector=a?n:null,f.callable=o,f.oneOff=i,f.uidEvent=d,l[d]=f,e.addEventListener(s,f,a)}function fh(e,t,n,r,i){let a=lh(t[n],r,i);a&&(e.removeEventListener(n,a,!!i),delete t[n][a.uidEvent])}function ph(e,t,n,r){let i=t[n]||{};for(let[a,o]of Object.entries(i))a.includes(r)&&fh(e,t,n,o.callable,o.delegationSelector)}function mh(e){return e=e.replace($m,``),rh[e]||e}var J={on(e,t,n,r){dh(e,t,n,r,!1)},one(e,t,n,r){dh(e,t,n,r,!0)},off(e,t,n,r){if(typeof t!=`string`||!e)return;let[i,a,o]=uh(t,n,r),s=o!==t,c=oh(e),l=c[o]||{},u=t.startsWith(`.`);if(a!==void 0){if(!Object.keys(l).length)return;fh(e,c,o,a,i?n:null);return}if(u)for(let n of Object.keys(c))ph(e,c,n,t.slice(1));for(let[n,r]of Object.entries(l)){let i=n.replace(eh,``);(!s||t.includes(i))&&fh(e,c,o,r.callable,r.delegationSelector)}},trigger(e,t,n){if(typeof t!=`string`||!e)return null;let r=Wm(),i=t!==mh(t),a=null,o=!0,s=!0,c=!1;i&&r&&(a=r.Event(t,n),r(e).trigger(a),o=!a.isPropagationStopped(),s=!a.isImmediatePropagationStopped(),c=a.isDefaultPrevented());let l=hh(new Event(t,{bubbles:o,cancelable:!0}),n);return c&&l.preventDefault(),s&&e.dispatchEvent(l),l.defaultPrevented&&a&&a.preventDefault(),l}};function hh(e,t={}){for(let[n,r]of Object.entries(t))try{e[n]=r}catch{Object.defineProperty(e,n,{configurable:!0,get(){return r}})}return e}function gh(e){if(e===`true`)return!0;if(e===`false`)return!1;if(e===Number(e).toString())return Number(e);if(e===``||e===`null`)return null;if(typeof e!=`string`)return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function _h(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}var vh={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${_h(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${_h(t)}`)},getDataAttributes(e){if(!e)return{};let t={},n=Object.keys(e.dataset).filter(e=>e.startsWith(`bs`)&&!e.startsWith(`bsConfig`));for(let r of n){let n=r.replace(/^bs/,``);n=n.charAt(0).toLowerCase()+n.slice(1,n.length),t[n]=gh(e.dataset[r])}return t},getDataAttribute(e,t){return gh(e.getAttribute(`data-bs-${_h(t)}`))}},yh=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw Error(`You have to implement the static method "NAME", for each component!`)}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){let n=Lm(t)?vh.getDataAttribute(t,`config`):{};return{...this.constructor.Default,...typeof n==`object`?n:{},...Lm(t)?vh.getDataAttributes(t):{},...typeof e==`object`?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(let[n,r]of Object.entries(t)){let t=e[n],i=Lm(t)?`element`:Nm(t);if(!new RegExp(r).test(i))throw TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${i}" but expected type "${r}".`)}}},bh=`5.3.2`,xh=class extends yh{constructor(e,t){super(),e=Rm(e),e&&(this._element=e,this._config=this._getConfig(t),Om.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Om.remove(this._element,this.constructor.DATA_KEY),J.off(this._element,this.constructor.EVENT_KEY);for(let e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){Xm(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Om.get(Rm(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t==`object`?t:null)}static get VERSION(){return bh}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}},Sh=e=>{let t=e.getAttribute(`data-bs-target`);if(!t||t===`#`){let n=e.getAttribute(`href`);if(!n||!n.includes(`#`)&&!n.startsWith(`.`))return null;n.includes(`#`)&&!n.startsWith(`#`)&&(n=`#${n.split(`#`)[1]}`),t=n&&n!==`#`?Mm(n.trim()):null}return t},Y={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(e=>e.matches(t))},parents(e,t){let n=[],r=e.parentNode.closest(t);for(;r;)n.push(r),r=r.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){let t=[`a`,`button`,`input`,`textarea`,`select`,`details`,`[tabindex]`,`[contenteditable="true"]`].map(e=>`${e}:not([tabindex^="-"])`).join(`,`);return this.find(t,e).filter(e=>!Bm(e)&&zm(e))},getSelectorFromElement(e){let t=Sh(e);return t&&Y.findOne(t)?t:null},getElementFromSelector(e){let t=Sh(e);return t?Y.findOne(t):null},getMultipleElementsFromSelector(e){let t=Sh(e);return t?Y.find(t):[]}},Ch=(e,t=`hide`)=>{let n=`click.dismiss${e.EVENT_KEY}`,r=e.NAME;J.on(document,n,`[data-bs-dismiss="${r}"]`,function(n){if([`A`,`AREA`].includes(this.tagName)&&n.preventDefault(),Bm(this))return;let i=Y.getElementFromSelector(this)||this.closest(`.${r}`);e.getOrCreateInstance(i)[t]()})},wh=`alert`,Th=`.bs.alert`,Eh=`close${Th}`,Dh=`closed${Th}`,Oh=`fade`,kh=`show`,Ah=class e extends xh{static get NAME(){return wh}close(){if(J.trigger(this._element,Eh).defaultPrevented)return;this._element.classList.remove(kh);let e=this._element.classList.contains(Oh);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),J.trigger(this._element,Dh),this.dispose()}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t](this)}})}};Ch(Ah,`close`),Jm(Ah);var jh=`button`,Mh=`.bs.button`,Nh=`.data-api`,Ph=`active`,Fh=`[data-bs-toggle="button"]`,Ih=`click${Mh}${Nh}`,Lh=class e extends xh{static get NAME(){return jh}toggle(){this._element.setAttribute(`aria-pressed`,this._element.classList.toggle(Ph))}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);t===`toggle`&&n[t]()})}};J.on(document,Ih,Fh,e=>{e.preventDefault();let t=e.target.closest(Fh);Lh.getOrCreateInstance(t).toggle()}),Jm(Lh);var Rh=`swipe`,zh=`.bs.swipe`,Bh=`touchstart${zh}`,Vh=`touchmove${zh}`,Hh=`touchend${zh}`,Uh=`pointerdown${zh}`,Wh=`pointerup${zh}`,Gh=`touch`,Kh=`pen`,qh=`pointer-event`,Jh=40,Yh={endCallback:null,leftCallback:null,rightCallback:null},Xh={endCallback:`(function|null)`,leftCallback:`(function|null)`,rightCallback:`(function|null)`},Zh=class e extends yh{constructor(t,n){super(),this._element=t,!(!t||!e.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Yh}static get DefaultType(){return Xh}static get NAME(){return Rh}dispose(){J.off(this._element,zh)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),Ym(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){let e=Math.abs(this._deltaX);if(e<=Jh)return;let t=e/this._deltaX;this._deltaX=0,t&&Ym(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(J.on(this._element,Uh,e=>this._start(e)),J.on(this._element,Wh,e=>this._end(e)),this._element.classList.add(qh)):(J.on(this._element,Bh,e=>this._start(e)),J.on(this._element,Vh,e=>this._move(e)),J.on(this._element,Hh,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===Kh||e.pointerType===Gh)}static isSupported(){return`ontouchstart`in document.documentElement||navigator.maxTouchPoints>0}},Qh=`carousel`,$h=`.bs.carousel`,eg=`.data-api`,tg=`ArrowLeft`,ng=`ArrowRight`,rg=500,ig=`next`,ag=`prev`,og=`left`,sg=`right`,cg=`slide${$h}`,lg=`slid${$h}`,ug=`keydown${$h}`,dg=`mouseenter${$h}`,fg=`mouseleave${$h}`,pg=`dragstart${$h}`,mg=`load${$h}${eg}`,hg=`click${$h}${eg}`,gg=`carousel`,_g=`active`,vg=`slide`,yg=`carousel-item-end`,bg=`carousel-item-start`,xg=`carousel-item-next`,Sg=`carousel-item-prev`,Cg=`.active`,wg=`.carousel-item`,Tg=Cg+wg,Eg=`.carousel-item img`,Dg=`.carousel-indicators`,Og=`[data-bs-slide], [data-bs-slide-to]`,kg=`[data-bs-ride="carousel"]`,Ag={[tg]:sg,[ng]:og},jg={interval:5e3,keyboard:!0,pause:`hover`,ride:!1,touch:!0,wrap:!0},Mg={interval:`(number|boolean)`,keyboard:`boolean`,pause:`(string|boolean)`,ride:`(boolean|string)`,touch:`boolean`,wrap:`boolean`},Ng=class e extends xh{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Y.findOne(Dg,this._element),this._addEventListeners(),this._config.ride===gg&&this.cycle()}static get Default(){return jg}static get DefaultType(){return Mg}static get NAME(){return Qh}next(){this._slide(ig)}nextWhenVisible(){!document.hidden&&zm(this._element)&&this.next()}prev(){this._slide(ag)}pause(){this._isSliding&&Im(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){J.one(this._element,lg,()=>this.cycle());return}this.cycle()}}to(e){let t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){J.one(this._element,lg,()=>this.to(e));return}let n=this._getItemIndex(this._getActive());if(n===e)return;let r=e>n?ig:ag;this._slide(r,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&J.on(this._element,ug,e=>this._keydown(e)),this._config.pause===`hover`&&(J.on(this._element,dg,()=>this.pause()),J.on(this._element,fg,()=>this._maybeEnableCycle())),this._config.touch&&Zh.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let e of Y.find(Eg,this._element))J.on(e,pg,e=>e.preventDefault());this._swipeHelper=new Zh(this._element,{leftCallback:()=>this._slide(this._directionToOrder(og)),rightCallback:()=>this._slide(this._directionToOrder(sg)),endCallback:()=>{this._config.pause===`hover`&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),rg+this._config.interval))}})}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;let t=Ag[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;let t=Y.findOne(Cg,this._indicatorsElement);t.classList.remove(_g),t.removeAttribute(`aria-current`);let n=Y.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(_g),n.setAttribute(`aria-current`,`true`))}_updateInterval(){let e=this._activeElement||this._getActive();if(!e)return;let t=Number.parseInt(e.getAttribute(`data-bs-interval`),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;let n=this._getActive(),r=e===ig,i=t||Zm(this._getItems(),n,r,this._config.wrap);if(i===n)return;let a=this._getItemIndex(i),o=t=>J.trigger(this._element,t,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:a});if(o(cg).defaultPrevented||!n||!i)return;let s=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=i;let c=r?bg:yg,l=r?xg:Sg;i.classList.add(l),Um(i),n.classList.add(c),i.classList.add(c),this._queueCallback(()=>{i.classList.remove(c,l),i.classList.add(_g),n.classList.remove(_g,l,c),this._isSliding=!1,o(lg)},n,this._isAnimated()),s&&this.cycle()}_isAnimated(){return this._element.classList.contains(vg)}_getActive(){return Y.findOne(Tg,this._element)}_getItems(){return Y.find(wg,this._element)}_clearInterval(){this._interval&&=(clearInterval(this._interval),null)}_directionToOrder(e){return qm()?e===og?ag:ig:e===og?ig:ag}_orderToDirection(e){return qm()?e===ag?og:sg:e===ag?sg:og}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`number`){n.to(t);return}if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};J.on(document,hg,Og,function(e){let t=Y.getElementFromSelector(this);if(!t||!t.classList.contains(gg))return;e.preventDefault();let n=Ng.getOrCreateInstance(t),r=this.getAttribute(`data-bs-slide-to`);if(r){n.to(r),n._maybeEnableCycle();return}if(vh.getDataAttribute(this,`slide`)===`next`){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()}),J.on(window,mg,()=>{let e=Y.find(kg);for(let t of e)Ng.getOrCreateInstance(t)}),Jm(Ng);var Pg=`collapse`,Fg=`.bs.collapse`,Ig=`.data-api`,Lg=`show${Fg}`,Rg=`shown${Fg}`,zg=`hide${Fg}`,Bg=`hidden${Fg}`,Vg=`click${Fg}${Ig}`,Hg=`show`,Ug=`collapse`,Wg=`collapsing`,Gg=`collapsed`,Kg=`:scope .${Ug} .${Ug}`,qg=`collapse-horizontal`,Jg=`width`,Yg=`height`,Xg=`.collapse.show, .collapse.collapsing`,Zg=`[data-bs-toggle="collapse"]`,Qg={parent:null,toggle:!0},$g={parent:`(null|element)`,toggle:`boolean`},e_=class e extends xh{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];let n=Y.find(Zg);for(let e of n){let t=Y.getSelectorFromElement(e),n=Y.find(t).filter(e=>e===this._element);t!==null&&n.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Qg}static get DefaultType(){return $g}static get NAME(){return Pg}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(Xg).filter(e=>e!==this._element).map(t=>e.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning||J.trigger(this._element,Lg).defaultPrevented)return;for(let e of t)e.hide();let n=this._getDimension();this._element.classList.remove(Ug),this._element.classList.add(Wg),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let r=()=>{this._isTransitioning=!1,this._element.classList.remove(Wg),this._element.classList.add(Ug,Hg),this._element.style[n]=``,J.trigger(this._element,Rg)},i=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(r,this._element,!0),this._element.style[n]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown()||J.trigger(this._element,zg).defaultPrevented)return;let e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Um(this._element),this._element.classList.add(Wg),this._element.classList.remove(Ug,Hg);for(let e of this._triggerArray){let t=Y.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;let t=()=>{this._isTransitioning=!1,this._element.classList.remove(Wg),this._element.classList.add(Ug),J.trigger(this._element,Bg)};this._element.style[e]=``,this._queueCallback(t,this._element,!0)}_isShown(e=this._element){return e.classList.contains(Hg)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Rm(e.parent),e}_getDimension(){return this._element.classList.contains(qg)?Jg:Yg}_initializeChildren(){if(!this._config.parent)return;let e=this._getFirstLevelChildren(Zg);for(let t of e){let e=Y.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){let t=Y.find(Kg,this._config.parent);return Y.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(let n of e)n.classList.toggle(Gg,!t),n.setAttribute(`aria-expanded`,t)}static jQueryInterface(t){let n={};return typeof t==`string`&&/show|hide/.test(t)&&(n.toggle=!1),this.each(function(){let r=e.getOrCreateInstance(this,n);if(typeof t==`string`){if(r[t]===void 0)throw TypeError(`No method named "${t}"`);r[t]()}})}};J.on(document,Vg,Zg,function(e){(e.target.tagName===`A`||e.delegateTarget&&e.delegateTarget.tagName===`A`)&&e.preventDefault();for(let e of Y.getMultipleElementsFromSelector(this))e_.getOrCreateInstance(e,{toggle:!1}).toggle()}),Jm(e_);var t_=`dropdown`,n_=`.bs.dropdown`,r_=`.data-api`,i_=`Escape`,a_=`Tab`,o_=`ArrowUp`,s_=`ArrowDown`,c_=2,l_=`hide${n_}`,u_=`hidden${n_}`,d_=`show${n_}`,f_=`shown${n_}`,p_=`click${n_}${r_}`,m_=`keydown${n_}${r_}`,h_=`keyup${n_}${r_}`,g_=`show`,__=`dropup`,v_=`dropend`,y_=`dropstart`,b_=`dropup-center`,x_=`dropdown-center`,S_=`[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)`,C_=`${S_}.${g_}`,w_=`.dropdown-menu`,T_=`.navbar`,E_=`.navbar-nav`,D_=`.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)`,O_=qm()?`top-end`:`top-start`,k_=qm()?`top-start`:`top-end`,A_=qm()?`bottom-end`:`bottom-start`,j_=qm()?`bottom-start`:`bottom-end`,M_=qm()?`left-start`:`right-start`,N_=qm()?`right-start`:`left-start`,P_=`top`,F_=`bottom`,I_={autoClose:!0,boundary:`clippingParents`,display:`dynamic`,offset:[0,2],popperConfig:null,reference:`toggle`},L_={autoClose:`(boolean|string)`,boundary:`(string|element)`,display:`string`,offset:`(array|string|function)`,popperConfig:`(null|object|function)`,reference:`(string|element|object)`},R_=class e extends xh{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=Y.next(this._element,w_)[0]||Y.prev(this._element,w_)[0]||Y.findOne(w_,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return I_}static get DefaultType(){return L_}static get NAME(){return t_}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Bm(this._element)||this._isShown())return;let e={relatedTarget:this._element};if(!J.trigger(this._element,d_,e).defaultPrevented){if(this._createPopper(),`ontouchstart`in document.documentElement&&!this._parent.closest(E_))for(let e of[].concat(...document.body.children))J.on(e,`mouseover`,Hm);this._element.focus(),this._element.setAttribute(`aria-expanded`,!0),this._menu.classList.add(g_),this._element.classList.add(g_),J.trigger(this._element,f_,e)}}hide(){if(Bm(this._element)||!this._isShown())return;let e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!J.trigger(this._element,l_,e).defaultPrevented){if(`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))J.off(e,`mouseover`,Hm);this._popper&&this._popper.destroy(),this._menu.classList.remove(g_),this._element.classList.remove(g_),this._element.setAttribute(`aria-expanded`,`false`),vh.removeDataAttribute(this._menu,`popper`),J.trigger(this._element,u_,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference==`object`&&!Lm(e.reference)&&typeof e.reference.getBoundingClientRect!=`function`)throw TypeError(`${t_.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(Em===void 0)throw TypeError(`Bootstrap's dropdowns require Popper (https://popper.js.org)`);let e=this._element;this._config.reference===`parent`?e=this._parent:Lm(this._config.reference)?e=Rm(this._config.reference):typeof this._config.reference==`object`&&(e=this._config.reference);let t=this._getPopperConfig();this._popper=Tm(e,this._menu,t)}_isShown(){return this._menu.classList.contains(g_)}_getPlacement(){let e=this._parent;if(e.classList.contains(v_))return M_;if(e.classList.contains(y_))return N_;if(e.classList.contains(b_))return P_;if(e.classList.contains(x_))return F_;let t=getComputedStyle(this._menu).getPropertyValue(`--bs-position`).trim()===`end`;return e.classList.contains(__)?t?k_:O_:t?j_:A_}_detectNavbar(){return this._element.closest(T_)!==null}_getOffset(){let{offset:e}=this._config;return typeof e==`string`?e.split(`,`).map(e=>Number.parseInt(e,10)):typeof e==`function`?t=>e(t,this._element):e}_getPopperConfig(){let e={placement:this._getPlacement(),modifiers:[{name:`preventOverflow`,options:{boundary:this._config.boundary}},{name:`offset`,options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display===`static`)&&(vh.setDataAttribute(this._menu,`popper`,`static`),e.modifiers=[{name:`applyStyles`,enabled:!1}]),{...e,...Ym(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){let n=Y.find(D_,this._menu).filter(e=>zm(e));n.length&&Zm(n,t,e===s_,!n.includes(t)).focus()}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}static clearMenus(t){if(t.button===c_||t.type===`keyup`&&t.key!==a_)return;let n=Y.find(C_);for(let r of n){let n=e.getInstance(r);if(!n||n._config.autoClose===!1)continue;let i=t.composedPath(),a=i.includes(n._menu);if(i.includes(n._element)||n._config.autoClose===`inside`&&!a||n._config.autoClose===`outside`&&a||n._menu.contains(t.target)&&(t.type===`keyup`&&t.key===a_||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;let o={relatedTarget:n._element};t.type===`click`&&(o.clickEvent=t),n._completeHide(o)}}static dataApiKeydownHandler(t){let n=/input|textarea/i.test(t.target.tagName),r=t.key===i_,i=[o_,s_].includes(t.key);if(!i&&!r||n&&!r)return;t.preventDefault();let a=this.matches(S_)?this:Y.prev(this,S_)[0]||Y.next(this,S_)[0]||Y.findOne(S_,t.delegateTarget.parentNode),o=e.getOrCreateInstance(a);if(i){t.stopPropagation(),o.show(),o._selectMenuItem(t);return}o._isShown()&&(t.stopPropagation(),o.hide(),a.focus())}};J.on(document,m_,S_,R_.dataApiKeydownHandler),J.on(document,m_,w_,R_.dataApiKeydownHandler),J.on(document,p_,R_.clearMenus),J.on(document,h_,R_.clearMenus),J.on(document,p_,S_,function(e){e.preventDefault(),R_.getOrCreateInstance(this).toggle()}),Jm(R_);var z_=`backdrop`,B_=`fade`,V_=`show`,H_=`mousedown.bs.${z_}`,U_={className:`modal-backdrop`,clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:`body`},W_={className:`string`,clickCallback:`(function|null)`,isAnimated:`boolean`,isVisible:`boolean`,rootElement:`(element|string)`},G_=class extends yh{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return U_}static get DefaultType(){return W_}static get NAME(){return z_}show(e){if(!this._config.isVisible){Ym(e);return}this._append();let t=this._getElement();this._config.isAnimated&&Um(t),t.classList.add(V_),this._emulateAnimation(()=>{Ym(e)})}hide(e){if(!this._config.isVisible){Ym(e);return}this._getElement().classList.remove(V_),this._emulateAnimation(()=>{this.dispose(),Ym(e)})}dispose(){this._isAppended&&=(J.off(this._element,H_),this._element.remove(),!1)}_getElement(){if(!this._element){let e=document.createElement(`div`);e.className=this._config.className,this._config.isAnimated&&e.classList.add(B_),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Rm(e.rootElement),e}_append(){if(this._isAppended)return;let e=this._getElement();this._config.rootElement.append(e),J.on(e,H_,()=>{Ym(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){Xm(e,this._getElement(),this._config.isAnimated)}},K_=`focustrap`,q_=`.bs.focustrap`,J_=`focusin${q_}`,Y_=`keydown.tab${q_}`,X_=`Tab`,Z_=`forward`,Q_=`backward`,$_={autofocus:!0,trapElement:null},ev={autofocus:`boolean`,trapElement:`element`},tv=class extends yh{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return $_}static get DefaultType(){return ev}static get NAME(){return K_}activate(){this._isActive||=(this._config.autofocus&&this._config.trapElement.focus(),J.off(document,q_),J.on(document,J_,e=>this._handleFocusin(e)),J.on(document,Y_,e=>this._handleKeydown(e)),!0)}deactivate(){this._isActive&&(this._isActive=!1,J.off(document,q_))}_handleFocusin(e){let{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;let n=Y.focusableChildren(t);n.length===0?t.focus():this._lastTabNavDirection===Q_?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===X_&&(this._lastTabNavDirection=e.shiftKey?Q_:Z_)}},nv=`.fixed-top, .fixed-bottom, .is-fixed, .sticky-top`,rv=`.sticky-top`,iv=`padding-right`,av=`margin-right`,ov=class{constructor(){this._element=document.body}getWidth(){let e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){let e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,iv,t=>t+e),this._setElementAttributes(nv,iv,t=>t+e),this._setElementAttributes(rv,av,t=>t-e)}reset(){this._resetElementAttributes(this._element,`overflow`),this._resetElementAttributes(this._element,iv),this._resetElementAttributes(nv,iv),this._resetElementAttributes(rv,av)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,`overflow`),this._element.style.overflow=`hidden`}_setElementAttributes(e,t,n){let r=this.getWidth();this._applyManipulationCallback(e,e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+r)return;this._saveInitialAttribute(e,t);let i=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(i))}px`)})}_saveInitialAttribute(e,t){let n=e.style.getPropertyValue(t);n&&vh.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,e=>{let n=vh.getDataAttribute(e,t);if(n===null){e.style.removeProperty(t);return}vh.removeDataAttribute(e,t),e.style.setProperty(t,n)})}_applyManipulationCallback(e,t){if(Lm(e)){t(e);return}for(let n of Y.find(e,this._element))t(n)}},sv=`modal`,cv=`.bs.modal`,lv=`.data-api`,uv=`Escape`,dv=`hide${cv}`,fv=`hidePrevented${cv}`,pv=`hidden${cv}`,mv=`show${cv}`,hv=`shown${cv}`,gv=`resize${cv}`,_v=`click.dismiss${cv}`,vv=`mousedown.dismiss${cv}`,yv=`keydown.dismiss${cv}`,bv=`click${cv}${lv}`,xv=`modal-open`,Sv=`fade`,Cv=`show`,wv=`modal-static`,Tv=`.modal.show`,Ev=`.modal-dialog`,Dv=`.modal-body`,Ov=`[data-bs-toggle="modal"]`,kv={backdrop:!0,focus:!0,keyboard:!0},Av={backdrop:`(boolean|string)`,focus:`boolean`,keyboard:`boolean`},jv=class e extends xh{constructor(e,t){super(e,t),this._dialog=Y.findOne(Ev,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new ov,this._addEventListeners()}static get Default(){return kv}static get DefaultType(){return Av}static get NAME(){return sv}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||J.trigger(this._element,mv,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(xv),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||J.trigger(this._element,dv).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Cv),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){J.off(window,cv),J.off(this._dialog,cv),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new G_({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new tv({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display=`block`,this._element.removeAttribute(`aria-hidden`),this._element.setAttribute(`aria-modal`,!0),this._element.setAttribute(`role`,`dialog`),this._element.scrollTop=0;let t=Y.findOne(Dv,this._dialog);t&&(t.scrollTop=0),Um(this._element),this._element.classList.add(Cv),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,J.trigger(this._element,hv,{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){J.on(this._element,yv,e=>{if(e.key===uv){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),J.on(window,gv,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),J.on(this._element,vv,e=>{J.one(this._element,_v,t=>{if(!(this._element!==e.target||this._element!==t.target)){if(this._config.backdrop===`static`){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display=`none`,this._element.setAttribute(`aria-hidden`,!0),this._element.removeAttribute(`aria-modal`),this._element.removeAttribute(`role`),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(xv),this._resetAdjustments(),this._scrollBar.reset(),J.trigger(this._element,pv)})}_isAnimated(){return this._element.classList.contains(Sv)}_triggerBackdropTransition(){if(J.trigger(this._element,fv).defaultPrevented)return;let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;t===`hidden`||this._element.classList.contains(wv)||(e||(this._element.style.overflowY=`hidden`),this._element.classList.add(wv),this._queueCallback(()=>{this._element.classList.remove(wv),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;if(n&&!e){let e=qm()?`paddingLeft`:`paddingRight`;this._element.style[e]=`${t}px`}if(!n&&e){let e=qm()?`paddingRight`:`paddingLeft`;this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft=``,this._element.style.paddingRight=``}static jQueryInterface(t,n){return this.each(function(){let r=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(r[t]===void 0)throw TypeError(`No method named "${t}"`);r[t](n)}})}};J.on(document,bv,Ov,function(e){let t=Y.getElementFromSelector(this);[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),J.one(t,mv,e=>{e.defaultPrevented||J.one(t,pv,()=>{zm(this)&&this.focus()})});let n=Y.findOne(Tv);n&&jv.getInstance(n).hide(),jv.getOrCreateInstance(t).toggle(this)}),Ch(jv),Jm(jv);var Mv=`offcanvas`,Nv=`.bs.offcanvas`,Pv=`.data-api`,Fv=`load${Nv}${Pv}`,Iv=`Escape`,Lv=`show`,Rv=`showing`,zv=`hiding`,Bv=`offcanvas-backdrop`,Vv=`.offcanvas.show`,Hv=`show${Nv}`,Uv=`shown${Nv}`,Wv=`hide${Nv}`,Gv=`hidePrevented${Nv}`,Kv=`hidden${Nv}`,qv=`resize${Nv}`,Jv=`click${Nv}${Pv}`,Yv=`keydown.dismiss${Nv}`,Xv=`[data-bs-toggle="offcanvas"]`,Zv={backdrop:!0,keyboard:!0,scroll:!1},Qv={backdrop:`(boolean|string)`,keyboard:`boolean`,scroll:`boolean`},$v=class e extends xh{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Zv}static get DefaultType(){return Qv}static get NAME(){return Mv}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||J.trigger(this._element,Hv,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new ov().hide(),this._element.setAttribute(`aria-modal`,!0),this._element.setAttribute(`role`,`dialog`),this._element.classList.add(Rv),this._queueCallback(()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Lv),this._element.classList.remove(Rv),J.trigger(this._element,Uv,{relatedTarget:e})},this._element,!0))}hide(){!this._isShown||J.trigger(this._element,Wv).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(zv),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(Lv,zv),this._element.removeAttribute(`aria-modal`),this._element.removeAttribute(`role`),this._config.scroll||new ov().reset(),J.trigger(this._element,Kv)},this._element,!0))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){let e=()=>{if(this._config.backdrop===`static`){J.trigger(this._element,Gv);return}this.hide()},t=!!this._config.backdrop;return new G_({className:Bv,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new tv({trapElement:this._element})}_addEventListeners(){J.on(this._element,Yv,e=>{if(e.key===Iv){if(this._config.keyboard){this.hide();return}J.trigger(this._element,Gv)}})}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t](this)}})}};J.on(document,Jv,Xv,function(e){let t=Y.getElementFromSelector(this);if([`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),Bm(this))return;J.one(t,Kv,()=>{zm(this)&&this.focus()});let n=Y.findOne(Vv);n&&n!==t&&$v.getInstance(n).hide(),$v.getOrCreateInstance(t).toggle(this)}),J.on(window,Fv,()=>{for(let e of Y.find(Vv))$v.getOrCreateInstance(e).show()}),J.on(window,qv,()=>{for(let e of Y.find(`[aria-modal][class*=show][class*=offcanvas-]`))getComputedStyle(e).position!==`fixed`&&$v.getOrCreateInstance(e).hide()}),Ch($v),Jm($v);var ey=/^aria-[\w-]*$/i,ty={"*":[`class`,`dir`,`id`,`lang`,`role`,ey],a:[`target`,`href`,`title`,`rel`],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:[`src`,`srcset`,`alt`,`title`,`width`,`height`],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},ny=new Set([`background`,`cite`,`href`,`itemtype`,`longdesc`,`poster`,`src`,`xlink:href`]),ry=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,iy=(e,t)=>{let n=e.nodeName.toLowerCase();return t.includes(n)?ny.has(n)?!!ry.test(e.nodeValue):!0:t.filter(e=>e instanceof RegExp).some(e=>e.test(n))};function ay(e,t,n){if(!e.length)return e;if(n&&typeof n==`function`)return n(e);let r=new window.DOMParser().parseFromString(e,`text/html`),i=[].concat(...r.body.querySelectorAll(`*`));for(let e of i){let n=e.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){e.remove();continue}let r=[].concat(...e.attributes),i=[].concat(t[`*`]||[],t[n]||[]);for(let t of r)iy(t,i)||e.removeAttribute(t.nodeName)}return r.body.innerHTML}var oy=`TemplateFactory`,sy={allowList:ty,content:{},extraClass:``,html:!1,sanitize:!0,sanitizeFn:null,template:`<div></div>`},cy={allowList:`object`,content:`object`,extraClass:`(string|function)`,html:`boolean`,sanitize:`boolean`,sanitizeFn:`(null|function)`,template:`string`},ly={entry:`(string|element|function|null)`,selector:`(string|element)`},uy=class extends yh{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return sy}static get DefaultType(){return cy}static get NAME(){return oy}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){let e=document.createElement(`div`);e.innerHTML=this._maybeSanitize(this._config.template);for(let[t,n]of Object.entries(this._config.content))this._setContent(e,n,t);let t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(` `)),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(let[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},ly)}_setContent(e,t,n){let r=Y.findOne(n,e);if(r){if(t=this._resolvePossibleFunction(t),!t){r.remove();return}if(Lm(t)){this._putElementInTemplate(Rm(t),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(t);return}r.textContent=t}}_maybeSanitize(e){return this._config.sanitize?ay(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Ym(e,[this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML=``,t.append(e);return}t.textContent=e.textContent}},dy=`tooltip`,fy=new Set([`sanitize`,`allowList`,`sanitizeFn`]),py=`fade`,my=`modal`,hy=`show`,gy=`.tooltip-inner`,_y=`.${my}`,vy=`hide.bs.modal`,yy=`hover`,by=`focus`,xy=`click`,Sy=`manual`,Cy=`hide`,wy=`hidden`,Ty=`show`,Ey=`shown`,Dy=`inserted`,Oy=`click`,ky=`focusin`,Ay=`focusout`,jy=`mouseenter`,My=`mouseleave`,Ny={AUTO:`auto`,TOP:`top`,RIGHT:qm()?`left`:`right`,BOTTOM:`bottom`,LEFT:qm()?`right`:`left`},Py={allowList:ty,animation:!0,boundary:`clippingParents`,container:!1,customClass:``,delay:0,fallbackPlacements:[`top`,`right`,`bottom`,`left`],html:!1,offset:[0,6],placement:`top`,popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:`<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>`,title:``,trigger:`hover focus`},Fy={allowList:`object`,animation:`boolean`,boundary:`(string|element)`,container:`(string|element|boolean)`,customClass:`(string|function)`,delay:`(number|object)`,fallbackPlacements:`array`,html:`boolean`,offset:`(array|string|function)`,placement:`(string|function)`,popperConfig:`(null|object|function)`,sanitize:`boolean`,sanitizeFn:`(null|function)`,selector:`(string|boolean)`,template:`string`,title:`(string|element|function)`,trigger:`string`},Iy=class e extends xh{constructor(e,t){if(Em===void 0)throw TypeError(`Bootstrap's tooltips require Popper (https://popper.js.org)`);super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Py}static get DefaultType(){return Fy}static get NAME(){return dy}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),J.off(this._element.closest(_y),vy,this._hideModalHandler),this._element.getAttribute(`data-bs-original-title`)&&this._element.setAttribute(`title`,this._element.getAttribute(`data-bs-original-title`)),this._disposePopper(),super.dispose()}show(){if(this._element.style.display===`none`)throw Error(`Please use show on visible elements`);if(!(this._isWithContent()&&this._isEnabled))return;let e=J.trigger(this._element,this.constructor.eventName(Ty)),t=(Vm(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();let n=this._getTipElement();this._element.setAttribute(`aria-describedby`,n.getAttribute(`id`));let{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(n),J.trigger(this._element,this.constructor.eventName(Dy))),this._popper=this._createPopper(n),n.classList.add(hy),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))J.on(e,`mouseover`,Hm);this._queueCallback(()=>{J.trigger(this._element,this.constructor.eventName(Ey)),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(!(!this._isShown()||J.trigger(this._element,this.constructor.eventName(Cy)).defaultPrevented)){if(this._getTipElement().classList.remove(hy),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))J.off(e,`mouseover`,Hm);this._activeTrigger[xy]=!1,this._activeTrigger[by]=!1,this._activeTrigger[yy]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute(`aria-describedby`),J.trigger(this._element,this.constructor.eventName(wy)))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||=this._createTipElement(this._newContent||this._getContentForTemplate()),this.tip}_createTipElement(e){let t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(py,hy),t.classList.add(`bs-${this.constructor.NAME}-auto`);let n=Pm(this.constructor.NAME).toString();return t.setAttribute(`id`,n),this._isAnimated()&&t.classList.add(py),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new uy({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[gy]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute(`data-bs-original-title`)}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(py)}_isShown(){return this.tip&&this.tip.classList.contains(hy)}_createPopper(e){let t=Ny[Ym(this._config.placement,[this,e,this._element]).toUpperCase()];return Tm(this._element,e,this._getPopperConfig(t))}_getOffset(){let{offset:e}=this._config;return typeof e==`string`?e.split(`,`).map(e=>Number.parseInt(e,10)):typeof e==`function`?t=>e(t,this._element):e}_resolvePossibleFunction(e){return Ym(e,[this._element])}_getPopperConfig(e){let t={placement:e,modifiers:[{name:`flip`,options:{fallbackPlacements:this._config.fallbackPlacements}},{name:`offset`,options:{offset:this._getOffset()}},{name:`preventOverflow`,options:{boundary:this._config.boundary}},{name:`arrow`,options:{element:`.${this.constructor.NAME}-arrow`}},{name:`preSetPlacement`,enabled:!0,phase:`beforeMain`,fn:e=>{this._getTipElement().setAttribute(`data-popper-placement`,e.state.placement)}}]};return{...t,...Ym(this._config.popperConfig,[t])}}_setListeners(){let e=this._config.trigger.split(` `);for(let t of e)if(t===`click`)J.on(this._element,this.constructor.eventName(Oy),this._config.selector,e=>{this._initializeOnDelegatedTarget(e).toggle()});else if(t!==Sy){let e=t===yy?this.constructor.eventName(jy):this.constructor.eventName(ky),n=t===yy?this.constructor.eventName(My):this.constructor.eventName(Ay);J.on(this._element,e,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusin`?by:yy]=!0,t._enter()}),J.on(this._element,n,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusout`?by:yy]=t._element.contains(e.relatedTarget),t._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},J.on(this._element.closest(_y),vy,this._hideModalHandler)}_fixTitle(){let e=this._element.getAttribute(`title`);e&&(!this._element.getAttribute(`aria-label`)&&!this._element.textContent.trim()&&this._element.setAttribute(`aria-label`,e),this._element.setAttribute(`data-bs-original-title`,e),this._element.removeAttribute(`title`))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){let t=vh.getDataAttributes(this._element);for(let e of Object.keys(t))fy.has(e)&&delete t[e];return e={...t,...typeof e==`object`&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:Rm(e.container),typeof e.delay==`number`&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title==`number`&&(e.title=e.title.toString()),typeof e.content==`number`&&(e.content=e.content.toString()),e}_getDelegateConfig(){let e={};for(let[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger=`manual`,e}_disposePopper(){this._popper&&=(this._popper.destroy(),null),this.tip&&=(this.tip.remove(),null)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}};Jm(Iy);var Ly=`popover`,Ry=`.popover-header`,zy=`.popover-body`,By={...Iy.Default,content:``,offset:[0,8],placement:`right`,template:`<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>`,trigger:`click`},Vy={...Iy.DefaultType,content:`(null|string|element|function)`};Jm(class e extends Iy{static get Default(){return By}static get DefaultType(){return Vy}static get NAME(){return Ly}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Ry]:this._getTitle(),[zy]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}});var Hy=`scrollspy`,Uy=`.bs.scrollspy`,Wy=`.data-api`,Gy=`activate${Uy}`,Ky=`click${Uy}`,qy=`load${Uy}${Wy}`,Jy=`dropdown-item`,Yy=`active`,Xy=`[data-bs-spy="scroll"]`,Zy=`[href]`,Qy=`.nav, .list-group`,$y=`.nav-link`,eb=`${$y}, .nav-item > ${$y}, .list-group-item`,tb=`.dropdown`,nb=`.dropdown-toggle`,rb={offset:null,rootMargin:`0px 0px -25%`,smoothScroll:!1,target:null,threshold:[.1,.5,1]},ib={offset:`(number|null)`,rootMargin:`string`,smoothScroll:`boolean`,target:`element`,threshold:`array`},ab=class e extends xh{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY===`visible`?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return rb}static get DefaultType(){return ib}static get NAME(){return Hy}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(let e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Rm(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold==`string`&&(e.threshold=e.threshold.split(`,`).map(e=>Number.parseFloat(e))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(J.off(this._config.target,Ky),J.on(this._config.target,Ky,Zy,e=>{let t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();let n=this._rootElement||window,r=t.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:r,behavior:`smooth`});return}n.scrollTop=r}}))}_getNewObserver(){let e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),e)}_observerCallback(e){let t=e=>this._targetLinks.get(`#${e.target.id}`),n=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},r=(this._rootElement||document.documentElement).scrollTop,i=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(let a of e){if(!a.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(a));continue}let e=a.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&e){if(n(a),!r)return;continue}!i&&!e&&n(a)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let e=Y.find(Zy,this._config.target);for(let t of e){if(!t.hash||Bm(t))continue;let e=Y.findOne(decodeURI(t.hash),this._element);zm(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(Yy),this._activateParents(e),J.trigger(this._element,Gy,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(Jy)){Y.findOne(nb,e.closest(tb)).classList.add(Yy);return}for(let t of Y.parents(e,Qy))for(let e of Y.prev(t,eb))e.classList.add(Yy)}_clearActiveClass(e){e.classList.remove(Yy);let t=Y.find(`${Zy}.${Yy}`,e);for(let e of t)e.classList.remove(Yy)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};J.on(window,qy,()=>{for(let e of Y.find(Xy))ab.getOrCreateInstance(e)}),Jm(ab);var ob=`tab`,sb=`.bs.tab`,cb=`hide${sb}`,lb=`hidden${sb}`,ub=`show${sb}`,db=`shown${sb}`,fb=`click${sb}`,pb=`keydown${sb}`,mb=`load${sb}`,hb=`ArrowLeft`,gb=`ArrowRight`,_b=`ArrowUp`,vb=`ArrowDown`,yb=`Home`,bb=`End`,xb=`active`,Sb=`fade`,Cb=`show`,wb=`dropdown`,Tb=`.dropdown-toggle`,Eb=`.dropdown-menu`,Db=`:not(${Tb})`,Ob=`.list-group, .nav, [role="tablist"]`,kb=`.nav-item, .list-group-item`,Ab=`.nav-link${Db}, .list-group-item${Db}, [role="tab"]${Db}`,jb=`[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]`,Mb=`${Ab}, ${jb}`,Nb=`.${xb}[data-bs-toggle="tab"], .${xb}[data-bs-toggle="pill"], .${xb}[data-bs-toggle="list"]`,Pb=class e extends xh{constructor(e){super(e),this._parent=this._element.closest(Ob),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),J.on(this._element,pb,e=>this._keydown(e)))}static get NAME(){return ob}show(){let e=this._element;if(this._elemIsActive(e))return;let t=this._getActiveElem(),n=t?J.trigger(t,cb,{relatedTarget:e}):null;J.trigger(e,ub,{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(xb),this._activate(Y.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.add(Cb);return}e.removeAttribute(`tabindex`),e.setAttribute(`aria-selected`,!0),this._toggleDropDown(e,!0),J.trigger(e,db,{relatedTarget:t})},e,e.classList.contains(Sb)))}_deactivate(e,t){e&&(e.classList.remove(xb),e.blur(),this._deactivate(Y.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.remove(Cb);return}e.setAttribute(`aria-selected`,!1),e.setAttribute(`tabindex`,`-1`),this._toggleDropDown(e,!1),J.trigger(e,lb,{relatedTarget:t})},e,e.classList.contains(Sb)))}_keydown(t){if(![hb,gb,_b,vb,yb,bb].includes(t.key))return;t.stopPropagation(),t.preventDefault();let n=this._getChildren().filter(e=>!Bm(e)),r;if([yb,bb].includes(t.key))r=n[t.key===yb?0:n.length-1];else{let e=[gb,vb].includes(t.key);r=Zm(n,t.target,e,!0)}r&&(r.focus({preventScroll:!0}),e.getOrCreateInstance(r).show())}_getChildren(){return Y.find(Mb,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,`role`,`tablist`);for(let e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);let t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute(`aria-selected`,t),n!==e&&this._setAttributeIfNotExists(n,`role`,`presentation`),t||e.setAttribute(`tabindex`,`-1`),this._setAttributeIfNotExists(e,`role`,`tab`),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){let t=Y.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,`role`,`tabpanel`),e.id&&this._setAttributeIfNotExists(t,`aria-labelledby`,`${e.id}`))}_toggleDropDown(e,t){let n=this._getOuterElement(e);if(!n.classList.contains(wb))return;let r=(e,r)=>{let i=Y.findOne(e,n);i&&i.classList.toggle(r,t)};r(Tb,xb),r(Eb,Cb),n.setAttribute(`aria-expanded`,t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(xb)}_getInnerElement(e){return e.matches(Mb)?e:Y.findOne(Mb,e)}_getOuterElement(e){return e.closest(kb)||e}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};J.on(document,fb,jb,function(e){[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),!Bm(this)&&Pb.getOrCreateInstance(this).show()}),J.on(window,mb,()=>{for(let e of Y.find(Nb))Pb.getOrCreateInstance(e)}),Jm(Pb);var Fb=`toast`,Ib=`.bs.toast`,Lb=`mouseover${Ib}`,Rb=`mouseout${Ib}`,zb=`focusin${Ib}`,Bb=`focusout${Ib}`,Vb=`hide${Ib}`,Hb=`hidden${Ib}`,Ub=`show${Ib}`,Wb=`shown${Ib}`,Gb=`fade`,Kb=`hide`,qb=`show`,Jb=`showing`,Yb={animation:`boolean`,autohide:`boolean`,delay:`number`},Xb={animation:!0,autohide:!0,delay:5e3},Zb=class e extends xh{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Xb}static get DefaultType(){return Yb}static get NAME(){return Fb}show(){J.trigger(this._element,Ub).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add(Gb),this._element.classList.remove(Kb),Um(this._element),this._element.classList.add(qb,Jb),this._queueCallback(()=>{this._element.classList.remove(Jb),J.trigger(this._element,Wb),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){!this.isShown()||J.trigger(this._element,Vb).defaultPrevented||(this._element.classList.add(Jb),this._queueCallback(()=>{this._element.classList.add(Kb),this._element.classList.remove(Jb,qb),J.trigger(this._element,Hb)},this._element,this._config.animation))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(qb),super.dispose()}isShown(){return this._element.classList.contains(qb)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case`mouseover`:case`mouseout`:this._hasMouseInteraction=t;break;case`focusin`:case`focusout`:this._hasKeyboardInteraction=t;break}if(t){this._clearTimeout();return}let n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){J.on(this._element,Lb,e=>this._onInteraction(e,!0)),J.on(this._element,Rb,e=>this._onInteraction(e,!1)),J.on(this._element,zb,e=>this._onInteraction(e,!0)),J.on(this._element,Bb,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t](this)}})}};Ch(Zb),Jm(Zb);var Qb=g(Oe());Me();var $b=class extends P{constructor(){super(),this.viewObjects={}}static get Instance(){return this.instance||=new this}get name(){return`ViewModelService`}updateViewModel(e,t){let n=this.mergeData(t,e.toJSON());return e instanceof h&&e.set(n,{silent:!0}),e instanceof N&&!(e instanceof h)&&e.set(n,{silent:!0}),e}get(e,t={},n={}){let{update:r=!1}=n,i=this.viewObjects[e];if(i&&r)return this.updateViewModel(i,t);if(i)return i;let a=this.getLocalData(e,n);return this.set(e,t,a,n)}set(e,t={},n,r){let{ctor:i,storage:a}=r,o=this.mergeData(t,n),s=i?new i(o):new N(o);return this.viewObjects[e]=s,a&&!n?(this.setLocalData(e,s,null,r),this.setupChangeListeners(e,s,r)):a&&n&&this.setupChangeListeners(e,s,r),s}clear(e){let t=this.viewObjects[e];return t?(this.stopListening(t),t.trigger(`destroy`),delete this.viewObjects[e],!0):!1}getLocalData(e,t){let{storage:n}=t;if(n)return this.getStorageHelper(n.type).get(e)}setLocalData(e,t,n,r){let{storage:i}=r;if(!i||i&&!i.persistProps)return;typeof i.persistProps==`string`&&(i.persistProps=[i.persistProps]);let a;t instanceof N&&(a=t.pick(i.persistProps)),this.getStorageHelper(i.type).set(e,a)}setupChangeListeners(e,t,n){let{storage:r}=n;!r||r&&!r.persistProps||(typeof r.persistProps==`string`&&(r.persistProps=[r.persistProps]),oe.each(r.persistProps,r=>{this.listenTo(t,`change:${r}`,oe.partial(this.setLocalData,e,oe,oe,n))}))}mergeData(e,t){if(!t)return e;if(oe.isObject(e)&&oe.isObject(t))return oe.extend(e,t);R.throw(new y(`defaultValues and existingData are not of the same datatype and cannot be merged`))}getStorageHelper(e){switch(e){case cn.LocalStorage:return rn;case cn.SessionStorage:return on}}}.Instance,ex=`application:options`;Me();var tx=class extends P{constructor(e){super(),this.clients={},this.enrichers={},$b.get(ex).set(e??{})}get name(){return je.Analytics}registerTransport(e,t){return this.transport=new e(t),this.bindTransportListeners(),this}bindTransportListeners(){this.listenTo(ve.ANALYTICS,Ee.Inlet,this.onEvent)}registerClient(e,t){return this.validateConstructor(e),this.clients[e.prototype.name]=e.prototype.name,this.transport.subscribe(new e(t)),this}registerEnricher(e,t){this.validateConstructor(e);let n=new e(t);return this.enrichers[n.name]=n,this.registerMiddleware(l(n.enrich,n)),this}hasEnricher(e){return!!this.enrichers[e.prototype.name]}onEvent(e){this.executeMiddleware(e,e=>{this.transport.publish(e)})}validateConstructor(e){let t=e.prototype.name;t||R.throw(new y(`Classes registered with ${this.name} must have a unique name property.`));let n=t=>kt.isFunction(e.prototype.isType)&&e.prototype.isType(t);(n(`BaseAnalyticsClient`)||t===`CollectionApiClient`)&&this.clients[t]&&R.throw(new y(`A client class with the name: ${t} has already been registered with ${this.name}`)),n(`BaseAnalyticsEnricher`)&&this.enrichers[t]&&R.throw(new y(`An enricher class named: ${t} has already been registered with ${this.name}`))}registerMiddleware(e){this.executeMiddleware=(t=>(n,r)=>t(n,()=>e(n,r)))(this.executeMiddleware)}executeMiddleware(e,t){t(e)}},nx=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,rx=`UINT8ARRAY not supported by this environment`;function ix(e,t,n,r){let i,a,o,s=t||[0],c=(n||=0)>>>3,l=r===-1?3:0;for(i=0;i<e.length;i+=1)o=i+c,a=o>>>2,s.length<=a&&s.push(0),s[a]|=e[i]<<8*(l+o%4*r);return{value:s,binLen:8*e.length+n}}function ax(e,t,n){switch(t){case`UTF8`:case`UTF16BE`:case`UTF16LE`:break;default:throw Error(`encoding must be UTF8, UTF16BE, or UTF16LE`)}switch(e){case`HEX`:return function(e,t,r){return function(e,t,n,r){let i,a,o,s;if(e.length%2!=0)throw Error(`String of HEX type must be in byte increments`);let c=t||[0],l=(n||=0)>>>3,u=r===-1?3:0;for(i=0;i<e.length;i+=2){if(a=parseInt(e.substr(i,2),16),isNaN(a))throw Error(`String of HEX type contains invalid characters`);for(s=(i>>>1)+l,o=s>>>2;c.length<=o;)c.push(0);c[o]|=a<<8*(u+s%4*r)}return{value:c,binLen:4*e.length+n}}(e,t,r,n)};case`TEXT`:return function(e,r,i){return function(e,t,n,r,i){let a,o,s,c,l,u,d,f,p=0,m=n||[0],h=(r||=0)>>>3;if(t===`UTF8`)for(d=i===-1?3:0,s=0;s<e.length;s+=1)for(a=e.charCodeAt(s),o=[],128>a?o.push(a):2048>a?(o.push(192|a>>>6),o.push(128|63&a)):55296>a||57344<=a?o.push(224|a>>>12,128|a>>>6&63,128|63&a):(s+=1,a=65536+((1023&a)<<10|1023&e.charCodeAt(s)),o.push(240|a>>>18,128|a>>>12&63,128|a>>>6&63,128|63&a)),c=0;c<o.length;c+=1){for(u=p+h,l=u>>>2;m.length<=l;)m.push(0);m[l]|=o[c]<<8*(d+u%4*i),p+=1}else for(d=i===-1?2:0,f=t===`UTF16LE`&&i!==1||t!==`UTF16LE`&&i===1,s=0;s<e.length;s+=1){for(a=e.charCodeAt(s),!0===f&&(c=255&a,a=c<<8|a>>>8),u=p+h,l=u>>>2;m.length<=l;)m.push(0);m[l]|=a<<8*(d+u%4*i),p+=2}return{value:m,binLen:8*p+r}}(e,t,r,i,n)};case`B64`:return function(e,t,r){return function(e,t,n,r){let i,a,o,s,c,l,u,d=0,f=t||[0],p=(n||=0)>>>3,m=r===-1?3:0,h=e.indexOf(`=`);if(e.search(/^[a-zA-Z0-9=+/]+$/)===-1)throw Error(`Invalid character in base-64 string`);if(e=e.replace(/=/g,``),h!==-1&&h<e.length)throw Error(`Invalid '=' found in base-64 string`);for(a=0;a<e.length;a+=4){for(c=e.substr(a,4),s=0,o=0;o<c.length;o+=1)i=nx.indexOf(c.charAt(o)),s|=i<<18-6*o;for(o=0;o<c.length-1;o+=1){for(u=d+p,l=u>>>2;f.length<=l;)f.push(0);f[l]|=(s>>>16-8*o&255)<<8*(m+u%4*r),d+=1}}return{value:f,binLen:8*d+n}}(e,t,r,n)};case`BYTES`:return function(e,t,r){return function(e,t,n,r){let i,a,o,s,c=t||[0],l=(n||=0)>>>3,u=r===-1?3:0;for(a=0;a<e.length;a+=1)i=e.charCodeAt(a),s=a+l,o=s>>>2,c.length<=o&&c.push(0),c[o]|=i<<8*(u+s%4*r);return{value:c,binLen:8*e.length+n}}(e,t,r,n)};case`ARRAYBUFFER`:return function(e,t,r){return function(e,t,n,r){return ix(new Uint8Array(e),t,n,r)}(e,t,r,n)};case`UINT8ARRAY`:try{new Uint8Array}catch{throw Error(rx)}return function(e,t,r){return ix(e,t,r,n)};default:throw Error(`format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY`)}}function ox(e,t,n,r){switch(e){case`HEX`:return function(e){return function(e,t,n,r){let i=`0123456789abcdef`,a,o,s=``,c=t/8,l=n===-1?3:0;for(a=0;a<c;a+=1)o=e[a>>>2]>>>8*(l+a%4*n),s+=i.charAt(o>>>4&15)+i.charAt(15&o);return r.outputUpper?s.toUpperCase():s}(e,t,n,r)};case`B64`:return function(e){return function(e,t,n,r){let i,a,o,s,c,l=``,u=t/8,d=n===-1?3:0;for(i=0;i<u;i+=3)for(s=i+1<u?e[i+1>>>2]:0,c=i+2<u?e[i+2>>>2]:0,o=(e[i>>>2]>>>8*(d+i%4*n)&255)<<16|(s>>>8*(d+n*((i+1)%4))&255)<<8|c>>>8*(d+n*((i+2)%4))&255,a=0;a<4;a+=1)l+=8*i+6*a<=t?nx.charAt(o>>>6*(3-a)&63):r.b64Pad;return l}(e,t,n,r)};case`BYTES`:return function(e){return function(e,t,n){let r,i,a=``,o=t/8,s=n===-1?3:0;for(r=0;r<o;r+=1)i=e[r>>>2]>>>8*(s+r%4*n)&255,a+=String.fromCharCode(i);return a}(e,t,n)};case`ARRAYBUFFER`:return function(e){return function(e,t,n){let r,i=t/8,a=new ArrayBuffer(i),o=new Uint8Array(a),s=n===-1?3:0;for(r=0;r<i;r+=1)o[r]=e[r>>>2]>>>8*(s+r%4*n)&255;return a}(e,t,n)};case`UINT8ARRAY`:try{new Uint8Array}catch{throw Error(rx)}return function(e){return function(e,t,n){let r,i=t/8,a=n===-1?3:0,o=new Uint8Array(i);for(r=0;r<i;r+=1)o[r]=e[r>>>2]>>>8*(a+r%4*n)&255;return o}(e,t,n)};default:throw Error(`format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY`)}}function sx(e){let t={outputUpper:!1,b64Pad:`=`,outputLen:-1},n=e||{},r=`Output length must be a multiple of 8`;if(t.outputUpper=n.outputUpper||!1,n.b64Pad&&(t.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw Error(r);t.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw Error(r);t.outputLen=n.shakeLen}if(typeof t.outputUpper!=`boolean`)throw Error(`Invalid outputUpper formatting option`);if(typeof t.b64Pad!=`string`)throw Error(`Invalid b64Pad formatting option`);return t}var cx=class{constructor(e,t,n){let r=n||{};if(this.t=t,this.i=r.encoding||`UTF8`,this.numRounds=r.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw Error(`numRounds must a integer >= 1`);this.o=e,this.h=[],this.u=0,this.l=!1,this.A=0,this.p=!1,this.U=[],this.R=[]}update(e){let t,n=0,r=this.T>>>5,i=this.F(e,this.h,this.u),a=i.binLen,o=i.value,s=a>>>5;for(t=0;t<s;t+=r)n+this.T<=a&&(this.m=this.g(o.slice(t,t+r),this.m),n+=this.T);return this.A+=n,this.h=o.slice(n>>>5),this.u=a%this.T,this.l=!0,this}getHash(e,t){let n,r,i=this.B,a=sx(t);if(this.v){if(a.outputLen===-1)throw Error(`Output length must be specified in options`);i=a.outputLen}let o=ox(e,i,this.H,a);if(this.p&&this.C)return o(this.C(a));for(r=this.Y(this.h.slice(),this.u,this.A,this.I(this.m),i),n=1;n<this.numRounds;n+=1)this.v&&i%32!=0&&(r[r.length-1]&=16777215>>>24-i%32),r=this.Y(r,i,0,this.L(this.o),i);return o(r)}setHMACKey(e,t,n){if(!this.M)throw Error(`Variant does not support HMAC`);if(this.l)throw Error(`Cannot set MAC key after calling update`);let r=ax(t,(n||{}).encoding||`UTF8`,this.H);this.N(r(e))}N(e){let t=this.T>>>3,n=t/4-1,r;if(this.numRounds!==1)throw Error(`Cannot set numRounds with MAC`);if(this.p)throw Error(`MAC key already set`);for(t<e.binLen/8&&(e.value=this.Y(e.value,e.binLen,0,this.L(this.o),this.B));e.value.length<=n;)e.value.push(0);for(r=0;r<=n;r+=1)this.U[r]=909522486^e.value[r],this.R[r]=1549556828^e.value[r];this.m=this.g(this.U,this.m),this.A=this.T,this.p=!0}getHMAC(e,t){let n=sx(t);return ox(e,this.B,this.H,n)(this.S())}S(){let e;if(!this.p)throw Error(`Cannot call getHMAC without first setting MAC key`);let t=this.Y(this.h.slice(),this.u,this.A,this.I(this.m),this.B);return e=this.g(this.R,this.L(this.o)),e=this.Y(t,this.B,this.T,e,this.B),e}};function lx(e,t){return e<<t|e>>>32-t}function ux(e,t,n){return e^t^n}function dx(e,t,n){return e&t^e&n^t&n}function fx(e,t){let n=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(n>>>16))<<16|65535&n}function px(e,t,n,r,i){let a=(65535&e)+(65535&t)+(65535&n)+(65535&r)+(65535&i);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(i>>>16)+(a>>>16))<<16|65535&a}function mx(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function hx(e,t){let n,r,i,a,o,s,c,l=[];for(n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],c=0;c<80;c+=1)l[c]=c<16?e[c]:lx(l[c-3]^l[c-8]^l[c-14]^l[c-16],1),s=c<20?px(lx(n,5),(u=r)&i^~u&a,o,1518500249,l[c]):c<40?px(lx(n,5),ux(r,i,a),o,1859775393,l[c]):c<60?px(lx(n,5),dx(r,i,a),o,2400959708,l[c]):px(lx(n,5),ux(r,i,a),o,3395469782,l[c]),o=a,a=i,i=lx(r,30),r=n,n=s;var u;return t[0]=fx(n,t[0]),t[1]=fx(r,t[1]),t[2]=fx(i,t[2]),t[3]=fx(a,t[3]),t[4]=fx(o,t[4]),t}function gx(e,t,n,r){let i,a=15+(t+65>>>9<<4),o=t+n;for(;e.length<=a;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[a]=4294967295&o,e[a-1]=o/4294967296|0,i=0;i<e.length;i+=16)r=hx(e.slice(i,i+16),r);return r}var _x=class extends cx{constructor(e,t,n){if(e!==`SHA-1`)throw Error(`Chosen SHA variant is not supported`);super(e,t,n);let r=n||{};this.M=!0,this.C=this.S,this.H=-1,this.F=ax(this.t,this.i,this.H),this.g=hx,this.I=function(e){return e.slice()},this.L=mx,this.Y=gx,this.m=[1732584193,4023233417,2562383102,271733878,3285377520],this.T=512,this.B=160,this.v=!1,r.hmacKey&&this.N(function(e,t,n,r){let i=e+` must include a value and format`;if(!t){if(!r)throw Error(i);return r}if(t.value===void 0||!t.format)throw Error(i);return ax(t.format,t.encoding||`UTF8`,n)(t.value)}(`hmacKey`,r.hmacKey,this.H))}},vx=function(e){return e.CvApSoutheast1=`cv-ap-southeast-1`,e.CvApSoutheast2=`cv-ap-southeast-2`,e.CvEuWest1=`cv-eu-west-1`,e.CvNaWest1=`cv-na-west-1`,e}({}),yx={CvApSoutheast1:{systemName:vx.CvApSoutheast1},CvApSoutheast2:{systemName:vx.CvApSoutheast2},CvEuWest1:{systemName:vx.CvEuWest1},CvNaWest1:{systemName:vx.CvNaWest1}},bx=function(e){return e.Staff=`Staff`,e.Learner=`Learner`,e.Unknown=`Unknown`,e.System=`System`,e}({}),xx=`r`,Sx=`cv:r`,Cx=`cv:r:e`,wx=`referrer`,Tx=`cv:originalReferrer`,Ex=28800,Dx=[`internalReferrer`],Ox={getDecodedAttributionData(){let e=rn.cacheGet(Sx);return e&&Object.keys(e).length>0?e:kx()?.decoded},getEncodedAttributionData(){let e=rn.cacheGet(Cx);return e?.length?e:kx().encoded},getProfileId(){return Ox.getDecodedAttributionData()?.profileId??null},setAttributionData(e){e&&Fx(Px(e),e)},decodeRValue(e){if(e)try{let t=atob(e),n=JSON.parse(t);if(!jx(n))throw Error(`Decoded R value is invalid: ${JSON.stringify(n)}`);return n}catch(e){let t=e instanceof Error?e.message:e?.toString();console.error(t)}}};function kx(){let e=rn.cacheGet(Sx),t=rn.cacheGet(Cx);return jx(e)?{encoded:t,decoded:e}:Ax()}function Ax(){rn.cacheRemove(Sx),rn.cacheRemove(Cx);let e=Nx(),t=Ox.decodeRValue(e);if(t)return Fx(e,t),{decoded:t,encoded:e};let n={internalReferrer:window.location.origin+window.location.pathname,originalReferrer:Mx()},r=Px(n);return Fx(r,n),{decoded:n,encoded:r}}function jx(e){return!e||typeof e!=`object`||Object.keys(e).length<Dx.length?!1:Dx.every(t=>typeof e[t]==`string`)}function Mx(){let e=rn.cacheGet(Tx);if(e&&typeof e==`string`)return e;let t=document.referrer??``;if(window.URLSearchParams){let e=new URLSearchParams(window.location.search),n=e.has(wx)&&e.get(wx);e.has(wx)&&e.get(wx)&&(t=n)}return t&&rn.cacheSet(Tx,t,Ex),t}function Nx(){if(!window.URLSearchParams)return;let e=new URLSearchParams(window.location.search);if(e.has(xx))return e.get(xx)}function Px(e){if(jx(e))try{return btoa(JSON.stringify(e))}catch{console.error(`R value could not be encoded: ${JSON.stringify(e)}`)}}function Fx(e,t){try{rn.cacheSet(Sx,t,Ex),rn.cacheSet(Cx,e,Ex)}catch{console.error(`Could not store attribution data in session storage`)}}var Ix=3,Lx=5e3,Rx=6,zx={},Bx=class{constructor(e){this.key=e.toString()}getCount(){return zx[this.key]||0}increment(){zx[this.key]=this.getCount()+1}reset(){delete zx[this.key]}shouldBreak(){return this.getCount()>=Rx}},Vx=class{constructor(){this.attempt=0}async wait(){await new Promise(e=>setTimeout(e,Lx*2**this.attempt)),this.attempt++}};async function Hx(e,t){let n=new Vx,r=new Bx(e);async function i(){let n=await fetch(e,t);if(n.status>=500&&!r.shouldBreak())throw Error(`Server error: ${n.status}`);return n.ok&&r.reset(),n}for(let e=1;e<=Ix;e++)try{return await i()}catch(t){if(e>=Ix||r.shouldBreak())throw t;r.increment(),await n.wait()}}var Ux,Wx=new Uint8Array(16);function Gx(){if(!Ux&&(Ux=typeof crypto<`u`&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<`u`&&typeof msCrypto.getRandomValues==`function`&&msCrypto.getRandomValues.bind(msCrypto),!Ux))throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);return Ux(Wx)}var Kx=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function qx(e){return typeof e==`string`&&Kx.test(e)}for(var Jx=[],Yx=0;Yx<256;++Yx)Jx.push((Yx+256).toString(16).substr(1));function Xx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(Jx[e[t+0]]+Jx[e[t+1]]+Jx[e[t+2]]+Jx[e[t+3]]+`-`+Jx[e[t+4]]+Jx[e[t+5]]+`-`+Jx[e[t+6]]+Jx[e[t+7]]+`-`+Jx[e[t+8]]+Jx[e[t+9]]+`-`+Jx[e[t+10]]+Jx[e[t+11]]+Jx[e[t+12]]+Jx[e[t+13]]+Jx[e[t+14]]+Jx[e[t+15]]).toLowerCase();if(!qx(n))throw TypeError(`Stringified UUID is invalid`);return n}function Zx(e,t,n){e||={};var r=e.random||(e.rng||Gx)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n||=0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return Xx(r)}function Qx(e){if(!qx(e))throw TypeError(`Invalid UUID`);return parseInt(e.substr(14,1),16)}var $x=`cv:session:`,eS=`cv:window:v2:`,tS=1e3*60*30,nS=4;function rS(e){if(e===cn.LocalStorage)return rn.isAvailable()?rn:nn;if(e===cn.SessionStorage)return on.isAvailable()?on:nn}function iS(e){return new Date().getTime()+e}function aS(){return Zx()}function oS(e,t){return e+(t||`0`)}function sS(e){return new Date().getTime()>e}function cS(e){return!(typeof e!=`object`||typeof e?.id!=`string`||!qx(e.id)||Qx(e.id)!==nS||typeof e?.ttl!=`number`||e?.ttl<=0||isNaN(e?.ttl))}function lS(e,t,n){let r=rS(n),i=oS(e,t),a=r.get(i);return!cS(a)||sS(a?.ttl)?null:a}function uS(e,t,n,r){let i=rS(n),a=oS(e,t),o={id:aS(),ttl:iS(r)};return i.set(a,o),o}function dS(e,t,n,r,i){let a=rS(n),o=oS(e,t);a.set(o,{id:r.id,ttl:iS(i)})}function fS(e,t,n){let r=rS(n);if(!r?.isAvailable())return;let i=oS(e,t);r.remove(i)}var pS=null,mS={getClientSessionData(e){let t=lS($x,e,cn.LocalStorage);t?dS($x,e,cn.LocalStorage,t,tS):t=uS($x,e,cn.LocalStorage,tS);let n=lS(eS,e,cn.SessionStorage);return n?pS===null&&dS(eS,e,cn.SessionStorage,n,tS):n=uS(eS,e,cn.SessionStorage,pS??tS),{id:t.id,windowId:n.id}},resetClientSession(e){fS($x,e,cn.LocalStorage),fS(eS,e,cn.SessionStorage)},lockWindowSession(e,t){pS=t;let n=lS(eS,e,cn.SessionStorage);n&&dS(eS,e,cn.SessionStorage,n,t)},unlockWindowSession(e){pS=null;let t=lS(eS,e,cn.SessionStorage);t&&dS(eS,e,cn.SessionStorage,t,tS)}},hS={isObject(e){let t=typeof e;return t===`function`||t===`object`&&!!e},isFunction(e){return typeof e==`function`}},gS={safeUrlConcat(e,t){if(!e)return;let n=e;return e.endsWith(`/`)||(n+=`/`),t&&(n+=t.startsWith(`/`)?t.slice(1):t),n}},_S={mobileDevice:/Mobi/i,iphone:/iphone/i,ipad:/ipad/i,android:/android/i,blackberry:/blackberry/i,windowsPhone:/windows phone/i,iosVersion:/OS\s+([\d_.-:]+)\s/i,androidVersion:/android\s+([\d_.-\/]+)[\s;:,\)]/i,blackberryVersion:/(blackberry|version)\s?\d*\/([\d.]+)/i,windowsPhoneVersion:/windows\sphone.*?([\d_.-\/]+)[\s;:,\)]/i,mac:/Mac/i,unix:/X11/i,linux:/Linux/i,windows:/Win/i,win2000:/nt 5.0/i,winXP:/nt 5.1/i,winVista:/nt 6.0/i,win7:/nt 6.1/i,win8:/nt 6.2/i,win81:/nt 6.3/i,win10:/nt 10.0/i,osxVersion:/OS\sX\s([\d_.]+)/i,chrome:/^(?!.*Edge).*Chrome/i,safari:/^(?!.*(?:Chrome|Edge)).*Safari/i,edge:/edge/i,ie:/(msie|trident)/i,opera:/(opr|opera)/i,firefox:/firefox/i,generalVersion:/(chrome|firefox|version)\/(\d+.*?)(\s|$)/i,operaVersion:/(opr|opera)\/(\d+).*?(\s|$)/i,ieVersion:/MSIE\s+(\d+).*?/i,edgeVersion:/(edge)\/(\d+).*?(\s|$)/i},vS=`Unknown`;function yS(e,t,n){let[r]=t.exec(n)||[];return r||=vS,{name:e,version:r}}function bS(e,t,n){if(!t)return{name:e,version:vS};let r=t.exec(n);return{name:e,version:r&&r.length?r[0].trim():vS}}function xS(e,t){let n={name:e,version:null};return _S.win2000.test(t)&&(n.version=`2000`),_S.winXP.test(t)&&(n.version=`XP`),_S.winVista.test(t)&&(n.version=`Vista`),_S.win7.test(t)&&(n.version=`7`),_S.win8.test(t)&&(n.version=`8`),_S.win81.test(t)&&(n.version=`8.1`),_S.win10.test(t)&&(n.version=`10`),n.version||=vS,n}var SS={getDeviceType(){let e=window.navigator.userAgent;return _S.mobileDevice.test(e)?_S.iphone.test(e)?`iPhone`:_S.ipad.test(e)?`iPad`:_S.android.test(e)?`Android`:_S.blackberry.test(e)?`Blackberry`:_S.windowsPhone.test(e)?`Windows Phone`:vS:`Desktop`},getOperatingSystem(){let e=window.navigator.userAgent;return _S.android.test(e)?bS(`Android`,_S.androidVersion,e):_S.iphone.test(e)||_S.ipad.test(e)?bS(`iOS`,_S.iosVersion,e):_S.linux.test(e)?bS(`Linux`,null,e):_S.unix.test(e)?bS(`Unix`,null,e):_S.mac.test(e)?bS(`Macintosh`,_S.osxVersion,e):_S.windows.test(e)?xS(`Windows`,e):_S.blackberry.test(e)?bS(`BlackBerry`,_S.blackberryVersion,e):_S.windowsPhone.test(e)?bS(`Windows Phone`,_S.windowsPhoneVersion,e):{name:vS,version:vS}},getBrowser(){let e=window.navigator.userAgent;return _S.chrome.test(e)?yS(`Chrome`,_S.generalVersion,e):_S.firefox.test(e)?yS(`Firefox`,_S.generalVersion,e):_S.safari.test(e)?yS(`Safari`,_S.generalVersion,e):_S.ie.test(e)?yS(`Internet Explorer`,_S.ieVersion,e):_S.edge.test(e)?yS(`Edge`,_S.edgeVersion,e):_S.opera.test(e)?yS(`Opera`,_S.operaVersion,e):{name:vS,version:vS}},isTouchScreen(){return!!(`ontouchstart`in window||navigator.maxTouchPoints)}},CS=28800,wS=`cv:utmparams`,TS=[[`source`,`utm_source`],[`medium`,`utm_medium`],[`campaign`,`utm_campaign`],[`term`,`utm_term`],[`content`,`utm_content`]],ES=TS.reduce((e,[t])=>({...e,[t]:t}),{}),DS={getUtmParameters(){if(!window.URLSearchParams)return null;let e=new URLSearchParams(window.location.search),t={};return TS.forEach(([n,r])=>{e.has(r)&&(t[n]=e.get(r))}),OS(t)},setUtmParameters(e){if(!e)return;let t={};return Object.keys(e).forEach(n=>{ES[n]&&(t[n]=e[n])}),OS(t)},getURLSearchParams(){if(!window.URLSearchParams)return null;let e=new URLSearchParams,t=DS.getUtmParameters();return t?(TS.forEach(([n,r])=>{t[n]&&e.set(r,t[n])}),e):null}};function OS(e){if(Object.keys(e).length)return rn.cacheSet(wS,e,CS),e;let t=rn.cacheGet(wS);return t&&typeof t==`object`&&Object.keys(t).length?t:null}var kS={name:`@clickview/analytics`,version:`2.3.0`,description:`Analytics`,main:`dist/app.js`,types:`dist/analytics/src/app.d.ts`,type:`module`,private:!0,repository:{type:`git`,url:`https://gitlab.cvinternal.net/front-end/clickview`},scripts:{start:`npm run build`,"type-check":`tsc --noEmit`,build:`npm run type-check && node ../../../node_modules/vite/bin/vite.js build`,prebuild:`npm run clean`,clean:`npx rimraf dist`},author:``,license:`ISC`,devDependencies:{"@types/uuid":`8.3.4`,"tsc-alias":`1.8.16`},dependencies:{jssha:`3.3.1`,uuid:`8.3.2`}},AS=`zXJL9nOHxzDlMUDjiP41`,jS=`unknown`,MS=class{constructor(e){this.options=e,this.initialize()}initialize(){this.validateOptions(),this.options.logUtmParameters&&(this.utmParameters=DS.getUtmParameters()),this.options.logAttributionData&&(this.attributionData=Ox.getDecodedAttributionData())}get name(){return`CollectionApiClient`}async log(e){if(Array.isArray(e))return this.logBulk(e);this.shouldLog(e)&&(this.validateEvent(e),await this.postData(await this.formatData(e)))}async logBulk(e){let t=e.filter(e=>this.shouldLog(e));if(!t.length)return;t.forEach(e=>this.validateEvent(e));let n=await Promise.all(t.map(e=>this.formatData(e)));await this.postData(n)}validateOptions(){if(!hS.isFunction(this.options.getUser))throw Error(`getUser option is required.`)}shouldLog(e){return hS.isFunction(this.options.shouldLog)?this.options.shouldLog(e):!0}async postData(e){let t=await this.getRegionalUrl(this.options.collectionApiUrls),n=JSON.stringify(e),r={"Content-Type":`application/json`,...this.getSignatureHeader(n)},i=gS.safeUrlConcat(t,`/v1/ingest`);Array.isArray(e)&&(i=gS.safeUrlConcat(i,`/bulk`));try{let e=await Hx(i,{method:`POST`,mode:`cors`,headers:r,body:n});e.ok||this.logError(Error(`CollectionApiClient failed to log event. Status: ${e.status} ${e.statusText}`),!1,this.getResponseAsObject(e))}catch(e){this.logError(e)}}getResponseAsObject(e){return{headers:e.headers,ok:e.ok,redirected:e.redirected,status:e.status,statusText:e.statusText,type:e.type,url:e.url,body:e.text()}}getSignatureHeader(e){let t=new _x(`SHA-1`,`TEXT`,{hmacKey:{value:AS,format:`TEXT`,encoding:`UTF8`}});return t.update(e),{"cv-analytics-signature":`${this.options.collectionApiClientId}.${t.getHash(`B64`)}`}}async getRegionalUrl(e){switch((await this.getRegion()).systemName){case vx.CvEuWest1:return e.cvEuWest1;case vx.CvApSoutheast2:return e.cvApSoutheast2;case vx.CvNaWest1:return e.cvNaWest1;case vx.CvApSoutheast1:default:return e.cvApSoutheast1}}validateEvent(e){typeof e.type!=`string`&&this.logError(Error(`Event type is required.`),!0),hS.isObject(e.actionContext)||this.logError(Error(`Event actionContext is required.`),!0),e.actionContext.entity||this.logError(Error(`Event actionContext entity is required.`),!0)}async formatData(e){return{type:e.type,data:await this.getEventData(e),metadata:this.getEventMetadata(e)}}async getEventData(e){let t=e.actionContext,n=this.getPlatformMetadata(),r=await this.getUserData(),i=await this.getSessionData(),a={name:this.options.productName,version:this.options.productVersion};this.options.productVariant&&(a.variant=this.options.productVariant);let o={user:r,action:t,platform:n,product:a,session:i};this.utmParameters&&(o.utm=this.utmParameters);let s=this.extractData(e),c=Object.keys(o).map(e=>e.toLowerCase()),l=Object.keys(s).map(e=>e.toLowerCase());return c.forEach(e=>{l.includes(e)&&this.logError(Error(`${e} is a reserved key.`),!0)}),{...o,...s}}extractData(e){return hS.isFunction(this.options.formatData)?this.options.formatData(e):{[e.actionContext.entity]:e.data}}async getUserData(){let e;try{e=await this.options.getProfileId?.()}catch(e){this.logError(e)}try{let t=await this.options.getUser();return t?.id?{id:t.id,role:t.role?.toLowerCase()||jS,userGroup:(t.userGroup??bx.Unknown).toLowerCase(),yearGroup:this.normalizeYearGroup(t.yearGroup),profileId:e,customer:{id:t.customerId,name:t.customerName,customerGuid:t.customerGuid,crmId:t.crmId,country:t.countryCode,region:await this.getRegion(),openCustomer:!1,accessPolicy:t.accessPolicy}}:e?{profileId:e}:void 0}catch(e){this.logError(e)}}async getRegion(){let e=this.options.regionName;try{let t=await this.options.getUser();t?.instanceRegion&&(e=t.instanceRegion)}catch(e){this.logError(e)}return e||this.logError(Error(`RegionName is not set.`),!0),this.getRegionByName(e.toLowerCase())}async getSessionData(){try{let e=await this.options.getUser();return{...mS.getClientSessionData(e?.id),authSessionId:e?.sessionId}}catch(e){return console.error(e),mS.getClientSessionData(null)}}getPlatformMetadata(){let e={url:window.location.href,referrer:document.referrer};return this.attributionData?.internalReferrer&&(e.internalReferrer=this.attributionData.internalReferrer),this.attributionData?.originalReferrer&&(e.originalReferrer=this.attributionData.originalReferrer),{browser:SS.getBrowser(),os:SS.getOperatingSystem(),request:e,screenResolution:`${window.screen.width}x${window.screen.height}`,viewportResolution:`${window.innerWidth}x${window.innerHeight}`}}getEventMetadata(e){return{client:{name:`${this.name}.ts`,version:kS.version,region:this.getRegionByName(this.options.regionName)},timestamp:new Date().toISOString(),eventVersion:e.eventVersion}}getRegionByName(e){let t;return Object.values(yx).forEach(n=>{n.systemName===e&&(t=n)}),t}normalizeYearGroup(e){return e?e.toLowerCase().split(` `).join(`_`):jS}logError(e,t,...n){if(this.options.logError&&this.options.logError(e,...n),t)throw e}},NS=class e extends P{static{this.type=`BaseAnalyticsClient`}constructor(e){super(e)}shouldLog(e){return!0}log(e){}isType(t){return t===e.type}};Me();var PS=class extends NS{get name(){return`DebuggerClient`}shouldLog(){return f.isDevelopment}log(e){let t=Fe(e);for(let n in e){let e=t[n];(e instanceof N||e instanceof we)&&(t[n]=e.toJSON())}console.log(`Event Debugger: `,t)}},FS={Lite:`lite.web`,Curator:`curator.web`,Analytics:`analytics.web`,StreamableLearning:`streamablelearning.web`,Cloud:`cloud.web`,Exchange:`exchange.web`},IS={mobileDevice:/Mobi/i,iphone:/iphone/i,ipad:/ipad/i,android:/android/i,blackberry:/blackberry/i,windowsPhone:/windows phone/i,iosVersion:/OS\s+([\d_.-:]+)\s/i,androidVersion:/android\s+([\d_.-\/]+)[\s;:,\)]/i,blackberryVersion:/(blackberry|version)\s?\d*\/([\d.]+)/i,windowsPhoneVersion:/windows\sphone.*?([\d_.-\/]+)[\s;:,\)]/i,mac:/Mac/i,unix:/X11/i,linux:/Linux/i,windows:/Win/i,win2000:/nt 5.0/i,winXP:/nt 5.1/i,winVista:/nt 6.0/i,win7:/nt 6.1/i,win8:/nt 6.2/i,win81:/nt 6.3/i,win10:/nt 10.0/i,osxVersion:/OS\sX\s([\d_.]+)/i,chrome:/(^(?!.*Edge).*Chrome)|(CriOS)/i,safari:/^(?!.*(?:Chrome|Edge)).*Safari/i,edge:/edge/i,ie:/(msie|trident)/i,opera:/(opr|opera)/i,firefox:/firefox/i,generalVersion:/(chrome|firefox|version)\/(\d+.*?)(\s|$)/i,operaVersion:/(opr|opera)\/(\d+).*?(\s|$)/i,ieVersion:/MSIE\s+(\d+).*?/i,edgeVersion:/(edge)\/(\d+).*?(\s|$)/i,tablet:/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i,mobile:/Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Kindle|Silk-Accelerated|(hpw|web)OS|Opera M(obi|ini)/},LS=`Unknown`;function RS(e,t,n){let[r]=t.exec(n)||[];return r||=LS,{browser:e,version:r}}function zS(e,t,n){if(!t)return{os:e,version:LS};let r=t.exec(n);return{os:e,version:r&&r.length?r[0].trim():LS}}function BS(e,t){let n={os:e};return IS.win2000.test(t)&&(n.version=`2000`),IS.winXP.test(t)&&(n.version=`XP`),IS.winVista.test(t)&&(n.version=`Vista`),IS.win7.test(t)&&(n.version=`7`),IS.win8.test(t)&&(n.version=`8`),IS.win81.test(t)&&(n.version=`8.1`),IS.win10.test(t)&&(n.version=`10`),n.version||=LS,n}var VS={getDeviceType(){let e=window.navigator.userAgent;return IS.mobileDevice.test(e)?IS.iphone.test(e)?`iPhone`:IS.ipad.test(e)?`iPad`:IS.android.test(e)?`Android`:IS.blackberry.test(e)?`Blackberry`:IS.windowsPhone.test(e)?`Windows Phone`:LS:`Desktop`},getOperatingSystem(){let e=window.navigator.userAgent;return IS.android.test(e)?zS(`Android`,IS.androidVersion,e):IS.iphone.test(e)||IS.ipad.test(e)||navigator.platform===`MacIntel`&&navigator.maxTouchPoints>1?zS(`iOS`,IS.iosVersion,e):IS.linux.test(e)?zS(`Linux`,null,e):IS.unix.test(e)?zS(`Unix`,null,e):IS.mac.test(e)?zS(`Macintosh`,IS.osxVersion,e):IS.windows.test(e)?BS(`Windows`,e):IS.blackberry.test(e)?zS(`BlackBerry`,IS.blackberryVersion,e):IS.windowsPhone.test(e)?zS(`Windows Phone`,IS.windowsPhoneVersion,e):{os:LS,version:LS}},getBrowser(){let e=window.navigator.userAgent;return IS.chrome.test(e)?RS(`Chrome`,IS.generalVersion,e):IS.firefox.test(e)?RS(`Firefox`,IS.generalVersion,e):IS.safari.test(e)?RS(`Safari`,IS.generalVersion,e):IS.ie.test(e)?RS(`Internet Explorer`,IS.ieVersion,e):IS.edge.test(e)?RS(`Edge`,IS.edgeVersion,e):IS.opera.test(e)?RS(`Opera`,IS.operaVersion,e):{browser:LS,version:LS}},isTouchScreen(){return!!(`ontouchstart`in window||navigator.maxTouchPoints)},isTabletOrMobile(){return VS.isTouchScreen()?IS.tablet.test(navigator.userAgent)||IS.mobile.test(navigator.userAgent):!1},isAndroid(){return VS.getOperatingSystem().os===`Android`},isIOS(){return VS.getOperatingSystem().os===`iOS`}},HS=class e extends P{static{this.type=`BaseAnalyticsEnricher`}enrich(e,t){}isType(t){return t===e.type}},US=class extends HS{constructor(e){super(e),this.productName=e.productName,this.productVersion=e.productVersion}get name(){return`CoreContextEnricher`}shouldEnrich(e){return!0}enrich(e,t){this.shouldEnrich(e)||t(e),e.enrich(`coreContext`,this.getCoreContext()),t(e)}getCoreContext(){return{timestamp:this.getTimestamp(),product:this.getProductInfo(),request:this.getRequestInfo(),client:this.getClientInfo()}}getTimestamp(){return dn.getUtcISOString()}getProductInfo(){return{name:this.productName,version:this.productVersion}}getRequestInfo(){return{referrer:ue.GetCurrentReferrer(),requestUrl:ue.GetCurrentUrl()}}getClientInfo(){let e=VS.getOperatingSystem(),t=VS.getBrowser();return{os:e.os,osVersion:e.version,browser:t.browser,browserVersion:t.version,screenResolution:`${window.screen.width}x${window.screen.height}`,viewportResolution:`${window.innerWidth}x${window.innerHeight}`}}},WS=g(Ae());Me();var GS=class extends WS.MnObject{},KS=class extends GS{get name(){return`EventTransport`}get channelName(){return`event:transport`}publish(e){this.getChannel().trigger(Ee.Outlet,e)}subscribe(e){let t=e,n=n=>{kt.isFunction(t.shouldLog)&&!t.shouldLog(n)||e.log(n)};M(t.listenTo)?t.listenTo(this.getChannel(),Ee.Outlet,n):this.listenTo(this.getChannel(),Ee.Outlet,n)}};function qS(e){return!hS.isObject(e)||!hS.isObject(e.actionContext)?{}:{entity:e.actionContext.entity,location:e.actionContext.location,descriptor:e.actionContext.descriptor}}function JS(e){let t={},r=(e,t)=>{switch(t){case`description`:return n.ValueUpdated;case`channel`:case`rating`:case`series`:case`distributor`:case`producer`:return e&&e.id||n.EntityRemoved;default:return e}};return Object.keys(e).forEach(n=>{t[n]=r(e[n],n)}),t}var YS={passthrough(e){return e},getEditData(e,t){let{entity:n,location:r}=qS(t);return n===Pe.Video&&r===j.EditVideoDetails?JS(e):e}},X={allow:()=>!0,restrict:()=>!1},XS={getShareData(e){let{id:t,search:n,pagePositionIndex:r,shareId:i,shareType:a}=e,o={id:t,search:n,pagePositionIndex:r,shareId:i,shareType:a};return e.video?.id&&(o.video={id:e.video.id}),e.clip?.id&&(o.clip={id:e.clip.id},e.clip.video?.id&&(o.video={id:e.clip.video?.id})),e.shareCount!==void 0&&(o.shareCount=e.shareCount),e.embedDetails&&(o.embedDetails=e.embedDetails),o}},ZS={getUploadData(e,t){let{entity:n}=t.actionContext;if(n===Pe.Video)return ZS.formatVideoUpload(e,t);if(n===Pe.Resource||n===Pe.Subtitle)return ZS.formatResourceUpload(e);if(n===Pe.Banner||n===Pe.Thumbnail||n===Pe.MixedMedia)return e;throw Error(`Upload data event not correctly formatted.`)},formatVideoUpload(e,t){let{workflowPhase:n}=t.actionContext;if(n===se.Start)return ZS.getStartVideoUploadData(e);if(n===se.Discard)return ZS.getDiscardVideoUploadData(e);if(n===se.Complete)return ZS.getCompleteUploadData(e)},getStartVideoUploadData(e){return!e||!e.length?[]:(e instanceof FileList&&(e=Array.from(e)),e.map(t=>({fileName:t.name,size:t.size,type:t.type,count:e.length})))},getDiscardVideoUploadData(e){let t=t=>{let{type:n,name:r,status:i,cvUpload:a}=t.file,o={fileName:r,count:Array.isArray(e)?e.length:1,type:n,status:i};return t.progress&&(o.progress=t.progress.toFixed(2)),a&&(o.uploadId=a.uploadId),o};return Array.isArray(e)?e.map(e=>t(e)):[t(e)]},getCompleteUploadData(e){return!e||!e.length?[]:e.map(t=>{let{fileName:n,libraryId:r,folderId:i,autoCaption:a}=t;return{fileName:n,libraryId:r,folderId:i,autoCaption:a,count:e.length}})},formatResourceUpload(e){let{id:t,name:n}=e,r={id:t,name:n};return hS.isObject(e.metadata)&&(r.type=e.metadata.type),r}},QS={[E.Navigate]:X.restrict,[E.Click]:X.allow,[E.Search]:X.allow,[E.InstantSearch]:X.allow,[E.Play]:X.allow,[E.Stream]:X.allow,[E.WebPlayerStream]:X.allow,[E.StreamProgress]:X.allow,[E.PreviewStreamProgress]:X.allow,[E.StreamBuffering]:X.allow,[E.Rename]:X.allow,[E.Move]:X.allow,[E.Create]:X.allow,[E.Delete]:X.allow,[E.Associate]:X.allow,[E.Dissociate]:X.allow,[E.Filter]:X.allow,[E.Sort]:X.allow,[E.Approve]:X.allow,[E.Reject]:X.allow,[E.Disable]:X.allow,[E.Upload]:X.allow,[E.Download]:X.allow,[E.SetAccess]:X.allow,[E.AddToLocalCache]:X.restrict,[E.Share]:X.allow,[E.Unshare]:X.allow,[E.Edit]:X.allow,[E.Suggest]:X.allow,[E.Favourite]:X.allow,[E.WorkspaceAdd]:X.allow,[E.ResolveWarning]:X.allow,[E.DismissWarning]:X.allow,[E.EditAssoc]:X.allow,[E.Follow]:X.allow,[E.Print]:X.allow,[E.Copy]:X.allow,[E.Activate]:X.allow,[E.VerifyEmail]:X.allow,[E.ChangePassword]:X.allow,[E.Export]:X.allow,[E.SendEmail]:X.allow,[E.Publish]:X.allow,[E.Submit]:X.allow,[E.Complete]:X.allow,[E.Archive]:X.allow,[E.Promote]:X.allow,[E.Demote]:X.allow,[E.BulkAction]:X.allow,[E.Remove]:X.allow,[E.Dismiss]:X.allow,[E.Open]:X.allow,[E.Hide]:X.allow,[E.PageView]:X.allow,[E.Select]:X.allow,[E.SwitchCustomer]:X.allow,[E.Focus]:X.allow,[E.Blur]:X.allow,[E.Hover]:X.allow,[E.Unhover]:X.allow},$S={[E.Search]:YS.passthrough,[E.InstantSearch]:YS.passthrough,[E.Play]:YS.passthrough,[E.Stream]:YS.passthrough,[E.StreamProgress]:YS.passthrough,[E.PreviewStreamProgress]:YS.passthrough,[E.StreamBuffering]:YS.passthrough,[E.Click]:YS.passthrough,[E.Filter]:YS.passthrough,[E.Sort]:YS.passthrough,[E.SetAccess]:YS.passthrough,[E.Approve]:YS.passthrough,[E.Reject]:YS.passthrough,[E.Create]:YS.passthrough,[E.Delete]:YS.passthrough,[E.Rename]:YS.passthrough,[E.Move]:YS.passthrough,[E.Edit]:YS.passthrough,[E.Share]:XS.getShareData,[E.Disable]:YS.passthrough,[E.Suggest]:YS.passthrough,[E.Upload]:ZS.getUploadData,[E.ResolveWarning]:YS.passthrough,[E.DismissWarning]:YS.passthrough,[E.Follow]:YS.passthrough,[E.Print]:YS.passthrough,[E.Copy]:YS.passthrough},eC={[E.Search]:()=>`search`,[E.InstantSearch]:()=>`search`,[E.Filter]:()=>`filter`,[E.Stream]:()=>Pe.Video},tC={user:`target_user`,product:`target_product`},nC={[E.StreamProgress]:!0,[E.WebPlayerStream]:!0,[E.PreviewStreamProgress]:!0,[E.StreamBuffering]:!0},rC={shouldLog(e){return!!QS[e.type](e)},formatData(e){let t=$S[e.type],n=hS.isFunction(t)?t(e.data,e):e.data;if(nC[e.type])return n;let r=e.actionContext.entity;return hS.isFunction(eC[e.type])&&(r=eC[e.type](e)),tC[r]&&(r=tC[r]),{[r]:n}}},iC={config(e,t){return{url:`/api/config`,key:`config`,bootstrapName:`config`,success:e,error:t}},version(e,t){return{url:`/api/version`,key:`version`,bootstrapName:`version`,normalize:!1,success:e,error:t}},geoLocation(){return{url:`/api/geolocation`,key:`geolocation`,normalize:!1,bootstrapName:`geolocation`}}},aC=`staff`;async function oC(e){try{return await Zt(e.store,Mt.accessPolicy())}catch{return null}}var sC={async getUser(e){let t=await Zt(e.store,Mt.currentUser());if(!t.isAuthenticated)return null;let n=Zt(e.store,_n.customer(t.customerId)),r=Zt(e.store,Mt.user(t.id)),i=oC(e);return sC.mapCurrentUserToAnalyticsUser(t,await r,await n,await i)},mapCurrentUserToAnalyticsUser(e,t,n,r){let i=wn.getUserType(t);return{id:e?.id,countryCode:e?.countryCode,contentRegion:e?.contentRegion,instanceRegion:e?.instanceRegion,customerId:e?.customerId,customerGuid:n?.customerGuid,customerName:e?.customerName,crmId:n?.crmId,role:e?.role,sessionId:e?.sessionId,userGroup:i,yearGroup:i===pn.Staff?aC:t?.masterYearGroup?.name,accessPolicy:r?.id}}},cC={logError(e,...t){kt.isFunction(trackJs?.track)&&(t&&kt.isFunction(trackJs.console?.info)&&trackJs.console.info(...t),trackJs.track(e))}};async function lC(e,t){let[n,r]=await Promise.all([Zt(e.store,iC.config()),Zt(e.store,iC.version())]),i=new tx;Pt.registerSingleton(i),i.registerTransport(KS),i.registerClient(PS),i.registerClient(MS,{productName:FS.Analytics,productVersion:r,productVariant:`admins-only`,regionName:n.instanceRegion,collectionApiUrls:n.collectionApiUrls,collectionApiClientId:n.collectionApiClientId,getUser:()=>sC.getUser(e),shouldLog:rC.shouldLog,formatData:rC.formatData,logError:cC.logError}),i.registerEnricher(US,{productName:`ClickView Analytics`,productVersion:r}),t(e)}var uC={[En.US]:`en-us`},dC=class extends D{get name(){return`ErrorPageError`}},fC=`shared.unspecifiedError`,pC=class extends dC{constructor(){super(B.getPhrase(fC,`title`))}get name(){return`UnspecifiedError`}get heading(){return B.getPhrase(fC,`heading`)}get description(){return B.getPhrase(fC,`description`)}get cta(){return!1}},Z=g(ke()),Q=T(),mC=class extends ee{onShowAlert(e){if(!this.layoutOptions.options.alertRegion)return super.onShowAlert(e);let{ctor:t,collection:n}=e,r=n?n.toJSON():[];this.layout.showChildView(this.layoutOptions.options.alertRegion,(0,Q.jsx)(t,{alerts:r,removeAlert:e=>Qb.default.channel(be.ALERT).trigger(`remove:alert`,e)}))}},hC=!1,gC=!1,_C=!1,vC=!0,yC=!0,bC=new class extends P{get name(){return`LayoutHelper`}shouldHideNav(){return hC}disableNav(){hC=!0}enableNav(){hC=!1}shouldHideHeader(){return gC}disableHeader(){gC=!0}enableHeader(){gC=!1}lockContentWidth(){_C=!0,this.trigger(`change:lockContentWidth`)}unlockContentWidth(){_C=!1,this.trigger(`change:lockContentWidth`)}shouldLockContentWidth(){return!!_C}shouldShowSearch(){return yC}enableSearch(){yC=!0}disableSearch(){yC=!1}enableLogoClick(){vC=!0}disableLogoClick(){vC=!1}shouldAllowLogoClick(){return vC}},xC={CONTENT:`content`,POPUP:`popup`,ALERT:`alert`},SC={REPORTS_LAYOUT:`ReportsLayout`},CC={userProducts(e,t){return{url:`{gateway}/v1/users/me/products`,key:`user:products`,normalizeOptions:{namespace:`product`},success:e,error:t,bootstrapName:jt.PRODUCTS}}},wC=5,TC=3,EC=new class extends P{constructor(...e){super(...e),this.routeHistory=[],this.contextHistory=[]}get name(){return Fn.Context}static get Instance(){return this.instance||=new this}initialize(){this.listenTo(be.SHELL,z.ROUTE,this.setContext),this.listenTo(be.SHELL,z.ROUTE,this.updateRouteHistory)}setContext(e){_e.isEqual(e,this.getCurrentContext()?.appLink)||(this.contextHistory.length>=wC&&this.contextHistory.shift(),this.contextHistory.push({pageLoad:!this.contextHistory.length,appLink:e}))}getCurrentContext(){if(this.contextHistory.length)return this.contextHistory[this.contextHistory.length-1]}getPreviousContext(){if(!(!this.contextHistory.length||this.contextHistory.length-2<0))return this.contextHistory[this.contextHistory.length-2]}updateRouteHistory(e){_e.getHref(e)&&(_e.isEqual(e,this.getCurrentRoute()?.appLink)||(this.routeHistory.length>=TC&&this.routeHistory.shift(),this.routeHistory.push({pageLoad:!this.routeHistory.length,appLink:e})))}getCurrentRoute(){if(this.routeHistory.length)return this.routeHistory[this.routeHistory.length-1]}getPreviousRoute(){if(!(!this.routeHistory.length||this.routeHistory.length-2<0))return this.routeHistory[this.routeHistory.length-2]}fromPageLoad(){return this.contextHistory.length===1}_forcePushContext(e){this.setContext(e),this.updateRouteHistory(e)}},DC=B.encloseNamespace(`reportsShared.noAccess`),OC=class extends dC{constructor(){super(`Current user does not have access to analytics`)}get name(){return`NoAccessError`}get heading(){return DC(`heading`)}get description(){return DC(`body`)}get cta(){return!1}},kC=[{application:Mn.DEFAULT,action:jn.Default.ERROR},{application:Mn.DEFAULT,action:jn.Default.DEV_ERROR}];function AC(e,t){EC._forcePushContext(e),bC.disableNav(),bC.disableHeader(),Te.routingEnded(),R.throw(t??new pC)}async function jC(e,t){let{appLink:n,shell:r}=e;if(kC.find(e=>e.application===n?.application&&e.action===n?.action)){t(e);return}let i=null;try{i=await Xt(r.store,CC.userProducts())}catch{return AC(n)}let a=i.some(e=>e.id===Pn.Analytics),o=i.some(e=>e.id===Pn.Primary);if(a&&o){t(e);return}AC(n,new OC)}var MC={getPrimaryObjectUrl(e,t){let n=``;switch(t.typeId){case fn.Video:n=`/videos/${t.id}/${c.slugify(t.name)}`;break;case fn.Interactive:n=`/interactive/${t.id}/preview`;break;case fn.Clip:n=`/clips/${t.id}/${c.slugify(t.name)}`;break;case fn.Series:n=`/series/${t.id}/${c.slugify(t.name)}`;break;case fn.Playlist:n=`/playlists/${t.id}/${c.slugify(t.name)}`;break}if(!n)return;let r=new URL(e.url);return r.pathname=n,r.href},getPrimarySearchUrl(e,t){let n=new URL(e.url);return n.pathname=`search`,n.search=`query=${t}`,n.href},getLiteClassroomsUrl(e){let t=new URL(e.url);return t.pathname=`/classrooms`,t.href},getSharesUrl(e){let t=new URL(e.url);return t.pathname=`/shares`,t.href},getSharePlaylistUrl(e,t){let n=new URL(e.url);return n.pathname=`/share/${t}`,n.href}},NC=B.encloseNamespace(`reportsShared.insightsError`),PC=class extends dC{constructor(e){super(`Current user is not an admin and has Insights`),this.liteProduct=e}get name(){return`InsightsErrorError`}get heading(){return NC(`heading`)}get description(){return NC(`body`)}get cta(){let e=!!this.liteProduct&&MC.getSharesUrl(this.liteProduct);return e?{url:e,text:NC(`cta`)}:!1}},FC=[{application:Mn.DEFAULT,action:jn.Default.ERROR},{application:Mn.DEFAULT,action:jn.Default.DEV_ERROR}];function IC(e,t){EC._forcePushContext(e),bC.disableNav(),bC.disableHeader(),Te.routingEnded(),R.throw(t??new pC)}async function LC(e,t){let{appLink:n,shell:r}=e;if(FC.find(e=>e.application===n?.application&&e.action===n?.action)){t(e);return}try{let i=Xt(r.store,Mt.permissions()),a=Xt(r.store,CC.userProducts()),o=await i,s=await a;if(o?.[Sn.ViewSchoolAnalytics]){t(e);return}IC(n,new PC(s.find(e=>e.id===Pn.Primary)))}catch{IC(n)}}var RC=class extends _{get channelName(){return Mn.DASHBOARD}get appRoutes(){return{"(/)":`index`}}get filters(){return[jC,LC]}},zC=class extends mC{get name(){return`School Dashboard Application`}get layoutOptions(){return{name:SC.REPORTS_LAYOUT,options:{hideNav:bC.shouldHideNav(),hideHeader:bC.shouldHideHeader(),alertRegion:xC.ALERT}}}get channelName(){return Mn.DASHBOARD}static get router(){return RC}async index(){let{SchoolAnalyticsDashboardView:e}=await gn(async()=>{let{SchoolAnalyticsDashboardView:e}=await import(`./DTy5e0Yv2.chunk.js`);return{SchoolAnalyticsDashboardView:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45]));this.layout.showChildView(xC.CONTENT,(0,Q.jsx)(e,{}))}},BC=`shared.notFoundError`,VC=class extends dC{constructor(){super(B.getPhrase(BC,`title`))}get name(){return`NotFoundError`}get heading(){return B.getPhrase(BC,`heading`)}get description(){return B.getPhrase(BC,`description`)}},HC={uploadBase64Image(e,t,n,r){return{url:`/api/image/upload?type=${e}`,key:`upload:image`,data:t,type:Lt.POST,success:n,always:r}}},UC={classroom(e){return{url:`{gateway}/v1/objects/${e}`,key:`classroom:${e}`}},classroomGroup(e){return{url:`{gateway}/v1/objects/${e}?query=classroom`,key:`classroom:group:${e}:classroom`}},getClassroomsById(e){return e.sort(),{url:`{gateway}/v1/objects?query=${`users[count()]{limit:0}&${e.map(e=>`id=${e}`).join(`&`)}`}`,key:`classrooms:${e.join(`,`)}`}},getClassroomGroupsById(e){return e.sort(),{url:`{gateway}/v1/objects?query=${`users[count()]{limit:0}&${e.map(e=>`id=${e}`).join(`&`)}`}`,key:`classroom:groups:${e.join(`,`)}`}},userClassrooms(e,t,n,r){return{url:hn.urlBuilder(`{gateway}/v1/classrooms`,{cursor:e}),key:`user:classrooms${e?`:${e}`:``}`,success:t,error:n,always:r}},getPinnedClassrooms(e,t){return{url:hn.urlBuilder(`{gateway}/v1/objects/${e}/members`,{query:`favouriteClassrooms[favouritedBy{id:${e}},_integrations,enrolments[user]{role:'owner'}]{status:${bn.Active},customer.id:${t},limit:100,orderby:name}`}),key:`pinned:classrooms`,normalize:!1}},getPublished(e,t=``){let n={query:`{orderby:name,status:${bn.Active}}favouritedBy{id:${e}},_integrations,enrolments[user]{role:'owner'}`};return t&&(n.cursor=t),{url:hn.urlBuilder(`{gateway}/v1/classrooms`,n),key:`published:classrooms${t?`:${t}`:``}`}}},WC=B.encloseNamespace(`reportsShared.noClassrooms`),GC=class extends dC{constructor(e){super(`Current user does not have any classrooms`),this.liteProduct=e}get name(){return`NoClassroomsError`}get heading(){return WC(`heading`)}get description(){return WC(`body`)}get cta(){let e=!!this.liteProduct&&MC.getLiteClassroomsUrl(this.liteProduct);return e?{url:e,text:WC(`cta`)}:!1}},KC=[{application:Mn.DEFAULT,action:jn.Default.ERROR},{application:Mn.DEFAULT,action:jn.Default.DEV_ERROR},{application:Mn.DEFAULT,action:jn.Default.NO_CLASSROOMS_ERROR}];function qC(e,t){EC._forcePushContext(e),Te.routingEnded(),R.throw(t??new pC)}async function JC(e,t){let{appLink:n,shell:r}=e;if(KC.find(e=>e.application===n?.application&&e.action===n?.action)){t(e);return}let i=null;try{i=await Xt(r.store,Mt.permissions())}catch{return qC(n)}if(i?.[Sn.ViewSchoolAnalytics]){t(e);return}let a=null;try{a=await Xt(r.store,UC.userClassrooms(null))}catch{return qC(n)}if(a?.data?.length){t(e);return}let o=null;try{o=await Xt(r.store,CC.userProducts())}catch{return qC(n)}qC(n,new GC(o.find(e=>e.id===Pn.Primary)))}var YC=class extends _{get channelName(){return Mn.DEFAULT}get appRoutes(){return{"*path":`catchAllRoutes`}}get appLinks(){return[`devError`,`dialogError`,`error`,`notFound`,`noClassroomsError`,`share`,`generateReport`,`updates`,`giveFeedback`,`uploadImage`,`removeLogo`,`classroomViewsPopup`]}get externalRoutes(){return{"login(/)":`logIn`,"logout(/)":`logOut`}}get filters(){return[jC,JC,LC]}},XC=class extends mC{get name(){return`Default Application`}get layoutOptions(){return{name:SC.REPORTS_LAYOUT,options:{hideNav:bC.shouldHideNav(),hideHeader:bC.shouldHideHeader(),alertRegion:xC.ALERT}}}get channelName(){return Mn.DEFAULT}static get router(){return YC}catchAllRoutes(){R.throw(new VC)}async notFound(){let e=Qb.default.channel(`error:view`).request(`current:error`),{NotFoundView:t}=await gn(async()=>{let{NotFoundView:e}=await import(`./BpzXy-5d.chunk.js`);return{NotFoundView:e}},__vite__mapDeps([46,1]));this.layout.showChildView(xC.CONTENT,(0,Q.jsx)(t,{error:e}))}async error(){let e=Qb.default.channel(`error:view`).request(`current:error`),{ErrorView:t}=await gn(async()=>{let{ErrorView:e}=await import(`./Cah5ISd-.chunk.js`);return{ErrorView:e}},[]);this.layout.showChildView(xC.CONTENT,(0,Q.jsx)(t,{error:e}))}async dialogError(){let e=Qb.default.channel(`error:view`).request(`current:error`);if(!e)return;let{dialogOptions:t}=e,{DialogView:n}=await gn(async()=>{let{DialogView:e}=await import(`./CX3PLISe2.chunk.js`);return{DialogView:e}},__vite__mapDeps([47,1,3,4,48,49,9]));this.layout.showChildView(xC.POPUP,(0,Q.jsx)(n,{title:t.title,text:t.text,buttons:t.buttons,onDone:e.onDone,onFail:e.onFail,closePopup:()=>this.layout.closePopup()}))}async devError(){let e=Qb.default.channel(`error:view`).request(`current:error`),{DevErrorView:t}=await gn(async()=>{let{DevErrorView:e}=await import(`./CWLHiStI2.chunk.js`);return{DevErrorView:e}},__vite__mapDeps([50,1,51,52,49,12,2,6,13,14]));this.layout.showChildView(xC.CONTENT,(0,Q.jsx)(t,{error:e}))}async noClassroomsError(){let e=Qb.default.channel(`error:view`).request(`current:error`),{NoClassroomsErrorView:t}=await gn(async()=>{let{NoClassroomsErrorView:e}=await import(`./Cpm-LpwK.chunk.js`);return{NoClassroomsErrorView:e}},__vite__mapDeps([53,1,12,2,6,13,14,42,3,4,43,54]));this.layout.showChildView(xC.CONTENT,(0,Q.jsx)(t,{error:e,imageUrl:Nn.Errors.NoClassrooms}))}async share(e,t){let{ShareView:n}=await gn(async()=>{let{ShareView:e}=await import(`./BvNaANAO2.chunk.js`);return{ShareView:e}},__vite__mapDeps([55,1,2,56,57,3,4,5,6,21,9,22,23,24,58,48,49,59,52,8,60,61,13,20,17,26,27,28,29,30,19,62,63,64]));this.layout.showChildView(xC.POPUP,(0,Q.jsx)(n,{entityId:e,entityType:t.entityType,closePopup:()=>this.layout.closePopup(),emptyStateImageUrl:Nn.EmptyStates.Shared.TypeaheadResults,errorStateImageUrl:Nn.Errors.TypeaheadError}))}async generateReport(e){let{GenerateReportView:t}=await gn(async()=>{let{GenerateReportView:e}=await import(`./Bs1YLdQb.chunk.js`);return{GenerateReportView:e}},__vite__mapDeps([65,66,1,2,48,3,4,49,6,13,59,52,8,9,60,20,26,10,67]));this.layout.showChildView(xC.POPUP,(0,Q.jsx)(t,{type:e.type,closePopup:()=>this.layout.closePopup()}))}async removeLogo(e){let{RemoveLogoView:t}=await gn(async()=>{let{RemoveLogoView:e}=await import(`./BKW2JeVr.chunk.js`);return{RemoveLogoView:e}},__vite__mapDeps([68,1,48,3,4,49,6,59,52,8,9,60,26,20,2]));this.layout.showChildView(xC.POPUP,(0,Q.jsx)(t,{logoId:e.logoId,customerId:e.customerId,closePopup:()=>this.layout.closePopup()}))}async giveFeedback(){let{GiveFeedbackView:e}=await gn(async()=>{let{GiveFeedbackView:e}=await import(`./BfhdSOSX2.chunk.js`);return{GiveFeedbackView:e}},__vite__mapDeps([69,1,2,56,57,3,4,5,6,21,9,22,23,24,58,48,49,59,52,8,60,61,20,26,70,36,10,67,62,33,34,28,71]));this.layout.showChildView(xC.POPUP,(0,Q.jsx)(e,{product:Pn.Analytics,closePopup:()=>this.layout.closePopup()}))}async classroomViewsPopup(){let{ClassroomViewsPopupView:e}=await gn(async()=>{let{ClassroomViewsPopupView:e}=await import(`./BnfA2fln.chunk.js`);return{ClassroomViewsPopupView:e}},__vite__mapDeps([72,1,3,4,48,49,6,13,59,52,8,9,60,26,20,2]));this.layout.showChildView(xC.POPUP,(0,Q.jsx)(e,{closePopup:()=>this.layout.closePopup()}))}async uploadImage(e){let{ImageUploadView:t}=await gn(async()=>{let{ImageUploadView:e}=await import(`./DMI-Lxl02.chunk.js`);return{ImageUploadView:e}},__vite__mapDeps([73,1,48,3,4,49,6,59,52,8,9,60,34,74]));this.layout.showChildView(xC.POPUP,(0,Q.jsx)(t,{getRequest:HC.uploadBase64Image,imageType:e,popupSize:`lg`,closePopup:()=>this.layout.closePopup()}))}},ZC=class extends _{get channelName(){return Mn.LOGINS}get appRoutes(){return{"logins(/)":`index`}}get filters(){return[jC,LC]}},QC=class extends mC{get name(){return`SchoolLogins Application`}get layoutOptions(){return{name:SC.REPORTS_LAYOUT,options:{hideNav:bC.shouldHideNav(),hideHeader:bC.shouldHideHeader(),alertRegion:xC.ALERT}}}get channelName(){return Mn.LOGINS}static get router(){return ZC}async index(){let{SchoolLoginOverview:e}=await gn(async()=>{let{SchoolLoginOverview:e}=await import(`./c7dUmf3R.chunk.js`);return{SchoolLoginOverview:e}},__vite__mapDeps([75,1,2,5,6,13,7,8,9,10,11,12,14,42,3,4,43,16,17,76,59,48,49,52,60,66,20,26,67,38,77]));this.layout.showChildView(xC.CONTENT,(0,Q.jsx)(e,{}))}},$C=class extends _{get channelName(){return Mn.VIDEOS}get appRoutes(){return{"videos(/)":`index`,"videos/top(/)":`topVideos`,"videos/:id/views(/)":`videoViews`,"interactives/:id/views(/)":`interactiveViews`,"clips/:id/views(/)":`clipViews`,"videos/:id/overview":`videoRedirect`,"videos/:id/engagement":`videoRedirect`,"clips/:id/overview":`clipRedirect`,"clips/:id/engagement":`clipRedirect`,"interactives/:id/overview":`interactiveRedirect`,"interactives/:id/results":`interactiveRedirect`,"interactives/:id/engagement":`interactiveRedirect`,"interactives/:id/question-list":`interactiveRedirect`}}get filters(){return[jC,LC]}},ew=class extends mC{get name(){return`School Videos Application`}get layoutOptions(){return{name:SC.REPORTS_LAYOUT,options:{hideNav:bC.shouldHideNav(),hideHeader:bC.shouldHideHeader(),alertRegion:xC.ALERT}}}get channelName(){return Mn.VIDEOS}static get router(){return $C}async index(){let{SchoolVideoOverviewView:e}=await gn(async()=>{let{SchoolVideoOverviewView:e}=await import(`./2MxiB_er.chunk.js`);return{SchoolVideoOverviewView:e}},__vite__mapDeps([78,1,6,7,5,8,9,10,11,12,2,13,14,15,16,17,42,3,4,43,79,27,28,29,38,80,76,59,48,49,52,60,66,20,26,67,81,44,39,31,22,23,32,40,41,82]));this.layout.showChildView(xC.CONTENT,(0,Q.jsx)(e,{}))}async topVideos(){let{SchoolTopVideosView:e}=await gn(async()=>{let{SchoolTopVideosView:e}=await import(`./CKRKdk5U.chunk.js`);return{SchoolTopVideosView:e}},__vite__mapDeps([83,1,84,3,4,5,6,85,8,9,12,2,13,14,60,15,16,17,18,19,20,25,26,21,22,23,24,27,28,29,30,31,32,33,34,35,42,43,79,38,80,86]));this.layout.showChildView(xC.CONTENT,(0,Q.jsx)(e,{}))}async videoViews(e){let{SchoolVideoViewsView:t}=await gn(async()=>{let{SchoolVideoViewsView:e}=await import(`./Bx5qk-PZ.chunk.js`);return{SchoolVideoViewsView:e}},__vite__mapDeps([87,1,2,57,3,4,5,6,21,9,22,23,24,58,84,85,48,49,13,7,8,10,11,12,14,15,16,17,18,19,20,26,33,34,88,63,37,29,76,59,52,60,66,67,38,81,42,43,44,41,89]));this.layout.showChildView(xC.CONTENT,(0,Q.jsx)(t,{typeId:fn.Video,id:e}))}async interactiveViews(e){let{SchoolVideoViewsView:t}=await gn(async()=>{let{SchoolVideoViewsView:e}=await import(`./Bx5qk-PZ.chunk.js`);return{SchoolVideoViewsView:e}},__vite__mapDeps([87,1,2,57,3,4,5,6,21,9,22,23,24,58,84,85,48,49,13,7,8,10,11,12,14,15,16,17,18,19,20,26,33,34,88,63,37,29,76,59,52,60,66,67,38,81,42,43,44,41,89]));this.layout.showChildView(xC.CONTENT,(0,Q.jsx)(t,{typeId:fn.Interactive,id:e}))}async clipViews(e){let{SchoolVideoViewsView:t}=await gn(async()=>{let{SchoolVideoViewsView:e}=await import(`./Bx5qk-PZ.chunk.js`);return{SchoolVideoViewsView:e}},__vite__mapDeps([87,1,2,57,3,4,5,6,21,9,22,23,24,58,84,85,48,49,13,7,8,10,11,12,14,15,16,17,18,19,20,26,33,34,88,63,37,29,76,59,52,60,66,67,38,81,42,43,44,41,89]));this.layout.showChildView(xC.CONTENT,(0,Q.jsx)(t,{typeId:fn.Clip,id:e}))}videoRedirect(e,t){_e.trigger({application:Mn.VIDEOS,action:jn.Videos.VIDEO_VIEWS,args:[e],params:t},{replace:!0})}clipRedirect(e,t){_e.trigger({application:Mn.VIDEOS,action:jn.Videos.CLIP_VIEWS,args:[e],params:t},{replace:!0})}interactiveRedirect(e,t){_e.trigger({application:Mn.VIDEOS,action:jn.Videos.INTERACTIVE_VIEWS,args:[e],params:t},{replace:!0})}};async function tw(e,t){let[n,r]=await Promise.all([Zt(e.store,Mt.currentUser()),Zt(e.store,Mt.permissions()),Zt(e.store,kn.customerSettings()),Zt(e.store,kn.userSettings())]);try{if(un.setCurrentRegion(uC[n.instanceRegion]),e.registerApplication(XC),!n.isAuthenticated){t(e);return}r[Sn.ViewSchoolAnalytics]&&e.registerApplication(zC).registerApplication(QC).registerApplication(ew),t(e)}catch{R.throw(new pC)}}var nw=function(e){return e.Fifo=`FifoMemoryCache`,e}({});Me();var rw=class extends P{constructor(e){super(),this.size=e.size,this.cache={},this.cachedkeys=[],this.store=e.store}get name(){return nw.Fifo}removeCacheKey(e){this.cachedkeys=ce(this.cachedkeys,e)}has(e){return!!this.cache[e]}get(e){return this.cache[e]}set(e,t){(!e||!t)&&R.throw(new y(`Must provide a cache key and a value to cache in FifoMemoryCache.`)),this.has(e)&&this.removeCacheKey(e),this.cachedkeys.push(e),this.cache[e]=t,this.cachedkeys.length>this.size&&delete this.cache[this.cachedkeys.shift()]}getOrSet(e,t){if(this.has(e))return this.get(e);let n=t();return this.set(e,n),n}remove(e){return this.has(e)?(delete this.cache[e],this.removeCacheKey(e),!0):!1}invalidate(e,t,n=!1){let r=Se(this.cachedkeys,this.cachedkeys),i=[];me(e,e=>{r[e]&&i.push(e);let t=new RegExp(e,`i`),n=w(r,e=>t.test(e));i.push(...n)}),i.length&&(i=le(i),me(i,e=>{delete this.cache[e],M(t)&&t(e)}),this.cachedkeys=ce(this.cachedkeys,...i)),!(!this.store||!n)&&this.store.dispatch({type:$t.INVALIDATE,keys:e})}};function iw(e,t){Pt.registerInstance(rw,{size:100}),t(e)}var aw=g(ge()),ow=function(e){return e.Ajax=`AjaxDataProvider`,e.Notifications=`NotificationsSignalRDataProvider`,e}({}),sw=function(e){return e[e.Unknown=0]=`Unknown`,e[e.BadRequest=1]=`BadRequest`,e[e.Unauthorized=2]=`Unauthorized`,e[e.Forbidden=3]=`Forbidden`,e[e.NotFound=4]=`NotFound`,e[e.InternalServer=5]=`InternalServer`,e}({}),cw={type:sw.Unknown,message:``,code:0},lw={parseErrorMessage(e,t,n){if(!n||!n.errorCode)return e[t];let r=`${n.errorCode}`;return n.errorSubCode&&(r+=`.${n.errorSubCode}`),e[r]||e[t]}};Me();var uw=class extends WS.MnObject{constructor(e){super(e),aw.default.ajaxSetup({cache:e.cacheRequests??!1,contentType:`application/json; charset=utf-8`}),this.successMiddleware={},this.errorMiddleware={},this.dataServiceErrorMessageMappings=e.dataServiceErrorMessageMappings,this.defaultErrorMessageKey=e.defaultErrorMessageKey}get name(){return ow.Ajax}parseUrl(e){let t=document.createElement(`a`);return t.href=e,t.host===``&&(t.href=t.href),t}makeHttps(e){let t=this.parseUrl(e);return t.protocol===`http:`&&(t.protocol=`https:`),t.href}base(e,t,n,r={}){n||=Lt.GET;let i=oe.defaults(r,{forceHttps:!1}),a={url:e,method:n,type:n};t&&(a.data=n===Lt.POST||n===Lt.PUT?JSON.stringify(t):t),i.forceHttps&&(a.url=this.makeHttps(a.url)),i.traditional&&(a.traditional=i.traditional);let o=aw.default.ajax(a);return oe.keys(this.successMiddleware).length&&o.done(oe.values(this.successMiddleware)),oe.keys(this.errorMiddleware).length&&o.fail(oe.values(this.errorMiddleware)),o}create(e,t,n){let{channel:r,successEvent:i,errorEvent:a}=n;this.base(e,t,Lt.POST).done((e,t,n)=>r.trigger(i,e,t,n)).fail((e,t,n)=>r.trigger(a,e,t,n))}read(e,t){let{channel:n,successEvent:r,errorEvent:i}=t;this.base(e,null,Lt.GET).done((e,t,i)=>{n.trigger(r,e,t,i)}).fail((e,t,r)=>{n.trigger(i,e,t,r)})}update(e,t,n){let{channel:r,successEvent:i,errorEvent:a}=n;this.base(e,t,Lt.PUT).done((e,t,n)=>r.trigger(i,e,t,n)).fail((e,t,n)=>r.trigger(a,e,t,n))}delete(e,t){let{channel:n,successEvent:r,errorEvent:i}=t;this.base(e,null,Lt.DELETE).done((e,t,i)=>n.trigger(r,e,t,i)).fail((e,t,r)=>n.trigger(i,e,t,r))}useMiddleware(e,t){this.successMiddleware[e]||(this.successMiddleware[e]=t)}useErrorMiddleware(e,t){this.errorMiddleware[e]||(this.errorMiddleware[e]=t)}parseError(e){let t=e.responseJSON,n=cw;switch(n.code=e.status,n.message=lw.parseErrorMessage(this.dataServiceErrorMessageMappings,this.defaultErrorMessageKey,t),e.status){case 400:n.type=sw.BadRequest;break;case 401:n.type=sw.Unauthorized;break;case 403:n.type=sw.Forbidden;break;case 404:n.type=sw.NotFound;break;case 500:n.type=sw.InternalServer;break}return n}};function dw(e,t){Pt.registerInstance(uw,{dataServiceErrorMessageMappings:{temp:`Error`},defaultErrorMessageKey:`temp`}),t(e)}Me();var fw=class extends P{get defaultProps(){return[`dataProvider`,`cache`,`bootstrapData`,`defaultErrorHandler`,`alertService`]}constructor(e){super(e),x(this,`name`)||R.throw(new y(`Must provide a name when extending BaseDataService`)),x(this,`channelName`)||R.throw(new y(`Must provide a channelName for ${x(this,`name`)}`));let t=[...this.defaultProps,...this.props||[]];this.dataRequestSignatures={},this.mergeOptions(e,t)}getCursors(e){let t=this.cache.get(e);return t?t.cursors:{next:``,previous:``}}clearCacheAndGet(e){let{callback:t,errorCallback:n,eventPrefix:r}=e,{syncEvent:i,errorEvent:a}=this.getEventNames(r),o=this.cache.get(r);if(o&&o.openRequest){this.listenToOnce(this.getChannel(),i,e=>{M(n)&&this.stopListening(this.getChannel(),a,n),M(t)&&t(e)}),this.listenToOnce(this.getChannel(),a,()=>{M(t)&&this.stopListening(this.getChannel(),i,t),M(n)&&n()});return}this.cache.remove(e.eventPrefix),this.get(e)}get(e){let{callback:t,errorCallback:n,eventPrefix:r,resource:i,formatData:a,expiryTime:o,successHandler:s,errorHandler:c,bootstrapName:l,invalidateFlight:u}=e,{syncEvent:d,requestEvent:f,successEvent:p,errorEvent:m}=this.getEventNames(r),h=this.getChannel(),g=this.currentTimestamp();this.bootstrapData&&this.bootstrapData[l]&&(this.cacheData(r,this.bootstrapData[l],a,{openRequest:!1,timestamp:g}),delete this.bootstrapData[l]);let _=this.cache.get(r),v;_&&(v=_.data);let y=_&&_.openRequest,b=this.isExpired(r,o);if(y&&(this.listenToOnce(h,d,e=>{M(n)&&this.stopListening(this.getChannel(),m,n),M(t)&&t(e)}),this.listenToOnce(h,m,()=>{M(t)&&this.stopListening(this.getChannel(),d,t),M(n)&&n()})),(!this.cache.has(r)||b)&&(h.trigger(f),this.listenToResponse({eventPrefix:r,formatData:a,cacheOptions:{timestamp:g},callback:t,errorCallback:n,successHandler:s,errorHandler:c,invalidateFlight:u}),this.cacheData(r,null,null,{openRequest:!0,timestamp:g}),this.dataProvider.read(i,{channel:this.getTransportChannel(),successEvent:p,errorEvent:m})),v&&M(t)&&!b&&t(v),v)return v}create(e){let{eventPrefix:t,resource:n,data:r,formatData:i,callback:a,errorCallback:o,invalidationKeys:s,successHandler:c,errorHandler:l,invalidateFlight:u}=e,{requestEvent:d,successEvent:f,errorEvent:p}=this.getEventNames(e.eventPrefix),m=this.getChannel(),h=this.getTransportChannel();m.trigger(d),this.listenToResponse({eventPrefix:t,formatData:i,invalidationKeys:s,callback:a,errorCallback:o,successHandler:c,errorHandler:l,invalidateFlight:u}),this.dataProvider.create(n,r,{channel:h,successEvent:f,errorEvent:p})}update(e){let{data:t,callback:n,errorCallback:r,resource:i,formatData:a,eventPrefix:o,invalidationKeys:s,errorHandler:c,successHandler:l,invalidateFlight:u}=e,{requestEvent:d,successEvent:f,errorEvent:p}=this.getEventNames(e.eventPrefix),m=this.getChannel(),h=this.getTransportChannel();m.trigger(d),this.listenToResponse({eventPrefix:o,formatData:a,invalidationKeys:s,callback:n,errorCallback:r,successHandler:l,errorHandler:c,invalidateFlight:u}),this.dataProvider.update(i,t,{channel:h,successEvent:f,errorEvent:p})}delete(e){let{eventPrefix:t,resource:n,callback:r,errorCallback:i,invalidationKeys:a,successHandler:o,errorHandler:s,invalidateFlight:c}=e,{successEvent:l,errorEvent:u}=this.getEventNames(t),d=this.getTransportChannel();this.listenToResponse({eventPrefix:t,invalidationKeys:a,callback:r,errorCallback:i,cacheOptions:{noCache:!0,clearCacheKey:!0},successHandler:o,errorHandler:s,invalidateFlight:c}),this.dataProvider.delete(n,{channel:d,successEvent:l,errorEvent:u})}listenToResponse(e){let{eventPrefix:t,formatData:n,callback:r,errorCallback:i,successHandler:a,errorHandler:o,invalidationKeys:s,cacheOptions:c={},invalidateFlight:l}=e,{syncEvent:u,successEvent:d,errorEvent:f,successAlertEvent:p,errorAlertEvent:m}=this.getEventNames(t),h=this.getChannel(),g=this.getTransportChannel(),_=this.getAlertChannel();M(r)&&this.listenToOnce(h,u,r),M(i)&&this.listenToOnce(h,f,i),this.stopListening(_,p),this.stopListening(_,m),M(a)&&this.listenToOnce(_,p,a),M(o)&&this.listenToOnce(_,m,o),!M(o)&&o!==!1&&M(this.defaultErrorHandler)&&this.listenToOnce(_,m,this.defaultErrorHandler),!this.hasRequestSignature(t)&&(this.setRequestSignature(t),this.listenTo(g,d,(e,...r)=>{this.stopListening(h,f,i),_.trigger(p,e,...r);let a=c.noCache?this.formatData(e,n):this.cacheData(t,e,n);c.clearCacheKey&&this.cache.remove(t),h.trigger(u,a),s&&s.length&&this.cache.invalidate(s,e=>h.trigger(`${e}:invalidate`),l)}),this.listenTo(g,f,(...e)=>{this.stopListening(h,u,r);let n=this.dataProvider.parseError(...e);_.trigger(m,n),h.trigger(f,n),!c.noCache&&this.cacheData(t,null,null)}))}cacheData(e,t,n,r={}){let{openRequest:i=!1}=r,{timestamp:a}=r;a||=this.currentTimestamp();let o=this.processPagination(t),s=this.formatData(t,n);return this.cache.set(e,{data:s,timestamp:a,cursors:o,openRequest:i}),s}processPagination(e){if(!e)return;let{pagination:t}=e;if(t){if(t.cursors)return t.cursors;if(!d(t.offset)&&!d(t.pageSize))return this.convertOffsetPaginationToCursors(t);if(t.page)return this.convertLegacyPaginationToCursors(t)}}formatData(e,t){return M(t)?t(e):e}chain(){let e=[],t=(e,t)=>{M(e)&&e(t)},n=(n,i)=>(e.push(()=>{let r=n.callback;n.callback=n=>{t(r,n),t(e.shift())},this[i](n)}),r),r={func(t){return e.push(()=>{t(e.shift()||(()=>{}))}),r},get(e){return n(e,`get`)},create(e){return n(e,`create`)},update(e){return n(e,`update`)},delete(e){return n(e,`delete`)},run(){t(e.shift())}};return r}invalidateCache(e,t=!1){!e||!e.length||this.cache.invalidate(e,e=>this.getChannel().trigger(`${e}:invalidate`),t)}currentTimestamp(){return new Date().valueOf()}isExpired(e,t){if(!t)return!1;let n=this.cache.get(e);if(!n||!n.timestamp)return!0;let r=n.timestamp,i=t*1e3;return r<this.currentTimestamp()-i}getEventNames(e){return{syncEvent:`${e}:sync`,requestEvent:`${e}:request`,successEvent:`${e}:success`,errorEvent:`${e}:error`,successAlertEvent:`${e}:success:alert`,errorAlertEvent:`${e}:error:alert`}}getTransportChannel(){return Qb.default.channel(`${this.channelName}:transport`)}getAlertChannel(){return Qb.default.channel(`${this.channelName}:alert`)}setRequestSignature(e){this.dataRequestSignatures[e]=e}hasRequestSignature(e){return!!this.dataRequestSignatures[e]}convertOffsetPaginationToCursors(e){let{offset:t,pageSize:n,totalItems:r}=e,i=r>0&&t<r&&t+n,a=r>0&&t>0&&Math.max(t-n,0),o={};if(i&&i<r&&(o.next=i.toString()),F(a)&&(o.previous=a.toString()),!m(o))return o}convertLegacyPaginationToCursors(e){let{page:t,totalPages:n}=e,r=F(t)&&t>0&&t<n&&t+1,i=F(t)&&t>1&&t-1,a={};if(r&&r<=n&&(a.next=r.toString()),i&&(a.previous=i.toString()),!m(a))return a}},pw={UPLOAD_COMPLETE:`upload:complete`,UPLOAD_SUCCESS:`upload:success`,FILES_SELECTED:`files:selected`,FILES_ADDED:`files:added`,UPLOAD_CANCELLED:`upload:cancelled`,PENDING_ITEM_READY_TO_WATCH:`pending:item:ready:to:watch`,PENDING_ITEM_STATUS_CHANGE:`pending:item:status:change`,PROCESSING_CANCELLED:`processing:cancelled`,UNLOCK_NAV:`upload:unlock:nav`,PROCESSING_FAILED:`processing:failed`},mw=function(e){return e[e.Permanent=0]=`Permanent`,e[e.Temporary=1]=`Temporary`,e}({}),hw=class extends Ln{constructor(e){super(e)}get name(){return`FileTypeError`}get lang(){return`upload.fileType`}get dialogOptions(){return{title:B.getPhrase(this.lang,`heading`),text:B.getPhrase(this.lang,`body`),buttons:[{text:B.getPhrase(this.lang,`okay`),className:`btn btn-dark`,success:!0},{text:B.getPhrase(this.lang,`close`),className:`btn btn-link`,close:!0}]}}};Me();var gw=[`pdf`],_w=[`doc`,`docx`,`dotx`,`dot`,`rtf`,`docm`,`odt`],vw=[`csv`,`txt`],yw=[`xlsx`],bw=[`jpg`,`jpeg`,`png`,`bmp`,`gif`,`webp`],xw=[`3gp`,`3gpp`,`asx`,`avi`,`divx`,`flv`,`m2t`,`m2ts`,`m2v`,`m4v`,`mkv`,`mod`,`mov`,`mp4`,`mpe`,`mpeg`,`mpg`,`mts`,`ogv`,`qt`,`ts`,`vob`,`webm`,`wmv`],Sw=[`zip`],Cw=[`ppt`,`pps`,`pptx`],ww=[`srt`],Tw={IMAGES:`.${bw.join(`,.`)}`,VIDEO:`.${xw.join(`,.`)}`,MIXED_MEDIA:`.${bw.join(`,.`)},${xw.join(`,.`)}`,RESOURCES:`.${[..._w,...yw,...Cw,...gw,...vw,...bw,...Sw].join(`,.`)}`,SUBTITLES:`.${ww.join(`,.`)}`},Ew={CONFIG:`config:data:service`,USER:`user:data:service`,LANGUAGE:`language:data:service`,LIBRARY:`library:data:service`,SEARCH:`search:data:service`,SERIES:`series:data:service`,NOTIFICATIONS:`notifications:data:service`,NOTIFICATIONS_SOCKET:`notifications:socket:service`},Dw={PENDING_ITEMS:`pending:items:service`,VIDEO_UPLOAD:`video:upload:service`,SUBTITLE_UPLOAD:`subtitle:upload:service`,RESOURCE_UPLOAD:`resource:upload:service`,CONTEXTUAL_SEARCH:`contextual:search:service`,IMAGE_UPLOAD:`image:upload:service`,MIXED_MEDIA_UPLOAD:`media:upload:service`,BRAZE:`braze:client:service`},Ow={requestUpload(e,t){let n=e.name.split(`.`),r=t===mw.Permanent?null:dn.add(new Date,7,`days`).toISOString(),i={name:n.join(`.`),extension:n.length>1?n.pop():``,size:e.size,lifestyle:t,dateExpires:r,contentType:e.type||`application/octet-stream`,chunkUploadEnabled:!0};return{url:`{gateway}/v1/files/upload`,key:`upload:file`,type:Lt.POST,data:i}}},kw=v(((e,t)=>{(function(n,r){if(typeof e==`object`&&typeof t==`object`)t.exports=r();else if(typeof define==`function`&&define.amd)define([],r);else{var i=r();for(var a in i)(typeof e==`object`?e:n)[a]=i[a]}})(self,function(){return(function(){var e={3099:(function(e){e.exports=function(e){if(typeof e!=`function`)throw TypeError(String(e)+` is not a function`);return e}}),6077:(function(e,t,n){var r=n(111);e.exports=function(e){if(!r(e)&&e!==null)throw TypeError(`Can't set `+String(e)+` as a prototype`);return e}}),1223:(function(e,t,n){var r=n(5112),i=n(30),a=n(3070),o=r(`unscopables`),s=Array.prototype;s[o]??a.f(s,o,{configurable:!0,value:i(null)}),e.exports=function(e){s[o][e]=!0}}),1530:(function(e,t,n){var r=n(8710).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}}),5787:(function(e){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError(`Incorrect `+(n?n+` `:``)+`invocation`);return e}}),9670:(function(e,t,n){var r=n(111);e.exports=function(e){if(!r(e))throw TypeError(String(e)+` is not an object`);return e}}),4019:(function(e){e.exports=typeof ArrayBuffer<`u`&&typeof DataView<`u`}),260:(function(e,t,n){var r=n(4019),i=n(9781),a=n(7854),o=n(111),s=n(6656),c=n(648),l=n(8880),u=n(1320),d=n(3070).f,f=n(9518),p=n(7674),m=n(5112),h=n(9711),g=a.Int8Array,_=g&&g.prototype,v=a.Uint8ClampedArray,y=v&&v.prototype,b=g&&f(g),x=_&&f(_),S=Object.prototype,C=S.isPrototypeOf,w=m(`toStringTag`),T=h(`TYPED_ARRAY_TAG`),E=r&&!!p&&c(a.opera)!==`Opera`,D=!1,O,k={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},A={BigInt64Array:8,BigUint64Array:8},j=function(e){if(!o(e))return!1;var t=c(e);return t===`DataView`||s(k,t)||s(A,t)},M=function(e){if(!o(e))return!1;var t=c(e);return s(k,t)||s(A,t)},N=function(e){if(M(e))return e;throw TypeError(`Target is not a typed array`)},P=function(e){if(p){if(C.call(b,e))return e}else for(var t in k)if(s(k,O)){var n=a[t];if(n&&(e===n||C.call(n,e)))return e}throw TypeError(`Target is not a typed array constructor`)},F=function(e,t,n){if(i){if(n)for(var r in k){var o=a[r];o&&s(o.prototype,e)&&delete o.prototype[e]}(!x[e]||n)&&u(x,e,n?t:E&&_[e]||t)}},I=function(e,t,n){var r,o;if(i){if(p){if(n)for(r in k)o=a[r],o&&s(o,e)&&delete o[e];if(!b[e]||n)try{return u(b,e,n?t:E&&g[e]||t)}catch{}else return}for(r in k)o=a[r],o&&(!o[e]||n)&&u(o,e,t)}};for(O in k)a[O]||(E=!1);if((!E||typeof b!=`function`||b===Function.prototype)&&(b=function(){throw TypeError(`Incorrect invocation`)},E))for(O in k)a[O]&&p(a[O],b);if((!E||!x||x===S)&&(x=b.prototype,E))for(O in k)a[O]&&p(a[O].prototype,x);if(E&&f(y)!==x&&p(y,x),i&&!s(x,w))for(O in D=!0,d(x,w,{get:function(){return o(this)?this[T]:void 0}}),k)a[O]&&l(a[O],T,O);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:E,TYPED_ARRAY_TAG:D&&T,aTypedArray:N,aTypedArrayConstructor:P,exportTypedArrayMethod:F,exportTypedArrayStaticMethod:I,isView:j,isTypedArray:M,TypedArray:b,TypedArrayPrototype:x}}),3331:(function(e,t,n){var r=n(7854),i=n(9781),a=n(4019),o=n(8880),s=n(2248),c=n(7293),l=n(5787),u=n(9958),d=n(7466),f=n(7067),p=n(1179),m=n(9518),h=n(7674),g=n(8006).f,_=n(3070).f,v=n(1285),y=n(8003),b=n(9909),x=b.get,S=b.set,C=`ArrayBuffer`,w=`DataView`,T=`prototype`,E=`Wrong length`,D=`Wrong index`,O=r[C],k=O,A=r[w],j=A&&A[T],M=Object.prototype,N=r.RangeError,P=p.pack,F=p.unpack,I=function(e){return[e&255]},L=function(e){return[e&255,e>>8&255]},ee=function(e){return[e&255,e>>8&255,e>>16&255,e>>24&255]},te=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},R=function(e){return P(e,23,4)},ne=function(e){return P(e,52,8)},z=function(e,t){_(e[T],t,{get:function(){return x(this)[t]}})},re=function(e,t,n,r){var i=f(n),a=x(e);if(i+t>a.byteLength)throw N(D);var o=x(a.buffer).bytes,s=i+a.byteOffset,c=o.slice(s,s+t);return r?c:c.reverse()},ie=function(e,t,n,r,i,a){var o=f(n),s=x(e);if(o+t>s.byteLength)throw N(D);for(var c=x(s.buffer).bytes,l=o+s.byteOffset,u=r(+i),d=0;d<t;d++)c[l+d]=u[a?d:t-d-1]};if(!a)k=function(e){l(this,k,C);var t=f(e);S(this,{bytes:v.call(Array(t),0),byteLength:t}),i||(this.byteLength=t)},A=function(e,t,n){l(this,A,w),l(e,k,w);var r=x(e).byteLength,a=u(t);if(a<0||a>r)throw N(`Wrong offset`);if(n=n===void 0?r-a:d(n),a+n>r)throw N(E);S(this,{buffer:e,byteLength:n,byteOffset:a}),i||(this.buffer=e,this.byteLength=n,this.byteOffset=a)},i&&(z(k,`byteLength`),z(A,`buffer`),z(A,`byteLength`),z(A,`byteOffset`)),s(A[T],{getInt8:function(e){return re(this,1,e)[0]<<24>>24},getUint8:function(e){return re(this,1,e)[0]},getInt16:function(e){var t=re(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=re(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return te(re(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return te(re(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return F(re(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return F(re(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){ie(this,1,e,I,t)},setUint8:function(e,t){ie(this,1,e,I,t)},setInt16:function(e,t){ie(this,2,e,L,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){ie(this,2,e,L,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){ie(this,4,e,ee,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){ie(this,4,e,ee,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){ie(this,4,e,R,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){ie(this,8,e,ne,t,arguments.length>2?arguments[2]:void 0)}});else{if(!c(function(){O(1)})||!c(function(){new O(-1)})||c(function(){return new O,new O(1.5),new O(NaN),O.name!=C})){k=function(e){return l(this,k),new O(f(e))};for(var ae=k[T]=O[T],oe=g(O),se=0,ce;oe.length>se;)(ce=oe[se++])in k||o(k,ce,O[ce]);ae.constructor=k}h&&m(j)!==M&&h(j,M);var le=new A(new k(2)),ue=j.setInt8;le.setInt8(0,2147483648),le.setInt8(1,2147483649),(le.getInt8(0)||!le.getInt8(1))&&s(j,{setInt8:function(e,t){ue.call(this,e,t<<24>>24)},setUint8:function(e,t){ue.call(this,e,t<<24>>24)}},{unsafe:!0})}y(k,C),y(A,w),e.exports={ArrayBuffer:k,DataView:A}}),1048:(function(e,t,n){var r=n(7908),i=n(1400),a=n(7466),o=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),s=a(n.length),c=i(e,s),l=i(t,s),u=arguments.length>2?arguments[2]:void 0,d=o((u===void 0?s:i(u,s))-l,s-c),f=1;for(l<c&&c<l+d&&(f=-1,l+=d-1,c+=d-1);d-- >0;)l in n?n[c]=n[l]:delete n[c],c+=f,l+=f;return n}}),1285:(function(e,t,n){var r=n(7908),i=n(1400),a=n(7466);e.exports=function(e){for(var t=r(this),n=a(t.length),o=arguments.length,s=i(o>1?arguments[1]:void 0,n),c=o>2?arguments[2]:void 0,l=c===void 0?n:i(c,n);l>s;)t[s++]=e;return t}}),8533:(function(e,t,n){var r=n(2092).forEach;e.exports=n(9341)(`forEach`)?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),8457:(function(e,t,n){var r=n(9974),i=n(7908),a=n(3411),o=n(7659),s=n(7466),c=n(6135),l=n(1246);e.exports=function(e){var t=i(e),n=typeof this==`function`?this:Array,u=arguments.length,d=u>1?arguments[1]:void 0,f=d!==void 0,p=l(t),m=0,h,g,_,v,y,b;if(f&&(d=r(d,u>2?arguments[2]:void 0,2)),p!=null&&!(n==Array&&o(p)))for(v=p.call(t),y=v.next,g=new n;!(_=y.call(v)).done;m++)b=f?a(v,d,[_.value,m],!0):_.value,c(g,m,b);else for(h=s(t.length),g=new n(h);h>m;m++)b=f?d(t[m],m):t[m],c(g,m,b);return g.length=m,g}}),1318:(function(e,t,n){var r=n(5656),i=n(7466),a=n(1400),o=function(e){return function(t,n,o){var s=r(t),c=i(s.length),l=a(o,c),u;if(e&&n!=n){for(;c>l;)if(u=s[l++],u!=u)return!0}else for(;c>l;l++)if((e||l in s)&&s[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}}),2092:(function(e,t,n){var r=n(9974),i=n(8361),a=n(7908),o=n(7466),s=n(5417),c=[].push,l=function(e){var t=e==1,n=e==2,l=e==3,u=e==4,d=e==6,f=e==7,p=e==5||d;return function(m,h,g,_){for(var v=a(m),y=i(v),b=r(h,g,3),x=o(y.length),S=0,C=_||s,w=t?C(m,x):n||f?C(m,0):void 0,T,E;x>S;S++)if((p||S in y)&&(T=y[S],E=b(T,S,v),e))if(t)w[S]=E;else if(E)switch(e){case 3:return!0;case 5:return T;case 6:return S;case 2:c.call(w,T)}else switch(e){case 4:return!1;case 7:c.call(w,T)}return d?-1:l||u?u:w}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterOut:l(7)}}),6583:(function(e,t,n){var r=n(5656),i=n(9958),a=n(7466),o=n(9341),s=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,u=o(`lastIndexOf`);e.exports=l||!u?function(e){if(l)return c.apply(this,arguments)||0;var t=r(this),n=a(t.length),o=n-1;for(arguments.length>1&&(o=s(o,i(arguments[1]))),o<0&&(o=n+o);o>=0;o--)if(o in t&&t[o]===e)return o||0;return-1}:c}),1194:(function(e,t,n){var r=n(7293),i=n(5112),a=n(7392),o=i(`species`);e.exports=function(e){return a>=51||!r(function(){var t=[],n=t.constructor={};return n[o]=function(){return{foo:1}},t[e](Boolean).foo!==1})}}),9341:(function(e,t,n){var r=n(7293);e.exports=function(e,t){var n=[][e];return!!n&&r(function(){n.call(null,t||function(){throw 1},1)})}}),3671:(function(e,t,n){var r=n(3099),i=n(7908),a=n(8361),o=n(7466),s=function(e){return function(t,n,s,c){r(n);var l=i(t),u=a(l),d=o(l.length),f=e?d-1:0,p=e?-1:1;if(s<2)for(;;){if(f in u){c=u[f],f+=p;break}if(f+=p,e?f<0:d<=f)throw TypeError(`Reduce of empty array with no initial value`)}for(;e?f>=0:d>f;f+=p)f in u&&(c=n(c,u[f],f,l));return c}};e.exports={left:s(!1),right:s(!0)}}),5417:(function(e,t,n){var r=n(111),i=n(3157),a=n(5112)(`species`);e.exports=function(e,t){var n;return i(e)&&(n=e.constructor,typeof n==`function`&&(n===Array||i(n.prototype))?n=void 0:r(n)&&(n=n[a],n===null&&(n=void 0))),new(n===void 0?Array:n)(t===0?0:t)}}),3411:(function(e,t,n){var r=n(9670),i=n(9212);e.exports=function(e,t,n,a){try{return a?t(r(n)[0],n[1]):t(n)}catch(t){throw i(e),t}}}),7072:(function(e,t,n){var r=n(5112)(`iterator`),i=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){i=!0}};o[r]=function(){return this},Array.from(o,function(){throw 2})}catch{}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var a={};a[r]=function(){return{next:function(){return{done:n=!0}}}},e(a)}catch{}return n}}),4326:(function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}}),648:(function(e,t,n){var r=n(1694),i=n(4326),a=n(5112)(`toStringTag`),o=i(function(){return arguments}())==`Arguments`,s=function(e,t){try{return e[t]}catch{}};e.exports=r?i:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=s(t=Object(e),a))==`string`?n:o?i(t):(r=i(t))==`Object`&&typeof t.callee==`function`?`Arguments`:r}}),9920:(function(e,t,n){var r=n(6656),i=n(3887),a=n(1236),o=n(3070);e.exports=function(e,t){for(var n=i(t),s=o.f,c=a.f,l=0;l<n.length;l++){var u=n[l];r(e,u)||s(e,u,c(t,u))}}}),8544:(function(e,t,n){e.exports=!n(7293)(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})}),4994:(function(e,t,n){var r=n(3383).IteratorPrototype,i=n(30),a=n(9114),o=n(8003),s=n(7497),c=function(){return this};e.exports=function(e,t,n){var l=t+` Iterator`;return e.prototype=i(r,{next:a(1,n)}),o(e,l,!1,!0),s[l]=c,e}}),8880:(function(e,t,n){var r=n(9781),i=n(3070),a=n(9114);e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}}),9114:(function(e){e.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}}),6135:(function(e,t,n){var r=n(7593),i=n(3070),a=n(9114);e.exports=function(e,t,n){var o=r(t);o in e?i.f(e,o,a(0,n)):e[o]=n}}),654:(function(e,t,n){var r=n(2109),i=n(4994),a=n(9518),o=n(7674),s=n(8003),c=n(8880),l=n(1320),u=n(5112),d=n(1913),f=n(7497),p=n(3383),m=p.IteratorPrototype,h=p.BUGGY_SAFARI_ITERATORS,g=u(`iterator`),_=`keys`,v=`values`,y=`entries`,b=function(){return this};e.exports=function(e,t,n,u,p,x,S){i(n,t,u);var C=function(e){if(e===p&&O)return O;if(!h&&e in E)return E[e];switch(e){case _:return function(){return new n(this,e)};case v:return function(){return new n(this,e)};case y:return function(){return new n(this,e)}}return function(){return new n(this)}},w=t+` Iterator`,T=!1,E=e.prototype,D=E[g]||E[`@@iterator`]||p&&E[p],O=!h&&D||C(p),k=t==`Array`&&E.entries||D,A,j,M;if(k&&(A=a(k.call(new e)),m!==Object.prototype&&A.next&&(!d&&a(A)!==m&&(o?o(A,m):typeof A[g]!=`function`&&c(A,g,b)),s(A,w,!0,!0),d&&(f[w]=b))),p==v&&D&&D.name!==v&&(T=!0,O=function(){return D.call(this)}),(!d||S)&&E[g]!==O&&c(E,g,O),f[t]=O,p)if(j={values:C(v),keys:x?O:C(_),entries:C(y)},S)for(M in j)(h||T||!(M in E))&&l(E,M,j[M]);else r({target:t,proto:!0,forced:h||T},j);return j}}),9781:(function(e,t,n){e.exports=!n(7293)(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),317:(function(e,t,n){var r=n(7854),i=n(111),a=r.document,o=i(a)&&i(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}}),8324:(function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}}),8113:(function(e,t,n){e.exports=n(5005)(`navigator`,`userAgent`)||``}),7392:(function(e,t,n){var r=n(7854),i=n(8113),a=r.process,o=a&&a.versions,s=o&&o.v8,c,l;s?(c=s.split(`.`),l=c[0]+c[1]):i&&(c=i.match(/Edge\/(\d+)/),(!c||c[1]>=74)&&(c=i.match(/Chrome\/(\d+)/),c&&(l=c[1]))),e.exports=l&&+l}),748:(function(e){e.exports=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`]}),2109:(function(e,t,n){var r=n(7854),i=n(1236).f,a=n(8880),o=n(1320),s=n(3505),c=n(9920),l=n(4705);e.exports=function(e,t){var n=e.target,u=e.global,d=e.stat,f,p=u?r:d?r[n]||s(n,{}):(r[n]||{}).prototype,m,h,g,_;if(p)for(m in t){if(g=t[m],e.noTargetGet?(_=i(p,m),h=_&&_.value):h=p[m],f=l(u?m:n+(d?`.`:`#`)+m,e.forced),!f&&h!==void 0){if(typeof g==typeof h)continue;c(g,h)}(e.sham||h&&h.sham)&&a(g,`sham`,!0),o(p,m,g,e)}}}),7293:(function(e){e.exports=function(e){try{return!!e()}catch{return!0}}}),7007:(function(e,t,n){n(4916);var r=n(1320),i=n(7293),a=n(5112),o=n(2261),s=n(8880),c=a(`species`),l=!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}),u=(function(){return`a`.replace(/./,`$0`)===`$0`})(),d=a(`replace`),f=(function(){return/./[d]?/./[d](`a`,`$0`)===``:!1})(),p=!i(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=`ab`.split(e);return n.length!==2||n[0]!==`a`||n[1]!==`b`});e.exports=function(e,t,n,d){var m=a(e),h=!i(function(){var t={};return t[m]=function(){return 7},``[e](t)!=7}),g=h&&!i(function(){var t=!1,n=/a/;return e===`split`&&(n={},n.constructor={},n.constructor[c]=function(){return n},n.flags=``,n[m]=/./[m]),n.exec=function(){return t=!0,null},n[m](``),!t});if(!h||!g||e===`replace`&&!(l&&u&&!f)||e===`split`&&!p){var _=/./[m],v=n(m,``[e],function(e,t,n,r,i){return t.exec===o?h&&!i?{done:!0,value:_.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}},{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:f}),y=v[0],b=v[1];r(String.prototype,e,y),r(RegExp.prototype,m,t==2?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}d&&s(RegExp.prototype[m],`sham`,!0)}}),9974:(function(e,t,n){var r=n(3099);e.exports=function(e,t,n){if(r(e),t===void 0)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}}),5005:(function(e,t,n){var r=n(857),i=n(7854),a=function(e){return typeof e==`function`?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e])||a(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}}),1246:(function(e,t,n){var r=n(648),i=n(7497),a=n(5112)(`iterator`);e.exports=function(e){if(e!=null)return e[a]||e[`@@iterator`]||i[r(e)]}}),8554:(function(e,t,n){var r=n(9670),i=n(1246);e.exports=function(e){var t=i(e);if(typeof t!=`function`)throw TypeError(String(e)+` is not iterable`);return r(t.call(e))}}),647:(function(e,t,n){var r=n(7908),i=Math.floor,a=``.replace,o=/\$([$&'`]|\d\d?|<[^>]*>)/g,s=/\$([$&'`]|\d\d?)/g;e.exports=function(e,t,n,c,l,u){var d=n+e.length,f=c.length,p=s;return l!==void 0&&(l=r(l),p=o),a.call(u,p,function(r,a){var o;switch(a.charAt(0)){case`$`:return`$`;case`&`:return e;case"`":return t.slice(0,n);case`'`:return t.slice(d);case`<`:o=l[a.slice(1,-1)];break;default:var s=+a;if(s===0)return r;if(s>f){var u=i(s/10);return u===0?r:u<=f?c[u-1]===void 0?a.charAt(1):c[u-1]+a.charAt(1):r}o=c[s-1]}return o===void 0?``:o})}}),7854:(function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r(typeof globalThis==`object`&&globalThis)||r(typeof window==`object`&&window)||r(typeof self==`object`&&self)||r(typeof n.g==`object`&&n.g)||(function(){return this})()||Function(`return this`)()}),6656:(function(e){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}}),3501:(function(e){e.exports={}}),490:(function(e,t,n){e.exports=n(5005)(`document`,`documentElement`)}),4664:(function(e,t,n){var r=n(9781),i=n(7293),a=n(317);e.exports=!r&&!i(function(){return Object.defineProperty(a(`div`),`a`,{get:function(){return 7}}).a!=7})}),1179:(function(e){var t=Math.abs,n=Math.pow,r=Math.floor,i=Math.log,a=Math.LN2;e.exports={pack:function(e,o,s){var c=Array(s),l=s*8-o-1,u=(1<<l)-1,d=u>>1,f=o===23?n(2,-24)-n(2,-77):0,p=e<0||e===0&&1/e<0?1:0,m=0,h,g,_;for(e=t(e),e!=e||e===1/0?(g=e==e?0:1,h=u):(h=r(i(e)/a),e*(_=n(2,-h))<1&&(h--,_*=2),h+d>=1?e+=f/_:e+=f*n(2,1-d),e*_>=2&&(h++,_/=2),h+d>=u?(g=0,h=u):h+d>=1?(g=(e*_-1)*n(2,o),h+=d):(g=e*n(2,d-1)*n(2,o),h=0));o>=8;c[m++]=g&255,g/=256,o-=8);for(h=h<<o|g,l+=o;l>0;c[m++]=h&255,h/=256,l-=8);return c[--m]|=p*128,c},unpack:function(e,t){var r=e.length,i=r*8-t-1,a=(1<<i)-1,o=a>>1,s=i-7,c=r-1,l=e[c--],u=l&127,d;for(l>>=7;s>0;u=u*256+e[c],c--,s-=8);for(d=u&(1<<-s)-1,u>>=-s,s+=t;s>0;d=d*256+e[c],c--,s-=8);if(u===0)u=1-o;else if(u===a)return d?NaN:l?-1/0:1/0;else d+=n(2,t),u-=o;return(l?-1:1)*d*n(2,u-t)}}}),8361:(function(e,t,n){var r=n(7293),i=n(4326),a=``.split;e.exports=r(function(){return!Object(`z`).propertyIsEnumerable(0)})?function(e){return i(e)==`String`?a.call(e,``):Object(e)}:Object}),9587:(function(e,t,n){var r=n(111),i=n(7674);e.exports=function(e,t,n){var a,o;return i&&typeof(a=t.constructor)==`function`&&a!==n&&r(o=a.prototype)&&o!==n.prototype&&i(e,o),e}}),2788:(function(e,t,n){var r=n(5465),i=Function.toString;typeof r.inspectSource!=`function`&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource}),9909:(function(e,t,n){var r=n(8536),i=n(7854),a=n(111),o=n(8880),s=n(6656),c=n(5465),l=n(6200),u=n(3501),d=i.WeakMap,f,p,m,h=function(e){return m(e)?p(e):f(e,{})},g=function(e){return function(t){var n;if(!a(t)||(n=p(t)).type!==e)throw TypeError(`Incompatible receiver, `+e+` required`);return n}};if(r){var _=c.state||=new d,v=_.get,y=_.has,b=_.set;f=function(e,t){return t.facade=e,b.call(_,e,t),t},p=function(e){return v.call(_,e)||{}},m=function(e){return y.call(_,e)}}else{var x=l(`state`);u[x]=!0,f=function(e,t){return t.facade=e,o(e,x,t),t},p=function(e){return s(e,x)?e[x]:{}},m=function(e){return s(e,x)}}e.exports={set:f,get:p,has:m,enforce:h,getterFor:g}}),7659:(function(e,t,n){var r=n(5112),i=n(7497),a=r(`iterator`),o=Array.prototype;e.exports=function(e){return e!==void 0&&(i.Array===e||o[a]===e)}}),3157:(function(e,t,n){var r=n(4326);e.exports=Array.isArray||function(e){return r(e)==`Array`}}),4705:(function(e,t,n){var r=n(7293),i=/#|\.prototype\./,a=function(e,t){var n=s[o(e)];return n==l?!0:n==c?!1:typeof t==`function`?r(t):!!t},o=a.normalize=function(e){return String(e).replace(i,`.`).toLowerCase()},s=a.data={},c=a.NATIVE=`N`,l=a.POLYFILL=`P`;e.exports=a}),111:(function(e){e.exports=function(e){return typeof e==`object`?e!==null:typeof e==`function`}}),1913:(function(e){e.exports=!1}),7850:(function(e,t,n){var r=n(111),i=n(4326),a=n(5112)(`match`);e.exports=function(e){var t;return r(e)&&((t=e[a])===void 0?i(e)==`RegExp`:!!t)}}),9212:(function(e,t,n){var r=n(9670);e.exports=function(e){var t=e.return;if(t!==void 0)return r(t.call(e)).value}}),3383:(function(e,t,n){var r=n(7293),i=n(9518),a=n(8880),o=n(6656),s=n(5112),c=n(1913),l=s(`iterator`),u=!1,d=function(){return this},f,p,m;[].keys&&(m=[].keys(),`next`in m?(p=i(i(m)),p!==Object.prototype&&(f=p)):u=!0);var h=f==null||r(function(){var e={};return f[l].call(e)!==e});h&&(f={}),(!c||h)&&!o(f,l)&&a(f,l,d),e.exports={IteratorPrototype:f,BUGGY_SAFARI_ITERATORS:u}}),7497:(function(e){e.exports={}}),133:(function(e,t,n){var r=n(7293);e.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})}),590:(function(e,t,n){var r=n(7293),i=n(5112),a=n(1913),o=i(`iterator`);e.exports=!r(function(){var e=new URL(`b?a=1&b=2&c=3`,`http://a`),t=e.searchParams,n=``;return e.pathname=`c%20d`,t.forEach(function(e,r){t.delete(`b`),n+=r+e}),a&&!e.toJSON||!t.sort||e.href!==`http://a/c%20d?a=1&c=3`||t.get(`c`)!==`3`||String(new URLSearchParams(`?a=1`))!==`a=1`||!t[o]||new URL(`https://a@b`).username!==`a`||new URLSearchParams(new URLSearchParams(`a=b`)).get(`a`)!==`b`||new URL(`http://тест`).host!==`xn--e1aybc`||new URL(`http://a#б`).hash!==`#%D0%B1`||n!==`a1c3`||new URL(`http://x`,void 0).host!==`x`})}),8536:(function(e,t,n){var r=n(7854),i=n(2788),a=r.WeakMap;e.exports=typeof a==`function`&&/native code/.test(i(a))}),1574:(function(e,t,n){var r=n(9781),i=n(7293),a=n(1956),o=n(5181),s=n(5296),c=n(7908),l=n(8361),u=Object.assign,d=Object.defineProperty;e.exports=!u||i(function(){if(r&&u({b:1},u(d({},`a`,{enumerable:!0,get:function(){d(this,`b`,{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),i=`abcdefghijklmnopqrst`;return e[n]=7,i.split(``).forEach(function(e){t[e]=e}),u({},e)[n]!=7||a(u({},t)).join(``)!=i})?function(e,t){for(var n=c(e),i=arguments.length,u=1,d=o.f,f=s.f;i>u;)for(var p=l(arguments[u++]),m=d?a(p).concat(d(p)):a(p),h=m.length,g=0,_;h>g;)_=m[g++],(!r||f.call(p,_))&&(n[_]=p[_]);return n}:u}),30:(function(e,t,n){var r=n(9670),i=n(6048),a=n(748),o=n(3501),s=n(490),c=n(317),l=n(6200),u=`>`,d=`<`,f=`prototype`,p=`script`,m=l(`IE_PROTO`),h=function(){},g=function(e){return d+p+u+e+d+`/`+p+u},_=function(e){e.write(g(``)),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){var e=c(`iframe`),t=`java`+p+`:`,n;return e.style.display=`none`,s.appendChild(e),e.src=String(t),n=e.contentWindow.document,n.open(),n.write(g(`document.F=Object`)),n.close(),n.F},y,b=function(){try{y=document.domain&&new ActiveXObject(`htmlfile`)}catch{}b=y?_(y):v();for(var e=a.length;e--;)delete b[f][a[e]];return b()};o[m]=!0,e.exports=Object.create||function(e,t){var n;return e===null?n=b():(h[f]=r(e),n=new h,h[f]=null,n[m]=e),t===void 0?n:i(n,t)}}),6048:(function(e,t,n){var r=n(9781),i=n(3070),a=n(9670),o=n(1956);e.exports=r?Object.defineProperties:function(e,t){a(e);for(var n=o(t),r=n.length,s=0,c;r>s;)i.f(e,c=n[s++],t[c]);return e}}),3070:(function(e,t,n){var r=n(9781),i=n(4664),a=n(9670),o=n(7593),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(a(e),t=o(t,!0),a(n),i)try{return s(e,t,n)}catch{}if(`get`in n||`set`in n)throw TypeError(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}}),1236:(function(e,t,n){var r=n(9781),i=n(5296),a=n(9114),o=n(5656),s=n(7593),c=n(6656),l=n(4664),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=o(e),t=s(t,!0),l)try{return u(e,t)}catch{}if(c(e,t))return a(!i.f.call(e,t),e[t])}}),8006:(function(e,t,n){var r=n(6324),i=n(748).concat(`length`,`prototype`);t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}}),5181:(function(e,t){t.f=Object.getOwnPropertySymbols}),9518:(function(e,t,n){var r=n(6656),i=n(7908),a=n(6200),o=n(8544),s=a(`IE_PROTO`),c=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:typeof e.constructor==`function`&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}}),6324:(function(e,t,n){var r=n(6656),i=n(5656),a=n(1318).indexOf,o=n(3501);e.exports=function(e,t){var n=i(e),s=0,c=[],l;for(l in n)!r(o,l)&&r(n,l)&&c.push(l);for(;t.length>s;)r(n,l=t[s++])&&(~a(c,l)||c.push(l));return c}}),1956:(function(e,t,n){var r=n(6324),i=n(748);e.exports=Object.keys||function(e){return r(e,i)}}),5296:(function(e,t){var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor;t.f=r&&!n.call({1:2},1)?function(e){var t=r(this,e);return!!t&&t.enumerable}:n}),7674:(function(e,t,n){var r=n(9670),i=n(6077);e.exports=Object.setPrototypeOf||(`__proto__`in{}?function(){var e=!1,t={},n;try{n=Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set,n.call(t,[]),e=t instanceof Array}catch{}return function(t,a){return r(t),i(a),e?n.call(t,a):t.__proto__=a,t}}():void 0)}),288:(function(e,t,n){var r=n(1694),i=n(648);e.exports=r?{}.toString:function(){return`[object `+i(this)+`]`}}),3887:(function(e,t,n){var r=n(5005),i=n(8006),a=n(5181),o=n(9670);e.exports=r(`Reflect`,`ownKeys`)||function(e){var t=i.f(o(e)),n=a.f;return n?t.concat(n(e)):t}}),857:(function(e,t,n){e.exports=n(7854)}),2248:(function(e,t,n){var r=n(1320);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}}),1320:(function(e,t,n){var r=n(7854),i=n(8880),a=n(6656),o=n(3505),s=n(2788),c=n(9909),l=c.get,u=c.enforce,d=String(String).split(`String`);(e.exports=function(e,t,n,s){var c=s?!!s.unsafe:!1,l=s?!!s.enumerable:!1,f=s?!!s.noTargetGet:!1,p;if(typeof n==`function`&&(typeof t==`string`&&!a(n,`name`)&&i(n,`name`,t),p=u(n),p.source||=d.join(typeof t==`string`?t:``)),e===r){l?e[t]=n:o(t,n);return}else c?!f&&e[t]&&(l=!0):delete e[t];l?e[t]=n:i(e,t,n)})(Function.prototype,`toString`,function(){return typeof this==`function`&&l(this).source||s(this)})}),7651:(function(e,t,n){var r=n(4326),i=n(2261);e.exports=function(e,t){var n=e.exec;if(typeof n==`function`){var a=n.call(e,t);if(typeof a!=`object`)throw TypeError(`RegExp exec method returned something other than an Object or null`);return a}if(r(e)!==`RegExp`)throw TypeError(`RegExp#exec called on incompatible receiver`);return i.call(e,t)}}),2261:(function(e,t,n){var r=n(7066),i=n(2999),a=RegExp.prototype.exec,o=String.prototype.replace,s=a,c=(function(){var e=/a/,t=/b*/g;return a.call(e,`a`),a.call(t,`a`),e.lastIndex!==0||t.lastIndex!==0})(),l=i.UNSUPPORTED_Y||i.BROKEN_CARET,u=/()??/.exec(``)[1]!==void 0;(c||u||l)&&(s=function(e){var t=this,n,i,s,d,f=l&&t.sticky,p=r.call(t),m=t.source,h=0,g=e;return f&&(p=p.replace(`y`,``),p.indexOf(`g`)===-1&&(p+=`g`),g=String(e).slice(t.lastIndex),t.lastIndex>0&&(!t.multiline||t.multiline&&e[t.lastIndex-1]!==`
|
|
6
|
+
`&&r!==`\f`&&r!==`\r`)break}return t},g=function(e,t,n){var r=e.length;r<4&&(e+=r===2?`AA`:`A`);var i=(t[m(e,0)]<<18)+(t[m(e,1)]<<12)+(t[m(e,2)]<<6)+t[m(e,3)],a=[i>>16&255,i>>8&255,i&255];if(r===2){if(n&&a[1]!==0)throw new f(`Extra bits`);return[a[0]]}if(r===3){if(n&&a[2]!==0)throw new f(`Extra bits`);return[a[0],a[1]]}return a},_=function(e,t,n){for(var r=t.length,i=0;i<r;i++)e[n+i]=t[i];return n+r};t.exports=function(e,t,n,r){a(e),i(t);var s=c(t)===`base64`?u:d,v=t?t.lastChunkHandling:void 0;if(v===void 0&&(v=`loose`),v!==`loose`&&v!==`strict`&&v!==`stop-before-partial`)throw new p("Incorrect `lastChunkHandling` option");n&&l(n.buffer);var y=e.length,b=n||[],x=0,S=0,C=``,w=0;if(r)for(;;){if(w=h(e,w),w===y){if(C.length>0){if(v===`stop-before-partial`)break;if(v===`loose`){if(C.length===1)throw new f(`Malformed padding: exactly one additional character`);x=_(b,g(C,s,!1),x)}else throw new f(`Missing padding`)}S=y;break}var T=m(e,w);if(++w,T===`=`){if(C.length<2)throw new f(`Padding is too early`);if(w=h(e,w),C.length===2){if(w===y){if(v===`stop-before-partial`)break;throw new f(`Malformed padding: only one =`)}m(e,w)===`=`&&(++w,w=h(e,w))}if(w<y)throw new f(`Unexpected character after padding`);x=_(b,g(C,s,v===`strict`),x),S=y;break}if(!o(s,T))throw new f(`Unexpected character`);var E=r-x;if(E===1&&C.length===2||E===2&&C.length===3||(C+=T,C.length===4&&(x=_(b,g(C,s,!1),x),C=``,S=w,x===r)))break}return{bytes:b,read:S,written:x}}})),Op=v((()=>{var e=q(),t=V(),n=Lo(),r=Dp(),i=t.Uint8Array,a=!i||!i.fromBase64||!function(){try{i.fromBase64(`a`);return}catch{}try{i.fromBase64(``,null)}catch{return!0}}();i&&e({target:`Uint8Array`,stat:!0,forced:a},{fromBase64:function(e){return n(i,r(e,arguments.length>1?arguments[1]:void 0,null,9007199254740991).bytes)}})})),kp=v(((e,t)=>{var n=V(),r=G(),i=n.Uint8Array,a=n.SyntaxError,o=n.parseInt,s=Math.min,c=/[^\da-f]/i,l=r(c.exec),u=r(``.slice);t.exports=function(e,t){var n=e.length;if(n%2!=0)throw new a(`String should be an even number of characters`);for(var r=t?s(t.length,n/2):n/2,d=t||new i(r),f=0,p=0;p<r;){var m=u(e,f,f+=2);if(l(c,m))throw new a(`String should only contain hex characters`);d[p++]=o(m,16)}return{bytes:d,read:f}}})),Ap=v((()=>{var e=q(),t=V(),n=Qu(),r=kp();t.Uint8Array&&e({target:`Uint8Array`,stat:!0},{fromHex:function(e){return r(n(e)).bytes}})})),jp=v(((e,t)=>{var n=li(),r=TypeError;t.exports=function(e){if(n(e)===`Uint8Array`)return e;throw new r(`Argument is not an Uint8Array`)}})),Mp=v((()=>{var e=q(),t=V(),n=Dp(),r=jp(),i=t.Uint8Array,a=!i||!i.prototype.setFromBase64||!function(){var e=new i([255,255,255,255,255]);try{e.setFromBase64(``,null);return}catch{}try{e.setFromBase64(`a`);return}catch{}try{e.setFromBase64(`MjYyZg===`)}catch{return e[0]===50&&e[1]===54&&e[2]===50&&e[3]===255&&e[4]===255}}();i&&e({target:`Uint8Array`,proto:!0,forced:a},{setFromBase64:function(e){r(this);var t=n(e,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:t.read,written:t.written}}})})),Np=v((()=>{var e=q(),t=V(),n=Qu(),r=jp(),i=hs(),a=kp();t.Uint8Array&&e({target:`Uint8Array`,proto:!0},{setFromHex:function(e){r(this),n(e),i(this.buffer);var t=a(e,this).read;return{read:t,written:t/2}}})})),Pp=v((()=>{var e=q(),t=V(),n=G(),r=wp(),i=jp(),a=hs(),o=Tp(),s=Ep(),c=o.i2c,l=o.i2cUrl,u=n(``.charAt),d=t.Uint8Array,f=!d||!d.prototype.toBase64||!function(){try{new d().toBase64(null)}catch{return!0}}();d&&e({target:`Uint8Array`,proto:!0,forced:f},{toBase64:function(){var e=i(this),t=arguments.length?r(arguments[0]):void 0,n=s(t)===`base64`?c:l,o=!!t&&!!t.omitPadding;a(this.buffer);for(var d=``,f=0,p=e.length,m,h=function(e){return u(n,m>>6*e&63)};f+2<p;f+=3)m=(e[f]<<16)+(e[f+1]<<8)+e[f+2],d+=h(3)+h(2)+h(1)+h(0);return f+2===p?(m=(e[f]<<16)+(e[f+1]<<8),d+=h(3)+h(2)+h(1)+(o?``:`=`)):f+1===p&&(m=e[f]<<16,d+=h(3)+h(2)+(o?``:`==`)),d}})})),Fp=v((()=>{var e=q(),t=V(),n=G(),r=jp(),i=hs(),a=n(1.1.toString),o=t.Uint8Array,s=!o||!o.prototype.toHex||!(function(){try{return new o([255,255,255,255,255,255,255,255]).toHex()===`ffffffffffffffff`}catch{return!1}})();o&&e({target:`Uint8Array`,proto:!0,forced:s},{toHex:function(){r(this),i(this.buffer);for(var e=``,t=0,n=this.length;t<n;t++){var o=a(this[t],16);e+=o.length===1?`0`+o:o}return e}})})),Ip=v((()=>{var e=q(),t=G(),n=ui(),r=String.fromCharCode,i=t(``.charAt),a=t(/./.exec),o=t(``.slice),s=/^[\da-f]{2}$/i,c=/^[\da-f]{4}$/i;e({global:!0},{unescape:function(e){for(var t=n(e),l=``,u=t.length,d=0,f,p;d<u;){if(f=i(t,d++),f===`%`){if(i(t,d)===`u`){if(p=o(t,d+1,d+5),a(c,p)){l+=r(parseInt(p,16)),d+=5;continue}}else if(p=o(t,d,d+2),a(s,p)){l+=r(parseInt(p,16)),d+=2;continue}}l+=f}return l}})})),Lp=v(((e,t)=>{var n=G(),r=qo(),i=mc().getWeakData,a=Jo(),o=K(),s=lr(),c=pr(),l=wa(),u=ki(),d=Ar(),f=Kr(),p=f.set,m=f.getterFor,h=u.find,g=u.findIndex,_=n([].splice),v=0,y=function(e){return e.frozen||=new b},b=function(){this.entries=[]},x=function(e,t){return h(e.entries,function(e){return e[0]===t})};b.prototype={get:function(e){var t=x(this,e);if(t)return t[1]},has:function(e){return!!x(this,e)},set:function(e,t){var n=x(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=g(this.entries,function(t){return t[0]===e});return~t&&_(this.entries,t,1),!!~t}},t.exports={getConstructor:function(e,t,n,u){var f=e(function(e,r){a(e,h),p(e,{type:t,id:v++,frozen:null}),s(r)||l(r,e[u],{that:e,AS_ENTRIES:n})}),h=f.prototype,g=m(t),_=function(e,t,n){var r=g(e),a=i(o(t),!0);return a===!0?y(r).set(t,n):a[r.id]=n,e};return r(h,{delete:function(e){var t=g(this);if(!c(e))return!1;var n=i(e);return n===!0?y(t).delete(e):n&&d(n,t.id)&&delete n[t.id]},has:function(e){var t=g(this);if(!c(e))return!1;var n=i(e);return n===!0?y(t).has(e):n&&d(n,t.id)}}),r(h,n?{get:function(e){var t=g(this);if(c(e)){var n=i(e);if(n===!0)return y(t).get(e);if(n)return n[t.id]}},set:function(e,t){return _(this,e,t)}}:{add:function(e){return _(this,e,!0)}}),f}}})),Rp=v((()=>{var e=pc(),t=V(),n=G(),r=qo(),i=mc(),a=hc(),o=Lp(),s=pr(),c=Kr().enforce,l=H(),u=Ur(),d=Object,f=Array.isArray,p=d.isExtensible,m=d.isFrozen,h=d.isSealed,g=d.freeze,_=d.seal,v=!t.ActiveXObject&&`ActiveXObject`in t,y,b=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},x=a(`WeakMap`,b,o),S=x.prototype,C=n(S.set),w=function(){return e&&l(function(){var e=g([]);return C(new x,e,1),!m(e)})};if(u)if(v){y=o.getConstructor(b,`WeakMap`,!0),i.enable();var T=n(S.delete),E=n(S.has),D=n(S.get);r(S,{delete:function(e){if(s(e)&&!p(e)){var t=c(this);return t.frozen||=new y,T(this,e)||t.frozen.delete(e)}return T(this,e)},has:function(e){if(s(e)&&!p(e)){var t=c(this);return t.frozen||=new y,E(this,e)||t.frozen.has(e)}return E(this,e)},get:function(e){if(s(e)&&!p(e)){var t=c(this);return t.frozen||=new y,E(this,e)?D(this,e):t.frozen.get(e)}return D(this,e)},set:function(e,t){if(s(e)&&!p(e)){var n=c(this);n.frozen||=new y,E(this,e)?C(this,e,t):n.frozen.set(e,t)}else C(this,e,t);return this}})}else w()&&r(S,{set:function(e,t){var n;return f(e)&&(m(e)?n=g:h(e)&&(n=_)),C(this,e,t),n&&n(e),this}})})),zp=v((()=>{Rp()})),Bp=v((()=>{hc()(`WeakSet`,function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Lp())})),Vp=v((()=>{Bp()})),Hp=v((()=>{var e=q(),t=V(),n=mr(),r=G(),i=W(),a=H(),o=ui(),s=ql(),c=Tp().c2i,l=/[^\d+/a-z]/i,u=/[\t\n\f\r ]+/g,d=/[=]{1,2}$/,f=n(`atob`),p=String.fromCharCode,m=r(``.charAt),h=r(``.replace),g=r(l.exec),_=!!f&&!a(function(){return f(`aGk=`)!==`hi`}),v=_&&a(function(){return f(` `)!==``}),y=_&&!a(function(){f(`a`)}),b=_&&!a(function(){f()}),x=_&&f.length!==1;e({global:!0,bind:!0,enumerable:!0,forced:!_||v||y||b||x},{atob:function(e){if(s(arguments.length,1),_&&!v&&!y)return i(f,t,e);var r=h(o(e),u,``),a=``,b=0,x=0,S,C,w;if(r.length%4==0&&(r=h(r,d,``)),S=r.length,S%4==1||g(l,r))throw new(n(`DOMException`))(`The string is not correctly encoded`,`InvalidCharacterError`);for(;b<S;)C=m(r,b++),w=x%4?w*64+c[C]:c[C],x++%4&&(a+=p(255&w>>(-2*x&6)));return a}})})),Up=v((()=>{var e=q(),t=V(),n=mr(),r=G(),i=W(),a=H(),o=ui(),s=ql(),c=Tp().i2c,l=n(`btoa`),u=r(``.charAt),d=r(``.charCodeAt),f=!!l&&!a(function(){return l(`hi`)!==`aGk=`}),p=f&&!a(function(){l()}),m=f&&a(function(){return l(null)!==`bnVsbA==`}),h=f&&l.length!==1;e({global:!0,bind:!0,enumerable:!0,forced:!f||p||m||h},{btoa:function(e){if(s(arguments.length,1),f)return i(l,t,o(e));for(var r=o(e),a=``,p=0,m=c,h,g;u(r,p)||(m=`=`,p%1);){if(g=d(r,p+=3/4),g>255)throw new(n(`DOMException`))(`The string contains characters outside of the Latin1 range`,`InvalidCharacterError`);h=h<<8|g,a+=u(m,63&h>>8-p%1*8)}return a}})})),Wp=v(((e,t)=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}})),Gp=v(((e,t)=>{var n=Fr()(`span`).classList,r=n&&n.constructor&&n.constructor.prototype;t.exports=r===Object.prototype?void 0:r})),Kp=v((()=>{var e=V(),t=Wp(),n=Gp(),r=Za(),i=Br(),a=function(e){if(e&&e.forEach!==r)try{i(e,`forEach`,r)}catch{e.forEach=r}};for(var o in t)t[o]&&a(e[o]&&e[o].prototype);a(n)})),qp=v((()=>{var e=V(),t=Wp(),n=Gp(),r=uo(),i=Br(),a=Si(),o=Mr()(`iterator`),s=r.values,c=function(e,n){if(e){if(e[o]!==s)try{i(e,o,s)}catch{e[o]=s}if(a(e,n,!0),t[n]){for(var c in r)if(e[c]!==r[c])try{i(e,c,r[c])}catch{e[c]=r[c]}}}};for(var l in t)c(e[l]&&e[l].prototype,l);c(n,`DOMTokenList`)})),Jp=v(((e,t)=>{t.exports={IndexSizeError:{s:`INDEX_SIZE_ERR`,c:1,m:1},DOMStringSizeError:{s:`DOMSTRING_SIZE_ERR`,c:2,m:0},HierarchyRequestError:{s:`HIERARCHY_REQUEST_ERR`,c:3,m:1},WrongDocumentError:{s:`WRONG_DOCUMENT_ERR`,c:4,m:1},InvalidCharacterError:{s:`INVALID_CHARACTER_ERR`,c:5,m:1},NoDataAllowedError:{s:`NO_DATA_ALLOWED_ERR`,c:6,m:0},NoModificationAllowedError:{s:`NO_MODIFICATION_ALLOWED_ERR`,c:7,m:1},NotFoundError:{s:`NOT_FOUND_ERR`,c:8,m:1},NotSupportedError:{s:`NOT_SUPPORTED_ERR`,c:9,m:1},InUseAttributeError:{s:`INUSE_ATTRIBUTE_ERR`,c:10,m:1},InvalidStateError:{s:`INVALID_STATE_ERR`,c:11,m:1},SyntaxError:{s:`SYNTAX_ERR`,c:12,m:1},InvalidModificationError:{s:`INVALID_MODIFICATION_ERR`,c:13,m:1},NamespaceError:{s:`NAMESPACE_ERR`,c:14,m:1},InvalidAccessError:{s:`INVALID_ACCESS_ERR`,c:15,m:1},ValidationError:{s:`VALIDATION_ERR`,c:16,m:0},TypeMismatchError:{s:`TYPE_MISMATCH_ERR`,c:17,m:1},SecurityError:{s:`SECURITY_ERR`,c:18,m:1},NetworkError:{s:`NETWORK_ERR`,c:19,m:1},AbortError:{s:`ABORT_ERR`,c:20,m:1},URLMismatchError:{s:`URL_MISMATCH_ERR`,c:21,m:1},QuotaExceededError:{s:`QUOTA_EXCEEDED_ERR`,c:22,m:1},TimeoutError:{s:`TIMEOUT_ERR`,c:23,m:1},InvalidNodeTypeError:{s:`INVALID_NODE_TYPE_ERR`,c:24,m:1},DataCloneError:{s:`DATA_CLONE_ERR`,c:25,m:1}}})),Yp=v((()=>{var e=q(),t=mr(),n=gs(),r=H(),i=mi(),a=or(),o=zr().f,s=Jr(),c=_i(),l=Ar(),u=Jo(),d=K(),f=ha(),p=sa(),m=Jp(),h=la(),g=Kr(),_=U(),v=Tr(),y=`DOMException`,b=`DATA_CLONE_ERR`,x=t(`Error`),S=t(y)||(function(){try{new((t(`MessageChannel`))||(n(`worker_threads`)).MessageChannel)().port1.postMessage(new WeakMap)}catch(e){if(e.name===b&&e.code===25)return e.constructor}})(),C=S&&S.prototype,w=x.prototype,T=g.set,E=g.getterFor(y),D=`stack`in new x(y),O=function(e){return l(m,e)&&m[e].m?m[e].c:0},k=function(){u(this,A);var e=arguments.length,t=p(e<1?void 0:arguments[0]),n=p(e<2?void 0:arguments[1],`Error`),r=O(n);if(T(this,{type:y,name:n,message:t,code:r}),_||(this.name=n,this.message=t,this.code=r),D){var i=new x(t);i.name=y,o(this,`stack`,a(1,h(i.stack,1)))}},A=k.prototype=i(w),j=function(e){return{enumerable:!0,configurable:!0,get:e}},M=function(e){return j(function(){return E(this)[e]})};_&&(c(A,`code`,M(`code`)),c(A,`message`,M(`message`)),c(A,`name`,M(`name`))),o(A,`constructor`,a(1,k));var N=r(function(){return!(new S instanceof x)}),P=N||r(function(){return w.toString!==f||String(new S(1,2))!==`2: 1`}),F=N||r(function(){return new S(1,`DataCloneError`).code!==25}),I=N||S[b]!==25||C[b]!==25,L=v?P||F||I:N;e({global:!0,constructor:!0,forced:L},{DOMException:L?k:S});var ee=t(y),te=ee.prototype;for(var R in P&&(v||S===ee)&&s(te,`toString`,f),F&&_&&S===ee&&c(te,`code`,j(function(){return O(d(this).name)})),m)if(l(m,R)){var ne=m[R],z=ne.s,re=a(6,ne.c);l(ee,z)||o(ee,z,re),l(te,z)||o(te,z,re)}})),Xp=v((()=>{var e=q(),t=V(),n=mr(),r=or(),i=zr().f,a=Ar(),o=Jo(),s=oa(),c=sa(),l=Jp(),u=la(),d=U(),f=Tr(),p=`DOMException`,m=n(`Error`),h=n(p),g=function(){o(this,_);var e=arguments.length,t=c(e<1?void 0:arguments[0]),n=new h(t,c(e<2?void 0:arguments[1],`Error`)),a=new m(t);return a.name=p,i(n,`stack`,r(1,u(a.stack,1))),s(n,this,g),n},_=g.prototype=h.prototype,v=`stack`in new m(p),y=`stack`in new h(1,2),b=h&&d&&Object.getOwnPropertyDescriptor(t,p),x=!!b&&!(b.writable&&b.configurable),S=v&&!x&&!y;e({global:!0,constructor:!0,forced:f||S},{DOMException:S?g:h});var C=n(p),w=C.prototype;if(w.constructor!==C){for(var T in f||i(w,`constructor`,r(1,C)),l)if(a(l,T)){var E=l[T],D=E.s;a(C,D)||i(C,D,r(6,E.c))}}})),Zp=v((()=>{var e=mr(),t=Si(),n=`DOMException`;t(e(n),n)})),Qp=v((()=>{var e=q(),t=V(),n=Yl().clear;e({global:!0,bind:!0,enumerable:!0,forced:t.clearImmediate!==n},{clearImmediate:n})})),$p=v(((e,t)=>{var n=V(),r=Pi(),i=fr(),a=bo(),o=gr(),s=hi(),c=ql(),l=n.Function,u=/MSIE .\./.test(o)||a===`BUN`&&(function(){var e=n.Bun.version.split(`.`);return e.length<3||e[0]===`0`&&(e[1]<3||e[1]===`3`&&e[2]===`0`)})();t.exports=function(e,t){var n=t?2:1;return u?function(a,o){var u=c(arguments.length,1)>n,d=i(a)?a:l(a),f=u?s(arguments,n):[],p=u?function(){r(d,this,f)}:d;return t?e(p,o):e(p)}:e}})),em=v((()=>{var e=q(),t=V(),n=Yl().set,r=$p(),i=t.setImmediate?r(n,!1):n;e({global:!0,bind:!0,enumerable:!0,forced:t.setImmediate!==i},{setImmediate:i})})),tm=v((()=>{Qp(),em()})),nm=v((()=>{var e=q(),t=V(),n=eu(),r=Sr(),i=ql(),a=H(),o=U();e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:a(function(){return o&&Object.getOwnPropertyDescriptor(t,`queueMicrotask`).value.length!==1})},{queueMicrotask:function(e){i(arguments.length,1),n(r(e))}})})),rm=v((()=>{var e=q(),t=V(),n=_i(),r=U(),i=TypeError,a=Object.defineProperty,o=t.self!==t;try{if(r){var s=Object.getOwnPropertyDescriptor(t,`self`);(o||!s||!s.get||!s.enumerable)&&n(t,`self`,{get:function(){return t},set:function(e){if(this!==t)throw new i(`Illegal invocation`);a(t,`self`,{value:e,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else e({global:!0,simple:!0,forced:o},{self:t})}catch{}})),im=v((()=>{var e=Tr(),t=q(),n=V(),r=mr(),i=G(),a=H(),o=jr(),s=fr(),c=Ei(),l=lr(),u=pr(),d=br(),f=wa(),p=K(),m=li(),h=Ar(),g=Ma(),_=Br(),v=$r(),y=ql(),b=qu(),x=yc(),S=ld(),C=fd(),w=vs(),T=ua(),E=_s(),D=n.Object,O=n.Array,k=n.Date,A=n.Error,j=n.TypeError,M=n.PerformanceMark,N=r(`DOMException`),P=x.Map,F=x.has,I=x.get,L=x.set,ee=S.Set,te=S.add,R=S.has,ne=r(`Object`,`keys`),z=i([].push),re=i((!0).valueOf),ie=i(1.1.valueOf),ae=i(``.valueOf),oe=i(k.prototype.getTime),se=o(`structuredClone`),ce=`DataCloneError`,le=`Transferring`,ue=function(e){return!a(function(){var t=new n.Set([7]),r=e(t),i=e(D(7));return r===t||!r.has(7)||!u(i)||+i!=7})&&e},de=function(e,t){return!a(function(){var n=new t,r=e({a:n,b:n});return!(r&&r.a===r.b&&r.a instanceof t&&r.a.stack===n.stack)})},fe=function(e){return!a(function(){var t=e(new n.AggregateError([1],se,{cause:3}));return t.name!==`AggregateError`||t.errors[0]!==1||t.message!==se||t.cause!==3})},pe=n.structuredClone,me=e||!de(pe,A)||!de(pe,N)||!fe(pe),he=!pe&&ue(function(e){return new M(se,{detail:e}).detail}),ge=ue(pe)||he,_e=function(e){throw new N(`Uncloneable type: `+e,ce)},ve=function(e,t){throw new N((t||`Cloning`)+` of `+e+` cannot be properly polyfilled in this engine`,ce)},ye=function(e,t){return ge||ve(t),ge(e)},be=function(){var e;try{e=new n.DataTransfer}catch{try{e=new n.ClipboardEvent(``).clipboardData}catch{}}return e&&e.items&&e.files?e:null},xe=function(e,t,r){if(F(t,e))return I(t,e);var i=r||m(e),a,o,c,l,u,d;if(i===`SharedArrayBuffer`)a=ge?ge(e):e;else{var f=n.DataView;!f&&!s(e.slice)&&ve(`ArrayBuffer`);try{if(s(e.slice)&&!e.resizable)a=e.slice(0);else for(o=e.byteLength,c=(`maxByteLength`in e)?{maxByteLength:e.maxByteLength}:void 0,a=new ArrayBuffer(o,c),l=new f(e),u=new f(a),d=0;d<o;d++)u.setUint8(d,l.getUint8(d))}catch{throw new N(`ArrayBuffer is detached`,ce)}}return L(t,e,a),a},Se=function(e,t,r,i,a){var o=n[t];return u(o)||ve(t),new o(xe(e.buffer,a),r,i)},Ce=function(e,t){if(d(e)&&_e(`Symbol`),!u(e))return e;if(t){if(F(t,e))return I(t,e)}else t=new P;var i=m(e),a,o,c,l,f,p,y,x;switch(i){case`Array`:c=O(v(e));break;case`Object`:c={};break;case`Map`:c=new P;break;case`Set`:c=new ee;break;case`RegExp`:c=new RegExp(e.source,b(e));break;case`Error`:switch(o=e.name,o){case`AggregateError`:c=new(r(o))([]);break;case`EvalError`:case`RangeError`:case`ReferenceError`:case`SuppressedError`:case`SyntaxError`:case`TypeError`:case`URIError`:c=new(r(o));break;case`CompileError`:case`LinkError`:case`RuntimeError`:c=new(r(`WebAssembly`,o));break;default:c=new A}break;case`DOMException`:c=new N(e.message,e.name);break;case`ArrayBuffer`:case`SharedArrayBuffer`:c=xe(e,t,i);break;case`DataView`:case`Int8Array`:case`Uint8Array`:case`Uint8ClampedArray`:case`Int16Array`:case`Uint16Array`:case`Int32Array`:case`Uint32Array`:case`Float16Array`:case`Float32Array`:case`Float64Array`:case`BigInt64Array`:case`BigUint64Array`:p=i===`DataView`?e.byteLength:e.length,c=Se(e,i,e.byteOffset,p,t);break;case`DOMQuad`:try{c=new DOMQuad(Ce(e.p1,t),Ce(e.p2,t),Ce(e.p3,t),Ce(e.p4,t))}catch{c=ye(e,i)}break;case`File`:if(ge)try{c=ge(e),m(c)!==i&&(c=void 0)}catch{}if(!c)try{c=new File([e],e.name,e)}catch{}c||ve(i);break;case`FileList`:if(l=be(),l){for(f=0,p=v(e);f<p;f++)l.items.add(Ce(e[f],t));c=l.files}else c=ye(e,i);break;case`ImageData`:try{c=new ImageData(Ce(e.data,t),e.width,e.height,{colorSpace:e.colorSpace})}catch{c=ye(e,i)}break;default:if(ge)c=ge(e);else switch(i){case`BigInt`:c=D(e.valueOf());break;case`Boolean`:c=D(re(e));break;case`Number`:c=D(ie(e));break;case`String`:c=D(ae(e));break;case`Date`:c=new k(oe(e));break;case`Blob`:try{c=e.slice(0,e.size,e.type)}catch{ve(i)}break;case`DOMPoint`:case`DOMPointReadOnly`:a=n[i];try{c=a.fromPoint?a.fromPoint(e):new a(e.x,e.y,e.z,e.w)}catch{ve(i)}break;case`DOMRect`:case`DOMRectReadOnly`:a=n[i];try{c=a.fromRect?a.fromRect(e):new a(e.x,e.y,e.width,e.height)}catch{ve(i)}break;case`DOMMatrix`:case`DOMMatrixReadOnly`:a=n[i];try{c=a.fromMatrix?a.fromMatrix(e):new a(e)}catch{ve(i)}break;case`AudioData`:case`VideoFrame`:s(e.clone)||ve(i);try{c=e.clone()}catch{_e(i)}break;case`CropTarget`:case`CryptoKey`:case`FileSystemDirectoryHandle`:case`FileSystemFileHandle`:case`FileSystemHandle`:case`GPUCompilationInfo`:case`GPUCompilationMessage`:case`ImageBitmap`:case`RTCCertificate`:case`WebAssembly.Module`:ve(i);default:_e(i)}}switch(L(t,e,c),i){case`Array`:case`Object`:for(y=ne(e),f=0,p=v(y);f<p;f++)x=y[f],g(c,x,Ce(e[x],t));break;case`Map`:e.forEach(function(e,n){L(c,Ce(n,t),Ce(e,t))});break;case`Set`:e.forEach(function(e){te(c,Ce(e,t))});break;case`Error`:_(c,`message`,Ce(e.message,t)),h(e,`cause`)&&_(c,`cause`,Ce(e.cause,t)),o===`AggregateError`?c.errors=Ce(e.errors,t):o===`SuppressedError`&&(c.error=Ce(e.error,t),c.suppressed=Ce(e.suppressed,t));case`DOMException`:T&&_(c,`stack`,Ce(e.stack,t))}return c},we=function(e,t){if(!u(e))throw new j(`Transfer option cannot be converted to a sequence`);var r=[];f(e,function(e){z(r,p(e))});for(var i=0,a=v(r),o=new ee,l,d,h,g,_,y;i<a;){if(l=r[i++],d=m(l),d===`ArrayBuffer`?R(o,l):F(t,l))throw new N(`Duplicate transferable`,ce);if(d===`ArrayBuffer`){te(o,l);continue}if(E)g=pe(l,{transfer:[l]});else switch(d){case`ImageBitmap`:h=n.OffscreenCanvas,c(h)||ve(d,le);try{_=new h(l.width,l.height),y=_.getContext(`bitmaprenderer`),y.transferFromImageBitmap(l),g=_.transferToImageBitmap()}catch{}break;case`AudioData`:case`VideoFrame`:(!s(l.clone)||!s(l.close))&&ve(d,le);try{g=l.clone(),l.close()}catch{}break;case`MediaSourceHandle`:case`MessagePort`:case`MIDIAccess`:case`OffscreenCanvas`:case`ReadableStream`:case`RTCDataChannel`:case`TransformStream`:case`WebTransportReceiveStream`:case`WebTransportSendStream`:case`WritableStream`:ve(d,le)}if(g===void 0)throw new N(`This object cannot be transferred: `+d,ce);L(t,l,g)}return o},Te=function(e){C(e,function(e){E?ge(e,{transfer:[e]}):s(e.transfer)?e.transfer():w?w(e):ve(`ArrayBuffer`,le)})};t({global:!0,enumerable:!0,sham:!E,forced:me},{structuredClone:function(e){var t=y(arguments.length,1)>1&&!l(arguments[1])?p(arguments[1]):void 0,n=t?t.transfer:void 0,r,i;n!==void 0&&(r=new P,i=we(n,r));var a=Ce(e,r);return i&&Te(i),a}})})),am=v((()=>{var e=q(),t=V(),n=$p()(t.setInterval,!0);e({global:!0,bind:!0,forced:t.setInterval!==n},{setInterval:n})})),om=v((()=>{var e=q(),t=V(),n=$p()(t.setTimeout,!0);e({global:!0,bind:!0,forced:t.setTimeout!==n},{setTimeout:n})})),sm=v((()=>{am(),om()})),cm=v(((e,t)=>{var n=H(),r=Mr(),i=U(),a=Tr(),o=r(`iterator`);t.exports=!n(function(){var e=new URL(`b?a=1&b=2&c=3`,`https://a`),t=e.searchParams,n=new URLSearchParams(`a=1&a=2&b=3`),r=``;return e.pathname=`c%20d`,t.forEach(function(e,n){t.delete(`b`),r+=n+e}),n.delete(`a`,2),n.delete(`b`,void 0),a&&(!e.toJSON||!n.has(`a`,1)||n.has(`a`,2)||!n.has(`a`,void 0)||n.has(`b`))||!t.size&&(a||!i)||!t.sort||e.href!==`https://a/c%20d?a=1&c=3`||t.get(`c`)!==`3`||String(new URLSearchParams(`?a=1`))!==`a=1`||!t[o]||new URL(`https://a@b`).username!==`a`||new URLSearchParams(new URLSearchParams(`a=b`)).get(`a`)!==`b`||new URL(`https://тест`).host!==`xn--e1aybc`||new URL(`https://a#б`).hash!==`#%D0%B1`||r!==`a1c3`||new URL(`https://x`,void 0).host!==`x`})})),lm=v(((e,t)=>{var n=G(),r=2147483647,i=36,a=1,o=26,s=38,c=700,l=72,u=128,d=`-`,f=/[^\0-\u007E]/,p=/[.\u3002\uFF0E\uFF61]/g,m=`Overflow: input needs wider integers to process`,h=i-a,g=RangeError,_=n(p.exec),v=Math.floor,y=String.fromCharCode,b=n(``.charCodeAt),x=n([].join),S=n([].push),C=n(``.replace),w=n(``.split),T=n(``.toLowerCase),E=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=b(e,n++);if(i>=55296&&i<=56319&&n<r){var a=b(e,n++);(a&64512)==56320?S(t,((i&1023)<<10)+(a&1023)+65536):(S(t,i),n--)}else S(t,i)}return t},D=function(e){return e+22+75*(e<26)},O=function(e,t,n){var r=0;for(e=n?v(e/c):e>>1,e+=v(e/t);e>h*o>>1;)e=v(e/h),r+=i;return v(r+(h+1)*e/(e+s))},k=function(e){var t=[];e=E(e);var n=e.length,s=u,c=0,f=l,p,h;for(p=0;p<e.length;p++)h=e[p],h<128&&S(t,y(h));var _=t.length,b=_;for(_&&S(t,d);b<n;){var C=r;for(p=0;p<e.length;p++)h=e[p],h>=s&&h<C&&(C=h);var w=b+1;if(C-s>v((r-c)/w))throw new g(m);for(c+=(C-s)*w,s=C,p=0;p<e.length;p++){if(h=e[p],h<s&&++c>r)throw new g(m);if(h===s){for(var T=c,k=i;;){var A=k<=f?a:k>=f+o?o:k-f;if(T<A)break;var j=T-A,M=i-A;S(t,y(D(A+j%M))),T=v(j/M),k+=i}S(t,y(D(T))),f=O(c,w,b===_),c=0,b++}}c++,s++}return x(t,``)};t.exports=function(e){var t=[],n=w(C(T(e),p,`.`),`.`),r,i;for(r=0;r<n.length;r++)i=n[r],S(t,_(f,i)?`xn--`+k(i):i);return x(t,`.`)}})),um=v(((e,t)=>{uo(),Rd();var n=q(),r=V(),i=Xl(),a=mr(),o=W(),s=G(),c=U(),l=cm(),u=Jr(),d=_i(),f=qo(),p=Si(),m=so(),h=Kr(),g=Jo(),_=fr(),v=Ar(),y=wi(),b=li(),x=K(),S=pr(),C=ui(),w=mi(),T=or(),E=Sa(),D=xa(),O=lo(),k=ql(),A=Mr(),j=Do(),M=A(`iterator`),N=`URLSearchParams`,P=N+`Iterator`,F=h.set,I=h.getterFor(N),L=h.getterFor(P),ee=i(`fetch`),te=i(`Request`),R=i(`Headers`),ne=te&&te.prototype,z=R&&R.prototype,re=r.TypeError,ie=r.encodeURIComponent,ae=String.fromCharCode,oe=a(`String`,`fromCodePoint`),se=parseInt,ce=s(``.charAt),le=s([].join),ue=s([].push),de=s(``.replace),fe=s([].shift),pe=s([].splice),me=s(``.split),he=s(``.slice),ge=s(/./.exec),_e=/\+/g,ve=`�`,ye=/^[0-9a-f]+$/i,be=function(e,t){var n=he(e,t,t+2);return ge(ye,n)?se(n,16):NaN},xe=function(e){for(var t=0,n=128;n>0&&(e&n)!==0;n>>=1)t++;return t},Se=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(e[0]&31)<<6|e[1]&63;break;case 3:t=(e[0]&15)<<12|(e[1]&63)<<6|e[2]&63;break;case 4:t=(e[0]&7)<<18|(e[1]&63)<<12|(e[2]&63)<<6|e[3]&63;break}return t>1114111?null:t},Ce=function(e){e=de(e,_e,` `);for(var t=e.length,n=``,r=0;r<t;){var i=ce(e,r);if(i===`%`){if(ce(e,r+1)===`%`||r+3>t){n+=`%`,r++;continue}var a=be(e,r+1);if(a!==a){n+=i,r++;continue}r+=2;var o=xe(a);if(o===0)i=ae(a);else{if(o===1||o>4){n+=ve,r++;continue}for(var s=[a],c=1;c<o&&(r++,!(r+3>t||ce(e,r)!==`%`));){var l=be(e,r+1);if(l!==l){r+=3;break}if(l>191||l<128)break;ue(s,l),r+=2,c++}if(s.length!==o){n+=ve;continue}var u=Se(s);u===null?n+=ve:i=oe(u)}}n+=i,r++}return n},we=/[!'()~]|%20/g,Te={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`},Ee=function(e){return Te[e]},De=function(e){return de(ie(e),we,Ee)},Oe=m(function(e,t){F(this,{type:P,target:I(e).entries,index:0,kind:t})},N,function(){var e=L(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,O(void 0,!0);var r=t[n];switch(e.kind){case`keys`:return O(r.key,!1);case`values`:return O(r.value,!1)}return O([r.key,r.value],!1)},!0),ke=function(e){this.entries=[],this.url=null,e!==void 0&&(S(e)?this.parseObject(e):this.parseQuery(typeof e==`string`?ce(e,0)===`?`?he(e,1):e:C(e)))};ke.prototype={type:N,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t=this.entries,n=D(e),r,i,a,s,c,l,u;if(n)for(r=E(e,n),i=r.next;!(a=o(i,r)).done;){if(s=E(x(a.value)),c=s.next,(l=o(c,s)).done||(u=o(c,s)).done||!o(c,s).done)throw new re(`Expected sequence with length 2`);ue(t,{key:C(l.value),value:C(u.value)})}else for(var d in e)v(e,d)&&ue(t,{key:d,value:C(e[d])})},parseQuery:function(e){if(e)for(var t=this.entries,n=me(e,`&`),r=0,i,a;r<n.length;)i=n[r++],i.length&&(a=me(i,`=`),ue(t,{key:Ce(fe(a)),value:Ce(le(a,`=`))}))},serialize:function(){for(var e=this.entries,t=[],n=0,r;n<e.length;)r=e[n++],ue(t,De(r.key)+`=`+De(r.value));return le(t,`&`)},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Ae=function(){g(this,je);var e=arguments.length>0?arguments[0]:void 0,t=F(this,new ke(e));c||(this.size=t.entries.length)},je=Ae.prototype;if(f(je,{append:function(e,t){var n=I(this);k(arguments.length,2),ue(n.entries,{key:C(e),value:C(t)}),c||this.length++,n.updateURL()},delete:function(e){for(var t=I(this),n=k(arguments.length,1),r=t.entries,i=C(e),a=n<2?void 0:arguments[1],o=a===void 0?a:C(a),s=0;s<r.length;){var l=r[s];if(l.key===i&&(o===void 0||l.value===o)){if(pe(r,s,1),o!==void 0)break}else s++}c||(this.size=r.length),t.updateURL()},get:function(e){var t=I(this).entries;k(arguments.length,1);for(var n=C(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=I(this).entries;k(arguments.length,1);for(var n=C(e),r=[],i=0;i<t.length;i++)t[i].key===n&&ue(r,t[i].value);return r},has:function(e){for(var t=I(this).entries,n=k(arguments.length,1),r=C(e),i=n<2?void 0:arguments[1],a=i===void 0?i:C(i),o=0;o<t.length;){var s=t[o++];if(s.key===r&&(a===void 0||s.value===a))return!0}return!1},set:function(e,t){var n=I(this);k(arguments.length,1);for(var r=n.entries,i=!1,a=C(e),o=C(t),s=0,l;s<r.length;s++)l=r[s],l.key===a&&(i?pe(r,s--,1):(i=!0,l.value=o));i||ue(r,{key:a,value:o}),c||(this.size=r.length),n.updateURL()},sort:function(){var e=I(this);j(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t=I(this).entries,n=y(e,arguments.length>1?arguments[1]:void 0),r=0,i;r<t.length;)i=t[r++],n(i.value,i.key,this)},keys:function(){return new Oe(this,`keys`)},values:function(){return new Oe(this,`values`)},entries:function(){return new Oe(this,`entries`)}},{enumerable:!0}),u(je,M,je.entries,{name:`entries`}),u(je,`toString`,function(){return I(this).serialize()},{enumerable:!0}),c&&d(je,`size`,{get:function(){return I(this).entries.length},configurable:!0,enumerable:!0}),p(Ae,N),n({global:!0,constructor:!0,forced:!l},{URLSearchParams:Ae}),!l&&_(R)){var Me=s(z.has),Ne=s(z.set),Pe=function(e){if(S(e)){var t=e.body,n;if(b(t)===N)return n=e.headers?new R(e.headers):new R,Me(n,`content-type`)||Ne(n,`content-type`,`application/x-www-form-urlencoded;charset=UTF-8`),w(e,{body:T(0,C(t)),headers:T(0,n)})}return e};if(_(ee)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return ee(e,arguments.length>1?Pe(arguments[1]):{})}}),_(te)){var Fe=function(e){return g(this,ne),new te(e,arguments.length>1?Pe(arguments[1]):{})};ne.constructor=Fe,Fe.prototype=ne,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Fe})}}t.exports={URLSearchParams:Ae,getState:I}})),dm=v((()=>{Vd();var e=q(),t=U(),n=cm(),r=V(),i=wi(),a=G(),o=Jr(),s=_i(),c=Jo(),l=Ar(),u=ul(),d=eo(),f=hi(),p=Nd().codeAt,m=lm(),h=ui(),g=Si(),_=ql(),v=um(),y=Kr(),b=y.set,x=y.getterFor(`URL`),S=v.URLSearchParams,C=v.getState,w=r.URL,T=r.TypeError,E=r.parseInt,D=Math.floor,O=Math.pow,k=a(``.charAt),A=a(/./.exec),j=a([].join),M=a(1.1.toString),N=a([].pop),P=a([].push),F=a(``.replace),I=a([].shift),L=a(``.split),ee=a(``.slice),te=a(``.toLowerCase),R=a([].unshift),ne=`Invalid authority`,z=`Invalid scheme`,re=`Invalid host`,ie=`Invalid port`,ae=/[a-z]/i,oe=/[\d+-.a-z]/i,se=/\d/,ce=/^0x/i,le=/^[0-7]+$/,ue=/^\d+$/,de=/^[\da-f]+$/i,fe=/[\0\t\n\r #%/:<>?@[\\\]^|]/,pe=/[\0\t\n\r #/:<>?@[\\\]^|]/,me=/^[\u0000-\u0020]+/,he=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ge=/[\t\n\r]/g,_e,ve=function(e){var t=L(e,`.`),n,r,i,a,o,s,c;if(t.length&&t[t.length-1]===``&&t.length--,n=t.length,n>4)return e;for(r=[],i=0;i<n;i++){if(a=t[i],a===``)return e;if(o=10,a.length>1&&k(a,0)===`0`&&(o=A(ce,a)?16:8,a=ee(a,o===8?1:2)),a===``)s=0;else{if(!A(o===10?ue:o===8?le:de,a))return e;s=E(a,o)}P(r,s)}for(i=0;i<n;i++)if(s=r[i],i===n-1){if(s>=O(256,5-n))return null}else if(s>255)return null;for(c=N(r),i=0;i<r.length;i++)c+=r[i]*O(256,3-i);return c},ye=function(e){var t=[0,0,0,0,0,0,0,0],n=0,r=null,i=0,a,o,s,c,l,u,d,f=function(){return k(e,i)};if(f()===`:`){if(k(e,1)!==`:`)return;i+=2,n++,r=n}for(;f();){if(n===8)return;if(f()===`:`){if(r!==null)return;i++,n++,r=n;continue}for(a=o=0;o<4&&A(de,f());)a=a*16+E(f(),16),i++,o++;if(f()===`.`){if(o===0||(i-=o,n>6))return;for(s=0;f();){if(c=null,s>0)if(f()===`.`&&s<4)i++;else return;if(!A(se,f()))return;for(;A(se,f());){if(l=E(f(),10),c===null)c=l;else if(c===0)return;else c=c*10+l;if(c>255)return;i++}t[n]=t[n]*256+c,s++,(s===2||s===4)&&n++}if(s!==4)return;break}else if(f()===`:`){if(i++,!f())return}else if(f())return;t[n++]=a}if(r!==null)for(u=n-r,n=7;n!==0&&u>0;)d=t[n],t[n--]=t[r+u-1],t[r+--u]=d;else if(n!==8)return;return t},be=function(e){for(var t=null,n=1,r=null,i=0,a=0;a<8;a++)e[a]===0?(r===null&&(r=a),++i):(i>n&&(t=r,n=i),r=null,i=0);return i>n?r:t},xe=function(e){var t,n,r,i;if(typeof e==`number`){for(t=[],n=0;n<4;n++)R(t,e%256),e=D(e/256);return j(t,`.`)}if(typeof e==`object`){for(t=``,r=be(e),n=0;n<8;n++)i&&e[n]===0||(i&&=!1,r===n?(t+=n?`:`:`::`,i=!0):(t+=M(e[n],16),n<7&&(t+=`:`)));return`[`+t+`]`}return e},Se={},Ce=u({},Se,{" ":1,'"':1,"<":1,">":1,"`":1}),we=u({},Ce,{"#":1,"?":1,"{":1,"}":1}),Te=u({},we,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Ee=function(e,t){var n=p(e,0);return n>32&&n<127&&!l(t,e)?e:encodeURIComponent(e)},De={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Oe=function(e,t){var n;return e.length===2&&A(ae,k(e,0))&&((n=k(e,1))===`:`||!t&&n===`|`)},ke=function(e){var t;return e.length>1&&Oe(ee(e,0,2))&&(e.length===2||(t=k(e,2))===`/`||t===`\\`||t===`?`||t===`#`)},Ae=function(e){return e===`.`||te(e)===`%2e`},je=function(e){return e=te(e),e===`..`||e===`%2e.`||e===`.%2e`||e===`%2e%2e`},Me={},Ne={},Pe={},Fe={},Ie={},Le={},Re={},ze={},Be={},Ve={},He={},Ue={},We={},Ge={},Ke={},qe={},Je={},Ye={},Xe={},Ze={},Qe={},$e=function(e,t,n){var r=h(e),i,a,o;if(t){if(a=this.parse(r),a)throw new T(a);this.searchParams=null}else{if(n!==void 0&&(i=new $e(n,!0)),a=this.parse(r,null,i),a)throw new T(a);o=C(new S),o.bindURL(this),this.searchParams=o}};$e.prototype={type:`URL`,parse:function(e,t,n){var r=this,i=t||Me,a=0,o=``,s=!1,c=!1,u=!1,p,m,g,_;for(e=h(e),t||(r.scheme=``,r.username=``,r.password=``,r.host=null,r.port=null,r.path=[],r.query=null,r.fragment=null,r.cannotBeABaseURL=!1,e=F(e,me,``),e=F(e,he,`$1`)),e=F(e,ge,``),p=d(e);a<=p.length;){switch(m=p[a],i){case Me:if(m&&A(ae,m))o+=te(m),i=Ne;else if(t)return z;else{i=Pe;continue}break;case Ne:if(m&&(A(oe,m)||m===`+`||m===`-`||m===`.`))o+=te(m);else if(m===`:`){if(t&&(r.isSpecial()!==l(De,o)||o===`file`&&(r.includesCredentials()||r.port!==null)||r.scheme===`file`&&!r.host))return;if(r.scheme=o,t){r.isSpecial()&&De[r.scheme]===r.port&&(r.port=null);return}o=``,r.scheme===`file`?i=Ge:r.isSpecial()&&n&&n.scheme===r.scheme?i=Fe:r.isSpecial()?i=ze:p[a+1]===`/`?(i=Ie,a++):(r.cannotBeABaseURL=!0,P(r.path,``),i=Xe)}else if(t)return z;else{o=``,i=Pe,a=0;continue}break;case Pe:if(!n||n.cannotBeABaseURL&&m!==`#`)return z;if(n.cannotBeABaseURL&&m===`#`){r.scheme=n.scheme,r.path=f(n.path),r.query=n.query,r.fragment=``,r.cannotBeABaseURL=!0,i=Qe;break}i=n.scheme===`file`?Ge:Le;continue;case Fe:if(m===`/`&&p[a+1]===`/`)i=Be,a++;else{i=Le;continue}break;case Ie:if(m===`/`){i=Ve;break}else{i=Ye;continue}case Le:if(r.scheme=n.scheme,m===_e)r.username=n.username,r.password=n.password,r.host=n.host,r.port=n.port,r.path=f(n.path),r.query=n.query;else if(m===`/`||m===`\\`&&r.isSpecial())i=Re;else if(m===`?`)r.username=n.username,r.password=n.password,r.host=n.host,r.port=n.port,r.path=f(n.path),r.query=``,i=Ze;else if(m===`#`)r.username=n.username,r.password=n.password,r.host=n.host,r.port=n.port,r.path=f(n.path),r.query=n.query,r.fragment=``,i=Qe;else{r.username=n.username,r.password=n.password,r.host=n.host,r.port=n.port,r.path=f(n.path),r.path.length--,i=Ye;continue}break;case Re:if(r.isSpecial()&&(m===`/`||m===`\\`))i=Be;else if(m===`/`)i=Ve;else{r.username=n.username,r.password=n.password,r.host=n.host,r.port=n.port,i=Ye;continue}break;case ze:if(i=Be,m!==`/`||k(o,a+1)!==`/`)continue;a++;break;case Be:if(m!==`/`&&m!==`\\`){i=Ve;continue}break;case Ve:if(m===`@`){s&&(o=`%40`+o),s=!0,g=d(o);for(var v=0;v<g.length;v++){var y=g[v];if(y===`:`&&!u){u=!0;continue}var b=Ee(y,Te);u?r.password+=b:r.username+=b}o=``}else if(m===_e||m===`/`||m===`?`||m===`#`||m===`\\`&&r.isSpecial()){if(s&&o===``)return ne;a-=d(o).length+1,o=``,i=He}else o+=m;break;case He:case Ue:if(t&&r.scheme===`file`){i=qe;continue}else if(m===`:`&&!c){if(o===``)return re;if(_=r.parseHost(o),_)return _;if(o=``,i=We,t===Ue)return}else if(m===_e||m===`/`||m===`?`||m===`#`||m===`\\`&&r.isSpecial()){if(r.isSpecial()&&o===``)return re;if(t&&o===``&&(r.includesCredentials()||r.port!==null))return;if(_=r.parseHost(o),_)return _;if(o=``,i=Je,t)return;continue}else m===`[`?c=!0:m===`]`&&(c=!1),o+=m;break;case We:if(A(se,m))o+=m;else if(m===_e||m===`/`||m===`?`||m===`#`||m===`\\`&&r.isSpecial()||t){if(o!==``){var x=E(o,10);if(x>65535)return ie;r.port=r.isSpecial()&&x===De[r.scheme]?null:x,o=``}if(t)return;i=Je;continue}else return ie;break;case Ge:if(r.scheme=`file`,m===`/`||m===`\\`)i=Ke;else if(n&&n.scheme===`file`)switch(m){case _e:r.host=n.host,r.path=f(n.path),r.query=n.query;break;case`?`:r.host=n.host,r.path=f(n.path),r.query=``,i=Ze;break;case`#`:r.host=n.host,r.path=f(n.path),r.query=n.query,r.fragment=``,i=Qe;break;default:ke(j(f(p,a),``))||(r.host=n.host,r.path=f(n.path),r.shortenPath()),i=Ye;continue}else{i=Ye;continue}break;case Ke:if(m===`/`||m===`\\`){i=qe;break}n&&n.scheme===`file`&&!ke(j(f(p,a),``))&&(Oe(n.path[0],!0)?P(r.path,n.path[0]):r.host=n.host),i=Ye;continue;case qe:if(m===_e||m===`/`||m===`\\`||m===`?`||m===`#`){if(!t&&Oe(o))i=Ye;else if(o===``){if(r.host=``,t)return;i=Je}else{if(_=r.parseHost(o),_)return _;if(r.host===`localhost`&&(r.host=``),t)return;o=``,i=Je}continue}else o+=m;break;case Je:if(r.isSpecial()){if(i=Ye,m!==`/`&&m!==`\\`)continue}else if(!t&&m===`?`)r.query=``,i=Ze;else if(!t&&m===`#`)r.fragment=``,i=Qe;else if(m!==_e&&(i=Ye,m!==`/`))continue;break;case Ye:if(m===_e||m===`/`||m===`\\`&&r.isSpecial()||!t&&(m===`?`||m===`#`)){if(je(o)?(r.shortenPath(),m!==`/`&&!(m===`\\`&&r.isSpecial())&&P(r.path,``)):Ae(o)?m!==`/`&&!(m===`\\`&&r.isSpecial())&&P(r.path,``):(r.scheme===`file`&&!r.path.length&&Oe(o)&&(r.host&&=``,o=k(o,0)+`:`),P(r.path,o)),o=``,r.scheme===`file`&&(m===_e||m===`?`||m===`#`))for(;r.path.length>1&&r.path[0]===``;)I(r.path);m===`?`?(r.query=``,i=Ze):m===`#`&&(r.fragment=``,i=Qe)}else o+=Ee(m,we);break;case Xe:m===`?`?(r.query=``,i=Ze):m===`#`?(r.fragment=``,i=Qe):m!==_e&&(r.path[0]+=Ee(m,Se));break;case Ze:!t&&m===`#`?(r.fragment=``,i=Qe):m!==_e&&(m===`'`&&r.isSpecial()?r.query+=`%27`:m===`#`?r.query+=`%23`:r.query+=Ee(m,Se));break;case Qe:m!==_e&&(r.fragment+=Ee(m,Ce));break}a++}},parseHost:function(e){var t,n,r;if(k(e,0)===`[`){if(k(e,e.length-1)!==`]`||(t=ye(ee(e,1,-1)),!t))return re;this.host=t}else if(this.isSpecial()){if(e=m(e),A(fe,e)||(t=ve(e),t===null))return re;this.host=t}else{if(A(pe,e))return re;for(t=``,n=d(e),r=0;r<n.length;r++)t+=Ee(n[r],Se);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||this.scheme===`file`},includesCredentials:function(){return this.username!==``||this.password!==``},isSpecial:function(){return l(De,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;t&&(this.scheme!==`file`||t!==1||!Oe(e[0],!0))&&e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,i=e.host,a=e.port,o=e.path,s=e.query,c=e.fragment,l=t+`:`;return i===null?t===`file`&&(l+=`//`):(l+=`//`,e.includesCredentials()&&(l+=n+(r?`:`+r:``)+`@`),l+=xe(i),a!==null&&(l+=`:`+a)),l+=e.cannotBeABaseURL?o[0]:o.length?`/`+j(o,`/`):``,s!==null&&(l+=`?`+s),c!==null&&(l+=`#`+c),l},setHref:function(e){var t=this.parse(e);if(t)throw new T(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if(e===`blob`)try{return new et(e.path[0]).origin}catch{return`null`}return e===`file`||!this.isSpecial()?`null`:e+`://`+xe(this.host)+(t===null?``:`:`+t)},getProtocol:function(){return this.scheme+`:`},setProtocol:function(e){this.parse(h(e)+`:`,Me)},getUsername:function(){return this.username},setUsername:function(e){var t=d(h(e));if(!this.cannotHaveUsernamePasswordPort()){this.username=``;for(var n=0;n<t.length;n++)this.username+=Ee(t[n],Te)}},getPassword:function(){return this.password},setPassword:function(e){var t=d(h(e));if(!this.cannotHaveUsernamePasswordPort()){this.password=``;for(var n=0;n<t.length;n++)this.password+=Ee(t[n],Te)}},getHost:function(){var e=this.host,t=this.port;return e===null?``:t===null?xe(e):xe(e)+`:`+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,He)},getHostname:function(){var e=this.host;return e===null?``:xe(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Ue)},getPort:function(){var e=this.port;return e===null?``:h(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(e=h(e),e===``?this.port=null:this.parse(e,We))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?`/`+j(e,`/`):``},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Je))},getSearch:function(){var e=this.query;return e?`?`+e:``},setSearch:function(e){e=h(e),e===``?this.query=null:(k(e,0)===`?`&&(e=ee(e,1)),this.query=``,this.parse(e,Ze)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?`#`+e:``},setHash:function(e){if(e=h(e),e===``){this.fragment=null;return}k(e,0)===`#`&&(e=ee(e,1)),this.fragment=``,this.parse(e,Qe)},update:function(){this.query=this.searchParams.serialize()||null}};var et=function(e){var n=c(this,tt),r=b(n,new $e(e,!1,_(arguments.length,1)>1?arguments[1]:void 0));t||(n.href=r.serialize(),n.origin=r.getOrigin(),n.protocol=r.getProtocol(),n.username=r.getUsername(),n.password=r.getPassword(),n.host=r.getHost(),n.hostname=r.getHostname(),n.port=r.getPort(),n.pathname=r.getPathname(),n.search=r.getSearch(),n.searchParams=r.getSearchParams(),n.hash=r.getHash())},tt=et.prototype,nt=function(e,t){return{get:function(){return x(this)[e]()},set:t&&function(e){return x(this)[t](e)},configurable:!0,enumerable:!0}};if(t&&(s(tt,`href`,nt(`serialize`,`setHref`)),s(tt,`origin`,nt(`getOrigin`)),s(tt,`protocol`,nt(`getProtocol`,`setProtocol`)),s(tt,`username`,nt(`getUsername`,`setUsername`)),s(tt,`password`,nt(`getPassword`,`setPassword`)),s(tt,`host`,nt(`getHost`,`setHost`)),s(tt,`hostname`,nt(`getHostname`,`setHostname`)),s(tt,`port`,nt(`getPort`,`setPort`)),s(tt,`pathname`,nt(`getPathname`,`setPathname`)),s(tt,`search`,nt(`getSearch`,`setSearch`)),s(tt,`searchParams`,nt(`getSearchParams`)),s(tt,`hash`,nt(`getHash`,`setHash`))),o(tt,`toJSON`,function(){return x(this).serialize()},{enumerable:!0}),o(tt,`toString`,function(){return x(this).serialize()},{enumerable:!0}),w){var rt=w.createObjectURL,it=w.revokeObjectURL;rt&&o(et,`createObjectURL`,i(rt,w)),it&&o(et,`revokeObjectURL`,i(it,w))}g(et,`URL`),e({global:!0,constructor:!0,forced:!n,sham:!t},{URL:et})})),fm=v((()=>{dm()})),pm=v((()=>{var e=q(),t=mr(),n=H(),r=ql(),i=ui(),a=cm(),o=t(`URL`),s=a&&n(function(){o.canParse()}),c=n(function(){return o.canParse.length!==1});e({target:`URL`,stat:!0,forced:!s||c},{canParse:function(e){var t=r(arguments.length,1),n=i(e),a=t<2||arguments[1]===void 0?void 0:i(arguments[1]);try{return!!new o(n,a)}catch{return!1}}})})),mm=v((()=>{var e=q(),t=mr(),n=ql(),r=ui(),i=cm(),a=t(`URL`);e({target:`URL`,stat:!0,forced:!i},{parse:function(e){var t=n(arguments.length,1),i=r(e),o=t<2||arguments[1]===void 0?void 0:r(arguments[1]);try{return new a(i,o)}catch{return null}}})})),hm=v((()=>{var e=q(),t=W();e({target:`URL`,proto:!0,enumerable:!0},{toJSON:function(){return t(URL.prototype.toString,this)}})})),gm=v((()=>{um()})),_m=v((()=>{var e=Jr(),t=G(),n=ui(),r=ql(),i=URLSearchParams,a=i.prototype,o=t(a.append),s=t(a.delete),c=t(a.forEach),l=t([].push),u=new i(`a=1&a=2&b=3`);u.delete(`a`,1),u.delete(`b`,void 0),u+``!=`a=2`&&e(a,`delete`,function(e){var t=arguments.length,i=t<2?void 0:arguments[1];if(t&&i===void 0)return s(this,e);var a=[];c(this,function(e,t){l(a,{key:t,value:e})}),r(t,1);for(var u=n(e),d=n(i),f=0,p=0,m=!1,h=a.length,g;f<h;)g=a[f++],m||g.key===u?(m=!0,s(this,g.key)):p++;for(;p<h;)g=a[p++],g.key===u&&g.value===d||o(this,g.key,g.value)},{enumerable:!0,unsafe:!0})})),vm=v((()=>{var e=Jr(),t=G(),n=ui(),r=ql(),i=URLSearchParams,a=i.prototype,o=t(a.getAll),s=t(a.has),c=new i(`a=1`);(c.has(`a`,2)||!c.has(`a`,void 0))&&e(a,`has`,function(e){var t=arguments.length,i=t<2?void 0:arguments[1];if(t&&i===void 0)return s(this,e);var a=o(this,e);r(t,1);for(var c=n(i),l=0;l<a.length;)if(a[l++]===c)return!0;return!1},{enumerable:!0,unsafe:!0})})),ym=v((()=>{var e=U(),t=G(),n=_i(),r=URLSearchParams.prototype,i=t(r.forEach);e&&!(`size`in r)&&n(r,`size`,{get:function(){var e=0;return i(this,function(){e++}),e},configurable:!0,enumerable:!0})})),bm=v(((e,t)=>{Ri(),zi(),Bi(),Vi(),Hi(),Ui(),Wi(),Gi(),Ki(),qi(),Ji(),Yi(),Xi(),Zi(),Qi(),$i(),ea(),pa(),ma(),ga(),Ea(),Da(),Oa(),Aa(),Pa(),La(),za(),Va(),Ha(),Ua(),Wa(),Ka(),qa(),Ya(),Xa(),Qa(),no(),ro(),io(),ao(),uo(),fo(),mo(),ho(),go(),vo(),So(),Co(),wo(),To(),Eo(),jo(),No(),Po(),Io(),zo(),Bo(),Vo(),Ho(),Uo(),Go(),ns(),is(),as(),ss(),cs(),ds(),ms(),bs(),xs(),Ss(),Cs(),ws(),Ts(),ks(),As(),Ms(),Ns(),Fs(),Is(),Rs(),zs(),Bs(),Vs(),Hs(),Us(),Zs(),Qs(),$s(),ec(),nc(),rc(),ic(),ac(),oc(),sc(),cc(),lc(),Ii(),uc(),vc(),bc(),Sc(),Cc(),wc(),Tc(),Ec(),Oc(),kc(),Ac(),jc(),Mc(),Nc(),Fc(),Ic(),Lc(),Rc(),zc(),Bc(),Vc(),Hc(),Uc(),qc(),Jc(),Xc(),Qc(),$c(),el(),tl(),nl(),il(),ol(),sl(),cl(),ll(),dl(),fl(),ml(),hl(),gl(),_l(),yl(),bl(),xl(),Sl(),Cl(),wl(),Tl(),El(),Dl(),kl(),Al(),jl(),Ml(),Nl(),Pl(),Fl(),Il(),Ll(),Rl(),zl(),Vl(),Hl(),Ul(),Wl(),mu(),hu(),gu(),_u(),vu(),yu(),Eu(),Du(),Ou(),ku(),Au(),ju(),Mu(),Pu(),Fu(),Iu(),Lu(),Ru(),zu(),Bu(),Vu(),Hu(),Uu(),Zu(),$u(),ed(),nd(),rd(),id(),ad(),od(),cd(),vd(),bd(),Sd(),wd(),Ed(),kd(),jd(),Md(),Pd(),Ld(),Rd(),zd(),Bd(),Vd(),Gd(),Kd(),Jd(),Yd(),Xd(),Zd(),$d(),ef(),tf(),nf(),rf(),af(),of(),cf(),df(),mf(),_f(),vf(),yf(),bf(),xf(),Sf(),Cf(),wf(),Tf(),Ef(),Df(),Of(),kf(),Lf(),Rf(),zf(),Bf(),Vf(),Hf(),Uf(),Wf(),Gf(),Kf(),qf(),Jf(),Yf(),Zf(),Qf(),$f(),ep(),tp(),np(),rp(),ip(),ap(),op(),sp(),cp(),lp(),up(),dp(),fp(),pp(),mp(),hp(),gp(),_p(),vp(),yp(),bp(),xp(),Sp(),Cp(),Op(),Ap(),Mp(),Np(),Pp(),Fp(),Ip(),zp(),Vp(),Hp(),Up(),Kp(),qp(),Yp(),Xp(),Zp(),tm(),nm(),rm(),im(),sm(),fm(),pm(),mm(),hm(),gm(),_m(),vm(),ym(),t.exports=yi()}));rr(),bm();function xm(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!Ze(i)||!$e(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function Sm(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});!Ze(r)||!$e(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var Cm={name:`applyStyles`,enabled:!0,phase:`write`,fn:xm,effect:Sm,requires:[`computeStyles`]},wm=Be({defaultModifiers:[Re,rt,gt,Cm]}),Tm=Be({defaultModifiers:[Re,rt,gt,Cm,He,Qe,Ot,Xe,Ve]}),Em=Ce({afterMain:()=>Ue,afterRead:()=>Ke,afterWrite:()=>Ye,applyStyles:()=>Cm,arrow:()=>Xe,auto:()=>tt,basePlacements:()=>At,beforeMain:()=>ze,beforeRead:()=>at,beforeWrite:()=>Ge,bottom:()=>it,clippingParents:()=>ot,computeStyles:()=>gt,createPopper:()=>Tm,createPopperBase:()=>nt,createPopperLite:()=>wm,detectOverflow:()=>_t,end:()=>`end`,eventListeners:()=>Re,flip:()=>Qe,hide:()=>Ve,left:()=>We,main:()=>Je,modifierPhases:()=>Ct,offset:()=>He,placements:()=>qe,popper:()=>ct,popperGenerator:()=>Be,popperOffsets:()=>rt,preventOverflow:()=>Ot,read:()=>st,reference:()=>lt,right:()=>et,start:()=>Le,top:()=>`top`,variationPlacements:()=>ft,viewport:()=>Et,write:()=>bt}),Dm=new Map,Om={set(e,t,n){Dm.has(e)||Dm.set(e,new Map);let r=Dm.get(e);if(!r.has(t)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(t,n)},get(e,t){return Dm.has(e)&&Dm.get(e).get(t)||null},remove(e,t){if(!Dm.has(e))return;let n=Dm.get(e);n.delete(t),n.size===0&&Dm.delete(e)}},km=1e6,Am=1e3,jm=`transitionend`,Mm=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),Nm=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),Pm=e=>{do e+=Math.floor(Math.random()*km);while(document.getElementById(e));return e},Fm=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);return!Number.parseFloat(t)&&!Number.parseFloat(n)?0:(t=t.split(`,`)[0],n=n.split(`,`)[0],(Number.parseFloat(t)+Number.parseFloat(n))*Am)},Im=e=>{e.dispatchEvent(new Event(jm))},Lm=e=>!e||typeof e!=`object`?!1:(e.jquery!==void 0&&(e=e[0]),e.nodeType!==void 0),Rm=e=>Lm(e)?e.jquery?e[0]:e:typeof e==`string`&&e.length>0?document.querySelector(Mm(e)):null,zm=e=>{if(!Lm(e)||e.getClientRects().length===0)return!1;let t=getComputedStyle(e).getPropertyValue(`visibility`)===`visible`,n=e.closest(`details:not([open])`);if(!n)return t;if(n!==e){let t=e.closest(`summary`);if(t&&t.parentNode!==n||t===null)return!1}return t},Bm=e=>!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains(`disabled`)?!0:e.disabled===void 0?e.hasAttribute(`disabled`)&&e.getAttribute(`disabled`)!==`false`:e.disabled,Vm=e=>{if(!document.documentElement.attachShadow)return null;if(typeof e.getRootNode==`function`){let t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?Vm(e.parentNode):null},Hm=()=>{},Um=e=>{e.offsetHeight},Wm=()=>window.jQuery&&!document.body.hasAttribute(`data-bs-no-jquery`)?window.jQuery:null,Gm=[],Km=e=>{document.readyState===`loading`?(Gm.length||document.addEventListener(`DOMContentLoaded`,()=>{for(let e of Gm)e()}),Gm.push(e)):e()},qm=()=>document.documentElement.dir===`rtl`,Jm=e=>{Km(()=>{let t=Wm();if(t){let n=e.NAME,r=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=r,e.jQueryInterface)}})},Ym=(e,t=[],n=e)=>typeof e==`function`?e(...t):n,Xm=(e,t,n=!0)=>{if(!n){Ym(e);return}let r=Fm(t)+5,i=!1,a=({target:n})=>{n===t&&(i=!0,t.removeEventListener(jm,a),Ym(e))};t.addEventListener(jm,a),setTimeout(()=>{i||Im(t)},r)},Zm=(e,t,n,r)=>{let i=e.length,a=e.indexOf(t);return a===-1?!n&&r?e[i-1]:e[0]:(a+=n?1:-1,r&&(a=(a+i)%i),e[Math.max(0,Math.min(a,i-1))])},Qm=/[^.]*(?=\..*)\.|.*/,$m=/\..*/,eh=/::\d+$/,th={},nh=1,rh={mouseenter:`mouseover`,mouseleave:`mouseout`},ih=new Set(`click.dblclick.mouseup.mousedown.contextmenu.mousewheel.DOMMouseScroll.mouseover.mouseout.mousemove.selectstart.selectend.keydown.keypress.keyup.orientationchange.touchstart.touchmove.touchend.touchcancel.pointerdown.pointermove.pointerup.pointerleave.pointercancel.gesturestart.gesturechange.gestureend.focus.blur.change.reset.select.submit.focusin.focusout.load.unload.beforeunload.resize.move.DOMContentLoaded.readystatechange.error.abort.scroll`.split(`.`));function ah(e,t){return t&&`${t}::${nh++}`||e.uidEvent||nh++}function oh(e){let t=ah(e);return e.uidEvent=t,th[t]=th[t]||{},th[t]}function sh(e,t){return function n(r){return hh(r,{delegateTarget:e}),n.oneOff&&J.off(e,r.type,t),t.apply(e,[r])}}function ch(e,t,n){return function r(i){let a=e.querySelectorAll(t);for(let{target:o}=i;o&&o!==this;o=o.parentNode)for(let s of a)if(s===o)return hh(i,{delegateTarget:o}),r.oneOff&&J.off(e,i.type,t,n),n.apply(o,[i])}}function lh(e,t,n=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===n)}function uh(e,t,n){let r=typeof t==`string`,i=r?n:t||n,a=mh(e);return ih.has(a)||(a=e),[r,i,a]}function dh(e,t,n,r,i){if(typeof t!=`string`||!e)return;let[a,o,s]=uh(t,n,r);t in rh&&(o=(e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)})(o));let c=oh(e),l=c[s]||(c[s]={}),u=lh(l,o,a?n:null);if(u){u.oneOff=u.oneOff&&i;return}let d=ah(o,t.replace(Qm,``)),f=a?ch(e,n,o):sh(e,o);f.delegationSelector=a?n:null,f.callable=o,f.oneOff=i,f.uidEvent=d,l[d]=f,e.addEventListener(s,f,a)}function fh(e,t,n,r,i){let a=lh(t[n],r,i);a&&(e.removeEventListener(n,a,!!i),delete t[n][a.uidEvent])}function ph(e,t,n,r){let i=t[n]||{};for(let[a,o]of Object.entries(i))a.includes(r)&&fh(e,t,n,o.callable,o.delegationSelector)}function mh(e){return e=e.replace($m,``),rh[e]||e}var J={on(e,t,n,r){dh(e,t,n,r,!1)},one(e,t,n,r){dh(e,t,n,r,!0)},off(e,t,n,r){if(typeof t!=`string`||!e)return;let[i,a,o]=uh(t,n,r),s=o!==t,c=oh(e),l=c[o]||{},u=t.startsWith(`.`);if(a!==void 0){if(!Object.keys(l).length)return;fh(e,c,o,a,i?n:null);return}if(u)for(let n of Object.keys(c))ph(e,c,n,t.slice(1));for(let[n,r]of Object.entries(l)){let i=n.replace(eh,``);(!s||t.includes(i))&&fh(e,c,o,r.callable,r.delegationSelector)}},trigger(e,t,n){if(typeof t!=`string`||!e)return null;let r=Wm(),i=t!==mh(t),a=null,o=!0,s=!0,c=!1;i&&r&&(a=r.Event(t,n),r(e).trigger(a),o=!a.isPropagationStopped(),s=!a.isImmediatePropagationStopped(),c=a.isDefaultPrevented());let l=hh(new Event(t,{bubbles:o,cancelable:!0}),n);return c&&l.preventDefault(),s&&e.dispatchEvent(l),l.defaultPrevented&&a&&a.preventDefault(),l}};function hh(e,t={}){for(let[n,r]of Object.entries(t))try{e[n]=r}catch{Object.defineProperty(e,n,{configurable:!0,get(){return r}})}return e}function gh(e){if(e===`true`)return!0;if(e===`false`)return!1;if(e===Number(e).toString())return Number(e);if(e===``||e===`null`)return null;if(typeof e!=`string`)return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function _h(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}var vh={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${_h(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${_h(t)}`)},getDataAttributes(e){if(!e)return{};let t={},n=Object.keys(e.dataset).filter(e=>e.startsWith(`bs`)&&!e.startsWith(`bsConfig`));for(let r of n){let n=r.replace(/^bs/,``);n=n.charAt(0).toLowerCase()+n.slice(1,n.length),t[n]=gh(e.dataset[r])}return t},getDataAttribute(e,t){return gh(e.getAttribute(`data-bs-${_h(t)}`))}},yh=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw Error(`You have to implement the static method "NAME", for each component!`)}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){let n=Lm(t)?vh.getDataAttribute(t,`config`):{};return{...this.constructor.Default,...typeof n==`object`?n:{},...Lm(t)?vh.getDataAttributes(t):{},...typeof e==`object`?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(let[n,r]of Object.entries(t)){let t=e[n],i=Lm(t)?`element`:Nm(t);if(!new RegExp(r).test(i))throw TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${i}" but expected type "${r}".`)}}},bh=`5.3.2`,xh=class extends yh{constructor(e,t){super(),e=Rm(e),e&&(this._element=e,this._config=this._getConfig(t),Om.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Om.remove(this._element,this.constructor.DATA_KEY),J.off(this._element,this.constructor.EVENT_KEY);for(let e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){Xm(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Om.get(Rm(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t==`object`?t:null)}static get VERSION(){return bh}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}},Sh=e=>{let t=e.getAttribute(`data-bs-target`);if(!t||t===`#`){let n=e.getAttribute(`href`);if(!n||!n.includes(`#`)&&!n.startsWith(`.`))return null;n.includes(`#`)&&!n.startsWith(`#`)&&(n=`#${n.split(`#`)[1]}`),t=n&&n!==`#`?Mm(n.trim()):null}return t},Y={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(e=>e.matches(t))},parents(e,t){let n=[],r=e.parentNode.closest(t);for(;r;)n.push(r),r=r.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){let t=[`a`,`button`,`input`,`textarea`,`select`,`details`,`[tabindex]`,`[contenteditable="true"]`].map(e=>`${e}:not([tabindex^="-"])`).join(`,`);return this.find(t,e).filter(e=>!Bm(e)&&zm(e))},getSelectorFromElement(e){let t=Sh(e);return t&&Y.findOne(t)?t:null},getElementFromSelector(e){let t=Sh(e);return t?Y.findOne(t):null},getMultipleElementsFromSelector(e){let t=Sh(e);return t?Y.find(t):[]}},Ch=(e,t=`hide`)=>{let n=`click.dismiss${e.EVENT_KEY}`,r=e.NAME;J.on(document,n,`[data-bs-dismiss="${r}"]`,function(n){if([`A`,`AREA`].includes(this.tagName)&&n.preventDefault(),Bm(this))return;let i=Y.getElementFromSelector(this)||this.closest(`.${r}`);e.getOrCreateInstance(i)[t]()})},wh=`alert`,Th=`.bs.alert`,Eh=`close${Th}`,Dh=`closed${Th}`,Oh=`fade`,kh=`show`,Ah=class e extends xh{static get NAME(){return wh}close(){if(J.trigger(this._element,Eh).defaultPrevented)return;this._element.classList.remove(kh);let e=this._element.classList.contains(Oh);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),J.trigger(this._element,Dh),this.dispose()}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t](this)}})}};Ch(Ah,`close`),Jm(Ah);var jh=`button`,Mh=`.bs.button`,Nh=`.data-api`,Ph=`active`,Fh=`[data-bs-toggle="button"]`,Ih=`click${Mh}${Nh}`,Lh=class e extends xh{static get NAME(){return jh}toggle(){this._element.setAttribute(`aria-pressed`,this._element.classList.toggle(Ph))}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);t===`toggle`&&n[t]()})}};J.on(document,Ih,Fh,e=>{e.preventDefault();let t=e.target.closest(Fh);Lh.getOrCreateInstance(t).toggle()}),Jm(Lh);var Rh=`swipe`,zh=`.bs.swipe`,Bh=`touchstart${zh}`,Vh=`touchmove${zh}`,Hh=`touchend${zh}`,Uh=`pointerdown${zh}`,Wh=`pointerup${zh}`,Gh=`touch`,Kh=`pen`,qh=`pointer-event`,Jh=40,Yh={endCallback:null,leftCallback:null,rightCallback:null},Xh={endCallback:`(function|null)`,leftCallback:`(function|null)`,rightCallback:`(function|null)`},Zh=class e extends yh{constructor(t,n){super(),this._element=t,!(!t||!e.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Yh}static get DefaultType(){return Xh}static get NAME(){return Rh}dispose(){J.off(this._element,zh)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),Ym(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){let e=Math.abs(this._deltaX);if(e<=Jh)return;let t=e/this._deltaX;this._deltaX=0,t&&Ym(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(J.on(this._element,Uh,e=>this._start(e)),J.on(this._element,Wh,e=>this._end(e)),this._element.classList.add(qh)):(J.on(this._element,Bh,e=>this._start(e)),J.on(this._element,Vh,e=>this._move(e)),J.on(this._element,Hh,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===Kh||e.pointerType===Gh)}static isSupported(){return`ontouchstart`in document.documentElement||navigator.maxTouchPoints>0}},Qh=`carousel`,$h=`.bs.carousel`,eg=`.data-api`,tg=`ArrowLeft`,ng=`ArrowRight`,rg=500,ig=`next`,ag=`prev`,og=`left`,sg=`right`,cg=`slide${$h}`,lg=`slid${$h}`,ug=`keydown${$h}`,dg=`mouseenter${$h}`,fg=`mouseleave${$h}`,pg=`dragstart${$h}`,mg=`load${$h}${eg}`,hg=`click${$h}${eg}`,gg=`carousel`,_g=`active`,vg=`slide`,yg=`carousel-item-end`,bg=`carousel-item-start`,xg=`carousel-item-next`,Sg=`carousel-item-prev`,Cg=`.active`,wg=`.carousel-item`,Tg=Cg+wg,Eg=`.carousel-item img`,Dg=`.carousel-indicators`,Og=`[data-bs-slide], [data-bs-slide-to]`,kg=`[data-bs-ride="carousel"]`,Ag={[tg]:sg,[ng]:og},jg={interval:5e3,keyboard:!0,pause:`hover`,ride:!1,touch:!0,wrap:!0},Mg={interval:`(number|boolean)`,keyboard:`boolean`,pause:`(string|boolean)`,ride:`(boolean|string)`,touch:`boolean`,wrap:`boolean`},Ng=class e extends xh{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Y.findOne(Dg,this._element),this._addEventListeners(),this._config.ride===gg&&this.cycle()}static get Default(){return jg}static get DefaultType(){return Mg}static get NAME(){return Qh}next(){this._slide(ig)}nextWhenVisible(){!document.hidden&&zm(this._element)&&this.next()}prev(){this._slide(ag)}pause(){this._isSliding&&Im(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){J.one(this._element,lg,()=>this.cycle());return}this.cycle()}}to(e){let t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){J.one(this._element,lg,()=>this.to(e));return}let n=this._getItemIndex(this._getActive());if(n===e)return;let r=e>n?ig:ag;this._slide(r,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&J.on(this._element,ug,e=>this._keydown(e)),this._config.pause===`hover`&&(J.on(this._element,dg,()=>this.pause()),J.on(this._element,fg,()=>this._maybeEnableCycle())),this._config.touch&&Zh.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let e of Y.find(Eg,this._element))J.on(e,pg,e=>e.preventDefault());this._swipeHelper=new Zh(this._element,{leftCallback:()=>this._slide(this._directionToOrder(og)),rightCallback:()=>this._slide(this._directionToOrder(sg)),endCallback:()=>{this._config.pause===`hover`&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),rg+this._config.interval))}})}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;let t=Ag[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;let t=Y.findOne(Cg,this._indicatorsElement);t.classList.remove(_g),t.removeAttribute(`aria-current`);let n=Y.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(_g),n.setAttribute(`aria-current`,`true`))}_updateInterval(){let e=this._activeElement||this._getActive();if(!e)return;let t=Number.parseInt(e.getAttribute(`data-bs-interval`),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;let n=this._getActive(),r=e===ig,i=t||Zm(this._getItems(),n,r,this._config.wrap);if(i===n)return;let a=this._getItemIndex(i),o=t=>J.trigger(this._element,t,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:a});if(o(cg).defaultPrevented||!n||!i)return;let s=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=i;let c=r?bg:yg,l=r?xg:Sg;i.classList.add(l),Um(i),n.classList.add(c),i.classList.add(c),this._queueCallback(()=>{i.classList.remove(c,l),i.classList.add(_g),n.classList.remove(_g,l,c),this._isSliding=!1,o(lg)},n,this._isAnimated()),s&&this.cycle()}_isAnimated(){return this._element.classList.contains(vg)}_getActive(){return Y.findOne(Tg,this._element)}_getItems(){return Y.find(wg,this._element)}_clearInterval(){this._interval&&=(clearInterval(this._interval),null)}_directionToOrder(e){return qm()?e===og?ag:ig:e===og?ig:ag}_orderToDirection(e){return qm()?e===ag?og:sg:e===ag?sg:og}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`number`){n.to(t);return}if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};J.on(document,hg,Og,function(e){let t=Y.getElementFromSelector(this);if(!t||!t.classList.contains(gg))return;e.preventDefault();let n=Ng.getOrCreateInstance(t),r=this.getAttribute(`data-bs-slide-to`);if(r){n.to(r),n._maybeEnableCycle();return}if(vh.getDataAttribute(this,`slide`)===`next`){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()}),J.on(window,mg,()=>{let e=Y.find(kg);for(let t of e)Ng.getOrCreateInstance(t)}),Jm(Ng);var Pg=`collapse`,Fg=`.bs.collapse`,Ig=`.data-api`,Lg=`show${Fg}`,Rg=`shown${Fg}`,zg=`hide${Fg}`,Bg=`hidden${Fg}`,Vg=`click${Fg}${Ig}`,Hg=`show`,Ug=`collapse`,Wg=`collapsing`,Gg=`collapsed`,Kg=`:scope .${Ug} .${Ug}`,qg=`collapse-horizontal`,Jg=`width`,Yg=`height`,Xg=`.collapse.show, .collapse.collapsing`,Zg=`[data-bs-toggle="collapse"]`,Qg={parent:null,toggle:!0},$g={parent:`(null|element)`,toggle:`boolean`},e_=class e extends xh{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];let n=Y.find(Zg);for(let e of n){let t=Y.getSelectorFromElement(e),n=Y.find(t).filter(e=>e===this._element);t!==null&&n.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Qg}static get DefaultType(){return $g}static get NAME(){return Pg}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(Xg).filter(e=>e!==this._element).map(t=>e.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning||J.trigger(this._element,Lg).defaultPrevented)return;for(let e of t)e.hide();let n=this._getDimension();this._element.classList.remove(Ug),this._element.classList.add(Wg),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let r=()=>{this._isTransitioning=!1,this._element.classList.remove(Wg),this._element.classList.add(Ug,Hg),this._element.style[n]=``,J.trigger(this._element,Rg)},i=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(r,this._element,!0),this._element.style[n]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown()||J.trigger(this._element,zg).defaultPrevented)return;let e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Um(this._element),this._element.classList.add(Wg),this._element.classList.remove(Ug,Hg);for(let e of this._triggerArray){let t=Y.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;let t=()=>{this._isTransitioning=!1,this._element.classList.remove(Wg),this._element.classList.add(Ug),J.trigger(this._element,Bg)};this._element.style[e]=``,this._queueCallback(t,this._element,!0)}_isShown(e=this._element){return e.classList.contains(Hg)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Rm(e.parent),e}_getDimension(){return this._element.classList.contains(qg)?Jg:Yg}_initializeChildren(){if(!this._config.parent)return;let e=this._getFirstLevelChildren(Zg);for(let t of e){let e=Y.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){let t=Y.find(Kg,this._config.parent);return Y.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(let n of e)n.classList.toggle(Gg,!t),n.setAttribute(`aria-expanded`,t)}static jQueryInterface(t){let n={};return typeof t==`string`&&/show|hide/.test(t)&&(n.toggle=!1),this.each(function(){let r=e.getOrCreateInstance(this,n);if(typeof t==`string`){if(r[t]===void 0)throw TypeError(`No method named "${t}"`);r[t]()}})}};J.on(document,Vg,Zg,function(e){(e.target.tagName===`A`||e.delegateTarget&&e.delegateTarget.tagName===`A`)&&e.preventDefault();for(let e of Y.getMultipleElementsFromSelector(this))e_.getOrCreateInstance(e,{toggle:!1}).toggle()}),Jm(e_);var t_=`dropdown`,n_=`.bs.dropdown`,r_=`.data-api`,i_=`Escape`,a_=`Tab`,o_=`ArrowUp`,s_=`ArrowDown`,c_=2,l_=`hide${n_}`,u_=`hidden${n_}`,d_=`show${n_}`,f_=`shown${n_}`,p_=`click${n_}${r_}`,m_=`keydown${n_}${r_}`,h_=`keyup${n_}${r_}`,g_=`show`,__=`dropup`,v_=`dropend`,y_=`dropstart`,b_=`dropup-center`,x_=`dropdown-center`,S_=`[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)`,C_=`${S_}.${g_}`,w_=`.dropdown-menu`,T_=`.navbar`,E_=`.navbar-nav`,D_=`.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)`,O_=qm()?`top-end`:`top-start`,k_=qm()?`top-start`:`top-end`,A_=qm()?`bottom-end`:`bottom-start`,j_=qm()?`bottom-start`:`bottom-end`,M_=qm()?`left-start`:`right-start`,N_=qm()?`right-start`:`left-start`,P_=`top`,F_=`bottom`,I_={autoClose:!0,boundary:`clippingParents`,display:`dynamic`,offset:[0,2],popperConfig:null,reference:`toggle`},L_={autoClose:`(boolean|string)`,boundary:`(string|element)`,display:`string`,offset:`(array|string|function)`,popperConfig:`(null|object|function)`,reference:`(string|element|object)`},R_=class e extends xh{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=Y.next(this._element,w_)[0]||Y.prev(this._element,w_)[0]||Y.findOne(w_,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return I_}static get DefaultType(){return L_}static get NAME(){return t_}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Bm(this._element)||this._isShown())return;let e={relatedTarget:this._element};if(!J.trigger(this._element,d_,e).defaultPrevented){if(this._createPopper(),`ontouchstart`in document.documentElement&&!this._parent.closest(E_))for(let e of[].concat(...document.body.children))J.on(e,`mouseover`,Hm);this._element.focus(),this._element.setAttribute(`aria-expanded`,!0),this._menu.classList.add(g_),this._element.classList.add(g_),J.trigger(this._element,f_,e)}}hide(){if(Bm(this._element)||!this._isShown())return;let e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!J.trigger(this._element,l_,e).defaultPrevented){if(`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))J.off(e,`mouseover`,Hm);this._popper&&this._popper.destroy(),this._menu.classList.remove(g_),this._element.classList.remove(g_),this._element.setAttribute(`aria-expanded`,`false`),vh.removeDataAttribute(this._menu,`popper`),J.trigger(this._element,u_,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference==`object`&&!Lm(e.reference)&&typeof e.reference.getBoundingClientRect!=`function`)throw TypeError(`${t_.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(Em===void 0)throw TypeError(`Bootstrap's dropdowns require Popper (https://popper.js.org)`);let e=this._element;this._config.reference===`parent`?e=this._parent:Lm(this._config.reference)?e=Rm(this._config.reference):typeof this._config.reference==`object`&&(e=this._config.reference);let t=this._getPopperConfig();this._popper=Tm(e,this._menu,t)}_isShown(){return this._menu.classList.contains(g_)}_getPlacement(){let e=this._parent;if(e.classList.contains(v_))return M_;if(e.classList.contains(y_))return N_;if(e.classList.contains(b_))return P_;if(e.classList.contains(x_))return F_;let t=getComputedStyle(this._menu).getPropertyValue(`--bs-position`).trim()===`end`;return e.classList.contains(__)?t?k_:O_:t?j_:A_}_detectNavbar(){return this._element.closest(T_)!==null}_getOffset(){let{offset:e}=this._config;return typeof e==`string`?e.split(`,`).map(e=>Number.parseInt(e,10)):typeof e==`function`?t=>e(t,this._element):e}_getPopperConfig(){let e={placement:this._getPlacement(),modifiers:[{name:`preventOverflow`,options:{boundary:this._config.boundary}},{name:`offset`,options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display===`static`)&&(vh.setDataAttribute(this._menu,`popper`,`static`),e.modifiers=[{name:`applyStyles`,enabled:!1}]),{...e,...Ym(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){let n=Y.find(D_,this._menu).filter(e=>zm(e));n.length&&Zm(n,t,e===s_,!n.includes(t)).focus()}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}static clearMenus(t){if(t.button===c_||t.type===`keyup`&&t.key!==a_)return;let n=Y.find(C_);for(let r of n){let n=e.getInstance(r);if(!n||n._config.autoClose===!1)continue;let i=t.composedPath(),a=i.includes(n._menu);if(i.includes(n._element)||n._config.autoClose===`inside`&&!a||n._config.autoClose===`outside`&&a||n._menu.contains(t.target)&&(t.type===`keyup`&&t.key===a_||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;let o={relatedTarget:n._element};t.type===`click`&&(o.clickEvent=t),n._completeHide(o)}}static dataApiKeydownHandler(t){let n=/input|textarea/i.test(t.target.tagName),r=t.key===i_,i=[o_,s_].includes(t.key);if(!i&&!r||n&&!r)return;t.preventDefault();let a=this.matches(S_)?this:Y.prev(this,S_)[0]||Y.next(this,S_)[0]||Y.findOne(S_,t.delegateTarget.parentNode),o=e.getOrCreateInstance(a);if(i){t.stopPropagation(),o.show(),o._selectMenuItem(t);return}o._isShown()&&(t.stopPropagation(),o.hide(),a.focus())}};J.on(document,m_,S_,R_.dataApiKeydownHandler),J.on(document,m_,w_,R_.dataApiKeydownHandler),J.on(document,p_,R_.clearMenus),J.on(document,h_,R_.clearMenus),J.on(document,p_,S_,function(e){e.preventDefault(),R_.getOrCreateInstance(this).toggle()}),Jm(R_);var z_=`backdrop`,B_=`fade`,V_=`show`,H_=`mousedown.bs.${z_}`,U_={className:`modal-backdrop`,clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:`body`},W_={className:`string`,clickCallback:`(function|null)`,isAnimated:`boolean`,isVisible:`boolean`,rootElement:`(element|string)`},G_=class extends yh{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return U_}static get DefaultType(){return W_}static get NAME(){return z_}show(e){if(!this._config.isVisible){Ym(e);return}this._append();let t=this._getElement();this._config.isAnimated&&Um(t),t.classList.add(V_),this._emulateAnimation(()=>{Ym(e)})}hide(e){if(!this._config.isVisible){Ym(e);return}this._getElement().classList.remove(V_),this._emulateAnimation(()=>{this.dispose(),Ym(e)})}dispose(){this._isAppended&&=(J.off(this._element,H_),this._element.remove(),!1)}_getElement(){if(!this._element){let e=document.createElement(`div`);e.className=this._config.className,this._config.isAnimated&&e.classList.add(B_),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Rm(e.rootElement),e}_append(){if(this._isAppended)return;let e=this._getElement();this._config.rootElement.append(e),J.on(e,H_,()=>{Ym(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){Xm(e,this._getElement(),this._config.isAnimated)}},K_=`focustrap`,q_=`.bs.focustrap`,J_=`focusin${q_}`,Y_=`keydown.tab${q_}`,X_=`Tab`,Z_=`forward`,Q_=`backward`,$_={autofocus:!0,trapElement:null},ev={autofocus:`boolean`,trapElement:`element`},tv=class extends yh{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return $_}static get DefaultType(){return ev}static get NAME(){return K_}activate(){this._isActive||=(this._config.autofocus&&this._config.trapElement.focus(),J.off(document,q_),J.on(document,J_,e=>this._handleFocusin(e)),J.on(document,Y_,e=>this._handleKeydown(e)),!0)}deactivate(){this._isActive&&(this._isActive=!1,J.off(document,q_))}_handleFocusin(e){let{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;let n=Y.focusableChildren(t);n.length===0?t.focus():this._lastTabNavDirection===Q_?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===X_&&(this._lastTabNavDirection=e.shiftKey?Q_:Z_)}},nv=`.fixed-top, .fixed-bottom, .is-fixed, .sticky-top`,rv=`.sticky-top`,iv=`padding-right`,av=`margin-right`,ov=class{constructor(){this._element=document.body}getWidth(){let e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){let e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,iv,t=>t+e),this._setElementAttributes(nv,iv,t=>t+e),this._setElementAttributes(rv,av,t=>t-e)}reset(){this._resetElementAttributes(this._element,`overflow`),this._resetElementAttributes(this._element,iv),this._resetElementAttributes(nv,iv),this._resetElementAttributes(rv,av)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,`overflow`),this._element.style.overflow=`hidden`}_setElementAttributes(e,t,n){let r=this.getWidth();this._applyManipulationCallback(e,e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+r)return;this._saveInitialAttribute(e,t);let i=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(i))}px`)})}_saveInitialAttribute(e,t){let n=e.style.getPropertyValue(t);n&&vh.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,e=>{let n=vh.getDataAttribute(e,t);if(n===null){e.style.removeProperty(t);return}vh.removeDataAttribute(e,t),e.style.setProperty(t,n)})}_applyManipulationCallback(e,t){if(Lm(e)){t(e);return}for(let n of Y.find(e,this._element))t(n)}},sv=`modal`,cv=`.bs.modal`,lv=`.data-api`,uv=`Escape`,dv=`hide${cv}`,fv=`hidePrevented${cv}`,pv=`hidden${cv}`,mv=`show${cv}`,hv=`shown${cv}`,gv=`resize${cv}`,_v=`click.dismiss${cv}`,vv=`mousedown.dismiss${cv}`,yv=`keydown.dismiss${cv}`,bv=`click${cv}${lv}`,xv=`modal-open`,Sv=`fade`,Cv=`show`,wv=`modal-static`,Tv=`.modal.show`,Ev=`.modal-dialog`,Dv=`.modal-body`,Ov=`[data-bs-toggle="modal"]`,kv={backdrop:!0,focus:!0,keyboard:!0},Av={backdrop:`(boolean|string)`,focus:`boolean`,keyboard:`boolean`},jv=class e extends xh{constructor(e,t){super(e,t),this._dialog=Y.findOne(Ev,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new ov,this._addEventListeners()}static get Default(){return kv}static get DefaultType(){return Av}static get NAME(){return sv}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||J.trigger(this._element,mv,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(xv),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||J.trigger(this._element,dv).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Cv),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){J.off(window,cv),J.off(this._dialog,cv),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new G_({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new tv({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display=`block`,this._element.removeAttribute(`aria-hidden`),this._element.setAttribute(`aria-modal`,!0),this._element.setAttribute(`role`,`dialog`),this._element.scrollTop=0;let t=Y.findOne(Dv,this._dialog);t&&(t.scrollTop=0),Um(this._element),this._element.classList.add(Cv),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,J.trigger(this._element,hv,{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){J.on(this._element,yv,e=>{if(e.key===uv){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),J.on(window,gv,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),J.on(this._element,vv,e=>{J.one(this._element,_v,t=>{if(!(this._element!==e.target||this._element!==t.target)){if(this._config.backdrop===`static`){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display=`none`,this._element.setAttribute(`aria-hidden`,!0),this._element.removeAttribute(`aria-modal`),this._element.removeAttribute(`role`),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(xv),this._resetAdjustments(),this._scrollBar.reset(),J.trigger(this._element,pv)})}_isAnimated(){return this._element.classList.contains(Sv)}_triggerBackdropTransition(){if(J.trigger(this._element,fv).defaultPrevented)return;let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;t===`hidden`||this._element.classList.contains(wv)||(e||(this._element.style.overflowY=`hidden`),this._element.classList.add(wv),this._queueCallback(()=>{this._element.classList.remove(wv),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;if(n&&!e){let e=qm()?`paddingLeft`:`paddingRight`;this._element.style[e]=`${t}px`}if(!n&&e){let e=qm()?`paddingRight`:`paddingLeft`;this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft=``,this._element.style.paddingRight=``}static jQueryInterface(t,n){return this.each(function(){let r=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(r[t]===void 0)throw TypeError(`No method named "${t}"`);r[t](n)}})}};J.on(document,bv,Ov,function(e){let t=Y.getElementFromSelector(this);[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),J.one(t,mv,e=>{e.defaultPrevented||J.one(t,pv,()=>{zm(this)&&this.focus()})});let n=Y.findOne(Tv);n&&jv.getInstance(n).hide(),jv.getOrCreateInstance(t).toggle(this)}),Ch(jv),Jm(jv);var Mv=`offcanvas`,Nv=`.bs.offcanvas`,Pv=`.data-api`,Fv=`load${Nv}${Pv}`,Iv=`Escape`,Lv=`show`,Rv=`showing`,zv=`hiding`,Bv=`offcanvas-backdrop`,Vv=`.offcanvas.show`,Hv=`show${Nv}`,Uv=`shown${Nv}`,Wv=`hide${Nv}`,Gv=`hidePrevented${Nv}`,Kv=`hidden${Nv}`,qv=`resize${Nv}`,Jv=`click${Nv}${Pv}`,Yv=`keydown.dismiss${Nv}`,Xv=`[data-bs-toggle="offcanvas"]`,Zv={backdrop:!0,keyboard:!0,scroll:!1},Qv={backdrop:`(boolean|string)`,keyboard:`boolean`,scroll:`boolean`},$v=class e extends xh{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Zv}static get DefaultType(){return Qv}static get NAME(){return Mv}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||J.trigger(this._element,Hv,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new ov().hide(),this._element.setAttribute(`aria-modal`,!0),this._element.setAttribute(`role`,`dialog`),this._element.classList.add(Rv),this._queueCallback(()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Lv),this._element.classList.remove(Rv),J.trigger(this._element,Uv,{relatedTarget:e})},this._element,!0))}hide(){!this._isShown||J.trigger(this._element,Wv).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(zv),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(Lv,zv),this._element.removeAttribute(`aria-modal`),this._element.removeAttribute(`role`),this._config.scroll||new ov().reset(),J.trigger(this._element,Kv)},this._element,!0))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){let e=()=>{if(this._config.backdrop===`static`){J.trigger(this._element,Gv);return}this.hide()},t=!!this._config.backdrop;return new G_({className:Bv,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new tv({trapElement:this._element})}_addEventListeners(){J.on(this._element,Yv,e=>{if(e.key===Iv){if(this._config.keyboard){this.hide();return}J.trigger(this._element,Gv)}})}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t](this)}})}};J.on(document,Jv,Xv,function(e){let t=Y.getElementFromSelector(this);if([`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),Bm(this))return;J.one(t,Kv,()=>{zm(this)&&this.focus()});let n=Y.findOne(Vv);n&&n!==t&&$v.getInstance(n).hide(),$v.getOrCreateInstance(t).toggle(this)}),J.on(window,Fv,()=>{for(let e of Y.find(Vv))$v.getOrCreateInstance(e).show()}),J.on(window,qv,()=>{for(let e of Y.find(`[aria-modal][class*=show][class*=offcanvas-]`))getComputedStyle(e).position!==`fixed`&&$v.getOrCreateInstance(e).hide()}),Ch($v),Jm($v);var ey=/^aria-[\w-]*$/i,ty={"*":[`class`,`dir`,`id`,`lang`,`role`,ey],a:[`target`,`href`,`title`,`rel`],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:[`src`,`srcset`,`alt`,`title`,`width`,`height`],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},ny=new Set([`background`,`cite`,`href`,`itemtype`,`longdesc`,`poster`,`src`,`xlink:href`]),ry=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,iy=(e,t)=>{let n=e.nodeName.toLowerCase();return t.includes(n)?ny.has(n)?!!ry.test(e.nodeValue):!0:t.filter(e=>e instanceof RegExp).some(e=>e.test(n))};function ay(e,t,n){if(!e.length)return e;if(n&&typeof n==`function`)return n(e);let r=new window.DOMParser().parseFromString(e,`text/html`),i=[].concat(...r.body.querySelectorAll(`*`));for(let e of i){let n=e.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){e.remove();continue}let r=[].concat(...e.attributes),i=[].concat(t[`*`]||[],t[n]||[]);for(let t of r)iy(t,i)||e.removeAttribute(t.nodeName)}return r.body.innerHTML}var oy=`TemplateFactory`,sy={allowList:ty,content:{},extraClass:``,html:!1,sanitize:!0,sanitizeFn:null,template:`<div></div>`},cy={allowList:`object`,content:`object`,extraClass:`(string|function)`,html:`boolean`,sanitize:`boolean`,sanitizeFn:`(null|function)`,template:`string`},ly={entry:`(string|element|function|null)`,selector:`(string|element)`},uy=class extends yh{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return sy}static get DefaultType(){return cy}static get NAME(){return oy}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){let e=document.createElement(`div`);e.innerHTML=this._maybeSanitize(this._config.template);for(let[t,n]of Object.entries(this._config.content))this._setContent(e,n,t);let t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(` `)),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(let[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},ly)}_setContent(e,t,n){let r=Y.findOne(n,e);if(r){if(t=this._resolvePossibleFunction(t),!t){r.remove();return}if(Lm(t)){this._putElementInTemplate(Rm(t),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(t);return}r.textContent=t}}_maybeSanitize(e){return this._config.sanitize?ay(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Ym(e,[this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML=``,t.append(e);return}t.textContent=e.textContent}},dy=`tooltip`,fy=new Set([`sanitize`,`allowList`,`sanitizeFn`]),py=`fade`,my=`modal`,hy=`show`,gy=`.tooltip-inner`,_y=`.${my}`,vy=`hide.bs.modal`,yy=`hover`,by=`focus`,xy=`click`,Sy=`manual`,Cy=`hide`,wy=`hidden`,Ty=`show`,Ey=`shown`,Dy=`inserted`,Oy=`click`,ky=`focusin`,Ay=`focusout`,jy=`mouseenter`,My=`mouseleave`,Ny={AUTO:`auto`,TOP:`top`,RIGHT:qm()?`left`:`right`,BOTTOM:`bottom`,LEFT:qm()?`right`:`left`},Py={allowList:ty,animation:!0,boundary:`clippingParents`,container:!1,customClass:``,delay:0,fallbackPlacements:[`top`,`right`,`bottom`,`left`],html:!1,offset:[0,6],placement:`top`,popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:`<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>`,title:``,trigger:`hover focus`},Fy={allowList:`object`,animation:`boolean`,boundary:`(string|element)`,container:`(string|element|boolean)`,customClass:`(string|function)`,delay:`(number|object)`,fallbackPlacements:`array`,html:`boolean`,offset:`(array|string|function)`,placement:`(string|function)`,popperConfig:`(null|object|function)`,sanitize:`boolean`,sanitizeFn:`(null|function)`,selector:`(string|boolean)`,template:`string`,title:`(string|element|function)`,trigger:`string`},Iy=class e extends xh{constructor(e,t){if(Em===void 0)throw TypeError(`Bootstrap's tooltips require Popper (https://popper.js.org)`);super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Py}static get DefaultType(){return Fy}static get NAME(){return dy}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),J.off(this._element.closest(_y),vy,this._hideModalHandler),this._element.getAttribute(`data-bs-original-title`)&&this._element.setAttribute(`title`,this._element.getAttribute(`data-bs-original-title`)),this._disposePopper(),super.dispose()}show(){if(this._element.style.display===`none`)throw Error(`Please use show on visible elements`);if(!(this._isWithContent()&&this._isEnabled))return;let e=J.trigger(this._element,this.constructor.eventName(Ty)),t=(Vm(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();let n=this._getTipElement();this._element.setAttribute(`aria-describedby`,n.getAttribute(`id`));let{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(n),J.trigger(this._element,this.constructor.eventName(Dy))),this._popper=this._createPopper(n),n.classList.add(hy),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))J.on(e,`mouseover`,Hm);this._queueCallback(()=>{J.trigger(this._element,this.constructor.eventName(Ey)),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(!(!this._isShown()||J.trigger(this._element,this.constructor.eventName(Cy)).defaultPrevented)){if(this._getTipElement().classList.remove(hy),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))J.off(e,`mouseover`,Hm);this._activeTrigger[xy]=!1,this._activeTrigger[by]=!1,this._activeTrigger[yy]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute(`aria-describedby`),J.trigger(this._element,this.constructor.eventName(wy)))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||=this._createTipElement(this._newContent||this._getContentForTemplate()),this.tip}_createTipElement(e){let t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(py,hy),t.classList.add(`bs-${this.constructor.NAME}-auto`);let n=Pm(this.constructor.NAME).toString();return t.setAttribute(`id`,n),this._isAnimated()&&t.classList.add(py),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new uy({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[gy]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute(`data-bs-original-title`)}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(py)}_isShown(){return this.tip&&this.tip.classList.contains(hy)}_createPopper(e){let t=Ny[Ym(this._config.placement,[this,e,this._element]).toUpperCase()];return Tm(this._element,e,this._getPopperConfig(t))}_getOffset(){let{offset:e}=this._config;return typeof e==`string`?e.split(`,`).map(e=>Number.parseInt(e,10)):typeof e==`function`?t=>e(t,this._element):e}_resolvePossibleFunction(e){return Ym(e,[this._element])}_getPopperConfig(e){let t={placement:e,modifiers:[{name:`flip`,options:{fallbackPlacements:this._config.fallbackPlacements}},{name:`offset`,options:{offset:this._getOffset()}},{name:`preventOverflow`,options:{boundary:this._config.boundary}},{name:`arrow`,options:{element:`.${this.constructor.NAME}-arrow`}},{name:`preSetPlacement`,enabled:!0,phase:`beforeMain`,fn:e=>{this._getTipElement().setAttribute(`data-popper-placement`,e.state.placement)}}]};return{...t,...Ym(this._config.popperConfig,[t])}}_setListeners(){let e=this._config.trigger.split(` `);for(let t of e)if(t===`click`)J.on(this._element,this.constructor.eventName(Oy),this._config.selector,e=>{this._initializeOnDelegatedTarget(e).toggle()});else if(t!==Sy){let e=t===yy?this.constructor.eventName(jy):this.constructor.eventName(ky),n=t===yy?this.constructor.eventName(My):this.constructor.eventName(Ay);J.on(this._element,e,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusin`?by:yy]=!0,t._enter()}),J.on(this._element,n,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusout`?by:yy]=t._element.contains(e.relatedTarget),t._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},J.on(this._element.closest(_y),vy,this._hideModalHandler)}_fixTitle(){let e=this._element.getAttribute(`title`);e&&(!this._element.getAttribute(`aria-label`)&&!this._element.textContent.trim()&&this._element.setAttribute(`aria-label`,e),this._element.setAttribute(`data-bs-original-title`,e),this._element.removeAttribute(`title`))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){let t=vh.getDataAttributes(this._element);for(let e of Object.keys(t))fy.has(e)&&delete t[e];return e={...t,...typeof e==`object`&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:Rm(e.container),typeof e.delay==`number`&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title==`number`&&(e.title=e.title.toString()),typeof e.content==`number`&&(e.content=e.content.toString()),e}_getDelegateConfig(){let e={};for(let[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger=`manual`,e}_disposePopper(){this._popper&&=(this._popper.destroy(),null),this.tip&&=(this.tip.remove(),null)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}};Jm(Iy);var Ly=`popover`,Ry=`.popover-header`,zy=`.popover-body`,By={...Iy.Default,content:``,offset:[0,8],placement:`right`,template:`<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>`,trigger:`click`},Vy={...Iy.DefaultType,content:`(null|string|element|function)`};Jm(class e extends Iy{static get Default(){return By}static get DefaultType(){return Vy}static get NAME(){return Ly}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Ry]:this._getTitle(),[zy]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}});var Hy=`scrollspy`,Uy=`.bs.scrollspy`,Wy=`.data-api`,Gy=`activate${Uy}`,Ky=`click${Uy}`,qy=`load${Uy}${Wy}`,Jy=`dropdown-item`,Yy=`active`,Xy=`[data-bs-spy="scroll"]`,Zy=`[href]`,Qy=`.nav, .list-group`,$y=`.nav-link`,eb=`${$y}, .nav-item > ${$y}, .list-group-item`,tb=`.dropdown`,nb=`.dropdown-toggle`,rb={offset:null,rootMargin:`0px 0px -25%`,smoothScroll:!1,target:null,threshold:[.1,.5,1]},ib={offset:`(number|null)`,rootMargin:`string`,smoothScroll:`boolean`,target:`element`,threshold:`array`},ab=class e extends xh{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY===`visible`?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return rb}static get DefaultType(){return ib}static get NAME(){return Hy}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(let e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Rm(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold==`string`&&(e.threshold=e.threshold.split(`,`).map(e=>Number.parseFloat(e))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(J.off(this._config.target,Ky),J.on(this._config.target,Ky,Zy,e=>{let t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();let n=this._rootElement||window,r=t.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:r,behavior:`smooth`});return}n.scrollTop=r}}))}_getNewObserver(){let e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),e)}_observerCallback(e){let t=e=>this._targetLinks.get(`#${e.target.id}`),n=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},r=(this._rootElement||document.documentElement).scrollTop,i=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(let a of e){if(!a.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(a));continue}let e=a.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&e){if(n(a),!r)return;continue}!i&&!e&&n(a)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let e=Y.find(Zy,this._config.target);for(let t of e){if(!t.hash||Bm(t))continue;let e=Y.findOne(decodeURI(t.hash),this._element);zm(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(Yy),this._activateParents(e),J.trigger(this._element,Gy,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(Jy)){Y.findOne(nb,e.closest(tb)).classList.add(Yy);return}for(let t of Y.parents(e,Qy))for(let e of Y.prev(t,eb))e.classList.add(Yy)}_clearActiveClass(e){e.classList.remove(Yy);let t=Y.find(`${Zy}.${Yy}`,e);for(let e of t)e.classList.remove(Yy)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};J.on(window,qy,()=>{for(let e of Y.find(Xy))ab.getOrCreateInstance(e)}),Jm(ab);var ob=`tab`,sb=`.bs.tab`,cb=`hide${sb}`,lb=`hidden${sb}`,ub=`show${sb}`,db=`shown${sb}`,fb=`click${sb}`,pb=`keydown${sb}`,mb=`load${sb}`,hb=`ArrowLeft`,gb=`ArrowRight`,_b=`ArrowUp`,vb=`ArrowDown`,yb=`Home`,bb=`End`,xb=`active`,Sb=`fade`,Cb=`show`,wb=`dropdown`,Tb=`.dropdown-toggle`,Eb=`.dropdown-menu`,Db=`:not(${Tb})`,Ob=`.list-group, .nav, [role="tablist"]`,kb=`.nav-item, .list-group-item`,Ab=`.nav-link${Db}, .list-group-item${Db}, [role="tab"]${Db}`,jb=`[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]`,Mb=`${Ab}, ${jb}`,Nb=`.${xb}[data-bs-toggle="tab"], .${xb}[data-bs-toggle="pill"], .${xb}[data-bs-toggle="list"]`,Pb=class e extends xh{constructor(e){super(e),this._parent=this._element.closest(Ob),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),J.on(this._element,pb,e=>this._keydown(e)))}static get NAME(){return ob}show(){let e=this._element;if(this._elemIsActive(e))return;let t=this._getActiveElem(),n=t?J.trigger(t,cb,{relatedTarget:e}):null;J.trigger(e,ub,{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(xb),this._activate(Y.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.add(Cb);return}e.removeAttribute(`tabindex`),e.setAttribute(`aria-selected`,!0),this._toggleDropDown(e,!0),J.trigger(e,db,{relatedTarget:t})},e,e.classList.contains(Sb)))}_deactivate(e,t){e&&(e.classList.remove(xb),e.blur(),this._deactivate(Y.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.remove(Cb);return}e.setAttribute(`aria-selected`,!1),e.setAttribute(`tabindex`,`-1`),this._toggleDropDown(e,!1),J.trigger(e,lb,{relatedTarget:t})},e,e.classList.contains(Sb)))}_keydown(t){if(![hb,gb,_b,vb,yb,bb].includes(t.key))return;t.stopPropagation(),t.preventDefault();let n=this._getChildren().filter(e=>!Bm(e)),r;if([yb,bb].includes(t.key))r=n[t.key===yb?0:n.length-1];else{let e=[gb,vb].includes(t.key);r=Zm(n,t.target,e,!0)}r&&(r.focus({preventScroll:!0}),e.getOrCreateInstance(r).show())}_getChildren(){return Y.find(Mb,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,`role`,`tablist`);for(let e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);let t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute(`aria-selected`,t),n!==e&&this._setAttributeIfNotExists(n,`role`,`presentation`),t||e.setAttribute(`tabindex`,`-1`),this._setAttributeIfNotExists(e,`role`,`tab`),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){let t=Y.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,`role`,`tabpanel`),e.id&&this._setAttributeIfNotExists(t,`aria-labelledby`,`${e.id}`))}_toggleDropDown(e,t){let n=this._getOuterElement(e);if(!n.classList.contains(wb))return;let r=(e,r)=>{let i=Y.findOne(e,n);i&&i.classList.toggle(r,t)};r(Tb,xb),r(Eb,Cb),n.setAttribute(`aria-expanded`,t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(xb)}_getInnerElement(e){return e.matches(Mb)?e:Y.findOne(Mb,e)}_getOuterElement(e){return e.closest(kb)||e}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};J.on(document,fb,jb,function(e){[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),!Bm(this)&&Pb.getOrCreateInstance(this).show()}),J.on(window,mb,()=>{for(let e of Y.find(Nb))Pb.getOrCreateInstance(e)}),Jm(Pb);var Fb=`toast`,Ib=`.bs.toast`,Lb=`mouseover${Ib}`,Rb=`mouseout${Ib}`,zb=`focusin${Ib}`,Bb=`focusout${Ib}`,Vb=`hide${Ib}`,Hb=`hidden${Ib}`,Ub=`show${Ib}`,Wb=`shown${Ib}`,Gb=`fade`,Kb=`hide`,qb=`show`,Jb=`showing`,Yb={animation:`boolean`,autohide:`boolean`,delay:`number`},Xb={animation:!0,autohide:!0,delay:5e3},Zb=class e extends xh{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Xb}static get DefaultType(){return Yb}static get NAME(){return Fb}show(){J.trigger(this._element,Ub).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add(Gb),this._element.classList.remove(Kb),Um(this._element),this._element.classList.add(qb,Jb),this._queueCallback(()=>{this._element.classList.remove(Jb),J.trigger(this._element,Wb),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){!this.isShown()||J.trigger(this._element,Vb).defaultPrevented||(this._element.classList.add(Jb),this._queueCallback(()=>{this._element.classList.add(Kb),this._element.classList.remove(Jb,qb),J.trigger(this._element,Hb)},this._element,this._config.animation))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(qb),super.dispose()}isShown(){return this._element.classList.contains(qb)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case`mouseover`:case`mouseout`:this._hasMouseInteraction=t;break;case`focusin`:case`focusout`:this._hasKeyboardInteraction=t;break}if(t){this._clearTimeout();return}let n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){J.on(this._element,Lb,e=>this._onInteraction(e,!0)),J.on(this._element,Rb,e=>this._onInteraction(e,!1)),J.on(this._element,zb,e=>this._onInteraction(e,!0)),J.on(this._element,Bb,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t](this)}})}};Ch(Zb),Jm(Zb);var Qb=g(Oe());Me();var $b=class extends P{constructor(){super(),this.viewObjects={}}static get Instance(){return this.instance||=new this}get name(){return`ViewModelService`}updateViewModel(e,t){let n=this.mergeData(t,e.toJSON());return e instanceof h&&e.set(n,{silent:!0}),e instanceof N&&!(e instanceof h)&&e.set(n,{silent:!0}),e}get(e,t={},n={}){let{update:r=!1}=n,i=this.viewObjects[e];if(i&&r)return this.updateViewModel(i,t);if(i)return i;let a=this.getLocalData(e,n);return this.set(e,t,a,n)}set(e,t={},n,r){let{ctor:i,storage:a}=r,o=this.mergeData(t,n),s=i?new i(o):new N(o);return this.viewObjects[e]=s,a&&!n?(this.setLocalData(e,s,null,r),this.setupChangeListeners(e,s,r)):a&&n&&this.setupChangeListeners(e,s,r),s}clear(e){let t=this.viewObjects[e];return t?(this.stopListening(t),t.trigger(`destroy`),delete this.viewObjects[e],!0):!1}getLocalData(e,t){let{storage:n}=t;if(n)return this.getStorageHelper(n.type).get(e)}setLocalData(e,t,n,r){let{storage:i}=r;if(!i||i&&!i.persistProps)return;typeof i.persistProps==`string`&&(i.persistProps=[i.persistProps]);let a;t instanceof N&&(a=t.pick(i.persistProps)),this.getStorageHelper(i.type).set(e,a)}setupChangeListeners(e,t,n){let{storage:r}=n;!r||r&&!r.persistProps||(typeof r.persistProps==`string`&&(r.persistProps=[r.persistProps]),oe.each(r.persistProps,r=>{this.listenTo(t,`change:${r}`,oe.partial(this.setLocalData,e,oe,oe,n))}))}mergeData(e,t){if(!t)return e;if(oe.isObject(e)&&oe.isObject(t))return oe.extend(e,t);R.throw(new y(`defaultValues and existingData are not of the same datatype and cannot be merged`))}getStorageHelper(e){switch(e){case cn.LocalStorage:return rn;case cn.SessionStorage:return on}}}.Instance,ex=`application:options`;Me();var tx=class extends P{constructor(e){super(),this.clients={},this.enrichers={},$b.get(ex).set(e??{})}get name(){return je.Analytics}registerTransport(e,t){return this.transport=new e(t),this.bindTransportListeners(),this}bindTransportListeners(){this.listenTo(ve.ANALYTICS,Ee.Inlet,this.onEvent)}registerClient(e,t){return this.validateConstructor(e),this.clients[e.prototype.name]=e.prototype.name,this.transport.subscribe(new e(t)),this}registerEnricher(e,t){this.validateConstructor(e);let n=new e(t);return this.enrichers[n.name]=n,this.registerMiddleware(l(n.enrich,n)),this}hasEnricher(e){return!!this.enrichers[e.prototype.name]}onEvent(e){this.executeMiddleware(e,e=>{this.transport.publish(e)})}validateConstructor(e){let t=e.prototype.name;t||R.throw(new y(`Classes registered with ${this.name} must have a unique name property.`));let n=t=>kt.isFunction(e.prototype.isType)&&e.prototype.isType(t);(n(`BaseAnalyticsClient`)||t===`CollectionApiClient`)&&this.clients[t]&&R.throw(new y(`A client class with the name: ${t} has already been registered with ${this.name}`)),n(`BaseAnalyticsEnricher`)&&this.enrichers[t]&&R.throw(new y(`An enricher class named: ${t} has already been registered with ${this.name}`))}registerMiddleware(e){this.executeMiddleware=(t=>(n,r)=>t(n,()=>e(n,r)))(this.executeMiddleware)}executeMiddleware(e,t){t(e)}},nx=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,rx=`UINT8ARRAY not supported by this environment`;function ix(e,t,n,r){let i,a,o,s=t||[0],c=(n||=0)>>>3,l=r===-1?3:0;for(i=0;i<e.length;i+=1)o=i+c,a=o>>>2,s.length<=a&&s.push(0),s[a]|=e[i]<<8*(l+o%4*r);return{value:s,binLen:8*e.length+n}}function ax(e,t,n){switch(t){case`UTF8`:case`UTF16BE`:case`UTF16LE`:break;default:throw Error(`encoding must be UTF8, UTF16BE, or UTF16LE`)}switch(e){case`HEX`:return function(e,t,r){return function(e,t,n,r){let i,a,o,s;if(e.length%2!=0)throw Error(`String of HEX type must be in byte increments`);let c=t||[0],l=(n||=0)>>>3,u=r===-1?3:0;for(i=0;i<e.length;i+=2){if(a=parseInt(e.substr(i,2),16),isNaN(a))throw Error(`String of HEX type contains invalid characters`);for(s=(i>>>1)+l,o=s>>>2;c.length<=o;)c.push(0);c[o]|=a<<8*(u+s%4*r)}return{value:c,binLen:4*e.length+n}}(e,t,r,n)};case`TEXT`:return function(e,r,i){return function(e,t,n,r,i){let a,o,s,c,l,u,d,f,p=0,m=n||[0],h=(r||=0)>>>3;if(t===`UTF8`)for(d=i===-1?3:0,s=0;s<e.length;s+=1)for(a=e.charCodeAt(s),o=[],128>a?o.push(a):2048>a?(o.push(192|a>>>6),o.push(128|63&a)):55296>a||57344<=a?o.push(224|a>>>12,128|a>>>6&63,128|63&a):(s+=1,a=65536+((1023&a)<<10|1023&e.charCodeAt(s)),o.push(240|a>>>18,128|a>>>12&63,128|a>>>6&63,128|63&a)),c=0;c<o.length;c+=1){for(u=p+h,l=u>>>2;m.length<=l;)m.push(0);m[l]|=o[c]<<8*(d+u%4*i),p+=1}else for(d=i===-1?2:0,f=t===`UTF16LE`&&i!==1||t!==`UTF16LE`&&i===1,s=0;s<e.length;s+=1){for(a=e.charCodeAt(s),!0===f&&(c=255&a,a=c<<8|a>>>8),u=p+h,l=u>>>2;m.length<=l;)m.push(0);m[l]|=a<<8*(d+u%4*i),p+=2}return{value:m,binLen:8*p+r}}(e,t,r,i,n)};case`B64`:return function(e,t,r){return function(e,t,n,r){let i,a,o,s,c,l,u,d=0,f=t||[0],p=(n||=0)>>>3,m=r===-1?3:0,h=e.indexOf(`=`);if(e.search(/^[a-zA-Z0-9=+/]+$/)===-1)throw Error(`Invalid character in base-64 string`);if(e=e.replace(/=/g,``),h!==-1&&h<e.length)throw Error(`Invalid '=' found in base-64 string`);for(a=0;a<e.length;a+=4){for(c=e.substr(a,4),s=0,o=0;o<c.length;o+=1)i=nx.indexOf(c.charAt(o)),s|=i<<18-6*o;for(o=0;o<c.length-1;o+=1){for(u=d+p,l=u>>>2;f.length<=l;)f.push(0);f[l]|=(s>>>16-8*o&255)<<8*(m+u%4*r),d+=1}}return{value:f,binLen:8*d+n}}(e,t,r,n)};case`BYTES`:return function(e,t,r){return function(e,t,n,r){let i,a,o,s,c=t||[0],l=(n||=0)>>>3,u=r===-1?3:0;for(a=0;a<e.length;a+=1)i=e.charCodeAt(a),s=a+l,o=s>>>2,c.length<=o&&c.push(0),c[o]|=i<<8*(u+s%4*r);return{value:c,binLen:8*e.length+n}}(e,t,r,n)};case`ARRAYBUFFER`:return function(e,t,r){return function(e,t,n,r){return ix(new Uint8Array(e),t,n,r)}(e,t,r,n)};case`UINT8ARRAY`:try{new Uint8Array}catch{throw Error(rx)}return function(e,t,r){return ix(e,t,r,n)};default:throw Error(`format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY`)}}function ox(e,t,n,r){switch(e){case`HEX`:return function(e){return function(e,t,n,r){let i=`0123456789abcdef`,a,o,s=``,c=t/8,l=n===-1?3:0;for(a=0;a<c;a+=1)o=e[a>>>2]>>>8*(l+a%4*n),s+=i.charAt(o>>>4&15)+i.charAt(15&o);return r.outputUpper?s.toUpperCase():s}(e,t,n,r)};case`B64`:return function(e){return function(e,t,n,r){let i,a,o,s,c,l=``,u=t/8,d=n===-1?3:0;for(i=0;i<u;i+=3)for(s=i+1<u?e[i+1>>>2]:0,c=i+2<u?e[i+2>>>2]:0,o=(e[i>>>2]>>>8*(d+i%4*n)&255)<<16|(s>>>8*(d+n*((i+1)%4))&255)<<8|c>>>8*(d+n*((i+2)%4))&255,a=0;a<4;a+=1)l+=8*i+6*a<=t?nx.charAt(o>>>6*(3-a)&63):r.b64Pad;return l}(e,t,n,r)};case`BYTES`:return function(e){return function(e,t,n){let r,i,a=``,o=t/8,s=n===-1?3:0;for(r=0;r<o;r+=1)i=e[r>>>2]>>>8*(s+r%4*n)&255,a+=String.fromCharCode(i);return a}(e,t,n)};case`ARRAYBUFFER`:return function(e){return function(e,t,n){let r,i=t/8,a=new ArrayBuffer(i),o=new Uint8Array(a),s=n===-1?3:0;for(r=0;r<i;r+=1)o[r]=e[r>>>2]>>>8*(s+r%4*n)&255;return a}(e,t,n)};case`UINT8ARRAY`:try{new Uint8Array}catch{throw Error(rx)}return function(e){return function(e,t,n){let r,i=t/8,a=n===-1?3:0,o=new Uint8Array(i);for(r=0;r<i;r+=1)o[r]=e[r>>>2]>>>8*(a+r%4*n)&255;return o}(e,t,n)};default:throw Error(`format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY`)}}function sx(e){let t={outputUpper:!1,b64Pad:`=`,outputLen:-1},n=e||{},r=`Output length must be a multiple of 8`;if(t.outputUpper=n.outputUpper||!1,n.b64Pad&&(t.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw Error(r);t.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw Error(r);t.outputLen=n.shakeLen}if(typeof t.outputUpper!=`boolean`)throw Error(`Invalid outputUpper formatting option`);if(typeof t.b64Pad!=`string`)throw Error(`Invalid b64Pad formatting option`);return t}var cx=class{constructor(e,t,n){let r=n||{};if(this.t=t,this.i=r.encoding||`UTF8`,this.numRounds=r.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw Error(`numRounds must a integer >= 1`);this.o=e,this.h=[],this.u=0,this.l=!1,this.A=0,this.p=!1,this.U=[],this.R=[]}update(e){let t,n=0,r=this.T>>>5,i=this.F(e,this.h,this.u),a=i.binLen,o=i.value,s=a>>>5;for(t=0;t<s;t+=r)n+this.T<=a&&(this.m=this.g(o.slice(t,t+r),this.m),n+=this.T);return this.A+=n,this.h=o.slice(n>>>5),this.u=a%this.T,this.l=!0,this}getHash(e,t){let n,r,i=this.B,a=sx(t);if(this.v){if(a.outputLen===-1)throw Error(`Output length must be specified in options`);i=a.outputLen}let o=ox(e,i,this.H,a);if(this.p&&this.C)return o(this.C(a));for(r=this.Y(this.h.slice(),this.u,this.A,this.I(this.m),i),n=1;n<this.numRounds;n+=1)this.v&&i%32!=0&&(r[r.length-1]&=16777215>>>24-i%32),r=this.Y(r,i,0,this.L(this.o),i);return o(r)}setHMACKey(e,t,n){if(!this.M)throw Error(`Variant does not support HMAC`);if(this.l)throw Error(`Cannot set MAC key after calling update`);let r=ax(t,(n||{}).encoding||`UTF8`,this.H);this.N(r(e))}N(e){let t=this.T>>>3,n=t/4-1,r;if(this.numRounds!==1)throw Error(`Cannot set numRounds with MAC`);if(this.p)throw Error(`MAC key already set`);for(t<e.binLen/8&&(e.value=this.Y(e.value,e.binLen,0,this.L(this.o),this.B));e.value.length<=n;)e.value.push(0);for(r=0;r<=n;r+=1)this.U[r]=909522486^e.value[r],this.R[r]=1549556828^e.value[r];this.m=this.g(this.U,this.m),this.A=this.T,this.p=!0}getHMAC(e,t){let n=sx(t);return ox(e,this.B,this.H,n)(this.S())}S(){let e;if(!this.p)throw Error(`Cannot call getHMAC without first setting MAC key`);let t=this.Y(this.h.slice(),this.u,this.A,this.I(this.m),this.B);return e=this.g(this.R,this.L(this.o)),e=this.Y(t,this.B,this.T,e,this.B),e}};function lx(e,t){return e<<t|e>>>32-t}function ux(e,t,n){return e^t^n}function dx(e,t,n){return e&t^e&n^t&n}function fx(e,t){let n=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(n>>>16))<<16|65535&n}function px(e,t,n,r,i){let a=(65535&e)+(65535&t)+(65535&n)+(65535&r)+(65535&i);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(i>>>16)+(a>>>16))<<16|65535&a}function mx(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function hx(e,t){let n,r,i,a,o,s,c,l=[];for(n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],c=0;c<80;c+=1)l[c]=c<16?e[c]:lx(l[c-3]^l[c-8]^l[c-14]^l[c-16],1),s=c<20?px(lx(n,5),(u=r)&i^~u&a,o,1518500249,l[c]):c<40?px(lx(n,5),ux(r,i,a),o,1859775393,l[c]):c<60?px(lx(n,5),dx(r,i,a),o,2400959708,l[c]):px(lx(n,5),ux(r,i,a),o,3395469782,l[c]),o=a,a=i,i=lx(r,30),r=n,n=s;var u;return t[0]=fx(n,t[0]),t[1]=fx(r,t[1]),t[2]=fx(i,t[2]),t[3]=fx(a,t[3]),t[4]=fx(o,t[4]),t}function gx(e,t,n,r){let i,a=15+(t+65>>>9<<4),o=t+n;for(;e.length<=a;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[a]=4294967295&o,e[a-1]=o/4294967296|0,i=0;i<e.length;i+=16)r=hx(e.slice(i,i+16),r);return r}var _x=class extends cx{constructor(e,t,n){if(e!==`SHA-1`)throw Error(`Chosen SHA variant is not supported`);super(e,t,n);let r=n||{};this.M=!0,this.C=this.S,this.H=-1,this.F=ax(this.t,this.i,this.H),this.g=hx,this.I=function(e){return e.slice()},this.L=mx,this.Y=gx,this.m=[1732584193,4023233417,2562383102,271733878,3285377520],this.T=512,this.B=160,this.v=!1,r.hmacKey&&this.N(function(e,t,n,r){let i=e+` must include a value and format`;if(!t){if(!r)throw Error(i);return r}if(t.value===void 0||!t.format)throw Error(i);return ax(t.format,t.encoding||`UTF8`,n)(t.value)}(`hmacKey`,r.hmacKey,this.H))}},vx=function(e){return e.CvApSoutheast1=`cv-ap-southeast-1`,e.CvApSoutheast2=`cv-ap-southeast-2`,e.CvEuWest1=`cv-eu-west-1`,e.CvNaWest1=`cv-na-west-1`,e}({}),yx={CvApSoutheast1:{systemName:vx.CvApSoutheast1},CvApSoutheast2:{systemName:vx.CvApSoutheast2},CvEuWest1:{systemName:vx.CvEuWest1},CvNaWest1:{systemName:vx.CvNaWest1}},bx=function(e){return e.Staff=`Staff`,e.Learner=`Learner`,e.Unknown=`Unknown`,e.System=`System`,e}({}),xx=`r`,Sx=`cv:r`,Cx=`cv:r:e`,wx=`referrer`,Tx=`cv:originalReferrer`,Ex=28800,Dx=[`internalReferrer`],Ox={getDecodedAttributionData(){let e=rn.cacheGet(Sx);return e&&Object.keys(e).length>0?e:kx()?.decoded},getEncodedAttributionData(){let e=rn.cacheGet(Cx);return e?.length?e:kx().encoded},getProfileId(){return Ox.getDecodedAttributionData()?.profileId??null},setAttributionData(e){e&&Fx(Px(e),e)},decodeRValue(e){if(e)try{let t=atob(e),n=JSON.parse(t);if(!jx(n))throw Error(`Decoded R value is invalid: ${JSON.stringify(n)}`);return n}catch(e){let t=e instanceof Error?e.message:e?.toString();console.error(t)}}};function kx(){let e=rn.cacheGet(Sx),t=rn.cacheGet(Cx);return jx(e)?{encoded:t,decoded:e}:Ax()}function Ax(){rn.cacheRemove(Sx),rn.cacheRemove(Cx);let e=Nx(),t=Ox.decodeRValue(e);if(t)return Fx(e,t),{decoded:t,encoded:e};let n={internalReferrer:window.location.origin+window.location.pathname,originalReferrer:Mx()},r=Px(n);return Fx(r,n),{decoded:n,encoded:r}}function jx(e){return!e||typeof e!=`object`||Object.keys(e).length<Dx.length?!1:Dx.every(t=>typeof e[t]==`string`)}function Mx(){let e=rn.cacheGet(Tx);if(e&&typeof e==`string`)return e;let t=document.referrer??``;if(window.URLSearchParams){let e=new URLSearchParams(window.location.search),n=e.has(wx)&&e.get(wx);e.has(wx)&&e.get(wx)&&(t=n)}return t&&rn.cacheSet(Tx,t,Ex),t}function Nx(){if(!window.URLSearchParams)return;let e=new URLSearchParams(window.location.search);if(e.has(xx))return e.get(xx)}function Px(e){if(jx(e))try{return btoa(JSON.stringify(e))}catch{console.error(`R value could not be encoded: ${JSON.stringify(e)}`)}}function Fx(e,t){try{rn.cacheSet(Sx,t,Ex),rn.cacheSet(Cx,e,Ex)}catch{console.error(`Could not store attribution data in session storage`)}}var Ix=3,Lx=5e3,Rx=6,zx={},Bx=class{constructor(e){this.key=e.toString()}getCount(){return zx[this.key]||0}increment(){zx[this.key]=this.getCount()+1}reset(){delete zx[this.key]}shouldBreak(){return this.getCount()>=Rx}},Vx=class{constructor(){this.attempt=0}async wait(){await new Promise(e=>setTimeout(e,Lx*2**this.attempt)),this.attempt++}};async function Hx(e,t){let n=new Vx,r=new Bx(e);async function i(){let n=await fetch(e,t);if(n.status>=500&&!r.shouldBreak())throw Error(`Server error: ${n.status}`);return n.ok&&r.reset(),n}for(let e=1;e<=Ix;e++)try{return await i()}catch(t){if(e>=Ix||r.shouldBreak())throw t;r.increment(),await n.wait()}}var Ux,Wx=new Uint8Array(16);function Gx(){if(!Ux&&(Ux=typeof crypto<`u`&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<`u`&&typeof msCrypto.getRandomValues==`function`&&msCrypto.getRandomValues.bind(msCrypto),!Ux))throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);return Ux(Wx)}var Kx=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function qx(e){return typeof e==`string`&&Kx.test(e)}for(var Jx=[],Yx=0;Yx<256;++Yx)Jx.push((Yx+256).toString(16).substr(1));function Xx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(Jx[e[t+0]]+Jx[e[t+1]]+Jx[e[t+2]]+Jx[e[t+3]]+`-`+Jx[e[t+4]]+Jx[e[t+5]]+`-`+Jx[e[t+6]]+Jx[e[t+7]]+`-`+Jx[e[t+8]]+Jx[e[t+9]]+`-`+Jx[e[t+10]]+Jx[e[t+11]]+Jx[e[t+12]]+Jx[e[t+13]]+Jx[e[t+14]]+Jx[e[t+15]]).toLowerCase();if(!qx(n))throw TypeError(`Stringified UUID is invalid`);return n}function Zx(e,t,n){e||={};var r=e.random||(e.rng||Gx)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n||=0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return Xx(r)}function Qx(e){if(!qx(e))throw TypeError(`Invalid UUID`);return parseInt(e.substr(14,1),16)}var $x=`cv:session:`,eS=`cv:window:v2:`,tS=1e3*60*30,nS=4;function rS(e){if(e===cn.LocalStorage)return rn.isAvailable()?rn:nn;if(e===cn.SessionStorage)return on.isAvailable()?on:nn}function iS(e){return new Date().getTime()+e}function aS(){return Zx()}function oS(e,t){return e+(t||`0`)}function sS(e){return new Date().getTime()>e}function cS(e){return!(typeof e!=`object`||typeof e?.id!=`string`||!qx(e.id)||Qx(e.id)!==nS||typeof e?.ttl!=`number`||e?.ttl<=0||isNaN(e?.ttl))}function lS(e,t,n){let r=rS(n),i=oS(e,t),a=r.get(i);return!cS(a)||sS(a?.ttl)?null:a}function uS(e,t,n,r){let i=rS(n),a=oS(e,t),o={id:aS(),ttl:iS(r)};return i.set(a,o),o}function dS(e,t,n,r,i){let a=rS(n),o=oS(e,t);a.set(o,{id:r.id,ttl:iS(i)})}function fS(e,t,n){let r=rS(n);if(!r?.isAvailable())return;let i=oS(e,t);r.remove(i)}var pS=null,mS={getClientSessionData(e){let t=lS($x,e,cn.LocalStorage);t?dS($x,e,cn.LocalStorage,t,tS):t=uS($x,e,cn.LocalStorage,tS);let n=lS(eS,e,cn.SessionStorage);return n?pS===null&&dS(eS,e,cn.SessionStorage,n,tS):n=uS(eS,e,cn.SessionStorage,pS??tS),{id:t.id,windowId:n.id}},resetClientSession(e){fS($x,e,cn.LocalStorage),fS(eS,e,cn.SessionStorage)},lockWindowSession(e,t){pS=t;let n=lS(eS,e,cn.SessionStorage);n&&dS(eS,e,cn.SessionStorage,n,t)},unlockWindowSession(e){pS=null;let t=lS(eS,e,cn.SessionStorage);t&&dS(eS,e,cn.SessionStorage,t,tS)}},hS={isObject(e){let t=typeof e;return t===`function`||t===`object`&&!!e},isFunction(e){return typeof e==`function`}},gS={safeUrlConcat(e,t){if(!e)return;let n=e;return e.endsWith(`/`)||(n+=`/`),t&&(n+=t.startsWith(`/`)?t.slice(1):t),n}},_S={mobileDevice:/Mobi/i,iphone:/iphone/i,ipad:/ipad/i,android:/android/i,blackberry:/blackberry/i,windowsPhone:/windows phone/i,iosVersion:/OS\s+([\d_.-:]+)\s/i,androidVersion:/android\s+([\d_.-\/]+)[\s;:,\)]/i,blackberryVersion:/(blackberry|version)\s?\d*\/([\d.]+)/i,windowsPhoneVersion:/windows\sphone.*?([\d_.-\/]+)[\s;:,\)]/i,mac:/Mac/i,unix:/X11/i,linux:/Linux/i,windows:/Win/i,win2000:/nt 5.0/i,winXP:/nt 5.1/i,winVista:/nt 6.0/i,win7:/nt 6.1/i,win8:/nt 6.2/i,win81:/nt 6.3/i,win10:/nt 10.0/i,osxVersion:/OS\sX\s([\d_.]+)/i,chrome:/^(?!.*Edge).*Chrome/i,safari:/^(?!.*(?:Chrome|Edge)).*Safari/i,edge:/edge/i,ie:/(msie|trident)/i,opera:/(opr|opera)/i,firefox:/firefox/i,generalVersion:/(chrome|firefox|version)\/(\d+.*?)(\s|$)/i,operaVersion:/(opr|opera)\/(\d+).*?(\s|$)/i,ieVersion:/MSIE\s+(\d+).*?/i,edgeVersion:/(edge)\/(\d+).*?(\s|$)/i},vS=`Unknown`;function yS(e,t,n){let[r]=t.exec(n)||[];return r||=vS,{name:e,version:r}}function bS(e,t,n){if(!t)return{name:e,version:vS};let r=t.exec(n);return{name:e,version:r&&r.length?r[0].trim():vS}}function xS(e,t){let n={name:e,version:null};return _S.win2000.test(t)&&(n.version=`2000`),_S.winXP.test(t)&&(n.version=`XP`),_S.winVista.test(t)&&(n.version=`Vista`),_S.win7.test(t)&&(n.version=`7`),_S.win8.test(t)&&(n.version=`8`),_S.win81.test(t)&&(n.version=`8.1`),_S.win10.test(t)&&(n.version=`10`),n.version||=vS,n}var SS={getDeviceType(){let e=window.navigator.userAgent;return _S.mobileDevice.test(e)?_S.iphone.test(e)?`iPhone`:_S.ipad.test(e)?`iPad`:_S.android.test(e)?`Android`:_S.blackberry.test(e)?`Blackberry`:_S.windowsPhone.test(e)?`Windows Phone`:vS:`Desktop`},getOperatingSystem(){let e=window.navigator.userAgent;return _S.android.test(e)?bS(`Android`,_S.androidVersion,e):_S.iphone.test(e)||_S.ipad.test(e)?bS(`iOS`,_S.iosVersion,e):_S.linux.test(e)?bS(`Linux`,null,e):_S.unix.test(e)?bS(`Unix`,null,e):_S.mac.test(e)?bS(`Macintosh`,_S.osxVersion,e):_S.windows.test(e)?xS(`Windows`,e):_S.blackberry.test(e)?bS(`BlackBerry`,_S.blackberryVersion,e):_S.windowsPhone.test(e)?bS(`Windows Phone`,_S.windowsPhoneVersion,e):{name:vS,version:vS}},getBrowser(){let e=window.navigator.userAgent;return _S.chrome.test(e)?yS(`Chrome`,_S.generalVersion,e):_S.firefox.test(e)?yS(`Firefox`,_S.generalVersion,e):_S.safari.test(e)?yS(`Safari`,_S.generalVersion,e):_S.ie.test(e)?yS(`Internet Explorer`,_S.ieVersion,e):_S.edge.test(e)?yS(`Edge`,_S.edgeVersion,e):_S.opera.test(e)?yS(`Opera`,_S.operaVersion,e):{name:vS,version:vS}},isTouchScreen(){return!!(`ontouchstart`in window||navigator.maxTouchPoints)}},CS=28800,wS=`cv:utmparams`,TS=[[`source`,`utm_source`],[`medium`,`utm_medium`],[`campaign`,`utm_campaign`],[`term`,`utm_term`],[`content`,`utm_content`]],ES=TS.reduce((e,[t])=>({...e,[t]:t}),{}),DS={getUtmParameters(){if(!window.URLSearchParams)return null;let e=new URLSearchParams(window.location.search),t={};return TS.forEach(([n,r])=>{e.has(r)&&(t[n]=e.get(r))}),OS(t)},setUtmParameters(e){if(!e)return;let t={};return Object.keys(e).forEach(n=>{ES[n]&&(t[n]=e[n])}),OS(t)},getURLSearchParams(){if(!window.URLSearchParams)return null;let e=new URLSearchParams,t=DS.getUtmParameters();return t?(TS.forEach(([n,r])=>{t[n]&&e.set(r,t[n])}),e):null}};function OS(e){if(Object.keys(e).length)return rn.cacheSet(wS,e,CS),e;let t=rn.cacheGet(wS);return t&&typeof t==`object`&&Object.keys(t).length?t:null}var kS={name:`@clickview/analytics`,version:`2.3.0`,description:`Analytics`,main:`dist/app.js`,types:`dist/analytics/src/app.d.ts`,type:`module`,private:!0,repository:{type:`git`,url:`https://gitlab.cvinternal.net/front-end/clickview`},scripts:{start:`npm run build`,"type-check":`tsc --noEmit`,build:`npm run type-check && node ../../../node_modules/vite/bin/vite.js build`,prebuild:`npm run clean`,clean:`npx rimraf dist`},author:``,license:`ISC`,devDependencies:{"@types/uuid":`8.3.4`,"tsc-alias":`1.8.16`},dependencies:{jssha:`3.3.1`,uuid:`8.3.2`}},AS=`zXJL9nOHxzDlMUDjiP41`,jS=`unknown`,MS=class{constructor(e){this.options=e,this.initialize()}initialize(){this.validateOptions(),this.options.logUtmParameters&&(this.utmParameters=DS.getUtmParameters()),this.options.logAttributionData&&(this.attributionData=Ox.getDecodedAttributionData())}get name(){return`CollectionApiClient`}async log(e){if(Array.isArray(e))return this.logBulk(e);this.shouldLog(e)&&(this.validateEvent(e),await this.postData(await this.formatData(e)))}async logBulk(e){let t=e.filter(e=>this.shouldLog(e));if(!t.length)return;t.forEach(e=>this.validateEvent(e));let n=await Promise.all(t.map(e=>this.formatData(e)));await this.postData(n)}validateOptions(){if(!hS.isFunction(this.options.getUser))throw Error(`getUser option is required.`)}shouldLog(e){return hS.isFunction(this.options.shouldLog)?this.options.shouldLog(e):!0}async postData(e){let t=await this.getRegionalUrl(this.options.collectionApiUrls),n=JSON.stringify(e),r={"Content-Type":`application/json`,...this.getSignatureHeader(n)},i=gS.safeUrlConcat(t,`/v1/ingest`);Array.isArray(e)&&(i=gS.safeUrlConcat(i,`/bulk`));try{let e=await Hx(i,{method:`POST`,mode:`cors`,headers:r,body:n});e.ok||this.logError(Error(`CollectionApiClient failed to log event. Status: ${e.status} ${e.statusText}`),!1,this.getResponseAsObject(e))}catch(e){this.logError(e)}}getResponseAsObject(e){return{headers:e.headers,ok:e.ok,redirected:e.redirected,status:e.status,statusText:e.statusText,type:e.type,url:e.url,body:e.text()}}getSignatureHeader(e){let t=new _x(`SHA-1`,`TEXT`,{hmacKey:{value:AS,format:`TEXT`,encoding:`UTF8`}});return t.update(e),{"cv-analytics-signature":`${this.options.collectionApiClientId}.${t.getHash(`B64`)}`}}async getRegionalUrl(e){switch((await this.getRegion()).systemName){case vx.CvEuWest1:return e.cvEuWest1;case vx.CvApSoutheast2:return e.cvApSoutheast2;case vx.CvNaWest1:return e.cvNaWest1;case vx.CvApSoutheast1:default:return e.cvApSoutheast1}}validateEvent(e){typeof e.type!=`string`&&this.logError(Error(`Event type is required.`),!0),hS.isObject(e.actionContext)||this.logError(Error(`Event actionContext is required.`),!0),e.actionContext.entity||this.logError(Error(`Event actionContext entity is required.`),!0)}async formatData(e){return{type:e.type,data:await this.getEventData(e),metadata:this.getEventMetadata(e)}}async getEventData(e){let t=e.actionContext,n=this.getPlatformMetadata(),r=await this.getUserData(),i=await this.getSessionData(),a={name:this.options.productName,version:this.options.productVersion};this.options.productVariant&&(a.variant=this.options.productVariant);let o={user:r,action:t,platform:n,product:a,session:i};this.utmParameters&&(o.utm=this.utmParameters);let s=this.extractData(e),c=Object.keys(o).map(e=>e.toLowerCase()),l=Object.keys(s).map(e=>e.toLowerCase());return c.forEach(e=>{l.includes(e)&&this.logError(Error(`${e} is a reserved key.`),!0)}),{...o,...s}}extractData(e){return hS.isFunction(this.options.formatData)?this.options.formatData(e):{[e.actionContext.entity]:e.data}}async getUserData(){let e;try{e=await this.options.getProfileId?.()}catch(e){this.logError(e)}try{let t=await this.options.getUser();return t?.id?{id:t.id,role:t.role?.toLowerCase()||jS,userGroup:(t.userGroup??bx.Unknown).toLowerCase(),yearGroup:this.normalizeYearGroup(t.yearGroup),profileId:e,customer:{id:t.customerId,name:t.customerName,customerGuid:t.customerGuid,crmId:t.crmId,country:t.countryCode,region:await this.getRegion(),openCustomer:!1,accessPolicy:t.accessPolicy}}:e?{profileId:e}:void 0}catch(e){this.logError(e)}}async getRegion(){let e=this.options.regionName;try{let t=await this.options.getUser();t?.instanceRegion&&(e=t.instanceRegion)}catch(e){this.logError(e)}return e||this.logError(Error(`RegionName is not set.`),!0),this.getRegionByName(e.toLowerCase())}async getSessionData(){try{let e=await this.options.getUser();return{...mS.getClientSessionData(e?.id),authSessionId:e?.sessionId}}catch(e){return console.error(e),mS.getClientSessionData(null)}}getPlatformMetadata(){let e={url:window.location.href,referrer:document.referrer};return this.attributionData?.internalReferrer&&(e.internalReferrer=this.attributionData.internalReferrer),this.attributionData?.originalReferrer&&(e.originalReferrer=this.attributionData.originalReferrer),{browser:SS.getBrowser(),os:SS.getOperatingSystem(),request:e,screenResolution:`${window.screen.width}x${window.screen.height}`,viewportResolution:`${window.innerWidth}x${window.innerHeight}`}}getEventMetadata(e){return{client:{name:`${this.name}.ts`,version:kS.version,region:this.getRegionByName(this.options.regionName)},timestamp:new Date().toISOString(),eventVersion:e.eventVersion}}getRegionByName(e){let t;return Object.values(yx).forEach(n=>{n.systemName===e&&(t=n)}),t}normalizeYearGroup(e){return e?e.toLowerCase().split(` `).join(`_`):jS}logError(e,t,...n){if(this.options.logError&&this.options.logError(e,...n),t)throw e}},NS=class e extends P{static{this.type=`BaseAnalyticsClient`}constructor(e){super(e)}shouldLog(e){return!0}log(e){}isType(t){return t===e.type}};Me();var PS=class extends NS{get name(){return`DebuggerClient`}shouldLog(){return f.isDevelopment}log(e){let t=Fe(e);for(let n in e){let e=t[n];(e instanceof N||e instanceof we)&&(t[n]=e.toJSON())}console.log(`Event Debugger: `,t)}},FS={Lite:`lite.web`,Curator:`curator.web`,Analytics:`analytics.web`,StreamableLearning:`streamablelearning.web`,Cloud:`cloud.web`,Exchange:`exchange.web`},IS={mobileDevice:/Mobi/i,iphone:/iphone/i,ipad:/ipad/i,android:/android/i,blackberry:/blackberry/i,windowsPhone:/windows phone/i,iosVersion:/OS\s+([\d_.-:]+)\s/i,androidVersion:/android\s+([\d_.-\/]+)[\s;:,\)]/i,blackberryVersion:/(blackberry|version)\s?\d*\/([\d.]+)/i,windowsPhoneVersion:/windows\sphone.*?([\d_.-\/]+)[\s;:,\)]/i,mac:/Mac/i,unix:/X11/i,linux:/Linux/i,windows:/Win/i,win2000:/nt 5.0/i,winXP:/nt 5.1/i,winVista:/nt 6.0/i,win7:/nt 6.1/i,win8:/nt 6.2/i,win81:/nt 6.3/i,win10:/nt 10.0/i,osxVersion:/OS\sX\s([\d_.]+)/i,chrome:/(^(?!.*Edge).*Chrome)|(CriOS)/i,safari:/^(?!.*(?:Chrome|Edge)).*Safari/i,edge:/edge/i,ie:/(msie|trident)/i,opera:/(opr|opera)/i,firefox:/firefox/i,generalVersion:/(chrome|firefox|version)\/(\d+.*?)(\s|$)/i,operaVersion:/(opr|opera)\/(\d+).*?(\s|$)/i,ieVersion:/MSIE\s+(\d+).*?/i,edgeVersion:/(edge)\/(\d+).*?(\s|$)/i,tablet:/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i,mobile:/Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Kindle|Silk-Accelerated|(hpw|web)OS|Opera M(obi|ini)/},LS=`Unknown`;function RS(e,t,n){let[r]=t.exec(n)||[];return r||=LS,{browser:e,version:r}}function zS(e,t,n){if(!t)return{os:e,version:LS};let r=t.exec(n);return{os:e,version:r&&r.length?r[0].trim():LS}}function BS(e,t){let n={os:e};return IS.win2000.test(t)&&(n.version=`2000`),IS.winXP.test(t)&&(n.version=`XP`),IS.winVista.test(t)&&(n.version=`Vista`),IS.win7.test(t)&&(n.version=`7`),IS.win8.test(t)&&(n.version=`8`),IS.win81.test(t)&&(n.version=`8.1`),IS.win10.test(t)&&(n.version=`10`),n.version||=LS,n}var VS={getDeviceType(){let e=window.navigator.userAgent;return IS.mobileDevice.test(e)?IS.iphone.test(e)?`iPhone`:IS.ipad.test(e)?`iPad`:IS.android.test(e)?`Android`:IS.blackberry.test(e)?`Blackberry`:IS.windowsPhone.test(e)?`Windows Phone`:LS:`Desktop`},getOperatingSystem(){let e=window.navigator.userAgent;return IS.android.test(e)?zS(`Android`,IS.androidVersion,e):IS.iphone.test(e)||IS.ipad.test(e)||navigator.platform===`MacIntel`&&navigator.maxTouchPoints>1?zS(`iOS`,IS.iosVersion,e):IS.linux.test(e)?zS(`Linux`,null,e):IS.unix.test(e)?zS(`Unix`,null,e):IS.mac.test(e)?zS(`Macintosh`,IS.osxVersion,e):IS.windows.test(e)?BS(`Windows`,e):IS.blackberry.test(e)?zS(`BlackBerry`,IS.blackberryVersion,e):IS.windowsPhone.test(e)?zS(`Windows Phone`,IS.windowsPhoneVersion,e):{os:LS,version:LS}},getBrowser(){let e=window.navigator.userAgent;return IS.chrome.test(e)?RS(`Chrome`,IS.generalVersion,e):IS.firefox.test(e)?RS(`Firefox`,IS.generalVersion,e):IS.safari.test(e)?RS(`Safari`,IS.generalVersion,e):IS.ie.test(e)?RS(`Internet Explorer`,IS.ieVersion,e):IS.edge.test(e)?RS(`Edge`,IS.edgeVersion,e):IS.opera.test(e)?RS(`Opera`,IS.operaVersion,e):{browser:LS,version:LS}},isTouchScreen(){return!!(`ontouchstart`in window||navigator.maxTouchPoints)},isTabletOrMobile(){return VS.isTouchScreen()?IS.tablet.test(navigator.userAgent)||IS.mobile.test(navigator.userAgent):!1},isAndroid(){return VS.getOperatingSystem().os===`Android`},isIOS(){return VS.getOperatingSystem().os===`iOS`}},HS=class e extends P{static{this.type=`BaseAnalyticsEnricher`}enrich(e,t){}isType(t){return t===e.type}},US=class extends HS{constructor(e){super(e),this.productName=e.productName,this.productVersion=e.productVersion}get name(){return`CoreContextEnricher`}shouldEnrich(e){return!0}enrich(e,t){this.shouldEnrich(e)||t(e),e.enrich(`coreContext`,this.getCoreContext()),t(e)}getCoreContext(){return{timestamp:this.getTimestamp(),product:this.getProductInfo(),request:this.getRequestInfo(),client:this.getClientInfo()}}getTimestamp(){return dn.getUtcISOString()}getProductInfo(){return{name:this.productName,version:this.productVersion}}getRequestInfo(){return{referrer:ue.GetCurrentReferrer(),requestUrl:ue.GetCurrentUrl()}}getClientInfo(){let e=VS.getOperatingSystem(),t=VS.getBrowser();return{os:e.os,osVersion:e.version,browser:t.browser,browserVersion:t.version,screenResolution:`${window.screen.width}x${window.screen.height}`,viewportResolution:`${window.innerWidth}x${window.innerHeight}`}}},WS=g(Ae());Me();var GS=class extends WS.MnObject{},KS=class extends GS{get name(){return`EventTransport`}get channelName(){return`event:transport`}publish(e){this.getChannel().trigger(Ee.Outlet,e)}subscribe(e){let t=e,n=n=>{kt.isFunction(t.shouldLog)&&!t.shouldLog(n)||e.log(n)};M(t.listenTo)?t.listenTo(this.getChannel(),Ee.Outlet,n):this.listenTo(this.getChannel(),Ee.Outlet,n)}};function qS(e){return!hS.isObject(e)||!hS.isObject(e.actionContext)?{}:{entity:e.actionContext.entity,location:e.actionContext.location,descriptor:e.actionContext.descriptor}}function JS(e){let t={},r=(e,t)=>{switch(t){case`description`:return n.ValueUpdated;case`channel`:case`rating`:case`series`:case`distributor`:case`producer`:return e&&e.id||n.EntityRemoved;default:return e}};return Object.keys(e).forEach(n=>{t[n]=r(e[n],n)}),t}var YS={passthrough(e){return e},getEditData(e,t){let{entity:n,location:r}=qS(t);return n===Pe.Video&&r===j.EditVideoDetails?JS(e):e}},X={allow:()=>!0,restrict:()=>!1},XS={getShareData(e){let{id:t,search:n,pagePositionIndex:r,shareId:i,shareType:a}=e,o={id:t,search:n,pagePositionIndex:r,shareId:i,shareType:a};return e.video?.id&&(o.video={id:e.video.id}),e.clip?.id&&(o.clip={id:e.clip.id},e.clip.video?.id&&(o.video={id:e.clip.video?.id})),e.shareCount!==void 0&&(o.shareCount=e.shareCount),e.embedDetails&&(o.embedDetails=e.embedDetails),o}},ZS={getUploadData(e,t){let{entity:n}=t.actionContext;if(n===Pe.Video)return ZS.formatVideoUpload(e,t);if(n===Pe.Resource||n===Pe.Subtitle)return ZS.formatResourceUpload(e);if(n===Pe.Banner||n===Pe.Thumbnail||n===Pe.MixedMedia)return e;throw Error(`Upload data event not correctly formatted.`)},formatVideoUpload(e,t){let{workflowPhase:n}=t.actionContext;if(n===se.Start)return ZS.getStartVideoUploadData(e);if(n===se.Discard)return ZS.getDiscardVideoUploadData(e);if(n===se.Complete)return ZS.getCompleteUploadData(e)},getStartVideoUploadData(e){return!e||!e.length?[]:(e instanceof FileList&&(e=Array.from(e)),e.map(t=>({fileName:t.name,size:t.size,type:t.type,count:e.length})))},getDiscardVideoUploadData(e){let t=t=>{let{type:n,name:r,status:i,cvUpload:a}=t.file,o={fileName:r,count:Array.isArray(e)?e.length:1,type:n,status:i};return t.progress&&(o.progress=t.progress.toFixed(2)),a&&(o.uploadId=a.uploadId),o};return Array.isArray(e)?e.map(e=>t(e)):[t(e)]},getCompleteUploadData(e){return!e||!e.length?[]:e.map(t=>{let{fileName:n,libraryId:r,folderId:i,autoCaption:a}=t;return{fileName:n,libraryId:r,folderId:i,autoCaption:a,count:e.length}})},formatResourceUpload(e){let{id:t,name:n}=e,r={id:t,name:n};return hS.isObject(e.metadata)&&(r.type=e.metadata.type),r}},QS={[E.Navigate]:X.restrict,[E.Click]:X.allow,[E.Search]:X.allow,[E.InstantSearch]:X.allow,[E.Play]:X.allow,[E.Stream]:X.allow,[E.WebPlayerStream]:X.allow,[E.StreamProgress]:X.allow,[E.PreviewStreamProgress]:X.allow,[E.StreamBuffering]:X.allow,[E.Rename]:X.allow,[E.Move]:X.allow,[E.Create]:X.allow,[E.Delete]:X.allow,[E.Associate]:X.allow,[E.Dissociate]:X.allow,[E.Filter]:X.allow,[E.Sort]:X.allow,[E.Approve]:X.allow,[E.Reject]:X.allow,[E.Disable]:X.allow,[E.Upload]:X.allow,[E.Download]:X.allow,[E.SetAccess]:X.allow,[E.AddToLocalCache]:X.restrict,[E.Share]:X.allow,[E.Unshare]:X.allow,[E.Edit]:X.allow,[E.Suggest]:X.allow,[E.Favourite]:X.allow,[E.WorkspaceAdd]:X.allow,[E.ResolveWarning]:X.allow,[E.DismissWarning]:X.allow,[E.EditAssoc]:X.allow,[E.Follow]:X.allow,[E.Print]:X.allow,[E.Copy]:X.allow,[E.Activate]:X.allow,[E.VerifyEmail]:X.allow,[E.ChangePassword]:X.allow,[E.Export]:X.allow,[E.SendEmail]:X.allow,[E.Publish]:X.allow,[E.Submit]:X.allow,[E.Complete]:X.allow,[E.Archive]:X.allow,[E.Promote]:X.allow,[E.Demote]:X.allow,[E.BulkAction]:X.allow,[E.Remove]:X.allow,[E.Dismiss]:X.allow,[E.Open]:X.allow,[E.Hide]:X.allow,[E.PageView]:X.allow,[E.Select]:X.allow,[E.SwitchCustomer]:X.allow,[E.Focus]:X.allow,[E.Blur]:X.allow,[E.Hover]:X.allow,[E.Unhover]:X.allow},$S={[E.Search]:YS.passthrough,[E.InstantSearch]:YS.passthrough,[E.Play]:YS.passthrough,[E.Stream]:YS.passthrough,[E.StreamProgress]:YS.passthrough,[E.PreviewStreamProgress]:YS.passthrough,[E.StreamBuffering]:YS.passthrough,[E.Click]:YS.passthrough,[E.Filter]:YS.passthrough,[E.Sort]:YS.passthrough,[E.SetAccess]:YS.passthrough,[E.Approve]:YS.passthrough,[E.Reject]:YS.passthrough,[E.Create]:YS.passthrough,[E.Delete]:YS.passthrough,[E.Rename]:YS.passthrough,[E.Move]:YS.passthrough,[E.Edit]:YS.passthrough,[E.Share]:XS.getShareData,[E.Disable]:YS.passthrough,[E.Suggest]:YS.passthrough,[E.Upload]:ZS.getUploadData,[E.ResolveWarning]:YS.passthrough,[E.DismissWarning]:YS.passthrough,[E.Follow]:YS.passthrough,[E.Print]:YS.passthrough,[E.Copy]:YS.passthrough},eC={[E.Search]:()=>`search`,[E.InstantSearch]:()=>`search`,[E.Filter]:()=>`filter`,[E.Stream]:()=>Pe.Video},tC={user:`target_user`,product:`target_product`},nC={[E.StreamProgress]:!0,[E.WebPlayerStream]:!0,[E.PreviewStreamProgress]:!0,[E.StreamBuffering]:!0},rC={shouldLog(e){return!!QS[e.type](e)},formatData(e){let t=$S[e.type],n=hS.isFunction(t)?t(e.data,e):e.data;if(nC[e.type])return n;let r=e.actionContext.entity;return hS.isFunction(eC[e.type])&&(r=eC[e.type](e)),tC[r]&&(r=tC[r]),{[r]:n}}},iC={config(e,t){return{url:`/api/config`,key:`config`,bootstrapName:`config`,success:e,error:t}},version(e,t){return{url:`/api/version`,key:`version`,bootstrapName:`version`,normalize:!1,success:e,error:t}},geoLocation(){return{url:`/api/geolocation`,key:`geolocation`,normalize:!1,bootstrapName:`geolocation`}}},aC=`staff`;async function oC(e){try{return await Zt(e.store,Mt.accessPolicy())}catch{return null}}var sC={async getUser(e){let t=await Zt(e.store,Mt.currentUser());if(!t.isAuthenticated)return null;let n=Zt(e.store,_n.customer(t.customerId)),r=Zt(e.store,Mt.user(t.id)),i=oC(e);return sC.mapCurrentUserToAnalyticsUser(t,await r,await n,await i)},mapCurrentUserToAnalyticsUser(e,t,n,r){let i=wn.getUserType(t);return{id:e?.id,countryCode:e?.countryCode,contentRegion:e?.contentRegion,instanceRegion:e?.instanceRegion,customerId:e?.customerId,customerGuid:n?.customerGuid,customerName:e?.customerName,crmId:n?.crmId,role:e?.role,sessionId:e?.sessionId,userGroup:i,yearGroup:i===pn.Staff?aC:t?.masterYearGroup?.name,accessPolicy:r?.id}}},cC={logError(e,...t){kt.isFunction(trackJs?.track)&&(t&&kt.isFunction(trackJs.console?.info)&&trackJs.console.info(...t),trackJs.track(e))}};async function lC(e,t){let[n,r]=await Promise.all([Zt(e.store,iC.config()),Zt(e.store,iC.version())]),i=new tx;Pt.registerSingleton(i),i.registerTransport(KS),i.registerClient(PS),i.registerClient(MS,{productName:FS.Analytics,productVersion:r,productVariant:`admins-only`,regionName:n.instanceRegion,collectionApiUrls:n.collectionApiUrls,collectionApiClientId:n.collectionApiClientId,getUser:()=>sC.getUser(e),shouldLog:rC.shouldLog,formatData:rC.formatData,logError:cC.logError}),i.registerEnricher(US,{productName:`ClickView Analytics`,productVersion:r}),t(e)}var uC={[En.US]:`en-us`},dC=class extends D{get name(){return`ErrorPageError`}},fC=`shared.unspecifiedError`,pC=class extends dC{constructor(){super(B.getPhrase(fC,`title`))}get name(){return`UnspecifiedError`}get heading(){return B.getPhrase(fC,`heading`)}get description(){return B.getPhrase(fC,`description`)}get cta(){return!1}},Z=g(ke()),Q=T(),mC=class extends ee{onShowAlert(e){if(!this.layoutOptions.options.alertRegion)return super.onShowAlert(e);let{ctor:t,collection:n}=e,r=n?n.toJSON():[];this.layout.showChildView(this.layoutOptions.options.alertRegion,(0,Q.jsx)(t,{alerts:r,removeAlert:e=>Qb.default.channel(be.ALERT).trigger(`remove:alert`,e)}))}},hC=!1,gC=!1,_C=!1,vC=!0,yC=!0,bC=new class extends P{get name(){return`LayoutHelper`}shouldHideNav(){return hC}disableNav(){hC=!0}enableNav(){hC=!1}shouldHideHeader(){return gC}disableHeader(){gC=!0}enableHeader(){gC=!1}lockContentWidth(){_C=!0,this.trigger(`change:lockContentWidth`)}unlockContentWidth(){_C=!1,this.trigger(`change:lockContentWidth`)}shouldLockContentWidth(){return!!_C}shouldShowSearch(){return yC}enableSearch(){yC=!0}disableSearch(){yC=!1}enableLogoClick(){vC=!0}disableLogoClick(){vC=!1}shouldAllowLogoClick(){return vC}},xC={CONTENT:`content`,POPUP:`popup`,ALERT:`alert`},SC={REPORTS_LAYOUT:`ReportsLayout`},CC={userProducts(e,t){return{url:`{gateway}/v1/users/me/products`,key:`user:products`,normalizeOptions:{namespace:`product`},success:e,error:t,bootstrapName:jt.PRODUCTS}}},wC=5,TC=3,EC=new class extends P{constructor(...e){super(...e),this.routeHistory=[],this.contextHistory=[]}get name(){return Fn.Context}static get Instance(){return this.instance||=new this}initialize(){this.listenTo(be.SHELL,z.ROUTE,this.setContext),this.listenTo(be.SHELL,z.ROUTE,this.updateRouteHistory)}setContext(e){_e.isEqual(e,this.getCurrentContext()?.appLink)||(this.contextHistory.length>=wC&&this.contextHistory.shift(),this.contextHistory.push({pageLoad:!this.contextHistory.length,appLink:e}))}getCurrentContext(){if(this.contextHistory.length)return this.contextHistory[this.contextHistory.length-1]}getPreviousContext(){if(!(!this.contextHistory.length||this.contextHistory.length-2<0))return this.contextHistory[this.contextHistory.length-2]}updateRouteHistory(e){_e.getHref(e)&&(_e.isEqual(e,this.getCurrentRoute()?.appLink)||(this.routeHistory.length>=TC&&this.routeHistory.shift(),this.routeHistory.push({pageLoad:!this.routeHistory.length,appLink:e})))}getCurrentRoute(){if(this.routeHistory.length)return this.routeHistory[this.routeHistory.length-1]}getPreviousRoute(){if(!(!this.routeHistory.length||this.routeHistory.length-2<0))return this.routeHistory[this.routeHistory.length-2]}fromPageLoad(){return this.contextHistory.length===1}_forcePushContext(e){this.setContext(e),this.updateRouteHistory(e)}},DC=B.encloseNamespace(`reportsShared.noAccess`),OC=class extends dC{constructor(){super(`Current user does not have access to analytics`)}get name(){return`NoAccessError`}get heading(){return DC(`heading`)}get description(){return DC(`body`)}get cta(){return!1}},kC=[{application:Mn.DEFAULT,action:jn.Default.ERROR},{application:Mn.DEFAULT,action:jn.Default.DEV_ERROR}];function AC(e,t){EC._forcePushContext(e),bC.disableNav(),bC.disableHeader(),Te.routingEnded(),R.throw(t??new pC)}async function jC(e,t){let{appLink:n,shell:r}=e;if(kC.find(e=>e.application===n?.application&&e.action===n?.action)){t(e);return}let i=null;try{i=await Xt(r.store,CC.userProducts())}catch{return AC(n)}let a=i.some(e=>e.id===Pn.Analytics),o=i.some(e=>e.id===Pn.Primary);if(a&&o){t(e);return}AC(n,new OC)}var MC={getPrimaryObjectUrl(e,t){let n=``;switch(t.typeId){case fn.Video:n=`/videos/${t.id}/${c.slugify(t.name)}`;break;case fn.Interactive:n=`/interactive/${t.id}/preview`;break;case fn.Clip:n=`/clips/${t.id}/${c.slugify(t.name)}`;break;case fn.Series:n=`/series/${t.id}/${c.slugify(t.name)}`;break;case fn.Playlist:n=`/playlists/${t.id}/${c.slugify(t.name)}`;break}if(!n)return;let r=new URL(e.url);return r.pathname=n,r.href},getPrimarySearchUrl(e,t){let n=new URL(e.url);return n.pathname=`search`,n.search=`query=${t}`,n.href},getLiteClassroomsUrl(e){let t=new URL(e.url);return t.pathname=`/classrooms`,t.href},getSharesUrl(e){let t=new URL(e.url);return t.pathname=`/shares`,t.href},getSharePlaylistUrl(e,t){let n=new URL(e.url);return n.pathname=`/share/${t}`,n.href}},NC=B.encloseNamespace(`reportsShared.insightsError`),PC=class extends dC{constructor(e){super(`Current user is not an admin and has Insights`),this.liteProduct=e}get name(){return`InsightsErrorError`}get heading(){return NC(`heading`)}get description(){return NC(`body`)}get cta(){let e=!!this.liteProduct&&MC.getSharesUrl(this.liteProduct);return e?{url:e,text:NC(`cta`)}:!1}},FC=[{application:Mn.DEFAULT,action:jn.Default.ERROR},{application:Mn.DEFAULT,action:jn.Default.DEV_ERROR}];function IC(e,t){EC._forcePushContext(e),bC.disableNav(),bC.disableHeader(),Te.routingEnded(),R.throw(t??new pC)}async function LC(e,t){let{appLink:n,shell:r}=e;if(FC.find(e=>e.application===n?.application&&e.action===n?.action)){t(e);return}try{let i=Xt(r.store,Mt.permissions()),a=Xt(r.store,CC.userProducts()),o=await i,s=await a;if(o?.[Sn.ViewSchoolAnalytics]){t(e);return}IC(n,new PC(s.find(e=>e.id===Pn.Primary)))}catch{IC(n)}}var RC=class extends _{get channelName(){return Mn.DASHBOARD}get appRoutes(){return{"(/)":`index`}}get filters(){return[jC,LC]}},zC=class extends mC{get name(){return`School Dashboard Application`}get layoutOptions(){return{name:SC.REPORTS_LAYOUT,options:{hideNav:bC.shouldHideNav(),hideHeader:bC.shouldHideHeader(),alertRegion:xC.ALERT}}}get channelName(){return Mn.DASHBOARD}static get router(){return RC}async index(){let{SchoolAnalyticsDashboardView:e}=await gn(async()=>{let{SchoolAnalyticsDashboardView:e}=await import(`./CPp4jaPB2.chunk.js`);return{SchoolAnalyticsDashboardView:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45]));this.layout.showChildView(xC.CONTENT,(0,Q.jsx)(e,{}))}},BC=`shared.notFoundError`,VC=class extends dC{constructor(){super(B.getPhrase(BC,`title`))}get name(){return`NotFoundError`}get heading(){return B.getPhrase(BC,`heading`)}get description(){return B.getPhrase(BC,`description`)}},HC={uploadBase64Image(e,t,n,r){return{url:`/api/image/upload?type=${e}`,key:`upload:image`,data:t,type:Lt.POST,success:n,always:r}}},UC={classroom(e){return{url:`{gateway}/v1/objects/${e}`,key:`classroom:${e}`}},classroomGroup(e){return{url:`{gateway}/v1/objects/${e}?query=classroom`,key:`classroom:group:${e}:classroom`}},getClassroomsById(e){return e.sort(),{url:`{gateway}/v1/objects?query=${`users[count()]{limit:0}&${e.map(e=>`id=${e}`).join(`&`)}`}`,key:`classrooms:${e.join(`,`)}`}},getClassroomGroupsById(e){return e.sort(),{url:`{gateway}/v1/objects?query=${`users[count()]{limit:0}&${e.map(e=>`id=${e}`).join(`&`)}`}`,key:`classroom:groups:${e.join(`,`)}`}},userClassrooms(e,t,n,r){return{url:hn.urlBuilder(`{gateway}/v1/classrooms`,{cursor:e}),key:`user:classrooms${e?`:${e}`:``}`,success:t,error:n,always:r}},getPinnedClassrooms(e,t){return{url:hn.urlBuilder(`{gateway}/v1/objects/${e}/members`,{query:`favouriteClassrooms[favouritedBy{id:${e}},_integrations,enrolments[user]{role:'owner'}]{status:${bn.Active},customer.id:${t},limit:100,orderby:name}`}),key:`pinned:classrooms`,normalize:!1}},getPublished(e,t=``){let n={query:`{orderby:name,status:${bn.Active}}favouritedBy{id:${e}},_integrations,enrolments[user]{role:'owner'}`};return t&&(n.cursor=t),{url:hn.urlBuilder(`{gateway}/v1/classrooms`,n),key:`published:classrooms${t?`:${t}`:``}`}}},WC=B.encloseNamespace(`reportsShared.noClassrooms`),GC=class extends dC{constructor(e){super(`Current user does not have any classrooms`),this.liteProduct=e}get name(){return`NoClassroomsError`}get heading(){return WC(`heading`)}get description(){return WC(`body`)}get cta(){let e=!!this.liteProduct&&MC.getLiteClassroomsUrl(this.liteProduct);return e?{url:e,text:WC(`cta`)}:!1}},KC=[{application:Mn.DEFAULT,action:jn.Default.ERROR},{application:Mn.DEFAULT,action:jn.Default.DEV_ERROR},{application:Mn.DEFAULT,action:jn.Default.NO_CLASSROOMS_ERROR}];function qC(e,t){EC._forcePushContext(e),Te.routingEnded(),R.throw(t??new pC)}async function JC(e,t){let{appLink:n,shell:r}=e;if(KC.find(e=>e.application===n?.application&&e.action===n?.action)){t(e);return}let i=null;try{i=await Xt(r.store,Mt.permissions())}catch{return qC(n)}if(i?.[Sn.ViewSchoolAnalytics]){t(e);return}let a=null;try{a=await Xt(r.store,UC.userClassrooms(null))}catch{return qC(n)}if(a?.data?.length){t(e);return}let o=null;try{o=await Xt(r.store,CC.userProducts())}catch{return qC(n)}qC(n,new GC(o.find(e=>e.id===Pn.Primary)))}var YC=class extends _{get channelName(){return Mn.DEFAULT}get appRoutes(){return{"*path":`catchAllRoutes`}}get appLinks(){return[`devError`,`dialogError`,`error`,`notFound`,`noClassroomsError`,`share`,`generateReport`,`updates`,`giveFeedback`,`uploadImage`,`removeLogo`,`classroomViewsPopup`]}get externalRoutes(){return{"login(/)":`logIn`,"logout(/)":`logOut`}}get filters(){return[jC,JC,LC]}},XC=class extends mC{get name(){return`Default Application`}get layoutOptions(){return{name:SC.REPORTS_LAYOUT,options:{hideNav:bC.shouldHideNav(),hideHeader:bC.shouldHideHeader(),alertRegion:xC.ALERT}}}get channelName(){return Mn.DEFAULT}static get router(){return YC}catchAllRoutes(){R.throw(new VC)}async notFound(){let e=Qb.default.channel(`error:view`).request(`current:error`),{NotFoundView:t}=await gn(async()=>{let{NotFoundView:e}=await import(`./bNV2NeSi.chunk.js`);return{NotFoundView:e}},__vite__mapDeps([46,1]));this.layout.showChildView(xC.CONTENT,(0,Q.jsx)(t,{error:e}))}async error(){let e=Qb.default.channel(`error:view`).request(`current:error`),{ErrorView:t}=await gn(async()=>{let{ErrorView:e}=await import(`./DaBzvZF9.chunk.js`);return{ErrorView:e}},[]);this.layout.showChildView(xC.CONTENT,(0,Q.jsx)(t,{error:e}))}async dialogError(){let e=Qb.default.channel(`error:view`).request(`current:error`);if(!e)return;let{dialogOptions:t}=e,{DialogView:n}=await gn(async()=>{let{DialogView:e}=await import(`./CX3PLISe2.chunk.js`);return{DialogView:e}},__vite__mapDeps([47,1,3,4,48,49,9]));this.layout.showChildView(xC.POPUP,(0,Q.jsx)(n,{title:t.title,text:t.text,buttons:t.buttons,onDone:e.onDone,onFail:e.onFail,closePopup:()=>this.layout.closePopup()}))}async devError(){let e=Qb.default.channel(`error:view`).request(`current:error`),{DevErrorView:t}=await gn(async()=>{let{DevErrorView:e}=await import(`./CWLHiStI2.chunk.js`);return{DevErrorView:e}},__vite__mapDeps([50,1,51,52,49,12,2,6,13,14]));this.layout.showChildView(xC.CONTENT,(0,Q.jsx)(t,{error:e}))}async noClassroomsError(){let e=Qb.default.channel(`error:view`).request(`current:error`),{NoClassroomsErrorView:t}=await gn(async()=>{let{NoClassroomsErrorView:e}=await import(`./DkhktXkG.chunk.js`);return{NoClassroomsErrorView:e}},__vite__mapDeps([53,1,12,2,6,13,14,42,3,4,43,54]));this.layout.showChildView(xC.CONTENT,(0,Q.jsx)(t,{error:e,imageUrl:Nn.Errors.NoClassrooms}))}async share(e,t){let{ShareView:n}=await gn(async()=>{let{ShareView:e}=await import(`./DxD2uVzf2.chunk.js`);return{ShareView:e}},__vite__mapDeps([55,1,2,56,57,3,4,5,6,21,9,22,23,24,58,48,49,59,52,8,60,61,13,20,17,26,27,28,29,30,19,62,63,64]));this.layout.showChildView(xC.POPUP,(0,Q.jsx)(n,{entityId:e,entityType:t.entityType,closePopup:()=>this.layout.closePopup(),emptyStateImageUrl:Nn.EmptyStates.Shared.TypeaheadResults,errorStateImageUrl:Nn.Errors.TypeaheadError}))}async generateReport(e){let{GenerateReportView:t}=await gn(async()=>{let{GenerateReportView:e}=await import(`./ClX2mOw_.chunk.js`);return{GenerateReportView:e}},__vite__mapDeps([65,66,1,2,48,3,4,49,6,13,59,52,8,9,60,20,26,10,67]));this.layout.showChildView(xC.POPUP,(0,Q.jsx)(t,{type:e.type,closePopup:()=>this.layout.closePopup()}))}async removeLogo(e){let{RemoveLogoView:t}=await gn(async()=>{let{RemoveLogoView:e}=await import(`./fIFpt-kC.chunk.js`);return{RemoveLogoView:e}},__vite__mapDeps([68,1,48,3,4,49,6,59,52,8,9,60,26,20,2]));this.layout.showChildView(xC.POPUP,(0,Q.jsx)(t,{logoId:e.logoId,customerId:e.customerId,closePopup:()=>this.layout.closePopup()}))}async giveFeedback(){let{GiveFeedbackView:e}=await gn(async()=>{let{GiveFeedbackView:e}=await import(`./jXHCFC1j2.chunk.js`);return{GiveFeedbackView:e}},__vite__mapDeps([69,1,2,56,57,3,4,5,6,21,9,22,23,24,58,48,49,59,52,8,60,61,20,26,70,36,10,67,62,33,34,28,71]));this.layout.showChildView(xC.POPUP,(0,Q.jsx)(e,{product:Pn.Analytics,closePopup:()=>this.layout.closePopup()}))}async classroomViewsPopup(){let{ClassroomViewsPopupView:e}=await gn(async()=>{let{ClassroomViewsPopupView:e}=await import(`./IH7D3jLI.chunk.js`);return{ClassroomViewsPopupView:e}},__vite__mapDeps([72,1,3,4,48,49,6,13,59,52,8,9,60,26,20,2]));this.layout.showChildView(xC.POPUP,(0,Q.jsx)(e,{closePopup:()=>this.layout.closePopup()}))}async uploadImage(e){let{ImageUploadView:t}=await gn(async()=>{let{ImageUploadView:e}=await import(`./BCcIdtcy2.chunk.js`);return{ImageUploadView:e}},__vite__mapDeps([73,1,48,3,4,49,6,59,52,8,9,60,34,74]));this.layout.showChildView(xC.POPUP,(0,Q.jsx)(t,{getRequest:HC.uploadBase64Image,imageType:e,popupSize:`lg`,closePopup:()=>this.layout.closePopup()}))}},ZC=class extends _{get channelName(){return Mn.LOGINS}get appRoutes(){return{"logins(/)":`index`}}get filters(){return[jC,LC]}},QC=class extends mC{get name(){return`SchoolLogins Application`}get layoutOptions(){return{name:SC.REPORTS_LAYOUT,options:{hideNav:bC.shouldHideNav(),hideHeader:bC.shouldHideHeader(),alertRegion:xC.ALERT}}}get channelName(){return Mn.LOGINS}static get router(){return ZC}async index(){let{SchoolLoginOverview:e}=await gn(async()=>{let{SchoolLoginOverview:e}=await import(`./C5k6lVOP.chunk.js`);return{SchoolLoginOverview:e}},__vite__mapDeps([75,1,2,5,6,13,7,8,9,10,11,12,14,42,3,4,43,16,17,76,59,48,49,52,60,66,20,26,67,38,77]));this.layout.showChildView(xC.CONTENT,(0,Q.jsx)(e,{}))}},$C=class extends _{get channelName(){return Mn.VIDEOS}get appRoutes(){return{"videos(/)":`index`,"videos/top(/)":`topVideos`,"videos/:id/views(/)":`videoViews`,"interactives/:id/views(/)":`interactiveViews`,"clips/:id/views(/)":`clipViews`,"videos/:id/overview":`videoRedirect`,"videos/:id/engagement":`videoRedirect`,"clips/:id/overview":`clipRedirect`,"clips/:id/engagement":`clipRedirect`,"interactives/:id/overview":`interactiveRedirect`,"interactives/:id/results":`interactiveRedirect`,"interactives/:id/engagement":`interactiveRedirect`,"interactives/:id/question-list":`interactiveRedirect`}}get filters(){return[jC,LC]}},ew=class extends mC{get name(){return`School Videos Application`}get layoutOptions(){return{name:SC.REPORTS_LAYOUT,options:{hideNav:bC.shouldHideNav(),hideHeader:bC.shouldHideHeader(),alertRegion:xC.ALERT}}}get channelName(){return Mn.VIDEOS}static get router(){return $C}async index(){let{SchoolVideoOverviewView:e}=await gn(async()=>{let{SchoolVideoOverviewView:e}=await import(`./DUzAx5n_.chunk.js`);return{SchoolVideoOverviewView:e}},__vite__mapDeps([78,1,6,7,5,8,9,10,11,12,2,13,14,15,16,17,42,3,4,43,79,27,28,29,38,80,76,59,48,49,52,60,66,20,26,67,81,44,39,31,22,23,32,40,41,82]));this.layout.showChildView(xC.CONTENT,(0,Q.jsx)(e,{}))}async topVideos(){let{SchoolTopVideosView:e}=await gn(async()=>{let{SchoolTopVideosView:e}=await import(`./OU_kRJz_.chunk.js`);return{SchoolTopVideosView:e}},__vite__mapDeps([83,1,84,3,4,5,6,85,8,9,12,2,13,14,60,15,16,17,18,19,20,25,26,21,22,23,24,27,28,29,30,31,32,33,34,35,42,43,79,38,80,86]));this.layout.showChildView(xC.CONTENT,(0,Q.jsx)(e,{}))}async videoViews(e){let{SchoolVideoViewsView:t}=await gn(async()=>{let{SchoolVideoViewsView:e}=await import(`./DtSAu9Xt.chunk.js`);return{SchoolVideoViewsView:e}},__vite__mapDeps([87,1,2,57,3,4,5,6,21,9,22,23,24,58,84,85,48,49,13,7,8,10,11,12,14,15,16,17,18,19,20,26,33,34,88,63,37,29,76,59,52,60,66,67,38,81,42,43,44,41,89]));this.layout.showChildView(xC.CONTENT,(0,Q.jsx)(t,{typeId:fn.Video,id:e}))}async interactiveViews(e){let{SchoolVideoViewsView:t}=await gn(async()=>{let{SchoolVideoViewsView:e}=await import(`./DtSAu9Xt.chunk.js`);return{SchoolVideoViewsView:e}},__vite__mapDeps([87,1,2,57,3,4,5,6,21,9,22,23,24,58,84,85,48,49,13,7,8,10,11,12,14,15,16,17,18,19,20,26,33,34,88,63,37,29,76,59,52,60,66,67,38,81,42,43,44,41,89]));this.layout.showChildView(xC.CONTENT,(0,Q.jsx)(t,{typeId:fn.Interactive,id:e}))}async clipViews(e){let{SchoolVideoViewsView:t}=await gn(async()=>{let{SchoolVideoViewsView:e}=await import(`./DtSAu9Xt.chunk.js`);return{SchoolVideoViewsView:e}},__vite__mapDeps([87,1,2,57,3,4,5,6,21,9,22,23,24,58,84,85,48,49,13,7,8,10,11,12,14,15,16,17,18,19,20,26,33,34,88,63,37,29,76,59,52,60,66,67,38,81,42,43,44,41,89]));this.layout.showChildView(xC.CONTENT,(0,Q.jsx)(t,{typeId:fn.Clip,id:e}))}videoRedirect(e,t){_e.trigger({application:Mn.VIDEOS,action:jn.Videos.VIDEO_VIEWS,args:[e],params:t},{replace:!0})}clipRedirect(e,t){_e.trigger({application:Mn.VIDEOS,action:jn.Videos.CLIP_VIEWS,args:[e],params:t},{replace:!0})}interactiveRedirect(e,t){_e.trigger({application:Mn.VIDEOS,action:jn.Videos.INTERACTIVE_VIEWS,args:[e],params:t},{replace:!0})}};async function tw(e,t){let[n,r]=await Promise.all([Zt(e.store,Mt.currentUser()),Zt(e.store,Mt.permissions()),Zt(e.store,kn.customerSettings()),Zt(e.store,kn.userSettings())]);try{if(un.setCurrentRegion(uC[n.instanceRegion]),e.registerApplication(XC),!n.isAuthenticated){t(e);return}r[Sn.ViewSchoolAnalytics]&&e.registerApplication(zC).registerApplication(QC).registerApplication(ew),t(e)}catch{R.throw(new pC)}}var nw=function(e){return e.Fifo=`FifoMemoryCache`,e}({});Me();var rw=class extends P{constructor(e){super(),this.size=e.size,this.cache={},this.cachedkeys=[],this.store=e.store}get name(){return nw.Fifo}removeCacheKey(e){this.cachedkeys=ce(this.cachedkeys,e)}has(e){return!!this.cache[e]}get(e){return this.cache[e]}set(e,t){(!e||!t)&&R.throw(new y(`Must provide a cache key and a value to cache in FifoMemoryCache.`)),this.has(e)&&this.removeCacheKey(e),this.cachedkeys.push(e),this.cache[e]=t,this.cachedkeys.length>this.size&&delete this.cache[this.cachedkeys.shift()]}getOrSet(e,t){if(this.has(e))return this.get(e);let n=t();return this.set(e,n),n}remove(e){return this.has(e)?(delete this.cache[e],this.removeCacheKey(e),!0):!1}invalidate(e,t,n=!1){let r=Se(this.cachedkeys,this.cachedkeys),i=[];me(e,e=>{r[e]&&i.push(e);let t=new RegExp(e,`i`),n=w(r,e=>t.test(e));i.push(...n)}),i.length&&(i=le(i),me(i,e=>{delete this.cache[e],M(t)&&t(e)}),this.cachedkeys=ce(this.cachedkeys,...i)),!(!this.store||!n)&&this.store.dispatch({type:$t.INVALIDATE,keys:e})}};function iw(e,t){Pt.registerInstance(rw,{size:100}),t(e)}var aw=g(ge()),ow=function(e){return e.Ajax=`AjaxDataProvider`,e.Notifications=`NotificationsSignalRDataProvider`,e}({}),sw=function(e){return e[e.Unknown=0]=`Unknown`,e[e.BadRequest=1]=`BadRequest`,e[e.Unauthorized=2]=`Unauthorized`,e[e.Forbidden=3]=`Forbidden`,e[e.NotFound=4]=`NotFound`,e[e.InternalServer=5]=`InternalServer`,e}({}),cw={type:sw.Unknown,message:``,code:0},lw={parseErrorMessage(e,t,n){if(!n||!n.errorCode)return e[t];let r=`${n.errorCode}`;return n.errorSubCode&&(r+=`.${n.errorSubCode}`),e[r]||e[t]}};Me();var uw=class extends WS.MnObject{constructor(e){super(e),aw.default.ajaxSetup({cache:e.cacheRequests??!1,contentType:`application/json; charset=utf-8`}),this.successMiddleware={},this.errorMiddleware={},this.dataServiceErrorMessageMappings=e.dataServiceErrorMessageMappings,this.defaultErrorMessageKey=e.defaultErrorMessageKey}get name(){return ow.Ajax}parseUrl(e){let t=document.createElement(`a`);return t.href=e,t.host===``&&(t.href=t.href),t}makeHttps(e){let t=this.parseUrl(e);return t.protocol===`http:`&&(t.protocol=`https:`),t.href}base(e,t,n,r={}){n||=Lt.GET;let i=oe.defaults(r,{forceHttps:!1}),a={url:e,method:n,type:n};t&&(a.data=n===Lt.POST||n===Lt.PUT?JSON.stringify(t):t),i.forceHttps&&(a.url=this.makeHttps(a.url)),i.traditional&&(a.traditional=i.traditional);let o=aw.default.ajax(a);return oe.keys(this.successMiddleware).length&&o.done(oe.values(this.successMiddleware)),oe.keys(this.errorMiddleware).length&&o.fail(oe.values(this.errorMiddleware)),o}create(e,t,n){let{channel:r,successEvent:i,errorEvent:a}=n;this.base(e,t,Lt.POST).done((e,t,n)=>r.trigger(i,e,t,n)).fail((e,t,n)=>r.trigger(a,e,t,n))}read(e,t){let{channel:n,successEvent:r,errorEvent:i}=t;this.base(e,null,Lt.GET).done((e,t,i)=>{n.trigger(r,e,t,i)}).fail((e,t,r)=>{n.trigger(i,e,t,r)})}update(e,t,n){let{channel:r,successEvent:i,errorEvent:a}=n;this.base(e,t,Lt.PUT).done((e,t,n)=>r.trigger(i,e,t,n)).fail((e,t,n)=>r.trigger(a,e,t,n))}delete(e,t){let{channel:n,successEvent:r,errorEvent:i}=t;this.base(e,null,Lt.DELETE).done((e,t,i)=>n.trigger(r,e,t,i)).fail((e,t,r)=>n.trigger(i,e,t,r))}useMiddleware(e,t){this.successMiddleware[e]||(this.successMiddleware[e]=t)}useErrorMiddleware(e,t){this.errorMiddleware[e]||(this.errorMiddleware[e]=t)}parseError(e){let t=e.responseJSON,n=cw;switch(n.code=e.status,n.message=lw.parseErrorMessage(this.dataServiceErrorMessageMappings,this.defaultErrorMessageKey,t),e.status){case 400:n.type=sw.BadRequest;break;case 401:n.type=sw.Unauthorized;break;case 403:n.type=sw.Forbidden;break;case 404:n.type=sw.NotFound;break;case 500:n.type=sw.InternalServer;break}return n}};function dw(e,t){Pt.registerInstance(uw,{dataServiceErrorMessageMappings:{temp:`Error`},defaultErrorMessageKey:`temp`}),t(e)}Me();var fw=class extends P{get defaultProps(){return[`dataProvider`,`cache`,`bootstrapData`,`defaultErrorHandler`,`alertService`]}constructor(e){super(e),x(this,`name`)||R.throw(new y(`Must provide a name when extending BaseDataService`)),x(this,`channelName`)||R.throw(new y(`Must provide a channelName for ${x(this,`name`)}`));let t=[...this.defaultProps,...this.props||[]];this.dataRequestSignatures={},this.mergeOptions(e,t)}getCursors(e){let t=this.cache.get(e);return t?t.cursors:{next:``,previous:``}}clearCacheAndGet(e){let{callback:t,errorCallback:n,eventPrefix:r}=e,{syncEvent:i,errorEvent:a}=this.getEventNames(r),o=this.cache.get(r);if(o&&o.openRequest){this.listenToOnce(this.getChannel(),i,e=>{M(n)&&this.stopListening(this.getChannel(),a,n),M(t)&&t(e)}),this.listenToOnce(this.getChannel(),a,()=>{M(t)&&this.stopListening(this.getChannel(),i,t),M(n)&&n()});return}this.cache.remove(e.eventPrefix),this.get(e)}get(e){let{callback:t,errorCallback:n,eventPrefix:r,resource:i,formatData:a,expiryTime:o,successHandler:s,errorHandler:c,bootstrapName:l,invalidateFlight:u}=e,{syncEvent:d,requestEvent:f,successEvent:p,errorEvent:m}=this.getEventNames(r),h=this.getChannel(),g=this.currentTimestamp();this.bootstrapData&&this.bootstrapData[l]&&(this.cacheData(r,this.bootstrapData[l],a,{openRequest:!1,timestamp:g}),delete this.bootstrapData[l]);let _=this.cache.get(r),v;_&&(v=_.data);let y=_&&_.openRequest,b=this.isExpired(r,o);if(y&&(this.listenToOnce(h,d,e=>{M(n)&&this.stopListening(this.getChannel(),m,n),M(t)&&t(e)}),this.listenToOnce(h,m,()=>{M(t)&&this.stopListening(this.getChannel(),d,t),M(n)&&n()})),(!this.cache.has(r)||b)&&(h.trigger(f),this.listenToResponse({eventPrefix:r,formatData:a,cacheOptions:{timestamp:g},callback:t,errorCallback:n,successHandler:s,errorHandler:c,invalidateFlight:u}),this.cacheData(r,null,null,{openRequest:!0,timestamp:g}),this.dataProvider.read(i,{channel:this.getTransportChannel(),successEvent:p,errorEvent:m})),v&&M(t)&&!b&&t(v),v)return v}create(e){let{eventPrefix:t,resource:n,data:r,formatData:i,callback:a,errorCallback:o,invalidationKeys:s,successHandler:c,errorHandler:l,invalidateFlight:u}=e,{requestEvent:d,successEvent:f,errorEvent:p}=this.getEventNames(e.eventPrefix),m=this.getChannel(),h=this.getTransportChannel();m.trigger(d),this.listenToResponse({eventPrefix:t,formatData:i,invalidationKeys:s,callback:a,errorCallback:o,successHandler:c,errorHandler:l,invalidateFlight:u}),this.dataProvider.create(n,r,{channel:h,successEvent:f,errorEvent:p})}update(e){let{data:t,callback:n,errorCallback:r,resource:i,formatData:a,eventPrefix:o,invalidationKeys:s,errorHandler:c,successHandler:l,invalidateFlight:u}=e,{requestEvent:d,successEvent:f,errorEvent:p}=this.getEventNames(e.eventPrefix),m=this.getChannel(),h=this.getTransportChannel();m.trigger(d),this.listenToResponse({eventPrefix:o,formatData:a,invalidationKeys:s,callback:n,errorCallback:r,successHandler:l,errorHandler:c,invalidateFlight:u}),this.dataProvider.update(i,t,{channel:h,successEvent:f,errorEvent:p})}delete(e){let{eventPrefix:t,resource:n,callback:r,errorCallback:i,invalidationKeys:a,successHandler:o,errorHandler:s,invalidateFlight:c}=e,{successEvent:l,errorEvent:u}=this.getEventNames(t),d=this.getTransportChannel();this.listenToResponse({eventPrefix:t,invalidationKeys:a,callback:r,errorCallback:i,cacheOptions:{noCache:!0,clearCacheKey:!0},successHandler:o,errorHandler:s,invalidateFlight:c}),this.dataProvider.delete(n,{channel:d,successEvent:l,errorEvent:u})}listenToResponse(e){let{eventPrefix:t,formatData:n,callback:r,errorCallback:i,successHandler:a,errorHandler:o,invalidationKeys:s,cacheOptions:c={},invalidateFlight:l}=e,{syncEvent:u,successEvent:d,errorEvent:f,successAlertEvent:p,errorAlertEvent:m}=this.getEventNames(t),h=this.getChannel(),g=this.getTransportChannel(),_=this.getAlertChannel();M(r)&&this.listenToOnce(h,u,r),M(i)&&this.listenToOnce(h,f,i),this.stopListening(_,p),this.stopListening(_,m),M(a)&&this.listenToOnce(_,p,a),M(o)&&this.listenToOnce(_,m,o),!M(o)&&o!==!1&&M(this.defaultErrorHandler)&&this.listenToOnce(_,m,this.defaultErrorHandler),!this.hasRequestSignature(t)&&(this.setRequestSignature(t),this.listenTo(g,d,(e,...r)=>{this.stopListening(h,f,i),_.trigger(p,e,...r);let a=c.noCache?this.formatData(e,n):this.cacheData(t,e,n);c.clearCacheKey&&this.cache.remove(t),h.trigger(u,a),s&&s.length&&this.cache.invalidate(s,e=>h.trigger(`${e}:invalidate`),l)}),this.listenTo(g,f,(...e)=>{this.stopListening(h,u,r);let n=this.dataProvider.parseError(...e);_.trigger(m,n),h.trigger(f,n),!c.noCache&&this.cacheData(t,null,null)}))}cacheData(e,t,n,r={}){let{openRequest:i=!1}=r,{timestamp:a}=r;a||=this.currentTimestamp();let o=this.processPagination(t),s=this.formatData(t,n);return this.cache.set(e,{data:s,timestamp:a,cursors:o,openRequest:i}),s}processPagination(e){if(!e)return;let{pagination:t}=e;if(t){if(t.cursors)return t.cursors;if(!d(t.offset)&&!d(t.pageSize))return this.convertOffsetPaginationToCursors(t);if(t.page)return this.convertLegacyPaginationToCursors(t)}}formatData(e,t){return M(t)?t(e):e}chain(){let e=[],t=(e,t)=>{M(e)&&e(t)},n=(n,i)=>(e.push(()=>{let r=n.callback;n.callback=n=>{t(r,n),t(e.shift())},this[i](n)}),r),r={func(t){return e.push(()=>{t(e.shift()||(()=>{}))}),r},get(e){return n(e,`get`)},create(e){return n(e,`create`)},update(e){return n(e,`update`)},delete(e){return n(e,`delete`)},run(){t(e.shift())}};return r}invalidateCache(e,t=!1){!e||!e.length||this.cache.invalidate(e,e=>this.getChannel().trigger(`${e}:invalidate`),t)}currentTimestamp(){return new Date().valueOf()}isExpired(e,t){if(!t)return!1;let n=this.cache.get(e);if(!n||!n.timestamp)return!0;let r=n.timestamp,i=t*1e3;return r<this.currentTimestamp()-i}getEventNames(e){return{syncEvent:`${e}:sync`,requestEvent:`${e}:request`,successEvent:`${e}:success`,errorEvent:`${e}:error`,successAlertEvent:`${e}:success:alert`,errorAlertEvent:`${e}:error:alert`}}getTransportChannel(){return Qb.default.channel(`${this.channelName}:transport`)}getAlertChannel(){return Qb.default.channel(`${this.channelName}:alert`)}setRequestSignature(e){this.dataRequestSignatures[e]=e}hasRequestSignature(e){return!!this.dataRequestSignatures[e]}convertOffsetPaginationToCursors(e){let{offset:t,pageSize:n,totalItems:r}=e,i=r>0&&t<r&&t+n,a=r>0&&t>0&&Math.max(t-n,0),o={};if(i&&i<r&&(o.next=i.toString()),F(a)&&(o.previous=a.toString()),!m(o))return o}convertLegacyPaginationToCursors(e){let{page:t,totalPages:n}=e,r=F(t)&&t>0&&t<n&&t+1,i=F(t)&&t>1&&t-1,a={};if(r&&r<=n&&(a.next=r.toString()),i&&(a.previous=i.toString()),!m(a))return a}},pw={UPLOAD_COMPLETE:`upload:complete`,UPLOAD_SUCCESS:`upload:success`,FILES_SELECTED:`files:selected`,FILES_ADDED:`files:added`,UPLOAD_CANCELLED:`upload:cancelled`,PENDING_ITEM_READY_TO_WATCH:`pending:item:ready:to:watch`,PENDING_ITEM_STATUS_CHANGE:`pending:item:status:change`,PROCESSING_CANCELLED:`processing:cancelled`,UNLOCK_NAV:`upload:unlock:nav`,PROCESSING_FAILED:`processing:failed`},mw=function(e){return e[e.Permanent=0]=`Permanent`,e[e.Temporary=1]=`Temporary`,e}({}),hw=class extends Ln{constructor(e){super(e)}get name(){return`FileTypeError`}get lang(){return`upload.fileType`}get dialogOptions(){return{title:B.getPhrase(this.lang,`heading`),text:B.getPhrase(this.lang,`body`),buttons:[{text:B.getPhrase(this.lang,`okay`),className:`btn btn-dark`,success:!0},{text:B.getPhrase(this.lang,`close`),className:`btn btn-link`,close:!0}]}}};Me();var gw=[`pdf`],_w=[`doc`,`docx`,`dotx`,`dot`,`rtf`,`docm`,`odt`],vw=[`csv`,`txt`],yw=[`xlsx`],bw=[`jpg`,`jpeg`,`png`,`bmp`,`gif`,`webp`],xw=[`3gp`,`3gpp`,`asx`,`avi`,`divx`,`flv`,`m2t`,`m2ts`,`m2v`,`m4v`,`mkv`,`mod`,`mov`,`mp4`,`mpe`,`mpeg`,`mpg`,`mts`,`ogv`,`qt`,`ts`,`vob`,`webm`,`wmv`],Sw=[`zip`],Cw=[`ppt`,`pps`,`pptx`],ww=[`srt`],Tw={IMAGES:`.${bw.join(`,.`)}`,VIDEO:`.${xw.join(`,.`)}`,MIXED_MEDIA:`.${bw.join(`,.`)},${xw.join(`,.`)}`,RESOURCES:`.${[..._w,...yw,...Cw,...gw,...vw,...bw,...Sw].join(`,.`)}`,SUBTITLES:`.${ww.join(`,.`)}`},Ew={CONFIG:`config:data:service`,USER:`user:data:service`,LANGUAGE:`language:data:service`,LIBRARY:`library:data:service`,SEARCH:`search:data:service`,SERIES:`series:data:service`,NOTIFICATIONS:`notifications:data:service`,NOTIFICATIONS_SOCKET:`notifications:socket:service`},Dw={PENDING_ITEMS:`pending:items:service`,VIDEO_UPLOAD:`video:upload:service`,SUBTITLE_UPLOAD:`subtitle:upload:service`,RESOURCE_UPLOAD:`resource:upload:service`,CONTEXTUAL_SEARCH:`contextual:search:service`,IMAGE_UPLOAD:`image:upload:service`,MIXED_MEDIA_UPLOAD:`media:upload:service`,BRAZE:`braze:client:service`},Ow={requestUpload(e,t){let n=e.name.split(`.`),r=t===mw.Permanent?null:dn.add(new Date,7,`days`).toISOString(),i={name:n.join(`.`),extension:n.length>1?n.pop():``,size:e.size,lifestyle:t,dateExpires:r,contentType:e.type||`application/octet-stream`,chunkUploadEnabled:!0};return{url:`{gateway}/v1/files/upload`,key:`upload:file`,type:Lt.POST,data:i}}},kw=v(((e,t)=>{(function(n,r){if(typeof e==`object`&&typeof t==`object`)t.exports=r();else if(typeof define==`function`&&define.amd)define([],r);else{var i=r();for(var a in i)(typeof e==`object`?e:n)[a]=i[a]}})(self,function(){return(function(){var e={3099:(function(e){e.exports=function(e){if(typeof e!=`function`)throw TypeError(String(e)+` is not a function`);return e}}),6077:(function(e,t,n){var r=n(111);e.exports=function(e){if(!r(e)&&e!==null)throw TypeError(`Can't set `+String(e)+` as a prototype`);return e}}),1223:(function(e,t,n){var r=n(5112),i=n(30),a=n(3070),o=r(`unscopables`),s=Array.prototype;s[o]??a.f(s,o,{configurable:!0,value:i(null)}),e.exports=function(e){s[o][e]=!0}}),1530:(function(e,t,n){var r=n(8710).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}}),5787:(function(e){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError(`Incorrect `+(n?n+` `:``)+`invocation`);return e}}),9670:(function(e,t,n){var r=n(111);e.exports=function(e){if(!r(e))throw TypeError(String(e)+` is not an object`);return e}}),4019:(function(e){e.exports=typeof ArrayBuffer<`u`&&typeof DataView<`u`}),260:(function(e,t,n){var r=n(4019),i=n(9781),a=n(7854),o=n(111),s=n(6656),c=n(648),l=n(8880),u=n(1320),d=n(3070).f,f=n(9518),p=n(7674),m=n(5112),h=n(9711),g=a.Int8Array,_=g&&g.prototype,v=a.Uint8ClampedArray,y=v&&v.prototype,b=g&&f(g),x=_&&f(_),S=Object.prototype,C=S.isPrototypeOf,w=m(`toStringTag`),T=h(`TYPED_ARRAY_TAG`),E=r&&!!p&&c(a.opera)!==`Opera`,D=!1,O,k={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},A={BigInt64Array:8,BigUint64Array:8},j=function(e){if(!o(e))return!1;var t=c(e);return t===`DataView`||s(k,t)||s(A,t)},M=function(e){if(!o(e))return!1;var t=c(e);return s(k,t)||s(A,t)},N=function(e){if(M(e))return e;throw TypeError(`Target is not a typed array`)},P=function(e){if(p){if(C.call(b,e))return e}else for(var t in k)if(s(k,O)){var n=a[t];if(n&&(e===n||C.call(n,e)))return e}throw TypeError(`Target is not a typed array constructor`)},F=function(e,t,n){if(i){if(n)for(var r in k){var o=a[r];o&&s(o.prototype,e)&&delete o.prototype[e]}(!x[e]||n)&&u(x,e,n?t:E&&_[e]||t)}},I=function(e,t,n){var r,o;if(i){if(p){if(n)for(r in k)o=a[r],o&&s(o,e)&&delete o[e];if(!b[e]||n)try{return u(b,e,n?t:E&&g[e]||t)}catch{}else return}for(r in k)o=a[r],o&&(!o[e]||n)&&u(o,e,t)}};for(O in k)a[O]||(E=!1);if((!E||typeof b!=`function`||b===Function.prototype)&&(b=function(){throw TypeError(`Incorrect invocation`)},E))for(O in k)a[O]&&p(a[O],b);if((!E||!x||x===S)&&(x=b.prototype,E))for(O in k)a[O]&&p(a[O].prototype,x);if(E&&f(y)!==x&&p(y,x),i&&!s(x,w))for(O in D=!0,d(x,w,{get:function(){return o(this)?this[T]:void 0}}),k)a[O]&&l(a[O],T,O);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:E,TYPED_ARRAY_TAG:D&&T,aTypedArray:N,aTypedArrayConstructor:P,exportTypedArrayMethod:F,exportTypedArrayStaticMethod:I,isView:j,isTypedArray:M,TypedArray:b,TypedArrayPrototype:x}}),3331:(function(e,t,n){var r=n(7854),i=n(9781),a=n(4019),o=n(8880),s=n(2248),c=n(7293),l=n(5787),u=n(9958),d=n(7466),f=n(7067),p=n(1179),m=n(9518),h=n(7674),g=n(8006).f,_=n(3070).f,v=n(1285),y=n(8003),b=n(9909),x=b.get,S=b.set,C=`ArrayBuffer`,w=`DataView`,T=`prototype`,E=`Wrong length`,D=`Wrong index`,O=r[C],k=O,A=r[w],j=A&&A[T],M=Object.prototype,N=r.RangeError,P=p.pack,F=p.unpack,I=function(e){return[e&255]},L=function(e){return[e&255,e>>8&255]},ee=function(e){return[e&255,e>>8&255,e>>16&255,e>>24&255]},te=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},R=function(e){return P(e,23,4)},ne=function(e){return P(e,52,8)},z=function(e,t){_(e[T],t,{get:function(){return x(this)[t]}})},re=function(e,t,n,r){var i=f(n),a=x(e);if(i+t>a.byteLength)throw N(D);var o=x(a.buffer).bytes,s=i+a.byteOffset,c=o.slice(s,s+t);return r?c:c.reverse()},ie=function(e,t,n,r,i,a){var o=f(n),s=x(e);if(o+t>s.byteLength)throw N(D);for(var c=x(s.buffer).bytes,l=o+s.byteOffset,u=r(+i),d=0;d<t;d++)c[l+d]=u[a?d:t-d-1]};if(!a)k=function(e){l(this,k,C);var t=f(e);S(this,{bytes:v.call(Array(t),0),byteLength:t}),i||(this.byteLength=t)},A=function(e,t,n){l(this,A,w),l(e,k,w);var r=x(e).byteLength,a=u(t);if(a<0||a>r)throw N(`Wrong offset`);if(n=n===void 0?r-a:d(n),a+n>r)throw N(E);S(this,{buffer:e,byteLength:n,byteOffset:a}),i||(this.buffer=e,this.byteLength=n,this.byteOffset=a)},i&&(z(k,`byteLength`),z(A,`buffer`),z(A,`byteLength`),z(A,`byteOffset`)),s(A[T],{getInt8:function(e){return re(this,1,e)[0]<<24>>24},getUint8:function(e){return re(this,1,e)[0]},getInt16:function(e){var t=re(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=re(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return te(re(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return te(re(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return F(re(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return F(re(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){ie(this,1,e,I,t)},setUint8:function(e,t){ie(this,1,e,I,t)},setInt16:function(e,t){ie(this,2,e,L,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){ie(this,2,e,L,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){ie(this,4,e,ee,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){ie(this,4,e,ee,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){ie(this,4,e,R,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){ie(this,8,e,ne,t,arguments.length>2?arguments[2]:void 0)}});else{if(!c(function(){O(1)})||!c(function(){new O(-1)})||c(function(){return new O,new O(1.5),new O(NaN),O.name!=C})){k=function(e){return l(this,k),new O(f(e))};for(var ae=k[T]=O[T],oe=g(O),se=0,ce;oe.length>se;)(ce=oe[se++])in k||o(k,ce,O[ce]);ae.constructor=k}h&&m(j)!==M&&h(j,M);var le=new A(new k(2)),ue=j.setInt8;le.setInt8(0,2147483648),le.setInt8(1,2147483649),(le.getInt8(0)||!le.getInt8(1))&&s(j,{setInt8:function(e,t){ue.call(this,e,t<<24>>24)},setUint8:function(e,t){ue.call(this,e,t<<24>>24)}},{unsafe:!0})}y(k,C),y(A,w),e.exports={ArrayBuffer:k,DataView:A}}),1048:(function(e,t,n){var r=n(7908),i=n(1400),a=n(7466),o=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),s=a(n.length),c=i(e,s),l=i(t,s),u=arguments.length>2?arguments[2]:void 0,d=o((u===void 0?s:i(u,s))-l,s-c),f=1;for(l<c&&c<l+d&&(f=-1,l+=d-1,c+=d-1);d-- >0;)l in n?n[c]=n[l]:delete n[c],c+=f,l+=f;return n}}),1285:(function(e,t,n){var r=n(7908),i=n(1400),a=n(7466);e.exports=function(e){for(var t=r(this),n=a(t.length),o=arguments.length,s=i(o>1?arguments[1]:void 0,n),c=o>2?arguments[2]:void 0,l=c===void 0?n:i(c,n);l>s;)t[s++]=e;return t}}),8533:(function(e,t,n){var r=n(2092).forEach;e.exports=n(9341)(`forEach`)?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),8457:(function(e,t,n){var r=n(9974),i=n(7908),a=n(3411),o=n(7659),s=n(7466),c=n(6135),l=n(1246);e.exports=function(e){var t=i(e),n=typeof this==`function`?this:Array,u=arguments.length,d=u>1?arguments[1]:void 0,f=d!==void 0,p=l(t),m=0,h,g,_,v,y,b;if(f&&(d=r(d,u>2?arguments[2]:void 0,2)),p!=null&&!(n==Array&&o(p)))for(v=p.call(t),y=v.next,g=new n;!(_=y.call(v)).done;m++)b=f?a(v,d,[_.value,m],!0):_.value,c(g,m,b);else for(h=s(t.length),g=new n(h);h>m;m++)b=f?d(t[m],m):t[m],c(g,m,b);return g.length=m,g}}),1318:(function(e,t,n){var r=n(5656),i=n(7466),a=n(1400),o=function(e){return function(t,n,o){var s=r(t),c=i(s.length),l=a(o,c),u;if(e&&n!=n){for(;c>l;)if(u=s[l++],u!=u)return!0}else for(;c>l;l++)if((e||l in s)&&s[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}}),2092:(function(e,t,n){var r=n(9974),i=n(8361),a=n(7908),o=n(7466),s=n(5417),c=[].push,l=function(e){var t=e==1,n=e==2,l=e==3,u=e==4,d=e==6,f=e==7,p=e==5||d;return function(m,h,g,_){for(var v=a(m),y=i(v),b=r(h,g,3),x=o(y.length),S=0,C=_||s,w=t?C(m,x):n||f?C(m,0):void 0,T,E;x>S;S++)if((p||S in y)&&(T=y[S],E=b(T,S,v),e))if(t)w[S]=E;else if(E)switch(e){case 3:return!0;case 5:return T;case 6:return S;case 2:c.call(w,T)}else switch(e){case 4:return!1;case 7:c.call(w,T)}return d?-1:l||u?u:w}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterOut:l(7)}}),6583:(function(e,t,n){var r=n(5656),i=n(9958),a=n(7466),o=n(9341),s=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,u=o(`lastIndexOf`);e.exports=l||!u?function(e){if(l)return c.apply(this,arguments)||0;var t=r(this),n=a(t.length),o=n-1;for(arguments.length>1&&(o=s(o,i(arguments[1]))),o<0&&(o=n+o);o>=0;o--)if(o in t&&t[o]===e)return o||0;return-1}:c}),1194:(function(e,t,n){var r=n(7293),i=n(5112),a=n(7392),o=i(`species`);e.exports=function(e){return a>=51||!r(function(){var t=[],n=t.constructor={};return n[o]=function(){return{foo:1}},t[e](Boolean).foo!==1})}}),9341:(function(e,t,n){var r=n(7293);e.exports=function(e,t){var n=[][e];return!!n&&r(function(){n.call(null,t||function(){throw 1},1)})}}),3671:(function(e,t,n){var r=n(3099),i=n(7908),a=n(8361),o=n(7466),s=function(e){return function(t,n,s,c){r(n);var l=i(t),u=a(l),d=o(l.length),f=e?d-1:0,p=e?-1:1;if(s<2)for(;;){if(f in u){c=u[f],f+=p;break}if(f+=p,e?f<0:d<=f)throw TypeError(`Reduce of empty array with no initial value`)}for(;e?f>=0:d>f;f+=p)f in u&&(c=n(c,u[f],f,l));return c}};e.exports={left:s(!1),right:s(!0)}}),5417:(function(e,t,n){var r=n(111),i=n(3157),a=n(5112)(`species`);e.exports=function(e,t){var n;return i(e)&&(n=e.constructor,typeof n==`function`&&(n===Array||i(n.prototype))?n=void 0:r(n)&&(n=n[a],n===null&&(n=void 0))),new(n===void 0?Array:n)(t===0?0:t)}}),3411:(function(e,t,n){var r=n(9670),i=n(9212);e.exports=function(e,t,n,a){try{return a?t(r(n)[0],n[1]):t(n)}catch(t){throw i(e),t}}}),7072:(function(e,t,n){var r=n(5112)(`iterator`),i=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){i=!0}};o[r]=function(){return this},Array.from(o,function(){throw 2})}catch{}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var a={};a[r]=function(){return{next:function(){return{done:n=!0}}}},e(a)}catch{}return n}}),4326:(function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}}),648:(function(e,t,n){var r=n(1694),i=n(4326),a=n(5112)(`toStringTag`),o=i(function(){return arguments}())==`Arguments`,s=function(e,t){try{return e[t]}catch{}};e.exports=r?i:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=s(t=Object(e),a))==`string`?n:o?i(t):(r=i(t))==`Object`&&typeof t.callee==`function`?`Arguments`:r}}),9920:(function(e,t,n){var r=n(6656),i=n(3887),a=n(1236),o=n(3070);e.exports=function(e,t){for(var n=i(t),s=o.f,c=a.f,l=0;l<n.length;l++){var u=n[l];r(e,u)||s(e,u,c(t,u))}}}),8544:(function(e,t,n){e.exports=!n(7293)(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})}),4994:(function(e,t,n){var r=n(3383).IteratorPrototype,i=n(30),a=n(9114),o=n(8003),s=n(7497),c=function(){return this};e.exports=function(e,t,n){var l=t+` Iterator`;return e.prototype=i(r,{next:a(1,n)}),o(e,l,!1,!0),s[l]=c,e}}),8880:(function(e,t,n){var r=n(9781),i=n(3070),a=n(9114);e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}}),9114:(function(e){e.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}}),6135:(function(e,t,n){var r=n(7593),i=n(3070),a=n(9114);e.exports=function(e,t,n){var o=r(t);o in e?i.f(e,o,a(0,n)):e[o]=n}}),654:(function(e,t,n){var r=n(2109),i=n(4994),a=n(9518),o=n(7674),s=n(8003),c=n(8880),l=n(1320),u=n(5112),d=n(1913),f=n(7497),p=n(3383),m=p.IteratorPrototype,h=p.BUGGY_SAFARI_ITERATORS,g=u(`iterator`),_=`keys`,v=`values`,y=`entries`,b=function(){return this};e.exports=function(e,t,n,u,p,x,S){i(n,t,u);var C=function(e){if(e===p&&O)return O;if(!h&&e in E)return E[e];switch(e){case _:return function(){return new n(this,e)};case v:return function(){return new n(this,e)};case y:return function(){return new n(this,e)}}return function(){return new n(this)}},w=t+` Iterator`,T=!1,E=e.prototype,D=E[g]||E[`@@iterator`]||p&&E[p],O=!h&&D||C(p),k=t==`Array`&&E.entries||D,A,j,M;if(k&&(A=a(k.call(new e)),m!==Object.prototype&&A.next&&(!d&&a(A)!==m&&(o?o(A,m):typeof A[g]!=`function`&&c(A,g,b)),s(A,w,!0,!0),d&&(f[w]=b))),p==v&&D&&D.name!==v&&(T=!0,O=function(){return D.call(this)}),(!d||S)&&E[g]!==O&&c(E,g,O),f[t]=O,p)if(j={values:C(v),keys:x?O:C(_),entries:C(y)},S)for(M in j)(h||T||!(M in E))&&l(E,M,j[M]);else r({target:t,proto:!0,forced:h||T},j);return j}}),9781:(function(e,t,n){e.exports=!n(7293)(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),317:(function(e,t,n){var r=n(7854),i=n(111),a=r.document,o=i(a)&&i(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}}),8324:(function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}}),8113:(function(e,t,n){e.exports=n(5005)(`navigator`,`userAgent`)||``}),7392:(function(e,t,n){var r=n(7854),i=n(8113),a=r.process,o=a&&a.versions,s=o&&o.v8,c,l;s?(c=s.split(`.`),l=c[0]+c[1]):i&&(c=i.match(/Edge\/(\d+)/),(!c||c[1]>=74)&&(c=i.match(/Chrome\/(\d+)/),c&&(l=c[1]))),e.exports=l&&+l}),748:(function(e){e.exports=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`]}),2109:(function(e,t,n){var r=n(7854),i=n(1236).f,a=n(8880),o=n(1320),s=n(3505),c=n(9920),l=n(4705);e.exports=function(e,t){var n=e.target,u=e.global,d=e.stat,f,p=u?r:d?r[n]||s(n,{}):(r[n]||{}).prototype,m,h,g,_;if(p)for(m in t){if(g=t[m],e.noTargetGet?(_=i(p,m),h=_&&_.value):h=p[m],f=l(u?m:n+(d?`.`:`#`)+m,e.forced),!f&&h!==void 0){if(typeof g==typeof h)continue;c(g,h)}(e.sham||h&&h.sham)&&a(g,`sham`,!0),o(p,m,g,e)}}}),7293:(function(e){e.exports=function(e){try{return!!e()}catch{return!0}}}),7007:(function(e,t,n){n(4916);var r=n(1320),i=n(7293),a=n(5112),o=n(2261),s=n(8880),c=a(`species`),l=!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}),u=(function(){return`a`.replace(/./,`$0`)===`$0`})(),d=a(`replace`),f=(function(){return/./[d]?/./[d](`a`,`$0`)===``:!1})(),p=!i(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=`ab`.split(e);return n.length!==2||n[0]!==`a`||n[1]!==`b`});e.exports=function(e,t,n,d){var m=a(e),h=!i(function(){var t={};return t[m]=function(){return 7},``[e](t)!=7}),g=h&&!i(function(){var t=!1,n=/a/;return e===`split`&&(n={},n.constructor={},n.constructor[c]=function(){return n},n.flags=``,n[m]=/./[m]),n.exec=function(){return t=!0,null},n[m](``),!t});if(!h||!g||e===`replace`&&!(l&&u&&!f)||e===`split`&&!p){var _=/./[m],v=n(m,``[e],function(e,t,n,r,i){return t.exec===o?h&&!i?{done:!0,value:_.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}},{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:f}),y=v[0],b=v[1];r(String.prototype,e,y),r(RegExp.prototype,m,t==2?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}d&&s(RegExp.prototype[m],`sham`,!0)}}),9974:(function(e,t,n){var r=n(3099);e.exports=function(e,t,n){if(r(e),t===void 0)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}}),5005:(function(e,t,n){var r=n(857),i=n(7854),a=function(e){return typeof e==`function`?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e])||a(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}}),1246:(function(e,t,n){var r=n(648),i=n(7497),a=n(5112)(`iterator`);e.exports=function(e){if(e!=null)return e[a]||e[`@@iterator`]||i[r(e)]}}),8554:(function(e,t,n){var r=n(9670),i=n(1246);e.exports=function(e){var t=i(e);if(typeof t!=`function`)throw TypeError(String(e)+` is not iterable`);return r(t.call(e))}}),647:(function(e,t,n){var r=n(7908),i=Math.floor,a=``.replace,o=/\$([$&'`]|\d\d?|<[^>]*>)/g,s=/\$([$&'`]|\d\d?)/g;e.exports=function(e,t,n,c,l,u){var d=n+e.length,f=c.length,p=s;return l!==void 0&&(l=r(l),p=o),a.call(u,p,function(r,a){var o;switch(a.charAt(0)){case`$`:return`$`;case`&`:return e;case"`":return t.slice(0,n);case`'`:return t.slice(d);case`<`:o=l[a.slice(1,-1)];break;default:var s=+a;if(s===0)return r;if(s>f){var u=i(s/10);return u===0?r:u<=f?c[u-1]===void 0?a.charAt(1):c[u-1]+a.charAt(1):r}o=c[s-1]}return o===void 0?``:o})}}),7854:(function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r(typeof globalThis==`object`&&globalThis)||r(typeof window==`object`&&window)||r(typeof self==`object`&&self)||r(typeof n.g==`object`&&n.g)||(function(){return this})()||Function(`return this`)()}),6656:(function(e){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}}),3501:(function(e){e.exports={}}),490:(function(e,t,n){e.exports=n(5005)(`document`,`documentElement`)}),4664:(function(e,t,n){var r=n(9781),i=n(7293),a=n(317);e.exports=!r&&!i(function(){return Object.defineProperty(a(`div`),`a`,{get:function(){return 7}}).a!=7})}),1179:(function(e){var t=Math.abs,n=Math.pow,r=Math.floor,i=Math.log,a=Math.LN2;e.exports={pack:function(e,o,s){var c=Array(s),l=s*8-o-1,u=(1<<l)-1,d=u>>1,f=o===23?n(2,-24)-n(2,-77):0,p=e<0||e===0&&1/e<0?1:0,m=0,h,g,_;for(e=t(e),e!=e||e===1/0?(g=e==e?0:1,h=u):(h=r(i(e)/a),e*(_=n(2,-h))<1&&(h--,_*=2),h+d>=1?e+=f/_:e+=f*n(2,1-d),e*_>=2&&(h++,_/=2),h+d>=u?(g=0,h=u):h+d>=1?(g=(e*_-1)*n(2,o),h+=d):(g=e*n(2,d-1)*n(2,o),h=0));o>=8;c[m++]=g&255,g/=256,o-=8);for(h=h<<o|g,l+=o;l>0;c[m++]=h&255,h/=256,l-=8);return c[--m]|=p*128,c},unpack:function(e,t){var r=e.length,i=r*8-t-1,a=(1<<i)-1,o=a>>1,s=i-7,c=r-1,l=e[c--],u=l&127,d;for(l>>=7;s>0;u=u*256+e[c],c--,s-=8);for(d=u&(1<<-s)-1,u>>=-s,s+=t;s>0;d=d*256+e[c],c--,s-=8);if(u===0)u=1-o;else if(u===a)return d?NaN:l?-1/0:1/0;else d+=n(2,t),u-=o;return(l?-1:1)*d*n(2,u-t)}}}),8361:(function(e,t,n){var r=n(7293),i=n(4326),a=``.split;e.exports=r(function(){return!Object(`z`).propertyIsEnumerable(0)})?function(e){return i(e)==`String`?a.call(e,``):Object(e)}:Object}),9587:(function(e,t,n){var r=n(111),i=n(7674);e.exports=function(e,t,n){var a,o;return i&&typeof(a=t.constructor)==`function`&&a!==n&&r(o=a.prototype)&&o!==n.prototype&&i(e,o),e}}),2788:(function(e,t,n){var r=n(5465),i=Function.toString;typeof r.inspectSource!=`function`&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource}),9909:(function(e,t,n){var r=n(8536),i=n(7854),a=n(111),o=n(8880),s=n(6656),c=n(5465),l=n(6200),u=n(3501),d=i.WeakMap,f,p,m,h=function(e){return m(e)?p(e):f(e,{})},g=function(e){return function(t){var n;if(!a(t)||(n=p(t)).type!==e)throw TypeError(`Incompatible receiver, `+e+` required`);return n}};if(r){var _=c.state||=new d,v=_.get,y=_.has,b=_.set;f=function(e,t){return t.facade=e,b.call(_,e,t),t},p=function(e){return v.call(_,e)||{}},m=function(e){return y.call(_,e)}}else{var x=l(`state`);u[x]=!0,f=function(e,t){return t.facade=e,o(e,x,t),t},p=function(e){return s(e,x)?e[x]:{}},m=function(e){return s(e,x)}}e.exports={set:f,get:p,has:m,enforce:h,getterFor:g}}),7659:(function(e,t,n){var r=n(5112),i=n(7497),a=r(`iterator`),o=Array.prototype;e.exports=function(e){return e!==void 0&&(i.Array===e||o[a]===e)}}),3157:(function(e,t,n){var r=n(4326);e.exports=Array.isArray||function(e){return r(e)==`Array`}}),4705:(function(e,t,n){var r=n(7293),i=/#|\.prototype\./,a=function(e,t){var n=s[o(e)];return n==l?!0:n==c?!1:typeof t==`function`?r(t):!!t},o=a.normalize=function(e){return String(e).replace(i,`.`).toLowerCase()},s=a.data={},c=a.NATIVE=`N`,l=a.POLYFILL=`P`;e.exports=a}),111:(function(e){e.exports=function(e){return typeof e==`object`?e!==null:typeof e==`function`}}),1913:(function(e){e.exports=!1}),7850:(function(e,t,n){var r=n(111),i=n(4326),a=n(5112)(`match`);e.exports=function(e){var t;return r(e)&&((t=e[a])===void 0?i(e)==`RegExp`:!!t)}}),9212:(function(e,t,n){var r=n(9670);e.exports=function(e){var t=e.return;if(t!==void 0)return r(t.call(e)).value}}),3383:(function(e,t,n){var r=n(7293),i=n(9518),a=n(8880),o=n(6656),s=n(5112),c=n(1913),l=s(`iterator`),u=!1,d=function(){return this},f,p,m;[].keys&&(m=[].keys(),`next`in m?(p=i(i(m)),p!==Object.prototype&&(f=p)):u=!0);var h=f==null||r(function(){var e={};return f[l].call(e)!==e});h&&(f={}),(!c||h)&&!o(f,l)&&a(f,l,d),e.exports={IteratorPrototype:f,BUGGY_SAFARI_ITERATORS:u}}),7497:(function(e){e.exports={}}),133:(function(e,t,n){var r=n(7293);e.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})}),590:(function(e,t,n){var r=n(7293),i=n(5112),a=n(1913),o=i(`iterator`);e.exports=!r(function(){var e=new URL(`b?a=1&b=2&c=3`,`http://a`),t=e.searchParams,n=``;return e.pathname=`c%20d`,t.forEach(function(e,r){t.delete(`b`),n+=r+e}),a&&!e.toJSON||!t.sort||e.href!==`http://a/c%20d?a=1&c=3`||t.get(`c`)!==`3`||String(new URLSearchParams(`?a=1`))!==`a=1`||!t[o]||new URL(`https://a@b`).username!==`a`||new URLSearchParams(new URLSearchParams(`a=b`)).get(`a`)!==`b`||new URL(`http://тест`).host!==`xn--e1aybc`||new URL(`http://a#б`).hash!==`#%D0%B1`||n!==`a1c3`||new URL(`http://x`,void 0).host!==`x`})}),8536:(function(e,t,n){var r=n(7854),i=n(2788),a=r.WeakMap;e.exports=typeof a==`function`&&/native code/.test(i(a))}),1574:(function(e,t,n){var r=n(9781),i=n(7293),a=n(1956),o=n(5181),s=n(5296),c=n(7908),l=n(8361),u=Object.assign,d=Object.defineProperty;e.exports=!u||i(function(){if(r&&u({b:1},u(d({},`a`,{enumerable:!0,get:function(){d(this,`b`,{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),i=`abcdefghijklmnopqrst`;return e[n]=7,i.split(``).forEach(function(e){t[e]=e}),u({},e)[n]!=7||a(u({},t)).join(``)!=i})?function(e,t){for(var n=c(e),i=arguments.length,u=1,d=o.f,f=s.f;i>u;)for(var p=l(arguments[u++]),m=d?a(p).concat(d(p)):a(p),h=m.length,g=0,_;h>g;)_=m[g++],(!r||f.call(p,_))&&(n[_]=p[_]);return n}:u}),30:(function(e,t,n){var r=n(9670),i=n(6048),a=n(748),o=n(3501),s=n(490),c=n(317),l=n(6200),u=`>`,d=`<`,f=`prototype`,p=`script`,m=l(`IE_PROTO`),h=function(){},g=function(e){return d+p+u+e+d+`/`+p+u},_=function(e){e.write(g(``)),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){var e=c(`iframe`),t=`java`+p+`:`,n;return e.style.display=`none`,s.appendChild(e),e.src=String(t),n=e.contentWindow.document,n.open(),n.write(g(`document.F=Object`)),n.close(),n.F},y,b=function(){try{y=document.domain&&new ActiveXObject(`htmlfile`)}catch{}b=y?_(y):v();for(var e=a.length;e--;)delete b[f][a[e]];return b()};o[m]=!0,e.exports=Object.create||function(e,t){var n;return e===null?n=b():(h[f]=r(e),n=new h,h[f]=null,n[m]=e),t===void 0?n:i(n,t)}}),6048:(function(e,t,n){var r=n(9781),i=n(3070),a=n(9670),o=n(1956);e.exports=r?Object.defineProperties:function(e,t){a(e);for(var n=o(t),r=n.length,s=0,c;r>s;)i.f(e,c=n[s++],t[c]);return e}}),3070:(function(e,t,n){var r=n(9781),i=n(4664),a=n(9670),o=n(7593),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(a(e),t=o(t,!0),a(n),i)try{return s(e,t,n)}catch{}if(`get`in n||`set`in n)throw TypeError(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}}),1236:(function(e,t,n){var r=n(9781),i=n(5296),a=n(9114),o=n(5656),s=n(7593),c=n(6656),l=n(4664),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=o(e),t=s(t,!0),l)try{return u(e,t)}catch{}if(c(e,t))return a(!i.f.call(e,t),e[t])}}),8006:(function(e,t,n){var r=n(6324),i=n(748).concat(`length`,`prototype`);t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}}),5181:(function(e,t){t.f=Object.getOwnPropertySymbols}),9518:(function(e,t,n){var r=n(6656),i=n(7908),a=n(6200),o=n(8544),s=a(`IE_PROTO`),c=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:typeof e.constructor==`function`&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}}),6324:(function(e,t,n){var r=n(6656),i=n(5656),a=n(1318).indexOf,o=n(3501);e.exports=function(e,t){var n=i(e),s=0,c=[],l;for(l in n)!r(o,l)&&r(n,l)&&c.push(l);for(;t.length>s;)r(n,l=t[s++])&&(~a(c,l)||c.push(l));return c}}),1956:(function(e,t,n){var r=n(6324),i=n(748);e.exports=Object.keys||function(e){return r(e,i)}}),5296:(function(e,t){var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor;t.f=r&&!n.call({1:2},1)?function(e){var t=r(this,e);return!!t&&t.enumerable}:n}),7674:(function(e,t,n){var r=n(9670),i=n(6077);e.exports=Object.setPrototypeOf||(`__proto__`in{}?function(){var e=!1,t={},n;try{n=Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set,n.call(t,[]),e=t instanceof Array}catch{}return function(t,a){return r(t),i(a),e?n.call(t,a):t.__proto__=a,t}}():void 0)}),288:(function(e,t,n){var r=n(1694),i=n(648);e.exports=r?{}.toString:function(){return`[object `+i(this)+`]`}}),3887:(function(e,t,n){var r=n(5005),i=n(8006),a=n(5181),o=n(9670);e.exports=r(`Reflect`,`ownKeys`)||function(e){var t=i.f(o(e)),n=a.f;return n?t.concat(n(e)):t}}),857:(function(e,t,n){e.exports=n(7854)}),2248:(function(e,t,n){var r=n(1320);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}}),1320:(function(e,t,n){var r=n(7854),i=n(8880),a=n(6656),o=n(3505),s=n(2788),c=n(9909),l=c.get,u=c.enforce,d=String(String).split(`String`);(e.exports=function(e,t,n,s){var c=s?!!s.unsafe:!1,l=s?!!s.enumerable:!1,f=s?!!s.noTargetGet:!1,p;if(typeof n==`function`&&(typeof t==`string`&&!a(n,`name`)&&i(n,`name`,t),p=u(n),p.source||=d.join(typeof t==`string`?t:``)),e===r){l?e[t]=n:o(t,n);return}else c?!f&&e[t]&&(l=!0):delete e[t];l?e[t]=n:i(e,t,n)})(Function.prototype,`toString`,function(){return typeof this==`function`&&l(this).source||s(this)})}),7651:(function(e,t,n){var r=n(4326),i=n(2261);e.exports=function(e,t){var n=e.exec;if(typeof n==`function`){var a=n.call(e,t);if(typeof a!=`object`)throw TypeError(`RegExp exec method returned something other than an Object or null`);return a}if(r(e)!==`RegExp`)throw TypeError(`RegExp#exec called on incompatible receiver`);return i.call(e,t)}}),2261:(function(e,t,n){var r=n(7066),i=n(2999),a=RegExp.prototype.exec,o=String.prototype.replace,s=a,c=(function(){var e=/a/,t=/b*/g;return a.call(e,`a`),a.call(t,`a`),e.lastIndex!==0||t.lastIndex!==0})(),l=i.UNSUPPORTED_Y||i.BROKEN_CARET,u=/()??/.exec(``)[1]!==void 0;(c||u||l)&&(s=function(e){var t=this,n,i,s,d,f=l&&t.sticky,p=r.call(t),m=t.source,h=0,g=e;return f&&(p=p.replace(`y`,``),p.indexOf(`g`)===-1&&(p+=`g`),g=String(e).slice(t.lastIndex),t.lastIndex>0&&(!t.multiline||t.multiline&&e[t.lastIndex-1]!==`
|
|
7
7
|
`)&&(m=`(?: `+m+`)`,g=` `+g,h++),i=RegExp(`^(?:`+m+`)`,p)),u&&(i=RegExp(`^`+m+`$(?!\\s)`,p)),c&&(n=t.lastIndex),s=a.call(f?i:t,g),f?s?(s.input=s.input.slice(h),s[0]=s[0].slice(h),s.index=t.lastIndex,t.lastIndex+=s[0].length):t.lastIndex=0:c&&s&&(t.lastIndex=t.global?s.index+s[0].length:n),u&&s&&s.length>1&&o.call(s[0],i,function(){for(d=1;d<arguments.length-2;d++)arguments[d]===void 0&&(s[d]=void 0)}),s}),e.exports=s}),7066:(function(e,t,n){var r=n(9670);e.exports=function(){var e=r(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t}}),2999:(function(e,t,n){var r=n(7293);function i(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r(function(){var e=i(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null}),t.BROKEN_CARET=r(function(){var e=i(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})}),4488:(function(e){e.exports=function(e){if(e==null)throw TypeError(`Can't call method on `+e);return e}}),3505:(function(e,t,n){var r=n(7854),i=n(8880);e.exports=function(e,t){try{i(r,e,t)}catch{r[e]=t}return t}}),6340:(function(e,t,n){var r=n(5005),i=n(3070),a=n(5112),o=n(9781),s=a(`species`);e.exports=function(e){var t=r(e),n=i.f;o&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}}),8003:(function(e,t,n){var r=n(3070).f,i=n(6656),a=n(5112)(`toStringTag`);e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}}),6200:(function(e,t,n){var r=n(2309),i=n(9711),a=r(`keys`);e.exports=function(e){return a[e]||(a[e]=i(e))}}),5465:(function(e,t,n){var r=n(7854),i=n(3505),a=`__core-js_shared__`;e.exports=r[a]||i(a,{})}),2309:(function(e,t,n){var r=n(1913),i=n(5465);(e.exports=function(e,t){return i[e]||(i[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.9.0`,mode:r?`pure`:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})}),6707:(function(e,t,n){var r=n(9670),i=n(3099),a=n(5112)(`species`);e.exports=function(e,t){var n=r(e).constructor,o;return n===void 0||(o=r(n)[a])==null?t:i(o)}}),8710:(function(e,t,n){var r=n(9958),i=n(4488),a=function(e){return function(t,n){var a=String(i(t)),o=r(n),s=a.length,c,l;return o<0||o>=s?e?``:void 0:(c=a.charCodeAt(o),c<55296||c>56319||o+1===s||(l=a.charCodeAt(o+1))<56320||l>57343?e?a.charAt(o):c:e?a.slice(o,o+2):(c-55296<<10)+(l-56320)+65536)}};e.exports={codeAt:a(!1),charAt:a(!0)}}),3197:(function(e){var t=2147483647,n=36,r=1,i=26,a=38,o=700,s=72,c=128,l=`-`,u=/[^\0-\u007E]/,d=/[.\u3002\uFF0E\uFF61]/g,f=`Overflow: input needs wider integers to process`,p=n-r,m=Math.floor,h=String.fromCharCode,g=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var a=e.charCodeAt(n++);(a&64512)==56320?t.push(((i&1023)<<10)+(a&1023)+65536):(t.push(i),n--)}else t.push(i)}return t},_=function(e){return e+22+75*(e<26)},v=function(e,t,r){var s=0;for(e=r?m(e/o):e>>1,e+=m(e/t);e>p*i>>1;s+=n)e=m(e/p);return m(s+(p+1)*e/(e+a))},y=function(e){var a=[];e=g(e);var o=e.length,u=c,d=0,p=s,y,b;for(y=0;y<e.length;y++)b=e[y],b<128&&a.push(h(b));var x=a.length,S=x;for(x&&a.push(l);S<o;){var C=t;for(y=0;y<e.length;y++)b=e[y],b>=u&&b<C&&(C=b);var w=S+1;if(C-u>m((t-d)/w))throw RangeError(f);for(d+=(C-u)*w,u=C,y=0;y<e.length;y++){if(b=e[y],b<u&&++d>t)throw RangeError(f);if(b==u){for(var T=d,E=n;;E+=n){var D=E<=p?r:E>=p+i?i:E-p;if(T<D)break;var O=T-D,k=n-D;a.push(h(_(D+O%k))),T=m(O/k)}a.push(h(_(T))),p=v(d,w,S==x),d=0,++S}}++d,++u}return a.join(``)};e.exports=function(e){var t=[],n=e.toLowerCase().replace(d,`.`).split(`.`),r,i;for(r=0;r<n.length;r++)i=n[r],t.push(u.test(i)?`xn--`+y(i):i);return t.join(`.`)}}),6091:(function(e,t,n){var r=n(7293),i=n(1361),a=`
`;e.exports=function(e){return r(function(){return!!i[e]()||a[e]()!=a||i[e].name!==e})}}),3111:(function(e,t,n){var r=n(4488),i=`[`+n(1361)+`]`,a=RegExp(`^`+i+i+`*`),o=RegExp(i+i+`*$`),s=function(e){return function(t){var n=String(r(t));return e&1&&(n=n.replace(a,``)),e&2&&(n=n.replace(o,``)),n}};e.exports={start:s(1),end:s(2),trim:s(3)}}),1400:(function(e,t,n){var r=n(9958),i=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}}),7067:(function(e,t,n){var r=n(9958),i=n(7466);e.exports=function(e){if(e===void 0)return 0;var t=r(e),n=i(t);if(t!==n)throw RangeError(`Wrong length or index`);return n}}),5656:(function(e,t,n){var r=n(8361),i=n(4488);e.exports=function(e){return r(i(e))}}),9958:(function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}}),7466:(function(e,t,n){var r=n(9958),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}}),7908:(function(e,t,n){var r=n(4488);e.exports=function(e){return Object(r(e))}}),4590:(function(e,t,n){var r=n(3002);e.exports=function(e,t){var n=r(e);if(n%t)throw RangeError(`Wrong offset`);return n}}),3002:(function(e,t,n){var r=n(9958);e.exports=function(e){var t=r(e);if(t<0)throw RangeError(`The argument can't be less than 0`);return t}}),7593:(function(e,t,n){var r=n(111);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&typeof(n=e.toString)==`function`&&!r(i=n.call(e))||typeof(n=e.valueOf)==`function`&&!r(i=n.call(e))||!t&&typeof(n=e.toString)==`function`&&!r(i=n.call(e)))return i;throw TypeError(`Can't convert object to primitive value`)}}),1694:(function(e,t,n){var r=n(5112)(`toStringTag`),i={};i[r]=`z`,e.exports=String(i)===`[object z]`}),9843:(function(e,t,n){var r=n(2109),i=n(7854),a=n(9781),o=n(3832),s=n(260),c=n(3331),l=n(5787),u=n(9114),d=n(8880),f=n(7466),p=n(7067),m=n(4590),h=n(7593),g=n(6656),_=n(648),v=n(111),y=n(30),b=n(7674),x=n(8006).f,S=n(7321),C=n(2092).forEach,w=n(6340),T=n(3070),E=n(1236),D=n(9909),O=n(9587),k=D.get,A=D.set,j=T.f,M=E.f,N=Math.round,P=i.RangeError,F=c.ArrayBuffer,I=c.DataView,L=s.NATIVE_ARRAY_BUFFER_VIEWS,ee=s.TYPED_ARRAY_TAG,te=s.TypedArray,R=s.TypedArrayPrototype,ne=s.aTypedArrayConstructor,z=s.isTypedArray,re=`BYTES_PER_ELEMENT`,ie=`Wrong length`,ae=function(e,t){for(var n=0,r=t.length,i=new(ne(e))(r);r>n;)i[n]=t[n++];return i},oe=function(e,t){j(e,t,{get:function(){return k(this)[t]}})},se=function(e){var t;return e instanceof F||(t=_(e))==`ArrayBuffer`||t==`SharedArrayBuffer`},ce=function(e,t){return z(e)&&typeof t!=`symbol`&&t in e&&String(+t)==String(t)},le=function(e,t){return ce(e,t=h(t,!0))?u(2,e[t]):M(e,t)},ue=function(e,t,n){return ce(e,t=h(t,!0))&&v(n)&&g(n,`value`)&&!g(n,`get`)&&!g(n,`set`)&&!n.configurable&&(!g(n,`writable`)||n.writable)&&(!g(n,`enumerable`)||n.enumerable)?(e[t]=n.value,e):j(e,t,n)};a?(L||(E.f=le,T.f=ue,oe(R,`buffer`),oe(R,`byteOffset`),oe(R,`byteLength`),oe(R,`length`)),r({target:`Object`,stat:!0,forced:!L},{getOwnPropertyDescriptor:le,defineProperty:ue}),e.exports=function(e,t,n){var a=e.match(/\d+$/)[0]/8,s=e+(n?`Clamped`:``)+`Array`,c=`get`+e,u=`set`+e,h=i[s],g=h,_=g&&g.prototype,T={},E=function(e,t){var n=k(e);return n.view[c](t*a+n.byteOffset,!0)},D=function(e,t,r){var i=k(e);n&&(r=(r=N(r))<0?0:r>255?255:r&255),i.view[u](t*a+i.byteOffset,r,!0)},M=function(e,t){j(e,t,{get:function(){return E(this,t)},set:function(e){return D(this,t,e)},enumerable:!0})};L?o&&(g=t(function(e,t,n,r){return l(e,g,s),O(function(){return v(t)?se(t)?r===void 0?n===void 0?new h(t):new h(t,m(n,a)):new h(t,m(n,a),r):z(t)?ae(g,t):S.call(g,t):new h(p(t))}(),e,g)}),b&&b(g,te),C(x(h),function(e){e in g||d(g,e,h[e])}),g.prototype=_):(g=t(function(e,t,n,r){l(e,g,s);var i=0,o=0,c,u,d;if(!v(t))d=p(t),u=d*a,c=new F(u);else if(se(t)){c=t,o=m(n,a);var h=t.byteLength;if(r===void 0){if(h%a||(u=h-o,u<0))throw P(ie)}else if(u=f(r)*a,u+o>h)throw P(ie);d=u/a}else if(z(t))return ae(g,t);else return S.call(g,t);for(A(e,{buffer:c,byteOffset:o,byteLength:u,length:d,view:new I(c)});i<d;)M(e,i++)}),b&&b(g,te),_=g.prototype=y(R)),_.constructor!==g&&d(_,`constructor`,g),ee&&d(_,ee,s),T[s]=g,r({global:!0,forced:g!=h,sham:!L},T),re in g||d(g,re,a),re in _||d(_,re,a),w(s)}):e.exports=function(){}}),3832:(function(e,t,n){var r=n(7854),i=n(7293),a=n(7072),o=n(260).NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,c=r.Int8Array;e.exports=!o||!i(function(){c(1)})||!i(function(){new c(-1)})||!a(function(e){new c,new c(null),new c(1.5),new c(e)},!0)||i(function(){return new c(new s(2),1,void 0).length!==1})}),3074:(function(e,t,n){var r=n(260).aTypedArrayConstructor,i=n(6707);e.exports=function(e,t){for(var n=i(e,e.constructor),a=0,o=t.length,s=new(r(n))(o);o>a;)s[a]=t[a++];return s}}),7321:(function(e,t,n){var r=n(7908),i=n(7466),a=n(1246),o=n(7659),s=n(9974),c=n(260).aTypedArrayConstructor;e.exports=function(e){var t=r(e),n=arguments.length,l=n>1?arguments[1]:void 0,u=l!==void 0,d=a(t),f,p,m,h,g,_;if(d!=null&&!o(d))for(g=d.call(t),_=g.next,t=[];!(h=_.call(g)).done;)t.push(h.value);for(u&&n>2&&(l=s(l,arguments[2],2)),p=i(t.length),m=new(c(this))(p),f=0;p>f;f++)m[f]=u?l(t[f],f):t[f];return m}}),9711:(function(e){var t=0,n=Math.random();e.exports=function(e){return`Symbol(`+String(e===void 0?``:e)+`)_`+(++t+n).toString(36)}}),3307:(function(e,t,n){e.exports=n(133)&&!Symbol.sham&&typeof Symbol.iterator==`symbol`}),5112:(function(e,t,n){var r=n(7854),i=n(2309),a=n(6656),o=n(9711),s=n(133),c=n(3307),l=i(`wks`),u=r.Symbol,d=c?u:u&&u.withoutSetter||o;e.exports=function(e){return a(l,e)||(s&&a(u,e)?l[e]=u[e]:l[e]=d(`Symbol.`+e)),l[e]}}),1361:(function(e){e.exports=`
|
|
8
8
|
\v\f\r \xA0 \u2028\u2029`}),8264:(function(e,t,n){var r=n(2109),i=n(7854),a=n(3331),o=n(6340),s=`ArrayBuffer`,c=a[s],l=i[s];r({global:!0,forced:l!==c},{ArrayBuffer:c}),o(s)}),2222:(function(e,t,n){var r=n(2109),i=n(7293),a=n(3157),o=n(111),s=n(7908),c=n(7466),l=n(6135),u=n(5417),d=n(1194),f=n(5112),p=n(7392),m=f(`isConcatSpreadable`),h=9007199254740991,g=`Maximum allowed index exceeded`,_=p>=51||!i(function(){var e=[];return e[m]=!1,e.concat()[0]!==e}),v=d(`concat`),y=function(e){if(!o(e))return!1;var t=e[m];return t===void 0?a(e):!!t};r({target:`Array`,proto:!0,forced:!_||!v},{concat:function(e){var t=s(this),n=u(t,0),r=0,i,a,o,d,f;for(i=-1,o=arguments.length;i<o;i++)if(f=i===-1?t:arguments[i],y(f)){if(d=c(f.length),r+d>h)throw TypeError(g);for(a=0;a<d;a++,r++)a in f&&l(n,r,f[a])}else{if(r>=h)throw TypeError(g);l(n,r++,f)}return n.length=r,n}})}),7327:(function(e,t,n){var r=n(2109),i=n(2092).filter;r({target:`Array`,proto:!0,forced:!n(1194)(`filter`)},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})}),2772:(function(e,t,n){var r=n(2109),i=n(1318).indexOf,a=n(9341),o=[].indexOf,s=!!o&&1/[1].indexOf(1,-0)<0,c=a(`indexOf`);r({target:`Array`,proto:!0,forced:s||!c},{indexOf:function(e){return s?o.apply(this,arguments)||0:i(this,e,arguments.length>1?arguments[1]:void 0)}})}),6992:(function(e,t,n){var r=n(5656),i=n(1223),a=n(7497),o=n(9909),s=n(654),c=`Array Iterator`,l=o.set,u=o.getterFor(c);e.exports=s(Array,`Array`,function(e,t){l(this,{type:c,target:r(e),index:0,kind:t})},function(){var e=u(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},`values`),a.Arguments=a.Array,i(`keys`),i(`values`),i(`entries`)}),1249:(function(e,t,n){var r=n(2109),i=n(2092).map;r({target:`Array`,proto:!0,forced:!n(1194)(`map`)},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})}),7042:(function(e,t,n){var r=n(2109),i=n(111),a=n(3157),o=n(1400),s=n(7466),c=n(5656),l=n(6135),u=n(5112),d=n(1194)(`slice`),f=u(`species`),p=[].slice,m=Math.max;r({target:`Array`,proto:!0,forced:!d},{slice:function(e,t){var n=c(this),r=s(n.length),u=o(e,r),d=o(t===void 0?r:t,r),h,g,_;if(a(n)&&(h=n.constructor,typeof h==`function`&&(h===Array||a(h.prototype))?h=void 0:i(h)&&(h=h[f],h===null&&(h=void 0)),h===Array||h===void 0))return p.call(n,u,d);for(g=new(h===void 0?Array:h)(m(d-u,0)),_=0;u<d;u++,_++)u in n&&l(g,_,n[u]);return g.length=_,g}})}),561:(function(e,t,n){var r=n(2109),i=n(1400),a=n(9958),o=n(7466),s=n(7908),c=n(5417),l=n(6135),u=n(1194)(`splice`),d=Math.max,f=Math.min,p=9007199254740991,m=`Maximum allowed length exceeded`;r({target:`Array`,proto:!0,forced:!u},{splice:function(e,t){var n=s(this),r=o(n.length),u=i(e,r),h=arguments.length,g,_,v,y,b,x;if(h===0?g=_=0:h===1?(g=0,_=r-u):(g=h-2,_=f(d(a(t),0),r-u)),r+g-_>p)throw TypeError(m);for(v=c(n,_),y=0;y<_;y++)b=u+y,b in n&&l(v,y,n[b]);if(v.length=_,g<_){for(y=u;y<r-_;y++)b=y+_,x=y+g,b in n?n[x]=n[b]:delete n[x];for(y=r;y>r-_+g;y--)delete n[y-1]}else if(g>_)for(y=r-_;y>u;y--)b=y+_-1,x=y+g-1,b in n?n[x]=n[b]:delete n[x];for(y=0;y<g;y++)n[y+u]=arguments[y+2];return n.length=r-_+g,v}})}),8309:(function(e,t,n){var r=n(9781),i=n(3070).f,a=Function.prototype,o=a.toString,s=/^\s*function ([^ (]*)/,c=`name`;r&&!(c in a)&&i(a,c,{configurable:!0,get:function(){try{return o.call(this).match(s)[1]}catch{return``}}})}),489:(function(e,t,n){var r=n(2109),i=n(7293),a=n(7908),o=n(9518),s=n(8544);r({target:`Object`,stat:!0,forced:i(function(){o(1)}),sham:!s},{getPrototypeOf:function(e){return o(a(e))}})}),1539:(function(e,t,n){var r=n(1694),i=n(1320),a=n(288);r||i(Object.prototype,`toString`,a,{unsafe:!0})}),4916:(function(e,t,n){var r=n(2109),i=n(2261);r({target:`RegExp`,proto:!0,forced:/./.exec!==i},{exec:i})}),9714:(function(e,t,n){var r=n(1320),i=n(9670),a=n(7293),o=n(7066),s=`toString`,c=RegExp.prototype,l=c[s],u=a(function(){return l.call({source:`a`,flags:`b`})!=`/a/b`}),d=l.name!=s;(u||d)&&r(RegExp.prototype,s,function(){var e=i(this),t=String(e.source),n=e.flags,r=String(n===void 0&&e instanceof RegExp&&!(`flags`in c)?o.call(e):n);return`/`+t+`/`+r},{unsafe:!0})}),8783:(function(e,t,n){var r=n(8710).charAt,i=n(9909),a=n(654),o=`String Iterator`,s=i.set,c=i.getterFor(o);a(String,`String`,function(e){s(this,{type:o,string:String(e),index:0})},function(){var e=c(this),t=e.string,n=e.index,i;return n>=t.length?{value:void 0,done:!0}:(i=r(t,n),e.index+=i.length,{value:i,done:!1})})}),4723:(function(e,t,n){var r=n(7007),i=n(9670),a=n(7466),o=n(4488),s=n(1530),c=n(7651);r(`match`,1,function(e,t,n){return[function(t){var n=o(this),r=t?.[e];return r===void 0?new RegExp(t)[e](String(n)):r.call(t,n)},function(e){var r=n(t,e,this);if(r.done)return r.value;var o=i(e),l=String(this);if(!o.global)return c(o,l);var u=o.unicode;o.lastIndex=0;for(var d=[],f=0,p;(p=c(o,l))!==null;){var m=String(p[0]);d[f]=m,m===``&&(o.lastIndex=s(l,a(o.lastIndex),u)),f++}return f===0?null:d}]})}),5306:(function(e,t,n){var r=n(7007),i=n(9670),a=n(7466),o=n(9958),s=n(4488),c=n(1530),l=n(647),u=n(7651),d=Math.max,f=Math.min,p=function(e){return e===void 0?e:String(e)};r(`replace`,2,function(e,t,n,r){var m=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,h=r.REPLACE_KEEPS_$0,g=m?`$`:`$0`;return[function(n,r){var i=s(this),a=n?.[e];return a===void 0?t.call(String(i),n,r):a.call(n,i,r)},function(e,r){if(!m&&h||typeof r==`string`&&r.indexOf(g)===-1){var s=n(t,e,this,r);if(s.done)return s.value}var _=i(e),v=String(this),y=typeof r==`function`;y||(r=String(r));var b=_.global;if(b){var x=_.unicode;_.lastIndex=0}for(var S=[];;){var C=u(_,v);if(C===null||(S.push(C),!b))break;String(C[0])===``&&(_.lastIndex=c(v,a(_.lastIndex),x))}for(var w=``,T=0,E=0;E<S.length;E++){C=S[E];for(var D=String(C[0]),O=d(f(o(C.index),v.length),0),k=[],A=1;A<C.length;A++)k.push(p(C[A]));var j=C.groups;if(y){var M=[D].concat(k,O,v);j!==void 0&&M.push(j);var N=String(r.apply(void 0,M))}else N=l(D,v,O,k,j,r);O>=T&&(w+=v.slice(T,O)+N,T=O+D.length)}return w+v.slice(T)}]})}),3123:(function(e,t,n){var r=n(7007),i=n(7850),a=n(9670),o=n(4488),s=n(6707),c=n(1530),l=n(7466),u=n(7651),d=n(2261),f=n(7293),p=[].push,m=Math.min,h=4294967295,g=!f(function(){return!RegExp(h,`y`)});r(`split`,2,function(e,t,n){var r=`abbc`.split(/(b)*/)[1]==`c`||`test`.split(/(?:)/,-1).length!=4||`ab`.split(/(?:ab)*/).length!=2||`.`.split(/(.?)(.?)/).length!=4||`.`.split(/()()/).length>1||``.split(/.?/).length?function(e,n){var r=String(o(this)),a=n===void 0?h:n>>>0;if(a===0)return[];if(e===void 0)return[r];if(!i(e))return t.call(r,e,a);for(var s=[],c=(e.ignoreCase?`i`:``)+(e.multiline?`m`:``)+(e.unicode?`u`:``)+(e.sticky?`y`:``),l=0,u=new RegExp(e.source,c+`g`),f,m,g;(f=d.call(u,r))&&(m=u.lastIndex,!(m>l&&(s.push(r.slice(l,f.index)),f.length>1&&f.index<r.length&&p.apply(s,f.slice(1)),g=f[0].length,l=m,s.length>=a)));)u.lastIndex===f.index&&u.lastIndex++;return l===r.length?(g||!u.test(``))&&s.push(``):s.push(r.slice(l)),s.length>a?s.slice(0,a):s}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:t.call(this,e,n)}:t;return[function(t,n){var i=o(this),a=t?.[e];return a===void 0?r.call(String(i),t,n):a.call(t,i,n)},function(e,i){var o=n(r,e,this,i,r!==t);if(o.done)return o.value;var d=a(e),f=String(this),p=s(d,RegExp),_=d.unicode,v=(d.ignoreCase?`i`:``)+(d.multiline?`m`:``)+(d.unicode?`u`:``)+(g?`y`:`g`),y=new p(g?d:`^(?:`+d.source+`)`,v),b=i===void 0?h:i>>>0;if(b===0)return[];if(f.length===0)return u(y,f)===null?[f]:[];for(var x=0,S=0,C=[];S<f.length;){y.lastIndex=g?S:0;var w=u(y,g?f:f.slice(S)),T;if(w===null||(T=m(l(y.lastIndex+(g?0:S)),f.length))===x)S=c(f,S,_);else{if(C.push(f.slice(x,S)),C.length===b)return C;for(var E=1;E<=w.length-1;E++)if(C.push(w[E]),C.length===b)return C;S=x=T}}return C.push(f.slice(x)),C}]},!g)}),3210:(function(e,t,n){var r=n(2109),i=n(3111).trim;r({target:`String`,proto:!0,forced:n(6091)(`trim`)},{trim:function(){return i(this)}})}),2990:(function(e,t,n){var r=n(260),i=n(1048),a=r.aTypedArray,o=r.exportTypedArrayMethod;o(`copyWithin`,function(e,t){return i.call(a(this),e,t,arguments.length>2?arguments[2]:void 0)})}),8927:(function(e,t,n){var r=n(260),i=n(2092).every,a=r.aTypedArray,o=r.exportTypedArrayMethod;o(`every`,function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)})}),3105:(function(e,t,n){var r=n(260),i=n(1285),a=r.aTypedArray,o=r.exportTypedArrayMethod;o(`fill`,function(e){return i.apply(a(this),arguments)})}),5035:(function(e,t,n){var r=n(260),i=n(2092).filter,a=n(3074),o=r.aTypedArray,s=r.exportTypedArrayMethod;s(`filter`,function(e){var t=i(o(this),e,arguments.length>1?arguments[1]:void 0);return a(this,t)})}),7174:(function(e,t,n){var r=n(260),i=n(2092).findIndex,a=r.aTypedArray,o=r.exportTypedArrayMethod;o(`findIndex`,function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)})}),4345:(function(e,t,n){var r=n(260),i=n(2092).find,a=r.aTypedArray,o=r.exportTypedArrayMethod;o(`find`,function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)})}),2846:(function(e,t,n){var r=n(260),i=n(2092).forEach,a=r.aTypedArray,o=r.exportTypedArrayMethod;o(`forEach`,function(e){i(a(this),e,arguments.length>1?arguments[1]:void 0)})}),4731:(function(e,t,n){var r=n(260),i=n(1318).includes,a=r.aTypedArray,o=r.exportTypedArrayMethod;o(`includes`,function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)})}),7209:(function(e,t,n){var r=n(260),i=n(1318).indexOf,a=r.aTypedArray,o=r.exportTypedArrayMethod;o(`indexOf`,function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)})}),6319:(function(e,t,n){var r=n(7854),i=n(260),a=n(6992),o=n(5112)(`iterator`),s=r.Uint8Array,c=a.values,l=a.keys,u=a.entries,d=i.aTypedArray,f=i.exportTypedArrayMethod,p=s&&s.prototype[o],m=!!p&&(p.name==`values`||p.name==null),h=function(){return c.call(d(this))};f(`entries`,function(){return u.call(d(this))}),f(`keys`,function(){return l.call(d(this))}),f(`values`,h,!m),f(o,h,!m)}),8867:(function(e,t,n){var r=n(260),i=r.aTypedArray,a=r.exportTypedArrayMethod,o=[].join;a(`join`,function(e){return o.apply(i(this),arguments)})}),7789:(function(e,t,n){var r=n(260),i=n(6583),a=r.aTypedArray,o=r.exportTypedArrayMethod;o(`lastIndexOf`,function(e){return i.apply(a(this),arguments)})}),3739:(function(e,t,n){var r=n(260),i=n(2092).map,a=n(6707),o=r.aTypedArray,s=r.aTypedArrayConstructor,c=r.exportTypedArrayMethod;c(`map`,function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0,function(e,t){return new(s(a(e,e.constructor)))(t)})})}),4483:(function(e,t,n){var r=n(260),i=n(3671).right,a=r.aTypedArray,o=r.exportTypedArrayMethod;o(`reduceRight`,function(e){return i(a(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)})}),9368:(function(e,t,n){var r=n(260),i=n(3671).left,a=r.aTypedArray,o=r.exportTypedArrayMethod;o(`reduce`,function(e){return i(a(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)})}),2056:(function(e,t,n){var r=n(260),i=r.aTypedArray,a=r.exportTypedArrayMethod,o=Math.floor;a(`reverse`,function(){for(var e=this,t=i(e).length,n=o(t/2),r=0,a;r<n;)a=e[r],e[r++]=e[--t],e[t]=a;return e})}),3462:(function(e,t,n){var r=n(260),i=n(7466),a=n(4590),o=n(7908),s=n(7293),c=r.aTypedArray,l=r.exportTypedArrayMethod;l(`set`,function(e){c(this);var t=a(arguments.length>1?arguments[1]:void 0,1),n=this.length,r=o(e),s=i(r.length),l=0;if(s+t>n)throw RangeError(`Wrong length`);for(;l<s;)this[t+l]=r[l++]},s(function(){new Int8Array(1).set({})}))}),678:(function(e,t,n){var r=n(260),i=n(6707),a=n(7293),o=r.aTypedArray,s=r.aTypedArrayConstructor,c=r.exportTypedArrayMethod,l=[].slice;c(`slice`,function(e,t){for(var n=l.call(o(this),e,t),r=i(this,this.constructor),a=0,c=n.length,u=new(s(r))(c);c>a;)u[a]=n[a++];return u},a(function(){new Int8Array(1).slice()}))}),7462:(function(e,t,n){var r=n(260),i=n(2092).some,a=r.aTypedArray,o=r.exportTypedArrayMethod;o(`some`,function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)})}),3824:(function(e,t,n){var r=n(260),i=r.aTypedArray,a=r.exportTypedArrayMethod,o=[].sort;a(`sort`,function(e){return o.call(i(this),e)})}),5021:(function(e,t,n){var r=n(260),i=n(7466),a=n(1400),o=n(6707),s=r.aTypedArray,c=r.exportTypedArrayMethod;c(`subarray`,function(e,t){var n=s(this),r=n.length,c=a(e,r);return new(o(n,n.constructor))(n.buffer,n.byteOffset+c*n.BYTES_PER_ELEMENT,i((t===void 0?r:a(t,r))-c))})}),2974:(function(e,t,n){var r=n(7854),i=n(260),a=n(7293),o=r.Int8Array,s=i.aTypedArray,c=i.exportTypedArrayMethod,l=[].toLocaleString,u=[].slice,d=!!o&&a(function(){l.call(new o(1))});c(`toLocaleString`,function(){return l.apply(d?u.call(s(this)):s(this),arguments)},a(function(){return[1,2].toLocaleString()!=new o([1,2]).toLocaleString()})||!a(function(){o.prototype.toLocaleString.call([1,2])}))}),5016:(function(e,t,n){var r=n(260).exportTypedArrayMethod,i=n(7293),a=n(7854).Uint8Array,o=a&&a.prototype||{},s=[].toString,c=[].join;i(function(){s.call({})})&&(s=function(){return c.call(this)});var l=o.toString!=s;r(`toString`,s,l)}),2472:(function(e,t,n){n(9843)(`Uint8`,function(e){return function(t,n,r){return e(this,t,n,r)}})}),4747:(function(e,t,n){var r=n(7854),i=n(8324),a=n(8533),o=n(8880);for(var s in i){var c=r[s],l=c&&c.prototype;if(l&&l.forEach!==a)try{o(l,`forEach`,a)}catch{l.forEach=a}}}),3948:(function(e,t,n){var r=n(7854),i=n(8324),a=n(6992),o=n(8880),s=n(5112),c=s(`iterator`),l=s(`toStringTag`),u=a.values;for(var d in i){var f=r[d],p=f&&f.prototype;if(p){if(p[c]!==u)try{o(p,c,u)}catch{p[c]=u}if(p[l]||o(p,l,d),i[d]){for(var m in a)if(p[m]!==a[m])try{o(p,m,a[m])}catch{p[m]=a[m]}}}}}),1637:(function(e,t,n){n(6992);var r=n(2109),i=n(5005),a=n(590),o=n(1320),s=n(2248),c=n(8003),l=n(4994),u=n(9909),d=n(5787),f=n(6656),p=n(9974),m=n(648),h=n(9670),g=n(111),_=n(30),v=n(9114),y=n(8554),b=n(1246),x=n(5112),S=i(`fetch`),C=i(`Headers`),w=x(`iterator`),T=`URLSearchParams`,E=T+`Iterator`,D=u.set,O=u.getterFor(T),k=u.getterFor(E),A=/\+/g,j=[,,,,],M=function(e){return j[e-1]||(j[e-1]=RegExp(`((?:%[\\da-f]{2}){`+e+`})`,`gi`))},N=function(e){try{return decodeURIComponent(e)}catch{return e}},P=function(e){var t=e.replace(A,` `),n=4;try{return decodeURIComponent(t)}catch{for(;n;)t=t.replace(M(n--),N);return t}},F=/[!'()~]|%20/g,I={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`},L=function(e){return I[e]},ee=function(e){return encodeURIComponent(e).replace(F,L)},te=function(e,t){if(t)for(var n=t.split(`&`),r=0,i,a;r<n.length;)i=n[r++],i.length&&(a=i.split(`=`),e.push({key:P(a.shift()),value:P(a.join(`=`))}))},R=function(e){this.entries.length=0,te(this.entries,e)},ne=function(e,t){if(e<t)throw TypeError(`Not enough arguments`)},z=l(function(e,t){D(this,{type:E,iterator:y(O(e).entries),kind:t})},`Iterator`,function(){var e=k(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value=t===`keys`?r.key:t===`values`?r.value:[r.key,r.value]),n}),re=function(){d(this,re,T);var e=arguments.length>0?arguments[0]:void 0,t=this,n=[],r,i,a,o,s,c,l,u,p;if(D(t,{type:T,entries:n,updateURL:function(){},updateSearchParams:R}),e!==void 0)if(g(e))if(r=b(e),typeof r==`function`)for(i=r.call(e),a=i.next;!(o=a.call(i)).done;){if(s=y(h(o.value)),c=s.next,(l=c.call(s)).done||(u=c.call(s)).done||!c.call(s).done)throw TypeError(`Expected sequence with length 2`);n.push({key:l.value+``,value:u.value+``})}else for(p in e)f(e,p)&&n.push({key:p,value:e[p]+``});else te(n,typeof e==`string`?e.charAt(0)===`?`?e.slice(1):e:e+``)},ie=re.prototype;s(ie,{append:function(e,t){ne(arguments.length,2);var n=O(this);n.entries.push({key:e+``,value:t+``}),n.updateURL()},delete:function(e){ne(arguments.length,1);for(var t=O(this),n=t.entries,r=e+``,i=0;i<n.length;)n[i].key===r?n.splice(i,1):i++;t.updateURL()},get:function(e){ne(arguments.length,1);for(var t=O(this).entries,n=e+``,r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){ne(arguments.length,1);for(var t=O(this).entries,n=e+``,r=[],i=0;i<t.length;i++)t[i].key===n&&r.push(t[i].value);return r},has:function(e){ne(arguments.length,1);for(var t=O(this).entries,n=e+``,r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){ne(arguments.length,1);for(var n=O(this),r=n.entries,i=!1,a=e+``,o=t+``,s=0,c;s<r.length;s++)c=r[s],c.key===a&&(i?r.splice(s--,1):(i=!0,c.value=o));i||r.push({key:a,value:o}),n.updateURL()},sort:function(){var e=O(this),t=e.entries,n=t.slice(),r,i,a;for(t.length=0,a=0;a<n.length;a++){for(r=n[a],i=0;i<a;i++)if(t[i].key>r.key){t.splice(i,0,r);break}i===a&&t.push(r)}e.updateURL()},forEach:function(e){for(var t=O(this).entries,n=p(e,arguments.length>1?arguments[1]:void 0,3),r=0,i;r<t.length;)i=t[r++],n(i.value,i.key,this)},keys:function(){return new z(this,`keys`)},values:function(){return new z(this,`values`)},entries:function(){return new z(this,`entries`)}},{enumerable:!0}),o(ie,w,ie.entries),o(ie,`toString`,function(){for(var e=O(this).entries,t=[],n=0,r;n<e.length;)r=e[n++],t.push(ee(r.key)+`=`+ee(r.value));return t.join(`&`)},{enumerable:!0}),c(re,T),r({global:!0,forced:!a},{URLSearchParams:re}),!a&&typeof S==`function`&&typeof C==`function`&&r({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t=[e],n,r,i;return arguments.length>1&&(n=arguments[1],g(n)&&(r=n.body,m(r)===T&&(i=n.headers?new C(n.headers):new C,i.has(`content-type`)||i.set(`content-type`,`application/x-www-form-urlencoded;charset=UTF-8`),n=_(n,{body:v(0,String(r)),headers:v(0,i)}))),t.push(n)),S.apply(this,t)}}),e.exports={URLSearchParams:re,getState:O}}),285:(function(e,t,n){n(8783);var r=n(2109),i=n(9781),a=n(590),o=n(7854),s=n(6048),c=n(1320),l=n(5787),u=n(6656),d=n(1574),f=n(8457),p=n(8710).codeAt,m=n(3197),h=n(8003),g=n(1637),_=n(9909),v=o.URL,y=g.URLSearchParams,b=g.getState,x=_.set,S=_.getterFor(`URL`),C=Math.floor,w=Math.pow,T=`Invalid authority`,E=`Invalid scheme`,D=`Invalid host`,O=`Invalid port`,k=/[A-Za-z]/,A=/[\d+-.A-Za-z]/,j=/\d/,M=/^(0x|0X)/,N=/^[0-7]+$/,P=/^\d+$/,F=/^[\dA-Fa-f]+$/,I=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,L=/[\u0000\t\u000A\u000D #/:?@[\\]]/,ee=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,te=/[\t\u000A\u000D]/g,R,ne=function(e,t){var n,r,i;if(t.charAt(0)==`[`){if(t.charAt(t.length-1)!=`]`||(n=re(t.slice(1,-1)),!n))return D;e.host=n}else if(fe(e)){if(t=m(t),I.test(t)||(n=z(t),n===null))return D;e.host=n}else{if(L.test(t))return D;for(n=``,r=f(t),i=0;i<r.length;i++)n+=ue(r[i],oe);e.host=n}},z=function(e){var t=e.split(`.`),n,r,i,a,o,s,c;if(t.length&&t[t.length-1]==``&&t.pop(),n=t.length,n>4)return e;for(r=[],i=0;i<n;i++){if(a=t[i],a==``)return e;if(o=10,a.length>1&&a.charAt(0)==`0`&&(o=M.test(a)?16:8,a=a.slice(o==8?1:2)),a===``)s=0;else{if(!(o==10?P:o==8?N:F).test(a))return e;s=parseInt(a,o)}r.push(s)}for(i=0;i<n;i++)if(s=r[i],i==n-1){if(s>=w(256,5-n))return null}else if(s>255)return null;for(c=r.pop(),i=0;i<r.length;i++)c+=r[i]*w(256,3-i);return c},re=function(e){var t=[0,0,0,0,0,0,0,0],n=0,r=null,i=0,a,o,s,c,l,u,d,f=function(){return e.charAt(i)};if(f()==`:`){if(e.charAt(1)!=`:`)return;i+=2,n++,r=n}for(;f();){if(n==8)return;if(f()==`:`){if(r!==null)return;i++,n++,r=n;continue}for(a=o=0;o<4&&F.test(f());)a=a*16+parseInt(f(),16),i++,o++;if(f()==`.`){if(o==0||(i-=o,n>6))return;for(s=0;f();){if(c=null,s>0)if(f()==`.`&&s<4)i++;else return;if(!j.test(f()))return;for(;j.test(f());){if(l=parseInt(f(),10),c===null)c=l;else if(c==0)return;else c=c*10+l;if(c>255)return;i++}t[n]=t[n]*256+c,s++,(s==2||s==4)&&n++}if(s!=4)return;break}else if(f()==`:`){if(i++,!f())return}else if(f())return;t[n++]=a}if(r!==null)for(u=n-r,n=7;n!=0&&u>0;)d=t[n],t[n--]=t[r+u-1],t[r+--u]=d;else if(n!=8)return;return t},ie=function(e){for(var t=null,n=1,r=null,i=0,a=0;a<8;a++)e[a]===0?(r===null&&(r=a),++i):(i>n&&(t=r,n=i),r=null,i=0);return i>n&&(t=r,n=i),t},ae=function(e){var t,n,r,i;if(typeof e==`number`){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=C(e/256);return t.join(`.`)}else if(typeof e==`object`){for(t=``,r=ie(e),n=0;n<8;n++)i&&e[n]===0||(i&&=!1,r===n?(t+=n?`:`:`::`,i=!0):(t+=e[n].toString(16),n<7&&(t+=`:`)));return`[`+t+`]`}return e},oe={},se=d({},oe,{" ":1,'"':1,"<":1,">":1,"`":1}),ce=d({},se,{"#":1,"?":1,"{":1,"}":1}),le=d({},ce,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ue=function(e,t){var n=p(e,0);return n>32&&n<127&&!u(t,e)?e:encodeURIComponent(e)},de={ftp:21,file:null,http:80,https:443,ws:80,wss:443},fe=function(e){return u(de,e.scheme)},pe=function(e){return e.username!=``||e.password!=``},me=function(e){return!e.host||e.cannotBeABaseURL||e.scheme==`file`},he=function(e,t){var n;return e.length==2&&k.test(e.charAt(0))&&((n=e.charAt(1))==`:`||!t&&n==`|`)},ge=function(e){var t;return e.length>1&&he(e.slice(0,2))&&(e.length==2||(t=e.charAt(2))===`/`||t===`\\`||t===`?`||t===`#`)},_e=function(e){var t=e.path,n=t.length;n&&(e.scheme!=`file`||n!=1||!he(t[0],!0))&&t.pop()},ve=function(e){return e===`.`||e.toLowerCase()===`%2e`},ye=function(e){return e=e.toLowerCase(),e===`..`||e===`%2e.`||e===`.%2e`||e===`%2e%2e`},be={},xe={},Se={},Ce={},we={},Te={},Ee={},De={},Oe={},ke={},Ae={},je={},Me={},Ne={},Pe={},Fe={},Ie={},Le={},Re={},ze={},Be={},Ve=function(e,t,n,r){var i=n||be,a=0,o=``,s=!1,c=!1,l=!1,d,p,m,h;for(n||(e.scheme=``,e.username=``,e.password=``,e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(ee,``)),t=t.replace(te,``),d=f(t);a<=d.length;){switch(p=d[a],i){case be:if(p&&k.test(p))o+=p.toLowerCase(),i=xe;else if(n)return E;else{i=Se;continue}break;case xe:if(p&&(A.test(p)||p==`+`||p==`-`||p==`.`))o+=p.toLowerCase();else if(p==`:`){if(n&&(fe(e)!=u(de,o)||o==`file`&&(pe(e)||e.port!==null)||e.scheme==`file`&&!e.host))return;if(e.scheme=o,n){fe(e)&&de[e.scheme]==e.port&&(e.port=null);return}o=``,e.scheme==`file`?i=Ne:fe(e)&&r&&r.scheme==e.scheme?i=Ce:fe(e)?i=De:d[a+1]==`/`?(i=we,a++):(e.cannotBeABaseURL=!0,e.path.push(``),i=Re)}else if(n)return E;else{o=``,i=Se,a=0;continue}break;case Se:if(!r||r.cannotBeABaseURL&&p!=`#`)return E;if(r.cannotBeABaseURL&&p==`#`){e.scheme=r.scheme,e.path=r.path.slice(),e.query=r.query,e.fragment=``,e.cannotBeABaseURL=!0,i=Be;break}i=r.scheme==`file`?Ne:Te;continue;case Ce:if(p==`/`&&d[a+1]==`/`)i=Oe,a++;else{i=Te;continue}break;case we:if(p==`/`){i=ke;break}else{i=Le;continue}case Te:if(e.scheme=r.scheme,p==R)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query;else if(p==`/`||p==`\\`&&fe(e))i=Ee;else if(p==`?`)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=``,i=ze;else if(p==`#`)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query,e.fragment=``,i=Be;else{e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.path.pop(),i=Le;continue}break;case Ee:if(fe(e)&&(p==`/`||p==`\\`))i=Oe;else if(p==`/`)i=ke;else{e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,i=Le;continue}break;case De:if(i=Oe,p!=`/`||o.charAt(a+1)!=`/`)continue;a++;break;case Oe:if(p!=`/`&&p!=`\\`){i=ke;continue}break;case ke:if(p==`@`){s&&(o=`%40`+o),s=!0,m=f(o);for(var g=0;g<m.length;g++){var _=m[g];if(_==`:`&&!l){l=!0;continue}var v=ue(_,le);l?e.password+=v:e.username+=v}o=``}else if(p==R||p==`/`||p==`?`||p==`#`||p==`\\`&&fe(e)){if(s&&o==``)return T;a-=f(o).length+1,o=``,i=Ae}else o+=p;break;case Ae:case je:if(n&&e.scheme==`file`){i=Fe;continue}else if(p==`:`&&!c){if(o==``)return D;if(h=ne(e,o),h)return h;if(o=``,i=Me,n==je)return}else if(p==R||p==`/`||p==`?`||p==`#`||p==`\\`&&fe(e)){if(fe(e)&&o==``)return D;if(n&&o==``&&(pe(e)||e.port!==null))return;if(h=ne(e,o),h)return h;if(o=``,i=Ie,n)return;continue}else p==`[`?c=!0:p==`]`&&(c=!1),o+=p;break;case Me:if(j.test(p))o+=p;else if(p==R||p==`/`||p==`?`||p==`#`||p==`\\`&&fe(e)||n){if(o!=``){var y=parseInt(o,10);if(y>65535)return O;e.port=fe(e)&&y===de[e.scheme]?null:y,o=``}if(n)return;i=Ie;continue}else return O;break;case Ne:if(e.scheme=`file`,p==`/`||p==`\\`)i=Pe;else if(r&&r.scheme==`file`)if(p==R)e.host=r.host,e.path=r.path.slice(),e.query=r.query;else if(p==`?`)e.host=r.host,e.path=r.path.slice(),e.query=``,i=ze;else if(p==`#`)e.host=r.host,e.path=r.path.slice(),e.query=r.query,e.fragment=``,i=Be;else{ge(d.slice(a).join(``))||(e.host=r.host,e.path=r.path.slice(),_e(e)),i=Le;continue}else{i=Le;continue}break;case Pe:if(p==`/`||p==`\\`){i=Fe;break}r&&r.scheme==`file`&&!ge(d.slice(a).join(``))&&(he(r.path[0],!0)?e.path.push(r.path[0]):e.host=r.host),i=Le;continue;case Fe:if(p==R||p==`/`||p==`\\`||p==`?`||p==`#`){if(!n&&he(o))i=Le;else if(o==``){if(e.host=``,n)return;i=Ie}else{if(h=ne(e,o),h)return h;if(e.host==`localhost`&&(e.host=``),n)return;o=``,i=Ie}continue}else o+=p;break;case Ie:if(fe(e)){if(i=Le,p!=`/`&&p!=`\\`)continue}else if(!n&&p==`?`)e.query=``,i=ze;else if(!n&&p==`#`)e.fragment=``,i=Be;else if(p!=R&&(i=Le,p!=`/`))continue;break;case Le:if(p==R||p==`/`||p==`\\`&&fe(e)||!n&&(p==`?`||p==`#`)){if(ye(o)?(_e(e),p!=`/`&&!(p==`\\`&&fe(e))&&e.path.push(``)):ve(o)?p!=`/`&&!(p==`\\`&&fe(e))&&e.path.push(``):(e.scheme==`file`&&!e.path.length&&he(o)&&(e.host&&=``,o=o.charAt(0)+`:`),e.path.push(o)),o=``,e.scheme==`file`&&(p==R||p==`?`||p==`#`))for(;e.path.length>1&&e.path[0]===``;)e.path.shift();p==`?`?(e.query=``,i=ze):p==`#`&&(e.fragment=``,i=Be)}else o+=ue(p,ce);break;case Re:p==`?`?(e.query=``,i=ze):p==`#`?(e.fragment=``,i=Be):p!=R&&(e.path[0]+=ue(p,oe));break;case ze:!n&&p==`#`?(e.fragment=``,i=Be):p!=R&&(p==`'`&&fe(e)?e.query+=`%27`:p==`#`?e.query+=`%23`:e.query+=ue(p,oe));break;case Be:p!=R&&(e.fragment+=ue(p,se));break}a++}},He=function(e){var t=l(this,He,`URL`),n=arguments.length>1?arguments[1]:void 0,r=String(e),a=x(t,{type:`URL`}),o,s;if(n!==void 0){if(n instanceof He)o=S(n);else if(s=Ve(o={},String(n)),s)throw TypeError(s)}if(s=Ve(a,r,null,o),s)throw TypeError(s);var c=a.searchParams=new y,u=b(c);u.updateSearchParams(a.query),u.updateURL=function(){a.query=String(c)||null},i||(t.href=We.call(t),t.origin=Ge.call(t),t.protocol=Ke.call(t),t.username=qe.call(t),t.password=Je.call(t),t.host=Ye.call(t),t.hostname=Xe.call(t),t.port=Ze.call(t),t.pathname=Qe.call(t),t.search=$e.call(t),t.searchParams=et.call(t),t.hash=tt.call(t))},Ue=He.prototype,We=function(){var e=S(this),t=e.scheme,n=e.username,r=e.password,i=e.host,a=e.port,o=e.path,s=e.query,c=e.fragment,l=t+`:`;return i===null?t==`file`&&(l+=`//`):(l+=`//`,pe(e)&&(l+=n+(r?`:`+r:``)+`@`),l+=ae(i),a!==null&&(l+=`:`+a)),l+=e.cannotBeABaseURL?o[0]:o.length?`/`+o.join(`/`):``,s!==null&&(l+=`?`+s),c!==null&&(l+=`#`+c),l},Ge=function(){var e=S(this),t=e.scheme,n=e.port;if(t==`blob`)try{return new URL(t.path[0]).origin}catch{return`null`}return t==`file`||!fe(e)?`null`:t+`://`+ae(e.host)+(n===null?``:`:`+n)},Ke=function(){return S(this).scheme+`:`},qe=function(){return S(this).username},Je=function(){return S(this).password},Ye=function(){var e=S(this),t=e.host,n=e.port;return t===null?``:n===null?ae(t):ae(t)+`:`+n},Xe=function(){var e=S(this).host;return e===null?``:ae(e)},Ze=function(){var e=S(this).port;return e===null?``:String(e)},Qe=function(){var e=S(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?`/`+t.join(`/`):``},$e=function(){var e=S(this).query;return e?`?`+e:``},et=function(){return S(this).searchParams},tt=function(){var e=S(this).fragment;return e?`#`+e:``},nt=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(i&&s(Ue,{href:nt(We,function(e){var t=S(this),n=Ve(t,String(e));if(n)throw TypeError(n);b(t.searchParams).updateSearchParams(t.query)}),origin:nt(Ge),protocol:nt(Ke,function(e){Ve(S(this),String(e)+`:`,be)}),username:nt(qe,function(e){var t=S(this),n=f(String(e));if(!me(t)){t.username=``;for(var r=0;r<n.length;r++)t.username+=ue(n[r],le)}}),password:nt(Je,function(e){var t=S(this),n=f(String(e));if(!me(t)){t.password=``;for(var r=0;r<n.length;r++)t.password+=ue(n[r],le)}}),host:nt(Ye,function(e){var t=S(this);t.cannotBeABaseURL||Ve(t,String(e),Ae)}),hostname:nt(Xe,function(e){var t=S(this);t.cannotBeABaseURL||Ve(t,String(e),je)}),port:nt(Ze,function(e){var t=S(this);me(t)||(e=String(e),e==``?t.port=null:Ve(t,e,Me))}),pathname:nt(Qe,function(e){var t=S(this);t.cannotBeABaseURL||(t.path=[],Ve(t,e+``,Ie))}),search:nt($e,function(e){var t=S(this);e=String(e),e==``?t.query=null:(e.charAt(0)==`?`&&(e=e.slice(1)),t.query=``,Ve(t,e,ze)),b(t.searchParams).updateSearchParams(t.query)}),searchParams:nt(et),hash:nt(tt,function(e){var t=S(this);if(e=String(e),e==``){t.fragment=null;return}e.charAt(0)==`#`&&(e=e.slice(1)),t.fragment=``,Ve(t,e,Be)})}),c(Ue,`toJSON`,function(){return We.call(this)},{enumerable:!0}),c(Ue,`toString`,function(){return We.call(this)},{enumerable:!0}),v){var rt=v.createObjectURL,it=v.revokeObjectURL;rt&&c(He,`createObjectURL`,function(e){return rt.apply(v,arguments)}),it&&c(He,`revokeObjectURL`,function(e){return it.apply(v,arguments)})}h(He,`URL`),r({global:!0,forced:!a,sham:!i},{URL:He})})},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}(function(){n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}})(),(function(){n.g=(function(){if(typeof globalThis==`object`)return globalThis;try{return this||Function(`return this`)()}catch{if(typeof window==`object`)return window}})()})(),(function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}})(),(function(){n.r=function(e){typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,`__esModule`,{value:!0})}})();var r={};return(function(){n.r(r),n.d(r,{Dropzone:function(){return O},default:function(){return I}}),n(2222),n(7327),n(2772),n(6992),n(1249),n(7042),n(561),n(8264),n(8309),n(489),n(1539),n(4916),n(9714),n(8783),n(4723),n(5306),n(3123),n(3210),n(2472),n(2990),n(8927),n(3105),n(5035),n(4345),n(7174),n(2846),n(4731),n(7209),n(6319),n(8867),n(7789),n(3739),n(9368),n(4483),n(2056),n(3462),n(678),n(7462),n(3824),n(5021),n(2974),n(5016),n(4747),n(3948),n(285);function e(e,n){var r;if(typeof Symbol>`u`||e[Symbol.iterator]==null){if(Array.isArray(e)||(r=t(e))||n&&e&&typeof e.length==`number`){r&&(e=r);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
9
9
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,c;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,c=e},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(s)throw c}}}}function t(e,t){if(e){if(typeof e==`string`)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}}function i(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}var c=function(){function t(){a(this,t)}return s(t,[{key:`on`,value:function(e,t){return this._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(t),this}},{key:`emit`,value:function(t){this._callbacks=this._callbacks||{};var n=this._callbacks[t],r=[...arguments].slice(1);if(n){var i=e(n,!0),a;try{for(i.s();!(a=i.n()).done;)a.value.apply(this,r)}catch(e){i.e(e)}finally{i.f()}}return this.element&&this.element.dispatchEvent(this.makeEvent(`dropzone:`+t,{args:r})),this}},{key:`makeEvent`,value:function(e,t){var n={bubbles:!0,cancelable:!0,detail:t};if(typeof window.CustomEvent==`function`)return new CustomEvent(e,n);var r=document.createEvent(`CustomEvent`);return r.initCustomEvent(e,n.bubbles,n.cancelable,n.detail),r}},{key:`off`,value:function(e,t){if(!this._callbacks||arguments.length===0)return this._callbacks={},this;var n=this._callbacks[e];if(!n)return this;if(arguments.length===1)return delete this._callbacks[e],this;for(var r=0;r<n.length;r++)if(n[r]===t){n.splice(r,1);break}return this}}]),t}(),l=`<div class="dz-preview dz-file-preview"> <div class="dz-image"><img data-dz-thumbnail/></div> <div class="dz-details"> <div class="dz-size"><span data-dz-size></span></div> <div class="dz-filename"><span data-dz-name></span></div> </div> <div class="dz-progress"> <span class="dz-upload" data-dz-uploadprogress></span> </div> <div class="dz-error-message"><span data-dz-errormessage></span></div> <div class="dz-success-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Check</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF"></path> </g> </svg> </div> <div class="dz-error-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Error</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475"> <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z"></path> </g> </g> </svg> </div> </div> `;function u(e,t){var n;if(typeof Symbol>`u`||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=d(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
@@ -12,4 +12,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12
12
|
Valid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='
|
|
13
13
|
Expect errors in decoding.`),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,``);i=this.KEY_STR.indexOf(e.charAt(c++)),a=this.KEY_STR.indexOf(e.charAt(c++)),o=this.KEY_STR.indexOf(e.charAt(c++)),s=this.KEY_STR.indexOf(e.charAt(c++)),t=i<<2|a>>4,n=(a&15)<<4|o>>2,r=(o&3)<<6|s,l.push(t),o!==64&&l.push(n),s!==64&&l.push(r),t=n=r=``,i=a=o=s=``,c<e.length;);return l}}]),e}();N.initClass(),O._autoDiscoverFunction=function(){if(O.autoDiscover)return O.discover()},function(e,t){var n=!1,r=!0,i=e.document,a=i.documentElement,o=i.addEventListener?`addEventListener`:`attachEvent`,s=i.addEventListener?`removeEventListener`:`detachEvent`,c=i.addEventListener?``:`on`,l=function r(a){if(!(a.type===`readystatechange`&&i.readyState!==`complete`)&&((a.type===`load`?e:i)[s](c+a.type,r,!1),!n&&(n=!0)))return t.call(e,a.type||a)},u=function e(){try{a.doScroll(`left`)}catch{setTimeout(e,50);return}return l(`poll`)};if(i.readyState!==`complete`){if(i.createEventObject&&a.doScroll){try{r=!e.frameElement}catch{}r&&u()}return i[o](c+`DOMContentLoaded`,l,!1),i[o](c+`readystatechange`,l,!1),e[o](c+`load`,l,!1)}}(window,O._autoDiscoverFunction);function P(e,t){return e==null?void 0:t(e)}function F(e,t,n){if(e!=null&&typeof e[t]==`function`)return n(e,t)}window.Dropzone=O;var I=O})(),r})()})})),Aw=g(kw()),jw=`upload.internetConnectivityError`,Mw=class extends Ln{constructor(){super(B.getPhrase(jw,`title`))}get name(){return`InternetConnectivityError`}get dialogOptions(){return{title:B.getPhrase(jw,`heading`),text:B.getPhrase(jw,`body`),buttons:[{text:B.getPhrase(jw,`okay`),className:`btn btn-outline-dark`,success:!0}]}}},Nw=class extends D{get name(){return`AlertError`}},Pw=`upload.slowInternetError`,Fw=class extends Ln{constructor(){super(B.getPhrase(Pw,`title`))}get name(){return`SlowInternetError`}get dialogOptions(){return{title:B.getPhrase(Pw,`heading`),text:B.getPhrase(Pw,`body`),buttons:[{text:B.getPhrase(Pw,`okay`),className:`btn btn-outline-dark`,success:!0}]}}};Me();var Iw=[],Lw=class extends P{get name(){return`DropzoneWrapper`}constructor(e){super(e),this.slowInternetTimeout={},this.showSlowInternetTimeout=!0}initialize(e){let{loggingEnabled:t}=this.options,n=Qb.default.channel(e.channelName),r=this;this.dropzone=new Aw.default(document.createElement(`div`),{url:(e=>{let{ingestUrl:t}=e[0].cvUpload;return t}),chunking:this.options.chunkingEnabled,chunkSize:this.options.chunkSize,forceChunking:!0,autoProcessQueue:!0,maxFilesize:this.options.maxFileSize,acceptedFiles:this.options.acceptedFiles,paramName:`content`,timeout:18e4,init:function(){t&&(oe.each(Iw,e=>{this.on(e,(...t)=>{let n=t[0]instanceof File?t[0].name:t[0];console.info(e,n,t)})}),this.on(`uploadprogress`,(e,t,i)=>{let a=i/e.size*100;n.trigger(`progress`,r.getId(e),a,i)}),this.on(`success`,e=>{let t=e.upload.chunks,r=oe.last(t),i=r.xhr;i||=r.file.xhr;let a=JSON.parse(i.response);e.cvUpload.fileId=a.id,n.trigger(pw.UPLOAD_SUCCESS,e,a)}),this.on(`error`,(e,t,n)=>{if(n&&n.status===0){R.throw(new Mw);return}e.status!==`canceled`&&R.throw(new Nw(B.getPhrase(`upload.services`,`uploadError`,{fileName:e.name,message:t.message})))}),this.on(`sending`,e=>{window.clearTimeout(r.slowInternetTimeout[e.path]),r.showSlowInternetTimeout&&(r.slowInternetTimeout[e.path]=window.setTimeout(()=>{r.showSlowInternetTimeout&&R.throw(new Fw),r.showSlowInternetTimeout=!1},3e4))}),this.on(`complete`,e=>window.clearTimeout(r.slowInternetTimeout[e.path])))},params:(e,t,n)=>{if(n)return{chunk_index:n.index,upload_length:n.file.size}},addedfile:()=>{},thumbnail:()=>{},uploadprogress:()=>{}})}getId(e){return e.upload.uuid}addFile(e){this.dropzone.addFile(e)}removeFile(e){this.dropzone.removeFile(e)}start(){this.dropzone.processQueue()}destroy(){this.dropzone.destroy()}static isValidFile(e,t){return Aw.default.isValidFile(e,t)}};Me();var Rw=class extends fw{constructor(){super({dataProvider:Pt.getInstance(ow.Ajax),cache:Pt.getInstance(nw.Fifo),alertService:Pt.getInstance(Dn.ALERT)}),this.incrementingUploadId=0}get name(){return`UploadDataService`}get channelName(){return`private:upload:data:service`}requestUploads(e,t,n,r,i){let a=this.chain();me(t,t=>{this.incrementingUploadId++,a.create({resource:e,eventPrefix:`request:upload:${this.incrementingUploadId}`,data:this.getFileUploadRequest(t,n),callback:e=>{r(t,e)},errorHandler:this.alertService.error(`Something went wrong while we were uploading your video. Please try again.`)})}),a.func(()=>{i()}).run()}cancelUpload(e,t,n){this.create({resource:`/api/upload/cancel`,eventPrefix:`cancel:upload`,data:{uploadId:e,ingestUrl:t},callback:n})}getFileUploadRequest(e,t){let n=e.name.split(`.`);return{name:n.join(`.`),extension:n.length>1?n.pop():``,fileSize:e.size,fileLifestyle:t}}onDestroy(){Pt.releaseInstance(ow.Ajax).releaseInstance(nw.Fifo)}},zw=function(e){return e[e.Video=0]=`Video`,e[e.LearningResource=1]=`LearningResource`,e[e.Subtitle=2]=`Subtitle`,e[e.MixedMedia=3]=`MixedMedia`,e}({}),Bw={[zw.Video]:Tw.VIDEO,[zw.LearningResource]:Tw.RESOURCES,[zw.Subtitle]:Tw.SUBTITLES,[zw.MixedMedia]:Tw.MIXED_MEDIA},Vw={[zw.Video]:Dw.VIDEO_UPLOAD,[zw.LearningResource]:Dw.RESOURCE_UPLOAD,[zw.Subtitle]:Dw.SUBTITLE_UPLOAD,[zw.MixedMedia]:Dw.MIXED_MEDIA_UPLOAD},Hw=1024*1024*4,Uw=1024*1024*1024*50,Ww=class extends P{initialize(){this.uploadDataService=new Rw,this.progressViewModel=$b.get(`upload:progress:${this.uploadType}`),this.bindListeners()}get channelName(){return Vw[this.uploadType]}get lang(){return`uploadShared.services`}initUploader(e,t){if(this.uploader)return;let n=Hw;e&&n<e&&(n=e),t&&n>t&&(n=t),this.uploader=new Lw({chunkingEnabled:!0,loggingEnabled:!0,chunkSize:n,maxFileSize:Uw,acceptedFiles:this.getAcceptedFiles(),channelName:this.channelName})}bindListeners(){this.listenTo(this.channelName,`progress`,this.onProgress),this.listenTo(this.channelName,pw.UPLOAD_SUCCESS,this.onSuccess)}onProgress(e,t,n){let r=this.collection.get(e);r&&(r.set({progress:t>100?100:t,totalUploaded:n}),this.setOverallProgress())}isUploading(){return!!this.getCollection().length}getCollection(){return this.collection||=new we,this.collection}setOverallProgress(){let e=0,t=0,n=this.getCollection();if(!n.length){this.progressViewModel.set({progress:0});return}n.each(n=>{e+=n.get(`totalUploaded`)||0,t+=n.get(`file`).size||0});let r=e/t*100,i=r>=100,a=()=>{this.progressViewModel.set({progress:i?100:r,done:i})};if(!i){a();return}window.setTimeout(a,2e3)}isValidFile(e){return Lw.isValidFile(e,this.getAcceptedFiles())}addFiles(e,t){if(o(e,e=>!this.isValidFile(e))){R.throw(new hw(B.getPhrase(this.lang,`invalidFileType`)));return}this.requestUploads(e,t)}async requestUploads(e,t){let n=this.isUploading(),r=this.getCollection();for(let t of e){let e=await qt(this.options.store.dispatch,Ow.requestUpload(t,this.fileLifestyle));`minChunkSize`in e&&`maxChunkSize`in e&&this.initUploader(e.minChunkSize,e.maxChunkSize),t.cvUpload={uploadId:e.uploadId,ingestUrl:e.uploadUrl},this.uploader.addFile(t);let n=t.name;this.uploadType===zw.Video&&(n=n.replace(/\.[^/.]+$/,``));let i=this.uploader.getId(t);r.add({id:i,file:t,name:n,...this.getAdditionalFileInfo(t,e)},{at:r.length-1})}t&&S.logUserAction({uploadCount:e.length},t),Qb.default.channel(this.channelName).trigger(pw.FILES_ADDED,e,n)}addFile(e,t){this.addFiles([e],t)}cancelUpload(e){let t=this.getCollection(),n=t.get(e);if(!n)return;let r=n.get(`file`);this.uploader.removeFile(r),t.remove(n),this.uploadDataService.cancelUpload(r.cvUpload.uploadId,r.cvUpload.ingestUrl,()=>{S.logUserAction(n.toJSON(),{entity:Pe.Video,actionType:E.Upload,workflowPhase:se.Discard,descriptor:u.Single,location:j.MyUploads}),Qb.default.channel(this.channelName).trigger(pw.UPLOAD_CANCELLED)}),this.setOverallProgress()}onSuccess(e,t){let n=this.uploader.getId(e),r=this.getCollection().get(n);r.set(`fileInfo`,t),S.logUserAction({id:e.cvUpload.uploadId},{entity:Pe.Video,actionType:E.Upload,workflowPhase:se.Complete,descriptor:u.Single,location:j.VideoUpload}),Qb.default.channel(this.channelName).trigger(pw.UPLOAD_COMPLETE,r)}cancelAllUploads(){me(this.getCollection().map(e=>e.get(`id`)),e=>this.cancelUpload(e))}getUpload(e){let t=this.uploader.getId(e);return this.getCollection().get(t)}getAcceptedFiles(){return Bw[this.uploadType]}getAdditionalFileInfo(e,t){return{}}},Gw=class extends Ww{get uploadType(){return zw.MixedMedia}get name(){return Fn.MixedMediaUpload}get fileLifestyle(){return mw.Temporary}},Kw=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return Hn(e,t)})},qw=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return Bn(e,t)})},Jw=function(e){fe(t,e);function t(){var t,n=[...arguments];return t=e.call.apply(e,[this].concat(n))||this,t.appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1];t.removeClasses(i,`exit`),t.addClass(i,a?`appear`:`enter`,`base`),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.addClass(i,a,`active`),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.removeClasses(i,a),t.addClass(i,a,`done`),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`appear`),t.removeClasses(n,`enter`),t.addClass(n,`exit`,`base`),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,`exit`,`active`),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`exit`),t.addClass(n,`exit`,`done`),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r=typeof n==`string`,i=r&&n?n+`-`:``,a=r?``+i+e:n[e];return{baseClassName:a,activeClassName:r?a+`-active`:n[e+`Active`],doneClassName:r?a+`-done`:n[e+`Done`]}},t}var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+`ClassName`],i=this.getClassNames(`enter`).doneClassName;t===`appear`&&n===`done`&&i&&(r+=` `+i),n===`active`&&e&&C(e),r&&(this.appliedClasses[t][n]=r,Kw(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,a=n.done;this.appliedClasses[t]={},r&&qw(e,r),i&&qw(e,i),a&&qw(e,a)},n.render=function(){var e=this.props;e.classNames;var t=de(e,[`classNames`]);return Z.createElement(a,re({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(Z.Component);Jw.defaultProps={classNames:``},Jw.propTypes={};function Yw(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Xw(e,t){var n=function(e){return t&&(0,Z.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&Z.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function Zw(e,t){e||={},t||={};function n(n){return n in t?t[n]:e[n]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var o,s={};for(var c in t){if(r[c])for(o=0;o<r[c].length;o++){var l=r[c][o];s[r[c][o]]=n(l)}s[c]=n(c)}for(o=0;o<i.length;o++)s[i[o]]=n(i[o]);return s}function Qw(e,t,n){return n[t]==null?e.props[t]:n[t]}function $w(e,t){return Xw(e.children,function(n){return(0,Z.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:Qw(n,`appear`,e),enter:Qw(n,`enter`,e),exit:Qw(n,`exit`,e)})})}function eT(e,t,n){var r=Xw(e.children),i=Zw(t,r);return Object.keys(i).forEach(function(a){var o=i[a];if((0,Z.isValidElement)(o)){var s=a in t,c=a in r,l=t[a],u=(0,Z.isValidElement)(l)&&!l.props.in;c&&(!s||u)?i[a]=(0,Z.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:Qw(o,`exit`,e),enter:Qw(o,`enter`,e)}):!c&&s&&!u?i[a]=(0,Z.cloneElement)(o,{in:!1}):c&&s&&(0,Z.isValidElement)(l)&&(i[a]=(0,Z.cloneElement)(o,{onExited:n.bind(null,o),in:l.props.in,exit:Qw(o,`exit`,e),enter:Qw(o,`enter`,e)}))}}),i}var tT=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},nT={component:`div`,childFactory:function(e){return e}},rT=function(e){fe(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.state={contextValue:{isMounting:!0},handleExited:r.handleExited.bind(Yw(r)),firstRender:!0},r}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?$w(e,r):eT(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=Xw(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=re({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=de(e,[`component`,`childFactory`]),i=this.state.contextValue,a=tT(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,t===null?Z.createElement(pe.Provider,{value:i},a):Z.createElement(pe.Provider,{value:i},Z.createElement(t,r,a))},t}(Z.Component);rT.propTypes={},rT.defaultProps=nT;function iT(e){return(0,Q.jsx)(`svg`,{...e,children:(0,Q.jsx)(`path`,{fill:`currentColor`,d:`M12 3c4.972 0 9 4.028 9 9s-4.028 9-9 9-9-4.028-9-9 4.028-9 9-9m0 1.212c-2.081 0-4.037.809-5.508 2.28A7.74 7.74 0 0 0 4.212 12c0 2.081.809 4.037 2.28 5.508A7.74 7.74 0 0 0 12 19.788c2.081 0 4.037-.809 5.508-2.28A7.74 7.74 0 0 0 19.788 12c0-2.081-.809-4.037-2.28-5.508A7.74 7.74 0 0 0 12 4.212m4.244 4.366a.7.7 0 0 1 .07 1.016l-5.25 5.76a.77.77 0 0 1-1.094.035l-2.25-2.16a.7.7 0 0 1 0-1.018.77.77 0 0 1 1.06 0l1.684 1.616 4.722-5.181a.77.77 0 0 1 1.058-.068`})})}function aT(e){return(0,Q.jsx)(`svg`,{...e,children:(0,Q.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,d:`M20 12a8 8 0 1 1-16 0 8 8 0 0 1 16 0m-1 0a7 7 0 1 0-14 0 7 7 0 0 0 14 0m-6.25-.75a.75.75 0 0 0-1.5 0v5a.75.75 0 0 0 1.5 0zm0-3a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0`,clipRule:`evenodd`})})}function oT(e){return(0,Q.jsx)(`svg`,{...e,children:(0,Q.jsx)(`path`,{fill:`currentColor`,d:`m13.882 20.807.619 2.935q-.803.17-3.028.258l.176-.008-.175-.004.133-2.997.28.008.154.001a9 9 0 0 0 1.841-.194m-5.888-.75a9 9 0 0 0 2.12.744l-.63 2.933a12 12 0 0 1-2.832-.992zm9.274-.746 1.754 2.436a12 12 0 0 1-2.638 1.433l-1.093-2.793a9 9 0 0 0 1.977-1.076M5.06 17.724A9 9 0 0 0 6.7 19.271l-1.773 2.42a12 12 0 0 1-2.184-2.057zm14.736-1.187 2.592 1.515a12 12 0 0 1-1.828 2.38l-2.137-2.108a9 9 0 0 0 1.373-1.787M3.31 14.344a9 9 0 0 0 .852 2.078L1.55 17.899a12 12 0 0 1-1.138-2.776zm17.661-1.39 2.987.313a12 12 0 0 1-.686 2.92l-2.814-1.046c.261-.7.434-1.434.513-2.187M.135 10.197l2.97.447a9.2 9.2 0 0 0-.056 2.27l-2.988.3Q.02 12.813 0 12l.009-.457q.026-.684.126-1.346m23.299-1.925c.306.937.5 1.924.566 2.947l-2.997.192a9 9 0 0 0-.424-2.208zM1.892 5.532l2.529 1.62a9 9 0 0 0-.967 2.027L.6 8.24c.318-.962.754-1.87 1.291-2.708m19.06-1.548c.668.744 1.245 1.57 1.713 2.464l-2.661 1.39a9 9 0 0 0-1.286-1.849zM5.407 1.976 7.06 4.48a9 9 0 0 0-1.714 1.465l-2.221-2.02a12 12 0 0 1 2.28-1.95m11.503-.937c.923.412 1.784.937 2.566 1.558L17.61 4.946a9 9 0 0 0-1.926-1.168zM10.03.163l.492 2.96a9 9 0 0 0-2.153.643L7.153 1.023C8.058.622 9.023.33 10.03.163M12.013 0l.439.008a12 12 0 0 1 2.541.364L14.25 3.28A9 9 0 0 0 12.012 3z`})})}function sT(e){return(0,Q.jsx)(`svg`,{...e,children:(0,Q.jsx)(`path`,{d:`m13.026 4.377 8.5 14A1.2 1.2 0 0 1 20.5 20.2h-17a1.2 1.2 0 0 1-1.026-1.823l8.5-14a1.2 1.2 0 0 1 2.052 0M12 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2m.75-3.677V8.677a.69.69 0 0 0-.7-.677c-.387 0-.7.303-.7.677v5.646c0 .374.313.677.7.677s.7-.303.7-.677`,fill:`currentColor`})})}function cT(e,t,n){let r=(0,Z.useRef)(e!==void 0),[i,a]=(0,Z.useState)(t),o=e!==void 0,s=r.current;return r.current=o,!o&&s&&i!==t&&a(t),[o?e:i,(0,Z.useCallback)((...e)=>{let[t,...r]=e,i=n?.(t,...r);return a(t),i},[n])]}function lT(){let[,e]=(0,Z.useReducer)(e=>e+1,0);return e}var uT=Z.createContext(null),dT=[`children`,`usePopper`];function fT(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var pT=()=>{};function mT(e={}){let t=(0,Z.useContext)(uT),[n,r]=ye(),i=(0,Z.useRef)(!1),{flip:a,offset:o,rootCloseEvent:s,fixed:c=!1,placement:l,popperConfig:u={},enableEventListeners:d=!0,usePopper:f=!!t}=e,p=t?.show==null?!!e.show:t.show;p&&!i.current&&(i.current=!0);let m=e=>{t?.toggle(!1,e)},{placement:h,setMenu:g,menuElement:_,toggleElement:v}=t||{},y=mt(v,_,St({placement:l||h||`bottom-start`,enabled:f,enableEvents:d??p,offset:o,flip:a,fixed:c,arrowElement:n,popperConfig:u})),b=Object.assign({ref:g||pT,"aria-labelledby":v?.id},y.attributes.popper,{style:y.styles.popper}),x={show:p,placement:h,hasShown:i.current,toggle:t?.toggle,popper:f?y:null,arrowProps:f?Object.assign({ref:r},y.attributes.arrow,{style:y.styles.arrow}):{}};return vt(_,m,{clickTrigger:s,disabled:!p}),[b,x]}function hT(e){let{children:t,usePopper:n=!0}=e,r=fT(e,dT),[i,a]=mT(Object.assign({},r,{usePopper:n}));return(0,Q.jsx)(Q.Fragment,{children:t(i,a)})}hT.displayName=`DropdownMenu`;var gT={prefix:String(Math.round(Math.random()*1e10)),current:0},_T=Z.createContext(gT),vT=Z.createContext(!1);typeof window<`u`&&window.document&&window.document.createElement;var yT=new WeakMap;function bT(e=!1){let t=(0,Z.useContext)(_T),n=(0,Z.useRef)(null);if(n.current===null&&!e){let e=Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(e){let n=yT.get(e);n==null?yT.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,yT.delete(e))}n.current=++t.current}return n.current}function xT(e){let t=(0,Z.useContext)(_T),n=bT(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function ST(e){let t=Z.useId(),[n]=(0,Z.useState)(DT()),r=n?`react-aria`:`react-aria${gT.prefix}`;return e||`${r}-${t}`}var CT=typeof Z.useId==`function`?ST:xT;function wT(){return!1}function TT(){return!0}function ET(e){return()=>{}}function DT(){return typeof Z.useSyncExternalStore==`function`?Z.useSyncExternalStore(ET,wT,TT):(0,Z.useContext)(vT)}var OT=e=>e.getAttribute(`role`)?.toLowerCase()===`menu`,kT=()=>{};function AT(){let e=CT(),{show:t=!1,toggle:n=kT,setToggle:r,menuElement:i}=(0,Z.useContext)(uT)||{},a=(0,Z.useCallback)(e=>{n(!t,e)},[t,n]),o={id:e,ref:r||kT,onClick:a,"aria-expanded":!!t};return i&&OT(i)&&(o[`aria-haspopup`]=!0),[o,{show:t,toggle:n}]}function jT({children:e}){let[t,n]=AT();return(0,Q.jsx)(Q.Fragment,{children:e(t,n)})}jT.displayName=`DropdownToggle`;var MT=Z.createContext(null),NT=(e,t=null)=>e==null?t||null:String(e),PT=Z.createContext(null);PT.displayName=`NavContext`;var FT=[`eventKey`,`disabled`,`onClick`,`active`,`as`];function IT(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function LT({key:e,href:t,active:n,disabled:r,onClick:i}){let a=(0,Z.useContext)(MT),{activeKey:o}=(0,Z.useContext)(PT)||{},s=NT(e,t),c=n==null&&e!=null?NT(o)===s:n;return[{onClick:ne(e=>{r||(i?.(e),a&&!e.isPropagationStopped()&&a(s,e))}),"aria-disabled":r||void 0,"aria-selected":c,[zn(`dropdown-item`)]:``},{isActive:c}]}var RT=Z.forwardRef((e,t)=>{let{eventKey:n,disabled:r,onClick:i,active:a,as:o=qn}=e,s=IT(e,FT),[c]=LT({key:n,href:s.href,disabled:r,onClick:i,active:a});return(0,Q.jsx)(o,Object.assign({},s,{ref:t},c))});RT.displayName=`DropdownItem`;function zT(){let e=lT(),t=(0,Z.useRef)(null);return[t,(0,Z.useCallback)(n=>{t.current=n,e()},[e])]}function BT({defaultShow:e,show:t,onSelect:n,onToggle:r,itemSelector:i=`* [${zn(`dropdown-item`)}]`,focusFirstItemOnShow:a,placement:o=`bottom-start`,children:s}){let c=pt(),[l,u]=cT(t,e,r),[d,f]=zT(),p=d.current,[m,h]=zT(),g=m.current,_=Wn(l),v=(0,Z.useRef)(null),y=(0,Z.useRef)(!1),b=(0,Z.useContext)(MT),x=(0,Z.useCallback)((e,t,n=t?.type)=>{u(e,{originalEvent:t,source:n})},[u]),S=ne((e,t)=>{n?.(e,t),x(!1,t,`select`),t.isPropagationStopped()||b?.(e,t)}),C=(0,Z.useMemo)(()=>({toggle:x,placement:o,show:l,menuElement:p,toggleElement:g,setMenu:f,setToggle:h}),[x,o,l,p,g,f,h]);p&&_&&!l&&(y.current=p.contains(p.ownerDocument.activeElement));let w=ne(()=>{g&&g.focus&&g.focus()}),T=ne(()=>{let e=v.current,t=a;if(t??=d.current&&OT(d.current)?`keyboard`:!1,t===!1||t===`keyboard`&&!/^key.+$/.test(e))return;let n=Rn(d.current,i)[0];n&&n.focus&&n.focus()});(0,Z.useEffect)(()=>{l?T():y.current&&(y.current=!1,w())},[l,y,w,T]),(0,Z.useEffect)(()=>{v.current=null});let E=(e,t)=>{if(!d.current)return null;let n=Rn(d.current,i),r=n.indexOf(e)+t;return r=Math.max(0,Math.min(r,n.length)),n[r]};return Gn((0,Z.useCallback)(()=>c.document,[c]),`keydown`,e=>{let{key:t}=e,n=e.target,r=d.current?.contains(n),i=m.current?.contains(n);if(/input|textarea/i.test(n.tagName)&&(t===` `||t!==`Escape`&&r||t===`Escape`&&n.type===`search`)||!r&&!i||t===`Tab`&&(!d.current||!l))return;v.current=e.type;let a={originalEvent:e,source:e.type};switch(t){case`ArrowUp`:{let t=E(n,-1);t&&t.focus&&t.focus(),e.preventDefault();return}case`ArrowDown`:if(e.preventDefault(),!l)u(!0,a);else{let e=E(n,1);e&&e.focus&&e.focus()}return;case`Tab`:xe(n.ownerDocument,`keyup`,e=>{var t;(e.key===`Tab`&&!e.target||!((t=d.current)!=null&&t.contains(e.target)))&&u(!1,a)},{once:!0});break;case`Escape`:t===`Escape`&&(e.preventDefault(),e.stopPropagation()),u(!1,a);break;default:}}),(0,Q.jsx)(MT.Provider,{value:S,children:(0,Q.jsx)(uT.Provider,{value:C,children:s})})}BT.displayName=`Dropdown`,BT.Menu=hT,BT.Toggle=jT,BT.Item=RT;var VT=Z.createContext({});VT.displayName=`DropdownContext`;var HT=g(s()),UT=Z.forwardRef(({className:e,bsPrefix:t,as:n=`hr`,role:r=`separator`,...i},a)=>(t=Ne(t,`dropdown-divider`),(0,Q.jsx)(n,{ref:a,className:(0,HT.default)(e,t),role:r,...i})));UT.displayName=`DropdownDivider`;var WT=Z.forwardRef(({className:e,bsPrefix:t,as:n=`div`,role:r=`heading`,...i},a)=>(t=Ne(t,`dropdown-header`),(0,Q.jsx)(n,{ref:a,className:(0,HT.default)(e,t),role:r,...i})));WT.displayName=`DropdownHeader`;var GT=Z.forwardRef(({bsPrefix:e,className:t,eventKey:n,disabled:r=!1,onClick:i,active:a,as:o=Kn,...s},c)=>{let l=Ne(e,`dropdown-item`),[u,d]=LT({key:n,href:s.href,disabled:r,onClick:i,active:a});return(0,Q.jsx)(o,{...s,...u,ref:c,className:(0,HT.default)(t,l,d.isActive&&`active`,r&&`disabled`)})});GT.displayName=`DropdownItem`;var KT=Z.forwardRef(({className:e,bsPrefix:t,as:n=`span`,...r},i)=>(t=Ne(t,`dropdown-item-text`),(0,Q.jsx)(n,{ref:i,className:(0,HT.default)(e,t),...r})));KT.displayName=`DropdownItemText`;var qT=Z.createContext(null);qT.displayName=`InputGroupContext`;var JT=Z.createContext(null);JT.displayName=`NavbarContext`,A();function YT(e,t){return e}b();function XT(e,t,n){let r=n?`top-end`:`top-start`,i=n?`top-start`:`top-end`,a=n?`bottom-end`:`bottom-start`,o=n?`bottom-start`:`bottom-end`,s=n?`right-start`:`left-start`,c=n?`right-end`:`left-end`,l=n?`left-start`:`right-start`,u=n?`left-end`:`right-end`,d=e?o:a;return t===`up`?d=e?i:r:t===`end`?d=e?u:l:t===`start`?d=e?c:s:t===`down-centered`?d=`bottom`:t===`up-centered`&&(d=`top`),d}var ZT=Z.forwardRef(({bsPrefix:e,className:t,align:n,rootCloseEvent:r,flip:i=!0,show:a,renderOnMount:o,as:s=`div`,popperConfig:c,variant:l,...u},d)=>{let f=!1,p=(0,Z.useContext)(JT),m=Ne(e,`dropdown-menu`),{align:h,drop:g,isRTL:_}=(0,Z.useContext)(VT);n||=h;let v=(0,Z.useContext)(qT),y=[];if(n)if(typeof n==`object`){let e=Object.keys(n);if(e.length){let t=e[0],r=n[t];f=r===`start`,y.push(`${m}-${t}-${r}`)}}else n===`end`&&(f=!0);let b=XT(f,g,_),[x,{hasShown:S,popper:C,show:w,toggle:T}]=mT({flip:i,rootCloseEvent:r,show:a,usePopper:!p&&y.length===0,offset:[0,2],popperConfig:c,placement:b});if(x.ref=he(YT(d,`DropdownMenu`),x.ref),dt(()=>{w&&C?.update()},[w]),!S&&!o&&!v)return null;typeof s!=`string`&&(x.show=w,x.close=()=>T?.(!1),x.align=n);let E=u.style;return C!=null&&C.placement&&(E={...u.style,...x.style},u[`x-placement`]=C.placement),(0,Q.jsx)(s,{...u,...x,style:E,...(y.length||p)&&{"data-bs-popper":`static`},className:(0,HT.default)(t,m,w&&`show`,f&&`${m}-end`,l&&`${m}-${l}`,...y)})});ZT.displayName=`DropdownMenu`;var QT=Z.forwardRef(({bsPrefix:e,split:t,className:n,childBsPrefix:r,as:i=Yn,...a},o)=>{let s=Ne(e,`dropdown-toggle`),c=(0,Z.useContext)(uT);r!==void 0&&(a.bsPrefix=r);let[l]=AT();return l.ref=he(l.ref,YT(o,`DropdownToggle`)),(0,Q.jsx)(i,{className:(0,HT.default)(n,s,t&&`${s}-split`,c?.show&&`show`),...l,...a})});QT.displayName=`DropdownToggle`;var $T=Z.forwardRef((e,t)=>{let{bsPrefix:n,drop:r=`down`,show:a,className:o,align:s=`start`,onSelect:c,onToggle:l,focusFirstItemOnShow:u,as:d=`div`,navbar:f,autoClose:p=!0,...m}=i(e,{show:`onToggle`}),h=(0,Z.useContext)(qT),g=Ne(n,`dropdown`),_=k(),v=e=>p===!1?e===`click`:p===`inside`?e!==`rootClose`:p===`outside`?e!==`select`:!0,y=De((e,t)=>{var n;!((n=t.originalEvent)==null||(n=n.target)==null)&&n.classList.contains(`dropdown-toggle`)&&t.source===`mousedown`||(t.originalEvent.currentTarget===document&&(t.source!==`keydown`||t.originalEvent.key===`Escape`)&&(t.source=`rootClose`),v(t.source)&&l?.(e,t))}),b=XT(s===`end`,r,_),x=(0,Z.useMemo)(()=>({align:s,drop:r,isRTL:_}),[s,r,_]),S={down:g,"down-centered":`${g}-center`,up:`dropup`,"up-centered":`dropup-center dropup`,end:`dropend`,start:`dropstart`};return(0,Q.jsx)(VT.Provider,{value:x,children:(0,Q.jsx)(BT,{placement:b,show:a,onSelect:c,onToggle:y,focusFirstItemOnShow:u,itemSelector:`.${g}-item:not(.disabled):not(:disabled)`,children:h?m.children:(0,Q.jsx)(d,{...m,ref:t,className:(0,HT.default)(o,a&&`show`,S[r])})})})});$T.displayName=`Dropdown`;var eE=Object.assign($T,{Toggle:QT,Menu:ZT,Item:GT,ItemText:KT,Divider:UT,Header:WT}),tE={alertItem:`_alertItem_i5y1z_1`,alertBox:`_alertBox_i5y1z_11`,alertList:`_alertList_i5y1z_11`,icon:`_icon_i5y1z_28`,alertContent:`_alertContent_i5y1z_32`,heading:`_heading_i5y1z_40`};function nE(e){let{alert:t,svg:n,svgClassName:r,closeAlert:i}=e,{message:a,heading:o,appLink:s,appLinkText:c,appLinkClassName:l=``,extLink:u,extLinkText:d,extLinkClassName:f}=t;return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`div`,{className:`d-inline-block ${tE.icon}`,children:(0,Q.jsx)(wt,{svg:n,className:`svg-container ${r}`})}),(0,Q.jsxs)(`div`,{role:t.type===Ft.Fail?`alert`:`status`,className:`ps-2 d-inline-block ${tE.alertContent}`,children:[(0,Q.jsx)(`p`,{className:`p-0 m-0 pb-1 ${tE.heading}`,children:o}),(0,Q.jsx)(`p`,{className:`p-0 text-break clamp-4 ${tE.message}`,dangerouslySetInnerHTML:{__html:a}}),!!s&&(0,Q.jsx)(Dt,{className:l,appLink:s,children:(0,Q.jsx)(`span`,{dangerouslySetInnerHTML:{__html:c}})}),!!u&&d&&(0,Q.jsx)(`a`,{href:u,className:f,target:`_blank`,children:d})]}),(0,Q.jsx)(`div`,{className:`btn-close d-inline-block cursor-pointer`,role:`button`,"aria-label":`Close`,onClick:i})]})}var rE=e=>{switch(e.type){case Ft.Success:return iT;case Ft.Fail:case Ft.Warning:return sT;case Ft.Pending:return oT;case Ft.Info:default:return aT}},iE=e=>e.type===Ft.Pending?`text-info`:`text-${e.type}`;aE.defaultProps={timeout:3e3};function aE({alert:e,closeAlert:t,timeout:n}){let[r,i]=Z.useState(!0),a=Z.useRef(null);return Z.useEffect(()=>{if(!r){clearTimeout(a.current);return}a.current=window.setTimeout(t,n)},[r]),(0,Q.jsx)(`li`,{className:`bg-white mt-2 p-2 show clearfix ${tE.alertItem}`,onMouseEnter:()=>i(!1),onMouseLeave:()=>i(!0),children:(0,Q.jsx)(nE,{alert:e,svg:rE(e),svgClassName:iE(e),closeAlert:t})})}function oE({alerts:e,removeAlert:t}){return(0,Q.jsx)(`div`,{className:tE.alertBox,children:(0,Q.jsx)(rT,{component:`ul`,className:`${tE.alertList} list-unstyled`,children:e&&e.map((e,n)=>(0,Q.jsx)(Jw,{timeout:200,classNames:`alert`,children:(0,Q.jsx)(aE,{alert:e,closeAlert:()=>t(e.id),timeout:e.timeout})},n))})})}var sE={SHORT:120,STANDARD:600},cE={SUBJECT_PLAYLISTS:`subject:playlists`,CURRENT_USER:`current:user`,WORKSPACE:`workspace`,CONFIG:`config`,LOCALE:`locale`,PHRASES:`phrases`,SEARCH_FILTERS:`search:filters`,SERIES:`series`,NOTIFICATIONS:`notifications`,SUGGEST_EDIT:`suggest:edit`};Me();var lE=class extends fw{get name(){return In.Language}get channelName(){return Ew.LANGUAGE}getLanguageConfig(e){let t={locale:``,phrases:null};this.get({resource:`/api/locale`,eventPrefix:cE.LOCALE,expiryTime:sE.STANDARD,bootstrapName:jt.LOCALE,callback:n=>{t.locale=n,t.phrases&&M(e)&&e(t)}}),this.get({resource:`/api/phrases`,eventPrefix:cE.PHRASES,expiryTime:sE.STANDARD,bootstrapName:jt.PHRASES,callback:n=>{t.phrases=n,t.locale&&M(e)&&e(t)}})}},uE={Success:`Success! 🙌`,Warning:`Whoops...`,Fail:`Oops...`,Info:`FYI`};async function dE(e,t){let n={maxAlerts:3,defaultSuccessAlert:{heading:uE.Success,type:Ft.Success},defaultErrorAlert:{heading:uE.Fail,type:Ft.Fail},alertViewCtor:oE};Pt.registerSingleton(new Nt(n)).registerInstance(Gw,{store:e.store});let r=Pt.getInstance(Dn.ALERT),i={cache:nw.Fifo,dataProvider:ow.Ajax,bootstrapData:window.bootstrapData,defaultErrorHandler:r.error({useXHR:!0}),alertService:r};Pt.registerDataService(lE,i),t(e),delete window.bootstrapData}var fE=`shared.chunkLoadError`,pE=/\/([^\s/]+\.css)/,mE=/\/([^\s/]+\.js)/,hE=class extends Ln{constructor(e,t,n){super(B.getPhrase(fE,`title`,{chunkName:t})),this.product=`ClickView`,this.btnVariant=e,n&&(this.product=n)}get name(){return`ChunkLoadError`}get dialogOptions(){return{title:B.getPhrase(fE,`heading`,{product:this.product}),text:B.getPhrase(fE,`body`),buttons:[{text:B.getPhrase(fE,`reload`),className:`btn btn-${this.btnVariant}`,success:!0}]}}onDone(){ue.Reload()}};function gE(e,t){window.addEventListener(`error`,n=>{let r=n?.target?.src||n?.target?.href;if(!r)return;let i=e=>e?.[1]??`Unknown Chunk`,a=r.match(mE);if(a&&r.includes(`/scripts/`)&&r.includes(`.chunk.js`)){R.throw(new hE(e,i(a),t));return}let o=r.match(pE);if(o&&r.includes(`/css/`)&&r.includes(`.chunk.css`)){R.throw(new hE(e,i(o),t));return}},!0)}var _E=class extends D{constructor(e,t){super(`User is using old version of the code. Old: ${e}. New: ${t}`)}get name(){return`OldVersionError`}},vE=`shared.videoNotFoundError`,yE=class extends dC{constructor(){super(B.getPhrase(vE,`title`))}get name(){return`VideoNotFoundError`}get heading(){return B.getPhrase(vE,`heading`)}get description(){return B.getPhrase(vE,`description`)}},bE=ut(),xE=`shared.shared-utils`,SE=null,CE={render:(e,t={})=>{let n=document.getElementById(`dialog-region`);n||(n=document.createElement(`div`),n.id=`dialog-region`,document.appendChild(n)),SE||=(0,bE.createRoot)(n);function r(){if(kt.isFunction(t.submitButtonProps?.onClick)){let e=t.submitButtonProps.onClick();if(e instanceof Promise){e.then(()=>{SE.unmount(),SE=null});return}}SE.unmount(),SE=null}function i(){kt.isFunction(t.cancelButtonProps?.onClick)&&t.cancelButtonProps.onClick(),SE.unmount(),SE=null}let a={...t.submitButtonProps?t.submitButtonProps:{},onClick:()=>{r()}},o={...t.cancelButtonProps?t.cancelButtonProps:{},onClick:()=>{i()}};SE.render((0,Q.jsxs)(Un,{title:t.title,closePopup:i,size:t.size,centered:t.centered,bodyClassName:`overflow-hidden`,dialogClassName:t.dialogClassName,children:[e,!t.hideButtons&&(0,Q.jsxs)(Jn,{className:t.buttonContainerClassName,children:[t.cancelButtonProps&&(0,Q.jsx)(Jn.Cancel,{...o}),t.submitButtonProps&&(0,Q.jsx)(Jn.Submit,{...a})]})]}))},getDefaultSubmitButton(){return{variant:`dark`,text:B.getPhrase(xE,`confirm`)}},getDefaultCancelButton(){return{variant:`light`,text:B.getPhrase(xE,`cancel`)}}},wE=B.encloseNamespace(`shared.hooks`),TE=!1,EE={isLocked:()=>TE},DE=()=>{let[e,t]=Z.useState([]),n=Qb.default.channel(be.SHELL);Z.useEffect(()=>(e.find(e=>!e.allowAppLinks)&&n.on(z.NAV_IS_LOCKED,a),e.length&&window.addEventListener(`beforeunload`,o),()=>{n.off(z.NAV_IS_LOCKED,a),window.removeEventListener(`beforeunload`,o)}),[e]),Z.useEffect(()=>{function e(){r({id:`upload`,title:wE(`navLockTitle`),text:wE(`navLockBody`),allowAppLinks:!0})}let t=Qb.default.channel(Dw.VIDEO_UPLOAD);return t.on(pw.FILES_ADDED,e),t.on(pw.UNLOCK_NAV,i),()=>{t.off(pw.FILES_ADDED,e),t.off(pw.UNLOCK_NAV,i)}},[]);function r(r={}){e.find(e=>e.id===r.id)||(r.allowAppLinks||n.trigger(z.LOCK_NAV),t([...e,r]),TE=!0)}function i(r){let i=e.filter(e=>e.id!==r);(i.length===0||!i.find(e=>!e.allowAppLinks))&&n.trigger(z.UNLOCK_NAV),t(i),i.length||(TE=!1)}function a(t){if(!e.length)return;let r=e.find(e=>!e.allowAppLinks);if(r.appLinkWhitelist?.find(e=>e.action===t.action&&e.application===t.application)){n.trigger(z.UNLOCK_NAV),window.setTimeout(()=>{_e.trigger(t),n.trigger(z.LOCK_NAV)},0);return}if(kt.isFunction(r.renderCustomDialog)){r.renderCustomDialog();return}CE.render((0,Q.jsx)(`p`,{children:r.text}),{title:r.title,submitButtonProps:{onClick:()=>{r.onConfirmUnlock&&r.onConfirmUnlock(),s(t)},variant:`danger`,text:wE(`discard`)},cancelButtonProps:{text:wE(`cancel`),variant:`link`}})}function o(t){let n=e.find(e=>e.allowAppLinks);return n||=tn.first(e),t.returnValue=n.text,n.text}function s(t){n.trigger(z.NAV_UNLOCKED_BY_USER),e.forEach(e=>{e.allowAppLinks||i(e.id)}),window.removeEventListener(`beforeunload`,o),_e.trigger(t)}return{lock:r,unlock:i}},OE=9e5,kE=new class extends P{constructor(...e){super(...e),this.canReload=!0}get name(){return Fn.OldVersion}initialize(){this.onVisibilityChange=this.onVisibilityChange.bind(this),this.onInactivityTimeout=this.onInactivityTimeout.bind(this)}handleOldVersion(){document.addEventListener(`visibilitychange`,this.onVisibilityChange),this.onVisibilityChange()}onVisibilityChange(){if(!document.hidden){window.clearTimeout(this.timeout);return}this.setInactivityTimeout()}setInactivityTimeout(){this.timeout=window.setTimeout(this.onInactivityTimeout,OE)}onInactivityTimeout(){if(EE.isLocked()){this.setInactivityTimeout();return}this.onInactive()}onInactive(){if(!this.canReload||EE.isLocked()){this.setInactivityTimeout();return}ue.Reload()}setCanReload(e){this.canReload=e}};function AE(e){Pt.getInstance(Dn.ALERT).createAlert({heading:uE.Fail,type:Ft.Fail,message:e.message})}function jE(e){Qb.default.channel(`error:view`).reply(`current:error`,()=>e),_e.trigger({application:Mn.DEFAULT,action:jn.Default.NOT_FOUND})}function ME(e){Qb.default.channel(`error:view`).reply(`current:error`,()=>e),_e.trigger({application:Mn.DEFAULT,action:jn.Default.NO_CLASSROOMS_ERROR})}function NE(e){Qb.default.channel(`error:view`).reply(`current:error`,()=>e),_e.trigger({application:Mn.DEFAULT,action:jn.Default.ERROR})}function PE(e){Qb.default.channel(`error:view`).reply(`current:error`,()=>e),_e.trigger({application:Mn.DEFAULT,action:jn.Default.DIALOG_ERROR})}function FE(){kE.handleOldVersion()}function IE(e,t){e.registerErrorHandler(Ln,PE).registerErrorHandler(Nw,AE).registerErrorHandler(VC,jE).registerErrorHandler(pC,NE).registerErrorHandler(yE,jE).registerErrorHandler(GC,ME).registerErrorHandler(dC,NE).registerErrorHandler(_E,FE),gE(`dark`),t()}var LE=class extends I{constructor(...e){super(...e),this.regionRoots={},this.isReactComponentRendered={}}isReactComponent(e){return Z.default&&Z.isValidElement(e)}showChildView(e,t,n){if(this.isReactComponent(t)){this.showChildReactComponent(e,t),this.isReactComponentRendered[e]=!0;return}this.isReactComponentRendered[e]&&this.unmountRoot(e),super.showChildView(e,t,n),this.isReactComponentRendered[e]=!1}showChildReactComponent(e,t){if(this.isAttached()){this.renderChildReactComponent(e,t);return}this.listenToOnce(this,`attach`,()=>this.renderChildReactComponent(e,t))}renderChildReactComponent(e,t){let n=this.getRegion(e),r=this.$el.find(n.el);!r||!r.length||(n.trigger(`before:show`),this.regionRoots[e]||(this.regionRoots[e]=(0,bE.createRoot)(r[0])),this.regionRoots[e].render(t),window.setTimeout(()=>n.trigger(`show`),0),this.listenToOnce(this,`unmount:${e}`,()=>this.unmountRoot(e)),this.listenToOnce(this,`before:destroy`,()=>this.unmountRoot(e)))}unmountRoot(e){this.regionRoots[e]&&(this.regionRoots[e].unmount(),delete this.regionRoots[e])}wrapWithStore(e){return(0,Q.jsx)(Vt,{store:this.options.store,children:e})}},RE=class extends Z.Component{constructor(e){super(e),this.currentErrorHandled=!1,this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.currentErrorHandled||(this.currentErrorHandled=!0,window.trackJs&&window.trackJs.console.error(e.message,{errorInfo:t}),this.props.throwError&&(R.throw(new this.props.throwError(e.message)),window.setTimeout(()=>{this.currentErrorHandled=!1,this.setState({error:null})},500)))}render(){let{error:e}=this.state;if(e&&this.props.renderError){let e=this.props.renderError;return(0,Q.jsx)(e,{})}return e||!this.props.children?(0,Q.jsx)(Q.Fragment,{}):this.props.children}},zE=Z.createContext({}),BE=e=>{let t=Qn(`(max-width: 575.98px)`),n=Qn(`(min-width: 576px) and (max-width: 767.98px)`),r=Qn(`(min-width: 768px) and (max-width: 991.98px)`),i=Qn(`(min-width: 992px) and (max-width: 1199.98px)`),a=Qn(`(min-width: 1200px) and (max-width: 1439.98px)`),o=Qn(`(min-width: 1440px)`),s=Z.useMemo(()=>({xs:t,sm:n,md:r,lg:i,xl:a,xxl:o}),[t,n,r,i,a,o]);return(0,Q.jsx)(zE.Provider,{value:s,children:e.children})},VE=Z.createContext(void 0),HE=({children:e})=>{let[t,n]=Z.useState(),[r,i]=Z.useState(!1),[a,o]=Z.useState(),s={getDataUrlAndResetContext:()=>{let e=t;return n(null),e},setDataUrl:n,imageUploaded:r,getImage:()=>{let e=a;return o(null),i(!1),e},setImage:e=>{o(e),i(!0)}};return(0,Q.jsx)(VE.Provider,{value:s,children:e})},UE=function(e){return e.XS=`(max-width: 575px)`,e.SM=`(min-width: 576px) and (max-width: 767px)`,e.MD=`(min-width: 768px) and (max-width: 991px)`,e.LG=`(min-width: 992px)`,e.XL=`(min-width: 1200px)`,e.XXL=`(min-width: 1440px)`,e.SMDown=`(max-width: 576px)`,e.MDDown=`(max-width: 768px)`,e.LGDown=`(max-width: 992px)`,e.XLDown=`(max-width: 1200px)`,e}({}),WE=`shared.unspecifiedDialogError`,GE=class extends Ln{constructor(){super(`Unspecified dialog error`),this.btnVariant=`dark`}get name(){return`UnspecifiedDialogError`}get dialogOptions(){return{title:B.getPhrase(WE,`title`),text:B.getPhrase(WE,`body`),buttons:[{text:B.getPhrase(WE,`close`),className:`btn btn-${this.btnVariant}`,success:!0}]}}};function KE(){let e=Qn(UE.XS),t=Qn(UE.SM),n=Qn(UE.MD),r=Qn(UE.LG),i=Qn(UE.XL),a=Qn(UE.XXL),o=UE.LG;return e&&(o=UE.XS),t&&(o=UE.SM),n&&(o=UE.MD),r&&(o=UE.LG),i&&(o=UE.XL),a&&(o=UE.XXL),o}function qE(){function e(n){n.key===`Tab`&&(document.body.classList.add(`user-is-tabbing`),window.removeEventListener(`keydown`,e),window.addEventListener(`mousedown`,t))}function t(){document.body.classList.remove(`user-is-tabbing`),window.removeEventListener(`mousedown`,t),window.addEventListener(`keydown`,e)}(0,Z.useEffect)(()=>(window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)),[])}function JE(){let e=zt(iC.version());return e.data?(0,Q.jsx)(`footer`,{className:`text-center text-secondary py-2`,children:(0,Q.jsxs)(`small`,{children:[`2003 - `,new Date().getFullYear(),` © ClickView | Version: `,e.data]})}):(0,Q.jsx)(Q.Fragment,{})}var YE={updateParams(e,t){let{appLink:n}=EC.getCurrentRoute(),r=typeof n.params==`string`?ue.DeserializeQueryParams(n.params):n.params;t.keysToRemove&&(r=ae.omit(r,t.keysToRemove));let i=t?.merge?{...r,...e}:e,a={...n,params:i};ae.isEqual(n,a)||_e.trigger(a,ae.omit(t,[`merge`,`keysToRemove`]))}},XE=B.encloseNamespace(`shared.analyticsUtils`);function ZE(e){let t=dn.convertDateToUTC(e);return dn.format(t,`YYYY-MM-DDTHH:mm:ss`)}function QE(){return new Date(2021,0,1)}function $E(){return new Date}function eD(e){return e.find(e=>!!e.default)}function tD(e,t){if(t)return e.find(e=>e.name===t)}function nD(){let e=QE(),t=new Date().getFullYear(),n=t===e.getFullYear();return[{name:XE(`today`),startDate:new Date,endDate:new Date},{name:XE(`thisMonth`),startDate:new Date(t,new Date().getMonth(),1),endDate:new Date},{name:XE(`lastThreeMonths`),startDate:new Date(t,new Date().getMonth()-2,1),endDate:new Date},{name:XE(`lastSixMonths`),startDate:new Date(t,new Date().getMonth()-5,1),endDate:new Date},{name:XE(`lastTwelveMonths`),startDate:new Date(t,new Date().getMonth()-11,1),endDate:new Date,default:!0},{name:XE(`thisYear`),startDate:new Date(t,0,1),endDate:new Date},{name:XE(`lastYear`),startDate:new Date(t-1,0,1),endDate:new Date(t,0,0),disabled:n,tooltip:n?XE(`lastYearDisabled`):``}]}function rD(e){return dn.format(e,`YYYY-MM-DD`)}function iD(e){return e.name?{rangeName:e.name}:{from:rD(e.startDate),to:rD(e.endDate)}}function aD(e,t){let n=e=>ZE(dn.startOf(e,`day`)),r=e=>ZE(dn.endOf(e,`day`)),i=tD(e,t.rangeName);if(i)return{start:n(rD(i.startDate)),end:r(rD(i.endDate))};if(t.from&&t.to)return{start:n(t.from),end:r(t.to)};let a=eD(e);return{start:n(rD(a.startDate)),end:r(rD(a.endDate))}}function oD(e){"@babel/helpers - typeof";return oD=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},oD(e)}function sD(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function cD(e,t){if(t.length<e)throw TypeError(e+` argument`+(e>1?`s`:``)+` required, but only `+t.length+` present`)}function lD(e){cD(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||oD(e)===`object`&&t===`[object Date]`?new Date(e.getTime()):typeof e==`number`||t===`[object Number]`?new Date(e):((typeof e==`string`||t===`[object String]`)&&typeof console<`u`&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}function uD(e,t){cD(2,arguments);var n=lD(e),r=sD(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function dD(e,t){cD(2,arguments);var n=lD(e),r=sD(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),a=new Date(n.getTime());return a.setMonth(n.getMonth()+r+1,0),i>=a.getDate()?a:(n.setFullYear(a.getFullYear(),a.getMonth(),i),n)}function fD(e,t){cD(2,arguments);var n=lD(e).getTime(),r=sD(t);return new Date(n+r)}var pD={};function mD(){return pD}function hD(e,t){var n;cD(1,arguments);var r=mD(),i=sD(t?.weekStartsOn??(t==null||(n=t.locale)==null?void 0:n.options?.weekStartsOn)??r.weekStartsOn??r.locale?.options?.weekStartsOn??0);if(!(i>=0&&i<=6))throw RangeError(`weekStartsOn must be between 0 and 6 inclusively`);var a=lD(e),o=a.getDay(),s=(o<i?7:0)+o-i;return a.setDate(a.getDate()-s),a.setHours(0,0,0,0),a}function gD(e){return cD(1,arguments),hD(e,{weekStartsOn:1})}function _D(e){cD(1,arguments);var t=lD(e),n=t.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var i=gD(r),a=new Date(0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);var o=gD(a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function vD(e){cD(1,arguments);var t=_D(e),n=new Date(0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),gD(n)}function yD(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function bD(e){cD(1,arguments);var t=lD(e);return t.setHours(0,0,0,0),t}var xD=864e5;function SD(e,t){cD(2,arguments);var n=bD(e),r=bD(t),i=n.getTime()-yD(n),a=r.getTime()-yD(r);return Math.round((i-a)/xD)}function CD(e,t){return cD(2,arguments),uD(e,sD(t)*7)}function wD(e,t){return cD(2,arguments),dD(e,sD(t)*12)}function TD(e){cD(1,arguments);var t;if(e&&typeof e.forEach==`function`)t=e;else if(oD(e)===`object`&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(e){var t=lD(e);(n===void 0||n<t||isNaN(Number(t)))&&(n=t)}),n||new Date(NaN)}function ED(e){cD(1,arguments);var t;if(e&&typeof e.forEach==`function`)t=e;else if(oD(e)===`object`&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(e){var t=lD(e);(n===void 0||n>t||isNaN(t.getDate()))&&(n=t)}),n||new Date(NaN)}function DD(e,t){cD(2,arguments);var n=bD(e),r=bD(t);return n.getTime()===r.getTime()}function OD(e){return cD(1,arguments),e instanceof Date||oD(e)===`object`&&Object.prototype.toString.call(e)===`[object Date]`}function kD(e){if(cD(1,arguments),!OD(e)&&typeof e!=`number`)return!1;var t=lD(e);return!isNaN(Number(t))}function AD(e,t){cD(2,arguments);var n=lD(e),r=lD(t),i=n.getFullYear()-r.getFullYear(),a=n.getMonth()-r.getMonth();return i*12+a}var jD=6048e5;function MD(e,t,n){cD(2,arguments);var r=hD(e,n),i=hD(t,n),a=r.getTime()-yD(r),o=i.getTime()-yD(i);return Math.round((a-o)/jD)}function ND(e){cD(1,arguments);var t=lD(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function PD(e){cD(1,arguments);var t=lD(e);return t.setDate(1),t.setHours(0,0,0,0),t}function FD(e){cD(1,arguments);var t=lD(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function ID(e,t){var n;cD(1,arguments);var r=mD(),i=sD(t?.weekStartsOn??(t==null||(n=t.locale)==null?void 0:n.options?.weekStartsOn)??r.weekStartsOn??r.locale?.options?.weekStartsOn??0);if(!(i>=0&&i<=6))throw RangeError(`weekStartsOn must be between 0 and 6 inclusively`);var a=lD(e),o=a.getDay(),s=(o<i?-7:0)+6-(o-i);return a.setDate(a.getDate()+s),a.setHours(23,59,59,999),a}function LD(e){return cD(1,arguments),ID(e,{weekStartsOn:1})}function RD(e,t){return cD(2,arguments),fD(e,-sD(t))}var zD=864e5;function BD(e){cD(1,arguments);var t=lD(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/zD)+1}function VD(e){cD(1,arguments);var t=1,n=lD(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function HD(e){cD(1,arguments);var t=lD(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=VD(r),a=new Date(0);a.setUTCFullYear(n,0,4),a.setUTCHours(0,0,0,0);var o=VD(a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function UD(e){cD(1,arguments);var t=HD(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),VD(n)}var WD=6048e5;function GD(e){cD(1,arguments);var t=lD(e),n=VD(t).getTime()-UD(t).getTime();return Math.round(n/WD)+1}function KD(e,t){var n;cD(1,arguments);var r=mD(),i=sD(t?.weekStartsOn??(t==null||(n=t.locale)==null?void 0:n.options?.weekStartsOn)??r.weekStartsOn??r.locale?.options?.weekStartsOn??0);if(!(i>=0&&i<=6))throw RangeError(`weekStartsOn must be between 0 and 6 inclusively`);var a=lD(e),o=a.getUTCDay(),s=(o<i?7:0)+o-i;return a.setUTCDate(a.getUTCDate()-s),a.setUTCHours(0,0,0,0),a}function qD(e,t){var n;cD(1,arguments);var r=lD(e),i=r.getUTCFullYear(),a=mD(),o=sD(t?.firstWeekContainsDate??(t==null||(n=t.locale)==null?void 0:n.options?.firstWeekContainsDate)??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1);if(!(o>=1&&o<=7))throw RangeError(`firstWeekContainsDate must be between 1 and 7 inclusively`);var s=new Date(0);s.setUTCFullYear(i+1,0,o),s.setUTCHours(0,0,0,0);var c=KD(s,t),l=new Date(0);l.setUTCFullYear(i,0,o),l.setUTCHours(0,0,0,0);var u=KD(l,t);return r.getTime()>=c.getTime()?i+1:r.getTime()>=u.getTime()?i:i-1}function JD(e,t){var n;cD(1,arguments);var r=mD(),i=sD(t?.firstWeekContainsDate??(t==null||(n=t.locale)==null?void 0:n.options?.firstWeekContainsDate)??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1),a=qD(e,t),o=new Date(0);return o.setUTCFullYear(a,0,i),o.setUTCHours(0,0,0,0),KD(o,t)}var YD=6048e5;function XD(e,t){cD(1,arguments);var n=lD(e),r=KD(n,t).getTime()-JD(n,t).getTime();return Math.round(r/YD)+1}function ZD(e,t){for(var n=e<0?`-`:``,r=Math.abs(e).toString();r.length<t;)r=`0`+r;return n+r}var QD={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return ZD(t===`yy`?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return t===`M`?String(n+1):ZD(n+1,2)},d:function(e,t){return ZD(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.toUpperCase();case`aaa`:return n;case`aaaaa`:return n[0];default:return n===`am`?`a.m.`:`p.m.`}},h:function(e,t){return ZD(e.getUTCHours()%12||12,t.length)},H:function(e,t){return ZD(e.getUTCHours(),t.length)},m:function(e,t){return ZD(e.getUTCMinutes(),t.length)},s:function(e,t){return ZD(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return ZD(Math.floor(r*10**(n-3)),t.length)}},$D={am:`am`,pm:`pm`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},eO={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case`G`:case`GG`:case`GGG`:return n.era(r,{width:`abbreviated`});case`GGGGG`:return n.era(r,{width:`narrow`});default:return n.era(r,{width:`wide`})}},y:function(e,t,n){if(t===`yo`){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:`year`})}return QD.y(e,t)},Y:function(e,t,n,r){var i=qD(e,r),a=i>0?i:1-i;return t===`YY`?ZD(a%100,2):t===`Yo`?n.ordinalNumber(a,{unit:`year`}):ZD(a,t.length)},R:function(e,t){return ZD(HD(e),t.length)},u:function(e,t){return ZD(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case`Q`:return String(r);case`QQ`:return ZD(r,2);case`Qo`:return n.ordinalNumber(r,{unit:`quarter`});case`QQQ`:return n.quarter(r,{width:`abbreviated`,context:`formatting`});case`QQQQQ`:return n.quarter(r,{width:`narrow`,context:`formatting`});default:return n.quarter(r,{width:`wide`,context:`formatting`})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case`q`:return String(r);case`qq`:return ZD(r,2);case`qo`:return n.ordinalNumber(r,{unit:`quarter`});case`qqq`:return n.quarter(r,{width:`abbreviated`,context:`standalone`});case`qqqqq`:return n.quarter(r,{width:`narrow`,context:`standalone`});default:return n.quarter(r,{width:`wide`,context:`standalone`})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case`M`:case`MM`:return QD.M(e,t);case`Mo`:return n.ordinalNumber(r+1,{unit:`month`});case`MMM`:return n.month(r,{width:`abbreviated`,context:`formatting`});case`MMMMM`:return n.month(r,{width:`narrow`,context:`formatting`});default:return n.month(r,{width:`wide`,context:`formatting`})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case`L`:return String(r+1);case`LL`:return ZD(r+1,2);case`Lo`:return n.ordinalNumber(r+1,{unit:`month`});case`LLL`:return n.month(r,{width:`abbreviated`,context:`standalone`});case`LLLLL`:return n.month(r,{width:`narrow`,context:`standalone`});default:return n.month(r,{width:`wide`,context:`standalone`})}},w:function(e,t,n,r){var i=XD(e,r);return t===`wo`?n.ordinalNumber(i,{unit:`week`}):ZD(i,t.length)},I:function(e,t,n){var r=GD(e);return t===`Io`?n.ordinalNumber(r,{unit:`week`}):ZD(r,t.length)},d:function(e,t,n){return t===`do`?n.ordinalNumber(e.getUTCDate(),{unit:`date`}):QD.d(e,t)},D:function(e,t,n){var r=BD(e);return t===`Do`?n.ordinalNumber(r,{unit:`dayOfYear`}):ZD(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case`E`:case`EE`:case`EEE`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`EEEEE`:return n.day(r,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},e:function(e,t,n,r){var i=e.getUTCDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`e`:return String(a);case`ee`:return ZD(a,2);case`eo`:return n.ordinalNumber(a,{unit:`day`});case`eee`:return n.day(i,{width:`abbreviated`,context:`formatting`});case`eeeee`:return n.day(i,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(i,{width:`short`,context:`formatting`});default:return n.day(i,{width:`wide`,context:`formatting`})}},c:function(e,t,n,r){var i=e.getUTCDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`c`:return String(a);case`cc`:return ZD(a,t.length);case`co`:return n.ordinalNumber(a,{unit:`day`});case`ccc`:return n.day(i,{width:`abbreviated`,context:`standalone`});case`ccccc`:return n.day(i,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(i,{width:`short`,context:`standalone`});default:return n.day(i,{width:`wide`,context:`standalone`})}},i:function(e,t,n){var r=e.getUTCDay(),i=r===0?7:r;switch(t){case`i`:return String(i);case`ii`:return ZD(i,t.length);case`io`:return n.ordinalNumber(i,{unit:`day`});case`iii`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`iiiii`:return n.day(r,{width:`narrow`,context:`formatting`});case`iiiiii`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`});case`aaa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`aaaaa`:return n.dayPeriod(r,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(r,{width:`wide`,context:`formatting`})}},b:function(e,t,n){var r=e.getUTCHours(),i=r===12?$D.noon:r===0?$D.midnight:r/12>=1?`pm`:`am`;switch(t){case`b`:case`bb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`bbb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`bbbbb`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},B:function(e,t,n){var r=e.getUTCHours(),i=r>=17?$D.evening:r>=12?$D.afternoon:r>=4?$D.morning:$D.night;switch(t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`BBBBB`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},h:function(e,t,n){if(t===`ho`){var r=e.getUTCHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:`hour`})}return QD.h(e,t)},H:function(e,t,n){return t===`Ho`?n.ordinalNumber(e.getUTCHours(),{unit:`hour`}):QD.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return t===`Ko`?n.ordinalNumber(r,{unit:`hour`}):ZD(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return r===0&&(r=24),t===`ko`?n.ordinalNumber(r,{unit:`hour`}):ZD(r,t.length)},m:function(e,t,n){return t===`mo`?n.ordinalNumber(e.getUTCMinutes(),{unit:`minute`}):QD.m(e,t)},s:function(e,t,n){return t===`so`?n.ordinalNumber(e.getUTCSeconds(),{unit:`second`}):QD.s(e,t)},S:function(e,t){return QD.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(i===0)return`Z`;switch(t){case`X`:return nO(i);case`XXXX`:case`XX`:return rO(i);default:return rO(i,`:`)}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case`x`:return nO(i);case`xxxx`:case`xx`:return rO(i);default:return rO(i,`:`)}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+tO(i,`:`);default:return`GMT`+rO(i,`:`)}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case`z`:case`zz`:case`zzz`:return`GMT`+tO(i,`:`);default:return`GMT`+rO(i,`:`)}},t:function(e,t,n,r){var i=r._originalDate||e;return ZD(Math.floor(i.getTime()/1e3),t.length)},T:function(e,t,n,r){return ZD((r._originalDate||e).getTime(),t.length)}};function tO(e,t){var n=e>0?`-`:`+`,r=Math.abs(e),i=Math.floor(r/60),a=r%60;if(a===0)return n+String(i);var o=t||``;return n+String(i)+o+ZD(a,2)}function nO(e,t){return e%60==0?(e>0?`-`:`+`)+ZD(Math.abs(e)/60,2):rO(e,t)}function rO(e,t){var n=t||``,r=e>0?`-`:`+`,i=Math.abs(e),a=ZD(Math.floor(i/60),2),o=ZD(i%60,2);return r+a+n+o}var iO=function(e,t){switch(e){case`P`:return t.date({width:`short`});case`PP`:return t.date({width:`medium`});case`PPP`:return t.date({width:`long`});default:return t.date({width:`full`})}},aO=function(e,t){switch(e){case`p`:return t.time({width:`short`});case`pp`:return t.time({width:`medium`});case`ppp`:return t.time({width:`long`});default:return t.time({width:`full`})}},oO={p:aO,P:function(e,t){var n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return iO(e,t);var a;switch(r){case`P`:a=t.dateTime({width:`short`});break;case`PP`:a=t.dateTime({width:`medium`});break;case`PPP`:a=t.dateTime({width:`long`});break;default:a=t.dateTime({width:`full`});break}return a.replace(`{{date}}`,iO(r,t)).replace(`{{time}}`,aO(i,t))}},sO=[`D`,`DD`],cO=[`YY`,`YYYY`];function lO(e){return sO.indexOf(e)!==-1}function uO(e){return cO.indexOf(e)!==-1}function dO(e,t,n){if(e===`YYYY`)throw RangeError(`Use \`yyyy\` instead of \`YYYY\` (in \`${t}\`) for formatting years to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(e===`YY`)throw RangeError(`Use \`yy\` instead of \`YY\` (in \`${t}\`) for formatting years to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(e===`D`)throw RangeError(`Use \`d\` instead of \`D\` (in \`${t}\`) for formatting days of the month to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(e===`DD`)throw RangeError(`Use \`dd\` instead of \`DD\` (in \`${t}\`) for formatting days of the month to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`)}var fO={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},pO=function(e,t,n){var r,i=fO[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r};function mO(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var hO={date:mO({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:mO({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:mO({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},gO={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},_O=function(e,t,n,r){return gO[e]};function vO(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var yO={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:vO({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:vO({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:vO({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:vO({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:vO({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function bO(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?SO(s,function(e){return e.test(o)}):xO(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function xO(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function SO(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function CO(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var wO={code:`en-US`,formatDistance:pO,formatLong:hO,formatRelative:_O,localize:yO,match:{ordinalNumber:CO({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:bO({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:bO({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:bO({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:bO({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:bO({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}},TO=wO,EO=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,DO=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,OO=/^'([^]*?)'?$/,kO=/''/g,AO=/[a-zA-Z]/;function jO(e,t,n){var r,i;cD(2,arguments);var a=String(t),o=mD(),s=n?.locale??o.locale??TO,c=sD(n?.firstWeekContainsDate??(n==null||(r=n.locale)==null?void 0:r.options?.firstWeekContainsDate)??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1);if(!(c>=1&&c<=7))throw RangeError(`firstWeekContainsDate must be between 1 and 7 inclusively`);var l=sD(n?.weekStartsOn??(n==null||(i=n.locale)==null?void 0:i.options?.weekStartsOn)??o.weekStartsOn??o.locale?.options?.weekStartsOn??0);if(!(l>=0&&l<=6))throw RangeError(`weekStartsOn must be between 0 and 6 inclusively`);if(!s.localize)throw RangeError(`locale must contain localize property`);if(!s.formatLong)throw RangeError(`locale must contain formatLong property`);var u=lD(e);if(!kD(u))throw RangeError(`Invalid time value`);var d=RD(u,yD(u)),f={firstWeekContainsDate:c,weekStartsOn:l,locale:s,_originalDate:u};return a.match(DO).map(function(e){var t=e[0];if(t===`p`||t===`P`){var n=oO[t];return n(e,s.formatLong)}return e}).join(``).match(EO).map(function(r){if(r===`''`)return`'`;var i=r[0];if(i===`'`)return MO(r);var a=eO[i];if(a)return!(n!=null&&n.useAdditionalWeekYearTokens)&&uO(r)&&dO(r,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&lO(r)&&dO(r,t,String(e)),a(d,r,s.localize,f);if(i.match(AO))throw RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return r}).join(``)}function MO(e){var t=e.match(OO);return t?t[1].replace(kO,`'`):e}function NO(e){cD(1,arguments);var t=lD(e),n=t.getFullYear(),r=t.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}var PO=6048e5;function FO(e){cD(1,arguments);var t=lD(e),n=gD(t).getTime()-vD(t).getTime();return Math.round(n/PO)+1}function IO(e){return cD(1,arguments),lD(e).getTime()}function LO(e){return cD(1,arguments),Math.floor(IO(e)/1e3)}function RO(e,t){var n;cD(1,arguments);var r=lD(e),i=r.getFullYear(),a=mD(),o=sD(t?.firstWeekContainsDate??(t==null||(n=t.locale)==null?void 0:n.options?.firstWeekContainsDate)??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1);if(!(o>=1&&o<=7))throw RangeError(`firstWeekContainsDate must be between 1 and 7 inclusively`);var s=new Date(0);s.setFullYear(i+1,0,o),s.setHours(0,0,0,0);var c=hD(s,t),l=new Date(0);l.setFullYear(i,0,o),l.setHours(0,0,0,0);var u=hD(l,t);return r.getTime()>=c.getTime()?i+1:r.getTime()>=u.getTime()?i:i-1}function zO(e,t){var n;cD(1,arguments);var r=mD(),i=sD(t?.firstWeekContainsDate??(t==null||(n=t.locale)==null?void 0:n.options?.firstWeekContainsDate)??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1),a=RO(e,t),o=new Date(0);return o.setFullYear(a,0,i),o.setHours(0,0,0,0),hD(o,t)}var BO=6048e5;function VO(e,t){cD(1,arguments);var n=lD(e),r=hD(n,t).getTime()-zO(n,t).getTime();return Math.round(r/BO)+1}function HO(e){cD(1,arguments);var t=lD(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function UO(e,t){return cD(1,arguments),MD(HO(e),PD(e),t)+1}function WO(e,t){cD(2,arguments);var n=lD(e),r=lD(t);return n.getTime()>r.getTime()}function GO(e,t){cD(2,arguments);var n=lD(e),r=lD(t);return n.getTime()<r.getTime()}function KO(e,t){cD(2,arguments);var n=lD(e),r=lD(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function qO(e,t){cD(2,arguments);var n=lD(e),r=lD(t);return n.getFullYear()===r.getFullYear()}function JO(e,t){return cD(2,arguments),uD(e,-sD(t))}function YO(e,t){cD(2,arguments);var n=lD(e),r=sD(t),i=n.getFullYear(),a=n.getDate(),o=new Date(0);o.setFullYear(i,r,15),o.setHours(0,0,0,0);var s=NO(o);return n.setMonth(r,Math.min(a,s)),n}function XO(e,t){cD(2,arguments);var n=lD(e),r=sD(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}var ZO=function(){return ZO=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ZO.apply(this,arguments)};function QO(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function $O(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var ek={exports:{}},tk={},nk;function rk(){if(nk)return tk;nk=1;var e=Z.default,t=Symbol.for(`react.element`),n=Symbol.for(`react.fragment`),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function o(e,n,o){var s,c={},l=null,u=null;for(s in o!==void 0&&(l=``+o),n.key!==void 0&&(l=``+n.key),n.ref!==void 0&&(u=n.ref),n)r.call(n,s)&&!a.hasOwnProperty(s)&&(c[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps,n)c[s]===void 0&&(c[s]=n[s]);return{$$typeof:t,type:e,key:l,ref:u,props:c,_owner:i.current}}return tk.Fragment=n,tk.jsx=o,tk.jsxs=o,tk}ek.exports=rk();var $=ek.exports;function ik(e){return e.mode===`multiple`}function ak(e){return e.mode===`range`}function ok(e){return e.mode===`single`}var sk={root:`rdp`,multiple_months:`rdp-multiple_months`,with_weeknumber:`rdp-with_weeknumber`,vhidden:`rdp-vhidden`,button_reset:`rdp-button_reset`,button:`rdp-button`,caption:`rdp-caption`,caption_start:`rdp-caption_start`,caption_end:`rdp-caption_end`,caption_between:`rdp-caption_between`,caption_label:`rdp-caption_label`,caption_dropdowns:`rdp-caption_dropdowns`,dropdown:`rdp-dropdown`,dropdown_month:`rdp-dropdown_month`,dropdown_year:`rdp-dropdown_year`,dropdown_icon:`rdp-dropdown_icon`,months:`rdp-months`,month:`rdp-month`,table:`rdp-table`,tbody:`rdp-tbody`,tfoot:`rdp-tfoot`,head:`rdp-head`,head_row:`rdp-head_row`,head_cell:`rdp-head_cell`,nav:`rdp-nav`,nav_button:`rdp-nav_button`,nav_button_previous:`rdp-nav_button_previous`,nav_button_next:`rdp-nav_button_next`,nav_icon:`rdp-nav_icon`,row:`rdp-row`,weeknumber:`rdp-weeknumber`,cell:`rdp-cell`,day:`rdp-day`,day_today:`rdp-day_today`,day_outside:`rdp-day_outside`,day_selected:`rdp-day_selected`,day_disabled:`rdp-day_disabled`,day_hidden:`rdp-day_hidden`,day_range_start:`rdp-day_range_start`,day_range_end:`rdp-day_range_end`,day_range_middle:`rdp-day_range_middle`};function ck(e,t){return jO(e,`LLLL y`,t)}function lk(e,t){return jO(e,`d`,t)}function uk(e,t){return jO(e,`LLLL`,t)}function dk(e){return`${e}`}function fk(e,t){return jO(e,`cccccc`,t)}function pk(e,t){return jO(e,`yyyy`,t)}var mk=Object.freeze({__proto__:null,formatCaption:ck,formatDay:lk,formatMonthCaption:uk,formatWeekNumber:dk,formatWeekdayName:fk,formatYearCaption:pk}),hk=Object.freeze({__proto__:null,labelDay:function(e,t,n){return jO(e,`do MMMM (EEEE)`,n)},labelMonthDropdown:function(){return`Month: `},labelNext:function(){return`Go to next month`},labelPrevious:function(){return`Go to previous month`},labelWeekNumber:function(e){return`Week n. ${e}`},labelWeekday:function(e,t){return jO(e,`cccc`,t)},labelYearDropdown:function(){return`Year: `}});function gk(){return{captionLayout:`buttons`,classNames:sk,formatters:mk,labels:hk,locale:wO,modifiersClassNames:{},modifiers:{},numberOfMonths:1,styles:{},today:new Date,mode:`default`}}function _k(e){var t=e.fromYear,n=e.toYear,r=e.fromMonth,i=e.toMonth,a=e.fromDate,o=e.toDate;return r?a=PD(r):t&&(a=new Date(t,0,1)),i?o=ND(i):n&&(o=new Date(n,11,31)),{fromDate:a?bD(a):void 0,toDate:o?bD(o):void 0}}var vk=(0,Z.createContext)(void 0);function yk(e){var t=e.initialProps,n=gk(),r=_k(t),i=r.fromDate,a=r.toDate,o=t.captionLayout??n.captionLayout;o!==`buttons`&&(!i||!a)&&(o=`buttons`);var s;(ok(t)||ik(t)||ak(t))&&(s=t.onSelect);var c=ZO(ZO(ZO({},n),t),{captionLayout:o,classNames:ZO(ZO({},n.classNames),t.classNames),components:ZO({},t.components),formatters:ZO(ZO({},n.formatters),t.formatters),fromDate:i,labels:ZO(ZO({},n.labels),t.labels),mode:t.mode||n.mode,modifiers:ZO(ZO({},n.modifiers),t.modifiers),modifiersClassNames:ZO(ZO({},n.modifiersClassNames),t.modifiersClassNames),onSelect:s,styles:ZO(ZO({},n.styles),t.styles),toDate:a});return $.jsx(vk.Provider,{value:c,children:e.children})}function bk(){var e=(0,Z.useContext)(vk);if(!e)throw Error(`useDayPicker must be used within a DayPickerProvider.`);return e}function xk(e){var t=bk(),n=t.locale,r=t.classNames,i=t.styles,a=t.formatters.formatCaption;return $.jsx(`div`,{className:r.caption_label,style:i.caption_label,"aria-live":`polite`,role:`presentation`,id:e.id,children:a(e.displayMonth,{locale:n})})}function Sk(e){return $.jsx(`svg`,ZO({width:`8px`,height:`8px`,viewBox:`0 0 120 120`,"data-testid":`iconDropdown`},e,{children:$.jsx(`path`,{d:`M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z`,fill:`currentColor`,fillRule:`nonzero`})}))}function Ck(e){var t=e.onChange,n=e.value,r=e.children,i=e.caption,a=e.className,o=e.style,s=bk(),c=s.components?.IconDropdown??Sk;return $.jsxs(`div`,{className:a,style:o,children:[$.jsx(`span`,{className:s.classNames.vhidden,children:e[`aria-label`]}),$.jsx(`select`,{name:e.name,"aria-label":e[`aria-label`],className:s.classNames.dropdown,style:s.styles.dropdown,value:n,onChange:t,children:r}),$.jsxs(`div`,{className:s.classNames.caption_label,style:s.styles.caption_label,"aria-hidden":`true`,children:[i,$.jsx(c,{className:s.classNames.dropdown_icon,style:s.styles.dropdown_icon})]})]})}function wk(e){var t=bk(),n=t.fromDate,r=t.toDate,i=t.styles,a=t.locale,o=t.formatters.formatMonthCaption,s=t.classNames,c=t.components,l=t.labels.labelMonthDropdown;if(!n||!r)return $.jsx($.Fragment,{});var u=[];if(qO(n,r))for(var d=PD(n),f=n.getMonth();f<=r.getMonth();f++)u.push(YO(d,f));else for(var d=PD(new Date),f=0;f<=11;f++)u.push(YO(d,f));var p=function(t){var n=Number(t.target.value),r=YO(PD(e.displayMonth),n);e.onChange(r)},m=c?.Dropdown??Ck;return $.jsx(m,{name:`months`,"aria-label":l(),className:s.dropdown_month,style:i.dropdown_month,onChange:p,value:e.displayMonth.getMonth(),caption:o(e.displayMonth,{locale:a}),children:u.map(function(e){return $.jsx(`option`,{value:e.getMonth(),children:o(e,{locale:a})},e.getMonth())})})}function Tk(e){var t=e.displayMonth,n=bk(),r=n.fromDate,i=n.toDate,a=n.locale,o=n.styles,s=n.classNames,c=n.components,l=n.formatters.formatYearCaption,u=n.labels.labelYearDropdown,d=[];if(!r||!i)return $.jsx($.Fragment,{});for(var f=r.getFullYear(),p=i.getFullYear(),m=f;m<=p;m++)d.push(XO(FD(new Date),m));var h=function(n){var r=XO(PD(t),Number(n.target.value));e.onChange(r)},g=c?.Dropdown??Ck;return $.jsx(g,{name:`years`,"aria-label":u(),className:s.dropdown_year,style:o.dropdown_year,onChange:h,value:t.getFullYear(),caption:l(t,{locale:a}),children:d.map(function(e){return $.jsx(`option`,{value:e.getFullYear(),children:l(e,{locale:a})},e.getFullYear())})})}function Ek(e,t){var n=(0,Z.useState)(e),r=n[0],i=n[1];return[t===void 0?r:t,i]}function Dk(e){var t=e.month,n=e.defaultMonth,r=e.today,i=t||n||r||new Date,a=e.toDate,o=e.fromDate,s=e.numberOfMonths,c=s===void 0?1:s;return a&&AD(a,i)<0&&(i=dD(a,-1*(c-1))),o&&AD(i,o)<0&&(i=o),PD(i)}function Ok(){var e=bk(),t=Ek(Dk(e),e.month),n=t[0],r=t[1];return[n,function(t){var n;if(!e.disableNavigation){var i=PD(t);r(i),(n=e.onMonthChange)==null||n.call(e,i)}}]}function kk(e,t){for(var n=t.reverseMonths,r=t.numberOfMonths,i=PD(e),a=AD(PD(dD(i,r)),i),o=[],s=0;s<a;s++){var c=dD(i,s);o.push(c)}return n&&(o=o.reverse()),o}function Ak(e,t){if(!t.disableNavigation){var n=t.toDate,r=t.pagedNavigation,i=t.numberOfMonths,a=i===void 0?1:i,o=r?a:1,s=PD(e);if(!n||!(AD(n,e)<a))return dD(s,o)}}function jk(e,t){if(!t.disableNavigation){var n=t.fromDate,r=t.pagedNavigation,i=t.numberOfMonths,a=r?i===void 0?1:i:1,o=PD(e);if(!n||!(AD(o,n)<=0))return dD(o,-a)}}var Mk=(0,Z.createContext)(void 0);function Nk(e){var t=bk(),n=Ok(),r=n[0],i=n[1],a=kk(r,t),o=Ak(r,t),s=jk(r,t),c=function(e){return a.some(function(t){return KO(e,t)})},l={currentMonth:r,displayMonths:a,goToMonth:i,goToDate:function(e,n){c(e)||(n&&GO(e,n)?i(dD(e,1+t.numberOfMonths*-1)):i(e))},previousMonth:s,nextMonth:o,isDateDisplayed:c};return $.jsx(Mk.Provider,{value:l,children:e.children})}function Pk(){var e=(0,Z.useContext)(Mk);if(!e)throw Error(`useNavigation must be used within a NavigationProvider`);return e}function Fk(e){var t=bk(),n=t.classNames,r=t.styles,i=t.components,a=Pk().goToMonth,o=function(t){a(dD(t,e.displayIndex?-e.displayIndex:0))},s=i?.CaptionLabel??xk,c=$.jsx(s,{id:e.id,displayMonth:e.displayMonth});return $.jsxs(`div`,{className:n.caption_dropdowns,style:r.caption_dropdowns,children:[$.jsx(`div`,{className:n.vhidden,children:c}),$.jsx(wk,{onChange:o,displayMonth:e.displayMonth}),$.jsx(Tk,{onChange:o,displayMonth:e.displayMonth})]})}function Ik(e){return $.jsx(`svg`,ZO({width:`16px`,height:`16px`,viewBox:`0 0 120 120`},e,{children:$.jsx(`path`,{d:`M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z`,fill:`currentColor`,fillRule:`nonzero`})}))}function Lk(e){return $.jsx(`svg`,ZO({width:`16px`,height:`16px`,viewBox:`0 0 120 120`},e,{children:$.jsx(`path`,{d:`M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z`,fill:`currentColor`})}))}var Rk=(0,Z.forwardRef)(function(e,t){var n=bk(),r=n.classNames,i=n.styles,a=[r.button_reset,r.button];e.className&&a.push(e.className);var o=a.join(` `),s=ZO(ZO({},i.button_reset),i.button);return e.style&&Object.assign(s,e.style),$.jsx(`button`,ZO({},e,{ref:t,type:`button`,className:o,style:s}))});function zk(e){var t=bk(),n=t.dir,r=t.locale,i=t.classNames,a=t.styles,o=t.labels,s=o.labelPrevious,c=o.labelNext,l=t.components;if(!e.nextMonth&&!e.previousMonth)return $.jsx($.Fragment,{});var u=s(e.previousMonth,{locale:r}),d=[i.nav_button,i.nav_button_previous].join(` `),f=c(e.nextMonth,{locale:r}),p=[i.nav_button,i.nav_button_next].join(` `),m=l?.IconRight??Lk,h=l?.IconLeft??Ik;return $.jsxs(`div`,{className:i.nav,style:a.nav,children:[!e.hidePrevious&&$.jsx(Rk,{name:`previous-month`,"aria-label":u,className:d,style:a.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:n===`rtl`?$.jsx(m,{className:i.nav_icon,style:a.nav_icon}):$.jsx(h,{className:i.nav_icon,style:a.nav_icon})}),!e.hideNext&&$.jsx(Rk,{name:`next-month`,"aria-label":f,className:p,style:a.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:n===`rtl`?$.jsx(h,{className:i.nav_icon,style:a.nav_icon}):$.jsx(m,{className:i.nav_icon,style:a.nav_icon})})]})}function Bk(e){var t=bk().numberOfMonths,n=Pk(),r=n.previousMonth,i=n.nextMonth,a=n.goToMonth,o=n.displayMonths,s=o.findIndex(function(t){return KO(e.displayMonth,t)}),c=s===0,l=s===o.length-1,u=t>1&&(c||!l),d=t>1&&(l||!c);return $.jsx(zk,{displayMonth:e.displayMonth,hideNext:u,hidePrevious:d,nextMonth:i,previousMonth:r,onPreviousClick:function(){r&&a(r)},onNextClick:function(){i&&a(i)}})}function Vk(e){var t=bk(),n=t.classNames,r=t.disableNavigation,i=t.styles,a=t.captionLayout,o=t.components?.CaptionLabel??xk,s=r?$.jsx(o,{id:e.id,displayMonth:e.displayMonth}):a===`dropdown`?$.jsx(Fk,{displayMonth:e.displayMonth,id:e.id}):a===`dropdown-buttons`?$.jsxs($.Fragment,{children:[$.jsx(Fk,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),$.jsx(Bk,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):$.jsxs($.Fragment,{children:[$.jsx(o,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),$.jsx(Bk,{displayMonth:e.displayMonth,id:e.id})]});return $.jsx(`div`,{className:n.caption,style:i.caption,children:s})}function Hk(e){var t=bk(),n=t.footer,r=t.styles,i=t.classNames.tfoot;return n?$.jsx(`tfoot`,{className:i,style:r.tfoot,children:$.jsx(`tr`,{children:$.jsx(`td`,{colSpan:8,children:n})})}):$.jsx($.Fragment,{})}function Uk(e,t,n){for(var r=n?gD(new Date):hD(new Date,{locale:e,weekStartsOn:t}),i=[],a=0;a<7;a++){var o=uD(r,a);i.push(o)}return i}function Wk(){var e=bk(),t=e.classNames,n=e.styles,r=e.showWeekNumber,i=e.locale,a=e.weekStartsOn,o=e.ISOWeek,s=e.formatters.formatWeekdayName,c=e.labels.labelWeekday,l=Uk(i,a,o);return $.jsxs(`tr`,{style:n.head_row,className:t.head_row,children:[r&&$.jsx(`td`,{style:n.head_cell,className:t.head_cell}),l.map(function(e,r){return $.jsx(`th`,{scope:`col`,className:t.head_cell,style:n.head_cell,"aria-label":c(e,{locale:i}),children:s(e,{locale:i})},r)})]})}function Gk(){var e=bk(),t=e.classNames,n=e.styles,r=e.components?.HeadRow??Wk;return $.jsx(`thead`,{style:n.head,className:t.head,children:$.jsx(r,{})})}function Kk(e){var t=bk(),n=t.locale,r=t.formatters.formatDay;return $.jsx($.Fragment,{children:r(e.date,{locale:n})})}var qk=(0,Z.createContext)(void 0);function Jk(e){return ik(e.initialProps)?$.jsx(Yk,{initialProps:e.initialProps,children:e.children}):$.jsx(qk.Provider,{value:{selected:void 0,modifiers:{disabled:[]}},children:e.children})}function Yk(e){var t=e.initialProps,n=e.children,r=t.selected,i=t.min,a=t.max,o=function(e,n,o){var s,c;if((s=t.onDayClick)==null||s.call(t,e,n,o),!(n.selected&&i&&r?.length===i)&&!(!n.selected&&a&&r?.length===a)){var l=r?$O([],r,!0):[];if(n.selected){var u=l.findIndex(function(t){return DD(e,t)});l.splice(u,1)}else l.push(e);(c=t.onSelect)==null||c.call(t,l,e,n,o)}},s={disabled:[]};r&&s.disabled.push(function(e){var t=a&&r.length>a-1,n=r.some(function(t){return DD(t,e)});return!!(t&&!n)});var c={selected:r,onDayClick:o,modifiers:s};return $.jsx(qk.Provider,{value:c,children:n})}function Xk(){var e=(0,Z.useContext)(qk);if(!e)throw Error(`useSelectMultiple must be used within a SelectMultipleProvider`);return e}function Zk(e,t){var n=t||{},r=n.from,i=n.to;return r&&i?DD(i,e)&&DD(r,e)?void 0:DD(i,e)?{from:i,to:void 0}:DD(r,e)?void 0:WO(r,e)?{from:e,to:i}:{from:r,to:e}:i?WO(e,i)?{from:i,to:e}:{from:e,to:i}:r?GO(e,r)?{from:e,to:r}:{from:r,to:e}:{from:e,to:void 0}}var Qk=(0,Z.createContext)(void 0);function $k(e){return ak(e.initialProps)?$.jsx(eA,{initialProps:e.initialProps,children:e.children}):$.jsx(Qk.Provider,{value:{selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}},children:e.children})}function eA(e){var t=e.initialProps,n=e.children,r=t.selected,i=r||{},a=i.from,o=i.to,s=t.min,c=t.max,l=function(e,n,i){var a,o;(a=t.onDayClick)==null||a.call(t,e,n,i);var s=Zk(e,r);(o=t.onSelect)==null||o.call(t,s,e,n,i)},u={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(u.range_start=[a],o?(u.range_end=[o],DD(a,o)||(u.range_middle=[{after:a,before:o}])):u.range_end=[a]):o&&(u.range_start=[o],u.range_end=[o]),s&&(a&&!o&&u.disabled.push({after:JO(a,s-1),before:uD(a,s-1)}),a&&o&&u.disabled.push({after:a,before:uD(a,s-1)}),!a&&o&&u.disabled.push({after:JO(o,s-1),before:uD(o,s-1)})),c){if(a&&!o&&(u.disabled.push({before:uD(a,-c+1)}),u.disabled.push({after:uD(a,c-1)})),a&&o){var d=c-(SD(o,a)+1);u.disabled.push({before:JO(a,d)}),u.disabled.push({after:uD(o,d)})}!a&&o&&(u.disabled.push({before:uD(o,-c+1)}),u.disabled.push({after:uD(o,c-1)}))}return $.jsx(Qk.Provider,{value:{selected:r,onDayClick:l,modifiers:u},children:n})}function tA(){var e=(0,Z.useContext)(Qk);if(!e)throw Error(`useSelectRange must be used within a SelectRangeProvider`);return e}function nA(e){return Array.isArray(e)?$O([],e,!0):e===void 0?[]:[e]}function rA(e){var t={};return Object.entries(e).forEach(function(e){var n=e[0],r=e[1];t[n]=nA(r)}),t}var iA;(function(e){e.Outside=`outside`,e.Disabled=`disabled`,e.Selected=`selected`,e.Hidden=`hidden`,e.Today=`today`,e.RangeStart=`range_start`,e.RangeEnd=`range_end`,e.RangeMiddle=`range_middle`})(iA||={});var aA=iA.Selected,oA=iA.Disabled,sA=iA.Hidden,cA=iA.Today,lA=iA.RangeEnd,uA=iA.RangeMiddle,dA=iA.RangeStart,fA=iA.Outside;function pA(e,t,n){var r,i=(r={},r[aA]=nA(e.selected),r[oA]=nA(e.disabled),r[sA]=nA(e.hidden),r[cA]=[e.today],r[lA]=[],r[uA]=[],r[dA]=[],r[fA]=[],r);return e.fromDate&&i[oA].push({before:e.fromDate}),e.toDate&&i[oA].push({after:e.toDate}),ik(e)?i[oA]=i[oA].concat(t.modifiers[oA]):ak(e)&&(i[oA]=i[oA].concat(n.modifiers[oA]),i[dA]=n.modifiers[dA],i[uA]=n.modifiers[uA],i[lA]=n.modifiers[lA]),i}var mA=(0,Z.createContext)(void 0);function hA(e){var t=bk(),n=pA(t,Xk(),tA()),r=rA(t.modifiers),i=ZO(ZO({},n),r);return $.jsx(mA.Provider,{value:i,children:e.children})}function gA(){var e=(0,Z.useContext)(mA);if(!e)throw Error(`useModifiers must be used within a ModifiersProvider`);return e}function _A(e){return!!(e&&typeof e==`object`&&`before`in e&&`after`in e)}function vA(e){return!!(e&&typeof e==`object`&&`from`in e)}function yA(e){return!!(e&&typeof e==`object`&&`after`in e)}function bA(e){return!!(e&&typeof e==`object`&&`before`in e)}function xA(e){return!!(e&&typeof e==`object`&&`dayOfWeek`in e)}function SA(e,t){var n,r=t.from,i=t.to;return r&&i?(SD(i,r)<0&&(n=[i,r],r=n[0],i=n[1]),SD(e,r)>=0&&SD(i,e)>=0):i?DD(i,e):r?DD(r,e):!1}function CA(e){return OD(e)}function wA(e){return Array.isArray(e)&&e.every(OD)}function TA(e,t){return t.some(function(t){if(typeof t==`boolean`)return t;if(CA(t))return DD(e,t);if(wA(t))return t.includes(e);if(vA(t))return SA(e,t);if(xA(t))return t.dayOfWeek.includes(e.getDay());if(_A(t)){var n=SD(t.before,e),r=SD(t.after,e),i=n>0,a=r<0;return WO(t.before,t.after)?a&&i:i||a}return yA(t)?SD(e,t.after)>0:bA(t)?SD(t.before,e)>0:typeof t==`function`?t(e):!1})}function EA(e,t,n){var r=Object.keys(t).reduce(function(n,r){var i=t[r];return TA(e,i)&&n.push(r),n},[]),i={};return r.forEach(function(e){return i[e]=!0}),n&&!KO(e,n)&&(i.outside=!0),i}function DA(e,t){for(var n=PD(e[0]),r=ND(e[e.length-1]),i,a,o=n;o<=r;){var s=EA(o,t);if(!(!s.disabled&&!s.hidden)){o=uD(o,1);continue}if(s.selected)return o;s.today&&!a&&(a=o),i||=o,o=uD(o,1)}return a||i}var OA=365;function kA(e,t){var n=t.moveBy,r=t.direction,i=t.context,a=t.modifiers,o=t.retry,s=o===void 0?{count:0,lastFocused:e}:o,c=i.weekStartsOn,l=i.fromDate,u=i.toDate,d=i.locale,f={day:uD,week:CD,month:dD,year:wD,startOfWeek:function(e){return i.ISOWeek?gD(e):hD(e,{locale:d,weekStartsOn:c})},endOfWeek:function(e){return i.ISOWeek?LD(e):ID(e,{locale:d,weekStartsOn:c})}}[n](e,r===`after`?1:-1);r===`before`&&l?f=TD([l,f]):r===`after`&&u&&(f=ED([u,f]));var p=!0;if(a){var m=EA(f,a);p=!m.disabled&&!m.hidden}return p?f:s.count>OA?s.lastFocused:kA(f,{moveBy:n,direction:r,context:i,modifiers:a,retry:ZO(ZO({},s),{count:s.count+1})})}var AA=(0,Z.createContext)(void 0);function jA(e){var t=Pk(),n=gA(),r=(0,Z.useState)(),i=r[0],a=r[1],o=(0,Z.useState)(),s=o[0],c=o[1],l=DA(t.displayMonths,n),u=i??(s&&t.isDateDisplayed(s))?s:l,d=function(){c(i),a(void 0)},f=function(e){a(e)},p=bk(),m=function(e,r){if(i){var a=kA(i,{moveBy:e,direction:r,context:p,modifiers:n});DD(i,a)||(t.goToDate(a,i),f(a))}},h={focusedDay:i,focusTarget:u,blur:d,focus:f,focusDayAfter:function(){return m(`day`,`after`)},focusDayBefore:function(){return m(`day`,`before`)},focusWeekAfter:function(){return m(`week`,`after`)},focusWeekBefore:function(){return m(`week`,`before`)},focusMonthBefore:function(){return m(`month`,`before`)},focusMonthAfter:function(){return m(`month`,`after`)},focusYearBefore:function(){return m(`year`,`before`)},focusYearAfter:function(){return m(`year`,`after`)},focusStartOfWeek:function(){return m(`startOfWeek`,`before`)},focusEndOfWeek:function(){return m(`endOfWeek`,`after`)}};return $.jsx(AA.Provider,{value:h,children:e.children})}function MA(){var e=(0,Z.useContext)(AA);if(!e)throw Error(`useFocusContext must be used within a FocusProvider`);return e}function NA(e,t){return EA(e,gA(),t)}var PA=(0,Z.createContext)(void 0);function FA(e){return ok(e.initialProps)?$.jsx(IA,{initialProps:e.initialProps,children:e.children}):$.jsx(PA.Provider,{value:{selected:void 0},children:e.children})}function IA(e){var t=e.initialProps,n=e.children,r={selected:t.selected,onDayClick:function(e,n,r){var i,a,o;if((i=t.onDayClick)==null||i.call(t,e,n,r),n.selected&&!t.required){(a=t.onSelect)==null||a.call(t,void 0,e,n,r);return}(o=t.onSelect)==null||o.call(t,e,e,n,r)}};return $.jsx(PA.Provider,{value:r,children:n})}function LA(){var e=(0,Z.useContext)(PA);if(!e)throw Error(`useSelectSingle must be used within a SelectSingleProvider`);return e}function RA(e,t){var n=bk(),r=LA(),i=Xk(),a=tA(),o=MA(),s=o.focusDayAfter,c=o.focusDayBefore,l=o.focusWeekAfter,u=o.focusWeekBefore,d=o.blur,f=o.focus,p=o.focusMonthBefore,m=o.focusMonthAfter,h=o.focusYearBefore,g=o.focusYearAfter,_=o.focusStartOfWeek,v=o.focusEndOfWeek;return{onClick:function(o){var s,c,l,u;ok(n)?(s=r.onDayClick)==null||s.call(r,e,t,o):ik(n)?(c=i.onDayClick)==null||c.call(i,e,t,o):ak(n)?(l=a.onDayClick)==null||l.call(a,e,t,o):(u=n.onDayClick)==null||u.call(n,e,t,o)},onFocus:function(r){var i;f(e),(i=n.onDayFocus)==null||i.call(n,e,t,r)},onBlur:function(r){var i;d(),(i=n.onDayBlur)==null||i.call(n,e,t,r)},onKeyDown:function(r){var i;switch(r.key){case`ArrowLeft`:r.preventDefault(),r.stopPropagation(),n.dir===`rtl`?s():c();break;case`ArrowRight`:r.preventDefault(),r.stopPropagation(),n.dir===`rtl`?c():s();break;case`ArrowDown`:r.preventDefault(),r.stopPropagation(),l();break;case`ArrowUp`:r.preventDefault(),r.stopPropagation(),u();break;case`PageUp`:r.preventDefault(),r.stopPropagation(),r.shiftKey?h():p();break;case`PageDown`:r.preventDefault(),r.stopPropagation(),r.shiftKey?g():m();break;case`Home`:r.preventDefault(),r.stopPropagation(),_();break;case`End`:r.preventDefault(),r.stopPropagation(),v();break}(i=n.onDayKeyDown)==null||i.call(n,e,t,r)},onKeyUp:function(r){var i;(i=n.onDayKeyUp)==null||i.call(n,e,t,r)},onMouseEnter:function(r){var i;(i=n.onDayMouseEnter)==null||i.call(n,e,t,r)},onMouseLeave:function(r){var i;(i=n.onDayMouseLeave)==null||i.call(n,e,t,r)},onPointerEnter:function(r){var i;(i=n.onDayPointerEnter)==null||i.call(n,e,t,r)},onPointerLeave:function(r){var i;(i=n.onDayPointerLeave)==null||i.call(n,e,t,r)},onTouchCancel:function(r){var i;(i=n.onDayTouchCancel)==null||i.call(n,e,t,r)},onTouchEnd:function(r){var i;(i=n.onDayTouchEnd)==null||i.call(n,e,t,r)},onTouchMove:function(r){var i;(i=n.onDayTouchMove)==null||i.call(n,e,t,r)},onTouchStart:function(r){var i;(i=n.onDayTouchStart)==null||i.call(n,e,t,r)}}}function zA(){var e=bk(),t=LA(),n=Xk(),r=tA();return ok(e)?t.selected:ik(e)?n.selected:ak(e)?r.selected:void 0}function BA(e){return Object.values(iA).includes(e)}function VA(e,t){var n=[e.classNames.day];return Object.keys(t).forEach(function(t){var r=e.modifiersClassNames[t];if(r)n.push(r);else if(BA(t)){var i=e.classNames[`day_${t}`];i&&n.push(i)}}),n}function HA(e,t){var n=ZO({},e.styles.day);return Object.keys(t).forEach(function(t){n=ZO(ZO({},n),e.modifiersStyles?.[t])}),n}function UA(e,t,n){var r,i=bk(),a=MA(),o=NA(e,t),s=RA(e,o),c=zA(),l=!!(i.onDayClick||i.mode!==`default`);(0,Z.useEffect)(function(){var t;o.outside||a.focusedDay&&l&&DD(a.focusedDay,e)&&((t=n.current)==null||t.focus())},[a.focusedDay,e,n,l,o.outside]);var u=VA(i,o).join(` `),d=HA(i,o),f=!!(o.outside&&!i.showOutsideDays||o.hidden),p=i.components?.DayContent??Kk,m={style:d,className:u,children:$.jsx(p,{date:e,displayMonth:t,activeModifiers:o}),role:`gridcell`},h=a.focusTarget&&DD(a.focusTarget,e)&&!o.outside,g=a.focusedDay&&DD(a.focusedDay,e);return{isButton:l,isHidden:f,activeModifiers:o,selectedDays:c,buttonProps:ZO(ZO(ZO({},m),(r={disabled:o.disabled,role:`gridcell`},r[`aria-selected`]=o.selected,r.tabIndex=g||h?0:-1,r)),s),divProps:m}}function WA(e){var t=(0,Z.useRef)(null),n=UA(e.date,e.displayMonth,t);return n.isHidden?$.jsx(`div`,{role:`gridcell`}):n.isButton?$.jsx(Rk,ZO({name:`day`,ref:t},n.buttonProps)):$.jsx(`div`,ZO({},n.divProps))}function GA(e){var t=e.number,n=e.dates,r=bk(),i=r.onWeekNumberClick,a=r.styles,o=r.classNames,s=r.locale,c=r.labels.labelWeekNumber,l=r.formatters.formatWeekNumber,u=l(Number(t),{locale:s});if(!i)return $.jsx(`span`,{className:o.weeknumber,style:a.weeknumber,children:u});var d=c(Number(t),{locale:s}),f=function(e){i(t,n,e)};return $.jsx(Rk,{name:`week-number`,"aria-label":d,className:o.weeknumber,style:a.weeknumber,onClick:f,children:u})}function KA(e){var t=bk(),n=t.styles,r=t.classNames,i=t.showWeekNumber,a=t.components,o=a?.Day??WA,s=a?.WeekNumber??GA,c;return i&&(c=$.jsx(`td`,{className:r.cell,style:n.cell,children:$.jsx(s,{number:e.weekNumber,dates:e.dates})})),$.jsxs(`tr`,{className:r.row,style:n.row,children:[c,e.dates.map(function(t){return $.jsx(`td`,{className:r.cell,style:n.cell,role:`presentation`,children:$.jsx(o,{displayMonth:e.displayMonth,date:t})},LO(t))})]})}function qA(e,t,n){for(var r=n?.ISOWeek?LD(t):ID(t,n),i=n?.ISOWeek?gD(e):hD(e,n),a=SD(r,i),o=[],s=0;s<=a;s++)o.push(uD(i,s));return o.reduce(function(e,t){var r=n?.ISOWeek?FO(t):VO(t,n),i=e.find(function(e){return e.weekNumber===r});return i?(i.dates.push(t),e):(e.push({weekNumber:r,dates:[t]}),e)},[])}function JA(e,t){var n=qA(PD(e),ND(e),t);if(t?.useFixedWeeks){var r=UO(e,t);if(r<6){var i=n[n.length-1],a=i.dates[i.dates.length-1],o=CD(a,6-r),s=qA(CD(a,1),o,t);n.push.apply(n,s)}}return n}function YA(e){var t=bk(),n=t.locale,r=t.classNames,i=t.styles,a=t.hideHead,o=t.fixedWeeks,s=t.components,c=t.weekStartsOn,l=t.firstWeekContainsDate,u=t.ISOWeek,d=JA(e.displayMonth,{useFixedWeeks:!!o,ISOWeek:u,locale:n,weekStartsOn:c,firstWeekContainsDate:l}),f=s?.Head??Gk,p=s?.Row??KA,m=s?.Footer??Hk;return $.jsxs(`table`,{id:e.id,className:r.table,style:i.table,role:`grid`,"aria-labelledby":e[`aria-labelledby`],children:[!a&&$.jsx(f,{}),$.jsx(`tbody`,{className:r.tbody,style:i.tbody,children:d.map(function(t){return $.jsx(p,{displayMonth:e.displayMonth,dates:t.dates,weekNumber:t.weekNumber},t.weekNumber)})}),$.jsx(m,{displayMonth:e.displayMonth})]})}function XA(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}var ZA=XA()?Z.useLayoutEffect:Z.useEffect,QA=!1,$A=0;function ej(){return`react-day-picker-${++$A}`}function tj(e){var t=(0,Z.useState)(e??(QA?ej():null)),n=t[0],r=t[1];return ZA(function(){n===null&&r(ej())},[]),(0,Z.useEffect)(function(){QA===!1&&(QA=!0)},[]),e??n??void 0}function nj(e){var t,n=bk(),r=n.dir,i=n.classNames,a=n.styles,o=n.components,s=Pk().displayMonths,c=tj(n.id?`${n.id}-${e.displayIndex}`:void 0),l=n.id?`${n.id}-grid-${e.displayIndex}`:void 0,u=[i.month],d=a.month,f=e.displayIndex===0,p=e.displayIndex===s.length-1,m=!f&&!p;r===`rtl`&&(t=[f,p],p=t[0],f=t[1]),f&&(u.push(i.caption_start),d=ZO(ZO({},d),a.caption_start)),p&&(u.push(i.caption_end),d=ZO(ZO({},d),a.caption_end)),m&&(u.push(i.caption_between),d=ZO(ZO({},d),a.caption_between));var h=o?.Caption??Vk;return $.jsxs(`div`,{className:u.join(` `),style:d,children:[$.jsx(h,{id:c,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),$.jsx(YA,{id:l,"aria-labelledby":c,displayMonth:e.displayMonth})]},e.displayIndex)}function rj(e){var t=bk(),n=t.classNames,r=t.styles;return $.jsx(`div`,{className:n.months,style:r.months,children:e.children})}function ij(e){var t=e.initialProps,n=bk(),r=MA(),i=Pk(),a=(0,Z.useState)(!1),o=a[0],s=a[1];(0,Z.useEffect)(function(){n.initialFocus&&r.focusTarget&&(o||(r.focus(r.focusTarget),s(!0)))},[n.initialFocus,o,r.focus,r.focusTarget,r]);var c=[n.classNames.root,n.className];n.numberOfMonths>1&&c.push(n.classNames.multiple_months),n.showWeekNumber&&c.push(n.classNames.with_weeknumber);var l=ZO(ZO({},n.styles.root),n.style),u=Object.keys(t).filter(function(e){return e.startsWith(`data-`)}).reduce(function(e,n){var r;return ZO(ZO({},e),(r={},r[n]=t[n],r))},{}),d=t.components?.Months??rj;return $.jsx(`div`,ZO({className:c.join(` `),style:l,dir:n.dir,id:n.id,nonce:t.nonce,title:t.title,lang:t.lang},u,{children:$.jsx(d,{children:i.displayMonths.map(function(e,t){return $.jsx(nj,{displayIndex:t,displayMonth:e},t)})})}))}function aj(e){var t=e.children,n=QO(e,[`children`]);return $.jsx(yk,{initialProps:n,children:$.jsx(Nk,{children:$.jsx(FA,{initialProps:n,children:$.jsx(Jk,{initialProps:n,children:$.jsx($k,{initialProps:n,children:$.jsx(hA,{children:$.jsx(jA,{children:t})})})})})})})}function oj(e){return $.jsx(aj,ZO({},e,{children:$.jsx(ij,{initialProps:e})}))}function sj(e){return(0,Q.jsx)(`svg`,{...e,children:(0,Q.jsx)(`path`,{d:`M16.818 11H4.928C4.417 11 4 11.448 4 12s.416 1 .929 1h11.89l-3.781 4.22a1.11 1.11 0 0 0 0 1.465c.36.403.943.418 1.311.045l.032-.034 5.343-5.963a1.11 1.11 0 0 0 0-1.466l-5.343-5.963a.883.883 0 0 0-1.333 0 1.115 1.115 0 0 0-.01 1.477z`,fill:`currentColor`})})}function cj(e){let t=Z.useRef(null),n=Z.useRef(null);return Z.useEffect(()=>{e===`startDate`&&t.current?.focus(),e===`endDate`&&n.current?.focus()},[e]),[t,n]}var lj={dateInputLabel:`_dateInputLabel_jb0so_1`,dateInput:`_dateInput_jb0so_1`,dateInputActive:`_dateInputActive_jb0so_19`},uj=B.encloseNamespace(`shared.customDateRangeSelector`),dj=1,fj=`DD/MM/YYYY`;function pj(e){let[t,n]=Z.useState(`startDate`),[r,i]=cj(t),[a,o]=Z.useState(dn.format(e.startDate,fj)??``),[s,c]=Z.useState(dn.format(e.endDate,fj)??``),[l,u]=Z.useState(e.startDate||new Date),[d,f]=Z.useState(``),[p,m]=Z.useState(``),h=Z.useMemo(()=>un.updateFormatByRegion(fj),[]);Z.useEffect(()=>{o(dn.format(e.startDate,fj)??``),f(``)},[e.startDate]),Z.useEffect(()=>{c(dn.format(e.endDate,fj)??``),m(``)},[e.endDate]),Z.useEffect(()=>{let n=t===`startDate`?e.startDate:e.endDate;n&&u(n)},[e.startDate,e.endDate,t]);function g(n){t===`startDate`?e.setDateRange({startDate:n,endDate:e.endDate}):e.setDateRange({startDate:e.startDate,endDate:n})}function _(t,n){let r=t===`startDate`?o:c,i=t===`startDate`?f:m,a=n.target.value;if(r(a),!a.trim()){i(``);return}if(!dn.formatIsValid(a,h,!0)){i(uj(`invalidDateFormat`));return}let s=dn.parseDateString(a,h);if(dn.isBefore(s,e.minDate)||dn.isAfter(s,e.maxDate)){i(uj(`dateOutOfRange`));return}if(t===`endDate`&&e.startDate&&dn.isBefore(s,e.startDate)){i(uj(`endDateBeforeStartDate`));return}i(``),e.setDateRange({startDate:t===`startDate`?s:e.startDate,endDate:t===`endDate`?s:e.endDate})}return(0,Q.jsxs)(`div`,{className:`d-inline-block`,children:[(0,Q.jsx)(`div`,{className:`d-flex align-items-center justify-content-center border-bottom p-3`,children:(0,Q.jsxs)(`form`,{className:`d-flex align-items-center`,children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsxs)(`div`,{className:`position-relative`,children:[(0,Q.jsx)(`strong`,{className:lj.dateInputLabel,children:uj(`from`)}),(0,Q.jsx)(`input`,{ref:r,className:`form-control ${lj.dateInput} ${t===`startDate`?lj.dateInputActive:``} ${d?`is-invalid`:``}`,value:a,onChange:e=>_(`startDate`,e),onFocus:()=>n(`startDate`),placeholder:h})]}),d&&(0,Q.jsx)(`div`,{className:`text-danger small mt-1`,children:d})]}),(0,Q.jsx)(`span`,{className:`px-3`,children:(0,Q.jsx)(wt,{svg:sj})}),(0,Q.jsxs)(`div`,{children:[(0,Q.jsxs)(`div`,{className:`position-relative`,children:[(0,Q.jsx)(`strong`,{className:lj.dateInputLabel,children:uj(`to`)}),(0,Q.jsx)(`input`,{ref:i,className:`form-control ${lj.dateInput} ${t===`endDate`?lj.dateInputActive:``} ${p?`is-invalid`:``}`,value:s,onChange:e=>_(`endDate`,e),onFocus:()=>n(`endDate`),placeholder:h})]}),p&&(0,Q.jsx)(`div`,{className:`text-danger small mt-1`,children:p})]})]})}),(0,Q.jsxs)(`div`,{className:`p-3 d-flex flex-column align-items-center`,children:[(0,Q.jsx)(`div`,{className:`fw-bold`,children:uj(t===`startDate`?`selectFromDate`:`selectToDate`)}),(0,Q.jsx)(oj,{mode:`single`,numberOfMonths:dj,month:l,onMonthChange:u,selected:t===`startDate`?e.startDate:e.endDate,onDayClick:g,captionLayout:`dropdown-buttons`,fromDate:e.minDate,toDate:e.maxDate,disabled:t===`endDate`&&e.startDate?{before:e.startDate}:void 0,modifiersClassNames:{selected:`my-selected`,today:`my-today`}})]}),(0,Q.jsxs)(`div`,{className:`pb-3 px-3 text-end`,children:[(0,Q.jsx)(`button`,{className:`btn btn-link me-2`,onClick:e.close,children:uj(`close`)}),(0,Q.jsx)(`button`,{className:`btn btn-outline-dark`,onClick:e.onClickApply,children:uj(`apply`)})]})]})}function mj(e){return(0,Q.jsx)(`svg`,{...e,children:(0,Q.jsx)(`path`,{fill:`currentColor`,d:`M9.2 6h5.6V4.6a.6.6 0 1 1 1.2 0V6h2a1 1 0 0 1 1 1v11a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V7a1 1 0 0 1 1-1h2V4.6a.6.6 0 0 1 1.2 0zM6 7h12v4H6zm0 0v11a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V7z`})})}function hj(e){return(0,Q.jsx)(eE.Toggle,{as:`div`,id:`date-range-dropdown`,className:`no-caret`,children:(0,Q.jsxs)(`button`,{className:`btn btn-outline-dark d-flex align-items-center pe-5`,onClick:()=>{e.toggleDropdown?.()},children:[(0,Q.jsx)(`span`,{children:e.value}),(0,Q.jsx)(`div`,{className:`position-absolute translate-middle top-50 end-0 me-n1`,children:(0,Q.jsx)(wt,{svg:mj,size:ht.Standard})})]})})}function gj(e){return(0,Q.jsx)(`svg`,{...e,children:(0,Q.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,d:`M16.247 7.341a1 1 0 0 1 1.506 1.318l-7 8a1 1 0 0 1-1.46.048l-3-3a1 1 0 1 1 1.414-1.414l2.244 2.244z`,clipRule:`evenodd`})})}function _j(e){return dn.isAfter(e,new Date,`day`)}function vj(e){return _j(e.startDate)}function yj(e){return`(${dn.format(e.startDate,`ddd, D MMM`)} - ${dn.format(e.endDate,`ddd, D MMM`)})`}function bj(e){if(!vj(e))return _j(e.endDate)?{...e,endDate:new Date}:e}var xj={containerWithDynamicRanges:`_containerWithDynamicRanges_1khvp_1`,selectedDateRange:`_selectedDateRange_1khvp_4`,rangeList:`_rangeList_1khvp_7`},Sj=B.encloseNamespace(`shared.presetDateRangeSelector`);function Cj(e){return e?`btn btn-link d-flex align-items-center py-1 px-0 text-decoration-none fw-bold text-info ${xj.selectedDateRange}`:`btn btn-link d-flex align-items-center py-1 px-0 text-decoration-none text-body`}function wj(e){let t=e.range.name===e.selectedRangeName,n=vj(e.range)||e.range.disabled,r=()=>(0,Q.jsxs)(`button`,{className:Cj(t),onClick:()=>e.onClick(e.range),disabled:n,children:[t&&(0,Q.jsx)(wt,{svg:gj}),(0,Q.jsx)(`span`,{className:`${n?`text-secondary`:``} ${e.isDynamic?`fw-bold`:``}`,children:e.range.name}),!!e.isDynamic&&(0,Q.jsxs)(Q.Fragment,{children:[`\xA0`,(0,Q.jsx)(`span`,{className:`text-secondary`,children:yj(e.range)})]})]});return e.range.tooltip?(0,Q.jsx)(xt,{title:e.range.tooltip,placement:`left`,spanHack:!0,spanHackClassName:`justify-content-start`,children:(0,Q.jsx)(r,{})}):(0,Q.jsx)(r,{})}function Tj(e){function t(t){let n=bj(t);n&&e.setDateRange(n)}let n=!!e.dynamicDateRanges?.length,r=e.selectedRangeName===`custom`;return(0,Q.jsxs)(`div`,{className:n?`py-3 ${xj.containerWithDynamicRanges}`:`py-2`,children:[(0,Q.jsxs)(`div`,{className:`row px-2`,children:[(0,Q.jsx)(`div`,{className:n?`col-4 pe-2 border-end`:`col-12`,children:(0,Q.jsx)(`ul`,{className:`list-unstyled ${xj.rangeList} mb-0`,children:e.genericDateRanges.map((n,r)=>(0,Q.jsx)(`li`,{children:(0,Q.jsx)(wj,{range:n,onClick:t,selectedRangeName:e.selectedRangeName})},r))})}),n&&(0,Q.jsx)(`div`,{className:`col-8 ps-2`,children:(0,Q.jsx)(`ul`,{className:`list-unstyled ${xj.rangeList}`,children:e.dynamicDateRanges.map((n,r)=>(0,Q.jsx)(`li`,{children:(0,Q.jsx)(wj,{range:n,onClick:t,selectedRangeName:e.selectedRangeName,isDynamic:!0})},r))})})]}),!e.hideCustomRange&&(0,Q.jsx)(`div`,{className:`row py-2`,children:(0,Q.jsx)(`div`,{className:`col-12`,children:(0,Q.jsx)(`div`,{className:n?`pe-2 text-end`:xj.rangeList,children:(0,Q.jsxs)(`button`,{className:`btn btn-link d-flex align-items-center p-0 ${r?`text-info mx-n4`:``}`,onClick:e.showCustomRangeSelector,children:[r&&(0,Q.jsx)(wt,{svg:gj}),(0,Q.jsx)(`strong`,{children:Sj(`customRange`)})]})})})})]})}function Ej(e){return e.getFullYear()===new Date().getFullYear()}function Dj(e,t){let n=t?`ddd, D MMM YYYY`:`ddd, D MMM`;return dn.format(e,n)}function Oj(e,t,n){let r=tD(e,t.name)||t;if(!r.startDate||!r.endDate)return r.name&&r.name!==`custom`?r.name:``;let i=!Ej(r.startDate)||!Ej(r.endDate),a=`${Dj(r.startDate,i)} - ${Dj(r.endDate,i)}`;return!r.name||r.name===`custom`?a:`${r.name}${n?``:` (${a})`}`}function kj(e,t){let{from:n,to:r,rangeName:i}=t;return tD(e,i)||(n&&r&&dn.isValid(n)&&dn.isValid(r)?{startDate:new Date(n),endDate:new Date(r),name:`custom`}:eD(e))}function Aj(e,t){let n=eD(t);return!!n&&!!e.name&&e.name===n.name}function jj(e){let t=kj(e.dateRangePresets,e.dateRangeQueryParams),[n,r]=Z.useState(t),[i,a]=Z.useState(`none`);function o(e){r(e),l(e)}function s(){r(t),a(`custom`)}function c(){a(`none`),l(n)}function l(t){if(a(`none`),Aj(t,e.dateRangePresets))YE.updateParams({},{merge:!0,keysToRemove:[`from`,`to`,`rangeName`]});else{let e=iD(t),n=e.rangeName?[`from`,`to`]:[`rangeName`];YE.updateParams(e,{merge:!0,keysToRemove:n})}S.logUserAction(t,{actionType:E.Filter,descriptor:p.DateRange,location:j.DateRangeFilter,entity:Pe.Filter})}return(0,Q.jsxs)(`div`,{className:`position-relative`,children:[(0,Q.jsxs)(eE,{show:i===`preset`,onToggle:e=>a(e?`preset`:`none`),className:i===`custom`?`d-none`:``,children:[(0,Q.jsx)(hj,{value:Oj(e.dateRangePresets,t,e.hideRange),toggleDropdown:()=>a(i===`preset`?`none`:`preset`)}),(0,Q.jsx)(eE.Menu,{className:`p-0 text-nowrap`,align:`end`,children:(0,Q.jsx)(Tj,{genericDateRanges:e.dateRangePresets,setDateRange:o,showCustomRangeSelector:s,selectedRangeName:t.name,hideCustomRange:e.hideCustomRange})})]}),(0,Q.jsxs)(eE,{show:i===`custom`,onToggle:c,className:i===`custom`?``:`d-none`,children:[(0,Q.jsx)(hj,{value:Oj(e.dateRangePresets,t,e.hideRange)}),(0,Q.jsx)(eE.Menu,{className:`p-0`,align:`end`,children:(0,Q.jsx)(pj,{startDate:n?.startDate,endDate:n?.endDate,setDateRange:r,maxDate:$E(),minDate:QE(),onClickApply:()=>l(n),close:()=>a(`none`)})})]})]})}function Mj(e){return(0,Q.jsx)(`svg`,{...e,children:(0,Q.jsx)(`path`,{d:`M12 13.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3m0 5.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3m0-11a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3`,fill:`currentColor`})})}var Nj={dropdownToggle:`_dropdownToggle_1jkd1_1`};function Pj(){return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`div`,{style:{padding:`0.53125rem 1rem`},children:(0,Q.jsx)(`div`,{className:`partial-loading-background`,style:{height:`1.0625rem`,width:`8rem`}})}),(0,Q.jsx)(`div`,{style:{padding:`0.53125rem 1rem`},children:(0,Q.jsx)(`div`,{className:`partial-loading-background`,style:{height:`1.0625rem`,width:`12rem`}})}),(0,Q.jsx)(`div`,{style:{padding:`0.53125rem 1rem`},children:(0,Q.jsx)(`div`,{className:`partial-loading-background`,style:{height:`1.0625rem`,width:`11rem`}})}),(0,Q.jsx)(`div`,{style:{padding:`0.53125rem 1rem`},children:(0,Q.jsx)(`div`,{className:`partial-loading-background`,style:{height:`1.0625rem`,width:`9rem`}})})]})}function Fj(e){let t=`dropdown-item`;return e&&(t+=` ${e}`),t}function Ij(e){let t=kt.isFunction(e.action.label)?e.action.label():(0,Q.jsx)(Q.Fragment,{children:e.action.label});if(e.action.appLink)return(0,Q.jsxs)(Dt,{appLink:e.action.appLink,onClick:e.action.onClick,className:Fj(e.action.className),analyticsData:e.action.analyticsData,analyticsOptions:e.action.analyticsOptions,openInNewTab:e.action.openInNewTab,disabled:e.action.disabled,children:[e.action.svg&&(0,Q.jsx)(wt,{svg:e.action.svg,className:`d-inline-block svg-container me-2 align-middle`}),(0,Q.jsx)(`span`,{className:`align-middle`,children:t})]});function n(t){t.preventDefault(),e.action.analyticsData&&e.action.analyticsOptions&&S.logUserAction(e.action.analyticsData,e.action.analyticsOptions),kt.isFunction(e.action.onClick)&&e.action.onClick(),e.action.href&&ue.PageLoad(e.action.href,e.action.openInNewTab)}return e.action.href?(0,Q.jsxs)(`a`,{className:Fj(e.action.className),onClick:n,href:e.action.href,children:[e.action.svg&&(0,Q.jsx)(wt,{svg:e.action.svg,className:`d-inline-block svg-container me-2 align-middle`}),(0,Q.jsx)(`span`,{className:`align-middle`,children:t})]}):(0,Q.jsxs)(`span`,{className:`cursor-pointer ${Fj(e.action.className)}`,onClick:n,role:`button`,tabIndex:0,onKeyDown:e=>e.key===`Enter`&&n(e),children:[e.action.svg&&(0,Q.jsx)(wt,{svg:e.action.svg,className:`d-inline-block svg-container me-2`}),t]})}Lj.defaultProps={dropdownToggleClassName:`btn btn-light`,dropdownToggleSvgSize:ht.Small};function Lj(e){if(!e.actions||!e.actions.length)return(0,Q.jsx)(Q.Fragment,{});let t=e.actions.some(e=>e.lazyPlaceholder),n=`dropdown`;e.className&&(n+=` ${e.className}`);let r=`actions-dropdown-${Tt.getRandomInt()}`,i=`dropdown-toggle px-0 ${Nj.dropdownToggle}`;e.dropdownToggleClassName&&(i+=` ${e.dropdownToggleClassName}`);let a;return(0,Q.jsxs)(`div`,{className:n,children:[(0,Q.jsx)(`button`,{className:i,type:`button`,id:r,"data-bs-toggle":`dropdown`,"data-toggle":`dropdown`,"aria-haspopup":`true`,"aria-expanded":`false`,"aria-label":`More actions dropdown`,onClick:t?e.fetchMore:null,children:(0,Q.jsx)(wt,{svg:Mj,size:e.dropdownToggleSvgSize})}),(0,Q.jsx)(`ul`,{className:`dropdown-menu dropdown-menu-end dropdown-menu-right font-size-normal`,"aria-labelledby":r,children:t?(0,Q.jsx)(Pj,{}):e.actions.map((e,t)=>{let n=a!==void 0&&a!==e.group;return a=e.group,e.tooltip?(0,Q.jsxs)(`li`,{children:[n&&(0,Q.jsx)(`hr`,{className:`dropdown-divider`,role:`separator`}),(0,Q.jsx)(xt,{title:e.tooltip,spanHack:!0,children:(0,Q.jsx)(Ij,{action:e})})]},t):(0,Q.jsxs)(`li`,{children:[n&&(0,Q.jsx)(`hr`,{className:`dropdown-divider`,role:`separator`}),(0,Q.jsx)(Ij,{action:e})]},t)})})]})}function Rj(){return Z.useContext(zE)}var zj=new Set([`system_cv_trial_freemium_v1`,`system_cv_trial_freemium_v2`]);function Bj(){let e=zt(Mt.currentUser()),t=zt(e.hasCompleted&&e.data?.isAuthenticated&&Mt.accessPolicy());function n(e){return t.data?(t.data?.permissions?.additional??[]).includes(e):!1}function r(){let e=new Set;return t.data&&zj.has(t.data.id)&&e.add(Sn.ViewInsights),e}return{isLoaded:e.hasCompleted&&t.hasCompleted,accessPolicy:t.data,policyHasOption:n,gatedPermissions:r()}}function Vj(e,t,n){return n?n===`ALL`?t.every(t=>e[t]):t.some(t=>e[t]):!t.find(t=>!e[t])}var Hj=()=>{let e=zt(zt(Mt.currentUser()).hasCompleted&&Mt.permissions()),{gatedPermissions:t}=Bj(),[n]=an(ln.LOCAL_PERMISSIONS);return{permissions:e.data,hasPermissions:(t,n)=>!e.hasCompleted||e.hasError?!1:!t||!t?.length?!0:Array.isArray(t)?Vj(e.data,t,n):!!e.data[t],hasLocalPermissions:e=>(n||R.throw(new y(`Local Permissions should be registered during start up.`)),!e||!e?.length?!0:Array.isArray(e)?!e.find(e=>!n[e]):!!n[e]),getGatedPermission:n=>!e.hasCompleted||e.hasError?`hidden`:t.has(n)?e.data[n]?`soft-gate`:`hard-gate`:e.data[n]?`visible`:`hidden`,isLoaded:e.hasCompleted}};function Uj(e){return(0,Q.jsx)(`svg`,{...e,children:(0,Q.jsx)(`path`,{fill:`currentColor`,d:`M13.5 4.5A.5.5 0 0 1 14 4h5.5a.5.5 0 0 1 .5.5V10a.5.5 0 0 1-1 0V5.707l-6.146 6.147a.5.5 0 0 1-.708-.708L18.293 5H14a.5.5 0 0 1-.5-.5M5 7.5A1.5 1.5 0 0 1 6.5 6H9a.5.5 0 0 1 0 1H6.5a.5.5 0 0 0-.5.5v11a.5.5 0 0 0 .5.5h11a.5.5 0 0 0 .5-.5V15a.5.5 0 0 1 1 0v3.5a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 5 18.5z`})})}function Wj(e){return(0,Q.jsx)(`svg`,{...e,children:(0,Q.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,d:`M11.378 5.167a.62.62 0 0 1 .873 0l7.535 7.507a.494.494 0 1 0 .697-.7l-7.536-7.506a1.605 1.605 0 0 0-2.266 0l-7.536 7.506a.494.494 0 1 0 .697.7zM6.206 13.43a.494.494 0 0 0-.987 0v6.077c0 .273.22.494.494.494h4.437a.494.494 0 0 0 .494-.494v-4.42c0-.335.274-.611.616-.611h1.109c.342 0 .616.276.616.611v4.42c0 .273.22.494.493.494h4.438a.494.494 0 0 0 .494-.494V13.43a.494.494 0 0 0-.988 0v5.583h-3.45v-3.926c0-.885-.72-1.599-1.603-1.599h-1.11c-.883 0-1.603.714-1.603 1.6v3.925h-3.45z`,clipRule:`evenodd`})})}var Gj={toggle:`_toggle_1f3ot_1`},Kj=4,qj=`shared.customerSelectorItem`;function Jj(e){function t(t,r=null){r!==e.currentCustomerId&&(S.logUserAction({id:e.currentCustomerId,newCustomerId:r},{actionType:E.SwitchCustomer,entity:Pe.Customer,location:j.UserOptions}),ue.PageLoad(n(r)))}function n(e){return e?`/change-customer?customerId=${e}`:`/change-customer`}return!e.customers?.length||!e.currentCustomerId||e.customers.length<=1?(0,Q.jsx)(Q.Fragment,{}):e.customers.length>Kj?(0,Q.jsx)(eE.Item,{as:`li`,onClick:e=>t(e),className:`cursor-pointer`,children:(0,Q.jsxs)(`div`,{className:`d-flex justify-content-between`,children:[(0,Q.jsx)(Kt,{namespace:qj,phrase:`title`}),(0,Q.jsx)(wt,{svg:Wj,className:`svg-container text-secondary`})]})}):(0,Q.jsxs)(`li`,{className:`dropdown-item dropstart cursor-pointer`,children:[(0,Q.jsxs)(`div`,{className:`dropdown-toggle d-flex justify-content-between ${Gj.toggle}`,"data-bs-toggle":`dropdown`,"aria-expanded":`false`,children:[(0,Q.jsx)(Kt,{namespace:qj,phrase:`title`}),(0,Q.jsx)(wt,{svg:Wj,className:`svg-container text-secondary`})]}),(0,Q.jsx)(`ul`,{className:`dropdown-menu`,children:e.customers.map((n,r)=>{let i=n.id===e.currentCustomerId;return(0,Q.jsx)(eE.Item,{as:`li`,onClick:e=>t(e,n.id),disabled:i,children:n.name},r)})})]})}var Yj=function(e){return e[e.Integrations=1]=`Integrations`,e[e.Classrooms=2]=`Classrooms`,e[e.MakeInteractive=3]=`MakeInteractive`,e[e.EditSsoAccounts=4]=`EditSsoAccounts`,e[e.UploadToLibraryEditor=5]=`UploadToLibraryEditor`,e[e.AddFromLite=6]=`AddFromLite`,e[e.ManageSsoYearGroups=7]=`ManageSsoYearGroups`,e[e.ContentReview=8]=`ContentReview`,e[e.ContentPermissions=9]=`ContentPermissions`,e[e.AccessSettings=10]=`AccessSettings`,e[e.ViviIntegration=11]=`ViviIntegration`,e[e.AppleTvIntegration=12]=`AppleTvIntegration`,e[e.RssFeed=13]=`RssFeed`,e[e.MarcFormatDifferences=14]=`MarcFormatDifferences`,e[e.ExportLibraries=15]=`ExportLibraries`,e[e.StudentSharingGuide=16]=`StudentSharingGuide`,e[e.Sharing=17]=`Sharing`,e[e.ClassroomViews=18]=`ClassroomViews`,e[e.ManagePlaylists=19]=`ManagePlaylists`,e[e.UploadYourOwnVideos=20]=`UploadYourOwnVideos`,e[e.LtiSetup=21]=`LtiSetup`,e[e.LtiSetupCanvas=22]=`LtiSetupCanvas`,e[e.EmbedD2LBrightspace=23]=`EmbedD2LBrightspace`,e[e.EmbedEducationPerfect=24]=`EmbedEducationPerfect`,e[e.ShareGoogleClassroom=25]=`ShareGoogleClassroom`,e[e.InstallItsLearning=26]=`InstallItsLearning`,e[e.ShareMicrosoftTeams=27]=`ShareMicrosoftTeams`,e[e.LtiSetupMoodle=28]=`LtiSetupMoodle`,e[e.EmbedSeqta=29]=`EmbedSeqta`,e[e.SchoologySetup=30]=`SchoologySetup`,e[e.EmbedToddle=31]=`EmbedToddle`,e[e.SearchAndDiscover=32]=`SearchAndDiscover`,e[e.ClassroomAnalytics=33]=`ClassroomAnalytics`,e}({}),Xj={[Yj.Integrations]:`/integrations/share-integrations/enable-share-integrations`,[Yj.Classrooms]:`/using-clickview/classrooms/classrooms`,[Yj.MakeInteractive]:`/using-clickview/interactive-videos/interactive-videos`,[Yj.EditSsoAccounts]:`/administration/user-permissions/create-staff-student-accounts`,[Yj.UploadToLibraryEditor]:`/using-clickview/create-manage/how-to-upload-videos`,[Yj.AddFromLite]:`/using-clickview/share/add-videos-school-library`,[Yj.ManageSsoYearGroups]:`/administration/user-permissions/sso-grade-level-mappings`,[Yj.ContentReview]:`/administration/content-permissions/content-review-restrictions`,[Yj.ContentPermissions]:`/administration/content-permissions/grade-level`,[Yj.AccessSettings]:`/administration/user-permissions/create-staff-student-accounts`,[Yj.ViviIntegration]:`/integrations/casting/vivi`,[Yj.AppleTvIntegration]:`/integrations/casting/enable-apple-tv`,[Yj.RssFeed]:`/integrations/learning-management-systems/school-id-rss-feed`,[Yj.MarcFormatDifferences]:`/administration/content-permissions/marc-record-formats`,[Yj.ExportLibraries]:`/administration/content-permissions/export-libraries`,[Yj.StudentSharingGuide]:`/using-clickview/student-view/video-sharing-students`,[Yj.Sharing]:`/using-clickview/share/share-videos`,[Yj.ClassroomViews]:`/using-clickview/analytics/classroom-views`,[Yj.ManagePlaylists]:`/using-clickview/create-manage/playlists`,[Yj.UploadYourOwnVideos]:`/using-clickview/create-manage/how-to-upload-videos`,[Yj.LtiSetup]:`/integrations/learning-management-systems`,[Yj.LtiSetupCanvas]:`/integrations/learning-management-systems/setup-lti-1-3-canvas`,[Yj.EmbedD2LBrightspace]:`/integrations/learning-management-systems/d2l-brightspace-embed-video`,[Yj.EmbedEducationPerfect]:``,[Yj.ShareGoogleClassroom]:`/integrations/share-integrations/share-google-classroom`,[Yj.InstallItsLearning]:`/integrations/learning-management-systems/install-itslearning-plugin`,[Yj.ShareMicrosoftTeams]:`/integrations/share-integrations/share-microsoft-teams`,[Yj.LtiSetupMoodle]:`/integrations/learning-management-systems/setup-lti-1-3-moodle`,[Yj.EmbedSeqta]:``,[Yj.SchoologySetup]:`/integrations/learning-management-systems/install-schoology-app`,[Yj.EmbedToddle]:`/integrations/learning-management-systems/toddle-embed-video`,[Yj.SearchAndDiscover]:`/using-clickview/discover/using-search`,[Yj.ClassroomAnalytics]:`/using-clickview/analytics/classroom-analytics`},Zj={...Xj,[Yj.EditSsoAccounts]:`/administration/user-permissions/manage-sso-user-accounts`,[Yj.ManageSsoYearGroups]:`/administration/user-permissions/sso-year-level-mappings`,[Yj.ContentPermissions]:`/administration/content-permissions/year-level`,[Yj.EmbedEducationPerfect]:`/integrations/learning-management-systems/education-perfect-embed-video`,[Yj.EmbedSeqta]:`https://help.seqta.com.au/s/article/embedding-and-removing-clickview-videos-and-playists`},Qj={[En.US]:Xj,[En.AU]:Zj,[En.NZ]:{...Zj},[En.UK]:{...Xj,[Yj.EditSsoAccounts]:`/administration/user-permissions/manage-sso-user-accounts`,[Yj.ManageSsoYearGroups]:`/administration/user-permissions/sso-year-level-mappings`,[Yj.ContentPermissions]:`/administration/content-permissions/year-level`,[Yj.EmbedD2LBrightspace]:``,[Yj.InstallItsLearning]:``,[Yj.LtiSetupMoodle]:``,[Yj.SchoologySetup]:``,[Yj.EmbedToddle]:``}},$j={[En.US]:`/help`,[En.AU]:`/en-au/help`,[En.UK]:`/en-gb/help`,[En.NZ]:`/en-au/help`},eM={[En.US]:`/welcome`,[En.AU]:`/en-au/welcome`,[En.UK]:`/en-gb/welcome`,[En.NZ]:`/en-au/welcome`},tM=class{constructor(){this.name=`LocalizedArticleHelper`}static get Instance(){return this.instance||=new this}initialize(e){this.initializeUrl(e),this.initializeInstanceRegion(e)}initializeUrl(e){if(!e.product){R.throw(new y(`${this.name} requires a product name`));return}if(this.product=e.product,this.marketingSiteUrl=e.marketingSiteUrl,e.product===Pn.Online){if(!e.onlineSupportSiteUrl){R.throw(new y(`ArticleHelper requires a online support site url`));return}this.supportSiteUrl=e.onlineSupportSiteUrl;return}if(!e.liteSupportSiteUrl){R.throw(new y(`ArticleHelper requires a lite support site url`));return}this.supportSiteUrl=e.liteSupportSiteUrl}initializeInstanceRegion(e){if(!e.instanceRegion){R.throw(new y(`${this.name} requires an instance region`));return}this.instanceRegion=e.instanceRegion,this.product===Pn.Primary&&(this.liteArticleUrlMapping=Qj[this.instanceRegion])}validate(){return this.supportSiteUrl&&this.instanceRegion?!0:this.product===Pn.Primary&&!this.liteArticleUrlMapping?(R.throw(new y(`${this.name} requires a lite article url mapping`)),!1):(R.throw(new y(`${this.name} was not initialized`)),!1)}getArticle(e){if(!this.validate())return``;if(!e)return this.getSupportSiteUrl();let t=this.liteArticleUrlMapping[e];return hn.isValidUrl(t)?t:hn.safeUrlConcat(this.getSupportSiteUrl(),t)}getSupportSiteUrl(){return this.validate()?hn.safeUrlConcat(this.supportSiteUrl,$j[this.instanceRegion]):``}getWelcomeSiteUrl(){return this.validate()?hn.safeUrlConcat(this.supportSiteUrl,eM[this.instanceRegion]):``}getInstanceRegionsForArticle(e){return this.validate()?Object.entries(Qj).reduce((t,[n,r])=>(r[e]?.length&&t.push(n),t),[]):[]}getLiteArticle(e){return this.product===Pn.Online&&R.throw(new y(`ArticleHelper.getLiteArticle() should not be used in Online`)),this.getArticle(e)}getSupportRequestUrl(){return this.validate()?hn.safeUrlConcat(this.marketingSiteUrl,`/contact-us/support`):``}getAuthorBlogUrl(e){return!this.marketingSiteUrl||!e?``:hn.safeUrlConcat(this.marketingSiteUrl,`blog/author/${e}`)}getHybridArticle(e,t){return this.product===Pn.Online?this.getSupportSiteUrl():this.getLiteArticle(t)}}.Instance,nM=B.encloseNamespace(`shared.userOptions`);function rM(e,t,n){let{hasPermissions:r}=Hj(),i=tn.sortBy(t,`order`);if(e&&(r(Sn.StudentExperience)||i.push({label:nM(`getStarted`),order:0,url:tM.getWelcomeSiteUrl(),analyticsData:{url:tM.getWelcomeSiteUrl()},analyticsOptions:{actionType:E.Click,entity:Pe.Url,descriptor:O.ExternalLink,location:j.UserOptions}}),i.push({label:nM(`helpCentre`),order:0,url:tM.getSupportSiteUrl(),analyticsData:{url:tM.getSupportSiteUrl()},analyticsOptions:{actionType:E.Click,entity:Pe.Url,descriptor:O.ExternalLink,location:j.UserOptions}}),r(Sn.ViewProductBoard)&&!n)){let t=hn.safeUrlConcat(e.productBoardUrl,`tabs/23-what-s-new`);i.push({label:nM(`whatsNew`),order:0,url:t,analyticsData:{url:t},analyticsOptions:{actionType:E.Click,entity:Pe.Url,descriptor:O.ExternalLink,location:j.UserOptions}})}let a={main:[],logOut:[]};return i.forEach(e=>{e.section===`logOut`?a.logOut.push(e):a.main.push(e)}),a}function iM(e,t,n){let r=zt(zt(Mt.currentUser()).data?.isAuthenticated&&CC.userProducts());if(t||!r.data)return;let i=[...r.data],a=Array.isArray(e)?e:[e],o=i.filter(e=>!a.includes(e.id),`order`);return typeof n==`function`&&(o=n(o)),tn.sortBy(o)}var aM={avatarContainer:`_avatarContainer_1z0er_1`,productLogo:`_productLogo_1z0er_5`,counter:`_counter_1z0er_9`},oM=B.encloseNamespace(`shared.userOptions`);function sM({item:e}){if(e.appLink)return(0,Q.jsxs)(eE.Item,{as:Dt,appLink:e.appLink,openInNewTab:e.openInNewTab,onClick:e.onClick,className:`d-flex align-items-center`,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,children:[e.counter>0&&(0,Q.jsx)(`div`,{className:`${aM.counter} badge bg-danger rounded-pill fw-semibold me-1`,children:e.counter}),(0,Q.jsxs)(`div`,{className:`d-flex justify-content-between`,children:[e.label,!!e.openInNewTab&&(0,Q.jsx)(wt,{svg:Uj,className:`svg-container text-secondary`})]})]});if(e.url){function t(t){t.preventDefault(),e.onClick?.(),e.analyticsData&&e.analyticsOptions&&S.logUserAction({href:e.url,...e.analyticsData},e.analyticsOptions),ue.PageLoad(e.url,!0)}return(0,Q.jsxs)(eE.Item,{as:`a`,href:e.url,target:e.openInNewTab===!1?null:`_blank`,className:`d-flex align-items-center`,onClick:e=>t(e),children:[e.counter>0&&(0,Q.jsx)(`div`,{className:`${aM.counter} badge bg-danger rounded-pill fw-semibold me-1`,children:e.counter}),(0,Q.jsxs)(`div`,{className:`d-flex justify-content-between`,children:[e.label,e.openInNewTab!==!1&&(0,Q.jsx)(wt,{svg:Uj,className:`svg-container text-secondary`})]})]})}return(0,Q.jsx)(Q.Fragment,{})}var cM=({appLinks:e})=>{let t=Rj(),n=t.xs||t.sm;return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(Dt,{appLink:e.signIn,className:`btn btn-link ps-0`,analyticsOptions:{actionType:E.Click,location:j.TopNav,entity:Pe.Url,descriptor:L.SignIn},analyticsData:{},children:oM(`signIn`)}),(0,Q.jsx)(Dt,{appLink:e.signUp,className:`btn btn-dark ms-2`,analyticsOptions:{actionType:E.Click,location:j.TopNav,entity:Pe.AppLink,workflowPhase:se.Start,descriptor:L.SignUp},analyticsData:{},tag:`button`,children:oM(n?`signUpForMobile`:`signUp`)})]})},lM=({appLinks:e})=>(0,Q.jsx)(Dt,{appLink:e.signIn,className:`btn btn-dark d-inline-block`,analyticsOptions:{actionType:E.Click,location:j.TopNav,entity:Pe.AppLink,workflowPhase:se.Start,descriptor:L.SignIn},analyticsData:{},children:oM(`signIn`)});function uM(e){let[t,n]=Z.useState(!1),{hasPermissions:r}=Hj(),i=zt(Mt.currentUser()),a=zt(i.data?.id&&Mt.user(i.data.id)),o=zt(iC.config()),s=zt(i.data?.isAuthenticated&&Mt.customers(i.data.id)),c=rM(o.data,e.additionalItems,e.hideWhatsNew),l=r(Sn.GuestExperience),u=e.hideProductList||l,d=iM(e.productId,u,e.transform);function f(e){n(e),S.logUserAction({},{actionType:E.Click,entity:Pe.AppLink,location:j.UserOptions,descriptor:e?O.Open:O.Close})}function p(e){S.logUserAction({id:e.id,name:e.name},{actionType:E.Click,entity:Pe.Product,location:j.UserOptions,descriptor:O.ExternalLink})}return!i.hasCompleted||i.data.isAuthenticated&&!a.hasCompleted||!o.data?(0,Q.jsx)(Q.Fragment,{}):i.data.isAuthenticated?(0,Q.jsxs)(eE,{className:`position-relative`,onToggle:f,children:[(0,Q.jsx)(eE.Toggle,{id:`userOptions`,variant:``,"aria-label":`Options menu`,className:`${aM.avatarContainer} no-caret border-0 p-0`,children:(0,Q.jsx)(vn,{imageUrl:tr.createUrl(i.data.avatar,{size:er.Small}),imageCdnUrl:o.data.imageCdnUrl,initials:wn.getInitials(i.data.givenName,i.data.familyName),showDot:c.main.some(e=>e.counter>0)})}),(0,Q.jsxs)(eE.Menu,{as:`ul`,align:`end`,children:[(0,Q.jsxs)(eE.Item,{as:`div`,children:[(0,Q.jsxs)(`div`,{className:`m-0 d-flex flex-wrap`,children:[(0,Q.jsx)(`strong`,{children:i.data.displayName}),`\xA0`,!l&&(0,Q.jsxs)(`span`,{className:`text-secondary`,children:[`(`,i.data.username,`)`]})]}),(0,Q.jsx)(`div`,{className:`m-0 text-secondary`,children:i.data.customerName}),!l&&a.data?.masterYearGroup&&(0,Q.jsx)(`p`,{className:`m-0 text-secondary`,children:a.data.masterYearGroup.name})]}),(0,Q.jsx)(Jj,{isParentOpen:t,currentCustomerId:i.data?.customerId,customers:s.data?.data}),(0,Q.jsx)(eE.Divider,{}),c.main.map((e,t)=>(0,Q.jsx)(sM,{item:e},t)),(0,Q.jsx)(eE.Divider,{}),d?.map((e,t)=>(0,Q.jsxs)(eE.Item,{as:`a`,href:e.url,target:`_blank`,className:`d-flex align-items-center py-1`,onClick:()=>p(e),children:[(0,Q.jsx)(`img`,{src:e.imageUrl,className:`${aM.productLogo} me-2`}),e.name]},t)),!!d?.length&&(0,Q.jsx)(eE.Divider,{}),c.logOut.map((e,t)=>(0,Q.jsx)(sM,{item:e},t)),(0,Q.jsx)(eE.Item,{as:Dt,appLink:e.appLinks.signOut,analyticsData:{id:i.data?.id},analyticsOptions:{actionType:E.Click,location:j.UserOptions,entity:Pe.AppLink,descriptor:L.SignOut},children:oM(`signOut`)})]})]}):e.displaySignUp?(0,Q.jsx)(cM,{...e}):(0,Q.jsx)(lM,{...e})}var dM={...ln,AUDIENCE_FILTER_SELECTED_COUNT:`audience:filter:selected:count`,AUDIENCE_FILTER_SUGGESTIONS:`audience:filter:suggestions`,AUDIENCE_QUERY_PARAMS:`audience:query:params`,DATE_RANGE_QUERY_PARAMS:`date:range:query:params`,HEADER_TITLE:`header:title`,HEADER_ACTIONS:`header:actions`,LEFT_NAV_STATE:`left:nav:state`,ANONYMISE_USERS:`anonymise:users`,CLASSROOM_VIEWS_ALERT:`classroom:views:alert`},fM=mn();pM.defaultProps={checked:!1,label:``,className:``};function pM(e){let{isLabelEllipsis:t}=e,n=Z.useRef(null);return Z.useEffect(()=>{if(n.current){if(e.checked){n.current.indeterminate&&(n.current.indeterminate=!1);return}if(e.indeterminate&&!n.current.indeterminate){n.current.indeterminate=!0;return}!e.indeterminate&&n.current.indeterminate&&(n.current.indeterminate=!1)}},[n.current,e.indeterminate,e.checked]),(0,Q.jsxs)(`div`,{className:`form-check pe-2 ${e.className}`,children:[(0,Q.jsx)(`input`,{ref:n,type:`checkbox`,className:`${e.inputClassName} form-check-input`,id:e.id,name:e.name,checked:e.checked,onChange:e.onChange,disabled:e.disabled,"aria-checked":e.checked,"aria-label":e.ariaLabel}),e.label&&(0,Q.jsx)(`label`,{className:`form-check-label cursor-pointer align-top`,htmlFor:e.id,children:(0,Q.jsx)(`span`,{className:`${t?`clamp-1`:``}`,children:e.label})})]})}var mM={circle:`_circle_15nxd_1`,img:`_img_15nxd_6`};hM.defaultProps={textVariant:`white`};function hM(e){return!e.imageUrl&&!e.svg?(0,Q.jsx)(Q.Fragment,{}):e.imageUrl?(0,Q.jsx)(`div`,{className:`${mM.img} rounded-circle h-100 w-100`,style:{backgroundImage:`url(${e.imageUrl})`},children:`\xA0`}):(0,Q.jsx)(`div`,{className:`${mM.circle} ${e.variant?`bg-${e.variant}`:``} text-${e.textVariant} rounded-circle h-100 w-100 ${e.svgWrapperClassName??``}`,children:(0,Q.jsx)(wt,{svg:e.svg,size:e.svgSize})})}function gM(e){return(0,Q.jsx)(`svg`,{...e,children:(0,Q.jsx)(`path`,{d:`M11 11V7.002a.999.999 0 1 1 2 0V11h3.998a.999.999 0 1 1 0 2H13v3.998a.999.999 0 1 1-2 0V13H7.002a.999.999 0 1 1 0-2z`,fill:`currentColor`})})}function _M(e){return(0,Q.jsx)(`svg`,{...e,children:(0,Q.jsx)(`path`,{fill:`currentColor`,d:`M16.367 7.964c.821-.63 1.453-1.642 1.453-2.78a.486.486 0 0 0-.477-.493h-2.482c-1.264 0-2.367.535-2.933 1.61A4.1 4.1 0 0 0 10.6 4.734a4.16 4.16 0 0 0-1.903-.732c-.263-.02-.689.284-.707.556-.02.272.375.607.637.626.106.01 2.35.231 2.814 2.92-.561-.124-.927-.449-2.3-.449-2.143 0-4.054 1.713-4.054 5.037 0 3.438 2.726 7.31 4.53 7.31 1.73 0 1.63-.506 2.384-.506.758 0 .65.505 2.384.505 1.805 0 4.53-3.868 4.53-7.309 0-2.563-1.114-4.105-2.547-4.727zm-1.506-2.187 1.86-.098c-.222 1.125-1.192 1.65-2.336 1.777l-1.761.198c.221-1.126 1.087-1.816 2.237-1.877m1.69 11.277c-.83 1.286-1.718 1.76-2.167 1.76-.842 0-1.107-.13-1.363-.257-.235-.116-.502-.248-1.02-.248-.519 0-.786.132-1.022.248-.256.127-.52.257-1.363.257-1 0-3.378-2.903-3.378-6.123 0-2.99 1.472-3.852 2.901-3.852 1.367 0 1.491.364 2.384.476.001.314.23.511.477.511.248 0 .478-.198.477-.51.9-.114 1.012-.477 2.384-.477 1.43 0 2.901.863 2.901 3.852 0 1.384-.315 2.974-1.211 4.363`})})}function vM(e){return(0,Q.jsx)(`svg`,{...e,children:(0,Q.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,d:`M15.527 12.013a2.507 2.507 0 1 0 0-5.013 2.507 2.507 0 0 0 0 5.013m0-1.002a1.504 1.504 0 1 1 0-3.008 1.504 1.504 0 0 1 0 3.008m-7.269 1.323a2.256 2.256 0 1 0 0-4.512 2.256 2.256 0 0 0 0 4.512m0-3.51a1.253 1.253 0 1 1 0 2.508 1.253 1.253 0 0 1 0-2.507M4.18 15.35c1.552-2.633 4.699-2.595 6.592-1.46a.502.502 0 0 1-.516.86c-1.588-.952-4.035-.888-5.212 1.11a.25.25 0 0 0 .01.285c.068.098.202.18.372.18h4.587a.501.501 0 1 1 0 1.004H5.426c-.496 0-.938-.242-1.195-.612a1.25 1.25 0 0 1-.051-1.367m9.045-2.03a6 6 0 0 1 2.302-.504c2.344 0 3.865 1.4 4.398 2.859.164.448.044.884-.225 1.19-.26.293-.653.464-1.064.464h-6.217a1.46 1.46 0 0 1-1.068-.457 1.22 1.22 0 0 1-.288-1.172c.351-1.254 1.265-1.978 2.162-2.38m.41.915c-.724.325-1.361.859-1.607 1.736q-.034.119.058.22c.07.075.191.135.333.135h6.217c.142 0 .254-.06.313-.126.048-.055.06-.11.035-.18-.397-1.084-1.556-2.2-3.457-2.2-.386 0-1.16.087-1.892.415`,clipRule:`evenodd`})})}function yM(e){return(0,Q.jsx)(`svg`,{...e,children:(0,Q.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,d:`M11.64 16.055a.77.77 0 0 1 .72 0l3.768 1.998-.808-4.602 3.358-3.249-4.626-.654L12 5.35 9.948 9.548l-4.626.654 3.357 3.25-.807 4.601zm-3.75 3.148a.768.768 0 0 1-1.116-.811l.804-4.583-3.344-3.235a.768.768 0 0 1 .426-1.312l4.607-.652 2.043-4.18a.768.768 0 0 1 1.38 0l2.043 4.18 4.607.652a.768.768 0 0 1 .426 1.312l-3.344 3.235.804 4.583a.768.768 0 0 1-1.116.81L12 17.023z`,clipRule:`evenodd`})})}var bM=function(e){return e.Pink=`colour:0`,e.Orange=`colour:1`,e.Green=`colour:2`,e.Blue=`colour:3`,e.Purple=`colour:4`,e.Indigo=`colour:5`,e}({});function xM(e){switch(e){case bM.Pink:return`pink`;case bM.Orange:return`orange`;case bM.Green:return`green`;case bM.Blue:return`blue`;case bM.Purple:return`purple`;case bM.Indigo:return`indigo`;default:return`pink`}}var SM={avatarContainer:`_avatarContainer_hat3w_1`,cta:`_cta_hat3w_5`},CM=B.encloseNamespace(`shared.audienceFilterItem`),wM=2;function TM(e){let t=e.classrooms?.data;if(t?.length)return t.length<=wM?e.classrooms.data.map(e=>e.name).join(` • `):CM(`severalClassrooms`,{classroom:t[0].name,smartCount:t.length-1})}function EM(e){return e.typeId===fn.User&&e.classrooms?.data?.length?TM(e):``}function DM(e){let t=e.object.typeId===fn.User&&e.object,n=e.object.typeId===fn.Classroom&&e.object,r=e.object.typeId===fn.ClassroomGroup&&e.object,i=e.object.name;t&&(i+=` ${t.surname}`);let a=EM(e.object),o=`d-flex align-items-center justify-content-center text-white rounded-circle h-100 w-100`,s=()=>e.onToggleSelected(!e.selected);return(0,Q.jsx)(`button`,{className:`w-100`,onClick:s,children:(0,Q.jsxs)(`div`,{className:`d-flex align-items-center py-1 ${e.hideCheckbox?`bg-light-hover mx-n3 px-3`:``}`,children:[!e.hideCheckbox&&(0,Q.jsx)(pM,{id:e.object.id,checked:e.selected,onChange:s}),(0,Q.jsxs)(`div`,{className:`${SM.avatarContainer} cursor-pointer me-2`,children:[!!t&&(0,Q.jsx)(vn,{imageUrl:t.avatar?.url,imageCdnUrl:e.imageCdnUrl,initials:wn.getInitials(e.object.name,t.surname)}),!!n&&(0,Q.jsx)(`div`,{className:o,children:e.isPinned?(0,Q.jsx)(hM,{svg:yM,variant:`yellow`,svgSize:ht.Large}):(0,Q.jsx)(hM,{svg:_M,variant:`teal`,svgSize:ht.Large})}),!!r&&(0,Q.jsx)(`div`,{className:o,children:(0,Q.jsx)(hM,{svg:vM,variant:xM(r.metadata?.colour)})})]}),(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`h4`,{className:`text-start font-size-normal fw-normal m-0`,children:i}),!!a&&(0,Q.jsx)(`p`,{className:`text-secondary m-0`,children:a})]}),e.hideCheckbox&&(0,Q.jsxs)(`div`,{className:`${SM.cta} ms-auto text-secondary`,children:[e.selected&&(0,Q.jsx)(wt,{svg:yn}),!e.selected&&(0,Q.jsx)(wt,{svg:gM})]})]})})}var OM={FILTER_PARAM_PREFIX:`filters.`,MAX_CHECKBOXES_PER_COLUMN:10},kM=v(((e,t)=>{function n(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}t.exports=n})),AM=v(((e,t)=>{var n=function(){function e(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return&&o.return()}finally{if(i)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw TypeError(`Invalid attempt to destructure non-iterable instance`)}}();t.exports=function(e){var t=e.data,r=e.multiSection;function i(e){for(e===null?e=0:e++;e<t.length&&t[e]===0;)e++;return e===t.length?null:e}function a(e){for(e===null?e=t.length-1:e--;e>=0&&t[e]===0;)e--;return e===-1?null:e}function o(e){var a=n(e,2),o=a[0],s=a[1];return r?s===null||s===t[o]-1?(o=i(o),o===null?[null,null]:[o,0]):[o,s+1]:t===0||s===t-1?[null,null]:s===null?[null,0]:[null,s+1]}function s(e){var i=n(e,2),o=i[0],s=i[1];return r?s===null||s===0?(o=a(o),o===null?[null,null]:[o,t[o]-1]):[o,s-1]:t===0||s===0?[null,null]:s===null?[null,t-1]:[null,s-1]}function c(e){return o(e)[1]===null}return{next:o,prev:s,isLast:c}}})),jM=v(((e,t)=>{var n=Object.prototype.propertyIsEnumerable;function r(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function i(e){var t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e))),t.filter(function(t){return n.call(e,t)})}t.exports=Object.assign||function(e,t){for(var n,a,o=r(e),s=1;s<arguments.length;s++){n=arguments[s],a=i(Object(n));for(var c=0;c<a.length;c++)o[a[c]]=n[a[c]]}return o}})),MM=v(((e,t)=>{Object.defineProperty(e,`__esModule`,{value:!0});var n=(function(){function e(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return&&o.return()}finally{if(i)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw TypeError(`Invalid attempt to destructure non-iterable instance`)}})();function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}else return Array.from(e)}var a=r(jM()),o=function(e){return e};e.default=function(e){var t=n(Array.isArray(e)&&e.length===2?e:[e,null],2),r=t[0],s=t[1];return function(e){var t=[...arguments].slice(1).map(function(e){return r[e]}).filter(o);return typeof t[0]==`string`||typeof s==`function`?{key:e,className:s?s.apply(void 0,i(t)):t.join(` `)}:{key:e,style:a.default.apply(void 0,[{}].concat(i(t)))}}},t.exports=e.default})),NM=v((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=n;function t(e){"@babel/helpers - typeof";return t=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t(e)}function n(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(e===n)return!1;var i=Object.keys(e),a=Object.keys(n);if(i.length!==a.length)return!0;var o={},s,c;for(s=0,c=r.length;s<c;s++)o[r[s]]=!0;for(s=0,c=i.length;s<c;s++){var l=i[s],u=e[l],d=n[l];if(u!==d){if(!o[l]||u===null||d===null||t(u)!==`object`||t(d)!==`object`)return!0;var f=Object.keys(u),p=Object.keys(d);if(f.length!==p.length)return!0;for(var m=0,h=f.length;m<h;m++){var g=f[m];if(u[g]!==d[g])return!0}}}return!1}})),PM=v((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var n=s(ke()),r=a(t()),i=a(NM());function a(e){return e&&e.__esModule?e:{default:e}}function o(){if(typeof WeakMap!=`function`)return null;var e=new WeakMap;return o=function(){return e},e}function s(e){if(e&&e.__esModule)return e;if(e===null||c(e)!==`object`&&typeof e!=`function`)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function c(e){"@babel/helpers - typeof";return c=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},c(e)}function l(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function f(e){return function(){var t=g(e),n;if(h()){var r=g(this).constructor;n=Reflect.construct(t,arguments,r)}else n=t.apply(this,arguments);return p(this,n)}}function p(e,t){return t&&(c(t)===`object`||typeof t==`function`)?t:m(e)}function m(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function h(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function _(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=function(e){_(r,e);var t=f(r);function r(){return l(this,r),t.apply(this,arguments)}return d(r,[{key:`shouldComponentUpdate`,value:function(e){return(0,i.default)(e,this.props)}},{key:`render`,value:function(){var e=this.props,t=e.section,r=e.renderSectionTitle,i=e.theme,a=e.sectionKeyPrefix,o=r(t);return o?n.default.createElement(`div`,i(`${a}title`,`sectionTitle`),o):null}}]),r}(n.Component);e.default=b,y(b,`propTypes`,{section:r.default.any.isRequired,renderSectionTitle:r.default.func.isRequired,theme:r.default.func.isRequired,sectionKeyPrefix:r.default.string.isRequired})})),FM=v((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var n=s(ke()),r=a(t()),i=a(NM());function a(e){return e&&e.__esModule?e:{default:e}}function o(){if(typeof WeakMap!=`function`)return null;var e=new WeakMap;return o=function(){return e},e}function s(e){if(e&&e.__esModule)return e;if(e===null||c(e)!==`object`&&typeof e!=`function`)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function c(e){"@babel/helpers - typeof";return c=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},c(e)}function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?u(Object(n),!0).forEach(function(t){w(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t){if(e==null)return{};var n=p(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function p(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function m(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),e}function _(e){return function(){var t=x(e),n;if(b()){var r=x(this).constructor;n=Reflect.construct(t,arguments,r)}else n=t.apply(this,arguments);return v(this,n)}}function v(e,t){return t&&(c(t)===`object`||typeof t==`function`)?t:y(e)}function y(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function b(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function S(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&C(e,t)}function C(e,t){return C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},C(e,t)}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var T=function(e){S(r,e);var t=_(r);function r(){var e;m(this,r);var n=[...arguments];return e=t.call.apply(t,[this].concat(n)),w(y(e),`storeItemReference`,function(t){t!==null&&(e.item=t)}),w(y(e),`onMouseEnter`,function(t){var n=e.props,r=n.sectionIndex,i=n.itemIndex;e.props.onMouseEnter(t,{sectionIndex:r,itemIndex:i})}),w(y(e),`onMouseLeave`,function(t){var n=e.props,r=n.sectionIndex,i=n.itemIndex;e.props.onMouseLeave(t,{sectionIndex:r,itemIndex:i})}),w(y(e),`onMouseDown`,function(t){var n=e.props,r=n.sectionIndex,i=n.itemIndex;e.props.onMouseDown(t,{sectionIndex:r,itemIndex:i})}),w(y(e),`onClick`,function(t){var n=e.props,r=n.sectionIndex,i=n.itemIndex;e.props.onClick(t,{sectionIndex:r,itemIndex:i})}),e}return g(r,[{key:`shouldComponentUpdate`,value:function(e){return(0,i.default)(e,this.props,[`renderItemData`])}},{key:`render`,value:function(){var e=this.props,t=e.isHighlighted,r=e.item,i=e.renderItem,a=e.renderItemData,o=f(e,[`isHighlighted`,`item`,`renderItem`,`renderItemData`]);return delete o.sectionIndex,delete o.itemIndex,typeof o.onMouseEnter==`function`&&(o.onMouseEnter=this.onMouseEnter),typeof o.onMouseLeave==`function`&&(o.onMouseLeave=this.onMouseLeave),typeof o.onMouseDown==`function`&&(o.onMouseDown=this.onMouseDown),typeof o.onClick==`function`&&(o.onClick=this.onClick),n.default.createElement(`li`,l({role:`option`},o,{ref:this.storeItemReference}),i(r,d({isHighlighted:t},a)))}}]),r}(n.Component);e.default=T,w(T,`propTypes`,{sectionIndex:r.default.number,isHighlighted:r.default.bool.isRequired,itemIndex:r.default.number.isRequired,item:r.default.any.isRequired,renderItem:r.default.func.isRequired,renderItemData:r.default.object.isRequired,onMouseEnter:r.default.func,onMouseLeave:r.default.func,onMouseDown:r.default.func,onClick:r.default.func})})),IM=v((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var n=c(ke()),r=o(t()),i=o(FM()),a=o(NM());function o(e){return e&&e.__esModule?e:{default:e}}function s(){if(typeof WeakMap!=`function`)return null;var e=new WeakMap;return s=function(){return e},e}function c(e){if(e&&e.__esModule)return e;if(e===null||l(e)!==`object`&&typeof e!=`function`)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function l(e){"@babel/helpers - typeof";return l=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},l(e)}function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?d(Object(n),!0).forEach(function(t){C(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),e}function g(e){return function(){var t=b(e),n;if(y()){var r=b(this).constructor;n=Reflect.construct(t,arguments,r)}else n=t.apply(this,arguments);return _(this,n)}}function _(e,t){return t&&(l(t)===`object`||typeof t==`function`)?t:v(e)}function v(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function y(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function x(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}function S(e,t){return S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},S(e,t)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(e){x(r,e);var t=g(r);function r(){var e;p(this,r);var n=[...arguments];return e=t.call.apply(t,[this].concat(n)),C(v(e),`storeHighlightedItemReference`,function(t){e.props.onHighlightedItemChange(t===null?null:t.item)}),e}return h(r,[{key:`shouldComponentUpdate`,value:function(e){return(0,a.default)(e,this.props,[`itemProps`])}},{key:`render`,value:function(){var e=this,t=this.props,r=t.items,a=t.itemProps,o=t.renderItem,s=t.renderItemData,c=t.sectionIndex,l=t.highlightedItemIndex,d=t.getItemId,p=t.theme,m=t.keyPrefix,h=c===null?m:`${m}section-${c}-`,g=typeof a==`function`;return n.default.createElement(`ul`,u({role:`listbox`},p(`${h}items-list`,`itemsList`)),r.map(function(t,r){var m=r===0,_=r===l,v=`${h}item-${r}`,y=g?a({sectionIndex:c,itemIndex:r}):a,b=f({id:d(c,r),"aria-selected":_},p(v,`item`,m&&`itemFirst`,_&&`itemHighlighted`),{},y);return _&&(b.ref=e.storeHighlightedItemReference),n.default.createElement(i.default,u({},b,{sectionIndex:c,isHighlighted:_,itemIndex:r,item:t,renderItem:o,renderItemData:s}))}))}}]),r}(n.Component);e.default=w,C(w,`propTypes`,{items:r.default.array.isRequired,itemProps:r.default.oneOfType([r.default.object,r.default.func]),renderItem:r.default.func.isRequired,renderItemData:r.default.object.isRequired,sectionIndex:r.default.number,highlightedItemIndex:r.default.number,onHighlightedItemChange:r.default.func.isRequired,getItemId:r.default.func.isRequired,theme:r.default.func.isRequired,keyPrefix:r.default.string.isRequired}),C(w,`defaultProps`,{sectionIndex:null})})),LM=v((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var n=u(ke()),r=c(t()),i=c(AM()),a=c(MM()),o=c(PM()),s=c(IM());function c(e){return e&&e.__esModule?e:{default:e}}function l(){if(typeof WeakMap!=`function`)return null;var e=new WeakMap;return l=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(e===null||y(e)!==`object`&&typeof e!=`function`)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?d(Object(n),!0).forEach(function(t){A(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t){return v(e)||_(e,t)||h(e,t)||m()}function m(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
14
14
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h(e,t){if(e){if(typeof e==`string`)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(n);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}}function g(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _(e,t){if(!(typeof Symbol>`u`||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}function v(e){if(Array.isArray(e))return e}function y(e){"@babel/helpers - typeof";return y=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},y(e)}function b(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e,t,n){return t&&x(e.prototype,t),n&&x(e,n),e}function C(e){return function(){var t=D(e),n;if(E()){var r=D(this).constructor;n=Reflect.construct(t,arguments,r)}else n=t.apply(this,arguments);return w(this,n)}}function w(e,t){return t&&(y(t)===`object`||typeof t==`function`)?t:T(e)}function T(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function E(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function D(e){return D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},D(e)}function O(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}function k(e,t){return k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},k(e,t)}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var j={},M=function(e){return n.default.createElement(`input`,e)},N=function(e){var t=e.containerProps,r=e.children;return n.default.createElement(`div`,t,r)},P={container:`react-autowhatever__container`,containerOpen:`react-autowhatever__container--open`,input:`react-autowhatever__input`,inputOpen:`react-autowhatever__input--open`,inputFocused:`react-autowhatever__input--focused`,itemsContainer:`react-autowhatever__items-container`,itemsContainerOpen:`react-autowhatever__items-container--open`,itemsList:`react-autowhatever__items-list`,item:`react-autowhatever__item`,itemFirst:`react-autowhatever__item--first`,itemHighlighted:`react-autowhatever__item--highlighted`,sectionContainer:`react-autowhatever__section-container`,sectionContainerFirst:`react-autowhatever__section-container--first`,sectionTitle:`react-autowhatever__section-title`},F=function(e){O(r,e);var t=C(r);function r(e){var n;return b(this,r),n=t.call(this,e),A(T(n),`storeInputReference`,function(e){e!==null&&(n.input=e);var t=n.props.inputProps.ref;t&&(typeof t==`function`?t(e):y(t)===`object`&&Object.prototype.hasOwnProperty.call(t,`current`)&&(t.current=e))}),A(T(n),`storeItemsContainerReference`,function(e){e!==null&&(n.itemsContainer=e)}),A(T(n),`onHighlightedItemChange`,function(e){n.highlightedItem=e}),A(T(n),`getItemId`,function(e,t){return t===null?null:`react-autowhatever-${n.props.id}-${e===null?``:`section-${e}`}-item-${t}`}),A(T(n),`onFocus`,function(e){var t=n.props.inputProps;n.setState({isInputFocused:!0}),t.onFocus&&t.onFocus(e)}),A(T(n),`onBlur`,function(e){var t=n.props.inputProps;n.setState({isInputFocused:!1}),t.onBlur&&t.onBlur(e)}),A(T(n),`onKeyDown`,function(e){var t=n.props,r=t.inputProps,i=t.highlightedSectionIndex,a=t.highlightedItemIndex,o=e.keyCode;switch(o){case 40:case 38:var s=o===40?`next`:`prev`,c=p(n.sectionIterator[s]([i,a]),2),l=c[0],u=c[1];r.onKeyDown(e,{newHighlightedSectionIndex:l,newHighlightedItemIndex:u});break;default:r.onKeyDown(e,{highlightedSectionIndex:i,highlightedItemIndex:a})}}),n.highlightedItem=null,n.state={isInputFocused:!1},n.setSectionsItems(e),n.setSectionIterator(e),n.setTheme(e),n}return S(r,[{key:`componentDidMount`,value:function(){this.ensureHighlightedItemIsVisible()}},{key:`UNSAFE_componentWillReceiveProps`,value:function(e){e.items!==this.props.items&&this.setSectionsItems(e),(e.items!==this.props.items||e.multiSection!==this.props.multiSection)&&this.setSectionIterator(e),e.theme!==this.props.theme&&this.setTheme(e)}},{key:`componentDidUpdate`,value:function(){this.ensureHighlightedItemIsVisible()}},{key:`setSectionsItems`,value:function(e){e.multiSection&&(this.sectionsItems=e.items.map(function(t){return e.getSectionItems(t)}),this.sectionsLengths=this.sectionsItems.map(function(e){return e.length}),this.allSectionsAreEmpty=this.sectionsLengths.every(function(e){return e===0}))}},{key:`setSectionIterator`,value:function(e){this.sectionIterator=(0,i.default)({multiSection:e.multiSection,data:e.multiSection?this.sectionsLengths:e.items.length})}},{key:`setTheme`,value:function(e){this.theme=(0,a.default)(e.theme)}},{key:`renderSections`,value:function(){var e=this;if(this.allSectionsAreEmpty)return null;var t=this.theme,r=this.props,i=r.id,a=r.items,c=r.renderItem,l=r.renderItemData,u=r.renderSectionTitle,d=r.highlightedSectionIndex,f=r.highlightedItemIndex,p=r.itemProps;return a.map(function(r,a){var m=`react-autowhatever-${i}-`,h=`${m}section-${a}-`,g=a===0;return n.default.createElement(`div`,t(`${h}container`,`sectionContainer`,g&&`sectionContainerFirst`),n.default.createElement(o.default,{section:r,renderSectionTitle:u,theme:t,sectionKeyPrefix:h}),n.default.createElement(s.default,{items:e.sectionsItems[a],itemProps:p,renderItem:c,renderItemData:l,sectionIndex:a,highlightedItemIndex:d===a?f:null,onHighlightedItemChange:e.onHighlightedItemChange,getItemId:e.getItemId,theme:t,keyPrefix:m,ref:e.storeItemsListReference}))})}},{key:`renderItems`,value:function(){var e=this.props.items;if(e.length===0)return null;var t=this.theme,r=this.props,i=r.id,a=r.renderItem,o=r.renderItemData,c=r.highlightedSectionIndex,l=r.highlightedItemIndex,u=r.itemProps;return n.default.createElement(s.default,{items:e,itemProps:u,renderItem:a,renderItemData:o,highlightedItemIndex:c===null?l:null,onHighlightedItemChange:this.onHighlightedItemChange,getItemId:this.getItemId,theme:t,keyPrefix:`react-autowhatever-${i}-`})}},{key:`ensureHighlightedItemIsVisible`,value:function(){var e=this.highlightedItem;if(e){var t=this.itemsContainer,n=e.offsetParent===t?e.offsetTop:e.offsetTop-t.offsetTop,r=t.scrollTop;n<r?r=n:n+e.offsetHeight>r+t.offsetHeight&&(r=n+e.offsetHeight-t.offsetHeight),r!==t.scrollTop&&(t.scrollTop=r)}}},{key:`render`,value:function(){var e=this.theme,t=this.props,r=t.id,i=t.multiSection,a=t.renderInputComponent,o=t.renderItemsContainer,s=t.highlightedSectionIndex,c=t.highlightedItemIndex,l=this.state.isInputFocused,u=i?this.renderSections():this.renderItems(),d=u!==null,p=this.getItemId(s,c),m=`react-autowhatever-${r}`,h=f({role:`combobox`,"aria-haspopup":`listbox`,"aria-owns":m,"aria-expanded":d},e(`react-autowhatever-${r}-container`,`container`,d&&`containerOpen`),{},this.props.containerProps),g=a(f({type:`text`,value:``,autoComplete:`off`,"aria-autocomplete":`list`,"aria-controls":m,"aria-activedescendant":p},e(`react-autowhatever-${r}-input`,`input`,d&&`inputOpen`,l&&`inputFocused`),{},this.props.inputProps,{onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.props.inputProps.onKeyDown&&this.onKeyDown,ref:this.storeInputReference})),_=o({containerProps:f({id:m,role:`listbox`},e(`react-autowhatever-${r}-items-container`,`itemsContainer`,d&&`itemsContainerOpen`),{ref:this.storeItemsContainerReference}),children:u});return n.default.createElement(`div`,h,g,_)}}]),r}(n.Component);e.default=F,A(F,`propTypes`,{id:r.default.string,multiSection:r.default.bool,renderInputComponent:r.default.func,renderItemsContainer:r.default.func,items:r.default.array.isRequired,renderItem:r.default.func,renderItemData:r.default.object,renderSectionTitle:r.default.func,getSectionItems:r.default.func,containerProps:r.default.object,inputProps:r.default.object,itemProps:r.default.oneOfType([r.default.object,r.default.func]),highlightedSectionIndex:r.default.number,highlightedItemIndex:r.default.number,theme:r.default.oneOfType([r.default.object,r.default.array])}),A(F,`defaultProps`,{id:`1`,multiSection:!1,renderInputComponent:M,renderItemsContainer:N,renderItem:function(){throw Error("`renderItem` must be provided")},renderItemData:j,renderSectionTitle:function(){throw Error("`renderSectionTitle` must be provided")},getSectionItems:function(){throw Error("`getSectionItems` must be provided")},containerProps:j,inputProps:j,itemProps:j,highlightedSectionIndex:null,highlightedItemIndex:null,theme:P})})),RM=v((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mapToAutowhateverTheme=e.defaultTheme=void 0,e.defaultTheme={container:`react-autosuggest__container`,containerOpen:`react-autosuggest__container--open`,input:`react-autosuggest__input`,inputOpen:`react-autosuggest__input--open`,inputFocused:`react-autosuggest__input--focused`,suggestionsContainer:`react-autosuggest__suggestions-container`,suggestionsContainerOpen:`react-autosuggest__suggestions-container--open`,suggestionsList:`react-autosuggest__suggestions-list`,suggestion:`react-autosuggest__suggestion`,suggestionFirst:`react-autosuggest__suggestion--first`,suggestionHighlighted:`react-autosuggest__suggestion--highlighted`,sectionContainer:`react-autosuggest__section-container`,sectionContainerFirst:`react-autosuggest__section-container--first`,sectionTitle:`react-autosuggest__section-title`},e.mapToAutowhateverTheme=function(e){var t={};for(var n in e)switch(n){case`suggestionsContainer`:t.itemsContainer=e[n];break;case`suggestionsContainerOpen`:t.itemsContainerOpen=e[n];break;case`suggestion`:t.item=e[n];break;case`suggestionFirst`:t.itemFirst=e[n];break;case`suggestionHighlighted`:t.itemHighlighted=e[n];break;case`suggestionsList`:t.itemsList=e[n];break;default:t[n]=e[n]}return t}})),zM=v((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var n=l(ke()),r=s(t()),i=s(kM()),a=s(LM()),o=RM();function s(e){return e&&e.__esModule?e:{default:e}}function c(){if(typeof WeakMap!=`function`)return null;var e=new WeakMap;return c=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(e===null||u(e)!==`object`&&typeof e!=`function`)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function u(e){"@babel/helpers - typeof";return u=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},u(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?d(Object(n),!0).forEach(function(t){C(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),e}function g(e){return function(){var t=b(e),n;if(y()){var r=b(this).constructor;n=Reflect.construct(t,arguments,r)}else n=t.apply(this,arguments);return _(this,n)}}function _(e,t){return t&&(u(t)===`object`||typeof t==`function`)?t:v(e)}function v(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function y(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function x(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}function S(e,t){return S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},S(e,t)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(){return!0},T=function(e){return e.trim().length>0},E=function(e){var t=e.containerProps,r=e.children;return n.default.createElement(`div`,t,r)},D=`suggestions-revealed`,O=`suggestions-updated`,k=`suggestion-selected`,A=`input-focused`,j=`input-changed`,M=`input-blurred`,N=`escape-pressed`,P=function(e){x(r,e);var t=g(r);function r(e){var n,i=e.alwaysRenderSuggestions;return p(this,r),n=t.call(this),C(v(n),`onDocumentMouseDown`,function(e){n.justClickedOnSuggestionsContainer=!1;for(var t=e.detail&&e.detail.target||e.target;t!==null&&t!==document;){if(t.getAttribute&&t.getAttribute(`data-suggestion-index`)!==null)return;if(t===n.suggestionsContainer){n.justClickedOnSuggestionsContainer=!0;return}t=t.parentNode}}),C(v(n),`storeAutowhateverRef`,function(e){e!==null&&(n.autowhatever=e)}),C(v(n),`onSuggestionMouseEnter`,function(e,t){var r=t.sectionIndex,i=t.itemIndex;n.updateHighlightedSuggestion(r,i),e.target===n.pressedSuggestion&&(n.justSelectedSuggestion=!0),n.justMouseEntered=!0,setTimeout(function(){n.justMouseEntered=!1})}),C(v(n),`highlightFirstSuggestion`,function(){n.updateHighlightedSuggestion(n.props.multiSection?0:null,0)}),C(v(n),`onDocumentMouseUp`,function(){n.pressedSuggestion&&!n.justSelectedSuggestion&&n.input.focus(),n.pressedSuggestion=null}),C(v(n),`onSuggestionMouseDown`,function(e){n.justSelectedSuggestion||(n.justSelectedSuggestion=!0,n.pressedSuggestion=e.target)}),C(v(n),`onSuggestionsClearRequested`,function(){var e=n.props.onSuggestionsClearRequested;e&&e()}),C(v(n),`onSuggestionSelected`,function(e,t){var r=n.props,i=r.alwaysRenderSuggestions,a=r.onSuggestionSelected,o=r.onSuggestionsFetchRequested;a&&a(e,t);var s=n.props.shouldKeepSuggestionsOnSelect(t.suggestion);i||s?o({value:t.suggestionValue,reason:k}):n.onSuggestionsClearRequested(),n.resetHighlightedSuggestion()}),C(v(n),`onSuggestionClick`,function(e){var t=n.props,r=t.alwaysRenderSuggestions,i=t.focusInputOnSuggestionClick,a=n.getSuggestionIndices(n.findSuggestionElement(e.target)),o=a.sectionIndex,s=a.suggestionIndex,c=n.getSuggestion(o,s),l=n.props.getSuggestionValue(c);n.maybeCallOnChange(e,l,`click`),n.onSuggestionSelected(e,{suggestion:c,suggestionValue:l,suggestionIndex:s,sectionIndex:o,method:`click`});var u=n.props.shouldKeepSuggestionsOnSelect(c);r||u||n.closeSuggestions(),i===!0?n.input.focus():n.onBlur(),setTimeout(function(){n.justSelectedSuggestion=!1})}),C(v(n),`onBlur`,function(){var e=n.props,t=e.inputProps,r=e.shouldRenderSuggestions,i=t.value,a=t.onBlur,o=n.getHighlightedSuggestion(),s=r(i,M);n.setState({isFocused:!1,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!s}),a&&a(n.blurEvent,{highlightedSuggestion:o})}),C(v(n),`onSuggestionMouseLeave`,function(e){n.resetHighlightedSuggestion(!1),n.justSelectedSuggestion&&e.target===n.pressedSuggestion&&(n.justSelectedSuggestion=!1)}),C(v(n),`onSuggestionTouchStart`,function(){n.justSelectedSuggestion=!0}),C(v(n),`onSuggestionTouchMove`,function(){n.justSelectedSuggestion=!1,n.pressedSuggestion=null,n.input.focus()}),C(v(n),`itemProps`,function(e){var t=e.sectionIndex,r=e.itemIndex;return{"data-section-index":t,"data-suggestion-index":r,onMouseEnter:n.onSuggestionMouseEnter,onMouseLeave:n.onSuggestionMouseLeave,onMouseDown:n.onSuggestionMouseDown,onTouchStart:n.onSuggestionTouchStart,onTouchMove:n.onSuggestionTouchMove,onClick:n.onSuggestionClick}}),C(v(n),`renderSuggestionsContainer`,function(e){var t=e.containerProps,r=e.children,i=n.props.renderSuggestionsContainer;return i({containerProps:t,children:r,query:n.getQuery()})}),n.state={isFocused:!1,isCollapsed:!i,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null},n.justPressedUpDown=!1,n.justMouseEntered=!1,n.pressedSuggestion=null,n}return h(r,[{key:`componentDidMount`,value:function(){document.addEventListener(`mousedown`,this.onDocumentMouseDown),document.addEventListener(`mouseup`,this.onDocumentMouseUp),this.input=this.autowhatever.input,this.suggestionsContainer=this.autowhatever.itemsContainer}},{key:`UNSAFE_componentWillReceiveProps`,value:function(e){var t=this.state.highlightedSuggestionIndex===0&&this.props.highlightFirstSuggestion&&!e.highlightFirstSuggestion;(0,i.default)(e.suggestions,this.props.suggestions)?e.highlightFirstSuggestion&&e.suggestions.length>0&&this.justPressedUpDown===!1&&this.justMouseEntered===!1?this.highlightFirstSuggestion():t&&this.resetHighlightedSuggestion():this.willRenderSuggestions(e,O)?(this.state.isCollapsed&&!this.justSelectedSuggestion&&this.revealSuggestions(),t&&this.resetHighlightedSuggestion()):this.resetHighlightedSuggestion()}},{key:`componentDidUpdate`,value:function(e,t){var n=this.props,r=n.suggestions,a=n.onSuggestionHighlighted,o=n.highlightFirstSuggestion;if(!(0,i.default)(r,e.suggestions)&&r.length>0&&o){this.highlightFirstSuggestion();return}if(a){var s=this.getHighlightedSuggestion();s!=t.highlightedSuggestion&&a({suggestion:s})}}},{key:`componentWillUnmount`,value:function(){document.removeEventListener(`mousedown`,this.onDocumentMouseDown),document.removeEventListener(`mouseup`,this.onDocumentMouseUp)}},{key:`updateHighlightedSuggestion`,value:function(e,t,n){var r=this;this.setState(function(i){var a=i.valueBeforeUpDown;return t===null?a=null:a===null&&n!==void 0&&(a=n),{highlightedSectionIndex:e,highlightedSuggestionIndex:t,highlightedSuggestion:t===null?null:r.getSuggestion(e,t),valueBeforeUpDown:a}})}},{key:`resetHighlightedSuggestion`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.setState(function(t){var n=t.valueBeforeUpDown;return{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:e?null:n}})}},{key:`revealSuggestions`,value:function(){this.setState({isCollapsed:!1})}},{key:`closeSuggestions`,value:function(){this.setState({highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!0})}},{key:`getSuggestion`,value:function(e,t){var n=this.props,r=n.suggestions,i=n.multiSection,a=n.getSectionSuggestions;return i?a(r[e])[t]:r[t]}},{key:`getHighlightedSuggestion`,value:function(){var e=this.state,t=e.highlightedSectionIndex,n=e.highlightedSuggestionIndex;return n===null?null:this.getSuggestion(t,n)}},{key:`getSuggestionValueByIndex`,value:function(e,t){var n=this.props.getSuggestionValue;return n(this.getSuggestion(e,t))}},{key:`getSuggestionIndices`,value:function(e){var t=e.getAttribute(`data-section-index`),n=e.getAttribute(`data-suggestion-index`);return{sectionIndex:typeof t==`string`?parseInt(t,10):null,suggestionIndex:parseInt(n,10)}}},{key:`findSuggestionElement`,value:function(e){var t=e;do{if(t.getAttribute&&t.getAttribute(`data-suggestion-index`)!==null)return t;t=t.parentNode}while(t!==null);throw console.error(`Clicked element:`,e),Error(`Couldn't find suggestion element`)}},{key:`maybeCallOnChange`,value:function(e,t,n){var r=this.props.inputProps,i=r.value,a=r.onChange;t!==i&&a(e,{newValue:t,method:n})}},{key:`willRenderSuggestions`,value:function(e,t){var n=e.suggestions,r=e.inputProps,i=e.shouldRenderSuggestions,a=r.value;return n.length>0&&i(a,t)}},{key:`getQuery`,value:function(){var e=this.props.inputProps.value,t=this.state.valueBeforeUpDown;return(t===null?e:t).trim()}},{key:`render`,value:function(){var e=this,t=this.props,r=t.suggestions,i=t.renderInputComponent,s=t.onSuggestionsFetchRequested,c=t.renderSuggestion,l=t.inputProps,u=t.multiSection,d=t.renderSectionTitle,p=t.id,m=t.getSectionSuggestions,h=t.theme,g=t.getSuggestionValue,_=t.alwaysRenderSuggestions,v=t.highlightFirstSuggestion,y=t.containerProps,b=this.state,x=b.isFocused,S=b.isCollapsed,C=b.highlightedSectionIndex,T=b.highlightedSuggestionIndex,E=b.valueBeforeUpDown,O=_?w:this.props.shouldRenderSuggestions,k=l.value,M=l.onFocus,P=l.onKeyDown,F=this.willRenderSuggestions(this.props,`render`),I=_||x&&!S&&F,L=I?r:[],ee=f({},l,{onFocus:function(t){if(!e.justSelectedSuggestion&&!e.justClickedOnSuggestionsContainer){var n=O(k,A);e.setState({isFocused:!0,isCollapsed:!n}),M&&M(t),n&&s({value:k,reason:A})}},onBlur:function(t){if(e.justClickedOnSuggestionsContainer){e.input.focus();return}e.blurEvent=t,e.justSelectedSuggestion||(e.onBlur(),e.onSuggestionsClearRequested())},onChange:function(t){var n=t.target.value,r=O(n,j);e.maybeCallOnChange(t,n,`type`),e.suggestionsContainer&&(e.suggestionsContainer.scrollTop=0),e.setState(f({},v?{}:{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null},{valueBeforeUpDown:null,isCollapsed:!r})),r?s({value:n,reason:j}):e.onSuggestionsClearRequested()},onKeyDown:function(t,n){var i=t.keyCode;switch(i){case 40:case 38:if(S)O(k,D)&&(s({value:k,reason:D}),e.revealSuggestions(),t.preventDefault());else if(r.length>0){var a=n.newHighlightedSectionIndex,o=n.newHighlightedItemIndex,c=o===null?E===null?k:E:e.getSuggestionValueByIndex(a,o);e.updateHighlightedSuggestion(a,o,k),e.maybeCallOnChange(t,c,i===40?`down`:`up`),t.preventDefault()}e.justPressedUpDown=!0,setTimeout(function(){e.justPressedUpDown=!1});break;case 13:if(t.keyCode===229)break;var l=e.getHighlightedSuggestion();if(I&&!_&&e.closeSuggestions(),l!=null){t.preventDefault();var u=g(l);e.maybeCallOnChange(t,u,`enter`),e.onSuggestionSelected(t,{suggestion:l,suggestionValue:u,suggestionIndex:T,sectionIndex:C,method:`enter`}),e.justSelectedSuggestion=!0,setTimeout(function(){e.justSelectedSuggestion=!1})}break;case 27:I&&t.preventDefault();var d=I&&!_;if(E===null){if(!d){var f=``;e.maybeCallOnChange(t,f,`escape`),O(f,N)?s({value:f,reason:N}):e.onSuggestionsClearRequested()}}else e.maybeCallOnChange(t,E,`escape`);d?(e.onSuggestionsClearRequested(),e.closeSuggestions()):e.resetHighlightedSuggestion();break}P&&P(t)}}),te={query:this.getQuery()};return n.default.createElement(a.default,{multiSection:u,items:L,renderInputComponent:i,renderItemsContainer:this.renderSuggestionsContainer,renderItem:c,renderItemData:te,renderSectionTitle:d,getSectionItems:m,highlightedSectionIndex:C,highlightedItemIndex:T,containerProps:y,inputProps:ee,itemProps:this.itemProps,theme:(0,o.mapToAutowhateverTheme)(h),id:p,ref:this.storeAutowhateverRef})}}]),r}(n.Component);e.default=P,C(P,`propTypes`,{suggestions:r.default.array.isRequired,onSuggestionsFetchRequested:function(e,t){if(typeof e[t]!=`function`)throw Error(`'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp`)},onSuggestionsClearRequested:function(e,t){var n=e[t];if(e.alwaysRenderSuggestions===!1&&typeof n!=`function`)throw Error(`'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp`)},shouldKeepSuggestionsOnSelect:r.default.func,onSuggestionSelected:r.default.func,onSuggestionHighlighted:r.default.func,renderInputComponent:r.default.func,renderSuggestionsContainer:r.default.func,getSuggestionValue:r.default.func.isRequired,renderSuggestion:r.default.func.isRequired,inputProps:function(e,t){var n=e[t];if(!n)throw Error(`'inputProps' must be passed.`);if(!Object.prototype.hasOwnProperty.call(n,`value`))throw Error(`'inputProps' must have 'value'.`);if(!Object.prototype.hasOwnProperty.call(n,`onChange`))throw Error(`'inputProps' must have 'onChange'.`)},shouldRenderSuggestions:r.default.func,alwaysRenderSuggestions:r.default.bool,multiSection:r.default.bool,renderSectionTitle:function(e,t){var n=e[t];if(e.multiSection===!0&&typeof n!=`function`)throw Error(`'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp`)},getSectionSuggestions:function(e,t){var n=e[t];if(e.multiSection===!0&&typeof n!=`function`)throw Error(`'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp`)},focusInputOnSuggestionClick:r.default.bool,highlightFirstSuggestion:r.default.bool,theme:r.default.object,id:r.default.string,containerProps:r.default.object}),C(P,`defaultProps`,{renderSuggestionsContainer:E,shouldRenderSuggestions:T,alwaysRenderSuggestions:!1,multiSection:!1,shouldKeepSuggestionsOnSelect:function(){return!1},focusInputOnSuggestionClick:!0,highlightFirstSuggestion:!1,theme:o.defaultTheme,id:`1`,containerProps:{}})})),BM=g(v(((e,t)=>{t.exports=zM().default}))());function VM(e){return(0,Q.jsx)(`svg`,{...e,children:(0,Q.jsx)(`path`,{fill:`currentColor`,d:`M14.053 14.879a6.28 6.28 0 0 1-3.834 1.294C6.784 16.173 4 13.448 4 10.086S6.784 4 10.219 4c3.434 0 6.218 2.725 6.218 6.086 0 1.59-.622 3.037-1.641 4.12l5.056 4.95a.487.487 0 0 1 0 .699.513.513 0 0 1-.715 0zm1.384-4.793C15.437 7.297 13.121 5 10.22 5S5 7.297 5 10.086s2.316 5.087 5.219 5.087c2.902 0 5.218-2.298 5.218-5.087`})})}var HM={inputWithoutHighlight:`_inputWithoutHighlight_1gh2d_1`,suggestionsContainerOpen:`_suggestionsContainerOpen_1gh2d_5`,sectionContainer:`_sectionContainer_1gh2d_12`,suggestionHighlighted:`_suggestionHighlighted_1gh2d_15`,clearButton:`_clearButton_1gh2d_18`,inputWithLeftIcon:`_inputWithLeftIcon_1gh2d_21`,inputWithRightIcon:`_inputWithRightIcon_1gh2d_24`,inputWithTwoRightIcons:`_inputWithTwoRightIcons_1gh2d_27`,iconContainer:`_iconContainer_1gh2d_30`,leftIconContainer:`_leftIconContainer_1gh2d_35`,rightIconContainer:`_rightIconContainer_1gh2d_38`};function UM(e,t,n,r,i){let a=`form-control text-truncate`;return n||(a+=` ${HM.inputWithoutHighlight}`),e===`left`&&(a+=` ${HM.inputWithLeftIcon}`),(e===`right`&&!t||e===`left`&&t||t)&&(a+=` ${HM.inputWithRightIcon}`),e===`right`&&t&&(a+=` ${HM.inputWithTwoRightIcons}`),i===`lg`&&(a+=` form-control-lg`),i===`sm`&&(a+=` form-control-sm`),r&&(a+=` ${r}`),a}function WM(e){let t=`d-inline-block svg-container`;return kt.isFunction(e)?t+` cursor-pointer`:t}function GM(e){let{onClickSearchIcon:t,searchIconPlacement:n,showClearInputIcon:r,onClickClearInput:i,highlightOnFocus:a,className:o,formSize:s,...c}=e,l=()=>(0,Q.jsx)(`div`,{className:`d-inline-block`,children:(0,Q.jsx)(wt,{svg:VM,size:ht.Standard,onClick:t,className:WM(t)})}),u=()=>(0,Q.jsx)(`button`,{className:`d-inline-block text-secondary ${HM.clearButton}`,onMouseUp:i,children:(0,Q.jsx)(wt,{svg:yn,size:ht.Standard,className:WM(i)})});return(0,Q.jsxs)(`div`,{className:`position-relative ${HM.inputContainer}`,children:[n===`left`&&(0,Q.jsx)(`div`,{className:`${HM.iconContainer} ${HM.leftIconContainer}`,children:(0,Q.jsx)(l,{})}),(0,Q.jsx)(`input`,{className:UM(n,r,a,o,s),...c}),(n===`right`||!!r)&&(0,Q.jsxs)(`div`,{className:`${HM.iconContainer} ${HM.rightIconContainer}`,children:[!!r&&(0,Q.jsx)(u,{}),n===`right`&&(0,Q.jsx)(l,{})]})]})}var KM={isNumber(e){return KM.isType(e,`number`)},isString(e){return KM.isType(e,`string`)},isType(e,t){return typeof e===t}},qM=function(e){return e.Local=`local`,e.Recent=`recent`,e.Remote=`remote`,e.Generic=`generic`,e}({});function JM(e,t){return{[qM.Recent]:t,[qM.Local]:e,[qM.Remote]:[],[qM.Generic]:[]}}function YM(e,t){return ae.isObject(e)&&e.hasOwnProperty(t)&&KM.isString(e[t])}function XM(e,t,n,r){let i=e.trim().toLowerCase();return i.length<r?[]:t.filter(e=>!YM(e,n)||!KM.isString(e[n])?!1:e[n].trim().toLowerCase().includes(i))}function ZM(e,t,n,r,i,a){let o=kt.isFunction(e)&&e(t);if(o){if(a){en({resource:o,type:Lt.POST,success:n,error:r,headers:i,data:a(t)});return}en({resource:o,type:Lt.GET,success:n,error:r,headers:i})}}function QM(e,t){e({...JM([],[]),[qM.Generic]:[{type:t,generic:!0}]})}function $M(e,t,n){let r=kt.isFunction(t.formatRemoteSuggestions)?t.formatRemoteSuggestions(e):e;if(!r.length&&t.getEmptyStateComponent){QM(n,`empty`);return}n(e=>({...e,[qM.Remote]:r,[qM.Generic]:[]}))}function eN(e,t,n){return({value:r,reason:i})=>{if((e.allowableSuggestionFetchRequestedReasons?.includes(i)??!0)&&(r.length||n(),!(r.length<e.activationLength))){if(e.local){let n=kt.isFunction(e.getLocalSuggestions)?e.getLocalSuggestions(r,e.local):XM(r,e.local,e.valueKey,e.activationLength);if(!n.length&&e.getEmptyStateComponent){QM(t,`empty`);return}t(e=>({...e,[qM.Local]:n,[qM.Generic]:[]}))}if(typeof e.handleFetchSuggestions==`function`){e.replacePreviousRemoteSuggestions?t(e=>({...JM([],[]),[qM.Remote]:e.remote})):QM(t,`loading`),e.handleFetchSuggestions(r,n=>$M(n,e,t),()=>QM(t,`errored`));return}e.getRemoteUrl&&(e.replacePreviousRemoteSuggestions?t(e=>({...JM([],[]),[qM.Remote]:e.remote})):QM(t,`loading`),ZM(e.getRemoteUrl,r,n=>$M(n,e,t),()=>{QM(t,`errored`)},e.requestHeaders,e.getRemotePostBody))}}}function tN(e,t){return YM(t,e)?t[e]:``}function nN(e,t){return YM(t,e)?(0,Q.jsx)(Q.Fragment,{children:t[e]}):(0,Q.jsx)(Q.Fragment,{})}function rN(e){function t(e){e.stopPropagation()}return(0,Q.jsx)(`div`,{className:`d-flex justify-content-center cursor-default ${e??``}`,onClick:t,children:(0,Q.jsx)(Vn,{as:`span`,animation:`border`,role:`status`})})}function iN(e,t,n,r,i,a){let o=t=>{let n=e[t];return n?n.map(e=>({...e,suggestionType:t})):[]},s=o(qM.Recent),c=o(qM.Local),l=o(qM.Remote),u=o(qM.Generic);if(u.length)return[{data:u,suggestionType:qM.Generic}];if(kt.isFunction(r))return r([...c,...l,...s]);let d=[];return c?.length&&d.push({title:t,data:oN(c,aN(qM.Local,i)),suggestionType:qM.Local}),l?.length&&d.push({title:t,data:oN(l,aN(qM.Remote,i)),suggestionType:qM.Remote}),s?.length&&d.push({title:n,data:oN(s,aN(qM.Recent,i)),suggestionType:qM.Recent}),typeof a==`function`?a(d):d}function aN(e,t){return typeof t==`number`||typeof t==`boolean`?t:t[e]||!1}function oN(e,t){return typeof t==`boolean`||e.length<=t?e:e.slice(0,t)}function sN(e){return e.data}function cN(e,t){if(e.title)return(0,Q.jsx)(`div`,{className:`pb-1 ${t??``}`,children:(0,Q.jsx)(`strong`,{children:e.title})})}function lN(e){return{container:`position-relative`,suggestionsContainerOpen:`bg-white py-1 border rounded ${HM.suggestionsContainerOpen}`,suggestionsList:`list-unstyled m-0`,suggestion:`${e?``:`cursor-pointer`} py-1 px-2`,suggestionHighlighted:e?``:HM.suggestionHighlighted,sectionContainer:`border-bottom py-1 ${HM.sectionContainer}`}}function uN(e,t){let n=typeof e==`function`?e(t):e,r=lN(t);return Object.assign(r,n)}function dN(e,t,n,r,i,a){Z.useEffect(()=>{!e||e.current||(e.current={resetQuery:t,setQuery:n,focusInput:r,blurInput:i,setInputProperty:a})},[e?.current])}function fN(e){let[t,n]=an(`lite:search:bar:focus`,{focus:!1});return Z.useEffect(()=>{!t.focus||!e?.current||(e.current.focus(),n({focus:!1}))},[t.focus]),{focusSearchBar:()=>n({focus:!0}),shouldFocus:t.focus}}var pN=`shared.searchBar`,mN=kt.isFunction;function hN(e){return e.renderAsForm?(0,Q.jsx)(`form`,{onSubmit:e.onSubmit,children:e.children}):(0,Q.jsx)(`div`,{className:`w-100`,children:e.children})}gN.defaultProps={valueKey:`name`,activationLength:3,suggestionLimit:5,recentSearches:[],initialLocalSuggestions:[],searchIconPlacement:`right`,renderAsForm:!0,onSuggestionDependencies:[],shouldUpdateQueryOnSelection:!0,focusInputOnSuggestionClick:!0,resetQueryOnEscape:!0};function gN(e){let t=JM(e.initialLocalSuggestions,e.recentSearches),[n,r]=Z.useState(e.initialQuery||``),[i,a]=Z.useState(t),o=Z.useMemo(()=>iN(i,e.suggestionsHeading,e.recentSearchHeading||B.getPhrase(pN,`recentSearchesHeading`),e.getSections,e.suggestionLimit,e.transformSections),[i]);Z.useEffect(()=>{ae.isEqual(t,i)||n&&n.length>=e?.activationLength||a(t)},[t]),Z.useEffect(()=>{typeof e.onSuggestionUpdated==`function`&&e.onSuggestionUpdated(o)},[o]);let s=Z.useRef(null),c=Z.useRef(!1);fN(s);let[l,u]=Z.useState(e.initialQuery||``),[d,f]=Z.useState(`none`),p=Qn(UE.XS);Z.useEffect(()=>{!e.resetSuggestionsOnNoActivation||!n||n.length>=e.activationLength||m()},[n]),Z.useEffect(()=>{n.length||a(JM(e.initialLocalSuggestions,e.recentSearches))},[e.initialLocalSuggestions,e.recentSearches]),Z.useEffect(()=>{let t=e.initialQuery||``;n!==t&&(r(t),u(t))},[e.initialQuery]),Z.useEffect(()=>{!s.current||!e.autoFocusInput||s.current.focus()},[e.autoFocusInput]);let m=()=>{a(JM(e.initialLocalSuggestions,e.recentSearches))},h=()=>{r(``),u(``)};dN(e.controlsRef,h,r,()=>{s.current?.focus()},()=>{s.current?.blur()},(e,t)=>{s.current&&s.current?.style?.setProperty?.(e,t)});let g=(t,{newValue:n,method:i})=>{i===`type`&&u(n),!(i===`escape`&&(f(`none`),!e?.resetQueryOnEscape))&&([`up`,`down`].includes(i)||(r(n),mN(e.onQueryChange)&&e.onQueryChange(n)))},_=()=>{f(`none`)},v=t=>{t.preventDefault(),mN(e.onSubmit)&&e.onSubmit(n,s.current),e.clearQueryOnSelect&&h()},y=t=>{if(t.key===`Backspace`&&e.onBackspace&&!n){e.onBackspace();return}if(t.key===`ArrowUp`||t.key===`ArrowDown`){c.current=!0;return}},b=()=>{h(),e.resetSuggestionsOnClear&&m(),mN(e.onClickClearInput)&&e.onClickClearInput()},x=({suggestion:t})=>{d===`none`&&!t||(c.current&&e.onArrowKeyUpOrDown&&(c.current=!1,e.onArrowKeyUpOrDown()),f(t?`suggestion`:`custom`))};function S(t){return mN(e.shouldUpdateQueryOnSelection)?e.shouldUpdateQueryOnSelection(t):e.shouldUpdateQueryOnSelection}let C=Z.useMemo(()=>e.debounceTime?kt.debounce(eN(e,a,m),e.debounceTime):eN(e,a,m),[e.debounceTime,...e.onSuggestionDependencies]);function w(t){return mN(e.renderSectionTitle)?e.renderSectionTitle(t,e.sectionTitleClassName):cN(t,e.sectionTitleClassName)}function T(){return mN(e.renderSuggestionsOnInputFocus)?e.renderSuggestionsOnInputFocus(n):e.renderSuggestionsOnInputFocus}function E(){e.onBlur&&e.onBlur(n)}function D(){e.onFocus&&e.onFocus(n)}function O(e){e!==null&&!s.current&&(s.current=e.input)}function k(){return typeof e.alwaysRenderSuggestions==`boolean`?e.alwaysRenderSuggestions:e.alwaysRenderSuggestionsWhenFocused&&n.length>=e.activationLength?document.activeElement===s.current:!1}return(0,Q.jsx)(hN,{onSubmit:v,renderAsForm:!!e.renderAsForm,children:(0,Q.jsx)(BM.default,{ref:O,suggestions:o,onSuggestionsFetchRequested:C,onSuggestionHighlighted:x,onSuggestionsClearRequested:()=>{k()||m()},onSuggestionSelected:(t,{suggestion:n})=>{n.generic||(e.clearQueryOnSelect&&h(),e.onSuggestionSelected(n,s.current,t))},getSuggestionValue:t=>S(t)?tN(e.valueKey,t):n,renderSuggestion:(t,r)=>{if(t.generic){if(t.type===`empty`)return n.length>=e.activationLength&&mN(e.getEmptyStateComponent)?e.getEmptyStateComponent(n):(0,Q.jsx)(Q.Fragment,{});if(t.type===`errored`&&mN(e.getErrorStateComponent)){let t=eN(e,a,m);return e.getErrorStateComponent(()=>t({value:n,reason:`input-changed`}))}if(t.type===`loading`)return rN(e.loadingComponentClassName)}return mN(e.getSuggestionComponent)?e.getSuggestionComponent(t,r):nN(e.valueKey,t)},renderSuggestionsContainer:t=>{let{ref:r,...a}=t.containerProps;if(!e.customScrollbarProps){let o={suggestions:i,query:n,isDropdownOpen:!!t.children};return(0,Q.jsxs)(`div`,{ref:r,...a,onMouseOut:_,children:[t.children,e.getCreateComponent&&e.getCreateComponent({userInput:l,isActive:d===`custom`,resetQuery:h,resetSuggestions:m,...o}),e.getFooterComponent&&e.getFooterComponent(o)]})}return(0,Q.jsx)(fM.Scrollbars,{ref:r,...e.customScrollbarProps,...a,children:t.children})},alwaysRenderSuggestions:k(),focusInputOnSuggestionClick:!p&&e.focusInputOnSuggestionClick,inputProps:{id:e.id,name:e.id,"aria-errormessage":`${e.id}Error`,"aria-label":e.label,placeholder:e.placeholder||B.getPhrase(pN,`placeholder`),value:n,onChange:g,onKeyDown:y,autoFocus:!!e.autoFocusInput,highlightOnFocus:e.highlightInputOnFocus,onClickSearchIcon:!!e.submitOnClickSearchIcon&&v,searchIconPlacement:e.searchIconPlacement,showClearInputIcon:typeof e.showClearInputIcon==`boolean`?e.showClearInputIcon:!!n.length,onClickClearInput:b,formSize:e.size,onBlur:E,onFocus:D,disabled:e.disabled},renderInputComponent:GM,theme:uN(e.theme,!!i.generic.length),multiSection:!0,renderSectionTitle:w,getSectionSuggestions:sN,...e.renderSuggestionsOnInputFocus?{shouldRenderSuggestions:T}:{}})})}var _N=B.encloseNamespace(`shared.audienceFilterSearch`);function vN(e){return(0,Q.jsxs)(`div`,{className:`pt-2 text-center`,children:[(0,Q.jsx)(`p`,{className:`m-0`,children:(0,Q.jsx)(`strong`,{children:_N(`noResults`,{query:e.query})})}),!!e.hasClassroomsFeature&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(`span`,{children:[_N(`noResultsSuggestion`),`\xA0`]}),(0,Q.jsx)(`a`,{href:tM.getLiteArticle(Yj.Classrooms),target:`_blank`,className:`text-info`,children:_N(`learnMore`)})]})]})}function yN(e){function t(t){let n=hn.safeUrlConcat(e.gatewayApiUrl,`v1/search/users`);return hn.urlBuilder(n,{query:t,index:[`user`,`classroom`,`classroom_group`],[`${OM.FILTER_PARAM_PREFIX}customerId`]:e.currentUser.customerId,limit:5})}return(0,Q.jsx)(gN,{onQueryChange:e.setQuery,getRemoteUrl:t,requestHeaders:{authorization:`Bearer ${e.userToken.value}`},formatRemoteSuggestions:e=>e?.results,placeholder:_N(e.limitedFeatureSet||!e.hasClassroomsFeature?`placeholderLimited`:`placeholder`),suggestionsHeading:_N(`searchResults`),alwaysRenderSuggestions:!0,resetSuggestionsOnNoActivation:!0,onSuggestionSelected:()=>{},shouldUpdateQueryOnSelection:!1,getSuggestionComponent:t=>{let n=e.isSelected(t);return(0,Q.jsx)(DM,{object:t,selected:n,onToggleSelected:()=>e.onSelect({object:t,selected:!n}),imageCdnUrl:e.imageCdnUrl,hideCheckbox:e.hideCheckbox,isPinned:e.isPinned?.(t)})},getEmptyStateComponent:t=>(0,Q.jsx)(vN,{query:t,hasClassroomsFeature:e.hasClassroomsFeature}),theme:{container:``,suggestionsContainerOpen:`pt-2`,suggestion:``,suggestionHighlighted:``,sectionContainer:``},loadingComponentClassName:`pt-2`,searchIconPlacement:`left`,autoFocusInput:!0,allowableSuggestionFetchRequestedReasons:[`input-changed`],debounceTime:200,showClearInputIcon:!0,resetSuggestionsOnClear:!0,onClickClearInput:()=>e.setQuery(``)})}var bN={menu:`_menu_1spvf_1`},xN=B.encloseNamespace(`shared.adminAudienceFilterMenu`),SN=500;function CN(e,t){return e?t?e.filter(e=>t.some(t=>t.toString()===e.id.toString())):e:[]}function wN(e){let[t,n]=Z.useState([]);return Z.useEffect(()=>{n(CN(t,e))},[e]),[t,n]}function TN(e){return e.selections.length?(0,Q.jsx)(`ul`,{className:`list-unstyled mb-2`,children:e.selections.map((t,n)=>(0,Q.jsx)(`li`,{children:(0,Q.jsx)(DM,{object:t,selected:!0,onToggleSelected:()=>e.onSelect({object:t,selected:!1}),imageCdnUrl:e.imageCdnUrl})},n))}):(0,Q.jsx)(Q.Fragment,{})}function EN(e){return e.selections.length?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`p`,{className:`mb-2`,children:(0,Q.jsx)(`strong`,{children:xN(`suggestions`)})}),(0,Q.jsx)(`ul`,{className:`list-unstyled m-0`,children:e.selections.map((t,n)=>(0,Q.jsx)(`li`,{children:(0,Q.jsx)(DM,{object:t,selected:e.isSelected(t),onToggleSelected:n=>e.onSelect({object:t,selected:n}),imageCdnUrl:e.imageCdnUrl})},n))})]}):(0,Q.jsx)(Q.Fragment,{})}function DN(e){let[t,n]=wN(e.selectedIds),r=tn.uniq([...e.audienceObjects??[],...t],`id`),i=CN(r,e.selectedIds),a=CN(r,e.suggestedIds),o=a.every(c),s=i.filter(e=>!l(e));function c(t){return e.selectedIds?.length?e.selectedIds.some(e=>e.toString()===t.id.toString()):!1}function l(t){return e.suggestedIds?.length?e.suggestedIds.some(e=>e.toString()===t.id.toString()):!1}function u(){e.onSelect(...a.map(e=>({object:e,selected:!0})))}function d(){e.onSelect()}function f(...t){let r=t.filter(e=>e.selected).map(e=>e.object),i=t.filter(e=>!e.selected).map(e=>e.object.id);n(e=>[...e.filter(e=>!i.includes(e.id)),...r]),e.onSelect(...t)}return(0,Q.jsx)(`div`,{className:bN.menu,children:(0,Q.jsx)(fM.Scrollbars,{autoHeight:!0,autoHeightMax:SN,children:(0,Q.jsxs)(`div`,{className:`px-3`,children:[(0,Q.jsx)(yN,{onSelect:f,isSelected:c,gatewayApiUrl:e.gatewayApiUrl,userToken:e.userToken,imageCdnUrl:e.imageCdnUrl,currentUser:e.currentUser,hasClassroomsFeature:e.hasClassroomsFeature}),(!!i.length||!!a.length)&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`button`,{className:`btn btn-link text-info p-0 mt-2 mb-1`,onClick:o?d:u,children:xN(o?`deselectAll`:`selectAll`)}),(0,Q.jsx)(TN,{selections:s,onSelect:e.onSelect,imageCdnUrl:e.imageCdnUrl}),(0,Q.jsx)(EN,{selections:a,onSelect:e.onSelect,imageCdnUrl:e.imageCdnUrl,isSelected:c})]})]})})})}var ON={menu:`_menu_1spvf_1`},kN=B.encloseNamespace(`shared.insightsAudienceFilterMenu`),AN=300;function jN(e,t){return e?t?e.filter(e=>t.some(t=>t.toString()===e.id.toString())):e:[]}function MN(e){let[t,n]=Z.useState([]);return Z.useEffect(()=>{n(jN(t,e))},[e]),[t,n]}function NN(e){return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`p`,{className:`mb-2 pt-2 px-3`,children:(0,Q.jsx)(`strong`,{children:kN(`filteredBy`)})}),(0,Q.jsx)(`ul`,{className:`list-unstyled px-3 mb-2`,children:e.selections.map((t,n)=>(0,Q.jsx)(`li`,{children:(0,Q.jsx)(DM,{object:t,selected:!0,onToggleSelected:()=>e.onSelect({object:t,selected:!1}),imageCdnUrl:e.imageCdnUrl,hideCheckbox:!0,isPinned:e.isPinned(t)})},n))})]})}function PN(e){return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`p`,{className:`mt-2 mb-2`,children:(0,Q.jsx)(`strong`,{children:kN(`suggested`)})}),(0,Q.jsxs)(`ul`,{className:`list-unstyled m-0`,children:[e.pinned?.map((t,n)=>(0,Q.jsx)(`li`,{children:(0,Q.jsx)(DM,{object:t,selected:e.isSelected(t),onToggleSelected:n=>e.onSelect({object:t,selected:n}),imageCdnUrl:e.imageCdnUrl,hideCheckbox:!0,isPinned:!0})},`pinned-${n}`)),e.selections.map((t,n)=>(0,Q.jsx)(`li`,{children:(0,Q.jsx)(DM,{object:t,selected:e.isSelected(t),onToggleSelected:n=>e.onSelect({object:t,selected:n}),imageCdnUrl:e.imageCdnUrl,hideCheckbox:!0})},`suggestion-${n}`))]})]})}function FN(e){let[t,n]=MN(e.selectedIds),r=tn.uniq([...e.audienceObjects??[],...t],`id`),i=jN(r,e.selectedIds),a=jN(r,e.suggestedIds),o=e.pinnedIds?jN(r,e.pinnedIds):[],[s,c]=Z.useState(``);function l(t){return e.selectedIds?.length?e.selectedIds.some(e=>e.toString()===t.id.toString()):!1}function u(t){return e.pinnedIds?.length?e.pinnedIds.some(e=>e.toString()===t.id.toString()):!1}function d(){e.onSelect()}function f(...t){let r=t.filter(e=>e.selected).map(e=>e.object),i=t.filter(e=>!e.selected).map(e=>e.object.id);n(e=>[...e.filter(e=>!i.includes(e.id)),...r]),e.onSelect(...t)}let p=a.filter(e=>!l(e)),m=o.filter(e=>!l(e));return(0,Q.jsxs)(`div`,{className:ON.menu,children:[(0,Q.jsx)(fM.Scrollbars,{autoHeight:!0,autoHeightMax:AN,children:(0,Q.jsxs)(`div`,{className:`p-3`,children:[(0,Q.jsx)(yN,{onSelect:f,isSelected:l,isPinned:u,gatewayApiUrl:e.gatewayApiUrl,userToken:e.userToken,imageCdnUrl:e.imageCdnUrl,currentUser:e.currentUser,limitedFeatureSet:e.limitedFeatureSet,hasClassroomsFeature:e.hasClassroomsFeature,setQuery:c,hideCheckbox:!0}),s.length<3&&(!!p.length||!!m.length)&&(0,Q.jsx)(PN,{selections:p,pinned:m,onSelect:e.onSelect,imageCdnUrl:e.imageCdnUrl,isSelected:l})]})}),!!i.length&&(0,Q.jsxs)(`div`,{className:`${a.length?`border-top`:``} pb-2`,children:[(0,Q.jsx)(fM.Scrollbars,{autoHeight:!0,autoHeightMax:AN,children:(0,Q.jsx)(NN,{selections:i,onSelect:e.onSelect,imageCdnUrl:e.imageCdnUrl,deselectAll:d,isPinned:u})}),(0,Q.jsxs)(`div`,{className:`d-flex justify-content-between pb-1`,children:[(0,Q.jsx)(`button`,{className:`btn btn-link p-0 text-secondary px-3`,onClick:d,children:kN(`reset`)}),(0,Q.jsx)(`button`,{className:`btn btn-link p-0 text-info px-3`,onClick:e.onClickApply,children:kN(`apply`)})]})]})]})}var IN={menu:`_menu_1spvf_1`},LN=B.encloseNamespace(`shared.teacherAudienceFilterMenu`),RN=500;function zN(e){function t(t){return e.selectedIds?.length?e.selectedIds.some(e=>e==t.id):!1}function n(){e.onSelect(...e.classrooms.map(e=>({object:e,selected:!0})))}function r(){e.onSelect()}let i=e.classrooms.every(t);return(0,Q.jsxs)(`div`,{className:IN.menu,children:[(0,Q.jsx)(`div`,{className:`px-3`,children:(0,Q.jsx)(`button`,{className:`btn btn-link text-info p-0 mb-1`,onClick:i?r:n,children:LN(i?`deselectAll`:`selectAll`)})}),(0,Q.jsx)(fM.Scrollbars,{autoHeight:!0,autoHeightMax:RN,children:(0,Q.jsx)(`div`,{className:`px-3`,children:(0,Q.jsx)(`ul`,{className:`list-unstyled mb-0`,children:e.classrooms.map((n,r)=>(0,Q.jsx)(`li`,{children:(0,Q.jsx)(DM,{object:n,selected:t(n),onToggleSelected:t=>e.onSelect({object:n,selected:t}),imageCdnUrl:e.imageCdnUrl})},r))})})})]})}function BN(e){let t=Bt(tn.chunk(e??[],25).map(e=>Mt.getById(e)));return{users:tn.flatten(t.data),isLoading:!t.hasCompleted,usersResponse:t}}e.Ok;function VN(e,t,n){function r(e){if(e)return kt.isFunction(t)?[...t(e)]:[...e.data]}function i(e){if(e)return n?n(e):e.pagination?.cursors?.next}function a(e){if(e)return e?.count}return Qt((0,Z.useMemo)(()=>t=>{if(!kt.isFunction(e))return;let n=e,o=kt.isFunction(e)&&n(),s=o&&Wt(t,o),c=s&&s.isFetching,l=s&&s.statusCode,u=s&&s.hasCompleted,d=u,f=s&&s.shouldFetch,p=r(s&&s.data),m=i(s&&s.data),h=a(s&&s.data);for(;m&&(s=Wt(t,n(m)),c||=s.isFetching,l=s.statusCode,u=s.hasCompleted,!s.shouldFetch);){let e=r(s.data);e&&p.push(...e);let t=i(s.data);m=t===m?null:t}let g={shouldInitialFetch:f,items:p,nextCursor:m,isFetching:c,statusCode:l,hasCompleted:u,hasFirstPageCompleted:d};return typeof h==`number`&&(g.totalItems=h),g},[e]))}function HN(e,t){let n=e,r=t,i=VN(e&&(e=>n(e).key));return(0,Z.useEffect)(()=>{i&&i.shouldInitialFetch&&t&&r()},[i?.shouldInitialFetch,t]),(0,Z.useEffect)(()=>{!i||!i.nextCursor||i.isFetching||!t||r(i.nextCursor)},[i?.nextCursor,i?.isFetching,t]),i}var UN=function(e){return e[e.Unclassified=0]=`Unclassified`,e[e.Primary=1]=`Primary`,e[e.Secondary=2]=`Secondary`,e[e.K12=3]=`K12`,e[e.Tertiary=4]=`Tertiary`,e[e.NonEducational=5]=`NonEducational`,e[e.Partners=6]=`Partners`,e[e.Internal=7]=`Internal`,e[e.Other=8]=`Other`,e[e.ClickView=254]=`ClickView`,e[e.System=255]=`System`,e}({});function WN(){let e=zt(Mt.currentUser());return zt(!!e.data?.isAuthenticated&&_n.customer(e.data.customerId)).data?.customerType===UN.Tertiary}var GN=B.encloseNamespace(`reports.audienceFilter`);function KN(){let[e]=an(dM.AUDIENCE_QUERY_PARAMS,{}),[t]=an(dM.AUDIENCE_FILTER_SUGGESTIONS,{}),{users:n}=BN(e.users),{users:r}=BN(t.users),i=zt(e.classrooms?.length&&UC.getClassroomsById(e.classrooms)),a=zt(e.classroomGroups?.length&&UC.getClassroomGroupsById(e.classroomGroups)),o=tn.uniq([...n??[],...r??[]],`id`),s=i.data??[],c=a.data??[];return[...o,...s,...c]}function qN(e,t){if(!e.length)return{users:null,classrooms:null,classroomGroups:null};let n={...t};return e.forEach(e=>{let t;switch(e.object.typeId){case fn.User:t=`users`;break;case fn.Classroom:t=`classrooms`;break;case fn.ClassroomGroup:t=`classroomGroups`;break}let r=e.object.id.toString(),i=n[t]??[];e.selected?i.push(r):i=i.filter(e=>e.toString()!==r),n={...n,[t]:tn.uniq(i)}}),n}function JN(e){let t=[];return Object.keys(e).forEach(n=>{e[n]&&t.push(...e[n])}),t}function YN(){let[e]=an(dM.AUDIENCE_QUERY_PARAMS,{}),[t,n]=(0,Z.useState)(ae.deepClone(e));(0,Z.useEffect)(()=>{ae.isEqual(t,e)||n(ae.deepClone(e))},[e]);function r(...e){n(qN(e,t))}return[t,r]}function XN(e){let[t]=an(dM.AUDIENCE_QUERY_PARAMS,{}),[n]=an(dM.AUDIENCE_FILTER_SELECTED_COUNT),r=tn.uniq(t.classrooms??[]),i=tn.uniq(t.classroomGroups??[]),a=tn.uniq(t.users??[]),o=!!r.length&&i.length===0&&a.length===0,s=!!i.length&&r.length===0&&a.length===0,c=!!a.length&&r.length===0&&i.length===0,l=!r.length&&!i.length&&!a.length,u=o&&r.length===1,d=s&&i.length===1,f=zt(u&&UC.classroom(r[0])),p=zt(d&&UC.classroomGroup(i[0])),m=WN();if(l)return GN(e?m?`everyoneInstitution`:`everyoneSchool`:`everyone`);if(u){if(!f.data)return;if(f.data.typeId===fn.Classroom)return f.data.name}if(d){if(!p.data)return;if(p.data.typeId===fn.ClassroomGroup)return p.data.name}if(o)return GN(`classrooms`,{smartCount:r.length});if(s)return GN(`groups`,{smartCount:i.length});if(c)return GN(`users`,{smartCount:a.length});if(typeof n==`number`)return GN(`users`,{smartCount:n});if(!e)return;let h=[];r.length&&h.push(GN(`classrooms`,{smartCount:r.length})),i.length&&h.push(GN(`groups`,{smartCount:i.length})),a.length&&h.push(GN(`users`,{smartCount:a.length}));let g=h.pop();return`${h.join(`, `)} ${GN(`and`)} ${g}`}function ZN(){let e=Ht(),{hasPermissions:t}=Hj(),n=!t(Sn.ViewSchoolAnalytics);function r(e){return UC.userClassrooms(e)}function i(t){Rt(e)(r(t))}return HN(n&&r,i)}var QN={toggle:`_toggle_1any3_1`};function $N(e){let[t]=an(dM.AUDIENCE_QUERY_PARAMS,{}),[n,r]=YN(),[i]=an(dM.AUDIENCE_FILTER_SUGGESTIONS,{}),{hasPermissions:a}=Hj(),{hasClassrooms:o}=An(null),s=a(Sn.ViewSchoolAnalytics),c=a(Sn.ViewMyShares),l=KN(),u=ZN(),d=zt(iC.config()),f=zt(s&&Mt.token()),m=zt(s&&Mt.currentUser()),h=XN(c),[g,_]=Z.useState(!1);function v(){b(),_(!1)}function y(e){_(e),!e&&b()}function b(){YE.updateParams(ae.deepClone(n),{merge:!0}),S.logUserAction({users:n?.users?.length??0,classrooms:n?.classrooms?.length??0,classroomGroups:n?.classroomGroups?.length??0},{actionType:E.Filter,descriptor:p.Audience,location:j.AudienceFilter,entity:Pe.Filter})}function x(){return s?!1:!u.items?.length}let C=s?!!d.data&&!!f.data&&!!m.data:!!d.data&&u.hasCompleted;if(x())return(0,Q.jsx)(Q.Fragment,{});let w=Object.values(t).some(e=>Array.isArray(e)&&e.length>0);return(0,Q.jsxs)(eE,{className:e.className??``,onToggle:y,show:g,children:[(0,Q.jsx)(eE.Toggle,{id:`audience-filter-toggle`,variant:`outline-dark`,className:`no-caret ${QN.toggle} ${w?`bg-dark text-white`:``}`,children:h}),(0,Q.jsx)(eE.Menu,{className:c?`py-0`:`py-2`,align:`end`,children:c?(0,Q.jsx)(FN,{gatewayApiUrl:d.data.gatewayApiUrl,userToken:f.data,audienceObjects:l,selectedIds:JN(n),suggestedIds:JN(i),onSelect:r,imageCdnUrl:d.data.imageCdnUrl,currentUser:m.data,hasClassroomsFeature:o,onClickApply:v}):(0,Q.jsxs)(Q.Fragment,{children:[s&&C&&(0,Q.jsx)(DN,{gatewayApiUrl:d.data.gatewayApiUrl,userToken:f.data,audienceObjects:l,selectedIds:JN(n),suggestedIds:JN(i),onSelect:r,imageCdnUrl:d.data.imageCdnUrl,currentUser:m.data,hasClassroomsFeature:o}),!s&&C&&(0,Q.jsx)(zN,{classrooms:u.items,selectedIds:JN(n),onSelect:r,imageCdnUrl:d.data.imageCdnUrl})]})})]})}var eP=function(e){return e.Screenrights=`screenrights`,e.Era=`era`,e.ClickView=`clickview`,e}({}),tP=function(e){return e[e.Draft=0]=`Draft`,e[e.Published=1]=`Published`,e[e.Archived=2]=`Archived`,e[e.Pending=3]=`Pending`,e[e.Rejected=4]=`Rejected`,e[e.Processing=5]=`Processing`,e}({}),nP=function(e){return e.Custom=`custom`,e.User=`year_group`,e}({}),rP={clip(e,t){return{key:`clip:${e}:${t}`,url:hn.urlBuilder(`{gateway}/v1/objects/${e}`,{query:Cn.CLIP,permissionFilterOption:t})}},videoClips(e,t,n){return{key:`video:${e}:clips:${t}:${n}`,url:hn.urlBuilder(`{gateway}/v1/objects/${e}/clips`,{query:Cn.CLIP_COLLECTION,permissionFilterOption:t,cursor:n})}},clipWithAllInteractives(e,t){return{key:`clip:${e}:${t}:interactives`,url:hn.urlBuilder(`{gateway}/v1/objects/${e}`,{query:`${Cn.CLIP},interactives{status:[0,1]}`,permissionFilterOption:t}),normalize:!1}},publicClip(e,t,n,r){return{key:`clip:${e}:public:${t}`,url:hn.urlBuilder(`/api/objects/${e}`,{query:`_parentVideo,_canBeConsumed,_thumbnail`,permissionFilterOption:Tn.StripMetadata,shareId:t}),bootstrapName:`shared:object:${e}`,success:n,error:r}},sharedClip(e,t,n,r){return{key:`shared:clip:${e}`,url:hn.urlBuilder(`/api/objects/${e}`,{shareId:t,query:Cn.CLIP}),success:n,error:r}},createClip(e,t,n,r,i){return{key:`create:clip`,url:`{gateway}/v1/objects/${e}/clips`,data:t,type:Lt.POST,invalidationKeys:[`videos:${e}`,`my:videos`],success:n,error:r,always:i}},updateClip(e,t,n,r,i){return{key:`update:clip`,url:`{gateway}/v1/objects/${e}`,data:t,type:Lt.PUT,invalidationKeys:[`clip:${e}`],success:n,error:r,always:i}},deleteClip(e,t,n,r,i){return{key:`delete:clip`,url:`{gateway}/v1/objects/${e}`,type:Lt.DELETE,invalidationKeys:[`videos:${t}`,`my:videos`,`videos`],success:n,error:r,always:i}}},iP={interactiveMetadata(e,t){return{url:hn.urlBuilder(`{gateway}/v1/objects/${e}`,{query:Cn.INTERACTIVE,permissionFilterOption:t}),key:`interactive:metadata:${e}:${t}`}},videoInteractives(e,t,n){return{key:`video:${e}:interactives:${t}:${n}`,url:hn.urlBuilder(`{gateway}/v1/objects/${e}/interactives`,{query:Cn.INTERACTIVE_COLLECTION,cursor:n}),publicUrl:hn.urlBuilder(`/api/objects/${e}/interactives`,{query:Cn.INTERACTIVE_COLLECTION,cursor:n})}},sharedInteractiveMetadata(e,t,n,r){return{url:hn.urlBuilder(`/api/objects/${e}`,{shareId:t,query:Cn.INTERACTIVE}),key:`shared:interactive:metadata:${e}`,success:n,error:r}},publicInteractiveMetadata(e,t,n,r){return{url:hn.urlBuilder(`/api/objects/${e}`,{query:`_parentVideo[_rating],_canBeConsumed,_thumbnail`,permissionFilterOption:Tn.StripMetadata,shareId:t}),key:`interactive:metadata:${e}:public:${t}`,bootstrapName:`shared:object:${e}`,success:n,error:r}},interactive(e){return{url:`/api/domain/v1/interactives/${e}`,key:`interactive:${e}`,normalize:!1}},createInteractive(e,t,n){return{url:`/api/domain/v1/interactives`,key:`create:interactive`,type:Lt.POST,invalidationKeys:[`my:videos`],data:e,success:t,error:n}},createInteractiveMetadata(e,t,n,r){return{url:`{gateway}/v1/objects/${e}/interactives`,key:`create:interactive:metadata`,type:Lt.POST,data:t,success:n,error:r}},updateInteractive(e,t,n,r){return{url:`/api/domain/v1/interactives/${e}`,key:`update:interactive`,type:Lt.PUT,data:t,success:n,error:r,formatData:()=>t,invalidationKeys:[`interactive:${e}`]}},updateInteractiveMetadata(e,t,n,r){return{url:`{gateway}/v1/objects/${e}`,key:`update:interactive:metadata`,type:Lt.PUT,data:t,success:n,error:r}},interactiveResultSet(e,t){return{url:`/api/domain/v1/analytics/interactives/${e}/metadata/${t}`,key:`interactive:result:set:${e}:${t}`}},copyInteractive(e,t,n){return{url:`/api/domain/v1/interactives/${e}/copy`,key:`copy:interactive`,type:Lt.POST,invalidationKeys:[`interactive:${e}`,`my:videos`],success:t,error:n}},deleteInteractiveMetadata(e,t,n){return{url:`{gateway}/v1/objects/${e}`,key:`delete:interactive`,type:Lt.DELETE,invalidationKeys:[`interactive:${e}`,`my:videos`,`videos`],success:t,error:n}},removeInteractiveMetadata({libraryId:e,categoryId:t,interactiveMetadataId:n}){return{url:hn.urlBuilder(`/api/domain/v1/libraries/${e}/videos`,{categoryId:t,videoIds:n}),key:`remove:interactive:metadata:${n}`,type:Lt.DELETE,invalidationKeys:[`interactive:${n}`,`my:videos`,`videos`]}},contributeToCommunity(e){return{url:`/api/domain/v2/interactives/${e}/contribute`,key:`contribute:interactive`,type:Lt.POST}},revokefromCommunity(e){return{url:`/api/domain/v2/interactives/${e}/contribute`,key:`contribute:interactive`,type:Lt.DELETE}},isContributed(e){return{url:`/api/domain/v2/interactives/${e}/contributed`,key:`iscontributed:${e}`,normalize:!1}},updateInteraction(e){return{url:`/api/domain/v1/interactions/bulk/${e.id}`,key:`contribute:interactive`,data:e,type:Lt.PUT,invalidationKeys:[`interactive:${e.interactiveId}`]}}},aP=function(e){return e.Series=`series`,e.Playlist=`playlist`,e.Widget=`widget`,e.Folder=`category`,e.CategoryTree=`categoryTree`,e}({}),oP=function(e){return e.Newest=`newest`,e.Oldest=`oldest`,e.RecentlyAdded=`recently_added`,e.AtoZ=`atoz`,e.ZtoA=`ztoa`,e.Series=`series`,e.ProductionYear=`production_year`,e}({}),sP=(e,t)=>`${t?`${t}:`:``}video:sort:${e}`,cP=oP.RecentlyAdded,lP={getValidSortTypeFromParam(e){return Object.values(oP).includes(e)?e:oP.Newest},getOrSetSortType(e,t,n,r){let i=sP(e,r);return(t||!rn.cacheExists(i))&&rn.cacheSet(i,t||n||cP),t||=rn.cacheGet(i),t},getVideoSortParam(e){switch(e){case oP.AtoZ:return`orderby:name`;case oP.ZtoA:return`orderbydesc:name`;case oP.Newest:return`orderbydesc:datecreated`;case oP.Oldest:return`orderby:datecreated`;case oP.RecentlyAdded:return`orderbydesc:timestamp`;case oP.Series:return`orderby:seriessort`;case oP.ProductionYear:return`orderbydesc:productionyear`;default:return}}},uP={sharedVideo:(e,t)=>hn.urlBuilder(`/api/objects/${e}`,{shareId:t,query:Cn.VIDEO}),publicVideo:(e,t)=>hn.urlBuilder(`/api/objects/${e}`,{query:`thumbnail,_canBeConsumed,series,season,_rating,libraries{typeId:[17]}`,permissionFilterOption:Tn.StripMetadata,shareId:t}),getVideosById:e=>hn.urlBuilder(`{gateway}/v1/objects`,{"query.video":Cn.VIDEO_COLLECTION,"query.clip":Cn.CLIP_COLLECTION,"query.interactive":Cn.INTERACTIVE_COLLECTION,id:e}),relatedVideos:e=>{let{videoId:t,context:n,collectionId:r,moviesAndTv:i,limit:a}=e,o={videoId:t,limit:a,query:Cn.VIDEO_COLLECTION};return n&&(n===aP.Widget?o[`context.widgetId`]=r:(o[`context.collectionType`]=n,o[`context.collectionId`]=r)),i&&(o[`context.moviesAndTv`]=!0),hn.urlBuilder(`{gateway}/v1/suggestions/related-videos`,o)}},dP={video(e,t){return{url:hn.urlBuilder(`{gateway}/v1/objects/${e}`,{query:Cn.VIDEO,permissionFilterOption:t}),publicUrl:hn.urlBuilder(`/api/objects/${e}`,{query:xn.VIDEO,permissionFilterOption:t}),key:`videos:${e}:${t}`}},publicVideo(e,t,n,r){return{url:uP.publicVideo(e,t),key:`videos:${e}:public:${t}`,bootstrapName:`shared:object:${e}`,success:n,error:r}},sharedVideo(e,t,n,r){return{url:uP.sharedVideo(e,t),key:`shared:video:${e}`,success:n,error:r}},myVideos(e,t){let{VIDEO_COLLECTION:n,CLIP_COLLECTION:r,INTERACTIVE:i}=Cn,a={query:`(${`videos[${n}]{libraries.typeid:${fn.WorkspaceCollection}}`}|${`clips[${r}]`}|${`interactives[${i}]{status:[${tP.Published},${tP.Draft}]}`}){orderbydesc:id}`,permissionFilterOption:Tn.StripMetadata};return t&&(a.cursor=t),{url:hn.urlBuilder(`{gateway}/v1/objects/${e}/members`,a),key:`my:videos:${t}`}},videos(e,t){return{url:uP.getVideosById(e),key:`videos:by:id:${e.join(`,`)}`,success:t}},watchHistoryVideos(e,t){return{url:uP.getVideosById(e),key:`watch:history:videos:by:id:${e.join(`,`)}`,success:t}},updateVideo(e,t,n,r,i){return{key:`update:video:${e}`,url:`{gateway}/v1/objects/${e}`,type:Lt.PUT,data:t,success:n,error:r,always:i}},videoRatings(e,t){let n=e.map(e=>`id=${e}`);if(n.length)return{url:`/api/domain/v2/objects?query=rating&${n.join(`&`)}`,key:`video:ratings:by:id:${e.join(`,`)}`,normalizeOptions:{namespace:t}}},videoMixinAssocs(e,t){if(e.map(e=>`id=${e}`).length)return{url:hn.urlBuilder(`{gateway}/v1/objects`,{query:`interactives{limit:100},resources{limit:100},links{limit:100},_hasCurriculumLinks`,id:e}),publicUrl:hn.urlBuilder(`/api/objects`,{query:`interactives{limit:100},resources{limit:100},links{limit:100},_hasCurriculumLinks`,id:e}),key:`video:mixin:assocs:${e.join(`,`)}`,normalizeOptions:{namespace:t}}},getRestrictions(e){let t=e.slice().sort();return{url:`/api/domain/v1/restrictedobjects?objectTypeId=${fn.Video}${t.map(e=>`&objectId=${e}`).join(``)}`,key:`restrictions:${t.join(`,`)}`,normalizeOptions:{namespace:`domain`,idAttribute:`objectId`}}},delete(e,t,n){return{url:`{gateway}/v1/objects/${e}`,key:`delete:video:${e}`,type:Lt.DELETE,success:t,error:n,invalidationKeys:[`videos`,`search`]}},deleteBulk(e,t,n,r,i){let a=e.map(e=>`videoIds=${e}`).join(`&`);return{url:`/api/domain/v1/libraries/${t}/videos?${[`categoryId=${n}`,`${a}`].join(`&`)}`,key:`delete:bulk:video:${e.join(`:`)}:${t}:${n}`,type:Lt.DELETE,success:r,error:i,invalidationKeys:[`videos`,`search`]}},relatedVideos(e){let{videoId:t,context:n,collectionId:r,moviesAndTv:i}=e;return{url:uP.relatedVideos(e),key:`related:videos:${t}:${n}:${r}:${i}`}},collectionVideos(e,t,n,r,i,a){let o=lP.getVideoSortParam(t),{VIDEO_COLLECTION:s,CLIP_COLLECTION:c,INTERACTIVE:l}=Cn,u={query:`(${`videos[${s}]`}|${`clips[${c}]`}|${`interactives[${l}]{status:[${tP.Published},${tP.Draft}]}`})${o?`{${o}}`:``}`,permissionFilterOption:Tn.FilterOut,...n?{cursor:n}:{}},d=[`folder`,`videos`,e,n,t].filter(e=>!!e).join(`:`);return{url:hn.urlBuilder(`{gateway}/v1/objects/${e}/members`,u),key:d,success:r,error:i,always:a}},pointsOfInterest(e,t,n,r,i){let a={query:`{limit:100}`,cursor:t};return{url:hn.urlBuilder(`{gateway}/v1/objects/${e}/pointsofinterest`,a),publicUrl:hn.urlBuilder(`/api/objects/${e}/pointsofinterest`,a),key:`pointsofinterest:${e}${t?`:${t}`:``}`,success:n,error:r,always:i}},regionAlternatives(e,t,n,r){return{url:`/api/objects/videos/${e}/region-alternatives`,publicUrl:`/api/objects/videos/${e}/region-alternatives`,key:`video:regionAlternatives:${e}`,normalize:!1,success:t,error:n,always:r}}},fP={minHeight:`_minHeight_kz0hs_1`,restrictionBadgeCustom:`_restrictionBadgeCustom_kz0hs_4`,restrictionBadgeUser:`_restrictionBadgeUser_kz0hs_8`,streamable:`_streamable_kz0hs_12`};function pP(e){return(0,Q.jsx)(`svg`,{...e,children:(0,Q.jsx)(`path`,{d:`M9.006 10h6.028c.006-.32.01-.641.002-.974-.016-.663-.077-1.28-.243-1.808-.164-.52-.424-.934-.83-1.223-.407-.292-1.015-.495-1.943-.495s-1.536.203-1.944.495c-.405.29-.665.703-.83 1.223-.166.528-.227 1.145-.242 1.808-.008.333-.004.655.002.974m7.028 0H17a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1h1.006c-.006-.33-.01-.67-.002-.997.016-.696.08-1.424.289-2.085.21-.67.576-1.29 1.202-1.737.623-.445 1.453-.681 2.525-.681s1.902.236 2.525.681c.626.447.99 1.068 1.202 1.737.208.661.272 1.389.288 2.085.008.326.005.667 0 .997m-1.014 1H7v8h10v-8h-1.98`,fill:`currentColor`})})}function mP(e){return(0,Q.jsxs)(`svg`,{...e,children:[(0,Q.jsx)(`defs`,{children:(0,Q.jsx)(`path`,{id:`a`,d:`M12 19.059A7.059 7.059 0 1 0 12 4.94a7.059 7.059 0 0 0 0 14.118M12 4a8 8 0 1 1 0 16 8 8 0 0 1 0-16m-.229 2.743a.457.457 0 0 0-.457.457v5.486c0 .147.071.286.191.372l3.174 2.27a.457.457 0 1 0 .532-.744l-2.982-2.133V7.2a.457.457 0 0 0-.458-.457`,fill:`currentColor`})}),(0,Q.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,Q.jsx)(`mask`,{id:`b`,fill:`#fff`,children:(0,Q.jsx)(`use`,{href:`#a`})}),(0,Q.jsx)(`use`,{fill:`#000`,fillRule:`nonzero`,href:`#a`}),(0,Q.jsx)(`g`,{fill:`#383838`,mask:`url(#b)`,children:(0,Q.jsx)(`path`,{d:`M0 0h24v24H0z`,fill:`currentColor`})})]})]})}var hP=B.encloseNamespace(`shared.shared-utils`),gP={[nP.Custom]:fP.restrictionBadgeCustom,[nP.User]:fP.restrictionBadgeUser},_P={[nP.Custom]:mP,[nP.User]:pP},vP={[nP.Custom]:`restrictionCustom`,[nP.User]:`restrictionYearGroup`},yP={[nP.Custom]:200,[nP.User]:100},bP={mapRestrictionToClass(e){return e?.value?.length?gP[bP.getWeightedRestriction(e.value).type]:``},mapRestrictionToSvg(e){return e?.value?.length?_P[bP.getWeightedRestriction(e.value).type]:pP},mapRestrictionToText(e,t){if(!e?.value?.length||!t?.length)return``;let n=bP.getWeightedRestriction(e.value),r=t.find(e=>e.value===n.yearGroup),i=vP[n.type];if(n.type===nP.User)return n.yearGroup===null?hP(`restrictionStaff`):r?t.length===1?hP(`restrictionStudents`):hP(i,{yearGroup:r.name}):``;if(n.type===nP.Custom){let e=bP.getRestrictionDuration(n);return e?hP(i,{duration:e,smartCount:e}):hP(`restrictionCustomLessThanDay`,{duration:e,smartCount:1})}return``},getWeightedRestriction(e,t=`highest`){if(e?.length)return e.length===1?e[0]:e.reduce((e,n)=>{let r=yP[e.type],i=yP[n.type];return t===`highest`&&r>i||t===`lowest`&&r<i?e:n})},getRestrictionByType(e,t){if(!bP.hasRestrictions(e))return null;let n=Array.isArray(t)?t:[t],r=e.value.filter(e=>n.includes(e.type));return bP.getWeightedRestriction(r)},getRestrictionDuration(e){if(e.type!==nP.Custom||!e.expiresOn)return;let t=dn.convertUTCToLocal(e.expiresOn);if(t)return dn.diffBetween(t,new Date,`day`)},hasCustomRestriction(e){return!!bP.getRestrictionByType(e,[nP.Custom])},hasRestrictions(e){return!!e?.value?.length}},xP=B.encloseNamespace(`shared.shared-utils`),SP={isVideo(e){return e?.typeId===fn.Video},isClip(e){return e?.typeId===fn.Clip},isInteractive(e){return e?.typeId===fn.Interactive},isVideoTypeArchived(e){return e?.status===tP.Archived},isVideoType(e){return SP.isVideo(e)||SP.isInteractive(e)||SP.isClip(e)},hasSeries(e){return!!e?.series?.id},showVideoGuidance(e){return!e(Sn.StudentExperience)},showInteractivesGuidance(e){return!e||SP.isInteractive(e)?!1:!!e.interactives?.data?.length},showResourcesGuidance(e){return!e||SP.isInteractive(e)?!1:!!((e.resources?.data?.length||0)+(e.links?.data?.length||0))},canViewCurriculumLinks(e,t){return!(e(Sn.ViewCurriculums)&&e(Sn.ManagePresentations))||!t||!SP.isVideo(t)?!1:!!t._hasCurriculumLinks?.value},getVideoProgress(e){return e?.lastProgressPoint?e?.lastProgressPoint:e?._videoProgress?.progress?e?._videoProgress?.progress:0},getThumbnail(e){if(!e)return null;if(SP.isVideo(e))return e.thumbnail;if(e?._thumbnail)return e._thumbnail;if(SP.isClip(e))return e.thumbnail||e._parentVideo?.thumbnail;if(SP.isInteractive(e))return e._parentVideo?.thumbnail||e._parentClip?.thumbnail},getDuration(e){if(e){if(SP.isVideo(e))return e.duration;if(SP.isInteractive(e)){if(e._parentClip?.id)return(e._parentClip.endTime-e._parentClip.startTime)*1e3;if(e._parentVideo?.duration)return e._parentVideo.duration}if(SP.isClip(e))return(e.endTime-e.startTime)*1e3}},getAnalyticsEntity(e){if(SP.isVideo(e))return Pe.Video;if(SP.isInteractive(e))return Pe.Interactive;if(SP.isClip(e))return Pe.Clip},getAnalyticsData(e,t={}){if(SP.isVideo(e))return{...t||{},id:e.id,name:e.name};if(SP.isClip(e)){let n={...t||{},id:e.id,name:e.name};return e._parentVideo?.id&&(n.video={id:e._parentVideo?.id,name:e._parentVideo.name}),n}let n={...t,id:e.id,interactiveId:e.interactiveId,name:e.name,status:e.status,originType:e.originType};return e?._parentClip?.id&&(n.clip={id:e?._parentClip?.id,name:e?._parentClip.name}),e?._parentVideo?.id&&(n.video={id:e?._parentVideo?.id,name:e?._parentVideo.name}),n},getCanBeConsumed(e){return!e||!SP.isVideoType(e)?{canNavigate:!1,canConsume:!1}:e._canBeConsumed?{canNavigate:e._canBeConsumed?.reason===`login-required`&&SP.isVideo(e)||e._canBeConsumed.value===!0,canConsume:e._canBeConsumed.value,reason:e._canBeConsumed?.reason}:{canNavigate:!0,canConsume:!0}},getPrivacyReasoning(e,t=!1){let{canConsume:n,canNavigate:r,reason:i}=SP.getCanBeConsumed(e),a=()=>SP.isClip(e)?xP(`clipParentDeleted`):SP.isInteractive(e)?xP(`interactiveParentDeleted`):xP(`videoDeleted`),o=()=>SP.isClip(e)?xP(`clipLoginRequired`):SP.isInteractive(e)?xP(`interactiveLoginRequired`):xP(`videoLoginRequired`);if(!n&&!r){if(t)return o();switch(i){case`rating-not-allowed`:return xP(`ratingNotAllowed`);case`video-deleted`:return a();case`clickview-private`:return xP(`clickViewPrivate`);case`private`:return xP(`genericCannotAccess`);case`login-required`:return o();case`restricted-access`:return bP.getWeightedRestriction(e._restrictions?.value)?.type===nP.Custom?xP(`awaitingApproval`):xP(`restrictedAccess`);default:return xP(`genericCannotAccess`)}}return SP.isInteractive(e)&&e.status===tP.Draft?xP(`draftInteractive`):``},getTitle(e){if(e.name)return SP.isInteractive(e)&&e.status===tP.Draft?xP(`draftInteractiveTitle`,{name:e.name}):e.name;let{canConsume:t,reason:n}=SP.getCanBeConsumed(e);return xP(!t&&n===`private`?`privateVideo`:!t&&n===`video-deleted`?`videoUnavailable`:`privateVideo`)},getParentVideo(e){if(SP.isVideo(e))return e;if(SP.isClip(e)||SP.isInteractive(e))return e._parentVideo},getRating(e){return SP.isVideo(e)?e._rating?.value||e.rating:e?._parentVideo?._rating?.value},getVideoRequest(e,t,n){if(n){switch(t){case fn.Video:return dP.sharedVideo(e,n);case fn.Clip:return rP.sharedClip(e,n);case fn.Interactive:return iP.sharedInteractiveMetadata(e,n)}R.throw(new y(`Unsupported master type`))}switch(t){case fn.Video:return dP.video(e);case fn.Clip:return rP.clip(e);case fn.Interactive:return iP.interactiveMetadata(e)}R.throw(new y(`Unsupported master type`))},isBroadcast(e){return!!e?.contentLicences?.data?.some(e=>e.systemName===eP.Era||e.systemName===eP.Screenrights)},isUgc(e){return!SP.isBroadcast(e)&&!e?._isClickViewCurated?.value},getReleaseDate(e){return e&&e.dateReleased&&SP.isBroadcast(e)?dn.format(e.dateReleased,`DD/MM/YYYY`):``},canViewOriginalVideo(e){return!!e?._parentVideo?._canBeConsumed?.value},getTrackingCode(e){if(SP.isVideo(e))return e.trackingCode;if(SP.isClip(e)||SP.isInteractive(e))return e._parentVideo.trackingCode},isInExchange(e){return!!e?.libraries?.data?.some(e=>e.typeId===fn.ExchangeCollection)},canViewUploadDate(e){return!(!e||!e.dateCreated||!e._isClickViewCurated||e._isClickViewCurated.value)}};function CP(e,t){return Object.keys(t).map(n=>({application:e,action:t[n]}))}function wP(e,t){if(SP.isVideo(e))return{application:Mn.VIDEOS,action:jn.Videos.VIDEO_VIEWS,args:[e.id],params:t};if(SP.isInteractive(e))return{application:Mn.VIDEOS,action:jn.Videos.INTERACTIVE_VIEWS,args:[e.id],params:t};if(SP.isClip(e))return{application:Mn.VIDEOS,action:jn.Videos.CLIP_VIEWS,args:[e.id],params:t}}var TP=[jn.Default.SHARE,jn.Default.GENERATE_REPORT,jn.Default.CLASSROOM_VIEWS_POPUP],EP=[...CP(Mn.DEFAULT,jn.Default).filter(e=>!TP.includes(e.action))];function DP(){let e=_e.getCurrentAppLink();return!EP.some(t=>t.application===e.application&&t.action===e.action)}var OP={signOut:{application:Mn.DEFAULT,action:jn.Default.LOG_OUT}},kP={container:`_container_7vmq3_1`,title:`_title_7vmq3_4`};function AP(e){let[t]=an(dM.HEADER_TITLE),[n]=an(dM.DATE_RANGE_QUERY_PARAMS,{}),[r]=an(dM.HEADER_ACTIONS,[]),i=DP(),a=`navbar w-100 pt-3 pe-0 d-flex justify-content-between`;return e.className&&(a+=` ${e.className}`),(0,Q.jsx)(`nav`,{className:a,children:(0,Q.jsxs)(`div`,{className:`${kP.container} px-3 mb-3 ${e.containerFluid?`container-fluid`:`container`}`,children:[(0,Q.jsx)(`div`,{className:kP.title,children:!!t&&(0,Q.jsx)(`h1`,{className:`mb-1`,children:t})}),i&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)($N,{className:`me-2`}),(0,Q.jsx)(jj,{dateRangeQueryParams:n,dateRangePresets:nD()})]}),(0,Q.jsx)(Lj,{actions:r,dropdownToggleClassName:`btn btn-outline-dark px-1 ms-2`}),(0,Q.jsx)(`span`,{className:`ms-2`,children:(0,Q.jsx)(uM,{productId:Pn.Analytics,appLinks:OP})})]})})}var jP=function(e){return e[e.Open=0]=`Open`,e[e.Collapsed=1]=`Collapsed`,e[e.Hidden=2]=`Hidden`,e}({}),MP={[$n.Thumbnails]:{width:1280,height:720},[$n.Banners]:{width:1200,height:222},[$n.Covers]:{width:512,height:512},[$n.Posters]:{width:1e3,height:1500},[$n.TallPosters]:{width:1080,height:1920},[$n.HeroBanners]:{width:1920,height:640},[$n.None]:{width:1,height:1},[$n.Avatars]:{width:256,height:256},[$n.Logos]:{width:128,height:128}},NP={onFileSelect(e,t,n,r){if(!t||!t.length)return;if(t.length>1){alert(`Please only select one file`);return}let i=t[0];if(!i.type.startsWith(`image/`)){alert(`Please select an image file`);return}let a=new FileReader;a.addEventListener(`load`,()=>NP.onReaderLoad(a,e,n,r)),a.readAsDataURL(i)},onReaderLoad(e,t,n,r){let i=new Image;i.src=e.result;let a=r?.width??MP[t].width,o=r?.height??MP[t].height;i.addEventListener(`load`,()=>{NP.isImageValid(t,i,r)&&kt.isFunction(n)?n(i):alert(`Image too small: minimum dimensions are ${a} x ${o}`)})},isImageValid(e,t,n){let r=n?.width??MP[e].width,i=n?.height??MP[e].height;return!(r&&t.width<r||i&&t.height<i)},mapImageTypeToString(e){switch(e){case $n.Avatars:return`avatars`;case $n.Thumbnails:return`thumbnails`;case $n.Logos:return`logos`;case $n.Covers:return`covers`;case $n.Posters:return`posters`;case $n.TallPosters:return`tallposters`;case $n.HeroBanners:return`herobanners`;case $n.None:default:return``}}},PP={createLogo(e,t){return{key:`upload:logo`,url:`/api/domain/v2/objects/${e}/logo`,type:Lt.POST,data:{fileId:t.id.toString(),fileIdType:t.fileIdType},invalidationKeys:[`school:logo`]}},removeLogo(e,t,n,r){return{url:`/api/domain/v2/objects/${e}/logo/${t}`,key:`remove:logo:${t}`,type:Lt.DELETE,success:n,error:r,invalidationKeys:[`school:logo`]}},logo(e){return{key:`school:logo`,url:`{gateway}/v1/objects/${e}/logo`}}};function FP(){let{setDataUrl:e,getImage:t,imageUploaded:n}=Z.useContext(VE),r=Jt(),i=zt(Mt.currentUser()),a=zt(i.data&&PP.logo(i.data.customerId));Z.useEffect(()=>{n&&o()},[n]);async function o(){let e=t();e&&await r(PP.createLogo(i.data.customerId,e))}function s(){_e.trigger({application:Mn.DEFAULT,action:jn.Default.REMOVE_LOGO,params:{logoId:a.data.id,customerId:i.data.customerId}})}return{schoolLogo:a.data?.url,schoolName:i.data.customerName,setDataUrl:e,deleteLogo:s}}var IP={uploadContainer:`_uploadContainer_1484v_1`,logo:`_logo_1484v_6`,logoContainer:`_logoContainer_1484v_11`,actions:`_actions_1484v_11`,actionsItem:`_actionsItem_1484v_19`},LP=`reportsShared.schoolLogo`,RP=B.encloseNamespace(LP);function zP(e){let{schoolLogo:t,schoolName:n,setDataUrl:r,deleteLogo:i}=FP(),a=WN(),o=Z.useRef(null),s=Z.useCallback(e=>{e&&(o.current=e)},[]),c=()=>{o.current.value=null,o.current.click()};function l(e){r(e.src),_e.trigger({application:Mn.DEFAULT,action:jn.Default.UPLOAD_IMAGE,args:[$n.Logos]})}return(0,Q.jsxs)(`div`,{className:`d-flex flex-column align-items-center gap-2 mt-3 mx-1 mb-2 px-2 ${IP.logoContainer}`,children:[t&&(0,Q.jsxs)(`div`,{className:`${IP.logo} ${e.isCollapsed?`w-100 h-100`:``} position-relative`,children:[(0,Q.jsx)(`div`,{className:`${IP.actions} position-absolute w-100 h-100 rounded-circle`,children:(0,Q.jsx)(Lj,{actions:[{label:RP(`uploadImage`),onClick:c},{label:RP(`removeImage`),className:`text-danger`,onClick:i}],className:`d-flex position-absolute top-0 opacity-100 ${IP.actionsItem}`,dropdownToggleClassName:`flex-grow-1 text-white bg-transparent`,dropdownToggleSvgSize:ht.Standard})}),(0,Q.jsx)(`img`,{src:t,className:`rounded-circle bg-white w-100 h-100`,alt:RP(`altText`)})]}),!t&&(0,Q.jsx)(`div`,{children:(0,Q.jsxs)(`button`,{onClick:c,className:`${IP.uploadContainer} ${e.isCollapsed?`w-fit h-fit`:``} d-flex flex-column align-items-center justify-content-center rounded-circle text-white opacity-75 opacity-100-hover`,children:[(0,Q.jsx)(wt,{svg:gM,size:ht.Large}),!e.isCollapsed&&(0,Q.jsx)(`span`,{className:`d-none d-lg-block small`,children:(0,Q.jsx)(Kt,{namespace:LP,phrase:a?`addInstitutionCrest`:`addSchoolCrest`})})]})}),n&&!e.isCollapsed&&(0,Q.jsx)(`p`,{className:`text-white text-center fw-medium mb-0`,children:n}),(0,Q.jsx)(`input`,{type:`file`,className:`file-select d-none`,accept:Tw.IMAGES,ref:s,onChange:e=>NP.onFileSelect($n.Logos,e.target.files,l)})]})}var BP={leftNavItem:`_leftNavItem_1djt5_1`,active:`_active_1djt5_9`};function VP(e){let t=`d-flex align-items-center mx-2 my-1 px-2 rounded ${BP.leftNavItem}`;return e.collapsed?t+=` justify-content-center py-2`:t+=` py-2`,e.active&&(t+=` ${BP.active}`),(0,Q.jsxs)(Dt,{className:t,appLink:e.appLink,title:e.name,children:[(0,Q.jsx)(wt,{svg:e.svg}),!e.collapsed&&(0,Q.jsx)(`span`,{className:`ms-2`,children:e.name})]})}var HP=`M317.302 140.594C356.23 163.069 356.23 219.257 317.302 241.731L87.9302 374.159C36.1933 404.029 -21.7046 346.131 8.16593 294.394L50.9108 220.359C61.3416 202.293 61.3416 180.034 50.9109 161.967L8.16512 87.9294C-21.7052 36.1925 36.1927 -21.7052 87.9295 8.16518L317.302 140.594Z`;function UP(){return(0,Q.jsxs)(`svg`,{viewBox:`0 0 458 383`,children:[(0,Q.jsx)(`title`,{children:`ClickView Logo`}),(0,Q.jsx)(`path`,{d:HP,fill:`#F8981D`})]})}function WP(){return(0,Q.jsxs)(`svg`,{viewBox:`0 0 2420 383`,children:[(0,Q.jsx)(`title`,{children:`ClickView Logo`}),(0,Q.jsx)(`path`,{fill:`#f8981d`,d:HP}),(0,Q.jsx)(`path`,{fill:`#fff`,d:`M611.506 37.93c32.531 0 61.155 7.86 85.686 23.732 24.569 15.898 42.448 38.445 53.64 67.43l2.553 6.609h-55.686l-1.301-2.829c-7.699-16.724-18.767-29.458-33.196-38.377l-.11-.069-.014-.01c-13.652-8.57-30.142-13.096-49.669-13.371l-1.903-.014c-19.522 0-36.885 4.537-52.213 13.522-15.305 8.973-27.345 21.774-36.129 38.544l-.015.029c-8.74 16.421-13.202 35.916-13.202 58.645 0 22.414 4.447 41.908 13.188 58.62l.847 1.564.825 1.465c8.613 15.034 20.102 26.719 34.486 35.152 15.328 8.985 32.691 13.521 52.213 13.521l1.906-.013c19.595-.268 36.134-4.686 49.812-13.045 14.419-8.92 25.48-21.649 33.175-38.367l1.3-2.826h55.708l-2.58 6.622c-11.198 28.71-29.078 51.11-53.635 67l-.091.058-.031.017c-24.507 15.544-53.089 23.239-85.564 23.239-27.772 0-53.222-6.451-76.248-19.403l-.022-.013-.007-.004-.117-.066-.021-.015c-22.685-13.233-40.648-31.506-53.841-54.737-13.252-23.335-19.83-49.632-19.83-78.769 0-29.136 6.578-55.434 19.83-78.768 13.169-23.468 31.098-41.866 53.747-55.1l.016-.012.205-.118c23.032-13.244 48.497-19.843 76.288-19.843M853.29 344.778h-48.522V37.935h48.522zm108.133 0H912.9V125.985h48.523zM937.586 37.93c8.392 0 15.617 3.072 21.365 9.12l.557.571c5.665 5.944 8.519 13.236 8.519 21.603 0 8.638-3.042 16.128-9.076 22.174-5.748 6.047-12.973 9.121-21.365 9.121-8.649 0-16.147-3.05-22.197-9.099-6.049-6.049-9.098-13.547-9.098-22.196 0-8.648 3.049-16.147 9.098-22.196s13.548-9.098 22.197-9.098m883.954 306.848h-48.52V125.985h48.52zM1797.71 37.93c8.39 0 15.61 3.072 21.36 9.12l.56.571c5.66 5.944 8.52 13.236 8.52 21.603 0 8.638-3.04 16.128-9.08 22.174-5.75 6.047-12.97 9.121-21.36 9.121-8.65 0-16.15-3.05-22.2-9.099s-9.1-13.547-9.1-22.196c0-8.648 3.05-16.147 9.1-22.196s13.55-9.098 22.2-9.098m-685.63 88.056c.18-.001.55-.007.8-.007h.02l1.27.007c.22-.001.58-.007.87-.007l1.23.005c25.71.192 47.32 6.421 64.47 19.041 17.63 12.79 29.21 30.547 34.76 52.985l1.49 6.025h-50.78l-1-3.522c-.03-.077-.03-.089-.05-.138-3.68-8.706-9.16-15.814-16.48-21.406l-.01-.012-.08-.064c-9.02-7.051-20.36-10.823-34.31-11.058l-1.42-.011c-18.69.005-33.52 6.889-44.94 20.703v.013l-.07.082c-3.49 4.155-6.47 8.877-8.93 14.186-3.21 9.073-4.87 19.779-4.87 32.199l.01 1.197.01 1.149c.2 11.745 1.9 21.943 5 30.664 2.43 5.277 5.37 9.989 8.8 14.153 11.43 13.858 26.29 20.763 45.01 20.763l1.37-.011c14-.221 25.37-3.876 34.4-10.69 7.21-5.445 12.74-12.723 16.56-21.979.01-.015.01-.03.02-.051l1.03-3.483h50.85l-1.64 6.118c-5.82 21.7-17.53 39.258-35.06 52.487l-.14.103-.04.022c-17.34 12.78-38.78 19.123-63.98 19.319l-1.21.005c-.21 0-.53-.004-.68-.005l-1.45.009h-.03c-.4 0-.82-.006-1.16-.009l-.91.005h-.02c-20.35 0-38.67-4.463-54.82-13.501l-.03-.013-.09-.053c-15.42-8.796-27.62-21.14-36.53-36.934l-.01-.014-.01-.014-.82-1.481-.01-.013-.01-.014c-8.73-16.072-13.15-34.684-13.42-55.69v-.023l-.01-1.99v-.026c0-21.601 4.42-40.66 13.45-57.012v-.005l.82-1.481.01-.013.01-.015c8.91-15.794 21.11-28.138 36.53-36.934l.09-.053.03-.014c16.15-9.038 34.47-13.501 54.82-13.501h.02zm483.02 158.82 89.96-246.876h51.35l-115.78 306.848h-51.48L1453.37 37.93h51.77zm375.01-158.827c19.94 0 37.78 4.354 53.37 13.192 15.55 8.809 27.53 21.032 35.85 36.604l.66 1.205.01.013v.013c7.04 13.033 10.99 27.498 11.91 43.315q.21 3.607.21 7.301v1.239c-.05 6.217-.43 12.744-1.13 19.576l-.45 4.359h-156.39c.98 8.318 3.05 15.659 6.15 22.076a60 60 0 0 0 8.24 10.724c11.63 11.489 25.5 17.231 41.88 17.334 13.51-.053 24.36-3.558 32.89-10.222 6.94-5.49 12.28-12.323 16.04-20.561l1.3-2.839h50.42l-1.73 6.17c-5.75 20.496-17.3 37.279-34.51 50.223l-.01.009-.02.009-.01.011c-17.36 12.794-38.78 19.047-63.92 19.047l-.21-.001-.07-.001-.46.002h-.02c-19.96 0-38.04-4.488-54.1-13.557l-.01-.004-.01-.006-.01-.004v-.003c-15.78-9.051-28.19-21.853-37.22-38.29l-.02-.029-.08-.162c-8.77-16.289-13.23-34.896-13.5-55.694v-.026l-.01-1.968v-.025c0-21.589 4.32-40.745 13.12-57.32 8.66-16.295 20.76-28.919 36.28-37.747l.74-.418c16.08-9.071 34.4-13.544 54.82-13.545m-1.7 41.839c-14.73 0-27.09 4.424-37.36 13.179-8.74 7.62-14.31 17.908-16.51 31.206h108.22c-.65-8.377-3-15.493-6.92-21.486l-.04-.065-.01-.01c-4.73-7.419-11.19-12.981-19.49-16.726l-.02-.007-.04-.023-.05-.023-.04-.017c-8.2-3.989-17.41-6.028-27.74-6.028m372.35 176.959h-46.41l-45.08-148.561-45.08 148.561h-46.39l-68.68-218.797h49.14l42.94 156.786 46.36-156.786h46.09l45.2 156.683L2361 125.98l47.88-.002zM1309.64 210.55l73.43-84.564h61.94l-103.03 109.019 103.39 109.773h-60.74l-74.99-84.406v84.406h-48.52V37.935h48.52z`})]})}var GP={logoContainer:`_logoContainer_clarp_1`},KP={application:Mn.DASHBOARD,action:jn.Dashboard.HOME};function qP(e){return e.isNavCollapsed?(0,Q.jsx)(Q.Fragment,{}):(0,Q.jsx)(Dt,{appLink:KP,className:`${GP.logoContainer} navbar-brand d-inline-block`,children:(0,Q.jsx)(WP,{})})}function JP(e){return(0,Q.jsx)(`svg`,{...e,children:(0,Q.jsx)(`path`,{fill:`currentColor`,fillRule:`nonzero`,d:`M19 15.75a.75.75 0 0 1 .102 1.493L19 17.25H5a.75.75 0 0 1-.102-1.493L5 15.75zm0-5a.75.75 0 0 1 .102 1.493L19 12.25H5a.75.75 0 0 1-.102-1.493L5 10.75zm0-5a.75.75 0 0 1 .102 1.493L19 7.25H5a.75.75 0 0 1-.102-1.493L5 5.75z`})})}function YP(e){return(0,Q.jsx)(`div`,{className:yt(`text-light ms-1`,e.isCollapsed?`me-1`:`me-3`),children:(0,Q.jsx)(wt,{svg:JP,onClick:e.onClick,className:`svg-container cursor-pointer`,size:ht.Large})})}function XP(e){return(0,Q.jsx)(`svg`,{...e,children:(0,Q.jsx)(`path`,{fill:`currentColor`,d:`M20 6.818C20 5.814 19.105 5 18 5H6c-1.105 0-2 .814-2 1.818v7.727c0 1.004.895 1.818 2 1.818h3.91l-.347 1.707H8.5q-.513 0-.513.459 0 .457.513.471h7q.524-.014.524-.471 0-.459-.524-.459h-1.003l-.367-1.707H18c1.105 0 2-.814 2-1.818zm-7.625.227c.207 0 .375.204.375.455v6.363c0 .252-.168.455-.375.455h-.75c-.207 0-.375-.203-.375-.455V7.5c0-.251.168-.455.375-.455zm2.875 2.728c0-.251-.168-.455-.375-.455h-.75c-.207 0-.375.204-.375.455v4.09c0 .252.168.455.375.455h.75c.207 0 .375-.203.375-.455zm-5 1.363c0-.25-.168-.454-.375-.454h-.75c-.207 0-.375.203-.375.454v2.727c0 .252.168.455.375.455h.75c.207 0 .375-.203.375-.455zm2.824 5.227.332 1.706h-2.813l.326-1.706zM6 5.863h12c.552 0 1 .408 1 .91v7.818l-.007.106c-.057.452-.48.803-.993.803H6l-.117-.006C5.386 15.44 5 15.057 5 14.59V6.773l.007-.106c.057-.452.48-.803.993-.803`})})}function ZP(e){return(0,Q.jsx)(`svg`,{...e,children:(0,Q.jsx)(`path`,{fill:`currentColor`,d:`M16.657 16.576a1 1 0 0 1 .143-1.024l.076-.094a6.292 6.292 0 1 0-2.12 1.688l.082-.04a1 1 0 0 1 .834-.022l1.473.631zm1.788 1.126c.355.83-.483 1.669-1.313 1.313l-1.848-.792a7.492 7.492 0 1 1 2.524-2.008z`})})}function QP(e){return(0,Q.jsx)(`svg`,{...e,children:(0,Q.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,d:`M5.433 6.767a.444.444 0 0 0-.444.444v9.578c0 .245.199.444.444.444h13.134a.444.444 0 0 0 .445-.444V7.21a.444.444 0 0 0-.445-.444zm13.233-.99c.737 0 1.333.598 1.333 1.334v9.778c0 .736-.596 1.333-1.333 1.333H5.333A1.333 1.333 0 0 1 4 16.89V7.11c0-.736.597-1.333 1.333-1.333zM10.25 9.407a.2.2 0 0 0-.028.101v4.986a.195.195 0 0 0 .297.166l4.079-2.493a.195.195 0 0 0 0-.332l-4.08-2.493a.195.195 0 0 0-.268.065`})})}var $P=function(e){return e.Dashboard=`Dashboard`,e.Logins=`Logins`,e.Videos=`Videos`,e}({}),eF=function(e){return e[e.Setting=0]=`Setting`,e[e.FeatureFlag=1]=`FeatureFlag`,e}({}),tF=25,nF=dn.hourToTimeString(8),rF=dn.hourToTimeString(16),iF=dn.guessTimezone();function aF(e){let t=An(e),n=Gt(),r=t.isLoadingSettings,i=t.hasStudentReach,a=t.studentReachClassroomSize||tF,o=t.schoolStartTime||nF,s=t.schoolEndTime||rF,c=t.timezone||iF;async function l(e){await Promise.all([t.updateCustomerSettingAsync({name:On.StudentReachClassroomSize,kind:eF.Setting,value:e.classroomSize}),t.updateCustomerSettingAsync({name:On.SchoolStartTime,kind:eF.Setting,value:e.schoolStartTime}),t.updateCustomerSettingAsync({name:On.SchoolEndTime,kind:eF.Setting,value:e.schoolEndTime}),t.updateCustomerSettingAsync({name:On.Timezone,kind:eF.Setting,value:e.timezone})]),n([`video:views:v2`,`view:key`])}return{isLoading:r,hasClassroomViews:i,classroomSize:a,schoolStartTime:o,schoolEndTime:s,timezone:c,updateSettingsAsync:l}}function oF(){let[e]=an(dM.DATE_RANGE_QUERY_PARAMS),[t]=an(dM.AUDIENCE_QUERY_PARAMS,{});return{...e,...t}}function sF(e){let t=zt(Mt.currentUser()),n=oF(),r=aF(null),i=e===`video-views`?{displayStudentReach:r.hasClassroomViews,classroomSize:r.classroomSize,schoolStartTime:r.schoolStartTime,schoolEndTime:r.schoolEndTime,timezone:r.timezone}:{};return{userId:n.users,groupId:[...n.classrooms??[],...n.classroomGroups??[]],customerId:t.data?.customerId,...aD(nD(),n),...i}}var cF={[$P.Dashboard]:{application:Mn.DASHBOARD,action:jn.Dashboard.HOME},[$P.Logins]:{application:Mn.LOGINS,action:jn.Logins.HOME},[$P.Videos]:{application:Mn.VIDEOS,action:jn.Videos.HOME}},lF={[$P.Dashboard]:CP(Mn.DASHBOARD,jn.Dashboard),[$P.Logins]:CP(Mn.LOGINS,jn.Logins),[$P.Videos]:CP(Mn.VIDEOS,jn.Videos)},uF=B.encloseNamespace(`reportsShared.leftNav`);function dF(e,t){return{...e,params:t}}function fF(e){let[t,n]=(0,Z.useState)(null),r=EC.getCurrentRoute()?.appLink;return(0,Z.useEffect)(()=>{let t=null;Object.keys(e).find(n=>{if(!t&&e[n].find(e=>e.application===r.application&&e.action===r.action)){t=$P[n];return}}),n(t)},[r]),t}function pF(e){let t=oF(),n=fF(lF);return[{name:uF(WN()?`institutionAnalytics`:`schoolAnalytics`),appLink:dF(cF[$P.Dashboard],t),svg:Wj,collapsed:e,active:n===$P.Dashboard},{name:uF(`logins`),appLink:dF(cF[$P.Logins],t),svg:XP,collapsed:e,active:n===$P.Logins},{name:uF(`videoViews`),appLink:dF(cF[$P.Videos],t),svg:QP,collapsed:e,active:n===$P.Videos}]}function mF(){return{name:uF(`giveFeedback`),appLink:{application:Mn.DEFAULT,action:jn.Default.GIVE_FEEDBACK},svg:ZP}}var hF={leftNav:`_leftNav_kpkmk_1`,headerHidden:`_headerHidden_kpkmk_10`,leftNavCollapsed:`_leftNavCollapsed_kpkmk_13`},gF=B.encloseNamespace(`reportsShared.leftNav`);function _F(e){let t=e.navState===jP.Collapsed,n=pF(t),r=mF(),{hasPermissions:i,isLoaded:a}=Hj(),o=`${hF.leftNav} py-3 d-flex flex-column`;if(t&&(o+=` ${hF.leftNavCollapsed}`),e.headerHidden&&(o+=` ${hF.headerHidden}`),e.navState===jP.Hidden)return(0,Q.jsx)(Q.Fragment,{});let s=i(Sn.ViewSchoolAnalytics),c=i(Sn.ViewMyShares);return(0,Q.jsxs)(`nav`,{className:o,children:[(0,Q.jsxs)(`div`,{className:`d-flex align-items-center mx-3 mb-4 justify-content-start`,children:[(0,Q.jsx)(YP,{onClick:()=>e.toggleNav(!t),isCollapsed:t}),(0,Q.jsx)(qP,{isNavCollapsed:t})]}),c&&(0,Q.jsx)(zP,{isCollapsed:t}),a&&s&&!t&&(0,Q.jsx)(`div`,{className:`text-center mb-3`,children:(0,Q.jsx)(`span`,{className:`border rounded-pill px-2 text-nowrap border-white text-light`,children:gF(`adminRole`)})}),n.map((e,n)=>(0,Q.jsx)(VP,{name:e.name,appLink:e.appLink,svg:e.svg,active:e.active,collapsed:t},n)),(0,Q.jsx)(`div`,{className:`mt-auto mx-3 mb-2 pt-4`,children:(0,Q.jsxs)(Dt,{appLink:r.appLink,className:`text-light w-100 d-flex align-items-center justify-content-center gap-2 ${t?``:`border rounded py-1`}`,children:[(0,Q.jsx)(wt,{svg:r.svg,size:ht.Large}),!t&&r.name]})})]})}var vF={container:`_container_2feax_1`},yF=B.encloseNamespace(`reportsDefault.error`),bF=33,xF={application:Mn.DASHBOARD,action:jn.Dashboard.HOME};function SF(e){Zn({title:e.error?.heading||yF(`defaultPageTitle`)});let[t]=Z.useState(Tt.getRandomInt(bF)+1),n=e.imageUrl??Nn.Errors.SmallAvatar.replace(`{number}`,t.toString()),r=e.error?.cta!==!1&&(e.error?.cta?.appLink?e.error?.cta.appLink:!e.error?.cta?.url&&xF);return e.error?(0,Q.jsxs)(nr,{className:`bg-white ${vF.container}`,children:[(0,Q.jsx)(nr.Image,{src:n}),(0,Q.jsx)(nr.Heading,{children:e.error.heading}),!!e.error.description&&(0,Q.jsx)(nr.Info,{children:e.error.description}),e.error.cta!==!1&&(0,Q.jsx)(nr.Cta,{text:e.error.cta?.text??yF(`goHome`),className:`btn btn-dark ${e.error.description?`mt-n2`:``}`,appLink:r,href:e.error.cta?.url})]}):(0,Q.jsx)(Q.Fragment,{})}var CF={content:`_content_1v4bd_1`,collapsedNavHeader:`_collapsedNavHeader_1v4bd_4`,collapsedNavContent:`_collapsedNavContent_1v4bd_5`,openNavHeader:`_openNavHeader_1v4bd_8`,openNavContent:`_openNavContent_1v4bd_9`,mask:`_mask_1v4bd_12`,alertContainer:`_alertContainer_1v4bd_15`,lockedWidth:`_lockedWidth_1v4bd_21`};function wF(e,t,n){let r=e?jP.Collapsed:jP.Open;return n?{state:jP.Hidden,showMask:!1}:t?{state:r,showMask:!e,contentClass:CF.collapsedNavContent,headerClass:CF.collapsedNavHeader}:{state:r,showMask:!1,contentClass:e?CF.collapsedNavContent:CF.openNavContent,headerClass:e?CF.collapsedNavHeader:CF.openNavHeader}}function TF(e){let[t,n]=an(dM.LEFT_NAV_STATE,e.state);return Z.useEffect(()=>{n(e.state)},[e.state]),t}function EF(e){let[t,n]=Z.useState(e);return Z.useEffect(()=>{n(e)},[e]),[t,n]}function DF(){let{appLink:e}=EC.getCurrentRoute(),{from:t,to:n,rangeName:r}=ae.isObject(e.params)?e.params:{},[i,a]=an(dM.DATE_RANGE_QUERY_PARAMS,{}),o={};t&&(o.from=t),n&&(o.to=n),r&&(o.rangeName=r),Z.useEffect(()=>{ae.isEqual(i,o)||a(o)},[i,o])}function OF(){let{appLink:e}=EC.getCurrentRoute(),t=ae.isObject(e.params)?e.params:{},[n,r]=an(dM.AUDIENCE_QUERY_PARAMS,{}),i=e=>{let n=t[e];if(n)return Array.isArray(n)?n:[n]},a={users:i(`users`),classrooms:i(`classrooms`),classroomGroups:i(`classroomGroups`)};Z.useEffect(()=>{ae.isEqual(n,a)||r(a)},[n,a])}function kF(e){DE(),qE(),DF(),OF();let t=KE(),n=t===UE.XS,r=t===UE.SM,i=t===UE.XXL,a=!i&&t!==UE.XL,[o,s]=EF(!i),c=wF(o,n||r,!!e.hideNav),l=TF(c),u=`${a?`container-fluid`:`container`} px-3`;return e.hideHeader&&(u+=` pt-5`),Z.useEffect(()=>{document.body.style.overflowY=`scroll`},[]),(0,Q.jsx)(RE,{renderError:()=>SF({error:new pC}),children:(0,Q.jsxs)(`div`,{className:CF.lockedWidth,children:[!e.hideHeader&&(0,Q.jsx)(AP,{className:c.headerClass,containerFluid:a}),(0,Q.jsx)(_F,{navState:l,toggleNav:s,headerHidden:e.hideHeader}),(0,Q.jsx)(`div`,{className:`${CF.content} ${c.contentClass??``}`,children:(0,Q.jsxs)(`div`,{className:u,children:[(0,Q.jsx)(RE,{throwError:pC,children:e.contentChild}),(0,Q.jsx)(JE,{})]})}),(0,Q.jsx)(RE,{throwError:GE,children:e.popupChild}),c.showMask&&(0,Q.jsx)(`div`,{className:`modal-backdrop show ${CF.mask}`}),!!e.alertChild&&(0,Q.jsx)(`div`,{className:CF.alertContainer,children:e.alertChild})]})})}function AF(e){return(0,Q.jsx)(Vt,{store:e.store,children:(0,Q.jsx)(Xn,{children:(0,Q.jsx)(BE,{children:(0,Q.jsx)(HE,{children:(0,Q.jsx)(kF,{...e})})})})})}var jF=class extends LE{constructor(e){super(e),this.childComponents={}}get name(){return`ReportsLayoutView`}get title(){return!1}get template(){return()=>`<div id="dialog-region"></div><div class="layout-region"></div>`}static getCacheKey(){return SC.REPORTS_LAYOUT}regions(){return{layout:{el:`.layout-region`,replaceEl:!0}}}getChildComponents(){return{contentChild:this.childComponents[xC.CONTENT],popupChild:this.childComponents[xC.POPUP],alertChild:this.childComponents[xC.ALERT],store:this.options.store,hideNav:this.options.hideNav,hideHeader:this.options.hideHeader}}unsetRegion(e){delete this.childComponents[e],this.renderLayout()}closePopup(){this.unsetRegion(xC.POPUP)}showChildView(e,t){this.childComponents[e]=t,this.renderLayout()}renderLayout(){super.showChildView(`layout`,(0,Q.jsx)(AF,{...this.getChildComponents()}))}};function MF(e,t){e.registerLayout(SC.REPORTS_LAYOUT,jF),t(e)}function NF(e,t,n){f.setUpVariables({isDevelopment:!1}),n(e,t)}function PF(e){var t,n=e.Symbol;return typeof n==`function`?n.observable?t=n.observable:(t=n(`observable`),n.observable=t):t=`@@observable`,t}var FF=PF(typeof self<`u`?self:typeof window<`u`?window:typeof globalThis<`u`?globalThis:typeof module<`u`?module:Function(`return this`)()),IF=function(){return Math.random().toString(36).substring(7).split(``).join(`.`)},LF={INIT:`@@redux/INIT`+IF(),REPLACE:`@@redux/REPLACE`+IF(),PROBE_UNKNOWN_ACTION:function(){return`@@redux/PROBE_UNKNOWN_ACTION`+IF()}};function RF(e){if(typeof e!=`object`||!e)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function zF(e,t,n){var r;if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(`It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.`);if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(`Expected the enhancer to be a function.`);return n(zF)(e,t)}if(typeof e!=`function`)throw Error(`Expected the reducer to be a function.`);var i=e,a=t,o=[],s=o,c=!1;function l(){s===o&&(s=o.slice())}function u(){if(c)throw Error(`You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.`);return a}function d(e){if(typeof e!=`function`)throw Error(`Expected the listener to be a function.`);if(c)throw Error(`You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.`);var t=!0;return l(),s.push(e),function(){if(t){if(c)throw Error(`You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.`);t=!1,l();var n=s.indexOf(e);s.splice(n,1)}}}function f(e){if(!RF(e))throw Error(`Actions must be plain objects. Use custom middleware for async actions.`);if(e.type===void 0)throw Error(`Actions may not have an undefined "type" property. Have you misspelled a constant?`);if(c)throw Error(`Reducers may not dispatch actions.`);try{c=!0,a=i(a,e)}finally{c=!1}for(var t=o=s,n=0;n<t.length;n++){var r=t[n];r()}return e}function p(e){if(typeof e!=`function`)throw Error(`Expected the nextReducer to be a function.`);i=e,f({type:LF.REPLACE})}function m(){var e,t=d;return e={subscribe:function(e){if(typeof e!=`object`||!e)throw TypeError(`Expected the observer to be an object.`);function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}},e[FF]=function(){return this},e}return f({type:LF.INIT}),r={dispatch:f,subscribe:d,getState:u,replaceReducer:p},r[FF]=m,r}function BF(e,t){var n=t&&t.type;return`Given `+(n&&`action "`+String(n)+`"`||`an action`)+`, reducer "`+e+`" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`}function VF(e){Object.keys(e).forEach(function(t){var n=e[t];if(n(void 0,{type:LF.INIT})===void 0)throw Error(`Reducer "`+t+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(n(void 0,{type:LF.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(`Reducer "`+t+`" returned undefined when probed with a random type. `+(`Don't try to handle `+LF.INIT+` or other actions in "redux/*" `)+`namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function HF(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];typeof e[i]==`function`&&(n[i]=e[i])}var a=Object.keys(n),o;try{VF(n)}catch(e){o=e}return function(e,t){if(e===void 0&&(e={}),o)throw o;for(var r=!1,i={},s=0;s<a.length;s++){var c=a[s],l=n[c],u=e[c],d=l(u,t);if(d===void 0){var f=BF(c,t);throw Error(f)}i[c]=d,r||=d!==u}return r?i:e}}function UF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WF(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n}function GF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?WF(n,!0).forEach(function(t){UF(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WF(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function KF(){var e=[...arguments];return e.length===0?function(e){return e}:e.length===1?e[0]:e.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function qF(){var e=[...arguments];return function(t){return function(){var n=t.apply(void 0,arguments),r=function(){throw Error(`Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.`)},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},a=e.map(function(e){return e(i)});return r=KF.apply(void 0,a)(n.dispatch),GF({},n,{dispatch:r})}}}var JF={X_APP_VERSION:`X-App-Version`};function YF(t){let{oldVersionError:n,authenticationError:r}=t;return function(t){return i=>a=>{let o=a;if(a.type===$t.API_ERROR&&r&&o?.xhr?.status===e.Unauthorized)return R.throw(new r(`dark`));if(a.type!==$t.API_RESPONSE){i(a);return}let s=t.getState().applicationData.version,c=o?.xhr?.getResponseHeader(JF.X_APP_VERSION);n&&s&&c&&c!==s&&R.throw(new n(s,c)),i(a)}}}function XF(e,t){if(!ae.isObject(t.xhr))return e;let n=t.xhr.getResponseHeader(JF.X_APP_VERSION);return n?{...e,version:n}:e}var ZF={version:null};function QF(e=ZF,t){switch(t.type){case $t.API_RESPONSE:return XF(e,t)}return e}function $F(e,t){return typeof t.payload.dataOrKey==`string`&&t.payload.keyData!==void 0?{...e,[t.payload.viewModelKey]:{...e[t.payload.viewModelKey],[t.payload.dataOrKey]:t.payload.keyData}}:(typeof t.payload.dataOrKey==`object`&&Array.isArray(t.payload.dataOrKey),{...e,[t.payload.viewModelKey]:t.payload.dataOrKey})}function eI(e={},t){switch(t.type){case sn.UPDATE:return $F(e,t)}return e}var tI=`shared.authentication`,nI=class extends Ln{constructor(e){super(B.getPhrase(tI,`title`)),this.btnVariant=e}get name(){return`AuthenticationError`}get dialogOptions(){return{title:B.getPhrase(tI,`heading`),text:B.getPhrase(tI,`body`),buttons:[{text:B.getPhrase(tI,`reload`),className:`btn btn-${this.btnVariant}`,success:!0}]}}onDone(){ue.Reload()}},rI=g(ie()),iI={hasTokenExpired(e){return typeof e?.localTTL==`number`?new Date().getTime()>e.localTTL:!1},getToken(e,t){let n=Wt(e.getState(),jt.TOKEN),r=iI.hasTokenExpired(n.data);if((n.shouldFetch||r)&&!n.isFetching){It(e.dispatch,t);return}if(n.isFetching){let n=!1,r=e.subscribe(()=>{r(),!n&&(n=!0,iI.getToken(e,t))});return}n.hasError?(t.error?.({status:n.statusCode,getResponseHeader:null}),t.always?.()):(t.success?.(n.data),t.always?.())},async getTokenAsync(e){return sI.getToken()||new Promise((t,n)=>{iI.getToken(e,Mt.token(e=>t(e),e=>n(e)))})}},aI=rI.default.Router.prototype._routeToRegExp(`share/embed/:id(/)`),oI=rI.default.Router.prototype._routeToRegExp(`videos/embed/:id(/)`),sI={applyToken(e){let t=EC.getCurrentRoute().appLink,n=_e.getHref({...t,params:{...typeof t.params==`object`?t.params:{},embedToken:e?.value,localTTL:e?.localTTL,a:!0}});ue.PageLoad(n)},getToken(){let e=rI.default.history.getFragment(ue.GetCurrentPath()),t=aI.test(e),n=oI.test(e);if(!t&&!n||!window.URLSearchParams)return null;let r=new URLSearchParams(window.location.search),i=r.get(`embedToken`),a=parseInt(r.get(`localTTL`));if(!i||!a)return null;let o={value:i,localTTL:isNaN(a)?null:a};return iI.hasTokenExpired(o)?null:o}};function cI(){let e=sI.getToken();return e?function(t,n){if(!t.resource.startsWith(`/`))return n(t);iI.hasTokenExpired(e)||(t.headers={...t.headers??{},authorization:`Bearer ${e.value}`}),n(t)}:(e,t)=>t(e)}var lI={"{gateway}":`gatewayApiUrl`,"{image}":`imageCdnUrl`,"{integrations}":`integrationsApiUrl`,"{player}":`playerApiUrl`};function uI(e){return async function(t,n){let r=Object.keys(lI).find(e=>t.resource.startsWith(e));if(!r)return n(t);function i(e,i){let a=e[lI[r]],o={...t,resource:gS.safeUrlConcat(a,t.resource.split(`${r}/`)[1])};i?.value&&(o.headers={...o.headers??{},authorization:`Bearer ${i.value}`}),n(o)}try{let t=await Zt(e,iC.config());if(!(await Zt(e,Mt.currentUser())).isAuthenticated){i(t);return}i(t,await iI.getTokenAsync(e))}catch{n(t)}}}var dI=/\(([^()]*)\)/g;function fI(e,t){return function(n,r){r({...n,resource:n.resource.replace(e,t)})}}function pI(e,t){function n(e){return function(n){let r=t[n];if(typeof r==`string`){e.useAsync(fI(n,r));return}r&&e.useAsync(r)}}return function(t,r){let i=new te,a=new te,o={resource:t.resource,store:e},s={resource:null,store:e},c=t.data?.ogql;if(decodeURIComponent(t.resource).replace(dI,n(i)),c){let e=JSON.stringify(t.data.ogql);s.resource=e,e.replace(dI,n(a))}i.goAsync(o,e=>{a.goAsync(s,n=>{r({...t,resource:e.resource,data:c?{...t.data,ogql:JSON.parse(n.resource)}:t.data})})})}}function mI(e,t){return function(n){let r=new te;r.useAsync(uI(e.store)),r.useAsync(pI(e.store,t)),r.useAsync(cI()),r.goAsync(n,e=>{en(e)})}}var hI=[On.ShareToGoogleClassroom,On.ShareToMicrosoftTeams,On.ShareOverrideRestrictions,On.HasClassrooms,On.HasStudentReach,On.StudentReachClassroomSize,On.SchoolStartTime,On.SchoolEndTime,On.Timezone];function gI(e){return function(t,n){let r=hI.map(e=>`type=${e}`).join(`&`),i=t.resource.replace(e,r);n({...t,resource:i})}}var _I={[Cn.CLIP]:`_parentVideo`,[Cn.CLIP_COLLECTION]:`_parentVideo[_rating],_thumbnail`,[Cn.INTERACTIVE]:`_parentClip,_parentVideo`,[Cn.INTERACTIVE_COLLECTION]:`_parentVideo[_rating],_parentClip,_thumbnail`,[Cn.VIDEO_COLLECTION]:`thumbnail,series`,"(customerSettings)":gI(`(customerSettings)`),"(userSettings)":``};function vI(e,t){let n=HF({flightData:Yt,viewModelData:eI,applicationData:QF}),r=Ut({fetchData:mI(e,_I),bootstrappedData:window.bootstrapData||{},defaultCacheDuration:sE.STANDARD}),i=YF({authenticationError:nI,oldVersionError:_E});function a(n){e.registerStore(n),t(),delete window.bootstrapData}a(zF(n,qF(r,i)))}async function yI(e,t){try{let[n,r]=await Promise.all([Zt(e.store,iC.config()),Zt(e.store,Mt.currentUser())]);tM.initialize({product:Pn.Primary,liteSupportSiteUrl:n.liteSupportSiteUrl,instanceRegion:r.instanceRegion}),t(e)}catch{t(e)}}var bI={locale(){return{url:`/api/locale`,key:`locale`,bootstrapName:jt.LOCALE}},phrases(){return{url:`/api/phrases`,key:`phrases`,bootstrapName:jt.PHRASES}}};async function xI(e,t){let n;try{n=Zt(e.store,bI.phrases());let t=Zt(e.store,bI.locale());B.setConfig({locale:await t,phrases:await n})}catch(e){console.error(e)}finally{t(e)}}var SI=new Ie({region:`#app`,layoutService:new r({})});SI.addInitializationStep(vI).addInitializationStep(xI).addInitializationStep(tw).addInitializationStep(iw).addInitializationStep(dw).addInitializationStep(dE).addInitializationStep(lC).addInitializationStep(MF).addInitializationStep(IE).addInitializationStep(yI),SI.addStartUpStep(NF),SI.start();export{MC as $,hM as A,GE as B,XM as C,So as Ct,vM as D,xM as E,Ha as Et,Uj as F,eE as G,VE as H,Hj as I,kw as J,aT as K,Rj as L,dM as M,tM as N,_M as O,Yj as P,VC as Q,gj as R,gN as S,Bs as St,VM as T,Qa as Tt,kE as U,UE as V,yE as W,Tw as X,Dw as Y,pw as Z,iP as _,Vd as _t,eF as a,iC as at,WN as b,Vl as bt,MP as c,MS as ct,bP as d,Iy as dt,EC as et,mP as f,qp as ft,lP as g,Gd as gt,dP as h,$d as ht,aF as i,cC as it,pM as j,gM as k,wP as l,mS as lt,fP as m,zp as mt,oF as n,pC as nt,UP as o,rC as ot,pP as p,Kp as pt,Yw as q,sF as r,dC as rt,PP as s,VS as st,SF as t,CC as tt,SP as u,vx as ut,rP as v,nd as vt,nN as w,uo as wt,VN as x,dl as xt,tP as y,Wl as yt,sj as z};
|
|
15
|
-
//# sourceMappingURL=app-
|
|
15
|
+
//# sourceMappingURL=app-m6P7KXE1.js.map
|