iobroker.admin 7.1.2 → 7.1.3
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/README.md +7 -4
- package/adminWww/asset-manifest.json +13 -13
- package/adminWww/index.html +1 -1
- package/adminWww/static/css/{3210.f6c8a5fc.chunk.css → 4684.f5525d8f.chunk.css} +2 -2
- package/adminWww/static/css/4684.f5525d8f.chunk.css.map +1 -0
- package/adminWww/static/js/2534.89c71e34.chunk.js +2 -0
- package/adminWww/static/js/2534.89c71e34.chunk.js.map +1 -0
- package/adminWww/static/js/4684.e5f7632b.chunk.js +2 -0
- package/adminWww/static/js/4684.e5f7632b.chunk.js.map +1 -0
- package/adminWww/static/js/5056.9247882b.chunk.js +3 -0
- package/adminWww/static/js/5056.9247882b.chunk.js.map +1 -0
- package/adminWww/static/js/{8038.ae8b7862.chunk.js → 8038.64137a64.chunk.js} +2 -2
- package/adminWww/static/js/8038.64137a64.chunk.js.map +1 -0
- package/adminWww/static/js/{main.423e60b6.js → main.d3fd9aec.js} +2 -2
- package/adminWww/static/js/{main.423e60b6.js.map → main.d3fd9aec.js.map} +1 -1
- package/io-package.json +14 -14
- package/package.json +4 -13
- package/adminWww/static/css/3210.f6c8a5fc.chunk.css.map +0 -1
- package/adminWww/static/js/2534.d8fd195b.chunk.js +0 -2
- package/adminWww/static/js/2534.d8fd195b.chunk.js.map +0 -1
- package/adminWww/static/js/3210.1be726e7.chunk.js +0 -2
- package/adminWww/static/js/3210.1be726e7.chunk.js.map +0 -1
- package/adminWww/static/js/6539.0a444811.chunk.js +0 -3
- package/adminWww/static/js/6539.0a444811.chunk.js.map +0 -1
- package/adminWww/static/js/8038.ae8b7862.chunk.js.map +0 -1
- /package/adminWww/static/js/{6539.0a444811.chunk.js.LICENSE.txt → 5056.9247882b.chunk.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! For license information please see 5056.9247882b.chunk.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunksrc_rx=self.webpackChunksrc_rx||[]).push([[5056,9277,1658,4039,6420,8801,4665],{22427:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};e.__esModule=!0;var o=i(n(29183)),s=n(89303),a=n(80113),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.render=function(){var t=this,e=a.icons[this.props.icon];return o.default.createElement(s.Tooltip,{title:this.props.tooltipText,componentsProps:{popper:{sx:{pointerEvents:"none"}}}},o.default.createElement(s.IconButton,{color:this.props.iconColor,sx:this.props.noBackground?void 0:{backgroundColor:function(t){return t.palette.primary.main},"&:hover":{backgroundColor:function(t){return t.palette.primary.light}},color:function(t){return t.palette.getContrastText(t.palette.primary.dark)}},size:"small",disabled:this.props.disabled,onClick:function(){return t.props.onClick()}},o.default.createElement(e,null)))},e}(o.default.Component);e.default=l},11848:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};e.__esModule=!0;var o=i(n(29183)),s=n(89303),a=n(32075);n(96900);var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.render=function(){var t=this;return o.default.createElement(s.Box,{className:"iom-info-box",sx:{borderColor:function(e){return e.palette[t.props.type].main}}},"info"===this.props.type?o.default.createElement(a.Info,{color:"primary"}):o.default.createElement(a.Warning,{color:this.props.type}),o.default.createElement(s.Typography,null,this.props.children))},e}(o.default.Component);e.default=l},80113:(t,e,n)=>{"use strict";e.__esModule=!0,e.icons=void 0;var r=n(32075);e.icons={refresh:r.Refresh,add:r.Add,help:r.Help,update:r.KeyboardArrowUp,build:r.Build,addToPhotos:r.AddToPhotos,deleteForever:r.DeleteForever,publish:r.Publish,link:r.Link,close:r.Close,monetizationOn:r.MonetizationOn,gitHub:r.GitHub,cloud:r.Cloud,cloudOff:r.CloudOff,arrowUpward:r.ArrowUpward,arrowDownward:r.ArrowDownward,remove:r.Remove,qrCode:r.QrCode,delete:r.Delete,edit:r.Edit,factoryReset:r.DomainDisabled,leakAdd:r.LeakAdd,noConnection:r.SignalWifiConnectedNoInternet4,notAlive:r.SignalCellularOff,contentCopy:r.ContentCopy,questionMark:r.QuestionMark,settingsInputAntenna:r.SettingsInputAntenna,signalWifiStatusbarNull:r.SignalWifiStatusbarNull,wifi:r.Wifi,wifiOff:r.WifiOff,deviceHub:r.DeviceHub,autoMode:r.AutoMode,formatListBulleted:r.FormatListBulleted,unfoldLess:r.UnfoldLess,unfoldMore:r.UnfoldMore}},58648:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};e.__esModule=!0,e.IconButton=e.InfoBox=void 0;var i=r(n(11848));e.InfoBox=i.default;var o=r(n(22427));e.IconButton=o.default},35141:(t,e,n)=>{"use strict";n.d(e,{h:()=>Ge});var r=n(96447);function i(t,e){return t instanceof Date?new t.constructor(e):new Date(e)}function o(t,e){const n=(0,r.a)(t);return isNaN(e)?i(t,NaN):e?(n.setDate(n.getDate()+e),n):n}function s(t,e){return i(t,+(0,r.a)(t)+e)}function a(t,e){return s(t,1e3*e)}Math.pow(10,8);const l=6048e5,c=864e5,u=36e5;function h(t,e){return s(t,6e4*e)}function d(t,e){return s(t,e*u)}function f(t,e){return o(t,7*e)}function g(t,e){const n=(0,r.a)(t);if(isNaN(e))return i(t,NaN);if(!e)return n;const o=n.getDate(),s=i(t,n.getTime());s.setMonth(n.getMonth()+e+1,0);return o>=s.getDate()?s:(n.setFullYear(s.getFullYear(),s.getMonth(),o),n)}function p(t,e){return g(t,12*e)}function m(t){const e=(0,r.a)(t);return e.setHours(23,59,59,999),e}var y=n(73520);function _(t,e){const n=(0,y.q)(),i=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=(0,r.a)(t),s=o.getDay(),a=6+(s<i?-7:0)-(s-i);return o.setDate(o.getDate()+a),o.setHours(23,59,59,999),o}function v(t){const e=(0,r.a)(t),n=e.getFullYear();return e.setFullYear(n+1,0,0),e.setHours(23,59,59,999),e}const x=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},w=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},b={p:w,P:(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return x(t,e);let o;switch(r){case"P":o=e.dateTime({width:"short"});break;case"PP":o=e.dateTime({width:"medium"});break;case"PPP":o=e.dateTime({width:"long"});break;default:o=e.dateTime({width:"full"})}return o.replace("{{date}}",x(r,e)).replace("{{time}}",w(i,e))}};var S=n(96363);function E(t){const e=(0,r.a)(t);return e.setHours(0,0,0,0),e}function T(t){const e=(0,r.a)(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function C(t,e){const n=E(t),r=E(e),i=+n-T(n),o=+r-T(r);return Math.round((i-o)/c)}function I(t){const e=(0,r.a)(t),n=i(t,0);return n.setFullYear(e.getFullYear(),0,1),n.setHours(0,0,0,0),n}function k(t){const e=(0,r.a)(t);return C(e,I(e))+1}var O=n(90087);function A(t){return(0,O.k)(t,{weekStartsOn:1})}function R(t){const e=(0,r.a)(t),n=e.getFullYear(),o=i(t,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);const s=A(o),a=i(t,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const l=A(a);return e.getTime()>=s.getTime()?n+1:e.getTime()>=l.getTime()?n:n-1}function D(t){const e=R(t),n=i(t,0);return n.setFullYear(e,0,4),n.setHours(0,0,0,0),A(n)}function M(t){const e=(0,r.a)(t),n=+A(e)-+D(e);return Math.round(n/l)+1}function P(t,e){const n=(0,r.a)(t),o=n.getFullYear(),s=(0,y.q)(),a=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,l=i(t,0);l.setFullYear(o+1,0,a),l.setHours(0,0,0,0);const c=(0,O.k)(l,e),u=i(t,0);u.setFullYear(o,0,a),u.setHours(0,0,0,0);const h=(0,O.k)(u,e);return n.getTime()>=c.getTime()?o+1:n.getTime()>=h.getTime()?o:o-1}function L(t,e){const n=(0,y.q)(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=P(t,e),s=i(t,0);s.setFullYear(o,0,r),s.setHours(0,0,0,0);return(0,O.k)(s,e)}function N(t,e){const n=(0,r.a)(t),i=+(0,O.k)(n,e)-+L(n,e);return Math.round(i/l)+1}function F(t,e){return(t<0?"-":"")+Math.abs(t).toString().padStart(e,"0")}const j={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return F("yy"===e?r%100:r,e.length)},M(t,e){const n=t.getMonth();return"M"===e?String(n+1):F(n+1,2)},d:(t,e)=>F(t.getDate(),e.length),a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(t,e)=>F(t.getHours()%12||12,e.length),H:(t,e)=>F(t.getHours(),e.length),m:(t,e)=>F(t.getMinutes(),e.length),s:(t,e)=>F(t.getSeconds(),e.length),S(t,e){const n=e.length,r=t.getMilliseconds();return F(Math.trunc(r*Math.pow(10,n-3)),e.length)}},z="midnight",G="noon",q="morning",H="afternoon",W="evening",B="night",Y={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){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(t,e,n){if("yo"===e){const e=t.getFullYear(),r=e>0?e:1-e;return n.ordinalNumber(r,{unit:"year"})}return j.y(t,e)},Y:function(t,e,n,r){const i=P(t,r),o=i>0?i:1-i;if("YY"===e){return F(o%100,2)}return"Yo"===e?n.ordinalNumber(o,{unit:"year"}):F(o,e.length)},R:function(t,e){return F(R(t),e.length)},u:function(t,e){return F(t.getFullYear(),e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return F(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(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return F(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(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return j.M(t,e);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(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return F(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(t,e,n,r){const i=N(t,r);return"wo"===e?n.ordinalNumber(i,{unit:"week"}):F(i,e.length)},I:function(t,e,n){const r=M(t);return"Io"===e?n.ordinalNumber(r,{unit:"week"}):F(r,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getDate(),{unit:"date"}):j.d(t,e)},D:function(t,e,n){const r=k(t);return"Do"===e?n.ordinalNumber(r,{unit:"dayOfYear"}):F(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){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(t,e,n,r){const i=t.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return F(o,2);case"eo":return n.ordinalNumber(o,{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(t,e,n,r){const i=t.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return F(o,e.length);case"co":return n.ordinalNumber(o,{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(t,e,n){const r=t.getDay(),i=0===r?7:r;switch(e){case"i":return String(i);case"ii":return F(i,e.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(t,e,n){const r=t.getHours()/12>=1?"pm":"am";switch(e){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(t,e,n){const r=t.getHours();let i;switch(i=12===r?G:0===r?z:r/12>=1?"pm":"am",e){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(t,e,n){const r=t.getHours();let i;switch(i=r>=17?W:r>=12?H:r>=4?q:B,e){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(t,e,n){if("ho"===e){let e=t.getHours()%12;return 0===e&&(e=12),n.ordinalNumber(e,{unit:"hour"})}return j.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getHours(),{unit:"hour"}):j.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):F(r,e.length)},k:function(t,e,n){let r=t.getHours();return 0===r&&(r=24),"ko"===e?n.ordinalNumber(r,{unit:"hour"}):F(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):j.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getSeconds(),{unit:"second"}):j.s(t,e)},S:function(t,e){return j.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(0===r)return"Z";switch(e){case"X":return K(r);case"XXXX":case"XX":return $(r);default:return $(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return K(r);case"xxxx":case"xx":return $(r);default:return $(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+U(r,":");default:return"GMT"+$(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+U(r,":");default:return"GMT"+$(r,":")}},t:function(t,e,n){return F(Math.trunc(t.getTime()/1e3),e.length)},T:function(t,e,n){return F(t.getTime(),e.length)}};function U(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=t>0?"-":"+",r=Math.abs(t),i=Math.trunc(r/60),o=r%60;return 0===o?n+String(i):n+String(i)+e+F(o,2)}function K(t,e){if(t%60===0){return(t>0?"-":"+")+F(Math.abs(t)/60,2)}return $(t,e)}function $(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=t>0?"-":"+",r=Math.abs(t);return n+F(Math.trunc(r/60),2)+e+F(r%60,2)}const V=/^D+$/,X=/^Y+$/,Z=["D","DD","YY","YYYY"];function J(t){return V.test(t)}function Q(t){return X.test(t)}function tt(t,e,n){const r=function(t,e,n){const r="Y"===t[0]?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(t,e,n);if(console.warn(r),Z.includes(t))throw new RangeError(r)}function et(t){return t instanceof Date||"object"===typeof t&&"[object Date]"===Object.prototype.toString.call(t)}function nt(t){if(!et(t)&&"number"!==typeof t)return!1;const e=(0,r.a)(t);return!isNaN(Number(e))}const rt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,it=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ot=/^'([^]*?)'?$/,st=/''/g,at=/[a-zA-Z]/;function lt(t,e,n){const i=(0,y.q)(),o=n?.locale??i.locale??S.c,s=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,l=(0,r.a)(t);if(!nt(l))throw new RangeError("Invalid time value");let c=e.match(it).map((t=>{const e=t[0];if("p"===e||"P"===e){return(0,b[e])(t,o.formatLong)}return t})).join("").match(rt).map((t=>{if("''"===t)return{isToken:!1,value:"'"};const e=t[0];if("'"===e)return{isToken:!1,value:ct(t)};if(Y[e])return{isToken:!0,value:t};if(e.match(at))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return{isToken:!1,value:t}}));o.localize.preprocessor&&(c=o.localize.preprocessor(l,c));const u={firstWeekContainsDate:s,weekStartsOn:a,locale:o};return c.map((r=>{if(!r.isToken)return r.value;const i=r.value;(!n?.useAdditionalWeekYearTokens&&Q(i)||!n?.useAdditionalDayOfYearTokens&&J(i))&&tt(i,e,String(t));return(0,Y[i[0]])(l,i,o.localize,u)})).join("")}function ct(t){const e=t.match(ot);return e?e[1].replace(st,"'"):t}function ut(t){return(0,r.a)(t).getDate()}function ht(t){const e=(0,r.a)(t),n=e.getFullYear(),o=e.getMonth(),s=i(t,0);return s.setFullYear(n,o+1,0),s.setHours(0,0,0,0),s.getDate()}function dt(t){return(0,r.a)(t).getHours()}function ft(t){return(0,r.a)(t).getMinutes()}function gt(t){return(0,r.a)(t).getMonth()}function pt(t){return(0,r.a)(t).getSeconds()}function mt(t){return(0,r.a)(t).getMilliseconds()}function yt(t){return(0,r.a)(t).getFullYear()}function _t(t,e){const n=(0,r.a)(t),i=(0,r.a)(e);return n.getTime()>i.getTime()}function vt(t,e){return+(0,r.a)(t)<+(0,r.a)(e)}function xt(t,e){return+(0,r.a)(t)===+(0,r.a)(e)}function wt(t,e){return+E(t)===+E(e)}function bt(t,e){const n=(0,r.a)(t),i=(0,r.a)(e);return n.getFullYear()===i.getFullYear()}function St(t,e){const n=(0,r.a)(t),i=(0,r.a)(e);return n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth()}function Et(t){const e=(0,r.a)(t);return e.setMinutes(0,0,0),e}function Tt(t,e){return+Et(t)===+Et(e)}function Ct(){return Object.assign({},(0,y.q)())}function It(t,e){const n=e instanceof Date?i(e,0):new e(0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n}class kt{subPriority=0;validate(t,e){return!0}}class Ot extends kt{constructor(t,e,n,r,i){super(),this.value=t,this.validateValue=e,this.setValue=n,this.priority=r,i&&(this.subPriority=i)}validate(t,e){return this.validateValue(t,this.value,e)}set(t,e,n){return this.setValue(t,e,this.value,n)}}class At extends kt{priority=10;subPriority=-1;set(t,e){return e.timestampIsSet?t:i(t,It(t,Date))}}class Rt{run(t,e,n,r){const i=this.parse(t,e,n,r);return i?{setter:new Ot(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(t,e,n){return!0}}const Dt=/^(1[0-2]|0?\d)/,Mt=/^(3[0-1]|[0-2]?\d)/,Pt=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Lt=/^(5[0-3]|[0-4]?\d)/,Nt=/^(2[0-3]|[0-1]?\d)/,Ft=/^(2[0-4]|[0-1]?\d)/,jt=/^(1[0-1]|0?\d)/,zt=/^(1[0-2]|0?\d)/,Gt=/^[0-5]?\d/,qt=/^[0-5]?\d/,Ht=/^\d/,Wt=/^\d{1,2}/,Bt=/^\d{1,3}/,Yt=/^\d{1,4}/,Ut=/^-?\d+/,Kt=/^-?\d/,$t=/^-?\d{1,2}/,Vt=/^-?\d{1,3}/,Xt=/^-?\d{1,4}/,Zt=/^([+-])(\d{2})(\d{2})?|Z/,Jt=/^([+-])(\d{2})(\d{2})|Z/,Qt=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,te=/^([+-])(\d{2}):(\d{2})|Z/,ee=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function ne(t,e){return t?{value:e(t.value),rest:t.rest}:t}function re(t,e){const n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function ie(t,e){const n=e.match(t);if(!n)return null;if("Z"===n[0])return{value:0,rest:e.slice(1)};const r="+"===n[1]?1:-1,i=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,s=n[5]?parseInt(n[5],10):0;return{value:r*(i*u+6e4*o+1e3*s),rest:e.slice(n[0].length)}}function oe(t){return re(Ut,t)}function se(t,e){switch(t){case 1:return re(Ht,e);case 2:return re(Wt,e);case 3:return re(Bt,e);case 4:return re(Yt,e);default:return re(new RegExp("^\\d{1,"+t+"}"),e)}}function ae(t,e){switch(t){case 1:return re(Kt,e);case 2:return re($t,e);case 3:return re(Vt,e);case 4:return re(Xt,e);default:return re(new RegExp("^-?\\d{1,"+t+"}"),e)}}function le(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function ce(t,e){const n=e>0,r=n?e:1-e;let i;if(r<=50)i=t||100;else{const e=r+50;i=t+100*Math.trunc(e/100)-(t>=e%100?100:0)}return n?i:1-i}function ue(t){return t%400===0||t%4===0&&t%100!==0}function he(t,e,n){const i=(0,r.a)(t),o=N(i,n)-e;return i.setDate(i.getDate()-7*o),i}function de(t,e){const n=(0,r.a)(t),i=M(n)-e;return n.setDate(n.getDate()-7*i),n}const fe=[31,28,31,30,31,30,31,31,30,31,30,31],ge=[31,29,31,30,31,30,31,31,30,31,30,31];function pe(t,e,n){const i=(0,y.q)(),s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,a=(0,r.a)(t),l=a.getDay(),c=7-s;return o(a,e<0||e>6?e-(l+c)%7:((e%7+7)%7+c)%7-(l+c)%7)}function me(t){let e=(0,r.a)(t).getDay();return 0===e&&(e=7),e}function ye(t,e){const n=(0,r.a)(t);return o(n,e-me(n))}const _e={G:new class extends Rt{priority=140;parse(t,e,n){switch(e){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"});case"GGGGG":return n.era(t,{width:"narrow"});default:return n.era(t,{width:"wide"})||n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"})}}set(t,e,n){return e.era=n,t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]},y:new class extends Rt{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,e,n){const r=t=>({year:t,isTwoDigitYear:"yy"===e});switch(e){case"y":return ne(se(4,t),r);case"yo":return ne(n.ordinalNumber(t,{unit:"year"}),r);default:return ne(se(e.length,t),r)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,n){const r=t.getFullYear();if(n.isTwoDigitYear){const e=ce(n.year,r);return t.setFullYear(e,0,1),t.setHours(0,0,0,0),t}const i="era"in e&&1!==e.era?1-n.year:n.year;return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}},Y:new class extends Rt{priority=130;parse(t,e,n){const r=t=>({year:t,isTwoDigitYear:"YY"===e});switch(e){case"Y":return ne(se(4,t),r);case"Yo":return ne(n.ordinalNumber(t,{unit:"year"}),r);default:return ne(se(e.length,t),r)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,n,r){const i=P(t,r);if(n.isTwoDigitYear){const e=ce(n.year,i);return t.setFullYear(e,0,r.firstWeekContainsDate),t.setHours(0,0,0,0),(0,O.k)(t,r)}const o="era"in e&&1!==e.era?1-n.year:n.year;return t.setFullYear(o,0,r.firstWeekContainsDate),t.setHours(0,0,0,0),(0,O.k)(t,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class extends Rt{priority=130;parse(t,e){return ae("R"===e?4:e.length,t)}set(t,e,n){const r=i(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),A(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends Rt{priority=130;parse(t,e){return ae("u"===e?4:e.length,t)}set(t,e,n){return t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class extends Rt{priority=120;parse(t,e,n){switch(e){case"Q":case"QQ":return se(e.length,t);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});default:return n.quarter(t,{width:"wide",context:"formatting"})||n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=1&&e<=4}set(t,e,n){return t.setMonth(3*(n-1),1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class extends Rt{priority=120;parse(t,e,n){switch(e){case"q":case"qq":return se(e.length,t);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});default:return n.quarter(t,{width:"wide",context:"standalone"})||n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=1&&e<=4}set(t,e,n){return t.setMonth(3*(n-1),1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class extends Rt{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,e,n){const r=t=>t-1;switch(e){case"M":return ne(re(Dt,t),r);case"MM":return ne(se(2,t),r);case"Mo":return ne(n.ordinalNumber(t,{unit:"month"}),r);case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});default:return n.month(t,{width:"wide",context:"formatting"})||n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=11}set(t,e,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}},L:new class extends Rt{priority=110;parse(t,e,n){const r=t=>t-1;switch(e){case"L":return ne(re(Dt,t),r);case"LL":return ne(se(2,t),r);case"Lo":return ne(n.ordinalNumber(t,{unit:"month"}),r);case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});default:return n.month(t,{width:"wide",context:"standalone"})||n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=11}set(t,e,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class extends Rt{priority=100;parse(t,e,n){switch(e){case"w":return re(Lt,t);case"wo":return n.ordinalNumber(t,{unit:"week"});default:return se(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,n,r){return(0,O.k)(he(t,n,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class extends Rt{priority=100;parse(t,e,n){switch(e){case"I":return re(Lt,t);case"Io":return n.ordinalNumber(t,{unit:"week"});default:return se(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,n){return A(de(t,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class extends Rt{priority=90;subPriority=1;parse(t,e,n){switch(e){case"d":return re(Mt,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return se(e.length,t)}}validate(t,e){const n=ue(t.getFullYear()),r=t.getMonth();return n?e>=1&&e<=ge[r]:e>=1&&e<=fe[r]}set(t,e,n){return t.setDate(n),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class extends Rt{priority=90;subpriority=1;parse(t,e,n){switch(e){case"D":case"DD":return re(Pt,t);case"Do":return n.ordinalNumber(t,{unit:"date"});default:return se(e.length,t)}}validate(t,e){return ue(t.getFullYear())?e>=1&&e<=366:e>=1&&e<=365}set(t,e,n){return t.setMonth(0,n),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class extends Rt{priority=90;parse(t,e,n){switch(e){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,n,r){return(t=pe(t,n,r)).setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends Rt{priority=90;parse(t,e,n,r){const i=t=>{const e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return ne(se(e.length,t),i);case"eo":return ne(n.ordinalNumber(t,{unit:"day"}),i);case"eee":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeeee":return n.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,n,r){return(t=pe(t,n,r)).setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class extends Rt{priority=90;parse(t,e,n,r){const i=t=>{const e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return ne(se(e.length,t),i);case"co":return ne(n.ordinalNumber(t,{unit:"day"}),i);case"ccc":return n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"ccccc":return n.day(t,{width:"narrow",context:"standalone"});case"cccccc":return n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});default:return n.day(t,{width:"wide",context:"standalone"})||n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=6}set(t,e,n,r){return(t=pe(t,n,r)).setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class extends Rt{priority=90;parse(t,e,n){const r=t=>0===t?7:t;switch(e){case"i":case"ii":return se(e.length,t);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return ne(n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r);case"iiiii":return ne(n.day(t,{width:"narrow",context:"formatting"}),r);case"iiiiii":return ne(n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r);default:return ne(n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r)}}validate(t,e){return e>=1&&e<=7}set(t,e,n){return(t=ye(t,n)).setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class extends Rt{priority=80;parse(t,e,n){switch(e){case"a":case"aa":case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,n){return t.setHours(le(n),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends Rt{priority=80;parse(t,e,n){switch(e){case"b":case"bb":case"bbb":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,n){return t.setHours(le(n),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends Rt{priority=80;parse(t,e,n){switch(e){case"B":case"BB":case"BBB":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,n){return t.setHours(le(n),0,0,0),t}incompatibleTokens=["a","b","t","T"]},h:new class extends Rt{priority=70;parse(t,e,n){switch(e){case"h":return re(zt,t);case"ho":return n.ordinalNumber(t,{unit:"hour"});default:return se(e.length,t)}}validate(t,e){return e>=1&&e<=12}set(t,e,n){const r=t.getHours()>=12;return r&&n<12?t.setHours(n+12,0,0,0):r||12!==n?t.setHours(n,0,0,0):t.setHours(0,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]},H:new class extends Rt{priority=70;parse(t,e,n){switch(e){case"H":return re(Nt,t);case"Ho":return n.ordinalNumber(t,{unit:"hour"});default:return se(e.length,t)}}validate(t,e){return e>=0&&e<=23}set(t,e,n){return t.setHours(n,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class extends Rt{priority=70;parse(t,e,n){switch(e){case"K":return re(jt,t);case"Ko":return n.ordinalNumber(t,{unit:"hour"});default:return se(e.length,t)}}validate(t,e){return e>=0&&e<=11}set(t,e,n){return t.getHours()>=12&&n<12?t.setHours(n+12,0,0,0):t.setHours(n,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]},k:new class extends Rt{priority=70;parse(t,e,n){switch(e){case"k":return re(Ft,t);case"ko":return n.ordinalNumber(t,{unit:"hour"});default:return se(e.length,t)}}validate(t,e){return e>=1&&e<=24}set(t,e,n){const r=n<=24?n%24:n;return t.setHours(r,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class extends Rt{priority=60;parse(t,e,n){switch(e){case"m":return re(Gt,t);case"mo":return n.ordinalNumber(t,{unit:"minute"});default:return se(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,n){return t.setMinutes(n,0,0),t}incompatibleTokens=["t","T"]},s:new class extends Rt{priority=50;parse(t,e,n){switch(e){case"s":return re(qt,t);case"so":return n.ordinalNumber(t,{unit:"second"});default:return se(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,n){return t.setSeconds(n,0),t}incompatibleTokens=["t","T"]},S:new class extends Rt{priority=30;parse(t,e){return ne(se(e.length,t),(t=>Math.trunc(t*Math.pow(10,3-e.length))))}set(t,e,n){return t.setMilliseconds(n),t}incompatibleTokens=["t","T"]},X:new class extends Rt{priority=10;parse(t,e){switch(e){case"X":return ie(Zt,t);case"XX":return ie(Jt,t);case"XXXX":return ie(Qt,t);case"XXXXX":return ie(ee,t);default:return ie(te,t)}}set(t,e,n){return e.timestampIsSet?t:i(t,t.getTime()-T(t)-n)}incompatibleTokens=["t","T","x"]},x:new class extends Rt{priority=10;parse(t,e){switch(e){case"x":return ie(Zt,t);case"xx":return ie(Jt,t);case"xxxx":return ie(Qt,t);case"xxxxx":return ie(ee,t);default:return ie(te,t)}}set(t,e,n){return e.timestampIsSet?t:i(t,t.getTime()-T(t)-n)}incompatibleTokens=["t","T","X"]},t:new class extends Rt{priority=40;parse(t){return oe(t)}set(t,e,n){return[i(t,1e3*n),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends Rt{priority=20;parse(t){return oe(t)}set(t,e,n){return[i(t,n),{timestampIsSet:!0}]}incompatibleTokens="*"}},ve=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,xe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,we=/^'([^]*?)'?$/,be=/''/g,Se=/\S/,Ee=/[a-zA-Z]/;function Te(t,e,n,o){const s=Ct(),a=o?.locale??s.locale??S.c,l=o?.firstWeekContainsDate??o?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,c=o?.weekStartsOn??o?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0;if(""===e)return""===t?(0,r.a)(n):i(n,NaN);const u={firstWeekContainsDate:l,weekStartsOn:c,locale:a},h=[new At],d=e.match(xe).map((t=>{const e=t[0];if(e in b){return(0,b[e])(t,a.formatLong)}return t})).join("").match(ve),f=[];for(let r of d){!o?.useAdditionalWeekYearTokens&&Q(r)&&tt(r,e,t),!o?.useAdditionalDayOfYearTokens&&J(r)&&tt(r,e,t);const s=r[0],l=_e[s];if(l){const{incompatibleTokens:e}=l;if(Array.isArray(e)){const t=f.find((t=>e.includes(t.token)||t.token===s));if(t)throw new RangeError(`The format string mustn't contain \`${t.fullToken}\` and \`${r}\` at the same time`)}else if("*"===l.incompatibleTokens&&f.length>0)throw new RangeError(`The format string mustn't contain \`${r}\` and any other token at the same time`);f.push({token:s,fullToken:r});const o=l.run(t,r,a.match,u);if(!o)return i(n,NaN);h.push(o.setter),t=o.rest}else{if(s.match(Ee))throw new RangeError("Format string contains an unescaped latin alphabet character `"+s+"`");if("''"===r?r="'":"'"===s&&(r=r.match(we)[1].replace(be,"'")),0!==t.indexOf(r))return i(n,NaN);t=t.slice(r.length)}}if(t.length>0&&Se.test(t))return i(n,NaN);const g=h.map((t=>t.priority)).sort(((t,e)=>e-t)).filter(((t,e,n)=>n.indexOf(t)===e)).map((t=>h.filter((e=>e.priority===t)).sort(((t,e)=>e.subPriority-t.subPriority)))).map((t=>t[0]));let p=(0,r.a)(n);if(isNaN(p.getTime()))return i(n,NaN);const m={};for(const r of g){if(!r.validate(p,u))return i(n,NaN);const t=r.set(p,m,u);Array.isArray(t)?(p=t[0],Object.assign(m,t[1])):p=t}return i(n,p)}function Ce(t,e){const n=(0,r.a)(t);return n.setDate(e),n}function Ie(t,e){const n=(0,r.a)(t);return n.setHours(e),n}function ke(t,e){const n=(0,r.a)(t);return n.setMinutes(e),n}function Oe(t,e){const n=(0,r.a)(t),o=n.getFullYear(),s=n.getDate(),a=i(t,0);a.setFullYear(o,e,15),a.setHours(0,0,0,0);const l=ht(a);return n.setMonth(e,Math.min(s,l)),n}function Ae(t,e){const n=(0,r.a)(t);return n.setSeconds(e),n}function Re(t,e){const n=(0,r.a)(t);return n.setMilliseconds(e),n}function De(t,e){const n=(0,r.a)(t);return isNaN(+n)?i(t,NaN):(n.setFullYear(e),n)}function Me(t){const e=(0,r.a)(t);return e.setDate(1),e.setHours(0,0,0,0),e}function Pe(t){const e=(0,r.a)(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(23,59,59,999),e}function Le(t,e){const n=+(0,r.a)(t),[i,o]=[+(0,r.a)(e.start),+(0,r.a)(e.end)].sort(((t,e)=>t-e));return n>=i&&n<=o}var Ne=n(77940);const Fe={y:{sectionType:"year",contentType:"digit",maxLength:4},yy:"year",yyy:{sectionType:"year",contentType:"digit",maxLength:4},yyyy:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMMM:{sectionType:"month",contentType:"letter"},MMM:{sectionType:"month",contentType:"letter"},L:{sectionType:"month",contentType:"digit",maxLength:2},LL:"month",LLL:{sectionType:"month",contentType:"letter"},LLLL:{sectionType:"month",contentType:"letter"},d:{sectionType:"day",contentType:"digit",maxLength:2},dd:"day",do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"letter"},EE:{sectionType:"weekDay",contentType:"letter"},EEE:{sectionType:"weekDay",contentType:"letter"},EEEE:{sectionType:"weekDay",contentType:"letter"},EEEEE:{sectionType:"weekDay",contentType:"letter"},i:{sectionType:"weekDay",contentType:"digit",maxLength:1},ii:"weekDay",iii:{sectionType:"weekDay",contentType:"letter"},iiii:{sectionType:"weekDay",contentType:"letter"},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},ee:"weekDay",eee:{sectionType:"weekDay",contentType:"letter"},eeee:{sectionType:"weekDay",contentType:"letter"},eeeee:{sectionType:"weekDay",contentType:"letter"},eeeeee:{sectionType:"weekDay",contentType:"letter"},c:{sectionType:"weekDay",contentType:"digit",maxLength:1},cc:"weekDay",ccc:{sectionType:"weekDay",contentType:"letter"},cccc:{sectionType:"weekDay",contentType:"letter"},ccccc:{sectionType:"weekDay",contentType:"letter"},cccccc:{sectionType:"weekDay",contentType:"letter"},a:"meridiem",aa:"meridiem",aaa:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},je={year:"yyyy",month:"LLLL",monthShort:"MMM",dayOfMonth:"d",dayOfMonthFull:"do",weekday:"EEEE",weekdayShort:"EEEEEE",hours24h:"HH",hours12h:"hh",meridiem:"aa",minutes:"mm",seconds:"ss",fullDate:"PP",keyboardDate:"P",shortDate:"MMM d",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",fullTime:"p",fullTime12h:"hh:mm aa",fullTime24h:"HH:mm",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aa",keyboardDateTime24h:"P HH:mm"};class ze{constructor(t){this.isMUIAdapter=!0,this.isTimezoneCompatible=!1,this.lib=void 0,this.locale=void 0,this.formats=void 0,this.formatTokenMap=Fe,this.escapedCharacters={start:"'",end:"'"},this.longFormatters=void 0,this.date=t=>"undefined"===typeof t?new Date:null===t?null:new Date(t),this.getInvalidDate=()=>new Date("Invalid Date"),this.getTimezone=()=>"default",this.setTimezone=t=>t,this.toJsDate=t=>t,this.getCurrentLocaleCode=()=>this.locale.code,this.is12HourCycleInCurrentLocale=()=>/a/.test(this.locale.formatLong.time({width:"short"})),this.expandFormat=t=>t.match(/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g).map((t=>{const e=t[0];if("p"===e||"P"===e){return(0,this.longFormatters[e])(t,this.locale.formatLong)}return t})).join(""),this.formatNumber=t=>t,this.getDayOfWeek=t=>t.getDay()+1;const{locale:e,formats:n,longFormatters:r,lib:i}=t;this.locale=e,this.formats=(0,Ne.A)({},je,n),this.longFormatters=r,this.lib=i||"date-fns"}}class Ge extends ze{constructor(){let{locale:t,formats:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super({locale:t??S.c,formats:e,longFormatters:b}),this.parse=(t,e)=>""===t?null:Te(t,e,new Date,{locale:this.locale}),this.isValid=t=>null!=t&&nt(t),this.format=(t,e)=>this.formatByString(t,this.formats[e]),this.formatByString=(t,e)=>lt(t,e,{locale:this.locale}),this.isEqual=(t,e)=>null===t&&null===e||null!==t&&null!==e&&xt(t,e),this.isSameYear=(t,e)=>bt(t,e),this.isSameMonth=(t,e)=>St(t,e),this.isSameDay=(t,e)=>wt(t,e),this.isSameHour=(t,e)=>Tt(t,e),this.isAfter=(t,e)=>_t(t,e),this.isAfterYear=(t,e)=>_t(t,v(e)),this.isAfterDay=(t,e)=>_t(t,m(e)),this.isBefore=(t,e)=>vt(t,e),this.isBeforeYear=(t,e)=>vt(t,this.startOfYear(e)),this.isBeforeDay=(t,e)=>vt(t,this.startOfDay(e)),this.isWithinRange=(t,e)=>{let[n,r]=e;return Le(t,{start:n,end:r})},this.startOfYear=t=>I(t),this.startOfMonth=t=>Me(t),this.startOfWeek=t=>(0,O.k)(t,{locale:this.locale}),this.startOfDay=t=>E(t),this.endOfYear=t=>v(t),this.endOfMonth=t=>Pe(t),this.endOfWeek=t=>_(t,{locale:this.locale}),this.endOfDay=t=>m(t),this.addYears=(t,e)=>p(t,e),this.addMonths=(t,e)=>g(t,e),this.addWeeks=(t,e)=>f(t,e),this.addDays=(t,e)=>o(t,e),this.addHours=(t,e)=>d(t,e),this.addMinutes=(t,e)=>h(t,e),this.addSeconds=(t,e)=>a(t,e),this.getYear=t=>yt(t),this.getMonth=t=>gt(t),this.getDate=t=>ut(t),this.getHours=t=>dt(t),this.getMinutes=t=>ft(t),this.getSeconds=t=>pt(t),this.getMilliseconds=t=>mt(t),this.setYear=(t,e)=>De(t,e),this.setMonth=(t,e)=>Oe(t,e),this.setDate=(t,e)=>Ce(t,e),this.setHours=(t,e)=>Ie(t,e),this.setMinutes=(t,e)=>ke(t,e),this.setSeconds=(t,e)=>Ae(t,e),this.setMilliseconds=(t,e)=>Re(t,e),this.getDaysInMonth=t=>ht(t),this.getWeekArray=t=>{const e=this.startOfWeek(this.startOfMonth(t)),n=this.endOfWeek(this.endOfMonth(t));let r=0,i=e;const o=[];for(;this.isBefore(i,n);){const t=Math.floor(r/7);o[t]=o[t]||[],o[t].push(i),i=this.addDays(i,1),r+=1}return o},this.getWeekNumber=t=>N(t,{locale:this.locale}),this.getYearRange=t=>{let[e,n]=t;const r=this.startOfYear(e),i=this.endOfYear(n),o=[];let s=r;for(;this.isBefore(s,i);)o.push(s),s=this.addYears(s,1);return o}}}},17294:t=>{"use strict";var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(t){return"function"===typeof Array.isArray?Array.isArray(t):"[object Array]"===n.call(t)},s=function(t){if(!t||"[object Object]"!==n.call(t))return!1;var r,i=e.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&e.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!i&&!o)return!1;for(r in t);return"undefined"===typeof r||e.call(t,r)},a=function(t,e){r&&"__proto__"===e.name?r(t,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):t[e.name]=e.newValue},l=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(i)return i(t,n).value}return t[n]};t.exports=function t(){var e,n,r,i,c,u,h=arguments[0],d=1,f=arguments.length,g=!1;for("boolean"===typeof h&&(g=h,h=arguments[1]||{},d=2),(null==h||"object"!==typeof h&&"function"!==typeof h)&&(h={});d<f;++d)if(null!=(e=arguments[d]))for(n in e)r=l(h,n),h!==(i=l(e,n))&&(g&&i&&(s(i)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},a(h,{name:n,newValue:t(g,u,i)})):"undefined"!==typeof i&&a(h,{name:n,newValue:i}));return h}},56200:t=>{"use strict";t.exports=function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){if(e.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(e)){if((r=e.length)!=n.length)return!1;for(i=r;0!==i--;)if(!t(e[i],n[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if((r=(o=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(i=r;0!==i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!==i--;){var s=o[i];if(!t(e[s],n[s]))return!1}return!0}return e!==e&&n!==n}},83713:t=>{var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(t){return t?t.replace(l,c):c}t.exports=function(t,l){if("string"!==typeof t)throw new TypeError("First argument must be a string");if(!t)return[];l=l||{};var h=1,d=1;function f(t){var e=t.match(n);e&&(h+=e.length);var r=t.lastIndexOf("\n");d=~r?t.length-r:d+t.length}function g(){var t={line:h,column:d};return function(e){return e.position=new p(t),v(),e}}function p(t){this.start=t,this.end={line:h,column:d},this.source=l.source}p.prototype.content=t;var m=[];function y(e){var n=new Error(l.source+":"+h+":"+d+": "+e);if(n.reason=e,n.filename=l.source,n.line=h,n.column=d,n.source=t,!l.silent)throw n;m.push(n)}function _(e){var n=e.exec(t);if(n){var r=n[0];return f(r),t=t.slice(r.length),n}}function v(){_(r)}function x(t){var e;for(t=t||[];e=w();)!1!==e&&t.push(e);return t}function w(){var e=g();if("/"==t.charAt(0)&&"*"==t.charAt(1)){for(var n=2;c!=t.charAt(n)&&("*"!=t.charAt(n)||"/"!=t.charAt(n+1));)++n;if(n+=2,c===t.charAt(n-1))return y("End of comment missing");var r=t.slice(2,n-2);return d+=2,f(r),t=t.slice(n),d+=2,e({type:"comment",comment:r})}}function b(){var t=g(),n=_(i);if(n){if(w(),!_(o))return y("property missing ':'");var r=_(s),l=t({type:"declaration",property:u(n[0].replace(e,c)),value:r?u(r[0].replace(e,c)):c});return _(a),l}}return v(),function(){var t,e=[];for(x(e);t=b();)!1!==t&&(e.push(t),x(e));return e}()}},84686:t=>{"use strict";t.exports=function(t,e,n,r,i,o,s,a){if(!t){var l;if(void 0===e)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,s,a],u=0;(l=new Error(e.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},11842:function(t,e,n){var r;t=n.nmd(t),function(){var i,o="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",l=16,c=32,u=64,h=128,d=256,f=1/0,g=9007199254740991,p=NaN,m=4294967295,y=[["ary",h],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",c],["partialRight",u],["rearg",d]],_="[object Arguments]",v="[object Array]",x="[object Boolean]",w="[object Date]",b="[object Error]",S="[object Function]",E="[object GeneratorFunction]",T="[object Map]",C="[object Number]",I="[object Object]",k="[object Promise]",O="[object RegExp]",A="[object Set]",R="[object String]",D="[object Symbol]",M="[object WeakMap]",P="[object ArrayBuffer]",L="[object DataView]",N="[object Float32Array]",F="[object Float64Array]",j="[object Int8Array]",z="[object Int16Array]",G="[object Int32Array]",q="[object Uint8Array]",H="[object Uint8ClampedArray]",W="[object Uint16Array]",B="[object Uint32Array]",Y=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,K=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$=/&(?:amp|lt|gt|quot|#39);/g,V=/[&<>"']/g,X=RegExp($.source),Z=RegExp(V.source),J=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,tt=/<%=([\s\S]+?)%>/g,et=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nt=/^\w*$/,rt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,it=/[\\^$.*+?()[\]{}|]/g,ot=RegExp(it.source),st=/^\s+/,at=/\s/,lt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ct=/\{\n\/\* \[wrapped with (.+)\] \*/,ut=/,? & /,ht=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,dt=/[()=,{}\[\]\/\s]/,ft=/\\(\\)?/g,gt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pt=/\w*$/,mt=/^[-+]0x[0-9a-f]+$/i,yt=/^0b[01]+$/i,_t=/^\[object .+?Constructor\]$/,vt=/^0o[0-7]+$/i,xt=/^(?:0|[1-9]\d*)$/,wt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bt=/($^)/,St=/['\n\r\u2028\u2029\\]/g,Et="\\ud800-\\udfff",Tt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ct="\\u2700-\\u27bf",It="a-z\\xdf-\\xf6\\xf8-\\xff",kt="A-Z\\xc0-\\xd6\\xd8-\\xde",Ot="\\ufe0e\\ufe0f",At="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Rt="['\u2019]",Dt="["+Et+"]",Mt="["+At+"]",Pt="["+Tt+"]",Lt="\\d+",Nt="["+Ct+"]",Ft="["+It+"]",jt="[^"+Et+At+Lt+Ct+It+kt+"]",zt="\\ud83c[\\udffb-\\udfff]",Gt="[^"+Et+"]",qt="(?:\\ud83c[\\udde6-\\uddff]){2}",Ht="[\\ud800-\\udbff][\\udc00-\\udfff]",Wt="["+kt+"]",Bt="\\u200d",Yt="(?:"+Ft+"|"+jt+")",Ut="(?:"+Wt+"|"+jt+")",Kt="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",$t="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Vt="(?:"+Pt+"|"+zt+")"+"?",Xt="["+Ot+"]?",Zt=Xt+Vt+("(?:"+Bt+"(?:"+[Gt,qt,Ht].join("|")+")"+Xt+Vt+")*"),Jt="(?:"+[Nt,qt,Ht].join("|")+")"+Zt,Qt="(?:"+[Gt+Pt+"?",Pt,qt,Ht,Dt].join("|")+")",te=RegExp(Rt,"g"),ee=RegExp(Pt,"g"),ne=RegExp(zt+"(?="+zt+")|"+Qt+Zt,"g"),re=RegExp([Wt+"?"+Ft+"+"+Kt+"(?="+[Mt,Wt,"$"].join("|")+")",Ut+"+"+$t+"(?="+[Mt,Wt+Yt,"$"].join("|")+")",Wt+"?"+Yt+"+"+Kt,Wt+"+"+$t,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Lt,Jt].join("|"),"g"),ie=RegExp("["+Bt+Et+Tt+Ot+"]"),oe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,se=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ae=-1,le={};le[N]=le[F]=le[j]=le[z]=le[G]=le[q]=le[H]=le[W]=le[B]=!0,le[_]=le[v]=le[P]=le[x]=le[L]=le[w]=le[b]=le[S]=le[T]=le[C]=le[I]=le[O]=le[A]=le[R]=le[M]=!1;var ce={};ce[_]=ce[v]=ce[P]=ce[L]=ce[x]=ce[w]=ce[N]=ce[F]=ce[j]=ce[z]=ce[G]=ce[T]=ce[C]=ce[I]=ce[O]=ce[A]=ce[R]=ce[D]=ce[q]=ce[H]=ce[W]=ce[B]=!0,ce[b]=ce[S]=ce[M]=!1;var ue={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},he=parseFloat,de=parseInt,fe="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ge="object"==typeof self&&self&&self.Object===Object&&self,pe=fe||ge||Function("return this")(),me=e&&!e.nodeType&&e,ye=me&&t&&!t.nodeType&&t,_e=ye&&ye.exports===me,ve=_e&&fe.process,xe=function(){try{var t=ye&&ye.require&&ye.require("util").types;return t||ve&&ve.binding&&ve.binding("util")}catch(e){}}(),we=xe&&xe.isArrayBuffer,be=xe&&xe.isDate,Se=xe&&xe.isMap,Ee=xe&&xe.isRegExp,Te=xe&&xe.isSet,Ce=xe&&xe.isTypedArray;function Ie(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function ke(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var s=t[i];e(r,s,n(s),t)}return r}function Oe(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function Ae(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Re(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function De(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}function Me(t,e){return!!(null==t?0:t.length)&&We(t,e,0)>-1}function Pe(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function Le(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function Ne(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function Fe(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function je(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function ze(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var Ge=Ke("length");function qe(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}function He(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function We(t,e,n){return e===e?function(t,e,n){var r=n-1,i=t.length;for(;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):He(t,Ye,n)}function Be(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function Ye(t){return t!==t}function Ue(t,e){var n=null==t?0:t.length;return n?Xe(t,e)/n:p}function Ke(t){return function(e){return null==e?i:e[t]}}function $e(t){return function(e){return null==t?i:t[e]}}function Ve(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}function Xe(t,e){for(var n,r=-1,o=t.length;++r<o;){var s=e(t[r]);s!==i&&(n=n===i?s:n+s)}return n}function Ze(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Je(t){return t?t.slice(0,mn(t)+1).replace(st,""):t}function Qe(t){return function(e){return t(e)}}function tn(t,e){return Le(e,(function(e){return t[e]}))}function en(t,e){return t.has(e)}function nn(t,e){for(var n=-1,r=t.length;++n<r&&We(e,t[n],0)>-1;);return n}function rn(t,e){for(var n=t.length;n--&&We(e,t[n],0)>-1;);return n}var on=$e({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),sn=$e({"&":"&","<":"<",">":">",'"':""","'":"'"});function an(t){return"\\"+ue[t]}function ln(t){return ie.test(t)}function cn(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function un(t,e){return function(n){return t(e(n))}}function hn(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var s=t[n];s!==e&&s!==a||(t[n]=a,o[i++]=n)}return o}function dn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function fn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function gn(t){return ln(t)?function(t){var e=ne.lastIndex=0;for(;ne.test(t);)++e;return e}(t):Ge(t)}function pn(t){return ln(t)?function(t){return t.match(ne)||[]}(t):function(t){return t.split("")}(t)}function mn(t){for(var e=t.length;e--&&at.test(t.charAt(e)););return e}var yn=$e({"&":"&","<":"<",">":">",""":'"',"'":"'"});var _n=function t(e){var n=(e=null==e?pe:_n.defaults(pe.Object(),e,_n.pick(pe,se))).Array,r=e.Date,at=e.Error,Et=e.Function,Tt=e.Math,Ct=e.Object,It=e.RegExp,kt=e.String,Ot=e.TypeError,At=n.prototype,Rt=Et.prototype,Dt=Ct.prototype,Mt=e["__core-js_shared__"],Pt=Rt.toString,Lt=Dt.hasOwnProperty,Nt=0,Ft=function(){var t=/[^.]+$/.exec(Mt&&Mt.keys&&Mt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),jt=Dt.toString,zt=Pt.call(Ct),Gt=pe._,qt=It("^"+Pt.call(Lt).replace(it,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ht=_e?e.Buffer:i,Wt=e.Symbol,Bt=e.Uint8Array,Yt=Ht?Ht.allocUnsafe:i,Ut=un(Ct.getPrototypeOf,Ct),Kt=Ct.create,$t=Dt.propertyIsEnumerable,Vt=At.splice,Xt=Wt?Wt.isConcatSpreadable:i,Zt=Wt?Wt.iterator:i,Jt=Wt?Wt.toStringTag:i,Qt=function(){try{var t=ho(Ct,"defineProperty");return t({},"",{}),t}catch(e){}}(),ne=e.clearTimeout!==pe.clearTimeout&&e.clearTimeout,ie=r&&r.now!==pe.Date.now&&r.now,ue=e.setTimeout!==pe.setTimeout&&e.setTimeout,fe=Tt.ceil,ge=Tt.floor,me=Ct.getOwnPropertySymbols,ye=Ht?Ht.isBuffer:i,ve=e.isFinite,xe=At.join,Ge=un(Ct.keys,Ct),$e=Tt.max,vn=Tt.min,xn=r.now,wn=e.parseInt,bn=Tt.random,Sn=At.reverse,En=ho(e,"DataView"),Tn=ho(e,"Map"),Cn=ho(e,"Promise"),In=ho(e,"Set"),kn=ho(e,"WeakMap"),On=ho(Ct,"create"),An=kn&&new kn,Rn={},Dn=jo(En),Mn=jo(Tn),Pn=jo(Cn),Ln=jo(In),Nn=jo(kn),Fn=Wt?Wt.prototype:i,jn=Fn?Fn.valueOf:i,zn=Fn?Fn.toString:i;function Gn(t){if(ea(t)&&!Bs(t)&&!(t instanceof Bn)){if(t instanceof Wn)return t;if(Lt.call(t,"__wrapped__"))return zo(t)}return new Wn(t)}var qn=function(){function t(){}return function(e){if(!ta(e))return{};if(Kt)return Kt(e);t.prototype=e;var n=new t;return t.prototype=i,n}}();function Hn(){}function Wn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function Bn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Yn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Un(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Kn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function $n(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Kn;++e<n;)this.add(t[e])}function Vn(t){var e=this.__data__=new Un(t);this.size=e.size}function Xn(t,e){var n=Bs(t),r=!n&&Ws(t),i=!n&&!r&&$s(t),o=!n&&!r&&!i&&ca(t),s=n||r||i||o,a=s?Ze(t.length,kt):[],l=a.length;for(var c in t)!e&&!Lt.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||vo(c,l))||a.push(c);return a}function Zn(t){var e=t.length;return e?t[$r(0,e-1)]:i}function Jn(t,e){return Lo(Oi(t),ar(e,0,t.length))}function Qn(t){return Lo(Oi(t))}function tr(t,e,n){(n!==i&&!Gs(t[e],n)||n===i&&!(e in t))&&or(t,e,n)}function er(t,e,n){var r=t[e];Lt.call(t,e)&&Gs(r,n)&&(n!==i||e in t)||or(t,e,n)}function nr(t,e){for(var n=t.length;n--;)if(Gs(t[n][0],e))return n;return-1}function rr(t,e,n,r){return dr(t,(function(t,i,o){e(r,t,n(t),o)})),r}function ir(t,e){return t&&Ai(e,Ra(e),t)}function or(t,e,n){"__proto__"==e&&Qt?Qt(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function sr(t,e){for(var r=-1,o=e.length,s=n(o),a=null==t;++r<o;)s[r]=a?i:Ca(t,e[r]);return s}function ar(t,e,n){return t===t&&(n!==i&&(t=t<=n?t:n),e!==i&&(t=t>=e?t:e)),t}function lr(t,e,n,r,o,s){var a,l=1&e,c=2&e,u=4&e;if(n&&(a=o?n(t,r,o,s):n(t)),a!==i)return a;if(!ta(t))return t;var h=Bs(t);if(h){if(a=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&Lt.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!l)return Oi(t,a)}else{var d=po(t),f=d==S||d==E;if($s(t))return Si(t,l);if(d==I||d==_||f&&!o){if(a=c||f?{}:yo(t),!l)return c?function(t,e){return Ai(t,go(t),e)}(t,function(t,e){return t&&Ai(e,Da(e),t)}(a,t)):function(t,e){return Ai(t,fo(t),e)}(t,ir(a,t))}else{if(!ce[d])return o?t:{};a=function(t,e,n){var r=t.constructor;switch(e){case P:return Ei(t);case x:case w:return new r(+t);case L:return function(t,e){var n=e?Ei(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case N:case F:case j:case z:case G:case q:case H:case W:case B:return Ti(t,n);case T:return new r;case C:case R:return new r(t);case O:return function(t){var e=new t.constructor(t.source,pt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case A:return new r;case D:return i=t,jn?Ct(jn.call(i)):{}}var i}(t,d,l)}}s||(s=new Vn);var g=s.get(t);if(g)return g;s.set(t,a),sa(t)?t.forEach((function(r){a.add(lr(r,e,n,r,t,s))})):na(t)&&t.forEach((function(r,i){a.set(i,lr(r,e,n,i,t,s))}));var p=h?i:(u?c?io:ro:c?Da:Ra)(t);return Oe(p||t,(function(r,i){p&&(r=t[i=r]),er(a,i,lr(r,e,n,i,t,s))})),a}function cr(t,e,n){var r=n.length;if(null==t)return!r;for(t=Ct(t);r--;){var o=n[r],s=e[o],a=t[o];if(a===i&&!(o in t)||!s(a))return!1}return!0}function ur(t,e,n){if("function"!=typeof t)throw new Ot(o);return Ro((function(){t.apply(i,n)}),e)}function hr(t,e,n,r){var i=-1,o=Me,s=!0,a=t.length,l=[],c=e.length;if(!a)return l;n&&(e=Le(e,Qe(n))),r?(o=Pe,s=!1):e.length>=200&&(o=en,s=!1,e=new $n(e));t:for(;++i<a;){var u=t[i],h=null==n?u:n(u);if(u=r||0!==u?u:0,s&&h===h){for(var d=c;d--;)if(e[d]===h)continue t;l.push(u)}else o(e,h,r)||l.push(u)}return l}Gn.templateSettings={escape:J,evaluate:Q,interpolate:tt,variable:"",imports:{_:Gn}},Gn.prototype=Hn.prototype,Gn.prototype.constructor=Gn,Wn.prototype=qn(Hn.prototype),Wn.prototype.constructor=Wn,Bn.prototype=qn(Hn.prototype),Bn.prototype.constructor=Bn,Yn.prototype.clear=function(){this.__data__=On?On(null):{},this.size=0},Yn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Yn.prototype.get=function(t){var e=this.__data__;if(On){var n=e[t];return n===s?i:n}return Lt.call(e,t)?e[t]:i},Yn.prototype.has=function(t){var e=this.__data__;return On?e[t]!==i:Lt.call(e,t)},Yn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=On&&e===i?s:e,this},Un.prototype.clear=function(){this.__data__=[],this.size=0},Un.prototype.delete=function(t){var e=this.__data__,n=nr(e,t);return!(n<0)&&(n==e.length-1?e.pop():Vt.call(e,n,1),--this.size,!0)},Un.prototype.get=function(t){var e=this.__data__,n=nr(e,t);return n<0?i:e[n][1]},Un.prototype.has=function(t){return nr(this.__data__,t)>-1},Un.prototype.set=function(t,e){var n=this.__data__,r=nr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Kn.prototype.clear=function(){this.size=0,this.__data__={hash:new Yn,map:new(Tn||Un),string:new Yn}},Kn.prototype.delete=function(t){var e=co(this,t).delete(t);return this.size-=e?1:0,e},Kn.prototype.get=function(t){return co(this,t).get(t)},Kn.prototype.has=function(t){return co(this,t).has(t)},Kn.prototype.set=function(t,e){var n=co(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},$n.prototype.add=$n.prototype.push=function(t){return this.__data__.set(t,s),this},$n.prototype.has=function(t){return this.__data__.has(t)},Vn.prototype.clear=function(){this.__data__=new Un,this.size=0},Vn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Vn.prototype.get=function(t){return this.__data__.get(t)},Vn.prototype.has=function(t){return this.__data__.has(t)},Vn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Un){var r=n.__data__;if(!Tn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Kn(r)}return n.set(t,e),this.size=n.size,this};var dr=Mi(xr),fr=Mi(wr,!0);function gr(t,e){var n=!0;return dr(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function pr(t,e,n){for(var r=-1,o=t.length;++r<o;){var s=t[r],a=e(s);if(null!=a&&(l===i?a===a&&!la(a):n(a,l)))var l=a,c=s}return c}function mr(t,e){var n=[];return dr(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function yr(t,e,n,r,i){var o=-1,s=t.length;for(n||(n=_o),i||(i=[]);++o<s;){var a=t[o];e>0&&n(a)?e>1?yr(a,e-1,n,r,i):Ne(i,a):r||(i[i.length]=a)}return i}var _r=Pi(),vr=Pi(!0);function xr(t,e){return t&&_r(t,e,Ra)}function wr(t,e){return t&&vr(t,e,Ra)}function br(t,e){return De(e,(function(e){return Zs(t[e])}))}function Sr(t,e){for(var n=0,r=(e=vi(e,t)).length;null!=t&&n<r;)t=t[Fo(e[n++])];return n&&n==r?t:i}function Er(t,e,n){var r=e(t);return Bs(t)?r:Ne(r,n(t))}function Tr(t){return null==t?t===i?"[object Undefined]":"[object Null]":Jt&&Jt in Ct(t)?function(t){var e=Lt.call(t,Jt),n=t[Jt];try{t[Jt]=i;var r=!0}catch(s){}var o=jt.call(t);r&&(e?t[Jt]=n:delete t[Jt]);return o}(t):function(t){return jt.call(t)}(t)}function Cr(t,e){return t>e}function Ir(t,e){return null!=t&&Lt.call(t,e)}function kr(t,e){return null!=t&&e in Ct(t)}function Or(t,e,r){for(var o=r?Pe:Me,s=t[0].length,a=t.length,l=a,c=n(a),u=1/0,h=[];l--;){var d=t[l];l&&e&&(d=Le(d,Qe(e))),u=vn(d.length,u),c[l]=!r&&(e||s>=120&&d.length>=120)?new $n(l&&d):i}d=t[0];var f=-1,g=c[0];t:for(;++f<s&&h.length<u;){var p=d[f],m=e?e(p):p;if(p=r||0!==p?p:0,!(g?en(g,m):o(h,m,r))){for(l=a;--l;){var y=c[l];if(!(y?en(y,m):o(t[l],m,r)))continue t}g&&g.push(m),h.push(p)}}return h}function Ar(t,e,n){var r=null==(t=ko(t,e=vi(e,t)))?t:t[Fo(Xo(e))];return null==r?i:Ie(r,t,n)}function Rr(t){return ea(t)&&Tr(t)==_}function Dr(t,e,n,r,o){return t===e||(null==t||null==e||!ea(t)&&!ea(e)?t!==t&&e!==e:function(t,e,n,r,o,s){var a=Bs(t),l=Bs(e),c=a?v:po(t),u=l?v:po(e),h=(c=c==_?I:c)==I,d=(u=u==_?I:u)==I,f=c==u;if(f&&$s(t)){if(!$s(e))return!1;a=!0,h=!1}if(f&&!h)return s||(s=new Vn),a||ca(t)?eo(t,e,n,r,o,s):function(t,e,n,r,i,o,s){switch(n){case L:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case P:return!(t.byteLength!=e.byteLength||!o(new Bt(t),new Bt(e)));case x:case w:case C:return Gs(+t,+e);case b:return t.name==e.name&&t.message==e.message;case O:case R:return t==e+"";case T:var a=cn;case A:var l=1&r;if(a||(a=dn),t.size!=e.size&&!l)return!1;var c=s.get(t);if(c)return c==e;r|=2,s.set(t,e);var u=eo(a(t),a(e),r,i,o,s);return s.delete(t),u;case D:if(jn)return jn.call(t)==jn.call(e)}return!1}(t,e,c,n,r,o,s);if(!(1&n)){var g=h&&Lt.call(t,"__wrapped__"),p=d&&Lt.call(e,"__wrapped__");if(g||p){var m=g?t.value():t,y=p?e.value():e;return s||(s=new Vn),o(m,y,n,r,s)}}if(!f)return!1;return s||(s=new Vn),function(t,e,n,r,o,s){var a=1&n,l=ro(t),c=l.length,u=ro(e),h=u.length;if(c!=h&&!a)return!1;var d=c;for(;d--;){var f=l[d];if(!(a?f in e:Lt.call(e,f)))return!1}var g=s.get(t),p=s.get(e);if(g&&p)return g==e&&p==t;var m=!0;s.set(t,e),s.set(e,t);var y=a;for(;++d<c;){var _=t[f=l[d]],v=e[f];if(r)var x=a?r(v,_,f,e,t,s):r(_,v,f,t,e,s);if(!(x===i?_===v||o(_,v,n,r,s):x)){m=!1;break}y||(y="constructor"==f)}if(m&&!y){var w=t.constructor,b=e.constructor;w==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof b&&b instanceof b||(m=!1)}return s.delete(t),s.delete(e),m}(t,e,n,r,o,s)}(t,e,n,r,Dr,o))}function Mr(t,e,n,r){var o=n.length,s=o,a=!r;if(null==t)return!s;for(t=Ct(t);o--;){var l=n[o];if(a&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++o<s;){var c=(l=n[o])[0],u=t[c],h=l[1];if(a&&l[2]){if(u===i&&!(c in t))return!1}else{var d=new Vn;if(r)var f=r(u,h,c,t,e,d);if(!(f===i?Dr(h,u,3,r,d):f))return!1}}return!0}function Pr(t){return!(!ta(t)||(e=t,Ft&&Ft in e))&&(Zs(t)?qt:_t).test(jo(t));var e}function Lr(t){return"function"==typeof t?t:null==t?rl:"object"==typeof t?Bs(t)?qr(t[0],t[1]):Gr(t):dl(t)}function Nr(t){if(!Eo(t))return Ge(t);var e=[];for(var n in Ct(t))Lt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Fr(t){if(!ta(t))return function(t){var e=[];if(null!=t)for(var n in Ct(t))e.push(n);return e}(t);var e=Eo(t),n=[];for(var r in t)("constructor"!=r||!e&&Lt.call(t,r))&&n.push(r);return n}function jr(t,e){return t<e}function zr(t,e){var r=-1,i=Us(t)?n(t.length):[];return dr(t,(function(t,n,o){i[++r]=e(t,n,o)})),i}function Gr(t){var e=uo(t);return 1==e.length&&e[0][2]?Co(e[0][0],e[0][1]):function(n){return n===t||Mr(n,t,e)}}function qr(t,e){return wo(t)&&To(e)?Co(Fo(t),e):function(n){var r=Ca(n,t);return r===i&&r===e?Ia(n,t):Dr(e,r,3)}}function Hr(t,e,n,r,o){t!==e&&_r(e,(function(s,a){if(o||(o=new Vn),ta(s))!function(t,e,n,r,o,s,a){var l=Oo(t,n),c=Oo(e,n),u=a.get(c);if(u)return void tr(t,n,u);var h=s?s(l,c,n+"",t,e,a):i,d=h===i;if(d){var f=Bs(c),g=!f&&$s(c),p=!f&&!g&&ca(c);h=c,f||g||p?Bs(l)?h=l:Ks(l)?h=Oi(l):g?(d=!1,h=Si(c,!0)):p?(d=!1,h=Ti(c,!0)):h=[]:ia(c)||Ws(c)?(h=l,Ws(l)?h=ya(l):ta(l)&&!Zs(l)||(h=yo(c))):d=!1}d&&(a.set(c,h),o(h,c,r,s,a),a.delete(c));tr(t,n,h)}(t,e,a,n,Hr,r,o);else{var l=r?r(Oo(t,a),s,a+"",t,e,o):i;l===i&&(l=s),tr(t,a,l)}}),Da)}function Wr(t,e){var n=t.length;if(n)return vo(e+=e<0?n:0,n)?t[e]:i}function Br(t,e,n){e=e.length?Le(e,(function(t){return Bs(t)?function(e){return Sr(e,1===t.length?t[0]:t)}:t})):[rl];var r=-1;e=Le(e,Qe(lo()));var i=zr(t,(function(t,n,i){var o=Le(e,(function(e){return e(t)}));return{criteria:o,index:++r,value:t}}));return function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(i,(function(t,e){return function(t,e,n){var r=-1,i=t.criteria,o=e.criteria,s=i.length,a=n.length;for(;++r<s;){var l=Ci(i[r],o[r]);if(l)return r>=a?l:l*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}))}function Yr(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var s=e[r],a=Sr(t,s);n(a,s)&&Qr(o,vi(s,t),a)}return o}function Ur(t,e,n,r){var i=r?Be:We,o=-1,s=e.length,a=t;for(t===e&&(e=Oi(e)),n&&(a=Le(t,Qe(n)));++o<s;)for(var l=0,c=e[o],u=n?n(c):c;(l=i(a,u,l,r))>-1;)a!==t&&Vt.call(a,l,1),Vt.call(t,l,1);return t}function Kr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;vo(i)?Vt.call(t,i,1):hi(t,i)}}return t}function $r(t,e){return t+ge(bn()*(e-t+1))}function Vr(t,e){var n="";if(!t||e<1||e>g)return n;do{e%2&&(n+=t),(e=ge(e/2))&&(t+=t)}while(e);return n}function Xr(t,e){return Do(Io(t,e,rl),t+"")}function Zr(t){return Zn(Ga(t))}function Jr(t,e){var n=Ga(t);return Lo(n,ar(e,0,n.length))}function Qr(t,e,n,r){if(!ta(t))return t;for(var o=-1,s=(e=vi(e,t)).length,a=s-1,l=t;null!=l&&++o<s;){var c=Fo(e[o]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(o!=a){var h=l[c];(u=r?r(h,c,l):i)===i&&(u=ta(h)?h:vo(e[o+1])?[]:{})}er(l,c,u),l=l[c]}return t}var ti=An?function(t,e){return An.set(t,e),t}:rl,ei=Qt?function(t,e){return Qt(t,"toString",{configurable:!0,enumerable:!1,value:tl(e),writable:!0})}:rl;function ni(t){return Lo(Ga(t))}function ri(t,e,r){var i=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var s=n(o);++i<o;)s[i]=t[i+e];return s}function ii(t,e){var n;return dr(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}function oi(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e===e&&i<=2147483647){for(;r<i;){var o=r+i>>>1,s=t[o];null!==s&&!la(s)&&(n?s<=e:s<e)?r=o+1:i=o}return i}return si(t,e,rl,n)}function si(t,e,n,r){var o=0,s=null==t?0:t.length;if(0===s)return 0;for(var a=(e=n(e))!==e,l=null===e,c=la(e),u=e===i;o<s;){var h=ge((o+s)/2),d=n(t[h]),f=d!==i,g=null===d,p=d===d,m=la(d);if(a)var y=r||p;else y=u?p&&(r||f):l?p&&f&&(r||!g):c?p&&f&&!g&&(r||!m):!g&&!m&&(r?d<=e:d<e);y?o=h+1:s=h}return vn(s,4294967294)}function ai(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var s=t[n],a=e?e(s):s;if(!n||!Gs(a,l)){var l=a;o[i++]=0===s?0:s}}return o}function li(t){return"number"==typeof t?t:la(t)?p:+t}function ci(t){if("string"==typeof t)return t;if(Bs(t))return Le(t,ci)+"";if(la(t))return zn?zn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ui(t,e,n){var r=-1,i=Me,o=t.length,s=!0,a=[],l=a;if(n)s=!1,i=Pe;else if(o>=200){var c=e?null:Vi(t);if(c)return dn(c);s=!1,i=en,l=new $n}else l=e?[]:a;t:for(;++r<o;){var u=t[r],h=e?e(u):u;if(u=n||0!==u?u:0,s&&h===h){for(var d=l.length;d--;)if(l[d]===h)continue t;e&&l.push(h),a.push(u)}else i(l,h,n)||(l!==a&&l.push(h),a.push(u))}return a}function hi(t,e){return null==(t=ko(t,e=vi(e,t)))||delete t[Fo(Xo(e))]}function di(t,e,n,r){return Qr(t,e,n(Sr(t,e)),r)}function fi(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?ri(t,r?0:o,r?o+1:i):ri(t,r?o+1:0,r?i:o)}function gi(t,e){var n=t;return n instanceof Bn&&(n=n.value()),Fe(e,(function(t,e){return e.func.apply(e.thisArg,Ne([t],e.args))}),n)}function pi(t,e,r){var i=t.length;if(i<2)return i?ui(t[0]):[];for(var o=-1,s=n(i);++o<i;)for(var a=t[o],l=-1;++l<i;)l!=o&&(s[o]=hr(s[o]||a,t[l],e,r));return ui(yr(s,1),e,r)}function mi(t,e,n){for(var r=-1,o=t.length,s=e.length,a={};++r<o;){var l=r<s?e[r]:i;n(a,t[r],l)}return a}function yi(t){return Ks(t)?t:[]}function _i(t){return"function"==typeof t?t:rl}function vi(t,e){return Bs(t)?t:wo(t,e)?[t]:No(_a(t))}var xi=Xr;function wi(t,e,n){var r=t.length;return n=n===i?r:n,!e&&n>=r?t:ri(t,e,n)}var bi=ne||function(t){return pe.clearTimeout(t)};function Si(t,e){if(e)return t.slice();var n=t.length,r=Yt?Yt(n):new t.constructor(n);return t.copy(r),r}function Ei(t){var e=new t.constructor(t.byteLength);return new Bt(e).set(new Bt(t)),e}function Ti(t,e){var n=e?Ei(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Ci(t,e){if(t!==e){var n=t!==i,r=null===t,o=t===t,s=la(t),a=e!==i,l=null===e,c=e===e,u=la(e);if(!l&&!u&&!s&&t>e||s&&a&&c&&!l&&!u||r&&a&&c||!n&&c||!o)return 1;if(!r&&!s&&!u&&t<e||u&&n&&o&&!r&&!s||l&&n&&o||!a&&o||!c)return-1}return 0}function Ii(t,e,r,i){for(var o=-1,s=t.length,a=r.length,l=-1,c=e.length,u=$e(s-a,0),h=n(c+u),d=!i;++l<c;)h[l]=e[l];for(;++o<a;)(d||o<s)&&(h[r[o]]=t[o]);for(;u--;)h[l++]=t[o++];return h}function ki(t,e,r,i){for(var o=-1,s=t.length,a=-1,l=r.length,c=-1,u=e.length,h=$e(s-l,0),d=n(h+u),f=!i;++o<h;)d[o]=t[o];for(var g=o;++c<u;)d[g+c]=e[c];for(;++a<l;)(f||o<s)&&(d[g+r[a]]=t[o++]);return d}function Oi(t,e){var r=-1,i=t.length;for(e||(e=n(i));++r<i;)e[r]=t[r];return e}function Ai(t,e,n,r){var o=!n;n||(n={});for(var s=-1,a=e.length;++s<a;){var l=e[s],c=r?r(n[l],t[l],l,n,t):i;c===i&&(c=t[l]),o?or(n,l,c):er(n,l,c)}return n}function Ri(t,e){return function(n,r){var i=Bs(n)?ke:rr,o=e?e():{};return i(n,t,lo(r,2),o)}}function Di(t){return Xr((function(e,n){var r=-1,o=n.length,s=o>1?n[o-1]:i,a=o>2?n[2]:i;for(s=t.length>3&&"function"==typeof s?(o--,s):i,a&&xo(n[0],n[1],a)&&(s=o<3?i:s,o=1),e=Ct(e);++r<o;){var l=n[r];l&&t(e,l,r,s)}return e}))}function Mi(t,e){return function(n,r){if(null==n)return n;if(!Us(n))return t(n,r);for(var i=n.length,o=e?i:-1,s=Ct(n);(e?o--:++o<i)&&!1!==r(s[o],o,s););return n}}function Pi(t){return function(e,n,r){for(var i=-1,o=Ct(e),s=r(e),a=s.length;a--;){var l=s[t?a:++i];if(!1===n(o[l],l,o))break}return e}}function Li(t){return function(e){var n=ln(e=_a(e))?pn(e):i,r=n?n[0]:e.charAt(0),o=n?wi(n,1).join(""):e.slice(1);return r[t]()+o}}function Ni(t){return function(e){return Fe(Za(Wa(e).replace(te,"")),t,"")}}function Fi(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=qn(t.prototype),r=t.apply(n,e);return ta(r)?r:n}}function ji(t){return function(e,n,r){var o=Ct(e);if(!Us(e)){var s=lo(n,3);e=Ra(e),n=function(t){return s(o[t],t,o)}}var a=t(e,n,r);return a>-1?o[s?e[a]:a]:i}}function zi(t){return no((function(e){var n=e.length,r=n,s=Wn.prototype.thru;for(t&&e.reverse();r--;){var a=e[r];if("function"!=typeof a)throw new Ot(o);if(s&&!l&&"wrapper"==so(a))var l=new Wn([],!0)}for(r=l?r:n;++r<n;){var c=so(a=e[r]),u="wrapper"==c?oo(a):i;l=u&&bo(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[so(u[0])].apply(l,u[3]):1==a.length&&bo(a)?l[c]():l.thru(a)}return function(){var t=arguments,r=t[0];if(l&&1==t.length&&Bs(r))return l.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}}))}function Gi(t,e,r,o,s,a,l,c,u,d){var f=e&h,g=1&e,p=2&e,m=24&e,y=512&e,_=p?i:Fi(t);return function h(){for(var v=arguments.length,x=n(v),w=v;w--;)x[w]=arguments[w];if(m)var b=ao(h),S=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(x,b);if(o&&(x=Ii(x,o,s,m)),a&&(x=ki(x,a,l,m)),v-=S,m&&v<d){var E=hn(x,b);return Ki(t,e,Gi,h.placeholder,r,x,E,c,u,d-v)}var T=g?r:this,C=p?T[t]:t;return v=x.length,c?x=function(t,e){var n=t.length,r=vn(e.length,n),o=Oi(t);for(;r--;){var s=e[r];t[r]=vo(s,n)?o[s]:i}return t}(x,c):y&&v>1&&x.reverse(),f&&u<v&&(x.length=u),this&&this!==pe&&this instanceof h&&(C=_||Fi(C)),C.apply(T,x)}}function qi(t,e){return function(n,r){return function(t,e,n,r){return xr(t,(function(t,i,o){e(r,n(t),i,o)})),r}(n,t,e(r),{})}}function Hi(t,e){return function(n,r){var o;if(n===i&&r===i)return e;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=ci(n),r=ci(r)):(n=li(n),r=li(r)),o=t(n,r)}return o}}function Wi(t){return no((function(e){return e=Le(e,Qe(lo())),Xr((function(n){var r=this;return t(e,(function(t){return Ie(t,r,n)}))}))}))}function Bi(t,e){var n=(e=e===i?" ":ci(e)).length;if(n<2)return n?Vr(e,t):e;var r=Vr(e,fe(t/gn(e)));return ln(e)?wi(pn(r),0,t).join(""):r.slice(0,t)}function Yi(t){return function(e,r,o){return o&&"number"!=typeof o&&xo(e,r,o)&&(r=o=i),e=fa(e),r===i?(r=e,e=0):r=fa(r),function(t,e,r,i){for(var o=-1,s=$e(fe((e-t)/(r||1)),0),a=n(s);s--;)a[i?s:++o]=t,t+=r;return a}(e,r,o=o===i?e<r?1:-1:fa(o),t)}}function Ui(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=ma(e),n=ma(n)),t(e,n)}}function Ki(t,e,n,r,o,s,a,l,h,d){var f=8&e;e|=f?c:u,4&(e&=~(f?u:c))||(e&=-4);var g=[t,e,o,f?s:i,f?a:i,f?i:s,f?i:a,l,h,d],p=n.apply(i,g);return bo(t)&&Ao(p,g),p.placeholder=r,Mo(p,t,e)}function $i(t){var e=Tt[t];return function(t,n){if(t=ma(t),(n=null==n?0:vn(ga(n),292))&&ve(t)){var r=(_a(t)+"e").split("e");return+((r=(_a(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Vi=In&&1/dn(new In([,-0]))[1]==f?function(t){return new In(t)}:ll;function Xi(t){return function(e){var n=po(e);return n==T?cn(e):n==A?fn(e):function(t,e){return Le(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Zi(t,e,r,s,f,g,p,m){var y=2&e;if(!y&&"function"!=typeof t)throw new Ot(o);var _=s?s.length:0;if(_||(e&=-97,s=f=i),p=p===i?p:$e(ga(p),0),m=m===i?m:ga(m),_-=f?f.length:0,e&u){var v=s,x=f;s=f=i}var w=y?i:oo(t),b=[t,e,r,s,f,v,x,g,p,m];if(w&&function(t,e){var n=t[1],r=e[1],i=n|r,o=i<131,s=r==h&&8==n||r==h&&n==d&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!o&&!s)return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var l=e[3];if(l){var c=t[3];t[3]=c?Ii(c,l,e[4]):l,t[4]=c?hn(t[3],a):e[4]}(l=e[5])&&(c=t[5],t[5]=c?ki(c,l,e[6]):l,t[6]=c?hn(t[5],a):e[6]);(l=e[7])&&(t[7]=l);r&h&&(t[8]=null==t[8]?e[8]:vn(t[8],e[8]));null==t[9]&&(t[9]=e[9]);t[0]=e[0],t[1]=i}(b,w),t=b[0],e=b[1],r=b[2],s=b[3],f=b[4],!(m=b[9]=b[9]===i?y?0:t.length:$e(b[9]-_,0))&&24&e&&(e&=-25),e&&1!=e)S=8==e||e==l?function(t,e,r){var o=Fi(t);return function s(){for(var a=arguments.length,l=n(a),c=a,u=ao(s);c--;)l[c]=arguments[c];var h=a<3&&l[0]!==u&&l[a-1]!==u?[]:hn(l,u);return(a-=h.length)<r?Ki(t,e,Gi,s.placeholder,i,l,h,i,i,r-a):Ie(this&&this!==pe&&this instanceof s?o:t,this,l)}}(t,e,m):e!=c&&33!=e||f.length?Gi.apply(i,b):function(t,e,r,i){var o=1&e,s=Fi(t);return function e(){for(var a=-1,l=arguments.length,c=-1,u=i.length,h=n(u+l),d=this&&this!==pe&&this instanceof e?s:t;++c<u;)h[c]=i[c];for(;l--;)h[c++]=arguments[++a];return Ie(d,o?r:this,h)}}(t,e,r,s);else var S=function(t,e,n){var r=1&e,i=Fi(t);return function e(){return(this&&this!==pe&&this instanceof e?i:t).apply(r?n:this,arguments)}}(t,e,r);return Mo((w?ti:Ao)(S,b),t,e)}function Ji(t,e,n,r){return t===i||Gs(t,Dt[n])&&!Lt.call(r,n)?e:t}function Qi(t,e,n,r,o,s){return ta(t)&&ta(e)&&(s.set(e,t),Hr(t,e,i,Qi,s),s.delete(e)),t}function to(t){return ia(t)?i:t}function eo(t,e,n,r,o,s){var a=1&n,l=t.length,c=e.length;if(l!=c&&!(a&&c>l))return!1;var u=s.get(t),h=s.get(e);if(u&&h)return u==e&&h==t;var d=-1,f=!0,g=2&n?new $n:i;for(s.set(t,e),s.set(e,t);++d<l;){var p=t[d],m=e[d];if(r)var y=a?r(m,p,d,e,t,s):r(p,m,d,t,e,s);if(y!==i){if(y)continue;f=!1;break}if(g){if(!ze(e,(function(t,e){if(!en(g,e)&&(p===t||o(p,t,n,r,s)))return g.push(e)}))){f=!1;break}}else if(p!==m&&!o(p,m,n,r,s)){f=!1;break}}return s.delete(t),s.delete(e),f}function no(t){return Do(Io(t,i,Yo),t+"")}function ro(t){return Er(t,Ra,fo)}function io(t){return Er(t,Da,go)}var oo=An?function(t){return An.get(t)}:ll;function so(t){for(var e=t.name+"",n=Rn[e],r=Lt.call(Rn,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function ao(t){return(Lt.call(Gn,"placeholder")?Gn:t).placeholder}function lo(){var t=Gn.iteratee||il;return t=t===il?Lr:t,arguments.length?t(arguments[0],arguments[1]):t}function co(t,e){var n=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map}function uo(t){for(var e=Ra(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,To(i)]}return e}function ho(t,e){var n=function(t,e){return null==t?i:t[e]}(t,e);return Pr(n)?n:i}var fo=me?function(t){return null==t?[]:(t=Ct(t),De(me(t),(function(e){return $t.call(t,e)})))}:pl,go=me?function(t){for(var e=[];t;)Ne(e,fo(t)),t=Ut(t);return e}:pl,po=Tr;function mo(t,e,n){for(var r=-1,i=(e=vi(e,t)).length,o=!1;++r<i;){var s=Fo(e[r]);if(!(o=null!=t&&n(t,s)))break;t=t[s]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&Qs(i)&&vo(s,i)&&(Bs(t)||Ws(t))}function yo(t){return"function"!=typeof t.constructor||Eo(t)?{}:qn(Ut(t))}function _o(t){return Bs(t)||Ws(t)||!!(Xt&&t&&t[Xt])}function vo(t,e){var n=typeof t;return!!(e=null==e?g:e)&&("number"==n||"symbol"!=n&&xt.test(t))&&t>-1&&t%1==0&&t<e}function xo(t,e,n){if(!ta(n))return!1;var r=typeof e;return!!("number"==r?Us(n)&&vo(e,n.length):"string"==r&&e in n)&&Gs(n[e],t)}function wo(t,e){if(Bs(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!la(t))||(nt.test(t)||!et.test(t)||null!=e&&t in Ct(e))}function bo(t){var e=so(t),n=Gn[e];if("function"!=typeof n||!(e in Bn.prototype))return!1;if(t===n)return!0;var r=oo(n);return!!r&&t===r[0]}(En&&po(new En(new ArrayBuffer(1)))!=L||Tn&&po(new Tn)!=T||Cn&&po(Cn.resolve())!=k||In&&po(new In)!=A||kn&&po(new kn)!=M)&&(po=function(t){var e=Tr(t),n=e==I?t.constructor:i,r=n?jo(n):"";if(r)switch(r){case Dn:return L;case Mn:return T;case Pn:return k;case Ln:return A;case Nn:return M}return e});var So=Mt?Zs:ml;function Eo(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Dt)}function To(t){return t===t&&!ta(t)}function Co(t,e){return function(n){return null!=n&&(n[t]===e&&(e!==i||t in Ct(n)))}}function Io(t,e,r){return e=$e(e===i?t.length-1:e,0),function(){for(var i=arguments,o=-1,s=$e(i.length-e,0),a=n(s);++o<s;)a[o]=i[e+o];o=-1;for(var l=n(e+1);++o<e;)l[o]=i[o];return l[e]=r(a),Ie(t,this,l)}}function ko(t,e){return e.length<2?t:Sr(t,ri(e,0,-1))}function Oo(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}var Ao=Po(ti),Ro=ue||function(t,e){return pe.setTimeout(t,e)},Do=Po(ei);function Mo(t,e,n){var r=e+"";return Do(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(lt,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Oe(y,(function(n){var r="_."+n[0];e&n[1]&&!Me(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(ct);return e?e[1].split(ut):[]}(r),n)))}function Po(t){var e=0,n=0;return function(){var r=xn(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(i,arguments)}}function Lo(t,e){var n=-1,r=t.length,o=r-1;for(e=e===i?r:e;++n<e;){var s=$r(n,o),a=t[s];t[s]=t[n],t[n]=a}return t.length=e,t}var No=function(t){var e=Ps(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(rt,(function(t,n,r,i){e.push(r?i.replace(ft,"$1"):n||t)})),e}));function Fo(t){if("string"==typeof t||la(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function jo(t){if(null!=t){try{return Pt.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function zo(t){if(t instanceof Bn)return t.clone();var e=new Wn(t.__wrapped__,t.__chain__);return e.__actions__=Oi(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Go=Xr((function(t,e){return Ks(t)?hr(t,yr(e,1,Ks,!0)):[]})),qo=Xr((function(t,e){var n=Xo(e);return Ks(n)&&(n=i),Ks(t)?hr(t,yr(e,1,Ks,!0),lo(n,2)):[]})),Ho=Xr((function(t,e){var n=Xo(e);return Ks(n)&&(n=i),Ks(t)?hr(t,yr(e,1,Ks,!0),i,n):[]}));function Wo(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:ga(n);return i<0&&(i=$e(r+i,0)),He(t,lo(e,3),i)}function Bo(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r-1;return n!==i&&(o=ga(n),o=n<0?$e(r+o,0):vn(o,r-1)),He(t,lo(e,3),o,!0)}function Yo(t){return(null==t?0:t.length)?yr(t,1):[]}function Uo(t){return t&&t.length?t[0]:i}var Ko=Xr((function(t){var e=Le(t,yi);return e.length&&e[0]===t[0]?Or(e):[]})),$o=Xr((function(t){var e=Xo(t),n=Le(t,yi);return e===Xo(n)?e=i:n.pop(),n.length&&n[0]===t[0]?Or(n,lo(e,2)):[]})),Vo=Xr((function(t){var e=Xo(t),n=Le(t,yi);return(e="function"==typeof e?e:i)&&n.pop(),n.length&&n[0]===t[0]?Or(n,i,e):[]}));function Xo(t){var e=null==t?0:t.length;return e?t[e-1]:i}var Zo=Xr(Jo);function Jo(t,e){return t&&t.length&&e&&e.length?Ur(t,e):t}var Qo=no((function(t,e){var n=null==t?0:t.length,r=sr(t,e);return Kr(t,Le(e,(function(t){return vo(t,n)?+t:t})).sort(Ci)),r}));function ts(t){return null==t?t:Sn.call(t)}var es=Xr((function(t){return ui(yr(t,1,Ks,!0))})),ns=Xr((function(t){var e=Xo(t);return Ks(e)&&(e=i),ui(yr(t,1,Ks,!0),lo(e,2))})),rs=Xr((function(t){var e=Xo(t);return e="function"==typeof e?e:i,ui(yr(t,1,Ks,!0),i,e)}));function is(t){if(!t||!t.length)return[];var e=0;return t=De(t,(function(t){if(Ks(t))return e=$e(t.length,e),!0})),Ze(e,(function(e){return Le(t,Ke(e))}))}function os(t,e){if(!t||!t.length)return[];var n=is(t);return null==e?n:Le(n,(function(t){return Ie(e,i,t)}))}var ss=Xr((function(t,e){return Ks(t)?hr(t,e):[]})),as=Xr((function(t){return pi(De(t,Ks))})),ls=Xr((function(t){var e=Xo(t);return Ks(e)&&(e=i),pi(De(t,Ks),lo(e,2))})),cs=Xr((function(t){var e=Xo(t);return e="function"==typeof e?e:i,pi(De(t,Ks),i,e)})),us=Xr(is);var hs=Xr((function(t){var e=t.length,n=e>1?t[e-1]:i;return n="function"==typeof n?(t.pop(),n):i,os(t,n)}));function ds(t){var e=Gn(t);return e.__chain__=!0,e}function fs(t,e){return e(t)}var gs=no((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,o=function(e){return sr(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Bn&&vo(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:fs,args:[o],thisArg:i}),new Wn(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(i),t}))):this.thru(o)}));var ps=Ri((function(t,e,n){Lt.call(t,n)?++t[n]:or(t,n,1)}));var ms=ji(Wo),ys=ji(Bo);function _s(t,e){return(Bs(t)?Oe:dr)(t,lo(e,3))}function vs(t,e){return(Bs(t)?Ae:fr)(t,lo(e,3))}var xs=Ri((function(t,e,n){Lt.call(t,n)?t[n].push(e):or(t,n,[e])}));var ws=Xr((function(t,e,r){var i=-1,o="function"==typeof e,s=Us(t)?n(t.length):[];return dr(t,(function(t){s[++i]=o?Ie(e,t,r):Ar(t,e,r)})),s})),bs=Ri((function(t,e,n){or(t,n,e)}));function Ss(t,e){return(Bs(t)?Le:zr)(t,lo(e,3))}var Es=Ri((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var Ts=Xr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&xo(t,e[0],e[1])?e=[]:n>2&&xo(e[0],e[1],e[2])&&(e=[e[0]]),Br(t,yr(e,1),[])})),Cs=ie||function(){return pe.Date.now()};function Is(t,e,n){return e=n?i:e,e=t&&null==e?t.length:e,Zi(t,h,i,i,i,i,e)}function ks(t,e){var n;if("function"!=typeof e)throw new Ot(o);return t=ga(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=i),n}}var Os=Xr((function(t,e,n){var r=1;if(n.length){var i=hn(n,ao(Os));r|=c}return Zi(t,r,e,n,i)})),As=Xr((function(t,e,n){var r=3;if(n.length){var i=hn(n,ao(As));r|=c}return Zi(e,r,t,n,i)}));function Rs(t,e,n){var r,s,a,l,c,u,h=0,d=!1,f=!1,g=!0;if("function"!=typeof t)throw new Ot(o);function p(e){var n=r,o=s;return r=s=i,h=e,l=t.apply(o,n)}function m(t){var n=t-u;return u===i||n>=e||n<0||f&&t-h>=a}function y(){var t=Cs();if(m(t))return _(t);c=Ro(y,function(t){var n=e-(t-u);return f?vn(n,a-(t-h)):n}(t))}function _(t){return c=i,g&&r?p(t):(r=s=i,l)}function v(){var t=Cs(),n=m(t);if(r=arguments,s=this,u=t,n){if(c===i)return function(t){return h=t,c=Ro(y,e),d?p(t):l}(u);if(f)return bi(c),c=Ro(y,e),p(u)}return c===i&&(c=Ro(y,e)),l}return e=ma(e)||0,ta(n)&&(d=!!n.leading,a=(f="maxWait"in n)?$e(ma(n.maxWait)||0,e):a,g="trailing"in n?!!n.trailing:g),v.cancel=function(){c!==i&&bi(c),h=0,r=u=s=c=i},v.flush=function(){return c===i?l:_(Cs())},v}var Ds=Xr((function(t,e){return ur(t,1,e)})),Ms=Xr((function(t,e,n){return ur(t,ma(e)||0,n)}));function Ps(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Ot(o);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Ps.Cache||Kn),n}function Ls(t){if("function"!=typeof t)throw new Ot(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ps.Cache=Kn;var Ns=xi((function(t,e){var n=(e=1==e.length&&Bs(e[0])?Le(e[0],Qe(lo())):Le(yr(e,1),Qe(lo()))).length;return Xr((function(r){for(var i=-1,o=vn(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return Ie(t,this,r)}))})),Fs=Xr((function(t,e){var n=hn(e,ao(Fs));return Zi(t,c,i,e,n)})),js=Xr((function(t,e){var n=hn(e,ao(js));return Zi(t,u,i,e,n)})),zs=no((function(t,e){return Zi(t,d,i,i,i,e)}));function Gs(t,e){return t===e||t!==t&&e!==e}var qs=Ui(Cr),Hs=Ui((function(t,e){return t>=e})),Ws=Rr(function(){return arguments}())?Rr:function(t){return ea(t)&&Lt.call(t,"callee")&&!$t.call(t,"callee")},Bs=n.isArray,Ys=we?Qe(we):function(t){return ea(t)&&Tr(t)==P};function Us(t){return null!=t&&Qs(t.length)&&!Zs(t)}function Ks(t){return ea(t)&&Us(t)}var $s=ye||ml,Vs=be?Qe(be):function(t){return ea(t)&&Tr(t)==w};function Xs(t){if(!ea(t))return!1;var e=Tr(t);return e==b||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ia(t)}function Zs(t){if(!ta(t))return!1;var e=Tr(t);return e==S||e==E||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Js(t){return"number"==typeof t&&t==ga(t)}function Qs(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=g}function ta(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ea(t){return null!=t&&"object"==typeof t}var na=Se?Qe(Se):function(t){return ea(t)&&po(t)==T};function ra(t){return"number"==typeof t||ea(t)&&Tr(t)==C}function ia(t){if(!ea(t)||Tr(t)!=I)return!1;var e=Ut(t);if(null===e)return!0;var n=Lt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Pt.call(n)==zt}var oa=Ee?Qe(Ee):function(t){return ea(t)&&Tr(t)==O};var sa=Te?Qe(Te):function(t){return ea(t)&&po(t)==A};function aa(t){return"string"==typeof t||!Bs(t)&&ea(t)&&Tr(t)==R}function la(t){return"symbol"==typeof t||ea(t)&&Tr(t)==D}var ca=Ce?Qe(Ce):function(t){return ea(t)&&Qs(t.length)&&!!le[Tr(t)]};var ua=Ui(jr),ha=Ui((function(t,e){return t<=e}));function da(t){if(!t)return[];if(Us(t))return aa(t)?pn(t):Oi(t);if(Zt&&t[Zt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Zt]());var e=po(t);return(e==T?cn:e==A?dn:Ga)(t)}function fa(t){return t?(t=ma(t))===f||t===-1/0?17976931348623157e292*(t<0?-1:1):t===t?t:0:0===t?t:0}function ga(t){var e=fa(t),n=e%1;return e===e?n?e-n:e:0}function pa(t){return t?ar(ga(t),0,m):0}function ma(t){if("number"==typeof t)return t;if(la(t))return p;if(ta(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ta(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Je(t);var n=yt.test(t);return n||vt.test(t)?de(t.slice(2),n?2:8):mt.test(t)?p:+t}function ya(t){return Ai(t,Da(t))}function _a(t){return null==t?"":ci(t)}var va=Di((function(t,e){if(Eo(e)||Us(e))Ai(e,Ra(e),t);else for(var n in e)Lt.call(e,n)&&er(t,n,e[n])})),xa=Di((function(t,e){Ai(e,Da(e),t)})),wa=Di((function(t,e,n,r){Ai(e,Da(e),t,r)})),ba=Di((function(t,e,n,r){Ai(e,Ra(e),t,r)})),Sa=no(sr);var Ea=Xr((function(t,e){t=Ct(t);var n=-1,r=e.length,o=r>2?e[2]:i;for(o&&xo(e[0],e[1],o)&&(r=1);++n<r;)for(var s=e[n],a=Da(s),l=-1,c=a.length;++l<c;){var u=a[l],h=t[u];(h===i||Gs(h,Dt[u])&&!Lt.call(t,u))&&(t[u]=s[u])}return t})),Ta=Xr((function(t){return t.push(i,Qi),Ie(Pa,i,t)}));function Ca(t,e,n){var r=null==t?i:Sr(t,e);return r===i?n:r}function Ia(t,e){return null!=t&&mo(t,e,kr)}var ka=qi((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=jt.call(e)),t[e]=n}),tl(rl)),Oa=qi((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=jt.call(e)),Lt.call(t,e)?t[e].push(n):t[e]=[n]}),lo),Aa=Xr(Ar);function Ra(t){return Us(t)?Xn(t):Nr(t)}function Da(t){return Us(t)?Xn(t,!0):Fr(t)}var Ma=Di((function(t,e,n){Hr(t,e,n)})),Pa=Di((function(t,e,n,r){Hr(t,e,n,r)})),La=no((function(t,e){var n={};if(null==t)return n;var r=!1;e=Le(e,(function(e){return e=vi(e,t),r||(r=e.length>1),e})),Ai(t,io(t),n),r&&(n=lr(n,7,to));for(var i=e.length;i--;)hi(n,e[i]);return n}));var Na=no((function(t,e){return null==t?{}:function(t,e){return Yr(t,e,(function(e,n){return Ia(t,n)}))}(t,e)}));function Fa(t,e){if(null==t)return{};var n=Le(io(t),(function(t){return[t]}));return e=lo(e),Yr(t,n,(function(t,n){return e(t,n[0])}))}var ja=Xi(Ra),za=Xi(Da);function Ga(t){return null==t?[]:tn(t,Ra(t))}var qa=Ni((function(t,e,n){return e=e.toLowerCase(),t+(n?Ha(e):e)}));function Ha(t){return Xa(_a(t).toLowerCase())}function Wa(t){return(t=_a(t))&&t.replace(wt,on).replace(ee,"")}var Ba=Ni((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Ya=Ni((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Ua=Li("toLowerCase");var Ka=Ni((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var $a=Ni((function(t,e,n){return t+(n?" ":"")+Xa(e)}));var Va=Ni((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Xa=Li("toUpperCase");function Za(t,e,n){return t=_a(t),(e=n?i:e)===i?function(t){return oe.test(t)}(t)?function(t){return t.match(re)||[]}(t):function(t){return t.match(ht)||[]}(t):t.match(e)||[]}var Ja=Xr((function(t,e){try{return Ie(t,i,e)}catch(n){return Xs(n)?n:new at(n)}})),Qa=no((function(t,e){return Oe(e,(function(e){e=Fo(e),or(t,e,Os(t[e],t))})),t}));function tl(t){return function(){return t}}var el=zi(),nl=zi(!0);function rl(t){return t}function il(t){return Lr("function"==typeof t?t:lr(t,1))}var ol=Xr((function(t,e){return function(n){return Ar(n,t,e)}})),sl=Xr((function(t,e){return function(n){return Ar(t,n,e)}}));function al(t,e,n){var r=Ra(e),i=br(e,r);null!=n||ta(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=br(e,Ra(e)));var o=!(ta(n)&&"chain"in n)||!!n.chain,s=Zs(t);return Oe(i,(function(n){var r=e[n];t[n]=r,s&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__);return(n.__actions__=Oi(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Ne([this.value()],arguments))})})),t}function ll(){}var cl=Wi(Le),ul=Wi(Re),hl=Wi(ze);function dl(t){return wo(t)?Ke(Fo(t)):function(t){return function(e){return Sr(e,t)}}(t)}var fl=Yi(),gl=Yi(!0);function pl(){return[]}function ml(){return!1}var yl=Hi((function(t,e){return t+e}),0),_l=$i("ceil"),vl=Hi((function(t,e){return t/e}),1),xl=$i("floor");var wl=Hi((function(t,e){return t*e}),1),bl=$i("round"),Sl=Hi((function(t,e){return t-e}),0);return Gn.after=function(t,e){if("function"!=typeof e)throw new Ot(o);return t=ga(t),function(){if(--t<1)return e.apply(this,arguments)}},Gn.ary=Is,Gn.assign=va,Gn.assignIn=xa,Gn.assignInWith=wa,Gn.assignWith=ba,Gn.at=Sa,Gn.before=ks,Gn.bind=Os,Gn.bindAll=Qa,Gn.bindKey=As,Gn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Bs(t)?t:[t]},Gn.chain=ds,Gn.chunk=function(t,e,r){e=(r?xo(t,e,r):e===i)?1:$e(ga(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var s=0,a=0,l=n(fe(o/e));s<o;)l[a++]=ri(t,s,s+=e);return l},Gn.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i},Gn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=n(t-1),r=arguments[0],i=t;i--;)e[i-1]=arguments[i];return Ne(Bs(r)?Oi(r):[r],yr(e,1))},Gn.cond=function(t){var e=null==t?0:t.length,n=lo();return t=e?Le(t,(function(t){if("function"!=typeof t[1])throw new Ot(o);return[n(t[0]),t[1]]})):[],Xr((function(n){for(var r=-1;++r<e;){var i=t[r];if(Ie(i[0],this,n))return Ie(i[1],this,n)}}))},Gn.conforms=function(t){return function(t){var e=Ra(t);return function(n){return cr(n,t,e)}}(lr(t,1))},Gn.constant=tl,Gn.countBy=ps,Gn.create=function(t,e){var n=qn(t);return null==e?n:ir(n,e)},Gn.curry=function t(e,n,r){var o=Zi(e,8,i,i,i,i,i,n=r?i:n);return o.placeholder=t.placeholder,o},Gn.curryRight=function t(e,n,r){var o=Zi(e,l,i,i,i,i,i,n=r?i:n);return o.placeholder=t.placeholder,o},Gn.debounce=Rs,Gn.defaults=Ea,Gn.defaultsDeep=Ta,Gn.defer=Ds,Gn.delay=Ms,Gn.difference=Go,Gn.differenceBy=qo,Gn.differenceWith=Ho,Gn.drop=function(t,e,n){var r=null==t?0:t.length;return r?ri(t,(e=n||e===i?1:ga(e))<0?0:e,r):[]},Gn.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?ri(t,0,(e=r-(e=n||e===i?1:ga(e)))<0?0:e):[]},Gn.dropRightWhile=function(t,e){return t&&t.length?fi(t,lo(e,3),!0,!0):[]},Gn.dropWhile=function(t,e){return t&&t.length?fi(t,lo(e,3),!0):[]},Gn.fill=function(t,e,n,r){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&xo(t,e,n)&&(n=0,r=o),function(t,e,n,r){var o=t.length;for((n=ga(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:ga(r))<0&&(r+=o),r=n>r?0:pa(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},Gn.filter=function(t,e){return(Bs(t)?De:mr)(t,lo(e,3))},Gn.flatMap=function(t,e){return yr(Ss(t,e),1)},Gn.flatMapDeep=function(t,e){return yr(Ss(t,e),f)},Gn.flatMapDepth=function(t,e,n){return n=n===i?1:ga(n),yr(Ss(t,e),n)},Gn.flatten=Yo,Gn.flattenDeep=function(t){return(null==t?0:t.length)?yr(t,f):[]},Gn.flattenDepth=function(t,e){return(null==t?0:t.length)?yr(t,e=e===i?1:ga(e)):[]},Gn.flip=function(t){return Zi(t,512)},Gn.flow=el,Gn.flowRight=nl,Gn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},Gn.functions=function(t){return null==t?[]:br(t,Ra(t))},Gn.functionsIn=function(t){return null==t?[]:br(t,Da(t))},Gn.groupBy=xs,Gn.initial=function(t){return(null==t?0:t.length)?ri(t,0,-1):[]},Gn.intersection=Ko,Gn.intersectionBy=$o,Gn.intersectionWith=Vo,Gn.invert=ka,Gn.invertBy=Oa,Gn.invokeMap=ws,Gn.iteratee=il,Gn.keyBy=bs,Gn.keys=Ra,Gn.keysIn=Da,Gn.map=Ss,Gn.mapKeys=function(t,e){var n={};return e=lo(e,3),xr(t,(function(t,r,i){or(n,e(t,r,i),t)})),n},Gn.mapValues=function(t,e){var n={};return e=lo(e,3),xr(t,(function(t,r,i){or(n,r,e(t,r,i))})),n},Gn.matches=function(t){return Gr(lr(t,1))},Gn.matchesProperty=function(t,e){return qr(t,lr(e,1))},Gn.memoize=Ps,Gn.merge=Ma,Gn.mergeWith=Pa,Gn.method=ol,Gn.methodOf=sl,Gn.mixin=al,Gn.negate=Ls,Gn.nthArg=function(t){return t=ga(t),Xr((function(e){return Wr(e,t)}))},Gn.omit=La,Gn.omitBy=function(t,e){return Fa(t,Ls(lo(e)))},Gn.once=function(t){return ks(2,t)},Gn.orderBy=function(t,e,n,r){return null==t?[]:(Bs(e)||(e=null==e?[]:[e]),Bs(n=r?i:n)||(n=null==n?[]:[n]),Br(t,e,n))},Gn.over=cl,Gn.overArgs=Ns,Gn.overEvery=ul,Gn.overSome=hl,Gn.partial=Fs,Gn.partialRight=js,Gn.partition=Es,Gn.pick=Na,Gn.pickBy=Fa,Gn.property=dl,Gn.propertyOf=function(t){return function(e){return null==t?i:Sr(t,e)}},Gn.pull=Zo,Gn.pullAll=Jo,Gn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Ur(t,e,lo(n,2)):t},Gn.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Ur(t,e,i,n):t},Gn.pullAt=Qo,Gn.range=fl,Gn.rangeRight=gl,Gn.rearg=zs,Gn.reject=function(t,e){return(Bs(t)?De:mr)(t,Ls(lo(e,3)))},Gn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=lo(e,3);++r<o;){var s=t[r];e(s,r,t)&&(n.push(s),i.push(r))}return Kr(t,i),n},Gn.rest=function(t,e){if("function"!=typeof t)throw new Ot(o);return Xr(t,e=e===i?e:ga(e))},Gn.reverse=ts,Gn.sampleSize=function(t,e,n){return e=(n?xo(t,e,n):e===i)?1:ga(e),(Bs(t)?Jn:Jr)(t,e)},Gn.set=function(t,e,n){return null==t?t:Qr(t,e,n)},Gn.setWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:Qr(t,e,n,r)},Gn.shuffle=function(t){return(Bs(t)?Qn:ni)(t)},Gn.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&xo(t,e,n)?(e=0,n=r):(e=null==e?0:ga(e),n=n===i?r:ga(n)),ri(t,e,n)):[]},Gn.sortBy=Ts,Gn.sortedUniq=function(t){return t&&t.length?ai(t):[]},Gn.sortedUniqBy=function(t,e){return t&&t.length?ai(t,lo(e,2)):[]},Gn.split=function(t,e,n){return n&&"number"!=typeof n&&xo(t,e,n)&&(e=n=i),(n=n===i?m:n>>>0)?(t=_a(t))&&("string"==typeof e||null!=e&&!oa(e))&&!(e=ci(e))&&ln(t)?wi(pn(t),0,n):t.split(e,n):[]},Gn.spread=function(t,e){if("function"!=typeof t)throw new Ot(o);return e=null==e?0:$e(ga(e),0),Xr((function(n){var r=n[e],i=wi(n,0,e);return r&&Ne(i,r),Ie(t,this,i)}))},Gn.tail=function(t){var e=null==t?0:t.length;return e?ri(t,1,e):[]},Gn.take=function(t,e,n){return t&&t.length?ri(t,0,(e=n||e===i?1:ga(e))<0?0:e):[]},Gn.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?ri(t,(e=r-(e=n||e===i?1:ga(e)))<0?0:e,r):[]},Gn.takeRightWhile=function(t,e){return t&&t.length?fi(t,lo(e,3),!1,!0):[]},Gn.takeWhile=function(t,e){return t&&t.length?fi(t,lo(e,3)):[]},Gn.tap=function(t,e){return e(t),t},Gn.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new Ot(o);return ta(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Rs(t,e,{leading:r,maxWait:e,trailing:i})},Gn.thru=fs,Gn.toArray=da,Gn.toPairs=ja,Gn.toPairsIn=za,Gn.toPath=function(t){return Bs(t)?Le(t,Fo):la(t)?[t]:Oi(No(_a(t)))},Gn.toPlainObject=ya,Gn.transform=function(t,e,n){var r=Bs(t),i=r||$s(t)||ca(t);if(e=lo(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:ta(t)&&Zs(o)?qn(Ut(t)):{}}return(i?Oe:xr)(t,(function(t,r,i){return e(n,t,r,i)})),n},Gn.unary=function(t){return Is(t,1)},Gn.union=es,Gn.unionBy=ns,Gn.unionWith=rs,Gn.uniq=function(t){return t&&t.length?ui(t):[]},Gn.uniqBy=function(t,e){return t&&t.length?ui(t,lo(e,2)):[]},Gn.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?ui(t,i,e):[]},Gn.unset=function(t,e){return null==t||hi(t,e)},Gn.unzip=is,Gn.unzipWith=os,Gn.update=function(t,e,n){return null==t?t:di(t,e,_i(n))},Gn.updateWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:di(t,e,_i(n),r)},Gn.values=Ga,Gn.valuesIn=function(t){return null==t?[]:tn(t,Da(t))},Gn.without=ss,Gn.words=Za,Gn.wrap=function(t,e){return Fs(_i(e),t)},Gn.xor=as,Gn.xorBy=ls,Gn.xorWith=cs,Gn.zip=us,Gn.zipObject=function(t,e){return mi(t||[],e||[],er)},Gn.zipObjectDeep=function(t,e){return mi(t||[],e||[],Qr)},Gn.zipWith=hs,Gn.entries=ja,Gn.entriesIn=za,Gn.extend=xa,Gn.extendWith=wa,al(Gn,Gn),Gn.add=yl,Gn.attempt=Ja,Gn.camelCase=qa,Gn.capitalize=Ha,Gn.ceil=_l,Gn.clamp=function(t,e,n){return n===i&&(n=e,e=i),n!==i&&(n=(n=ma(n))===n?n:0),e!==i&&(e=(e=ma(e))===e?e:0),ar(ma(t),e,n)},Gn.clone=function(t){return lr(t,4)},Gn.cloneDeep=function(t){return lr(t,5)},Gn.cloneDeepWith=function(t,e){return lr(t,5,e="function"==typeof e?e:i)},Gn.cloneWith=function(t,e){return lr(t,4,e="function"==typeof e?e:i)},Gn.conformsTo=function(t,e){return null==e||cr(t,e,Ra(e))},Gn.deburr=Wa,Gn.defaultTo=function(t,e){return null==t||t!==t?e:t},Gn.divide=vl,Gn.endsWith=function(t,e,n){t=_a(t),e=ci(e);var r=t.length,o=n=n===i?r:ar(ga(n),0,r);return(n-=e.length)>=0&&t.slice(n,o)==e},Gn.eq=Gs,Gn.escape=function(t){return(t=_a(t))&&Z.test(t)?t.replace(V,sn):t},Gn.escapeRegExp=function(t){return(t=_a(t))&&ot.test(t)?t.replace(it,"\\$&"):t},Gn.every=function(t,e,n){var r=Bs(t)?Re:gr;return n&&xo(t,e,n)&&(e=i),r(t,lo(e,3))},Gn.find=ms,Gn.findIndex=Wo,Gn.findKey=function(t,e){return qe(t,lo(e,3),xr)},Gn.findLast=ys,Gn.findLastIndex=Bo,Gn.findLastKey=function(t,e){return qe(t,lo(e,3),wr)},Gn.floor=xl,Gn.forEach=_s,Gn.forEachRight=vs,Gn.forIn=function(t,e){return null==t?t:_r(t,lo(e,3),Da)},Gn.forInRight=function(t,e){return null==t?t:vr(t,lo(e,3),Da)},Gn.forOwn=function(t,e){return t&&xr(t,lo(e,3))},Gn.forOwnRight=function(t,e){return t&&wr(t,lo(e,3))},Gn.get=Ca,Gn.gt=qs,Gn.gte=Hs,Gn.has=function(t,e){return null!=t&&mo(t,e,Ir)},Gn.hasIn=Ia,Gn.head=Uo,Gn.identity=rl,Gn.includes=function(t,e,n,r){t=Us(t)?t:Ga(t),n=n&&!r?ga(n):0;var i=t.length;return n<0&&(n=$e(i+n,0)),aa(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&We(t,e,n)>-1},Gn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:ga(n);return i<0&&(i=$e(r+i,0)),We(t,e,i)},Gn.inRange=function(t,e,n){return e=fa(e),n===i?(n=e,e=0):n=fa(n),function(t,e,n){return t>=vn(e,n)&&t<$e(e,n)}(t=ma(t),e,n)},Gn.invoke=Aa,Gn.isArguments=Ws,Gn.isArray=Bs,Gn.isArrayBuffer=Ys,Gn.isArrayLike=Us,Gn.isArrayLikeObject=Ks,Gn.isBoolean=function(t){return!0===t||!1===t||ea(t)&&Tr(t)==x},Gn.isBuffer=$s,Gn.isDate=Vs,Gn.isElement=function(t){return ea(t)&&1===t.nodeType&&!ia(t)},Gn.isEmpty=function(t){if(null==t)return!0;if(Us(t)&&(Bs(t)||"string"==typeof t||"function"==typeof t.splice||$s(t)||ca(t)||Ws(t)))return!t.length;var e=po(t);if(e==T||e==A)return!t.size;if(Eo(t))return!Nr(t).length;for(var n in t)if(Lt.call(t,n))return!1;return!0},Gn.isEqual=function(t,e){return Dr(t,e)},Gn.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:i)?n(t,e):i;return r===i?Dr(t,e,i,n):!!r},Gn.isError=Xs,Gn.isFinite=function(t){return"number"==typeof t&&ve(t)},Gn.isFunction=Zs,Gn.isInteger=Js,Gn.isLength=Qs,Gn.isMap=na,Gn.isMatch=function(t,e){return t===e||Mr(t,e,uo(e))},Gn.isMatchWith=function(t,e,n){return n="function"==typeof n?n:i,Mr(t,e,uo(e),n)},Gn.isNaN=function(t){return ra(t)&&t!=+t},Gn.isNative=function(t){if(So(t))throw new at("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Pr(t)},Gn.isNil=function(t){return null==t},Gn.isNull=function(t){return null===t},Gn.isNumber=ra,Gn.isObject=ta,Gn.isObjectLike=ea,Gn.isPlainObject=ia,Gn.isRegExp=oa,Gn.isSafeInteger=function(t){return Js(t)&&t>=-9007199254740991&&t<=g},Gn.isSet=sa,Gn.isString=aa,Gn.isSymbol=la,Gn.isTypedArray=ca,Gn.isUndefined=function(t){return t===i},Gn.isWeakMap=function(t){return ea(t)&&po(t)==M},Gn.isWeakSet=function(t){return ea(t)&&"[object WeakSet]"==Tr(t)},Gn.join=function(t,e){return null==t?"":xe.call(t,e)},Gn.kebabCase=Ba,Gn.last=Xo,Gn.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=ga(n))<0?$e(r+o,0):vn(o,r-1)),e===e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,o):He(t,Ye,o,!0)},Gn.lowerCase=Ya,Gn.lowerFirst=Ua,Gn.lt=ua,Gn.lte=ha,Gn.max=function(t){return t&&t.length?pr(t,rl,Cr):i},Gn.maxBy=function(t,e){return t&&t.length?pr(t,lo(e,2),Cr):i},Gn.mean=function(t){return Ue(t,rl)},Gn.meanBy=function(t,e){return Ue(t,lo(e,2))},Gn.min=function(t){return t&&t.length?pr(t,rl,jr):i},Gn.minBy=function(t,e){return t&&t.length?pr(t,lo(e,2),jr):i},Gn.stubArray=pl,Gn.stubFalse=ml,Gn.stubObject=function(){return{}},Gn.stubString=function(){return""},Gn.stubTrue=function(){return!0},Gn.multiply=wl,Gn.nth=function(t,e){return t&&t.length?Wr(t,ga(e)):i},Gn.noConflict=function(){return pe._===this&&(pe._=Gt),this},Gn.noop=ll,Gn.now=Cs,Gn.pad=function(t,e,n){t=_a(t);var r=(e=ga(e))?gn(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Bi(ge(i),n)+t+Bi(fe(i),n)},Gn.padEnd=function(t,e,n){t=_a(t);var r=(e=ga(e))?gn(t):0;return e&&r<e?t+Bi(e-r,n):t},Gn.padStart=function(t,e,n){t=_a(t);var r=(e=ga(e))?gn(t):0;return e&&r<e?Bi(e-r,n)+t:t},Gn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),wn(_a(t).replace(st,""),e||0)},Gn.random=function(t,e,n){if(n&&"boolean"!=typeof n&&xo(t,e,n)&&(e=n=i),n===i&&("boolean"==typeof e?(n=e,e=i):"boolean"==typeof t&&(n=t,t=i)),t===i&&e===i?(t=0,e=1):(t=fa(t),e===i?(e=t,t=0):e=fa(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var o=bn();return vn(t+o*(e-t+he("1e-"+((o+"").length-1))),e)}return $r(t,e)},Gn.reduce=function(t,e,n){var r=Bs(t)?Fe:Ve,i=arguments.length<3;return r(t,lo(e,4),n,i,dr)},Gn.reduceRight=function(t,e,n){var r=Bs(t)?je:Ve,i=arguments.length<3;return r(t,lo(e,4),n,i,fr)},Gn.repeat=function(t,e,n){return e=(n?xo(t,e,n):e===i)?1:ga(e),Vr(_a(t),e)},Gn.replace=function(){var t=arguments,e=_a(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Gn.result=function(t,e,n){var r=-1,o=(e=vi(e,t)).length;for(o||(o=1,t=i);++r<o;){var s=null==t?i:t[Fo(e[r])];s===i&&(r=o,s=n),t=Zs(s)?s.call(t):s}return t},Gn.round=bl,Gn.runInContext=t,Gn.sample=function(t){return(Bs(t)?Zn:Zr)(t)},Gn.size=function(t){if(null==t)return 0;if(Us(t))return aa(t)?gn(t):t.length;var e=po(t);return e==T||e==A?t.size:Nr(t).length},Gn.snakeCase=Ka,Gn.some=function(t,e,n){var r=Bs(t)?ze:ii;return n&&xo(t,e,n)&&(e=i),r(t,lo(e,3))},Gn.sortedIndex=function(t,e){return oi(t,e)},Gn.sortedIndexBy=function(t,e,n){return si(t,e,lo(n,2))},Gn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=oi(t,e);if(r<n&&Gs(t[r],e))return r}return-1},Gn.sortedLastIndex=function(t,e){return oi(t,e,!0)},Gn.sortedLastIndexBy=function(t,e,n){return si(t,e,lo(n,2),!0)},Gn.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var n=oi(t,e,!0)-1;if(Gs(t[n],e))return n}return-1},Gn.startCase=$a,Gn.startsWith=function(t,e,n){return t=_a(t),n=null==n?0:ar(ga(n),0,t.length),e=ci(e),t.slice(n,n+e.length)==e},Gn.subtract=Sl,Gn.sum=function(t){return t&&t.length?Xe(t,rl):0},Gn.sumBy=function(t,e){return t&&t.length?Xe(t,lo(e,2)):0},Gn.template=function(t,e,n){var r=Gn.templateSettings;n&&xo(t,e,n)&&(e=i),t=_a(t),e=wa({},e,r,Ji);var o,s,a=wa({},e.imports,r.imports,Ji),l=Ra(a),c=tn(a,l),u=0,h=e.interpolate||bt,d="__p += '",f=It((e.escape||bt).source+"|"+h.source+"|"+(h===tt?gt:bt).source+"|"+(e.evaluate||bt).source+"|$","g"),g="//# sourceURL="+(Lt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ae+"]")+"\n";t.replace(f,(function(e,n,r,i,a,l){return r||(r=i),d+=t.slice(u,l).replace(St,an),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),a&&(s=!0,d+="';\n"+a+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+e.length,e})),d+="';\n";var p=Lt.call(e,"variable")&&e.variable;if(p){if(dt.test(p))throw new at("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(s?d.replace(Y,""):d).replace(U,"$1").replace(K,"$1;"),d="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=Ja((function(){return Et(l,g+"return "+d).apply(i,c)}));if(m.source=d,Xs(m))throw m;return m},Gn.times=function(t,e){if((t=ga(t))<1||t>g)return[];var n=m,r=vn(t,m);e=lo(e),t-=m;for(var i=Ze(r,e);++n<t;)e(n);return i},Gn.toFinite=fa,Gn.toInteger=ga,Gn.toLength=pa,Gn.toLower=function(t){return _a(t).toLowerCase()},Gn.toNumber=ma,Gn.toSafeInteger=function(t){return t?ar(ga(t),-9007199254740991,g):0===t?t:0},Gn.toString=_a,Gn.toUpper=function(t){return _a(t).toUpperCase()},Gn.trim=function(t,e,n){if((t=_a(t))&&(n||e===i))return Je(t);if(!t||!(e=ci(e)))return t;var r=pn(t),o=pn(e);return wi(r,nn(r,o),rn(r,o)+1).join("")},Gn.trimEnd=function(t,e,n){if((t=_a(t))&&(n||e===i))return t.slice(0,mn(t)+1);if(!t||!(e=ci(e)))return t;var r=pn(t);return wi(r,0,rn(r,pn(e))+1).join("")},Gn.trimStart=function(t,e,n){if((t=_a(t))&&(n||e===i))return t.replace(st,"");if(!t||!(e=ci(e)))return t;var r=pn(t);return wi(r,nn(r,pn(e))).join("")},Gn.truncate=function(t,e){var n=30,r="...";if(ta(e)){var o="separator"in e?e.separator:o;n="length"in e?ga(e.length):n,r="omission"in e?ci(e.omission):r}var s=(t=_a(t)).length;if(ln(t)){var a=pn(t);s=a.length}if(n>=s)return t;var l=n-gn(r);if(l<1)return r;var c=a?wi(a,0,l).join(""):t.slice(0,l);if(o===i)return c+r;if(a&&(l+=c.length-l),oa(o)){if(t.slice(l).search(o)){var u,h=c;for(o.global||(o=It(o.source,_a(pt.exec(o))+"g")),o.lastIndex=0;u=o.exec(h);)var d=u.index;c=c.slice(0,d===i?l:d)}}else if(t.indexOf(ci(o),l)!=l){var f=c.lastIndexOf(o);f>-1&&(c=c.slice(0,f))}return c+r},Gn.unescape=function(t){return(t=_a(t))&&X.test(t)?t.replace($,yn):t},Gn.uniqueId=function(t){var e=++Nt;return _a(t)+e},Gn.upperCase=Va,Gn.upperFirst=Xa,Gn.each=_s,Gn.eachRight=vs,Gn.first=Uo,al(Gn,function(){var t={};return xr(Gn,(function(e,n){Lt.call(Gn.prototype,n)||(t[n]=e)})),t}(),{chain:!1}),Gn.VERSION="4.17.21",Oe(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Gn[t].placeholder=Gn})),Oe(["drop","take"],(function(t,e){Bn.prototype[t]=function(n){n=n===i?1:$e(ga(n),0);var r=this.__filtered__&&!e?new Bn(this):this.clone();return r.__filtered__?r.__takeCount__=vn(n,r.__takeCount__):r.__views__.push({size:vn(n,m),type:t+(r.__dir__<0?"Right":"")}),r},Bn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Oe(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;Bn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:lo(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),Oe(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Bn.prototype[t]=function(){return this[n](1).value()[0]}})),Oe(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Bn.prototype[t]=function(){return this.__filtered__?new Bn(this):this[n](1)}})),Bn.prototype.compact=function(){return this.filter(rl)},Bn.prototype.find=function(t){return this.filter(t).head()},Bn.prototype.findLast=function(t){return this.reverse().find(t)},Bn.prototype.invokeMap=Xr((function(t,e){return"function"==typeof t?new Bn(this):this.map((function(n){return Ar(n,t,e)}))})),Bn.prototype.reject=function(t){return this.filter(Ls(lo(t)))},Bn.prototype.slice=function(t,e){t=ga(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Bn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==i&&(n=(e=ga(e))<0?n.dropRight(-e):n.take(e-t)),n)},Bn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Bn.prototype.toArray=function(){return this.take(m)},xr(Bn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),o=Gn[r?"take"+("last"==e?"Right":""):e],s=r||/^find/.test(e);o&&(Gn.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,l=e instanceof Bn,c=a[0],u=l||Bs(e),h=function(t){var e=o.apply(Gn,Ne([t],a));return r&&d?e[0]:e};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var d=this.__chain__,f=!!this.__actions__.length,g=s&&!d,p=l&&!f;if(!s&&u){e=p?e:new Bn(this);var m=t.apply(e,a);return m.__actions__.push({func:fs,args:[h],thisArg:i}),new Wn(m,d)}return g&&p?t.apply(this,a):(m=this.thru(h),g?r?m.value()[0]:m.value():m)})})),Oe(["pop","push","shift","sort","splice","unshift"],(function(t){var e=At[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Gn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Bs(i)?i:[],t)}return this[n]((function(n){return e.apply(Bs(n)?n:[],t)}))}})),xr(Bn.prototype,(function(t,e){var n=Gn[e];if(n){var r=n.name+"";Lt.call(Rn,r)||(Rn[r]=[]),Rn[r].push({name:e,func:n})}})),Rn[Gi(i,2).name]=[{name:"wrapper",func:i}],Bn.prototype.clone=function(){var t=new Bn(this.__wrapped__);return t.__actions__=Oi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Oi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Oi(this.__views__),t},Bn.prototype.reverse=function(){if(this.__filtered__){var t=new Bn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Bn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Bs(t),r=e<0,i=n?t.length:0,o=function(t,e,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],s=o.size;switch(o.type){case"drop":t+=s;break;case"dropRight":e-=s;break;case"take":e=vn(e,t+s);break;case"takeRight":t=$e(t,e-s)}}return{start:t,end:e}}(0,i,this.__views__),s=o.start,a=o.end,l=a-s,c=r?a:s-1,u=this.__iteratees__,h=u.length,d=0,f=vn(l,this.__takeCount__);if(!n||!r&&i==l&&f==l)return gi(t,this.__actions__);var g=[];t:for(;l--&&d<f;){for(var p=-1,m=t[c+=e];++p<h;){var y=u[p],_=y.iteratee,v=y.type,x=_(m);if(2==v)m=x;else if(!x){if(1==v)continue t;break t}}g[d++]=m}return g},Gn.prototype.at=gs,Gn.prototype.chain=function(){return ds(this)},Gn.prototype.commit=function(){return new Wn(this.value(),this.__chain__)},Gn.prototype.next=function(){this.__values__===i&&(this.__values__=da(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?i:this.__values__[this.__index__++]}},Gn.prototype.plant=function(t){for(var e,n=this;n instanceof Hn;){var r=zo(n);r.__index__=0,r.__values__=i,e?o.__wrapped__=r:e=r;var o=r;n=n.__wrapped__}return o.__wrapped__=t,e},Gn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Bn){var e=t;return this.__actions__.length&&(e=new Bn(this)),(e=e.reverse()).__actions__.push({func:fs,args:[ts],thisArg:i}),new Wn(e,this.__chain__)}return this.thru(ts)},Gn.prototype.toJSON=Gn.prototype.valueOf=Gn.prototype.value=function(){return gi(this.__wrapped__,this.__actions__)},Gn.prototype.first=Gn.prototype.head,Zt&&(Gn.prototype[Zt]=function(){return this}),Gn}();pe._=_n,(r=function(){return _n}.call(e,n,e,t))===i||(t.exports=r)}.call(this)},67985:(t,e,n)=>{"use strict";var r=n(32619);e.H=r.createRoot,r.hydrateRoot},27924:(t,e,n)=>{"use strict";n.d(e,{q6:()=>it,Zj:()=>at,D:()=>X});var r=n(77940);function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){if(t){if("string"==typeof t)return i(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(t,e)||o(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function l(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}function c(t,e,n){return(e=l(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach((function(e){c(t,e,n[e])}))}return t}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function f(t,e,n){return e&&d(t.prototype,e),n&&d(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var g=n(99805);function p(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return(0,g.A)(t)}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}var y=n(82050);function _(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&(0,y.A)(t,e)}var v=n(29183),x=n(32619),w=n(84686),b=n.n(w);function S(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||o(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var E=n(91999),T=n.n(E),C=function(){function t(){h(this,t),c(this,"refs",{})}return f(t,[{key:"add",value:function(t,e){this.refs[t]||(this.refs[t]=[]),this.refs[t].push(e)}},{key:"remove",value:function(t,e){var n=this.getIndex(t,e);-1!==n&&this.refs[t].splice(n,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var t=this;return this.refs[this.active.collection].find((function(e){return e.node.sortableInfo.index==t.active.index}))}},{key:"getIndex",value:function(t,e){return this.refs[t].indexOf(e)}},{key:"getOrderedRefs",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[t].sort(I)}}]),t}();function I(t,e){return t.node.sortableInfo.index-e.node.sortableInfo.index}function k(t,e){return Object.keys(t).reduce((function(n,r){return-1===e.indexOf(r)&&(n[r]=t[r]),n}),{})}var O={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},A=function(){if("undefined"===typeof window||"undefined"===typeof document)return"";var t=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],e=(Array.prototype.slice.call(t).join("").match(/-(moz|webkit|ms)-/)||""===t.OLink&&["","o"])[1];return"ms"===e?"ms":e&&e.length?e[0].toUpperCase()+e.substr(1):""}();function R(t,e){Object.keys(e).forEach((function(n){t.style[n]=e[n]}))}function D(t,e){t.style["".concat(A,"Transform")]=null==e?"":"translate3d(".concat(e.x,"px,").concat(e.y,"px,0)")}function M(t,e){t.style["".concat(A,"TransitionDuration")]=null==e?"":"".concat(e,"ms")}function P(t,e){for(;t;){if(e(t))return t;t=t.parentNode}return null}function L(t,e,n){return Math.max(t,Math.min(n,e))}function N(t){return"px"===t.substr(-2)?parseFloat(t):0}function F(t,e){var n=e.displayName||e.name;return n?"".concat(t,"(").concat(n,")"):t}function j(t,e){var n=t.getBoundingClientRect();return{top:n.top+e.top,left:n.left+e.left}}function z(t){return t.touches&&t.touches.length?{x:t.touches[0].pageX,y:t.touches[0].pageY}:t.changedTouches&&t.changedTouches.length?{x:t.changedTouches[0].pageX,y:t.changedTouches[0].pageY}:{x:t.pageX,y:t.pageY}}function G(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(t){var r={left:n.left+t.offsetLeft,top:n.top+t.offsetTop};return t.parentNode===e?r:G(t.parentNode,e,r)}}function q(t){var e=t.lockOffset,n=t.width,r=t.height,i=e,o=e,s="px";if("string"===typeof e){var a=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(e);b()(null!==a,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',e),i=parseFloat(e),o=parseFloat(e),s=a[1]}return b()(isFinite(i)&&isFinite(o),"lockOffset value should be a finite. Given %s",e),"%"===s&&(i=i*n/100,o=o*r/100),{x:i,y:o}}function H(t){return t instanceof HTMLElement?function(t){var e=window.getComputedStyle(t),n=/(auto|scroll)/;return["overflow","overflowX","overflowY"].find((function(t){return n.test(e[t])}))}(t)?t:H(t.parentNode):null}var W=27,B=32,Y=37,U=38,K=39,$=40,V={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function X(t){var e,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=e=function(e){function n(){var t,e;h(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=p(this,(t=m(n)).call.apply(t,[this].concat(i))),c((0,g.A)((0,g.A)(e)),"wrappedInstance",(0,v.createRef)()),e}return _(n,e),f(n,[{key:"componentDidMount",value:function(){(0,x.findDOMNode)(this).sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return b()(i.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.wrappedInstance.current}},{key:"render",value:function(){var e=i.withRef?this.wrappedInstance:null;return(0,v.createElement)(t,(0,r.A)({ref:e},this.props))}}]),n}(v.Component),c(e,"displayName",F("sortableHandle",t)),n}function Z(t){return null!=t.sortableHandle}var J=function(){function t(e,n){h(this,t),this.container=e,this.onScrollCallback=n}return f(t,[{key:"clear",value:function(){null!=this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(t){var e=this,n=t.translate,r=t.minTranslate,i=t.maxTranslate,o=t.width,s=t.height,a={x:0,y:0},l={x:1,y:1},c=10,u=10,h=this.container,d=h.scrollTop,f=h.scrollLeft,g=h.scrollHeight,p=h.scrollWidth,m=0===d,y=g-d-h.clientHeight===0,_=0===f,v=p-f-h.clientWidth===0;n.y>=i.y-s/2&&!y?(a.y=1,l.y=u*Math.abs((i.y-s/2-n.y)/s)):n.x>=i.x-o/2&&!v?(a.x=1,l.x=c*Math.abs((i.x-o/2-n.x)/o)):n.y<=r.y+s/2&&!m?(a.y=-1,l.y=u*Math.abs((n.y-s/2-r.y)/s)):n.x<=r.x+o/2&&!_&&(a.x=-1,l.x=c*Math.abs((n.x-o/2-r.x)/o)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===a.x&&0===a.y||(this.interval=setInterval((function(){e.isAutoScrolling=!0;var t={left:l.x*a.x,top:l.y*a.y};e.container.scrollTop+=t.top,e.container.scrollLeft+=t.left,e.onScrollCallback(t)}),5))}}]),t}();var Q={axis:T().oneOf(["x","y","xy"]),contentWindow:T().any,disableAutoscroll:T().bool,distance:T().number,getContainer:T().func,getHelperDimensions:T().func,helperClass:T().string,helperContainer:T().oneOfType([T().func,"undefined"===typeof HTMLElement?T().any:T().instanceOf(HTMLElement)]),hideSortableGhost:T().bool,keyboardSortingTransitionDuration:T().number,lockAxis:T().string,lockOffset:T().oneOfType([T().number,T().string,T().arrayOf(T().oneOfType([T().number,T().string]))]),lockToContainerEdges:T().bool,onSortEnd:T().func,onSortMove:T().func,onSortOver:T().func,onSortStart:T().func,pressDelay:T().number,pressThreshold:T().number,keyCodes:T().shape({lift:T().arrayOf(T().number),drop:T().arrayOf(T().number),cancel:T().arrayOf(T().number),up:T().arrayOf(T().number),down:T().arrayOf(T().number)}),shouldCancelStart:T().func,transitionDuration:T().number,updateBeforeSortStart:T().func,useDragHandle:T().bool,useWindowAsScrollContainer:T().bool},tt={lift:[B],drop:[B],cancel:[W],up:[U,Y],down:[$,K]},et={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:function(t){var e=t.node;return{height:e.offsetHeight,width:e.offsetWidth}},hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:tt,shouldCancelStart:function(t){return-1!==[V.Input,V.Textarea,V.Select,V.Option,V.Button].indexOf(t.target.tagName)||!!P(t.target,(function(t){return"true"===t.contentEditable}))},transitionDuration:300,useWindowAsScrollContainer:!1},nt=Object.keys(Q);var rt=(0,v.createContext)({manager:{}});function it(t){var e,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=e=function(e){function n(t){var e;h(this,n),e=p(this,m(n).call(this,t)),c((0,g.A)((0,g.A)(e)),"state",{}),c((0,g.A)((0,g.A)(e)),"handleStart",(function(t){var n=e.props,r=n.distance,i=n.shouldCancelStart;if(2!==t.button&&!i(t)){e.touched=!0,e.position=z(t);var o=P(t.target,(function(t){return null!=t.sortableInfo}));if(o&&o.sortableInfo&&e.nodeIsChild(o)&&!e.state.sorting){var s=e.props.useDragHandle,a=o.sortableInfo,l=a.index,c=a.collection;if(a.disabled)return;if(s&&!P(t.target,Z))return;e.manager.active={collection:c,index:l},function(t){return t.touches&&t.touches.length||t.changedTouches&&t.changedTouches.length}(t)||t.target.tagName!==V.Anchor||t.preventDefault(),r||(0===e.props.pressDelay?e.handlePress(t):e.pressTimer=setTimeout((function(){return e.handlePress(t)}),e.props.pressDelay))}}})),c((0,g.A)((0,g.A)(e)),"nodeIsChild",(function(t){return t.sortableInfo.manager===e.manager})),c((0,g.A)((0,g.A)(e)),"handleMove",(function(t){var n=e.props,r=n.distance,i=n.pressThreshold;if(!e.state.sorting&&e.touched&&!e._awaitingUpdateBeforeSortStart){var o=z(t),s={x:e.position.x-o.x,y:e.position.y-o.y},a=Math.abs(s.x)+Math.abs(s.y);e.delta=s,r||i&&!(a>=i)?r&&a>=r&&e.manager.isActive()&&e.handlePress(t):(clearTimeout(e.cancelTimer),e.cancelTimer=setTimeout(e.cancel,0))}})),c((0,g.A)((0,g.A)(e)),"handleEnd",(function(){e.touched=!1,e.cancel()})),c((0,g.A)((0,g.A)(e)),"cancel",(function(){var t=e.props.distance;e.state.sorting||(t||clearTimeout(e.pressTimer),e.manager.active=null)})),c((0,g.A)((0,g.A)(e)),"handlePress",(function(t){try{var n=e.manager.getActive(),r=function(){if(n){var r=function(){var n=f.sortableInfo.index,r=function(t){var e=window.getComputedStyle(t);return{bottom:N(e.marginBottom),left:N(e.marginLeft),right:N(e.marginRight),top:N(e.marginTop)}}(f),i=function(t){var e=window.getComputedStyle(t);return"grid"===e.display?{x:N(e.gridColumnGap),y:N(e.gridRowGap)}:{x:0,y:0}}(e.container),c=e.scrollContainer.getBoundingClientRect(),m=s({index:n,node:f,collection:g});if(e.node=f,e.margin=r,e.gridGap=i,e.width=m.width,e.height=m.height,e.marginOffset={x:e.margin.left+e.margin.right+e.gridGap.x,y:Math.max(e.margin.top,e.margin.bottom,e.gridGap.y)},e.boundingClientRect=f.getBoundingClientRect(),e.containerBoundingRect=c,e.index=n,e.newIndex=n,e.axis={x:o.indexOf("x")>=0,y:o.indexOf("y")>=0},e.offsetEdge=G(f,e.container),e.initialOffset=z(p?u({},t,{pageX:e.boundingClientRect.left,pageY:e.boundingClientRect.top}):t),e.initialScroll={left:e.scrollContainer.scrollLeft,top:e.scrollContainer.scrollTop},e.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},e.helper=e.helperContainer.appendChild(function(t){var e="input, textarea, select, canvas, [contenteditable]",n=t.querySelectorAll(e),r=t.cloneNode(!0);return S(r.querySelectorAll(e)).forEach((function(t,e){"file"!==t.type&&(t.value=n[e].value),"radio"===t.type&&t.name&&(t.name="__sortableClone__".concat(t.name)),t.tagName===V.Canvas&&n[e].width>0&&n[e].height>0&&t.getContext("2d").drawImage(n[e],0,0)})),r}(f)),R(e.helper,{boxSizing:"border-box",height:"".concat(e.height,"px"),left:"".concat(e.boundingClientRect.left-r.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(e.boundingClientRect.top-r.top,"px"),width:"".concat(e.width,"px")}),p&&e.helper.focus(),l&&(e.sortableGhost=f,R(f,{opacity:0,visibility:"hidden"})),e.minTranslate={},e.maxTranslate={},p){var y=d?{top:0,left:0,width:e.contentWindow.innerWidth,height:e.contentWindow.innerHeight}:e.containerBoundingRect,_=y.top,v=y.left,x=y.width,w=_+y.height,b=v+x;e.axis.x&&(e.minTranslate.x=v-e.boundingClientRect.left,e.maxTranslate.x=b-(e.boundingClientRect.left+e.width)),e.axis.y&&(e.minTranslate.y=_-e.boundingClientRect.top,e.maxTranslate.y=w-(e.boundingClientRect.top+e.height))}else e.axis.x&&(e.minTranslate.x=(d?0:c.left)-e.boundingClientRect.left-e.width/2,e.maxTranslate.x=(d?e.contentWindow.innerWidth:c.left+c.width)-e.boundingClientRect.left-e.width/2),e.axis.y&&(e.minTranslate.y=(d?0:c.top)-e.boundingClientRect.top-e.height/2,e.maxTranslate.y=(d?e.contentWindow.innerHeight:c.top+c.height)-e.boundingClientRect.top-e.height/2);a&&a.split(" ").forEach((function(t){return e.helper.classList.add(t)})),e.listenerNode=t.touches?t.target:e.contentWindow,p?(e.listenerNode.addEventListener("wheel",e.handleKeyEnd,!0),e.listenerNode.addEventListener("mousedown",e.handleKeyEnd,!0),e.listenerNode.addEventListener("keydown",e.handleKeyDown)):(O.move.forEach((function(t){return e.listenerNode.addEventListener(t,e.handleSortMove,!1)})),O.end.forEach((function(t){return e.listenerNode.addEventListener(t,e.handleSortEnd,!1)}))),e.setState({sorting:!0,sortingIndex:n}),h&&h({node:f,index:n,collection:g,isKeySorting:p,nodes:e.manager.getOrderedRefs(),helper:e.helper},t),p&&e.keyMove(0)},i=e.props,o=i.axis,s=i.getHelperDimensions,a=i.helperClass,l=i.hideSortableGhost,c=i.updateBeforeSortStart,h=i.onSortStart,d=i.useWindowAsScrollContainer,f=n.node,g=n.collection,p=e.manager.isKeySorting,m=function(){if("function"===typeof c){e._awaitingUpdateBeforeSortStart=!0;var n=function(t,e){try{var n=t()}catch(r){return e(!0,r)}return n&&n.then?n.then(e.bind(null,!1),e.bind(null,!0)):e(!1,value)}((function(){var e=f.sortableInfo.index;return Promise.resolve(c({collection:g,index:e,node:f,isKeySorting:p},t)).then((function(){}))}),(function(t,n){if(e._awaitingUpdateBeforeSortStart=!1,t)throw n;return n}));if(n&&n.then)return n.then((function(){}))}}();return m&&m.then?m.then(r):r()}}();return Promise.resolve(r&&r.then?r.then((function(){})):void 0)}catch(i){return Promise.reject(i)}})),c((0,g.A)((0,g.A)(e)),"handleSortMove",(function(t){var n=e.props.onSortMove;"function"===typeof t.preventDefault&&t.cancelable&&t.preventDefault(),e.updateHelperPosition(t),e.animateNodes(),e.autoscroll(),n&&n(t)})),c((0,g.A)((0,g.A)(e)),"handleSortEnd",(function(t){var n=e.props,r=n.hideSortableGhost,i=n.onSortEnd,o=e.manager,s=o.active.collection,a=o.isKeySorting,l=e.manager.getOrderedRefs();e.listenerNode&&(a?(e.listenerNode.removeEventListener("wheel",e.handleKeyEnd,!0),e.listenerNode.removeEventListener("mousedown",e.handleKeyEnd,!0),e.listenerNode.removeEventListener("keydown",e.handleKeyDown)):(O.move.forEach((function(t){return e.listenerNode.removeEventListener(t,e.handleSortMove)})),O.end.forEach((function(t){return e.listenerNode.removeEventListener(t,e.handleSortEnd)})))),e.helper.parentNode.removeChild(e.helper),r&&e.sortableGhost&&R(e.sortableGhost,{opacity:"",visibility:""});for(var c=0,u=l.length;c<u;c++){var h=l[c],d=h.node;h.edgeOffset=null,h.boundingClientRect=null,D(d,null),M(d,null),h.translate=null}e.autoScroller.clear(),e.manager.active=null,e.manager.isKeySorting=!1,e.setState({sorting:!1,sortingIndex:null}),"function"===typeof i&&i({collection:s,newIndex:e.newIndex,oldIndex:e.index,isKeySorting:a,nodes:l},t),e.touched=!1})),c((0,g.A)((0,g.A)(e)),"autoscroll",(function(){var t=e.props.disableAutoscroll,n=e.manager.isKeySorting;if(t)e.autoScroller.clear();else{if(n){var r=u({},e.translate),i=0,o=0;return e.axis.x&&(r.x=Math.min(e.maxTranslate.x,Math.max(e.minTranslate.x,e.translate.x)),i=e.translate.x-r.x),e.axis.y&&(r.y=Math.min(e.maxTranslate.y,Math.max(e.minTranslate.y,e.translate.y)),o=e.translate.y-r.y),e.translate=r,D(e.helper,e.translate),e.scrollContainer.scrollLeft+=i,void(e.scrollContainer.scrollTop+=o)}e.autoScroller.update({height:e.height,maxTranslate:e.maxTranslate,minTranslate:e.minTranslate,translate:e.translate,width:e.width})}})),c((0,g.A)((0,g.A)(e)),"onAutoScroll",(function(t){e.translate.x+=t.left,e.translate.y+=t.top,e.animateNodes()})),c((0,g.A)((0,g.A)(e)),"handleKeyDown",(function(t){var n=t.keyCode,r=e.props,i=r.shouldCancelStart,o=r.keyCodes,s=u({},tt,void 0===o?{}:o);e.manager.active&&!e.manager.isKeySorting||!(e.manager.active||s.lift.includes(n)&&!i(t)&&e.isValidSortingTarget(t))||(t.stopPropagation(),t.preventDefault(),s.lift.includes(n)&&!e.manager.active?e.keyLift(t):s.drop.includes(n)&&e.manager.active?e.keyDrop(t):s.cancel.includes(n)?(e.newIndex=e.manager.active.index,e.keyDrop(t)):s.up.includes(n)?e.keyMove(-1):s.down.includes(n)&&e.keyMove(1))})),c((0,g.A)((0,g.A)(e)),"keyLift",(function(t){var n=t.target,r=P(n,(function(t){return null!=t.sortableInfo})).sortableInfo,i=r.index,o=r.collection;e.initialFocusedNode=n,e.manager.isKeySorting=!0,e.manager.active={index:i,collection:o},e.handlePress(t)})),c((0,g.A)((0,g.A)(e)),"keyMove",(function(t){var n=e.manager.getOrderedRefs(),r=n[n.length-1].node.sortableInfo.index,i=e.newIndex+t,o=e.newIndex;if(!(i<0||i>r)){e.prevIndex=o,e.newIndex=i;var s=function(t,e,n){return t<n&&t>e?t-1:t>n&&t<e?t+1:t}(e.newIndex,e.prevIndex,e.index),a=n.find((function(t){return t.node.sortableInfo.index===s})),l=a.node,c=e.containerScrollDelta,u=a.boundingClientRect||j(l,c),h=a.translate||{x:0,y:0},d=u.top+h.y-c.top,f=u.left+h.x-c.left,g=o<i,p=g&&e.axis.x?l.offsetWidth-e.width:0,m=g&&e.axis.y?l.offsetHeight-e.height:0;e.handleSortMove({pageX:f+p,pageY:d+m,ignoreTransition:0===t})}})),c((0,g.A)((0,g.A)(e)),"keyDrop",(function(t){e.handleSortEnd(t),e.initialFocusedNode&&e.initialFocusedNode.focus()})),c((0,g.A)((0,g.A)(e)),"handleKeyEnd",(function(t){e.manager.active&&e.keyDrop(t)})),c((0,g.A)((0,g.A)(e)),"isValidSortingTarget",(function(t){var n=e.props.useDragHandle,r=t.target,i=P(r,(function(t){return null!=t.sortableInfo}));return i&&i.sortableInfo&&!i.sortableInfo.disabled&&(n?Z(r):r.sortableInfo)}));var r=new C;return function(t){b()(!(t.distance&&t.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}(t),e.manager=r,e.wrappedInstance=(0,v.createRef)(),e.sortableContextValue={manager:r},e.events={end:e.handleEnd,move:e.handleMove,start:e.handleStart},e}return _(n,e),f(n,[{key:"componentDidMount",value:function(){var t=this,e=this.props.useWindowAsScrollContainer,n=this.getContainer();Promise.resolve(n).then((function(n){t.container=n,t.document=t.container.ownerDocument||document;var r=t.props.contentWindow||t.document.defaultView||window;t.contentWindow="function"===typeof r?r():r,t.scrollContainer=e?t.document.scrollingElement||t.document.documentElement:H(t.container)||t.container,t.autoScroller=new J(t.scrollContainer,t.onAutoScroll),Object.keys(t.events).forEach((function(e){return O[e].forEach((function(n){return t.container.addEventListener(n,t.events[e],!1)}))})),t.container.addEventListener("keydown",t.handleKeyDown)}))}},{key:"componentWillUnmount",value:function(){var t=this;this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),this.container&&(Object.keys(this.events).forEach((function(e){return O[e].forEach((function(n){return t.container.removeEventListener(n,t.events[e])}))})),this.container.removeEventListener("keydown",this.handleKeyDown))}},{key:"updateHelperPosition",value:function(t){var e=this.props,n=e.lockAxis,r=e.lockOffset,i=e.lockToContainerEdges,o=e.transitionDuration,a=e.keyboardSortingTransitionDuration,l=void 0===a?o:a,c=this.manager.isKeySorting,u=t.ignoreTransition,h=z(t),d={x:h.x-this.initialOffset.x,y:h.y-this.initialOffset.y};if(d.y-=window.pageYOffset-this.initialWindowScroll.top,d.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=d,i){var f=function(t){var e=t.height,n=t.width,r=t.lockOffset,i=Array.isArray(r)?r:[r,r];b()(2===i.length,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",r);var o=s(i,2),a=o[0],l=o[1];return[q({height:e,lockOffset:a,width:n}),q({height:e,lockOffset:l,width:n})]}({height:this.height,lockOffset:r,width:this.width}),g=s(f,2),p=g[0],m=g[1],y={x:this.width/2-p.x,y:this.height/2-p.y},_={x:this.width/2-m.x,y:this.height/2-m.y};d.x=L(this.minTranslate.x+y.x,this.maxTranslate.x-_.x,d.x),d.y=L(this.minTranslate.y+y.y,this.maxTranslate.y-_.y,d.y)}"x"===n?d.y=0:"y"===n&&(d.x=0),c&&l&&!u&&M(this.helper,l),D(this.helper,d)}},{key:"animateNodes",value:function(){var t=this.props,e=t.transitionDuration,n=t.hideSortableGhost,r=t.onSortOver,i=this.containerScrollDelta,o=this.windowScrollDelta,s=this.manager.getOrderedRefs(),a=this.offsetEdge.left+this.translate.x+i.left,l=this.offsetEdge.top+this.translate.y+i.top,c=this.manager.isKeySorting,u=this.newIndex;this.newIndex=null;for(var h=0,d=s.length;h<d;h++){var f=s[h].node,g=f.sortableInfo.index,p=f.offsetWidth,m=f.offsetHeight,y={height:this.height>m?m/2:this.height/2,width:this.width>p?p/2:this.width/2},_=c&&g>this.index&&g<=u,v=c&&g<this.index&&g>=u,x={x:0,y:0},w=s[h].edgeOffset;w||(w=G(f,this.container),s[h].edgeOffset=w,c&&(s[h].boundingClientRect=j(f,i)));var b=h<s.length-1&&s[h+1],S=h>0&&s[h-1];b&&!b.edgeOffset&&(b.edgeOffset=G(b.node,this.container),c&&(b.boundingClientRect=j(b.node,i))),g!==this.index?(e&&M(f,e),this.axis.x?this.axis.y?v||g<this.index&&(a+o.left-y.width<=w.left&&l+o.top<=w.top+y.height||l+o.top+y.height<=w.top)?(x.x=this.width+this.marginOffset.x,w.left+x.x>this.containerBoundingRect.width-y.width&&b&&(x.x=b.edgeOffset.left-w.left,x.y=b.edgeOffset.top-w.top),null===this.newIndex&&(this.newIndex=g)):(_||g>this.index&&(a+o.left+y.width>=w.left&&l+o.top+y.height>=w.top||l+o.top+y.height>=w.top+m))&&(x.x=-(this.width+this.marginOffset.x),w.left+x.x<this.containerBoundingRect.left+y.width&&S&&(x.x=S.edgeOffset.left-w.left,x.y=S.edgeOffset.top-w.top),this.newIndex=g):_||g>this.index&&a+o.left+y.width>=w.left?(x.x=-(this.width+this.marginOffset.x),this.newIndex=g):(v||g<this.index&&a+o.left<=w.left+y.width)&&(x.x=this.width+this.marginOffset.x,null==this.newIndex&&(this.newIndex=g)):this.axis.y&&(_||g>this.index&&l+o.top+y.height>=w.top?(x.y=-(this.height+this.marginOffset.y),this.newIndex=g):(v||g<this.index&&l+o.top<=w.top+y.height)&&(x.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=g))),D(f,x),s[h].translate=x):n&&(this.sortableGhost=f,R(f,{opacity:0,visibility:"hidden"}))}null==this.newIndex&&(this.newIndex=this.index),c&&(this.newIndex=u);var E=c?this.prevIndex:u;r&&this.newIndex!==E&&r({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:E,isKeySorting:c,nodes:s,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return b()(i.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.wrappedInstance.current}},{key:"getContainer",value:function(){var t=this.props.getContainer;return"function"!==typeof t?(0,x.findDOMNode)(this):t(i.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var e=i.withRef?this.wrappedInstance:null;return(0,v.createElement)(rt.Provider,{value:this.sortableContextValue},(0,v.createElement)(t,(0,r.A)({ref:e},k(this.props,nt))))}},{key:"helperContainer",get:function(){var t=this.props.helperContainer;return"function"===typeof t?t():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){return this.props.useWindowAsScrollContainer?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),n}(v.Component),c(e,"displayName",F("sortableList",t)),c(e,"defaultProps",et),c(e,"propTypes",Q),n}var ot={index:T().number.isRequired,collection:T().oneOfType([T().number,T().string]),disabled:T().bool},st=Object.keys(ot);function at(t){var e,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=e=function(e){function n(){var t,e;h(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=p(this,(t=m(n)).call.apply(t,[this].concat(i))),c((0,g.A)((0,g.A)(e)),"wrappedInstance",(0,v.createRef)()),e}return _(n,e),f(n,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(t){this.node&&(t.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),t.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),t.collection!==this.props.collection&&(this.unregister(t.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var t=this.props,e=t.collection,n=t.disabled,r=t.index,i=(0,x.findDOMNode)(this);i.sortableInfo={collection:e,disabled:n,index:r,manager:this.context.manager},this.node=i,this.ref={node:i},this.context.manager.add(e,this.ref)}},{key:"unregister",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.collection;this.context.manager.remove(t,this.ref)}},{key:"getWrappedInstance",value:function(){return b()(i.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.wrappedInstance.current}},{key:"render",value:function(){var e=i.withRef?this.wrappedInstance:null;return(0,v.createElement)(t,(0,r.A)({ref:e},k(this.props,st)))}}]),n}(v.Component),c(e,"displayName",F("sortableElement",t)),c(e,"contextType",rt),c(e,"propTypes",ot),c(e,"defaultProps",{collection:0}),n}},76343:(t,e,n)=>{"use strict";var r=n(29183),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(t,e,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(u=e.ref),e)s.call(e,r)&&!l.hasOwnProperty(r)&&(o[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps)void 0===o[r]&&(o[r]=e[r]);return{$$typeof:i,type:t,key:c,ref:u,props:o,_owner:a.current}}e.Fragment=o,e.jsx=c,e.jsxs=c},99277:(t,e,n)=>{"use strict";t.exports=n(76343)},65220:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(83713));e.default=function(t,e){var n=null;if(!t||"string"!==typeof t)return n;var r=(0,i.default)(t),o="function"===typeof e;return r.forEach((function(t){if("declaration"===t.type){var r=t.property,i=t.value;o?e(r,i,t):i&&((n=n||{})[r]=i)}})),n}},96900:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={}},43110:()=>{},99805:(t,e,n)=>{"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,{A:()=>r})},82050:(t,e,n)=>{"use strict";function r(t,e){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},r(t,e)}n.d(e,{A:()=>r})},34400:(t,e,n)=>{"use strict";function r(t){return t?.rows.map((t=>t.value)).filter((t=>!!t))??[]}function i(t){return t?.startsWith("system.host.")||(t=`system.host.${t}`),t}function o(t){return t?.startsWith("system.host.")&&(t=t.substr(12)),t}function s(t){return new Promise((e=>{setTimeout(e,t)}))}function a(t){const e="*"===(t=(t||"").toString())[0],n="*"===t[t.length-1];return(e?"":"^")+(t=t.replace(/[-/\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*"))+(n?"":"$")}var l,c;n.d(e,{wz:()=>d,Gd:()=>l}),function(t){t[t.CONNECTING=0]="CONNECTING",t[t.CONNECTED=1]="CONNECTED",t[t.OBJECTS_LOADED=2]="OBJECTS_LOADED",t[t.READY=3]="READY"}(l||(l={})),function(t){t.PERMISSION_ERROR="permissionError",t.NOT_CONNECTED="notConnectedError",t.TIMEOUT="timeout",t.NOT_ADMIN="Allowed only in admin",t.NOT_SUPPORTED="Not supported"}(c||(c={}));c.PERMISSION_ERROR,c.NOT_CONNECTED;const u=["material","echarts","vis"];class h{constructor(t){this.props=this.applyDefaultProps(t),this.waitForSocketLib().then((()=>this.startSocket())).catch((t=>{alert(`Socket connection could not be initialized: ${t}`)}))}applyDefaultProps(t){return{...t,protocol:t.protocol||window.location.protocol,host:t.host||window.location.hostname,port:t.port||("3000"===window.location.port?8081:window.location.port),ioTimeout:Math.max(t.ioTimeout||2e4,2e4),cmdTimeout:Math.max(t.cmdTimeout||5e3,5e3),admin5only:t.admin5only||!1,autoSubscribes:t.autoSubscribes??[],autoSubscribeLog:t.autoSubscribeLog??!1,doNotLoadACL:t.doNotLoadACL??!0,doNotLoadAllObjects:t.doNotLoadAllObjects??!0}}props;ignoreState="";connected=!1;subscribed=!1;firstConnect=!0;waitForRestart=!1;loaded=!1;simStates={};statesSubscribes={};filesSubscribes={};objectsSubscribes={};objects={};states={};acl=null;isSecure=!1;onReadyDone=!1;onConnectionHandlers=[];onLogHandlers=[];onCmdStdoutHandler;onCmdStderrHandler;onCmdExitHandler;onError(t){(this.props.onError??console.error)(t)}_socket;_waitForSocketPromise;_waitForFirstConnectionPromise=(()=>function(){let t,e;const n=new Promise(((n,r)=>{t=n,e=r}));return n.resolve=t,n.reject=e,n}())();_instanceSubscriptions={};_promises={};_authTimer;_systemConfig;get systemConfig(){return this._systemConfig}systemLang="en";static isWeb(){return void 0!==window.socketUrl}waitForSocketLib(){return this._waitForSocketPromise||(this._waitForSocketPromise=new Promise((async(t,e)=>{if("undefined"===typeof window.io)if("function"===typeof window.registerSocketOnLoad)window.registerSocketOnLoad((()=>t()));else{for(let e=1;e<=30;e++){if(window.io)return t();await s(100)}e(new Error("Socket library could not be loaded!"))}else t()}))),this._waitForSocketPromise}async startSocket(){if(this._socket)return;let t=this.props.host,e=this.props.port,n=(this.props.protocol||window.location.protocol).replace(":",""),r=window.location.pathname;if("iobroker.net"===window.location.hostname||"iobroker.pro"===window.location.hostname)r="";else{if(window.socketUrl){const r=new URL(window.socketUrl);t=r.hostname,e=r.port,n=r.protocol.replace(":","")}const i=r.lastIndexOf("/");if(-1!==i&&(r=r.substring(0,i+1)),h.isWeb()){const t=r.split("/");t.length>2&&(t.pop(),t.pop(),u.includes(t[t.length-1])&&t.pop(),r=t.join("/"),r.endsWith("/")||(r+="/"))}}const i=e?`${n}://${t}:${e}`:`${n}://${t}`;return this._socket=window.io.connect(i,{path:r.endsWith("/")?`${r}socket.io`:`${r}/socket.io`,query:"ws=true",name:this.props.name,timeout:this.props.ioTimeout,uuid:this.props.uuid,token:this.props.token}),this._socket.on("connect",(t=>{this.onReadyDone=!1,!0!==t?(this.connected=!0,setTimeout((()=>this.getVersion().then((t=>{const[e,n,r]=t.version.split(".");1e4*parseInt(e,10)+100*parseInt(n,10)+parseInt(r,10)<40102?(this._authTimer=null,this.onPreConnect(!1,!1)):this._socket.emit("authenticate",((t,e)=>this.onPreConnect(t,e)))})).catch((t=>this.onError({message:t.toString(),operation:"getVersion"})))),500)):this._socket.emit("authenticate",((t,e)=>{this.onPreConnect(t,e)}))})),this._socket.on("reconnect",(()=>{this.onReadyDone=!1,this.props.onProgress?.(l.READY),this.connected=!0,this.waitForRestart?window.location.reload():(this._subscribe(!0),this.onConnectionHandlers.forEach((t=>t(!0))))})),this._socket.on("disconnect",(()=>{this.onReadyDone=!1,this.connected=!1,this.subscribed=!1,this.props.onProgress?.(l.CONNECTING),this.onConnectionHandlers.forEach((t=>t(!1)))})),this._socket.on("reauthenticate",(()=>this.authenticate())),this._socket.on("log",(t=>{this.props.onLog?.(t),this.onLogHandlers.forEach((e=>e(t)))})),this._socket.on("error",(t=>{let e;void 0==t?e="":"function"===typeof t.toString?e=t.toString():(e=JSON.stringify(t),console.error(`Received strange error: ${e}`)),e.includes("User not authorized")?this.authenticate():e.includes("websocket error")?(console.error(`Socket Error => reload: ${t}`),window.location.reload()):console.error(`Socket Error: ${t}`)})),this._socket.on("connect_error",(t=>console.error(`Connect error: ${t}`))),this._socket.on("permissionError",(t=>this.onError({message:"no permission",operation:t.operation,type:t.type,id:t.id||""}))),this._socket.on("objectChange",((t,e)=>{setTimeout((()=>this.objectChange(t,e)),0)})),this._socket.on("stateChange",((t,e)=>{setTimeout((()=>this.stateChange(t,e)),0)})),this._socket.on("im",((t,e,n)=>{setTimeout((()=>this.instanceMessage(t,e,n)),0)})),this._socket.on("fileChange",((t,e,n)=>{setTimeout((()=>this.fileChange(t,e,n)),0)})),this._socket.on("cmdStdout",((t,e)=>{this.onCmdStdoutHandler?.(t,e)})),this._socket.on("cmdStderr",((t,e)=>{this.onCmdStderrHandler?.(t,e)})),this._socket.on("cmdExit",((t,e)=>{this.onCmdExitHandler?.(t,e)})),Promise.resolve()}onPreConnect(t,e){this._authTimer&&(clearTimeout(this._authTimer),this._authTimer=null),this.connected=!0,this.isSecure=e,this.waitForRestart?window.location.reload():(this.firstConnect?this.loadData().catch((t=>console.error(`Cannot load data: ${t}`))):this.props.onProgress?.(l.READY),this._subscribe(!0),this.onConnectionHandlers.forEach((t=>t(!0)))),this._waitForFirstConnectionPromise.resolve()}static isCloud(){return!(!window.location.hostname.includes("amazonaws.com")&&!window.location.hostname.includes("iobroker.in"))||"undefined"!==typeof window.socketUrl&&(window.socketUrl.includes("iobroker.in")||window.socketUrl.includes("amazonaws"))}isConnected(){return this.connected}waitForFirstConnection(){return this._waitForFirstConnectionPromise}async getUserPermissions(){return this.request({commandTimeout:!1,executor:(t,e)=>{this._socket.emit("getUserPermissions",((n,r)=>{n?e(n):t(r)}))}})}async loadData(){if(this.loaded)return;for(let t=1;t<=10;t++){if(this.doLoadData().catch((t=>console.error(`Cannot load data: ${t}`))),this.loaded)return;await s(h.isCloud()?5e3:1e3)}}async doLoadData(){if(!this.loaded){if(!this.props.doNotLoadACL)try{this.acl=await this.getUserPermissions()}catch(t){return void this.onError(`Cannot read user permissions: ${t}`)}try{!this.props.admin5only||h.isWeb()||window.vendorPrefix&&"@@vendorPrefix@@"!==window.vendorPrefix?this._systemConfig=await this.getSystemConfig():this._systemConfig=await this.getCompactSystemConfig()}catch(t){return void this.onError(`Cannot read system config: ${t}`)}this._systemConfig&&(this.systemLang=this._systemConfig.common?.language,this.systemLang||(this.systemLang=window.navigator.userLanguage||window.navigator.language,/^(en|de|ru|pt|nl|fr|it|es|pl|uk)-?/.test(this.systemLang)?this.systemLang=this.systemLang.substring(0,2):/^(en|de|ru|pt|nl|fr|it|es|pl|uk|zh-cn)$/.test(this.systemLang)||(this.systemLang="en"),this._systemConfig.common.language=this.systemLang)),this.props.onLanguage?.(this.systemLang),this.loaded=!0,this.props.onProgress?.(l.CONNECTED),this.firstConnect=!1,this.props.doNotLoadAllObjects?this.props.admin5only?this.objects={}:this.objects={"system.config":this._systemConfig}:this.objects=await this.getObjects(),this.props.onProgress?.(l.READY),this.onReadyDone||(this.onReadyDone=!0,this.props.onReady?.(this.objects))}}authenticate(){window.location.search.includes("&href=")?window.location.href=`${window.location.protocol}//${window.location.host}${window.location.pathname}${window.location.search}${window.location.hash}`:window.location.href=`${window.location.protocol}//${window.location.host}${window.location.pathname}?login&href=${window.location.search}${window.location.hash}`}async subscribeState(){let t,e,n,r;for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];if(3===o.length?[t,e,n]=o:([t,n]=o,e=!1),r=Array.isArray(t)?t:[t],"function"!==typeof n)throw new Error("The state change handler must be a function!");const l=[];for(let u=0;u<r.length;u++){const e=r[u];this.statesSubscribes[e]?!this.statesSubscribes[e].cbs.includes(n)&&this.statesSubscribes[e].cbs.push(n):(this.statesSubscribes[e]={reg:new RegExp(a(e)),cbs:[n]},t!==this.ignoreState&&l.push(e))}if(this.connected)if(l.length&&this._socket.emit("subscribe",l),e){let t;for(let e=0;e<r.length;e++){try{t=await this.getBinaryState(r[e])}catch(c){console.error(`Cannot getBinaryState "${r[e]}": ${JSON.stringify(c)}`)}void 0!=t&&n(r[e],t)}}else if(r.find((t=>t.includes("*")))){let t;for(let e=0;e<r.length;e++){try{t=await this.getForeignStates(r[e])}catch(c){return void console.error(`Cannot getForeignStates "${r[e]}": ${JSON.stringify(c)}`)}if(t)for(const[e,r]of Object.entries(t)){const t=n(e,r);t instanceof Promise&&t.catch((t=>console.error(`Cannot call state change handler: ${t}`)))}}}else try{const t=await(h.isWeb()?this.getStates(r):this.getForeignStates(r));if(t)for(const[e,r]of Object.entries(t)){const t=n(e,r);t instanceof Promise&&t.catch((t=>console.error(`Cannot call state change handler: ${t}`)))}}catch(c){return void console.error(`Cannot getState "${r.join(", ")}": ${c.message}`)}}async subscribeStateAsync(t,e){return this.subscribeState(t,e)}unsubscribeState(t,e){let n;n=Array.isArray(t)?t:[t];const r=[];for(let i=0;i<n.length;i++){const t=n[i];if(this.statesSubscribes[t]){const n=this.statesSubscribes[t];if(e){const t=n.cbs.indexOf(e);-1!==t&&n.cbs.splice(t,1)}else n.cbs=[];n.cbs?.length||(delete this.statesSubscribes[t],t!==this.ignoreState&&r.push(t))}}this.connected&&r.length&&this._socket.emit("unsubscribe",n)}subscribeObject(t,e){let n;if(n=Array.isArray(t)?t:[t],"function"!==typeof e)throw new Error("The object change handler must be a function!");const r=[];for(let i=0;i<n.length;i++){const t=n[i];this.objectsSubscribes[t]?!this.objectsSubscribes[t].cbs.includes(e)&&this.objectsSubscribes[t].cbs.push(e):(this.objectsSubscribes[t]={reg:new RegExp(a(t)),cbs:[e]},r.push(t))}return this.connected&&r.length&&this._socket.emit("subscribeObjects",r),Promise.resolve()}unsubscribeObject(t,e){let n;n=Array.isArray(t)?t:[t];const r=[];for(let i=0;i<n.length;i++){const t=n[i];if(this.objectsSubscribes[t]){const n=this.objectsSubscribes[t];if(e){const t=n.cbs.indexOf(e);-1!==t&&n.cbs.splice(t,1)}else n.cbs=[];n.cbs?.length||(delete this.objectsSubscribes[t],r.push(t))}}return this.connected&&r.length&&this._socket.emit("unsubscribeObjects",r),Promise.resolve()}objectChange(t,e){let n;this.objects[t]&&(n={_id:t,type:this.objects[t].type});let r=!1;e?(e._rev&&this.objects[t]&&(this.objects[t]._rev=e._rev),this.objects[t]&&JSON.stringify(this.objects[t])===JSON.stringify(e)||(this.objects[t]=e,r=!0)):this.objects[t]&&(delete this.objects[t],r=!0);for(const[i,o]of Object.entries(this.objectsSubscribes))(i===t||o.reg.test(t))&&o.cbs.forEach((r=>{try{const i=r(t,e,n);i instanceof Promise&&i.catch((t=>console.error(`Cannot call object change handler: ${t}`)))}catch(i){console.error(`Error by callback of objectChange: ${i}`)}}));if(r){const n=this.props.onObjectChange?.(t,e);n instanceof Promise&&n.catch((t=>console.error(`Cannot call object change handler: ${t}`)))}}stateChange(t,e){for(const r of Object.values(this.statesSubscribes))if(r.reg.test(t))for(const i of r.cbs)try{const n=i(t,e??null);n instanceof Promise&&n.catch((t=>console.error(`Cannot call state change handler: ${t}`)))}catch(n){console.error(`Error by callback of stateChanged: ${n}`)}}instanceMessage(t,e,n){this._instanceSubscriptions[e]?.forEach((r=>{if(r.messageType===t){const i=r.callback(n,e,t);i instanceof Promise&&i.catch((t=>console.error(`Cannot call instance message handler: ${t}`)))}}))}fileChange(t,e,n){for(const i of Object.values(this.filesSubscribes))if(i.regId.test(t)&&i.regFilePattern.test(e))for(const o of i.cbs)try{o(t,e,n)}catch(r){console.error(`Error by callback of fileChange: ${r}`)}}async subscribeFiles(t,e,n){if("function"!==typeof n)throw new Error("The state change handler must be a function!");let r;r=Array.isArray(e)?e:[e];const i=[];for(let o=0;o<r.length;o++){const e=r[o],s=`${t}$%$${e}`;this.filesSubscribes[s]?!this.filesSubscribes[s].cbs.includes(n)&&this.filesSubscribes[s].cbs.push(n):(this.filesSubscribes[s]={regId:new RegExp(a(t)),regFilePattern:new RegExp(a(e)),cbs:[n]},i.push(e))}return this.connected&&i.length&&this._socket.emit("subscribeFiles",t,i),Promise.resolve()}unsubscribeFiles(t,e,n){let r;r=Array.isArray(e)?e:[e];const i=[];for(let o=0;o<r.length;o++){const e=r[o],s=`${t}$%$${e}`;if(this.filesSubscribes[s]){const t=this.filesSubscribes[s];if(n){const e=t.cbs.indexOf(n);-1!==e&&t.cbs.splice(e,1)}else t.cbs=[];t.cbs?.length||(delete this.filesSubscribes[s],i.push(e))}}this.connected&&i.length&&this._socket.emit("unsubscribeFiles",t,i)}async request(t){let{cacheKey:e,forceUpdate:n,commandTimeout:r,onTimeout:i,requireAdmin:o,requireFeatures:s,executor:a}=t;if(o&&h.isWeb())return Promise.reject(new Error(c.NOT_ADMIN));if(e&&!n&&e in this._promises)return this._promises[e];if(!this.connected)return Promise.reject(new Error(c.NOT_CONNECTED));if(s?.length)for(const u of s)if(!await this.checkFeatureSupported(u))throw new Error(c.NOT_SUPPORTED);const l=new Promise((async(t,e)=>{const n={elapsed:!1,clearTimeout:()=>{}};let o;!1!==r&&(o=setTimeout((()=>{n.elapsed=!0,i?.(),e(new Error(c.TIMEOUT))}),r??this.props.cmdTimeout),n.clearTimeout=()=>{clearTimeout(o)});try{await a(t,e,n)}catch(s){e(new Error(s.toString()))}}));return e&&(this._promises[e]=l),l}resetCache(t,e){e?Object.keys(this._promises).filter((e=>e.startsWith(t))).forEach((t=>{delete this._promises[t]})):delete this._promises[t]}getStates(t){return this.request({commandTimeout:!1,executor:(e,n)=>{this._socket.emit("getStates",t,((t,r)=>{this.states=r??{},t?n(t):e(this.states)}))}})}getState(t){return this.request({commandTimeout:!1,executor:(e,n)=>{t&&t===this.ignoreState?e(this.simStates[t]||{val:null,ack:!0}):this._socket.emit("getState",t,((t,r)=>{t?n(t):e(r)}))}})}getBinaryState(t){return this.request({commandTimeout:!1,executor:(e,n)=>{this._socket.emit("getBinaryState",t,((t,r)=>{t?n(t):e(r)}))}})}setBinaryState(t,e){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("setBinaryState",t,e,(t=>{t?r(t):n()}))}})}setState(t,e,n){return"boolean"===typeof n&&(e={val:e,ack:n}),this.request({commandTimeout:!1,executor:(r,i)=>{if(t&&t===this.ignoreState){let i;if(i="boolean"===typeof n||"object"===typeof e&&void 0!==e.val?e:{val:e,ack:!1,ts:Date.now(),lc:Date.now(),from:"system.adapter.vis.0"},this.simStates[t]=i,this.statesSubscribes[t])for(const e of this.statesSubscribes[t].cbs)try{const n=e(t,i);n instanceof Promise&&n.catch((t=>console.error(`Cannot call state change handler: ${t}`)))}catch(o){console.error(`Error by callback of stateChanged: ${o}`)}r()}else this._socket.emit("setState",t,e,(t=>{t?i(t):r()}))}})}getObjects(t,e){return this.request({commandTimeout:!1,executor:(n,r)=>{t||!this.objects?this._socket.emit(h.isWeb()?"getObjects":"getAllObjects",((t,i)=>{e||this.props.onProgress?.(l.OBJECTS_LOADED),t?r(t):(this.objects=i??{},n(this.objects))})):n(this.objects)}})}getObjectsById(t){return this.request({commandTimeout:!1,executor:(e,n)=>{this._socket.emit("getObjects",t,((t,r)=>{t?n(t):e(r)}))}})}_subscribe(t){if(t&&!this.subscribed){this.subscribed=!0,this.props.autoSubscribes?.length&&this._socket.emit("subscribeObjects",this.props.autoSubscribes);const t=Object.keys(this.objectsSubscribes);t.length&&this._socket.emit("subscribeObjects",t),Object.keys(this.objectsSubscribes).forEach((t=>this._socket.emit("subscribeObjects",t))),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!0),Object.keys(this.statesSubscribes).forEach((t=>this._socket.emit("subscribe",t))),Object.keys(this.filesSubscribes).forEach((t=>{const[e,n]=t.split("$%$");this._socket.emit("subscribeFiles",e,n)}))}else if(!t&&this.subscribed){this.subscribed=!1,this.props.autoSubscribes?.length&&this._socket.emit("unsubscribeObjects",this.props.autoSubscribes);const t=Object.keys(this.objectsSubscribes);t.length&&this._socket.emit("unsubscribeObjects",t),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!1),Object.keys(this.statesSubscribes).forEach((t=>this._socket.emit("unsubscribe",t))),Object.keys(this.filesSubscribes).forEach((t=>{const[e,n]=t.split("$%$");this._socket.emit("unsubscribeFiles",e,n)}))}}requireLog(t){return this.request({commandTimeout:!1,executor:(e,n)=>{this._socket.emit("requireLog",t,(t=>{t?n(t):e()}))}})}delObject(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("delObject",t,{maintenance:e},(t=>{t?r(t):n()}))}})}delObjects(t,e){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("delObjects",t,{maintenance:e},(t=>{t?r(t):n()}))}})}setObject(t,e){return e?(delete(e=JSON.parse(JSON.stringify(e))).from,delete e.user,delete e.ts,this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("setObject",t,e,(t=>{t?r(t):n()}))}})):Promise.reject(new Error("Null object is not allowed"))}getObject(t){return this.request({commandTimeout:!1,executor:(e,n)=>{t&&t===this.ignoreState?e({_id:this.ignoreState,type:"state",common:{name:"ignored state",type:"mixed"}}):this._socket.emit("getObject",t,((t,r)=>{t?n(t):e(r)}))}})}sendTo(t,e,n){return this.request({commandTimeout:!1,executor:r=>{this._socket.emit("sendTo",t,e,n,(t=>{r(t)}))}})}extendObject(t,e){return e?(delete(e=JSON.parse(JSON.stringify(e))).from,delete e.user,delete e.ts,this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("extendObject",t,e,(t=>{t?r(t):n()}))}})):Promise.reject(new Error("Null object is not allowed"))}registerLogHandler(t){this.onLogHandlers.includes(t)||this.onLogHandlers.push(t)}unregisterLogHandler(t){const e=this.onLogHandlers.indexOf(t);-1!==e&&this.onLogHandlers.splice(e,1)}registerConnectionHandler(t){this.onConnectionHandlers.includes(t)||this.onConnectionHandlers.push(t)}unregisterConnectionHandler(t){const e=this.onConnectionHandlers.indexOf(t);-1!==e&&this.onConnectionHandlers.splice(e,1)}registerCmdStdoutHandler(t){this.onCmdStdoutHandler=t}unregisterCmdStdoutHandler(){this.onCmdStdoutHandler=void 0}registerCmdStderrHandler(t){this.onCmdStderrHandler=t}unregisterCmdStderrHandler(){this.onCmdStderrHandler=void 0}registerCmdExitHandler(t){this.onCmdExitHandler=t}unregisterCmdExitHandler(){this.onCmdExitHandler=void 0}getEnums(t,e){return this.request({cacheKey:`enums_${t||"all"}`,forceUpdate:e,commandTimeout:!1,executor:(e,n)=>{this._socket.emit("getObjectView","system","enum",{startkey:`enum.${t||""}`,endkey:t?`enum.${t}.\u9999`:"enum.\u9999"},((r,i)=>{if(r)n(r);else{const n={};if(i)for(let e=0;e<i.rows.length;e++)t&&i.rows[e].id===`enum.${t}`||(n[i.rows[e].id]=i.rows[e].value);e(n)}}))}})}getObjectView(t,e,n){return this.getObjectViewCustom("system",n,t,e)}getObjectViewSystem(t,e,n){return this.getObjectViewCustom("system",t,e,n)}getObjectViewCustom(t,e,n,r){return this.request({commandTimeout:!1,executor:(i,o)=>{n=n||"",r=r||"\u9999",this._socket.emit("getObjectView",t,e,{startkey:n,endkey:r},((t,e)=>{if(t)o(t);else{const t={};if(e&&e.rows)for(let n=0;n<e.rows.length;n++)t[e.rows[n].id]=e.rows[n].value;i(t)}}))}})}readMetaItems(){return this.request({commandTimeout:!1,executor:(t,e)=>{this._socket.emit("getObjectView","system","meta",{startkey:"",endkey:"\u9999"},((n,r)=>{n?e(n):t(r.rows?.map((t=>t.value)).filter((t=>!!t)))}))}})}readDir(t,e){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("readDir",t,e,((t,e)=>{t?r(t):n(e)}))}})}readFile(t,e,n){return this.request({commandTimeout:!1,executor:(r,i)=>{this._socket.emit(n?"readFile64":"readFile",t,e,((t,e,n)=>{t?i(t):r({file:e,mimeType:n})}))}})}writeFile64(t,e,n){return this.request({commandTimeout:!1,executor:(r,i)=>{if("string"===typeof n)this._socket.emit("writeFile",t,e,n,(t=>{t?i(t):r()}));else{const o=btoa(new Uint8Array(n).reduce(((t,e)=>t+String.fromCharCode(e)),""));this._socket.emit("writeFile64",t,e,o,(t=>{t?i(t):r()}))}}})}deleteFile(t,e){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("deleteFile",t,e,(t=>{t?r(t):n()}))}})}deleteFolder(t,e){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("deleteFolder",t,e,(t=>{t?r(t):n()}))}})}rename(t,e,n){return this.request({commandTimeout:!1,executor:(r,i)=>{this._socket.emit("rename",t,e,n,(t=>{t?i(t):r()}))}})}renameFile(t,e,n){return this.request({commandTimeout:!1,executor:(r,i)=>{this._socket.emit("renameFile",t,e,n,(t=>{t?i(t):r()}))}})}cmdExec(t,e,n,r){return this.request({commandTimeout:r,executor:(r,o,s)=>{t=i(t),this._socket.emit("cmdExec",t,n,e,(t=>{s.elapsed||(s.clearTimeout(),t?o(t):r())}))}})}getSystemConfig(t){return this.request({cacheKey:"systemConfig",forceUpdate:t,commandTimeout:!1,executor:async t=>{let e=await this.getObject("system.config");e??={},e.common??={},e.native??={},t(e)}})}getCompactSystemConfig(t){return this.request({cacheKey:"systemConfigCommon",forceUpdate:t,commandTimeout:!1,requireAdmin:!0,executor:(t,e)=>{this._socket.emit("getCompactSystemConfig",((n,r)=>{n?e(n):(r??={},r.common??={},r.native??={},t(r))}))}})}getForeignStates(t){return this.request({commandTimeout:!1,executor:(e,n)=>{this._socket.emit("getForeignStates",t||"*",((t,r)=>{t?n(t):e(r??{})}))}})}getForeignObjects(t,e){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("getForeignObjects",t||"*",e,((t,e)=>{t?r(t):n(e)}))}})}setSystemConfig(t){return this.setObject("system.config",t)}getRawSocket(){return this._socket}getHistory(t,e){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("getHistory",t,e,((t,e)=>{t?r(t):n(e)}))}})}getHistoryEx(t,e){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("getHistory",t,e,((t,e,i,o)=>{t?r(t):n({values:e,sessionId:o,stepIgnore:i})}))}})}getIpAddresses(t,e){return t=i(t),this.request({cacheKey:`IPs_${t}`,forceUpdate:e,commandTimeout:!1,executor:async e=>{const n=await this.getObject(t);e(n?.common.address??[])}})}getVersion(t){return this.request({cacheKey:"version",forceUpdate:t,commandTimeout:!1,executor:(t,e)=>{this._socket.emit("getVersion",((n,r,i)=>{n&&!r&&"string"===typeof n&&n.match(/\d+\.\d+\.\d+/)?t({version:n,serverName:"socketio"}):n?e(n):t({version:r,serverName:i})}))}})}getWebServerName(){return this.request({cacheKey:"webName",commandTimeout:!1,executor:(t,e)=>{this._socket.emit("getAdapterName",((n,r)=>{n?e(n):t(r)}))}})}fileExists(t,e){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("fileExists",t,e,((t,e)=>{t?r(t):n(!!e)}))}})}getCurrentUser(){return this.request({commandTimeout:!1,executor:t=>{this._socket.emit("authEnabled",((e,n)=>{t(n)}))}})}getUuid(){return this.request({cacheKey:"uuid",commandTimeout:!1,executor:async t=>{const e=await this.getObject("system.meta.uuid");t(e?.native?.uuid)}})}checkFeatureSupported(t,e){return this.request({cacheKey:`supportedFeatures_${t}`,forceUpdate:e,commandTimeout:!1,executor:(e,n)=>{this._socket.emit("checkFeatureSupported",t,((t,r)=>{t?n(t):e(r)}))}})}getAdapterInstances(t,e){return"boolean"===typeof t&&(e=t,t=""),t=t||"",this.request({cacheKey:`instances_${t}`,forceUpdate:e,commandTimeout:!1,executor:async e=>{const n=t?`system.adapter.${t}.`:"system.adapter.",r=`${n}\u9999`,i=await this.getObjectViewSystem("instance",n,r),o=Object.values(i);e(t?o.filter((e=>e.common.name===t)):o)}})}getAdapters(t,e){return"boolean"===typeof t&&(e=t,t=""),t=t||"",this.request({cacheKey:`adapter_${t}`,forceUpdate:e,commandTimeout:!1,executor:async e=>{const n=await this.getObjectViewSystem("adapter",`system.adapter.${t||""}`,`system.adapter.${t||"\u9999"}`),r=Object.values(n);e(t?r.filter((e=>e.common.name===t)):r)}})}getGroups(t){return this.request({cacheKey:"groups",forceUpdate:t,commandTimeout:!1,executor:(t,e)=>{this._socket.emit("getObjectView","system","group",{startkey:"system.group.",endkey:"system.group.\u9999"},((n,i)=>{n?e(n):t(r(i))}))}})}logout(){return this.request({commandTimeout:!1,executor:(t,e)=>{this._socket.emit("logout",(n=>{n?e(n):t(null)}))}})}subscribeOnInstance(t,e,n,r){return this.request({commandTimeout:!1,executor:(i,o)=>{this._socket.emit("clientSubscribe",t,e,n,((n,s)=>{n?o(n):s&&(s.error?o(s.error):(t.startsWith("system.adapter.")||(t=`system.adapter.${t}`),this._instanceSubscriptions[t]=this._instanceSubscriptions[t]||[],this._instanceSubscriptions[t].find((t=>t.messageType===e&&t.callback===r))||this._instanceSubscriptions[t].push({messageType:e,callback:r}),i(s)))}))}})}unsubscribeFromInstance(t,e,n){let r;t.startsWith("system.adapter.")||(t=`system.adapter.${t}`);const i=[];do{r=!1;const o=this._instanceSubscriptions[t]?.findIndex((t=>(!e||t.messageType===e)&&(!n||t.callback===n)));if(void 0!==o&&null!==o&&-1!==o){r=!0;const n=this._instanceSubscriptions[t][o].messageType;this._instanceSubscriptions[t].splice(o,1),this._instanceSubscriptions[t].length||delete this._instanceSubscriptions[t];this._instanceSubscriptions[t]&&this._instanceSubscriptions[t].find((t=>t.messageType===n))||i.push(this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("clientUnsubscribe",t,e,((t,e)=>t?r(t):n(e)))}}))}}while(r&&(!n||!e));return i.length?Promise.all(i).then((t=>!!t.find((t=>t)))):Promise.resolve(!1)}log(t,e){return t?this.request({commandTimeout:!1,executor:n=>(this._socket.emit("log",t,e),n(null))}):Promise.resolve(null)}setStateToIgnore(t){this.ignoreState=t}}class d extends h{constructor(t){super(t)}request(t){return super.request({requireAdmin:!0,...t})}getCertificates(t){return this.request({cacheKey:"cert",forceUpdate:t,commandTimeout:!1,executor:async t=>{const e=await this.getObject("system.certificates");t(e?.native?.certificates?Object.entries(e.native.certificates).map((t=>{let[e,n]=t;return function(t,e){if(!e)return;let n;if(e.length<700&&(-1!==e.indexOf("/")||-1!==e.indexOf("\\")))if(t.toLowerCase().includes("private"))n="private";else if(e.toLowerCase().includes("private"))n="private";else if(t.toLowerCase().includes("public"))n="public";else if(e.toLowerCase().includes("public"))n="public";else if(t.toLowerCase().includes("chain"))n="chained";else{if(!e.toLowerCase().includes("chain"))return;n="chained"}else n="-----BEGIN RSA PRIVATE KEY"===e.substring(0,26)||"-----BEGIN PRIVATE KEY"===e.substring(0,22)?"private":"public","public"===n&&e.split("-----END CERTIFICATE-----").filter((t=>t.replace(/\r\n|\r|\n/,"").trim())).length>1&&(n="chained");return{name:t,type:n}}(e,n)})).filter((t=>!!t)):[])}})}getLogs(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;return this.request({commandTimeout:!1,executor:n=>{this._socket.emit("sendToHost",t,"getLogs",e||200,(t=>{n(t)}))}})}upgradeAdapterWithWebserver(t,e){return this.request({commandTimeout:!1,executor:n=>{this._socket.emit("sendToHost",t,"upgradeAdapterWithWebserver",e,(t=>{n(t)}))}})}upgradeController(t,e,n){return this.request({commandTimeout:!1,executor:(r,i)=>{this._socket.emit("sendToHost",t,"upgradeController",{version:e,adminInstance:n},(t=>{const e=t;e.error?i(e.error):r(e.result)}))}})}updateLicenses(t,e){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("updateLicenses",t,e,((t,e)=>{t?r(t):n(e)}))}})}upgradeOsPackages(t,e,n){return this.request({commandTimeout:!1,executor:r=>{this._socket.emit("sendToHost",t,"upgradeOsPackages",{packages:e,restart:!!n},(t=>{r(t)}))}})}getLogsFiles(t){return this.request({commandTimeout:!1,executor:(e,n)=>{this._socket.emit("readLogs",t,((t,r)=>{t&&n(t),e(r)}))}})}delLogs(t){return this.request({commandTimeout:!1,executor:(e,n)=>{this._socket.emit("sendToHost",t,"delLogs",null,(t=>{t&&n(t),e()}))}})}deleteFile(t,e){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("deleteFile",t,e,(t=>{t&&r(t),n()}))}})}deleteFolder(t,e){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("deleteFolder",t,e,(t=>{t&&r(t),n()}))}})}rename(t,e,n){return this.request({commandTimeout:!1,executor:(r,i)=>{this._socket.emit("rename",t,e,n,(t=>{t&&i(t),r()}))}})}renameFile(t,e,n){return this.request({commandTimeout:!1,executor:(r,i)=>{this._socket.emit("renameFile",t,e,n,(t=>{t&&i(t),r()}))}})}getHosts(t){return this.request({cacheKey:"hosts",forceUpdate:t,commandTimeout:!1,executor:(t,e)=>{this._socket.emit("getObjectView","system","host",{startkey:"system.host.",endkey:"system.host.\u9999"},((n,i)=>{n?e(n):t(r(i))}))}})}getUsers(t){return this.request({cacheKey:"users",forceUpdate:t,commandTimeout:!1,executor:(t,e)=>{this._socket.emit("getObjectView","system","user",{startkey:"system.user.",endkey:"system.user.\u9999"},((n,i)=>{n?e(n):t(r(i))}))}})}renameGroup(t,e,n){return this.request({commandTimeout:!1,executor:async r=>{const i=await this.getGroups(!0),o=i.filter((e=>e._id.startsWith(`${t}.`)));for(const n of o){const r=n._id,i=e+n._id.substring(t.length);n._id=i,await this.setObject(i,n),await this.delObject(r)}const s=i.find((e=>e._id===t));if(s){const t=s._id;s._id=e,void 0!==n&&(s.common??={},s.common.name=n),await this.setObject(e,s),await this.delObject(t)}r()}})}getHostInfo(t,e,n){return t=i(t),this.request({cacheKey:`hostInfo_${t}`,forceUpdate:e,commandTimeout:n,executor:(e,n,r)=>{this._socket.emit("sendToHost",t,"getHostInfo",null,(t=>{r.elapsed||(r.clearTimeout(),t===c.PERMISSION_ERROR?n('May not read "getHostInfo"'):t?e(t):n('Cannot read "getHostInfo"'))}))}})}getHostInfoShort(t,e,n){return t=i(t),this.request({cacheKey:`hostInfoShort_${t}`,forceUpdate:e,commandTimeout:n,executor:(e,n,r)=>{this._socket.emit("sendToHost",t,"getHostInfoShort",null,(t=>{r.elapsed||(r.clearTimeout(),t===c.PERMISSION_ERROR?n('May not read "getHostInfoShort"'):t?e(t):n('Cannot read "getHostInfoShort"'))}))}})}getRepository(t,e,n,r){return this.request({cacheKey:`repository_${t}`,forceUpdate:n,commandTimeout:r,executor:(n,r,i)=>{this._socket.emit("sendToHost",t,"getRepository",e,(t=>{i.elapsed||(i.clearTimeout(),t===c.PERMISSION_ERROR?r('May not read "getRepository"'):t?n(t):r('Cannot read "getRepository"'))}))}})}getInstalled(t,e,n){return t=i(t),this.request({cacheKey:`installed_${t}`,forceUpdate:e,commandTimeout:n,executor:(e,n,r)=>{this._socket.emit("sendToHost",t,"getInstalled",null,(t=>{r.elapsed||(r.clearTimeout(),t===c.PERMISSION_ERROR?n('May not read "getInstalled"'):t?e(t):n('Cannot read "getInstalled"'))}))}})}cmdExec(t,e,n,r){return this.request({commandTimeout:r,executor:(r,o,s)=>{t=i(t),this._socket.emit("cmdExec",t,n,e,(t=>{s.elapsed||(s.clearTimeout(),t&&o(t),r())}))}})}readBaseSettings(t){return t=o(t),this.request({requireFeatures:["CONTROLLER_READWRITE_BASE_SETTINGS"],executor:(e,n,r)=>{this._socket.emit("sendToHost",t,"readBaseSettings",null,(t=>{r.elapsed||(r.clearTimeout(),t===c.PERMISSION_ERROR?n('May not read "BaseSettings"'):t?t.error?n(new Error(t.error)):e(t):n('Cannot read "BaseSettings"'))}))}})}writeBaseSettings(t,e){return t=o(t),this.request({requireFeatures:["CONTROLLER_READWRITE_BASE_SETTINGS"],executor:(n,r,i)=>{this._socket.emit("sendToHost",t,"writeBaseSettings",e,(t=>{i.elapsed||(i.clearTimeout(),t===c.PERMISSION_ERROR?r('May not write "BaseSettings"'):t?n(t):r('Cannot write "BaseSettings"'))}))}})}restartController(t){return t=o(t),this.request({executor:(e,n,r)=>{this._socket.emit("sendToHost",t,"restartController",null,(()=>{r.elapsed||(r.clearTimeout(),e(!0))}))}})}getDiagData(t,e){return t=o(t),this.request({executor:(n,r,i)=>{this._socket.emit("sendToHost",t,"getDiagData",e,(t=>{i.elapsed||(i.clearTimeout(),n(t||null))}))}})}changePassword(t,e){return this.request({executor:(n,r,i)=>{this._socket.emit("changePassword",t,e,(t=>{i.elapsed||(i.clearTimeout(),t&&r(t),n())}))}})}getIpAddresses(t,e){return t=i(t),this.request({cacheKey:`IPs_${t}`,forceUpdate:e,commandTimeout:!1,executor:async e=>{const n=await this.getObject(t);e(n?.common.address??[])}})}getHostByIp(t,e){return t=o(t),this.request({cacheKey:`rIPs_${t}`,forceUpdate:e,executor:(e,n,r)=>{this._socket.emit("getHostByIp",t,((t,n)=>{if(r.elapsed)return;r.clearTimeout();const{IPs4:i,IPs6:o}=function(t){const e=[{name:"[IPv4] 0.0.0.0 - Listen on all IPs",address:"0.0.0.0",family:"ipv4"}],n=[{name:"[IPv6] :: - Listen on all IPs",address:"::",family:"ipv6"}];if(t.native?.hardware?.networkInterfaces)for(const[r,i]of Object.entries(t.native.hardware.networkInterfaces))if(i)for(const t of i)"IPv6"!==t.family?e.push({name:`[${t.family}] ${t.address} - ${r}`,address:t.address,family:"ipv4"}):n.push({name:`[${t.family}] ${t.address} - ${r}`,address:t.address,family:"ipv6"});return{IPs4:e,IPs6:n}}(n);e([...i,...o])}))}})}encrypt(t){return this.request({executor:(e,n,r)=>{this._socket.emit("encrypt",t,((t,i)=>{r.elapsed||(r.clearTimeout(),t&&n(t),e(i))}))}})}decrypt(t){return this.request({executor:(e,n,r)=>{this._socket.emit("decrypt",t,((t,i)=>{r.elapsed||(r.clearTimeout(),t&&n(t),e(i))}))}})}chmodFile(t,e,n){return this.request({executor:(r,i,o)=>{this._socket.emit("chmodFile",t,e,n,((t,e)=>{o.elapsed||(o.clearTimeout(),t&&i(t),r(e))}))}})}chownFile(t,e,n){return this.request({executor:(r,i,o)=>{this._socket.emit("chownFile",t,e,n,((t,e)=>{o.elapsed||(o.clearTimeout(),t&&i(t),r(e))}))}})}getNotifications(t,e){return this.request({executor:(n,r,i)=>{this._socket.emit("sendToHost",t,"getNotifications",{category:e},(t=>{i.elapsed||(i.clearTimeout(),n(t))}))}})}clearNotifications(t,e){return this.request({executor:(n,r,i)=>{this._socket.emit("sendToHost",t,"clearNotifications",{category:e},(t=>{i.elapsed||(i.clearTimeout(),n(t))}))}})}getIsEasyModeStrict(){return this.request({executor:(t,e,n)=>{this._socket.emit("getIsEasyModeStrict",((r,i)=>{n.elapsed||(n.clearTimeout(),r&&e(r),t(!!i))}))}})}getEasyMode(){return this.request({executor:(t,e,n)=>{this._socket.emit("getEasyMode",((r,i)=>{n.elapsed||(n.clearTimeout(),r?e(new Error(r)):t(i))}))}})}getRatings(t){return this.request({executor:(e,n,r)=>{this._socket.emit("getRatings",!!t,((t,i)=>{r.elapsed||(r.clearTimeout(),t?n(new Error(t)):e(i))}))}})}getCurrentSession(t){const e=new AbortController;return this.request({commandTimeout:t||5e3,onTimeout:()=>{e.abort()},executor:async(t,n,r)=>{try{const n=await fetch("./session",{signal:e.signal});if(r.elapsed)return;r.clearTimeout(),t(n.json())}catch(i){n(`getCurrentSession: ${i}`)}}})}getCurrentInstance(){return this.request({cacheKey:"currentInstance",executor:(t,e,n)=>{this._socket.emit("getCurrentInstance",((r,i)=>{n.elapsed||(n.clearTimeout(),r&&e(r),t(i))}))}})}getAdapterInstances(t,e){let n;return"boolean"===typeof t?(e=t,n=""):n=t||"",this.request({cacheKey:`instances_${n}`,forceUpdate:e,executor:(t,e,r)=>{this._socket.emit("getAdapterInstances",n,((n,i)=>{r.elapsed||(r.clearTimeout(),n&&e(n),t(i))}))}})}getAdapters(t,e){let n;return"boolean"===typeof t?(e=t,n=""):n=t||"",this.request({cacheKey:`adapter_${n}`,forceUpdate:e,executor:(t,e,r)=>{this._socket.emit("getAdapters",n,((n,i)=>{r.elapsed||(r.clearTimeout(),n&&e(n),t(i))}))}})}getCompactAdapters(t){return this.request({cacheKey:"compactAdapters",forceUpdate:t,executor:(t,e,n)=>{this._socket.emit("getCompactAdapters",((r,i)=>{n.elapsed||(n.clearTimeout(),r&&e(r),t(i))}))}})}getAdaptersResetCache(t){t=t??"",this.resetCache(`adapter_${t}`),this.resetCache("compactAdapters")}getCompactInstances(t){return this.request({cacheKey:"compactInstances",forceUpdate:t,executor:(t,e,n)=>{this._socket.emit("getCompactInstances",((r,i)=>{n.elapsed||(n.clearTimeout(),r&&e(r),t(i))}))}})}getAdapterInstancesResetCache(t){t=t??"",this.resetCache(`instances_${t}`),this.resetCache("compactInstances")}getCompactInstalled(t,e,n){return t=i(t),this.request({cacheKey:`installedCompact_${t}`,forceUpdate:e,commandTimeout:n,executor:(e,n,r)=>{this._socket.emit("getCompactInstalled",t,(t=>{r.elapsed||(r.clearTimeout(),t===c.PERMISSION_ERROR?n('May not read "getCompactInstalled"'):t?e(t):n('Cannot read "getCompactInstalled"'))}))}})}getInstalledResetCache(t){t?(this.resetCache(`installedCompact_${t}`),this.resetCache(`installed_${t}`)):(this.resetCache("installedCompact_",!0),this.resetCache("installed_",!0))}getCompactRepository(t,e,n){return t=i(t),this.request({cacheKey:`repositoryCompact_${t}`,forceUpdate:e,commandTimeout:n,executor:(e,n,r)=>{this._socket.emit("getCompactRepository",t,(t=>{r.elapsed||(r.clearTimeout(),t===c.PERMISSION_ERROR?n('May not read "getCompactRepository"'):t?e(t):n('Cannot read "getCompactRepository"'))}))}})}getRepositoryResetCache(t){t?(this.resetCache(`repositoryCompact_${t}`),this.resetCache(`repository_${t}`)):(this.resetCache("repositoryCompact_",!0),this.resetCache("repository_",!0))}getCompactHosts(t){return this.request({cacheKey:"hostsCompact",forceUpdate:t,executor:(t,e,n)=>{this._socket.emit("getCompactHosts",((r,i)=>{n.elapsed||(n.clearTimeout(),r&&e(r),t(i))}))}})}getCompactSystemRepositories(t){return this.request({cacheKey:"repositoriesCompact",forceUpdate:t,executor:(t,e,n)=>{this._socket.emit("getCompactSystemRepositories",((r,i)=>{n.elapsed||(n.clearTimeout(),r&&e(r),t(i))}))}})}}},73451:(t,e,n)=>{"use strict";function r(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if("undefined"!==typeof process&&void 0===e)throw new Error("invariant requires an error message argument");if(!t){let t;if(void 0===e)t=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let n=0;t=new Error(e.replace(/%s/g,(function(){return r[n++]}))),t.name="Invariant Violation"}throw t.framesToPop=1,t}}n.d(e,{V:()=>r})},57775:(t,e,n)=>{"use strict";function r(t,e,n,r){let i=n?n.call(r,t,e):void 0;if(void 0!==i)return!!i;if(t===e)return!0;if("object"!==typeof t||!t||"object"!==typeof e||!e)return!1;const o=Object.keys(t),s=Object.keys(e);if(o.length!==s.length)return!1;const a=Object.prototype.hasOwnProperty.bind(e);for(let l=0;l<o.length;l++){const s=o[l];if(!a(s))return!1;const c=t[s],u=e[s];if(i=n?n.call(r,c,u,s):void 0,!1===i||void 0===i&&c!==u)return!1}return!0}n.d(e,{b:()=>r})},21535:(t,e,n)=>{"use strict";n.d(e,{U$:()=>l,fB:()=>o,hL:()=>a});var r=n(29183);const i=1;function o(t){return Object.freeze({__version:i,map:t})}const s=(0,r.createContext)(null),a=s.Provider;function l(){const t=(0,r.useContext)(s);if(null==t)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return t}},78990:(t,e,n)=>{"use strict";n.d(e,{Ts:()=>jn});var r=n(20225),i=n(45957),o=n(90888),s=n(48959),a=n(44891);const l=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],c=(0,a._C)((function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{name:"InboundFilters",processEvent(e,n,a){const c=a.getOptions(),h=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:l],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(t,c);return function(t,e){if(e.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(e){}return!1}(t))return s.T&&r.vF.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${(0,i.$X)(t)}`),!0;if(function(t,e){if(t.type||!e||!e.length)return!1;return function(t){const e=[];t.message&&e.push(t.message);let n;try{n=t.exception.values[t.exception.values.length-1]}catch(r){}n&&n.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`));return e}(t).some((t=>(0,o.Xr)(t,e)))}(t,e.ignoreErrors))return s.T&&r.vF.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,i.$X)(t)}`),!0;if(function(t){if(t.type)return!1;if(!t.exception||!t.exception.values||0===t.exception.values.length)return!1;return!t.message&&!t.exception.values.some((t=>t.stacktrace||t.type&&"Error"!==t.type||t.value))}(t))return s.T&&r.vF.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${(0,i.$X)(t)}`),!0;if(function(t,e){if("transaction"!==t.type||!e||!e.length)return!1;const n=t.transaction;return!!n&&(0,o.Xr)(n,e)}(t,e.ignoreTransactions))return s.T&&r.vF.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,i.$X)(t)}`),!0;if(function(t,e){if(!e||!e.length)return!1;const n=u(t);return!!n&&(0,o.Xr)(n,e)}(t,e.denyUrls))return s.T&&r.vF.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,i.$X)(t)}.\nUrl: ${u(t)}`),!0;if(!function(t,e){if(!e||!e.length)return!0;const n=u(t);return!n||(0,o.Xr)(n,e)}(t,e.allowUrls))return s.T&&r.vF.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,i.$X)(t)}.\nUrl: ${u(t)}`),!0;return!1}(e,h)?null:e}}}));function u(t){try{let n;try{n=t.exception.values[0].stacktrace.frames}catch(e){}return n?function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch(n){return s.T&&r.vF.error(`Cannot extract url for event ${(0,i.$X)(t)}`),null}}var h=n(80506),d=n(88594),f=n(16833);function g(){return p(d.O),d.O}function p(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||f.M,e[f.M]=e[f.M]||{}}var m=n(70833);function y(){return{traceId:(0,i.eJ)(),spanId:(0,i.eJ)().substring(16)}}const _=1e3;function v(){return Date.now()/_}const x=function(){const{performance:t}=d.O;if(!t||!t.now)return v;const e=Date.now()-t.now(),n=void 0==t.timeOrigin?e:t.timeOrigin;return()=>(n+t.now())/_}();let w;(()=>{const{performance:t}=d.O;if(!t||!t.now)return void(w="none");const e=36e5,n=t.now(),r=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,o=i<e,s=t.timing&&t.timing.navigationStart,a="number"===typeof s?Math.abs(s+n-r):e;o||a<e?i<=a?(w="timeOrigin",t.timeOrigin):w="navigationStart":w="dateNow"})();function b(t){const e=x(),n={sid:(0,i.eJ)(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return(0,h.Ce)({sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"===typeof t.did||"string"===typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(n)};return t&&S(n,t),n}function S(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||x(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:(0,i.eJ)()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"===typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"===typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"===typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}const E="_sentrySpan";function T(t,e){e?(0,h.my)(t,E,e):delete t[E]}function C(t){return t[E]}class I{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=y()}clone(){const t=new I;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,T(t,C(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&S(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const e="function"===typeof t?t(this):t,[n,r]=e instanceof k?[e.getScopeData(),e.getRequestSession()]:(0,m.Qd)(e)?[t,t.requestSession]:[],{tags:i,extra:o,user:s,contexts:a,level:l,fingerprint:c=[],propagationContext:u}=n||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...o},this._contexts={...this._contexts,...a},s&&Object.keys(s).length&&(this._user=s),l&&(this._level=l),c.length&&(this._fingerprint=c),u&&(this._propagationContext=u),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,T(this,void 0),this._attachments=[],this._propagationContext=y(),this._notifyScopeListeners(),this}addBreadcrumb(t,e){const n="number"===typeof e?e:100;if(n<=0)return this;const r={timestamp:v(),...t},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:C(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){const n=e&&e.event_id?e.event_id:(0,i.eJ)();if(!this._client)return r.vF.warn("No client configured on scope - will not capture exception!"),n;const o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...e,event_id:n},this),n}captureMessage(t,e,n){const o=n&&n.event_id?n.event_id:(0,i.eJ)();if(!this._client)return r.vF.warn("No client configured on scope - will not capture message!"),o;const s=new Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:s,...n,event_id:o},this),o}captureEvent(t,e){const n=e&&e.event_id?e.event_id:(0,i.eJ)();return this._client?(this._client.captureEvent(t,{...e,event_id:n},this),n):(r.vF.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((t=>{t(this)})),this._notifyingListeners=!1)}}const k=I;class O{constructor(t,e){let n,r;n=t||new k,r=e||new k,this._stack=[{scope:n}],this._isolationScope=r}withScope(t){const e=this._pushScope();let n;try{n=t(e)}catch(r){throw this._popScope(),r}return(0,m.Qg)(n)?n.then((t=>(this._popScope(),t)),(t=>{throw this._popScope(),t})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function A(){const t=p(g());return t.stack=t.stack||new O((0,d.B)("defaultCurrentScope",(()=>new k)),(0,d.B)("defaultIsolationScope",(()=>new k)))}function R(t){return A().withScope(t)}function D(t,e){const n=A();return n.withScope((()=>(n.getStackTop().scope=t,e(t))))}function M(t){return A().withScope((()=>t(A().getIsolationScope())))}function P(t){const e=p(t);return e.acs?e.acs:{withIsolationScope:M,withScope:R,withSetScope:D,withSetIsolationScope:(t,e)=>M(e),getCurrentScope:()=>A().getScope(),getIsolationScope:()=>A().getIsolationScope()}}function L(){return P(g()).getCurrentScope()}function N(){return P(g()).getIsolationScope()}function F(){return L().getClient()}let j;const z=new WeakMap,G=(0,a._C)((()=>({name:"FunctionToString",setupOnce(){j=Function.prototype.toString;try{Function.prototype.toString=function(){const t=(0,h.sp)(this),e=z.has(F())&&void 0!==t?t:this;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return j.apply(e,r)}}catch(t){}},setup(t){z.set(t,!0)}})));var q=n(74622);function H(t,e){!0===e.debug&&(s.T?r.vF.enable():(0,r.pq)((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})));L().update(e.initialScope);const n=new t(e);return function(t){L().setClient(t)}(n),n.init(),n}const W="production";var B,Y=n(27940);function U(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;try{return $("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function K(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:102400;const r=U(t,e);return function(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}(r)>n?K(t,e-1,n):r}function $(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){const t="function"===typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t<e.length;t++)if(e[t]===n)return!0;return e.push(n),!1},function(n){if(t)e.delete(n);else for(let t=0;t<e.length;t++)if(e[t]===n){e.splice(t,1);break}}]}();const[o,s]=i;if(null==e||["number","boolean","string"].includes(typeof e)&&!Number.isNaN(e))return e;const a=function(t,e){try{if("domain"===t&&e&&"object"===typeof e&&e._events)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if("undefined"!==typeof global&&e===global)return"[Global]";if("undefined"!==typeof window&&e===window)return"[Window]";if("undefined"!==typeof document&&e===document)return"[Document]";if((0,m.L2)(e))return"[VueViewModel]";if((0,m.mE)(e))return"[SyntheticEvent]";if("number"===typeof e&&e!==e)return"[NaN]";if("function"===typeof e)return`[Function: ${(0,Y.qQ)(e)}]`;if("symbol"===typeof e)return`[${String(e)}]`;if("bigint"===typeof e)return`[BigInt: ${String(e)}]`;const n=function(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}(t,e);if(!a.startsWith("[object "))return a;if(e.__sentry_skip_normalization__)return e;const l="number"===typeof e.__sentry_override_normalization_depth__?e.__sentry_override_normalization_depth__:n;if(0===l)return a.replace("object ","");if(o(e))return"[Circular ~]";const c=e;if(c&&"function"===typeof c.toJSON)try{return $("",c.toJSON(),l-1,r,i)}catch(g){}const u=Array.isArray(e)?[]:{};let d=0;const f=(0,h.W4)(e);for(const h in f){if(!Object.prototype.hasOwnProperty.call(f,h))continue;if(d>=r){u[h]="[MaxProperties ~]";break}const t=f[h];u[h]=$(h,t,l-1,r,i),d++}return s(e),u}function V(t){return new Z((e=>{e(t)}))}function X(t){return new Z(((e,n)=>{n(t)}))}!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(B||(B={}));class Z{constructor(t){Z.prototype.__init.call(this),Z.prototype.__init2.call(this),Z.prototype.__init3.call(this),Z.prototype.__init4.call(this),this._state=B.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(e){this._reject(e)}}then(t,e){return new Z(((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(i){r(i)}else n(e)},t=>{if(e)try{n(e(t))}catch(i){r(i)}else r(t)}]),this._executeHandlers()}))}catch(t){return this.then((t=>t),t)}finally(t){return new Z(((e,n)=>{let r,i;return this.then((e=>{i=!1,r=e,t&&t()}),(e=>{i=!0,r=e,t&&t()})).then((()=>{i?n(r):e(r)}))}))}__init(){this._resolve=t=>{this._setResult(B.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(B.REJECTED,t)}}__init3(){this._setResult=(t,e)=>{this._state===B.PENDING&&((0,m.Qg)(e)?e.then(this._resolve,this._reject):(this._state=t,this._value=e,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===B.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach((t=>{t[0]||(this._state===B.RESOLVED&&t[1](this._value),this._state===B.REJECTED&&t[2](this._value),t[0]=!0)}))}}}function J(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return new Z(((o,a)=>{const l=t[i];if(null===e||"function"!==typeof l)o(e);else{const c=l({...e},n);s.T&&l.id&&null===c&&r.vF.log(`Event processor "${l.id}" dropped event`),(0,m.Qg)(c)?c.then((e=>J(t,e,n,i+1).then(o))).then(null,a):J(t,c,n,i+1).then(o).then(null,a)}}))}const Q="sentry-",tt=/^sentry-/;function et(t){const e=function(t){if(!t||!(0,m.Kg)(t)&&!Array.isArray(t))return;if(Array.isArray(t))return t.reduce(((t,e)=>{const n=nt(e);return Object.entries(n).forEach((e=>{let[n,r]=e;t[n]=r})),t}),{});return nt(t)}(t);if(!e)return;const n=Object.entries(e).reduce(((t,e)=>{let[n,r]=e;if(n.match(tt)){t[n.slice(Q.length)]=r}return t}),{});return Object.keys(n).length>0?n:void 0}function nt(t){return t.split(",").map((t=>t.split("=").map((t=>decodeURIComponent(t.trim()))))).reduce(((t,e)=>{let[n,r]=e;return n&&r&&(t[n]=r),t}),{})}const rt="sentry.source",it="sentry.sample_rate",ot="sentry.op",st="sentry.origin",at="_sentryMetrics";function lt(t){const e=t[at];if(!e)return;const n={};for(const[,[r,i]]of e){(n[r]||(n[r]=[])).push((0,h.Ce)(i))}return n}const ct=0,ut=1;const ht=1;function dt(t){const{spanId:e,traceId:n}=t.spanContext(),{parent_span_id:r}=pt(t);return(0,h.Ce)({parent_span_id:r,span_id:e,trace_id:n})}function ft(t){return"number"===typeof t?gt(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?gt(t.getTime()):x()}function gt(t){return t>9999999999?t/1e3:t}function pt(t){if(function(t){return"function"===typeof t.getSpanJSON}(t))return t.getSpanJSON();try{const{spanId:e,traceId:n}=t.spanContext();if(function(t){const e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}(t)){const{attributes:r,startTime:i,name:o,endTime:s,parentSpanId:a,status:l}=t;return(0,h.Ce)({span_id:e,trace_id:n,data:r,description:o,parent_span_id:a,start_timestamp:ft(i),timestamp:ft(s)||void 0,status:yt(l),op:r[ot],origin:r[st],_metrics_summary:lt(t)})}return{span_id:e,trace_id:n}}catch(e){return{}}}function mt(t){const{traceFlags:e}=t.spanContext();return e===ht}function yt(t){if(t&&t.code!==ct)return t.code===ut?"ok":t.message||"unknown_error"}const _t="_sentryRootSpan";function vt(t){return t[_t]||t}const xt="_frozenDsc";function wt(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},i=(0,h.Ce)({environment:n.environment||W,release:n.release,public_key:r,trace_id:t});return e.emit("createDsc",i),i}function bt(t){const e=F();if(!e)return{};const n=wt(pt(t).trace_id||"",e),r=vt(t),i=r[xt];if(i)return i;const o=r.spanContext().traceState,s=o&&o.get("sentry.dsc"),a=s&&et(s);if(a)return a;const l=pt(r),c=l.data||{},u=c[it];null!=u&&(n.sample_rate=`${u}`);const h=c[rt],d=l.description;return"url"!==h&&d&&(n.transaction=d),n.sampled=String(mt(r)),e.emit("createDsc",n,r),n}function St(t,e){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:s}=e;!function(t,e){const{extra:n,tags:r,user:i,contexts:o,level:s,transactionName:a}=e,l=(0,h.Ce)(n);l&&Object.keys(l).length&&(t.extra={...l,...t.extra});const c=(0,h.Ce)(r);c&&Object.keys(c).length&&(t.tags={...c,...t.tags});const u=(0,h.Ce)(i);u&&Object.keys(u).length&&(t.user={...u,...t.user});const d=(0,h.Ce)(o);d&&Object.keys(d).length&&(t.contexts={...d,...t.contexts});s&&(t.level=s);a&&"transaction"!==t.type&&(t.transaction=a)}(t,e),r&&function(t,e){t.contexts={trace:dt(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:bt(e),...t.sdkProcessingMetadata};const n=vt(e),r=pt(n).description;r&&!t.transaction&&"transaction"===t.type&&(t.transaction=r)}(t,r),function(t,e){t.fingerprint=t.fingerprint?(0,i.k9)(t.fingerprint):[],e&&(t.fingerprint=t.fingerprint.concat(e));t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}(t,n),function(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}(t,o),function(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}(t,s)}function Et(t,e){const{extra:n,tags:r,user:i,contexts:o,level:s,sdkProcessingMetadata:a,breadcrumbs:l,fingerprint:c,eventProcessors:u,attachments:h,propagationContext:d,transactionName:f,span:g}=e;Tt(t,"extra",n),Tt(t,"tags",r),Tt(t,"user",i),Tt(t,"contexts",o),Tt(t,"sdkProcessingMetadata",a),s&&(t.level=s),f&&(t.transactionName=f),g&&(t.span=g),l.length&&(t.breadcrumbs=[...t.breadcrumbs,...l]),c.length&&(t.fingerprint=[...t.fingerprint,...c]),u.length&&(t.eventProcessors=[...t.eventProcessors,...u]),h.length&&(t.attachments=[...t.attachments,...h]),t.propagationContext={...t.propagationContext,...d}}function Tt(t,e,n){if(n&&Object.keys(n).length){t[e]={...t[e]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[e][r]=n[r])}}function Ct(t,e,n,r,s,a){const{normalizeDepth:l=3,normalizeMaxBreadth:c=1e3}=t,u={...e,event_id:e.event_id||n.event_id||(0,i.eJ)(),timestamp:e.timestamp||v()},h=n.integrations||t.integrations.map((t=>t.name));!function(t,e){const{environment:n,release:r,dist:i,maxValueLength:s=250}=e;"environment"in t||(t.environment="environment"in e?n:W);void 0===t.release&&void 0!==r&&(t.release=r);void 0===t.dist&&void 0!==i&&(t.dist=i);t.message&&(t.message=(0,o.xv)(t.message,s));const a=t.exception&&t.exception.values&&t.exception.values[0];a&&a.value&&(a.value=(0,o.xv)(a.value,s));const l=t.request;l&&l.url&&(l.url=(0,o.xv)(l.url,s))}(u,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(u,h),s&&s.emit("applyFrameMetadata",e),void 0===e.type&&function(t,e){const n=d.O._sentryDebugIds;if(!n)return;let r;const i=It.get(e);i?r=i:(r=new Map,It.set(e,r));const o=Object.entries(n).reduce(((t,n)=>{let i,[o,s]=n;const a=r.get(o);a?i=a:(i=e(o),r.set(o,i));for(let e=i.length-1;e>=0;e--){const n=i[e];if(n.filename){t[n.filename]=s;break}}return t}),{});try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.filename&&(t.debug_id=o[t.filename])}))}))}catch(s){}}(u,t.stackParser);const f=function(t,e){if(!e)return t;const n=t?t.clone():new k;return n.update(e),n}(r,n.captureContext);n.mechanism&&(0,i.M6)(u,n.mechanism);const g=s?s.getEventProcessors():[],p=(0,d.B)("globalScope",(()=>new k)).getScopeData();if(a){Et(p,a.getScopeData())}if(f){Et(p,f.getScopeData())}const m=[...n.attachments||[],...p.attachments];m.length&&(n.attachments=m),St(u,p);return J([...g,...p.eventProcessors],u,n).then((t=>(t&&function(t){const e={};try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)}))}))}catch(r){}if(0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.entries(e).forEach((t=>{let[e,r]=t;n.push({type:"sourcemap",code_file:e,debug_id:r})}))}(t),"number"===typeof l&&l>0?function(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:U(t.data,e,n)}})))},...t.user&&{user:U(t.user,e,n)},...t.contexts&&{contexts:U(t.contexts,e,n)},...t.extra&&{extra:U(t.extra,e,n)}};t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=U(t.contexts.trace.data,e,n)));t.spans&&(r.spans=t.spans.map((t=>({...t,...t.data&&{data:U(t.data,e,n)}}))));return r}(t,l,c):t)))}const It=new WeakMap;function kt(t){if(t)return function(t){return t instanceof k||"function"===typeof t}(t)||function(t){return Object.keys(t).some((t=>Ot.includes(t)))}(t)?{captureContext:t}:t}const Ot=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function At(t,e){return L().captureEvent(t,e)}function Rt(t){const e=F(),n=N(),r=L(),{release:i,environment:o=W}=e&&e.getOptions()||{},{userAgent:s}=d.O.navigator||{},a=b({release:i,environment:o,user:r.getUser()||n.getUser(),...s&&{userAgent:s},...t}),l=n.getSession();return l&&"ok"===l.status&&S(l,{status:"exited"}),Dt(),n.setSession(a),r.setSession(a),a}function Dt(){const t=N(),e=L(),n=e.getSession()||t.getSession();n&&function(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),S(t,n)}(n),Mt(),t.setSession(),e.setSession()}function Mt(){const t=N(),e=L(),n=F(),r=e.getSession()||t.getSession();r&&n&&n.captureSession(r)}function Pt(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]?Dt():Mt()}var Lt=n(42671);const Nt=d.O;function Ft(){if(!("fetch"in Nt))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function jt(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}const zt={},Gt={};function qt(t,e){zt[t]=zt[t]||[],zt[t].push(e)}function Ht(t,e){Gt[t]||(e(),Gt[t]=!0)}function Wt(t,e){const n=t&&zt[t];if(n)for(const o of n)try{o(e)}catch(i){Lt.T&&r.vF.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${(0,Y.qQ)(o)}\nError:`,i)}}const Bt=d.O;const Yt=d.O;let Ut;function Kt(t){const e="history";qt(e,t),Ht(e,$t)}function $t(){if(!function(){const t=Bt.chrome,e=t&&t.app&&t.app.runtime,n="history"in Bt&&!!Bt.history.pushState&&!!Bt.history.replaceState;return!e&&n}())return;const t=Yt.onpopstate;function e(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];const i=n.length>2?n[2]:void 0;if(i){const t=Ut,e=String(i);Ut=e;Wt("history",{from:t,to:e})}return t.apply(this,n)}}Yt.onpopstate=function(){const e=Yt.location.href,n=Ut;Ut=e;if(Wt("history",{from:n,to:e}),t)try{for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t.apply(this,i)}catch(s){}},(0,h.GS)(Yt.history,"pushState",e),(0,h.GS)(Yt.history,"replaceState",e)}const Vt=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Xt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{host:n,path:r,pass:i,port:o,projectId:s,protocol:a,publicKey:l}=t;return`${a}://${l}${e&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${s}`}function Zt(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function Jt(t){const e="string"===typeof t?function(t){const e=Vt.exec(t);if(!e)return void(0,r.pq)((()=>{console.error(`Invalid Sentry Dsn: ${t}`)}));const[n,i,o="",s="",a="",l=""]=e.slice(1);let c="",u=l;const h=u.split("/");if(h.length>1&&(c=h.slice(0,-1).join("/"),u=h.pop()),u){const t=u.match(/^\d+/);t&&(u=t[0])}return Zt({host:s,pass:o,path:c,projectId:u,port:a,protocol:n,publicKey:i})}(t):Zt(t);if(e&&function(t){if(!Lt.T)return!0;const{port:e,projectId:n,protocol:i}=t;return!["protocol","publicKey","host","projectId"].find((e=>!t[e]&&(r.vF.error(`Invalid Sentry Dsn: ${e} missing`),!0)))&&(n.match(/^\d+$/)?function(t){return"http"===t||"https"===t}(i)?!e||!isNaN(parseInt(e,10))||(r.vF.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):(r.vF.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),!1):(r.vF.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(e))return e}function Qt(t){return[t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]]}function te(t,e){const[n,r]=t;return[n,[...r,e]]}function ee(t,e){const n=t[1];for(const r of n){if(e(r,r[0].type))return!0}return!1}function ne(t){return d.O.__SENTRY__&&d.O.__SENTRY__.encodePolyfill?d.O.__SENTRY__.encodePolyfill(t):(new TextEncoder).encode(t)}function re(t){const[e,n]=t;let r=JSON.stringify(e);function i(t){"string"===typeof r?r="string"===typeof t?r+t:[ne(r),t]:r.push("string"===typeof t?ne(t):t)}for(const s of n){const[t,e]=s;if(i(`\n${JSON.stringify(t)}\n`),"string"===typeof e||e instanceof Uint8Array)i(e);else{let t;try{t=JSON.stringify(e)}catch(o){t=JSON.stringify(U(e))}i(t)}}return"string"===typeof r?r:function(t){const e=t.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(e);let r=0;for(const i of t)n.set(i,r),r+=i.length;return n}(r)}function ie(t){const e="string"===typeof t.data?ne(t.data):t.data;return[(0,h.Ce)({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}const oe={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function se(t){return oe[t]}function ae(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}class le extends Error{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"warn";super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=e}}const ce="7";function ue(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function he(t,e,n){return e||`${function(t){return`${ue(t)}${t.projectId}/envelope/`}(t)}?${function(t,e){return(0,h.u4)({sentry_key:t.publicKey,sentry_version:ce,...e&&{sentry_client:`${e.name}/${e.version}`}})}(t,n)}`}function de(t,e,n,r){const i=ae(n),o=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]])}(t,n&&n.sdk);const s=function(t,e,n,r){const i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:Xt(r)},...i&&{trace:(0,h.Ce)({...i})}}}(t,i,r,e);delete t.sdkProcessingMetadata;return Qt(s,[[{type:o},t]])}const fe="Not capturing exception because it's already been captured.";class ge{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=Jt(t.dsn):s.T&&r.vF.warn("No DSN provided, client will not send events."),this._dsn){const e=he(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}}captureException(t,e,n){const o=(0,i.eJ)();if((0,i.GR)(t))return s.T&&r.vF.log(fe),o;const a={event_id:o,...e};return this._process(this.eventFromException(t,a).then((t=>this._captureEvent(t,a,n)))),a.event_id}captureMessage(t,e,n,r){const o={event_id:(0,i.eJ)(),...n},s=(0,m.NF)(t)?t:String(t),a=(0,m.sO)(t)?this.eventFromMessage(s,e,o):this.eventFromException(t,o);return this._process(a.then((t=>this._captureEvent(t,o,r)))),o.event_id}captureEvent(t,e,n){const o=(0,i.eJ)();if(e&&e.originalException&&(0,i.GR)(e.originalException))return s.T&&r.vF.log(fe),o;const a={event_id:o,...e},l=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,a,l||n)),a.event_id}captureSession(t){"string"!==typeof t.release?s.T&&r.vF.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),S(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const e=this._transport;return e?(this.emit("flush"),this._isClientDoneProcessing(t).then((n=>e.flush(t).then((t=>n&&t))))):V(!0)}close(t){return this.flush(t).then((t=>(this.getOptions().enabled=!1,this.emit("close"),t)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some((t=>{let{name:e}=t;return e.startsWith("Spotlight")})))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const e=this._integrations[t.name];(0,a.qm)(this,t,this._integrations),e||(0,a.lc)(this,[t])}sendEvent(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.emit("beforeSendEvent",t,e);let n=de(t,this._dsn,this._options._metadata,this._options.tunnel);for(const i of e.attachments||[])n=te(n,ie(i));const r=this.sendEnvelope(n);r&&r.then((e=>this.emit("afterSendEvent",t,e)),null)}sendSession(t){const e=function(t,e,n,r){const i=ae(n);return Qt({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&e&&{dsn:Xt(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(e)}recordDroppedEvent(t,e,n){if(this._options.sendClientReports){const i="number"===typeof n?n:1,o=`${t}:${e}`;s.T&&r.vF.log(`Recording outcome: "${o}"${i>1?` (${i} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+i}}on(t,e){const n=this._hooks[t]=this._hooks[t]||[];return n.push(e),()=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)}}emit(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];const i=this._hooks[t];i&&i.forEach((t=>t(...n)))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,(t=>(s.T&&r.vF.error("Error while sending event:",t),t))):(s.T&&r.vF.error("Transport disabled"),V({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=(0,a.P$)(this,t),(0,a.lc)(this,t)}_updateSessionFromEvent(t,e){let n=!1,r=!1;const i=e.exception&&e.exception.values;if(i){r=!0;for(const t of i){const e=t.mechanism;if(e&&!1===e.handled){n=!0;break}}}const o="ok"===t.status;(o&&0===t.errors||o&&n)&&(S(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new Z((e=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),e(!0)):(n+=1,t&&n>=t&&(clearInterval(r),e(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:N();const i=this.getOptions(),o=Object.keys(this._integrations);return!e.integrations&&o.length>0&&(e.integrations=o),this.emit("preprocessEvent",t,e),t.type||r.setLastEventId(t.event_id||e.event_id),Ct(i,t,e,n,this,r).then((t=>{if(null===t)return t;const e={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(t.contexts&&t.contexts.trace)&&e){const{traceId:n,spanId:r,parentSpanId:i,dsc:o}=e;t.contexts={trace:(0,h.Ce)({trace_id:n,span_id:r,parent_span_id:i}),...t.contexts};const s=o||wt(n,this);t.sdkProcessingMetadata={dynamicSamplingContext:s,...t.sdkProcessingMetadata}}return t}))}_captureEvent(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return this._processEvent(t,e,n).then((t=>t.event_id),(t=>{if(s.T){const e=t;"log"===e.logLevel?r.vF.log(e.message):r.vF.warn(e)}}))}_processEvent(t,e,n){const i=this.getOptions(),{sampleRate:o}=i,a=me(t),l=pe(t),c=t.type||"error",u=`before send for type \`${c}\``,h="undefined"===typeof o?void 0:function(t){if("boolean"===typeof t)return Number(t);const e="string"===typeof t?parseFloat(t):t;if(!("number"!==typeof e||isNaN(e)||e<0||e>1))return e;s.T&&r.vF.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`)}(o);if(l&&"number"===typeof h&&Math.random()>h)return this.recordDroppedEvent("sample_rate","error",t),X(new le(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const d="replay_event"===c?"replay":c,f=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,e,n,f).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",d,t),new le("An event processor returned `null`, will not send event.","log");if(e.data&&!0===e.data.__sentry__)return n;const r=function(t,e,n,r){const{beforeSend:i,beforeSendTransaction:o,beforeSendSpan:s}=e;if(pe(n)&&i)return i(n,r);if(me(n)){if(n.spans&&s){const e=[];for(const r of n.spans){const n=s(r);n?e.push(n):t.recordDroppedEvent("before_send","span")}n.spans=e}if(o){if(n.spans){const t=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:t}}return o(n,r)}}return n}(this,i,n,e);return function(t,e){const n=`${e} must return \`null\` or a valid event.`;if((0,m.Qg)(t))return t.then((t=>{if(!(0,m.Qd)(t)&&null!==t)throw new le(n);return t}),(t=>{throw new le(`${e} rejected with ${t}`)}));if(!(0,m.Qd)(t)&&null!==t)throw new le(n);return t}(r,u)})).then((r=>{if(null===r){if(this.recordDroppedEvent("before_send",d,t),a){const e=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",e)}throw new le(`${u} returned \`null\`, will not send event.`,"log")}const i=n&&n.getSession();if(!a&&i&&this._updateSessionFromEvent(i,r),a){const t=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);t>0&&this.recordDroppedEvent("before_send","span",t)}const o=r.transaction_info;if(a&&o&&r.transaction!==t.transaction){const t="custom";r.transaction_info={...o,source:t}}return this.sendEvent(r,e),r})).then(null,(t=>{if(t instanceof le)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new le(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)}))}_process(t){this._numProcessing++,t.then((t=>(this._numProcessing--,t)),(t=>(this._numProcessing--,t)))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map((t=>{let[e,n]=t;const[r,i]=e.split(":");return{reason:r,category:i,quantity:n}}))}_flushOutcomes(){s.T&&r.vF.log("Flushing outcomes...");const t=this._clearOutcomes();if(0===t.length)return void(s.T&&r.vF.log("No outcomes to send"));if(!this._dsn)return void(s.T&&r.vF.log("No dsn provided, will not send outcomes"));s.T&&r.vF.log("Sending outcomes:",t);const e=(n=t,Qt((i=this._options.tunnel&&Xt(this._dsn))?{dsn:i}:{},[[{type:"client_report"},{timestamp:o||v(),discarded_events:n}]]));var n,i,o;this.sendEnvelope(e)}}function pe(t){return void 0===t.type}function me(t){return"transaction"===t.type}const ye="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function _e(t,e){const n=we(t,e),r={type:e&&e.name,value:Se(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function ve(t,e,n,r){const i=F(),o=i&&i.getOptions().normalizeDepth,s=function(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];if(n instanceof Error)return n}return}(e),a={__serialized__:K(e,o)};if(s)return{exception:{values:[_e(t,s)]},extra:a};const l={exception:{values:[{type:(0,m.xH)(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:Ce(e,{isUnhandledRejection:r})}]},extra:a};if(n){const e=we(t,n);e.length&&(l.exception.values[0].stacktrace={frames:e})}return l}function xe(t,e){return{exception:{values:[_e(t,e)]}}}function we(t,e){const n=e.stacktrace||e.stack||"",r=function(t){if(t&&be.test(t.message))return 1;return 0}(e),i=function(t){if("number"===typeof t.framesToPop)return t.framesToPop;return 0}(e);try{return t(n,r,i)}catch(o){}return[]}const be=/Minified React error #\d+;/i;function Se(t){const e=t&&t.message;return e?e.error&&"string"===typeof e.error.message?e.error.message:e:"No error message"}function Ee(t,e,n,r,o){let s;if((0,m.T2)(e)&&e.error){return xe(t,e.error)}if((0,m.BD)(e)||(0,m.W6)(e)){const o=e;if("stack"in e)s=xe(t,e);else{const e=o.name||((0,m.BD)(o)?"DOMError":"DOMException"),a=o.message?`${e}: ${o.message}`:e;s=Te(t,a,n,r),(0,i.gO)(s,a)}return"code"in o&&(s.tags={...s.tags,"DOMException.code":`${o.code}`}),s}if((0,m.bJ)(e))return xe(t,e);if((0,m.Qd)(e)||(0,m.xH)(e)){return s=ve(t,e,n,o),(0,i.M6)(s,{synthetic:!0}),s}return s=Te(t,e,n,r),(0,i.gO)(s,`${e}`,void 0),(0,i.M6)(s,{synthetic:!0}),s}function Te(t,e,n,r){const i={};if(r&&n){const r=we(t,n);r.length&&(i.exception={values:[{value:e,stacktrace:{frames:r}}]})}if((0,m.NF)(e)){const{__sentry_template_string__:t,__sentry_template_values__:n}=e;return i.logentry={message:t,params:n},i}return i.message=e,i}function Ce(t,e){let{isUnhandledRejection:n}=e;const r=(0,h.HF)(t),i=n?"promise rejection":"exception";if((0,m.T2)(t))return`Event \`ErrorEvent\` captured as ${i} with message \`${t.message}\``;if((0,m.xH)(t)){return`Event \`${function(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch(e){}}(t)}\` (type=${t.type}) captured as ${i}`}return`Object captured as ${i} with keys: ${r}`}const Ie=d.O;let ke=0;function Oe(){return ke>0}function Ae(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if("function"!==typeof t)return t;try{const e=t.__sentry_wrapped__;if(e)return e;if((0,h.sp)(t))return t}catch(o){return t}const r=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"===typeof n&&n.apply(this,arguments);const i=r.map((t=>Ae(t,e)));return t.apply(this,i)}catch(o){throw ke++,setTimeout((()=>{ke--})),function(){const t=P(g());for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if(2===n.length){const[e,r]=n;return e?t.withSetScope(e,r):t.withScope(r)}t.withScope(n[0])}((t=>{var n,s;t.addEventProcessor((t=>(e.mechanism&&((0,i.gO)(t,void 0,void 0),(0,i.M6)(t,e.mechanism)),t.extra={...t.extra,arguments:r},t))),n=o,L().captureException(n,kt(s))})),o}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e])}catch(s){}(0,h.pO)(r,t),(0,h.my)(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>t.name})}catch(s){}return r}class Re extends ge{constructor(t){const e={parentSpanIsAlwaysRootSpan:!0,...t};!function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[e],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"npm";const i=t._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${e}`,packages:n.map((t=>({name:`${r}:@sentry/${t}`,version:f.M}))),version:f.M}),t._metadata=i}(e,"browser",["browser"],Ie.SENTRY_SDK_SOURCE||"npm"),super(e),e.sendClientReports&&Ie.document&&Ie.document.addEventListener("visibilitychange",(()=>{"hidden"===Ie.document.visibilityState&&this._flushOutcomes()}))}eventFromException(t,e){return function(t,e,n,r){const o=Ee(t,e,n&&n.syntheticException||void 0,r);return(0,i.M6)(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),V(o)}(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2?arguments[2]:void 0;return function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"info",r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;const o=Te(t,e,r&&r.syntheticException||void 0,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),V(o)}(this._options.stackParser,t,e,n,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled())return void(ye&&r.vF.warn("SDK not enabled, will not capture user feedback."));const e=function(t,e){let{metadata:n,tunnel:r,dsn:i}=e;const o={event_id:t.event_id,sent_at:(new Date).toISOString(),...n&&n.sdk&&{sdk:{name:n.sdk.name,version:n.sdk.version}},...!!r&&!!i&&{dsn:Xt(i)}},s=function(t){return[{type:"user_report"},t]}(t);return Qt(o,[s])}(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(e)}_prepareEvent(t,e,n){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n)}}const De=1e3;let Me,Pe,Le;function Ne(){if(!Yt.document)return;const t=Wt.bind(null,"dom"),e=Fe(t,!0);Yt.document.addEventListener("click",e,!1),Yt.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((e=>{const n=Yt[e]&&Yt[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,h.GS)(n,"addEventListener",(function(e){return function(n,r,i){if("click"===n||"keypress"==n)try{const r=this,o=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},s=o[n]=o[n]||{refCount:0};if(!s.handler){const r=Fe(t);s.handler=r,e.call(this,n,r,i)}s.refCount++}catch(o){}return e.call(this,n,r,i)}})),(0,h.GS)(n,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this,i=n.__sentry_instrumentation_handlers__||{},o=i[e];o&&(o.refCount--,o.refCount<=0&&(t.call(this,e,o.handler,r),o.handler=void 0,delete i[e]),0===Object.keys(i).length&&delete n.__sentry_instrumentation_handlers__)}catch(i){}return t.call(this,e,n,r)}})))}))}function Fe(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n=>{if(!n||n._sentryCaptured)return;const r=function(t){try{return t.target}catch(e){return null}}(n);if(function(t,e){return"keypress"===t&&(!e||!e.tagName||"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName&&!e.isContentEditable)}(n.type,r))return;(0,h.my)(n,"_sentryCaptured",!0),r&&!r._sentryId&&(0,h.my)(r,"_sentryId",(0,i.eJ)());const o="keypress"===n.type?"input":n.type;if(!function(t){if(t.type!==Pe)return!1;try{if(!t.target||t.target._sentryId!==Le)return!1}catch(e){}return!0}(n)){t({event:n,name:o,global:e}),Pe=n.type,Le=r?r._sentryId:void 0}clearTimeout(Me),Me=Yt.setTimeout((()=>{Le=void 0,Pe=void 0}),De)}}const je="__sentry_xhr_v3__";function ze(){if(!Yt.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(t,e,n){const r=1e3*x(),i=(0,m.Kg)(n[0])?n[0].toUpperCase():void 0,o=function(t){if((0,m.Kg)(t))return t;try{return t.toString()}catch(e){}return}(n[1]);if(!i||!o)return t.apply(e,n);e[je]={method:i,url:o,request_headers:{}},"POST"===i&&o.match(/sentry_key/)&&(e.__sentry_own_request__=!0);const s=()=>{const t=e[je];if(t&&4===e.readyState){try{t.status_code=e.status}catch(n){}Wt("xhr",{endTimestamp:1e3*x(),startTimestamp:r,xhr:e})}};return"onreadystatechange"in e&&"function"===typeof e.onreadystatechange?e.onreadystatechange=new Proxy(e.onreadystatechange,{apply:(t,e,n)=>(s(),t.apply(e,n))}):e.addEventListener("readystatechange",s),e.setRequestHeader=new Proxy(e.setRequestHeader,{apply(t,e,n){const[r,i]=n,o=e[je];return o&&(0,m.Kg)(r)&&(0,m.Kg)(i)&&(o.request_headers[r.toLowerCase()]=i),t.apply(e,n)}}),t.apply(e,n)}}),t.send=new Proxy(t.send,{apply(t,e,n){const r=e[je];if(!r)return t.apply(e,n);void 0!==n[0]&&(r.body=n[0]);return Wt("xhr",{startTimestamp:1e3*x(),xhr:e}),t.apply(e,n)}})}const Ge=100;function qe(t,e){const n=F(),i=N();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=Ge}=n.getOptions();if(s<=0)return;const a={timestamp:v(),...t},l=o?(0,r.pq)((()=>o(a,e))):a;null!==l&&(n.emit&&n.emit("beforeAddBreadcrumb",l,e),i.addBreadcrumb(l,s))}function He(){"console"in d.O&&r.Ow.forEach((function(t){t in d.O.console&&(0,h.GS)(d.O.console,t,(function(e){return r.Z9[t]=e,function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];Wt("console",{args:n,level:t});const o=r.Z9[t];o&&o.apply(d.O.console,n)}}))}))}function We(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&!function(){if("string"===typeof EdgeRuntime)return!0;if(!Ft())return!1;if(jt(Nt.fetch))return!0;let t=!1;const e=Nt.document;if(e&&"function"===typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=jt(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){Lt.T&&r.vF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return t}()||(0,h.GS)(d.O,"fetch",(function(e){return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];const{method:o,url:s}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[e,n]=t;return{url:Ye(e),method:Be(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:Ye(e),method:Be(e,"method")?String(e.method).toUpperCase():"GET"}}(r),a={args:r,fetchData:{method:o,url:s},startTimestamp:1e3*x()};t||Wt("fetch",{...a});const l=(new Error).stack;return e.apply(d.O,r).then((async e=>(t?t(e):Wt("fetch",{...a,endTimestamp:1e3*x(),response:e}),e)),(t=>{throw Wt("fetch",{...a,endTimestamp:1e3*x(),error:t}),(0,m.bJ)(t)&&void 0===t.stack&&(t.stack=l,(0,h.my)(t,"framesToPop",1)),t}))}}))}function Be(t,e){return!!t&&"object"===typeof t&&!!t[e]}function Ye(t){return"string"===typeof t?t:t?Be(t,"url")?t.url:t.toString?t.toString():"":""}var Ue=n(83889);const Ke=["fatal","error","warning","log","info","debug"];function $e(t){return"warn"===t?"warning":Ke.includes(t)?t:"log"}function Ve(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}const Xe=1024,Ze=(0,a._C)((function(){const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}};return{name:"Breadcrumbs",setup(e){var n;t.console&&function(t){const e="console";qt(e,t),Ht(e,He)}(function(t){return function(e){if(F()!==t)return;const n={category:"console",data:{arguments:e.args,logger:"console"},level:$e(e.level),message:(0,o.gt)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${(0,o.gt)(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}qe(n,{input:e.args,level:e.level})}}(e)),t.dom&&(n=function(t,e){return function(n){if(F()!==t)return;let i,o,s="object"===typeof e?e.serializeAttribute:void 0,a="object"===typeof e&&"number"===typeof e.maxStringLength?e.maxStringLength:void 0;a&&a>Xe&&(ye&&r.vF.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${a} was configured. Sentry will use 1024 instead.`),a=Xe),"string"===typeof s&&(s=[s]);try{const t=n.event,e=function(t){return!!t&&!!t.target}(t)?t.target:t;i=(0,Ue.Hd)(e,{keyAttrs:s,maxStringLength:a}),o=(0,Ue.xE)(e)}catch(c){i="<unknown>"}if(0===i.length)return;const l={category:`ui.${n.name}`,message:i};o&&(l.data={"ui.component_name":o}),qe(l,{event:n.event,name:n.name,global:n.global})}}(e,t.dom),qt("dom",n),Ht("dom",Ne)),t.xhr&&function(t){qt("xhr",t),Ht("xhr",ze)}(function(t){return function(e){if(F()!==t)return;const{startTimestamp:n,endTimestamp:r}=e,i=e.xhr[je];if(!n||!r||!i)return;const{method:o,url:s,status_code:a,body:l}=i;qe({category:"xhr",data:{method:o,url:s,status_code:a},type:"http"},{xhr:e.xhr,input:l,startTimestamp:n,endTimestamp:r})}}(e)),t.fetch&&function(t,e){const n="fetch";qt(n,t),Ht(n,(()=>We(void 0,e)))}(function(t){return function(e){if(F()!==t)return;const{startTimestamp:n,endTimestamp:r}=e;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){qe({category:"fetch",data:e.fetchData,level:"error",type:"http"},{data:e.error,input:e.args,startTimestamp:n,endTimestamp:r})}else{const t=e.response;qe({category:"fetch",data:{...e.fetchData,status_code:t&&t.status},type:"http"},{input:e.args,response:t,startTimestamp:n,endTimestamp:r})}}}(e)),t.history&&Kt(function(t){return function(e){if(F()!==t)return;let n=e.from,r=e.to;const i=Ve(Ie.location.href);let o=n?Ve(n):void 0;const s=Ve(r);o&&o.path||(o=i),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),qe({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(t){return function(e){F()===t&&qe({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,i.$X)(e)},{event:e})}}(e))}}}));const Je=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Qe=(0,a._C)((function(){const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,h.GS)(Ie,"setTimeout",tn),t.setInterval&&(0,h.GS)(Ie,"setInterval",tn),t.requestAnimationFrame&&(0,h.GS)(Ie,"requestAnimationFrame",en),t.XMLHttpRequest&&"XMLHttpRequest"in Ie&&(0,h.GS)(XMLHttpRequest.prototype,"send",nn);const e=t.eventTarget;if(e){(Array.isArray(e)?e:Je).forEach(rn)}}}}));function tn(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];const i=n[0];return n[0]=Ae(i,{mechanism:{data:{function:(0,Y.qQ)(t)},handled:!1,type:"instrument"}}),t.apply(this,n)}}function en(t){return function(e){return t.apply(this,[Ae(e,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,Y.qQ)(t)},handled:!1,type:"instrument"}})])}}function nn(t){return function(){const e=this;["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in e&&"function"===typeof e[t]&&(0,h.GS)(e,t,(function(e){const n={mechanism:{data:{function:t,handler:(0,Y.qQ)(e)},handled:!1,type:"instrument"}},r=(0,h.sp)(e);return r&&(n.mechanism.data.handler=(0,Y.qQ)(r)),Ae(e,n)}))}));for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.apply(this,r)}}function rn(t){const e=Ie,n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,h.GS)(n,"addEventListener",(function(e){return function(n,r,i){try{"function"===typeof r.handleEvent&&(r.handleEvent=Ae(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,Y.qQ)(r),target:t},handled:!1,type:"instrument"}}))}catch(o){}return e.apply(this,[n,Ae(r,{mechanism:{data:{function:"addEventListener",handler:(0,Y.qQ)(r),target:t},handled:!1,type:"instrument"}}),i])}})),(0,h.GS)(n,"removeEventListener",(function(t){return function(e,n,r){const i=n;try{const n=i&&i.__sentry_wrapped__;n&&t.call(this,e,n,r)}catch(o){}return t.call(this,e,i,r)}})))}let on=null;function sn(){on=d.O.onerror,d.O.onerror=function(t,e,n,r,i){return Wt("error",{column:r,error:i,line:n,msg:t,url:e}),!(!on||on.__SENTRY_LOADER__)&&on.apply(this,arguments)},d.O.onerror.__SENTRY_INSTRUMENTED__=!0}let an=null;function ln(){an=d.O.onunhandledrejection,d.O.onunhandledrejection=function(t){return Wt("unhandledrejection",t),!(an&&!an.__SENTRY_LOADER__)||an.apply(this,arguments)},d.O.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const cn=(0,a._C)((function(){const t={onerror:!0,onunhandledrejection:!0,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(t){!function(t){const e="error";qt(e,t),Ht(e,sn)}((e=>{const{stackParser:n,attachStacktrace:r}=hn();if(F()!==t||Oe())return;const{msg:i,url:o,line:s,column:a,error:l}=e,c=function(t,e,n,r){const i=t.exception=t.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},l=a.frames=a.frames||[],c=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,h=(0,m.Kg)(e)&&e.length>0?e:(0,Ue.$N)();0===l.length&&l.push({colno:c,filename:h,function:Y.yF,in_app:!0,lineno:u});return t}(Ee(n,l||i,void 0,r,!1),o,s,a);c.level="error",At(c,{originalException:l,mechanism:{handled:!1,type:"onerror"}})}))}(e),un("onerror")),t.onunhandledrejection&&(!function(t){!function(t){const e="unhandledrejection";qt(e,t),Ht(e,ln)}((e=>{const{stackParser:n,attachStacktrace:r}=hn();if(F()!==t||Oe())return;const i=function(t){if((0,m.sO)(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch(e){}return t}(e),o=(0,m.sO)(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:Ee(n,i,void 0,r,!0);o.level="error",At(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(e),un("onunhandledrejection"))}}}));function un(t){ye&&r.vF.log(`Global Handler attached: ${t}`)}function hn(){const t=F();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const dn=(0,a._C)((()=>({name:"HttpContext",preprocessEvent(t){if(!Ie.navigator&&!Ie.location&&!Ie.document)return;const e=t.request&&t.request.url||Ie.location&&Ie.location.href,{referrer:n}=Ie.document||{},{userAgent:r}=Ie.navigator||{},i={...t.request&&t.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...t.request,...e&&{url:e},headers:i};t.request=o}})));function fn(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:250,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0;if(!s.exception||!s.exception.values||!a||!(0,m.tH)(a.originalException,Error))return;const l=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;var c,u;l&&(s.exception.values=(c=gn(t,e,i,a.originalException,r,s.exception.values,l,0),u=n,c.map((t=>(t.value&&(t.value=(0,o.xv)(t.value,u)),t)))))}function gn(t,e,n,r,i,o,s,a){if(o.length>=n+1)return o;let l=[...o];if((0,m.tH)(r[i],Error)){pn(s,a);const o=t(e,r[i]),c=l.length;mn(o,i,c,a),l=gn(t,e,n,r[i],i,[o,...l],o,c)}return Array.isArray(r.errors)&&r.errors.forEach(((r,o)=>{if((0,m.tH)(r,Error)){pn(s,a);const c=t(e,r),u=l.length;mn(c,`errors[${o}]`,u,a),l=gn(t,e,n,r,i,[c,...l],c,u)}})),l}function pn(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,..."AggregateError"===t.type&&{is_exception_group:!0},exception_id:e}}function mn(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}const yn=(0,a._C)((function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=t.limit||5,n=t.key||"cause";return{name:"LinkedErrors",preprocessEvent(t,r,i){const o=i.getOptions();fn(_e,o.stackParser,o.maxValueLength,n,e,t,r)}}}));function _n(t,e,n,r){const i={filename:t,function:"<anonymous>"===e?Y.yF:e,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}const vn=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,xn=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,wn=/\((\S*)(?::(\d+))(?::(\d+))\)/,bn=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Sn=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,En=[[30,t=>{const e=vn.exec(t);if(e){const[,t,n,r]=e;return _n(t,Y.yF,+n,+r)}const n=xn.exec(t);if(n){if(n[2]&&0===n[2].indexOf("eval")){const t=wn.exec(n[2]);t&&(n[2]=t[1],n[3]=t[2],n[4]=t[3])}const[t,e]=Cn(n[1]||Y.yF,n[2]);return _n(e,t,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],[50,t=>{const e=bn.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const t=Sn.exec(e[3]);t&&(e[1]=e[1]||"eval",e[3]=t[1],e[4]=t[2],e[5]="")}let t=e[3],n=e[1]||Y.yF;return[n,t]=Cn(n,t),_n(t,n,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}]],Tn=(0,Y.gd)(...En),Cn=(t,e)=>{const n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:Y.yF,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},In="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,kn={};function On(t){const e=kn[t];if(e)return e;let n=Yt[t];if(jt(n))return kn[t]=n.bind(Yt);const i=Yt.document;if(i&&"function"===typeof i.createElement)try{const e=i.createElement("iframe");e.hidden=!0,i.head.appendChild(e);const r=e.contentWindow;r&&r[t]&&(n=r[t]),i.head.removeChild(e)}catch(o){In&&r.vF.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,o)}return n?kn[t]=n.bind(Yt):n}function An(t){kn[t]=void 0}function Rn(t){const e=[];function n(t){return e.splice(e.indexOf(t),1)[0]||Promise.resolve(void 0)}return{$:e,add:function(r){if(!(void 0===t||e.length<t))return X(new le("Not adding Promise because buffer limit was reached."));const i=r();return-1===e.indexOf(i)&&e.push(i),i.then((()=>n(i))).then(null,(()=>n(i).then(null,(()=>{})))),i},drain:function(t){return new Z(((n,r)=>{let i=e.length;if(!i)return n(!0);const o=setTimeout((()=>{t&&t>0&&n(!1)}),t);e.forEach((t=>{V(t).then((()=>{--i||(clearTimeout(o),n(!0))}),r)}))}))}}}const Dn=6e4;function Mn(t,e){let{statusCode:n,headers:r}=e,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();const o={...t},s=r&&r["x-sentry-rate-limits"],a=r&&r["retry-after"];if(s)for(const l of s.trim().split(",")){const[t,e,,,n]=l.split(":",5),r=parseInt(t,10),s=1e3*(isNaN(r)?60:r);if(e)for(const a of e.split(";"))"metric_bucket"===a&&n&&!n.split(";").includes("custom")||(o[a]=i+s);else o.all=i+s}else a?o.all=i+function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${t}`);return isNaN(r)?Dn:r-e}(a,i):429===n&&(o.all=i+6e4);return o}const Pn=64;function Ln(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Rn(t.bufferSize||Pn),i={};return{send:function(o){const a=[];if(ee(o,((e,n)=>{const r=se(n);if(function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();return function(t,e){return t[e]||t.all||0}(t,e)>n}(i,r)){const i=Nn(e,n);t.recordDroppedEvent("ratelimit_backoff",r,i)}else a.push(e)})),0===a.length)return V({});const l=Qt(o[0],a),c=e=>{ee(l,((n,r)=>{const i=Nn(n,r);t.recordDroppedEvent(e,se(r),i)}))};return n.add((()=>e({body:re(l)}).then((t=>(void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&s.T&&r.vF.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),i=Mn(i,t),t)),(t=>{throw c("network_error"),t})))).then((t=>t),(t=>{if(t instanceof le)return s.T&&r.vF.error("Skipped sending event because buffer is full."),c("queue_overflow"),V({});throw t}))},flush:t=>n.drain(t)}}function Nn(t,e){if("event"===e||"transaction"===e)return Array.isArray(t)?t[1]:void 0}function Fn(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:On("fetch"),n=0,r=0;return Ln(t,(function(i){const o=i.body.length;n+=o,r++;const s={body:i.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};if(!e)return An("fetch"),X("No fetch implementation available");try{return e(t.url,s).then((t=>(n-=o,r--,{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}})))}catch(a){return An("fetch"),n-=o,r--,X(a)}}))}function jn(){const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e={defaultIntegrations:[c(),G(),Qe(),Ze(),cn(),yn(),(0,q.s)(),dn()],release:"string"===typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:Ie.SENTRY_RELEASE&&Ie.SENTRY_RELEASE.id?Ie.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return null==t.defaultIntegrations&&delete t.defaultIntegrations,{...e,...t}}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});if(function(){const t="undefined"!==typeof Ie.window&&Ie;if(!t)return!1;const e=t[t.chrome?"chrome":"browser"],n=e&&e.runtime&&e.runtime.id,r=Ie.location&&Ie.location.href||"",i=!!n&&Ie===Ie.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some((t=>r.startsWith(`${t}//`))),o="undefined"!==typeof t.nw;return!!n&&!i&&!o}())return void(0,r.pq)((()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}));ye&&(Ft()||r.vF.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const e={...t,stackParser:(0,Y.vk)(t.stackParser||Tn),integrations:(0,a.mH)(t),transport:t.transport||Fn},n=H(Re,e);return t.autoSessionTracking&&function(){if("undefined"===typeof Ie.document)return void(ye&&r.vF.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));Rt({ignoreDuration:!0}),Pt(),Kt((t=>{let{from:e,to:n}=t;void 0!==e&&e!==n&&(Rt({ignoreDuration:!0}),Pt())}))}(),n}},48959:(t,e,n)=>{"use strict";n.d(e,{T:()=>r});const r="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},44891:(t,e,n)=>{"use strict";n.d(e,{P$:()=>l,_C:()=>h,lc:()=>c,mH:()=>a,qm:()=>u});var r=n(45957),i=n(20225),o=n(48959);const s=[];function a(t){const e=t.defaultIntegrations||[],n=t.integrations;let i;e.forEach((t=>{t.isDefaultInstance=!0})),i=Array.isArray(n)?[...e,...n]:"function"===typeof n?(0,r.k9)(n(e)):e;const o=function(t){const e={};return t.forEach((t=>{const{name:n}=t,r=e[n];r&&!r.isDefaultInstance&&t.isDefaultInstance||(e[n]=t)})),Object.values(e)}(i),s=o.findIndex((t=>"Debug"===t.name));if(s>-1){const[t]=o.splice(s,1);o.push(t)}return o}function l(t,e){const n={};return e.forEach((e=>{e&&u(t,e,n)})),n}function c(t,e){for(const n of e)n&&n.afterAllSetup&&n.afterAllSetup(t)}function u(t,e,n){if(n[e.name])o.T&&i.vF.log(`Integration skipped because it was already installed: ${e.name}`);else{if(n[e.name]=e,-1===s.indexOf(e.name)&&"function"===typeof e.setupOnce&&(e.setupOnce(),s.push(e.name)),e.setup&&"function"===typeof e.setup&&e.setup(t),"function"===typeof e.preprocessEvent){const n=e.preprocessEvent.bind(e);t.on("preprocessEvent",((e,r)=>n(e,r,t)))}if("function"===typeof e.processEvent){const n=e.processEvent.bind(e),r=Object.assign(((e,r)=>n(e,r,t)),{id:e.name});t.addEventProcessor(r)}o.T&&i.vF.log(`Integration installed: ${e.name}`)}}function h(t){return t}},74622:(t,e,n)=>{"use strict";n.d(e,{s:()=>a});var r=n(20225),i=n(27940),o=n(44891),s=n(48959);const a=(0,o._C)((()=>{let t;return{name:"Dedupe",processEvent(e){if(e.type)return e;try{if(function(t,e){if(!e)return!1;if(function(t,e){const n=t.message,r=e.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!c(t,e))return!1;if(!l(t,e))return!1;return!0}(t,e))return!0;if(function(t,e){const n=u(e),r=u(t);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!c(t,e))return!1;if(!l(t,e))return!1;return!0}(t,e))return!0;return!1}(e,t))return s.T&&r.vF.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(n){}return t=e}}}));function l(t,e){let n=(0,i.RV)(t),r=(0,i.RV)(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++){const t=r[i],e=n[i];if(t.filename!==e.filename||t.lineno!==e.lineno||t.colno!==e.colno||t.function!==e.function)return!1}return!0}function c(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(i){return!1}}function u(t){return t.exception&&t.exception.values&&t.exception.values[0]}},83889:(t,e,n)=>{"use strict";n.d(e,{$N:()=>l,Hd:()=>s,xE:()=>c});var r=n(70833);const i=n(88594).O,o=80;function s(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)return"<unknown>";try{let n=t;const r=5,i=[];let s=0,l=0;const c=" > ",u=c.length;let h;const d=Array.isArray(e)?e:e.keyAttrs,f=!Array.isArray(e)&&e.maxStringLength||o;for(;n&&s++<r&&(h=a(n,d),!("html"===h||s>1&&l+i.length*u+h.length>=f));)i.push(h),l+=h.length,n=n.parentNode;return i.reverse().join(c)}catch(n){return"<unknown>"}}function a(t,e){const n=t,o=[];if(!n||!n.tagName)return"";if(i.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}o.push(n.tagName.toLowerCase());const s=e&&e.length?e.filter((t=>n.getAttribute(t))).map((t=>[t,n.getAttribute(t)])):null;if(s&&s.length)s.forEach((t=>{o.push(`[${t[0]}="${t[1]}"]`)}));else{n.id&&o.push(`#${n.id}`);const t=n.className;if(t&&(0,r.Kg)(t)){const e=t.split(/\s+/);for(const t of e)o.push(`.${t}`)}}const a=["aria-label","type","name","title","alt"];for(const r of a){const t=n.getAttribute(r);t&&o.push(`[${r}="${t}"]`)}return o.join("")}function l(){try{return i.document.location.href}catch(t){return""}}function c(t){if(!i.HTMLElement)return null;let e=t;for(let n=0;n<5;n++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}},42671:(t,e,n)=>{"use strict";n.d(e,{T:()=>r});const r="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},70833:(t,e,n)=>{"use strict";n.d(e,{BD:()=>a,Kg:()=>c,L2:()=>v,NF:()=>u,Qd:()=>d,Qg:()=>m,T2:()=>s,W6:()=>l,bJ:()=>i,gd:()=>p,mE:()=>y,sO:()=>h,tH:()=>_,vq:()=>g,xH:()=>f});const r=Object.prototype.toString;function i(t){switch(r.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return _(t,Error)}}function o(t,e){return r.call(t)===`[object ${e}]`}function s(t){return o(t,"ErrorEvent")}function a(t){return o(t,"DOMError")}function l(t){return o(t,"DOMException")}function c(t){return o(t,"String")}function u(t){return"object"===typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function h(t){return null===t||u(t)||"object"!==typeof t&&"function"!==typeof t}function d(t){return o(t,"Object")}function f(t){return"undefined"!==typeof Event&&_(t,Event)}function g(t){return"undefined"!==typeof Element&&_(t,Element)}function p(t){return o(t,"RegExp")}function m(t){return Boolean(t&&t.then&&"function"===typeof t.then)}function y(t){return d(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function _(t,e){try{return t instanceof e}catch(n){return!1}}function v(t){return!("object"!==typeof t||null===t||!t.__isVue&&!t._isVue)}},20225:(t,e,n)=>{"use strict";n.d(e,{Ow:()=>o,Z9:()=>s,pq:()=>a,vF:()=>l});var r=n(42671),i=n(88594);const o=["debug","info","warn","error","log","assert","trace"],s={};function a(t){if(!("console"in i.O))return t();const e=i.O.console,n={},r=Object.keys(s);r.forEach((t=>{const r=s[t];n[t]=e[t],e[t]=r}));try{return t()}finally{r.forEach((t=>{e[t]=n[t]}))}}const l=(0,i.B)("logger",(function(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return r.T?o.forEach((n=>{e[n]=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];t&&a((()=>{i.O.console[n](`Sentry Logger [${n}]:`,...r)}))}})):o.forEach((t=>{e[t]=()=>{}})),e}))},45957:(t,e,n)=>{"use strict";n.d(e,{$X:()=>a,GR:()=>u,M6:()=>c,eJ:()=>o,gO:()=>l,k9:()=>h});var r=n(80506),i=n(88594);function o(){const t=i.O,e=t.crypto||t.msCrypto;let n=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{const t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(r){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&n())>>t/4).toString(16)))}function s(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function a(t){const{message:e,event_id:n}=t;if(e)return e;const r=s(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function l(t,e,n){const r=t.exception=t.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=e||""),o.type||(o.type=n||"Error")}function c(t,e){const n=s(t);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){const t={...r&&r.data,...e.data};n.mechanism.data=t}}function u(t){if(t&&t.__sentry_captured__)return!0;try{(0,r.my)(t,"__sentry_captured__",!0)}catch(e){}return!1}function h(t){return Array.isArray(t)?t:[t]}},80506:(t,e,n)=>{"use strict";n.d(e,{Ce:()=>y,GS:()=>l,HF:()=>m,W4:()=>f,my:()=>c,pO:()=>u,sp:()=>h,u4:()=>d});var r=n(83889),i=n(42671),o=n(70833),s=n(20225),a=n(90888);function l(t,e,n){if(!(e in t))return;const r=t[e],i=n(r);"function"===typeof i&&u(i,r),t[e]=i}function c(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(r){i.T&&s.vF.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function u(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,c(t,"__sentry_original__",e)}catch(n){}}function h(t){return t.__sentry_original__}function d(t){return Object.keys(t).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`)).join("&")}function f(t){if((0,o.bJ)(t))return{message:t.message,name:t.name,stack:t.stack,...p(t)};if((0,o.xH)(t)){const e={type:t.type,target:g(t.target),currentTarget:g(t.currentTarget),...p(t)};return"undefined"!==typeof CustomEvent&&(0,o.tH)(t,CustomEvent)&&(e.detail=t.detail),e}return t}function g(t){try{return(0,o.vq)(t)?(0,r.Hd)(t):Object.prototype.toString.call(t)}catch(e){return"<unknown>"}}function p(t){if("object"===typeof t&&null!==t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function m(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40;const n=Object.keys(f(t));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=e)return(0,a.xv)(r,e);for(let i=n.length;i>0;i--){const t=n.slice(0,i).join(", ");if(!(t.length>e))return i===n.length?t:(0,a.xv)(t,e)}return""}function y(t){return _(t,new Map)}function _(t,e){if(function(t){if(!(0,o.Qd)(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||"Object"===e}catch(e){return!0}}(t)){const n=e.get(t);if(void 0!==n)return n;const r={};e.set(t,r);for(const i of Object.keys(t))"undefined"!==typeof t[i]&&(r[i]=_(t[i],e));return r}if(Array.isArray(t)){const n=e.get(t);if(void 0!==n)return n;const r=[];return e.set(t,r),t.forEach((t=>{r.push(_(t,e))})),r}return t}},27940:(t,e,n)=>{"use strict";n.d(e,{RV:()=>d,gd:()=>a,qQ:()=>h,vk:()=>l,yF:()=>i});const r=50,i="?",o=/\(error: (.*)\)/,s=/captureMessage|captureException/;function a(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];const a=e.sort(((t,e)=>t[0]-e[0])).map((t=>t[1]));return function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const l=[],u=t.split("\n");for(let i=e;i<u.length;i++){const t=u[i];if(t.length>1024)continue;const e=o.test(t)?t.replace(o,"$1"):t;if(!e.match(/\S*Error: /)){for(const t of a){const n=t(e);if(n){l.push(n);break}}if(l.length>=r+n)break}}return function(t){if(!t.length)return[];const e=Array.from(t);/sentryWrapped/.test(c(e).function||"")&&e.pop();e.reverse(),s.test(c(e).function||"")&&(e.pop(),s.test(c(e).function||"")&&e.pop());return e.slice(0,r).map((t=>({...t,filename:t.filename||c(e).filename,function:t.function||i})))}(l.slice(n))}}function l(t){return Array.isArray(t)?a(...t):t}function c(t){return t[t.length-1]||{}}const u="<anonymous>";function h(t){try{return t&&"function"===typeof t&&t.name||u}catch(e){return u}}function d(t){const e=t.exception;if(e){const t=[];try{return e.values.forEach((e=>{e.stacktrace.frames&&t.push(...e.stacktrace.frames)})),t}catch(n){return}}}},90888:(t,e,n)=>{"use strict";n.d(e,{Xr:()=>s,gt:()=>o,xv:()=>i});var r=n(70833);function i(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"string"!==typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function o(t,e){if(!Array.isArray(t))return"";const n=[];for(let o=0;o<t.length;o++){const e=t[o];try{(0,r.L2)(e)?n.push("[VueViewModel]"):n.push(String(e))}catch(i){n.push("[value cannot be serialized]")}}return n.join(e)}function s(t){let e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).some((n=>function(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!(0,r.Kg)(t)&&((0,r.gd)(e)?e.test(t):!!(0,r.Kg)(e)&&(n?t===e:t.includes(e)))}(t,n,e)))}},16833:(t,e,n)=>{"use strict";n.d(e,{M:()=>r});const r="8.30.0"},88594:(t,e,n)=>{"use strict";n.d(e,{B:()=>o,O:()=>i});var r=n(16833);const i=globalThis;function o(t,e,n){const o=n||i,s=o.__SENTRY__=o.__SENTRY__||{},a=s[r.M]=s[r.M]||{};return a[t]||(a[t]=e())}},73520:(t,e,n)=>{"use strict";n.d(e,{q:()=>i});let r={};function i(){return r}},60651:(t,e,n)=>{"use strict";function r(t){return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}n.d(e,{k:()=>r})},3317:(t,e,n)=>{"use strict";function r(t){return(e,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&t.formattingValues){const e=t.defaultFormattingWidth||t.defaultWidth,i=n?.width?String(n.width):e;r=t.formattingValues[i]||t.formattingValues[e]}else{const e=t.defaultWidth,i=n?.width?String(n.width):t.defaultWidth;r=t.values[i]||t.values[e]}return r[t.argumentCallback?t.argumentCallback(e):e]}}n.d(e,{o:()=>r})},72567:(t,e,n)=>{"use strict";function r(t){return function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=n.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],o=e.match(i);if(!o)return null;const s=o[0],a=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?function(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n;return}(a,(t=>t.test(s))):function(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n;return}(a,(t=>t.test(s)));let c;c=t.valueCallback?t.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;return{value:c,rest:e.slice(s.length)}}}n.d(e,{A:()=>r})},29231:(t,e,n)=>{"use strict";function r(t){return function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=e.match(t.matchPattern);if(!r)return null;const i=r[0],o=e.match(t.parsePattern);if(!o)return null;let s=t.valueCallback?t.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;return{value:s,rest:e.slice(i.length)}}}n.d(e,{K:()=>r})},96363:(t,e,n)=>{"use strict";n.d(e,{c:()=>c});var r=n(20327),i=n(60651);const o={date:(0,i.k)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,i.k)({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:(0,i.k)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var s=n(3934),a=n(45174),l=n(49238);const c={code:"en-US",formatDistance:r.B,formatLong:o,formatRelative:s.o,localize:a.k,match:l.Y,options:{weekStartsOn:0,firstWeekContainsDate:1}}},20327:(t,e,n)=>{"use strict";n.d(e,{B:()=>i});const r={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"}},i=(t,e,n)=>{let i;const o=r[t];return i="string"===typeof o?o:1===e?o.one:o.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i}},3934:(t,e,n)=>{"use strict";n.d(e,{o:()=>i});const r={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},i=(t,e,n,i)=>r[t]},45174:(t,e,n)=>{"use strict";n.d(e,{k:()=>i});var r=n(3317);const i={ordinalNumber:(t,e)=>{const n=Number(t),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:(0,r.o)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,r.o)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:t=>t-1}),month:(0,r.o)({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:(0,r.o)({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:(0,r.o)({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"})}},49238:(t,e,n)=>{"use strict";n.d(e,{Y:()=>i});var r=n(72567);const i={ordinalNumber:(0,n(29231).K)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:t=>parseInt(t,10)}),era:(0,r.A)({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:(0,r.A)({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:t=>t+1}),month:(0,r.A)({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:(0,r.A)({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:(0,r.A)({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"})}},90087:(t,e,n)=>{"use strict";n.d(e,{k:()=>o});var r=n(96447),i=n(73520);function o(t,e){const n=(0,i.q)(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=(0,r.a)(t),a=s.getDay(),l=(a<o?7:0)+a-o;return s.setDate(s.getDate()-l),s.setHours(0,0,0,0),s}},96447:(t,e,n)=>{"use strict";function r(t){const e=Object.prototype.toString.call(t);return t instanceof Date||"object"===typeof t&&"[object Date]"===e?new t.constructor(+t):"number"===typeof t||"[object Number]"===e||"string"===typeof t||"[object String]"===e?new Date(t):new Date(NaN)}n.d(e,{a:()=>r})},10748:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var r=n(38419),i=n(30342),o=n(82526);const s="length";class a extends o.Ay{constructor(t,e,n){super(t),this.element=e,this.index=n}}class l extends r.A{constructor(t,e){if(super(),this.on,this.once,this.un,e=e||{},this.unique_=!!e.unique,this.array_=t||[],this.unique_)for(let n=0,r=this.array_.length;n<r;++n)this.assertUnique_(this.array_[n],n);this.updateLength_()}clear(){for(;this.getLength()>0;)this.pop()}extend(t){for(let e=0,n=t.length;e<n;++e)this.push(t[e]);return this}forEach(t){const e=this.array_;for(let n=0,r=e.length;n<r;++n)t(e[n],n,e)}getArray(){return this.array_}item(t){return this.array_[t]}getLength(){return this.get(s)}insertAt(t,e){if(t<0||t>this.getLength())throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new a(i.A.ADD,e,t))}pop(){return this.removeAt(this.getLength()-1)}push(t){this.unique_&&this.assertUnique_(t);const e=this.getLength();return this.insertAt(e,t),this.getLength()}remove(t){const e=this.array_;for(let n=0,r=e.length;n<r;++n)if(e[n]===t)return this.removeAt(n)}removeAt(t){if(t<0||t>=this.getLength())return;const e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new a(i.A.REMOVE,e,t)),e}setAt(t,e){if(t>=this.getLength())return void this.insertAt(t,e);if(t<0)throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e,t);const n=this.array_[t];this.array_[t]=e,this.dispatchEvent(new a(i.A.REMOVE,n,t)),this.dispatchEvent(new a(i.A.ADD,e,t))}updateLength_(){this.set(s,this.array_.length)}assertUnique_(t,e){for(let n=0,r=this.array_.length;n<r;++n)if(this.array_[n]===t&&n!==e)throw new Error("Duplicate item added to a unique collection")}}const c=l},30342:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r={ADD:"add",REMOVE:"remove"}},19758:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=class{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}},33040:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var r=n(38419),i=n(31990),o=n(87393),s=n(78013);class a extends r.A{constructor(t){if(super(),this.on,this.once,this.un,this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),t)if("function"===typeof t.getSimplifiedGeometry){const e=t;this.setGeometry(e)}else{const e=t;this.setProperties(e)}}clone(){const t=new a(this.hasProperties()?this.getProperties():null);t.setGeometryName(this.getGeometryName());const e=this.getGeometry();e&&t.setGeometry(e.clone());const n=this.getStyle();return n&&t.setStyle(n),t}getGeometry(){return this.get(this.geometryName_)}getId(){return this.id_}getGeometryName(){return this.geometryName_}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}handleGeometryChange_(){this.changed()}handleGeometryChanged_(){this.geometryChangeKey_&&((0,s.JH)(this.geometryChangeKey_),this.geometryChangeKey_=null);const t=this.getGeometry();t&&(this.geometryChangeKey_=(0,s.KT)(t,i.A.CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry(t){this.set(this.geometryName_,t)}setStyle(t){this.style_=t,this.styleFunction_=t?function(t){if("function"===typeof t)return t;let e;if(Array.isArray(t))e=t;else{(0,o.v)("function"===typeof t.getZIndex,"Expected an `ol/style/Style` or an array of `ol/style/Style.js`");e=[t]}return function(){return e}}(t):void 0,this.changed()}setId(t){this.id_=t,this.changed()}setGeometryName(t){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=t,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()}}const l=a},39891:(t,e,n)=>{"use strict";n.d(e,{RA:()=>l,f6:()=>a});var r=n(58981),i=n(31990),o=(n(9994),n(51070)),s=n(78013);n(9931);r.A;function a(t,e,n){const r=t;let a=!0,l=!1,c=!1;const u=[(0,s.Jz)(r,i.A.LOAD,(function(){c=!0,l||e()}))];return r.src&&o.DT?(l=!0,r.decode().then((function(){a&&e()})).catch((function(t){a&&(c?e():n())}))):u.push((0,s.Jz)(r,i.A.ERROR,n)),function(){a=!1,u.forEach(s.JH)}}function l(t,e){return e&&(t.src=e),t.src&&o.DT?new Promise(((e,n)=>t.decode().then((()=>e(t))).catch((r=>t.complete&&t.width?e(t):n(r))))):function(t,e){return new Promise(((n,r)=>{function i(){s(),n(t)}function o(){s(),r(new Error("Image load error"))}function s(){t.removeEventListener("load",i),t.removeEventListener("error",o)}t.addEventListener("load",i),t.addEventListener("error",o),e&&(t.src=e)}))}(t)}},9994:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},25983:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var r=n(42528),i=n(34803),o=n(69710),s=n(39891);class a extends r.A{constructor(t,e,n,r,i,o){super(t,e,o),this.crossOrigin_=r,this.src_=n,this.key=n,this.image_=new Image,null!==r&&(this.image_.crossOrigin=r),this.unlisten_=null,this.tileLoadFunction_=i}getImage(){return this.image_}setImage(t){this.image_=t,this.state=i.A.LOADED,this.unlistenImage_(),this.changed()}handleImageError_(){this.state=i.A.ERROR,this.unlistenImage_(),this.image_=function(){const t=(0,o.Y)(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}(),this.changed()}handleImageLoad_(){const t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=i.A.LOADED:this.state=i.A.EMPTY,this.unlistenImage_(),this.changed()}load(){this.state==i.A.ERROR&&(this.state=i.A.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==i.A.IDLE&&(this.state=i.A.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=(0,s.f6)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}const l=a},32272:(t,e,n)=>{"use strict";n.d(e,{A:()=>se});var r=n(38419),i=n(10748),o=n(30342),s=n(9464),a=n(19758),l=n(9931),c=n(62352),u=n(47458),h=n(49196),d=n(3358),f=n(29201),g=n(97842);class p extends a.A{constructor(t){super(),this.map_=t}dispatchRenderEvent(t,e){(0,c.b0)()}calculateMatrices2D(t){const e=t.viewState,n=t.coordinateToPixelTransform,r=t.pixelToCoordinateTransform;(0,u.Zz)(n,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),(0,u.T9)(r,n)}forEachFeatureAtCoordinate(t,e,n,r,i,o,s,a){let l;const c=e.viewState;function u(t,e,n,r){return i.call(o,e,t?n:null,r)}const d=c.projection,p=(0,g.Li)(t.slice(),d),m=[[0,0]];if(d.canWrapX()&&r){const t=d.getExtent(),e=(0,h.RG)(t);m.push([-e,0],[e,0])}const y=e.layerStatesArray,_=y.length,v=[],x=[];for(let h=0;h<m.length;h++)for(let r=_-1;r>=0;--r){const i=y[r],o=i.layer;if(o.hasRenderer()&&(0,f.l)(i,c)&&s.call(a,o)){const r=o.getRenderer(),s=o.getSource();if(r&&s){const o=s.getWrapX()?p:t,a=u.bind(null,i.managed);x[0]=o[0]+m[h][0],x[1]=o[1]+m[h][1],l=r.forEachFeatureAtCoordinate(x,e,n,a,v)}if(l)return l}}if(0===v.length)return;const w=1/v.length;return v.forEach(((t,e)=>t.distanceSq+=e*w)),v.sort(((t,e)=>t.distanceSq-e.distanceSq)),v.some((t=>l=t.callback(t.feature,t.layer,t.geometry))),l}hasFeatureAtCoordinate(t,e,n,r,i,o){return void 0!==this.forEachFeatureAtCoordinate(t,e,n,r,l.rT,this,i,o)}getMap(){return this.map_}renderFrame(t){(0,c.b0)()}scheduleExpireIconCache(t){d.ue.canExpireCache()&&t.postRenderFunctions.push(m)}}function m(t,e){d.ue.expire()}const y=p;var _=n(81411),v=n(93691),x=n(7971),w=n(80901),b=n(58247),S=n(78013),E=n(69710);const T=class extends y{constructor(t){super(t),this.fontChangeListenerKey_=(0,S.KT)(b.yY,_.A.PROPERTYCHANGE,t.redrawText.bind(t)),this.element_=document.createElement("div");const e=this.element_.style;e.position="absolute",e.width="100%",e.height="100%",e.zIndex="0",this.element_.className=w.XI+" ol-layers";const n=t.getViewport();n.insertBefore(this.element_,n.firstChild||null),this.children_=[],this.renderedVisible_=!0}dispatchRenderEvent(t,e){const n=this.getMap();if(n.hasListener(t)){const r=new v.A(t,void 0,e);n.dispatchEvent(r)}}disposeInternal(){(0,S.JH)(this.fontChangeListenerKey_),this.element_.remove(),super.disposeInternal()}renderFrame(t){if(!t)return void(this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1));this.calculateMatrices2D(t),this.dispatchRenderEvent(x.A.PRECOMPOSE,t);const e=t.layerStatesArray.sort(((t,e)=>t.zIndex-e.zIndex));e.some((t=>t.layer instanceof s.A&&t.layer.getDeclutter()))&&(t.declutter={});const n=t.viewState;this.children_.length=0;const r=[];let i=null;for(let o=0,s=e.length;o<s;++o){const s=e[o];t.layerIndex=o;const a=s.layer,l=a.getSourceState();if(!(0,f.l)(s,n)||"ready"!=l&&"undefined"!=l){a.unrender();continue}const c=a.render(t,i);c&&(c!==i&&(this.children_.push(c),i=c),r.push(s))}this.declutter(t,r),(0,E.WM)(this.element_,this.children_),this.dispatchRenderEvent(x.A.POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)}declutter(t,e){if(t.declutter){for(let n=e.length-1;n>=0;--n){const r=e[n],i=r.layer;i.getDeclutter()&&i.renderDeclutter(t,r)}e.forEach((e=>e.layer.renderDeferred(t)))}}};var C=n(31990),I=n(92439),k=n(82526),O=n(87393),A=n(44835);class R extends k.Ay{constructor(t,e){super(t),this.layer=e}}const D="layers";class M extends I.A{constructor(t){t=t||{};const e=Object.assign({},t);delete e.layers;let n=t.layers;super(e),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(D,this.handleLayersChanged_),n?Array.isArray(n)?n=new i.A(n.slice(),{unique:!0}):(0,O.v)("function"===typeof n.getArray,"Expected `layers` to be an array or a `Collection`"):n=new i.A(void 0,{unique:!0}),this.setLayers(n)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(S.JH),this.layersListenerKeys_.length=0;const t=this.getLayers();this.layersListenerKeys_.push((0,S.KT)(t,o.A.ADD,this.handleLayersAdd_,this),(0,S.KT)(t,o.A.REMOVE,this.handleLayersRemove_,this));for(const n in this.listenerKeys_)this.listenerKeys_[n].forEach(S.JH);(0,A.I)(this.listenerKeys_);const e=t.getArray();for(let n=0,r=e.length;n<r;n++){const t=e[n];this.registerLayerListeners_(t),this.dispatchEvent(new R("addlayer",t))}this.changed()}registerLayerListeners_(t){const e=[(0,S.KT)(t,_.A.PROPERTYCHANGE,this.handleLayerChange_,this),(0,S.KT)(t,C.A.CHANGE,this.handleLayerChange_,this)];t instanceof M&&e.push((0,S.KT)(t,"addlayer",this.handleLayerGroupAdd_,this),(0,S.KT)(t,"removelayer",this.handleLayerGroupRemove_,this)),this.listenerKeys_[(0,c.v6)(t)]=e}handleLayerGroupAdd_(t){this.dispatchEvent(new R("addlayer",t.layer))}handleLayerGroupRemove_(t){this.dispatchEvent(new R("removelayer",t.layer))}handleLayersAdd_(t){const e=t.element;this.registerLayerListeners_(e),this.dispatchEvent(new R("addlayer",e)),this.changed()}handleLayersRemove_(t){const e=t.element,n=(0,c.v6)(e);this.listenerKeys_[n].forEach(S.JH),delete this.listenerKeys_[n],this.dispatchEvent(new R("removelayer",e)),this.changed()}getLayers(){return this.get(D)}setLayers(t){const e=this.getLayers();if(e){const t=e.getArray();for(let e=0,n=t.length;e<n;++e)this.dispatchEvent(new R("removelayer",t[e]))}this.set(D,t)}getLayersArray(t){return t=void 0!==t?t:[],this.getLayers().forEach((function(e){e.getLayersArray(t)})),t}getLayerStatesArray(t){const e=void 0!==t?t:[],n=e.length;this.getLayers().forEach((function(t){t.getLayerStatesArray(e)}));const r=this.getLayerState();let i=r.zIndex;t||void 0!==r.zIndex||(i=0);for(let o=n,s=e.length;o<s;o++){const t=e[o];t.opacity*=r.opacity,t.visible=t.visible&&r.visible,t.maxResolution=Math.min(t.maxResolution,r.maxResolution),t.minResolution=Math.max(t.minResolution,r.minResolution),t.minZoom=Math.max(t.minZoom,r.minZoom),t.maxZoom=Math.min(t.maxZoom,r.maxZoom),void 0!==r.extent&&(void 0!==t.extent?t.extent=(0,h._N)(t.extent,r.extent):t.extent=r.extent),void 0===t.zIndex&&(t.zIndex=i)}return e}getSourceState(){return"ready"}}const P=M;class L extends k.Ay{constructor(t,e,n){super(t),this.map=e,this.frameState=void 0!==n?n:null}}const N=L;const F=class extends N{constructor(t,e,n,r,i,o){super(t,e,i),this.originalEvent=n,this.pixel_=null,this.coordinate_=null,this.dragging=void 0!==r&&r,this.activePointers=o}get pixel(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_}set pixel(t){this.pixel_=t}get coordinate(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_}set coordinate(t){this.coordinate_=t}preventDefault(){super.preventDefault(),"preventDefault"in this.originalEvent&&this.originalEvent.preventDefault()}stopPropagation(){super.stopPropagation(),"stopPropagation"in this.originalEvent&&this.originalEvent.stopPropagation()}},j={SINGLECLICK:"singleclick",CLICK:C.A.CLICK,DBLCLICK:C.A.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"},z="pointermove",G="pointerdown";var q=n(58981),H=n(51070);class W extends q.A{constructor(t,e){super(t),this.map_=t,this.clickTimeoutId_,this.emulateClicks_=!1,this.dragging_=!1,this.dragListenerKeys_=[],this.moveTolerance_=void 0===e?1:e,this.down_=null;const n=this.map_.getViewport();this.activePointers_=[],this.trackedTouches_={},this.element_=n,this.pointerdownListenerKey_=(0,S.KT)(n,G,this.handlePointerDown_,this),this.originalPointerMoveEvent_,this.relayedListenerKey_=(0,S.KT)(n,z,this.relayMoveEvent_,this),this.boundHandleTouchMove_=this.handleTouchMove_.bind(this),this.element_.addEventListener(C.A.TOUCHMOVE,this.boundHandleTouchMove_,!!H.FT&&{passive:!1})}emulateClick_(t){let e=new F(j.CLICK,this.map_,t);this.dispatchEvent(e),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,e=new F(j.DBLCLICK,this.map_,t),this.dispatchEvent(e)):this.clickTimeoutId_=setTimeout((()=>{this.clickTimeoutId_=void 0;const e=new F(j.SINGLECLICK,this.map_,t);this.dispatchEvent(e)}),250)}updateActivePointers_(t){const e=t,n=e.pointerId;if(e.type==j.POINTERUP||e.type==j.POINTERCANCEL){delete this.trackedTouches_[n];for(const t in this.trackedTouches_)if(this.trackedTouches_[t].target!==e.target){delete this.trackedTouches_[t];break}}else e.type!=j.POINTERDOWN&&e.type!=j.POINTERMOVE||(this.trackedTouches_[n]=e);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(t){this.updateActivePointers_(t);const e=new F(j.POINTERUP,this.map_,t,void 0,void 0,this.activePointers_);this.dispatchEvent(e),this.emulateClicks_&&!e.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(t)&&this.emulateClick_(this.down_),0===this.activePointers_.length&&(this.dragListenerKeys_.forEach(S.JH),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(t){return 0===t.button}handlePointerDown_(t){this.emulateClicks_=0===this.activePointers_.length,this.updateActivePointers_(t);const e=new F(j.POINTERDOWN,this.map_,t,void 0,void 0,this.activePointers_);if(this.dispatchEvent(e),this.down_=new PointerEvent(t.type,t),Object.defineProperty(this.down_,"target",{writable:!1,value:t.target}),0===this.dragListenerKeys_.length){const t=this.map_.getOwnerDocument();this.dragListenerKeys_.push((0,S.KT)(t,j.POINTERMOVE,this.handlePointerMove_,this),(0,S.KT)(t,j.POINTERUP,this.handlePointerUp_,this),(0,S.KT)(this.element_,j.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==t&&this.dragListenerKeys_.push((0,S.KT)(this.element_.getRootNode(),j.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(t){if(this.isMoving_(t)){this.updateActivePointers_(t),this.dragging_=!0;const e=new F(j.POINTERDRAG,this.map_,t,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(e)}}relayMoveEvent_(t){this.originalPointerMoveEvent_=t;const e=!(!this.down_||!this.isMoving_(t));this.dispatchEvent(new F(j.POINTERMOVE,this.map_,t,e))}handleTouchMove_(t){const e=this.originalPointerMoveEvent_;e&&!e.defaultPrevented||"boolean"===typeof t.cancelable&&!0!==t.cancelable||t.preventDefault()}isMoving_(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&((0,S.JH)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(C.A.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&((0,S.JH)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(S.JH),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}}const B=W,Y="postrender",U="movestart",K="moveend",$="loadstart",V="loadend",X="layergroup",Z="size",J="target",Q="view",tt=1/0;const et=class{constructor(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,(0,A.I)(this.queuedElements_)}dequeue(){const t=this.elements_,e=this.priorities_,n=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));const r=this.keyFunction_(n);return delete this.queuedElements_[r],n}enqueue(t){(0,O.v)(!(this.keyFunction_(t)in this.queuedElements_),"Tried to enqueue an `element` that was already added to the queue");const e=this.priorityFunction_(t);return e!=tt&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)}getCount(){return this.elements_.length}getLeftChildIndex_(t){return 2*t+1}getRightChildIndex_(t){return 2*t+2}getParentIndex_(t){return t-1>>1}heapify_(){let t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)}isEmpty(){return 0===this.elements_.length}isKeyQueued(t){return t in this.queuedElements_}isQueued(t){return this.isKeyQueued(this.keyFunction_(t))}siftUp_(t){const e=this.elements_,n=this.priorities_,r=e.length,i=e[t],o=n[t],s=t;for(;t<r>>1;){const i=this.getLeftChildIndex_(t),o=this.getRightChildIndex_(t),s=o<r&&n[o]<n[i]?o:i;e[t]=e[s],n[t]=n[s],t=s}e[t]=i,n[t]=o,this.siftDown_(s,t)}siftDown_(t,e){const n=this.elements_,r=this.priorities_,i=n[e],o=r[e];for(;e>t;){const t=this.getParentIndex_(e);if(!(r[t]>o))break;n[e]=n[t],r[e]=r[t],e=t}n[e]=i,r[e]=o}reprioritize(){const t=this.priorityFunction_,e=this.elements_,n=this.priorities_;let r=0;const i=e.length;let o,s,a;for(s=0;s<i;++s)o=e[s],a=t(o),a==tt?delete this.queuedElements_[this.keyFunction_(o)]:(n[r]=a,e[r++]=o);e.length=r,n.length=r,this.heapify_()}};var nt=n(34803);const rt=class extends et{constructor(t,e){super((function(e){return t.apply(null,e)}),(function(t){return t[0].getKey()})),this.boundHandleTileChange_=this.handleTileChange.bind(this),this.tileChangeCallback_=e,this.tilesLoading_=0,this.tilesLoadingKeys_={}}enqueue(t){const e=super.enqueue(t);if(e){t[0].addEventListener(C.A.CHANGE,this.boundHandleTileChange_)}return e}getTilesLoading(){return this.tilesLoading_}handleTileChange(t){const e=t.target,n=e.getState();if(n===nt.A.LOADED||n===nt.A.ERROR||n===nt.A.EMPTY){n!==nt.A.ERROR&&e.removeEventListener(C.A.CHANGE,this.boundHandleTileChange_);const t=e.getKey();t in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[t],--this.tilesLoading_),this.tileChangeCallback_()}}loadMoreTiles(t,e){let n=0;for(;this.tilesLoading_<t&&n<e&&this.getCount()>0;){const t=this.dequeue()[0],e=t.getKey();t.getState()!==nt.A.IDLE||e in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[e]=!0,++this.tilesLoading_,++n,t.load())}}};var it=n(42791),ot=n(49428);class st extends r.A{constructor(t){super();const e=t.element;!e||t.target||e.style.pointerEvents||(e.style.pointerEvents="auto"),this.element=e||null,this.target_=null,this.map_=null,this.listenerKeys=[],t.render&&(this.render=t.render),t.target&&this.setTarget(t.target)}disposeInternal(){this.element?.remove(),super.disposeInternal()}getMap(){return this.map_}setMap(t){this.map_&&this.element?.remove();for(let e=0,n=this.listenerKeys.length;e<n;++e)(0,S.JH)(this.listenerKeys[e]);if(this.listenerKeys.length=0,this.map_=t,t){(this.target_??t.getOverlayContainerStopEvent()).appendChild(this.element),this.render!==l.tV&&this.listenerKeys.push((0,S.KT)(t,Y,this.render,this)),t.render()}}render(t){}setTarget(t){this.target_="string"===typeof t?document.getElementById(t):t}}const at=st;var lt=n(95635);const ct=class extends at{constructor(t){t=t||{},super({element:document.createElement("div"),render:t.render,target:t.target}),this.ulElement_=document.createElement("ul"),this.collapsed_=void 0===t.collapsed||t.collapsed,this.userCollapsed_=this.collapsed_,this.overrideCollapsible_=void 0!==t.collapsible,this.collapsible_=void 0===t.collapsible||t.collapsible,this.collapsible_||(this.collapsed_=!1),this.attributions_=t.attributions;const e=void 0!==t.className?t.className:"ol-attribution",n=void 0!==t.tipLabel?t.tipLabel:"Attributions",r=void 0!==t.expandClassName?t.expandClassName:e+"-expand",i=void 0!==t.collapseLabel?t.collapseLabel:"\u203a",o=void 0!==t.collapseClassName?t.collapseClassName:e+"-collapse";"string"===typeof i?(this.collapseLabel_=document.createElement("span"),this.collapseLabel_.textContent=i,this.collapseLabel_.className=o):this.collapseLabel_=i;const s=void 0!==t.label?t.label:"i";"string"===typeof s?(this.label_=document.createElement("span"),this.label_.textContent=s,this.label_.className=r):this.label_=s;const a=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_;this.toggleButton_=document.createElement("button"),this.toggleButton_.setAttribute("type","button"),this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_)),this.toggleButton_.title=n,this.toggleButton_.appendChild(a),this.toggleButton_.addEventListener(C.A.CLICK,this.handleClick_.bind(this),!1);const l=e+" "+w.XI+" "+w.$N+(this.collapsed_&&this.collapsible_?" "+w.nT:"")+(this.collapsible_?"":" ol-uncollapsible"),c=this.element;c.className=l,c.appendChild(this.toggleButton_),c.appendChild(this.ulElement_),this.renderedAttributions_=[],this.renderedVisible_=!0}collectSourceAttributions_(t){const e=this.getMap().getAllLayers(),n=new Set(e.flatMap((e=>e.getAttributions(t))));if(void 0!==this.attributions_&&(Array.isArray(this.attributions_)?this.attributions_.forEach((t=>n.add(t))):n.add(this.attributions_)),!this.overrideCollapsible_){const t=!e.some((t=>!1===t.getSource()?.getAttributionsCollapsible()));this.setCollapsible(t)}return Array.from(n)}async updateElement_(t){if(!t)return void(this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1));const e=await Promise.all(this.collectSourceAttributions_(t).map((t=>(0,l.hq)((()=>t))))),n=e.length>0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!(0,lt.aI)(e,this.renderedAttributions_)){(0,E.gS)(this.ulElement_);for(let t=0,n=e.length;t<n;++t){const n=document.createElement("li");n.innerHTML=e[t],this.ulElement_.appendChild(n)}this.renderedAttributions_=e}}handleClick_(t){t.preventDefault(),this.handleToggle_(),this.userCollapsed_=this.collapsed_}handleToggle_(){this.element.classList.toggle(w.nT),this.collapsed_?(0,E.fo)(this.collapseLabel_,this.label_):(0,E.fo)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_,this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_))}getCollapsible(){return this.collapsible_}setCollapsible(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),this.userCollapsed_&&this.handleToggle_())}setCollapsed(t){this.userCollapsed_=t,this.collapsible_&&this.collapsed_!==t&&this.handleToggle_()}getCollapsed(){return this.collapsed_}render(t){this.updateElement_(t.frameState)}};var ut=n(86513);const ht=class extends at{constructor(t){t=t||{},super({element:document.createElement("div"),render:t.render,target:t.target});const e=void 0!==t.className?t.className:"ol-rotate",n=void 0!==t.label?t.label:"\u21e7",r=void 0!==t.compassClassName?t.compassClassName:"ol-compass";this.label_=null,"string"===typeof n?(this.label_=document.createElement("span"),this.label_.className=r,this.label_.textContent=n):(this.label_=n,this.label_.classList.add(r));const i=t.tipLabel?t.tipLabel:"Reset rotation",o=document.createElement("button");o.className=e+"-reset",o.setAttribute("type","button"),o.title=i,o.appendChild(this.label_),o.addEventListener(C.A.CLICK,this.handleClick_.bind(this),!1);const s=e+" "+w.XI+" "+w.$N,a=this.element;a.className=s,a.appendChild(o),this.callResetNorth_=t.resetNorth?t.resetNorth:void 0,this.duration_=void 0!==t.duration?t.duration:250,this.autoHide_=void 0===t.autoHide||t.autoHide,this.rotation_=void 0,this.autoHide_&&this.element.classList.add(w.Si)}handleClick_(t){t.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()}resetNorth_(){const t=this.getMap().getView();if(!t)return;const e=t.getRotation();void 0!==e&&(this.duration_>0&&e%(2*Math.PI)!==0?t.animate({rotation:0,duration:this.duration_,easing:ut.vT}):t.setRotation(0))}render(t){const e=t.frameState;if(!e)return;const n=e.viewState.rotation;if(n!=this.rotation_){const t="rotate("+n+"rad)";if(this.autoHide_){const t=this.element.classList.contains(w.Si);t||0!==n?t&&0!==n&&this.element.classList.remove(w.Si):this.element.classList.add(w.Si)}this.label_.style.transform=t}this.rotation_=n}};const dt=class extends at{constructor(t){t=t||{},super({element:document.createElement("div"),target:t.target});const e=void 0!==t.className?t.className:"ol-zoom",n=void 0!==t.delta?t.delta:1,r=void 0!==t.zoomInClassName?t.zoomInClassName:e+"-in",i=void 0!==t.zoomOutClassName?t.zoomOutClassName:e+"-out",o=void 0!==t.zoomInLabel?t.zoomInLabel:"+",s=void 0!==t.zoomOutLabel?t.zoomOutLabel:"\u2013",a=void 0!==t.zoomInTipLabel?t.zoomInTipLabel:"Zoom in",l=void 0!==t.zoomOutTipLabel?t.zoomOutTipLabel:"Zoom out",c=document.createElement("button");c.className=r,c.setAttribute("type","button"),c.title=a,c.appendChild("string"===typeof o?document.createTextNode(o):o),c.addEventListener(C.A.CLICK,this.handleClick_.bind(this,n),!1);const u=document.createElement("button");u.className=i,u.setAttribute("type","button"),u.title=l,u.appendChild("string"===typeof s?document.createTextNode(s):s),u.addEventListener(C.A.CLICK,this.handleClick_.bind(this,-n),!1);const h=e+" "+w.XI+" "+w.$N,d=this.element;d.className=h,d.appendChild(c),d.appendChild(u),this.duration_=void 0!==t.duration?t.duration:250}handleClick_(t,e){e.preventDefault(),this.zoomByDelta_(t)}zoomByDelta_(t){const e=this.getMap().getView();if(!e)return;const n=e.getZoom();if(void 0!==n){const r=e.getConstrainedZoom(n+t);this.duration_>0?(e.getAnimating()&&e.cancelAnimations(),e.animate({zoom:r,duration:this.duration_,easing:ut.vT})):e.setZoom(r)}}};const ft="active";class gt extends r.A{constructor(t){super(),this.on,this.once,this.un,t&&t.handleEvent&&(this.handleEvent=t.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get(ft)}getMap(){return this.map_}handleEvent(t){return!0}setActive(t){this.set(ft,t)}setMap(t){this.map_=t}}function pt(t,e,n,r){const i=t.getZoom();if(void 0===i)return;const o=t.getConstrainedZoom(i+e),s=t.getResolutionForZoom(o);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:s,anchor:n,duration:void 0!==r?r:250,easing:ut.vT})}const mt=gt;const yt=class extends mt{constructor(t){super(),t=t||{},this.delta_=t.delta?t.delta:1,this.duration_=void 0!==t.duration?t.duration:250}handleEvent(t){let e=!1;if(t.type==j.DBLCLICK){const n=t.originalEvent,r=t.map,i=t.coordinate,o=n.shiftKey?-this.delta_:this.delta_;pt(r.getView(),o,i,this.duration_),n.preventDefault(),e=!0}return!e}};function _t(t){const e=t.length;let n=0,r=0;for(let i=0;i<e;i++)n+=t[i].clientX,r+=t[i].clientY;return{clientX:n/e,clientY:r/e}}const vt=class extends mt{constructor(t){super(t=t||{}),t.handleDownEvent&&(this.handleDownEvent=t.handleDownEvent),t.handleDragEvent&&(this.handleDragEvent=t.handleDragEvent),t.handleMoveEvent&&(this.handleMoveEvent=t.handleMoveEvent),t.handleUpEvent&&(this.handleUpEvent=t.handleUpEvent),t.stopDown&&(this.stopDown=t.stopDown),this.handlingDownUpSequence=!1,this.targetPointers=[]}getPointerCount(){return this.targetPointers.length}handleDownEvent(t){return!1}handleDragEvent(t){}handleEvent(t){if(!t.originalEvent)return!0;let e=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==j.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==j.POINTERUP){const e=this.handleUpEvent(t);this.handlingDownUpSequence=e&&this.targetPointers.length>0}}else if(t.type==j.POINTERDOWN){const n=this.handleDownEvent(t);this.handlingDownUpSequence=n,e=this.stopDown(n)}else t.type==j.POINTERMOVE&&this.handleMoveEvent(t);return!e}handleMoveEvent(t){}handleUpEvent(t){return!1}stopDown(t){return t}updateTrackedPointers_(t){t.activePointers&&(this.targetPointers=t.activePointers)}};function xt(t){const e=arguments;return function(t){let n=!0;for(let r=0,i=e.length;r<i&&(n=n&&e[r](t),n);++r);return n}}const wt=function(t){const e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},bt=function(t){const e=t.map.getTargetElement(),n=e.getRootNode();return!(n instanceof ShadowRoot?n.host:e).hasAttribute("tabindex")||function(t){const e=t.map.getTargetElement(),n=e.getRootNode(),r=t.map.getOwnerDocument().activeElement;return n instanceof ShadowRoot?n.host.contains(r):e.contains(r)}(t)},St=l.rT,Et=function(t){const e=t.originalEvent;return 0==e.button&&!(H.j&&H.ew&&e.ctrlKey)},Tt=function(t){const e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},Ct=function(t){const e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},It=function(t){const e=t.originalEvent,n=e.target.tagName;return"INPUT"!==n&&"SELECT"!==n&&"TEXTAREA"!==n&&!e.target.isContentEditable},kt=function(t){const e=t.originalEvent;return(0,O.v)(void 0!==e,"mapBrowserEvent must originate from a pointer event"),"mouse"==e.pointerType},Ot=function(t){const e=t.originalEvent;return(0,O.v)(void 0!==e,"mapBrowserEvent must originate from a pointer event"),e.isPrimary&&0===e.button};const At=class extends vt{constructor(t){super({stopDown:l.W8}),t=t||{},this.kinetic_=t.kinetic,this.lastCentroid=null,this.lastPointersCount_,this.panning_=!1;const e=t.condition?t.condition:xt(Tt,Ot);this.condition_=t.onFocusOnly?xt(bt,e):e,this.noKinetic_=!1}handleDragEvent(t){const e=t.map;this.panning_||(this.panning_=!0,e.getView().beginInteraction());const n=this.targetPointers,r=e.getEventPixel(_t(n));if(n.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(r[0],r[1]),this.lastCentroid){const e=[this.lastCentroid[0]-r[0],r[1]-this.lastCentroid[1]],n=t.map.getView();(0,g.hs)(e,n.getResolution()),(0,g.e$)(e,n.getRotation()),n.adjustCenterInternal(e)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=r,this.lastPointersCount_=n.length,t.originalEvent.preventDefault()}handleUpEvent(t){const e=t.map,n=e.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){const t=this.kinetic_.getDistance(),r=this.kinetic_.getAngle(),i=n.getCenterInternal(),o=e.getPixelFromCoordinateInternal(i),s=e.getCoordinateFromPixelInternal([o[0]-t*Math.cos(r),o[1]-t*Math.sin(r)]);n.animateInternal({center:n.getConstrainedCenter(s),duration:500,easing:ut.vT})}return this.panning_&&(this.panning_=!1,n.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0}handleDownEvent(t){if(this.targetPointers.length>0&&this.condition_(t)){const e=t.map.getView();return this.lastCentroid=null,e.getAnimating()&&e.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}};var Rt=n(17601);const Dt=class extends vt{constructor(t){t=t||{},super({stopDown:l.W8}),this.condition_=t.condition?t.condition:wt,this.lastAngle_=void 0,this.duration_=void 0!==t.duration?t.duration:250}handleDragEvent(t){if(!kt(t))return;const e=t.map,n=e.getView();if(n.getConstraints().rotation===Rt.b8)return;const r=e.getSize(),i=t.pixel,o=Math.atan2(r[1]/2-i[1],i[0]-r[0]/2);if(void 0!==this.lastAngle_){const t=o-this.lastAngle_;n.adjustRotationInternal(-t)}this.lastAngle_=o}handleUpEvent(t){if(!kt(t))return!0;return t.map.getView().endInteraction(this.duration_),!1}handleDownEvent(t){if(!kt(t))return!1;if(Et(t)&&this.condition_(t)){return t.map.getView().beginInteraction(),this.lastAngle_=void 0,!0}return!1}};var Mt=n(57404);class Pt extends a.A{constructor(t){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+t,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){const t=this.startPixel_,e=this.endPixel_,n="px",r=this.element_.style;r.left=Math.min(t[0],e[0])+n,r.top=Math.min(t[1],e[1])+n,r.width=Math.abs(e[0]-t[0])+n,r.height=Math.abs(e[1]-t[1])+n}setMap(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);const t=this.element_.style;t.left="inherit",t.top="inherit",t.width="inherit",t.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){if(!this.map_)return;const t=this.startPixel_,e=this.endPixel_,n=[t,[t[0],e[1]],e,[e[0],t[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);n[4]=n[0].slice(),this.geometry_?this.geometry_.setCoordinates([n]):this.geometry_=new Mt.Ay([n])}getGeometry(){return this.geometry_}}const Lt=Pt,Nt="boxstart",Ft="boxdrag",jt="boxend",zt="boxcancel";class Gt extends k.Ay{constructor(t,e,n){super(t),this.coordinate=e,this.mapBrowserEvent=n}}const qt=class extends vt{constructor(t){super(),this.on,this.once,this.un,t=t??{},this.box_=new Lt(t.className||"ol-dragbox"),this.minArea_=t.minArea??64,t.onBoxEnd&&(this.onBoxEnd=t.onBoxEnd),this.startPixel_=null,this.condition_=t.condition??Et,this.boxEndCondition_=t.boxEndCondition??this.defaultBoxEndCondition}defaultBoxEndCondition(t,e,n){const r=n[0]-e[0],i=n[1]-e[1];return r*r+i*i>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(t){this.startPixel_&&(this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new Gt(Ft,t.coordinate,t)))}handleUpEvent(t){if(!this.startPixel_)return!1;const e=this.boxEndCondition_(t,this.startPixel_,t.pixel);return e&&this.onBoxEnd(t),this.dispatchEvent(new Gt(e?jt:zt,t.coordinate,t)),this.box_.setMap(null),this.startPixel_=null,!1}handleDownEvent(t){return!!this.condition_(t)&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new Gt(Nt,t.coordinate,t)),!0)}onBoxEnd(t){}setActive(t){t||(this.box_.setMap(null),this.startPixel_&&(this.dispatchEvent(new Gt(zt,this.startPixel_,null)),this.startPixel_=null)),super.setActive(t)}setMap(t){this.getMap()&&(this.box_.setMap(null),this.startPixel_&&(this.dispatchEvent(new Gt(zt,this.startPixel_,null)),this.startPixel_=null)),super.setMap(t)}};const Ht=class extends qt{constructor(t){super({condition:(t=t||{}).condition?t.condition:Ct,className:t.className||"ol-dragzoom",minArea:t.minArea}),this.duration_=void 0!==t.duration?t.duration:200,this.out_=void 0!==t.out&&t.out}onBoxEnd(t){const e=this.getMap().getView();let n=this.getGeometry();if(this.out_){const t=e.rotatedExtentForGeometry(n),r=e.getResolutionForExtentInternal(t),i=e.getResolution()/r;n=n.clone(),n.scale(i*i)}e.fitInternal(n,{duration:this.duration_,easing:ut.vT})}},Wt="ArrowLeft",Bt="ArrowUp",Yt="ArrowRight",Ut="ArrowDown";const Kt=class extends mt{constructor(t){super(),t=t||{},this.defaultCondition_=function(t){return Tt(t)&&It(t)},this.condition_=void 0!==t.condition?t.condition:this.defaultCondition_,this.duration_=void 0!==t.duration?t.duration:100,this.pixelDelta_=void 0!==t.pixelDelta?t.pixelDelta:128}handleEvent(t){let e=!1;if(t.type==C.A.KEYDOWN){const n=t.originalEvent,r=n.key;if(this.condition_(t)&&(r==Ut||r==Wt||r==Yt||r==Bt)){const i=t.map.getView(),o=i.getResolution()*this.pixelDelta_;let s=0,a=0;r==Ut?a=-o:r==Wt?s=-o:r==Yt?s=o:a=o;const l=[s,a];(0,g.e$)(l,i.getRotation()),function(t,e,n){const r=t.getCenterInternal();if(r){const i=[r[0]+e[0],r[1]+e[1]];t.animateInternal({duration:void 0!==n?n:250,easing:ut.sn,center:t.getConstrainedCenter(i)})}}(i,l,this.duration_),n.preventDefault(),e=!0}}return!e}};const $t=class extends mt{constructor(t){super(),t=t||{},this.condition_=t.condition?t.condition:function(t){return!function(t){const e=t.originalEvent;return H.ew?e.metaKey:e.ctrlKey}(t)&&It(t)},this.delta_=t.delta?t.delta:1,this.duration_=void 0!==t.duration?t.duration:100}handleEvent(t){let e=!1;if(t.type==C.A.KEYDOWN||t.type==C.A.KEYPRESS){const n=t.originalEvent,r=n.key;if(this.condition_(t)&&("+"===r||"-"===r)){const i=t.map,o="+"===r?this.delta_:-this.delta_;pt(i.getView(),o,void 0,this.duration_),n.preventDefault(),e=!0}}return!e}};const Vt=class{constructor(t,e,n){this.decay_=t,this.minVelocity_=e,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(t,e){this.points_.push(t,e,Date.now())}end(){if(this.points_.length<6)return!1;const t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]<t)return!1;let n=e-3;for(;n>0&&this.points_[n+2]>t;)n-=3;const r=this.points_[e+2]-this.points_[n+2];if(r<1e3/60)return!1;const i=this.points_[e]-this.points_[n],o=this.points_[e+1]-this.points_[n+1];return this.angle_=Math.atan2(o,i),this.initialVelocity_=Math.sqrt(i*i+o*o)/r,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}};var Xt=n(53442);const Zt=class extends mt{constructor(t){super(t=t||{}),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=void 0!==t.maxDelta?t.maxDelta:1,this.duration_=void 0!==t.duration?t.duration:250,this.timeout_=void 0!==t.timeout?t.timeout:80,this.useAnchor_=void 0===t.useAnchor||t.useAnchor,this.constrainResolution_=void 0!==t.constrainResolution&&t.constrainResolution;const e=t.condition?t.condition:St;this.condition_=t.onFocusOnly?xt(bt,e):e,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;const t=this.getMap();if(!t)return;t.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}handleEvent(t){if(!this.condition_(t))return!0;if(t.type!==C.A.WHEEL)return!0;const e=t.map,n=t.originalEvent;let r;if(n.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==C.A.WHEEL&&(r=n.deltaY,H._p&&n.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(r/=H.cr),n.deltaMode===WheelEvent.DOM_DELTA_LINE&&(r*=40)),0===r)return!1;this.lastDelta_=r;const i=Date.now();void 0===this.startTime_&&(this.startTime_=i),(!this.mode_||i-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(r)<4?"trackpad":"wheel");const o=e.getView();if("trackpad"===this.mode_&&!o.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(o.getAnimating()&&o.cancelAnimations(),o.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),o.adjustZoom(-r/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=i,!1;this.totalDelta_+=r;const s=Math.max(this.timeout_-(i-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,e),s),!1}handleWheelZoom_(t){const e=t.getView();e.getAnimating()&&e.cancelAnimations();let n=-(0,Xt.qE)(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(n=n?n>0?1:-1:0),pt(e,n,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(t){this.useAnchor_=t,t||(this.lastAnchor_=null)}};const Jt=class extends vt{constructor(t){const e=t=t||{};e.stopDown||(e.stopDown=l.W8),super(e),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=void 0!==t.threshold?t.threshold:.3,this.duration_=void 0!==t.duration?t.duration:250}handleDragEvent(t){let e=0;const n=this.targetPointers[0],r=this.targetPointers[1],i=Math.atan2(r.clientY-n.clientY,r.clientX-n.clientX);if(void 0!==this.lastAngle_){const t=i-this.lastAngle_;this.rotationDelta_+=t,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=t}this.lastAngle_=i;const o=t.map,s=o.getView();s.getConstraints().rotation!==Rt.b8&&(this.anchor_=o.getCoordinateFromPixelInternal(o.getEventPixel(_t(this.targetPointers))),this.rotating_&&(o.render(),s.adjustRotationInternal(e,this.anchor_)))}handleUpEvent(t){if(this.targetPointers.length<2){return t.map.getView().endInteraction(this.duration_),!1}return!0}handleDownEvent(t){if(this.targetPointers.length>=2){const e=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1}};const Qt=class extends vt{constructor(t){const e=t=t||{};e.stopDown||(e.stopDown=l.W8),super(e),this.anchor_=null,this.duration_=void 0!==t.duration?t.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(t){let e=1;const n=this.targetPointers[0],r=this.targetPointers[1],i=n.clientX-r.clientX,o=n.clientY-r.clientY,s=Math.sqrt(i*i+o*o);void 0!==this.lastDistance_&&(e=this.lastDistance_/s),this.lastDistance_=s;const a=t.map,l=a.getView();1!=e&&(this.lastScaleDelta_=e),this.anchor_=a.getCoordinateFromPixelInternal(a.getEventPixel(_t(this.targetPointers))),a.render(),l.adjustResolutionInternal(e,this.anchor_)}handleUpEvent(t){if(this.targetPointers.length<2){const e=t.map.getView(),n=this.lastScaleDelta_>1?1:-1;return e.endInteraction(this.duration_,n),!1}return!0}handleDownEvent(t){if(this.targetPointers.length>=2){const e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1}};var te=n(77120),ee=n(50929),ne=n(62643);function re(t){t instanceof f.A?t.setMapInternal(null):t instanceof P&&t.getLayers().forEach(re)}function ie(t,e){if(t instanceof f.A)t.setMapInternal(e);else if(t instanceof P){const n=t.getLayers().getArray();for(let t=0,r=n.length;t<r;++t)ie(n[t],e)}}class oe extends r.A{constructor(t){super(),t=t||{},this.on,this.once,this.un;const e=function(t){let e=null;void 0!==t.keyboardEventTarget&&(e="string"===typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);const n={},r=t.layers&&"function"===typeof t.layers.getLayers?t.layers:new P({layers:t.layers});let o,s,a;n[X]=r,n[J]=t.target,n[Q]=t.view instanceof it.Ay?t.view:new it.Ay,void 0!==t.controls&&(Array.isArray(t.controls)?o=new i.A(t.controls.slice()):((0,O.v)("function"===typeof t.controls.getArray,"Expected `controls` to be an array or an `ol/Collection.js`"),o=t.controls));void 0!==t.interactions&&(Array.isArray(t.interactions)?s=new i.A(t.interactions.slice()):((0,O.v)("function"===typeof t.interactions.getArray,"Expected `interactions` to be an array or an `ol/Collection.js`"),s=t.interactions));void 0!==t.overlays?Array.isArray(t.overlays)?a=new i.A(t.overlays.slice()):((0,O.v)("function"===typeof t.overlays.getArray,"Expected `overlays` to be an array or an `ol/Collection.js`"),a=t.overlays):a=new i.A;return{controls:o,interactions:s,keyboardEventTarget:e,overlays:a,values:n}}(t);this.renderComplete_=!1,this.loaded_=!0,this.boundHandleBrowserEvent_=this.handleBrowserEvent.bind(this),this.maxTilesLoading_=void 0!==t.maxTilesLoading?t.maxTilesLoading:16,this.pixelRatio_=void 0!==t.pixelRatio?t.pixelRatio:H.cr,this.postRenderTimeoutHandle_,this.animationDelayKey_,this.animationDelay_=this.animationDelay_.bind(this),this.coordinateToPixelTransform_=(0,u.vt)(),this.pixelToCoordinateTransform_=(0,u.vt)(),this.frameIndex_=0,this.frameState_=null,this.previousExtent_=null,this.viewPropertyListenerKey_=null,this.viewChangeListenerKey_=null,this.layerGroupPropertyListenerKeys_=null,this.viewport_=document.createElement("div"),this.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),this.viewport_.style.position="relative",this.viewport_.style.overflow="hidden",this.viewport_.style.width="100%",this.viewport_.style.height="100%",this.overlayContainer_=document.createElement("div"),this.overlayContainer_.style.position="absolute",this.overlayContainer_.style.zIndex="0",this.overlayContainer_.style.width="100%",this.overlayContainer_.style.height="100%",this.overlayContainer_.style.pointerEvents="none",this.overlayContainer_.className="ol-overlaycontainer",this.viewport_.appendChild(this.overlayContainer_),this.overlayContainerStopEvent_=document.createElement("div"),this.overlayContainerStopEvent_.style.position="absolute",this.overlayContainerStopEvent_.style.zIndex="0",this.overlayContainerStopEvent_.style.width="100%",this.overlayContainerStopEvent_.style.height="100%",this.overlayContainerStopEvent_.style.pointerEvents="none",this.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",this.viewport_.appendChild(this.overlayContainerStopEvent_),this.mapBrowserEventHandler_=null,this.moveTolerance_=t.moveTolerance,this.keyboardEventTarget_=e.keyboardEventTarget,this.targetChangeHandlerKeys_=null,this.targetElement_=null,this.resizeObserver_=new ResizeObserver((()=>this.updateSize())),this.controls=e.controls||function(t){t=t||{};const e=new i.A;return(void 0===t.zoom||t.zoom)&&e.push(new dt(t.zoomOptions)),(void 0===t.rotate||t.rotate)&&e.push(new ht(t.rotateOptions)),(void 0===t.attribution||t.attribution)&&e.push(new ct(t.attributionOptions)),e}(),this.interactions=e.interactions||function(t){t=t||{};const e=new i.A,n=new Vt(-.005,.05,100);return(void 0===t.altShiftDragRotate||t.altShiftDragRotate)&&e.push(new Dt),(void 0===t.doubleClickZoom||t.doubleClickZoom)&&e.push(new yt({delta:t.zoomDelta,duration:t.zoomDuration})),(void 0===t.dragPan||t.dragPan)&&e.push(new At({onFocusOnly:t.onFocusOnly,kinetic:n})),(void 0===t.pinchRotate||t.pinchRotate)&&e.push(new Jt),(void 0===t.pinchZoom||t.pinchZoom)&&e.push(new Qt({duration:t.zoomDuration})),(void 0===t.keyboard||t.keyboard)&&(e.push(new Kt),e.push(new $t({delta:t.zoomDelta,duration:t.zoomDuration}))),(void 0===t.mouseWheelZoom||t.mouseWheelZoom)&&e.push(new Zt({onFocusOnly:t.onFocusOnly,duration:t.zoomDuration})),(void 0===t.shiftDragZoom||t.shiftDragZoom)&&e.push(new Ht({duration:t.zoomDuration})),e}({onFocusOnly:!0}),this.overlays_=e.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new rt(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(X,this.handleLayerGroupChanged_),this.addChangeListener(Q,this.handleViewChanged_),this.addChangeListener(Z,this.handleSizeChanged_),this.addChangeListener(J,this.handleTargetChanged_),this.setProperties(e.values);const n=this;!t.view||t.view instanceof it.Ay||t.view.then((function(t){n.setView(new it.Ay(t))})),this.controls.addEventListener(o.A.ADD,(t=>{t.element.setMap(this)})),this.controls.addEventListener(o.A.REMOVE,(t=>{t.element.setMap(null)})),this.interactions.addEventListener(o.A.ADD,(t=>{t.element.setMap(this)})),this.interactions.addEventListener(o.A.REMOVE,(t=>{t.element.setMap(null)})),this.overlays_.addEventListener(o.A.ADD,(t=>{this.addOverlayInternal_(t.element)})),this.overlays_.addEventListener(o.A.REMOVE,(t=>{const e=t.element.getId();void 0!==e&&delete this.overlayIdIndex_[e.toString()],t.element.setMap(null)})),this.controls.forEach((t=>{t.setMap(this)})),this.interactions.forEach((t=>{t.setMap(this)})),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(t){this.getControls().push(t)}addInteraction(t){this.getInteractions().push(t)}addLayer(t){this.getLayerGroup().getLayers().push(t)}handleLayerAdd_(t){ie(t.layer,this)}addOverlay(t){this.getOverlays().push(t)}addOverlayInternal_(t){const e=t.getId();void 0!==e&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(t,e,n){if(!this.frameState_||!this.renderer_)return;const r=this.getCoordinateFromPixelInternal(t),i=void 0!==(n=void 0!==n?n:{}).hitTolerance?n.hitTolerance:0,o=void 0!==n.layerFilter?n.layerFilter:l.rT,s=!1!==n.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(r,this.frameState_,i,s,e,null,o,null)}getFeaturesAtPixel(t,e){const n=[];return this.forEachFeatureAtPixel(t,(function(t){n.push(t)}),e),n}getAllLayers(){const t=[];return function e(n){n.forEach((function(n){n instanceof P?e(n.getLayers()):t.push(n)}))}(this.getLayers()),t}hasFeatureAtPixel(t,e){if(!this.frameState_||!this.renderer_)return!1;const n=this.getCoordinateFromPixelInternal(t),r=void 0!==(e=void 0!==e?e:{}).layerFilter?e.layerFilter:l.rT,i=void 0!==e.hitTolerance?e.hitTolerance:0,o=!1!==e.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(n,this.frameState_,i,o,r,null)}getEventCoordinate(t){return this.getCoordinateFromPixel(this.getEventPixel(t))}getEventCoordinateInternal(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))}getEventPixel(t){const e=this.viewport_.getBoundingClientRect(),n=this.getSize(),r=e.width/n[0],i=e.height/n[1],o="changedTouches"in t?t.changedTouches[0]:t;return[(o.clientX-e.left)/r,(o.clientY-e.top)/i]}getTarget(){return this.get(J)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(t){return(0,te.te)(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())}getCoordinateFromPixelInternal(t){const e=this.frameState_;return e?(0,u.Bb)(e.pixelToCoordinateTransform,t.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(t){const e=this.overlayIdIndex_[t.toString()];return void 0!==e?e:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(X)}setLayers(t){const e=this.getLayerGroup();if(t instanceof i.A)return void e.setLayers(t);const n=e.getLayers();n.clear(),n.extend(t)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){const t=this.getLayerGroup().getLayerStatesArray();for(let e=0,n=t.length;e<n;++e){const n=t[e];if(!n.visible)continue;const r=n.layer.getRenderer();if(r&&!r.ready)return!0;const i=n.layer.getSource();if(i&&i.loading)return!0}return!1}getPixelFromCoordinate(t){const e=(0,te.Ad)(t,this.getView().getProjection());return this.getPixelFromCoordinateInternal(e)}getPixelFromCoordinateInternal(t){const e=this.frameState_;return e?(0,u.Bb)(e.coordinateToPixelTransform,t.slice(0,2)):null}getRenderer(){return this.renderer_}getSize(){return this.get(Z)}getView(){return this.get(Q)}getViewport(){return this.viewport_}getOverlayContainer(){return this.overlayContainer_}getOverlayContainerStopEvent(){return this.overlayContainerStopEvent_}getOwnerDocument(){const t=this.getTargetElement();return t?t.ownerDocument:document}getTilePriority(t,e,n,r){return function(t,e,n,r,i){if(!t||!(n in t.wantedTiles))return tt;if(!t.wantedTiles[n][e.getKey()])return tt;const o=t.viewState.center,s=r[0]-o[0],a=r[1]-o[1];return 65536*Math.log(i)+Math.sqrt(s*s+a*a)/i}(this.frameState_,t,e,n,r)}handleBrowserEvent(t,e){e=e||t.type;const n=new F(e,this,t);this.handleMapBrowserEvent(n)}handleMapBrowserEvent(t){if(!this.frameState_)return;const e=t.originalEvent,n=e.type;if(n===G||n===C.A.WHEEL||n===C.A.KEYDOWN){const t=this.getOwnerDocument(),n=this.viewport_.getRootNode?this.viewport_.getRootNode():t,r=e.target,i=n instanceof ShadowRoot?n.host===r?n.host.ownerDocument:n:n===t?t.documentElement:n;if(this.overlayContainerStopEvent_.contains(r)||!i.contains(r))return}if(t.frameState=this.frameState_,!1!==this.dispatchEvent(t)){const e=this.getInteractions().getArray().slice();for(let n=e.length-1;n>=0;n--){const r=e[n];if(r.getMap()!==this||!r.getActive()||!this.getTargetElement())continue;if(!r.handleEvent(t)||t.propagationStopped)break}}}handlePostRender(){const t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){let n=this.maxTilesLoading_,r=n;if(t){const e=t.viewHints;if(e[ot.A.ANIMATING]||e[ot.A.INTERACTING]){const e=Date.now()-t.time>8;n=e?0:8,r=e?0:2}}e.getTilesLoading()<n&&(e.reprioritize(),e.loadMoreTiles(n,r))}t&&this.renderer_&&!t.animate&&(this.renderComplete_?(this.hasListener(x.A.RENDERCOMPLETE)&&this.renderer_.dispatchRenderEvent(x.A.RENDERCOMPLETE,t),!1===this.loaded_&&(this.loaded_=!0,this.dispatchEvent(new N(V,this,t)))):!0===this.loaded_&&(this.loaded_=!1,this.dispatchEvent(new N($,this,t))));const n=this.postRenderFunctions_;for(let r=0,i=n.length;r<i;++r)n[r](this,t);n.length=0}handleSizeChanged_(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()}handleTargetChanged_(){if(this.mapBrowserEventHandler_){for(let t=0,e=this.targetChangeHandlerKeys_.length;t<e;++t)(0,S.JH)(this.targetChangeHandlerKeys_[t]);this.targetChangeHandlerKeys_=null,this.viewport_.removeEventListener(C.A.CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(C.A.WHEEL,this.boundHandleBrowserEvent_),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,this.viewport_.remove()}if(this.targetElement_){this.resizeObserver_.unobserve(this.targetElement_);const t=this.targetElement_.getRootNode();t instanceof ShadowRoot&&this.resizeObserver_.unobserve(t.host),this.setSize(void 0)}const t=this.getTarget(),e="string"===typeof t?document.getElementById(t):t;if(this.targetElement_=e,e){e.appendChild(this.viewport_),this.renderer_||(this.renderer_=new T(this)),this.mapBrowserEventHandler_=new B(this,this.moveTolerance_);for(const e in j)this.mapBrowserEventHandler_.addEventListener(j[e],this.handleMapBrowserEvent.bind(this));let t;if(this.viewport_.addEventListener(C.A.CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(C.A.WHEEL,this.boundHandleBrowserEvent_,!!H.FT&&{passive:!1}),this.keyboardEventTarget_)t=this.keyboardEventTarget_;else{const n=e.getRootNode();t=n instanceof ShadowRoot?n.host:e}this.targetChangeHandlerKeys_=[(0,S.KT)(t,C.A.KEYDOWN,this.handleBrowserEvent,this),(0,S.KT)(t,C.A.KEYPRESS,this.handleBrowserEvent,this)];const n=e.getRootNode();n instanceof ShadowRoot&&this.resizeObserver_.observe(n.host),this.resizeObserver_.observe(e)}else this.renderer_&&(clearTimeout(this.postRenderTimeoutHandle_),this.postRenderTimeoutHandle_=void 0,this.postRenderFunctions_.length=0,this.renderer_.dispose(),this.renderer_=null),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0);this.updateSize()}handleTileChange_(){this.render()}handleViewPropertyChanged_(){this.render()}handleViewChanged_(){this.viewPropertyListenerKey_&&((0,S.JH)(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&((0,S.JH)(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);const t=this.getView();t&&(this.updateViewportSize_(this.getSize()),this.viewPropertyListenerKey_=(0,S.KT)(t,_.A.PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=(0,S.KT)(t,C.A.CHANGE,this.handleViewPropertyChanged_,this),t.resolveConstraints(0)),this.render()}handleLayerGroupChanged_(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(S.JH),this.layerGroupPropertyListenerKeys_=null);const t=this.getLayerGroup();t&&(this.handleLayerAdd_(new R("addlayer",t)),this.layerGroupPropertyListenerKeys_=[(0,S.KT)(t,_.A.PROPERTYCHANGE,this.render,this),(0,S.KT)(t,C.A.CHANGE,this.render,this),(0,S.KT)(t,"addlayer",this.handleLayerAdd_,this),(0,S.KT)(t,"removelayer",this.handleLayerRemove_,this)]),this.render()}isRendered(){return!!this.frameState_}animationDelay_(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}renderSync(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()}redrawText(){const t=this.getLayerGroup().getLayerStatesArray();for(let e=0,n=t.length;e<n;++e){const n=t[e].layer;n.hasRenderer()&&n.getRenderer().handleFontsChanged()}}render(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))}removeControl(t){return this.getControls().remove(t)}removeInteraction(t){return this.getInteractions().remove(t)}removeLayer(t){return this.getLayerGroup().getLayers().remove(t)}handleLayerRemove_(t){re(t.layer)}removeOverlay(t){return this.getOverlays().remove(t)}renderFrame_(t){const e=this.getSize(),n=this.getView(),r=this.frameState_;let i=null;if(void 0!==e&&(0,ee.Ie)(e)&&n&&n.isDef()){const r=n.getHints(this.frameState_?this.frameState_.viewHints:void 0),o=n.getState();if(i={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutter:null,extent:(0,h.Bg)(o.center,o.resolution,o.rotation,e),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:e,tileQueue:this.tileQueue_,time:t,usedTiles:{},viewState:o,viewHints:r,wantedTiles:{},mapId:(0,c.v6)(this),renderTargets:{}},o.nextCenter&&o.nextResolution){const t=isNaN(o.nextRotation)?o.rotation:o.nextRotation;i.nextExtent=(0,h.Bg)(o.nextCenter,o.nextResolution,t,e)}}if(this.frameState_=i,this.renderer_.renderFrame(i),i){if(i.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,i.postRenderFunctions),r){(!this.previousExtent_||!(0,h.Im)(this.previousExtent_)&&!(0,h.aI)(i.extent,this.previousExtent_))&&(this.dispatchEvent(new N(U,this,r)),this.previousExtent_=(0,h.aZ)(this.previousExtent_))}this.previousExtent_&&!i.viewHints[ot.A.ANIMATING]&&!i.viewHints[ot.A.INTERACTING]&&!(0,h.aI)(i.extent,this.previousExtent_)&&(this.dispatchEvent(new N(K,this,i)),(0,h.o8)(i.extent,this.previousExtent_))}this.dispatchEvent(new N(Y,this,i)),this.renderComplete_=(this.hasListener($)||this.hasListener(V)||this.hasListener(x.A.RENDERCOMPLETE))&&!this.tileQueue_.getTilesLoading()&&!this.tileQueue_.getCount()&&!this.getLoadingOrNotReady(),this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout((()=>{this.postRenderTimeoutHandle_=void 0,this.handlePostRender()}),0))}setLayerGroup(t){const e=this.getLayerGroup();e&&this.handleLayerRemove_(new R("removelayer",e)),this.set(X,t)}setSize(t){this.set(Z,t)}setTarget(t){this.set(J,t)}setView(t){if(!t||t instanceof it.Ay)return void this.set(Q,t);this.set(Q,new it.Ay);const e=this;t.then((function(t){e.setView(new it.Ay(t))}))}updateSize(){const t=this.getTargetElement();let e;if(t){const n=getComputedStyle(t),r=t.offsetWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.paddingLeft)-parseFloat(n.paddingRight)-parseFloat(n.borderRightWidth),i=t.offsetHeight-parseFloat(n.borderTopWidth)-parseFloat(n.paddingTop)-parseFloat(n.paddingBottom)-parseFloat(n.borderBottomWidth);isNaN(r)||isNaN(i)||(e=[Math.max(0,r),Math.max(0,i)],!(0,ee.Ie)(e)&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)&&(0,ne.R8)("No map visible because the map container's width or height are 0."))}const n=this.getSize();!e||n&&(0,lt.aI)(e,n)||(this.setSize(e),this.updateViewportSize_(e))}updateViewportSize_(t){const e=this.getView();e&&e.setViewportSize(t)}}const se=oe},38419:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(82526),i=n(81411),o=n(33277),s=n(62352),a=n(44835);class l extends r.Ay{constructor(t,e,n){super(t),this.key=e,this.oldValue=n}}class c extends o.A{constructor(t){super(),this.on,this.once,this.un,(0,s.v6)(this),this.values_=null,void 0!==t&&this.setProperties(t)}get(t){let e;return this.values_&&this.values_.hasOwnProperty(t)&&(e=this.values_[t]),e}getKeys(){return this.values_&&Object.keys(this.values_)||[]}getProperties(){return this.values_&&Object.assign({},this.values_)||{}}getPropertiesInternal(){return this.values_}hasProperties(){return!!this.values_}notify(t,e){let n;n=`change:${t}`,this.hasListener(n)&&this.dispatchEvent(new l(n,t,e)),n=i.A.PROPERTYCHANGE,this.hasListener(n)&&this.dispatchEvent(new l(n,t,e))}addChangeListener(t,e){this.addEventListener(`change:${t}`,e)}removeChangeListener(t,e){this.removeEventListener(`change:${t}`,e)}set(t,e,n){const r=this.values_||(this.values_={});if(n)r[t]=e;else{const n=r[t];r[t]=e,n!==e&&this.notify(t,n)}}setProperties(t,e){for(const n in t)this.set(n,t[n],e)}applyProperties(t){t.values_&&Object.assign(this.values_||(this.values_={}),t.values_)}unset(t,e){if(this.values_&&t in this.values_){const n=this.values_[t];delete this.values_[t],(0,a.p)(this.values_)&&(this.values_=null),e||this.notify(t,n)}}}const u=c},81411:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r={PROPERTYCHANGE:"propertychange"}},33277:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(58981),i=n(31990),o=n(78013);class s extends r.A{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(i.A.CHANGE)}getRevision(){return this.revision_}onInternal(t,e){if(Array.isArray(t)){const n=t.length,r=new Array(n);for(let i=0;i<n;++i)r[i]=(0,o.KT)(this,t[i],e);return r}return(0,o.KT)(this,t,e)}onceInternal(t,e){let n;if(Array.isArray(t)){const r=t.length;n=new Array(r);for(let i=0;i<r;++i)n[i]=(0,o.Jz)(this,t[i],e)}else n=(0,o.Jz)(this,t,e);return e.ol_key=n,n}unInternal(t,e){const n=e.ol_key;if(n)!function(t){if(Array.isArray(t))for(let e=0,n=t.length;e<n;++e)(0,o.JH)(t[e]);else(0,o.JH)(t)}(n);else if(Array.isArray(t))for(let r=0,i=t.length;r<i;++r)this.removeEventListener(t[r],e);else this.removeEventListener(t,e)}}s.prototype.on,s.prototype.once,s.prototype.un;const a=s},42528:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var r=n(58981),i=n(31990),o=n(34803),s=n(62352),a=n(86513);class l extends r.A{constructor(t,e,n){super(),n=n||{},this.tileCoord=t,this.state=e,this.key="",this.transition_=void 0===n.transition?250:n.transition,this.transitionStarts_={},this.interpolate=!!n.interpolate}changed(){this.dispatchEvent(i.A.CHANGE)}release(){this.state===o.A.ERROR&&this.setState(o.A.EMPTY)}getKey(){return this.key+"/"+this.tileCoord}getTileCoord(){return this.tileCoord}getState(){return this.state}setState(t){if(this.state!==o.A.ERROR&&this.state>t)throw new Error("Tile load sequence violation");this.state=t,this.changed()}load(){(0,s.b0)()}getAlpha(t,e){if(!this.transition_)return 1;let n=this.transitionStarts_[t];if(n){if(-1===n)return 1}else n=e,this.transitionStarts_[t]=n;const r=e-n+1e3/60;return r>=this.transition_?1:(0,a.a6)(r/this.transition_)}inTransition(t){return!!this.transition_&&-1!==this.transitionStarts_[t]}endTransition(t){this.transition_&&(this.transitionStarts_[t]=-1)}}const c=l},21439:(t,e,n)=>{"use strict";n.d(e,{A:()=>o,N:()=>i});class r{constructor(t,e,n,r){this.minX=t,this.maxX=e,this.minY=n,this.maxY=r}contains(t){return this.containsXY(t[1],t[2])}containsTileRange(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY}containsXY(t,e){return this.minX<=t&&t<=this.maxX&&this.minY<=e&&e<=this.maxY}equals(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY}extend(t){t.minX<this.minX&&(this.minX=t.minX),t.maxX>this.maxX&&(this.maxX=t.maxX),t.minY<this.minY&&(this.minY=t.minY),t.maxY>this.maxY&&(this.maxY=t.maxY)}getHeight(){return this.maxY-this.minY+1}getSize(){return[this.getWidth(),this.getHeight()]}getWidth(){return this.maxX-this.minX+1}intersects(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY}}function i(t,e,n,i,o){return void 0!==o?(o.minX=t,o.maxX=e,o.minY=n,o.maxY=i,o):new r(t,e,n,i)}const o=r},34803:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},42791:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>C});var r=n(38419),i=n(49428);const o={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"};var s=n(5418),a=n(77120),l=n(9931),c=n(97842),u=n(87393),h=n(53442);function d(t,e,n){return function(r,i,o,s,a){if(!r)return;if(!i&&!e)return r;const l=e?0:o[0]*i,c=e?0:o[1]*i,u=a?a[0]:0,d=a?a[1]:0;let f=t[0]+l/2+u,g=t[2]-l/2+u,p=t[1]+c/2+d,m=t[3]-c/2+d;f>g&&(f=(g+f)/2,g=f),p>m&&(p=(m+p)/2,m=p);let y=(0,h.qE)(r[0],f,g),_=(0,h.qE)(r[1],p,m);if(s&&n&&i){const t=30*i;y+=-t*Math.log(1+Math.max(0,f-r[0])/t)+t*Math.log(1+Math.max(0,r[0]-g)/t),_+=-t*Math.log(1+Math.max(0,p-r[1])/t)+t*Math.log(1+Math.max(0,r[1]-m)/t)}return[y,_]}}function f(t){return t}var g=n(49196),p=n(95635);function m(t,e,n,r){const i=(0,g.RG)(e)/n[0],o=(0,g.Oq)(e)/n[1];return r?Math.min(t,Math.max(i,o)):Math.min(t,Math.min(i,o))}function y(t,e,n){let r=Math.min(t,e);return r*=Math.log(1+50*Math.max(0,t/e-1))/50+1,n&&(r=Math.max(r,n),r/=Math.log(1+50*Math.max(0,n/t-1))/50+1),(0,h.qE)(r,n/2,2*e)}function _(t,e,n,r,i){return n=void 0===n||n,function(o,s,a,l){if(void 0!==o){const s=r?m(t,r,a,i):t;return n&&l?y(o,s,e):(0,h.qE)(o,e,s)}}}var v=n(17601),x=n(86513),w=n(57404);class b extends r.A{constructor(t){super(),this.on,this.once,this.un,t=Object.assign({},t),this.hints_=[0,0],this.animations_=[],this.updateAnimationKey_,this.projection_=(0,a.Av)(t.projection,"EPSG:3857"),this.viewportSize_=[100,100],this.targetCenter_=null,this.targetResolution_,this.targetRotation_,this.nextCenter_=null,this.nextResolution_,this.nextRotation_,this.cancelAnchor_=void 0,t.projection&&(0,a.RJ)(),t.center&&(t.center=(0,a.Ad)(t.center,this.projection_)),t.extent&&(t.extent=(0,a.SD)(t.extent,this.projection_)),this.applyOptions_(t)}applyOptions_(t){const e=Object.assign({},t);for(const s in o)delete e[s];this.setProperties(e,!0);const n=function(t){let e,n,r;const i=28,o=2;let l=void 0!==t.minZoom?t.minZoom:0,c=void 0!==t.maxZoom?t.maxZoom:i;const u=void 0!==t.zoomFactor?t.zoomFactor:o,d=void 0!==t.multiWorld&&t.multiWorld,f=void 0===t.smoothResolutionConstraint||t.smoothResolutionConstraint,v=void 0!==t.showFullExtent&&t.showFullExtent,x=(0,a.Av)(t.projection,"EPSG:3857"),w=x.getExtent();let b=t.constrainOnlyCenter,S=t.extent;d||S||!x.isGlobal()||(b=!1,S=w);if(void 0!==t.resolutions){const i=t.resolutions;n=i[l],r=void 0!==i[c]?i[c]:i[i.length-1],e=t.constrainResolution?function(t,e,n,r){return e=void 0===e||e,function(i,o,s,a){if(void 0!==i){const l=t[0],c=t[t.length-1],u=n?m(l,n,s,r):l;if(a)return e?y(i,u,c):(0,h.qE)(i,c,u);const d=Math.min(u,i),f=Math.floor((0,p.FT)(t,d,o));return t[f]>u&&f<t.length-1?t[f+1]:t[f]}}}(i,f,!b&&S,v):_(n,r,f,!b&&S,v)}else{const d=(w?Math.max((0,g.RG)(w),(0,g.Oq)(w)):360*a.Ig.degrees/x.getMetersPerUnit())/s.R/Math.pow(o,0),p=d/Math.pow(o,i-0);n=t.maxResolution,void 0!==n?l=0:n=d/Math.pow(u,l),r=t.minResolution,void 0===r&&(r=void 0!==t.maxZoom?void 0!==t.maxResolution?n/Math.pow(u,c):d/Math.pow(u,c):p),c=l+Math.floor(Math.log(n/r)/Math.log(u)),r=n/Math.pow(u,c-l),e=t.constrainResolution?function(t,e,n,r,i,o){return r=void 0===r||r,n=void 0!==n?n:0,function(s,a,l,c){if(void 0!==s){const u=i?m(e,i,l,o):e;if(c)return r?y(s,u,n):(0,h.qE)(s,n,u);const d=1e-9,f=Math.ceil(Math.log(e/u)/Math.log(t)-d),g=-a*(.5-d)+.5,p=Math.min(u,s),_=Math.floor(Math.log(e/p)/Math.log(t)+g),v=Math.max(f,_),x=e/Math.pow(t,v);return(0,h.qE)(x,n,u)}}}(u,n,r,f,!b&&S,v):_(n,r,f,!b&&S,v)}return{constraint:e,maxResolution:n,minResolution:r,minZoom:l,zoomFactor:u}}(t);this.maxResolution_=n.maxResolution,this.minResolution_=n.minResolution,this.zoomFactor_=n.zoomFactor,this.resolutions_=t.resolutions,this.padding_=t.padding,this.minZoom_=n.minZoom;const r=function(t){if(void 0!==t.extent){const e=void 0===t.smoothExtentConstraint||t.smoothExtentConstraint;return d(t.extent,t.constrainOnlyCenter,e)}const e=(0,a.Av)(t.projection,"EPSG:3857");if(!0!==t.multiWorld&&e.isGlobal()){const t=e.getExtent().slice();return t[0]=-1/0,t[2]=1/0,d(t,!1,!1)}return f}(t),i=n.constraint,l=function(t){const e=void 0===t.enableRotation||t.enableRotation;if(e){const e=t.constrainRotation;return void 0===e||!0===e?(0,v.cq)():!1===e?v.dv:"number"===typeof e?(0,v.a$)(e):v.dv}return v.b8}(t);this.constraints_={center:r,resolution:i,rotation:l},this.setRotation(void 0!==t.rotation?t.rotation:0),this.setCenterInternal(void 0!==t.center?t.center:null),void 0!==t.resolution?this.setResolution(t.resolution):void 0!==t.zoom&&this.setZoom(t.zoom)}get padding(){return this.padding_}set padding(t){let e=this.padding_;this.padding_=t;const n=this.getCenterInternal();if(n){const r=t||[0,0,0,0];e=e||[0,0,0,0];const i=this.getResolution(),o=i/2*(r[3]-e[3]+e[1]-r[1]),s=i/2*(r[0]-e[0]+e[2]-r[2]);this.setCenterInternal([n[0]+o,n[1]-s])}}getUpdatedOptions_(t){const e=this.getProperties();return void 0!==e.resolution?e.resolution=this.getResolution():e.zoom=this.getZoom(),e.center=this.getCenterInternal(),e.rotation=this.getRotation(),Object.assign({},e,t)}animate(t){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);const e=new Array(arguments.length);for(let n=0;n<e.length;++n){let t=arguments[n];t.center&&(t=Object.assign({},t),t.center=(0,a.Ad)(t.center,this.getProjection())),t.anchor&&(t=Object.assign({},t),t.anchor=(0,a.Ad)(t.anchor,this.getProjection())),e[n]=t}this.animateInternal.apply(this,e)}animateInternal(t){let e,n=arguments.length;n>1&&"function"===typeof arguments[n-1]&&(e=arguments[n-1],--n);let r=0;for(;r<n&&!this.isDef();++r){const t=arguments[r];t.center&&this.setCenterInternal(t.center),void 0!==t.zoom?this.setZoom(t.zoom):t.resolution&&this.setResolution(t.resolution),void 0!==t.rotation&&this.setRotation(t.rotation)}if(r===n)return void(e&&S(e,!0));let o=Date.now(),s=this.targetCenter_.slice(),a=this.targetResolution_,l=this.targetRotation_;const c=[];for(;r<n;++r){const t=arguments[r],n={start:o,complete:!1,anchor:t.anchor,duration:void 0!==t.duration?t.duration:1e3,easing:t.easing||x.T9,callback:e};if(t.center&&(n.sourceCenter=s,n.targetCenter=t.center.slice(),s=n.targetCenter),void 0!==t.zoom?(n.sourceResolution=a,n.targetResolution=this.getResolutionForZoom(t.zoom),a=n.targetResolution):t.resolution&&(n.sourceResolution=a,n.targetResolution=t.resolution,a=n.targetResolution),void 0!==t.rotation){n.sourceRotation=l;const e=(0,h.xP)(t.rotation-l+Math.PI,2*Math.PI)-Math.PI;n.targetRotation=l+e,l=n.targetRotation}E(n)?n.complete=!0:o+=n.duration,c.push(n)}this.animations_.push(c),this.setHint(i.A.ANIMATING,1),this.updateAnimations_()}getAnimating(){return this.hints_[i.A.ANIMATING]>0}getInteracting(){return this.hints_[i.A.INTERACTING]>0}cancelAnimations(){let t;this.setHint(i.A.ANIMATING,-this.hints_[i.A.ANIMATING]);for(let e=0,n=this.animations_.length;e<n;++e){const n=this.animations_[e];if(n[0].callback&&S(n[0].callback,!1),!t)for(let e=0,r=n.length;e<r;++e){const r=n[e];if(!r.complete){t=r.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=t,this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN}updateAnimations_(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),!this.getAnimating())return;const t=Date.now();let e=!1;for(let n=this.animations_.length-1;n>=0;--n){const r=this.animations_[n];let o=!0;for(let n=0,i=r.length;n<i;++n){const i=r[n];if(i.complete)continue;const s=t-i.start;let a=i.duration>0?s/i.duration:1;a>=1?(i.complete=!0,a=1):o=!1;const l=i.easing(a);if(i.sourceCenter){const t=i.sourceCenter[0],e=i.sourceCenter[1],n=i.targetCenter[0],r=i.targetCenter[1];this.nextCenter_=i.targetCenter;const o=t+l*(n-t),s=e+l*(r-e);this.targetCenter_=[o,s]}if(i.sourceResolution&&i.targetResolution){const t=1===l?i.targetResolution:i.sourceResolution+l*(i.targetResolution-i.sourceResolution);if(i.anchor){const e=this.getViewportSize_(this.getRotation()),n=this.constraints_.resolution(t,0,e,!0);this.targetCenter_=this.calculateCenterZoom(n,i.anchor)}this.nextResolution_=i.targetResolution,this.targetResolution_=t,this.applyTargetState_(!0)}if(void 0!==i.sourceRotation&&void 0!==i.targetRotation){const t=1===l?(0,h.xP)(i.targetRotation+Math.PI,2*Math.PI)-Math.PI:i.sourceRotation+l*(i.targetRotation-i.sourceRotation);if(i.anchor){const e=this.constraints_.rotation(t,!0);this.targetCenter_=this.calculateCenterRotate(e,i.anchor)}this.nextRotation_=i.targetRotation,this.targetRotation_=t}if(this.applyTargetState_(!0),e=!0,!i.complete)break}if(o){this.animations_[n]=null,this.setHint(i.A.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const t=r[0].callback;t&&S(t,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(t,e){let n;const r=this.getCenterInternal();return void 0!==r&&(n=[r[0]-e[0],r[1]-e[1]],(0,c.e$)(n,t-this.getRotation()),(0,c.WQ)(n,e)),n}calculateCenterZoom(t,e){let n;const r=this.getCenterInternal(),i=this.getResolution();if(void 0!==r&&void 0!==i){n=[e[0]-t*(e[0]-r[0])/i,e[1]-t*(e[1]-r[1])/i]}return n}getViewportSize_(t){const e=this.viewportSize_;if(t){const n=e[0],r=e[1];return[Math.abs(n*Math.cos(t))+Math.abs(r*Math.sin(t)),Math.abs(n*Math.sin(t))+Math.abs(r*Math.cos(t))]}return e}setViewportSize(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){const t=this.getCenterInternal();return t?(0,a.te)(t,this.getProjection()):t}getCenterInternal(){return this.get(o.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()}calculateExtent(t){const e=this.calculateExtentInternal(t);return(0,a.JR)(e,this.getProjection())}calculateExtentInternal(t){t=t||this.getViewportSizeMinusPadding_();const e=this.getCenterInternal();(0,u.v)(e,"The view center is not defined");const n=this.getResolution();(0,u.v)(void 0!==n,"The view resolution is not defined");const r=this.getRotation();return(0,u.v)(void 0!==r,"The view rotation is not defined"),(0,g.Bg)(e,n,r,t)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))}setConstrainResolution(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))}getProjection(){return this.projection_}getResolution(){return this.get(o.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(t,e){return this.getResolutionForExtentInternal((0,a.SD)(t,this.getProjection()),e)}getResolutionForExtentInternal(t,e){e=e||this.getViewportSizeMinusPadding_();const n=(0,g.RG)(t)/e[0],r=(0,g.Oq)(t)/e[1];return Math.max(n,r)}getResolutionForValueFunction(t){t=t||2;const e=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,r=Math.log(e/n)/Math.log(t);return function(n){return e/Math.pow(t,n*r)}}getRotation(){return this.get(o.ROTATION)}getValueForResolutionFunction(t){const e=Math.log(t||2),n=this.getConstrainedResolution(this.maxResolution_),r=this.minResolution_,i=Math.log(n/r)/e;return function(t){return Math.log(n/t)/e/i}}getViewportSizeMinusPadding_(t){let e=this.getViewportSize_(t);const n=this.padding_;return n&&(e=[e[0]-n[1]-n[3],e[1]-n[0]-n[2]]),e}getState(){const t=this.getProjection(),e=this.getResolution(),n=this.getRotation();let r=this.getCenterInternal();const i=this.padding_;if(i){const t=this.getViewportSizeMinusPadding_();r=T(r,this.getViewportSize_(),[t[0]/2+i[3],t[1]/2+i[0]],e,n)}return{center:r.slice(0),projection:void 0!==t?t:null,resolution:e,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:n,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let t;const e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t}getZoomForResolution(t){let e,n,r=this.minZoom_||0;if(this.resolutions_){const i=(0,p.FT)(this.resolutions_,t,1);r=i,e=this.resolutions_[i],n=i==this.resolutions_.length-1?2:e/this.resolutions_[i+1]}else e=this.maxResolution_,n=this.zoomFactor_;return r+Math.log(e/t)/Math.log(n)}getResolutionForZoom(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;const e=(0,h.qE)(Math.floor(t),0,this.resolutions_.length-2),n=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(n,(0,h.qE)(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)}fit(t,e){let n;if((0,u.v)(Array.isArray(t)||"function"===typeof t.getSimplifiedGeometry,"Invalid extent or geometry provided as `geometry`"),Array.isArray(t)){(0,u.v)(!(0,g.Im)(t),"Cannot fit empty extent provided as `geometry`");const e=(0,a.SD)(t,this.getProjection());n=(0,w.VY)(e)}else if("Circle"===t.getType()){const e=(0,a.SD)(t.getExtent(),this.getProjection());n=(0,w.VY)(e),n.rotate(this.getRotation(),(0,g.q1)(e))}else{const e=(0,a.Tf)();n=e?t.clone().transform(e,this.getProjection()):t}this.fitInternal(n,e)}rotatedExtentForGeometry(t){const e=this.getRotation(),n=Math.cos(e),r=Math.sin(-e),i=t.getFlatCoordinates(),o=t.getStride();let s=1/0,a=1/0,l=-1/0,c=-1/0;for(let u=0,h=i.length;u<h;u+=o){const t=i[u]*n-i[u+1]*r,e=i[u]*r+i[u+1]*n;s=Math.min(s,t),a=Math.min(a,e),l=Math.max(l,t),c=Math.max(c,e)}return[s,a,l,c]}fitInternal(t,e){let n=(e=e||{}).size;n||(n=this.getViewportSizeMinusPadding_());const r=void 0!==e.padding?e.padding:[0,0,0,0],i=void 0!==e.nearest&&e.nearest;let o;o=void 0!==e.minResolution?e.minResolution:void 0!==e.maxZoom?this.getResolutionForZoom(e.maxZoom):0;const s=this.rotatedExtentForGeometry(t);let a=this.getResolutionForExtentInternal(s,[n[0]-r[1]-r[3],n[1]-r[0]-r[2]]);a=isNaN(a)?o:Math.max(a,o),a=this.getConstrainedResolution(a,i?0:1);const c=this.getRotation(),u=Math.sin(c),h=Math.cos(c),d=(0,g.q1)(s);d[0]+=(r[1]-r[3])/2*a,d[1]+=(r[0]-r[2])/2*a;const f=d[0]*h-d[1]*u,p=d[1]*h+d[0]*u,m=this.getConstrainedCenter([f,p],a),y=e.callback?e.callback:l.tV;void 0!==e.duration?this.animateInternal({resolution:a,center:m,duration:e.duration,easing:e.easing},y):(this.targetResolution_=a,this.targetCenter_=m,this.applyTargetState_(!1,!0),S(y,!0))}centerOn(t,e,n){this.centerOnInternal((0,a.Ad)(t,this.getProjection()),e,n)}centerOnInternal(t,e,n){this.setCenterInternal(T(t,e,n,this.getResolution(),this.getRotation()))}calculateCenterShift(t,e,n,r){let i;const o=this.padding_;if(o&&t){const s=this.getViewportSizeMinusPadding_(-n),a=T(t,r,[s[0]/2+o[3],s[1]/2+o[0]],e,n);i=[t[0]-a[0],t[1]-a[1]]}return i}isDef(){return!!this.getCenterInternal()&&void 0!==this.getResolution()}adjustCenter(t){const e=(0,a.te)(this.targetCenter_,this.getProjection());this.setCenter([e[0]+t[0],e[1]+t[1]])}adjustCenterInternal(t){const e=this.targetCenter_;this.setCenterInternal([e[0]+t[0],e[1]+t[1]])}adjustResolution(t,e){e=e&&(0,a.Ad)(e,this.getProjection()),this.adjustResolutionInternal(t,e)}adjustResolutionInternal(t,e){const n=this.getAnimating()||this.getInteracting(),r=this.getViewportSize_(this.getRotation()),i=this.constraints_.resolution(this.targetResolution_*t,0,r,n);e&&(this.targetCenter_=this.calculateCenterZoom(i,e)),this.targetResolution_*=t,this.applyTargetState_()}adjustZoom(t,e){this.adjustResolution(Math.pow(this.zoomFactor_,-t),e)}adjustRotation(t,e){e&&(e=(0,a.Ad)(e,this.getProjection())),this.adjustRotationInternal(t,e)}adjustRotationInternal(t,e){const n=this.getAnimating()||this.getInteracting(),r=this.constraints_.rotation(this.targetRotation_+t,n);e&&(this.targetCenter_=this.calculateCenterRotate(r,e)),this.targetRotation_+=t,this.applyTargetState_()}setCenter(t){this.setCenterInternal(t?(0,a.Ad)(t,this.getProjection()):t)}setCenterInternal(t){this.targetCenter_=t,this.applyTargetState_()}setHint(t,e){return this.hints_[t]+=e,this.changed(),this.hints_[t]}setResolution(t){this.targetResolution_=t,this.applyTargetState_()}setRotation(t){this.targetRotation_=t,this.applyTargetState_()}setZoom(t){this.setResolution(this.getResolutionForZoom(t))}applyTargetState_(t,e){const n=this.getAnimating()||this.getInteracting()||e,r=this.constraints_.rotation(this.targetRotation_,n),i=this.getViewportSize_(r),s=this.constraints_.resolution(this.targetResolution_,0,i,n),a=this.constraints_.center(this.targetCenter_,s,i,n,this.calculateCenterShift(this.targetCenter_,s,r,i));this.get(o.ROTATION)!==r&&this.set(o.ROTATION,r),this.get(o.RESOLUTION)!==s&&(this.set(o.RESOLUTION,s),this.set("zoom",this.getZoom(),!0)),a&&this.get(o.CENTER)&&(0,c.aI)(this.get(o.CENTER),a)||this.set(o.CENTER,a),this.getAnimating()&&!t&&this.cancelAnimations(),this.cancelAnchor_=void 0}resolveConstraints(t,e,n){t=void 0!==t?t:200;const r=e||0,i=this.constraints_.rotation(this.targetRotation_),o=this.getViewportSize_(i),s=this.constraints_.resolution(this.targetResolution_,r,o),a=this.constraints_.center(this.targetCenter_,s,o,!1,this.calculateCenterShift(this.targetCenter_,s,i,o));if(0===t&&!this.cancelAnchor_)return this.targetResolution_=s,this.targetRotation_=i,this.targetCenter_=a,void this.applyTargetState_();n=n||(0===t?this.cancelAnchor_:void 0),this.cancelAnchor_=void 0,this.getResolution()===s&&this.getRotation()===i&&this.getCenterInternal()&&(0,c.aI)(this.getCenterInternal(),a)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:i,center:a,resolution:s,duration:t,easing:x.vT,anchor:n}))}beginInteraction(){this.resolveConstraints(0),this.setHint(i.A.INTERACTING,1)}endInteraction(t,e,n){n=n&&(0,a.Ad)(n,this.getProjection()),this.endInteractionInternal(t,e,n)}endInteractionInternal(t,e,n){this.getInteracting()&&(this.setHint(i.A.INTERACTING,-1),this.resolveConstraints(t,e,n))}getConstrainedCenter(t,e){const n=this.getViewportSize_(this.getRotation());return this.constraints_.center(t,e||this.getResolution(),n)}getConstrainedZoom(t,e){const n=this.getResolutionForZoom(t);return this.getZoomForResolution(this.getConstrainedResolution(n,e))}getConstrainedResolution(t,e){e=e||0;const n=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(t,e,n)}}function S(t,e){setTimeout((function(){t(e)}),0)}function E(t){return!(t.sourceCenter&&t.targetCenter&&!(0,c.aI)(t.sourceCenter,t.targetCenter))&&(t.sourceResolution===t.targetResolution&&t.sourceRotation===t.targetRotation)}function T(t,e,n,r,i){const o=Math.cos(-i);let s=Math.sin(-i),a=t[0]*o-t[1]*s,l=t[1]*o+t[0]*s;a+=(e[0]/2-n[0])*r,l+=(n[1]-e[1]/2)*r,s=-s;return[a*o-l*s,l*o+a*s]}const C=b},49428:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r={ANIMATING:0,INTERACTING:1}},95635:(t,e,n)=>{"use strict";function r(t,e,n){let r,o;n=n||i;let s=0,a=t.length,l=!1;for(;s<a;)r=s+(a-s>>1),o=+n(t[r],e),o<0?s=r+1:(a=r,l=!o);return l?s:~s}function i(t,e){return t>e?1:t<e?-1:0}function o(t,e,n){if(t[0]<=e)return 0;const r=t.length;if(e<=t[r-1])return r-1;if("function"===typeof n){for(let i=1;i<r;++i){const r=t[i];if(r===e)return i;if(r<e)return n(e,t[i-1],r)>0?i-1:i}return r-1}if(n>0){for(let n=1;n<r;++n)if(t[n]<e)return n-1;return r-1}if(n<0){for(let n=1;n<r;++n)if(t[n]<=e)return n;return r-1}for(let i=1;i<r;++i){if(t[i]==e)return i;if(t[i]<e)return t[i-1]-e<e-t[i]?i-1:i}return r-1}function s(t,e,n){for(;e<n;){const r=t[e];t[e]=t[n],t[n]=r,++e,--n}}function a(t,e){const n=Array.isArray(e)?e:[e],r=n.length;for(let i=0;i<r;i++)t[t.length]=n[i]}function l(t,e){const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function c(t,e,n){const r=e||i;return t.every((function(e,i){if(0===i)return!0;const o=r(t[i-1],e);return!(o>0||n&&0===o)}))}n.d(e,{El:()=>r,FT:()=>o,V_:()=>i,WC:()=>c,X$:()=>a,aI:()=>l,gI:()=>s})},87393:(t,e,n)=>{"use strict";function r(t,e){if(!t)throw new Error(e)}n.d(e,{v:()=>r})},9352:(t,e,n)=>{"use strict";n.d(e,{qV:()=>g,_j:()=>S,oJ:()=>p,sH:()=>b,cD:()=>w,S8:()=>E,eE:()=>x,dI:()=>T,fu:()=>v});const r={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]};var i={name:"xyz",min:[0,0,0],channel:["X","Y","Z"],alias:["XYZ","ciexyz","cie1931"],whitepoint:{2:{A:[109.85,100,35.585],C:[98.074,100,118.232],D50:[96.422,100,82.521],D55:[95.682,100,92.149],D65:[95.045592705167,100,108.9057750759878],D75:[94.972,100,122.638],F2:[99.187,100,67.395],F7:[95.044,100,108.755],F11:[100.966,100,64.37],E:[100,100,100]},10:{A:[111.144,100,35.2],C:[97.285,100,116.145],D50:[96.72,100,81.427],D55:[95.799,100,90.926],D65:[94.811,100,107.304],D75:[94.416,100,120.641],F2:[103.28,100,69.026],F7:[95.792,100,107.687],F11:[103.866,100,65.627],E:[100,100,100]}}};i.max=i.whitepoint[2].D65,i.rgb=function(t,e){e=e||i.whitepoint[2].E;var n,r,o,s=t[0]/e[0],a=t[1]/e[1],l=t[2]/e[2];return r=-.96924363628087*s+1.87596750150772*a+.041555057407175*l,o=.055630079696993*s+-.20397695888897*a+1.056971514242878*l,n=(n=3.240969941904521*s+-1.537383177570093*a+-.498610760293*l)>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r*=12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*=12.92,[255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1)),255*(o=Math.min(Math.max(0,o),1))]},r.xyz=function(t,e){var n=t[0]/255,r=t[1]/255,o=t[2]/255,s=.21263900587151*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.71516867876775*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.072192315360733*(o=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92),a=.019330818715591*n+.11919477979462*r+.95053215224966*o;return[(.41239079926595*n+.35758433938387*r+.18048078840183*o)*(e=e||i.whitepoint[2].E)[0],s*e[1],a*e[2]]};const o=i,s={name:"luv",min:[0,-134,-140],max:[100,224,122],channel:["lightness","u","v"],alias:["LUV","cieluv","cie1976"],xyz:function(t,e,n){var r,i,s,a,l,c,u,h,d;if(s=t[0],a=t[1],l=t[2],0===s)return[0,0,0];return e=e||"D65",n=n||2,r=a/(13*s)+4*(u=o.whitepoint[n][e][0])/(u+15*(h=o.whitepoint[n][e][1])+3*(d=o.whitepoint[n][e][2]))||0,i=l/(13*s)+9*h/(u+15*h+3*d)||0,[9*(c=s>8?h*Math.pow((s+16)/116,3):h*s*.0011070564598794539)*r/(4*i)||0,c,c*(12-3*r-20*i)/(4*i)||0]}};o.luv=function(t,e,n){var r,i,s,a,l,c,u,h,d,f,g;e=e||"D65",n=n||2,f=4*(u=o.whitepoint[n][e][0])/(u+15*(h=o.whitepoint[n][e][1])+3*(d=o.whitepoint[n][e][2])),g=9*h/(u+15*h+3*d),r=4*(a=t[0])/(a+15*(l=t[1])+3*(c=t[2]))||0,i=9*l/(a+15*l+3*c)||0;var p=l/h;return[s=p<=.008856451679035631?903.2962962962961*p:116*Math.pow(p,1/3)-16,13*s*(r-f),13*s*(i-g)]};var a={name:"lchuv",channel:["lightness","chroma","hue"],alias:["LCHuv","cielchuv"],min:[0,0,0],max:[100,100,360],luv:function(t){var e,n=t[0],r=t[1];return e=t[2]/360*2*Math.PI,[n,r*Math.cos(e),r*Math.sin(e)]},xyz:function(t){return s.xyz(a.luv(t))}};const l=a;s.lchuv=function(t){var e=t[0],n=t[1],r=t[2],i=Math.sqrt(n*n+r*r),o=360*Math.atan2(r,n)/2/Math.PI;return o<0&&(o+=360),[e,i,o]},o.lchuv=function(t){return s.lchuv(o.luv(t))};const c={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},u=function(t){var e,n,r=[],i=1;if("number"===typeof t)return{space:"rgb",values:[t>>>16,(65280&t)>>>8,255&t],alpha:1};if("number"===typeof t)return{space:"rgb",values:[t>>>16,(65280&t)>>>8,255&t],alpha:1};if(t=String(t).toLowerCase(),c[t])r=c[t].slice(),n="rgb";else if("transparent"===t)i=0,n="rgb",r=[0,0,0];else if("#"===t[0]){var o=t.slice(1),s=o.length;i=1,s<=4?(r=[parseInt(o[0]+o[0],16),parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16)],4===s&&(i=parseInt(o[3]+o[3],16)/255)):(r=[parseInt(o[0]+o[1],16),parseInt(o[2]+o[3],16),parseInt(o[4]+o[5],16)],8===s&&(i=parseInt(o[6]+o[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),n="rgb"}else if(e=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(t)){var a=e[1],l="cmyk"===(n=a.replace(/a$/,""))?4:"gray"===n?1:3;r=e[2].trim().split(/\s*[,\/]\s*|\s+/),"color"===n&&(n=r.shift()),i=(r=r.map((function(t,e){if("%"===t[t.length-1])return t=parseFloat(t)/100,3===e?t:"rgb"===n?255*t:"h"===n[0]?100*t:"l"!==n[0]||e?"lab"===n?125*t:"lch"===n?e<2?150*t:360*t:"o"!==n[0]||e?"oklab"===n?.4*t:"oklch"===n?e<2?.4*t:360*t:t:t:100*t;if("h"===n[e]||2===e&&"h"===n[n.length-1]){if(void 0!==h[t])return h[t];if(t.endsWith("deg"))return parseFloat(t);if(t.endsWith("turn"))return 360*parseFloat(t);if(t.endsWith("grad"))return 360*parseFloat(t)/400;if(t.endsWith("rad"))return 180*parseFloat(t)/Math.PI}return"none"===t?0:parseFloat(t)}))).length>l?r.pop():1}else/[0-9](?:\s|\/|,)/.test(t)&&(r=t.match(/([0-9]+)/g).map((function(t){return parseFloat(t)})),n=t.match(/([a-z])/gi)?.join("")?.toLowerCase()||"rgb");return{space:n,values:r,alpha:i}};var h={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};const d={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(t){var e,n,r,i,o,s=t[0]/360,a=t[1]/100,l=t[2]/100,c=0;if(0===a)return[o=255*l,o,o];for(e=2*l-(n=l<.5?l*(1+a):l+a-l*a),i=[0,0,0];c<3;)(r=s+1/3*-(c-1))<0?r++:r>1&&r--,o=6*r<1?e+6*(n-e)*r:2*r<1?n:3*r<2?e+(n-e)*(2/3-r)*6:e,i[c++]=255*o;return i}};r.hsl=function(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,s=Math.min(r,i,o),a=Math.max(r,i,o),l=a-s;return a===s?e=0:r===a?e=(i-o)/l:i===a?e=2+(o-r)/l:o===a&&(e=4+(r-i)/l),(e=Math.min(60*e,360))<0&&(e+=360),n=(s+a)/2,[e,100*(a===s?0:n<=.5?l/(a+s):l/(2-a-s)),100*n]};var f=n(53442);const g=[NaN,NaN,NaN,0];function p(t){return"string"===typeof t?t:T(t)}const m=1024,y={};let _=0;function v(t){if(4===t.length)return t;const e=t.slice();return e[3]=1,e}function x(t){const e=o.lchuv(r.xyz(t));return e[3]=t[3],e}function w(t){const e=o.rgb(l.xyz(t));return e[3]=t[3],e}function b(t){if("none"===t)return g;if(y.hasOwnProperty(t))return y[t];if(_>=m){let t=0;for(const e in y)0===(3&t++)&&(delete y[e],--_)}const e=function(t){var e;Array.isArray(t)&&t.raw&&(t=String.raw(...arguments)),t instanceof Number&&(t=+t);var n=u(t);if(!n.space)return[];const i="h"===n.space[0]?d.min:r.min,o="h"===n.space[0]?d.max:r.max;return(e=Array(3))[0]=Math.min(Math.max(n.values[0],i[0]),o[0]),e[1]=Math.min(Math.max(n.values[1],i[1]),o[1]),e[2]=Math.min(Math.max(n.values[2],i[2]),o[2]),"h"===n.space[0]&&(e=d.rgb(e)),e.push(Math.min(Math.max(n.alpha,0),1)),e}(t);if(4!==e.length)throw new Error('failed to parse "'+t+'" as color');for(const n of e)if(isNaN(n))throw new Error('failed to parse "'+t+'" as color');return E(e),y[t]=e,++_,e}function S(t){return Array.isArray(t)?t:b(t)}function E(t){return t[0]=(0,f.qE)(t[0]+.5|0,0,255),t[1]=(0,f.qE)(t[1]+.5|0,0,255),t[2]=(0,f.qE)(t[2]+.5|0,0,255),t[3]=(0,f.qE)(t[3],0,1),t}function T(t){let e=t[0];e!=(0|e)&&(e=e+.5|0);let n=t[1];n!=(0|n)&&(n=n+.5|0);let r=t[2];r!=(0|r)&&(r=r+.5|0);return"rgba("+e+","+n+","+r+","+(void 0===t[3]?1:Math.round(1e3*t[3])/1e3)+")"}},13422:(t,e,n)=>{"use strict";n.d(e,{F:()=>l});var r=n(9994),i=n(69710),o=n(38542),s=n(3358),a=n(9352);function l(t){return t?Array.isArray(t)?(0,a.dI)(t):"object"===typeof t&&"src"in t?function(t){if(!t.offset||!t.size)return s.ue.getPattern(t.src,"anonymous",t.color);const e=t.src+":"+t.offset,n=s.ue.getPattern(e,void 0,t.color);if(n)return n;const a=s.ue.get(t.src,"anonymous",null);if(a.getImageState()!==r.A.LOADED)return null;const l=(0,i.Y)(t.size[0],t.size[1]);return l.drawImage(a.getImage(1),t.offset[0],t.offset[1],t.size[0],t.size[1],0,0,t.size[0],t.size[1]),(0,o.J)(l.canvas,e,void 0,r.A.LOADED,t.color,!0),s.ue.getPattern(e,void 0,t.color)}(t):t:null}},62643:(t,e,n)=>{"use strict";n.d(e,{R8:()=>o});const r={info:1,warn:2,error:3,none:4};let i=r.info;function o(){i>r.warn||console.warn(...arguments)}},97842:(t,e,n)=>{"use strict";n.d(e,{Li:()=>l,WQ:()=>i,aI:()=>o,e$:()=>s,hs:()=>a});var r=n(49196);function i(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function o(t,e){let n=!0;for(let r=t.length-1;r>=0;--r)if(t[r]!=e[r]){n=!1;break}return n}function s(t,e){const n=Math.cos(e),r=Math.sin(e),i=t[0]*n-t[1]*r,o=t[1]*n+t[0]*r;return t[0]=i,t[1]=o,t}function a(t,e){return t[0]*=e,t[1]*=e,t}function l(t,e){if(e.canWrapX()){const n=(0,r.RG)(e.getExtent()),i=function(t,e,n){const i=e.getExtent();let o=0;e.canWrapX()&&(t[0]<i[0]||t[0]>i[2])&&(n=n||(0,r.RG)(i),o=Math.floor((t[0]-i[0])/n));return o}(t,e,n);i&&(t[0]-=i*n)}return t}},80901:(t,e,n)=>{"use strict";n.d(e,{$N:()=>o,K5:()=>c,Si:()=>r,XI:()=>i,nT:()=>s});const r="ol-hidden",i="ol-unselectable",o="ol-control",s="ol-collapsed",a=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),l=["style","variant","weight","size","lineHeight","family"],c=function(t){const e=t.match(a);if(!e)return null;const n={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let r=0,i=l.length;r<i;++r){const t=e[r+1];void 0!==t&&(n[l[r]]=t)}return n.families=n.family.split(/,\s?/),n}},69710:(t,e,n)=>{"use strict";n.d(e,{WM:()=>u,Y:()=>i,Yg:()=>a,fo:()=>l,gS:()=>c,lr:()=>s});var r=n(51070);function i(t,e,n,i){let o;return o=n&&n.length?n.shift():r.Wl?new OffscreenCanvas(t||300,e||300):document.createElement("canvas"),t&&(o.width=t),e&&(o.height=e),o.getContext("2d",i)}let o;function s(){return o||(o=i(1,1)),o}function a(t){const e=t.canvas;e.width=1,e.height=1,t.clearRect(0,0,1,1)}function l(t,e){const n=e.parentNode;n&&n.replaceChild(t,e)}function c(t){for(;t.lastChild;)t.lastChild.remove()}function u(t,e){const n=t.childNodes;for(let r=0;;++r){const i=n[r],o=e[r];if(!i&&!o)break;i!==o&&(i?o?t.insertBefore(o,i):(t.removeChild(i),--r):t.appendChild(o))}}},86513:(t,e,n)=>{"use strict";function r(t){return Math.pow(t,3)}function i(t){return 1-r(1-t)}function o(t){return 3*t*t-2*t*t*t}function s(t){return t}n.d(e,{T9:()=>o,a6:()=>r,sn:()=>s,vT:()=>i})},78013:(t,e,n)=>{"use strict";n.d(e,{JH:()=>s,Jz:()=>o,KT:()=>i});var r=n(44835);function i(t,e,n,r,i){if(i){const i=n;n=function(){t.removeEventListener(e,n),i.apply(r??this,arguments)}}else r&&r!==t&&(n=n.bind(r));const o={target:t,type:e,listener:n};return t.addEventListener(e,n),o}function o(t,e,n,r){return i(t,e,n,r,!0)}function s(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),(0,r.I)(t))}},82526:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>r});const r=class{constructor(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}},31990:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"}},58981:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var r=n(19758),i=n(82526),o=n(9931),s=n(44835);class a extends r.A{constructor(t){super(),this.eventTarget_=t,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(t,e){if(!t||!e)return;const n=this.listeners_||(this.listeners_={}),r=n[t]||(n[t]=[]);r.includes(e)||r.push(e)}dispatchEvent(t){const e="string"===typeof t,n=e?t:t.type,r=this.listeners_&&this.listeners_[n];if(!r)return;const s=e?new i.Ay(t):t;s.target||(s.target=this.eventTarget_||this);const a=this.dispatching_||(this.dispatching_={}),l=this.pendingRemovals_||(this.pendingRemovals_={});let c;n in a||(a[n]=0,l[n]=0),++a[n];for(let i=0,o=r.length;i<o;++i)if(c="handleEvent"in r[i]?r[i].handleEvent(s):r[i].call(this,s),!1===c||s.propagationStopped){c=!1;break}if(0===--a[n]){let t=l[n];for(delete l[n];t--;)this.removeEventListener(n,o.tV);delete a[n]}return c}disposeInternal(){this.listeners_&&(0,s.I)(this.listeners_)}getListeners(t){return this.listeners_&&this.listeners_[t]||void 0}hasListener(t){return!!this.listeners_&&(t?t in this.listeners_:Object.keys(this.listeners_).length>0)}removeEventListener(t,e){if(!this.listeners_)return;const n=this.listeners_[t];if(!n)return;const r=n.indexOf(e);-1!==r&&(this.pendingRemovals_&&t in this.pendingRemovals_?(n[r]=o.tV,++this.pendingRemovals_[t]):(n.splice(r,1),0===n.length&&delete this.listeners_[t]))}}const l=a},49196:(t,e,n)=>{"use strict";n.d(e,{$C:()=>v,$u:()=>N,Bg:()=>k,HY:()=>P,Im:()=>L,Ld:()=>a,Li:()=>z,Mx:()=>F,N:()=>f,NW:()=>j,Oq:()=>O,Py:()=>R,QJ:()=>G,R:()=>E,R8:()=>x,RG:()=>M,Rj:()=>u,S5:()=>d,Tr:()=>i,UG:()=>S,Vy:()=>m,WU:()=>D,X$:()=>_,Ym:()=>l,_N:()=>A,aI:()=>y,aZ:()=>g,dP:()=>p,k_:()=>T,ms:()=>c,o8:()=>s,q1:()=>C,qF:()=>I,r:()=>o,sB:()=>b,vz:()=>h});var r=n(46833);function i(t){const e=d();for(let n=0,r=t.length;n<r;++n)v(e,t[n]);return e}function o(t,e,n){return n?(n[0]=t[0]-e,n[1]=t[1]-e,n[2]=t[2]+e,n[3]=t[3]+e,n):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function s(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function a(t,e,n){let r,i;return r=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0,i=n<t[1]?t[1]-n:t[3]<n?n-t[3]:0,r*r+i*i}function l(t,e){return u(t,e[0],e[1])}function c(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function u(t,e,n){return t[0]<=e&&e<=t[2]&&t[1]<=n&&n<=t[3]}function h(t,e){const n=t[0],i=t[1],o=t[2],s=t[3],a=e[0],l=e[1];let c=r.A.UNKNOWN;return a<n?c|=r.A.LEFT:a>o&&(c|=r.A.RIGHT),l<i?c|=r.A.BELOW:l>s&&(c|=r.A.ABOVE),c===r.A.UNKNOWN&&(c=r.A.INTERSECTING),c}function d(){return[1/0,1/0,-1/0,-1/0]}function f(t,e,n,r,i){return i?(i[0]=t,i[1]=e,i[2]=n,i[3]=r,i):[t,e,n,r]}function g(t){return f(1/0,1/0,-1/0,-1/0,t)}function p(t,e){const n=t[0],r=t[1];return f(n,r,n,r,e)}function m(t,e,n,r,i){return x(g(i),t,e,n,r)}function y(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function _(t,e){return e[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3]),t}function v(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function x(t,e,n,r,i){for(;n<r;n+=i)w(t,e[n],e[n+1]);return t}function w(t,e,n){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],n),t[2]=Math.max(t[2],e),t[3]=Math.max(t[3],n)}function b(t,e){let n;return n=e(E(t)),n||(n=e(T(t)),n||(n=e(D(t)),n||(n=e(R(t)),n||!1)))}function S(t){let e=0;return L(t)||(e=M(t)*O(t)),e}function E(t){return[t[0],t[1]]}function T(t){return[t[2],t[1]]}function C(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function I(t,e){let n;if("bottom-left"===e)n=E(t);else if("bottom-right"===e)n=T(t);else if("top-left"===e)n=R(t);else{if("top-right"!==e)throw new Error("Invalid corner");n=D(t)}return n}function k(t,e,n,r,i){const[o,s,a,l,c,u,h,d]=function(t,e,n,r){const i=e*r[0]/2,o=e*r[1]/2,s=Math.cos(n),a=Math.sin(n),l=i*s,c=i*a,u=o*s,h=o*a,d=t[0],f=t[1];return[d-l+h,f-c-u,d-l-h,f-c+u,d+l-h,f+c+u,d+l+h,f+c-u,d-l+h,f-c-u]}(t,e,n,r);return f(Math.min(o,a,c,h),Math.min(s,l,u,d),Math.max(o,a,c,h),Math.max(s,l,u,d),i)}function O(t){return t[3]-t[1]}function A(t,e,n){const r=n||[1/0,1/0,-1/0,-1/0];return P(t,e)?(t[0]>e[0]?r[0]=t[0]:r[0]=e[0],t[1]>e[1]?r[1]=t[1]:r[1]=e[1],t[2]<e[2]?r[2]=t[2]:r[2]=e[2],t[3]<e[3]?r[3]=t[3]:r[3]=e[3]):g(r),r}function R(t){return[t[0],t[3]]}function D(t){return[t[2],t[3]]}function M(t){return t[2]-t[0]}function P(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function L(t){return t[2]<t[0]||t[3]<t[1]}function N(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t}function F(t,e,n){let i=!1;const o=h(t,e),s=h(t,n);if(o===r.A.INTERSECTING||s===r.A.INTERSECTING)i=!0;else{const a=t[0],l=t[1],c=t[2],u=t[3],h=e[0],d=e[1],f=n[0],g=n[1],p=(g-d)/(f-h);let m,y;s&r.A.ABOVE&&!(o&r.A.ABOVE)&&(m=f-(g-u)/p,i=m>=a&&m<=c),i||!(s&r.A.RIGHT)||o&r.A.RIGHT||(y=g-(f-c)*p,i=y>=l&&y<=u),i||!(s&r.A.BELOW)||o&r.A.BELOW||(m=f-(g-l)/p,i=m>=a&&m<=c),i||!(s&r.A.LEFT)||o&r.A.LEFT||(y=g-(f-a)*p,i=y>=l&&y<=u)}return i}function j(t,e,n,r){if(L(t))return g(n);let i=[];if(r>1){const e=t[2]-t[0],n=t[3]-t[1];for(let o=0;o<r;++o)i.push(t[0]+e*o/r,t[1],t[2],t[1]+n*o/r,t[2]-e*o/r,t[3],t[0],t[3]-n*o/r)}else i=[t[0],t[1],t[2],t[1],t[2],t[3],t[0],t[3]];e(i,i,2);const o=[],s=[];for(let a=0,l=i.length;a<l;a+=2)o.push(i[a]),s.push(i[a+1]);return function(t,e,n){return f(Math.min.apply(null,t),Math.min.apply(null,e),Math.max.apply(null,t),Math.max.apply(null,e),n)}(o,s,n)}function z(t,e){const n=e.getExtent(),r=C(t);if(e.canWrapX()&&(r[0]<n[0]||r[0]>=n[2])){const e=M(n),i=Math.floor((r[0]-n[0])/e)*e;t[0]-=i,t[2]-=i}return t}function G(t,e,n){if(e.canWrapX()){const r=e.getExtent();if(!isFinite(t[0])||!isFinite(t[2]))return[[r[0],t[1],r[2],t[3]]];z(t,e);const i=M(r);if(M(t)>i&&!n)return[[r[0],t[1],r[2],t[3]]];if(t[0]<r[0])return[[t[0]+i,t[1],r[2],t[3]],[r[0],t[1],t[2],t[3]]];if(t[2]>r[2])return[[t[0],t[1],r[2],t[3]],[r[0],t[1],t[2]-i,t[3]]]}return[t]}},46833:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},9931:(t,e,n)=>{"use strict";n.d(e,{B4:()=>a,W8:()=>o,hq:()=>l,rT:()=>i,tV:()=>s});var r=n(95635);function i(){return!0}function o(){return!1}function s(){}function a(t){let e,n,i;return function(){const o=Array.prototype.slice.call(arguments);return n&&this===i&&(0,r.aI)(o,n)||(i=this,n=o,e=t.apply(this,arguments)),e}}function l(t){return function(){let e;try{e=t()}catch(n){return Promise.reject(n)}return e instanceof Promise?e:Promise.resolve(e)}()}},66649:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var r=n(91094),i=n(49196),o=n(99960),s=n(53442);class a extends r.Ay{constructor(t,e){super(),this.setCoordinates(t,e)}clone(){const t=new a(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t}closestPointXY(t,e,n,r){const i=this.flatCoordinates,o=(0,s.hG)(t,e,i[0],i[1]);if(o<r){const t=this.stride;for(let e=0;e<t;++e)n[e]=i[e];return n.length=t,o}return r}getCoordinates(){return this.flatCoordinates.slice()}computeExtent(t){return(0,i.dP)(this.flatCoordinates,t)}getType(){return"Point"}intersectsExtent(t){return(0,i.Rj)(t,this.flatCoordinates[0],this.flatCoordinates[1])}setCoordinates(t,e){this.setLayout(e,t,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,o._n)(this.flatCoordinates,0,t,this.stride),this.changed()}}const l=a},57404:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>T,VY:()=>C});var r=n(91094),i=n(53442);function o(t,e,n,r,o,s,a){const l=t[e],c=t[e+1],u=t[n]-l,h=t[n+1]-c;let d;if(0===u&&0===h)d=e;else{const f=((o-l)*u+(s-c)*h)/(u*u+h*h);if(f>1)d=n;else{if(f>0){for(let o=0;o<r;++o)a[o]=(0,i.Cc)(t[e+o],t[n+o],f);return void(a.length=r)}d=e}}for(let i=0;i<r;++i)a[i]=t[d+i];a.length=r}function s(t,e,n,r,o){let s=t[e],a=t[e+1];for(e+=r;e<n;e+=r){const n=t[e],r=t[e+1],l=(0,i.hG)(s,a,n,r);l>o&&(o=l),s=n,a=r}return o}function a(t,e,n,r,i){for(let o=0,a=n.length;o<a;++o){const a=n[o];i=s(t,e,a,r,i),e=a}return i}function l(t,e,n,r,s,a,l,c,u,h,d){if(e==n)return h;let f,g;if(0===s){if(g=(0,i.hG)(l,c,t[e],t[e+1]),g<h){for(f=0;f<r;++f)u[f]=t[e+f];return u.length=r,g}return h}d=d||[NaN,NaN];let p=e+r;for(;p<n;)if(o(t,p-r,p,r,l,c,d),g=(0,i.hG)(l,c,d[0],d[1]),g<h){for(h=g,f=0;f<r;++f)u[f]=d[f];u.length=r,p+=r}else p+=r*Math.max((Math.sqrt(g)-Math.sqrt(h))/s|0,1);if(a&&(o(t,n-r,e,r,l,c,d),g=(0,i.hG)(l,c,d[0],d[1]),g<h)){for(h=g,f=0;f<r;++f)u[f]=d[f];u.length=r}return h}function c(t,e,n,r,i,o,s,a,c,u,h){h=h||[NaN,NaN];for(let d=0,f=n.length;d<f;++d){const f=n[d];u=l(t,e,f,r,i,o,s,a,c,u,h),e=f}return u}var u=n(49196),h=n(99960),d=n(16680),f=n(9972);function g(t,e,n,r){let i=0;const o=t[n-r],s=t[n-r+1];let a=0,l=0;for(;e<n;e+=r){const n=t[e]-o,r=t[e+1]-s;i+=l*n-a*r,a=n,l=r}return i/2}function p(t,e,n,r){let i=0;for(let o=0,s=n.length;o<s;++o){const s=n[o];i+=g(t,e,s,r),e=s}return i}class m extends r.Ay{constructor(t,e){super(),this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===e||Array.isArray(t[0])?this.setCoordinates(t,e):this.setFlatCoordinates(e,t)}clone(){return new m(this.flatCoordinates.slice(),this.layout)}closestPointXY(t,e,n,r){return r<(0,u.Ld)(this.getExtent(),t,e)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(s(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),l(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,e,n,r))}getArea(){return g(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinates(){return(0,f.n2)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getSimplifiedGeometryInternal(t){const e=[];return e.length=(0,d.P4)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,0),new m(e,"XY")}getType(){return"LinearRing"}intersectsExtent(t){return!1}setCoordinates(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,h.z2)(this.flatCoordinates,0,t,this.stride),this.changed()}}const y=m;var _=n(66649),v=n(95635),x=n(76177),w=n(70953),b=n(8422),S=n(70642);class E extends r.Ay{constructor(t,e,n){super(),this.ends_=[],this.flatInteriorPointRevision_=-1,this.flatInteriorPoint_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,void 0!==e&&n?(this.setFlatCoordinates(e,t),this.ends_=n):this.setCoordinates(t,e)}appendLinearRing(t){this.flatCoordinates?(0,v.X$)(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const t=new E(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t}closestPointXY(t,e,n,r){return r<(0,u.Ld)(this.getExtent(),t,e)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(a(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),c(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,t,e,n,r))}containsXY(t,e){return(0,S.zb)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,e)}getArea(){return p(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)}getCoordinates(t){let e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),(0,b.ug)(e,0,this.ends_,this.stride,t)):e=this.flatCoordinates,(0,f.cD)(e,0,this.ends_,this.stride)}getEnds(){return this.ends_}getFlatInteriorPoint(){if(this.flatInteriorPointRevision_!=this.getRevision()){const t=(0,u.q1)(this.getExtent());this.flatInteriorPoint_=(0,x.J)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_}getInteriorPoint(){return new _.A(this.getFlatInteriorPoint(),"XYM")}getLinearRingCount(){return this.ends_.length}getLinearRing(t){return t<0||this.ends_.length<=t?null:new y(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)}getLinearRings(){const t=this.layout,e=this.flatCoordinates,n=this.ends_,r=[];let i=0;for(let o=0,s=n.length;o<s;++o){const s=n[o],a=new y(e.slice(i,s),t);r.push(a),i=s}return r}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){const t=this.flatCoordinates;(0,b.PA)(t,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=(0,b.ug)(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(t){const e=[],n=[];return e.length=(0,d.Hg)(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(t),e,0,n),new E(e,"XY",n)}getType(){return"Polygon"}intersectsExtent(t){return(0,w.HT)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t)}setCoordinates(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);const n=(0,h.KG)(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()}}const T=E;function C(t){if((0,u.Im)(t))throw new Error("Cannot create polygon from empty extent");const e=t[0],n=t[1],r=t[2],i=t[3],o=[e,n,e,i,r,i,r,n,e,n];return new E(o,"XY",[o.length])}},91094:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>p,v7:()=>g});var r=n(38419),i=n(62352),o=n(47458),s=n(49196),a=n(77120),l=n(9931),c=n(97075);const u=(0,o.vt)();class h extends r.A{constructor(){super(),this.extent_=(0,s.S5)(),this.extentRevision_=-1,this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0,this.simplifyTransformedInternal=(0,l.B4)(((t,e,n)=>{if(!n)return this.getSimplifiedGeometry(e);const r=this.clone();return r.applyTransform(n),r.getSimplifiedGeometry(e)}))}simplifyTransformed(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)}clone(){return(0,i.b0)()}closestPointXY(t,e,n,r){return(0,i.b0)()}containsXY(t,e){const n=this.getClosestPoint([t,e]);return n[0]===t&&n[1]===e}getClosestPoint(t,e){return e=e||[NaN,NaN],this.closestPointXY(t[0],t[1],e,1/0),e}intersectsCoordinate(t){return this.containsXY(t[0],t[1])}computeExtent(t){return(0,i.b0)()}getExtent(t){if(this.extentRevision_!=this.getRevision()){const t=this.computeExtent(this.extent_);(isNaN(t[0])||isNaN(t[1]))&&(0,s.aZ)(t),this.extentRevision_=this.getRevision()}return(0,s.$u)(this.extent_,t)}rotate(t,e){(0,i.b0)()}scale(t,e,n){(0,i.b0)()}simplify(t){return this.getSimplifiedGeometry(t*t)}getSimplifiedGeometry(t){return(0,i.b0)()}getType(){return(0,i.b0)()}applyTransform(t){(0,i.b0)()}intersectsExtent(t){return(0,i.b0)()}translate(t,e){(0,i.b0)()}transform(t,e){const n=(0,a.Jt)(t),r="tile-pixels"==n.getUnits()?function(t,r,i){const l=n.getExtent(),h=n.getWorldExtent(),d=(0,s.Oq)(h)/(0,s.Oq)(l);return(0,o.Zz)(u,h[0],h[3],d,-d,0,0,0),(0,c.Rc)(t,0,t.length,i,u,r),(0,a.RG)(n,e)(t,r,i)}:(0,a.RG)(n,e);return this.applyTransform(r),this}}const d=h;function f(t){let e;return"XY"==t?e=2:"XYZ"==t||"XYM"==t?e=3:"XYZM"==t&&(e=4),e}function g(t,e,n){const r=t.getFlatCoordinates();if(!r)return null;const i=t.getStride();return(0,c.Rc)(r,0,r.length,i,e,n)}const p=class extends d{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates}computeExtent(t){return(0,s.Vy)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)}getCoordinates(){return(0,i.b0)()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const e=this.getSimplifiedGeometryInternal(t);return e.getFlatCoordinates().length<this.flatCoordinates.length?e:(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)}getSimplifiedGeometryInternal(t){return this}getStride(){return this.stride}setFlatCoordinates(t,e){this.stride=f(t),this.layout=t,this.flatCoordinates=e}setCoordinates(t,e){(0,i.b0)()}setLayout(t,e,n){let r;if(t)r=f(t);else{for(let t=0;t<n;++t){if(0===e.length)return this.layout="XY",void(this.stride=2);e=e[0]}r=e.length,t=function(t){let e;2==t?e="XY":3==t?e="XYZ":4==t&&(e="XYZM");return e}(r)}this.layout=t,this.stride=r}applyTransform(t){this.flatCoordinates&&(t(this.flatCoordinates,this.flatCoordinates,this.layout.startsWith("XYZ")?3:2,this.stride),this.changed())}rotate(t,e){const n=this.getFlatCoordinates();if(n){const r=this.getStride();(0,c.e$)(n,0,n.length,r,t,e,n),this.changed()}}scale(t,e,n){void 0===e&&(e=t),n||(n=(0,s.q1)(this.getExtent()));const r=this.getFlatCoordinates();if(r){const i=this.getStride();(0,c.hs)(r,0,r.length,i,t,e,n,r),this.changed()}}translate(t,e){const n=this.getFlatCoordinates();if(n){const r=this.getStride();(0,c.Tl)(n,0,n.length,r,t,e,n),this.changed()}}}},70642:(t,e,n)=>{"use strict";n.d(e,{a_:()=>o,t7:()=>i,zb:()=>s});var r=n(49196);function i(t,e,n,i,s){return!(0,r.sB)(s,(function(r){return!o(t,e,n,i,r[0],r[1])}))}function o(t,e,n,r,i,o){let s=0,a=t[n-r],l=t[n-r+1];for(;e<n;e+=r){const n=t[e],r=t[e+1];l<=o?r>o&&(n-a)*(o-l)-(i-a)*(r-l)>0&&s++:r<=o&&(n-a)*(o-l)-(i-a)*(r-l)<0&&s--,a=n,l=r}return 0!==s}function s(t,e,n,r,i,s){if(0===n.length)return!1;if(!o(t,e,n[0],r,i,s))return!1;for(let a=1,l=n.length;a<l;++a)if(o(t,n[a-1],n[a],r,i,s))return!1;return!0}},99960:(t,e,n)=>{"use strict";function r(t,e,n,r){for(let i=0,o=n.length;i<o;++i)t[e++]=n[i];return e}function i(t,e,n,r){for(let i=0,o=n.length;i<o;++i){const o=n[i];for(let n=0;n<r;++n)t[e++]=o[n]}return e}function o(t,e,n,r,o){o=o||[];let s=0;for(let a=0,l=n.length;a<l;++a){const l=i(t,e,n[a],r);o[s++]=l,e=l}return o.length=s,o}n.d(e,{KG:()=>o,_n:()=>r,z2:()=>i})},9972:(t,e,n)=>{"use strict";function r(t,e,n,r,i){i=void 0!==i?i:[];let o=0;for(let s=e;s<n;s+=r)i[o++]=t.slice(s,s+r);return i.length=o,i}function i(t,e,n,i,o){o=void 0!==o?o:[];let s=0;for(let a=0,l=n.length;a<l;++a){const l=n[a];o[s++]=r(t,e,l,i,o[s]),e=l}return o.length=s,o}function o(t,e,n,r,o){o=void 0!==o?o:[];let s=0;for(let a=0,l=n.length;a<l;++a){const l=n[a];o[s++]=1===l.length&&l[0]===e?[]:i(t,e,l,r,o[s]),e=l[l.length-1]}return o.length=s,o}n.d(e,{Dz:()=>o,cD:()=>i,n2:()=>r})},76177:(t,e,n)=>{"use strict";n.d(e,{J:()=>o,p:()=>s});var r=n(95635),i=n(70642);function o(t,e,n,o,s,a,l){let c,u,h,d,f,g,p;const m=s[a+1],y=[];for(let r=0,i=n.length;r<i;++r){const i=n[r];for(d=t[i-o],g=t[i-o+1],c=e;c<i;c+=o)f=t[c],p=t[c+1],(m<=g&&p<=m||g<=m&&m<=p)&&(h=(m-g)/(p-g)*(f-d)+d,y.push(h)),d=f,g=p}let _=NaN,v=-1/0;for(y.sort(r.V_),d=y[0],c=1,u=y.length;c<u;++c){f=y[c];const r=Math.abs(f-d);r>v&&(h=(d+f)/2,(0,i.zb)(t,e,n,o,h,m)&&(_=h,v=r)),d=f}return isNaN(_)&&(_=s[a]),l?(l.push(_,m,v),l):[_,m,v]}function s(t,e,n,r,i){let s=[];for(let a=0,l=n.length;a<l;++a){const l=n[a];s=o(t,e,l,r,i,2*a,s),e=l[l.length-1]}return s}},70953:(t,e,n)=>{"use strict";n.d(e,{sj:()=>s,HT:()=>a});var r=n(49196);var i=n(70642);function o(t,e,n,i,o){const s=(0,r.R8)((0,r.S5)(),t,e,n,i);return!!(0,r.HY)(o,s)&&(!!(0,r.ms)(o,s)||(s[0]>=o[0]&&s[2]<=o[2]||(s[1]>=o[1]&&s[3]<=o[3]||function(t,e,n,r,i){let o;for(e+=r;e<n;e+=r)if(o=i(t.slice(e-r,e),t.slice(e,e+r)),o)return o;return!1}(t,e,n,i,(function(t,e){return(0,r.Mx)(o,t,e)})))))}function s(t,e,n,r,s){return!!o(t,e,n,r,s)||(!!(0,i.a_)(t,e,n,r,s[0],s[1])||(!!(0,i.a_)(t,e,n,r,s[0],s[3])||(!!(0,i.a_)(t,e,n,r,s[2],s[1])||!!(0,i.a_)(t,e,n,r,s[2],s[3]))))}function a(t,e,n,r,a){if(!s(t,e,n[0],r,a))return!1;if(1===n.length)return!0;for(let s=1,l=n.length;s<l;++s)if((0,i.t7)(t,n[s-1],n[s],r,a)&&!o(t,n[s-1],n[s],r,a))return!1;return!0}},8422:(t,e,n)=>{"use strict";function r(t,e,n,r){for(;e<n-r;){for(let i=0;i<r;++i){const o=t[e+i];t[e+i]=t[n-r+i],t[n-r+i]=o}e+=r,n-=r}}function i(t,e,n,r){let i=0,o=t[n-r],s=t[n-r+1];for(;e<n;e+=r){const n=t[e],r=t[e+1];i+=(n-o)*(r+s),o=n,s=r}return 0===i?void 0:i>0}function o(t,e,n,r,o){o=void 0!==o&&o;for(let s=0,a=n.length;s<a;++s){const a=n[s],l=i(t,e,a,r);if(0===s){if(o&&l||!o&&!l)return!1}else if(o&&!l||!o&&l)return!1;e=a}return!0}function s(t,e,n,o,s){s=void 0!==s&&s;for(let a=0,l=n.length;a<l;++a){const l=n[a],c=i(t,e,l,o);(0===a?s&&c||!s&&!c:s&&!c||!s&&c)&&r(t,e,l,o),e=l}return e}function a(t,e){const n=[];let r,o=0,s=0;for(let a=0,l=e.length;a<l;++a){const l=e[a],c=i(t,o,l,2);if(void 0===r&&(r=c),c===r)n.push(e.slice(s,a+1));else{if(0===n.length)continue;n[n.length-1].push(e[s])}s=a+1,o=l}return n}n.d(e,{yJ:()=>a,PA:()=>o,ug:()=>s})},16680:(t,e,n)=>{"use strict";n.d(e,{AL:()=>o,Hg:()=>l,P4:()=>i,n$:()=>s});var r=n(53442);function i(t,e,n,i,o,s,a){const l=(n-e)/i;if(l<3){for(;e<n;e+=i)s[a++]=t[e],s[a++]=t[e+1];return a}const c=new Array(l);c[0]=1,c[l-1]=1;const u=[e,n-i];let h=0;for(;u.length>0;){const n=u.pop(),s=u.pop();let a=0;const l=t[s],d=t[s+1],f=t[n],g=t[n+1];for(let e=s+i;e<n;e+=i){const n=t[e],i=t[e+1],o=(0,r.Q1)(n,i,l,d,f,g);o>a&&(h=e,a=o)}a>o&&(c[(h-e)/i]=1,s+i<h&&u.push(s,h),h+i<n&&u.push(h,n))}for(let r=0;r<l;++r)c[r]&&(s[a++]=t[e+r*i],s[a++]=t[e+r*i+1]);return a}function o(t,e,n,r,o,s,a,l){for(let c=0,u=n.length;c<u;++c){const u=n[c];a=i(t,e,u,r,o,s,a),l.push(a),e=u}return a}function s(t,e){return e*Math.round(t/e)}function a(t,e,n,r,i,o,a){if(e==n)return a;let l,c,u=s(t[e],i),h=s(t[e+1],i);e+=r,o[a++]=u,o[a++]=h;do{if(l=s(t[e],i),c=s(t[e+1],i),(e+=r)==n)return o[a++]=l,o[a++]=c,a}while(l==u&&c==h);for(;e<n;){const n=s(t[e],i),d=s(t[e+1],i);if(e+=r,n==l&&d==c)continue;const f=l-u,g=c-h,p=n-u,m=d-h;f*m==g*p&&(f<0&&p<f||f==p||f>0&&p>f)&&(g<0&&m<g||g==m||g>0&&m>g)?(l=n,c=d):(o[a++]=l,o[a++]=c,u=l,h=c,l=n,c=d)}return o[a++]=l,o[a++]=c,a}function l(t,e,n,r,i,o,s,l){for(let c=0,u=n.length;c<u;++c){const u=n[c];s=a(t,e,u,r,i,o,s),l.push(s),e=u}return s}},97075:(t,e,n)=>{"use strict";function r(t,e,n,r,i,o,s){o=o||[],s=s||2;let a=0;for(let l=e;l<n;l+=r){const e=t[l],n=t[l+1];o[a++]=i[0]*e+i[2]*n+i[4],o[a++]=i[1]*e+i[3]*n+i[5];for(let r=2;r<s;r++)o[a++]=t[l+r]}return o&&o.length!=a&&(o.length=a),o}function i(t,e,n,r,i,o,s){s=s||[];const a=Math.cos(i),l=Math.sin(i),c=o[0],u=o[1];let h=0;for(let d=e;d<n;d+=r){const e=t[d]-c,n=t[d+1]-u;s[h++]=c+e*a-n*l,s[h++]=u+e*l+n*a;for(let i=d+2;i<d+r;++i)s[h++]=t[i]}return s&&s.length!=h&&(s.length=h),s}function o(t,e,n,r,i,o,s,a){a=a||[];const l=s[0],c=s[1];let u=0;for(let h=e;h<n;h+=r){const e=t[h]-l,n=t[h+1]-c;a[u++]=l+i*e,a[u++]=c+o*n;for(let i=h+2;i<h+r;++i)a[u++]=t[i]}return a&&a.length!=u&&(a.length=u),a}function s(t,e,n,r,i,o,s){s=s||[];let a=0;for(let l=e;l<n;l+=r){s[a++]=t[l]+i,s[a++]=t[l+1]+o;for(let e=l+2;e<l+r;++e)s[a++]=t[e]}return s&&s.length!=a&&(s.length=a),s}n.d(e,{Rc:()=>r,Tl:()=>s,e$:()=>i,hs:()=>o})},51070:(t,e,n)=>{"use strict";n.d(e,{DT:()=>c,FT:()=>u,Wl:()=>l,_p:()=>i,cr:()=>a,ew:()=>s,j:()=>o});const r="undefined"!==typeof navigator&&"undefined"!==typeof navigator.userAgent?navigator.userAgent.toLowerCase():"",i=r.includes("firefox"),o=(r.includes("safari")&&!r.includes("chrom")&&(r.includes("version/15.4")||/cpu (os|iphone os) 15_4 like mac os x/.test(r)),r.includes("webkit")&&!r.includes("edge")),s=r.includes("macintosh"),a="undefined"!==typeof devicePixelRatio?devicePixelRatio:1,l="undefined"!==typeof WorkerGlobalScope&&"undefined"!==typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,c="undefined"!==typeof Image&&Image.prototype.decode,u=function(){let t=!1;try{const e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch(e){}return t}()},92439:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var r=n(38419),i=n(91175),o=n(62352),s=n(87393),a=n(53442);class l extends r.A{constructor(t){super(),this.on,this.once,this.un,this.background_=t.background;const e=Object.assign({},t);"object"===typeof t.properties&&(delete e.properties,Object.assign(e,t.properties)),e[i.A.OPACITY]=void 0!==t.opacity?t.opacity:1,(0,s.v)("number"===typeof e[i.A.OPACITY],"Layer opacity must be a number"),e[i.A.VISIBLE]=void 0===t.visible||t.visible,e[i.A.Z_INDEX]=t.zIndex,e[i.A.MAX_RESOLUTION]=void 0!==t.maxResolution?t.maxResolution:1/0,e[i.A.MIN_RESOLUTION]=void 0!==t.minResolution?t.minResolution:0,e[i.A.MIN_ZOOM]=void 0!==t.minZoom?t.minZoom:-1/0,e[i.A.MAX_ZOOM]=void 0!==t.maxZoom?t.maxZoom:1/0,this.className_=void 0!==e.className?e.className:"ol-layer",delete e.className,this.setProperties(e),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(t){const e=this.state_||{layer:this,managed:void 0===t||t},n=this.getZIndex();return e.opacity=(0,a.qE)(Math.round(100*this.getOpacity())/100,0,1),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=void 0!==n||e.managed?n:1/0,e.maxResolution=this.getMaxResolution(),e.minResolution=Math.max(this.getMinResolution(),0),e.minZoom=this.getMinZoom(),e.maxZoom=this.getMaxZoom(),this.state_=e,e}getLayersArray(t){return(0,o.b0)()}getLayerStatesArray(t){return(0,o.b0)()}getExtent(){return this.get(i.A.EXTENT)}getMaxResolution(){return this.get(i.A.MAX_RESOLUTION)}getMinResolution(){return this.get(i.A.MIN_RESOLUTION)}getMinZoom(){return this.get(i.A.MIN_ZOOM)}getMaxZoom(){return this.get(i.A.MAX_ZOOM)}getOpacity(){return this.get(i.A.OPACITY)}getSourceState(){return(0,o.b0)()}getVisible(){return this.get(i.A.VISIBLE)}getZIndex(){return this.get(i.A.Z_INDEX)}setBackground(t){this.background_=t,this.changed()}setExtent(t){this.set(i.A.EXTENT,t)}setMaxResolution(t){this.set(i.A.MAX_RESOLUTION,t)}setMinResolution(t){this.set(i.A.MIN_RESOLUTION,t)}setMaxZoom(t){this.set(i.A.MAX_ZOOM,t)}setMinZoom(t){this.set(i.A.MIN_ZOOM,t)}setOpacity(t){(0,s.v)("number"===typeof t,"Layer opacity must be a number"),this.set(i.A.OPACITY,t)}setVisible(t){this.set(i.A.VISIBLE,t)}setZIndex(t){this.set(i.A.Z_INDEX,t)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}}const c=l},9464:(t,e,n)=>{"use strict";n.d(e,{A:()=>xt});var r=n(29201),i=n(89675),o=n(66097),s=n(42258),a=n(63951),l=n(29695),c=n(70535),u=n(19294),h=n(50929);class d{constructor(t){t=t||{},this.font_=t.font,this.rotation_=t.rotation,this.rotateWithView_=t.rotateWithView,this.scale_=t.scale,this.scaleArray_=(0,h.xq)(void 0!==t.scale?t.scale:1),this.text_=t.text,this.textAlign_=t.textAlign,this.justify_=t.justify,this.repeat_=t.repeat,this.textBaseline_=t.textBaseline,this.fill_=void 0!==t.fill?t.fill:new a.A({color:"#333"}),this.maxAngle_=void 0!==t.maxAngle?t.maxAngle:Math.PI/4,this.placement_=void 0!==t.placement?t.placement:"point",this.overflow_=!!t.overflow,this.stroke_=void 0!==t.stroke?t.stroke:null,this.offsetX_=void 0!==t.offsetX?t.offsetX:0,this.offsetY_=void 0!==t.offsetY?t.offsetY:0,this.backgroundFill_=t.backgroundFill?t.backgroundFill:null,this.backgroundStroke_=t.backgroundStroke?t.backgroundStroke:null,this.padding_=void 0===t.padding?null:t.padding,this.declutterMode_=t.declutterMode}clone(){const t=this.getScale();return new d({font:this.getFont(),placement:this.getPlacement(),repeat:this.getRepeat(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0,declutterMode:this.getDeclutterMode()})}getOverflow(){return this.overflow_}getFont(){return this.font_}getMaxAngle(){return this.maxAngle_}getPlacement(){return this.placement_}getRepeat(){return this.repeat_}getOffsetX(){return this.offsetX_}getOffsetY(){return this.offsetY_}getFill(){return this.fill_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getStroke(){return this.stroke_}getText(){return this.text_}getTextAlign(){return this.textAlign_}getJustify(){return this.justify_}getTextBaseline(){return this.textBaseline_}getBackgroundFill(){return this.backgroundFill_}getBackgroundStroke(){return this.backgroundStroke_}getPadding(){return this.padding_}getDeclutterMode(){return this.declutterMode_}setOverflow(t){this.overflow_=t}setFont(t){this.font_=t}setMaxAngle(t){this.maxAngle_=t}setOffsetX(t){this.offsetX_=t}setOffsetY(t){this.offsetY_=t}setPlacement(t){this.placement_=t}setRepeat(t){this.repeat_=t}setRotateWithView(t){this.rotateWithView_=t}setFill(t){this.fill_=t}setRotation(t){this.rotation_=t}setScale(t){this.scale_=t,this.scaleArray_=(0,h.xq)(void 0!==t?t:1)}setStroke(t){this.stroke_=t}setText(t){this.text_=t}setTextAlign(t){this.textAlign_=t}setJustify(t){this.justify_=t}setTextBaseline(t){this.textBaseline_=t}setBackgroundFill(t){this.backgroundFill_=t}setBackgroundStroke(t){this.backgroundStroke_=t}setPadding(t){this.padding_=t}}const f=d;var g=n(95635),p=n(9352);let m=0;const y=1<<m++,_=1<<m++,v=1<<m++,x=1<<m++,w=1<<m++,b=1<<m++,S=Math.pow(2,6)-1,E={[y]:"boolean",[_]:"number",[v]:"string",[x]:"color",[w]:"number[]",[b]:"size"},T=Object.keys(E).map(Number).sort(g.V_);function C(t){const e=[];for(const n of T)I(t,n)&&e.push(E[n]);return 0===e.length?"untyped":e.length<3?e.join(" or "):e.slice(0,-1).join(", ")+", or "+e[e.length-1]}function I(t,e){return(t&e)===e}function k(t,e){return t===e}class O{constructor(t,e){if(!function(t){return t in E}(t))throw new Error(`literal expressions must have a specific type, got ${C(t)}`);this.type=t,this.value=e}}class A{constructor(t,e){this.type=t,this.operator=e;for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];this.args=r}}function R(){return{variables:new Set,properties:new Set,featureId:!1,geometryType:!1}}function D(t,e,n){switch(typeof t){case"boolean":if(k(e,v))return new O(v,t?"true":"false");if(!I(e,y))throw new Error(`got a boolean, but expected ${C(e)}`);return new O(y,t);case"number":if(k(e,b))return new O(b,(0,h.xq)(t));if(k(e,y))return new O(y,!!t);if(k(e,v))return new O(v,t.toString());if(!I(e,_))throw new Error(`got a number, but expected ${C(e)}`);return new O(_,t);case"string":if(k(e,x))return new O(x,(0,p.sH)(t));if(k(e,y))return new O(y,!!t);if(!I(e,v))throw new Error(`got a string, but expected ${C(e)}`);return new O(v,t)}if(!Array.isArray(t))throw new Error("expression must be an array or a primitive value");if(0===t.length)throw new Error("empty expression");if("string"===typeof t[0])return function(t,e,n){const r=t[0],i=P[r];if(!i)throw new Error(`unknown operator: ${r}`);return i(t,e,n)}(t,e,n);for(const r of t)if("number"!==typeof r)throw new Error("expected an array of numbers");if(k(e,b)){if(2!==t.length)throw new Error(`expected an array of two values for a size, got ${t.length}`);return new O(b,t)}if(k(e,x)){if(3===t.length)return new O(x,[...t,1]);if(4===t.length)return new O(x,t);throw new Error(`expected an array of 3 or 4 values for a color, got ${t.length}`)}if(!I(e,w))throw new Error(`got an array of numbers, but expected ${C(e)}`);return new O(w,t)}const M={Get:"get",Var:"var",Concat:"concat",GeometryType:"geometry-type",LineMetric:"line-metric",Any:"any",All:"all",Not:"!",Resolution:"resolution",Zoom:"zoom",Time:"time",Equal:"==",NotEqual:"!=",GreaterThan:">",GreaterThanOrEqualTo:">=",LessThan:"<",LessThanOrEqualTo:"<=",Multiply:"*",Divide:"/",Add:"+",Subtract:"-",Clamp:"clamp",Mod:"%",Pow:"^",Abs:"abs",Floor:"floor",Ceil:"ceil",Round:"round",Sin:"sin",Cos:"cos",Atan:"atan",Sqrt:"sqrt",Match:"match",Between:"between",Interpolate:"interpolate",Coalesce:"coalesce",Case:"case",In:"in",Number:"number",String:"string",Array:"array",Color:"color",Id:"id",Band:"band",Palette:"palette",ToString:"to-string",Has:"has"},P={[M.Get]:q(F(1,1/0),L),[M.Var]:q(F(1,1),(function(t,e,n){const r=t[1];if("string"!==typeof r)throw new Error("expected a string argument for var operation");return n.variables.add(r),[new O(v,r)]})),[M.Has]:q(F(1,1/0),L),[M.Id]:q((function(t,e,n){n.featureId=!0}),N),[M.Concat]:q(F(2,1/0),z(v)),[M.GeometryType]:q((function(t,e,n){n.geometryType=!0}),N),[M.LineMetric]:q(N),[M.Resolution]:q(N),[M.Zoom]:q(N),[M.Time]:q(N),[M.Any]:q(F(2,1/0),z(y)),[M.All]:q(F(2,1/0),z(y)),[M.Not]:q(F(1,1),z(y)),[M.Equal]:q(F(2,2),z(S)),[M.NotEqual]:q(F(2,2),z(S)),[M.GreaterThan]:q(F(2,2),z(_)),[M.GreaterThanOrEqualTo]:q(F(2,2),z(_)),[M.LessThan]:q(F(2,2),z(_)),[M.LessThanOrEqualTo]:q(F(2,2),z(_)),[M.Multiply]:q(F(2,1/0),j),[M.Coalesce]:q(F(2,1/0),j),[M.Divide]:q(F(2,2),z(_)),[M.Add]:q(F(2,1/0),z(_)),[M.Subtract]:q(F(2,2),z(_)),[M.Clamp]:q(F(3,3),z(_)),[M.Mod]:q(F(2,2),z(_)),[M.Pow]:q(F(2,2),z(_)),[M.Abs]:q(F(1,1),z(_)),[M.Floor]:q(F(1,1),z(_)),[M.Ceil]:q(F(1,1),z(_)),[M.Round]:q(F(1,1),z(_)),[M.Sin]:q(F(1,1),z(_)),[M.Cos]:q(F(1,1),z(_)),[M.Atan]:q(F(1,2),z(_)),[M.Sqrt]:q(F(1,1),z(_)),[M.Match]:q(F(4,1/0),G,(function(t,e,n){const r=t.length-1,i=v|_|y,o=D(t[1],i,n),s=D(t[t.length-1],e,n),a=new Array(r-2);for(let c=0;c<r-2;c+=2){try{const e=D(t[c+2],o.type,n);a[c]=e}catch(l){throw new Error(`failed to parse argument ${c+1} of match expression: ${l.message}`)}try{const e=D(t[c+3],s.type,n);a[c+1]=e}catch(l){throw new Error(`failed to parse argument ${c+2} of match expression: ${l.message}`)}}return[o,...a,s]})),[M.Between]:q(F(3,3),z(_)),[M.Interpolate]:q(F(6,1/0),G,(function(t,e,n){const r=t[1];let i;switch(r[0]){case"linear":i=1;break;case"exponential":const t=r[1];if("number"!==typeof t||t<=0)throw new Error(`expected a number base for exponential interpolation, got ${JSON.stringify(t)} instead`);i=t;break;default:throw new Error(`invalid interpolation type: ${JSON.stringify(r)}`)}const o=new O(_,i);let s;try{s=D(t[2],_,n)}catch(l){throw new Error(`failed to parse argument 1 in interpolate expression: ${l.message}`)}const a=new Array(t.length-3);for(let c=0;c<a.length;c+=2){try{const e=D(t[c+3],_,n);a[c]=e}catch(l){throw new Error(`failed to parse argument ${c+2} for interpolate expression: ${l.message}`)}try{const r=D(t[c+4],e,n);a[c+1]=r}catch(l){throw new Error(`failed to parse argument ${c+3} for interpolate expression: ${l.message}`)}}return[o,s,...a]})),[M.Case]:q(F(3,1/0),(function(t,e,n){const r=t[0],i=t.length-1;if(i%2===0)throw new Error(`expected an odd number of arguments for ${r}, got ${i} instead`)}),(function(t,e,n){const r=D(t[t.length-1],e,n),i=new Array(t.length-1);for(let s=0;s<i.length-1;s+=2){try{const e=D(t[s+1],y,n);i[s]=e}catch(o){throw new Error(`failed to parse argument ${s} of case expression: ${o.message}`)}try{const e=D(t[s+2],r.type,n);i[s+1]=e}catch(o){throw new Error(`failed to parse argument ${s+1} of case expression: ${o.message}`)}}return i[i.length-1]=r,i})),[M.In]:q(F(2,2),(function(t,e,n){let r,i=t[2];if(!Array.isArray(i))throw new Error('the second argument for the "in" operator must be an array');if("string"===typeof i[0]){if("literal"!==i[0])throw new Error('for the "in" operator, a string array should be wrapped in a "literal" operator to disambiguate from expressions');if(!Array.isArray(i[1]))throw new Error('failed to parse "in" expression: the literal operator must be followed by an array');i=i[1],r=v}else r=_;const o=new Array(i.length);for(let a=0;a<o.length;a++)try{const t=D(i[a],r,n);o[a]=t}catch(s){throw new Error(`failed to parse haystack item ${a} for "in" expression: ${s.message}`)}return[D(t[1],r,n),...o]})),[M.Number]:q(F(1,1/0),z(S)),[M.String]:q(F(1,1/0),z(S)),[M.Array]:q(F(1,1/0),z(_)),[M.Color]:q(F(1,4),z(_)),[M.Band]:q(F(1,3),z(_)),[M.Palette]:q(F(2,2),(function(t,e,n){let r;try{r=D(t[1],_,n)}catch(s){throw new Error(`failed to parse first argument in palette expression: ${s.message}`)}const i=t[2];if(!Array.isArray(i))throw new Error("the second argument of palette must be an array");const o=new Array(i.length);for(let a=0;a<o.length;a++){let t;try{t=D(i[a],x,n)}catch(s){throw new Error(`failed to parse color at index ${a} in palette expression: ${s.message}`)}if(!(t instanceof O))throw new Error(`the palette color at index ${a} must be a literal value`);o[a]=t}return[r,...o]})),[M.ToString]:q(F(1,1),z(y|_|v|x))};function L(t,e,n){const r=t.length-1,i=new Array(r);for(let o=0;o<r;++o){const e=t[o+1];switch(typeof e){case"number":i[o]=new O(_,e);break;case"string":i[o]=new O(v,e);break;default:throw new Error(`expected a string key or numeric array index for a get operation, got ${e}`)}0===o&&n.properties.add(String(e))}return i}function N(t,e,n){const r=t[0];if(1!==t.length)throw new Error(`expected no arguments for ${r} operation`);return[]}function F(t,e){return function(n,r,i){const o=n[0],s=n.length-1;if(t===e){if(s!==t){throw new Error(`expected ${t} argument${1===t?"":"s"} for ${o}, got ${s}`)}}else if(s<t||s>e){throw new Error(`expected ${e===1/0?`${t} or more`:`${t} to ${e}`} arguments for ${o}, got ${s}`)}}}function j(t,e,n){const r=t.length-1,i=new Array(r);for(let o=0;o<r;++o){const r=D(t[o+1],e,n);i[o]=r}return i}function z(t){return function(e,n,r){const i=e.length-1,o=new Array(i);for(let s=0;s<i;++s){const n=D(e[s+1],t,r);o[s]=n}return o}}function G(t,e,n){const r=t[0],i=t.length-1;if(i%2===1)throw new Error(`expected an even number of arguments for operation ${r}, got ${i} instead`)}function q(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t,n,r){const i=t[0];let o;for(let s=0;s<e.length;s++){const i=e[s](t,n,r);if(s==e.length-1){if(!i)throw new Error("expected last argument validator to return the parsed args");o=i}}return new A(n,i,...o)}}function H(t){if(!t)return"";const e=t.getType();switch(e){case"Point":case"LineString":case"Polygon":return e;case"MultiPoint":case"MultiLineString":case"MultiPolygon":return e.substring(5);case"Circle":return"Polygon";case"GeometryCollection":return H(t.getGeometries()[0]);default:return""}}function W(t,e,n){return B(D(t,e,n),n)}function B(t,e){if(t instanceof O){if(t.type===x&&"string"===typeof t.value){const e=(0,p.sH)(t.value);return function(){return e}}return function(){return t.value}}const n=t.operator;switch(n){case M.Number:case M.String:case M.Coalesce:return function(t,e){const n=t.operator,r=t.args.length,i=new Array(r);for(let o=0;o<r;++o)i[o]=B(t.args[o],e);switch(n){case M.Coalesce:return t=>{for(let e=0;e<r;++e){const n=i[e](t);if("undefined"!==typeof n&&null!==n)return n}throw new Error("Expected one of the values to be non-null")};case M.Number:case M.String:return t=>{for(let e=0;e<r;++e){const r=i[e](t);if(typeof r===n)return r}throw new Error(`Expected one of the values to be a ${n}`)};default:throw new Error(`Unsupported assertion operator ${n}`)}}(t,e);case M.Get:case M.Var:case M.Has:return function(t,e){const n=t.args[0],r=n.value;switch(t.operator){case M.Get:return e=>{const n=t.args;let i=e.properties[r];for(let t=1,r=n.length;t<r;++t){i=i[n[t].value]}return i};case M.Var:return t=>t.variables[r];case M.Has:return e=>{const n=t.args;if(!(r in e.properties))return!1;let i=e.properties[r];for(let t=1,r=n.length;t<r;++t){const e=n[t].value;if(!i||!Object.hasOwn(i,e))return!1;i=i[e]}return!0};default:throw new Error(`Unsupported accessor operator ${t.operator}`)}}(t);case M.Id:return t=>t.featureId;case M.GeometryType:return t=>t.geometryType;case M.Concat:{const n=t.args.map((t=>B(t,e)));return t=>"".concat(...n.map((e=>e(t).toString())))}case M.Resolution:return t=>t.resolution;case M.Any:case M.All:case M.Between:case M.In:case M.Not:return function(t,e){const n=t.operator,r=t.args.length,i=new Array(r);for(let o=0;o<r;++o)i[o]=B(t.args[o],e);switch(n){case M.Any:return t=>{for(let e=0;e<r;++e)if(i[e](t))return!0;return!1};case M.All:return t=>{for(let e=0;e<r;++e)if(!i[e](t))return!1;return!0};case M.Between:return t=>{const e=i[0](t),n=i[1](t),r=i[2](t);return e>=n&&e<=r};case M.In:return t=>{const e=i[0](t);for(let n=1;n<r;++n)if(e===i[n](t))return!0;return!1};case M.Not:return t=>!i[0](t);default:throw new Error(`Unsupported logical operator ${n}`)}}(t,e);case M.Equal:case M.NotEqual:case M.LessThan:case M.LessThanOrEqualTo:case M.GreaterThan:case M.GreaterThanOrEqualTo:return function(t,e){const n=t.operator,r=B(t.args[0],e),i=B(t.args[1],e);switch(n){case M.Equal:return t=>r(t)===i(t);case M.NotEqual:return t=>r(t)!==i(t);case M.LessThan:return t=>r(t)<i(t);case M.LessThanOrEqualTo:return t=>r(t)<=i(t);case M.GreaterThan:return t=>r(t)>i(t);case M.GreaterThanOrEqualTo:return t=>r(t)>=i(t);default:throw new Error(`Unsupported comparison operator ${n}`)}}(t,e);case M.Multiply:case M.Divide:case M.Add:case M.Subtract:case M.Clamp:case M.Mod:case M.Pow:case M.Abs:case M.Floor:case M.Ceil:case M.Round:case M.Sin:case M.Cos:case M.Atan:case M.Sqrt:return function(t,e){const n=t.operator,r=t.args.length,i=new Array(r);for(let o=0;o<r;++o)i[o]=B(t.args[o],e);switch(n){case M.Multiply:return t=>{let e=1;for(let n=0;n<r;++n)e*=i[n](t);return e};case M.Divide:return t=>i[0](t)/i[1](t);case M.Add:return t=>{let e=0;for(let n=0;n<r;++n)e+=i[n](t);return e};case M.Subtract:return t=>i[0](t)-i[1](t);case M.Clamp:return t=>{const e=i[0](t),n=i[1](t);if(e<n)return n;const r=i[2](t);return e>r?r:e};case M.Mod:return t=>i[0](t)%i[1](t);case M.Pow:return t=>Math.pow(i[0](t),i[1](t));case M.Abs:return t=>Math.abs(i[0](t));case M.Floor:return t=>Math.floor(i[0](t));case M.Ceil:return t=>Math.ceil(i[0](t));case M.Round:return t=>Math.round(i[0](t));case M.Sin:return t=>Math.sin(i[0](t));case M.Cos:return t=>Math.cos(i[0](t));case M.Atan:return 2===r?t=>Math.atan2(i[0](t),i[1](t)):t=>Math.atan(i[0](t));case M.Sqrt:return t=>Math.sqrt(i[0](t));default:throw new Error(`Unsupported numeric operator ${n}`)}}(t,e);case M.Case:return function(t,e){const n=t.args.length,r=new Array(n);for(let i=0;i<n;++i)r[i]=B(t.args[i],e);return t=>{for(let e=0;e<n-1;e+=2){if(r[e](t))return r[e+1](t)}return r[n-1](t)}}(t,e);case M.Match:return function(t,e){const n=t.args.length,r=new Array(n);for(let i=0;i<n;++i)r[i]=B(t.args[i],e);return t=>{const e=r[0](t);for(let i=1;i<n;i+=2)if(e===r[i](t))return r[i+1](t);return r[n-1](t)}}(t,e);case M.Interpolate:return function(t,e){const n=t.args.length,r=new Array(n);for(let i=0;i<n;++i)r[i]=B(t.args[i],e);return t=>{const e=r[0](t),i=r[1](t);let o,s;for(let a=2;a<n;a+=2){const n=r[a](t);let l=r[a+1](t);const c=Array.isArray(l);if(c&&(l=(0,p.fu)(l)),n>=i)return 2===a?l:c?U(e,i,o,s,n,l):Y(e,i,o,s,n,l);o=n,s=l}return s}}(t,e);case M.ToString:return function(t,e){const n=t.operator,r=t.args.length,i=new Array(r);for(let o=0;o<r;++o)i[o]=B(t.args[o],e);if(n===M.ToString)return e=>{const n=i[0](e);return t.args[0].type===x?(0,p.dI)(n):n.toString()};throw new Error(`Unsupported convert operator ${n}`)}(t,e);default:throw new Error(`Unsupported operator ${n}`)}}function Y(t,e,n,r,i,o){const s=i-n;if(0===s)return r;const a=e-n;return r+(1===t?a/s:(Math.pow(t,a)-1)/(Math.pow(t,s)-1))*(o-r)}function U(t,e,n,r,i,o){if(0===i-n)return r;const s=(0,p.eE)(r),a=(0,p.eE)(o);let l=a[2]-s[2];l>180?l-=360:l<-180&&(l+=360);const c=[Y(t,e,n,s[0],i,a[0]),Y(t,e,n,s[1],i,a[1]),s[2]+Y(t,e,n,0,i,l),Y(t,e,n,r[3],i,o[3])];return(0,p.S8)((0,p.cD)(c))}var K=n(44835);function $(t){return!0}function V(t){const e=R(),n=function(t,e){const n=t.length,r=new Array(n);for(let i=0;i<n;++i){const n=t[i],o="filter"in n?W(n.filter,y,e):$;let s;if(Array.isArray(n.style)){const t=n.style.length;s=new Array(t);for(let r=0;r<t;++r)s[r]=Z(n.style[r],e)}else s=[Z(n.style,e)];r[i]={filter:o,styles:s}}return function(e){const i=[];let o=!1;for(let s=0;s<n;++s){if((0,r[s].filter)(e)&&(!t[s].else||!o)){o=!0;for(const t of r[s].styles){const n=t(e);n&&i.push(n)}}}return i}}(t,e),r={variables:{},properties:{},resolution:NaN,featureId:null,geometryType:""};return function(t,i){if(r.properties=t.getPropertiesInternal(),r.resolution=i,e.featureId){const e=t.getId();r.featureId=void 0!==e?e:null}return e.geometryType&&(r.geometryType=H(t.getGeometry())),n(r)}}function X(t){const e=R(),n=t.length,r=new Array(n);for(let s=0;s<n;++s)r[s]=Z(t[s],e);const i={variables:{},properties:{},resolution:NaN,featureId:null,geometryType:""},o=new Array(n);return function(t,s){if(i.properties=t.getPropertiesInternal(),i.resolution=s,e.featureId){const e=t.getId();i.featureId=void 0!==e?e:null}let a=0;for(let e=0;e<n;++e){const t=r[e](i);t&&(o[a]=t,a+=1)}return o.length=a,o}}function Z(t,e){const n=J(t,"",e),r=Q(t,"",e),i=function(t,e){const n="text-",r=et(t,n+"value",e);if(!r)return null;const i=J(t,n,e),o=J(t,n+"background-",e),s=Q(t,n,e),a=Q(t,n+"background-",e),l=et(t,n+"font",e),c=tt(t,n+"max-angle",e),u=tt(t,n+"offset-x",e),h=tt(t,n+"offset-y",e),d=nt(t,n+"overflow",e),g=et(t,n+"placement",e),p=tt(t,n+"repeat",e),m=at(t,n+"scale",e),y=nt(t,n+"rotate-with-view",e),_=tt(t,n+"rotation",e),v=et(t,n+"align",e),x=et(t,n+"justify",e),w=et(t,n+"baseline",e),b=it(t,n+"padding",e),S=dt(t,n+"declutter-mode"),E=new f({declutterMode:S});return function(t){if(E.setText(r(t)),i&&E.setFill(i(t)),o&&E.setBackgroundFill(o(t)),s&&E.setStroke(s(t)),a&&E.setBackgroundStroke(a(t)),l&&E.setFont(l(t)),c&&E.setMaxAngle(c(t)),u&&E.setOffsetX(u(t)),h&&E.setOffsetY(h(t)),d&&E.setOverflow(d(t)),g){const e=g(t);if("point"!==e&&"line"!==e)throw new Error("Expected point or line for text-placement");E.setPlacement(e)}if(p&&E.setRepeat(p(t)),m&&E.setScale(m(t)),y&&E.setRotateWithView(y(t)),_&&E.setRotation(_(t)),v){const e=v(t);if("left"!==e&&"center"!==e&&"right"!==e&&"end"!==e&&"start"!==e)throw new Error("Expected left, right, center, start, or end for text-align");E.setTextAlign(e)}if(x){const e=x(t);if("left"!==e&&"right"!==e&&"center"!==e)throw new Error("Expected left, right, or center for text-justify");E.setJustify(e)}if(w){const e=w(t);if("bottom"!==e&&"top"!==e&&"middle"!==e&&"alphabetic"!==e&&"hanging"!==e)throw new Error("Expected bottom, top, middle, alphabetic, or hanging for text-baseline");E.setTextBaseline(e)}return b&&E.setPadding(b(t)),E}}(t,e),a=function(t,e){if("icon-src"in t)return function(t,e){const n="icon-",r=n+"src",i=gt(t[r],r),o=ot(t,n+"anchor",e),s=at(t,n+"scale",e),a=tt(t,n+"opacity",e),c=ot(t,n+"displacement",e),u=tt(t,n+"rotation",e),h=nt(t,n+"rotate-with-view",e),d=ut(t,n+"anchor-origin"),f=ht(t,n+"anchor-x-units"),g=ht(t,n+"anchor-y-units"),p=function(t,e){const n=t[e];if(void 0===n)return;return mt(n,e)}(t,n+"color"),m=function(t,e){const n=t[e];if(void 0===n)return;if("string"!==typeof n)throw new Error(`Expected a string for ${e}`);return n}(t,n+"cross-origin"),y=function(t,e){const n=t[e];if(void 0===n)return;return ft(n,e)}(t,n+"offset"),_=ut(t,n+"offset-origin"),v=lt(t,n+"width"),x=lt(t,n+"height"),w=ct(t,n+"size"),b=dt(t,n+"declutter-mode"),S=new l.A({src:i,anchorOrigin:d,anchorXUnits:f,anchorYUnits:g,color:p,crossOrigin:m,offset:y,offsetOrigin:_,height:x,width:v,size:w,declutterMode:b});return function(t){return a&&S.setOpacity(a(t)),c&&S.setDisplacement(c(t)),u&&S.setRotation(u(t)),h&&S.setRotateWithView(h(t)),s&&S.setScale(s(t)),o&&S.setAnchor(o(t)),S}}(t,e);if("shape-points"in t)return function(t,e){const n="shape-",r=n+"points",i=n+"radius",o=pt(t[r],r),s=pt(t[i],i),a=J(t,n,e),l=Q(t,n,e),u=at(t,n+"scale",e),h=ot(t,n+"displacement",e),d=tt(t,n+"rotation",e),f=nt(t,n+"rotate-with-view",e),g=lt(t,n+"radius2"),p=lt(t,n+"angle"),m=dt(t,n+"declutter-mode"),y=new c.A({points:o,radius:s,radius2:g,angle:p,declutterMode:m});return function(t){return a&&y.setFill(a(t)),l&&y.setStroke(l(t)),h&&y.setDisplacement(h(t)),d&&y.setRotation(d(t)),f&&y.setRotateWithView(f(t)),u&&y.setScale(u(t)),y}}(t,e);if("circle-radius"in t)return function(t,e){const n="circle-",r=J(t,n,e),i=Q(t,n,e),o=tt(t,n+"radius",e),a=at(t,n+"scale",e),l=ot(t,n+"displacement",e),c=tt(t,n+"rotation",e),u=nt(t,n+"rotate-with-view",e),h=dt(t,n+"declutter-mode"),d=new s.A({radius:5,declutterMode:h});return function(t){return o&&d.setRadius(o(t)),r&&d.setFill(r(t)),i&&d.setStroke(i(t)),l&&d.setDisplacement(l(t)),c&&d.setRotation(c(t)),u&&d.setRotateWithView(u(t)),a&&d.setScale(a(t)),d}}(t,e);return null}(t,e),u=tt(t,"z-index",e);if(!n&&!r&&!i&&!a&&!(0,K.p)(t))throw new Error("No fill, stroke, point, or text symbolizer properties in style: "+JSON.stringify(t));const h=new o.Ay;return function(t){let e=!0;if(n){const r=n(t);r&&(e=!1),h.setFill(r)}if(r){const n=r(t);n&&(e=!1),h.setStroke(n)}if(i){const n=i(t);n&&(e=!1),h.setText(n)}if(a){const n=a(t);n&&(e=!1),h.setImage(n)}return u&&h.setZIndex(u(t)),e?null:h}}function J(t,e,n){let r;if(e+"fill-pattern-src"in t)r=function(t,e,n){const r=et(t,e+"pattern-src",n),i=st(t,e+"pattern-offset",n),o=st(t,e+"pattern-size",n),s=rt(t,e+"color",n);return function(t){return{src:r(t),offset:i&&i(t),size:o&&o(t),color:s&&s(t)}}}(t,e+"fill-",n);else{if("none"===t[e+"fill-color"])return t=>null;r=rt(t,e+"fill-color",n)}if(!r)return null;const i=new a.A;return function(t){const e=r(t);return e===p.qV?null:(i.setColor(e),i)}}function Q(t,e,n){const r=tt(t,e+"stroke-width",n),i=rt(t,e+"stroke-color",n);if(!r&&!i)return null;const o=et(t,e+"stroke-line-cap",n),s=et(t,e+"stroke-line-join",n),a=it(t,e+"stroke-line-dash",n),l=tt(t,e+"stroke-line-dash-offset",n),c=tt(t,e+"stroke-miter-limit",n),h=new u.A;return function(t){if(i){const e=i(t);if(e===p.qV)return null;h.setColor(e)}if(r&&h.setWidth(r(t)),o){const e=o(t);if("butt"!==e&&"round"!==e&&"square"!==e)throw new Error("Expected butt, round, or square line cap");h.setLineCap(e)}if(s){const e=s(t);if("bevel"!==e&&"round"!==e&&"miter"!==e)throw new Error("Expected bevel, round, or miter line join");h.setLineJoin(e)}return a&&h.setLineDash(a(t)),l&&h.setLineDashOffset(l(t)),c&&h.setMiterLimit(c(t)),h}}function tt(t,e,n){if(!(e in t))return;const r=W(t[e],_,n);return function(t){return pt(r(t),e)}}function et(t,e,n){if(!(e in t))return null;const r=W(t[e],v,n);return function(t){return gt(r(t),e)}}function nt(t,e,n){if(!(e in t))return null;const r=W(t[e],y,n);return function(t){const n=r(t);if("boolean"!==typeof n)throw new Error(`Expected a boolean for ${e}`);return n}}function rt(t,e,n){if(!(e in t))return null;const r=W(t[e],x,n);return function(t){return mt(r(t),e)}}function it(t,e,n){if(!(e in t))return null;const r=W(t[e],w,n);return function(t){return ft(r(t),e)}}function ot(t,e,n){if(!(e in t))return null;const r=W(t[e],w,n);return function(t){const n=ft(r(t),e);if(2!==n.length)throw new Error(`Expected two numbers for ${e}`);return n}}function st(t,e,n){if(!(e in t))return null;const r=W(t[e],w,n);return function(t){return yt(r(t),e)}}function at(t,e,n){if(!(e in t))return null;const r=W(t[e],w|_,n);return function(t){return function(t,e){if("number"===typeof t)return t;return yt(t,e)}(r(t),e)}}function lt(t,e){const n=t[e];if(void 0!==n){if("number"!==typeof n)throw new Error(`Expected a number for ${e}`);return n}}function ct(t,e){const n=t[e];if(void 0!==n){if("number"===typeof n)return(0,h.xq)(n);if(!Array.isArray(n))throw new Error(`Expected a number or size array for ${e}`);if(2!==n.length||"number"!==typeof n[0]||"number"!==typeof n[1])throw new Error(`Expected a number or size array for ${e}`);return n}}function ut(t,e){const n=t[e];if(void 0!==n){if("bottom-left"!==n&&"bottom-right"!==n&&"top-left"!==n&&"top-right"!==n)throw new Error(`Expected bottom-left, bottom-right, top-left, or top-right for ${e}`);return n}}function ht(t,e){const n=t[e];if(void 0!==n){if("pixels"!==n&&"fraction"!==n)throw new Error(`Expected pixels or fraction for ${e}`);return n}}function dt(t,e){const n=t[e];if(void 0!==n){if("string"!==typeof n)throw new Error(`Expected a string for ${e}`);if("declutter"!==n&&"obstacle"!==n&&"none"!==n)throw new Error(`Expected declutter, obstacle, or none for ${e}`);return n}}function ft(t,e){if(!Array.isArray(t))throw new Error(`Expected an array for ${e}`);const n=t.length;for(let r=0;r<n;++r)if("number"!==typeof t[r])throw new Error(`Expected an array of numbers for ${e}`);return t}function gt(t,e){if("string"!==typeof t)throw new Error(`Expected a string for ${e}`);return t}function pt(t,e){if("number"!==typeof t)throw new Error(`Expected a number for ${e}`);return t}function mt(t,e){if("string"===typeof t)return t;const n=ft(t,e),r=n.length;if(r<3||r>4)throw new Error(`Expected a color with 3 or 4 values for ${e}`);return n}function yt(t,e){const n=ft(t,e);if(2!==n.length)throw new Error(`Expected an array of two numbers for ${e}`);return n}const _t="renderOrder";class vt extends r.A{constructor(t){t=t||{};const e=Object.assign({},t);delete e.style,delete e.renderBuffer,delete e.updateWhileAnimating,delete e.updateWhileInteracting,super(e),this.declutter_=t.declutter?String(t.declutter):void 0,this.renderBuffer_=void 0!==t.renderBuffer?t.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(t.style),this.updateWhileAnimating_=void 0!==t.updateWhileAnimating&&t.updateWhileAnimating,this.updateWhileInteracting_=void 0!==t.updateWhileInteracting&&t.updateWhileInteracting}getDeclutter(){return this.declutter_}getFeatures(t){return super.getFeatures(t)}getRenderBuffer(){return this.renderBuffer_}getRenderOrder(){return this.get(_t)}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(t,e){const n=this.getDeclutter();n in t.declutter===!1&&(t.declutter[n]=new i.A(9)),this.getRenderer().renderDeclutter(t,e)}setRenderOrder(t){this.set(_t,t)}setStyle(t){this.style_=void 0===t?o.d1:t;const e=function(t){if(void 0===t)return o.d1;if(!t)return null;if("function"===typeof t)return t;if(t instanceof o.Ay)return t;if(!Array.isArray(t))return X([t]);if(0===t.length)return[];const e=t.length,n=t[0];if(n instanceof o.Ay){const n=new Array(e);for(let r=0;r<e;++r){const e=t[r];if(!(e instanceof o.Ay))throw new Error("Expected a list of style instances");n[r]=e}return n}if("style"in n){const n=new Array(e);for(let r=0;r<e;++r){const e=t[r];if(!("style"in e))throw new Error("Expected a list of rules with a style property");n[r]=e}return V(n)}const r=t;return X(r)}(t);this.styleFunction_=null===t?void 0:(0,o.mC)(e),this.changed()}}const xt=vt},29201:(t,e,n)=>{"use strict";n.d(e,{A:()=>f,l:()=>d});var r=n(92439),i=n(31990),o=n(91175),s=n(7971),a=n(42791),l=n(87393),c=n(49196),u=n(78013);class h extends r.A{constructor(t){const e=Object.assign({},t);delete e.source,super(e),this.on,this.once,this.un,this.mapPrecomposeKey_=null,this.mapRenderKey_=null,this.sourceChangeKey_=null,this.renderer_=null,this.sourceReady_=!1,this.rendered=!1,t.render&&(this.render=t.render),t.map&&this.setMap(t.map),this.addChangeListener(o.A.SOURCE,this.handleSourcePropertyChange_);const n=t.source?t.source:null;this.setSource(n)}getLayersArray(t){return(t=t||[]).push(this),t}getLayerStatesArray(t){return(t=t||[]).push(this.getLayerState()),t}getSource(){return this.get(o.A.SOURCE)||null}getRenderSource(){return this.getSource()}getSourceState(){const t=this.getSource();return t?t.getState():"undefined"}handleSourceChange_(){this.changed(),this.sourceReady_||"ready"!==this.getSource().getState()||(this.sourceReady_=!0,this.dispatchEvent("sourceready"))}handleSourcePropertyChange_(){this.sourceChangeKey_&&((0,u.JH)(this.sourceChangeKey_),this.sourceChangeKey_=null),this.sourceReady_=!1;const t=this.getSource();t&&(this.sourceChangeKey_=(0,u.KT)(t,i.A.CHANGE,this.handleSourceChange_,this),"ready"===t.getState()&&(this.sourceReady_=!0,setTimeout((()=>{this.dispatchEvent("sourceready")}),0))),this.changed()}getFeatures(t){return this.renderer_?this.renderer_.getFeatures(t):Promise.resolve([])}getData(t){return this.renderer_&&this.rendered?this.renderer_.getData(t):null}isVisible(t){let e;const n=this.getMapInternal();let r;!t&&n&&(t=n.getView()),e=t instanceof a.Ay?{viewState:t.getState(),extent:t.calculateExtent()}:t,!e.layerStatesArray&&n&&(e.layerStatesArray=n.getLayerGroup().getLayerStatesArray()),r=e.layerStatesArray?e.layerStatesArray.find((t=>t.layer===this)):this.getLayerState();const i=this.getExtent();return d(r,e.viewState)&&(!i||(0,c.HY)(i,e.extent))}getAttributions(t){if(!this.isVisible(t))return[];const e=this.getSource()?.getAttributions();if(!e)return[];let n=e(t instanceof a.Ay?t.getViewStateAndExtent():t);return Array.isArray(n)||(n=[n]),n}render(t,e){const n=this.getRenderer();return n.prepareFrame(t)?(this.rendered=!0,n.renderFrame(t,e)):null}unrender(){this.rendered=!1}getDeclutter(){}renderDeclutter(t,e){}renderDeferred(t){const e=this.getRenderer();e&&e.renderDeferred(t)}setMapInternal(t){t||this.unrender(),this.set(o.A.MAP,t)}getMapInternal(){return this.get(o.A.MAP)}setMap(t){this.mapPrecomposeKey_&&((0,u.JH)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&((0,u.JH)(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=(0,u.KT)(t,s.A.PRECOMPOSE,(t=>{const e=t.frameState.layerStatesArray,n=this.getLayerState(!1);(0,l.v)(!e.some((function(t){return t.layer===n.layer})),"A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both."),e.push(n)})),this.mapRenderKey_=(0,u.KT)(this,i.A.CHANGE,t.render,t),this.changed())}setSource(t){this.set(o.A.SOURCE,t)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}disposeInternal(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),super.disposeInternal()}}function d(t,e){if(!t.visible)return!1;const n=e.resolution;if(n<t.minResolution||n>=t.maxResolution)return!1;const r=e.zoom;return r>t.minZoom&&r<=t.maxZoom}const f=h},91175:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"}},80395:(t,e,n)=>{"use strict";n.d(e,{A:()=>H});var r=n(29201);const i="preload",o="useInterimTilesOnError";class s extends r.A{constructor(t){t=t||{};const e=Object.assign({},t),n=t.cacheSize;delete t.cacheSize,delete e.preload,delete e.useInterimTilesOnError,super(e),this.on,this.once,this.un,this.cacheSize_=n,this.setPreload(void 0!==t.preload?t.preload:0),this.setUseInterimTilesOnError(void 0===t.useInterimTilesOnError||t.useInterimTilesOnError)}getCacheSize(){return this.cacheSize_}getPreload(){return this.get(i)}setPreload(t){this.set(i,t)}getUseInterimTilesOnError(){return this.get(o)}setUseInterimTilesOnError(t){this.set(o,t)}getData(t){return super.getData(t)}}const a=s;var l=n(37510),c=n(42528),u=n(34803),h=n(69710);function d(t){return t instanceof Image||t instanceof HTMLCanvasElement||t instanceof HTMLVideoElement||t instanceof ImageBitmap?t:null}const f=new Error("disposed");let g=null;const p=[256,256];class m extends c.A{constructor(t){const e=u.A.IDLE;super(t.tileCoord,e,{transition:t.transition,interpolate:t.interpolate}),this.loader_=t.loader,this.data_=null,this.error_=null,this.size_=t.size||null,this.controller_=t.controller||null}getSize(){if(this.size_)return this.size_;const t=d(this.data_);return t?[t.width,t.height]:p}getData(){return this.data_}getError(){return this.error_}load(){if(this.state!==u.A.IDLE&&this.state!==u.A.ERROR)return;this.state=u.A.LOADING,this.changed();const t=this;this.loader_().then((function(e){t.data_=e,t.state=u.A.LOADED,t.changed()})).catch((function(e){t.error_=e,t.state=u.A.ERROR,t.changed()}))}disposeInternal(){this.controller_&&(this.controller_.abort(f),this.controller_=null),super.disposeInternal()}}const y=m;var _=n(25983),v=n(96734),x=n(83420),w=n(31990),b=n(34982),S=n(99774),E=n(53442),T=n(49196),C=n(78013);const I=class extends y{constructor(t){super({tileCoord:t.tileCoord,loader:()=>Promise.resolve(new Uint8ClampedArray(4)),interpolate:t.interpolate,transition:t.transition}),this.pixelRatio_=t.pixelRatio,this.gutter_=t.gutter,this.reprojData_=null,this.reprojError_=null,this.reprojSize_=void 0,this.sourceTileGrid_=t.sourceTileGrid,this.targetTileGrid_=t.targetTileGrid,this.wrappedTileCoord_=t.wrappedTileCoord||t.tileCoord,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0;const e=t.sourceProj,n=e.getExtent(),r=t.sourceTileGrid.getExtent();this.clipExtent_=e.canWrapX()?r?(0,T._N)(n,r):n:r;const i=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_),o=this.targetTileGrid_.getExtent();let s=this.sourceTileGrid_.getExtent();const a=o?(0,T._N)(i,o):i;if(0===(0,T.UG)(a))return void(this.state=u.A.EMPTY);n&&(s=s?(0,T._N)(s,n):n);const l=this.targetTileGrid_.getResolution(this.wrappedTileCoord_[0]),c=t.targetProj,h=(0,S.aY)(e,c,a,l);if(!isFinite(h)||h<=0)return void(this.state=u.A.EMPTY);const d=void 0!==t.errorThreshold?t.errorThreshold:x.l;if(this.triangulation_=new b.A(e,c,a,s,h*d,l),0===this.triangulation_.getTriangles().length)return void(this.state=u.A.EMPTY);this.sourceZ_=this.sourceTileGrid_.getZForResolution(h);let f=this.triangulation_.calculateSourceExtent();if(s&&(e.canWrapX()?(f[1]=(0,E.qE)(f[1],s[1],s[3]),f[3]=(0,E.qE)(f[3],s[1],s[3])):f=(0,T._N)(f,s)),(0,T.UG)(f)){let r=0,i=0;e.canWrapX()&&(r=(0,T.RG)(n),i=Math.floor((f[0]-n[0])/r));(0,T.QJ)(f.slice(),e,!0).forEach((e=>{const n=this.sourceTileGrid_.getTileRangeForExtentAndZ(e,this.sourceZ_),o=t.getTileFunction;for(let t=n.minX;t<=n.maxX;t++)for(let e=n.minY;e<=n.maxY;e++){const n=o(this.sourceZ_,t,e,this.pixelRatio_);if(n){const t=i*r;this.sourceTiles_.push({tile:n,offset:t})}}++i})),0===this.sourceTiles_.length&&(this.state=u.A.EMPTY)}else this.state=u.A.EMPTY}getSize(){return this.reprojSize_}getData(){return this.reprojData_}getError(){return this.reprojError_}reproject_(){const t=[];let e=!1;if(this.sourceTiles_.forEach((n=>{const r=n.tile;if(!r||r.getState()!==u.A.LOADED)return;const i=r.getSize(),o=this.gutter_;let s;const a=(l=r.getData())instanceof Uint8Array||l instanceof Uint8ClampedArray||l instanceof Float32Array||l instanceof DataView?l:null;var l;a?s=a:(e=!0,s=function(t){g||(g=(0,h.Y)(t.width,t.height,void 0,{willReadFrequently:!0}));const e=g.canvas,n=t.width;e.width!==n&&(e.width=n);const r=t.height;return e.height!==r&&(e.height=r),g.clearRect(0,0,n,r),g.drawImage(t,0,0),g.getImageData(0,0,n,r).data}(d(r.getData())));const c=[i[0]+2*o,i[1]+2*o],f=s instanceof Float32Array,p=c[0]*c[1],m=f?Float32Array:Uint8ClampedArray,y=new m(s.buffer),_=m.BYTES_PER_ELEMENT,v=_*y.length/p,x=y.byteLength/c[1],w=Math.floor(x/_/c[0]),b=p*w;let S=y;if(y.length!==b){S=new m(b);let t=0,e=0;const n=c[0]*w;for(let r=0;r<c[1];++r){for(let r=0;r<n;++r)S[t++]=y[e+r];e+=x/_}}const E=this.sourceTileGrid_.getTileCoordExtent(r.tileCoord);E[0]+=n.offset,E[2]+=n.offset;const T=this.clipExtent_?.slice();T&&(T[0]+=n.offset,T[2]+=n.offset),t.push({extent:E,clipExtent:T,data:new Uint8ClampedArray(S.buffer),dataType:m,bytesPerPixel:v,pixelSize:c})})),this.sourceTiles_.length=0,0===t.length)return this.state=u.A.ERROR,void this.changed();const n=this.wrappedTileCoord_[0],r=this.targetTileGrid_.getTileSize(n),i="number"===typeof r?r:r[0],o="number"===typeof r?r:r[1],s=this.targetTileGrid_.getResolution(n),a=this.sourceTileGrid_.getResolution(this.sourceZ_),l=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);let c,f;const p=t[0].bytesPerPixel;for(let u=Math.ceil(p/3)-1;u>=0;--u){const e=[];for(let i=0,o=t.length;i<o;++i){const n=t[i],r=n.data,o=n.pixelSize,s=o[0],a=o[1],l=(0,h.Y)(s,a,S.BV),c=l.createImageData(s,a),d=c.data;let f=3*u;for(let t=0,e=d.length;t<e;t+=4)d[t]=r[f],d[t+1]=r[f+1],d[t+2]=r[f+2],d[t+3]=255,f+=p;l.putImageData(c,0,0),e.push({extent:n.extent,clipExtent:n.clipExtent,image:l.canvas})}const n=(0,S.XX)(i,o,this.pixelRatio_,a,this.sourceTileGrid_.getExtent(),s,l,this.triangulation_,e,this.gutter_,!1,!1,!1);for(let t=0,i=e.length;t<i;++t){const n=e[t].image.getContext("2d");(0,h.Yg)(n),S.BV.push(n.canvas)}const r=n.getContext("2d"),d=r.getImageData(0,0,n.width,n.height);(0,h.Yg)(r),S.BV.push(n),c||(f=new Uint8ClampedArray(p*d.width*d.height),c=new t[0].dataType(f.buffer));const g=d.data;let m=3*u;for(let t=0,i=g.length;t<i;t+=4)255===g[t+3]?(f[m]=g[t],f[m+1]=g[t+1],f[m+2]=g[t+2]):(f[m]=0,f[m+1]=0,f[m+2]=0),m+=p}if(e){const t=(0,h.Y)(i,o),e=new ImageData(c,i);t.putImageData(e,0,0),this.reprojData_=t.canvas}else this.reprojData_=c;this.reprojSize_=[Math.round(i*this.pixelRatio_),Math.round(o*this.pixelRatio_)],this.state=u.A.LOADED,this.changed()}load(){if(this.state!==u.A.IDLE&&this.state!==u.A.ERROR)return;this.state=u.A.LOADING,this.changed();let t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach((e=>{let{tile:n}=e;const r=n.getState();if(r!==u.A.IDLE&&r!==u.A.LOADING)return;t++;const i=(0,C.KT)(n,w.A.CHANGE,(()=>{const e=n.getState();e!=u.A.LOADED&&e!=u.A.ERROR&&e!=u.A.EMPTY||((0,C.JH)(i),t--,0===t&&(this.unlistenSources_(),this.reproject_()))}));this.sourcesListenerKeys_.push(i)})),0===t?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach((function(t){let{tile:e}=t;e.getState()==u.A.IDLE&&e.load()}))}unlistenSources_(){this.sourcesListenerKeys_.forEach(C.JH),this.sourcesListenerKeys_=null}};var k=n(92605),O=n(21439),A=n(47458),R=n(95635),D=n(86751),M=n(77120),P=n(62352),L=n(50929);function N(t,e,n,r){return`${t},${(0,D.dp)(e,n,r)}`}function F(t,e,n){if(!(n in t))return t[n]=new Set([e]),!0;const r=t[n],i=r.has(e);return i||r.add(e),!i}function j(t,e,n){const r=t[n];return!!r&&r.delete(e)}function z(t,e){const n=t.layerStatesArray[t.layerIndex];n.extent&&(e=(0,T._N)(e,(0,M.SD)(n.extent,t.viewState.projection)));const r=n.layer.getRenderSource();if(!r.getWrapX()){const n=r.getTileGridForProjection(t.viewState.projection).getExtent();n&&(e=(0,T._N)(e,n))}return e}class G extends l.A{constructor(t,e){super(t),e=e||{},this.extentChanged=!0,this.renderComplete=!1,this.renderedExtent_=null,this.renderedPixelRatio,this.renderedProjection=null,this.renderedRevision,this.renderedTiles=[],this.renderedSourceKey_,this.renderedSourceRevision_,this.tempExtent=(0,T.S5)(),this.tempTileRange_=new O.A(0,0,0,0),this.tempTileCoord_=(0,D.N)(0,0,0);const n=void 0!==e.cacheSize?e.cacheSize:512;this.tileCache_=new v.A(n),this.maxStaleKeys=.5*n}getTileCache(){return this.tileCache_}getOrCreateTile(t,e,n,r){const i=this.tileCache_,o=this.getLayer().getSource(),s=N(o.getKey(),t,e,n);let a;if(i.containsKey(s))a=i.get(s);else{if(a=o.getTile(t,e,n,r.pixelRatio,r.viewState.projection),!a)return null;i.set(s,a)}return a}getTile(t,e,n,r){const i=this.getOrCreateTile(t,e,n,r);return i||null}getData(t){const e=this.frameState;if(!e)return null;const n=this.getLayer(),r=(0,A.Bb)(e.pixelToCoordinateTransform,t.slice()),i=n.getExtent();if(i&&!(0,T.Ym)(i,r))return null;const o=e.viewState,s=n.getRenderSource(),a=s.getTileGridForProjection(o.projection),l=s.getTilePixelRatio(e.pixelRatio);for(let c=a.getZForResolution(o.resolution);c>=a.getMinZoom();--c){const t=a.getTileCoordForCoordAndZ(r,c),n=this.getTile(c,t[1],t[2],e);if(!n||n.getState()!==u.A.LOADED)continue;const i=a.getOrigin(c),h=(0,L.xq)(a.getTileSize(c)),f=a.getResolution(c);let g;if(n instanceof _.A)g=n.getImage();else{if(!(n instanceof y))continue;if(g=d(n.getData()),!g)continue}const p=Math.floor(l*((r[0]-i[0])/f-t[1]*h[0])),m=Math.floor(l*((i[1]-r[1])/f-t[2]*h[1])),v=Math.round(l*s.getGutterForProjection(o.projection));return this.getImageData(g,p+v,m+v)}return null}prepareFrame(t){const e=this.getLayer().getSource();if(!e)return!1;const n=e.getRevision();return this.renderedRevision_?this.renderedRevision_!==n&&(this.renderedRevision_=n,this.renderedSourceKey_===e.getKey()&&this.tileCache_.clear()):this.renderedRevision_=n,!0}enqueueTiles(t,e,n,r,i){const o=t.viewState,s=this.getLayer(),a=s.getRenderSource(),l=a.getTileGridForProjection(o.projection),c=(0,P.v6)(a);c in t.wantedTiles||(t.wantedTiles[c]={});const h=t.wantedTiles[c],d=s.getMapInternal(),f=Math.max(n-i,l.getMinZoom(),l.getZForResolution(Math.min(s.getMaxResolution(),d?d.getView().getResolutionForZoom(Math.max(s.getMinZoom(),0)):l.getResolution(0)),a.zDirection));for(let g=n;g>=f;--g){const n=l.getTileRangeForExtentAndZ(e,g,this.tempTileRange_),i=l.getResolution(g);for(let e=n.minX;e<=n.maxX;++e)for(let o=n.minY;o<=n.maxY;++o){const n=this.getTile(g,e,o,t);if(!n)continue;if(!F(r,n,g))continue;const s=n.getKey();if(h[s]=!0,n.getState()===u.A.IDLE&&!t.tileQueue.isKeyQueued(s)){const r=(0,D.N)(g,e,o,this.tempTileCoord_);t.tileQueue.enqueue([n,c,l.getTileCoordCenter(r),i])}}}}findStaleTile_(t,e){const n=this.tileCache_,r=t[0],i=t[1],o=t[2],s=this.getStaleKeys();for(let a=0;a<s.length;++a){const t=N(s[a],r,i,o);if(n.containsKey(t)){const i=n.get(t);if(i.getState()===u.A.LOADED)return i.endTransition((0,P.v6)(this)),F(e,i,r),!0}}return!1}findAltTiles_(t,e,n,r){const i=t.getTileRangeForTileCoordAndZ(e,n,this.tempTileRange_);if(!i)return!1;let o=!0;const s=this.tileCache_,a=this.getLayer().getRenderSource().getKey();for(let l=i.minX;l<=i.maxX;++l)for(let t=i.minY;t<=i.maxY;++t){const e=N(a,n,l,t);let i=!1;if(s.containsKey(e)){const t=s.get(e);t.getState()===u.A.LOADED&&(F(r,t,n),i=!0)}i||(o=!1)}return o}renderFrame(t,e){this.renderComplete=!0;const n=t.layerStatesArray[t.layerIndex],r=t.viewState,i=r.projection,o=r.resolution,s=r.center,a=t.pixelRatio,l=this.getLayer(),c=l.getSource(),h=c.getRevision(),d=c.getTileGridForProjection(i),f=d.getZForResolution(o,c.zDirection),g=d.getResolution(f),p=c.getKey();this.renderedSourceKey_?this.renderedSourceKey_!==p&&(this.prependStaleKey(this.renderedSourceKey_),this.renderedSourceKey_=p):this.renderedSourceKey_=p;let m=t.extent;const y=c.getTilePixelRatio(a);this.prepareContainer(t,e);const _=this.context.canvas.width,v=this.context.canvas.height,x=n.extent&&(0,M.SD)(n.extent,i);x&&(m=(0,T._N)(m,(0,M.SD)(n.extent,i)));const w=g*_/2/y,b=g*v/2/y,S=[s[0]-w,s[1]-b,s[0]+w,s[1]+b],E={};this.renderedTiles.length=0;const C=l.getPreload();if(t.nextExtent){const e=d.getZForResolution(r.nextResolution,c.zDirection),n=z(t,t.nextExtent);this.enqueueTiles(t,n,e,E,C)}const O=z(t,m);if(this.enqueueTiles(t,O,f,E,0),C>0&&setTimeout((()=>{this.enqueueTiles(t,O,f-1,E,C-1)}),0),!(f in E))return this.container;const D=(0,P.v6)(this),L=t.time;for(const T of E[f]){const e=T.getState();if((T instanceof k.A||T instanceof I)&&e===u.A.EMPTY)continue;const n=T.tileCoord;if(e===u.A.LOADED){if(1===T.getAlpha(D,L)){T.endTransition(D);continue}}this.renderComplete=!1;if(this.findStaleTile_(n,E)){j(E,T,f),t.animate=!0;continue}if(this.findAltTiles_(d,n,f+1,E))continue;const r=d.getMinZoom();for(let t=f-1;t>=r;--t){if(this.findAltTiles_(d,n,t,E))break}}const N=g/o*a/y,F=this.getRenderContext(t);(0,A.Zz)(this.tempTransform,_/2,v/2,N,N,0,-_/2,-v/2),n.extent&&this.clipUnrotated(F,t,x),c.getInterpolate()||(F.imageSmoothingEnabled=!1),this.preRender(F,t);const G=Object.keys(E).map(Number);let q;G.sort(R.V_);const H=[],W=[];for(let I=G.length-1;I>=0;--I){const e=G[I],n=c.getTilePixelSize(e,a,i),r=d.getResolution(e)/g,o=n[0]*r*N,s=n[1]*r*N,l=d.getTileCoordForCoordAndZ((0,T.Py)(S),e),h=d.getTileCoordExtent(l),f=(0,A.Bb)(this.tempTransform,[y*(h[0]-S[0])/g,y*(S[3]-h[3])/g]),p=y*c.getGutterForProjection(i);for(const i of E[e]){if(i.getState()!==u.A.LOADED)continue;const n=i.tileCoord,r=l[1]-n[1],a=Math.round(f[0]-(r-1)*o),h=l[2]-n[2],d=Math.round(f[1]-(h-1)*s),g=Math.round(f[0]-r*o),m=Math.round(f[1]-h*s),y=a-g,_=d-m,v=1===G.length;let x=!1;q=[g,m,g+y,m,g+y,m+_,g,m+_];for(let t=0,i=H.length;t<i;++t)if(!v&&e<W[t]){const e=H[t];(0,T.HY)([g,m,g+y,m+_],[e[0],e[3],e[4],e[7]])&&(x||(F.save(),x=!0),F.beginPath(),F.moveTo(q[0],q[1]),F.lineTo(q[2],q[3]),F.lineTo(q[4],q[5]),F.lineTo(q[6],q[7]),F.moveTo(e[6],e[7]),F.lineTo(e[4],e[5]),F.lineTo(e[2],e[3]),F.lineTo(e[0],e[1]),F.clip())}H.push(q),W.push(e),this.drawTile(i,t,g,m,y,_,p,v),x&&F.restore(),this.renderedTiles.unshift(i),this.updateUsedTiles(t.usedTiles,c,i)}}this.renderedRevision=h,this.renderedResolution=g,this.extentChanged=!this.renderedExtent_||!(0,T.aI)(this.renderedExtent_,S),this.renderedExtent_=S,this.renderedPixelRatio=a,this.renderedProjection=i,this.postRender(this.context,t),n.extent&&F.restore(),F.imageSmoothingEnabled=!0;return t.postRenderFunctions.push(((t,e)=>{const n=(0,P.v6)(c),r=e.wantedTiles[n],i=r?Object.keys(r).length:0;this.updateCacheSize(i),this.tileCache_.expireCache()})),this.container}updateCacheSize(t){this.tileCache_.highWaterMark=Math.max(this.tileCache_.highWaterMark,2*t)}drawTile(t,e,n,r,i,o,s,a){let l;if(t instanceof y){if(l=d(t.getData()),!l)throw new Error("Rendering array data is not yet supported")}else l=this.getTileImage(t);if(!l)return;const c=this.getRenderContext(e),u=(0,P.v6)(this),h=e.layerStatesArray[e.layerIndex],f=h.opacity*(a?t.getAlpha(u,e.time):1),g=f!==c.globalAlpha;g&&(c.save(),c.globalAlpha=f),c.drawImage(l,s,s,l.width-2*s,l.height-2*s,n,r,i,o),g&&c.restore(),f!==h.opacity?e.animate=!0:a&&t.endTransition(u)}getImage(){const t=this.context;return t?t.canvas:null}getTileImage(t){return t.getImage()}updateUsedTiles(t,e,n){const r=(0,P.v6)(e);r in t||(t[r]={}),t[r][n.getKey()]=!0}}const q=G;const H=class extends a{constructor(t){super(t)}createRenderer(){return new q(this,{cacheSize:this.getCacheSize()})}}},48494:(t,e,n)=>{"use strict";n.d(e,{A:()=>_t});var r=n(9464);const i={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},o=[i.FILL],s=[i.STROKE],a=[i.BEGIN_PATH],l=[i.CLOSE_PATH],c=i;var u=n(46833);const h=class{drawCustom(t,e,n,r,i){}drawGeometry(t){}setStyle(t){}drawCircle(t,e,n){}drawFeature(t,e,n){}drawGeometryCollection(t,e,n){}drawLineString(t,e,n){}drawMultiLineString(t,e,n){}drawMultiPoint(t,e,n){}drawMultiPolygon(t,e,n){}drawPoint(t,e,n){}drawPolygon(t,e,n){}drawText(t,e,n){}setFillStrokeStyle(t,e){}setImageStyle(t,e){}setTextStyle(t,e){}};var d=n(13422),f=n(49196),g=n(58247),p=n(95635),m=n(9972);const y=class extends h{constructor(t,e,n,r){super(),this.tolerance=t,this.maxExtent=e,this.pixelRatio=r,this.maxLineWidth=0,this.resolution=n,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_=null,this.bufferedMaxExtent_=null,this.instructions=[],this.coordinates=[],this.tmpCoordinate_=[],this.hitDetectionInstructions=[],this.state={}}applyPixelRatio(t){const e=this.pixelRatio;return 1==e?t:t.map((function(t){return t*e}))}appendFlatPointCoordinates(t,e){const n=this.getBufferedMaxExtent(),r=this.tmpCoordinate_,i=this.coordinates;let o=i.length;for(let s=0,a=t.length;s<a;s+=e)r[0]=t[s],r[1]=t[s+1],(0,f.Ym)(n,r)&&(i[o++]=r[0],i[o++]=r[1]);return o}appendFlatLineCoordinates(t,e,n,r,i,o){const s=this.coordinates;let a=s.length;const l=this.getBufferedMaxExtent();o&&(e+=r);let c=t[e],h=t[e+1];const d=this.tmpCoordinate_;let g,p,m,y=!0;for(g=e+r;g<n;g+=r)d[0]=t[g],d[1]=t[g+1],m=(0,f.vz)(l,d),m!==p?(y&&(s[a++]=c,s[a++]=h,y=!1),s[a++]=d[0],s[a++]=d[1]):m===u.A.INTERSECTING?(s[a++]=d[0],s[a++]=d[1],y=!1):y=!0,c=d[0],h=d[1],p=m;return(i&&y||g===e+r)&&(s[a++]=c,s[a++]=h),a}drawCustomCoordinates_(t,e,n,r,i){for(let o=0,s=n.length;o<s;++o){const s=n[o],a=this.appendFlatLineCoordinates(t,e,s,r,!1,!1);i.push(a),e=s}return e}drawCustom(t,e,n,r,i){this.beginGeometry(t,e,i);const o=t.getType(),s=t.getStride(),a=this.coordinates.length;let l,u,h,d,f;switch(o){case"MultiPolygon":l=t.getOrientedFlatCoordinates(),d=[];const e=t.getEndss();f=0;for(let t=0,n=e.length;t<n;++t){const n=[];f=this.drawCustomCoordinates_(l,f,e[t],s,n),d.push(n)}this.instructions.push([c.CUSTOM,a,d,t,n,m.Dz,i]),this.hitDetectionInstructions.push([c.CUSTOM,a,d,t,r||n,m.Dz,i]);break;case"Polygon":case"MultiLineString":h=[],l="Polygon"==o?t.getOrientedFlatCoordinates():t.getFlatCoordinates(),f=this.drawCustomCoordinates_(l,0,t.getEnds(),s,h),this.instructions.push([c.CUSTOM,a,h,t,n,m.cD,i]),this.hitDetectionInstructions.push([c.CUSTOM,a,h,t,r||n,m.cD,i]);break;case"LineString":case"Circle":l=t.getFlatCoordinates(),u=this.appendFlatLineCoordinates(l,0,l.length,s,!1,!1),this.instructions.push([c.CUSTOM,a,u,t,n,m.n2,i]),this.hitDetectionInstructions.push([c.CUSTOM,a,u,t,r||n,m.n2,i]);break;case"MultiPoint":l=t.getFlatCoordinates(),u=this.appendFlatPointCoordinates(l,s),u>a&&(this.instructions.push([c.CUSTOM,a,u,t,n,m.n2,i]),this.hitDetectionInstructions.push([c.CUSTOM,a,u,t,r||n,m.n2,i]));break;case"Point":l=t.getFlatCoordinates(),this.coordinates.push(l[0],l[1]),u=this.coordinates.length,this.instructions.push([c.CUSTOM,a,u,t,n,void 0,i]),this.hitDetectionInstructions.push([c.CUSTOM,a,u,t,r||n,void 0,i])}this.endGeometry(e)}beginGeometry(t,e,n){this.beginGeometryInstruction1_=[c.BEGIN_GEOMETRY,e,0,t,n],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[c.BEGIN_GEOMETRY,e,0,t,n],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}finish(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}reverseHitDetectionInstructions(){const t=this.hitDetectionInstructions;let e;t.reverse();const n=t.length;let r,i,o=-1;for(e=0;e<n;++e)r=t[e],i=r[0],i==c.END_GEOMETRY?o=e:i==c.BEGIN_GEOMETRY&&(r[2]=e,(0,p.gI)(this.hitDetectionInstructions,o,e),o=-1)}setFillStrokeStyle(t,e){const n=this.state;if(t){const e=t.getColor();n.fillPatternScale=e&&"object"===typeof e&&"src"in e?this.pixelRatio:1,n.fillStyle=(0,d.F)(e||g.qY)}else n.fillStyle=void 0;if(e){const t=e.getColor();n.strokeStyle=(0,d.F)(t||g.NT);const r=e.getLineCap();n.lineCap=void 0!==r?r:g._m;const i=e.getLineDash();n.lineDash=i?i.slice():g.Oq;const o=e.getLineDashOffset();n.lineDashOffset=o||g.vk;const s=e.getLineJoin();n.lineJoin=void 0!==s?s:g._K;const a=e.getWidth();n.lineWidth=void 0!==a?a:g.aq;const l=e.getMiterLimit();n.miterLimit=void 0!==l?l:g.eL,n.lineWidth>this.maxLineWidth&&(this.maxLineWidth=n.lineWidth,this.bufferedMaxExtent_=null)}else n.strokeStyle=void 0,n.lineCap=void 0,n.lineDash=null,n.lineDashOffset=void 0,n.lineJoin=void 0,n.lineWidth=void 0,n.miterLimit=void 0}createFill(t){const e=t.fillStyle,n=[c.SET_FILL_STYLE,e];return"string"!==typeof e&&n.push(t.fillPatternScale),n}applyStroke(t){this.instructions.push(this.createStroke(t))}createStroke(t){return[c.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]}updateFillStyle(t,e){const n=t.fillStyle;"string"===typeof n&&t.currentFillStyle==n||(void 0!==n&&this.instructions.push(e.call(this,t)),t.currentFillStyle=n)}updateStrokeStyle(t,e){const n=t.strokeStyle,r=t.lineCap,i=t.lineDash,o=t.lineDashOffset,s=t.lineJoin,a=t.lineWidth,l=t.miterLimit;(t.currentStrokeStyle!=n||t.currentLineCap!=r||i!=t.currentLineDash&&!(0,p.aI)(t.currentLineDash,i)||t.currentLineDashOffset!=o||t.currentLineJoin!=s||t.currentLineWidth!=a||t.currentMiterLimit!=l)&&(void 0!==n&&e.call(this,t),t.currentStrokeStyle=n,t.currentLineCap=r,t.currentLineDash=i,t.currentLineDashOffset=o,t.currentLineJoin=s,t.currentLineWidth=a,t.currentMiterLimit=l)}endGeometry(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;const e=[c.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)}getBufferedMaxExtent(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=(0,f.o8)(this.maxExtent),this.maxLineWidth>0)){const t=this.resolution*(this.maxLineWidth+1)/2;(0,f.r)(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_}};const _=class extends y{constructor(t,e,n,r){super(t,e,n,r),this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0,this.declutterMode_=void 0,this.declutterImageWithText_=void 0}drawPoint(t,e,n){if(!this.image_||this.maxExtent&&!(0,f.Ym)(this.maxExtent,t.getFlatCoordinates()))return;this.beginGeometry(t,e,n);const r=t.getFlatCoordinates(),i=t.getStride(),o=this.coordinates.length,s=this.appendFlatPointCoordinates(r,i);this.instructions.push([c.DRAW_IMAGE,o,s,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([c.DRAW_IMAGE,o,s,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}drawMultiPoint(t,e,n){if(!this.image_)return;this.beginGeometry(t,e,n);const r=t.getFlatCoordinates(),i=[];for(let a=0,l=r.length;a<l;a+=t.getStride())this.maxExtent&&!(0,f.Ym)(this.maxExtent,r.slice(a,a+2))||i.push(r[a],r[a+1]);const o=this.coordinates.length,s=this.appendFlatPointCoordinates(i,2);this.instructions.push([c.DRAW_IMAGE,o,s,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([c.DRAW_IMAGE,o,s,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}finish(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,super.finish()}setImageStyle(t,e){const n=t.getAnchor(),r=t.getSize(),i=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=n[0],this.anchorY_=n[1],this.hitDetectionImage_=t.getHitDetectionImage(),this.image_=t.getImage(this.pixelRatio),this.height_=r[1],this.opacity_=t.getOpacity(),this.originX_=i[0],this.originY_=i[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=r[0],this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=e}};const v=class extends y{constructor(t,e,n,r){super(t,e,n,r)}drawFlatCoordinates_(t,e,n,r){const i=this.coordinates.length,o=this.appendFlatLineCoordinates(t,e,n,r,!1,!1),s=[c.MOVE_TO_LINE_TO,i,o];return this.instructions.push(s),this.hitDetectionInstructions.push(s),n}drawLineString(t,e,n){const r=this.state,i=r.strokeStyle,o=r.lineWidth;if(void 0===i||void 0===o)return;this.updateStrokeStyle(r,this.applyStroke),this.beginGeometry(t,e,n),this.hitDetectionInstructions.push([c.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,g.Oq,g.vk],a);const l=t.getFlatCoordinates(),u=t.getStride();this.drawFlatCoordinates_(l,0,l.length,u),this.hitDetectionInstructions.push(s),this.endGeometry(e)}drawMultiLineString(t,e,n){const r=this.state,i=r.strokeStyle,o=r.lineWidth;if(void 0===i||void 0===o)return;this.updateStrokeStyle(r,this.applyStroke),this.beginGeometry(t,e,n),this.hitDetectionInstructions.push([c.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,g.Oq,g.vk],a);const l=t.getEnds(),u=t.getFlatCoordinates(),h=t.getStride();let d=0;for(let s=0,a=l.length;s<a;++s)d=this.drawFlatCoordinates_(u,d,l[s],h);this.hitDetectionInstructions.push(s),this.endGeometry(e)}finish(){const t=this.state;return void 0!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&this.instructions.push(s),this.reverseHitDetectionInstructions(),this.state=null,super.finish()}applyStroke(t){void 0!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&(this.instructions.push(s),t.lastStroke=this.coordinates.length),t.lastStroke=0,super.applyStroke(t),this.instructions.push(a)}};var x=n(16680);const w=class extends y{constructor(t,e,n,r){super(t,e,n,r)}drawFlatCoordinatess_(t,e,n,r){const i=this.state,u=void 0!==i.fillStyle,h=void 0!==i.strokeStyle,d=n.length;this.instructions.push(a),this.hitDetectionInstructions.push(a);for(let o=0;o<d;++o){const i=n[o],s=this.coordinates.length,a=this.appendFlatLineCoordinates(t,e,i,r,!0,!h),u=[c.MOVE_TO_LINE_TO,s,a];this.instructions.push(u),this.hitDetectionInstructions.push(u),h&&(this.instructions.push(l),this.hitDetectionInstructions.push(l)),e=i}return u&&(this.instructions.push(o),this.hitDetectionInstructions.push(o)),h&&(this.instructions.push(s),this.hitDetectionInstructions.push(s)),e}drawCircle(t,e,n){const r=this.state,i=r.fillStyle,l=r.strokeStyle;if(void 0===i&&void 0===l)return;this.setFillStrokeStyles_(),this.beginGeometry(t,e,n),void 0!==r.fillStyle&&this.hitDetectionInstructions.push([c.SET_FILL_STYLE,g.qY]),void 0!==r.strokeStyle&&this.hitDetectionInstructions.push([c.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,g.Oq,g.vk]);const u=t.getFlatCoordinates(),h=t.getStride(),d=this.coordinates.length;this.appendFlatLineCoordinates(u,0,u.length,h,!1,!1);const f=[c.CIRCLE,d];this.instructions.push(a,f),this.hitDetectionInstructions.push(a,f),void 0!==r.fillStyle&&(this.instructions.push(o),this.hitDetectionInstructions.push(o)),void 0!==r.strokeStyle&&(this.instructions.push(s),this.hitDetectionInstructions.push(s)),this.endGeometry(e)}drawPolygon(t,e,n){const r=this.state,i=r.fillStyle,o=r.strokeStyle;if(void 0===i&&void 0===o)return;this.setFillStrokeStyles_(),this.beginGeometry(t,e,n),void 0!==r.fillStyle&&this.hitDetectionInstructions.push([c.SET_FILL_STYLE,g.qY]),void 0!==r.strokeStyle&&this.hitDetectionInstructions.push([c.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,g.Oq,g.vk]);const s=t.getEnds(),a=t.getOrientedFlatCoordinates(),l=t.getStride();this.drawFlatCoordinatess_(a,0,s,l),this.endGeometry(e)}drawMultiPolygon(t,e,n){const r=this.state,i=r.fillStyle,o=r.strokeStyle;if(void 0===i&&void 0===o)return;this.setFillStrokeStyles_(),this.beginGeometry(t,e,n),void 0!==r.fillStyle&&this.hitDetectionInstructions.push([c.SET_FILL_STYLE,g.qY]),void 0!==r.strokeStyle&&this.hitDetectionInstructions.push([c.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,g.Oq,g.vk]);const s=t.getEndss(),a=t.getOrientedFlatCoordinates(),l=t.getStride();let u=0;for(let c=0,h=s.length;c<h;++c)u=this.drawFlatCoordinatess_(a,u,s[c],l);this.endGeometry(e)}finish(){this.reverseHitDetectionInstructions(),this.state=null;const t=this.tolerance;if(0!==t){const e=this.coordinates;for(let n=0,r=e.length;n<r;++n)e[n]=(0,x.n$)(e[n],t)}return super.finish()}setFillStrokeStyles_(){const t=this.state;void 0!==t.fillStyle&&this.updateFillStyle(t,this.createFill),void 0!==t.strokeStyle&&this.updateStrokeStyle(t,this.applyStroke)}};var b=n(62352),S=n(53442);function E(t,e,n,r,i){const o=[];let s=n,a=0,l=e.slice(n,2);for(;a<t&&s+i<r;){const[n,r]=l.slice(-2),c=e[s+i],u=e[s+i+1],h=Math.sqrt((c-n)*(c-n)+(u-r)*(u-r));if(a+=h,a>=t){const e=(t-a+h)/h,d=(0,S.Cc)(n,c,e),f=(0,S.Cc)(r,u,e);l.push(d,f),o.push(l),l=[d,f],a==t&&(s+=i),a=0}else if(a<t)l.push(e[s+i],e[s+i+1]),s+=i;else{const t=h-a,e=(0,S.Cc)(n,c,t/h),d=(0,S.Cc)(r,u,t/h);l.push(e,d),o.push(l),l=[e,d],a=0,s+=i}}return a>0&&o.push(l),o}function T(t,e,n,r,i){let o,s,a,l,c,u,h,d,f,g,p=n,m=n,y=0,_=0,v=n;for(s=n;s<r;s+=i){const n=e[s],r=e[s+1];void 0!==c&&(f=n-c,g=r-u,l=Math.sqrt(f*f+g*g),void 0!==h&&(_+=a,o=Math.acos((h*f+d*g)/(a*l)),o>t&&(_>y&&(y=_,p=v,m=s),_=0,v=s-i)),a=l,h=f,d=g),c=n,u=r}return _+=l,_>y?[v,s]:[p,m]}const C={left:0,center:.5,right:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1};const I=class extends y{constructor(t,e,n,r){super(t,e,n,r),this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.fillStates[g.qY]={fillStyle:g.qY},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.declutterMode_=void 0,this.declutterImageWithText_=void 0}finish(){const t=super.finish();return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t}drawText(t,e,n){const r=this.textFillState_,i=this.textStrokeState_,o=this.textState_;if(""===this.text_||!o||!r&&!i)return;const s=this.coordinates;let a=s.length;const l=t.getType();let u=null,h=t.getStride();if("line"!==o.placement||"LineString"!=l&&"MultiLineString"!=l&&"Polygon"!=l&&"MultiPolygon"!=l){let r=o.overflow?null:[];switch(l){case"Point":case"MultiPoint":u=t.getFlatCoordinates();break;case"LineString":u=t.getFlatMidpoint();break;case"Circle":u=t.getCenter();break;case"MultiLineString":u=t.getFlatMidpoints(),h=2;break;case"Polygon":u=t.getFlatInteriorPoint(),o.overflow||r.push(u[2]/this.resolution),h=3;break;case"MultiPolygon":const e=t.getFlatInteriorPoints();u=[];for(let t=0,n=e.length;t<n;t+=3)o.overflow||r.push(e[t+2]/this.resolution),u.push(e[t],e[t+1]);if(0===u.length)return;h=2}const i=this.appendFlatPointCoordinates(u,h);if(i===a)return;if(r&&(i-a)/2!==u.length/h){let t=a/2;r=r.filter(((e,n)=>{const r=s[2*(t+n)]===u[n*h]&&s[2*(t+n)+1]===u[n*h+1];return r||--t,r}))}this.saveTextStates_(),(o.backgroundFill||o.backgroundStroke)&&(this.setFillStrokeStyle(o.backgroundFill,o.backgroundStroke),o.backgroundFill&&this.updateFillStyle(this.state,this.createFill),o.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e,n);let d=o.padding;if(d!=g.Tq&&(o.scale[0]<0||o.scale[1]<0)){let t=o.padding[0],e=o.padding[1],n=o.padding[2],r=o.padding[3];o.scale[0]<0&&(e=-e,r=-r),o.scale[1]<0&&(t=-t,n=-n),d=[t,e,n,r]}const f=this.pixelRatio;this.instructions.push([c.DRAW_IMAGE,a,i,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,this.declutterMode_,this.declutterImageWithText_,d==g.Tq?g.Tq:d.map((function(t){return t*f})),!!o.backgroundFill,!!o.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,r]);const p=1/f,m=this.state.fillStyle;o.backgroundFill&&(this.state.fillStyle=g.qY,this.hitDetectionInstructions.push(this.createFill(this.state))),this.hitDetectionInstructions.push([c.DRAW_IMAGE,a,i,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[p,p],NaN,this.declutterMode_,this.declutterImageWithText_,d,!!o.backgroundFill,!!o.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_?g.qY:this.fillKey_,this.textOffsetX_,this.textOffsetY_,r]),o.backgroundFill&&(this.state.fillStyle=m,this.hitDetectionInstructions.push(this.createFill(this.state))),this.endGeometry(e)}else{if(!(0,f.HY)(this.maxExtent,t.getExtent()))return;let r;if(u=t.getFlatCoordinates(),"LineString"==l)r=[u.length];else if("MultiLineString"==l)r=t.getEnds();else if("Polygon"==l)r=t.getEnds().slice(0,1);else if("MultiPolygon"==l){const e=t.getEndss();r=[];for(let t=0,n=e.length;t<n;++t)r.push(e[t][0])}this.beginGeometry(t,e,n);const i=o.repeat,c=i?void 0:o.textAlign;let d=0;for(let t=0,e=r.length;t<e;++t){let e;e=i?E(i*this.resolution,u,d,r[t],h):[u.slice(d,r[t])];for(let n=0,i=e.length;n<i;++n){const i=e[n];let l=0,u=i.length;if(void 0==c){const t=T(o.maxAngle,i,0,i.length,2);l=t[0],u=t[1]}for(let t=l;t<u;t+=h)s.push(i[t],i[t+1]);const f=s.length;d=r[t],this.drawChars_(a,f),a=f}}this.endGeometry(e)}}saveTextStates_(){const t=this.textStrokeState_,e=this.textState_,n=this.textFillState_,r=this.strokeKey_;t&&(r in this.strokeStates||(this.strokeStates[r]={strokeStyle:t.strokeStyle,lineCap:t.lineCap,lineDashOffset:t.lineDashOffset,lineWidth:t.lineWidth,lineJoin:t.lineJoin,miterLimit:t.miterLimit,lineDash:t.lineDash}));const i=this.textKey_;i in this.textStates||(this.textStates[i]={font:e.font,textAlign:e.textAlign||g.MY,justify:e.justify,textBaseline:e.textBaseline||g.M8,scale:e.scale});const o=this.fillKey_;n&&(o in this.fillStates||(this.fillStates[o]={fillStyle:n.fillStyle}))}drawChars_(t,e){const n=this.textStrokeState_,r=this.textState_,i=this.strokeKey_,o=this.textKey_,s=this.fillKey_;this.saveTextStates_();const a=this.pixelRatio,l=C[r.textBaseline],u=this.textOffsetY_*a,h=this.text_,d=n?n.lineWidth*Math.abs(r.scale[0])/2:0;this.instructions.push([c.DRAW_CHARS,t,e,l,r.overflow,s,r.maxAngle,a,u,i,d*a,h,o,1,this.declutterMode_]),this.hitDetectionInstructions.push([c.DRAW_CHARS,t,e,l,r.overflow,s?g.qY:s,r.maxAngle,a,u,i,d*a,h,o,1/a,this.declutterMode_])}setTextStyle(t,e){let n,r,i;if(t){const e=t.getFill();e?(r=this.textFillState_,r||(r={},this.textFillState_=r),r.fillStyle=(0,d.F)(e.getColor()||g.qY)):(r=null,this.textFillState_=r);const o=t.getStroke();if(o){i=this.textStrokeState_,i||(i={},this.textStrokeState_=i);const t=o.getLineDash(),e=o.getLineDashOffset(),n=o.getWidth(),r=o.getMiterLimit();i.lineCap=o.getLineCap()||g._m,i.lineDash=t?t.slice():g.Oq,i.lineDashOffset=void 0===e?g.vk:e,i.lineJoin=o.getLineJoin()||g._K,i.lineWidth=void 0===n?g.aq:n,i.miterLimit=void 0===r?g.eL:r,i.strokeStyle=(0,d.F)(o.getColor()||g.NT)}else i=null,this.textStrokeState_=i;n=this.textState_;const s=t.getFont()||g.ZV;(0,g.fZ)(s);const a=t.getScaleArray();n.overflow=t.getOverflow(),n.font=s,n.maxAngle=t.getMaxAngle(),n.placement=t.getPlacement(),n.textAlign=t.getTextAlign(),n.repeat=t.getRepeat(),n.justify=t.getJustify(),n.textBaseline=t.getTextBaseline()||g.M8,n.backgroundFill=t.getBackgroundFill(),n.backgroundStroke=t.getBackgroundStroke(),n.padding=t.getPadding()||g.Tq,n.scale=void 0===a?[1,1]:a;const l=t.getOffsetX(),c=t.getOffsetY(),u=t.getRotateWithView(),h=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=void 0===l?0:l,this.textOffsetY_=void 0===c?0:c,this.textRotateWithView_=void 0!==u&&u,this.textRotation_=void 0===h?0:h,this.strokeKey_=i?("string"==typeof i.strokeStyle?i.strokeStyle:(0,b.v6)(i.strokeStyle))+i.lineCap+i.lineDashOffset+"|"+i.lineWidth+i.lineJoin+i.miterLimit+"["+i.lineDash.join()+"]":"",this.textKey_=n.font+n.scale+(n.textAlign||"?")+(n.repeat||"?")+(n.justify||"?")+(n.textBaseline||"?"),this.fillKey_=r&&r.fillStyle?"string"==typeof r.fillStyle?r.fillStyle:"|"+(0,b.v6)(r.fillStyle):""}else this.text_="";this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=e}},k={Circle:w,Default:y,Image:_,LineString:v,Polygon:w,Text:I};const O=class{constructor(t,e,n,r){this.tolerance_=t,this.maxExtent_=e,this.pixelRatio_=r,this.resolution_=n,this.buildersByZIndex_={}}finish(){const t={};for(const e in this.buildersByZIndex_){t[e]=t[e]||{};const n=this.buildersByZIndex_[e];for(const r in n){const i=n[r].finish();t[e][r]=i}}return t}getBuilder(t,e){const n=void 0!==t?t.toString():"0";let r=this.buildersByZIndex_[n];void 0===r&&(r={},this.buildersByZIndex_[n]=r);let i=r[e];if(void 0===i){i=new(0,k[e])(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),r[e]=i}return i}};var A=n(37510),R=n(59477),D=n(47458),M=n(97075);function P(t,e,n,r,i,o,s,a,l,c,u,h){let d=t[e],f=t[e+1],g=0,p=0,m=0,y=0;function _(){g=d,p=f,d=t[e+=r],f=t[e+1],y+=m,m=Math.sqrt((d-g)*(d-g)+(f-p)*(f-p))}do{_()}while(e<n-r&&y+m<o);let v=0===m?0:(o-y)/m;const x=(0,S.Cc)(g,d,v),w=(0,S.Cc)(p,f,v),b=e-r,E=y,T=o+a*l(c,i,u);for(;e<n-r&&y+m<T;)_();v=0===m?0:(T-y)/m;const C=(0,S.Cc)(g,d,v),I=(0,S.Cc)(p,f,v);let k;if(h){const t=[x,w,C,I];(0,M.e$)(t,0,4,2,h,t,t),k=t[0]>t[2]}else k=x>C;const O=Math.PI,A=[],R=b+r===e;let D;if(m=0,y=E,d=t[e=b],f=t[e+1],R){_(),D=Math.atan2(f-p,d-g),k&&(D+=D>0?-O:O);const t=(C+x)/2,e=(I+w)/2;return A[0]=[t,e,(T-o)/2,D,i],A}for(let M=0,P=(i=i.replace(/\n/g," ")).length;M<P;){_();let t=Math.atan2(f-p,d-g);if(k&&(t+=t>0?-O:O),void 0!==D){let e=t-D;if(e+=e>O?-2*O:e<-O?2*O:0,Math.abs(e)>s)return null}D=t;const h=M;let x=0;for(;M<P;++M){const t=a*l(c,i[k?P-M-1:M],u);if(e+r<n&&y+m<o+x+t/2)break;x+=t}if(M===h)continue;const w=k?i.substring(P-h,P-M):i.substring(h,M);v=0===m?0:(o+x/2-y)/m;const b=(0,S.Cc)(g,d,v),E=(0,S.Cc)(p,f,v);A.push([b,E,x/2,t,w]),o+=x}return A}function L(t,e,n,r){let i=t[e],o=t[e+1],s=0;for(let a=e+r;a<n;a+=r){const e=t[a],n=t[a+1];s+=Math.sqrt((e-i)*(e-i)+(n-o)*(n-o)),i=e,o=n}return s}const N=(0,f.S5)(),F=[],j=[],z=[],G=[];function q(t){return t[3].declutterBox}const H=new RegExp("["+String.fromCharCode(1425)+"-"+String.fromCharCode(2303)+String.fromCharCode(64285)+"-"+String.fromCharCode(65023)+String.fromCharCode(65136)+"-"+String.fromCharCode(65276)+String.fromCharCode(67584)+"-"+String.fromCharCode(69631)+String.fromCharCode(124928)+"-"+String.fromCharCode(126975)+"]");function W(t,e){return"start"===e?e=H.test(t)?"right":"left":"end"===e&&(e=H.test(t)?"left":"right"),C[e]}function B(t,e,n){return n>0&&t.push("\n",""),t.push(e,""),t}const Y=class{constructor(t,e,n,r,i){this.overlaps=n,this.pixelRatio=e,this.resolution=t,this.alignAndScaleFill_,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderedTransform_=(0,D.vt)(),this.hitDetectionInstructions=r.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=r.fillStates||{},this.strokeStates=r.strokeStates||{},this.textStates=r.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=i?new R.A:null}getZIndexContext(){return this.zIndexContext_}createLabel(t,e,n,r){const i=t+e+n+r;if(this.labels_[i])return this.labels_[i];const o=r?this.strokeStates[r]:null,s=n?this.fillStates[n]:null,a=this.textStates[e],l=this.pixelRatio,c=[a.scale[0]*l,a.scale[1]*l],u=a.justify?C[a.justify]:W(Array.isArray(t)?t[0]:t,a.textAlign||g.MY),h=r&&o.lineWidth?o.lineWidth:0,d=Array.isArray(t)?t:String(t).split("\n").reduce(B,[]),{width:f,height:p,widths:m,heights:y,lineWidths:_}=(0,g.jT)(a,d),v=f+h,x=[],w=(v+2)*c[0],b=(p+h)*c[1],S={width:w<0?Math.floor(w):Math.ceil(w),height:b<0?Math.floor(b):Math.ceil(b),contextInstructions:x};1==c[0]&&1==c[1]||x.push("scale",c),r&&(x.push("strokeStyle",o.strokeStyle),x.push("lineWidth",h),x.push("lineCap",o.lineCap),x.push("lineJoin",o.lineJoin),x.push("miterLimit",o.miterLimit),x.push("setLineDash",[o.lineDash]),x.push("lineDashOffset",o.lineDashOffset)),n&&x.push("fillStyle",s.fillStyle),x.push("textBaseline","middle"),x.push("textAlign","center");const E=.5-u;let T=u*v+E*h;const I=[],k=[];let O,A=0,R=0,D=0,M=0;for(let g=0,C=d.length;g<C;g+=2){const t=d[g];if("\n"===t){R+=A,A=0,T=u*v+E*h,++M;continue}const e=d[g+1]||a.font;e!==O&&(r&&I.push("font",e),n&&k.push("font",e),O=e),A=Math.max(A,y[D]);const i=[t,T+E*m[D]+u*(m[D]-_[M]),.5*(h+A)+R];T+=m[D],r&&I.push("strokeText",i),n&&k.push("fillText",i),++D}return Array.prototype.push.apply(x,I),Array.prototype.push.apply(x,k),this.labels_[i]=S,S}replayTextBackground_(t,e,n,r,i,o,s){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,n),t.lineTo.apply(t,r),t.lineTo.apply(t,i),t.lineTo.apply(t,e),o&&(this.alignAndScaleFill_=o[2],this.fill_(t)),s&&(this.setStrokeStyle_(t,s),t.stroke())}calculateImageOrLabelDimensions_(t,e,n,r,i,o,s,a,l,c,u,h,d,g,p,m){let y=n-(s*=h[0]),_=r-(a*=h[1]);const v=i+l>t?t-l:i,x=o+c>e?e-c:o,w=g[3]+v*h[0]+g[1],b=g[0]+x*h[1]+g[2],S=y-g[3],E=_-g[0];let T;return(p||0!==u)&&(F[0]=S,G[0]=S,F[1]=E,j[1]=E,j[0]=S+w,z[0]=j[0],z[1]=E+b,G[1]=z[1]),0!==u?(T=(0,D.Zz)((0,D.vt)(),n,r,1,1,u,-n,-r),(0,D.Bb)(T,F),(0,D.Bb)(T,j),(0,D.Bb)(T,z),(0,D.Bb)(T,G),(0,f.N)(Math.min(F[0],j[0],z[0],G[0]),Math.min(F[1],j[1],z[1],G[1]),Math.max(F[0],j[0],z[0],G[0]),Math.max(F[1],j[1],z[1],G[1]),N)):(0,f.N)(Math.min(S,S+w),Math.min(E,E+b),Math.max(S,S+w),Math.max(E,E+b),N),d&&(y=Math.round(y),_=Math.round(_)),{drawImageX:y,drawImageY:_,drawImageW:v,drawImageH:x,originX:l,originY:c,declutterBox:{minX:N[0],minY:N[1],maxX:N[2],maxY:N[3],value:m},canvasTransform:T,scale:h}}replayImageOrLabel_(t,e,n,r,i,o,s){const a=!(!o&&!s),l=r.declutterBox,c=s?s[2]*r.scale[0]/2:0;return l.minX-c<=e[0]&&l.maxX+c>=0&&l.minY-c<=e[1]&&l.maxY+c>=0&&(a&&this.replayTextBackground_(t,F,j,z,G,o,s),(0,g.Jw)(t,r.canvasTransform,i,n,r.originX,r.originY,r.drawImageW,r.drawImageH,r.drawImageX,r.drawImageY,r.scale)),!0}fill_(t){const e=this.alignAndScaleFill_;if(e){const n=(0,D.Bb)(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;t.save(),t.translate(n[0]%r,n[1]%r),1!==e&&t.scale(e,e),t.rotate(this.viewRotation_)}t.fill(),e&&t.restore()}setStrokeStyle_(t,e){t.strokeStyle=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.lineDashOffset=e[7],t.setLineDash(e[6])}drawLabelWithPointPlacement_(t,e,n,r){const i=this.textStates[e],o=this.createLabel(t,e,r,n),s=this.strokeStates[n],a=this.pixelRatio,l=W(Array.isArray(t)?t[0]:t,i.textAlign||g.MY),c=C[i.textBaseline||g.M8],u=s&&s.lineWidth?s.lineWidth:0;return{label:o,anchorX:l*(o.width/a-2*i.scale[0])+2*(.5-l)*u,anchorY:c*o.height/a+2*(.5-c)*u}}execute_(t,e,n,r,i,o,s,a){const l=this.zIndexContext_;let u;this.pixelCoordinates_&&(0,p.aI)(n,this.renderedTransform_)?u=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),u=(0,M.Rc)(this.coordinates,0,this.coordinates.length,2,n,this.pixelCoordinates_),(0,D.k3)(this.renderedTransform_,n));let h=0;const d=r.length;let m,y,_,v,x,w,b,S,E,T,C,I,k,O=0,A=0,R=0,N=null,F=null;const j=this.coordinateCache_,z=this.viewRotation_,G=Math.round(1e12*Math.atan2(-n[1],n[0]))/1e12,H={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:z},B=this.instructions!=r||this.overlaps?0:200;let Y,U,K,$;for(;h<d;){const n=r[h];switch(n[0]){case c.BEGIN_GEOMETRY:Y=n[1],$=n[3],Y.getGeometry()?void 0===s||(0,f.HY)(s,$.getExtent())?++h:h=n[2]+1:h=n[2],l&&(l.zIndex=n[4]);break;case c.BEGIN_PATH:A>B&&(this.fill_(t),A=0),R>B&&(t.stroke(),R=0),A||R||(t.beginPath(),x=NaN,w=NaN),++h;break;case c.CIRCLE:O=n[1];const r=u[O],d=u[O+1],p=u[O+2]-r,D=u[O+3]-d,M=Math.sqrt(p*p+D*D);t.moveTo(r+M,d),t.arc(r,d,M,0,2*Math.PI,!0),++h;break;case c.CLOSE_PATH:t.closePath(),++h;break;case c.CUSTOM:O=n[1],m=n[2];const V=n[3],X=n[4],Z=n[5];H.geometry=V,H.feature=Y,h in j||(j[h]=[]);const J=j[h];Z?Z(u,O,m,2,J):(J[0]=u[O],J[1]=u[O+1],J.length=2),l&&(l.zIndex=n[6]),X(J,H),++h;break;case c.DRAW_IMAGE:O=n[1],m=n[2],E=n[3],y=n[4],_=n[5];let Q=n[6];const tt=n[7],et=n[8],nt=n[9],rt=n[10];let it=n[11];const ot=n[12];let st=n[13];v=n[14]||"declutter";const at=n[15];if(!E&&n.length>=20){T=n[19],C=n[20],I=n[21],k=n[22];const t=this.drawLabelWithPointPlacement_(T,C,I,k);E=t.label,n[3]=E;const e=n[23];y=(t.anchorX-e)*this.pixelRatio,n[4]=y;const r=n[24];_=(t.anchorY-r)*this.pixelRatio,n[5]=_,Q=E.height,n[6]=Q,st=E.width,n[13]=st}let lt,ct,ut,ht;n.length>25&&(lt=n[25]),n.length>17?(ct=n[16],ut=n[17],ht=n[18]):(ct=g.Tq,ut=!1,ht=!1),rt&&G?it+=z:rt||G||(it-=z);let dt=0;for(;O<m;O+=2){if(lt&<[dt++]<st/this.pixelRatio)continue;const n=this.calculateImageOrLabelDimensions_(E.width,E.height,u[O],u[O+1],st,Q,y,_,et,nt,it,ot,i,ct,ut||ht,Y),r=[t,e,E,n,tt,ut?N:null,ht?F:null];if(a){let t,e,i,o,s;if(at){const n=m-O;if(!at[n]){at[n]={args:r,declutterMode:v};continue}const o=at[n];t=o.args,e=o.declutterMode,delete at[n],i=q(t)}if(!t||"declutter"===e&&a.collides(i)||(o=!0),"declutter"===v&&a.collides(n.declutterBox)||(s=!0),"declutter"===e&&"declutter"===v){const t=o&&s;o=t,s=t}o&&("none"!==e&&a.insert(i),this.replayImageOrLabel_.apply(this,t)),s&&("none"!==v&&a.insert(n.declutterBox),this.replayImageOrLabel_.apply(this,r))}else this.replayImageOrLabel_.apply(this,r)}++h;break;case c.DRAW_CHARS:const ft=n[1],gt=n[2],pt=n[3],mt=n[4];k=n[5];const yt=n[6],_t=n[7],vt=n[8];I=n[9];const xt=n[10];T=n[11],C=n[12];const wt=[n[13],n[13]];v=n[14]||"declutter";const bt=this.textStates[C],St=bt.font,Et=[bt.scale[0]*_t,bt.scale[1]*_t];let Tt;St in this.widths_?Tt=this.widths_[St]:(Tt={},this.widths_[St]=Tt);const Ct=L(u,ft,gt,2),It=Math.abs(Et[0])*(0,g.TA)(St,T,Tt);if(mt||It<=Ct){const n=P(u,ft,gt,2,T,(Ct-It)*W(T,this.textStates[C].textAlign),yt,Math.abs(Et[0]),g.TA,St,Tt,G?0:this.viewRotation_);t:if(n){const r=[];let i,o,s,l,c;if(I)for(i=0,o=n.length;i<o;++i){c=n[i],s=c[4],l=this.createLabel(s,C,"",I),y=c[2]+(Et[0]<0?-xt:xt),_=pt*l.height+2*(.5-pt)*xt*Et[1]/Et[0]-vt;const o=this.calculateImageOrLabelDimensions_(l.width,l.height,c[0],c[1],l.width,l.height,y,_,0,0,c[3],wt,!1,g.Tq,!1,Y);if(a&&"declutter"===v&&a.collides(o.declutterBox))break t;r.push([t,e,l,o,1,null,null])}if(k)for(i=0,o=n.length;i<o;++i){c=n[i],s=c[4],l=this.createLabel(s,C,k,""),y=c[2],_=pt*l.height-vt;const o=this.calculateImageOrLabelDimensions_(l.width,l.height,c[0],c[1],l.width,l.height,y,_,0,0,c[3],wt,!1,g.Tq,!1,Y);if(a&&"declutter"===v&&a.collides(o.declutterBox))break t;r.push([t,e,l,o,1,null,null])}a&&"none"!==v&&a.load(r.map(q));for(let t=0,e=r.length;t<e;++t)this.replayImageOrLabel_.apply(this,r[t])}}++h;break;case c.END_GEOMETRY:if(void 0!==o){Y=n[1];const t=o(Y,$,v);if(t)return t}++h;break;case c.FILL:B?A++:this.fill_(t),++h;break;case c.MOVE_TO_LINE_TO:for(O=n[1],m=n[2],U=u[O],K=u[O+1],t.moveTo(U,K),x=U+.5|0,w=K+.5|0,O+=2;O<m;O+=2)U=u[O],K=u[O+1],b=U+.5|0,S=K+.5|0,O!=m-2&&b===x&&S===w||(t.lineTo(U,K),x=b,w=S);++h;break;case c.SET_FILL_STYLE:N=n,this.alignAndScaleFill_=n[2],A&&(this.fill_(t),A=0,R&&(t.stroke(),R=0)),t.fillStyle=n[1],++h;break;case c.SET_STROKE_STYLE:F=n,R&&(t.stroke(),R=0),this.setStrokeStyle_(t,n),++h;break;case c.STROKE:B?R++:t.stroke(),++h;break;default:++h}}A&&this.fill_(t),R&&t.stroke()}execute(t,e,n,r,i,o){this.viewRotation_=r,this.execute_(t,e,n,this.instructions,i,void 0,void 0,o)}executeHitDetection(t,e,n,r,i){return this.viewRotation_=n,this.execute_(t,[t.canvas.width,t.canvas.height],e,this.hitDetectionInstructions,!0,r,i)}};var U=n(69710),K=n(44835);const $=["Polygon","Circle","LineString","Image","Text","Default"],V=["Image","Text"],X=$.filter((t=>!V.includes(t)));const Z={};const J=class{constructor(t,e,n,r,i,o,s){this.maxExtent_=t,this.overlaps_=r,this.pixelRatio_=n,this.resolution_=e,this.renderBuffer_=o,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=(0,D.vt)(),this.renderedContext_=null,this.deferredZIndexContexts_={},this.createExecutors_(i,s)}clip(t,e){const n=this.getClipCoords(e);t.beginPath(),t.moveTo(n[0],n[1]),t.lineTo(n[2],n[3]),t.lineTo(n[4],n[5]),t.lineTo(n[6],n[7]),t.clip()}createExecutors_(t,e){for(const n in t){let r=this.executorsByZIndex_[n];void 0===r&&(r={},this.executorsByZIndex_[n]=r);const i=t[n];for(const t in i){const n=i[t];r[t]=new Y(this.resolution_,this.pixelRatio_,this.overlaps_,n,e)}}}hasExecutors(t){for(const e in this.executorsByZIndex_){const n=this.executorsByZIndex_[e];for(let e=0,r=t.length;e<r;++e)if(t[e]in n)return!0}return!1}forEachFeatureAtCoordinate(t,e,n,r,i,o){const s=2*(r=Math.round(r))+1,a=(0,D.Zz)(this.hitDetectionTransform_,r+.5,r+.5,1/e,-1/e,-n,-t[0],-t[1]),l=!this.hitDetectionContext_;l&&(this.hitDetectionContext_=(0,U.Y)(s,s,void 0,{willReadFrequently:!0}));const c=this.hitDetectionContext_;let u;c.canvas.width!==s||c.canvas.height!==s?(c.canvas.width=s,c.canvas.height=s):l||c.clearRect(0,0,s,s),void 0!==this.renderBuffer_&&(u=(0,f.S5)(),(0,f.$C)(u,t),(0,f.r)(u,e*(this.renderBuffer_+r),u));const h=function(t){if(void 0!==Z[t])return Z[t];const e=2*t+1,n=t*t,r=new Array(n+1);for(let o=0;o<=t;++o)for(let i=0;i<=t;++i){const s=o*o+i*i;if(s>n)break;let a=r[s];a||(a=[],r[s]=a),a.push(4*((t+o)*e+(t+i))+3),o>0&&a.push(4*((t-o)*e+(t+i))+3),i>0&&(a.push(4*((t+o)*e+(t-i))+3),o>0&&a.push(4*((t-o)*e+(t-i))+3))}const i=[];for(let o=0,s=r.length;o<s;++o)r[o]&&i.push(...r[o]);return Z[t]=i,i}(r);let d;function g(t,e,n){const a=c.getImageData(0,0,s,s).data;for(let l=0,u=h.length;l<u;l++)if(a[h[l]]>0){if(!o||"none"===n||"Image"!==d&&"Text"!==d||o.includes(t)){const n=(h[l]-3)/4,o=r-n%s,a=r-(n/s|0),c=i(t,e,o*o+a*a);if(c)return c}c.clearRect(0,0,s,s);break}}const m=Object.keys(this.executorsByZIndex_).map(Number);let y,_,v,x,w;for(m.sort(p.V_),y=m.length-1;y>=0;--y){const t=m[y].toString();for(v=this.executorsByZIndex_[t],_=$.length-1;_>=0;--_)if(d=$[_],x=v[d],void 0!==x&&(w=x.executeHitDetection(c,a,n,g,u),w))return w}}getClipCoords(t){const e=this.maxExtent_;if(!e)return null;const n=e[0],r=e[1],i=e[2],o=e[3],s=[n,r,n,o,i,o,i,r];return(0,M.Rc)(s,0,8,2,t,s),s}isEmpty(){return(0,K.p)(this.executorsByZIndex_)}execute(t,e,n,r,i,o,s){const a=Object.keys(this.executorsByZIndex_).map(Number);a.sort(p.V_),o=o||$;const l=$.length;let c,u,h,d,f;for(s&&a.reverse(),c=0,u=a.length;c<u;++c){const u=a[c].toString();for(f=this.executorsByZIndex_[u],h=0,d=o.length;h<d;++h){const u=o[h],d=f[u];if(void 0!==d){const o=null===s?void 0:d.getZIndexContext(),f=o?o.getContext():t,g=this.maxExtent_&&"Image"!==u&&"Text"!==u;if(g&&(f.save(),this.clip(f,n)),o&&"Text"!==u&&"Image"!==u?o.pushFunction((t=>d.execute(t,e,n,r,i,s))):d.execute(f,e,n,r,i,s),g&&f.restore(),o){o.offset();const t=a[c]*l+h;this.deferredZIndexContexts_[t]||(this.deferredZIndexContexts_[t]=[]),this.deferredZIndexContexts_[t].push(o)}}}}this.renderedContext_=t}getDeferredZIndexContexts(){return this.deferredZIndexContexts_}getRenderedContext(){return this.renderedContext_}renderDeferred(){const t=this.deferredZIndexContexts_,e=Object.keys(t).map(Number).sort(p.V_);for(let n=0,r=e.length;n<r;++n)t[e[n]].forEach((t=>{t.draw(this.renderedContext_),t.clear()})),t[e[n]].length=0}};var Q=n(7971),tt=n(49428),et=n(91094);const nt=class extends h{constructor(t,e,n,r,i,o,s){super(),this.context_=t,this.pixelRatio_=e,this.extent_=n,this.transform_=r,this.transformRotation_=r?(0,S.Mg)(Math.atan2(r[1],r[0]),10):0,this.viewRotation_=i,this.squaredTolerance_=o,this.userTransform_=s,this.contextFillState_=null,this.contextStrokeState_=null,this.contextTextState_=null,this.fillState_=null,this.strokeState_=null,this.image_=null,this.imageAnchorX_=0,this.imageAnchorY_=0,this.imageHeight_=0,this.imageOpacity_=0,this.imageOriginX_=0,this.imageOriginY_=0,this.imageRotateWithView_=!1,this.imageRotation_=0,this.imageScale_=[0,0],this.imageWidth_=0,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=!1,this.textRotation_=0,this.textScale_=[0,0],this.textFillState_=null,this.textStrokeState_=null,this.textState_=null,this.pixelCoordinates_=[],this.tmpLocalTransform_=(0,D.vt)()}drawImages_(t,e,n,r){if(!this.image_)return;const i=(0,M.Rc)(t,e,n,r,this.transform_,this.pixelCoordinates_),o=this.context_,s=this.tmpLocalTransform_,a=o.globalAlpha;1!=this.imageOpacity_&&(o.globalAlpha=a*this.imageOpacity_);let l=this.imageRotation_;0===this.transformRotation_&&(l-=this.viewRotation_),this.imageRotateWithView_&&(l+=this.viewRotation_);for(let c=0,u=i.length;c<u;c+=2){const t=i[c]-this.imageAnchorX_,e=i[c+1]-this.imageAnchorY_;if(0!==l||1!=this.imageScale_[0]||1!=this.imageScale_[1]){const n=t+this.imageAnchorX_,r=e+this.imageAnchorY_;(0,D.Zz)(s,n,r,1,1,l,-n,-r),o.save(),o.transform.apply(o,s),o.translate(n,r),o.scale(this.imageScale_[0],this.imageScale_[1]),o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),o.restore()}else o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,t,e,this.imageWidth_,this.imageHeight_)}1!=this.imageOpacity_&&(o.globalAlpha=a)}drawText_(t,e,n,r){if(!this.textState_||""===this.text_)return;this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);const i=(0,M.Rc)(t,e,n,r,this.transform_,this.pixelCoordinates_),o=this.context_;let s=this.textRotation_;for(0===this.transformRotation_&&(s-=this.viewRotation_),this.textRotateWithView_&&(s+=this.viewRotation_);e<n;e+=r){const t=i[e]+this.textOffsetX_,n=i[e+1]+this.textOffsetY_;0!==s||1!=this.textScale_[0]||1!=this.textScale_[1]?(o.save(),o.translate(t-this.textOffsetX_,n-this.textOffsetY_),o.rotate(s),o.translate(this.textOffsetX_,this.textOffsetY_),o.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&o.strokeText(this.text_,0,0),this.textFillState_&&o.fillText(this.text_,0,0),o.restore()):(this.textStrokeState_&&o.strokeText(this.text_,t,n),this.textFillState_&&o.fillText(this.text_,t,n))}}moveToLineTo_(t,e,n,r,i){const o=this.context_,s=(0,M.Rc)(t,e,n,r,this.transform_,this.pixelCoordinates_);o.moveTo(s[0],s[1]);let a=s.length;i&&(a-=2);for(let l=2;l<a;l+=2)o.lineTo(s[l],s[l+1]);return i&&o.closePath(),n}drawRings_(t,e,n,r){for(let i=0,o=n.length;i<o;++i)e=this.moveToLineTo_(t,e,n[i],r,!0);return e}drawCircle(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,f.HY)(this.extent_,t.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const e=(0,et.v7)(t,this.transform_,this.pixelCoordinates_),n=e[2]-e[0],r=e[3]-e[1],i=Math.sqrt(n*n+r*r),o=this.context_;o.beginPath(),o.arc(e[0],e[1],i,0,2*Math.PI),this.fillState_&&o.fill(),this.strokeState_&&o.stroke()}""!==this.text_&&this.drawText_(t.getCenter(),0,2,2)}}setStyle(t){this.setFillStrokeStyle(t.getFill(),t.getStroke()),this.setImageStyle(t.getImage()),this.setTextStyle(t.getText())}setTransform(t){this.transform_=t}drawGeometry(t){switch(t.getType()){case"Point":this.drawPoint(t);break;case"LineString":this.drawLineString(t);break;case"Polygon":this.drawPolygon(t);break;case"MultiPoint":this.drawMultiPoint(t);break;case"MultiLineString":this.drawMultiLineString(t);break;case"MultiPolygon":this.drawMultiPolygon(t);break;case"GeometryCollection":this.drawGeometryCollection(t);break;case"Circle":this.drawCircle(t)}}drawFeature(t,e){const n=e.getGeometryFunction()(t);n&&(this.setStyle(e),this.drawGeometry(n))}drawGeometryCollection(t){const e=t.getGeometriesArray();for(let n=0,r=e.length;n<r;++n)this.drawGeometry(e[n])}drawPoint(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));const e=t.getFlatCoordinates(),n=t.getStride();this.image_&&this.drawImages_(e,0,e.length,n),""!==this.text_&&this.drawText_(e,0,e.length,n)}drawMultiPoint(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));const e=t.getFlatCoordinates(),n=t.getStride();this.image_&&this.drawImages_(e,0,e.length,n),""!==this.text_&&this.drawText_(e,0,e.length,n)}drawLineString(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,f.HY)(this.extent_,t.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);const e=this.context_,n=t.getFlatCoordinates();e.beginPath(),this.moveToLineTo_(n,0,n.length,t.getStride(),!1),e.stroke()}if(""!==this.text_){const e=t.getFlatMidpoint();this.drawText_(e,0,2,2)}}}drawMultiLineString(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));const e=t.getExtent();if((0,f.HY)(this.extent_,e)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);const e=this.context_,n=t.getFlatCoordinates();let r=0;const i=t.getEnds(),o=t.getStride();e.beginPath();for(let t=0,s=i.length;t<s;++t)r=this.moveToLineTo_(n,r,i[t],o,!1);e.stroke()}if(""!==this.text_){const e=t.getFlatMidpoints();this.drawText_(e,0,e.length,2)}}}drawPolygon(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,f.HY)(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const e=this.context_;e.beginPath(),this.drawRings_(t.getOrientedFlatCoordinates(),0,t.getEnds(),t.getStride()),this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){const e=t.getFlatInteriorPoint();this.drawText_(e,0,2,2)}}}drawMultiPolygon(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,f.HY)(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const e=this.context_,n=t.getOrientedFlatCoordinates();let r=0;const i=t.getEndss(),o=t.getStride();e.beginPath();for(let t=0,s=i.length;t<s;++t){const e=i[t];r=this.drawRings_(n,r,e,o)}this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){const e=t.getFlatInteriorPoints();this.drawText_(e,0,e.length,2)}}}setContextFillState_(t){const e=this.context_,n=this.contextFillState_;n?n.fillStyle!=t.fillStyle&&(n.fillStyle=t.fillStyle,e.fillStyle=t.fillStyle):(e.fillStyle=t.fillStyle,this.contextFillState_={fillStyle:t.fillStyle})}setContextStrokeState_(t){const e=this.context_,n=this.contextStrokeState_;n?(n.lineCap!=t.lineCap&&(n.lineCap=t.lineCap,e.lineCap=t.lineCap),(0,p.aI)(n.lineDash,t.lineDash)||e.setLineDash(n.lineDash=t.lineDash),n.lineDashOffset!=t.lineDashOffset&&(n.lineDashOffset=t.lineDashOffset,e.lineDashOffset=t.lineDashOffset),n.lineJoin!=t.lineJoin&&(n.lineJoin=t.lineJoin,e.lineJoin=t.lineJoin),n.lineWidth!=t.lineWidth&&(n.lineWidth=t.lineWidth,e.lineWidth=t.lineWidth),n.miterLimit!=t.miterLimit&&(n.miterLimit=t.miterLimit,e.miterLimit=t.miterLimit),n.strokeStyle!=t.strokeStyle&&(n.strokeStyle=t.strokeStyle,e.strokeStyle=t.strokeStyle)):(e.lineCap=t.lineCap,e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset,e.lineJoin=t.lineJoin,e.lineWidth=t.lineWidth,e.miterLimit=t.miterLimit,e.strokeStyle=t.strokeStyle,this.contextStrokeState_={lineCap:t.lineCap,lineDash:t.lineDash,lineDashOffset:t.lineDashOffset,lineJoin:t.lineJoin,lineWidth:t.lineWidth,miterLimit:t.miterLimit,strokeStyle:t.strokeStyle})}setContextTextState_(t){const e=this.context_,n=this.contextTextState_,r=t.textAlign?t.textAlign:g.MY;n?(n.font!=t.font&&(n.font=t.font,e.font=t.font),n.textAlign!=r&&(n.textAlign=r,e.textAlign=r),n.textBaseline!=t.textBaseline&&(n.textBaseline=t.textBaseline,e.textBaseline=t.textBaseline)):(e.font=t.font,e.textAlign=r,e.textBaseline=t.textBaseline,this.contextTextState_={font:t.font,textAlign:r,textBaseline:t.textBaseline})}setFillStrokeStyle(t,e){if(t){const e=t.getColor();this.fillState_={fillStyle:(0,d.F)(e||g.qY)}}else this.fillState_=null;if(e){const t=e.getColor(),n=e.getLineCap(),r=e.getLineDash(),i=e.getLineDashOffset(),o=e.getLineJoin(),s=e.getWidth(),a=e.getMiterLimit(),l=r||g.Oq;this.strokeState_={lineCap:void 0!==n?n:g._m,lineDash:1===this.pixelRatio_?l:l.map((t=>t*this.pixelRatio_)),lineDashOffset:(i||g.vk)*this.pixelRatio_,lineJoin:void 0!==o?o:g._K,lineWidth:(void 0!==s?s:g.aq)*this.pixelRatio_,miterLimit:void 0!==a?a:g.eL,strokeStyle:(0,d.F)(t||g.NT)}}else this.strokeState_=null}setImageStyle(t){let e;if(!t||!(e=t.getSize()))return void(this.image_=null);const n=t.getPixelRatio(this.pixelRatio_),r=t.getAnchor(),i=t.getOrigin();this.image_=t.getImage(this.pixelRatio_),this.imageAnchorX_=r[0]*n,this.imageAnchorY_=r[1]*n,this.imageHeight_=e[1]*n,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=i[0],this.imageOriginY_=i[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation();const o=t.getScaleArray();this.imageScale_=[o[0]*this.pixelRatio_/n,o[1]*this.pixelRatio_/n],this.imageWidth_=e[0]*n}setTextStyle(t){if(t){const e=t.getFill();if(e){const t=e.getColor();this.textFillState_={fillStyle:(0,d.F)(t||g.qY)}}else this.textFillState_=null;const n=t.getStroke();if(n){const t=n.getColor(),e=n.getLineCap(),r=n.getLineDash(),i=n.getLineDashOffset(),o=n.getLineJoin(),s=n.getWidth(),a=n.getMiterLimit();this.textStrokeState_={lineCap:void 0!==e?e:g._m,lineDash:r||g.Oq,lineDashOffset:i||g.vk,lineJoin:void 0!==o?o:g._K,lineWidth:void 0!==s?s:g.aq,miterLimit:void 0!==a?a:g.eL,strokeStyle:(0,d.F)(t||g.NT)}}else this.textStrokeState_=null;const r=t.getFont(),i=t.getOffsetX(),o=t.getOffsetY(),s=t.getRotateWithView(),a=t.getRotation(),l=t.getScaleArray(),c=t.getText(),u=t.getTextAlign(),h=t.getTextBaseline();this.textState_={font:void 0!==r?r:g.ZV,textAlign:void 0!==u?u:g.MY,textBaseline:void 0!==h?h:g.M8},this.text_=void 0!==c?Array.isArray(c)?c.reduce(((t,e,n)=>t+(n%2?" ":e)),""):c:"",this.textOffsetX_=void 0!==i?this.pixelRatio_*i:0,this.textOffsetY_=void 0!==o?this.pixelRatio_*o:0,this.textRotateWithView_=void 0!==s&&s,this.textRotation_=void 0!==a?a:0,this.textScale_=[this.pixelRatio_*l[0],this.pixelRatio_*l[1]]}else this.text_=""}};var rt=n(29695),it=n(77120);const ot=.5;var st=n(9994);const at=.5,lt={Point:function(t,e,n,r,i,o){const s=n.getImage(),a=n.getText(),l=a&&a.getText(),c=o&&s&&l?{}:void 0;if(s){if(s.getImageState()!=st.A.LOADED)return;const o=t.getBuilder(n.getZIndex(),"Image");o.setImageStyle(s,c),o.drawPoint(e,r,i)}if(l){const o=t.getBuilder(n.getZIndex(),"Text");o.setTextStyle(a,c),o.drawText(e,r,i)}},LineString:function(t,e,n,r,i){const o=n.getStroke();if(o){const s=t.getBuilder(n.getZIndex(),"LineString");s.setFillStrokeStyle(null,o),s.drawLineString(e,r,i)}const s=n.getText();if(s&&s.getText()){const o=t.getBuilder(n.getZIndex(),"Text");o.setTextStyle(s),o.drawText(e,r,i)}},Polygon:function(t,e,n,r,i){const o=n.getFill(),s=n.getStroke();if(o||s){const a=t.getBuilder(n.getZIndex(),"Polygon");a.setFillStrokeStyle(o,s),a.drawPolygon(e,r,i)}const a=n.getText();if(a&&a.getText()){const o=t.getBuilder(n.getZIndex(),"Text");o.setTextStyle(a),o.drawText(e,r,i)}},MultiPoint:function(t,e,n,r,i,o){const s=n.getImage(),a=s&&0!==s.getOpacity(),l=n.getText(),c=l&&l.getText(),u=o&&a&&c?{}:void 0;if(a){if(s.getImageState()!=st.A.LOADED)return;const o=t.getBuilder(n.getZIndex(),"Image");o.setImageStyle(s,u),o.drawMultiPoint(e,r,i)}if(c){const o=t.getBuilder(n.getZIndex(),"Text");o.setTextStyle(l,u),o.drawText(e,r,i)}},MultiLineString:function(t,e,n,r,i){const o=n.getStroke();if(o){const s=t.getBuilder(n.getZIndex(),"LineString");s.setFillStrokeStyle(null,o),s.drawMultiLineString(e,r,i)}const s=n.getText();if(s&&s.getText()){const o=t.getBuilder(n.getZIndex(),"Text");o.setTextStyle(s),o.drawText(e,r,i)}},MultiPolygon:function(t,e,n,r,i){const o=n.getFill(),s=n.getStroke();if(s||o){const a=t.getBuilder(n.getZIndex(),"Polygon");a.setFillStrokeStyle(o,s),a.drawMultiPolygon(e,r,i)}const a=n.getText();if(a&&a.getText()){const o=t.getBuilder(n.getZIndex(),"Text");o.setTextStyle(a),o.drawText(e,r,i)}},GeometryCollection:function(t,e,n,r,i,o){const s=e.getGeometriesArray();let a,l;for(a=0,l=s.length;a<l;++a){(0,lt[s[a].getType()])(t,s[a],n,r,i,o)}},Circle:function(t,e,n,r,i){const o=n.getFill(),s=n.getStroke();if(o||s){const a=t.getBuilder(n.getZIndex(),"Circle");a.setFillStrokeStyle(o,s),a.drawCircle(e,r,i)}const a=n.getText();if(a&&a.getText()){const i=t.getBuilder(n.getZIndex(),"Text");i.setTextStyle(a),i.drawText(e,r)}}};function ct(t,e){return parseInt((0,b.v6)(t),10)-parseInt((0,b.v6)(e),10)}function ut(t,e){const n=ht(t,e);return n*n}function ht(t,e){return at*t/e}function dt(t,e,n,r,i,o,s,a){const l=[],c=n.getImage();if(c){let t=!0;const e=c.getImageState();e==st.A.LOADED||e==st.A.ERROR?t=!1:e==st.A.IDLE&&c.load(),t&&l.push(c.ready())}const u=n.getFill();u&&u.loading()&&l.push(u.ready());const h=l.length>0;return h&&Promise.all(l).then((()=>i(null))),function(t,e,n,r,i,o,s){const a=n.getGeometryFunction()(e);if(!a)return;const l=a.simplifyTransformed(r,i),c=n.getRenderer();if(c)ft(t,l,n,e,s);else{(0,lt[l.getType()])(t,l,n,e,s,o)}}(t,e,n,r,o,s,a),h}function ft(t,e,n,r,i){if("GeometryCollection"==e.getType()){const o=e.getGeometries();for(let e=0,s=o.length;e<s;++e)ft(t,o[e],n,r,i);return}t.getBuilder(n.getZIndex(),"Default").drawCustom(e,r,n.getRenderer(),n.getHitDetectionRenderer(),i)}var gt=n(97842);class pt extends A.A{constructor(t){super(t),this.boundHandleStyleImageChange_=this.handleStyleImageChange_.bind(this),this.animatingOrInteracting_,this.hitDetectionImageData_=null,this.clipped_=!1,this.renderedFeatures_=null,this.renderedRevision_=-1,this.renderedResolution_=NaN,this.renderedExtent_=(0,f.S5)(),this.wrappedRenderedExtent_=(0,f.S5)(),this.renderedRotation_,this.renderedCenter_=null,this.renderedProjection_=null,this.renderedPixelRatio_=1,this.renderedRenderOrder_=null,this.renderedFrameDeclutter_,this.replayGroup_=null,this.replayGroupChanged=!0,this.clipping=!0,this.targetContext_=null,this.opacity_=1}renderWorlds(t,e,n){const r=e.extent,i=e.viewState,o=i.center,s=i.resolution,a=i.projection,l=i.rotation,c=a.getExtent(),u=this.getLayer().getSource(),h=this.getLayer().getDeclutter(),d=e.pixelRatio,g=e.viewHints,p=!(g[tt.A.ANIMATING]||g[tt.A.INTERACTING]),m=this.context,y=Math.round((0,f.RG)(r)/s*d),_=Math.round((0,f.Oq)(r)/s*d),v=u.getWrapX()&&a.canWrapX(),x=v?(0,f.RG)(c):null,w=v?Math.ceil((r[2]-c[2])/x)+1:1;let b=v?Math.floor((r[0]-c[0])/x):0;do{let r=this.getRenderTransform(o,s,0,d,y,_,b*x);e.declutter&&(r=r.slice(0)),t.execute(m,[m.canvas.width,m.canvas.height],r,l,p,void 0===n?$:n?V:X,n?h&&e.declutter[h]:void 0)}while(++b<w)}setDrawContext_(){1!==this.opacity_&&(this.targetContext_=this.context,this.context=(0,U.Y)(this.context.canvas.width,this.context.canvas.height,A.B))}resetDrawContext_(){if(1!==this.opacity_){const t=this.targetContext_.globalAlpha;this.targetContext_.globalAlpha=this.opacity_,this.targetContext_.drawImage(this.context.canvas,0,0),this.targetContext_.globalAlpha=t,(0,U.Yg)(this.context),A.B.push(this.context.canvas),this.context=this.targetContext_,this.targetContext_=null}}renderDeclutter(t){this.replayGroup_&&this.getLayer().getDeclutter()&&this.renderWorlds(this.replayGroup_,t,!0)}renderDeferredInternal(t){this.replayGroup_&&(this.replayGroup_.renderDeferred(),this.clipped_&&this.context.restore(),this.resetDrawContext_())}renderFrame(t,e){const n=t.layerStatesArray[t.layerIndex];this.opacity_=n.opacity;const r=t.viewState;this.prepareContainer(t,e);const i=this.context,o=this.replayGroup_;let s=o&&!o.isEmpty();if(!s){if(!(this.getLayer().hasListener(Q.A.PRERENDER)||this.getLayer().hasListener(Q.A.POSTRENDER)))return null}this.setDrawContext_(),this.preRender(i,t);const a=r.projection;if(this.clipped_=!1,s&&n.extent&&this.clipping){const e=(0,it.SD)(n.extent,a);s=(0,f.HY)(e,t.extent),this.clipped_=s&&!(0,f.ms)(e,t.extent),this.clipped_&&this.clipUnrotated(i,t,e)}return s&&this.renderWorlds(o,t,!this.getLayer().getDeclutter()&&void 0),!t.declutter&&this.clipped_&&i.restore(),this.postRender(i,t),this.renderedRotation_!==r.rotation&&(this.renderedRotation_=r.rotation,this.hitDetectionImageData_=null),t.declutter||this.resetDrawContext_(),this.container}getFeatures(t){return new Promise((e=>{if(this.frameState&&!this.hitDetectionImageData_&&!this.animatingOrInteracting_){const t=this.frameState.size.slice(),e=this.renderedCenter_,n=this.renderedResolution_,r=this.renderedRotation_,i=this.renderedProjection_,o=this.wrappedRenderedExtent_,s=this.getLayer(),a=[],l=t[0]*ot,c=t[1]*ot;a.push(this.getRenderTransform(e,n,r,ot,l,c,0).slice());const u=s.getSource(),h=i.getExtent();if(u.getWrapX()&&i.canWrapX()&&!(0,f.ms)(h,o)){let t=o[0];const i=(0,f.RG)(h);let s,u=0;for(;t<h[0];)--u,s=i*u,a.push(this.getRenderTransform(e,n,r,ot,l,c,s).slice()),t+=i;for(u=0,t=o[2];t>h[2];)++u,s=i*u,a.push(this.getRenderTransform(e,n,r,ot,l,c,s).slice()),t-=i}const d=(0,it.Tf)();this.hitDetectionImageData_=function(t,e,n,r,i,o,s,a,l){const c=l?(0,it.JR)(i,l):i,u=t[0]*ot,h=t[1]*ot,d=(0,U.Y)(u,h);d.imageSmoothingEnabled=!1;const g=d.canvas,m=new nt(d,ot,i,null,s,a,l?(0,it.FO)((0,it.Tf)(),l):null),y=n.length,_=Math.floor(16777215/y),v={};for(let p=1;p<=y;++p){const t=n[p-1],e=t.getStyleFunction()||r;if(!e)continue;let i=e(t,o);if(!i)continue;Array.isArray(i)||(i=[i]);const s=(p*_).toString(16).padStart(7,"#00000");for(let n=0,r=i.length;n<r;++n){const e=i[n],r=e.getGeometryFunction()(t);if(!r||!(0,f.HY)(c,r.getExtent()))continue;const o=e.clone(),a=o.getFill();a&&a.setColor(s);const l=o.getStroke();l&&(l.setColor(s),l.setLineDash(null)),o.setText(void 0);const u=e.getImage();if(u){const t=u.getImageSize();if(!t)continue;const e=(0,U.Y)(t[0],t[1],void 0,{alpha:!1}),n=e.canvas;e.fillStyle=s,e.fillRect(0,0,n.width,n.height),o.setImage(new rt.A({img:n,anchor:u.getAnchor(),anchorXUnits:"pixels",anchorYUnits:"pixels",offset:u.getOrigin(),opacity:1,size:u.getSize(),scale:u.getScale(),rotation:u.getRotation(),rotateWithView:u.getRotateWithView()}))}const h=o.getZIndex()||0;let d=v[h];d||(d={},v[h]=d,d.Polygon=[],d.Circle=[],d.LineString=[],d.Point=[]);const g=r.getType();if("GeometryCollection"===g){const t=r.getGeometriesArrayRecursive();for(let e=0,n=t.length;e<n;++e){const n=t[e];d[n.getType().replace("Multi","")].push(n,o)}}else d[g.replace("Multi","")].push(r,o)}}const x=Object.keys(v).map(Number).sort(p.V_);for(let f=0,p=x.length;f<p;++f){const t=v[x[f]];for(const n in t){const r=t[n];for(let t=0,n=r.length;t<n;t+=2){m.setStyle(r[t+1]);for(let n=0,i=e.length;n<i;++n)m.setTransform(e[n]),m.drawGeometry(r[t])}}}return d.getImageData(0,0,g.width,g.height)}(t,a,this.renderedFeatures_,s.getStyleFunction(),o,n,r,ut(n,this.renderedPixelRatio_),d?i:null)}e(function(t,e,n){const r=[];if(n){const i=Math.floor(Math.round(t[0])*ot),o=Math.floor(Math.round(t[1])*ot),s=4*((0,S.qE)(i,0,n.width-1)+(0,S.qE)(o,0,n.height-1)*n.width),a=n.data[s],l=n.data[s+1],c=n.data[s+2]+256*(l+256*a),u=Math.floor(16777215/e.length);c&&c%u===0&&r.push(e[c/u-1])}return r}(t,this.renderedFeatures_,this.hitDetectionImageData_))}))}forEachFeatureAtCoordinate(t,e,n,r,i){if(!this.replayGroup_)return;const o=e.viewState.resolution,s=e.viewState.rotation,a=this.getLayer(),l={},c=function(t,e,n){const o=(0,b.v6)(t),s=l[o];if(s){if(!0!==s&&n<s.distanceSq){if(0===n)return l[o]=!0,i.splice(i.lastIndexOf(s),1),r(t,a,e);s.geometry=e,s.distanceSq=n}}else{if(0===n)return l[o]=!0,r(t,a,e);i.push(l[o]={feature:t,layer:a,geometry:e,distanceSq:n,callback:r})}};let u;const h=[this.replayGroup_],d=this.getLayer().getDeclutter();return h.some((r=>u=r.forEachFeatureAtCoordinate(t,o,s,n,c,d&&e.declutter[d]?e.declutter[d].all().map((t=>t.value)):null))),u}handleFontsChanged(){const t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()}handleStyleImageChange_(t){this.renderIfReadyAndVisible()}prepareFrame(t){const e=this.getLayer(),n=e.getSource();if(!n)return!1;const r=t.viewHints[tt.A.ANIMATING],i=t.viewHints[tt.A.INTERACTING],o=e.getUpdateWhileAnimating(),s=e.getUpdateWhileInteracting();if(this.ready&&!o&&r||!s&&i)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;const a=t.extent,l=t.viewState,c=l.projection,u=l.resolution,h=t.pixelRatio,d=e.getRevision(),g=e.getRenderBuffer();let m=e.getRenderOrder();void 0===m&&(m=ct);const y=l.center.slice(),_=(0,f.r)(a,g*u),v=_.slice(),x=[_.slice()],w=c.getExtent();if(n.getWrapX()&&c.canWrapX()&&!(0,f.ms)(w,t.extent)){const t=(0,f.RG)(w),e=Math.max((0,f.RG)(_)/2,t);_[0]=w[0]-e,_[2]=w[2]+e,(0,gt.Li)(y,c);const n=(0,f.Li)(x[0],c);n[0]<w[0]&&n[2]<w[2]?x.push([n[0]+t,n[1],n[2]+t,n[3]]):n[0]>w[0]&&n[2]>w[2]&&x.push([n[0]-t,n[1],n[2]-t,n[3]])}if(this.ready&&this.renderedResolution_==u&&this.renderedRevision_==d&&this.renderedRenderOrder_==m&&this.renderedFrameDeclutter_===!!t.declutter&&(0,f.ms)(this.wrappedRenderedExtent_,_))return(0,p.aI)(this.renderedExtent_,v)||(this.hitDetectionImageData_=null,this.renderedExtent_=v),this.renderedCenter_=y,this.replayGroupChanged=!1,!0;this.replayGroup_=null;const b=new O(ht(u,h),_,u,h),S=(0,it.Tf)();let E;if(S){for(let t=0,e=x.length;t<e;++t){const e=x[t],r=(0,it.JR)(e,c);n.loadFeatures(r,(0,it.vN)(u,c),S)}E=(0,it.FO)(S,c)}else for(let f=0,p=x.length;f<p;++f)n.loadFeatures(x[f],u,c);const T=ut(u,h);let C=!0;const I=(t,n)=>{let r;const i=t.getStyleFunction()||e.getStyleFunction();if(i&&(r=i(t,u)),r){const e=this.renderFeature(t,T,r,b,E,this.getLayer().getDeclutter(),n);C=C&&!e}},k=(0,it.JR)(_,c),A=n.getFeaturesInExtent(k);m&&A.sort(m);for(let f=0,p=A.length;f<p;++f)I(A[f],f);this.renderedFeatures_=A,this.ready=C;const R=b.finish(),D=new J(_,u,h,n.getOverlaps(),R,e.getRenderBuffer(),!!t.declutter);return this.renderedResolution_=u,this.renderedRevision_=d,this.renderedRenderOrder_=m,this.renderedFrameDeclutter_=!!t.declutter,this.renderedExtent_=v,this.wrappedRenderedExtent_=_,this.renderedCenter_=y,this.renderedProjection_=c,this.renderedPixelRatio_=h,this.replayGroup_=D,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0}renderFeature(t,e,n,r,i,o,s){if(!n)return!1;let a=!1;if(Array.isArray(n))for(let l=0,c=n.length;l<c;++l)a=dt(r,t,n[l],e,this.boundHandleStyleImageChange_,i,o,s)||a;else a=dt(r,t,n,e,this.boundHandleStyleImageChange_,i,o,s);return a}}const mt=pt;class yt extends r.A{constructor(t){super(t)}createRenderer(){return new mt(this)}}const _t=yt},53442:(t,e,n)=>{"use strict";function r(t,e,n){return Math.min(Math.max(t,e),n)}function i(t,e,n,r,i,s){const a=i-n,l=s-r;if(0!==a||0!==l){const o=((t-n)*a+(e-r)*l)/(a*a+l*l);o>1?(n=i,r=s):o>0&&(n+=a*o,r+=l*o)}return o(t,e,n,r)}function o(t,e,n,r){const i=n-t,o=r-e;return i*i+o*o}function s(t){const e=t.length;for(let r=0;r<e;r++){let n=r,i=Math.abs(t[r][r]);for(let s=r+1;s<e;s++){const e=Math.abs(t[s][r]);e>i&&(i=e,n=s)}if(0===i)return null;const o=t[n];t[n]=t[r],t[r]=o;for(let s=r+1;s<e;s++){const n=-t[s][r]/t[r][r];for(let i=r;i<e+1;i++)r==i?t[s][i]=0:t[s][i]+=n*t[r][i]}}const n=new Array(e);for(let r=e-1;r>=0;r--){n[r]=t[r][e]/t[r][r];for(let i=r-1;i>=0;i--)t[i][e]-=t[i][r]*n[r]}return n}function a(t){return t*Math.PI/180}function l(t,e){const n=t%e;return n*e<0?n+e:n}function c(t,e,n){return t+n*(e-t)}function u(t,e){const n=Math.pow(10,e);return Math.round(t*n)/n}function h(t,e){return Math.floor(u(t,e))}function d(t,e){return Math.ceil(u(t,e))}n.d(e,{Cc:()=>c,KU:()=>s,Mg:()=>u,Q1:()=>i,RI:()=>h,eh:()=>a,hG:()=>o,mk:()=>d,qE:()=>r,xP:()=>l})},44835:(t,e,n)=>{"use strict";function r(t){for(const e in t)delete t[e]}function i(t){let e;for(e in t)return!1;return!e}n.d(e,{I:()=>r,p:()=>i})},77120:(t,e,n)=>{"use strict";n.d(e,{Ig:()=>r,Av:()=>L,RJ:()=>k,tI:()=>j,Rb:()=>N,Ad:()=>U,SD:()=>$,Jt:()=>D,hO:()=>M,RG:()=>G,FO:()=>z,Tf:()=>B,WP:()=>F,te:()=>Y,JR:()=>K,vN:()=>V,pd:()=>q});const r={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};const i=class{constructor(t){this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||r[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(t){this.defaultTileGrid_=t}setExtent(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)}setWorldExtent(t){this.worldExtent_=t}setGetPointResolution(t){this.getPointResolutionFunc_=t}getPointResolutionFunc(){return this.getPointResolutionFunc_}},o=6378137,s=Math.PI*o,a=[-s,-s,s,s],l=[-180,-85,180,85],c=o*Math.log(Math.tan(Math.PI/2));class u extends i{constructor(t){super({code:t,units:"m",extent:a,global:!0,worldExtent:l,getPointResolution:function(t,e){return t/Math.cosh(e[1]/o)}})}}const h=[new u("EPSG:3857"),new u("EPSG:102100"),new u("EPSG:102113"),new u("EPSG:900913"),new u("http://www.opengis.net/def/crs/EPSG/0/3857"),new u("http://www.opengis.net/gml/srs/epsg.xml#3857")];function d(t,e,n,r){const i=t.length;n=n>1?n:2,r=r??n,void 0===e&&(e=n>2?t.slice():new Array(i));for(let a=0;a<i;a+=r){e[a]=s*t[a]/180;let n=o*Math.log(Math.tan(Math.PI*(+t[a+1]+90)/360));n>c?n=c:n<-c&&(n=-c),e[a+1]=n}return e}function f(t,e,n,r){const i=t.length;n=n>1?n:2,r=r??n,void 0===e&&(e=n>2?t.slice():new Array(i));for(let a=0;a<i;a+=r)e[a]=180*t[a]/s,e[a+1]=360*Math.atan(Math.exp(t[a+1]/o))/Math.PI-90;return e}const g=[-180,-90,180,90],p=6378137*Math.PI/180;class m extends i{constructor(t,e){super({code:t,units:"degrees",extent:g,axisOrientation:e,global:!0,metersPerUnit:p,worldExtent:g})}}const y=[new m("CRS:84"),new m("EPSG:4326","neu"),new m("urn:ogc:def:crs:OGC:1.3:CRS84"),new m("urn:ogc:def:crs:OGC:2:84"),new m("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new m("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new m("http://www.opengis.net/def/crs/EPSG/0/4326","neu")];let _={};let v={};function x(t,e,n){const r=t.getCode(),i=e.getCode();r in v||(v[r]={}),v[r][i]=n}var w=n(49196),b=n(53442),S=n(97842);const E=6371008.8;function T(t,e,n){n=n||E;const r=(0,b.eh)(t[1]),i=(0,b.eh)(e[1]),o=(i-r)/2,s=(0,b.eh)(e[0]-t[0])/2,a=Math.sin(o)*Math.sin(o)+Math.sin(s)*Math.sin(s)*Math.cos(r)*Math.cos(i);return 2*n*Math.atan2(Math.sqrt(a),Math.sqrt(1-a))}var C=n(62643);let I=!0;function k(t){I=!(void 0===t||t)}function O(t,e){if(void 0!==e)for(let n=0,r=t.length;n<r;++n)e[n]=t[n];else e=t.slice();return e}function A(t,e){if(void 0!==e&&t!==e){for(let n=0,r=t.length;n<r;++n)e[n]=t[n];t=e}return t}function R(t){!function(t,e){_[t]=e}(t.getCode(),t),x(t,t,O)}function D(t){return"string"===typeof t?_[e=t]||_[e.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null:t||null;var e}function M(t,e,n,i){let o;const s=(t=D(t)).getPointResolutionFunc();if(s){if(o=s(e,n),i&&i!==t.getUnits()){const e=t.getMetersPerUnit();e&&(o=o*e/r[i])}}else{const s=t.getUnits();if("degrees"==s&&!i||"degrees"==i)o=e;else{const a=z(t,D("EPSG:4326"));if(a===A&&"degrees"!==s)o=e*t.getMetersPerUnit();else{let t=[n[0]-e/2,n[1],n[0]+e/2,n[1],n[0],n[1]-e/2,n[0],n[1]+e/2];t=a(t,t,2);o=(T(t.slice(0,2),t.slice(2,4))+T(t.slice(4,6),t.slice(6,8)))/2}const l=i?r[i]:t.getMetersPerUnit();void 0!==l&&(o/=l)}}return o}function P(t){!function(t){t.forEach(R)}(t),t.forEach((function(e){t.forEach((function(t){e!==t&&x(e,t,O)}))}))}function L(t,e){return t?"string"===typeof t?D(t):t:D(e)}function N(t,e){return k(),q(t,"EPSG:4326",void 0!==e?e:"EPSG:3857")}function F(t,e){const n=q(t,void 0!==e?e:"EPSG:3857","EPSG:4326"),r=n[0];return(r<-180||r>180)&&(n[0]=(0,b.xP)(r+180,360)-180),n}function j(t,e){if(t===e)return!0;const n=t.getUnits()===e.getUnits();if(t.getCode()===e.getCode())return n;return z(t,e)===O&&n}function z(t,e){let n=function(t,e){let n;return t in v&&e in v[t]&&(n=v[t][e]),n}(t.getCode(),e.getCode());return n||(n=A),n}function G(t,e){return z(D(t),D(e))}function q(t,e,n){return G(e,n)(t,void 0,t.length)}function H(t,e,n,r){const i=G(e,n);return(0,w.NW)(t,i,void 0,r)}let W=null;function B(){return W}function Y(t,e){return W?q(t,e,W):t}function U(t,e){return W?q(t,W,e):(I&&!(0,S.aI)(t,[0,0])&&t[0]>=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&(I=!1,(0,C.R8)("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),t)}function K(t,e){return W?H(t,e,W):t}function $(t,e){return W?H(t,W,e):t}function V(t,e){if(!W)return t;const n=D(e).getMetersPerUnit(),r=W.getMetersPerUnit();return n&&r?t*n/r:t}!function(){var t,e,n;P(h),P(y),t=h,e=d,n=f,y.forEach((function(r){t.forEach((function(t){x(r,t,e),x(t,r,n)}))}))}()},93691:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(82526);class i extends r.Ay{constructor(t,e,n,r){super(t),this.inversePixelTransform=e,this.frameState=n,this.context=r}}const o=i},7971:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},58247:(t,e,n)=>{"use strict";n.d(e,{Jw:()=>A,M8:()=>y,MY:()=>m,NT:()=>p,Oq:()=>h,TA:()=>k,Tq:()=>_,ZV:()=>l,_K:()=>f,_m:()=>u,aq:()=>v,eL:()=>g,fZ:()=>E,jT:()=>O,qY:()=>c,vk:()=>d,yY:()=>x});var r=n(38419),i=n(51070),o=n(44835),s=n(69710),a=n(80901);const l="10px sans-serif",c="#000",u="round",h=[],d=0,f="round",g=10,p="#000",m="center",y="middle",_=[0,0,0,0],v=1,x=new r.A;let w,b=null;const S={},E=function(){const t="32px ",e=["monospace","serif"],n=e.length,r="wmytzilWMYTZIL@#/&?$%10\uf013";let i,s;function l(i,o,a){let l=!0;for(let c=0;c<n;++c){const n=e[c];if(s=I(i+" "+o+" "+t+n,r),a!=n){const e=I(i+" "+o+" "+t+a+","+n,r);l=l&&e!=s}}return!!l}function c(){let t=!0;const e=x.getKeys();for(let n=0,r=e.length;n<r;++n){const r=e[n];if(x.get(r)<100){const[e,n,i]=r.split("\n");l(e,n,i)?((0,o.I)(S),b=null,w=void 0,x.set(r,100)):(x.set(r,x.get(r)+1,!0),t=!1)}}t&&(clearInterval(i),i=void 0)}return function(t){const e=(0,a.K5)(t);if(!e)return;const n=e.families;for(let r=0,o=n.length;r<o;++r){const t=n[r],o=e.style+"\n"+e.weight+"\n"+t;void 0===x.get(o)&&(x.set(o,100,!0),l(e.style,e.weight,t)||(x.set(o,0,!0),void 0===i&&(i=setInterval(c,32))))}}}(),T=function(){let t;return function(e){let n=S[e];if(void 0==n){if(i.Wl){const t=(0,a.K5)(e),r=C(e,"\u017dg");n=(isNaN(Number(t.lineHeight))?1.2:Number(t.lineHeight))*(r.actualBoundingBoxAscent+r.actualBoundingBoxDescent)}else t||(t=document.createElement("div"),t.innerHTML="M",t.style.minHeight="0",t.style.maxHeight="none",t.style.height="auto",t.style.padding="0",t.style.border="none",t.style.position="absolute",t.style.display="block",t.style.left="-99999px"),t.style.font=e,document.body.appendChild(t),n=t.offsetHeight,document.body.removeChild(t);S[e]=n}return n}}();function C(t,e){return b||(b=(0,s.Y)(1,1)),t!=w&&(b.font=t,w=b.font),b.measureText(e)}function I(t,e){return C(t,e).width}function k(t,e,n){if(e in n)return n[e];const r=e.split("\n").reduce(((e,n)=>Math.max(e,I(t,n))),0);return n[e]=r,r}function O(t,e){const n=[],r=[],i=[];let o=0,s=0,a=0,l=0;for(let c=0,u=e.length;c<=u;c+=2){const h=e[c];if("\n"===h||c===u){o=Math.max(o,s),i.push(s),s=0,a+=l,l=0;continue}const d=e[c+1]||t.font,f=I(d,h);n.push(f),s+=f;const g=T(d);r.push(g),l=Math.max(l,g)}return{width:o,height:a,widths:n,heights:r,lineWidths:i}}function A(t,e,n,r,i,o,s,a,l,c,u){t.save(),1!==n&&(void 0===t.globalAlpha?t.globalAlpha=t=>t.globalAlpha*=n:t.globalAlpha*=n),e&&t.transform.apply(t,e),r.contextInstructions?(t.translate(l,c),t.scale(u[0],u[1]),function(t,e){const n=t.contextInstructions;for(let r=0,i=n.length;r<i;r+=2)Array.isArray(n[r+1])?e[n[r]].apply(e,n[r+1]):e[n[r]]=n[r+1]}(r,t)):u[0]<0||u[1]<0?(t.translate(l,c),t.scale(u[0],u[1]),t.drawImage(r,i,o,s,a,0,0,s,a)):t.drawImage(r,i,o,s,a,l,c,s*u[0],a*u[1]),t.restore()}},59477:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(69710);const i=class{constructor(){this.instructions_=[],this.zIndex=0,this.offset_=0,this.context_=new Proxy((0,r.lr)(),{get:(t,e)=>{if("function"===typeof(0,r.lr)()[e])return this.instructions_[this.zIndex+this.offset_]||(this.instructions_[this.zIndex+this.offset_]=[]),this.instructions_[this.zIndex+this.offset_].push(e),this.pushMethodArgs_},set:(t,e,n)=>(this.instructions_[this.zIndex+this.offset_]||(this.instructions_[this.zIndex+this.offset_]=[]),this.instructions_[this.zIndex+this.offset_].push(e,n),!0)})}pushMethodArgs_=(()=>{var t=this;return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.instructions_[t.zIndex+t.offset_].push(n),t}})();pushFunction(t){this.instructions_[this.zIndex+this.offset_].push(t)}getContext(){return this.context_}draw(t){this.instructions_.forEach((e=>{for(let n=0,r=e.length;n<r;++n){const r=e[n];if("function"===typeof r){r(t);continue}const i=e[++n];if("function"===typeof t[r])t[r](...i);else{if("function"===typeof i){t[r]=i(t);continue}t[r]=i}}}))}clear(){this.instructions_.length=0,this.zIndex=0,this.offset_=0}offset(){this.offset_=this.instructions_.length,this.zIndex=0}}},37510:(t,e,n)=>{"use strict";n.d(e,{B:()=>y,A:()=>v});var r=n(31990),i=n(9994),o=n(33277),s=n(62352);class a extends o.A{constructor(t){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=t,this.staleKeys_=new Array,this.maxStaleKeys=5}getStaleKeys(){return this.staleKeys_}prependStaleKey(t){this.staleKeys_.unshift(t),this.staleKeys_.length>this.maxStaleKeys&&(this.staleKeys_.length=this.maxStaleKeys)}getFeatures(t){return(0,s.b0)()}getData(t){return null}prepareFrame(t){return(0,s.b0)()}renderFrame(t,e){return(0,s.b0)()}forEachFeatureAtCoordinate(t,e,n,r,i){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(t){const e=t.target;e.getState()!==i.A.LOADED&&e.getState()!==i.A.ERROR||this.renderIfReadyAndVisible()}loadImage(t){let e=t.getState();return e!=i.A.LOADED&&e!=i.A.ERROR&&t.addEventListener(r.A.CHANGE,this.boundHandleImageChange_),e==i.A.IDLE&&(t.load(),e=t.getState()),e==i.A.LOADED}renderIfReadyAndVisible(){const t=this.getLayer();t&&t.getVisible()&&"ready"===t.getSourceState()&&t.changed()}renderDeferred(t){}disposeInternal(){delete this.layer_,super.disposeInternal()}}const l=a;var c=n(93691),u=n(7971),h=n(59477),d=n(47458),f=n(9352),g=n(69710),p=n(95635),m=n(49196);const y=[];let _=null;const v=class extends l{constructor(t){super(t),this.container=null,this.renderedResolution,this.tempTransform=(0,d.vt)(),this.pixelTransform=(0,d.vt)(),this.inversePixelTransform=(0,d.vt)(),this.context=null,this.deferredContext_=null,this.containerReused=!1,this.frameState=null}getImageData(t,e,n){let r;_||(_=(0,g.Y)(1,1,void 0,{willReadFrequently:!0})),_.clearRect(0,0,1,1);try{_.drawImage(t,e,n,1,1,0,0,1,1),r=_.getImageData(0,0,1,1).data}catch(i){return _=null,null}return r}getBackground(t){let e=this.getLayer().getBackground();return"function"===typeof e&&(e=e(t.viewState.resolution)),e||void 0}useContainer(t,e,n){const r=this.getLayer().getClassName();let i,o;if(t&&t.className===r&&(!n||t&&t.style.backgroundColor&&(0,p.aI)((0,f._j)(t.style.backgroundColor),(0,f._j)(n)))){const e=t.firstElementChild;e instanceof HTMLCanvasElement&&(o=e.getContext("2d"))}if(o&&o.canvas.style.transform===e?(this.container=t,this.context=o,this.containerReused=!0):this.containerReused?(this.container=null,this.context=null,this.containerReused=!1):this.container&&(this.container.style.backgroundColor=null),!this.container){i=document.createElement("div"),i.className=r;let t=i.style;t.position="absolute",t.width="100%",t.height="100%",o=(0,g.Y)();const e=o.canvas;i.appendChild(e),t=e.style,t.position="absolute",t.left="0",t.transformOrigin="top left",this.container=i,this.context=o}this.containerReused||!n||this.container.style.backgroundColor||(this.container.style.backgroundColor=n)}clipUnrotated(t,e,n){const r=(0,m.Py)(n),i=(0,m.WU)(n),o=(0,m.k_)(n),s=(0,m.R)(n);(0,d.Bb)(e.coordinateToPixelTransform,r),(0,d.Bb)(e.coordinateToPixelTransform,i),(0,d.Bb)(e.coordinateToPixelTransform,o),(0,d.Bb)(e.coordinateToPixelTransform,s);const a=this.inversePixelTransform;(0,d.Bb)(a,r),(0,d.Bb)(a,i),(0,d.Bb)(a,o),(0,d.Bb)(a,s),t.save(),t.beginPath(),t.moveTo(Math.round(r[0]),Math.round(r[1])),t.lineTo(Math.round(i[0]),Math.round(i[1])),t.lineTo(Math.round(o[0]),Math.round(o[1])),t.lineTo(Math.round(s[0]),Math.round(s[1])),t.clip()}prepareContainer(t,e){const n=t.extent,r=t.viewState.resolution,i=t.viewState.rotation,o=t.pixelRatio,s=Math.round((0,m.RG)(n)/r*o),a=Math.round((0,m.Oq)(n)/r*o);(0,d.Zz)(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/o,1/o,i,-s/2,-a/2),(0,d.T9)(this.inversePixelTransform,this.pixelTransform);const l=(0,d.dI)(this.pixelTransform);if(this.useContainer(e,l,this.getBackground(t)),!this.containerReused){const t=this.context.canvas;t.width!=s||t.height!=a?(t.width=s,t.height=a):this.context.clearRect(0,0,s,a),l!==t.style.transform&&(t.style.transform=l)}}dispatchRenderEvent_(t,e,n){const r=this.getLayer();if(r.hasListener(t)){const i=new c.A(t,this.inversePixelTransform,n,e);r.dispatchEvent(i)}}preRender(t,e){this.frameState=e,e.declutter||this.dispatchRenderEvent_(u.A.PRERENDER,t,e)}postRender(t,e){e.declutter||this.dispatchRenderEvent_(u.A.POSTRENDER,t,e)}renderDeferredInternal(t){}getRenderContext(t){return t.declutter&&!this.deferredContext_&&(this.deferredContext_=new h.A),t.declutter?this.deferredContext_.getContext():this.context}renderDeferred(t){t.declutter&&(this.dispatchRenderEvent_(u.A.PRERENDER,this.context,t),t.declutter&&this.deferredContext_&&(this.deferredContext_.draw(this.context),this.deferredContext_.clear()),this.renderDeferredInternal(t),this.dispatchRenderEvent_(u.A.POSTRENDER,this.context,t))}getRenderTransform(t,e,n,r,i,o,s){const a=i/2,l=o/2,c=r/e,u=-c,h=-t[0]+s,f=-t[1];return(0,d.Zz)(this.tempTransform,a,l,c,u,-n,h,f)}disposeInternal(){delete this.frameState,super.disposeInternal()}}},99774:(t,e,n)=>{"use strict";n.d(e,{BV:()=>l,XX:()=>f,aY:()=>d});var r=n(49196),i=n(69710),o=n(77120),s=n(53442);let a;const l=[];function c(t,e,n,r,i){t.beginPath(),t.moveTo(0,0),t.lineTo(e,n),t.lineTo(r,i),t.closePath(),t.save(),t.clip(),t.fillRect(0,0,Math.max(e,r)+1,Math.max(n,i)),t.restore()}function u(t,e){return Math.abs(t[4*e]-210)>2||Math.abs(t[4*e+3]-191.25)>2}function h(t,e,n,i){const s=(0,o.pd)(n,e,t);let a=(0,o.hO)(e,i,n);const l=e.getMetersPerUnit();void 0!==l&&(a*=l);const c=t.getMetersPerUnit();void 0!==c&&(a/=c);const u=t.getExtent();if(!u||(0,r.Ym)(u,s)){const e=(0,o.hO)(t,a,s)/a;isFinite(e)&&e>0&&(a/=e)}return a}function d(t,e,n,i){const o=(0,r.q1)(n);let s=h(t,e,o,i);return(!isFinite(s)||s<=0)&&(0,r.sB)(n,(function(n){return s=h(t,e,n,i),isFinite(s)&&s>0})),s}function f(t,e,n,o,h,d,f,g,p,m,y,_,v,x){const w=(0,i.Y)(Math.round(n*t),Math.round(n*e),l);if(_||(w.imageSmoothingEnabled=!1),0===p.length)return w.canvas;function b(t){return Math.round(t*n)/n}w.scale(n,n),w.globalCompositeOperation="lighter";const S=(0,r.S5)();let E;p.forEach((function(t,e,n){(0,r.X$)(S,t.extent)}));const T=n/o,C=(_?1:1+Math.pow(2,-24))/T;if(!v||1!==p.length||0!==m){if(E=(0,i.Y)(Math.round((0,r.RG)(S)*T),Math.round((0,r.Oq)(S)*T),l),_||(E.imageSmoothingEnabled=!1),h&&x){const t=(h[0]-S[0])*T,e=-(h[3]-S[3])*T,n=(0,r.RG)(h)*T,i=(0,r.Oq)(h)*T;E.rect(t,e,n,i),E.clip()}p.forEach((function(t,e,n){if(t.image.width>0&&t.image.height>0){if(t.clipExtent){E.save();const e=(t.clipExtent[0]-S[0])*T,n=-(t.clipExtent[3]-S[3])*T,i=(0,r.RG)(t.clipExtent)*T,o=(0,r.Oq)(t.clipExtent)*T;E.rect(_?e:Math.round(e),_?n:Math.round(n),_?i:Math.round(e+i)-Math.round(e),_?o:Math.round(n+o)-Math.round(n)),E.clip()}const e=(t.extent[0]-S[0])*T,n=-(t.extent[3]-S[3])*T,i=(0,r.RG)(t.extent)*T,o=(0,r.Oq)(t.extent)*T;E.drawImage(t.image,m,m,t.image.width-2*m,t.image.height-2*m,_?e:Math.round(e),_?n:Math.round(n),_?i:Math.round(e+i)-Math.round(e),_?o:Math.round(n+o)-Math.round(n)),t.clipExtent&&E.restore()}}))}const I=(0,r.Py)(f);return g.getTriangles().forEach((function(t,e,n){const o=t.source,h=t.target;let f=o[0][0],g=o[0][1],m=o[1][0],y=o[1][1],v=o[2][0],x=o[2][1];const T=b((h[0][0]-I[0])/d),k=b(-(h[0][1]-I[1])/d),O=b((h[1][0]-I[0])/d),A=b(-(h[1][1]-I[1])/d),R=b((h[2][0]-I[0])/d),D=b(-(h[2][1]-I[1])/d),M=f,P=g;f=0,g=0,m-=M,y-=P,v-=M,x-=P;const L=[[m,y,0,0,O-T],[v,x,0,0,R-T],[0,0,m,y,A-k],[0,0,v,x,D-k]],N=(0,s.KU)(L);if(!N)return;if(w.save(),w.beginPath(),function(){if(void 0===a){const t=(0,i.Y)(6,6,l);t.globalCompositeOperation="lighter",t.fillStyle="rgba(210, 0, 0, 0.75)",c(t,4,5,4,0),c(t,4,5,0,5);const e=t.getImageData(0,0,3,3).data;a=u(e,0)||u(e,4)||u(e,8),(0,i.Yg)(t),l.push(t.canvas)}return a}()||!_){w.moveTo(O,A);const t=4,e=T-O,n=k-A;for(let r=0;r<t;r++)w.lineTo(O+b((r+1)*e/t),A+b(r*n/(t-1))),r!=t-1&&w.lineTo(O+b((r+1)*e/t),A+b((r+1)*n/(t-1)));w.lineTo(R,D)}else w.moveTo(O,A),w.lineTo(T,k),w.lineTo(R,D);let F;if(w.clip(),w.transform(N[0],N[2],N[1],N[3],T,k),w.translate(S[0]-M,S[3]-P),E)F=E.canvas,w.scale(C,-C);else{const t=p[0],e=t.extent;F=t.image,w.scale((0,r.RG)(e)/F.width,-(0,r.Oq)(e)/F.height)}w.drawImage(F,0,0),w.restore()})),E&&((0,i.Yg)(E),l.push(E.canvas)),y&&(w.save(),w.globalCompositeOperation="source-over",w.strokeStyle="black",w.lineWidth=1,g.getTriangles().forEach((function(t,e,n){const r=t.target,i=(r[0][0]-I[0])/d,o=-(r[0][1]-I[1])/d,s=(r[1][0]-I[0])/d,a=-(r[1][1]-I[1])/d,l=(r[2][0]-I[0])/d,c=-(r[2][1]-I[1])/d;w.beginPath(),w.moveTo(s,a),w.lineTo(i,o),w.lineTo(l,c),w.closePath(),w.stroke()})),w.restore()),w.canvas}},92605:(t,e,n)=>{"use strict";n.d(e,{A:()=>g});var r=n(83420),i=n(31990),o=n(42528),s=n(34803),a=n(34982),l=n(99774),c=n(53442),u=n(49196),h=n(78013),d=n(69710);class f extends o.A{constructor(t,e,n,i,o,h,d,f,g,p,m,y){super(o,s.A.IDLE,y),this.renderEdges_=void 0!==m&&m,this.pixelRatio_=d,this.gutter_=f,this.canvas_=null,this.sourceTileGrid_=e,this.targetTileGrid_=i,this.wrappedTileCoord_=h||o,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0,this.clipExtent_=t.canWrapX()?t.getExtent():void 0;const _=i.getTileCoordExtent(this.wrappedTileCoord_),v=this.targetTileGrid_.getExtent();let x=this.sourceTileGrid_.getExtent();const w=v?(0,u._N)(_,v):_;if(0===(0,u.UG)(w))return void(this.state=s.A.EMPTY);const b=t.getExtent();b&&(x=x?(0,u._N)(x,b):b);const S=i.getResolution(this.wrappedTileCoord_[0]),E=(0,l.aY)(t,n,w,S);if(!isFinite(E)||E<=0)return void(this.state=s.A.EMPTY);const T=void 0!==p?p:r.l;if(this.triangulation_=new a.A(t,n,w,x,E*T,S),0===this.triangulation_.getTriangles().length)return void(this.state=s.A.EMPTY);this.sourceZ_=e.getZForResolution(E);let C=this.triangulation_.calculateSourceExtent();if(x&&(t.canWrapX()?(C[1]=(0,c.qE)(C[1],x[1],x[3]),C[3]=(0,c.qE)(C[3],x[1],x[3])):C=(0,u._N)(C,x)),(0,u.UG)(C)){let n=0,r=0;t.canWrapX()&&(n=(0,u.RG)(b),r=Math.floor((C[0]-b[0])/n));(0,u.QJ)(C.slice(),t,!0).forEach((t=>{const i=e.getTileRangeForExtentAndZ(t,this.sourceZ_);for(let e=i.minX;e<=i.maxX;e++)for(let t=i.minY;t<=i.maxY;t++){const i=g(this.sourceZ_,e,t,d);if(i){const t=r*n;this.sourceTiles_.push({tile:i,offset:t})}}++r})),0===this.sourceTiles_.length&&(this.state=s.A.EMPTY)}else this.state=s.A.EMPTY}getImage(){return this.canvas_}reproject_(){const t=[];if(this.sourceTiles_.forEach((e=>{const n=e.tile;if(n&&n.getState()==s.A.LOADED){const r=this.sourceTileGrid_.getTileCoordExtent(n.tileCoord);r[0]+=e.offset,r[2]+=e.offset;const i=this.clipExtent_?.slice();i&&(i[0]+=e.offset,i[2]+=e.offset),t.push({extent:r,clipExtent:i,image:n.getImage()})}})),this.sourceTiles_.length=0,0===t.length)this.state=s.A.ERROR;else{const e=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(e),r="number"===typeof n?n:n[0],i="number"===typeof n?n:n[1],o=this.targetTileGrid_.getResolution(e),a=this.sourceTileGrid_.getResolution(this.sourceZ_),c=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=(0,l.XX)(r,i,this.pixelRatio_,a,this.sourceTileGrid_.getExtent(),o,c,this.triangulation_,t,this.gutter_,this.renderEdges_,this.interpolate),this.state=s.A.LOADED}this.changed()}load(){if(this.state==s.A.IDLE){this.state=s.A.LOADING,this.changed();let t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach((e=>{let{tile:n}=e;const r=n.getState();if(r==s.A.IDLE||r==s.A.LOADING){t++;const e=(0,h.KT)(n,i.A.CHANGE,(r=>{const i=n.getState();i!=s.A.LOADED&&i!=s.A.ERROR&&i!=s.A.EMPTY||((0,h.JH)(e),t--,0===t&&(this.unlistenSources_(),this.reproject_()))}));this.sourcesListenerKeys_.push(e)}})),0===t?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach((function(t,e,n){let{tile:r}=t;r.getState()==s.A.IDLE&&r.load()}))}}unlistenSources_(){this.sourcesListenerKeys_.forEach(h.JH),this.sourcesListenerKeys_=null}release(){this.canvas_&&((0,d.Yg)(this.canvas_.getContext("2d")),l.BV.push(this.canvas_),this.canvas_=null),super.release()}}const g=f},34982:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(49196),i=n(77120),o=n(53442);const s=class{constructor(t,e,n,o,s,a){this.sourceProj_=t,this.targetProj_=e;let l={};const c=(0,i.RG)(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){const e=t[0]+"/"+t[1];return l[e]||(l[e]=c(t)),l[e]},this.maxSourceExtent_=o,this.errorThresholdSquared_=s*s,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!o&&!!this.sourceProj_.getExtent()&&(0,r.RG)(o)>=(0,r.RG)(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?(0,r.RG)(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?(0,r.RG)(this.targetProj_.getExtent()):null;const u=(0,r.Py)(n),h=(0,r.WU)(n),d=(0,r.k_)(n),f=(0,r.R)(n),g=this.transformInv_(u),p=this.transformInv_(h),m=this.transformInv_(d),y=this.transformInv_(f),_=10+(a?Math.max(0,Math.ceil(Math.log2((0,r.UG)(n)/(a*a*256*256)))):0);if(this.addQuad_(u,h,d,f,g,p,m,y,_),this.wrapsXInSource_){let t=1/0;this.triangles_.forEach((function(e,n,r){t=Math.min(t,e.source[0][0],e.source[1][0],e.source[2][0])})),this.triangles_.forEach((e=>{if(Math.max(e.source[0][0],e.source[1][0],e.source[2][0])-t>this.sourceWorldWidth_/2){const n=[[e.source[0][0],e.source[0][1]],[e.source[1][0],e.source[1][1]],[e.source[2][0],e.source[2][1]]];n[0][0]-t>this.sourceWorldWidth_/2&&(n[0][0]-=this.sourceWorldWidth_),n[1][0]-t>this.sourceWorldWidth_/2&&(n[1][0]-=this.sourceWorldWidth_),n[2][0]-t>this.sourceWorldWidth_/2&&(n[2][0]-=this.sourceWorldWidth_);const r=Math.min(n[0][0],n[1][0],n[2][0]);Math.max(n[0][0],n[1][0],n[2][0])-r<this.sourceWorldWidth_/2&&(e.source=n)}}))}l={}}addTriangle_(t,e,n,r,i,o){this.triangles_.push({source:[r,i,o],target:[t,e,n]})}addQuad_(t,e,n,i,s,a,l,c,u){const h=(0,r.Tr)([s,a,l,c]),d=this.sourceWorldWidth_?(0,r.RG)(h)/this.sourceWorldWidth_:null,f=this.sourceWorldWidth_,g=this.sourceProj_.canWrapX()&&d>.5&&d<1;let p=!1;if(u>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){const o=(0,r.Tr)([t,e,n,i]);p=(0,r.RG)(o)/this.targetWorldWidth_>.25||p}!g&&this.sourceProj_.isGlobal()&&d&&(p=d>.25||p)}if(!p&&this.maxSourceExtent_&&isFinite(h[0])&&isFinite(h[1])&&isFinite(h[2])&&isFinite(h[3])&&!(0,r.HY)(h,this.maxSourceExtent_))return;let m=0;if(!p&&(!isFinite(s[0])||!isFinite(s[1])||!isFinite(a[0])||!isFinite(a[1])||!isFinite(l[0])||!isFinite(l[1])||!isFinite(c[0])||!isFinite(c[1])))if(u>0)p=!0;else if(m=(isFinite(s[0])&&isFinite(s[1])?0:8)+(isFinite(a[0])&&isFinite(a[1])?0:4)+(isFinite(l[0])&&isFinite(l[1])?0:2)+(isFinite(c[0])&&isFinite(c[1])?0:1),1!=m&&2!=m&&4!=m&&8!=m)return;if(u>0){if(!p){const e=[(t[0]+n[0])/2,(t[1]+n[1])/2],r=this.transformInv_(e);let i;if(g){i=((0,o.xP)(s[0],f)+(0,o.xP)(l[0],f))/2-(0,o.xP)(r[0],f)}else i=(s[0]+l[0])/2-r[0];const a=(s[1]+l[1])/2-r[1];p=i*i+a*a>this.errorThresholdSquared_}if(p){if(Math.abs(t[0]-n[0])<=Math.abs(t[1]-n[1])){const r=[(e[0]+n[0])/2,(e[1]+n[1])/2],o=this.transformInv_(r),h=[(i[0]+t[0])/2,(i[1]+t[1])/2],d=this.transformInv_(h);this.addQuad_(t,e,r,h,s,a,o,d,u-1),this.addQuad_(h,r,n,i,d,o,l,c,u-1)}else{const r=[(t[0]+e[0])/2,(t[1]+e[1])/2],o=this.transformInv_(r),h=[(n[0]+i[0])/2,(n[1]+i[1])/2],d=this.transformInv_(h);this.addQuad_(t,r,h,i,s,o,d,c,u-1),this.addQuad_(r,e,n,h,o,a,l,d,u-1)}return}}if(g){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&m)&&this.addTriangle_(t,n,i,s,l,c),0==(14&m)&&this.addTriangle_(t,n,e,s,l,a),m&&(0==(13&m)&&this.addTriangle_(e,i,t,a,c,s),0==(7&m)&&this.addTriangle_(e,i,n,a,c,l))}calculateSourceExtent(){const t=(0,r.S5)();return this.triangles_.forEach((function(e,n,i){const o=e.source;(0,r.$C)(t,o[0]),(0,r.$C)(t,o[1]),(0,r.$C)(t,o[2])})),t}getTriangles(){return this.triangles_}}},83420:(t,e,n)=>{"use strict";n.d(e,{l:()=>r});const r=.5},17601:(t,e,n)=>{"use strict";n.d(e,{a$:()=>s,b8:()=>i,cq:()=>a,dv:()=>o});var r=n(53442);function i(t){if(void 0!==t)return 0}function o(t){if(void 0!==t)return t}function s(t){const e=2*Math.PI/t;return function(t,n){return n?t:void 0!==t?t=Math.floor(t/e+.5)*e:void 0}}function a(t){const e=void 0===t?(0,r.eh)(5):t;return function(t,n){return n||void 0===t?t:Math.abs(t)<=e?0:t}}},50929:(t,e,n)=>{"use strict";function r(t){return t[0]>0&&t[1]>0}function i(t,e,n){return void 0===n&&(n=[0,0]),n[0]=t[0]*e+.5|0,n[1]=t[1]*e+.5|0,n}function o(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:(e[0]=t,e[1]=t),e)}n.d(e,{Ie:()=>r,hs:()=>i,xq:()=>o})},78461:(t,e,n)=>{"use strict";n.d(e,{A:()=>Y});var r=n(31990),i=n(25983),o=n(92605),s=n(96734),a=n(86751);class l extends s.A{clear(){for(;this.getCount()>0;)this.pop().release();super.clear()}expireCache(t){for(;this.canExpireCache();){if(this.peekLast().getKey()in t)break;this.pop().release()}}pruneExceptNewestZ(){if(0===this.getCount())return;const t=this.peekFirstKey(),e=(0,a.K)(t)[0];this.forEach((t=>{t.tileCoord[0]!==e&&(this.remove((0,a.i7)(t.tileCoord)),t.release())}))}}const c=l;var u=n(34803);const h="tileloadstart",d="tileloadend",f="tileloaderror";var g=n(82526),p=n(60181),m=n(62352),y=n(87393),_=n(77120),v=n(21439),x=n(5418),w=n(53442),b=n(49196),S=n(70953),E=n(95635),T=n(50929);const C=[0,0,0];const I=class{constructor(t){let e;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,(0,y.v)((0,E.WC)(this.resolutions_,((t,e)=>e-t),!0),"`resolutions` must be sorted in descending order"),!t.origins)for(let r=0,i=this.resolutions_.length-1;r<i;++r)if(e){if(this.resolutions_[r]/this.resolutions_[r+1]!==e){e=void 0;break}}else e=this.resolutions_[r]/this.resolutions_[r+1];this.zoomFactor_=e,this.maxZoom=this.resolutions_.length-1,this.origin_=void 0!==t.origin?t.origin:null,this.origins_=null,void 0!==t.origins&&(this.origins_=t.origins,(0,y.v)(this.origins_.length==this.resolutions_.length,"Number of `origins` and `resolutions` must be equal"));const n=t.extent;void 0===n||this.origin_||this.origins_||(this.origin_=(0,b.Py)(n)),(0,y.v)(!this.origin_&&this.origins_||this.origin_&&!this.origins_,"Either `origin` or `origins` must be configured, never both"),this.tileSizes_=null,void 0!==t.tileSizes&&(this.tileSizes_=t.tileSizes,(0,y.v)(this.tileSizes_.length==this.resolutions_.length,"Number of `tileSizes` and `resolutions` must be equal")),this.tileSize_=void 0!==t.tileSize?t.tileSize:this.tileSizes_?null:x.R,(0,y.v)(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,"Either `tileSize` or `tileSizes` must be configured, never both"),this.extent_=void 0!==n?n:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],this.tmpExtent_=[0,0,0,0],void 0!==t.sizes?this.fullTileRanges_=t.sizes.map(((t,e)=>{const r=new v.A(Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1));if(n){const t=this.getTileRangeForExtentAndZ(n,e);r.minX=Math.max(t.minX,r.minX),r.maxX=Math.min(t.maxX,r.maxX),r.minY=Math.max(t.minY,r.minY),r.maxY=Math.min(t.maxY,r.maxY)}return r})):n&&this.calculateTileRanges_(n)}forEachTileCoord(t,e,n){const r=this.getTileRangeForExtentAndZ(t,e);for(let i=r.minX,o=r.maxX;i<=o;++i)for(let t=r.minY,s=r.maxY;t<=s;++t)n([e,i,t])}forEachTileCoordParentTileRange(t,e,n,r){let i,o,s,a=null,l=t[0]-1;for(2===this.zoomFactor_?(o=t[1],s=t[2]):a=this.getTileCoordExtent(t,r);l>=this.minZoom;){if(void 0!==o&&void 0!==s?(o=Math.floor(o/2),s=Math.floor(s/2),i=(0,v.N)(o,o,s,s,n)):i=this.getTileRangeForExtentAndZ(a,l,n),e(l,i))return!0;--l}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(t){return this.origin_?this.origin_:this.origins_[t]}getResolution(t){return this.resolutions_[t]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(t,e,n){if(t[0]<this.maxZoom){if(2===this.zoomFactor_){const n=2*t[1],r=2*t[2];return(0,v.N)(n,n+1,r,r+1,e)}const r=this.getTileCoordExtent(t,n||this.tmpExtent_);return this.getTileRangeForExtentAndZ(r,t[0]+1,e)}return null}getTileRangeForTileCoordAndZ(t,e,n){if(e>this.maxZoom||e<this.minZoom)return null;const r=t[0],i=t[1],o=t[2];if(e===r)return(0,v.N)(i,o,i,o,n);if(this.zoomFactor_){const t=Math.pow(this.zoomFactor_,e-r),s=Math.floor(i*t),a=Math.floor(o*t);if(e<r)return(0,v.N)(s,s,a,a,n);const l=Math.floor(t*(i+1))-1,c=Math.floor(t*(o+1))-1;return(0,v.N)(s,l,a,c,n)}const s=this.getTileCoordExtent(t,this.tmpExtent_);return this.getTileRangeForExtentAndZ(s,e,n)}getTileRangeForExtentAndZ(t,e,n){this.getTileCoordForXYAndZ_(t[0],t[3],e,!1,C);const r=C[1],i=C[2];this.getTileCoordForXYAndZ_(t[2],t[1],e,!0,C);const o=C[1],s=C[2];return(0,v.N)(r,o,i,s,n)}getTileCoordCenter(t){const e=this.getOrigin(t[0]),n=this.getResolution(t[0]),r=(0,T.xq)(this.getTileSize(t[0]),this.tmpSize_);return[e[0]+(t[1]+.5)*r[0]*n,e[1]-(t[2]+.5)*r[1]*n]}getTileCoordExtent(t,e){const n=this.getOrigin(t[0]),r=this.getResolution(t[0]),i=(0,T.xq)(this.getTileSize(t[0]),this.tmpSize_),o=n[0]+t[1]*i[0]*r,s=n[1]-(t[2]+1)*i[1]*r,a=o+i[0]*r,l=s+i[1]*r;return(0,b.N)(o,s,a,l,e)}getTileCoordForCoordAndResolution(t,e,n){return this.getTileCoordForXYAndResolution_(t[0],t[1],e,!1,n)}getTileCoordForXYAndResolution_(t,e,n,r,i){const o=this.getZForResolution(n),s=n/this.getResolution(o),l=this.getOrigin(o),c=(0,T.xq)(this.getTileSize(o),this.tmpSize_);let u=s*(t-l[0])/n/c[0],h=s*(l[1]-e)/n/c[1];return r?(u=(0,w.mk)(u,5)-1,h=(0,w.mk)(h,5)-1):(u=(0,w.RI)(u,5),h=(0,w.RI)(h,5)),(0,a.N)(o,u,h,i)}getTileCoordForXYAndZ_(t,e,n,r,i){const o=this.getOrigin(n),s=this.getResolution(n),l=(0,T.xq)(this.getTileSize(n),this.tmpSize_);let c=(t-o[0])/s/l[0],u=(o[1]-e)/s/l[1];return r?(c=(0,w.mk)(c,5)-1,u=(0,w.mk)(u,5)-1):(c=(0,w.RI)(c,5),u=(0,w.RI)(u,5)),(0,a.N)(n,c,u,i)}getTileCoordForCoordAndZ(t,e,n){return this.getTileCoordForXYAndZ_(t[0],t[1],e,!1,n)}getTileCoordResolution(t){return this.resolutions_[t[0]]}getTileSize(t){return this.tileSize_?this.tileSize_:this.tileSizes_[t]}getFullTileRange(t){return this.fullTileRanges_?this.fullTileRanges_[t]:this.extent_?this.getTileRangeForExtentAndZ(this.extent_,t):null}getZForResolution(t,e){const n=(0,E.FT)(this.resolutions_,t,e||0);return(0,w.qE)(n,this.minZoom,this.maxZoom)}tileCoordIntersectsViewport(t,e){return(0,S.sj)(e,0,e.length,2,this.getTileCoordExtent(t))}calculateTileRanges_(t){const e=this.resolutions_.length,n=new Array(e);for(let r=this.minZoom;r<e;++r)n[r]=this.getTileRangeForExtentAndZ(t,r);this.fullTileRanges_=n}};function k(t){let e=t.getDefaultTileGrid();return e||(e=function(t,e,n,r){const i=A(t);return function(t,e,n,r){r=void 0!==r?r:"top-left";const i=O(t,e,n);return new I({extent:t,origin:(0,b.qF)(t,r),resolutions:i,tileSize:n})}(i,e,n,r)}(t),t.setDefaultTileGrid(e)),e}function O(t,e,n,r){e=void 0!==e?e:x.L,n=(0,T.xq)(void 0!==n?n:x.R);const i=(0,b.Oq)(t),o=(0,b.RG)(t);r=r>0?r:Math.max(o/n[0],i/n[1]);const s=e+1,a=new Array(s);for(let l=0;l<s;++l)a[l]=r/Math.pow(2,l);return a}function A(t){let e=(t=(0,_.Jt)(t)).getExtent();if(!e){const n=180*_.Ig.degrees/t.getMetersPerUnit();e=(0,b.N)(-n,-n,n,n)}return e}class R extends p.A{constructor(t){super({attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,projection:t.projection,state:t.state,wrapX:t.wrapX,interpolate:t.interpolate}),this.on,this.once,this.un,this.tilePixelRatio_=void 0!==t.tilePixelRatio?t.tilePixelRatio:1,this.tileGrid=void 0!==t.tileGrid?t.tileGrid:null;const e=[256,256];this.tileGrid&&(0,T.xq)(this.tileGrid.getTileSize(this.tileGrid.getMinZoom()),e),this.tileCache=new c(t.cacheSize||0),this.tmpSize=[0,0],this.key_=t.key||"",this.tileOptions={transition:t.transition,interpolate:t.interpolate},this.zDirection=t.zDirection?t.zDirection:0}canExpireCache(){return this.tileCache.canExpireCache()}expireCache(t,e){const n=this.getTileCacheForProjection(t);n&&n.expireCache(e)}getGutterForProjection(t){return 0}getKey(){return this.key_}setKey(t){this.key_!==t&&(this.key_=t,this.changed())}getResolutions(t){const e=t?this.getTileGridForProjection(t):this.tileGrid;return e?e.getResolutions():null}getTile(t,e,n,r,i){return(0,m.b0)()}getTileGrid(){return this.tileGrid}getTileGridForProjection(t){return this.tileGrid?this.tileGrid:k(t)}getTileCacheForProjection(t){const e=this.getProjection();return(0,y.v)(null===e||(0,_.tI)(e,t),"A VectorTile source can only be rendered if it has a projection compatible with the view projection."),this.tileCache}getTilePixelRatio(t){return this.tilePixelRatio_}getTilePixelSize(t,e,n){const r=this.getTileGridForProjection(n),i=this.getTilePixelRatio(e),o=(0,T.xq)(r.getTileSize(t),this.tmpSize);return 1==i?o:(0,T.hs)(o,i,this.tmpSize)}getTileCoordForTileUrlFunction(t,e){e=void 0!==e?e:this.getProjection();const n=this.getTileGridForProjection(e);return this.getWrapX()&&e.isGlobal()&&(t=function(t,e,n){const r=e[0],i=t.getTileCoordCenter(e),o=A(n);if(!(0,b.Ym)(o,i)){const e=(0,b.RG)(o),n=Math.ceil((o[0]-i[0])/e);return i[0]+=e*n,t.getTileCoordForCoordAndZ(i,r)}return e}(n,t,e)),(0,a.N5)(t,n)?t:null}clear(){this.tileCache.clear()}refresh(){this.clear(),super.refresh()}useTile(t,e,n,r){}}class D extends g.Ay{constructor(t,e){super(t),this.tile=e}}const M=R;const P=/\{z\}/g,L=/\{x\}/g,N=/\{y\}/g,F=/\{-y\}/g;function j(t,e){return function(n,r,i){if(!n)return;let o;const s=n[0];if(e){const t=e.getFullTileRange(s);t&&(o=t.getHeight()-1)}return function(t,e,n,r,i){return t.replace(P,e.toString()).replace(L,n.toString()).replace(N,r.toString()).replace(F,(function(){if(void 0===i)throw new Error("If the URL template has a {-y} placeholder, the grid extent must be known");return(i-r).toString()}))}(t,s,n[1],n[2],o)}}function z(t,e){const n=t.length,r=new Array(n);for(let i=0;i<n;++i)r[i]=j(t[i],e);return function(t){if(1===t.length)return t[0];return function(e,n,r){if(!e)return;const i=(0,a.tW)(e),o=(0,w.xP)(i,t.length);return t[o](e,n,r)}}(r)}class G extends M{constructor(t){super({attributions:t.attributions,cacheSize:t.cacheSize,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tilePixelRatio:t.tilePixelRatio,wrapX:t.wrapX,transition:t.transition,interpolate:t.interpolate,key:t.key,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.generateTileUrlFunction_=this.tileUrlFunction===G.prototype.tileUrlFunction,this.tileLoadFunction=t.tileLoadFunction,t.tileUrlFunction&&(this.tileUrlFunction=t.tileUrlFunction),this.urls=null,t.urls?this.setUrls(t.urls):t.url&&this.setUrl(t.url),this.tileLoadingKeys_={}}getTileLoadFunction(){return this.tileLoadFunction}getTileUrlFunction(){return Object.getPrototypeOf(this).tileUrlFunction===this.tileUrlFunction?this.tileUrlFunction.bind(this):this.tileUrlFunction}getUrls(){return this.urls}handleTileChange(t){const e=t.target,n=(0,m.v6)(e),r=e.getState();let i;r==u.A.LOADING?(this.tileLoadingKeys_[n]=!0,i=h):n in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[n],i=r==u.A.ERROR?f:r==u.A.LOADED?d:void 0),void 0!=i&&this.dispatchEvent(new D(i,e))}setTileLoadFunction(t){this.tileCache.clear(),this.tileLoadFunction=t,this.changed()}setTileUrlFunction(t,e){this.tileUrlFunction=t,this.tileCache.pruneExceptNewestZ(),"undefined"!==typeof e?this.setKey(e):this.changed()}setUrl(t){const e=function(t){const e=[];let n=/\{([a-z])-([a-z])\}/.exec(t);if(n){const r=n[1].charCodeAt(0),i=n[2].charCodeAt(0);let o;for(o=r;o<=i;++o)e.push(t.replace(n[0],String.fromCharCode(o)));return e}if(n=/\{(\d+)-(\d+)\}/.exec(t),n){const r=parseInt(n[2],10);for(let i=parseInt(n[1],10);i<=r;i++)e.push(t.replace(n[0],i.toString()));return e}return e.push(t),e}(t);this.urls=e,this.setUrls(e)}setUrls(t){this.urls=t;const e=t.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(z(t,this.tileGrid),e):this.setKey(e)}tileUrlFunction(t,e,n){}useTile(t,e,n){const r=(0,a.dp)(t,e,n);this.tileCache.containsKey(r)&&this.tileCache.get(r)}}const q=G;function H(t,e){t.getImage().src=e}const W=class extends q{constructor(t){super({attributions:t.attributions,cacheSize:t.cacheSize,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction?t.tileLoadFunction:H,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX,transition:t.transition,interpolate:void 0===t.interpolate||t.interpolate,key:t.key,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.crossOrigin=void 0!==t.crossOrigin?t.crossOrigin:null,this.tileClass=void 0!==t.tileClass?t.tileClass:i.A,this.tileCacheForProjection={},this.tileGridForProjection={},this.reprojectionErrorThreshold_=t.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}canExpireCache(){if(this.tileCache.canExpireCache())return!0;for(const t in this.tileCacheForProjection)if(this.tileCacheForProjection[t].canExpireCache())return!0;return!1}expireCache(t,e){const n=this.getTileCacheForProjection(t);this.tileCache.expireCache(this.tileCache==n?e:{});for(const r in this.tileCacheForProjection){const t=this.tileCacheForProjection[r];t.expireCache(t==n?e:{})}}getGutterForProjection(t){return this.getProjection()&&t&&!(0,_.tI)(this.getProjection(),t)?0:this.getGutter()}getGutter(){return 0}getKey(){let t=super.getKey();return this.getInterpolate()||(t+=":disable-interpolation"),t}getTileGridForProjection(t){const e=this.getProjection();if(this.tileGrid&&(!e||(0,_.tI)(e,t)))return this.tileGrid;const n=(0,m.v6)(t);return n in this.tileGridForProjection||(this.tileGridForProjection[n]=k(t)),this.tileGridForProjection[n]}getTileCacheForProjection(t){const e=this.getProjection();if(!e||(0,_.tI)(e,t))return this.tileCache;const n=(0,m.v6)(t);return n in this.tileCacheForProjection||(this.tileCacheForProjection[n]=new c(this.tileCache.highWaterMark)),this.tileCacheForProjection[n]}createTile_(t,e,n,i,o,s){const a=[t,e,n],l=this.getTileCoordForTileUrlFunction(a,o),c=l?this.tileUrlFunction(l,i,o):void 0,h=new this.tileClass(a,void 0!==c?u.A.IDLE:u.A.EMPTY,void 0!==c?c:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return h.key=s,h.addEventListener(r.A.CHANGE,this.handleTileChange.bind(this)),h}getTile(t,e,n,r,i){const s=this.getProjection();if(!s||!i||(0,_.tI)(s,i))return this.getTileInternal(t,e,n,r,s||i);const l=this.getTileCacheForProjection(i),c=[t,e,n];let u;const h=(0,a.i7)(c);l.containsKey(h)&&(u=l.get(h));const d=this.getKey();if(u&&u.key==d)return u;const f=this.getTileGridForProjection(s),g=this.getTileGridForProjection(i),p=this.getTileCoordForTileUrlFunction(c,i),m=new o.A(s,f,i,g,c,p,this.getTilePixelRatio(r),this.getGutter(),((t,e,n,r)=>this.getTileInternal(t,e,n,r,s)),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return m.key=d,u?l.replace(h,m):l.set(h,m),m}getTileInternal(t,e,n,r,i){const o=(0,a.dp)(t,e,n),s=this.getKey();if(!this.tileCache.containsKey(o)){const a=this.createTile_(t,e,n,r,i,s);return this.tileCache.set(o,a),a}let l=this.tileCache.get(o);return l.key!=s&&(l=this.createTile_(t,e,n,r,i,s),this.tileCache.replace(o,l)),l}setRenderReprojectionEdges(t){if(this.renderReprojectionEdges_!=t){this.renderReprojectionEdges_=t;for(const t in this.tileCacheForProjection)this.tileCacheForProjection[t].clear();this.changed()}}setTileGridForProjection(t,e){const n=(0,_.Jt)(t);if(n){const t=(0,m.v6)(n);t in this.tileGridForProjection||(this.tileGridForProjection[t]=e)}}clear(){super.clear();for(const t in this.tileCacheForProjection)this.tileCacheForProjection[t].clear()}};const B=class extends W{constructor(t){const e=void 0!==(t=t||{}).projection?t.projection:"EPSG:3857",n=void 0!==t.tileGrid?t.tileGrid:function(t){const e=t||{},n=e.extent||(0,_.Jt)("EPSG:3857").getExtent(),r={extent:n,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:O(n,e.maxZoom,e.tileSize,e.maxResolution)};return new I(r)}({extent:A(e),maxResolution:t.maxResolution,maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize});super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,projection:e,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:n,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX,transition:t.transition,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.gutter_=void 0!==t.gutter?t.gutter:0}getGutter(){return this.gutter_}};const Y=class extends B{constructor(t){let e;e=void 0!==(t=t||{}).attributions?t.attributions:['© <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors.'];const n=void 0!==t.crossOrigin?t.crossOrigin:"anonymous",r=void 0!==t.url?t.url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png";super({attributions:e,attributionsCollapsible:!1,cacheSize:t.cacheSize,crossOrigin:n,interpolate:t.interpolate,maxZoom:void 0!==t.maxZoom?t.maxZoom:19,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,transition:t.transition,url:r,wrapX:t.wrapX,zDirection:t.zDirection})}}},60181:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(38419),i=n(77120);class o extends r.A{constructor(t){super(),this.projection=(0,i.Jt)(t.projection),this.attributions_=s(t.attributions),this.attributionsCollapsible_=t.attributionsCollapsible??!0,this.loading=!1,this.state_=void 0!==t.state?t.state:"ready",this.wrapX_=void 0!==t.wrapX&&t.wrapX,this.interpolate_=!!t.interpolate,this.viewResolver=null,this.viewRejector=null;const e=this;this.viewPromise_=new Promise((function(t,n){e.viewResolver=t,e.viewRejector=n}))}getAttributions(){return this.attributions_}getAttributionsCollapsible(){return this.attributionsCollapsible_}getProjection(){return this.projection}getResolutions(t){return null}getView(){return this.viewPromise_}getState(){return this.state_}getWrapX(){return this.wrapX_}getInterpolate(){return this.interpolate_}refresh(){this.changed()}setAttributions(t){this.attributions_=s(t),this.changed()}setState(t){this.state_=t,this.changed()}}function s(t){return t?"function"===typeof t?t:(Array.isArray(t)||(t=[t]),e=>t):null}const a=o},77626:(t,e,n)=>{"use strict";n.d(e,{A:()=>q});var r=n(10748),i=n(30342),o=n(82526),s=n(31990),a=n(81411),l=n(89675),c=n(49196),u=n(62352),h=n(44835);const d=class{constructor(t){this.rbush_=new l.A(t),this.items_={}}insert(t,e){const n={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(n),this.items_[(0,u.v6)(e)]=n}load(t,e){const n=new Array(e.length);for(let r=0,i=e.length;r<i;r++){const i=t[r],o=e[r],s={minX:i[0],minY:i[1],maxX:i[2],maxY:i[3],value:o};n[r]=s,this.items_[(0,u.v6)(o)]=s}this.rbush_.load(n)}remove(t){const e=(0,u.v6)(t),n=this.items_[e];return delete this.items_[e],null!==this.rbush_.remove(n)}update(t,e){const n=this.items_[(0,u.v6)(e)],r=[n.minX,n.minY,n.maxX,n.maxY];(0,c.aI)(r,t)||(this.remove(e),this.insert(t,e))}getAll(){return this.rbush_.all().map((function(t){return t.value}))}getInExtent(t){const e={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]};return this.rbush_.search(e).map((function(t){return t.value}))}forEach(t){return this.forEach_(this.getAll(),t)}forEachInExtent(t,e){return this.forEach_(this.getInExtent(t),e)}forEach_(t,e){let n;for(let r=0,i=t.length;r<i;r++)if(n=e(t[r]),n)return n;return n}isEmpty(){return(0,h.p)(this.items_)}clear(){this.rbush_.clear(),this.items_={}}getExtent(t){const e=this.rbush_.toJSON();return(0,c.N)(e.minX,e.minY,e.maxX,e.maxY,t)}concat(t){this.rbush_.load(t.rbush_.all());for(const e in t.items_)this.items_[e]=t.items_[e]}};var f=n(47458),g=n(16680),p=n(95635),m=n(76177),y=n(77120),_=n(8422),v=n(53442);function x(t,e,n,r,i,o,s){let a,l;const c=(n-e)/r;if(1===c)a=e;else if(2===c)a=e,l=i;else if(0!==c){let o=t[e],s=t[e+1],c=0;const u=[0];for(let i=e+r;i<n;i+=r){const e=t[i],n=t[i+1];c+=Math.sqrt((e-o)*(e-o)+(n-s)*(n-s)),u.push(c),o=e,s=n}const h=i*c,d=(0,p.El)(u,h);d<0?(l=(h-u[-d-2])/(u[-d-1]-u[-d-2]),a=e+(-d-2)*r):a=e+d*r}s=s>1?s:2,o=o||new Array(s);for(let u=0;u<s;++u)o[u]=void 0===a?NaN:void 0===l?t[a+u]:(0,v.Cc)(t[a+u],t[a+r+u],l);return o}var w=n(9931),b=n(97075);const S=(0,f.vt)();class E{constructor(t,e,n,r,i,o){this.styleFunction,this.extent_,this.id_=o,this.type_=t,this.flatCoordinates_=e,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=n||null,this.properties_=i,this.squaredTolerance_,this.stride_=r,this.simplifiedGeometry_}get(t){return this.properties_[t]}getExtent(){return this.extent_||(this.extent_="Point"===this.type_?(0,c.dP)(this.flatCoordinates_):(0,c.Vy)(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_}getFlatInteriorPoint(){if(!this.flatInteriorPoints_){const t=(0,c.q1)(this.getExtent());this.flatInteriorPoints_=(0,m.J)(this.flatCoordinates_,0,this.ends_,2,t,0)}return this.flatInteriorPoints_}getFlatInteriorPoints(){if(!this.flatInteriorPoints_){const t=(0,_.yJ)(this.flatCoordinates_,this.ends_),e=function(t,e,n,r){const i=[];let o=(0,c.S5)();for(let s=0,a=n.length;s<a;++s){const a=n[s];o=(0,c.Vy)(t,e,a[0],r),i.push((o[0]+o[2])/2,(o[1]+o[3])/2),e=a[a.length-1]}return i}(this.flatCoordinates_,0,t,2);this.flatInteriorPoints_=(0,m.p)(this.flatCoordinates_,0,t,2,e)}return this.flatInteriorPoints_}getFlatMidpoint(){return this.flatMidpoints_||(this.flatMidpoints_=x(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_}getFlatMidpoints(){if(!this.flatMidpoints_){this.flatMidpoints_=[];const t=this.flatCoordinates_;let e=0;const n=this.ends_;for(let r=0,i=n.length;r<i;++r){const i=n[r],o=x(t,e,i,2,.5);(0,p.X$)(this.flatMidpoints_,o),e=i}}return this.flatMidpoints_}getId(){return this.id_}getOrientedFlatCoordinates(){return this.flatCoordinates_}getGeometry(){return this}getSimplifiedGeometry(t){return this}simplifyTransformed(t,e){return this}getProperties(){return this.properties_}getPropertiesInternal(){return this.properties_}getStride(){return this.stride_}getStyleFunction(){return this.styleFunction}getType(){return this.type_}transform(t){const e=(t=(0,y.Jt)(t)).getExtent(),n=t.getWorldExtent();if(e&&n){const t=(0,c.Oq)(n)/(0,c.Oq)(e);(0,f.Zz)(S,n[0],n[3],t,-t,0,0,0),(0,b.Rc)(this.flatCoordinates_,0,this.flatCoordinates_.length,2,S,this.flatCoordinates_)}}applyTransform(t){t(this.flatCoordinates_,this.flatCoordinates_,this.stride_)}clone(){return new E(this.type_,this.flatCoordinates_.slice(),this.ends_?.slice(),this.stride_,Object.assign({},this.properties_),this.id_)}getEnds(){return this.ends_}enableSimplifyTransformed(){return this.simplifyTransformed=(0,w.B4)(((t,e)=>{if(t===this.squaredTolerance_)return this.simplifiedGeometry_;this.simplifiedGeometry_=this.clone(),e&&this.simplifiedGeometry_.applyTransform(e);const n=this.simplifiedGeometry_.getFlatCoordinates();let r;switch(this.type_){case"LineString":n.length=(0,g.P4)(n,0,this.simplifiedGeometry_.flatCoordinates_.length,this.simplifiedGeometry_.stride_,t,n,0),r=[n.length];break;case"MultiLineString":r=[],n.length=(0,g.AL)(n,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,t,n,0,r);break;case"Polygon":r=[],n.length=(0,g.Hg)(n,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,Math.sqrt(t),n,0,r)}return r&&(this.simplifiedGeometry_=new E(this.type_,n,r,2,this.properties_,this.id_)),this.squaredTolerance_=t,this.simplifiedGeometry_})),this}}E.prototype.getFlatCoordinates=E.prototype.getOrientedFlatCoordinates;const T=E;var C=n(60181);const I="addfeature",k="changefeature",O="clear",A="removefeature",R="featuresloadstart",D="featuresloadend",M="featuresloaderror";function P(t,e){return[[-1/0,-1/0,1/0,1/0]]}var L=n(87393),N=n(78013);let F=!1;function j(t,e){return function(n,r,i,o,s){const a=this;!function(t,e,n,r,i,o,s){const a=new XMLHttpRequest;a.open("GET","function"===typeof t?t(n,r,i):t,!0),"arraybuffer"==e.getType()&&(a.responseType="arraybuffer"),a.withCredentials=F,a.onload=function(t){if(!a.status||a.status>=200&&a.status<300){const t=e.getType();try{let r;"text"==t||"json"==t?r=a.responseText:"xml"==t?r=a.responseXML||a.responseText:"arraybuffer"==t&&(r=a.response),r?o(e.readFeatures(r,{extent:n,featureProjection:i}),e.readProjection(r)):s()}catch{s()}}else s()},a.onerror=s,a.send()}(t,e,n,r,i,(function(t,e){a.addFeatures(t),void 0!==o&&o(t)}),s||w.tV)}}class z extends o.Ay{constructor(t,e,n){super(t),this.feature=e,this.features=n}}class G extends C.A{constructor(t){super({attributions:(t=t||{}).attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:void 0===t.wrapX||t.wrapX}),this.on,this.once,this.un,this.loader_=w.tV,this.format_=t.format||null,this.overlaps_=void 0===t.overlaps||t.overlaps,this.url_=t.url,void 0!==t.loader?this.loader_=t.loader:void 0!==this.url_&&((0,L.v)(this.format_,"`format` must be set when `url` is set"),this.loader_=j(this.url_,this.format_)),this.strategy_=void 0!==t.strategy?t.strategy:P;const e=void 0===t.useSpatialIndex||t.useSpatialIndex;let n,i;this.featuresRtree_=e?new d:null,this.loadedExtentsRtree_=new d,this.loadingExtentsCount_=0,this.nullGeometryFeatures_={},this.idIndex_={},this.uidIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null,Array.isArray(t.features)?i=t.features:t.features&&(n=t.features,i=n.getArray()),e||void 0!==n||(n=new r.A(i)),void 0!==i&&this.addFeaturesInternal(i),void 0!==n&&this.bindFeaturesCollection_(n)}addFeature(t){this.addFeatureInternal(t),this.changed()}addFeatureInternal(t){const e=(0,u.v6)(t);if(!this.addToIndex_(e,t))return void(this.featuresCollection_&&this.featuresCollection_.remove(t));this.setupChangeEvents_(e,t);const n=t.getGeometry();if(n){const e=n.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(e,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new z(I,t))}setupChangeEvents_(t,e){e instanceof T||(this.featureChangeKeys_[t]=[(0,N.KT)(e,s.A.CHANGE,this.handleFeatureChange_,this),(0,N.KT)(e,a.A.PROPERTYCHANGE,this.handleFeatureChange_,this)])}addToIndex_(t,e){let n=!0;if(void 0!==e.getId()){const t=String(e.getId());if(t in this.idIndex_)if(e instanceof T){const r=this.idIndex_[t];r instanceof T?Array.isArray(r)?r.push(e):this.idIndex_[t]=[r,e]:n=!1}else n=!1;else this.idIndex_[t]=e}return n&&((0,L.v)(!(t in this.uidIndex_),"The passed `feature` was already added to the source"),this.uidIndex_[t]=e),n}addFeatures(t){this.addFeaturesInternal(t),this.changed()}addFeaturesInternal(t){const e=[],n=[],r=[];for(let i=0,o=t.length;i<o;i++){const e=t[i],r=(0,u.v6)(e);this.addToIndex_(r,e)&&n.push(e)}for(let i=0,o=n.length;i<o;i++){const t=n[i],o=(0,u.v6)(t);this.setupChangeEvents_(o,t);const s=t.getGeometry();if(s){const n=s.getExtent();e.push(n),r.push(t)}else this.nullGeometryFeatures_[o]=t}if(this.featuresRtree_&&this.featuresRtree_.load(e,r),this.hasListener(I))for(let i=0,o=n.length;i<o;i++)this.dispatchEvent(new z(I,n[i]))}bindFeaturesCollection_(t){let e=!1;this.addEventListener(I,(function(n){e||(e=!0,t.push(n.feature),e=!1)})),this.addEventListener(A,(function(n){e||(e=!0,t.remove(n.feature),e=!1)})),t.addEventListener(i.A.ADD,(t=>{e||(e=!0,this.addFeature(t.element),e=!1)})),t.addEventListener(i.A.REMOVE,(t=>{e||(e=!0,this.removeFeature(t.element),e=!1)})),this.featuresCollection_=t}clear(t){if(t){for(const t in this.featureChangeKeys_){this.featureChangeKeys_[t].forEach(N.JH)}this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){const t=t=>{this.removeFeatureInternal(t)};this.featuresRtree_.forEach(t);for(const e in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[e])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};const e=new z(O);this.dispatchEvent(e),this.changed()}forEachFeature(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)}forEachFeatureAtCoordinateDirect(t,e){const n=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(n,(function(n){const r=n.getGeometry();if(r instanceof T||r.intersectsCoordinate(t))return e(n)}))}forEachFeatureInExtent(t,e){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,e);this.featuresCollection_&&this.featuresCollection_.forEach(e)}forEachFeatureIntersectingExtent(t,e){return this.forEachFeatureInExtent(t,(function(n){const r=n.getGeometry();if(r instanceof T||r.intersectsExtent(t)){const t=e(n);if(t)return t}}))}getFeaturesCollection(){return this.featuresCollection_}getFeatures(){let t;return this.featuresCollection_?t=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(t=this.featuresRtree_.getAll(),(0,h.p)(this.nullGeometryFeatures_)||(0,p.X$)(t,Object.values(this.nullGeometryFeatures_))),t}getFeaturesAtCoordinate(t){const e=[];return this.forEachFeatureAtCoordinateDirect(t,(function(t){e.push(t)})),e}getFeaturesInExtent(t,e){if(this.featuresRtree_){if(!(e&&e.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(t);const n=(0,c.QJ)(t,e);return[].concat(...n.map((t=>this.featuresRtree_.getInExtent(t))))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}getClosestFeatureToCoordinate(t,e){const n=t[0],r=t[1];let i=null;const o=[NaN,NaN];let s=1/0;const a=[-1/0,-1/0,1/0,1/0];return e=e||w.rT,this.featuresRtree_.forEachInExtent(a,(function(t){if(e(t)){const e=t.getGeometry(),l=s;if(s=e instanceof T?0:e.closestPointXY(n,r,o,s),s<l){i=t;const e=Math.sqrt(s);a[0]=n-e,a[1]=r-e,a[2]=n+e,a[3]=r+e}}})),i}getExtent(t){return this.featuresRtree_.getExtent(t)}getFeatureById(t){const e=this.idIndex_[t.toString()];return void 0!==e?e:null}getFeatureByUid(t){const e=this.uidIndex_[t];return void 0!==e?e:null}getFormat(){return this.format_}getOverlaps(){return this.overlaps_}getUrl(){return this.url_}handleFeatureChange_(t){const e=t.target,n=(0,u.v6)(e),r=e.getGeometry();if(r){const t=r.getExtent();n in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[n],this.featuresRtree_&&this.featuresRtree_.insert(t,e)):this.featuresRtree_&&this.featuresRtree_.update(t,e)}else n in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(e),this.nullGeometryFeatures_[n]=e);const i=e.getId();if(void 0!==i){const t=i.toString();this.idIndex_[t]!==e&&(this.removeFromIdIndex_(e),this.idIndex_[t]=e)}else this.removeFromIdIndex_(e),this.uidIndex_[n]=e;this.changed(),this.dispatchEvent(new z(k,e))}hasFeature(t){const e=t.getId();return void 0!==e?e in this.idIndex_:(0,u.v6)(t)in this.uidIndex_}isEmpty(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&(0,h.p)(this.nullGeometryFeatures_):!this.featuresCollection_||0===this.featuresCollection_.getLength()}loadFeatures(t,e,n){const r=this.loadedExtentsRtree_,i=this.strategy_(t,e,n);for(let o=0,s=i.length;o<s;++o){const t=i[o];r.forEachInExtent(t,(function(e){return(0,c.ms)(e.extent,t)}))||(++this.loadingExtentsCount_,this.dispatchEvent(new z(R)),this.loader_.call(this,t,e,n,(t=>{--this.loadingExtentsCount_,this.dispatchEvent(new z(D,void 0,t))}),(()=>{--this.loadingExtentsCount_,this.dispatchEvent(new z(M))})),r.insert(t,{extent:t.slice()}))}this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0}refresh(){this.clear(!0),this.loadedExtentsRtree_.clear(),super.refresh()}removeLoadedExtent(t){const e=this.loadedExtentsRtree_;let n;e.forEachInExtent(t,(function(e){if((0,c.aI)(e.extent,t))return n=e,!0})),n&&e.remove(n)}removeFeatures(t){let e=!1;for(let n=0,r=t.length;n<r;++n)e=this.removeFeatureInternal(t[n])||e;e&&this.changed()}removeFeature(t){if(!t)return;this.removeFeatureInternal(t)&&this.changed()}removeFeatureInternal(t){const e=(0,u.v6)(t);if(!(e in this.uidIndex_))return!1;e in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[e]:this.featuresRtree_&&this.featuresRtree_.remove(t);const n=this.featureChangeKeys_[e];n?.forEach(N.JH),delete this.featureChangeKeys_[e];const r=t.getId();if(void 0!==r){const e=r.toString(),n=this.idIndex_[e];n===t?delete this.idIndex_[e]:Array.isArray(n)&&(n.splice(n.indexOf(t),1),1===n.length&&(this.idIndex_[e]=n[0]))}return delete this.uidIndex_[e],this.hasListener(A)&&this.dispatchEvent(new z(A,t)),!0}removeFromIdIndex_(t){for(const e in this.idIndex_)if(this.idIndex_[e]===t){delete this.idIndex_[e];break}}setLoader(t){this.loader_=t}setUrl(t){(0,L.v)(this.format_,"`format` must be set when `url` is set"),this.url_=t,this.setLoader(j(t,this.format_))}}const q=G},96734:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(87393);const i=class{constructor(t){this.highWaterMark=void 0!==t?t:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}canExpireCache(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark}expireCache(t){for(;this.canExpireCache();)this.pop()}clear(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}containsKey(t){return this.entries_.hasOwnProperty(t)}forEach(t){let e=this.oldest_;for(;e;)t(e.value_,e.key_,this),e=e.newer}get(t,e){const n=this.entries_[t];return(0,r.v)(void 0!==n,"Tried to get a value for a key that does not exist in the cache"),n===this.newest_||(n===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(n.newer.older=n.older,n.older.newer=n.newer),n.newer=null,n.older=this.newest_,this.newest_.newer=n,this.newest_=n),n.value_}remove(t){const e=this.entries_[t];return(0,r.v)(void 0!==e,"Tried to get a value for a key that does not exist in the cache"),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_}getCount(){return this.count_}getKeys(){const t=new Array(this.count_);let e,n=0;for(e=this.newest_;e;e=e.older)t[n++]=e.key_;return t}getValues(){const t=new Array(this.count_);let e,n=0;for(e=this.newest_;e;e=e.older)t[n++]=e.value_;return t}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(t){return this.entries_[t]?.value_}pop(){const t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_}replace(t,e){this.get(t),this.entries_[t].value_=e}set(t,e){(0,r.v)(!(t in this.entries_),"Tried to set a value for a key that is used already");const n={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[t]=n,++this.count_}setSize(t){this.highWaterMark=t}}},42258:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(70535);class i extends r.A{constructor(t){super({points:1/0,fill:(t=t||{radius:5}).fill,radius:t.radius,stroke:t.stroke,scale:void 0!==t.scale?t.scale:1,rotation:void 0!==t.rotation?t.rotation:0,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView,displacement:void 0!==t.displacement?t.displacement:[0,0],declutterMode:t.declutterMode})}clone(){const t=this.getScale(),e=new i({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return e.setOpacity(this.getOpacity()),e}setRadius(t){this.radius=t,this.render()}}const o=i},63951:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(9994),i=n(38542);class o{constructor(t){t=t||{},this.patternImage_=null,this.color_=null,void 0!==t.color&&this.setColor(t.color)}clone(){const t=this.getColor();return new o({color:Array.isArray(t)?t.slice():t||void 0})}getColor(){return this.color_}setColor(t){if(null!==t&&"object"===typeof t&&"src"in t){const e=(0,i.J)(null,t.src,"anonymous",void 0,t.offset?null:t.color?t.color:null,!(t.offset&&t.size));e.ready().then((()=>{this.patternImage_=null})),e.getImageState()===r.A.IDLE&&e.load(),e.getImageState()===r.A.LOADING&&(this.patternImage_=e)}this.color_=t}loading(){return!!this.patternImage_}ready(){return this.patternImage_?this.patternImage_.ready():Promise.resolve()}}const s=o},29695:(t,e,n)=>{"use strict";n.d(e,{A:()=>d});var r=n(31990),i=n(9994),o=n(77549),s=n(9352),a=n(87393),l=n(38542),c=n(62352);function u(t,e,n,r){return void 0!==n&&void 0!==r?[n/t,r/e]:void 0!==n?n/t:void 0!==r?r/e:1}class h extends o.A{constructor(t){const e=void 0!==(t=t||{}).opacity?t.opacity:1,n=void 0!==t.rotation?t.rotation:0,r=void 0!==t.scale?t.scale:1,o=void 0!==t.rotateWithView&&t.rotateWithView;super({opacity:e,rotation:n,scale:r,displacement:void 0!==t.displacement?t.displacement:[0,0],rotateWithView:o,declutterMode:t.declutterMode}),this.anchor_=void 0!==t.anchor?t.anchor:[.5,.5],this.normalizedAnchor_=null,this.anchorOrigin_=void 0!==t.anchorOrigin?t.anchorOrigin:"top-left",this.anchorXUnits_=void 0!==t.anchorXUnits?t.anchorXUnits:"fraction",this.anchorYUnits_=void 0!==t.anchorYUnits?t.anchorYUnits:"fraction",this.crossOrigin_=void 0!==t.crossOrigin?t.crossOrigin:null;const h=void 0!==t.img?t.img:null;let d,f=t.src;if((0,a.v)(!(void 0!==f&&h),"`image` and `src` cannot be provided at the same time"),void 0!==f&&0!==f.length||!h||(f=h.src||(0,c.v6)(h)),(0,a.v)(void 0!==f&&f.length>0,"A defined and non-empty `src` or `image` must be provided"),(0,a.v)(!((void 0!==t.width||void 0!==t.height)&&void 0!==t.scale),"`width` or `height` cannot be provided together with `scale`"),void 0!==t.src?d=i.A.IDLE:void 0!==h&&(d="complete"in h?h.complete?h.src?i.A.LOADED:i.A.IDLE:i.A.LOADING:i.A.LOADED),this.color_=void 0!==t.color?(0,s._j)(t.color):null,this.iconImage_=(0,l.J)(h,f,this.crossOrigin_,d,this.color_),this.offset_=void 0!==t.offset?t.offset:[0,0],this.offsetOrigin_=void 0!==t.offsetOrigin?t.offsetOrigin:"top-left",this.origin_=null,this.size_=void 0!==t.size?t.size:null,this.initialOptions_,void 0!==t.width||void 0!==t.height){let e,n;if(t.size)[e,n]=t.size;else{const r=this.getImage(1);if(r.width&&r.height)e=r.width,n=r.height;else if(r instanceof HTMLImageElement){this.initialOptions_=t;const e=()=>{if(this.unlistenImageChange(e),!this.initialOptions_)return;const n=this.iconImage_.getSize();this.setScale(u(n[0],n[1],t.width,t.height))};return void this.listenImageChange(e)}}void 0!==e&&this.setScale(u(e,n,t.width,t.height))}}clone(){let t,e,n;return this.initialOptions_?(e=this.initialOptions_.width,n=this.initialOptions_.height):(t=this.getScale(),t=Array.isArray(t)?t.slice():t),new h({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:t,width:e,height:n,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getAnchor(){let t=this.normalizedAnchor_;if(!t){t=this.anchor_;const e=this.getSize();if("fraction"==this.anchorXUnits_||"fraction"==this.anchorYUnits_){if(!e)return null;t=this.anchor_.slice(),"fraction"==this.anchorXUnits_&&(t[0]*=e[0]),"fraction"==this.anchorYUnits_&&(t[1]*=e[1])}if("top-left"!=this.anchorOrigin_){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),"top-right"!=this.anchorOrigin_&&"bottom-right"!=this.anchorOrigin_||(t[0]=-t[0]+e[0]),"bottom-left"!=this.anchorOrigin_&&"bottom-right"!=this.anchorOrigin_||(t[1]=-t[1]+e[1])}this.normalizedAnchor_=t}const e=this.getDisplacement(),n=this.getScaleArray();return[t[0]-e[0]/n[0],t[1]+e[1]/n[1]]}setAnchor(t){this.anchor_=t,this.normalizedAnchor_=null}getColor(){return this.color_}getImage(t){return this.iconImage_.getImage(t)}getPixelRatio(t){return this.iconImage_.getPixelRatio(t)}getImageSize(){return this.iconImage_.getSize()}getImageState(){return this.iconImage_.getImageState()}getHitDetectionImage(){return this.iconImage_.getHitDetectionImage()}getOrigin(){if(this.origin_)return this.origin_;let t=this.offset_;if("top-left"!=this.offsetOrigin_){const e=this.getSize(),n=this.iconImage_.getSize();if(!e||!n)return null;t=t.slice(),"top-right"!=this.offsetOrigin_&&"bottom-right"!=this.offsetOrigin_||(t[0]=n[0]-e[0]-t[0]),"bottom-left"!=this.offsetOrigin_&&"bottom-right"!=this.offsetOrigin_||(t[1]=n[1]-e[1]-t[1])}return this.origin_=t,this.origin_}getSrc(){return this.iconImage_.getSrc()}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}getWidth(){const t=this.getScaleArray();return this.size_?this.size_[0]*t[0]:this.iconImage_.getImageState()==i.A.LOADED?this.iconImage_.getSize()[0]*t[0]:void 0}getHeight(){const t=this.getScaleArray();return this.size_?this.size_[1]*t[1]:this.iconImage_.getImageState()==i.A.LOADED?this.iconImage_.getSize()[1]*t[1]:void 0}setScale(t){delete this.initialOptions_,super.setScale(t)}listenImageChange(t){this.iconImage_.addEventListener(r.A.CHANGE,t)}load(){this.iconImage_.load()}unlistenImageChange(t){this.iconImage_.removeEventListener(r.A.CHANGE,t)}ready(){return this.iconImage_.ready()}}const d=h},38542:(t,e,n)=>{"use strict";n.d(e,{J:()=>d});var r=n(58981),i=n(31990),o=n(9994),s=n(9352),a=n(69710),l=n(39891),c=n(3358);let u=null;class h extends r.A{constructor(t,e,n,r,i){super(),this.hitDetectionImage_=null,this.image_=t,this.crossOrigin_=n,this.canvas_={},this.color_=i,this.imageState_=void 0===r?o.A.IDLE:r,this.size_=t&&t.width&&t.height?[t.width,t.height]:null,this.src_=e,this.tainted_,this.ready_=null}initializeImage_(){this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)}isTainted_(){if(void 0===this.tainted_&&this.imageState_===o.A.LOADED){u||(u=(0,a.Y)(1,1,void 0,{willReadFrequently:!0})),u.drawImage(this.image_,0,0);try{u.getImageData(0,0,1,1),this.tainted_=!1}catch(t){u=null,this.tainted_=!0}}return!0===this.tainted_}dispatchChangeEvent_(){this.dispatchEvent(i.A.CHANGE)}handleImageError_(){this.imageState_=o.A.ERROR,this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=o.A.LOADED,this.size_=[this.image_.width,this.image_.height],this.dispatchChangeEvent_()}getImage(t){return this.image_||this.initializeImage_(),this.replaceColor_(t),this.canvas_[t]?this.canvas_[t]:this.image_}getPixelRatio(t){return this.replaceColor_(t),this.canvas_[t]?t:1}getImageState(){return this.imageState_}getHitDetectionImage(){if(this.image_||this.initializeImage_(),!this.hitDetectionImage_)if(this.isTainted_()){const t=this.size_[0],e=this.size_[1],n=(0,a.Y)(t,e);n.fillRect(0,0,t,e),this.hitDetectionImage_=n.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_}getSize(){return this.size_}getSrc(){return this.src_}load(){if(this.imageState_===o.A.IDLE){this.image_||this.initializeImage_(),this.imageState_=o.A.LOADING;try{void 0!==this.src_&&(this.image_.src=this.src_)}catch(t){this.handleImageError_()}this.image_ instanceof HTMLImageElement&&(0,l.RA)(this.image_,this.src_).then((t=>{this.image_=t,this.handleImageLoad_()})).catch(this.handleImageError_.bind(this))}}replaceColor_(t){if(!this.color_||this.canvas_[t]||this.imageState_!==o.A.LOADED)return;const e=this.image_,n=document.createElement("canvas");n.width=Math.ceil(e.width*t),n.height=Math.ceil(e.height*t);const r=n.getContext("2d");r.scale(t,t),r.drawImage(e,0,0),r.globalCompositeOperation="multiply",r.fillStyle=(0,s.oJ)(this.color_),r.fillRect(0,0,n.width/t,n.height/t),r.globalCompositeOperation="destination-in",r.drawImage(e,0,0),this.canvas_[t]=n}ready(){return this.ready_||(this.ready_=new Promise((t=>{if(this.imageState_===o.A.LOADED||this.imageState_===o.A.ERROR)t();else{const e=()=>{this.imageState_!==o.A.LOADED&&this.imageState_!==o.A.ERROR||(this.removeEventListener(i.A.CHANGE,e),t())};this.addEventListener(i.A.CHANGE,e)}}))),this.ready_}}function d(t,e,n,r,i,o){let s=void 0===e?void 0:c.ue.get(e,n,i);return s||(s=new h(t,t&&"src"in t?t.src||void 0:e,n,r,i),c.ue.set(e,n,i,s,o)),o&&s&&!c.ue.getPattern(e,n,i)&&c.ue.set(e,n,i,s,o),s}},3358:(t,e,n)=>{"use strict";n.d(e,{ue:()=>l});var r=n(9994),i=n(9352),o=n(69710);class s{constructor(){this.cache_={},this.patternCache_={},this.cacheSize_=0,this.maxCacheSize_=32}clear(){this.cache_={},this.patternCache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let t=0;for(const e in this.cache_){const n=this.cache_[e];0!==(3&t++)||n.hasListener()||(delete this.cache_[e],delete this.patternCache_[e],--this.cacheSize_)}}}get(t,e,n){const r=a(t,e,n);return r in this.cache_?this.cache_[r]:null}getPattern(t,e,n){const r=a(t,e,n);return r in this.patternCache_?this.patternCache_[r]:null}set(t,e,n,i,s){const l=a(t,e,n),c=l in this.cache_;this.cache_[l]=i,s&&(i.getImageState()===r.A.IDLE&&i.load(),i.getImageState()===r.A.LOADING?i.ready().then((()=>{this.patternCache_[l]=(0,o.lr)().createPattern(i.getImage(1),"repeat")})):this.patternCache_[l]=(0,o.lr)().createPattern(i.getImage(1),"repeat")),c||++this.cacheSize_}setSize(t){this.maxCacheSize_=t,this.expire()}}function a(t,e,n){return e+":"+t+":"+(n?(0,i._j)(n):"null")}const l=new s},77549:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(62352),i=n(50929);class o{constructor(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=(0,i.xq)(t.scale),this.displacement_=t.displacement,this.declutterMode_=t.declutterMode}clone(){const t=this.getScale();return new o({opacity:this.getOpacity(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return(0,r.b0)()}getImage(t){return(0,r.b0)()}getHitDetectionImage(){return(0,r.b0)()}getPixelRatio(t){return 1}getImageState(){return(0,r.b0)()}getImageSize(){return(0,r.b0)()}getOrigin(){return(0,r.b0)()}getSize(){return(0,r.b0)()}setDisplacement(t){this.displacement_=t}setOpacity(t){this.opacity_=t}setRotateWithView(t){this.rotateWithView_=t}setRotation(t){this.rotation_=t}setScale(t){this.scale_=t,this.scaleArray_=(0,i.xq)(t)}listenImageChange(t){(0,r.b0)()}load(){(0,r.b0)()}unlistenImageChange(t){(0,r.b0)()}ready(){return Promise.resolve()}}const s=o},70535:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(9994),i=n(77549),o=n(9352),s=n(13422),a=n(69710),l=n(58247);class c extends i.A{constructor(t){super({opacity:1,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView,rotation:void 0!==t.rotation?t.rotation:0,scale:void 0!==t.scale?t.scale:1,displacement:void 0!==t.displacement?t.displacement:[0,0],declutterMode:t.declutterMode}),this.canvases_,this.hitDetectionCanvas_=null,this.fill_=void 0!==t.fill?t.fill:null,this.origin_=[0,0],this.points_=t.points,this.radius=t.radius,this.radius2_=t.radius2,this.angle_=void 0!==t.angle?t.angle:0,this.stroke_=void 0!==t.stroke?t.stroke:null,this.size_,this.renderOptions_,this.imageState_=this.fill_&&this.fill_.loading()?r.A.LOADING:r.A.LOADED,this.imageState_===r.A.LOADING&&this.ready().then((()=>this.imageState_=r.A.LOADED)),this.render()}clone(){const t=this.getScale(),e=new c({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return e.setOpacity(this.getOpacity()),e}getAnchor(){const t=this.size_,e=this.getDisplacement(),n=this.getScaleArray();return[t[0]/2-e[0]/n[0],t[1]/2+e[1]/n[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(t){this.fill_=t,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(t){let e=this.canvases_[t];if(!e){const n=this.renderOptions_,r=(0,a.Y)(n.size*t,n.size*t);this.draw_(n,r,t),e=r.canvas,this.canvases_[t]=e}return e}getPixelRatio(t){return t}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(t){this.stroke_=t,this.render()}listenImageChange(t){}load(){}unlistenImageChange(t){}calculateLineJoinSize_(t,e,n){if(0===e||this.points_===1/0||"bevel"!==t&&"miter"!==t)return e;let r=this.radius,i=void 0===this.radius2_?r:this.radius2_;if(r<i){const t=r;r=i,i=t}const o=void 0===this.radius2_?this.points_:2*this.points_,s=2*Math.PI/o,a=i*Math.sin(s),l=r-Math.sqrt(i*i-a*a),c=Math.sqrt(a*a+l*l),u=c/a;if("miter"===t&&u<=n)return u*e;const h=e/2/u,d=e/2*(l/c),f=Math.sqrt((r+h)*(r+h)+d*d)-r;if(void 0===this.radius2_||"bevel"===t)return 2*f;const g=r*Math.sin(s),p=i-Math.sqrt(r*r-g*g),m=Math.sqrt(g*g+p*p)/g;if(m<=n){const t=m*e/2-i-r;return 2*Math.max(f,t)}return 2*f}createRenderOptions(){let t,e=l._m,n=l._K,r=0,i=null,o=0,a=0;this.stroke_&&(t=(0,s.F)(this.stroke_.getColor()??l.NT),a=this.stroke_.getWidth()??l.aq,i=this.stroke_.getLineDash(),o=this.stroke_.getLineDashOffset()??0,n=this.stroke_.getLineJoin()??l._K,e=this.stroke_.getLineCap()??l._m,r=this.stroke_.getMiterLimit()??l.eL);const c=this.calculateLineJoinSize_(n,a,r),u=Math.max(this.radius,this.radius2_||0);return{strokeStyle:t,strokeWidth:a,size:Math.ceil(2*u+c),lineCap:e,lineDash:i,lineDashOffset:o,lineJoin:n,miterLimit:r}}render(){this.renderOptions_=this.createRenderOptions();const t=this.renderOptions_.size;this.canvases_={},this.hitDetectionCanvas_=null,this.size_=[t,t]}draw_(t,e,n){if(e.scale(n,n),e.translate(t.size/2,t.size/2),this.createPath_(e),this.fill_){let t=this.fill_.getColor();null===t&&(t=l.qY),e.fillStyle=(0,s.F)(t),e.fill()}t.strokeStyle&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineCap=t.lineCap,e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke())}createHitDetectionCanvas_(t){let e;if(this.fill_){let n=this.fill_.getColor(),r=0;"string"===typeof n&&(n=(0,o._j)(n)),null===n?r=1:Array.isArray(n)&&(r=4===n.length?n[3]:1),0===r&&(e=(0,a.Y)(t.size,t.size),this.drawHitDetectionCanvas_(t,e))}return e?e.canvas:this.getImage(1)}createPath_(t){let e=this.points_;const n=this.radius;if(e===1/0)t.arc(0,0,n,0,2*Math.PI);else{const r=void 0===this.radius2_?n:this.radius2_;void 0!==this.radius2_&&(e*=2);const i=this.angle_-Math.PI/2,o=2*Math.PI/e;for(let s=0;s<e;s++){const e=i+s*o,a=s%2===0?n:r;t.lineTo(a*Math.cos(e),a*Math.sin(e))}t.closePath()}}drawHitDetectionCanvas_(t,e){e.translate(t.size/2,t.size/2),this.createPath_(e),e.fillStyle=l.qY,e.fill(),t.strokeStyle&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke())}ready(){return this.fill_?this.fill_.ready():Promise.resolve()}}const u=c},19294:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});class r{constructor(t){t=t||{},this.color_=void 0!==t.color?t.color:null,this.lineCap_=t.lineCap,this.lineDash_=void 0!==t.lineDash?t.lineDash:null,this.lineDashOffset_=t.lineDashOffset,this.lineJoin_=t.lineJoin,this.miterLimit_=t.miterLimit,this.width_=t.width}clone(){const t=this.getColor();return new r({color:Array.isArray(t)?t.slice():t||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})}getColor(){return this.color_}getLineCap(){return this.lineCap_}getLineDash(){return this.lineDash_}getLineDashOffset(){return this.lineDashOffset_}getLineJoin(){return this.lineJoin_}getMiterLimit(){return this.miterLimit_}getWidth(){return this.width_}setColor(t){this.color_=t}setLineCap(t){this.lineCap_=t}setLineDash(t){this.lineDash_=t}setLineDashOffset(t){this.lineDashOffset_=t}setLineJoin(t){this.lineJoin_=t}setMiterLimit(t){this.miterLimit_=t}setWidth(t){this.width_=t}}const i=r},66097:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>d,d1:()=>u,mC:()=>l});var r=n(42258),i=n(63951),o=n(19294),s=n(87393);class a{constructor(t){t=t||{},this.geometry_=null,this.geometryFunction_=h,void 0!==t.geometry&&this.setGeometry(t.geometry),this.fill_=void 0!==t.fill?t.fill:null,this.image_=void 0!==t.image?t.image:null,this.renderer_=void 0!==t.renderer?t.renderer:null,this.hitDetectionRenderer_=void 0!==t.hitDetectionRenderer?t.hitDetectionRenderer:null,this.stroke_=void 0!==t.stroke?t.stroke:null,this.text_=void 0!==t.text?t.text:null,this.zIndex_=t.zIndex}clone(){let t=this.getGeometry();return t&&"object"===typeof t&&(t=t.clone()),new a({geometry:t??void 0,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer()??void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})}getRenderer(){return this.renderer_}setRenderer(t){this.renderer_=t}setHitDetectionRenderer(t){this.hitDetectionRenderer_=t}getHitDetectionRenderer(){return this.hitDetectionRenderer_}getGeometry(){return this.geometry_}getGeometryFunction(){return this.geometryFunction_}getFill(){return this.fill_}setFill(t){this.fill_=t}getImage(){return this.image_}setImage(t){this.image_=t}getStroke(){return this.stroke_}setStroke(t){this.stroke_=t}getText(){return this.text_}setText(t){this.text_=t}getZIndex(){return this.zIndex_}setGeometry(t){"function"===typeof t?this.geometryFunction_=t:"string"===typeof t?this.geometryFunction_=function(e){return e.get(t)}:t?void 0!==t&&(this.geometryFunction_=function(){return t}):this.geometryFunction_=h,this.geometry_=t}setZIndex(t){this.zIndex_=t}}function l(t){let e;if("function"===typeof t)e=t;else{let n;if(Array.isArray(t))n=t;else{(0,s.v)("function"===typeof t.getZIndex,"Expected an `Style` or an array of `Style`");n=[t]}e=function(){return n}}return e}let c=null;function u(t,e){if(!c){const t=new i.A({color:"rgba(255,255,255,0.4)"}),e=new o.A({color:"#3399CC",width:1.25});c=[new a({image:new r.A({fill:t,stroke:e,radius:5}),fill:t,stroke:e})]}return c}function h(t){return t.getGeometry()}const d=a},86751:(t,e,n)=>{"use strict";function r(t,e,n,r){return void 0!==r?(r[0]=t,r[1]=e,r[2]=n,r):[t,e,n]}function i(t,e,n){return t+"/"+e+"/"+n}function o(t){return i(t[0],t[1],t[2])}function s(t){return t.split("/").map(Number)}function a(t){return e=t[0],n=t[1],r=t[2],(n<<e)+r;var e,n,r}function l(t,e){const n=t[0],r=t[1],i=t[2];if(e.getMinZoom()>n||n>e.getMaxZoom())return!1;const o=e.getFullTileRange(n);return!o||o.containsXY(r,i)}n.d(e,{K:()=>s,N:()=>r,N5:()=>l,dp:()=>i,i7:()=>o,tW:()=>a})},5418:(t,e,n)=>{"use strict";n.d(e,{L:()=>r,R:()=>i});const r=42,i=256},47458:(t,e,n)=>{"use strict";n.d(e,{Bb:()=>s,T9:()=>l,Zz:()=>a,dI:()=>u,k3:()=>o,vt:()=>i});var r=n(87393);new Array(6);function i(){return[1,0,0,1,0,0]}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function s(t,e){const n=e[0],r=e[1];return e[0]=t[0]*n+t[2]*r+t[4],e[1]=t[1]*n+t[3]*r+t[5],e}function a(t,e,n,r,i,o,s,a){const l=Math.sin(o),c=Math.cos(o);return t[0]=r*c,t[1]=i*l,t[2]=-r*l,t[3]=i*c,t[4]=s*r*c-a*r*l+e,t[5]=s*i*l+a*i*c+n,t}function l(t,e){const n=(i=e)[0]*i[3]-i[1]*i[2];var i;(0,r.v)(0!==n,"Transformation matrix cannot be inverted");const o=e[0],s=e[1],a=e[2],l=e[3],c=e[4],u=e[5];return t[0]=l/n,t[1]=-s/n,t[2]=-a/n,t[3]=o/n,t[4]=(a*u-l*c)/n,t[5]=-(o*u-s*c)/n,t}const c=[1e6,1e6,1e6,1e6,2,2];function u(t){return"matrix("+t.map(((t,e)=>Math.round(t*c[e])/c[e])).join(", ")+")"}},62352:(t,e,n)=>{"use strict";function r(){throw new Error("Unimplemented abstract method.")}n.d(e,{b0:()=>r,v6:()=>o});let i=0;function o(t){return t.ol_uid||(t.ol_uid=String(++i))}},89675:(t,e,n)=>{"use strict";function r(t,e,n,r,o){i(t,e,n||0,r||t.length-1,o||s)}function i(t,e,n,r,s){for(;r>n;){if(r-n>600){var a=r-n+1,l=e-n+1,c=Math.log(a),u=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*u*(a-u)/a)*(l-a/2<0?-1:1);i(t,e,Math.max(n,Math.floor(e-l*u/a+h)),Math.min(r,Math.floor(e+(a-l)*u/a+h)),s)}var d=t[e],f=n,g=r;for(o(t,n,e),s(t[r],d)>0&&o(t,n,r);f<g;){for(o(t,f,g),f++,g--;s(t[f],d)<0;)f++;for(;s(t[g],d)>0;)g--}0===s(t[n],d)?o(t,n,g):o(t,++g,r),g<=e&&(n=g+1),e<=g&&(r=g-1)}}function o(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function s(t,e){return t<e?-1:t>e?1:0}n.d(e,{A:()=>a});class a{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:9;this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(t){let e=this.data;const n=[];if(!_(t,e))return n;const r=this.toBBox,i=[];for(;e;){for(let o=0;o<e.children.length;o++){const s=e.children[o],a=e.leaf?r(s):s;_(t,a)&&(e.leaf?n.push(s):y(t,a)?this._all(s,n):i.push(s))}e=i.pop()}return n}collides(t){let e=this.data;if(!_(t,e))return!1;const n=[];for(;e;){for(let r=0;r<e.children.length;r++){const i=e.children[r],o=e.leaf?this.toBBox(i):i;if(_(t,o)){if(e.leaf||y(t,o))return!0;n.push(i)}}e=n.pop()}return!1}load(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(let e=0;e<t.length;e++)this.insert(t[e]);return this}let e=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===e.height)this._splitRoot(this.data,e);else{if(this.data.height<e.height){const t=this.data;this.data=e,e=t}this._insert(e,this.data.height-e.height-1,!0)}else this.data=e;return this}insert(t){return t&&this._insert(t,this.data.height-1),this}clear(){return this.data=v([]),this}remove(t,e){if(!t)return this;let n=this.data;const r=this.toBBox(t),i=[],o=[];let s,a,c;for(;n||i.length;){if(n||(n=i.pop(),a=i[i.length-1],s=o.pop(),c=!0),n.leaf){const r=l(t,n.children,e);if(-1!==r)return n.children.splice(r,1),i.push(n),this._condense(i),this}c||n.leaf||!y(n,r)?a?(s++,n=a.children[s],c=!1):n=null:(i.push(n),o.push(s),s=0,a=n,n=n.children[0])}return this}toBBox(t){return t}compareMinX(t,e){return t.minX-e.minX}compareMinY(t,e){return t.minY-e.minY}toJSON(){return this.data}fromJSON(t){return this.data=t,this}_all(t,e){const n=[];for(;t;)t.leaf?e.push(...t.children):n.push(...t.children),t=n.pop();return e}_build(t,e,n,r){const i=n-e+1;let o,s=this._maxEntries;if(i<=s)return o=v(t.slice(e,n+1)),c(o,this.toBBox),o;r||(r=Math.ceil(Math.log(i)/Math.log(s)),s=Math.ceil(i/Math.pow(s,r-1))),o=v([]),o.leaf=!1,o.height=r;const a=Math.ceil(i/s),l=a*Math.ceil(Math.sqrt(s));x(t,e,n,l,this.compareMinX);for(let c=e;c<=n;c+=l){const e=Math.min(c+l-1,n);x(t,c,e,a,this.compareMinY);for(let n=c;n<=e;n+=a){const i=Math.min(n+a-1,e);o.children.push(this._build(t,n,i,r-1))}}return c(o,this.toBBox),o}_chooseSubtree(t,e,n,r){for(;r.push(e),!e.leaf&&r.length-1!==n;){let n,r=1/0,s=1/0;for(let a=0;a<e.children.length;a++){const l=e.children[a],c=g(l),u=(i=t,o=l,(Math.max(o.maxX,i.maxX)-Math.min(o.minX,i.minX))*(Math.max(o.maxY,i.maxY)-Math.min(o.minY,i.minY))-c);u<s?(s=u,r=c<r?c:r,n=l):u===s&&c<r&&(r=c,n=l)}e=n||e.children[0]}var i,o;return e}_insert(t,e,n){const r=n?t:this.toBBox(t),i=[],o=this._chooseSubtree(r,this.data,e,i);for(o.children.push(t),h(o,r);e>=0&&i[e].children.length>this._maxEntries;)this._split(i,e),e--;this._adjustParentBBoxes(r,i,e)}_split(t,e){const n=t[e],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);const o=this._chooseSplitIndex(n,i,r),s=v(n.children.splice(o,n.children.length-o));s.height=n.height,s.leaf=n.leaf,c(n,this.toBBox),c(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(n,s)}_splitRoot(t,e){this.data=v([t,e]),this.data.height=t.height+1,this.data.leaf=!1,c(this.data,this.toBBox)}_chooseSplitIndex(t,e,n){let r,i=1/0,o=1/0;for(let s=e;s<=n-e;s++){const e=u(t,0,s,this.toBBox),a=u(t,s,n,this.toBBox),l=m(e,a),c=g(e)+g(a);l<i?(i=l,r=s,o=c<o?c:o):l===i&&c<o&&(o=c,r=s)}return r||n-e}_chooseSplitAxis(t,e,n){const r=t.leaf?this.compareMinX:d,i=t.leaf?this.compareMinY:f;this._allDistMargin(t,e,n,r)<this._allDistMargin(t,e,n,i)&&t.children.sort(r)}_allDistMargin(t,e,n,r){t.children.sort(r);const i=this.toBBox,o=u(t,0,e,i),s=u(t,n-e,n,i);let a=p(o)+p(s);for(let l=e;l<n-e;l++){const e=t.children[l];h(o,t.leaf?i(e):e),a+=p(o)}for(let l=n-e-1;l>=e;l--){const e=t.children[l];h(s,t.leaf?i(e):e),a+=p(s)}return a}_adjustParentBBoxes(t,e,n){for(let r=n;r>=0;r--)h(e[r],t)}_condense(t){for(let e,n=t.length-1;n>=0;n--)0===t[n].children.length?n>0?(e=t[n-1].children,e.splice(e.indexOf(t[n]),1)):this.clear():c(t[n],this.toBBox)}}function l(t,e,n){if(!n)return e.indexOf(t);for(let r=0;r<e.length;r++)if(n(t,e[r]))return r;return-1}function c(t,e){u(t,0,t.children.length,e,t)}function u(t,e,n,r,i){i||(i=v(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(let o=e;o<n;o++){const e=t.children[o];h(i,t.leaf?r(e):e)}return i}function h(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function d(t,e){return t.minX-e.minX}function f(t,e){return t.minY-e.minY}function g(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function p(t){return t.maxX-t.minX+(t.maxY-t.minY)}function m(t,e){const n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY),i=Math.min(t.maxX,e.maxX),o=Math.min(t.maxY,e.maxY);return Math.max(0,i-n)*Math.max(0,o-r)}function y(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function _(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function v(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function x(t,e,n,i,o){const s=[e,n];for(;s.length;){if((n=s.pop())-(e=s.pop())<=i)continue;const a=e+Math.ceil((n-e)/i/2)*i;r(t,a,e,n,o),s.push(e,a,a,n)}}},51862:(t,e,n)=>{"use strict";let r;function i(){return r||(r=new Image,r.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),r}n.d(e,{n:()=>i})},2913:(t,e,n)=>{"use strict";n.d(e,{t2:()=>T});var r={};function i(t){let e=null;return()=>(null==e&&(e=t()),e)}n.r(r),n.d(r,{FILE:()=>a,HTML:()=>u,TEXT:()=>c,URL:()=>l});class o{enter(t){const e=this.entered.length;return this.entered=function(t,e){const n=new Set,r=t=>n.add(t);t.forEach(r),e.forEach(r);const i=[];return n.forEach((t=>i.push(t))),i}(this.entered.filter((e=>this.isNodeInDocument(e)&&(!e.contains||e.contains(t)))),[t]),0===e&&this.entered.length>0}leave(t){const e=this.entered.length;var n,r;return this.entered=(n=this.entered.filter(this.isNodeInDocument),r=t,n.filter((t=>t!==r))),e>0&&0===this.entered.length}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class s{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach((t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null)})}))}loadDataTransfer(t){if(t){const e={};Object.keys(this.config.exposeProperties).forEach((n=>{const r=this.config.exposeProperties[n];null!=r&&(e[n]={value:r(t,this.config.matchesTypes),configurable:!0,enumerable:!0})})),Object.defineProperties(this.item,e)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,e){return e===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const a="__NATIVE_FILE__",l="__NATIVE_URL__",c="__NATIVE_TEXT__",u="__NATIVE_HTML__";function h(t,e,n){const r=e.reduce(((e,n)=>e||t.getData(n)),"");return null!=r?r:n}const d={[a]:{exposeProperties:{files:t=>Array.prototype.slice.call(t.files),items:t=>t.items,dataTransfer:t=>t},matchesTypes:["Files"]},[u]:{exposeProperties:{html:(t,e)=>h(t,e,""),dataTransfer:t=>t},matchesTypes:["Html","text/html"]},[l]:{exposeProperties:{urls:(t,e)=>h(t,e,"").split("\n"),dataTransfer:t=>t},matchesTypes:["Url","text/uri-list"]},[c]:{exposeProperties:{text:(t,e)=>h(t,e,""),dataTransfer:t=>t},matchesTypes:["Text","text/plain"]}};function f(t){if(!t)return null;const e=Array.prototype.slice.call(t.types||[]);return Object.keys(d).filter((t=>{const n=d[t];return!!(null===n||void 0===n?void 0:n.matchesTypes)&&n.matchesTypes.some((t=>e.indexOf(t)>-1))}))[0]||null}const g=i((()=>/firefox/i.test(navigator.userAgent))),p=i((()=>Boolean(window.safari)));class m{interpolate(t){const{xs:e,ys:n,c1s:r,c2s:i,c3s:o}=this;let s=e.length-1;if(t===e[s])return n[s];let a,l=0,c=o.length-1;for(;l<=c;){a=Math.floor(.5*(l+c));const r=e[a];if(r<t)l=a+1;else{if(!(r>t))return n[a];c=a-1}}s=Math.max(0,c);const u=t-e[s],h=u*u;return n[s]+r[s]*u+i[s]*h+o[s]*u*h}constructor(t,e){const{length:n}=t,r=[];for(let f=0;f<n;f++)r.push(f);r.sort(((e,n)=>t[e]<t[n]?-1:1));const i=[],o=[],s=[];let a,l;for(let f=0;f<n-1;f++)a=t[f+1]-t[f],l=e[f+1]-e[f],o.push(a),i.push(l),s.push(l/a);const c=[s[0]];for(let f=0;f<o.length-1;f++){const t=s[f],e=s[f+1];if(t*e<=0)c.push(0);else{a=o[f];const n=o[f+1],r=a+n;c.push(3*r/((r+n)/t+(r+a)/e))}}c.push(s[s.length-1]);const u=[],h=[];let d;for(let f=0;f<c.length-1;f++){d=s[f];const t=c[f],e=1/o[f],n=t+c[f+1]-d-d;u.push((d-t-n)*e),h.push(n*e*e)}this.xs=t,this.ys=e,this.c1s=c,this.c2s=u,this.c3s=h}}const y=1;function _(t){const e=t.nodeType===y?t:t.parentElement;if(!e)return null;const{top:n,left:r}=e.getBoundingClientRect();return{x:r,y:n}}function v(t){return{x:t.clientX,y:t.clientY}}function x(t,e,n,r,i){const o=function(t){var e;return"IMG"===t.nodeName&&(g()||!(null===(e=document.documentElement)||void 0===e?void 0:e.contains(t)))}(e),s=_(o?t:e),a={x:n.x-s.x,y:n.y-s.y},{offsetWidth:l,offsetHeight:c}=t,{anchorX:u,anchorY:h}=r,{dragPreviewWidth:d,dragPreviewHeight:f}=function(t,e,n,r){let i=t?e.width:n,o=t?e.height:r;return p()&&t&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}(o,e,l,c),{offsetX:y,offsetY:v}=i,x=0===v||v;return{x:0===y||y?y:new m([0,.5,1],[a.x,a.x/l*d,a.x+d-l]).interpolate(u),y:x?v:(()=>{let t=new m([0,.5,1],[a.y,a.y/c*f,a.y+f-c]).interpolate(h);return p()&&o&&(t+=(window.devicePixelRatio-1)*f),t})()}}class w{get window(){return this.globalContext?this.globalContext:"undefined"!==typeof window?window:void 0}get document(){var t;return(null===(t=this.globalContext)||void 0===t?void 0:t.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return(null===(t=this.optionsArgs)||void 0===t?void 0:t.rootElement)||this.window}constructor(t,e){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=e}}function b(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function S(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){b(t,e,n[e])}))}return t}class E{profile(){var t,e;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(t=this.dragStartSourceIds)||void 0===t?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(e=this.dragOverTargetIds)||void 0===e?void 0:e.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const t=this.rootElement;if(void 0!==t){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}teardown(){const t=this.rootElement;var e;void 0!==t&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(e=this.window)||void 0===e||e.cancelAnimationFrame(this.asyncEndDragFrameId)))}connectDragPreview(t,e,n){return this.sourcePreviewNodeOptions.set(t,n),this.sourcePreviewNodes.set(t,e),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,e,n){this.sourceNodes.set(t,e),this.sourceNodeOptions.set(t,n);const r=e=>this.handleDragStart(e,t),i=t=>this.handleSelectStart(t);return e.setAttribute("draggable","true"),e.addEventListener("dragstart",r),e.addEventListener("selectstart",i),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),e.removeEventListener("dragstart",r),e.removeEventListener("selectstart",i),e.setAttribute("draggable","false")}}connectDropTarget(t,e){const n=e=>this.handleDragEnter(e,t),r=e=>this.handleDragOver(e,t),i=e=>this.handleDrop(e,t);return e.addEventListener("dragenter",n),e.addEventListener("dragover",r),e.addEventListener("drop",i),()=>{e.removeEventListener("dragenter",n),e.removeEventListener("dragover",r),e.removeEventListener("drop",i)}}addEventListeners(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const t=this.monitor.getSourceId(),e=this.sourceNodeOptions.get(t);return S({dropEffect:this.altKeyPressed?"copy":"move"},e||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const t=this.monitor.getSourceId();return S({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(t)||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(r).some((e=>r[e]===t))}beginDragNativeItem(t,e){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(t,e){const n=d[t];if(!n)throw new Error(`native type ${t} has no configuration`);const r=new s(n);return r.loadDataTransfer(e),r}(t,e),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;this.mouseMoveTimeoutTimer=setTimeout((()=>{var t;return null===(t=this.rootElement)||void 0===t?void 0:t.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){var t;if(this.currentDragSourceNode=null,this.rootElement)null===(t=this.window)||void 0===t||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0);return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(t,e){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(e))}handleDragEnter(t,e){this.dragEnterTargetIds.unshift(e)}handleDragOver(t,e){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(e)}handleDrop(t,e){this.dropTargetIds.unshift(e)}constructor(t,e,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=t=>{const e=this.sourceNodes.get(t);return e&&_(e)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=t=>Boolean(t&&this.document&&this.document.body&&this.document.body.contains(t)),this.endDragIfSourceWasRemovedFromDOM=()=>{const t=this.currentDragSourceNode;null==t||this.isNodeInDocument(t)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=t=>{null===this.hoverRafId&&"undefined"!==typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame((()=>{this.monitor.isDragging()&&this.actions.hover(t||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null})))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!==typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=t=>{if(t.defaultPrevented)return;const{dragStartSourceIds:e}=this;this.dragStartSourceIds=null;const n=v(t);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(e||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});const{dataTransfer:r}=t,i=f(r);if(this.monitor.isDragging()){if(r&&"function"===typeof r.setDragImage){const t=this.monitor.getSourceId(),e=this.sourceNodes.get(t),i=this.sourcePreviewNodes.get(t)||e;if(i){const{anchorX:t,anchorY:o,offsetX:s,offsetY:a}=this.getCurrentSourcePreviewNodeOptions(),l=x(e,i,n,{anchorX:t,anchorY:o},{offsetX:s,offsetY:a});r.setDragImage(i,l.x,l.y)}}try{null===r||void 0===r||r.setData("application/json",{})}catch(o){}this.setCurrentDragSourceNode(t.target);const{captureDraggingState:e}=this.getCurrentSourcePreviewNodeOptions();e?this.actions.publishDragSource():setTimeout((()=>this.actions.publishDragSource()),0)}else if(i)this.beginDragNativeItem(i);else{if(r&&!r.types&&(t.target&&!t.target.hasAttribute||!t.target.hasAttribute("draggable")))return;t.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=t=>{var e;(this.dragEnterTargetIds=[],this.isDraggingNativeItem())&&(null===(e=this.currentNativeSource)||void 0===e||e.loadDataTransfer(t.dataTransfer));if(!this.enterLeaveCounter.enter(t.target)||this.monitor.isDragging())return;const{dataTransfer:n}=t,r=f(n);r&&this.beginDragNativeItem(r,n)},this.handleTopDragEnter=t=>{const{dragEnterTargetIds:e}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=t.altKey,e.length>0&&this.actions.hover(e,{clientOffset:v(t)});e.some((t=>this.monitor.canDropOnTarget(t)))&&(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=t=>{var e;(this.dragOverTargetIds=[],this.isDraggingNativeItem())&&(null===(e=this.currentNativeSource)||void 0===e||e.loadDataTransfer(t.dataTransfer))},this.handleTopDragOver=t=>{const{dragOverTargetIds:e}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return t.preventDefault(),void(t.dataTransfer&&(t.dataTransfer.dropEffect="none"));this.altKeyPressed=t.altKey,this.lastClientOffset=v(t),this.scheduleHover(e);(e||[]).some((t=>this.monitor.canDropOnTarget(t)))?(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?t.preventDefault():(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=t=>{this.isDraggingNativeItem()&&t.preventDefault();this.enterLeaveCounter.leave(t.target)&&(this.isDraggingNativeItem()&&setTimeout((()=>this.endDragNativeItem()),0),this.cancelHover())},this.handleTopDropCapture=t=>{var e;(this.dropTargetIds=[],this.isDraggingNativeItem())?(t.preventDefault(),null===(e=this.currentNativeSource)||void 0===e||e.loadDataTransfer(t.dataTransfer)):f(t.dataTransfer)&&t.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=t=>{const{dropTargetIds:e}=this;this.dropTargetIds=[],this.actions.hover(e,{clientOffset:v(t)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=t=>{const e=t.target;"function"===typeof e.dragDrop&&("INPUT"===e.tagName||"SELECT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable||(t.preventDefault(),e.dragDrop()))},this.options=new w(e,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new o(this.isNodeInDocument)}}const T=function(t,e,n){return new E(t,e,n)}},95463:(t,e,n)=>{"use strict";n.d(e,{qi:()=>g});var r,i=n(73451);!function(t){t.mouse="mouse",t.touch="touch",t.keyboard="keyboard"}(r||(r={}));class o{get delay(){var t;return null!==(t=this.args.delay)&&void 0!==t?t:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var t;return null!==(t=this.args.ignoreContextMenu)&&void 0!==t&&t}get enableHoverOutsideTarget(){var t;return null!==(t=this.args.enableHoverOutsideTarget)&&void 0!==t&&t}get enableKeyboardEvents(){var t;return null!==(t=this.args.enableKeyboardEvents)&&void 0!==t&&t}get enableMouseEvents(){var t;return null!==(t=this.args.enableMouseEvents)&&void 0!==t&&t}get enableTouchEvents(){var t;return null===(t=this.args.enableTouchEvents)||void 0===t||t}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var t,e,n,r;return null!==(r=null!==(n=null===(t=this.args)||void 0===t?void 0:t.delayTouchStart)&&void 0!==n?n:null===(e=this.args)||void 0===e?void 0:e.delay)&&void 0!==r?r:0}get delayMouseStart(){var t,e,n,r;return null!==(r=null!==(n=null===(t=this.args)||void 0===t?void 0:t.delayMouseStart)&&void 0!==n?n:null===(e=this.args)||void 0===e?void 0:e.delay)&&void 0!==r?r:0}get window(){return this.context&&this.context.window?this.context.window:"undefined"!==typeof window?window:void 0}get document(){var t;return(null===(t=this.context)||void 0===t?void 0:t.document)?this.context.document:this.window?this.window.document:void 0}get rootElement(){var t;return(null===(t=this.args)||void 0===t?void 0:t.rootElement)||this.document}constructor(t,e){this.args=t,this.context=e}}const s=1,a=0;function l(t){return void 0===t.button||t.button===a}function c(t){return!!t.targetTouches}function u(t,e){return c(t)?function(t,e){return 1===t.targetTouches.length?u(t.targetTouches[0]):e&&1===t.touches.length&&t.touches[0].target===e.target?u(t.touches[0]):void 0}(t,e):{x:t.clientX,y:t.clientY}}const h=(()=>{let t=!1;try{addEventListener("test",(()=>{}),Object.defineProperty({},"passive",{get:()=>(t=!0,!0)}))}catch(e){}return t})(),d={[r.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[r.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[r.keyboard]:{keydown:"keydown"}};class f{profile(){var t;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}get document(){return this.options.document}setup(){const t=this.options.rootElement;t&&((0,i.V)(!f.isSetUp,"Cannot have two Touch backends at the same time."),f.isSetUp=!0,this.addEventListener(t,"start",this.getTopMoveStartHandler()),this.addEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(t,"move",this.handleTopMove),this.addEventListener(t,"move",this.handleTopMoveCapture,!0),this.addEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(t,"keydown",this.handleCancelOnEscape,!0))}teardown(){const t=this.options.rootElement;t&&(f.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(t,"start",this.handleTopMoveStart),this.removeEventListener(t,"move",this.handleTopMoveCapture,!0),this.removeEventListener(t,"move",this.handleTopMove),this.removeEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(t,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=h?{capture:r,passive:!1}:r;this.listenerTypes.forEach((function(r){const o=d[r][e];o&&t.addEventListener(o,n,i)}))}removeEventListener(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=h?{capture:r,passive:!1}:r;this.listenerTypes.forEach((function(r){const o=d[r][e];o&&t.removeEventListener(o,n,i)}))}connectDragSource(t,e){const n=this.handleMoveStart.bind(this,t);return this.sourceNodes.set(t,e),this.addEventListener(e,"start",n),()=>{this.sourceNodes.delete(t),this.removeEventListener(e,"start",n)}}connectDragPreview(t,e,n){return this.sourcePreviewNodeOptions.set(t,n),this.sourcePreviewNodes.set(t,e),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDropTarget(t,e){const n=this.options.rootElement;if(!this.document||!n)return()=>{};const r=r=>{if(!this.document||!n||!this.monitor.isDragging())return;let i;switch(r.type){case d.mouse.move:i={x:r.clientX,y:r.clientY};break;case d.touch.move:var o,s;i={x:(null===(o=r.touches[0])||void 0===o?void 0:o.clientX)||0,y:(null===(s=r.touches[0])||void 0===s?void 0:s.clientY)||0}}const a=null!=i?this.document.elementFromPoint(i.x,i.y):void 0,l=a&&e.contains(a);return a===e||l?this.handleMove(r,t):void 0};return this.addEventListener(this.document.body,"move",r),this.targetNodes.set(t,e),()=>{this.document&&(this.targetNodes.delete(t),this.removeEventListener(this.document.body,"move",r))}}getTopMoveStartHandler(){return this.options.delayTouchStart||this.options.delayMouseStart?this.handleTopMoveStartDelay:this.handleTopMoveStart}installSourceNodeRemovalObserver(t){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=t,this.draggedSourceNodeRemovalObserver=new MutationObserver((()=>{t&&!t.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())})),t&&t.parentElement&&this.draggedSourceNodeRemovalObserver.observe(t.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(t,e,n){this.getSourceClientOffset=t=>{const e=this.sourceNodes.get(t);return e&&function(t){const e=1===t.nodeType?t:t.parentElement;if(!e)return;const{top:n,left:r}=e.getBoundingClientRect();return{x:r,y:n}}(e)},this.handleTopMoveStartCapture=t=>{l(t)&&(this.moveStartSourceIds=[])},this.handleMoveStart=t=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(t)},this.handleTopMoveStart=t=>{if(!l(t))return;const e=u(t);e&&(c(t)&&(this.lastTargetTouchFallback=t.targetTouches[0]),this._mouseClientOffset=e),this.waitingForDelay=!1},this.handleTopMoveStartDelay=t=>{if(!l(t))return;const e=t.type===d.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,t),e),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(t,e)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(e)},this.handleTopMove=t=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;const{moveStartSourceIds:e,dragOverTargetIds:n}=this,r=this.options.enableHoverOutsideTarget,i=u(t,this.lastTargetTouchFallback);if(!i)return;if(this._isScrolling||!this.monitor.isDragging()&&function(t,e,n,r,i){if(!i)return!1;const o=180*Math.atan2(r-e,n-t)/Math.PI+180;for(let s=0;s<i.length;++s){const t=i[s];if(t&&(null==t.start||o>=t.start)&&(null==t.end||o<=t.end))return!0}return!1}(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,i.x,i.y,this.options.scrollAngleRanges))return void(this._isScrolling=!0);var o,s,a,l;if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&e&&(o=this._mouseClientOffset.x||0,s=this._mouseClientOffset.y||0,a=i.x,l=i.y,Math.sqrt(Math.pow(Math.abs(a-o),2)+Math.pow(Math.abs(l-s),2))>(this.options.touchSlop?this.options.touchSlop:0))&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(e,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;const c=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(c),this.actions.publishDragSource(),t.cancelable&&t.preventDefault();const h=(n||[]).map((t=>this.targetNodes.get(t))).filter((t=>!!t)),d=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(i.x,i.y,h):this.document.elementsFromPoint(i.x,i.y),f=[];for(const u in d){if(!d.hasOwnProperty(u))continue;let t=d[u];for(null!=t&&f.push(t);t;)t=t.parentElement,t&&-1===f.indexOf(t)&&f.push(t)}const g=f.filter((t=>h.indexOf(t)>-1)).map((t=>this._getDropTargetId(t))).filter((t=>!!t)).filter(((t,e,n)=>n.indexOf(t)===e));if(r)for(const u in this.targetNodes){const t=this.targetNodes.get(u);if(c&&t&&t.contains(c)&&-1===g.indexOf(u)){g.unshift(u);break}}g.reverse(),this.actions.hover(g,{clientOffset:i})},this._getDropTargetId=t=>{const e=this.targetNodes.keys();let n=e.next();for(;!1===n.done;){const r=n.value;if(t===this.targetNodes.get(r))return r;n=e.next()}},this.handleTopMoveEndCapture=t=>{this._isScrolling=!1,this.lastTargetTouchFallback=void 0,function(t){return void 0===t.buttons||0===(t.buttons&s)}(t)&&(this.monitor.isDragging()&&!this.monitor.didDrop()?(t.cancelable&&t.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()):this.moveStartSourceIds=void 0)},this.handleCancelOnEscape=t=>{"Escape"===t.key&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new o(n,e),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(r.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(r.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(r.keyboard)}}const g=function(t){return new f(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}},99645:(t,e,n)=>{"use strict";n.d(e,{M:()=>r});const r=(0,n(29183).createContext)({dragDropManager:void 0})},46799:(t,e,n)=>{"use strict";n.d(e,{Q:()=>yt});var r=n(99277);function i(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var o="function"===typeof Symbol&&Symbol.observable||"@@observable",s=function(){return Math.random().toString(36).substring(7).split("").join(".")},a={INIT:"@@redux/INIT"+s(),REPLACE:"@@redux/REPLACE"+s(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+s()}};function l(t){if("object"!==typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function c(t,e,n){var r;if("function"===typeof e&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(i(0));if("function"===typeof e&&"undefined"===typeof n&&(n=e,e=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(i(1));return n(c)(t,e)}if("function"!==typeof t)throw new Error(i(2));var s=t,u=e,h=[],d=h,f=!1;function g(){d===h&&(d=h.slice())}function p(){if(f)throw new Error(i(3));return u}function m(t){if("function"!==typeof t)throw new Error(i(4));if(f)throw new Error(i(5));var e=!0;return g(),d.push(t),function(){if(e){if(f)throw new Error(i(6));e=!1,g();var n=d.indexOf(t);d.splice(n,1),h=null}}}function y(t){if(!l(t))throw new Error(i(7));if("undefined"===typeof t.type)throw new Error(i(8));if(f)throw new Error(i(9));try{f=!0,u=s(u,t)}finally{f=!1}for(var e=h=d,n=0;n<e.length;n++){(0,e[n])()}return t}return y({type:a.INIT}),(r={dispatch:y,subscribe:m,getState:p,replaceReducer:function(t){if("function"!==typeof t)throw new Error(i(10));s=t,y({type:a.REPLACE})}})[o]=function(){var t,e=m;return(t={subscribe:function(t){if("object"!==typeof t||null===t)throw new Error(i(11));function n(){t.next&&t.next(p())}return n(),{unsubscribe:e(n)}}})[o]=function(){return this},t},r}var u=n(73451);function h(t){return"object"===typeof t}const d="dnd-core/INIT_COORDS",f="dnd-core/BEGIN_DRAG",g="dnd-core/PUBLISH_DRAG_SOURCE",p="dnd-core/HOVER",m="dnd-core/DROP",y="dnd-core/END_DRAG";function _(t,e){return{type:d,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const v={type:d,payload:{clientOffset:null,sourceClientOffset:null}};function x(t){return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0};const{publishSource:r=!0,clientOffset:i,getSourceClientOffset:o}=n,s=t.getMonitor(),a=t.getRegistry();t.dispatch(_(i)),function(t,e,n){(0,u.V)(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach((function(t){(0,u.V)(n.getSource(t),"Expected sourceIds to be registered.")}))}(e,s,a);const l=function(t,e){let n=null;for(let r=t.length-1;r>=0;r--)if(e.canDragSource(t[r])){n=t[r];break}return n}(e,s);if(null==l)return void t.dispatch(v);let c=null;if(i){if(!o)throw new Error("getSourceClientOffset must be defined");!function(t){(0,u.V)("function"===typeof t,"When clientOffset is provided, getSourceClientOffset must be a function.")}(o),c=o(l)}t.dispatch(_(i,c));const d=a.getSource(l).beginDrag(s,l);if(null==d)return;!function(t){(0,u.V)(h(t),"Item must be an object.")}(d),a.pinSource(l);const g=a.getSourceType(l);return{type:f,payload:{itemType:g,item:d,sourceId:l,clientOffset:i||null,sourceClientOffset:c||null,isSourcePublic:!!r}}}}function w(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){w(t,e,n[e])}))}return t}function S(t){return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=t.getMonitor(),r=t.getRegistry();!function(t){(0,u.V)(t.isDragging(),"Cannot call drop while not dragging."),(0,u.V)(!t.didDrop(),"Cannot call drop twice during one drag operation.")}(n);const i=function(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}(n);i.forEach(((i,o)=>{const s=function(t,e,n,r){const i=n.getTarget(t);let o=i?i.drop(r,t):void 0;(function(t){(0,u.V)("undefined"===typeof t||h(t),"Drop result must either be an object or undefined.")})(o),"undefined"===typeof o&&(o=0===e?{}:r.getDropResult());return o}(i,o,r,n),a={type:m,payload:{dropResult:b({},e,s)}};t.dispatch(a)}))}}function E(t){return function(){const e=t.getMonitor(),n=t.getRegistry();!function(t){(0,u.V)(t.isDragging(),"Cannot call endDrag while not dragging.")}(e);const r=e.getSourceId();if(null!=r){n.getSource(r,!0).endDrag(e,r),n.unpinSource()}return{type:y}}}function T(t,e){return null===e?null===t:Array.isArray(t)?t.some((t=>t===e)):t===e}function C(t){return function(e){let{clientOffset:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t){(0,u.V)(Array.isArray(t),"Expected targetIds to be an array.")}(e);const r=e.slice(0),i=t.getMonitor(),o=t.getRegistry();return function(t,e,n){for(let r=t.length-1;r>=0;r--){const i=t[r];T(e.getTargetType(i),n)||t.splice(r,1)}}(r,o,i.getItemType()),function(t,e,n){(0,u.V)(e.isDragging(),"Cannot call hover while not dragging."),(0,u.V)(!e.didDrop(),"Cannot call hover after drop.");for(let r=0;r<t.length;r++){const e=t[r];(0,u.V)(t.lastIndexOf(e)===r,"Expected targetIds to be unique in the passed array.");const i=n.getTarget(e);(0,u.V)(i,"Expected targetIds to be registered.")}}(r,i,o),function(t,e,n){t.forEach((function(t){n.getTarget(t).hover(e,t)}))}(r,i,o),{type:p,payload:{targetIds:r,clientOffset:n||null}}}}function I(t){return function(){if(t.getMonitor().isDragging())return{type:g}}}class k{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:e}=this.store;const n=function(t){return{beginDrag:x(t),publishDragSource:I(t),hover:C(t),drop:S(t),endDrag:E(t)}}(this);return Object.keys(n).reduce(((r,i)=>{const o=n[i];var s;return r[i]=(s=o,function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];const o=s.apply(t,r);"undefined"!==typeof o&&e(o)}),r}),{})}dispatch(t){this.store.dispatch(t)}constructor(t,e){this.isSetUp=!1,this.handleRefCountChange=()=>{const t=this.store.getState().refCount>0;this.backend&&(t&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!t&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=e,t.subscribe(this.handleRefCountChange)}}function O(t,e){return{x:t.x-e.x,y:t.y-e.y}}const A=[],R=[];A.__IS_NONE__=!0,R.__IS_ALL__=!0;class D{subscribeToStateChange(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{handlerIds:n}=e;(0,u.V)("function"===typeof t,"listener must be a function."),(0,u.V)("undefined"===typeof n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let r=this.store.getState().stateId;return this.store.subscribe((()=>{const e=this.store.getState(),i=e.stateId;try{const o=i===r||i===r+1&&!function(t,e){return t!==A&&(t===R||"undefined"===typeof e||(n=t,e.filter((t=>n.indexOf(t)>-1))).length>0);var n}(e.dirtyHandlerIds,n);o||t()}finally{r=i}}))}subscribeToOffsetChange(t){(0,u.V)("function"===typeof t,"listener must be a function.");let e=this.store.getState().dragOffset;return this.store.subscribe((()=>{const n=this.store.getState().dragOffset;n!==e&&(e=n,t())}))}canDragSource(t){if(!t)return!1;const e=this.registry.getSource(t);return(0,u.V)(e,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()&&e.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const e=this.registry.getTarget(t);if((0,u.V)(e,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;return T(this.registry.getTargetType(t),this.getItemType())&&e.canDrop(this,t)}isDragging(){return Boolean(this.getItemType())}isDraggingSource(t){if(!t)return!1;const e=this.registry.getSource(t,!0);if((0,u.V)(e,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;return this.registry.getSourceType(t)===this.getItemType()&&e.isDragging(this,t)}isOverTarget(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1};if(!t)return!1;const{shallow:n}=e;if(!this.isDragging())return!1;const r=this.registry.getTargetType(t),i=this.getItemType();if(i&&!T(r,i))return!1;const o=this.getTargetIds();if(!o.length)return!1;const s=o.indexOf(t);return n?s===o.length-1:s>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(t){const{clientOffset:e,initialClientOffset:n,initialSourceClientOffset:r}=t;return e&&n&&r?O((o=r,{x:(i=e).x+o.x,y:i.y+o.y}),n):null;var i,o}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(t){const{clientOffset:e,initialClientOffset:n}=t;return e&&n?O(e,n):null}(this.store.getState().dragOffset)}constructor(t,e){this.store=t,this.registry=e}}const M="undefined"!==typeof global?global:self,P=M.MutationObserver||M.WebKitMutationObserver;function L(t){return function(){const e=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(e),clearInterval(n),t()}}}const N="function"===typeof P?function(t){let e=1;const n=new P(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}:L;class F{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,e){this.onError=t,this.release=e,this.task=null}}const j=new class{enqueueTask(t){const{queue:e,requestFlush:n}=this;e.length||(n(),this.flushing=!0),e[e.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const e=this.index;if(this.index++,t[e].call(),this.index>this.capacity){for(let e=0,n=t.length-this.index;e<n;e++)t[e]=t[e+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=N(this.flush),this.requestErrorThrow=L((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},z=new class{create(t){const e=this.freeTasks,n=e.length?e.pop():new F(this.onError,(t=>e[e.length]=t));return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}(j.registerPendingError);const G="dnd-core/ADD_SOURCE",q="dnd-core/ADD_TARGET",H="dnd-core/REMOVE_SOURCE",W="dnd-core/REMOVE_TARGET";function B(t,e){e&&Array.isArray(t)?t.forEach((t=>B(t,!1))):(0,u.V)("string"===typeof t||"symbol"===typeof t,e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var Y;!function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"}(Y||(Y={}));let U=0;function K(t){const e=(U++).toString();switch(t){case Y.SOURCE:return`S${e}`;case Y.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function $(t){switch(t[0]){case"S":return Y.SOURCE;case"T":return Y.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function V(t,e){const n=t.entries();let r=!1;do{const{done:t,value:[,i]}=n.next();if(i===e)return!0;r=!!t}while(!r);return!1}class X{addSource(t,e){B(t),function(t){(0,u.V)("function"===typeof t.canDrag,"Expected canDrag to be a function."),(0,u.V)("function"===typeof t.beginDrag,"Expected beginDrag to be a function."),(0,u.V)("function"===typeof t.endDrag,"Expected endDrag to be a function.")}(e);const n=this.addHandler(Y.SOURCE,t,e);return this.store.dispatch(function(t){return{type:G,payload:{sourceId:t}}}(n)),n}addTarget(t,e){B(t,!0),function(t){(0,u.V)("function"===typeof t.canDrop,"Expected canDrop to be a function."),(0,u.V)("function"===typeof t.hover,"Expected hover to be a function."),(0,u.V)("function"===typeof t.drop,"Expected beginDrag to be a function.")}(e);const n=this.addHandler(Y.TARGET,t,e);return this.store.dispatch(function(t){return{type:q,payload:{targetId:t}}}(n)),n}containsHandler(t){return V(this.dragSources,t)||V(this.dropTargets,t)}getSource(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,u.V)(this.isSourceId(t),"Expected a valid source ID.");return e&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return(0,u.V)(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return(0,u.V)(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return(0,u.V)(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return $(t)===Y.SOURCE}isTargetId(t){return $(t)===Y.TARGET}removeSource(t){var e;(0,u.V)(this.getSource(t),"Expected an existing source."),this.store.dispatch(function(t){return{type:H,payload:{sourceId:t}}}(t)),e=()=>{this.dragSources.delete(t),this.types.delete(t)},j.enqueueTask(z.create(e))}removeTarget(t){(0,u.V)(this.getTarget(t),"Expected an existing target."),this.store.dispatch(function(t){return{type:W,payload:{targetId:t}}}(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const e=this.getSource(t);(0,u.V)(e,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=e}unpinSource(){(0,u.V)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,e,n){const r=K(t);return this.types.set(r,e),t===Y.SOURCE?this.dragSources.set(r,n):t===Y.TARGET&&this.dropTargets.set(r,n),r}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const Z=(t,e)=>t===e;function J(){let t=arguments.length>1?arguments[1]:void 0;switch(t.type){case p:break;case G:case q:case W:case H:return A;default:return R}const{targetIds:e=[],prevTargetIds:n=[]}=t.payload,r=function(t,e){const n=new Map,r=t=>{n.set(t,n.has(t)?n.get(t)+1:1)};t.forEach(r),e.forEach(r);const i=[];return n.forEach(((t,e)=>{1===t&&i.push(e)})),i}(e,n),i=r.length>0||!function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Z;if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(!n(t[r],e[r]))return!1;return!0}(e,n);if(!i)return A;const o=n[n.length-1],s=e[e.length-1];return o!==s&&(o&&r.push(o),s&&r.push(s)),r}function Q(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const tt={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function et(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tt,e=arguments.length>1?arguments[1]:void 0;const{payload:n}=e;switch(e.type){case d:case f:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case p:return r=t.clientOffset,i=n.clientOffset,!r&&!i||r&&i&&r.x===i.x&&r.y===i.y?t:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){Q(t,e,n[e])}))}return t}({},t,{clientOffset:n.clientOffset});case y:case m:return tt;default:return t}var r,i}function nt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){nt(t,e,n[e])}))}return t}const it={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function ot(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:it,e=arguments.length>1?arguments[1]:void 0;const{payload:n}=e;switch(e.type){case f:return rt({},t,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case g:return rt({},t,{isSourcePublic:!0});case p:return rt({},t,{targetIds:n.targetIds});case W:return-1===t.targetIds.indexOf(n.targetId)?t:rt({},t,{targetIds:(r=t.targetIds,i=n.targetId,r.filter((t=>t!==i)))});case m:return rt({},t,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case y:return rt({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}var r,i}function st(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch((arguments.length>1?arguments[1]:void 0).type){case G:case q:return t+1;case H:case W:return t-1;default:return t}}function at(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}function lt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ct(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){lt(t,e,n[e])}))}return t}function ut(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:J(t.dirtyHandlerIds,{type:e.type,payload:ct({},e.payload,{prevTargetIds:(n=t,r="dragOperation.targetIds",i=[],r.split(".").reduce(((t,e)=>t&&t[e]?t[e]:i||null),n))})}),dragOffset:et(t.dragOffset,e),refCount:st(t.refCount,e),dragOperation:ot(t.dragOperation,e),stateId:at(t.stateId)};var n,r,i}function ht(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=function(t){const e="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return c(ut,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}(arguments.length>3&&void 0!==arguments[3]&&arguments[3]),i=new D(r,new X(r)),o=new k(r,i),s=t(o,e,n);return o.receiveBackend(s),o}var dt=n(29183),ft=n(99645);function gt(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}let pt=0;const mt=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var yt=(0,dt.memo)((function(t){var{children:e}=t,n=gt(t,["children"]);const[i,o]=function(t){if("manager"in t){return[{dragDropManager:t.manager},!1]}const e=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_t(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;const i=e;i[mt]||(i[mt]={dragDropManager:ht(t,e,n,r)});return i[mt]}(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}(n);return(0,dt.useEffect)((()=>{if(o){const t=_t();return++pt,()=>{0===--pt&&(t[mt]=null)}}}),[]),(0,r.jsx)(ft.M.Provider,{value:i,children:e})}));function _t(){return"undefined"!==typeof global?global:window}},44550:(t,e,n)=>{"use strict";n.d(e,{j:()=>o});var r=n(86497),i=n(49598);function o(t,e,n){return function(t,e,n){const[o,s]=(0,r.F)(t,e,n);return(0,i.E)((function(){const e=t.getHandlerId();if(null!=e)return t.subscribeToStateChange(s,{handlerIds:[e]})}),[t,s]),o}(e,t||(()=>({})),(()=>n.reconnect()))}},86497:(t,e,n)=>{"use strict";n.d(e,{F:()=>s});var r=n(56200),i=n(29183),o=n(49598);function s(t,e,n){const[s,a]=(0,i.useState)((()=>e(t))),l=(0,i.useCallback)((()=>{const i=e(t);r(s,i)||(a(i),n&&n())}),[s,t,n]);return(0,o.E)(l),[s,l]}},37886:(t,e,n)=>{"use strict";n.d(e,{i:()=>w});var r=n(73451),i=n(44550),o=n(76556),s=n(29183);function a(t){return(0,s.useMemo)((()=>t.hooks.dragSource()),[t])}function l(t){return(0,s.useMemo)((()=>t.hooks.dragPreview()),[t])}var c=n(57775),u=n(12464),h=n(28032);class d{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,e=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return e&&this.disconnectDragSource(),this.handlerId?t?(e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),e):(this.lastConnectedDragSource=t,e):e}reconnectDragPreview(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=this.dragPreview,n=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();n&&this.disconnectDragPreview(),this.handlerId&&(e?n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions)):this.lastConnectedDragPreview=e)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!(0,c.b)(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!(0,c.b)(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=(0,h.i)({dragSource:(t,e)=>{this.clearDragSource(),this.dragSourceOptions=e||null,(0,u.i)(t)?this.dragSourceRef=t:this.dragSourceNode=t,this.reconnectDragSource()},dragPreview:(t,e)=>{this.clearDragPreview(),this.dragPreviewOptions=e||null,(0,u.i)(t)?this.dragPreviewRef=t:this.dragPreviewNode=t,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}var f=n(41092),g=n(49598);let p=!1,m=!1;class y{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){(0,r.V)(!p,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return p=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{p=!1}}isDragging(){if(!this.sourceId)return!1;(0,r.V)(!m,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return m=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{m=!1}}subscribeToStateChange(t,e){return this.internalMonitor.subscribeToStateChange(t,e)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,e){return this.internalMonitor.isOverTarget(t,e)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}var _=n(42220);class v{beginDrag(){const t=this.spec,e=this.monitor;let n=null;return n="object"===typeof t.item?t.item:"function"===typeof t.item?t.item(e):{},null!==n&&void 0!==n?n:null}canDrag(){const t=this.spec,e=this.monitor;return"boolean"===typeof t.canDrag?t.canDrag:"function"!==typeof t.canDrag||t.canDrag(e)}isDragging(t,e){const n=this.spec,r=this.monitor,{isDragging:i}=n;return i?i(r):e===t.getSourceId()}endDrag(){const t=this.spec,e=this.monitor,n=this.connector,{end:r}=t;r&&r(e.getItem(),e),n.reconnect()}constructor(t,e,n){this.spec=t,this.monitor=e,this.connector=n}}function x(t,e,n){const i=(0,f.u)(),o=function(t,e,n){const r=(0,s.useMemo)((()=>new v(t,e,n)),[e,n]);return(0,s.useEffect)((()=>{r.spec=t}),[t]),r}(t,e,n),a=function(t){return(0,s.useMemo)((()=>{const e=t.type;return(0,r.V)(null!=e,"spec.type must be defined"),e}),[t])}(t);(0,g.E)((function(){if(null!=a){const[t,r]=(0,_.V)(a,o,i);return e.receiveHandlerId(t),n.receiveHandlerId(t),r}}),[i,e,n,o,a])}function w(t,e){const n=(0,o.I)(t,e);(0,r.V)(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const c=function(){const t=(0,f.u)();return(0,s.useMemo)((()=>new y(t)),[t])}(),u=function(t,e){const n=(0,f.u)(),r=(0,s.useMemo)((()=>new d(n.getBackend())),[n]);return(0,g.E)((()=>(r.dragSourceOptions=t||null,r.reconnect(),()=>r.disconnectDragSource())),[r,t]),(0,g.E)((()=>(r.dragPreviewOptions=e||null,r.reconnect(),()=>r.disconnectDragPreview())),[r,e]),r}(n.options,n.previewOptions);return x(n,c,u),[(0,i.j)(n.collect,c,u),a(u),l(u)]}},41092:(t,e,n)=>{"use strict";n.d(e,{u:()=>s});var r=n(73451),i=n(29183),o=n(99645);function s(){const{dragDropManager:t}=(0,i.useContext)(o.M);return(0,r.V)(null!=t,"Expected drag drop context"),t}},79645:(t,e,n)=>{"use strict";n.d(e,{V:()=>s});var r=n(29183),i=n(86497),o=n(41092);function s(t){const e=(0,o.u)().getMonitor(),[n,s]=(0,i.F)(e,t);return(0,r.useEffect)((()=>e.subscribeToOffsetChange(s))),(0,r.useEffect)((()=>e.subscribeToStateChange(s))),n}},21388:(t,e,n)=>{"use strict";n.d(e,{H:()=>v});var r=n(44550),i=n(76556),o=n(29183);function s(t){return(0,o.useMemo)((()=>t.hooks.dropTarget()),[t])}var a=n(57775),l=n(12464),c=n(28032);class u{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const e=this.dropTarget;this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=e,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,e,this.dropTargetOptions)):this.lastConnectedDropTarget=e)}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!(0,a.b)(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=(0,c.i)({dropTarget:(t,e)=>{this.clearDropTarget(),this.dropTargetOptions=e,(0,l.i)(t)?this.dropTargetRef=t:this.dropTargetNode=t,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}var h=n(41092),d=n(49598);var f=n(73451);let g=!1;class p{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,e){return this.internalMonitor.subscribeToStateChange(t,e)}canDrop(){if(!this.targetId)return!1;(0,f.V)(!g,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return g=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{g=!1}}isOver(t){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}var m=n(42220);class y{canDrop(){const t=this.spec,e=this.monitor;return!t.canDrop||t.canDrop(e.getItem(),e)}hover(){const t=this.spec,e=this.monitor;t.hover&&t.hover(e.getItem(),e)}drop(){const t=this.spec,e=this.monitor;if(t.drop)return t.drop(e.getItem(),e)}constructor(t,e){this.spec=t,this.monitor=e}}function _(t,e,n){const r=(0,h.u)(),i=function(t,e){const n=(0,o.useMemo)((()=>new y(t,e)),[e]);return(0,o.useEffect)((()=>{n.spec=t}),[t]),n}(t,e),s=function(t){const{accept:e}=t;return(0,o.useMemo)((()=>((0,f.V)(null!=t.accept,"accept must be defined"),Array.isArray(e)?e:[e])),[e])}(t);(0,d.E)((function(){const[t,o]=(0,m.l)(s,i,r);return e.receiveHandlerId(t),n.receiveHandlerId(t),o}),[r,e,i,n,s.map((t=>t.toString())).join("|")])}function v(t,e){const n=(0,i.I)(t,e),a=function(){const t=(0,h.u)();return(0,o.useMemo)((()=>new p(t)),[t])}(),l=function(t){const e=(0,h.u)(),n=(0,o.useMemo)((()=>new u(e.getBackend())),[e]);return(0,d.E)((()=>(n.dropTargetOptions=t||null,n.reconnect(),()=>n.disconnectDropTarget())),[t]),n}(n.options);return _(n,a,l),[(0,r.j)(n.collect,a,l),s(l)]}},49598:(t,e,n)=>{"use strict";n.d(e,{E:()=>i});var r=n(29183);const i="undefined"!==typeof window?r.useLayoutEffect:r.useEffect},76556:(t,e,n)=>{"use strict";n.d(e,{I:()=>i});var r=n(29183);function i(t,e){const n=[...e||[]];return null==e&&"function"!==typeof t&&n.push(t),(0,r.useMemo)((()=>"function"===typeof t?t():t),n)}},12464:(t,e,n)=>{"use strict";function r(t){return null!==t&&"object"===typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}n.d(e,{i:()=>r})},42220:(t,e,n)=>{"use strict";function r(t,e,n){const r=n.getRegistry(),i=r.addTarget(t,e);return[i,()=>r.removeTarget(i)]}function i(t,e,n){const r=n.getRegistry(),i=r.addSource(t,e);return[i,()=>r.removeSource(i)]}n.d(e,{V:()=>i,l:()=>r})},28032:(t,e,n)=>{"use strict";n.d(e,{i:()=>s});var r=n(73451),i=n(29183);function o(t){return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,i.isValidElement)(e)){const r=e;return t(r,n),r}const o=e;!function(t){if("string"===typeof t.type)return;const e=t.type.displayName||t.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${e} into a <div>, or turn it into a drag source or a drop target itself.`)}(o);return function(t,e){const n=t.ref;return(0,r.V)("string"!==typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?(0,i.cloneElement)(t,{ref:t=>{a(n,t),a(e,t)}}):(0,i.cloneElement)(t,{ref:e})}(o,n?e=>t(e,n):t)}}function s(t){const e={};return Object.keys(t).forEach((n=>{const r=t[n];if(n.endsWith("Ref"))e[n]=t[n];else{const t=o(r);e[n]=()=>t}})),e}function a(t,e){"function"===typeof t?t(e):t.current=e}},79409:(t,e,n)=>{"use strict";n.d(e,{k5:()=>f});var r=n(29183),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=r.createContext&&r.createContext(i),s=["attr","size","title"];function a(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},l.apply(this,arguments)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t){return t&&t.map(((t,e)=>r.createElement(t.tag,u({key:e},t.attr),d(t.child))))}function f(t){return e=>r.createElement(g,l({attr:u({},t.attr)},e),d(t.child))}function g(t){var e=e=>{var n,{attr:i,size:o,title:c}=t,h=a(t,s),d=o||e.size||"1em";return e.className&&(n=e.className),t.className&&(n=(n?n+" ":"")+t.className),r.createElement("svg",l({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},e.attr,i,h,{className:n,style:u(u({color:t.color||e.color},e.style),t.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),c&&r.createElement("title",null,c),t.children)};return void 0!==o?r.createElement(o.Consumer,null,(t=>e(t))):e(i)}},91115:(t,e,n)=>{"use strict";n.d(e,{W:()=>l});var r=n(21535),i=n(57542),o=n(29183);function s(){return s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s.apply(this,arguments)}function a(t,e){let{bounds:n,boundsOptions:a,center:l,children:c,className:u,id:h,placeholder:d,style:f,whenReady:g,zoom:p,...m}=t;const[y]=(0,o.useState)({className:u,id:h,style:f}),[_,v]=(0,o.useState)(null);(0,o.useImperativeHandle)(e,(()=>_?.map??null),[_]);const x=(0,o.useCallback)((t=>{if(null!==t&&null===_){const e=new i.Map(t,m);null!=l&&null!=p?e.setView(l,p):null!=n&&e.fitBounds(n,a),null!=g&&e.whenReady(g),v((0,r.fB)(e))}}),[]);(0,o.useEffect)((()=>()=>{_?.map.remove()}),[_]);const w=_?o.createElement(r.hL,{value:_},c):d??null;return o.createElement("div",s({},y,{ref:x}),w)}const l=(0,o.forwardRef)(a)},97168:(t,e,n)=>{"use strict";n.d(e,{e:()=>l});var r=n(29183);n(32619);var i=n(21535);function o(t,e){const n=t.pane??e.pane;return n?{...t,pane:n}:t}function s(t){return function(e){const n=(0,i.U$)(),s=t(o(e,n),n);return function(t,e){const n=(0,r.useRef)(e);(0,r.useEffect)((function(){e!==n.current&&null!=t.attributionControl&&(null!=n.current&&t.attributionControl.removeAttribution(n.current),null!=e&&t.attributionControl.addAttribution(e)),n.current=e}),[t,e])}(n.map,e.attribution),function(t,e){const n=(0,r.useRef)();(0,r.useEffect)((function(){return null!=e&&t.instance.on(e),n.current=e,function(){null!=n.current&&t.instance.off(n.current),n.current=null}}),[t,e])}(s.current,e.eventHandlers),function(t,e){(0,r.useEffect)((function(){return(e.layerContainer??e.map).addLayer(t.instance),function(){e.layerContainer?.removeLayer(t.instance),e.map.removeLayer(t.instance)}}),[e,t])}(s.current,n),s}}var a=n(57542);const l=function(t){function e(e,n){const{instance:i}=t(e).current;return(0,r.useImperativeHandle)(n,(()=>i)),null}return(0,r.forwardRef)(e)}(s(function(t,e){return null==e?function(e,n){const i=(0,r.useRef)();return i.current||(i.current=t(e,n)),i}:function(n,i){const o=(0,r.useRef)();o.current||(o.current=t(n,i));const s=(0,r.useRef)(n),{instance:a}=o.current;return(0,r.useEffect)((function(){s.current!==n&&(e(a,n,s.current),s.current=n)}),[a,n,i]),o}}((function(t,e){let{url:n,...r}=t;return function(t,e,n){return Object.freeze({instance:t,context:e,container:n})}(new a.TileLayer(n,o(r,e)),e)}),(function(t,e,n){!function(t,e,n){const{opacity:r,zIndex:i}=e;null!=r&&r!==n.opacity&&t.setOpacity(r),null!=i&&i!==n.zIndex&&t.setZIndex(i)}(t,e,n);const{url:r}=e;null!=r&&r!==n.url&&t.setUrl(r)}))))},40664:(t,e,n)=>{"use strict";n.d(e,{ko:()=>i});var r=n(21535);n(29183);function i(){return(0,r.U$)().map}},62891:(t,e,n)=>{"use strict";n.d(e,{o:()=>Ar});var r={};n.r(r),n.d(r,{boolean:()=>m,booleanish:()=>y,commaOrSpaceSeparated:()=>b,commaSeparated:()=>w,number:()=>v,overloadedBoolean:()=>_,spaceSeparated:()=>x});var i={};n.r(i),n.d(i,{attentionMarkers:()=>nn,contentInitial:()=>Xe,disable:()=>rn,document:()=>Ve,flow:()=>Je,flowInitial:()=>Ze,insideSpan:()=>en,string:()=>Qe,text:()=>tn});const o=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,s=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,a={};function l(t,e){return((e||a).jsx?s:o).test(t)}const c=/[ \t\n\f\r]/g;function u(t){return""===t.replace(c,"")}class h{constructor(t,e,n){this.property=t,this.normal=e,n&&(this.space=n)}}function d(t,e){const n={},r={};let i=-1;for(;++i<t.length;)Object.assign(n,t[i].property),Object.assign(r,t[i].normal);return new h(n,r,e)}function f(t){return t.toLowerCase()}h.prototype.property={},h.prototype.normal={},h.prototype.space=null;class g{constructor(t,e){this.property=t,this.attribute=e}}g.prototype.space=null,g.prototype.boolean=!1,g.prototype.booleanish=!1,g.prototype.overloadedBoolean=!1,g.prototype.number=!1,g.prototype.commaSeparated=!1,g.prototype.spaceSeparated=!1,g.prototype.commaOrSpaceSeparated=!1,g.prototype.mustUseProperty=!1,g.prototype.defined=!1;let p=0;const m=S(),y=S(),_=S(),v=S(),x=S(),w=S(),b=S();function S(){return 2**++p}const E=Object.keys(r);class T extends g{constructor(t,e,n,i){let o=-1;if(super(t,e),C(this,"space",i),"number"===typeof n)for(;++o<E.length;){const t=E[o];C(this,E[o],(n&r[t])===r[t])}}}function C(t,e,n){n&&(t[e]=n)}T.prototype.defined=!0;const I={}.hasOwnProperty;function k(t){const e={},n={};let r;for(r in t.properties)if(I.call(t.properties,r)){const i=t.properties[r],o=new T(r,t.transform(t.attributes||{},r),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),e[r]=o,n[f(r)]=r,n[f(o.attribute)]=r}return new h(e,n,t.space)}const O=k({space:"xlink",transform:(t,e)=>"xlink:"+e.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),A=k({space:"xml",transform:(t,e)=>"xml:"+e.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function R(t,e){return e in t?t[e]:e}function D(t,e){return R(t,e.toLowerCase())}const M=k({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:D,properties:{xmlns:null,xmlnsXLink:null}}),P=k({transform:(t,e)=>"role"===e?e:"aria-"+e.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:y,ariaAutoComplete:null,ariaBusy:y,ariaChecked:y,ariaColCount:v,ariaColIndex:v,ariaColSpan:v,ariaControls:x,ariaCurrent:null,ariaDescribedBy:x,ariaDetails:null,ariaDisabled:y,ariaDropEffect:x,ariaErrorMessage:null,ariaExpanded:y,ariaFlowTo:x,ariaGrabbed:y,ariaHasPopup:null,ariaHidden:y,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:x,ariaLevel:v,ariaLive:null,ariaModal:y,ariaMultiLine:y,ariaMultiSelectable:y,ariaOrientation:null,ariaOwns:x,ariaPlaceholder:null,ariaPosInSet:v,ariaPressed:y,ariaReadOnly:y,ariaRelevant:null,ariaRequired:y,ariaRoleDescription:x,ariaRowCount:v,ariaRowIndex:v,ariaRowSpan:v,ariaSelected:y,ariaSetSize:v,ariaSort:null,ariaValueMax:v,ariaValueMin:v,ariaValueNow:v,ariaValueText:null,role:null}}),L=k({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:D,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:w,acceptCharset:x,accessKey:x,action:null,allow:null,allowFullScreen:m,allowPaymentRequest:m,allowUserMedia:m,alt:null,as:null,async:m,autoCapitalize:null,autoComplete:x,autoFocus:m,autoPlay:m,blocking:x,capture:null,charSet:null,checked:m,cite:null,className:x,cols:v,colSpan:null,content:null,contentEditable:y,controls:m,controlsList:x,coords:v|w,crossOrigin:null,data:null,dateTime:null,decoding:null,default:m,defer:m,dir:null,dirName:null,disabled:m,download:_,draggable:y,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:m,formTarget:null,headers:x,height:v,hidden:m,high:v,href:null,hrefLang:null,htmlFor:x,httpEquiv:x,id:null,imageSizes:null,imageSrcSet:null,inert:m,inputMode:null,integrity:null,is:null,isMap:m,itemId:null,itemProp:x,itemRef:x,itemScope:m,itemType:x,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:m,low:v,manifest:null,max:null,maxLength:v,media:null,method:null,min:null,minLength:v,multiple:m,muted:m,name:null,nonce:null,noModule:m,noValidate:m,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:m,optimum:v,pattern:null,ping:x,placeholder:null,playsInline:m,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:m,referrerPolicy:null,rel:x,required:m,reversed:m,rows:v,rowSpan:v,sandbox:x,scope:null,scoped:m,seamless:m,selected:m,shadowRootClonable:m,shadowRootDelegatesFocus:m,shadowRootMode:null,shape:null,size:v,sizes:null,slot:null,span:v,spellCheck:y,src:null,srcDoc:null,srcLang:null,srcSet:null,start:v,step:null,style:null,tabIndex:v,target:null,title:null,translate:null,type:null,typeMustMatch:m,useMap:null,value:y,width:v,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:x,axis:null,background:null,bgColor:null,border:v,borderColor:null,bottomMargin:v,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:m,declare:m,event:null,face:null,frame:null,frameBorder:null,hSpace:v,leftMargin:v,link:null,longDesc:null,lowSrc:null,marginHeight:v,marginWidth:v,noResize:m,noHref:m,noShade:m,noWrap:m,object:null,profile:null,prompt:null,rev:null,rightMargin:v,rules:null,scheme:null,scrolling:y,standby:null,summary:null,text:null,topMargin:v,valueType:null,version:null,vAlign:null,vLink:null,vSpace:v,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:m,disableRemotePlayback:m,prefix:null,property:null,results:v,security:null,unselectable:null}}),N=k({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:R,properties:{about:b,accentHeight:v,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:v,amplitude:v,arabicForm:null,ascent:v,attributeName:null,attributeType:null,azimuth:v,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:v,by:null,calcMode:null,capHeight:v,className:x,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:v,diffuseConstant:v,direction:null,display:null,dur:null,divisor:v,dominantBaseline:null,download:m,dx:null,dy:null,edgeMode:null,editable:null,elevation:v,enableBackground:null,end:null,event:null,exponent:v,externalResourcesRequired:null,fill:null,fillOpacity:v,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:w,g2:w,glyphName:w,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:v,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:v,horizOriginX:v,horizOriginY:v,id:null,ideographic:v,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:v,k:v,k1:v,k2:v,k3:v,k4:v,kernelMatrix:b,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:v,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:v,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:v,overlineThickness:v,paintOrder:null,panose1:null,path:null,pathLength:v,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:x,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:v,pointsAtY:v,pointsAtZ:v,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:b,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:b,rev:b,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:b,requiredFeatures:b,requiredFonts:b,requiredFormats:b,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:v,specularExponent:v,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:v,strikethroughThickness:v,string:null,stroke:null,strokeDashArray:b,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:v,strokeOpacity:v,strokeWidth:null,style:null,surfaceScale:v,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:b,tabIndex:v,tableValues:null,target:null,targetX:v,targetY:v,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:b,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:v,underlineThickness:v,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:v,values:null,vAlphabetic:v,vMathematical:v,vectorEffect:null,vHanging:v,vIdeographic:v,version:null,vertAdvY:v,vertOriginX:v,vertOriginY:v,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:v,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),F=d([A,O,M,P,L],"html"),j=d([A,O,M,P,N],"svg"),z=/^data[-\w.:]+$/i,G=/-[a-z]/g,q=/[A-Z]/g;function H(t){return"-"+t.toLowerCase()}function W(t){return t.charAt(1).toUpperCase()}const B={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var Y=n(65220);const U=Y.default||Y,K=V("end"),$=V("start");function V(t){return function(e){const n=e&&e.position&&e.position[t]||{};if("number"===typeof n.line&&n.line>0&&"number"===typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"===typeof n.offset&&n.offset>-1?n.offset:void 0}}}function X(t){return t&&"object"===typeof t?"position"in t||"type"in t?J(t.position):"start"in t||"end"in t?J(t):"line"in t||"column"in t?Z(t):"":""}function Z(t){return Q(t&&t.line)+":"+Q(t&&t.column)}function J(t){return Z(t&&t.start)+"-"+Z(t&&t.end)}function Q(t){return t&&"number"===typeof t?t:1}class tt extends Error{constructor(t,e,n){super(),"string"===typeof e&&(n=e,e=void 0);let r="",i={},o=!1;if(e&&(i="line"in e&&"column"in e||"start"in e&&"end"in e?{place:e}:"type"in e?{ancestors:[e],place:e.position}:{...e}),"string"===typeof t?r=t:!i.cause&&t&&(o=!0,r=t.message,i.cause=t),!i.ruleId&&!i.source&&"string"===typeof n){const t=n.indexOf(":");-1===t?i.ruleId=n:(i.source=n.slice(0,t),i.ruleId=n.slice(t+1))}if(!i.place&&i.ancestors&&i.ancestors){const t=i.ancestors[i.ancestors.length-1];t&&(i.place=t.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=s?s.line:void 0,this.name=X(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&"string"===typeof i.cause.stack?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}tt.prototype.file="",tt.prototype.name="",tt.prototype.reason="",tt.prototype.message="",tt.prototype.stack="",tt.prototype.column=void 0,tt.prototype.line=void 0,tt.prototype.ancestors=void 0,tt.prototype.cause=void 0,tt.prototype.fatal=void 0,tt.prototype.place=void 0,tt.prototype.ruleId=void 0,tt.prototype.source=void 0;const et={}.hasOwnProperty,nt=new Map,rt=/[A-Z]/g,it=/-([a-z])/g,ot=new Set(["table","tbody","thead","tfoot","tr"]),st=new Set(["td","th"]),at="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function lt(t,e){if(!e||void 0===e.Fragment)throw new TypeError("Expected `Fragment` in options");const n=e.filePath||void 0;let r;if(e.development){if("function"!==typeof e.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(t,e){return n;function n(n,r,i,o){const s=Array.isArray(i.children),a=$(n);return e(r,i,o,s,{columnNumber:a?a.column-1:void 0,fileName:t,lineNumber:a?a.line:void 0},void 0)}}(n,e.jsxDEV)}else{if("function"!==typeof e.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!==typeof e.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(t,e,n){return r;function r(t,r,i,o){const s=Array.isArray(i.children)?n:e;return o?s(r,i,o):s(r,i)}}(0,e.jsx,e.jsxs)}const i={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:r,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:!1!==e.passKeys,passNode:e.passNode||!1,schema:"svg"===e.space?j:F,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==e.tableCellAlignToStyle},o=ct(i,t,void 0);return o&&"string"!==typeof o?o:i.create(t,i.Fragment,{children:o||void 0},void 0)}function ct(t,e,n){return"element"===e.type?function(t,e,n){const r=t.schema;let i=r;"svg"===e.tagName.toLowerCase()&&"html"===r.space&&(i=j,t.schema=i);t.ancestors.push(e);const o=gt(t,e.tagName,!1),s=function(t,e){const n={};let r,i;for(i in e.properties)if("children"!==i&&et.call(e.properties,i)){const o=ft(t,i,e.properties[i]);if(o){const[i,s]=o;t.tableCellAlignToStyle&&"align"===i&&"string"===typeof s&&st.has(e.tagName)?r=s:n[i]=s}}if(r){(n.style||(n.style={}))["css"===t.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(t,e);let a=dt(t,e);ot.has(e.tagName)&&(a=a.filter((function(t){return"string"!==typeof t||!("object"===typeof(e=t)?"text"===e.type&&u(e.value):u(e));var e})));return ut(t,s,o,e),ht(s,a),t.ancestors.pop(),t.schema=r,t.create(e,o,s,n)}(t,e,n):"mdxFlowExpression"===e.type||"mdxTextExpression"===e.type?function(t,e){if(e.data&&e.data.estree&&t.evaluater){const n=e.data.estree.body[0];return n.type,t.evaluater.evaluateExpression(n.expression)}pt(t,e.position)}(t,e):"mdxJsxFlowElement"===e.type||"mdxJsxTextElement"===e.type?function(t,e,n){const r=t.schema;let i=r;"svg"===e.name&&"html"===r.space&&(i=j,t.schema=i);t.ancestors.push(e);const o=null===e.name?t.Fragment:gt(t,e.name,!0),s=function(t,e){const n={};for(const r of e.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&t.evaluater){const e=r.data.estree.body[0];e.type;const i=e.expression;i.type;const o=i.properties[0];o.type,Object.assign(n,t.evaluater.evaluateExpression(o.argument))}else pt(t,e.position);else{const i=r.name;let o;if(r.value&&"object"===typeof r.value)if(r.value.data&&r.value.data.estree&&t.evaluater){const e=r.value.data.estree.body[0];e.type,o=t.evaluater.evaluateExpression(e.expression)}else pt(t,e.position);else o=null===r.value||r.value;n[i]=o}return n}(t,e),a=dt(t,e);return ut(t,s,o,e),ht(s,a),t.ancestors.pop(),t.schema=r,t.create(e,o,s,n)}(t,e,n):"mdxjsEsm"===e.type?function(t,e){if(e.data&&e.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(e.data.estree);pt(t,e.position)}(t,e):"root"===e.type?function(t,e,n){const r={};return ht(r,dt(t,e)),t.create(e,t.Fragment,r,n)}(t,e,n):"text"===e.type?function(t,e){return e.value}(0,e):void 0}function ut(t,e,n,r){"string"!==typeof n&&n!==t.Fragment&&t.passNode&&(e.node=r)}function ht(t,e){if(e.length>0){const n=e.length>1?e:e[0];n&&(t.children=n)}}function dt(t,e){const n=[];let r=-1;const i=t.passKeys?new Map:nt;for(;++r<e.children.length;){const o=e.children[r];let s;if(t.passKeys){const t="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(t){const e=i.get(t)||0;s=t+"-"+e,i.set(t,e+1)}}const a=ct(t,o,s);void 0!==a&&n.push(a)}return n}function ft(t,e,n){const r=function(t,e){const n=f(e);let r=e,i=g;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&z.test(e)){if("-"===e.charAt(4)){const t=e.slice(5).replace(G,W);r="data"+t.charAt(0).toUpperCase()+t.slice(1)}else{const t=e.slice(4);if(!G.test(t)){let n=t.replace(q,H);"-"!==n.charAt(0)&&(n="-"+n),e="data"+n}}i=T}return new i(r,e)}(t.schema,e);if(!(null===n||void 0===n||"number"===typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(t,e){const n=e||{};return(""===t[t.length-1]?[...t,""]:t).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let e="object"===typeof n?n:function(t,e){const n={};try{U(e,r)}catch(i){if(!t.ignoreInvalidStyle){const e=i,n=new tt("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:e,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw n.file=t.filePath||void 0,n.url=at+"#cannot-parse-style-attribute",n}}return n;function r(t,e){let r=t;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(it,yt)),n[r]=e}}(t,String(n));return"css"===t.stylePropertyNameCase&&(e=function(t){const e={};let n;for(n in t)et.call(t,n)&&(e[mt(n)]=t[n]);return e}(e)),["style",e]}return["react"===t.elementAttributeNameCase&&r.space?B[r.property]||r.property:r.attribute,n]}}function gt(t,e,n){let r;if(n)if(e.includes(".")){const t=e.split(".");let n,i=-1;for(;++i<t.length;){const e=l(t[i])?{type:"Identifier",name:t[i]}:{type:"Literal",value:t[i]};n=n?{type:"MemberExpression",object:n,property:e,computed:Boolean(i&&"Literal"===e.type),optional:!1}:e}r=n}else r=l(e)&&!/^[a-z]/.test(e)?{type:"Identifier",name:e}:{type:"Literal",value:e};else r={type:"Literal",value:e};if("Literal"===r.type){const e=r.value;return et.call(t.components,e)?t.components[e]:e}if(t.evaluater)return t.evaluater.evaluateExpression(r);pt(t)}function pt(t,e){const n=new tt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:e,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=t.filePath||void 0,n.url=at+"#cannot-handle-mdx-estrees-without-createevaluater",n}function mt(t){let e=t.replace(rt,_t);return"ms-"===e.slice(0,3)&&(e="-"+e),e}function yt(t,e){return e.toUpperCase()}function _t(t){return"-"+t.toLowerCase()}const vt={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var xt=n(99277);const wt={};function bt(t,e,n){if(function(t){return Boolean(t&&"object"===typeof t)}(t)){if("value"in t)return"html"!==t.type||n?t.value:"";if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return St(t.children,e,n)}return Array.isArray(t)?St(t,e,n):""}function St(t,e,n){const r=[];let i=-1;for(;++i<t.length;)r[i]=bt(t[i],e,n);return r.join("")}function Et(t,e,n,r){const i=t.length;let o,s=0;if(e=e<0?-e>i?0:i+e:e>i?i:e,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(e,n),t.splice(...o);else for(n&&t.splice(e,n);s<r.length;)o=r.slice(s,s+1e4),o.unshift(e,0),t.splice(...o),s+=1e4,e+=1e4}function Tt(t,e){return t.length>0?(Et(t,t.length,0,e),t):e}class Ct{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,e){const n=null===e||void 0===e?Number.POSITIVE_INFINITY:e;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,e,n){const r=e||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&It(this.left,n),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),It(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),It(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&0===this.right.length||t<0&&0===this.left.length))if(t<this.left.length){const e=this.left.splice(t,Number.POSITIVE_INFINITY);It(this.right,e.reverse())}else{const e=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);It(this.left,e.reverse())}}}function It(t,e){let n=0;if(e.length<1e4)t.push(...e);else for(;n<e.length;)t.push(...e.slice(n,n+1e4)),n+=1e4}function kt(t){const e={};let n,r,i,o,s,a,l,c=-1;const u=new Ct(t);for(;++c<u.length;){for(;c in e;)c=e[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(a=n[1]._tokenizer.events,i=0,i<a.length&&"lineEndingBlank"===a[i][1].type&&(i+=2),i<a.length&&"content"===a[i][1].type))for(;++i<a.length&&"content"!==a[i][1].type;)"chunkText"===a[i][1].type&&(a[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===n[0])n[1].contentType&&(Object.assign(e,Ot(u,c)),c=e[c],l=!0);else if(n[1]._container){for(i=c,r=void 0;i--&&(o=u.get(i),"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type);)"enter"===o[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),o[1].type="lineEnding",r=i);r&&(n[1].end=Object.assign({},u.get(r)[1].start),s=u.slice(r,c),s.unshift(n),u.splice(r,c-r+1,s))}}return Et(t,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function Ot(t,e){const n=t.get(e)[1],r=t.get(e)[2];let i=e-1;const o=[],s=n._tokenizer||r.parser[n.contentType](n.start),a=s.events,l=[],c={};let u,h,d=-1,f=n,g=0,p=0;const m=[p];for(;f;){for(;t.get(++i)[1]!==f;);o.push(i),f._tokenizer||(u=r.sliceStream(f),f.next||u.push(null),h&&s.defineSkip(f.start),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(u),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),h=f,f=f.next}for(f=n;++d<a.length;)"exit"===a[d][0]&&"enter"===a[d-1][0]&&a[d][1].type===a[d-1][1].type&&a[d][1].start.line!==a[d][1].end.line&&(p=d+1,m.push(p),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(s.events=[],f?(f._tokenizer=void 0,f.previous=void 0):m.pop(),d=m.length;d--;){const e=a.slice(m[d],m[d+1]),n=o.pop();l.push([n,n+e.length-1]),t.splice(n,2,e)}for(l.reverse(),d=-1;++d<l.length;)c[g+l[d][0]]=g+l[d][1],g+=l[d][1]-l[d][0]-1;return c}const At={}.hasOwnProperty;function Rt(t,e){let n;for(n in e){const r=(At.call(t,n)?t[n]:void 0)||(t[n]={}),i=e[n];let o;if(i)for(o in i){At.call(r,o)||(r[o]=[]);const t=i[o];Dt(r[o],Array.isArray(t)?t:t?[t]:[])}}}function Dt(t,e){let n=-1;const r=[];for(;++n<e.length;)("after"===e[n].add?t:r).push(e[n]);Et(t,0,0,r)}const Mt=Yt(/[A-Za-z]/),Pt=Yt(/[\dA-Za-z]/),Lt=Yt(/[#-'*+\--9=?A-Z^-~]/);function Nt(t){return null!==t&&(t<32||127===t)}const Ft=Yt(/\d/),jt=Yt(/[\dA-Fa-f]/),zt=Yt(/[!-/:-@[-`{-~]/);function Gt(t){return null!==t&&t<-2}function qt(t){return null!==t&&(t<0||32===t)}function Ht(t){return-2===t||-1===t||32===t}const Wt=Yt(/\p{P}|\p{S}/u),Bt=Yt(/\s/);function Yt(t){return function(e){return null!==e&&e>-1&&t.test(String.fromCharCode(e))}}function Ut(t,e,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){if(Ht(r))return t.enter(n),s(r);return e(r)};function s(r){return Ht(r)&&o++<i?(t.consume(r),s):(t.exit(n),e(r))}}const Kt={tokenize:function(t){const e=t.attempt(this.parser.constructs.contentInitial,(function(n){if(null===n)return void t.consume(n);return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),Ut(t,e,"linePrefix")}),(function(e){return t.enter("paragraph"),r(e)}));let n;return e;function r(e){const r=t.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,i(e)}function i(e){return null===e?(t.exit("chunkText"),t.exit("paragraph"),void t.consume(e)):Gt(e)?(t.consume(e),t.exit("chunkText"),r):(t.consume(e),i)}}};const $t={tokenize:function(t){const e=this,n=[];let r,i,o,s=0;return a;function a(r){if(s<n.length){const i=n[s];return e.containerState=i[1],t.attempt(i[0].continuation,l,c)(r)}return c(r)}function l(t){if(s++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,r&&_();const n=e.events.length;let i,o=n;for(;o--;)if("exit"===e.events[o][0]&&"chunkFlow"===e.events[o][1].type){i=e.events[o][1].end;break}y(s);let a=n;for(;a<e.events.length;)e.events[a][1].end=Object.assign({},i),a++;return Et(e.events,o+1,0,e.events.slice(n)),e.events.length=a,c(t)}return a(t)}function c(i){if(s===n.length){if(!r)return d(i);if(r.currentConstruct&&r.currentConstruct.concrete)return g(i);e.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(Vt,u,h)(i)}function u(t){return r&&_(),y(s),d(t)}function h(t){return e.parser.lazy[e.now().line]=s!==n.length,o=e.now().offset,g(t)}function d(n){return e.containerState={},t.attempt(Vt,f,g)(n)}function f(t){return s++,n.push([e.currentConstruct,e.containerState]),d(t)}function g(n){return null===n?(r&&_(),y(0),void t.consume(n)):(r=r||e.parser.flow(e.now()),t.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:r}),p(n))}function p(n){return null===n?(m(t.exit("chunkFlow"),!0),y(0),void t.consume(n)):Gt(n)?(t.consume(n),m(t.exit("chunkFlow")),s=0,e.interrupt=void 0,a):(t.consume(n),p)}function m(t,n){const a=e.sliceStream(t);if(n&&a.push(null),t.previous=i,i&&(i.next=t),i=t,r.defineSkip(t.start),r.write(a),e.parser.lazy[t.start.line]){let t=r.events.length;for(;t--;)if(r.events[t][1].start.offset<o&&(!r.events[t][1].end||r.events[t][1].end.offset>o))return;const n=e.events.length;let i,a,l=n;for(;l--;)if("exit"===e.events[l][0]&&"chunkFlow"===e.events[l][1].type){if(i){a=e.events[l][1].end;break}i=!0}for(y(s),t=n;t<e.events.length;)e.events[t][1].end=Object.assign({},a),t++;Et(e.events,l+1,0,e.events.slice(n)),e.events.length=t}}function y(r){let i=n.length;for(;i-- >r;){const r=n[i];e.containerState=r[1],r[0].exit.call(e,t)}n.length=r}function _(){r.write([null]),i=void 0,r=void 0,e.containerState._closeFlow=void 0}}},Vt={tokenize:function(t,e,n){return Ut(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const Xt={tokenize:function(t,e,n){return function(e){return Ht(e)?Ut(t,r,"linePrefix")(e):r(e)};function r(t){return null===t||Gt(t)?e(t):n(t)}},partial:!0};const Zt={tokenize:function(t,e){let n;return function(e){return t.enter("content"),n=t.enter("chunkContent",{contentType:"content"}),r(e)};function r(e){return null===e?i(e):Gt(e)?t.check(Jt,o,i)(e):(t.consume(e),r)}function i(n){return t.exit("chunkContent"),t.exit("content"),e(n)}function o(e){return t.consume(e),t.exit("chunkContent"),n.next=t.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(t){return kt(t),t}},Jt={tokenize:function(t,e,n){const r=this;return function(e){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),Ut(t,i,"linePrefix")};function i(i){if(null===i||Gt(i))return n(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?e(i):t.interrupt(r.parser.constructs.flow,n,e)(i)}},partial:!0};const Qt={tokenize:function(t){const e=this,n=t.attempt(Xt,(function(r){if(null===r)return void t.consume(r);return t.enter("lineEndingBlank"),t.consume(r),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n}),t.attempt(this.parser.constructs.flowInitial,r,Ut(t,t.attempt(this.parser.constructs.flow,r,t.attempt(Zt,r)),"linePrefix")));return n;function r(r){if(null!==r)return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),e.currentConstruct=void 0,n;t.consume(r)}}};const te={resolveAll:ie()},ee=re("string"),ne=re("text");function re(t){return{tokenize:function(e){const n=this,r=this.parser.constructs[t],i=e.attempt(r,o,s);return o;function o(t){return l(t)?i(t):s(t)}function s(t){if(null!==t)return e.enter("data"),e.consume(t),a;e.consume(t)}function a(t){return l(t)?(e.exit("data"),i(t)):(e.consume(t),a)}function l(t){if(null===t)return!0;const e=r[t];let i=-1;if(e)for(;++i<e.length;){const t=e[i];if(!t.previous||t.previous.call(n,n.previous))return!0}return!1}},resolveAll:ie("text"===t?oe:void 0)}}function ie(t){return function(e,n){let r,i=-1;for(;++i<=e.length;)void 0===r?e[i]&&"data"===e[i][1].type&&(r=i,i++):e[i]&&"data"===e[i][1].type||(i!==r+2&&(e[r][1].end=e[i-1][1].end,e.splice(r+2,i-r-2),i=r+2),r=void 0);return t?t(e,n):e}}function oe(t,e){let n=0;for(;++n<=t.length;)if((n===t.length||"lineEnding"===t[n][1].type)&&"data"===t[n-1][1].type){const r=t[n-1][1],i=e.sliceStream(r);let o,s=i.length,a=-1,l=0;for(;s--;){const t=i[s];if("string"===typeof t){for(a=t.length;32===t.charCodeAt(a-1);)l++,a--;if(a)break;a=-1}else if(-2===t)o=!0,l++;else if(-1!==t){s++;break}}if(l){const i={type:n===t.length||o||l<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-l,offset:r.end.offset-l,_index:r.start._index+s,_bufferIndex:s?a:r.start._bufferIndex+a},end:Object.assign({},r.end)};r.end=Object.assign({},i.start),r.start.offset===r.end.offset?Object.assign(r,i):(t.splice(n,0,["enter",i,e],["exit",i,e]),n+=2)}n++}return t}function se(t,e,n){const r=[];let i=-1;for(;++i<t.length;){const o=t[i].resolveAll;o&&!r.includes(o)&&(e=o(e,n),r.push(o))}return e}function ae(t,e,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},o=[];let s=[],a=[],l=!0;const c={consume:function(t){Gt(t)?(r.line++,r.column=1,r.offset+=-3===t?2:1,x()):-1!==t&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++));u.previous=t,l=!0},enter:function(t,e){const n=e||{};return n.type=t,n.start=g(),u.events.push(["enter",n,u]),a.push(n),n},exit:function(t){const e=a.pop();return e.end=g(),u.events.push(["exit",e,u]),e},attempt:_((function(t,e){v(t,e.from)})),check:_(y),interrupt:_(y,{interrupt:!0})},u={previous:null,code:null,containerState:{},events:[],parser:t,sliceStream:f,sliceSerialize:function(t,e){return function(t,e){let n=-1;const r=[];let i;for(;++n<t.length;){const o=t[n];let s;if("string"===typeof o)s=o;else switch(o){case-5:s="\r";break;case-4:s="\n";break;case-3:s="\r\n";break;case-2:s=e?" ":"\t";break;case-1:if(!e&&i)continue;s=" ";break;default:s=String.fromCharCode(o)}i=-2===o,r.push(s)}return r.join("")}(f(t),e)},now:g,defineSkip:function(t){i[t.line]=t.column,x()},write:function(t){if(s=Tt(s,t),p(),null!==s[s.length-1])return[];return v(e,0),u.events=se(o,u.events,u),u.events}};let h,d=e.tokenize.call(u,c);return e.resolveAll&&o.push(e),u;function f(t){return function(t,e){const n=e.start._index,r=e.start._bufferIndex,i=e.end._index,o=e.end._bufferIndex;let s;if(n===i)s=[t[n].slice(r,o)];else{if(s=t.slice(n,i),r>-1){const t=s[0];"string"===typeof t?s[0]=t.slice(r):s.shift()}o>0&&s.push(t[i].slice(0,o))}return s}(s,t)}function g(){const{line:t,column:e,offset:n,_index:i,_bufferIndex:o}=r;return{line:t,column:e,offset:n,_index:i,_bufferIndex:o}}function p(){let t;for(;r._index<s.length;){const e=s[r._index];if("string"===typeof e)for(t=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===t&&r._bufferIndex<e.length;)m(e.charCodeAt(r._bufferIndex));else m(e)}}function m(t){l=void 0,h=t,d=d(t)}function y(t,e){e.restore()}function _(t,e){return function(n,i,o){let s,h,d,f;return Array.isArray(n)?p(n):"tokenize"in n?p([n]):function(t){return e;function e(e){const n=null!==e&&t[e],r=null!==e&&t.null;return p([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(e)}}(n);function p(t){return s=t,h=0,0===t.length?o:m(t[h])}function m(t){return function(n){f=function(){const t=g(),e=u.previous,n=u.currentConstruct,i=u.events.length,o=Array.from(a);return{restore:s,from:i};function s(){r=t,u.previous=e,u.currentConstruct=n,u.events.length=i,a=o,x()}}(),d=t,t.partial||(u.currentConstruct=t);if(t.name&&u.parser.constructs.disable.null.includes(t.name))return _(n);return t.tokenize.call(e?Object.assign(Object.create(u),e):u,c,y,_)(n)}}function y(e){return l=!0,t(d,f),i}function _(t){return l=!0,f.restore(),++h<s.length?m(s[h]):o}}}function v(t,e){t.resolveAll&&!o.includes(t)&&o.push(t),t.resolve&&Et(u.events,e,u.events.length-e,t.resolve(u.events.slice(e),u)),t.resolveTo&&(u.events=t.resolveTo(u.events,u))}function x(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}const le={name:"thematicBreak",tokenize:function(t,e,n){let r,i=0;return function(e){return t.enter("thematicBreak"),function(t){return r=t,o(t)}(e)};function o(o){return o===r?(t.enter("thematicBreakSequence"),s(o)):i>=3&&(null===o||Gt(o))?(t.exit("thematicBreak"),e(o)):n(o)}function s(e){return e===r?(t.consume(e),i++,s):(t.exit("thematicBreakSequence"),Ht(e)?Ut(t,o,"whitespace")(e):o(e))}}};const ce={name:"list",tokenize:function(t,e,n){const r=this,i=r.events[r.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,s=0;return function(e){const i=r.containerState.type||(42===e||43===e||45===e?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||e===r.containerState.marker:Ft(e)){if(r.containerState.type||(r.containerState.type=i,t.enter(i,{_container:!0})),"listUnordered"===i)return t.enter("listItemPrefix"),42===e||45===e?t.check(le,n,l)(e):l(e);if(!r.interrupt||49===e)return t.enter("listItemPrefix"),t.enter("listItemValue"),a(e)}return n(e)};function a(e){return Ft(e)&&++s<10?(t.consume(e),a):(!r.interrupt||s<2)&&(r.containerState.marker?e===r.containerState.marker:41===e||46===e)?(t.exit("listItemValue"),l(e)):n(e)}function l(e){return t.enter("listItemMarker"),t.consume(e),t.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||e,t.check(Xt,r.interrupt?n:c,t.attempt(ue,h,u))}function c(t){return r.containerState.initialBlankLine=!0,o++,h(t)}function u(e){return Ht(e)?(t.enter("listItemPrefixWhitespace"),t.consume(e),t.exit("listItemPrefixWhitespace"),h):n(e)}function h(n){return r.containerState.size=o+r.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(n)}},continuation:{tokenize:function(t,e,n){const r=this;return r.containerState._closeFlow=void 0,t.check(Xt,i,o);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ut(t,e,"listItemIndent",r.containerState.size+1)(n)}function o(n){return r.containerState.furtherBlankLines||!Ht(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,t.attempt(he,e,s)(n))}function s(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ut(t,t.attempt(ce,e,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(t){t.exit(this.containerState.type)}},ue={tokenize:function(t,e,n){const r=this;return Ut(t,(function(t){const i=r.events[r.events.length-1];return!Ht(t)&&i&&"listItemPrefixWhitespace"===i[1].type?e(t):n(t)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},he={tokenize:function(t,e,n){const r=this;return Ut(t,(function(t){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?e(t):n(t)}),"listItemIndent",r.containerState.size+1)},partial:!0};const de={name:"blockQuote",tokenize:function(t,e,n){const r=this;return function(e){if(62===e){const n=r.containerState;return n.open||(t.enter("blockQuote",{_container:!0}),n.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(e),t.exit("blockQuoteMarker"),i}return n(e)};function i(n){return Ht(n)?(t.enter("blockQuotePrefixWhitespace"),t.consume(n),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(n))}},continuation:{tokenize:function(t,e,n){const r=this;return function(e){if(Ht(e))return Ut(t,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(e);return i(e)};function i(r){return t.attempt(de,e,n)(r)}}},exit:function(t){t.exit("blockQuote")}};function fe(t,e,n,r,i,o,s,a,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(e){if(60===e)return t.enter(r),t.enter(i),t.enter(o),t.consume(e),t.exit(o),h;if(null===e||32===e||41===e||Nt(e))return n(e);return t.enter(r),t.enter(s),t.enter(a),t.enter("chunkString",{contentType:"string"}),g(e)};function h(n){return 62===n?(t.enter(o),t.consume(n),t.exit(o),t.exit(i),t.exit(r),e):(t.enter(a),t.enter("chunkString",{contentType:"string"}),d(n))}function d(e){return 62===e?(t.exit("chunkString"),t.exit(a),h(e)):null===e||60===e||Gt(e)?n(e):(t.consume(e),92===e?f:d)}function f(e){return 60===e||62===e||92===e?(t.consume(e),d):d(e)}function g(i){return u||null!==i&&41!==i&&!qt(i)?u<c&&40===i?(t.consume(i),u++,g):41===i?(t.consume(i),u--,g):null===i||32===i||40===i||Nt(i)?n(i):(t.consume(i),92===i?p:g):(t.exit("chunkString"),t.exit(a),t.exit(s),t.exit(r),e(i))}function p(e){return 40===e||41===e||92===e?(t.consume(e),g):g(e)}}function ge(t,e,n,r,i,o){const s=this;let a,l=0;return function(e){return t.enter(r),t.enter(i),t.consume(e),t.exit(i),t.enter(o),c};function c(h){return l>999||null===h||91===h||93===h&&!a||94===h&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(h):93===h?(t.exit(o),t.enter(i),t.consume(h),t.exit(i),t.exit(r),e):Gt(h)?(t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),c):(t.enter("chunkString",{contentType:"string"}),u(h))}function u(e){return null===e||91===e||93===e||Gt(e)||l++>999?(t.exit("chunkString"),c(e)):(t.consume(e),a||(a=!Ht(e)),92===e?h:u)}function h(e){return 91===e||92===e||93===e?(t.consume(e),l++,u):u(e)}}function pe(t,e,n,r,i,o){let s;return function(e){if(34===e||39===e||40===e)return t.enter(r),t.enter(i),t.consume(e),t.exit(i),s=40===e?41:e,a;return n(e)};function a(n){return n===s?(t.enter(i),t.consume(n),t.exit(i),t.exit(r),e):(t.enter(o),l(n))}function l(e){return e===s?(t.exit(o),a(s)):null===e?n(e):Gt(e)?(t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),Ut(t,l,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),c(e))}function c(e){return e===s||null===e||Gt(e)?(t.exit("chunkString"),l(e)):(t.consume(e),92===e?u:c)}function u(e){return e===s||92===e?(t.consume(e),c):c(e)}}function me(t,e){let n;return function r(i){if(Gt(i))return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),n=!0,r;if(Ht(i))return Ut(t,r,n?"linePrefix":"lineSuffix")(i);return e(i)}}function ye(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const _e={name:"definition",tokenize:function(t,e,n){const r=this;let i;return function(e){return t.enter("definition"),function(e){return ge.call(r,t,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(e)}(e)};function o(e){return i=ye(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===e?(t.enter("definitionMarker"),t.consume(e),t.exit("definitionMarker"),s):n(e)}function s(e){return qt(e)?me(t,a)(e):a(e)}function a(e){return fe(t,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(e)}function l(e){return t.attempt(ve,c,c)(e)}function c(e){return Ht(e)?Ut(t,u,"whitespace")(e):u(e)}function u(o){return null===o||Gt(o)?(t.exit("definition"),r.parser.defined.push(i),e(o)):n(o)}}},ve={tokenize:function(t,e,n){return function(e){return qt(e)?me(t,r)(e):n(e)};function r(e){return pe(t,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(e)}function i(e){return Ht(e)?Ut(t,o,"whitespace")(e):o(e)}function o(t){return null===t||Gt(t)?e(t):n(t)}},partial:!0};const xe={name:"codeIndented",tokenize:function(t,e,n){const r=this;return function(e){return t.enter("codeIndented"),Ut(t,i,"linePrefix",5)(e)};function i(t){const e=r.events[r.events.length-1];return e&&"linePrefix"===e[1].type&&e[2].sliceSerialize(e[1],!0).length>=4?o(t):n(t)}function o(e){return null===e?a(e):Gt(e)?t.attempt(we,o,a)(e):(t.enter("codeFlowValue"),s(e))}function s(e){return null===e||Gt(e)?(t.exit("codeFlowValue"),o(e)):(t.consume(e),s)}function a(n){return t.exit("codeIndented"),e(n)}}},we={tokenize:function(t,e,n){const r=this;return i;function i(e){return r.parser.lazy[r.now().line]?n(e):Gt(e)?(t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),i):Ut(t,o,"linePrefix",5)(e)}function o(t){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?e(t):Gt(t)?i(t):n(t)}},partial:!0};const be={name:"headingAtx",tokenize:function(t,e,n){let r=0;return function(e){return t.enter("atxHeading"),function(e){return t.enter("atxHeadingSequence"),i(e)}(e)};function i(e){return 35===e&&r++<6?(t.consume(e),i):null===e||qt(e)?(t.exit("atxHeadingSequence"),o(e)):n(e)}function o(n){return 35===n?(t.enter("atxHeadingSequence"),s(n)):null===n||Gt(n)?(t.exit("atxHeading"),e(n)):Ht(n)?Ut(t,o,"whitespace")(n):(t.enter("atxHeadingText"),a(n))}function s(e){return 35===e?(t.consume(e),s):(t.exit("atxHeadingSequence"),o(e))}function a(e){return null===e||35===e||qt(e)?(t.exit("atxHeadingText"),o(e)):(t.consume(e),a)}},resolve:function(t,e){let n,r,i=t.length-2,o=3;"whitespace"===t[o][1].type&&(o+=2);i-2>o&&"whitespace"===t[i][1].type&&(i-=2);"atxHeadingSequence"===t[i][1].type&&(o===i-1||i-4>o&&"whitespace"===t[i-2][1].type)&&(i-=o+1===i?2:4);i>o&&(n={type:"atxHeadingText",start:t[o][1].start,end:t[i][1].end},r={type:"chunkText",start:t[o][1].start,end:t[i][1].end,contentType:"text"},Et(t,o,i-o+1,[["enter",n,e],["enter",r,e],["exit",r,e],["exit",n,e]]));return t}};const Se={name:"setextUnderline",tokenize:function(t,e,n){const r=this;let i;return function(e){let s,a=r.events.length;for(;a--;)if("lineEnding"!==r.events[a][1].type&&"linePrefix"!==r.events[a][1].type&&"content"!==r.events[a][1].type){s="paragraph"===r.events[a][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||s))return t.enter("setextHeadingLine"),i=e,function(e){return t.enter("setextHeadingLineSequence"),o(e)}(e);return n(e)};function o(e){return e===i?(t.consume(e),o):(t.exit("setextHeadingLineSequence"),Ht(e)?Ut(t,s,"lineSuffix")(e):s(e))}function s(r){return null===r||Gt(r)?(t.exit("setextHeadingLine"),e(r)):n(r)}},resolveTo:function(t,e){let n,r,i,o=t.length;for(;o--;)if("enter"===t[o][0]){if("content"===t[o][1].type){n=o;break}"paragraph"===t[o][1].type&&(r=o)}else"content"===t[o][1].type&&t.splice(o,1),i||"definition"!==t[o][1].type||(i=o);const s={type:"setextHeading",start:Object.assign({},t[r][1].start),end:Object.assign({},t[t.length-1][1].end)};t[r][1].type="setextHeadingText",i?(t.splice(r,0,["enter",s,e]),t.splice(i+1,0,["exit",t[n][1],e]),t[n][1].end=Object.assign({},t[i][1].end)):t[n][1]=s;return t.push(["exit",s,e]),t}};const Ee=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Te=["pre","script","style","textarea"],Ce={name:"htmlFlow",tokenize:function(t,e,n){const r=this;let i,o,s,a,l;return function(e){return function(e){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(e),c}(e)};function c(a){return 33===a?(t.consume(a),u):47===a?(t.consume(a),o=!0,f):63===a?(t.consume(a),i=3,r.interrupt?e:P):Mt(a)?(t.consume(a),s=String.fromCharCode(a),g):n(a)}function u(o){return 45===o?(t.consume(o),i=2,h):91===o?(t.consume(o),i=5,a=0,d):Mt(o)?(t.consume(o),i=4,r.interrupt?e:P):n(o)}function h(i){return 45===i?(t.consume(i),r.interrupt?e:P):n(i)}function d(i){const o="CDATA[";return i===o.charCodeAt(a++)?(t.consume(i),6===a?r.interrupt?e:C:d):n(i)}function f(e){return Mt(e)?(t.consume(e),s=String.fromCharCode(e),g):n(e)}function g(a){if(null===a||47===a||62===a||qt(a)){const l=47===a,c=s.toLowerCase();return l||o||!Te.includes(c)?Ee.includes(s.toLowerCase())?(i=6,l?(t.consume(a),p):r.interrupt?e(a):C(a)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(a):o?m(a):y(a)):(i=1,r.interrupt?e(a):C(a))}return 45===a||Pt(a)?(t.consume(a),s+=String.fromCharCode(a),g):n(a)}function p(i){return 62===i?(t.consume(i),r.interrupt?e:C):n(i)}function m(e){return Ht(e)?(t.consume(e),m):E(e)}function y(e){return 47===e?(t.consume(e),E):58===e||95===e||Mt(e)?(t.consume(e),_):Ht(e)?(t.consume(e),y):E(e)}function _(e){return 45===e||46===e||58===e||95===e||Pt(e)?(t.consume(e),_):v(e)}function v(e){return 61===e?(t.consume(e),x):Ht(e)?(t.consume(e),v):y(e)}function x(e){return null===e||60===e||61===e||62===e||96===e?n(e):34===e||39===e?(t.consume(e),l=e,w):Ht(e)?(t.consume(e),x):b(e)}function w(e){return e===l?(t.consume(e),l=null,S):null===e||Gt(e)?n(e):(t.consume(e),w)}function b(e){return null===e||34===e||39===e||47===e||60===e||61===e||62===e||96===e||qt(e)?v(e):(t.consume(e),b)}function S(t){return 47===t||62===t||Ht(t)?y(t):n(t)}function E(e){return 62===e?(t.consume(e),T):n(e)}function T(e){return null===e||Gt(e)?C(e):Ht(e)?(t.consume(e),T):n(e)}function C(e){return 45===e&&2===i?(t.consume(e),A):60===e&&1===i?(t.consume(e),R):62===e&&4===i?(t.consume(e),L):63===e&&3===i?(t.consume(e),P):93===e&&5===i?(t.consume(e),M):!Gt(e)||6!==i&&7!==i?null===e||Gt(e)?(t.exit("htmlFlowData"),I(e)):(t.consume(e),C):(t.exit("htmlFlowData"),t.check(Ie,N,I)(e))}function I(e){return t.check(ke,k,N)(e)}function k(e){return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),O}function O(e){return null===e||Gt(e)?I(e):(t.enter("htmlFlowData"),C(e))}function A(e){return 45===e?(t.consume(e),P):C(e)}function R(e){return 47===e?(t.consume(e),s="",D):C(e)}function D(e){if(62===e){const n=s.toLowerCase();return Te.includes(n)?(t.consume(e),L):C(e)}return Mt(e)&&s.length<8?(t.consume(e),s+=String.fromCharCode(e),D):C(e)}function M(e){return 93===e?(t.consume(e),P):C(e)}function P(e){return 62===e?(t.consume(e),L):45===e&&2===i?(t.consume(e),P):C(e)}function L(e){return null===e||Gt(e)?(t.exit("htmlFlowData"),N(e)):(t.consume(e),L)}function N(n){return t.exit("htmlFlow"),e(n)}},resolveTo:function(t){let e=t.length;for(;e--&&("enter"!==t[e][0]||"htmlFlow"!==t[e][1].type););e>1&&"linePrefix"===t[e-2][1].type&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2));return t},concrete:!0},Ie={tokenize:function(t,e,n){return function(r){return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),t.attempt(Xt,e,n)}},partial:!0},ke={tokenize:function(t,e,n){const r=this;return function(e){if(Gt(e))return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),i;return n(e)};function i(t){return r.parser.lazy[r.now().line]?n(t):e(t)}},partial:!0};const Oe={tokenize:function(t,e,n){const r=this;return function(e){if(null===e)return n(e);return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),i};function i(t){return r.parser.lazy[r.now().line]?n(t):e(t)}},partial:!0},Ae={name:"codeFenced",tokenize:function(t,e,n){const r=this,i={tokenize:function(t,e,n){let i=0;return s;function s(e){return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),l}function l(e){return t.enter("codeFencedFence"),Ht(e)?Ut(t,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(e):c(e)}function c(e){return e===o?(t.enter("codeFencedFenceSequence"),u(e)):n(e)}function u(e){return e===o?(i++,t.consume(e),u):i>=a?(t.exit("codeFencedFenceSequence"),Ht(e)?Ut(t,h,"whitespace")(e):h(e)):n(e)}function h(r){return null===r||Gt(r)?(t.exit("codeFencedFence"),e(r)):n(r)}},partial:!0};let o,s=0,a=0;return function(e){return function(e){const n=r.events[r.events.length-1];return s=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=e,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),l(e)}(e)};function l(e){return e===o?(a++,t.consume(e),l):a<3?n(e):(t.exit("codeFencedFenceSequence"),Ht(e)?Ut(t,c,"whitespace")(e):c(e))}function c(n){return null===n||Gt(n)?(t.exit("codeFencedFence"),r.interrupt?e(n):t.check(Oe,f,_)(n)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),u(n))}function u(e){return null===e||Gt(e)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),c(e)):Ht(e)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Ut(t,h,"whitespace")(e)):96===e&&e===o?n(e):(t.consume(e),u)}function h(e){return null===e||Gt(e)?c(e):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),d(e))}function d(e){return null===e||Gt(e)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),c(e)):96===e&&e===o?n(e):(t.consume(e),d)}function f(e){return t.attempt(i,_,g)(e)}function g(e){return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),p}function p(e){return s>0&&Ht(e)?Ut(t,m,"linePrefix",s+1)(e):m(e)}function m(e){return null===e||Gt(e)?t.check(Oe,f,_)(e):(t.enter("codeFlowValue"),y(e))}function y(e){return null===e||Gt(e)?(t.exit("codeFlowValue"),m(e)):(t.consume(e),y)}function _(n){return t.exit("codeFenced"),e(n)}},concrete:!0};const Re=document.createElement("i");function De(t){const e="&"+t+";";Re.innerHTML=e;const n=Re.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===t)&&(n!==e&&n)}const Me={name:"characterReference",tokenize:function(t,e,n){const r=this;let i,o,s=0;return function(e){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(e),t.exit("characterReferenceMarker"),a};function a(e){return 35===e?(t.enter("characterReferenceMarkerNumeric"),t.consume(e),t.exit("characterReferenceMarkerNumeric"),l):(t.enter("characterReferenceValue"),i=31,o=Pt,c(e))}function l(e){return 88===e||120===e?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(e),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),i=6,o=jt,c):(t.enter("characterReferenceValue"),i=7,o=Ft,c(e))}function c(a){if(59===a&&s){const i=t.exit("characterReferenceValue");return o!==Pt||De(r.sliceSerialize(i))?(t.enter("characterReferenceMarker"),t.consume(a),t.exit("characterReferenceMarker"),t.exit("characterReference"),e):n(a)}return o(a)&&s++<i?(t.consume(a),c):n(a)}}};const Pe={name:"characterEscape",tokenize:function(t,e,n){return function(e){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(e),t.exit("escapeMarker"),r};function r(r){return zt(r)?(t.enter("characterEscapeValue"),t.consume(r),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):n(r)}}};const Le={name:"lineEnding",tokenize:function(t,e){return function(n){return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),Ut(t,e,"linePrefix")}}};const Ne={name:"labelEnd",tokenize:function(t,e,n){const r=this;let i,o,s=r.events.length;for(;s--;)if(("labelImage"===r.events[s][1].type||"labelLink"===r.events[s][1].type)&&!r.events[s][1]._balanced){i=r.events[s][1];break}return function(e){if(!i)return n(e);if(i._inactive)return u(e);return o=r.parser.defined.includes(ye(r.sliceSerialize({start:i.end,end:r.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(e),t.exit("labelMarker"),t.exit("labelEnd"),a};function a(e){return 40===e?t.attempt(Fe,c,o?c:u)(e):91===e?t.attempt(je,c,o?l:u)(e):o?c(e):u(e)}function l(e){return t.attempt(ze,c,u)(e)}function c(t){return e(t)}function u(t){return i._balanced=!0,n(t)}},resolveTo:function(t,e){let n,r,i,o,s=t.length,a=0;for(;s--;)if(n=t[s][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===t[s][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===t[s][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=s,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(i=s);const l={type:"labelLink"===t[r][1].type?"link":"image",start:Object.assign({},t[r][1].start),end:Object.assign({},t[t.length-1][1].end)},c={type:"label",start:Object.assign({},t[r][1].start),end:Object.assign({},t[i][1].end)},u={type:"labelText",start:Object.assign({},t[r+a+2][1].end),end:Object.assign({},t[i-2][1].start)};return o=[["enter",l,e],["enter",c,e]],o=Tt(o,t.slice(r+1,r+a+3)),o=Tt(o,[["enter",u,e]]),o=Tt(o,se(e.parser.constructs.insideSpan.null,t.slice(r+a+4,i-3),e)),o=Tt(o,[["exit",u,e],t[i-2],t[i-1],["exit",c,e]]),o=Tt(o,t.slice(i+1)),o=Tt(o,[["exit",l,e]]),Et(t,r,t.length,o),t},resolveAll:function(t){let e=-1;for(;++e<t.length;){const n=t[e][1];"labelImage"!==n.type&&"labelLink"!==n.type&&"labelEnd"!==n.type||(t.splice(e+1,"labelImage"===n.type?4:2),n.type="data",e++)}return t}},Fe={tokenize:function(t,e,n){return function(e){return t.enter("resource"),t.enter("resourceMarker"),t.consume(e),t.exit("resourceMarker"),r};function r(e){return qt(e)?me(t,i)(e):i(e)}function i(e){return 41===e?c(e):fe(t,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(e)}function o(e){return qt(e)?me(t,a)(e):c(e)}function s(t){return n(t)}function a(e){return 34===e||39===e||40===e?pe(t,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(e):c(e)}function l(e){return qt(e)?me(t,c)(e):c(e)}function c(r){return 41===r?(t.enter("resourceMarker"),t.consume(r),t.exit("resourceMarker"),t.exit("resource"),e):n(r)}}},je={tokenize:function(t,e,n){const r=this;return function(e){return ge.call(r,t,i,o,"reference","referenceMarker","referenceString")(e)};function i(t){return r.parser.defined.includes(ye(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?e(t):n(t)}function o(t){return n(t)}}},ze={tokenize:function(t,e,n){return function(e){return t.enter("reference"),t.enter("referenceMarker"),t.consume(e),t.exit("referenceMarker"),r};function r(r){return 93===r?(t.enter("referenceMarker"),t.consume(r),t.exit("referenceMarker"),t.exit("reference"),e):n(r)}}};const Ge={name:"labelStartImage",tokenize:function(t,e,n){const r=this;return function(e){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(e),t.exit("labelImageMarker"),i};function i(e){return 91===e?(t.enter("labelMarker"),t.consume(e),t.exit("labelMarker"),t.exit("labelImage"),o):n(e)}function o(t){return 94===t&&"_hiddenFootnoteSupport"in r.parser.constructs?n(t):e(t)}},resolveAll:Ne.resolveAll};function qe(t){return null===t||qt(t)||Bt(t)?1:Wt(t)?2:void 0}const He={name:"attention",tokenize:function(t,e){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=qe(r);let o;return function(e){return o=e,t.enter("attentionSequence"),s(e)};function s(a){if(a===o)return t.consume(a),s;const l=t.exit("attentionSequence"),c=qe(a),u=!c||2===c&&i||n.includes(a),h=!i||2===i&&c||n.includes(r);return l._open=Boolean(42===o?u:u&&(i||!h)),l._close=Boolean(42===o?h:h&&(c||!u)),e(a)}},resolveAll:function(t,e){let n,r,i,o,s,a,l,c,u=-1;for(;++u<t.length;)if("enter"===t[u][0]&&"attentionSequence"===t[u][1].type&&t[u][1]._close)for(n=u;n--;)if("exit"===t[n][0]&&"attentionSequence"===t[n][1].type&&t[n][1]._open&&e.sliceSerialize(t[n][1]).charCodeAt(0)===e.sliceSerialize(t[u][1]).charCodeAt(0)){if((t[n][1]._close||t[u][1]._open)&&(t[u][1].end.offset-t[u][1].start.offset)%3&&!((t[n][1].end.offset-t[n][1].start.offset+t[u][1].end.offset-t[u][1].start.offset)%3))continue;a=t[n][1].end.offset-t[n][1].start.offset>1&&t[u][1].end.offset-t[u][1].start.offset>1?2:1;const h=Object.assign({},t[n][1].end),d=Object.assign({},t[u][1].start);We(h,-a),We(d,a),o={type:a>1?"strongSequence":"emphasisSequence",start:h,end:Object.assign({},t[n][1].end)},s={type:a>1?"strongSequence":"emphasisSequence",start:Object.assign({},t[u][1].start),end:d},i={type:a>1?"strongText":"emphasisText",start:Object.assign({},t[n][1].end),end:Object.assign({},t[u][1].start)},r={type:a>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},t[n][1].end=Object.assign({},o.start),t[u][1].start=Object.assign({},s.end),l=[],t[n][1].end.offset-t[n][1].start.offset&&(l=Tt(l,[["enter",t[n][1],e],["exit",t[n][1],e]])),l=Tt(l,[["enter",r,e],["enter",o,e],["exit",o,e],["enter",i,e]]),l=Tt(l,se(e.parser.constructs.insideSpan.null,t.slice(n+1,u),e)),l=Tt(l,[["exit",i,e],["enter",s,e],["exit",s,e],["exit",r,e]]),t[u][1].end.offset-t[u][1].start.offset?(c=2,l=Tt(l,[["enter",t[u][1],e],["exit",t[u][1],e]])):c=0,Et(t,n-1,u-n+3,l),u=n+l.length-c-2;break}u=-1;for(;++u<t.length;)"attentionSequence"===t[u][1].type&&(t[u][1].type="data");return t}};function We(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}const Be={name:"autolink",tokenize:function(t,e,n){let r=0;return function(e){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(e),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),i};function i(e){return Mt(e)?(t.consume(e),o):64===e?n(e):l(e)}function o(t){return 43===t||45===t||46===t||Pt(t)?(r=1,s(t)):l(t)}function s(e){return 58===e?(t.consume(e),r=0,a):(43===e||45===e||46===e||Pt(e))&&r++<32?(t.consume(e),s):(r=0,l(e))}function a(r){return 62===r?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(r),t.exit("autolinkMarker"),t.exit("autolink"),e):null===r||32===r||60===r||Nt(r)?n(r):(t.consume(r),a)}function l(e){return 64===e?(t.consume(e),c):Lt(e)?(t.consume(e),l):n(e)}function c(t){return Pt(t)?u(t):n(t)}function u(n){return 46===n?(t.consume(n),r=0,c):62===n?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(n),t.exit("autolinkMarker"),t.exit("autolink"),e):h(n)}function h(e){if((45===e||Pt(e))&&r++<63){const n=45===e?h:u;return t.consume(e),n}return n(e)}}};const Ye={name:"htmlText",tokenize:function(t,e,n){const r=this;let i,o,s;return function(e){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(e),a};function a(e){return 33===e?(t.consume(e),l):47===e?(t.consume(e),x):63===e?(t.consume(e),_):Mt(e)?(t.consume(e),S):n(e)}function l(e){return 45===e?(t.consume(e),c):91===e?(t.consume(e),o=0,f):Mt(e)?(t.consume(e),y):n(e)}function c(e){return 45===e?(t.consume(e),d):n(e)}function u(e){return null===e?n(e):45===e?(t.consume(e),h):Gt(e)?(s=u,D(e)):(t.consume(e),u)}function h(e){return 45===e?(t.consume(e),d):u(e)}function d(t){return 62===t?R(t):45===t?h(t):u(t)}function f(e){const r="CDATA[";return e===r.charCodeAt(o++)?(t.consume(e),6===o?g:f):n(e)}function g(e){return null===e?n(e):93===e?(t.consume(e),p):Gt(e)?(s=g,D(e)):(t.consume(e),g)}function p(e){return 93===e?(t.consume(e),m):g(e)}function m(e){return 62===e?R(e):93===e?(t.consume(e),m):g(e)}function y(e){return null===e||62===e?R(e):Gt(e)?(s=y,D(e)):(t.consume(e),y)}function _(e){return null===e?n(e):63===e?(t.consume(e),v):Gt(e)?(s=_,D(e)):(t.consume(e),_)}function v(t){return 62===t?R(t):_(t)}function x(e){return Mt(e)?(t.consume(e),w):n(e)}function w(e){return 45===e||Pt(e)?(t.consume(e),w):b(e)}function b(e){return Gt(e)?(s=b,D(e)):Ht(e)?(t.consume(e),b):R(e)}function S(e){return 45===e||Pt(e)?(t.consume(e),S):47===e||62===e||qt(e)?E(e):n(e)}function E(e){return 47===e?(t.consume(e),R):58===e||95===e||Mt(e)?(t.consume(e),T):Gt(e)?(s=E,D(e)):Ht(e)?(t.consume(e),E):R(e)}function T(e){return 45===e||46===e||58===e||95===e||Pt(e)?(t.consume(e),T):C(e)}function C(e){return 61===e?(t.consume(e),I):Gt(e)?(s=C,D(e)):Ht(e)?(t.consume(e),C):E(e)}function I(e){return null===e||60===e||61===e||62===e||96===e?n(e):34===e||39===e?(t.consume(e),i=e,k):Gt(e)?(s=I,D(e)):Ht(e)?(t.consume(e),I):(t.consume(e),O)}function k(e){return e===i?(t.consume(e),i=void 0,A):null===e?n(e):Gt(e)?(s=k,D(e)):(t.consume(e),k)}function O(e){return null===e||34===e||39===e||60===e||61===e||96===e?n(e):47===e||62===e||qt(e)?E(e):(t.consume(e),O)}function A(t){return 47===t||62===t||qt(t)?E(t):n(t)}function R(r){return 62===r?(t.consume(r),t.exit("htmlTextData"),t.exit("htmlText"),e):n(r)}function D(e){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),M}function M(e){return Ht(e)?Ut(t,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(e):P(e)}function P(e){return t.enter("htmlTextData"),s(e)}}};const Ue={name:"labelStartLink",tokenize:function(t,e,n){const r=this;return function(e){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(e),t.exit("labelMarker"),t.exit("labelLink"),i};function i(t){return 94===t&&"_hiddenFootnoteSupport"in r.parser.constructs?n(t):e(t)}},resolveAll:Ne.resolveAll};const Ke={name:"hardBreakEscape",tokenize:function(t,e,n){return function(e){return t.enter("hardBreakEscape"),t.consume(e),r};function r(r){return Gt(r)?(t.exit("hardBreakEscape"),e(r)):n(r)}}};const $e={name:"codeText",tokenize:function(t,e,n){let r,i,o=0;return function(e){return t.enter("codeText"),t.enter("codeTextSequence"),s(e)};function s(e){return 96===e?(t.consume(e),o++,s):(t.exit("codeTextSequence"),a(e))}function a(e){return null===e?n(e):32===e?(t.enter("space"),t.consume(e),t.exit("space"),a):96===e?(i=t.enter("codeTextSequence"),r=0,c(e)):Gt(e)?(t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),a):(t.enter("codeTextData"),l(e))}function l(e){return null===e||32===e||96===e||Gt(e)?(t.exit("codeTextData"),a(e)):(t.consume(e),l)}function c(n){return 96===n?(t.consume(n),r++,c):r===o?(t.exit("codeTextSequence"),t.exit("codeText"),e(n)):(i.type="codeTextData",l(n))}},resolve:function(t){let e,n,r=t.length-4,i=3;if(("lineEnding"===t[i][1].type||"space"===t[i][1].type)&&("lineEnding"===t[r][1].type||"space"===t[r][1].type))for(e=i;++e<r;)if("codeTextData"===t[e][1].type){t[i][1].type="codeTextPadding",t[r][1].type="codeTextPadding",i+=2,r-=2;break}e=i-1,r++;for(;++e<=r;)void 0===n?e!==r&&"lineEnding"!==t[e][1].type&&(n=e):e!==r&&"lineEnding"!==t[e][1].type||(t[n][1].type="codeTextData",e!==n+2&&(t[n][1].end=t[e-1][1].end,t.splice(n+2,e-n-2),r-=e-n-2,e=n+2),n=void 0);return t},previous:function(t){return 96!==t||"characterEscape"===this.events[this.events.length-1][1].type}};const Ve={42:ce,43:ce,45:ce,48:ce,49:ce,50:ce,51:ce,52:ce,53:ce,54:ce,55:ce,56:ce,57:ce,62:de},Xe={91:_e},Ze={[-2]:xe,[-1]:xe,32:xe},Je={35:be,42:le,45:[Se,le],60:Ce,61:Se,95:le,96:Ae,126:Ae},Qe={38:Me,92:Pe},tn={[-5]:Le,[-4]:Le,[-3]:Le,33:Ge,38:Me,42:He,60:[Be,Ye],91:Ue,92:[Ke,Pe],93:Ne,95:He,96:$e},en={null:[He,te]},nn={null:[42,95]},rn={null:[]};function on(t){const e=function(t){const e={};let n=-1;for(;++n<t.length;)Rt(e,t[n]);return e}([i,...(t||{}).extensions||[]]),n={defined:[],lazy:{},constructs:e,content:r(Kt),document:r($t),flow:r(Qt),string:r(ee),text:r(ne)};return n;function r(t){return function(e){return ae(n,t,e)}}}const sn=/[\0\t\n\r]/g;function an(t,e){const n=Number.parseInt(t,e);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":String.fromCodePoint(n)}const ln=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function cn(t,e,n){if(e)return e;if(35===n.charCodeAt(0)){const t=n.charCodeAt(1),e=120===t||88===t;return an(n.slice(e?2:1),e?16:10)}return De(n)||t}const un={}.hasOwnProperty;function hn(t,e,n){return"string"!==typeof e&&(n=e,e=void 0),function(t){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(et),autolinkProtocol:T,autolinkEmail:T,atxHeading:o(Z),blockQuote:o(Y),characterEscape:T,characterReference:T,codeFenced:o(U),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(U,s),codeText:o(K,s),codeTextData:T,data:T,codeFlowValue:T,definition:o($),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(V),hardBreakEscape:o(J),hardBreakTrailing:o(J),htmlFlow:o(Q,s),htmlFlowData:T,htmlText:o(Q,s),htmlTextData:T,image:o(tt),label:s,link:o(et),listItem:o(rt),listItemValue:d,listOrdered:o(nt,h),listUnordered:o(nt),paragraph:o(it),reference:z,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(Z),strong:o(ot),thematicBreak:o(at)},exit:{atxHeading:l(),atxHeadingSequence:w,autolink:l(),autolinkEmail:B,autolinkProtocol:W,blockQuote:l(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:q,characterReferenceMarkerNumeric:q,characterReferenceValue:H,codeFenced:l(m),codeFencedFence:p,codeFencedFenceInfo:f,codeFencedFenceMeta:g,codeFlowValue:C,codeIndented:l(y),codeText:l(R),codeTextData:C,data:C,definition:l(),definitionDestinationString:x,definitionLabelString:_,definitionTitleString:v,emphasis:l(),hardBreakEscape:l(k),hardBreakTrailing:l(k),htmlFlow:l(O),htmlFlowData:C,htmlText:l(A),htmlTextData:C,image:l(M),label:L,labelText:P,lineEnding:I,link:l(D),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:G,resourceDestinationString:N,resourceTitleString:F,resource:j,setextHeading:l(E),setextHeadingLineSequence:S,setextHeadingText:b,strong:l(),thematicBreak:l()}};fn(e,(t||{}).mdastExtensions||[]);const n={};return r;function r(t){let r={type:"root",children:[]};const o={stack:[r],tokenStack:[],config:e,enter:a,exit:c,buffer:s,resume:u,data:n},l=[];let h=-1;for(;++h<t.length;)if("listOrdered"===t[h][1].type||"listUnordered"===t[h][1].type)if("enter"===t[h][0])l.push(h);else{h=i(t,l.pop(),h)}for(h=-1;++h<t.length;){const n=e[t[h][0]];un.call(n,t[h][1].type)&&n[t[h][1].type].call(Object.assign({sliceSerialize:t[h][2].sliceSerialize},o),t[h][1])}if(o.tokenStack.length>0){const t=o.tokenStack[o.tokenStack.length-1];(t[1]||pn).call(o,void 0,t[0])}for(r.position={start:dn(t.length>0?t[0][1].start:{line:1,column:1,offset:0}),end:dn(t.length>0?t[t.length-2][1].end:{line:1,column:1,offset:0})},h=-1;++h<e.transforms.length;)r=e.transforms[h](r)||r;return r}function i(t,e,n){let r,i,o,s,a=e-1,l=-1,c=!1;for(;++a<=n;){const e=t[a];switch(e[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===e[0]?l++:l--,s=void 0;break;case"lineEndingBlank":"enter"===e[0]&&(!r||s||l||o||(o=a),s=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:s=void 0}if(!l&&"enter"===e[0]&&"listItemPrefix"===e[1].type||-1===l&&"exit"===e[0]&&("listUnordered"===e[1].type||"listOrdered"===e[1].type)){if(r){let s=a;for(i=void 0;s--;){const e=t[s];if("lineEnding"===e[1].type||"lineEndingBlank"===e[1].type){if("exit"===e[0])continue;i&&(t[i][1].type="lineEndingBlank",c=!0),e[1].type="lineEnding",i=s}else if("linePrefix"!==e[1].type&&"blockQuotePrefix"!==e[1].type&&"blockQuotePrefixWhitespace"!==e[1].type&&"blockQuoteMarker"!==e[1].type&&"listItemIndent"!==e[1].type)break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?t[i][1].start:e[1].end),t.splice(i||a,0,["exit",r,e[2]]),a++,n++}if("listItemPrefix"===e[1].type){const i={type:"listItem",_spread:!1,start:Object.assign({},e[1].start),end:void 0};r=i,t.splice(a,0,["enter",i,e[2]]),a++,n++,o=void 0,s=!0}}}return t[e][1]._spread=c,n}function o(t,e){return n;function n(n){a.call(this,t(n),n),e&&e.call(this,n)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(t,e,n){this.stack[this.stack.length-1].children.push(t),this.stack.push(t),this.tokenStack.push([e,n]),t.position={start:dn(e.start),end:void 0}}function l(t){return e;function e(e){t&&t.call(this,e),c.call(this,e)}}function c(t,e){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+t.type+"` ("+X({start:t.start,end:t.end})+"): it\u2019s not open");if(r[0].type!==t.type)if(e)e.call(this,t,r[0]);else{(r[1]||pn).call(this,t,r[0])}n.position.end=dn(t.end)}function u(){return function(t,e){const n=e||wt;return bt(t,"boolean"!==typeof n.includeImageAlt||n.includeImageAlt,"boolean"!==typeof n.includeHtml||n.includeHtml)}(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function d(t){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(t),10),this.data.expectingFirstListItemValue=void 0}}function f(){const t=this.resume();this.stack[this.stack.length-1].lang=t}function g(){const t=this.resume();this.stack[this.stack.length-1].meta=t}function p(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function m(){const t=this.resume();this.stack[this.stack.length-1].value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const t=this.resume();this.stack[this.stack.length-1].value=t.replace(/(\r?\n|\r)$/g,"")}function _(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.label=e,n.identifier=ye(this.sliceSerialize(t)).toLowerCase()}function v(){const t=this.resume();this.stack[this.stack.length-1].title=t}function x(){const t=this.resume();this.stack[this.stack.length-1].url=t}function w(t){const e=this.stack[this.stack.length-1];if(!e.depth){const n=this.sliceSerialize(t).length;e.depth=n}}function b(){this.data.setextHeadingSlurpLineEnding=!0}function S(t){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(t).codePointAt(0)?1:2}function E(){this.data.setextHeadingSlurpLineEnding=void 0}function T(t){const e=this.stack[this.stack.length-1].children;let n=e[e.length-1];n&&"text"===n.type||(n=st(),n.position={start:dn(t.start),end:void 0},e.push(n)),this.stack.push(n)}function C(t){const e=this.stack.pop();e.value+=this.sliceSerialize(t),e.position.end=dn(t.end)}function I(t){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=dn(t.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(n.type)&&(T.call(this,t),C.call(this,t))}function k(){this.data.atHardBreak=!0}function O(){const t=this.resume();this.stack[this.stack.length-1].value=t}function A(){const t=this.resume();this.stack[this.stack.length-1].value=t}function R(){const t=this.resume();this.stack[this.stack.length-1].value=t}function D(){const t=this.stack[this.stack.length-1];if(this.data.inReference){const e=this.data.referenceType||"shortcut";t.type+="Reference",t.referenceType=e,delete t.url,delete t.title}else delete t.identifier,delete t.label;this.data.referenceType=void 0}function M(){const t=this.stack[this.stack.length-1];if(this.data.inReference){const e=this.data.referenceType||"shortcut";t.type+="Reference",t.referenceType=e,delete t.url,delete t.title}else delete t.identifier,delete t.label;this.data.referenceType=void 0}function P(t){const e=this.sliceSerialize(t),n=this.stack[this.stack.length-2];n.label=function(t){return t.replace(ln,cn)}(e),n.identifier=ye(e).toLowerCase()}function L(){const t=this.stack[this.stack.length-1],e=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const e=t.children;n.children=e}else n.alt=e}function N(){const t=this.resume();this.stack[this.stack.length-1].url=t}function F(){const t=this.resume();this.stack[this.stack.length-1].title=t}function j(){this.data.inReference=void 0}function z(){this.data.referenceType="collapsed"}function G(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.label=e,n.identifier=ye(this.sliceSerialize(t)).toLowerCase(),this.data.referenceType="full"}function q(t){this.data.characterReferenceType=t.type}function H(t){const e=this.sliceSerialize(t),n=this.data.characterReferenceType;let r;if(n)r=an(e,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=De(e)}const i=this.stack.pop();i.value+=r,i.position.end=dn(t.end)}function W(t){C.call(this,t);this.stack[this.stack.length-1].url=this.sliceSerialize(t)}function B(t){C.call(this,t);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(t)}function Y(){return{type:"blockquote",children:[]}}function U(){return{type:"code",lang:null,meta:null,value:""}}function K(){return{type:"inlineCode",value:""}}function $(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function V(){return{type:"emphasis",children:[]}}function Z(){return{type:"heading",depth:0,children:[]}}function J(){return{type:"break"}}function Q(){return{type:"html",value:""}}function tt(){return{type:"image",title:null,url:"",alt:null}}function et(){return{type:"link",title:null,url:"",children:[]}}function nt(t){return{type:"list",ordered:"listOrdered"===t.type,start:null,spread:t._spread,children:[]}}function rt(t){return{type:"listItem",spread:t._spread,checked:null,children:[]}}function it(){return{type:"paragraph",children:[]}}function ot(){return{type:"strong",children:[]}}function st(){return{type:"text",value:""}}function at(){return{type:"thematicBreak"}}}(n)(function(t){for(;!kt(t););return t}(on(n).document().write(function(){let t,e=1,n="",r=!0;return function(i,o,s){const a=[];let l,c,u,h,d;for(i=n+("string"===typeof i?i.toString():new TextDecoder(o||void 0).decode(i)),u=0,n="",r&&(65279===i.charCodeAt(0)&&u++,r=void 0);u<i.length;){if(sn.lastIndex=u,l=sn.exec(i),h=l&&void 0!==l.index?l.index:i.length,d=i.charCodeAt(h),!l){n=i.slice(u);break}if(10===d&&u===h&&t)a.push(-3),t=void 0;else switch(t&&(a.push(-5),t=void 0),u<h&&(a.push(i.slice(u,h)),e+=h-u),d){case 0:a.push(65533),e++;break;case 9:for(c=4*Math.ceil(e/4),a.push(-2);e++<c;)a.push(-1);break;case 10:a.push(-4),e=1;break;default:t=!0,e=1}u=h+1}return s&&(t&&a.push(-5),n&&a.push(n),a.push(null)),a}}()(t,e,!0))))}function dn(t){return{line:t.line,column:t.column,offset:t.offset}}function fn(t,e){let n=-1;for(;++n<e.length;){const r=e[n];Array.isArray(r)?fn(t,r):gn(t,r)}}function gn(t,e){let n;for(n in e)if(un.call(e,n))switch(n){case"canContainEols":{const r=e[n];r&&t[n].push(...r);break}case"transforms":{const r=e[n];r&&t[n].push(...r);break}case"enter":case"exit":{const r=e[n];r&&Object.assign(t[n],r);break}}}function pn(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+X({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+X({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+X({start:e.start,end:e.end})+") is still open")}function mn(t){const e=this;e.parser=function(n){return hn(n,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}const yn="object"===typeof self?self:globalThis,_n=t=>((t,e)=>{const n=(e,n)=>(t.set(n,e),e),r=i=>{if(t.has(i))return t.get(i);const[o,s]=e[i];switch(o){case 0:case-1:return n(s,i);case 1:{const t=n([],i);for(const e of s)t.push(r(e));return t}case 2:{const t=n({},i);for(const[e,n]of s)t[r(e)]=r(n);return t}case 3:return n(new Date(s),i);case 4:{const{source:t,flags:e}=s;return n(new RegExp(t,e),i)}case 5:{const t=n(new Map,i);for(const[e,n]of s)t.set(r(e),r(n));return t}case 6:{const t=n(new Set,i);for(const e of s)t.add(r(e));return t}case 7:{const{name:t,message:e}=s;return n(new yn[t](e),i)}case 8:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i)}return n(new yn[o](s),i)};return r})(new Map,t)(0),vn="",{toString:xn}={},{keys:wn}=Object,bn=t=>{const e=typeof t;if("object"!==e||!t)return[0,e];const n=xn.call(t).slice(8,-1);switch(n){case"Array":return[1,vn];case"Object":return[2,vn];case"Date":return[3,vn];case"RegExp":return[4,vn];case"Map":return[5,vn];case"Set":return[6,vn]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Sn=t=>{let[e,n]=t;return 0===e&&("function"===n||"symbol"===n)},En=function(t){let{json:e,lossy:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=[];return((t,e,n,r)=>{const i=(t,e)=>{const i=r.push(t)-1;return n.set(e,i),i},o=r=>{if(n.has(r))return n.get(r);let[s,a]=bn(r);switch(s){case 0:{let e=r;switch(a){case"bigint":s=8,e=r.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+a);e=null;break;case"undefined":return i([-1],r)}return i([s,e],r)}case 1:{if(a)return i([a,[...r]],r);const t=[],e=i([s,t],r);for(const n of r)t.push(o(n));return e}case 2:{if(a)switch(a){case"BigInt":return i([a,r.toString()],r);case"Boolean":case"Number":case"String":return i([a,r.valueOf()],r)}if(e&&"toJSON"in r)return o(r.toJSON());const n=[],l=i([s,n],r);for(const e of wn(r))!t&&Sn(bn(r[e]))||n.push([o(e),o(r[e])]);return l}case 3:return i([s,r.toISOString()],r);case 4:{const{source:t,flags:e}=r;return i([s,{source:t,flags:e}],r)}case 5:{const e=[],n=i([s,e],r);for(const[i,s]of r)(t||!Sn(bn(i))&&!Sn(bn(s)))&&e.push([o(i),o(s)]);return n}case 6:{const e=[],n=i([s,e],r);for(const i of r)!t&&Sn(bn(i))||e.push(o(i));return n}}const{message:l}=r;return i([s,{name:a,message:l}],r)};return o})(!(e||n),!!e,new Map,r)(t),r},Tn="function"===typeof structuredClone?(t,e)=>e&&("json"in e||"lossy"in e)?_n(En(t,e)):structuredClone(t):(t,e)=>_n(En(t,e));function Cn(t){const e=[];let n=-1,r=0,i=0;for(;++n<t.length;){const o=t.charCodeAt(n);let s="";if(37===o&&Pt(t.charCodeAt(n+1))&&Pt(t.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const e=t.charCodeAt(n+1);o<56320&&e>56319&&e<57344?(s=String.fromCharCode(o,e),i=1):s="\ufffd"}else s=String.fromCharCode(o);s&&(e.push(t.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return e.join("")+t.slice(r)}function In(t,e){const n=[{type:"text",value:"\u21a9"}];return e>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(e)}]}),n}function kn(t,e){return"Back to reference "+(t+1)+(e>1?"-"+e:"")}const On=function(t){if(null===t||void 0===t)return Rn;if("function"===typeof t)return An(t);if("object"===typeof t)return Array.isArray(t)?function(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=On(t[n]);return An(r);function r(){let t=-1;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(;++t<e.length;)if(e[t].apply(this,r))return!0;return!1}}(t):function(t){const e=t;return An(n);function n(n){const r=n;let i;for(i in t)if(r[i]!==e[i])return!1;return!0}}(t);if("string"===typeof t)return function(t){return An(e);function e(e){return e&&e.type===t}}(t);throw new Error("Expected function, string, or object as test")};function An(t){return function(e,n,r){return Boolean(Dn(e)&&t.call(this,e,"number"===typeof n?n:void 0,r||void 0))}}function Rn(){return!0}function Dn(t){return null!==t&&"object"===typeof t&&"type"in t}const Mn=[],Pn=!0,Ln=!1,Nn="skip";function Fn(t,e,n,r){let i;"function"===typeof e&&"function"!==typeof n?(r=n,n=e):i=e;const o=On(i),s=r?-1:1;!function t(i,a,l){const c=i&&"object"===typeof i?i:{};if("string"===typeof c.type){const t="string"===typeof c.tagName?c.tagName:"string"===typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+i.type+(t?"<"+t+">":"")+")"})}return u;function u(){let c,u,h,d=Mn;if((!e||o(i,a,l[l.length-1]||void 0))&&(d=function(t){if(Array.isArray(t))return t;if("number"===typeof t)return[Pn,t];return null===t||void 0===t?Mn:[t]}(n(i,l)),d[0]===Ln))return d;if("children"in i&&i.children){const e=i;if(e.children&&d[0]!==Nn)for(u=(r?e.children.length:-1)+s,h=l.concat(e);u>-1&&u<e.children.length;){const n=e.children[u];if(c=t(n,u,h)(),c[0]===Ln)return c;u="number"===typeof c[1]?c[1]:u+s}}return d}}(t,void 0,[])()}function jn(t,e,n,r){let i,o,s;"function"===typeof e&&"function"!==typeof n?(o=void 0,s=e,i=n):(o=e,s=n,i=r),Fn(t,o,(function(t,e){const n=e[e.length-1],r=n?n.children.indexOf(t):void 0;return s(t,r,n)}),i)}function zn(t,e){const n=e.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(e.label||e.identifier)+"]"),"imageReference"===e.type)return[{type:"text",value:"!["+e.alt+r}];const i=t.all(e),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&"text"===s.type?s.value+=r:i.push({type:"text",value:r}),i}function Gn(t){const e=t.spread;return null===e||void 0===e?t.children.length>1:e}const qn=9,Hn=32;function Wn(t){const e=String(t),n=/\r?\n|\r/g;let r=n.exec(e),i=0;const o=[];for(;r;)o.push(Bn(e.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(e);return o.push(Bn(e.slice(i),i>0,!1)),o.join("")}function Bn(t,e,n){let r=0,i=t.length;if(e){let e=t.codePointAt(r);for(;e===qn||e===Hn;)r++,e=t.codePointAt(r)}if(n){let e=t.codePointAt(i-1);for(;e===qn||e===Hn;)i--,e=t.codePointAt(i-1)}return i>r?t.slice(r,i):""}const Yn={blockquote:function(t,e){const n={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(e),!0)};return t.patch(e,n),t.applyData(e,n)},break:function(t,e){const n={type:"element",tagName:"br",properties:{},children:[]};return t.patch(e,n),[t.applyData(e,n),{type:"text",value:"\n"}]},code:function(t,e){const n=e.value?e.value+"\n":"",r={};e.lang&&(r.className=["language-"+e.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return e.meta&&(i.data={meta:e.meta}),t.patch(e,i),i=t.applyData(e,i),i={type:"element",tagName:"pre",properties:{},children:[i]},t.patch(e,i),i},delete:function(t,e){const n={type:"element",tagName:"del",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},emphasis:function(t,e){const n={type:"element",tagName:"em",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},footnoteReference:function(t,e){const n="string"===typeof t.options.clobberPrefix?t.options.clobberPrefix:"user-content-",r=String(e.identifier).toUpperCase(),i=Cn(r.toLowerCase()),o=t.footnoteOrder.indexOf(r);let s,a=t.footnoteCounts.get(r);void 0===a?(a=0,t.footnoteOrder.push(r),s=t.footnoteOrder.length):s=o+1,a+=1,t.footnoteCounts.set(r,a);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};t.patch(e,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return t.patch(e,c),t.applyData(e,c)},heading:function(t,e){const n={type:"element",tagName:"h"+e.depth,properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},html:function(t,e){if(t.options.allowDangerousHtml){const n={type:"raw",value:e.value};return t.patch(e,n),t.applyData(e,n)}},imageReference:function(t,e){const n=String(e.identifier).toUpperCase(),r=t.definitionById.get(n);if(!r)return zn(t,e);const i={src:Cn(r.url||""),alt:e.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return t.patch(e,o),t.applyData(e,o)},image:function(t,e){const n={src:Cn(e.url)};null!==e.alt&&void 0!==e.alt&&(n.alt=e.alt),null!==e.title&&void 0!==e.title&&(n.title=e.title);const r={type:"element",tagName:"img",properties:n,children:[]};return t.patch(e,r),t.applyData(e,r)},inlineCode:function(t,e){const n={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};t.patch(e,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return t.patch(e,r),t.applyData(e,r)},linkReference:function(t,e){const n=String(e.identifier).toUpperCase(),r=t.definitionById.get(n);if(!r)return zn(t,e);const i={href:Cn(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:t.all(e)};return t.patch(e,o),t.applyData(e,o)},link:function(t,e){const n={href:Cn(e.url)};null!==e.title&&void 0!==e.title&&(n.title=e.title);const r={type:"element",tagName:"a",properties:n,children:t.all(e)};return t.patch(e,r),t.applyData(e,r)},listItem:function(t,e,n){const r=t.all(e),i=n?function(t){let e=!1;if("list"===t.type){e=t.spread||!1;const n=t.children;let r=-1;for(;!e&&++r<n.length;)e=Gn(n[r])}return e}(n):Gn(e),o={},s=[];if("boolean"===typeof e.checked){const t=r[0];let n;t&&"element"===t.type&&"p"===t.tagName?n=t:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const t=r[a];(i||0!==a||"element"!==t.type||"p"!==t.tagName)&&s.push({type:"text",value:"\n"}),"element"!==t.type||"p"!==t.tagName||i?s.push(t):s.push(...t.children)}const l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&s.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:o,children:s};return t.patch(e,c),t.applyData(e,c)},list:function(t,e){const n={},r=t.all(e);let i=-1;for("number"===typeof e.start&&1!==e.start&&(n.start=e.start);++i<r.length;){const t=r[i];if("element"===t.type&&"li"===t.tagName&&t.properties&&Array.isArray(t.properties.className)&&t.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:e.ordered?"ol":"ul",properties:n,children:t.wrap(r,!0)};return t.patch(e,o),t.applyData(e,o)},paragraph:function(t,e){const n={type:"element",tagName:"p",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},root:function(t,e){const n={type:"root",children:t.wrap(t.all(e))};return t.patch(e,n),t.applyData(e,n)},strong:function(t,e){const n={type:"element",tagName:"strong",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},table:function(t,e){const n=t.all(e),r=n.shift(),i=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:t.wrap([r],!0)};t.patch(e.children[0],n),i.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:t.wrap(n,!0)},o=$(e.children[1]),s=K(e.children[e.children.length-1]);o&&s&&(r.position={start:o,end:s}),i.push(r)}const o={type:"element",tagName:"table",properties:{},children:t.wrap(i,!0)};return t.patch(e,o),t.applyData(e,o)},tableCell:function(t,e){const n={type:"element",tagName:"td",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},tableRow:function(t,e,n){const r=n?n.children:void 0,i=0===(r?r.indexOf(e):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,s=o?o.length:e.children.length;let a=-1;const l=[];for(;++a<s;){const n=e.children[a],r={},s=o?o[a]:void 0;s&&(r.align=s);let c={type:"element",tagName:i,properties:r,children:[]};n&&(c.children=t.all(n),t.patch(n,c),c=t.applyData(n,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:t.wrap(l,!0)};return t.patch(e,c),t.applyData(e,c)},text:function(t,e){const n={type:"text",value:Wn(String(e.value))};return t.patch(e,n),t.applyData(e,n)},thematicBreak:function(t,e){const n={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(e,n),t.applyData(e,n)},toml:Un,yaml:Un,definition:Un,footnoteDefinition:Un};function Un(){}const Kn={}.hasOwnProperty,$n={};function Vn(t,e){t.position&&(e.position=function(t){const e=$(t),n=K(t);if(e&&n)return{start:e,end:n}}(t))}function Xn(t,e){let n=e;if(t&&t.data){const e=t.data.hName,r=t.data.hChildren,i=t.data.hProperties;if("string"===typeof e)if("element"===n.type)n.tagName=e;else{n={type:"element",tagName:e,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&i&&Object.assign(n.properties,Tn(i)),"children"in n&&n.children&&null!==r&&void 0!==r&&(n.children=r)}return n}function Zn(t,e){const n=e.data||{},r=!("value"in e)||Kn.call(n,"hProperties")||Kn.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:t.all(e)}:{type:"text",value:e.value};return t.patch(e,r),t.applyData(e,r)}function Jn(t,e){const n=[];let r=-1;for(e&&n.push({type:"text",value:"\n"});++r<t.length;)r&&n.push({type:"text",value:"\n"}),n.push(t[r]);return e&&t.length>0&&n.push({type:"text",value:"\n"}),n}function Qn(t){let e=0,n=t.charCodeAt(e);for(;9===n||32===n;)e++,n=t.charCodeAt(e);return t.slice(e)}function tr(t,e){const n=function(t,e){const n=e||$n,r=new Map,i=new Map,o=new Map,s={...Yn,...n.handlers},a={all:function(t){const e=[];if("children"in t){const n=t.children;let r=-1;for(;++r<n.length;){const i=a.one(n[r],t);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=Qn(i.value)),!Array.isArray(i)&&"element"===i.type)){const t=i.children[0];t&&"text"===t.type&&(t.value=Qn(t.value))}Array.isArray(i)?e.push(...i):e.push(i)}}}return e},applyData:Xn,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:s,one:function(t,e){const n=t.type,r=a.handlers[n];if(Kn.call(a.handlers,n)&&r)return r(a,t,e);if(a.options.passThrough&&a.options.passThrough.includes(n)){if("children"in t){const{children:e,...n}=t,r=Tn(n);return r.children=a.all(t),r}return Tn(t)}return(a.options.unknownHandler||Zn)(a,t,e)},options:n,patch:Vn,wrap:Jn};return jn(t,(function(t){if("definition"===t.type||"footnoteDefinition"===t.type){const e="definition"===t.type?r:i,n=String(t.identifier).toUpperCase();e.has(n)||e.set(n,t)}})),a}(t,e),r=n.one(t,void 0),i=function(t){const e="string"===typeof t.options.clobberPrefix?t.options.clobberPrefix:"user-content-",n=t.options.footnoteBackContent||In,r=t.options.footnoteBackLabel||kn,i=t.options.footnoteLabel||"Footnotes",o=t.options.footnoteLabelTagName||"h2",s=t.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let l=-1;for(;++l<t.footnoteOrder.length;){const i=t.footnoteById.get(t.footnoteOrder[l]);if(!i)continue;const o=t.all(i),s=String(i.identifier).toUpperCase(),c=Cn(s.toLowerCase());let u=0;const h=[],d=t.footnoteCounts.get(s);for(;void 0!==d&&++u<=d;){h.length>0&&h.push({type:"text",value:" "});let t="string"===typeof n?n:n(l,u);"string"===typeof t&&(t={type:"text",value:t}),h.push({type:"element",tagName:"a",properties:{href:"#"+e+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"===typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(t)?t:[t]})}const f=o[o.length-1];if(f&&"element"===f.type&&"p"===f.tagName){const t=f.children[f.children.length-1];t&&"text"===t.type?t.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...h)}else o.push(...h);const g={type:"element",tagName:"li",properties:{id:e+"fn-"+c},children:t.wrap(o,!0)};t.patch(i,g),a.push(g)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Tn(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:t.wrap(a,!0)},{type:"text",value:"\n"}]}}(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:"\n"},i),o}function er(t,e){return t&&"run"in t?async function(n,r){const i=tr(n,{file:r,...e});await t.run(i,r)}:function(n,r){return tr(n,{file:r,...e||t})}}function nr(t){if(t)throw t}var rr=n(17294);function ir(t){if("object"!==typeof t||null===t)return!1;const e=Object.getPrototypeOf(t);return(null===e||e===Object.prototype||null===Object.getPrototypeOf(e))&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function or(){const t=[],e={run:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];let i=-1;const o=n.pop();if("function"!==typeof o)throw new TypeError("Expected function as last argument, not "+o);!function e(r){const s=t[++i];let a=-1;if(r)o(r);else{for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];for(;++a<n.length;)null!==c[a]&&void 0!==c[a]||(c[a]=n[a]);n=c,s?function(t,e){let n;return i;function i(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];const l=t.length>i.length;let c;l&&i.push(o);try{c=t.apply(this,i)}catch(r){if(l&&n)throw r;return o(r)}l||(c&&c.then&&"function"===typeof c.then?c.then(s,o):c instanceof Error?o(c):s(c))}function o(t){if(!n){n=!0;for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];e(t,...i)}}function s(t){o(null,t)}}(s,e)(...c):o(null,...c)}}(null,...n)},use:function(n){if("function"!==typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return t.push(n),e}};return e}const sr={basename:function(t,e){if(void 0!==e&&"string"!==typeof e)throw new TypeError('"ext" argument must be a string');ar(t);let n,r=0,i=-1,o=t.length;if(void 0===e||0===e.length||e.length>t.length){for(;o--;)if(47===t.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":t.slice(r,i)}if(e===t)return"";let s=-1,a=e.length-1;for(;o--;)if(47===t.codePointAt(o)){if(n){r=o+1;break}}else s<0&&(n=!0,s=o+1),a>-1&&(t.codePointAt(o)===e.codePointAt(a--)?a<0&&(i=o):(a=-1,i=s));r===i?i=s:i<0&&(i=t.length);return t.slice(r,i)},dirname:function(t){if(ar(t),0===t.length)return".";let e,n=-1,r=t.length;for(;--r;)if(47===t.codePointAt(r)){if(e){n=r;break}}else e||(e=!0);return n<0?47===t.codePointAt(0)?"/":".":1===n&&47===t.codePointAt(0)?"//":t.slice(0,n)},extname:function(t){ar(t);let e,n=t.length,r=-1,i=0,o=-1,s=0;for(;n--;){const a=t.codePointAt(n);if(47!==a)r<0&&(e=!0,r=n+1),46===a?o<0?o=n:1!==s&&(s=1):o>-1&&(s=-1);else if(e){i=n+1;break}}if(o<0||r<0||0===s||1===s&&o===r-1&&o===i+1)return"";return t.slice(o,r)},join:function(){let t,e=-1;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(;++e<r.length;)ar(r[e]),r[e]&&(t=void 0===t?r[e]:t+"/"+r[e]);return void 0===t?".":function(t){ar(t);const e=47===t.codePointAt(0);let n=function(t,e){let n,r,i="",o=0,s=-1,a=0,l=-1;for(;++l<=t.length;){if(l<t.length)n=t.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(s===l-1||1===a);else if(s!==l-1&&2===a){if(i.length<2||2!==o||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2))if(i.length>2){if(r=i.lastIndexOf("/"),r!==i.length-1){r<0?(i="",o=0):(i=i.slice(0,r),o=i.length-1-i.lastIndexOf("/")),s=l,a=0;continue}}else if(i.length>0){i="",o=0,s=l,a=0;continue}e&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+t.slice(s+1,l):i=t.slice(s+1,l),o=l-s-1;s=l,a=0}else 46===n&&a>-1?a++:a=-1}return i}(t,!e);0!==n.length||e||(n=".");n.length>0&&47===t.codePointAt(t.length-1)&&(n+="/");return e?"/"+n:n}(t)},sep:"/"};function ar(t){if("string"!==typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const lr={cwd:function(){return"/"}};function cr(t){return Boolean(null!==t&&"object"===typeof t&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&void 0===t.auth)}function ur(t){if("string"===typeof t)t=new URL(t);else if(!cr(t)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if("file:"!==t.protocol){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return function(t){if(""!==t.hostname){const t=new TypeError('File URL host must be "localhost" or empty on darwin');throw t.code="ERR_INVALID_FILE_URL_HOST",t}const e=t.pathname;let n=-1;for(;++n<e.length;)if(37===e.codePointAt(n)&&50===e.codePointAt(n+1)){const t=e.codePointAt(n+2);if(70===t||102===t){const t=new TypeError("File URL path must not include encoded / characters");throw t.code="ERR_INVALID_FILE_URL_PATH",t}}return decodeURIComponent(e)}(t)}const hr=["history","path","basename","stem","extname","dirname"];class dr{constructor(t){let e;e=t?cr(t)?{path:t}:"string"===typeof t||function(t){return Boolean(t&&"object"===typeof t&&"byteLength"in t&&"byteOffset"in t)}(t)?{value:t}:t:{},this.cwd=lr.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<hr.length;){const t=hr[r];t in e&&void 0!==e[t]&&null!==e[t]&&(this[t]="history"===t?[...e[t]]:e[t])}for(n in e)hr.includes(n)||(this[n]=e[n])}get basename(){return"string"===typeof this.path?sr.basename(this.path):void 0}set basename(t){gr(t,"basename"),fr(t,"basename"),this.path=sr.join(this.dirname||"",t)}get dirname(){return"string"===typeof this.path?sr.dirname(this.path):void 0}set dirname(t){pr(this.basename,"dirname"),this.path=sr.join(t||"",this.basename)}get extname(){return"string"===typeof this.path?sr.extname(this.path):void 0}set extname(t){if(fr(t,"extname"),pr(this.dirname,"extname"),t){if(46!==t.codePointAt(0))throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=sr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){cr(t)&&(t=ur(t)),gr(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return"string"===typeof this.path?sr.basename(this.path,this.extname):void 0}set stem(t){gr(t,"stem"),fr(t,"stem"),this.path=sr.join(this.dirname||"",t+(this.extname||""))}fail(t,e,n){const r=this.message(t,e,n);throw r.fatal=!0,r}info(t,e,n){const r=this.message(t,e,n);return r.fatal=void 0,r}message(t,e,n){const r=new tt(t,e,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(t){if(void 0===this.value)return"";if("string"===typeof this.value)return this.value;return new TextDecoder(t||void 0).decode(this.value)}}function fr(t,e){if(t&&t.includes(sr.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+sr.sep+"`")}function gr(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function pr(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}const mr=function(t){const e=this.constructor.prototype,n=e[t],r=function(){return n.apply(r,arguments)};Object.setPrototypeOf(r,e);const i=Object.getOwnPropertyNames(n);for(const o of i){const t=Object.getOwnPropertyDescriptor(n,o);t&&Object.defineProperty(r,o,t)}return r},yr={}.hasOwnProperty;class _r extends mr{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=or()}copy(){const t=new _r;let e=-1;for(;++e<this.attachers.length;){const n=this.attachers[e];t.use(...n)}return t.data(rr(!0,{},this.namespace)),t}data(t,e){return"string"===typeof t?2===arguments.length?(br("data",this.frozen),this.namespace[t]=e,this):yr.call(this.namespace,t)&&this.namespace[t]||void 0:t?(br("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[e,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=e.call(t,...n);"function"===typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const e=Tr(t),n=this.parser||this.Parser;return xr("parse",n),n(String(e),e)}process(t,e){const n=this;return this.freeze(),xr("process",this.parser||this.Parser),wr("process",this.compiler||this.Compiler),e?r(void 0,e):new Promise(r);function r(r,i){const o=Tr(t),s=n.parse(o);function a(t,n){t||!n?i(t):r?r(n):e(void 0,n)}n.run(s,o,(function(t,e,r){if(t||!e||!r)return a(t);const i=e,o=n.stringify(i,r);!function(t){return"string"===typeof t||function(t){return Boolean(t&&"object"===typeof t&&"byteLength"in t&&"byteOffset"in t)}(t)}(o)?r.result=o:r.value=o,a(t,r)}))}}processSync(t){let e,n=!1;return this.freeze(),xr("processSync",this.parser||this.Parser),wr("processSync",this.compiler||this.Compiler),this.process(t,(function(t,r){n=!0,nr(t),e=r})),Er("processSync","process",n),e}run(t,e,n){Sr(t),this.freeze();const r=this.transformers;return n||"function"!==typeof e||(n=e,e=void 0),n?i(void 0,n):new Promise(i);function i(i,o){const s=Tr(e);r.run(t,s,(function(e,r,s){const a=r||t;e?o(e):i?i(a):n(void 0,a,s)}))}}runSync(t,e){let n,r=!1;return this.run(t,e,(function(t,e){nr(t),n=e,r=!0})),Er("runSync","run",r),n}stringify(t,e){this.freeze();const n=Tr(e),r=this.compiler||this.Compiler;return wr("stringify",r),Sr(t),r(t,n)}use(t){const e=this.attachers,n=this.namespace;if(br("use",this.frozen),null===t||void 0===t);else if("function"===typeof t){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];c(t,i)}else{if("object"!==typeof t)throw new TypeError("Expected usable value, not `"+t+"`");Array.isArray(t)?l(t):a(t)}return this;function s(t){if("function"===typeof t)c(t,[]);else{if("object"!==typeof t)throw new TypeError("Expected usable value, not `"+t+"`");if(Array.isArray(t)){const[e,...n]=t;c(e,n)}else a(t)}}function a(t){if(!("plugins"in t)&&!("settings"in t))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(t.plugins),t.settings&&(n.settings=rr(!0,n.settings,t.settings))}function l(t){let e=-1;if(null===t||void 0===t);else{if(!Array.isArray(t))throw new TypeError("Expected a list of plugins, not `"+t+"`");for(;++e<t.length;){s(t[e])}}}function c(t,n){let r=-1,i=-1;for(;++r<e.length;)if(e[r][0]===t){i=r;break}if(-1===i)e.push([t,...n]);else if(n.length>0){let[r,...o]=n;const s=e[i][1];ir(s)&&ir(r)&&(r=rr(!0,s,r)),e[i]=[t,r,...o]}}}}const vr=(new _r).freeze();function xr(t,e){if("function"!==typeof e)throw new TypeError("Cannot `"+t+"` without `parser`")}function wr(t,e){if("function"!==typeof e)throw new TypeError("Cannot `"+t+"` without `compiler`")}function br(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Sr(t){if(!ir(t)||"string"!==typeof t.type)throw new TypeError("Expected node, got `"+t+"`")}function Er(t,e,n){if(!n)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function Tr(t){return function(t){return Boolean(t&&"object"===typeof t&&"message"in t&&"messages"in t)}(t)?t:new dr(t)}const Cr=[],Ir={allowDangerousHtml:!0},kr=/^(https?|ircs?|mailto|xmpp)$/i,Or=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Ar(t){const e=t.allowedElements,n=t.allowElement,r=t.children||"",i=t.className,o=t.components,s=t.disallowedElements,a=t.rehypePlugins||Cr,l=t.remarkPlugins||Cr,c=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...Ir}:Ir,u=t.skipHtml,h=t.unwrapDisallowed,d=t.urlTransform||Rr,f=vr().use(mn).use(l).use(er,c).use(a),g=new dr;"string"===typeof r&&(g.value=r);for(const y of Or)Object.hasOwn(t,y.from)&&(y.from,y.to&&y.to,y.id);const p=f.parse(g);let m=f.runSync(p,g);return i&&(m={type:"element",tagName:"div",properties:{className:i},children:"root"===m.type?m.children:[m]}),jn(m,(function(t,r,i){if("raw"===t.type&&i&&"number"===typeof r)return u?i.children.splice(r,1):i.children[r]={type:"text",value:t.value},r;if("element"===t.type){let e;for(e in vt)if(Object.hasOwn(vt,e)&&Object.hasOwn(t.properties,e)){const n=t.properties[e],r=vt[e];(null===r||r.includes(t.tagName))&&(t.properties[e]=d(String(n||""),e,t))}}if("element"===t.type){let o=e?!e.includes(t.tagName):!!s&&s.includes(t.tagName);if(!o&&n&&"number"===typeof r&&(o=!n(t,r,i)),o&&i&&"number"===typeof r)return h&&t.children?i.children.splice(r,1,...t.children):i.children.splice(r,1),r}})),lt(m,{Fragment:xt.Fragment,components:o,ignoreInvalidStyle:!0,jsx:xt.jsx,jsxs:xt.jsxs,passKeys:!0,passNode:!0})}function Rr(t){const e=t.indexOf(":"),n=t.indexOf("?"),r=t.indexOf("#"),i=t.indexOf("/");return e<0||i>-1&&e>i||n>-1&&e>n||r>-1&&e>r||kr.test(t.slice(0,e))?t:""}}}]);
|
|
3
|
+
//# sourceMappingURL=5056.9247882b.chunk.js.map
|