PageSourceSearch

https://bobby.ai/_next/static/chunks/1940-0cc00fa057419528.js

js bobby.ai collected 2026-10-05 11:51:32 UTC 227,039 bytes, 1 lines download raw bytes

1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="4d133fce-7a44-4ea1-a7b5-b8db3686dd68",t._sentryDebugIdIdentifier="sentry-dbid-4d133fce-7a44-4ea1-a7b5-b8db3686dd68")}catch(t){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1940],{10341:(t,e,r)=>{"use strict";var n=r(14779),i={"text/plain":"Text","text/html":"Url",default:"Text"};t.exports=function(t,e){var r,u,o,a,s,c,f,l,h=!1;e||(e={}),o=e.debug||!1;try{if(s=n(),c=document.createRange(),f=document.getSelection(),(l=document.createElement("span")).textContent=t,l.ariaHidden="true",l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",function(r){if(r.stopPropagation(),e.format){if(r.preventDefault(),void 0===r.clipboardData){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var n=i[e.format]||i.default;window.clipboardData.setData(n,t)}else r.clipboardData.clearData(),r.clipboardData.setData(e.format,t)}e.onCopy&&(r.preventDefault(),e.onCopy(r.clipboardData))}),document.body.appendChild(l),c.selectNodeContents(l),f.addRange(c),!document.execCommand("copy"))throw Error("copy command was unsuccessful");h=!0}catch(n){o&&console.error("unable to copy using execCommand: ",n),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),h=!0}catch(n){o&&console.error("unable to copy using clipboardData: ",n),o&&console.error("falling back to prompt"),r="message"in e?e.message:"Copy to clipboard: #{key}, Enter",u=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",a=r.replace(/#{\s*key\s*}/g,u),window.prompt(a,t)}}finally{f&&("function"==typeof f.removeRange?f.removeRange(c):f.removeAllRanges()),l&&document.body.removeChild(l),s()}return h}},42014:function(t){var e;e=function(){"use strict";var t="millisecond",e="second",r="minute",n="hour",i="week",u="month",o="quarter",a="year",s="date",c="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,l=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},d="en",p={};p[d]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||"th")+"]"}};var D="$isDayjsObject",m=function(t){return t instanceof w||!(!t||!t[D])},g=function t(e,r,n){var i;if(!e)return d;if("string"==typeof e){var u=e.toLowerCase();p[u]&&(i=u),r&&(p[u]=r,i=u);var o=e.split("-");if(!i&&o.length>1)return t(o[0])}else{var a=e.name;p[a]=e,i=a}return!n&&i&&(d=i),i||!n&&d},v=function(t,e){if(m(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new w(r)},y={s:h,z:function(t){var e=-t.utcOffset(),r=Math.abs(e);return(e<=0?"+":"-")+h(Math.floor(r/60),2,"0")+":"+h(r%60,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),i=e.clone().add(n,u),o=r-i<0,a=e.clone().add(n+(o?-1:1),u);return+(-(n+(r-i)/(o?i-a:a-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(c){return({M:u,y:a,w:i,d:"day",D:s,h:n,m:r,s:e,ms:t,Q:o})[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}};y.l=g,y.i=m,y.w=function(t,e){return v(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var w=function(){function h(t){this.$L=g(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[D]=!0}var d=h.prototype;return d.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(y.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(f);if(n){var i=n[2]-1||0,u=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,u)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,u)}}return new Date(e)}(t),this.init()},d.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},d.$utils=function(){return y},d.isValid=function(){return this.$d.toString()!==c},d.isSame=function(t,e){var r=v(t);return this.startOf(e)<=r&&r<=this.endOf(e)},d.isAfter=function(t,e){return v(t)<this.startOf(e)},d.isBefore=function(t,e){return this.endOf(e)<v(t)},d.$g=function(t,e,r){return y.u(t)?this[e]:this.set(r,t)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(t,o){var c=this,f=!!y.u(o)||o,l=y.p(t),h=function(t,e){var r=y.w(c.$u?Date.UTC(c.$y,e,t):new Date(c.$y,e,t),c);return f?r:r.endOf("day")},d=function(t,e){return y.w(c.toDate()[t].apply(c.toDate("s"),(f?[0,0,0,0]:[23,59,59,999]).slice(e)),c)},p=this.$W,D=this.$M,m=this.$D,g="set"+(this.$u?"UTC":"");switch(l){case a:return f?h(1,0):h(31,11);case u:return f?h(1,D):h(0,D+1);case i:var v=this.$locale().weekStart||0,w=(p<v?p+7:p)-v;return h(f?m-w:m+(6-w),D);case"day":case s:return d(g+"Hours",0);case n:return d(g+"Minutes",1);case r:return d(g+"Seconds",2);case e:return d(g+"Milliseconds",3);default:return this.clone()}},d.endOf=function(t){return this.startOf(t,!1)},d.$set=function(i,o){var c,f=y.p(i),l="set"+(this.$u?"UTC":""),h=((c={}).day=l+"Date",c[s]=l+"Date",c[u]=l+"Month",c[a]=l+"FullYear",c[n]=l+"Hours",c[r]=l+"Minutes",c[e]=l+"Seconds",c[t]=l+"Milliseconds",c)[f],d="day"===f?this.$D+(o-this.$W):o;if(f===u||f===a){var p=this.clone().set(s,1);p.$d[h](d),p.init(),this.$d=p.set(s,Math.min(this.$D,p.daysInMonth())).$d}else h&&this.$d[h](d);return this.init(),this},d.set=function(t,e){return this.clone().$set(t,e)},d.get=function(t){return this[y.p(t)]()},d.add=function(t,o){var s,c=this;t=Number(t);var f=y.p(o),l=function(e){var r=v(c);return y.w(r.date(r.date()+Math.round(e*t)),c)};if(f===u)return this.set(u,this.$M+t);if(f===a)return this.set(a,this.$y+t);if("day"===f)return l(1);if(f===i)return l(7);var h=((s={})[r]=6e4,s[n]=36e5,s[e]=1e3,s)[f]||1,d=this.$d.getTime()+t*h;return y.w(d,this)},d.subtract=function(t,e){return this.add(-1*t,e)},d.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||c;var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=y.z(this),u=this.$H,o=this.$m,a=this.$M,s=r.weekdays,f=r.months,h=r.meri
vendor: 1,255 bytes, line 1
1diem,d=function(t,r,i,u){return t&&(t[r]||t(e,n))||i[r].slice(0,u)},p=function(t){return y.s(u%12||12,t,"0")},D=h||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(l,function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return y.s(e.$y,4,"0");case"M":return a+1;case"MM":return y.s(a+1,2,"0");case"MMM":return d(r.monthsShort,a,f,3);case"MMMM":return d(f,a);case"D":return e.$D;case"DD":return y.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return d(r.weekdaysMin,e.$W,s,2);case"ddd":return d(r.weekdaysShort,e.$W,s,3);case"dddd":return s[e.$W];case"H":return String(u);case"HH":return y.s(u,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return D(u,o,!0);case"A":return D(u,o,!1);case"m":return String(o);case"mm":return y.s(o,2,"0");case"s":return String(e.$s);case"ss":return y.s(e.$s,2,"0");case"SSS":return y.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")})},d.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},d.diff=function(t,s,c){var f,l=this,h=y.p(s),d=v(t),p=(d.utcOffset()-this.utcOffset())*6e4,D=this-d,m=function(){return y.m(l,d)};switch(h){case a:f=m()/12;break;case u:f=m();break;case o:f=m()/3;break;
1case i:f=(D-p)/6048e5;break;case"day":f=(D-p)/864e5;break;case n:f=D/36e5;break;case r:f=D/6e4;break;case e:f=D/1e3;break;default:f=D}return c?f:y.a(f)},d.daysInMonth=function(){return this.endOf(u).$D},d.$locale=function(){return p[this.$L]},d.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=g(t,e,!0);return n&&(r.$L=n),r},d.clone=function(){return y.w(this.$d,this)},d.toDate=function(){return new Date(this.valueOf())},d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},h}(),b=w.prototype;return v.prototype=b,[["$ms",t],["$s",e],["$m",r],["$H",n],["$W","day"],["$M",u],["$y",a],["$D",s]].forEach(function(t){b[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),v.extend=function(t,e){return t.$i||(t(e,w,v),t.$i=!0),v},v.locale=g,v.isDayjs=m,v.unix=function(t){return v(1e3*t)},v.en=p[d],v.Ls=p,v.p={},v},t.exports=e()},67657:function(t){var e;e=function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||"th")+"]"}}},t.exports=e()},16266:function(t,e,r){var n;n=function(t){"use strict";var e={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},ordinal:function(t){return t+"\xba"}};return(t&&"object"==typeof t&&"default"in t?t:{default:t}).default.locale(e,null,!0),e},t.exports=n(r(42014))},79503:function(t,e,r){var n;n=function(t){"use strict";var e={name:"id",weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),weekStart:1,formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},ordinal:function(t){return t+"."}};return(t&&"object"==typeof t&&"default"in t?t:{default:t}).default.locale(e,null,!0),e},t.exports=n(r(42014))},10335:function(t,e,r){var n;n=function(t){"use strict";var e={name:"ja",weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(t){return t+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiem:function(t){return t<12?"午前":"午後"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}};return(t&&"object"==typeof t&&"default"in t?t:{default:t}).default.locale(e,null,!0),e},t.exports=n(r(42014))},85804:function(t,e,r){var n;n=function(t){"use strict";var e={name:"ko",weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),ordinal:function(t){return t+"일"},formats:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},meridiem:function(t){return t<12?"오전":"오후"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",m:"1분",mm:"%d분",h:"한 시간",hh:"%
1d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"}};return(t&&"object"==typeof t&&"default"in t?t:{default:t}).default.locale(e,null,!0),e},t.exports=n(r(42014))},73234:function(t,e,r){var n;n=function(t){"use strict";var e={name:"pt",weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sab".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_Sa".split("_"),months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(t){return t+"\xba"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"alguns segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"}};return(t&&"object"==typeof t&&"default"in t?t:{default:t}).default.locale(e,null,!0),e},t.exports=n(r(42014))},4130:function(t,e,r){var n;n=function(t){"use strict";var e={name:"th",weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"},ordinal:function(t){return t+"."}};return(t&&"object"==typeof t&&"default"in t?t:{default:t}).default.locale(e,null,!0),e},t.exports=n(r(42014))},507:function(t,e,r){var n;n=function(t){"use strict";var e={name:"vi",weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ s\xe1u_thứ bảy".split("_"),months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),weekStart:1,weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),ordinal:function(t){return t},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},relativeTime:{future:"%s tới",past:"%s trước",s:"v\xe0i gi\xe2y",m:"một ph\xfat",mm:"%d ph\xfat",h:"một giờ",hh:"%d giờ",d:"một ng\xe0y",dd:"%d ng\xe0y",M:"một th\xe1ng",MM:"%d th\xe1ng",y:"một năm",yy:"%d năm"}};return(t&&"object"==typeof t&&"default"in t?t:{default:t}).default.locale(e,null,!0),e},t.exports=n(r(42014))},24818:function(t,e,r){var n;n=function(t){"use strict";var e={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(t,e){return"W"===e?t+"周":t+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(t,e){var r=100*t+e;
1return r<600?"凌晨":r<900?"早上":r<1100?"上午":r<1300?"中午":r<1800?"下午":"晚上"}};return(t&&"object"==typeof t&&"default"in t?t:{default:t}).default.locale(e,null,!0),e},t.exports=n(r(42014))},48202:function(t,e,r){var n;n=function(t){"use strict";var e={name:"zh-tw",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(t,e){return"W"===e?t+"週":t+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"},meridiem:function(t,e){var r=100*t+e;return r<600?"凌晨":r<900?"早上":r<1100?"上午":r<1300?"中午":r<1800?"下午":"晚上"}};return(t&&"object"==typeof t&&"default"in t?t:{default:t}).default.locale(e,null,!0),e},t.exports=n(r(42014))},54995:function(t){var e;e=function(){return function(t,e,r){var n=e.prototype,i=function(t){return t&&(t.indexOf?t:t.s)},u=function(t,e,r,n,u){var o=t.name?t:t.$locale(),a=i(o[e]),s=i(o[r]),c=a||s.map(function(t){return t.slice(0,n)});if(!u)return c;var f=o.weekStart;return c.map(function(t,e){return c[(e+(f||0))%7]})},o=function(){return r.Ls[r.locale()]},a=function(t,e){return t.formats[e]||t.formats[e.toUpperCase()].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(t,e,r){return e||r.slice(1)})},s=function(){var t=this;return{months:function(e){return e?e.format("MMMM"):u(t,"months")},monthsShort:function(e){return e?e.format("MMM"):u(t,"monthsShort","months",3)},firstDayOfWeek:function(){return t.$locale().weekStart||0},weekdays:function(e){return e?e.format("dddd"):u(t,"weekdays")},weekdaysMin:function(e){return e?e.format("dd"):u(t,"weekdaysMin","weekdays",2)},weekdaysShort:function(e){return e?e.format("ddd"):u(t,"weekdaysShort","weekdays",3)},longDateFormat:function(e){return a(t.$locale(),e)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};n.localeData=function(){return s.bind(this)()},r.localeData=function(){var t=o();return{firstDayOfWeek:function(){return t.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(e){return a(t,e)},meridiem:t.meridiem,ordinal:t.ordinal}},r.months=function(){return u(o(),"months")},r.monthsShort=function(){return u(o(),"monthsShort","months",3)},r.weekdays=function(t){return u(o(),"weekdays",null,null,t)},r.weekdaysShort=function(t){return u(o(),"weekdaysShort","weekdays",3,t)},r.weekdaysMin=function(t){return u(o(),"weekdaysMin","weekdays",2,t)}}},t.exports=e()},18646:function(t){var e;e=function(){"use strict";var t={year:0,month:1,day:2,hour:3,minute:4,second:5},e={};return function(r,n,i){var u,o=function(t,r,n){void 0===n&&(n={});var i,u,o,a,s=new Date(t);return(void 0===(i=n)&&(i={}),(a=e[o=r+"|"+(u=i.timeZoneName||"short")])||(a=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:u}),e[o]=a),a).formatToParts(s)},a=function(e,r){for(var n=o(e,r),u=[],a=0;a<n.length;a+=1){var s=n[a],c=s.type,f=s.value,l=t[c];l>=0&&(u[l]=parseInt(f,10))}var h=u[3],d=u[0]+"-"+u[1]+"-"+u[2]+" "+(24===h?0:h)+":"+u[4]+":"+u[5]+":000",p=+e;return(i.utc(d).valueOf()-(p-=p%1e3))/6e4},s=n.prototype;s.tz=function(t,e){void 0===t&&(t=u);var r,n=this.utcOffset(),o=this.toDate(),a=o.toLocaleString("en-US",{timeZone:t}),s=Math.round((o-new Date(a))/1e3/60),c=-(15*Math.round(o.getTimezoneOffset()/15))-s;
1if(Number(c)){if(r=i(a,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(c,!0),e){var f=r.utcOffset();r=r.add(n-f,"minute")}}else r=this.utcOffset(0,e);return r.$x.$timezone=t,r},s.offsetName=function(t){var e=this.$x.$timezone||i.tz.guess(),r=o(this.valueOf(),e,{timeZoneName:t}).find(function(t){return"timezonename"===t.type.toLowerCase()});return r&&r.value};var c=s.startOf;s.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return c.call(this,t,e);var r=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return c.call(r,t,e).tz(this.$x.$timezone,!0)},i.tz=function(t,e,r){var n=r&&e,o=r||e||u,s=a(+i(),o);if("string"!=typeof t)return i(t).tz(o);var c=function(t,e,r){var n=t-60*e*1e3,i=a(n,r);if(e===i)return[n,e];var u=a(n-=60*(i-e)*1e3,r);return i===u?[n,i]:[t-60*Math.min(i,u)*1e3,Math.max(i,u)]}(i.utc(t,n).valueOf(),s,o),f=c[0],l=c[1],h=i(f).utcOffset(l);return h.$x.$timezone=o,h},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(t){u=t}}},t.exports=e()},781:function(t){var e;e=function(){"use strict";var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(n,i,u){var o=i.prototype;u.utc=function(t){var e={date:t,utc:!0,args:arguments};return new i(e)},o.utc=function(e){var r=u(this.toDate(),{locale:this.$L,utc:!0});return e?r.add(this.utcOffset(),t):r},o.local=function(){return u(this.toDate(),{locale:this.$L,utc:!1})};var a=o.parse;o.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),a.call(this,t)};var s=o.init;o.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else s.call(this)};var c=o.utcOffset;o.utcOffset=function(n,i){var u=this.$utils().u;if(u(n))return this.$u?0:u(this.$offset)?c.call(this):this.$offset;if("string"==typeof n&&null===(n=function(t){void 0===t&&(t="");var n=t.match(e);if(!n)return null;var i=(""+n[0]).match(r)||["-",0,0],u=i[0],o=60*+i[1]+ +i[2];return 0===o?0:"+"===u?o:-o}(n)))return this;var o=16>=Math.abs(n)?60*n:n;if(0===o)return this.utc(i);var a=this.clone();if(i)return a.$offset=o,a.$u=!1,a;var s=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(a=this.local().add(o+s,t)).$offset=o,a.$x.$localOffset=s,a};var f=o.format;o.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,e)},o.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var l=o.toDate;o.toDate=function(t){return"s"===t&&this.$offset?u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():l.call(this)};var h=o.diff;o.diff=function(t,e,r){if(t&&this.$u===t.$u)return h.call(this,t,e,r);var n=this.local(),i=u(t).local();return h.call(n,i,e,r)}}},t.exports=e()},81235:t=>{function e(){}e.prototype={on:function(t,e,r){var n=this.e||(this.e={});return(n[t]||(n[t]=[])).push({fn:e,ctx:r}),this},once:function(t,e,r){var n=this;function i(){n.off(t,i),e.apply(r,arguments)}return i._=e,this.on(t,i,r)},emit:function(t){for(var e=[].slice.call(arguments,1),r=((this.e||(this.e={}))[t]||[]).slice(),n=0,i=r.length;n<i;n++)r[n].fn.apply(r[n].ctx,e);return this},off:function(t,e){var r=this.e||(this.e={}),n=r[t],i=[];if(n&&e)for(var u=0,o=n.length;u<o;u++)n[u].fn!==e&&n[u].fn._!==e&&i.push(n[u]);return i.length?r[t]=i:delete r[t],this}},t.exports=e,t.exports.TinyEmitter=e},14779:t=>{t.exports=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,r=[],n=0;n<t.rangeCount;n++)r.push(t.getRangeAt(n));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null}return t.removeAllRanges(),function(){"Caret"===t.type&&t.removeAllRanges(),t.rangeCount||r.forEach(function(e){t.addRange(e)}
vendor: 4,679 bytes, line 1
1),e&&e.focus()}}},27701:function(t,e,r){var n;!function(i,u){"use strict";var o="function",a="undefined",s="object",c="string",f="major",l="model",h="name",d="type",p="vendor",D="version",m="architecture",g="console",v="mobile",y="tablet",w="smarttv",b="wearable",F="embedded",A="Amazon",E="Apple",_="ASUS",C="BlackBerry",x="Browser",M="Chrome",B="Firefox",S="Google",N="Honor",T="Huawei",O="Microsoft",k="Motorola",Y="Nvidia",z="OnePlus",P="Opera",I="OPPO",j="Samsung",L="Sharp",$="Sony",U="Xiaomi",R="Zebra",q="Facebook",H="Chromium OS",Z="Mac OS",G=" Browser",J=function(t,e){var r={};for(var n in t)e[n]&&e[n].length%2==0?r[n]=e[n].concat(t[n]):r[n]=t[n];return r},W=function(t){for(var e={},r=0;r<t.length;r++)e[t[r].toUpperCase()]=t[r];return e},Q=function(t,e){return typeof t===c&&-1!==V(e).indexOf(V(t))},V=function(t){return t.toLowerCase()},K=function(t,e){if(typeof t===c)return t=t.replace(/^\s\s*/,""),typeof e===a?t:t.substring(0,500)},X=function(t,e){for(var r,n,i,a,c,f,l=0;l<e.length&&!c;){var h=e[l],d=e[l+1];for(r=n=0;r<h.length&&!c&&h[r];)if(c=h[r++].exec(t))for(i=0;i<d.length;i++)f=c[++n],typeof(a=d[i])===s&&a.length>0?2===a.length?typeof a[1]==o?this[a[0]]=a[1].call(this,f):this[a[0]]=a[1]:3===a.length?typeof a[1]!==o||a[1].exec&&a[1].test?this[a[0]]=f?f.replace(a[1],a[2]):void 0:this[a[0]]=f?a[1].call(this,f,a[2]):void 0:4===a.length&&(this[a[0]]=f?a[3].call(this,f.replace(a[1],a[2])):void 0):this[a]=f||u;l+=2}},tt=function(t,e){for(var r in e)if(typeof e[r]===s&&e[r].length>0){for(var n=0;n<e[r].length;n++)if(Q(e[r][n],t))return"?"===r?u:r}else if(Q(e[r],t))return"?"===r?u:r;return e.hasOwnProperty("*")?e["*"]:t},te={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},tr={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[D,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[D,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,D],[/opios[\/ ]+([\w\.]+)/i],[D,[h,P+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[D,[h,P+" GX"]],[/\bopr\/([\w\.]+)/i],[D,[h,P]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[D,[h,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[D,[h,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[h,D],[/quark(?:pc)?\/([-\w\.]+)/i],[D,[h,"Quark"]],[/\bddg\/([\w\.]+)/i],[D,[h,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[D,[h,"UC"+x]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[D,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[D,[h,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[D,[h,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[D,[h,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[D,[h,"Smart Lenovo "+x]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+x],D],[/\bfocus\/([\w\.]+)/i],[D,[h,B+" Focus"]],[/\bopt\/([\w\.]+)/i],[D,[h,P+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[D,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[D,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[D,[h,P+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[D,[h,"MIUI"+G]],[/fxios\/([\w\.-]+)/i],[D,[h,B]],[/\bqihoobrowser\/?([\w\.]*)/i],[D,[h,"360"]],[/\b(qq)\/([\w\.]+)/i],[[h,/(.+)/,"$1Browser"],D],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1"+G],D],[/samsungbrowser\/([\w\.]+)/i],[D,[h,j+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[D,[h,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[h,"Sogou Mobile"],D],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[h,D],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[h],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[D,h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,q],D],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[h,D],[/\bgsa\/([\w\.]+) .*safari\//i],[D,[h,"GSA"]],[/musical_ly(?:.
1+app_?version\/|_)([\w\.]+)/i],[D,[h,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[D,[h,M+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,M+" WebView"],D],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[D,[h,"Android "+x]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,D],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[D,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[D,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[D,tt,{"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[h,D],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],D],[/(wolvic|librewolf)\/([\w\.]+)/i],[h,D],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[D,[h,B+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[h,[D,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[h,[D,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[m,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[m,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[m,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[m,/ower/,"",V]],[/ sun4\w[;\)]/i],[[m,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[m,V]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[l,[p,j],[d,y]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[l,[p,j],[d,v]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[l,[p,E],[d,v]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[p,E],[d,y]],[/(macintosh);/i],[l,[p,E]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[p,L],[d,v]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[l,[p,N],[d,y]],[/honor([-\w ]+)[;\)]/i],[l,[p,N],[d,v]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[l,[p,T],[d,y]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[p,T],[d,v]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[l,/_/g," "],[p,U],[d,y]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[l,/_/g," "],[p,U],[d,v]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[p,I],[d,v]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[l,[p,tt,{OnePlus:["304","403","203"],"*":I}],[d,y]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[p,"Vivo"],[d,v]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[l,[p,"Realme"],[d,v]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[l,[p,k],[d,v]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[p,k],[d,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[p,"LG"],[d,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[p,"LG"],[d,v]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}
1(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[l,[p,"Lenovo"],[d,y]],[/(nokia) (t[12][01])/i],[p,l,[d,y]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[l,/_/g," "],[d,v],[p,"Nokia"]],[/(pixel (c|tablet))\b/i],[l,[p,S],[d,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[p,S],[d,v]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[p,$],[d,v]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[p,$],[d,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[p,z],[d,v]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[p,A],[d,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[p,A],[d,v]],[/(playbook);[-\w\),; ]+(rim)/i],[l,p,[d,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[p,C],[d,v]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[p,_],[d,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[p,_],[d,v]],[/(nexus 9)/i],[l,[p,"HTC"],[d,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[p,[l,/_/g," "],[d,v]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[l,[p,"TCL"],[d,y]],[/(itel) ((\w+))/i],[[p,V],l,[d,tt,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[p,"Acer"],[d,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[p,"Meizu"],[d,v]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[l,[p,"Ulefone"],[d,v]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[l,[p,"Energizer"],[d,v]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[l,[p,"Cat"],[d,v]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[l,[p,"Smartfren"],[d,v]],[/droid.+; (a(?:015|06[35]|142p?))/i],[l,[p,"Nothing"],[d,v]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[l,[p,"Archos"],[d,y]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[l,[p,"Archos"],[d,v]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[p,l,[d,y]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[p,l,[d,v]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[p,l,[d,y]],[/(surface duo)/i],[l,[p,O],[d,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[p,"Fairphone"],[d,v]],[/(u304aa)/i],[l,[p,"AT&T"],[d,v]],[/\bsie-(\w*)/i],[l,[p,"Siemens"],[d,v]],[/\b(rct\w+) b/i],[l,[p,"RCA"],[d,y]],[/\b(venue[\d ]{2,7}) b/i],[l,[p,"Dell"],[d,y]],[/\b(q(?:mv|ta)\w+) b/i],[l,[p,"Verizon"],[d,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[p,"Barnes & Noble"],[d,y]],[/\b(tm\d{3}\w+) b/i],[l,[p,"NuVision"],[d,y]],[/\b(k88) b/i],[l,[p,"ZTE"],[d,y]],[/\b(nx\d{3}j) b/i],[l,[p,"ZTE"],[d,v]],[/\b(gen\d{3}) b.+49h/i],[l,[p,"Swiss"],[d,v]],[/\b(zur\d{3}) b/i],[l,[p,"Swiss"],[d,y]],[/\b((zeki)?tb.*\b) b/i],[l,[p,"Zeki"],[d,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[p,"Dragon Touch"],l,[d,y]],[/\b(ns-?\w{0,9}) b/i],[l,[p,"Insignia"],[d,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[p,"NextBook"],[d,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,"Voice"],l,[d,v]],[/\b(lvtel\-)?(v1[12]) b/i],[[p,"LvTel"],l,[d,v]],[/\b(ph-1) /i],[l,[p,"Essential"],[d,v]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[p,"Envizen"],[d,y]],[/\b(trio[-\w\. ]+) b/i],[l,[p,"MachSpeed"],[d,y]],[/\btu_(1491) b/i],[l,[p,"Rotor"],[d,y]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[l,[p,Y],[d,y]],[/(sprint) (\w+)/i],[p,l,[d,v]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[p,O],[d,v]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[p,R],[d,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[p,R],[d,v]],[/smart-tv.+(samsung)/i],[p,[d,w]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[p,j],[d,w]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,"LG"],[d,w]],[/(apple) ?tv/i],[p,[l,E+" TV"],[d,w]],[/crkey/i],[[l,M+"cast"],[p,S],[d,w]],[/droid.+aft(\w+)( bui|\))/i],[l,[p,A],[d,w]],[/(shield \w+ tv)/i],[l,[p,Y],[d,w]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[p,L],[d,w]],[/(bravia[\w ]+)( bui|\))/i],[l,[p,$],[d,w]],[/(mi(tv|box)-?\w+) bui/i],[l,[p,U],[d,w]],[/Hbbtv.*(technisat) (.*);/i],[p,l,[d,w]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[p,K],[l,K],[d,w]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[l,[d,w]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,w]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,l,[d,g]],[/droid.+; (shield)( bui|\))/i],[l,[p,Y],[d,g]],[/(playstation \w+)/i],[l,[p,$],[d,g]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[p,O],[d,g]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[l,[p,j],[d,b]],[/((pebble))app/i,/(asu
vendor: 4,090 bytes, line 1
1s|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[p,l,[d,b]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[l,[p,I],[d,b]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[l,[p,E],[d,b]],[/(opwwe\d{3})/i],[l,[p,z],[d,b]],[/(moto 360)/i],[l,[p,k],[d,b]],[/(smartwatch 3)/i],[l,[p,$],[d,b]],[/(g watch r)/i],[l,[p,"LG"],[d,b]],[/droid.+; (wt63?0{2,3})\)/i],[l,[p,R],[d,b]],[/droid.+; (glass) \d/i],[l,[p,S],[d,b]],[/(pico) (4|neo3(?: link|pro)?)/i],[p,l,[d,b]],[/; (quest( \d| pro)?)/i],[l,[p,q],[d,b]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[d,F]],[/(aeobc)\b/i],[l,[p,A],[d,F]],[/(homepod).+mac os/i],[l,[p,E],[d,F]],[/windows iot/i],[[d,F]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[l,[d,v]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[d,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,y]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,v]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[l,[p,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[D,[h,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[h,D],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[D,[h,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[h,D],[/ladybird\//i],[[h,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[D,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,D],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[h,[D,tt,te]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[D,tt,te],[h,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[D,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,Z],[D,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[D,h],[/(ubuntu) ([\w\.]+) like android/i],[[h,/(.+)/,"$1 Touch"],D],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[h,D],[/\(bb(10);/i],[D,[h,C]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[D,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[D,[h,B+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[D,[h,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[D,[h,"watchOS"]],[/crkey\/([\d\.]+)/i],[D,[h,M+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[h,H],D],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[h,D],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],D],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[h,D]]},tn=function(t,e){if(typeof t===s&&(e=t,t=u),!(this instanceof tn))return new tn(t,e).getResult();var r=typeof i!==a&&i.navigator?i.navigator:u,n=t||(r&&r.userAgent?r.userAgent:""),g=r&&r.userAgentData?r.userAgentData:u,w=e?J(tr,e):tr,b=r&&r.userAgent==n;return this.getBrowser=function(){var t,e={};return e[h]=u,e[D]=u,X.call(e,n,w.browser),e[f]=typeof(t=e[D])===c?t.replace(/[^\d\.]/g,"").split(".")[0]:u,b&&r&&r.brave&&typeof r.brave.isBrave==o&&(e[h]="Brave"),e},this.getCPU=function(){var t={};return t[m]=u,X.call(t,n,w.cpu),t},this.getDevice=function(){var t={};
1return t[p]=u,t[l]=u,t[d]=u,X.call(t,n,w.device),b&&!t[d]&&g&&g.mobile&&(t[d]=v),b&&"Macintosh"==t[l]&&r&&typeof r.standalone!==a&&r.maxTouchPoints&&r.maxTouchPoints>2&&(t[l]="iPad",t[d]=y),t},this.getEngine=function(){var t={};return t[h]=u,t[D]=u,X.call(t,n,w.engine),t},this.getOS=function(){var t={};return t[h]=u,t[D]=u,X.call(t,n,w.os),b&&!t[h]&&g&&g.platform&&"Unknown"!=g.platform&&(t[h]=g.platform.replace(/chrome os/i,H).replace(/macos/i,Z)),t},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(t){return n=typeof t===c&&t.length>500?K(t,500):t,this},this.setUA(n),this};tn.VERSION="1.0.41",tn.BROWSER=W([h,D,f]),tn.CPU=W([m]),tn.DEVICE=W([l,p,d,g,v,w,y,b,F]),tn.ENGINE=tn.OS=W([h,D]),typeof e!==a?(t.exports&&(e=t.exports=tn),e.UAParser=tn):r.amdO?u!==(n=(function(){return tn}).call(e,r,e,t))&&(t.exports=n):typeof i!==a&&(i.UAParser=tn);var ti=typeof i!==a&&(i.jQuery||i.Zepto);if(ti&&!ti.ua){var tu=new tn;ti.ua=tu.getResult(),ti.ua.get=function(){return tu.getUA()},ti.ua.set=function(t){tu.setUA(t);var e=tu.getResult();for(var r in e)ti.ua[r]=e[r]}}}("object"==typeof window?window:this)},75866:function(t){var e;e=function(){"use strict";function t(){return!0}function e(){return!1}function r(){}let n="Argument is not a typed-function.";return function i(){let u,o;function a(t){return"object"==typeof t&&null!==t&&t.constructor===Object}let s=[{name:"number",test:function(t){return"number"==typeof t}},{name:"string",test:function(t){return"string"==typeof t}},{name:"boolean",test:function(t){return"boolean"==typeof t}},{name:"Function",test:function(t){return"function"==typeof t}},{name:"Array",test:Array.isArray},{name:"Date",test:function(t){return t instanceof Date}},{name:"RegExp",test:function(t){return t instanceof RegExp}},{name:"Object",test:a},{name:"null",test:function(t){return null===t}},{name:"undefined",test:function(t){return void 0===t}}],c={name:"any",test:t,isAny:!0},f=0,l={createCount:0};function h(t){let e;let r=u.get(t);if(r)return r;let n='Unknown type "'+t+'"',i=t.toLowerCase();for(e of o)if(e.toLowerCase()===i){n+='. Did you mean "'+e+'" ?';break}throw TypeError(n)}function d(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"any",r=e?h(e).index:o.length,n=[];for(let e=0;e<t.length;++e){if(!t[e]||"string"!=typeof t[e].name||"function"!=typeof t[e].test)throw TypeError("Object with properties {name: string, test: function} expected");let i=t[e].name;if(u.has(i))throw TypeError('Duplicate type name "'+i+'"');n.push(i),u.set(i,{name:i,test:t[e].test,isAny:t[e].isAny,index:r+e,conversionsTo:[]})}let i=o.slice(r);o=o.slice(0,r).concat(n).concat(i);for(let t=r+n.length;t<o.length;++t)u.get(o[t]).index=t}function p(){u=new Map,o=[],f=0,d([c],!1)}function D(t){let e=o.filter(e=>{let r=u.get(e);return!r.isAny&&r.test(t)});return e.length?e:["any"]}function m(t){return t&&"function"==typeof t&&"_typedFunctionData"in t}function g(t,e,r){let i,u;if(!m(t))throw TypeError(n);let o=r&&r.exact,a=b(Array.isArray(e)?e.join(","):e),s=v(a);if(!o||s in t.signatures){let e=t._typedFunctionData.signatureMap.get(s);if(e)return e}let c=a.length;if(o){let e;for(e in i=[],t.signatures)i.push(t._typedFunctionData.signatureMap.get(e))}else i=t._typedFunctionData.signatures;for(let t=0;t<c;++t){let e;let r=a[t],n=[];for(e of i){let i=E(e.params,t);if(i&&(!r.restParam||i.restParam)){if(!i.hasAny){let t=w(i);if(r.types.some(e=>!t.has(e.name)))continue}n.push(e)}}if(0===(i=n).length)break}for(u of i)if(u.params.length<=c)return u;throw TypeError("Signature not found (signature: "+(t.name||"unnamed")+"("+v(a,", ")+"))")}function v(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";return t.map(t=>t.name).join(e)}function y(t){let e=function(t){if(0===t.length)return[];let e=t.map(h);if(1===t.length)return e[0].conversionsTo;let r=new Set(t),n=new Set;for(let t=0;t<e.length;++t)for(let i of e[t].conversionsTo)r.has(i.from)||n.add(i.from);let i=[];for(let t of n){let r=f+1,n=null;for(let i=0;i<e.length;++i)for(let u of e[i].conversionsTo)u.from===t&&u.index<r&&(r=u.index,n=u);i.push(n)}return i}(t.types.map(t=>t.name)),r=t.hasAny,n=t.name,i=e.map(function(t){let e=h(t.from);return r=e.isAny||r,n+="|"+t.from,{name:t.from,typeIndex:e.index,test:e.test,isAny:e.isAny,conversion:t,conversionIndex:t.index}});return{types:t.types.concat(i),name:n,hasAny:r,hasConversion:i.length>0,restParam:t.restParam}}function w(t){return t.typeSet||(t.typeSet=new Set,t.types.forEac
1h(e=>t.typeSet.add(e.name))),t.typeSet}function b(t){let e=[];if("string"!=typeof t)throw TypeError("Signatures must be strings");let r=t.trim();if(""===r)return e;let n=r.split(",");for(let t=0;t<n.length;++t){let r=function(t){let e=0===t.indexOf("..."),r=(e?t.length>3?t.slice(3):"any":t).split("|").map(t=>h(t.trim())),n=!1,i=e?"...":"";return{types:r.map(function(t){return n=t.isAny||n,i+=t.name+"|",{name:t.name,typeIndex:t.index,test:t.test,isAny:t.isAny,conversion:null,conversionIndex:-1}}),name:i.slice(0,-1),hasAny:n,hasConversion:!1,restParam:e}}(n[t].trim());if(r.restParam&&t!==n.length-1)throw SyntaxError('Unexpected rest parameter "'+n[t]+'": only allowed for the last parameter');if(0===r.types.length)return null;e.push(r)}return e}function F(t){let e=Y(t);return!!e&&e.restParam}function A(e){if(!e||0===e.types.length)return t;if(1===e.types.length)return h(e.types[0].name).test;if(2===e.types.length){let t=h(e.types[0].name).test,r=h(e.types[1].name).test;return function(e){return t(e)||r(e)}}{let t=e.types.map(function(t){return h(t.name).test});return function(e){for(let r=0;r<t.length;r++)if(t[r](e))return!0;return!1}}}function E(t,e){return e<t.length?t[e]:F(t)?Y(t):null}function _(t,e){let r=E(t,e);return r?w(r):new Set}function C(t){return null===t.conversion||void 0===t.conversion}function x(t,e){let r=new Set;return t.forEach(t=>{let n;for(n of _(t.params,e))r.add(n)}),r.has("any")?["any"]:Array.from(r)}function M(t,e,r){let n,i,u;let o=t||"unnamed",a=r;for(u=0;u<e.length;u++){let t=[];if(a.forEach(r=>{let n=A(E(r.params,u));(u<r.params.length||F(r.params))&&n(e[u])&&t.push(r)}),0===t.length){if((i=x(a,u)).length>0){let t=D(e[u]);return(n=TypeError("Unexpected type of argument in function "+o+" (expected: "+i.join(" or ")+", actual: "+t.join(" | ")+", index: "+u+")")).data={category:"wrongType",fn:o,index:u,actual:t,expected:i},n}}else a=t}let s=a.map(function(t){return F(t.params)?1/0:t.params.length});if(e.length<Math.min.apply(null,s))return(n=TypeError("Too few arguments in function "+o+" (expected: "+(i=x(a,u)).join(" or ")+", index: "+e.length+")")).data={category:"tooFewArgs",fn:o,index:e.length,expected:i},n;let c=Math.max.apply(null,s);if(e.length>c)return(n=TypeError("Too many arguments in function "+o+" (expected: "+c+", actual: "+e.length+")")).data={category:"tooManyArgs",fn:o,index:e.length,expectedLength:c},n;let f=[];for(let t=0;t<e.length;++t)f.push(D(e[t]).join("|"));return(n=TypeError('Arguments of type "'+f.join(", ")+'" do not match any of the defined signatures of function '+o+".")).data={category:"mismatch",actual:f},n}function B(t){let e=o.length+1;for(let r=0;r<t.types.length;r++)e=Math.min(e,t.types[r].typeIndex);return e}function S(t){let e=f+1;for(let r=0;r<t.types.length;r++)C(t.types[r])||(e=Math.min(e,t.types[r].conversionIndex));return e}function N(t,e){let r,n;let i=t.params,u=e.params,o=Y(i),a=Y(u),s=F(i),c=F(u);if(s&&o.hasAny){if(!c||!a.hasAny)return 1e7}else if(c&&a.hasAny)return -1e7;let f=0,l=0;for(r of i)r.hasAny&&++f,r.hasConversion&&++l;let h=0,d=0;for(r of u)r.hasAny&&++h,r.hasConversion&&++d;if(f!==h)return(f-h)*1e6;if(s&&o.hasConversion){if(!c||!a.hasConversion)return 1e5}else if(c&&a.hasConversion)return -1e5;if(l!==d)return(l-d)*1e4;if(s){if(!c)return 1e3}else if(c)return -1e3;let p=(i.length-u.length)*(s?-100:100);if(0!==p)return p;let D=[],m=0;for(let t=0;t<i.length;++t){let e=function(t,e){if(t.hasAny){if(!e.hasAny)return .1}else if(e.hasAny)return -.1;if(t.restParam){if(!e.restParam)return .01}else if(e.restParam)return -.01;let r=B(t)-B(e);if(r<0)return -.001;if(r>0)return .001;let n=S(t),i=S(e);if(t.hasConversion){if(!e.hasConversion)return(1+n)*1e-6}else if(e.hasConversion)return-(1e-6*(1+i));let u=n-i;return u<0?-1e-7:u>0?1e-7:0}(i[t],u[t]);D.push(e),m+=e}if(0!==m)return(m<0?-10:10)+m;let g=9,v=9/(D.length+1);for(n of D){if(0!==n)return(n<0?-g:g)+n;g-=v}return 0}function T(t){let e,r,n,i;let u=[],o=[],a="";t.types.forEach(function(t){t.conversion&&(a+=t.conversion.from+"~>"+t.conversion.to+",",u.push(h(t.conversion.from).test),o.push(t.conversion.convert))}),a=a?a.slice(0,-1):"pass";let s=t=>t;switch(o.length){case 0:break;case 1:e=u[0],n=o[0],s=function(t){return e(t)?n(t):t};break;case 2:e=u[0],r=u[1],n=o[0],i=o[1],s=function(t){return e(t)?n(t):r(t)?i(t):t};break;default:s=function(t){for(let e=0;e<o.length;e++)if(u[e](t))return o[e](t);return t}}return Object.defineProperty(s,"name",{value:a}),s}function O(t,e,r){throw M(t,e,r)}function k(t){return z(t,0,t.length-1)}function Y(t){return t[t.length-1]}function z(t,e,r){return Array.prototype.slice.call(t,e,r)}function P(t,e){return{referTo:{references:t,callback:e}}}function I(t){if("function"!=typeof t)throw TypeError("Callback function expected as first argument");return{referToSelf:{callback:t}}}function j(t){return t&&"object"==typeof t.referTo&&Array.isArray(t.referTo.references)&&"function"==typeof t.referTo.callback}function L(t){return t&&"object"==typeof t.referToSelf&&"function"==typeof t.referToSelf.callback}function $(t,e){if(!t)return e;if(e&&e!==t){let r=Error("Function names do not match (expected: "+t+", actual: "+e+")");throw r.data={actual:e,expected:t},r}return t}p(),d(s);let U=l;function R(t){if(!t||"string"!=typeof t.from||"string"!=typeof t.to||"function"!=typeof t.convert)throw TypeError("Object with properties {from: string, to: string, convert: function} expected");if(t.to===t.from)throw SyntaxError('Illegal to define conversion from "'+t.from+'" to itself.')}return(l=function(t){let n="string"==typeof t,i=n?1:0,u=n?t:"",o={};for(let t=i;t<arguments.length;++t){let e;let r=arguments[t],i={};if("function"==typeof r?(e=r.name,"string"==typeof r.signature?i[r.signature]=r:m(r)&&(i=r.signatures)):a(r)&&(i=r,n||(e=function(t){let e;for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(m(t[r])||"string"==typeof t[r].signature)&&(e=$(e,t[r].name));return e}(r))),0===Object.keys(i).length){let e=TypeError("Argument to 'typed' at index "+t+" is not a (typed) function, nor an object with signatures as keys and functions as values.");throw e.data={index:t,argument:r},e}n||(u=$(u,e)),function(t,e){let r;for(r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(r in t&&e[r]!==t[r]){let n=Error('Signature "'+r+'" is defined twice');throw n.data={signature:r,sourceFunction:e[r],destFunction:t[r]},n}t[r]=e[r]}}(o,i)}return function(t,n){let i,u;if(l.createCount++,0===Object.keys(n).length)throw SyntaxError("No signatures provided");l.warnAgainstDeprecatedThis&&function(t){let e=/\bthis(\(|\.signatures\b)/;Object.keys(t).forEach(r=>{let n=t[r];
1if(e.test(n.toString()))throw SyntaxError("Using `this` to self-reference a function is deprecated since typed-function@3. Use typed.referTo and typed.referToSelf instead.")})}(n);let o=[],a=[],s={},c=[];for(i in n){let t;if(!Object.prototype.hasOwnProperty.call(n,i))continue;let e=b(i);if(!e)continue;o.forEach(function(t){if(function(t,e){let r=Math.max(t.length,e.length);for(let n=0;n<r;n++){let r;let i=_(t,n),u=_(e,n),o=!1;for(r of u)if(i.has(r)){o=!0;break}if(!o)return!1}let n=t.length,i=e.length,u=F(t),o=F(e);return u?o?n===i:i>=n:o?n>=i:n===i}(t,e))throw TypeError('Conflicting signatures "'+v(t)+'" and "'+v(e)+'".')}),o.push(e);let r=a.length;for(t of(a.push(n[i]),function t(e,r,n){if(!(r<e.length))return[n];{var i,u;let o=e[r],a=[];if(o.restParam){let t=o.types.filter(C);t.length<o.types.length&&a.push({types:t,name:"..."+t.map(t=>t.name).join("|"),hasAny:t.some(t=>t.isAny),hasConversion:!1,restParam:!0}),a.push(o)}else a=o.types.map(function(t){return{types:[t],name:t.name,hasAny:t.isAny,hasConversion:t.conversion,restParam:!1}});return i=a,u=function(i){return t(e,r+1,n.concat([i]))},Array.prototype.concat.apply([],i.map(u))}}(e.map(y),0,[]))){let e=v(t);c.push({params:t,name:e,fn:r}),t.every(t=>!t.hasConversion)&&(s[e]=r)}}c.sort(N);let f=function(t,e,r){let n=t.map(t=>L(t)?I(t.referToSelf.callback):j(t)?P(t.referTo.references,t.referTo.callback):t),i=Array(n.length).fill(!1),u=!0;for(;u;){u=!1;let t=!0;for(let o=0;o<n.length;++o){if(i[o])continue;let a=n[o];if(L(a))n[o]=a.referToSelf.callback(r),n[o].referToSelf=a.referToSelf,i[o]=!0,t=!1;else if(j(a)){let r=function(t,e,r){let n;let i=[];for(n of t){let t=r[n];if("number"!=typeof t)throw TypeError('No definition for referenced signature "'+n+'"');if("function"!=typeof(t=e[t]))return!1;i.push(t)}return i}(a.referTo.references,n,e);r?(n[o]=a.referTo.callback.apply(this,r),n[o].referTo=a.referTo,i[o]=!0,t=!1):u=!0}}if(t&&u)throw SyntaxError("Circular reference detected in resolving typed.referTo")}return n}(a,s,tl);for(u in s)Object.prototype.hasOwnProperty.call(s,u)&&(s[u]=f[s[u]]);let h=[],d=new Map;for(u of c)d.has(u.name)||(u.fn=f[u.fn],h.push(u),d.set(u.name,u));let p=h[0]&&h[0].params.length<=2&&!F(h[0].params),D=h[1]&&h[1].params.length<=2&&!F(h[1].params),m=h[2]&&h[2].params.length<=2&&!F(h[2].params),g=h[3]&&h[3].params.length<=2&&!F(h[3].params),w=h[4]&&h[4].params.length<=2&&!F(h[4].params),E=h[5]&&h[5].params.length<=2&&!F(h[5].params);for(let t=0;t<h.length;++t)h[t].test=function(t){let e,r,n;if(F(t)){let r=(e=k(t).map(A)).length,n=A(Y(t)),i=function(t){for(let e=r;e<t.length;e++)if(!n(t[e]))return!1;return!0};return function(t){for(let r=0;r<e.length;r++)if(!e[r](t[r]))return!1;return i(t)&&t.length>=r+1}}return 0===t.length?function(t){return 0===t.length}:1===t.length?(r=A(t[0]),function(t){return r(t[0])&&1===t.length}):2===t.length?(r=A(t[0]),n=A(t[1]),function(t){return r(t[0])&&n(t[1])&&2===t.length}):(e=t.map(A),function(t){for(let r=0;r<e.length;r++)if(!e[r](t[r]))return!1;return t.length===e.length})}(h[t].params);let x=p?A(h[0].params[0]):e,M=D?A(h[1].params[0]):e,B=m?A(h[2].params[0]):e,S=g?A(h[3].params[0]):e,O=w?A(h[4].params[0]):e,$=E?A(h[5].params[0]):e,U=p?A(h[0].params[1]):e,R=D?A(h[1].params[1]):e,q=m?A(h[2].params[1]):e,H=g?A(h[3].params[1]):e,Z=w?A(h[4].params[1]):e,G=E?A(h[5].params[1]):e;for(let t=0;t<h.length;++t)h[t].implementation=function(t,e){let r=e,n="";if(t.some(t=>t.hasConversion)){let i=F(t),u=t.map(T);n=u.map(t=>t.name).join(";"),r=function(){let t=[],r=i?arguments.length-1:arguments.length;for(let e=0;e<r;e++)t[e]=u[e](arguments[e]);return i&&(t[r]=arguments[r].map(u[r])),e.apply(this,t)}}let i=r;if(F(t)){let e=t.length-1;i=function(){return r.apply(this,z(arguments,0,e).concat([z(arguments,e)]))}}return n&&Object.defineProperty(i,"name",{value:n}),i}(h[t].params,h[t].fn);let J=p?h[0].implementation:r,W=D?h[1].implementation:r,Q=m?h[2].implementation:r,V=g?h[3].implementation:r,K=w?h[4].implementation:r,X=E?h[5].implementation:r,tt=p?h[0].params.length:-1,te=D?h[1].params.length:-1,tr=m?h[2].params.length:-1,tn=g?h[3].params.length:-1,ti=w?h[4].params.length:-1,tu=E?h[5].params.length:-1,to=p&&D&&m&&g&&w&&E?6:0,ta=h.length,ts=h.map(t=>t.test),tc=h.map(t=>t.implementation),tf=function(){for(let t=to;t<ta;t++)if(ts[t](arguments))return tc[t].apply(this,arguments);return l.onMismatch(t,arguments,h)};function tl(t,e){return arguments.length===tt&&x(t)&&U(e)?J.apply(this,arguments):arguments.length===te&&M(t)&&R(e)?W.apply(this,arguments):arguments.length===tr&&B(t)&&q(e)?Q.apply(this,arguments):arguments.length===tn&&S(t)&&H(e)?V.apply(this,arguments):arguments.length===ti&&O(t)&&Z(e)?K.apply(this,arguments):arguments.length===tu&&$(t)&&G(e)?X.apply(this,arguments):tf.apply(this,arguments)}try{Object.defineProperty(tl,"name",{value:t})}catch(t){}return tl.signatures=s,tl._typedFunctionData={signatures:h,signatureMap:d},tl}(u||"",o)}).create=i,l.createCount=U.createCount,l.onMismatch=O,l.throwMismatchError=O,l.createError=M,l.clear=p,l.clearConversions=function(){let t;for(t of o)u.get(t).conversionsTo=[];f=0},l.addTypes=d,l._findType=h,l.referTo=function(){let t=k(arguments).map(t=>v(b(t))),e=Y(arguments);if("function"!=typeof e)throw TypeError("Callback function expected as last argument");return P(t,e)},l.referToSelf=I,l.convert=function(t,e){let r=h(e);if(r.test(t))return t;let n=r.conversionsTo;if(0===n.length)throw Error("There are no conversions to "+e+" defined.");for(let e=0;e<n.length;e++)if(h(n[e].from).test(t))return n[e].convert(t);throw Error("Cannot convert "+t+" to "+e)},l.findSignature=g,l.find=function(t,e,r){return g(t,e,r).implementation}
1,l.isTypedFunction=m,l.warnAgainstDeprecatedThis=!0,l.addType=function(t,e){let r="any";!1!==e&&u.has("Object")&&(r="Object"),l.addTypes([t],r)},l.addConversion=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{override:!1};R(t);let r=h(t.to),n=r.conversionsTo.find(e=>e.from===t.from);if(n){if(e&&e.override)l.removeConversion({from:n.from,to:t.to,convert:n.convert});else throw Error('There is already a conversion from "'+t.from+'" to "'+r.name+'"')}r.conversionsTo.push({from:t.from,to:r.name,convert:t.convert,index:f++})},l.addConversions=function(t,e){t.forEach(t=>l.addConversion(t,e))},l.removeConversion=function(t){R(t);let e=h(t.to),r=function(t,e){for(let r=0;r<t.length;r++)if(e(t[r]))return t[r]}(e.conversionsTo,e=>e.from===t.from);if(!r)throw Error("Attempt to remove nonexistent conversion from "+t.from+" to "+t.to);if(r.convert!==t.convert)throw Error("Conversion to remove does not match existing conversion");let n=e.conversionsTo.indexOf(r);e.conversionsTo.splice(n,1)},l.resolve=function(t,e){if(!m(t))throw TypeError(n);let r=t._typedFunctionData.signatures;for(let t=0;t<r.length;++t)if(r[t].test(e))return r[t];return null},l}()},t.exports=e()},31111:(t,e,r)=>{"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(null,arguments)}r.d(e,{A:()=>n})},40799:(t,e,r)=>{"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)"__proto__"!==n&&(t[n]=r[n])}return t}r.d(e,{A:()=>i});var i=function t(e,r){function i(t,i,u){if("undefined"!=typeof document){"number"==typeof(u=n({},r,u)).expires&&(u.expires=new Date(Date.now()+864e5*u.expires)),u.expires&&(u.expires=u.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var a in u)u[a]&&(o+="; "+a,!0!==u[a]&&(o+="="+u[a].split(";")[0]));return document.cookie=t+"="+e.write(i,t)+o}}return Object.create({set:i,get:function(t){if("undefined"!=typeof document&&(!arguments.length||t)){for(var r=document.cookie?document.cookie.split("; "):[],n={},i=0;i<r.length;i++){var u=r[i].split("="),o=u.slice(1).join("=");try{var a=decodeURIComponent(u[0]);if(a in n||(n[a]=e.read(o,a)),t===a)break}catch{}}return t?n[t]:n}},remove:function(t,e){i(t,"",n({},e,{expires:-1}))},withAttributes:function(e){return t(this.converter,n({},this.attributes,e))},withConverter:function(e){return t(n({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(e)}})}({read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})},94046:(t,e,r)=>{"use strict";r.d(e,{v:()=>m});var n=r(31111),i=r(75866);function u(t,e,r,n){if(!(this instanceof u))throw SyntaxError("Constructor must be called with the new operator");this.fn=t,this.count=e,this.min=r,this.max=n,this.message="Wrong number of arguments in function "+t+" ("+e+" provided, "+r+(null!=n?"-"+n:"")+" expected)",this.stack=Error().stack}u.prototype=Error(),u.prototype.constructor=Error,u.prototype.name="ArgumentsError",u.prototype.isArgumentsError=!0;var o=r(12270),a=r(3762),s=r(90329),c=r(19600),f=r(23610),l=r(81235),h={relTol:1e-12,absTol:1e-15,matrix:"Matrix",number:"number",numberFallback:"number",precision:64,predictable:!1,randomSeed:null},d=["Matrix","Array"],p=["number","BigNumber","bigint","Fraction"];function D(t,e,r){void 0===t[e]||r.includes(t[e])||console.warn('Warning: Unknown value "'+t[e]+'" for configuration option "'+e+'". Available options: '+r.map(t=>JSON.stringify(t)).join(", ")+".")}function m(t,e){var r,g,v=(0,n.A)({},h,e);if("function"!=typeof Object.create)throw Error("ES5 not supported by this JavaScript engine. Please load the es5-shim and es5-sham library for compatibility.");var y=(r={isNumber:c.Et,isComplex:c.Zd,isBigNumber:c.C4,isBigInt:c.sI,isFraction:c.fU,isUnit:c.vO,isString:c.Kg,isArray:c.cy,isMatrix:c.OA,isCollection:c.P3,isDenseMatrix:c.zR,isSparseMatrix:c.AF,isRange:c._Z,isIndex:c.nw,isBoolean:c.Lm,isResultSet:c.eW,isHelp:c.gS,isFunction:c.Tn,isDate:c.$P,isRegExp:c.gd,isObject:c.Gv,isMap:c.jh,isPartitionedMap:c.aZ,isObjectWrappingMap:c.uQ,isNull:c.kZ,isUndefined:c.b0,isAccessorNode:c.AS,isArrayNode:c.gO,isAssignmentNode:c.qM,isBlockNode:c.CD,isConditionalNode:c.PO,isConstantNode:c.BA,isFunctionAssignmentNode:c.m2,isFunctionNode:c.Px,isIndexNode:c.$I,isNode:c.Ll,isObjectNode:c.GJ,isOperatorNode:c.$$,isParenthesisNode:c.tv,isRangeNode:c.Ye,isRelationalNode:c.iu,isSymbolNode:c.li,isChain:c.o_},g=new l,r.on=g.on.bind(g),r.off=g.off.bind(g),r.once=g.once.bind(g),r.emit=g.emit.bind(g),r);y.config=function(t,e){function r(n){if(!n)return(0,f.o8)(t);if(void 0!==n.epsilon){console.warn('Warning: The configuration option "epsilon" is deprecated. Use "relTol" and "absTol" instead.');var i=(0,f.o8)(n);return i.relTol=n.epsilon,i.absTol=.001*n.epsilon,delete i.epsilon,r(i)}var u=(0,f.o8)(t);D(n,"matrix",d),D(n,"number",p),(0,f.zw)(t,n);var o=(0,f.o8)(t);return e("config",o,u,(0,f.o8)(n)),o}return r.MATRIX_OPTIONS=d,r.NUMBER_OPTIONS=p,Object.keys(h).forEac
1h(e=>{Object.defineProperty(r,e,{get:()=>t[e],enumerable:!0,configurable:!0})}),r}(v,y.emit),y.expression={transform:{},mathWithTransform:{config:y.config}};var w={};function b(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return y.typed.apply(y.typed,e)}b.isTypedFunction=i.isTypedFunction;var F=function(t,e,r,n){function i(t,e){e&&"function"==typeof e.transform?(r.expression.transform[t]=e.transform,a(t)&&(r.expression.mathWithTransform[t]=e.transform)):(delete r.expression.transform[t],a(t)&&(r.expression.mathWithTransform[t]=e))}function o(t){delete r.expression.transform[t],a(t)?r.expression.mathWithTransform[t]=r[t]:delete r.expression.mathWithTransform[t]}function a(t){return!(0,f.mQ)(h,t)}function l(t){return void 0!==t&&void 0!==t.meta&&!0===t.meta.isTransformFunction}var h={expression:!0,type:!0,docs:!0,error:!0,json:!0,chain:!0};return function(e,a){var d=arguments.length;if(1!==d&&2!==d)throw new u("import",d,1,2);a||(a={});var p={};for(var D in function t(e,r,n){if(Array.isArray(r))r.forEach(r=>t(e,r));else{var i;if((0,c.Gv)(r)||"object"==typeof(i=r)&&"Module"===i[Symbol.toStringTag])for(var u in r)(0,f.mQ)(r,u)&&t(e,r[u],u);else if((0,s.T$)(r)||void 0!==n){var o=(0,s.T$)(r)?l(r)?r.fn+".transform":r.fn:n;if((0,f.mQ)(e,o)&&e[o]!==r&&!a.silent)throw Error('Cannot import "'+o+'" twice');e[o]=r}else if(!a.silent)throw TypeError("Factory, Object, or Array expected")}}(p,e),p)if((0,f.mQ)(p,D)){var m=p[D];if((0,s.T$)(m))(function(e,i){var u,a,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.fn;if(c.includes("."))throw Error("Factory name should not contain a nested path. Name: "+JSON.stringify(c));var d=l(e)?r.expression.transform:r,p=c in r.expression.transform,D=(0,f.mQ)(d,c)?d[c]:void 0,m=function(){var n={};e.dependencies.map(s.Py).forEach(t=>{if(t.includes("."))throw Error("Factory dependency should not contain a nested path. Name: "+JSON.stringify(t));"math"===t?n.math=r:"mathWithTransform"===t?n.mathWithTransform=r.expression.mathWithTransform:"classes"===t?n.classes=r:n[t]=r[t]});var u=e(n);if(u&&"function"==typeof u.transform)throw Error('Transforms cannot be attached to factory functions. Please create a separate function for it with export const path = "expression.transform"');if(void 0===D||i.override)return u;if(t.isTypedFunction(D)&&t.isTypedFunction(u))return t(D,u);if(i.silent)return D;throw Error('Cannot import "'+c+'": already exists')},g=null!==(u=null===(a=e.meta)||void 0===a?void 0:a.formerly)&&void 0!==u?u:"",v=l(e)||!e.fn.includes(".")&&!(0,f.mQ)(h,e.fn)&&(!e.meta||!e.meta.isClass),y=r.expression.mathWithTransform;e.meta&&!1===e.meta.lazy?(d[c]=m(),g&&(d[g]=d[c])):((0,f.RZ)(d,c,m),g&&(0,f.RZ)(d,g,m)),D&&p?(o(c),g&&o(g)):v&&((0,f.RZ)(y,c,()=>d[c]),g&&(0,f.RZ)(y,g,()=>d[c])),n[c]=e,r.emit("import",c,m)})(m,a);else if("function"==typeof m||"number"==typeof m||"string"==typeof m||"boolean"==typeof m||null===m||(0,c.vO)(m)||(0,c.Zd)(m)||(0,c.C4)(m)||(0,c.fU)(m)||(0,c.OA)(m)||Array.isArray(m))(function(e,u,o){if(o.wrap&&"function"==typeof u&&(u=function(t){var e=function(){for(var e=[],n=0,i=arguments.length;n<i;n++){var u=arguments[n];e[n]=u&&u.valueOf()}return t.apply(r,e)};return t.transform&&(e.transform=t.transform),e}(u)),"function"==typeof(a=u)&&"string"==typeof a.signature&&(u=t(e,{[u.signature]:u})),t.isTypedFunction(r[e])&&t.isTypedFunction(u)){u=o.override?t(e,u.signatures):t(r[e],u),r[e]=u,delete n[e],i(e,u),r.emit("import",e,function(){return u});return}var a,s,c=void 0!==r[e],f=null===(s=r.Unit)||void 0===s?void 0:s.isValuelessUnit(e);if(!c&&!f||o.override){r[e]=u,delete n[e],i(e,u),r.emit("import",e,function(){return u});return}if(!o.silent)throw Error('Cannot import "'+e+'": already exists')})(D,m,a);else if(!a.silent)throw TypeError("Factory, Object, or Array expected")}}}(b,0,y,w);return y.import=F,y.on("config",()=>{Object.values(w).forEach(t=>{t&&t.meta&&t.meta.recreateOnConfigChange&&F(t,{override:!0})})}),y.create=m.bind(null,t),y.factory=s.P9,y.import(Object.values((0,f.rU)(t))),y.ArgumentsError=u,y.DimensionError=o.h,y.IndexError=a.d,y}},49639:(t,e,r)=>{"use strict";r.d(e,{$:()=>s});var n=r(42483),i=r(90329),u=r(52492),o="addScalar",a=(0,i.P9)(o,["typed"],t=>{var{typed:e}=t;return e(o,{"number, number":u.LF,"Complex, Complex":function(t,e){return t.add(e)},"BigNumber, BigNumber":function(t,e){return t.plus(e)},"bigint, bigint":function(t,e){return t+e},"Fraction, Fraction":function(t,e){return t.add(e)},"Unit, Unit":e.referToSelf(t=>(r,n)=>{if(null===r.value||void 0===r.value)throw Error("Parameter x contains a unit with undefined value");if(null===n.value||void 0===n.value)throw Error("Parameter y contains a unit with undefined value");if(!r.equalBase(n))throw Error("Units do not match");var i=r.clone();
1return i.value=e.find(t,[i.valueType(),n.valueType()])(i.value,n.value),i.fixPrefix=!1,i})})}),s={typedDependencies:n.U,createAddScalar:a}},90803:(t,e,r)=>{"use strict";r.d(e,{P:()=>tY});var n,i,u="0123456789abcdef",o="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",a="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",s={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-9e15,maxE:9e15,crypto:!1},c=!0,f="[DecimalError] ",l=f+"Invalid argument: ",h=f+"Precision limit exceeded",d=f+"crypto unavailable",p="[object Decimal]",D=Math.floor,m=Math.pow,g=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,v=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,y=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,w=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,b=o.length-1,F=a.length-1,A={toStringTag:p};function E(t){var e,r,n,i=t.length-1,u="",o=t[0];if(i>0){for(u+=o,e=1;e<i;e++)(r=7-(n=t[e]+"").length)&&(u+=Y(r)),u+=n;(r=7-(n=(o=t[e])+"").length)&&(u+=Y(r))}else if(0===o)return"0";for(;o%10==0;)o/=10;return u+o}function _(t,e,r){if(t!==~~t||t<e||t>r)throw Error(l+t)}function C(t,e,r,n){var i,u,o,a;for(u=t[0];u>=10;u/=10)--e;return--e<0?(e+=7,i=0):(i=Math.ceil((e+1)/7),e%=7),u=m(10,7-e),a=t[i]%u|0,null==n?e<3?(0==e?a=a/100|0:1==e&&(a=a/10|0),o=r<4&&99999==a||r>3&&49999==a||5e4==a||0==a):o=(r<4&&a+1==u||r>3&&a+1==u/2)&&(t[i+1]/u/100|0)==m(10,e-2)-1||(a==u/2||0==a)&&(t[i+1]/u/100|0)==0:e<4?(0==e?a=a/1e3|0:1==e?a=a/100|0:2==e&&(a=a/10|0),o=(n||r<4)&&9999==a||!n&&r>3&&4999==a):o=((n||r<4)&&a+1==u||!n&&r>3&&a+1==u/2)&&(t[i+1]/u/1e3|0)==m(10,e-3)-1,o}function x(t,e,r){for(var n,i,o=[0],a=0,s=t.length;a<s;){for(i=o.length;i--;)o[i]*=e;for(o[0]+=u.indexOf(t.charAt(a++)),n=0;n<o.length;n++)o[n]>r-1&&(void 0===o[n+1]&&(o[n+1]=0),o[n+1]+=o[n]/r|0,o[n]%=r)}return o.reverse()}A.absoluteValue=A.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),B(t)},A.ceil=function(){return B(new this.constructor(this),this.e+1,2)},A.clampedTo=A.clamp=function(t,e){var r=this.constructor;if(t=new r(t),e=new r(e),!t.s||!e.s)return new r(NaN);if(t.gt(e))throw Error(l+e);return 0>this.cmp(t)?t:this.cmp(e)>0?e:new r(this)},A.comparedTo=A.cmp=function(t){var e,r,n,i,u=this.d,o=(t=new this.constructor(t)).d,a=this.s,s=t.s;if(!u||!o)return a&&s?a!==s?a:u===o?0:!u^a<0?1:-1:NaN;
1if(!u[0]||!o[0])return u[0]?a:o[0]?-s:0;if(a!==s)return a;if(this.e!==t.e)return this.e>t.e^a<0?1:-1;for(e=0,r=(n=u.length)<(i=o.length)?n:i;e<r;++e)if(u[e]!==o[e])return u[e]>o[e]^a<0?1:-1;return n===i?0:n>i^a<0?1:-1},A.cosine=A.cos=function(){var t,e,r=this,n=r.constructor;return r.d?r.d[0]?(t=n.precision,e=n.rounding,n.precision=t+Math.max(r.e,r.sd())+7,n.rounding=1,r=function(t,e){var r,n,i;if(e.isZero())return e;(n=e.d.length)<32?i=(1/q(4,r=Math.ceil(n/3))).toString():(r=16,i="2.3283064365386962890625e-10"),t.precision+=r,e=R(t,1,e.times(i),new t(1));for(var u=r;u--;){var o=e.times(e);e=o.times(o).minus(o).times(8).plus(1)}return t.precision-=r,e}(n,H(n,r)),n.precision=t,n.rounding=e,B(2==i||3==i?r.neg():r,t,e,!0)):new n(1):new n(NaN)},A.cubeRoot=A.cbrt=function(){var t,e,r,n,i,u,o,a,s,f,l=this.constructor;if(!this.isFinite()||this.isZero())return new l(this);for(c=!1,(u=this.s*m(this.s*this,1/3))&&Math.abs(u)!=1/0?n=new l(u.toString()):(r=E(this.d),(u=((t=this.e)-r.length+1)%3)&&(r+=1==u||-2==u?"0":"00"),u=m(r,1/3),t=D((t+1)/3)-(t%3==(t<0?-1:2)),(n=new l(r=u==1/0?"5e"+t:(r=u.toExponential()).slice(0,r.indexOf("e")+1)+t)).s=this.s),o=(t=l.precision)+3;;)if(n=M((f=(s=(a=n).times(a).times(a)).plus(this)).plus(this).times(a),f.plus(s),o+2,1),E(a.d).slice(0,o)===(r=E(n.d)).slice(0,o)){if("9999"!=(r=r.slice(o-3,o+1))&&(i||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(B(n,t+1,1),e=!n.times(n).times(n).eq(this));break}if(!i&&(B(a,t+1,0),a.times(a).times(a).eq(this))){n=a;break}o+=4,i=1}return c=!0,B(n,t,l.rounding,e)},A.decimalPlaces=A.dp=function(){var t,e=this.d,r=NaN;if(e){if(r=((t=e.length-1)-D(this.e/7))*7,t=e[t])for(;t%10==0;t/=10)r--;r<0&&(r=0)}return r},A.dividedBy=A.div=function(t){return M(this,new this.constructor(t))},A.dividedToIntegerBy=A.divToInt=function(t){var e=this.constructor;return B(M(this,new e(t),0,1,1),e.precision,e.rounding)},A.equals=A.eq=function(t){return 0===this.cmp(t)},A.floor=function(){return B(new this.constructor(this),this.e+1,3)},A.greaterThan=A.gt=function(t){return this.cmp(t)>0},A.greaterThanOrEqualTo=A.gte=function(t){var e=this.cmp(t);return 1==e||0===e},A.hyperbolicCosine=A.cosh=function(){var t,e,r,n,i,u=this,o=u.constructor,a=new o(1);if(!u.isFinite())return new o(u.s?1/0:NaN);if(u.isZero())return a;r=o.precision,n=o.rounding,o.precision=r+Math.max(u.e,u.sd())+4,o.rounding=1,(i=u.d.length)<32?e=(1/q(4,t=Math.ceil(i/3))).toString():(t=16,e="2.3283064365386962890625e-10"),u=R(o,1,u.times(e),new o(1),!0);for(var s,c=t,f=new o(8);c--;)s=u.times(u),u=a.minus(s.times(f.minus(s.times(f))));return B(u,o.precision=r,o.rounding=n,!0)},A.hyperbolicSine=A.sinh=function(){var t,e,r,n,i=this,u=i.constructor;if(!i.isFinite()||i.isZero())return new u(i);if(e=u.precision,r=u.rounding,u.precision=e+Math.max(i.e,i.sd())+4,u.rounding=1,(n=i.d.length)<3)i=R(u,2,i,i,!0);else{t=(t=1.4*Math.sqrt(n))>16?16:0|t,i=R(u,2,i=i.times(1/q(5,t)),i,!0);for(var o,a=new u(5),s=new u(16),c=new u(20);t--;)o=i.times(i),i=i.times(a.plus(o.times(s.times(o).plus(c))))}return u.precision=e,u.rounding=r,B(i,e,r,!0)}
1,A.hyperbolicTangent=A.tanh=function(){var t,e,r=this.constructor;return this.isFinite()?this.isZero()?new r(this):(t=r.precision,e=r.rounding,r.precision=t+7,r.rounding=1,M(this.sinh(),this.cosh(),r.precision=t,r.rounding=e)):new r(this.s)},A.inverseCosine=A.acos=function(){var t=this,e=t.constructor,r=t.abs().cmp(1),n=e.precision,i=e.rounding;return -1!==r?0===r?t.isNeg()?O(e,n,i):new e(0):new e(NaN):t.isZero()?O(e,n+4,i).times(.5):(e.precision=n+6,e.rounding=1,t=new e(1).minus(t).div(t.plus(1)).sqrt().atan(),e.precision=n,e.rounding=i,t.times(2))},A.inverseHyperbolicCosine=A.acosh=function(){var t,e,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(t=n.precision,e=n.rounding,n.precision=t+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,c=!1,r=r.times(r).minus(1).sqrt().plus(r),c=!0,n.precision=t,n.rounding=e,r.ln()):new n(r)},A.inverseHyperbolicSine=A.asinh=function(){var t,e,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,c=!1,r=r.times(r).plus(1).sqrt().plus(r),c=!0,n.precision=t,n.rounding=e,r.ln())},A.inverseHyperbolicTangent=A.atanh=function(){var t,e,r,n,i=this,u=i.constructor;return i.isFinite()?i.e>=0?new u(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(t=u.precision,e=u.rounding,Math.max(n=i.sd(),t)<-(2*i.e)-1)?B(new u(i),t,e,!0):(u.precision=r=n-i.e,i=M(i.plus(1),new u(1).minus(i),r+t,1),u.precision=t+4,u.rounding=1,i=i.ln(),u.precision=t,u.rounding=e,i.times(.5)):new u(NaN)},A.inverseSine=A.asin=function(){var t,e,r,n,i=this,u=i.constructor;return i.isZero()?new u(i):(e=i.abs().cmp(1),r=u.precision,n=u.rounding,-1!==e)?0===e?((t=O(u,r+4,n).times(.5)).s=i.s,t):new u(NaN):(u.precision=r+6,u.rounding=1,i=i.div(new u(1).minus(i.times(i)).sqrt().plus(1)).atan(),u.precision=r,u.rounding=n,i.times(2))},A.inverseTangent=A.atan=function(){var t,e,r,n,i,u,o,a,s,f=this,l=f.constructor,h=l.precision,d=l.rounding;if(f.isFinite()){if(f.isZero())return new l(f);if(f.abs().eq(1)&&h+4<=F)return(o=O(l,h+4,d).times(.25)).s=f.s,o}else{if(!f.s)return new l(NaN);if(h+4<=F)return(o=O(l,h+4,d).times(.5)).s=f.s,o}for(l.precision=a=h+10,l.rounding=1,t=r=Math.min(28,a/7+2|0);t;--t)f=f.div(f.times(f).plus(1).sqrt().plus(1));for(c=!1,e=Math.ceil(a/7),n=1,s=f.times(f),o=new l(f),i=f;-1!==t;)if(i=i.times(s),u=o.minus(i.div(n+=2)),i=i.times(s),void 0!==(o=u.plus(i.div(n+=2))).d[e])for(t=e;o.d[t]===u.d[t]&&t--;);return r&&(o=o.times(2<<r-1)),c=!0,B(o,l.precision=h,l.rounding=d,!0)},A.isFinite=function(){return!!this.d},A.isInteger=A.isInt=function(){return!!this.d&&D(this.e/7)>this.d.length-2},A.isNaN=function(){return!this.s},A.isNegative=A.isNeg=function(){return this.s<0},A.isPositive=A.isPos=function(){return this.s>0},A.isZero=function(){return!!this.d&&0===this.d[0]},A.lessThan=A.lt=function(t){return 0>this.cmp(t)},A.lessThanOrEqualTo=A.lte=function(t){return 1>this.cmp(t)},A.logarithm=A.log=function(t){var e,r,n,i,u,o,a,s=this.constructor,f=s.precision,l=s.rounding;if(null==t)t=new s(10),e=!0;else{if(r=(t=new s(t)).d,t.s<0||!r||!r[0]||t.eq(1))return new s(NaN);e=t.eq(10)}if(r=this.d,this.s<0||!r||!r[0]||this.eq(1))return new s(r&&!r[0]?-1/0:1!=this.s?NaN:r?0:1/0);if(e){if(r.length>1)i=!0;else{for(n=r[0];n%10==0;)n/=10;i=1!==n}}if(c=!1,C((a=M(L(this,o=f+5),e?T(s,o+10):L(t,o),o,1)).d,n=f,l))do if(o+=10,a=M(L(this,o),e?T(s,o+10):L(t,o),o,1),!i){+E(a.d).slice(n+1,n+15)+1==1e14&&(a=B(a,f+1,0));break}while(C(a.d,n+=10,l));return c=!0,B(a,f,l)},A.minus=A.sub=function(t){var e,r,n,i,u,o,a,s,f,l,h,d,p=this.constructor;if(t=new p(t),!this.d||!t.d)return this.s&&t.s?this.d?t.s=-t.s:t=new p(t.d||this.s!==t.s?this:NaN):t=new p(NaN),t;if(this.s!=t.s)return t.s=-t.s,this.plus(t);if(f=this.d,d=t.d,a=p.precision,s=p.rounding,!f[0]||!d[0]){if(d[0])t.s=-t.s;else{if(!f[0])return new p(3===s?-0:0);t=new p(this)}return c?B(t,a,s):t}if(r=D(t.e/7),l=D(this.e/7),f=f.slice(),u=l-r){for((h=u<0)?(e=f,u=-u,o=d.length):(e=d,r=l,o=f.length),u>(n=Math.max(Math.ceil(a/7),o)+2)&&(u=n,e.length=1),e.reverse(),n=u;n--;)e.push(0);e.reverse()}else{for((h=(n=f.length)<(o=d.length))&&(o=n),n=0;n<o;n++)if(f[n]!=d[n]){h=f[n]<d[n];break}u=0}for(h&&(e=f,f=d,d=e,t.s=-t.s),o=f.length,n=d.length-o;n>0;--n)f[o++]=0;for(n=d.length;n>u;){if(f[--n]<d[n]){for(i=n;i&&0===f[--i];)f[i]=1e7-1;--f[i],f[n]+=1e7}f[n]-=d[n]}for(;0===f[--o];)f.pop();for(;0===f[0];f.shift())--r;return f[0]?(t.d=f,t.e=N(f,r),c?B(t,a,s):t):new p(3===s?-0:0)},A.modulo=A.mod=function(t){var e,r=this.constructor;return(t=new r(t),this.d&&t.s&&(!t.d||t.d[0]))?t.d&&(!this.d||this.d[0])?(c=!1,9==r.modulo?(e=M(this,t.abs(),0,3,1),e.s*=t.s):e=M(this,t,0,r.modulo,1),e=e.times(t),c=!0,this.minus(e)):B(new r(this),r.precision,r.rounding):new r(NaN)},A.naturalExponential=A.exp=function(){return j(this)},A.naturalLogarithm=A.ln=function(){return L(this)},A.negated=A.neg=function(){var t=new this.constructor(this);return t.s=-t.s,B(t)},A.plus=A.add=function(t){var e,r,n,i,u,o,a,s,f,l,h=this.constructor;if(t=new h(t),!this.d||!t.d)return this.s&&t.s?this.d||(t=new h(t.d||this.s===t.s?this:NaN)):t=new h(NaN),t;if(this.s!=t.s)return t.s=-t.s,this.minus(t);
1if(f=this.d,l=t.d,a=h.precision,s=h.rounding,!f[0]||!l[0])return l[0]||(t=new h(this)),c?B(t,a,s):t;if(u=D(this.e/7),n=D(t.e/7),f=f.slice(),i=u-n){for(i<0?(r=f,i=-i,o=l.length):(r=l,n=u,o=f.length),i>(o=(u=Math.ceil(a/7))>o?u+1:o+1)&&(i=o,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((o=f.length)-(i=l.length)<0&&(i=o,r=l,l=f,f=r),e=0;i;)e=(f[--i]=f[i]+l[i]+e)/1e7|0,f[i]%=1e7;for(e&&(f.unshift(e),++n),o=f.length;0==f[--o];)f.pop();return t.d=f,t.e=N(f,n),c?B(t,a,s):t},A.precision=A.sd=function(t){var e;if(void 0!==t&&!!t!==t&&1!==t&&0!==t)throw Error(l+t);return this.d?(e=k(this.d),t&&this.e+1>e&&(e=this.e+1)):e=NaN,e},A.round=function(){var t=this.constructor;return B(new t(this),this.e+1,t.rounding)},A.sine=A.sin=function(){var t,e,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+Math.max(r.e,r.sd())+7,n.rounding=1,r=function(t,e){var r,n=e.d.length;if(n<3)return e.isZero()?e:R(t,2,e,e);r=(r=1.4*Math.sqrt(n))>16?16:0|r,e=R(t,2,e=e.times(1/q(5,r)),e);for(var i,u=new t(5),o=new t(16),a=new t(20);r--;)i=e.times(e),e=e.times(u.plus(i.times(o.times(i).minus(a))));return e}(n,H(n,r)),n.precision=t,n.rounding=e,B(i>2?r.neg():r,t,e,!0)):new n(NaN)},A.squareRoot=A.sqrt=function(){var t,e,r,n,i,u,o=this.d,a=this.e,s=this.s,f=this.constructor;if(1!==s||!o||!o[0])return new f(!s||s<0&&(!o||o[0])?NaN:o?this:1/0);for(c=!1,0==(s=Math.sqrt(+this))||s==1/0?(((e=E(o)).length+a)%2==0&&(e+="0"),s=Math.sqrt(e),a=D((a+1)/2)-(a<0||a%2),n=new f(e=s==1/0?"5e"+a:(e=s.toExponential()).slice(0,e.indexOf("e")+1)+a)):n=new f(s.toString()),r=(a=f.precision)+3;;)if(n=(u=n).plus(M(this,u,r+2,1)).times(.5),E(u.d).slice(0,r)===(e=E(n.d)).slice(0,r)){if("9999"!=(e=e.slice(r-3,r+1))&&(i||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(B(n,a+1,1),t=!n.times(n).eq(this));break}if(!i&&(B(u,a+1,0),u.times(u).eq(this))){n=u;break}r+=4,i=1}return c=!0,B(n,a,f.rounding,t)},A.tangent=A.tan=function(){var t,e,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+10,n.rounding=1,(r=r.sin()).s=1,r=M(r,new n(1).minus(r.times(r)).sqrt(),t+10,0),n.precision=t,n.rounding=e,B(2==i||4==i?r.neg():r,t,e,!0)):new n(NaN)},A.times=A.mul=function(t){var e,r,n,i,u,o,a,s,f,l=this.constructor,h=this.d,d=(t=new l(t)).d;if(t.s*=this.s,!h||!h[0]||!d||!d[0])return new l(t.s&&(!h||h[0]||d)&&(!d||d[0]||h)?h&&d?0*t.s:t.s/0:NaN);for(r=D(this.e/7)+D(t.e/7),(s=h.length)<(f=d.length)&&(u=h,h=d,d=u,o=s,s=f,f=o),u=[],n=o=s+f;n--;)u.push(0);for(n=f;--n>=0;){for(e=0,i=s+n;i>n;)a=u[i]+d[n]*h[i-n-1]+e,u[i--]=a%1e7|0,e=a/1e7|0;u[i]=(u[i]+e)%1e7|0}for(;!u[--o];)u.pop();return e?++r:u.shift(),t.d=u,t.e=N(u,r),c?B(t,l.precision,l.rounding):t},A.toBinary=function(t,e){return Z(this,2,t,e)},A.toDecimalPlaces=A.toDP=function(t,e){var r=this,n=r.constructor;
1return(r=new n(r),void 0===t)?r:(_(t,0,1e9),void 0===e?e=n.rounding:_(e,0,8),B(r,t+r.e+1,e))},A.toExponential=function(t,e){var r,n=this,i=n.constructor;return void 0===t?r=S(n,!0):(_(t,0,1e9),void 0===e?e=i.rounding:_(e,0,8),r=S(n=B(new i(n),t+1,e),!0,t+1)),n.isNeg()&&!n.isZero()?"-"+r:r},A.toFixed=function(t,e){var r,n,i=this.constructor;return void 0===t?r=S(this):(_(t,0,1e9),void 0===e?e=i.rounding:_(e,0,8),r=S(n=B(new i(this),t+this.e+1,e),!1,t+n.e+1)),this.isNeg()&&!this.isZero()?"-"+r:r},A.toFraction=function(t){var e,r,n,i,u,o,a,s,f,h,d,p,D=this.d,g=this.constructor;if(!D)return new g(this);if(f=r=new g(1),n=s=new g(0),o=(u=(e=new g(n)).e=k(D)-this.e-1)%7,e.d[0]=m(10,o<0?7+o:o),null==t)t=u>0?e:f;else{if(!(a=new g(t)).isInt()||a.lt(f))throw Error(l+a);t=a.gt(e)?u>0?e:f:a}for(c=!1,a=new g(E(D)),h=g.precision,g.precision=u=14*D.length;d=M(a,e,0,1,1),1!=(i=r.plus(d.times(n))).cmp(t);)r=n,n=i,i=f,f=s.plus(d.times(i)),s=i,i=e,e=a.minus(d.times(i)),a=i;return i=M(t.minus(r),n,0,1,1),s=s.plus(i.times(f)),r=r.plus(i.times(n)),s.s=f.s=this.s,p=1>M(f,n,u,1).minus(this).abs().cmp(M(s,r,u,1).minus(this).abs())?[f,n]:[s,r],g.precision=h,c=!0,p},A.toHexadecimal=A.toHex=function(t,e){return Z(this,16,t,e)},A.toNearest=function(t,e){var r=this,n=r.constructor;if(r=new n(r),null==t){if(!r.d)return r;t=new n(1),e=n.rounding}else{if(t=new n(t),void 0===e?e=n.rounding:_(e,0,8),!r.d)return t.s?r:t;if(!t.d)return t.s&&(t.s=r.s),t}return t.d[0]?(c=!1,r=M(r,t,0,e,1).times(t),c=!0,B(r)):(t.s=r.s,r=t),r},A.toNumber=function(){return+this},A.toOctal=function(t,e){return Z(this,8,t,e)},A.toPower=A.pow=function(t){var e,r,n,i,u,o,a=this,s=a.constructor,f=+(t=new s(t));if(!a.d||!t.d||!a.d[0]||!t.d[0])return new s(m(+a,f));if((a=new s(a)).eq(1))return a;if(n=s.precision,u=s.rounding,t.eq(1))return B(a,n,u);if((e=D(t.e/7))>=t.d.length-1&&(r=f<0?-f:f)<=0x1fffffffffffff)return i=z(s,a,r,n),t.s<0?new s(1).div(i):B(i,n,u);if((o=a.s)<0){if(e<t.d.length-1)return new s(NaN);if((1&t.d[e])==0&&(o=1),0==a.e&&1==a.d[0]&&1==a.d.length)return a.s=o,a}return(e=0!=(r=m(+a,f))&&isFinite(r)?new s(r+"").e:D(f*(Math.log("0."+E(a.d))/Math.LN10+a.e+1)))>s.maxE+1||e<s.minE-1?new s(e>0?o/0:0):(c=!1,s.rounding=a.s=1,r=Math.min(12,(e+"").length),(i=j(t.times(L(a,n+r)),n)).d&&C((i=B(i,n+5,1)).d,n,u)&&(e=n+10,+E((i=B(j(t.times(L(a,e+r)),e),e+5,1)).d).slice(n+1,n+15)+1==1e14&&(i=B(i,n+1,0))),i.s=o,c=!0,s.rounding=u,B(i,n,u))},A.toPrecision=function(t,e){var r,n=this,i=n.constructor;return void 0===t?r=S(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(_(t,1,1e9),void 0===e?e=i.rounding:_(e,0,8),r=S(n=B(new i(n),t,e),t<=n.e||n.e<=i.toExpNeg,t)),n.isNeg()&&!n.isZero()?"-"+r:r},A.toSignificantDigits=A.toSD=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(_(t,1,1e9),void 0===e?e=r.rounding:_(e,0,8)),B(new r(this),t,e)},A.toString=function(){var t=this.constructor,e=S(this,this.e<=t.toExpNeg||this.e>=t.toExpPos);return this.isNeg()&&!this.isZero()?"-"+e:e},A.truncated=A.trunc=function(){return B(new this.constructor(this),this.e+1,1)},A.valueOf=A.toJSON=function(){var t=this.constructor,e=S(this,this.e<=t.toExpNeg||this.e>=t.toExpPos);return this.isNeg()?"-"+e:e};var M=function(){function t(t,e,r){var n,i=0,u=t.length;for(t=t.slice();u--;)n=t[u]*e+i,t[u]=n%r|0,i=n/r|0;return i&&t.unshift(i),t}function e(t,e,r,n){var i,u;if(r!=n)u=r>n?1:-1;else for(i=u=0;i<r;i++)if(t[i]!=e[i]){u=t[i]>e[i]?1:-1;break}return u}function r(t,e,r,n){for(var i=0;r--;)t[r]-=i,i=t[r]<e[r]?1:0,t[r]=i*n+t[r]-e[r];for(;!t[0]&&t.length>1;)t.shift()}return function(i,u,o,a,s,c){var f,l,h,d,p,m,g,v,y,w,b,F,A,E,_,C,x,M,S,N,T=i.constructor,O=i.s==u.s?1:-1,k=i.d,Y=u.d;if(!k||!k[0]||!Y||!Y[0])return new T(i.s&&u.s&&(k?!Y||k[0]!=Y[0]:Y)?k&&0==k[0]||!Y?0*O:O/0:NaN);for(c?(p=1,l=i.e-u.e):(c=1e7,p=7,l=D(i.e/p)-D(u.e/p)),S=Y.length,x=k.length,w=(y=new T(O)).d=[],h=0;Y[h]==(k[h]||0);h++);if(Y[h]>(k[h]||0)&&l--,null==o?(E=o=T.precision,a=T.rounding):E=s?o+(i.e-u.e)+1:o,E<0)w.push(1),m=!0;else{if(E=E/p+2|0,h=0,1==S){for(d=0,Y=Y[0],E++;(h<x||d)&&E--;h++)_=d*c+(k[h]||0),w[h]=_/Y|0,d=_%Y|0;m=d||h<x}else{for((d=c/(Y[0]+1)|0)>1&&(Y=t(Y,d,c),k=t(k,d,c),S=Y.length,x=k.length),C=S,F=(b=k.slice(0,S)).length;F<S;)b[F++]=0;(N=Y.slice()).unshift(0),M=Y[0],Y[1]>=c/2&&++M;do d=0,(f=e(Y,b,S,F))<0?(A=b[0],S!=F&&(A=A*c+(b[1]||0)),(d=A/M|0)>1?(d>=c&&(d=c-1),v=(g=t(Y,d,c)).length,F=b.length,1==(f=e(g,b,v,F))&&(d--,r(g,S<v?N:Y,v,c))):(0==d&&(f=d=1),g=Y.slice()),(v=g.length)<F&&g.unshift(0),r(b,g,F,c),-1==f&&(F=b.length,(f=e(Y,b,S,F))<1&&(d++,r(b,S<F?N:Y,F,c))),F=b.length):0===f&&(d++,b=[0]),w[h++]=d,f&&b[0]?b[F++]=k[C]||0:(b=[k[C]],F=1);while((C++<x||void 0!==b[0])&&E--);m=void 0!==b[0]}w[0]||w.shift()}if(1==p)y.e=l,n=m;else{for(h=1,d=w[0];d>=10;d/=10)h++;y.e=h+l*p-1,B(y,s?o+y.e+1:o,a,m)}return y}}();function B(t,e,r,n){var i,u,o,a,s,f,l,h,d,p=t.constructor;t:if(null!=e){if(!(h=t.d))return t;for(i=1,a=h[0];a>=10;a/=10)i++;
vendor: 4,636 bytes, line 1
1if((u=e-i)<0)u+=7,o=e,s=(l=h[d=0])/m(10,i-o-1)%10|0;else if((d=Math.ceil((u+1)/7))>=(a=h.length)){if(n){for(;a++<=d;)h.push(0);l=s=0,i=1,u%=7,o=u-7+1}else break t}else{for(i=1,l=a=h[d];a>=10;a/=10)i++;u%=7,s=(o=u-7+i)<0?0:l/m(10,i-o-1)%10|0}if(n=n||e<0||void 0!==h[d+1]||(o<0?l:l%m(10,i-o-1)),f=r<4?(s||n)&&(0==r||r==(t.s<0?3:2)):s>5||5==s&&(4==r||n||6==r&&(u>0?o>0?l/m(10,i-o):0:h[d-1])%10&1||r==(t.s<0?8:7)),e<1||!h[0])return h.length=0,f?(e-=t.e+1,h[0]=m(10,(7-e%7)%7),t.e=-e||0):h[0]=t.e=0,t;if(0==u?(h.length=d,a=1,d--):(h.length=d+1,a=m(10,7-u),h[d]=o>0?(l/m(10,i-o)%m(10,o)|0)*a:0),f)for(;;){if(0==d){for(u=1,o=h[0];o>=10;o/=10)u++;for(o=h[0]+=a,a=1;o>=10;o/=10)a++;u!=a&&(t.e++,1e7==h[0]&&(h[0]=1));break}if(h[d]+=a,1e7!=h[d])break;h[d--]=0,a=1}for(u=h.length;0===h[--u];)h.pop()}return c&&(t.e>p.maxE?(t.d=null,t.e=NaN):t.e<p.minE&&(t.e=0,t.d=[0])),t}function S(t,e,r){if(!t.isFinite())return $(t);var n,i=t.e,u=E(t.d),o=u.length;return e?(r&&(n=r-o)>0?u=u.charAt(0)+"."+u.slice(1)+Y(n):o>1&&(u=u.charAt(0)+"."+u.slice(1)),u=u+(t.e<0?"e":"e+")+t.e):i<0?(u="0."+Y(-i-1)+u,r&&(n=r-o)>0&&(u+=Y(n))):i>=o?(u+=Y(i+1-o),r&&(n=r-i-1)>0&&(u=u+"."+Y(n))):((n=i+1)<o&&(u=u.slice(0,n)+"."+u.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(u+="."),u+=Y(n))),u}function N(t,e){var r=t[0];for(e*=7;r>=10;r/=10)e++;return e}function T(t,e,r){if(e>b)throw c=!0,r&&(t.precision=r),Error(h);return B(new t(o),e,1,!0)}function O(t,e,r){if(e>F)throw Error(h);return B(new t(a),e,r,!0)}function k(t){var e=t.length-1,r=7*e+1;if(e=t[e]){for(;e%10==0;e/=10)r--;for(e=t[0];e>=10;e/=10)r++}return r}function Y(t){for(var e="";t--;)e+="0";return e}function z(t,e,r,n){var i,u=new t(1),o=Math.ceil(n/7+4);for(c=!1;;){if(r%2&&G((u=u.times(e)).d,o)&&(i=!0),0===(r=D(r/2))){r=u.d.length-1,i&&0===u.d[r]&&++u.d[r];break}G((e=e.times(e)).d,o)}return c=!0,u}function P(t){return 1&t.d[t.d.length-1]}function I(t,e,r){for(var n,i,u=new t(e[0]),o=0;++o<e.length;){if(!(i=new t(e[o])).s){u=i;break}((n=u.cmp(i))===r||0===n&&u.s===r)&&(u=i)}return u}function j(t,e){var r,n,i,u,o,a,s,f=0,l=0,h=0,d=t.constructor,p=d.rounding,D=d.precision;if(!t.d||!t.d[0]||t.e>17)return new d(t.d?t.d[0]?t.s<0?0:1/0:1:t.s?t.s<0?0:t:0/0);for(null==e?(c=!1,s=D):s=e,a=new d(.03125);t.e>-2;)t=t.times(a),h+=5;for(s+=n=Math.log(m(2,h))/Math.LN10*2+5|0,r=u=o=new d(1),d.precision=s;;){if(u=B(u.times(t),s,1),r=r.times(++l),E((a=o.plus(M(u,r,s,1))).d).slice(0,s)===E(o.d).slice(0,s)){for(i=h;i--;)o=B(o.times(o),s,1);if(null!=e)return d.precision=D,o;if(!(f<3&&C(o.d,s-n,p,f)))return B(o,d.precision=D,p,c=!0);d.precision=s+=10,r=u=a=new d(1),l=0,f++}o=a}}function L(t,e){var r,n,i,u,o,a,s,f,l,h,d,p=1,D=t,m=D.d,g=D.constructor,v=g.rounding,y=g.precision;if(D.s<0||!m||!m[0]||!D.e&&1==m[0]&&1==m.length)return new g(m&&!m[0]?-1/0:1!=D.s?NaN:m?0:D);if(null==e?(c=!1,l=y):l=e,g.precision=l+=10,n=(r=E(m)).charAt(0),!(15e14>Math.abs(u=D.e)))return f=T(g,l+2,y).times(u+""),D=L(new g(n+"."+r.slice(1)),l-10).plus(f),g.precision=y,null==e?B(D,y,v,c=!0):D;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=E((D=D.times(t)).d)).charAt(0),p++;for(u=D.e,n>1?(D=new g("0."+r),u++):D=new g(n+"."+r.slice(1)),h=D,s=o=D=M(D.minus(1),D.plus(1),l,1),d=B(D.times(D),l,1),i=3;;){if(o=B(o.times(d),l,1),E((f=s.plus(M(o,new g(i),l,1))).d).slice(0,l)===E(s.d).slice(0,l)){if(s=s.times(2),0!==u&&(s=s.plus(T(g,l+2,y).times(u+""))),s=M(s,new g(p),l,1),null!=e)return g.precision=y,s;if(!C(s.d,l-10,v,a))return B(s,g.precision=y,v,c=!0);g.precision=l+=10,f=o=D=M(h.minus(1),h.plus(1),l,1),d=B(D.times(D),l,1),i=a=1}s=f,i+=2}}function $(t){return String(t.s*t.s/0)}function U(t,e){var r,n,i;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);n++);for(i=e.length;48===e.charCodeAt(i-1);--i);if(e=e.slice(n,i)){if(i-=n,t.e=r=r-n-1,t.d=[],n=(r+1)%7,r<0&&(n+=7),n<i){for(n&&t.d.push(+e.slice(0,n)),i-=7;n<i;)t.d.push(+e.slice(n,n+=7));n=7-(e=e.slice(n)).length}else n-=i;for(;n--;)e+="0";t.d.push(+e),c&&(t.e>t.constructor.maxE?(t.d=null,t.e=NaN):t.e<t.constructor.minE&&(t.e=0,t.d=[0]))}else t.e=0,t.d=[0];return t}function R(t,e,r,n,i){var u,o,a,s,f=t.precision,l=Math.ceil(f/7);for(c=!1,s=r.times(r),a=new t(n);;){if(o=M(a.times(s),new t(e++*e++),f,1),a=i?n.plus(o):n.minus(o),n=M(o.times(s),new t(e++*e++),f,1),void 0!==(o=a.plus(n)).d[l]){for(u=l;o.d[u]===a.d[u]&&u--;);if(-1==u)break}u=a,a=n,n=o,o=u}return c=!0,o.d.length=l+1,o}function q(t,e){for(var r=t;--e;)r*=t;return r}function H(t,e){var r,n=e.s<0,u=O(t,t.precision,1),o=u.times(.5);if((e=e.abs()).lte(o))return i=n?4:1,e;if((r=e.divToInt(u)).isZero())i=n?3:2;
1else{if((e=e.minus(r.times(u))).lte(o))return i=P(r)?n?2:3:n?4:1,e;i=P(r)?n?1:4:n?3:2}return e.minus(u).abs()}function Z(t,e,r,i){var o,a,s,c,f,l,h,d,p,D=t.constructor,m=void 0!==r;if(m?(_(r,1,1e9),void 0===i?i=D.rounding:_(i,0,8)):(r=D.precision,i=D.rounding),t.isFinite()){for(s=(h=S(t)).indexOf("."),m?(o=2,16==e?r=4*r-3:8==e&&(r=3*r-2)):o=e,s>=0&&(h=h.replace(".",""),(p=new D(1)).e=h.length-s,p.d=x(S(p),10,o),p.e=p.d.length),a=f=(d=x(h,10,o)).length;0==d[--f];)d.pop();if(d[0]){if(s<0?a--:((t=new D(t)).d=d,t.e=a,d=(t=M(t,p,r,i,0,o)).d,a=t.e,l=n),s=d[r],c=o/2,l=l||void 0!==d[r+1],l=i<4?(void 0!==s||l)&&(0===i||i===(t.s<0?3:2)):s>c||s===c&&(4===i||l||6===i&&1&d[r-1]||i===(t.s<0?8:7)),d.length=r,l)for(;++d[--r]>o-1;)d[r]=0,r||(++a,d.unshift(1));for(f=d.length;!d[f-1];--f);for(s=0,h="";s<f;s++)h+=u.charAt(d[s]);if(m){if(f>1){if(16==e||8==e){for(s=16==e?4:3,--f;f%s;f++)h+="0";for(f=(d=x(h,o,e)).length;!d[f-1];--f);for(s=1,h="1.";s<f;s++)h+=u.charAt(d[s])}else h=h.charAt(0)+"."+h.slice(1)}h=h+(a<0?"p":"p+")+a}else if(a<0){for(;++a;)h="0"+h;h="0."+h}else if(++a>f)for(a-=f;a--;)h+="0";else a<f&&(h=h.slice(0,a)+"."+h.slice(a))}else h=m?"0p+0":"0";h=(16==e?"0x":2==e?"0b":8==e?"0o":"")+h}else h=$(t);return t.s<0?"-"+h:h}function G(t,e){if(t.length>e)return t.length=e,!0}function J(t){return new this(t).abs()}function W(t){return new this(t).acos()}function Q(t){return new this(t).acosh()}function V(t,e){return new this(t).plus(e)}function K(t){return new this(t).asin()}function X(t){return new this(t).asinh()}function tt(t){return new this(t).atan()}function te(t){return new this(t).atanh()}function tr(t,e){t=new this(t),e=new this(e);var r,n=this.precision,i=this.rounding,u=n+4;return t.s&&e.s?t.d||e.d?!e.d||t.isZero()?(r=e.s<0?O(this,n,i):new this(0)).s=t.s:!t.d||e.isZero()?(r=O(this,u,1).times(.5)).s=t.s:e.s<0?(this.precision=u,this.rounding=1,r=this.atan(M(t,e,u,1)),e=O(this,u,1),this.precision=n,this.rounding=i,r=t.s<0?r.minus(e):r.plus(e)):r=this.atan(M(t,e,u,1)):(r=O(this,u,1).times(e.s>0?.25:.75)).s=t.s:r=new this(NaN),r}function tn(t){return new this(t).cbrt()}function ti(t){return B(t=new this(t),t.e+1,2)}function tu(t,e,r){return new this(t).clamp(e,r)}function to(t){if(!t||"object"!=typeof t)throw Error(f+"Object expected");var e,r,n,i=!0===t.defaults,u=["precision",1,1e9,"rounding",0,8,"toExpNeg",-9e15,0,"toExpPos",0,9e15,"maxE",0,9e15,"minE",-9e15,0,"modulo",0,9];for(e=0;e<u.length;e+=3)if(r=u[e],i&&(this[r]=s[r]),void 0!==(n=t[r])){if(D(n)===n&&n>=u[e+1]&&n<=u[e+2])this[r]=n;else throw Error(l+r+": "+n)}if(r="crypto",i&&(this[r]=s[r]),void 0!==(n=t[r])){if(!0===n||!1===n||0===n||1===n){if(n){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[r]=!0;else throw Error(d)}else this[r]=!1}else throw Error(l+r+": "+n)}return this}function ta(t){return new this(t).cos()}function ts(t){return new this(t).cosh()}function tc(t,e){return new this(t).div(e)}function tf(t){return new this(t).exp()}function tl(t){return B(t=new this(t),t.e+1,3)}function th(){var t,e,r=new this(0);for(t=0,c=!1;t<arguments.length;)if(e=new this(arguments[t++]),e.d)r.d&&(r=r.plus(e.times(e)));else{if(e.s)return c=!0,new this(1/0);r=e}return c=!0,r.sqrt()}function td(t){return t instanceof tk||t&&t.toStringTag===p||!1}function tp(t){return new this(t).ln()}function tD(t,e){return new this(t).log(e)}function tm(t){return new this(t).log(2)}function tg(t){return new this(t).log(10)}function tv(){return I(this,arguments,-1)}function ty(){return I(this,arguments,1)}function tw(t,e){return new this(t).mod(e)}function tb(t,e){return new this(t).mul(e)}function tF(t,e){return new this(t).pow(e)}function tA(t){var e,r,n,i,u=0,o=new this(1),a=[];if(void 0===t?t=this.precision:_(t,1,1e9),n=Math.ceil(t/7),this.crypto){if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(n));u<n;)(i=e[u])>=429e7?e[u]=crypto.getRandomValues(new Uint32Array(1))[0]:a[u++]=i%1e7;else if(crypto.randomBytes){for(e=crypto.randomBytes(n*=4);u<n;)(i=e[u]+(e[u+1]<<8)+(e[u+2]<<16)+((127&e[u+3])<<24))>=214e7?crypto.randomBytes(4).copy(e,u):(a.push(i%1e7),u+=4);u=n/4}else throw Error(d)}else for(;u<n;)a[u++]=1e7*Math.random()|0;for(n=a[--u],t%=7,n&&t&&(i=m(10,7-t),a[u]=(n/i|0)*i);0===a[u];u--)a.pop();if(u<0)r=0,a=[0];else{for(r=-1;0===a[0];r-=7)a.shift();for(n=1,i=a[0];i>=10;i/=10)n++;n<7&&(r-=7-n)}return o.e=r,o.d=a,o}function tE(t){return B(t=new this(t),t.e+1,this.rounding)}function t_(t){return(t=new this(t)).d?t.d[0]?t.s:0*t.s:t.s||NaN}function tC(t){return new this(t).sin()}function tx(t){return new this(t).sinh()}function tM(t){return new this(t).sqrt()}function tB(t,e){return new this(t).sub(e)}function tS(){var t=0,e=arguments,r=new this(e[0]);for(c=!1;r.s&&++t<e.length;)r=r.plus(e[t]);return c=!0,B(r,this.precision,this.rounding)}function tN(t){return new this(t).tan()}function tT(t){return new this(t).tanh()}function tO(t){return B(t=new this(t),t.e+1,1)}A[Symbol.for("nodejs.util.inspect.custom")]=A.toString,A[Symbol.toStringTag]="Decimal";var tk=A.constructor=function t(e){var r,n,i;function u(t){var e,r,n;if(!(this instanceof u))return new u(t);if(this.constructor=u,td(t)){this.s=t.s,c?!t.d||t.e>u.maxE?(this.e=NaN,this.d=null):t.e<u.minE?(this.e=0,this.d=[0]):(this.e=t.e,this.d=t.d.slice()):(this.e=t.e,this.d=t.d?t.d.slice():t.d);return}if("number"==(n=typeof t)){if(0===t){this.s=1/t<0?-1:1,this.e=0,this.d=[0];return}if(t<0?(t=-t,this.s=-1):this.s=1,t===~~t&&t<1e7){for(e=0,r=t;r>=10;r/=10)e++;c?e>u.maxE?(this.e=NaN,this.d=null):e<u.minE?(this.e=0,this.d=[0]):(this.e=e,this.d=[t]):(this.e=e,this.d=[t]);return}if(0*t!=0){t||(this.s=NaN),this.e=NaN,this.d=null;return}return U(this,t.toString())}if("string"===n)return 45===(r=t.charCodeAt(0))?(t=t.slice(1),this.s=-1):(43===r&&(t=t.slice(1)),this.s=1),w.test(t)?U(this,t):function(t,e){var r,n,i,u,o,a,s,f,h;if(e.indexOf("_")>-1){if(e=e.replace(/(\d)_(?=\d)/g,"$1"),w.test(e))return U(t,e)}else if("Infinity"===e||"NaN"===e)return+e||(t.s=NaN),t.e=NaN,t.d=null,t;if(v.test(e))r=16,e=e.toLowerCase();else if(g.test(e))r=2;else if(y.test(e))r=8;else throw Error(l+e);for((u=e.search(/p/i))>0?(s=+e.slice(u+1),e=e.substring(2,u)):e=e.slice(2),o=(u=e.indexOf("."))>=0,n=t.constructor,o&&(u=(a=(e=e.replace(".","")).length)-u,i=z(n,new n(r),u,2*u)),u=h=(f=x(e,r,1e7)).length-1;0===f[u];--u)f.pop();return u<0?new n(0*t.s):(t.e=N(f,h),t.d=f,c=!1,o&&(t=M(t,i,4*a)),s&&(t=t.times(54>Math.abs(s)?m(2,s):tk.pow(2,s))),c=!0,t)}(this,t);if("bigint"===n)return t<0?(t=-t,this.s=-1):this.s=1,U(this,t.toString());throw Error(l+t)}if(u.prototype=A,u.ROUND_UP=0,u.ROUND_DOWN=1,u.ROUND_CEIL=2,u.ROUND_FLOOR=3,u.ROUND_HALF_UP=4,u.ROUND_HALF_DOWN=5,u.ROUND_HALF_EVEN=6,u.ROUND_HALF_CEIL=7,u.ROUND_HALF_FLOOR=8,u.EUCLID=9,u.config=u.set=to,u.clone=t,u.isDecimal=td,u.abs=J,u.acos=W,u.acosh=Q,u.add=V,u.asin=K,u.asinh=X,u.atan=tt,u.atanh=te,u.atan2=tr,u.cbrt=tn,u.ceil=ti,u.clamp=tu,u.cos=ta,u.cosh=ts,u.div=tc,u.exp=tf,u.floor=tl,u.hypot=th,u.ln=tp,u.log=tD,u.log10=tg,u.log2=tm,u.max=tv,u.min=ty,u.mod=tw,u.mul=tb,u.pow=tF,u.random=tA,u.round=tE,u.sign=t_,u.sin=tC,u.sinh=tx,u.sqrt=tM,u.sub=tB,u.sum=tS,u.tan=tN,u.tanh=tT,u.trunc=tO,void 0===e&&(e={}),e&&!0!==e.defaults)for(r=0,i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"];r<i.length;)e.hasOwnProperty(n=i[r++])||(e[n]=this[n]);return u.config(e),u}(s);o=new tk(o),a=new tk(a);var tY={createBigNumberClass:(0,r(90329).P9)("BigNumber",["?on","config"],t=>{var{on:e,config:r}=t,n=tk.clone({precision:r.precision,modulo:tk.EUCLID});return n.prototype=Object.create(n.prototype),n.prototype.type="BigNumber",n.prototype.isBigNumber=!0,n.prototype.toJSON=function(){return{mathjs:"BigNumber",value:this.toString()}},n.fromJSON=function(t){return new n(t.value)},e&&e("config",function(t,e){t.precision!==e.precision&&n.config({precision:t.precision})}),n},{isClass:!0})}},76515:(t,e,r)=>{"use strict";r.d(e,{J:()=>s});var n=r(90803),i=r(42483),u=r(90329),o=r(10885),a=(0,u.P9)("bignumber",["typed","BigNumber"],t=>{var{typed:e,BigNumber:r}=t;return e("bignumber",{"":function(){return new r(0)},number:function(t){return new r(t+"")},string:function(t){var e=t.match(/(0[box][0-9a-fA-F]*)i([0-9]*)/);if(e){var n=e[2],i=r(e[1]),u=new r(2).pow(Number(n));if(i.gt(u.sub(1)))throw SyntaxError('String "'.concat(t,'" is out of range'));var o=new r(2).pow(Number(n)-1);return i.gte(o)?i.sub(u):i}return new r(t)},BigNumber:function(t){return t},bigint:function(t){return new r(t.toString())},Unit:e.referToSelf(t=>e=>{var r=e.clone();return r.value=t(e.value),r}),Fraction:function(t){return new r(String(t.n)).div(String(t.d)).times(String(t.s))},null:function(t){return new r(0)},"Array | Matrix":e.referToSelf(t=>e=>(0,o.Bl)(e,t))})}
1),s={BigNumberDependencies:n.P,typedDependencies:i.U,createBignumber:a}},26485:(t,e,r)=>{"use strict";r.d(e,{k:()=>d});var n=r(14098),i=r(19600),u=r(38458),o=r(82152),a=r(6416),s=r(23610),c=r(12270),f=r(90329),l=r(96153),h=(0,f.P9)("DenseMatrix",["Matrix"],t=>{var{Matrix:e}=t;function r(t,e){if(!(this instanceof r))throw SyntaxError("Constructor must be called with the new operator");if(e&&!(0,i.Kg)(e))throw Error("Invalid datatype: "+e);if((0,i.OA)(t))"DenseMatrix"===t.type?(this._data=(0,s.o8)(t._data),this._size=(0,s.o8)(t._size)):(this._data=t.toArray(),this._size=t.size()),this._datatype=e||t._datatype;else if(t&&(0,i.cy)(t.data)&&(0,i.cy)(t.size))this._data=t.data,this._size=t.size,(0,u.tf)(this._data,this._size),this._datatype=e||t.datatype;else if((0,i.cy)(t))this._data=function t(e){return(0,i.OA)(e)?t(e.valueOf()):(0,i.cy)(e)?e.map(t):e}(t),this._size=(0,u.LO)(this._data),(0,u.tf)(this._data,this._size),this._datatype=e;else if(t)throw TypeError("Unsupported type of data ("+(0,i.QP)(t)+")");else this._data=[],this._size=[0],this._datatype=e}function n(t,e,r){if(0===e.length){for(var n=t._data;(0,i.cy)(n);)n=n[0];return n}return t._size=e.slice(0),t._data=(0,u.XR)(t._data,t._size,r),t}function f(t,e,r){for(var i=t._size.slice(0),u=!1;i.length<e.length;)i.push(0),u=!0;for(var o=0,a=e.length;o<a;o++)e[o]>i[o]&&(i[o]=e[o],u=!0);u&&n(t,i,r)}return r.prototype=new e,r.prototype.createDenseMatrix=function(t,e){return new r(t,e)},Object.defineProperty(r,"name",{value:"DenseMatrix"}),r.prototype.constructor=r,r.prototype.type="DenseMatrix",r.prototype.isDenseMatrix=!0,r.prototype.getDataType=function(){return(0,u.ig)(this._data,i.QP)},r.prototype.storage=function(){return"dense"},r.prototype.datatype=function(){return this._datatype},r.prototype.create=function(t,e){return new r(t,e)},r.prototype.subset=function(t,e,n){switch(arguments.length){case 1:return function(t,e){if(!(0,i.nw)(e))throw TypeError("Invalid index");if(e.isScalar())return t.get(e.min());var n,o,a,s=e.size();if(s.length!==t._size.length)throw new c.h(s.length,t._size.length);for(var f=e.min(),l=e.max(),h=0,d=t._size.length;h<d;h++)(0,u.r7)(f[h],t._size[h]),(0,u.r7)(l[h],t._size[h]);var p=new r([]),D=(n=t._data,a=Array(o=e.size().length-1),{data:function t(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=e.dimension(n);return(a[n]=i.size()[0],n<o)?i.map(e=>((0,u.r7)(e,r.length),t(r[e],n+1))).valueOf():i.map(t=>((0,u.r7)(t,r.length),r[t])).valueOf()}(n),size:a});return p._size=D.size,p._datatype=t._datatype,p._data=D.data,p}(this,t);case 2:case 3:return function(t,e,r,n){if(!e||!0!==e.isIndex)throw TypeError("Invalid index");var o,a=e.size(),l=e.isScalar();if((0,i.OA)(r)?(o=r.size(),r=r.valueOf()):o=(0,u.LO)(r),l){if(0!==o.length)throw TypeError("Scalar expected");t.set(e.min(),r,n)}else{if(!(0,s.QO)(o,a))try{r=0===o.length?(0,u.hO)([r],a):(0,u.hO)(r,a),o=(0,u.LO)(r)}catch(t){}if(a.length<t._size.length)throw new c.h(a.length,t._size.length,"<");if(o.length<a.length){for(var h=0,d=0;1===a[h]&&1===o[h];)h++;for(;1===a[h];)d++,h++;r=(0,u.iD)(r,a.length,d,o)}if(!(0,s.QO)(a,o))throw new c.h(a,o,">");f(t,e.max().map(function(t){return t+1}),n),function(t,e,r){var n=e.size().length-1;(function t(r,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=e.dimension(o);o<n?a.forEach((e,n)=>{(0,u.r7)(e,r.length),t(r[e],i[n[0]],o+1)}):a.forEach((t,e)=>{(0,u.r7)(t,r.length),r[t]=i[e[0]]})})(t,r)}(t._data,e,r)}return t}(this,t,e,n);default:throw SyntaxError("Wrong number of arguments")}},r.prototype.get=function(t){return(0,u.Jt)(this._data,t)},r.prototype.set=function(t,e,r){if(!(0,i.cy)(t))throw TypeError("Array expected");if(t.length<this._size.length)throw new c.h(t.length,this._size.length,"<");f(this,t.map(function(t){return t+1}),r);var n,o,a,s=this._data;for(n=0,o=t.length-1;n<o;n++)a=t[n],(0,u.r7)(a,s.length),s=s[a];return a=t[t.length-1],(0,u.r7)(a,s.length),s[a]=e,this},r.prototype.resize=function(t,e,r){if(!(0,i.P3)(t))throw TypeError("Array or Matrix expected");var u=t.valueOf().map(t=>Array.isArray(t)&&1===t.length?t[0]:t);return n(r?this.clone():this,u,e)},r.prototype.reshape=function(t,e){var r=e?this.clone():this;r._data=(0,u.tQ)(r._data,t);var n=r._size.reduce((t,e)=>t*e);return r._size=(0,u.cs)(t,n),r},r.prototype.clone=function(){return new r({data:(0,s.o8)(this._data),size:(0,s.o8)(this._size),datatype:this._datatype})},r.prototype.size=function(){return this._size.slice(0)},r.prototype.map=function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1];var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this,n=r._size.length-1;if(n<0)return r.clone();var i=(0,l.r)(t,r,"map",e),u=i.fn,o=r.create(void 0,r._datatype);if(o._size=r._size,e||i.isUnary)return o._data=function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=Array(e.length);if(r<n)for(var o=0;o<e.length;o++)i[o]=t(e[o],r+1);else for(var a=0;a<e.length;a++)i[a]=u(e[a]);return i}(r._data),o;
1if(0===n){for(var a=r.valueOf(),s=Array(a.length),c=0;c<a.length;c++)s[c]=u(a[c],[c],r);return o._data=s,o}var f=[];return o._data=function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=Array(e.length);if(i<n)for(var a=0;a<e.length;a++)f[i]=a,o[a]=t(e[a],i+1);else for(var s=0;s<e.length;s++)f[i]=s,o[s]=u(e[s],f.slice(),r);return o}(r._data),o},r.prototype.forEach=function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1];var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this,n=r._size.length-1;if(!(n<0)){var i=(0,l.r)(t,r,"map",e),u=i.fn;if(e||i.isUnary){(function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(r<n)for(var i=0;i<e.length;i++)t(e[i],r+1);else for(var o=0;o<e.length;o++)u(e[o])})(r._data);return}if(0===n){for(var o=0;o<r._data.length;o++)u(r._data[o],[o],r);return}var a=[];(function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(i<n)for(var o=0;o<e.length;o++)a[i]=o,t(e[o],i+1);else for(var s=0;s<e.length;s++)a[i]=s,u(e[s],a.slice(),r)})(r._data)}},r.prototype[Symbol.iterator]=function*(){var t=this._size.length-1;if(!(t<0)){if(0===t){for(var e=0;e<this._data.length;e++)yield{value:this._data[e],index:[e]};return}for(var r=Array(t+1).fill(0),n=this._size.reduce((t,e)=>t*e,1),i=0;i<n;i++){for(var u=this._data,o=0;o<t;o++)u=u[r[o]];yield{value:u[r[t]],index:r.slice()};for(var a=t;a>=0&&(r[a]++,!(r[a]<this._size[a]));a--)r[a]=0}}},r.prototype.rows=function(){var t=[];if(2!==this.size().length)throw TypeError("Rows can only be returned for a 2D matrix.");for(var e of this._data)t.push(new r([e],this._datatype));return t},r.prototype.columns=function(){var t=this,e=[],n=this.size();if(2!==n.length)throw TypeError("Rows can only be returned for a 2D matrix.");for(var i=this._data,u=function(n){var u=i.map(t=>[t[n]]);e.push(new r(u,t._datatype))},o=0;o<n[1];o++)u(o);return e},r.prototype.toArray=function(){return(0,s.o8)(this._data)},r.prototype.valueOf=function(){return this._data},r.prototype.format=function(t){return(0,o.GP)(this._data,t)},r.prototype.toString=function(){return(0,o.GP)(this._data)},r.prototype.toJSON=function(){return{mathjs:"DenseMatrix",data:this._data,size:this._size,datatype:this._datatype}},r.prototype.diagonal=function(t){if(t){if((0,i.C4)(t)&&(t=t.toNumber()),!(0,i.Et)(t)||!(0,a.YN)(t))throw TypeError("The parameter k must be an integer number")}else t=0;for(var e=t>0?t:0,n=t<0?-t:0,u=Math.min(this._size[0]-n,this._size[1]-e),o=[],s=0;s<u;s++)o[s]=this._data[s+n][s+e];return new r({data:o,size:[u],datatype:this._datatype})},r.diagonal=function(t,e,n,o){if(!(0,i.cy)(t))throw TypeError("Array expected, size parameter");if(2!==t.length)throw Error("Only two dimensions matrix are supported");if(t=t.map(function(t){if((0,i.C4)(t)&&(t=t.toNumber()),!(0,i.Et)(t)||!(0,a.YN)(t)||t<1)throw Error("Size values must be positive integers");return t}),n){if((0,i.C4)(n)&&(n=n.toNumber()),!(0,i.Et)(n)||!(0,a.YN)(n))throw TypeError("The parameter k must be an integer number")}else n=0;var s,c=n>0?n:0,f=n<0?-n:0,l=t[0],h=t[1],d=Math.min(l-f,h-c);if((0,i.cy)(e)){if(e.length!==d)throw Error("Invalid value array length");s=function(t){return e[t]}}else if((0,i.OA)(e)){var p=e.size();if(1!==p.length||p[0]!==d)throw Error("Invalid matrix length");s=function(t){return e.get([t])}}else s=function(){return e};o||(o=(0,i.C4)(s(0))?s(0).mul(0):0);var D=[];if(t.length>0){D=(0,u.XR)(D,t,o);for(var m=0;m<d;m++)D[m+f][m+c]=s(m)}return new r({data:D,size:[l,h]})},r.fromJSON=function(t){return new r(t)},r.prototype.swapRows=function(t,e){if(!(0,i.Et)(t)||!(0,a.YN)(t)||!(0,i.Et)(e)||!(0,a.YN)(e))throw Error("Row index must be positive integers");if(2!==this._size.length)throw Error("Only two dimensional matrix is supported");return(0,u.r7)(t,this._size[0]),(0,u.r7)(e,this._size[0]),r._swapRows(t,e,this._data),this},r._swapRows=function(t,e,r){var n=r[t];r[t]=r[e],r[e]=n},r},{isClass:!0}),d={MatrixDependencies:n.t,createDenseMatrixClass:h}},51745:(t,e,r)=>{"use strict";r.d(e,{f:()=>J});var n=r(76515),i=r(93760),u=r(42483),o=r(90329),a=r(10885),s=(0,o.P9)("fraction",["typed","Fraction"],t=>{var{typed:e,Fraction:r}=t;return e("fraction",{number:function(t){if(!isFinite(t)||isNaN(t))throw Error(t+" cannot be represented as a fraction");return new r(t)},string:function(t){return new r(t)},"number, number":function(t,e){return new r(t,e)},"bigint, bigint":function(t,e){return new r(t,e)},null:function(t){return new r(0)},BigNumber:function(t){return new r(t.toString())},bigint:function(t){return new r(t.toString())},Fraction:function(t){return t},Unit:e.referToSelf(t=>e=>{var r=e.clone();return r.value=t(e.value),r}),Object:function(t){return new r(t)},"Array | Matrix":e.referToSelf(t=>e=>(0,a.Bl)(e,t))})}),c={FractionDependencies:i.M,typedDependencies:u.U,createFraction:s},f=(0,o.P9)("number",["typed"],t=>{var{typed:e}=t,r=e("number",{"":function(){return 0},number:function(t){return t},string:function(t){if("NaN"===t)return NaN;var e,r,n=(r=(e=t).match(/(0[box])([0-9a-fA-F]*)\.([0-9a-fA-F]*)/))?{input
1:e,radix:({"0b":2,"0o":8,"0x":16})[r[1]],integerPart:r[2],fractionalPart:r[3]}:null;if(n)return function(t){for(var e=parseInt(t.integerPart,t.radix),r=0,n=0;n<t.fractionalPart.length;n++)r+=parseInt(t.fractionalPart[n],t.radix)/Math.pow(t.radix,n+1);var i=e+r;if(isNaN(i))throw SyntaxError('String "'+t.input+'" is not a valid number');return i}(n);var i=0,u=t.match(/(0[box][0-9a-fA-F]*)i([0-9]*)/);u&&(i=Number(u[2]),t=u[1]);var o=Number(t);if(isNaN(o))throw SyntaxError('String "'+t+'" is not a valid number');if(u){if(o>2**i-1)throw SyntaxError('String "'.concat(t,'" is out of range'));o>=2**(i-1)&&(o-=2**i)}return o},BigNumber:function(t){return t.toNumber()},bigint:function(t){return Number(t)},Fraction:function(t){return t.valueOf()},Unit:e.referToSelf(t=>e=>{var r=e.clone();return r.value=t(e.value),r}),null:function(t){return 0},"Unit, string | Unit":function(t,e){return t.toNumber(e)},"Array | Matrix":e.referToSelf(t=>e=>(0,a.Bl)(e,t))});return r.fromJSON=function(t){return parseFloat(t.value)},r}),l={typedDependencies:u.U,createNumber:f},h=r(19600),d=r(577),p=(0,o.P9)("numeric",["number","?bignumber","?fraction"],t=>{var{number:e,bignumber:r,fraction:n}=t,i={string:!0,number:!0,BigNumber:!0,Fraction:!0},u={number:t=>e(t),BigNumber:r?t=>r(t):d.j9,bigint:t=>BigInt(t),Fraction:n?t=>n(t):d.Sw};return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number",r=arguments.length>2?arguments[2]:void 0;if(void 0!==r)throw SyntaxError("numeric() takes one or two arguments");var n=(0,h.QP)(t);if(!(n in i))throw TypeError("Cannot convert "+t+' of type "'+n+'"; valid input types are '+Object.keys(i).join(", "));if(!(e in u))throw TypeError("Cannot convert "+t+' to type "'+e+'"; valid output types are '+Object.keys(u).join(", "));return e===n?t:u[e](t)}}),D={bignumberDependencies:n.J,fractionDependencies:c,numberDependencies:l,createNumeric:p},m="divideScalar",g=(0,o.P9)(m,["typed","numeric"],t=>{var{typed:e,numeric:r}=t;return e(m,{"number, number":function(t,e){return t/e},"Complex, Complex":function(t,e){return t.div(e)},"BigNumber, BigNumber":function(t,e){return t.div(e)},"bigint, bigint":function(t,e){return t/e},"Fraction, Fraction":function(t,e){return t.div(e)},"Unit, number | Complex | Fraction | BigNumber | Unit":(t,e)=>t.divide(e),"number | Fraction | Complex | BigNumber, Unit":(t,e)=>e.divideInto(t)})}),v={numericDependencies:D,typedDependencies:u.U,createDivideScalar:g},y=r(86333),w=r(52492),b=(0,o.P9)("abs",["typed"],t=>{var{typed:e}=t;return e("abs",{number:w.gu,"Complex | BigNumber | Fraction | Unit":t=>t.abs(),bigint:t=>t<0n?-t:t,"Array | Matrix":e.referToSelf(t=>e=>(0,a.Bl)(e,t,!0))})}),F={typedDependencies:u.U,createAbs:b},A=r(49639),E="isZero",_=(0,o.P9)(E,["typed","equalScalar"],t=>{var{typed:e,equalScalar:r}=t;return e(E,{"number | BigNumber | Complex | Fraction":t=>r(t,0),bigint:t=>0n===t,Unit:e.referToSelf(t=>r=>e.find(t,r.valueType())(r.value)),"Array | Matrix":e.referToSelf(t=>e=>(0,a.Bl)(e,t))})}),C={equalScalarDependencies:y.u,typedDependencies:u.U,createIsZero:_},x=r(59273),M=r(8491),B=r(36920),S=r(141),N=r(23610),T=r(82152),O=(0,o.P9)("det",["typed","matrix","subtractScalar","multiply","divideScalar","isZero","unaryMinus"],t=>{var{typed:e,matrix:r,subtractScalar:n,multiply:i,divideScalar:u,isZero:o,unaryMinus:a}=t;return e("det",{any:function(t){return(0,N.o8)(t)},"Array | Matrix":function(t){var e;switch((e=(0,h.OA)(t)?t.size():Array.isArray(t)?(t=r(t)).size():[]).length){case 0:return(0,N.o8)(t);case 1:if(1===e[0])return(0,N.o8)(t.valueOf()[0]);if(0===e[0])return 1;throw RangeError("Matrix must be square (size: "+(0,T.GP)(e)+")");case 2:var s=e[0],c=e[1];if(s===c)return function(t,e,r){if(1===e)return(0,N.o8)(t[0][0]);if(2===e)return n(i(t[0][0],t[1][1]),i(t[1][0],t[0][1]));for(var s=!1,c=Array(e).fill(0).map((t,e)=>e),f=0;f<e;f++){var l=c[f];if(o(t[l][f])){var h=void 0;for(h=f+1;h<e;h++)if(!o(t[c[h]][f])){l=c[h],c[h]=c[f],c[f]=l,s=!s;break}if(h===e)return t[l][f]}for(var d=t[l][f],p=0===f?1:t[c[f-1]][f-1],D=f+1;D<e;D++)for(var m=c[D],g=f+1;g<e;g++)t[m][g]=u(n(i(t[m][g],d),i(t[m][f],t[l][g])),p)}
1var v=t[c[e-1]][e-1];return s?a(v):v}(t.clone().valueOf(),s,0);if(0===c)return 1;throw RangeError("Matrix must be square (size: "+(0,T.GP)(e)+")");default:throw RangeError("Matrix must be two dimensional (size: "+(0,T.GP)(e)+")")}}})}),k={divideScalarDependencies:v,isZeroDependencies:C,matrixDependencies:x.p,multiplyDependencies:M.i,subtractScalarDependencies:B.w,typedDependencies:u.U,unaryMinusDependencies:S.j,createDet:O},Y=r(90803),z=r(26485),P=r(95712),I=r(38458),j=r(6416),L="identity",$=(0,o.P9)(L,["typed","config","matrix","BigNumber","DenseMatrix","SparseMatrix"],t=>{var{typed:e,config:r,matrix:n,BigNumber:i,DenseMatrix:u,SparseMatrix:o}=t;return e(L,{"":function(){return"Matrix"===r.matrix?n([]):[]},string:function(t){return n(t)},"number | BigNumber":function(t){return s(t,t,"Matrix"===r.matrix?"dense":void 0)},"number | BigNumber, string":function(t,e){return s(t,t,e)},"number | BigNumber, number | BigNumber":function(t,e){return s(t,e,"Matrix"===r.matrix?"dense":void 0)},"number | BigNumber, number | BigNumber, string":function(t,e,r){return s(t,e,r)},Array:function(t){return a(t)},"Array, string":function(t,e){return a(t,e)},Matrix:function(t){return a(t.valueOf(),t.storage())},"Matrix, string":function(t,e){return a(t.valueOf(),e)}});function a(t,e){switch(t.length){case 0:return e?n(e):[];case 1:return s(t[0],t[0],e);case 2:return s(t[0],t[1],e);default:throw Error("Vector containing two values expected")}}function s(t,e,r){var n=(0,h.C4)(t)||(0,h.C4)(e)?i:null;if((0,h.C4)(t)&&(t=t.toNumber()),(0,h.C4)(e)&&(e=e.toNumber()),!(0,j.YN)(t)||t<1||!(0,j.YN)(e)||e<1)throw Error("Parameters in function identity must be positive integers");var a=n?new i(1):1,s=n?new n(0):0,c=[t,e];if(r){if("sparse"===r)return o.diagonal(c,a,0,s);if("dense"===r)return u.diagonal(c,a,0,s);throw TypeError('Unknown matrix type "'.concat(r,'"'))}for(var f=(0,I.XR)([],c,s),l=t<e?t:e,d=0;d<l;d++)f[d][d]=a;return f}}),U={BigNumberDependencies:Y.P,DenseMatrixDependencies:z.k,SparseMatrixDependencies:P.J,matrixDependencies:x.p,typedDependencies:u.U,createIdentity:$},R=(0,o.P9)("inv",["typed","matrix","divideScalar","addScalar","multiply","unaryMinus","det","identity","abs"],t=>{var{typed:e,matrix:r,divideScalar:n,addScalar:i,multiply:u,unaryMinus:o,det:a,identity:s,abs:c}=t;return e("inv",{"Array | Matrix":function(t){var e=(0,h.OA)(t)?t.size():(0,I.LO)(t);switch(e.length){case 1:if(1===e[0]){if((0,h.OA)(t))return r([n(1,t.valueOf()[0])]);return[n(1,t[0])]}throw RangeError("Matrix must be square (size: "+(0,T.GP)(e)+")");case 2:var i=e[0],u=e[1];if(i===u){if((0,h.OA)(t))return r(f(t.valueOf(),i,u),t.storage());return f(t,i,u)}throw RangeError("Matrix must be square (size: "+(0,T.GP)(e)+")");default:throw RangeError("Matrix must be two dimensional (size: "+(0,T.GP)(e)+")")}},any:function(t){return n(1,t)}});function f(t,e,r){if(1===e){if(0===(d=t[0][0]))throw Error("Cannot calculate inverse, determinant is zero");return[[n(1,d)]]}if(2===e){var f,l,h,d,p,D=a(t);if(0===D)throw Error("Cannot calculate inverse, determinant is zero");return[[n(t[1][1],D),n(o(t[0][1]),D)],[n(o(t[1][0]),D),n(t[0][0],D)]]}var m=t.concat();for(f=0;f<e;f++)m[f]=m[f].concat();for(var g=s(e).valueOf(),v=0;v<r;v++){var y=c(m[v][v]),w=v;for(f=v+1;f<e;)c(m[f][v])>y&&(y=c(m[f][v]),w=f),f++;if(0===y)throw Error("Cannot calculate inverse, determinant is zero");(f=w)!==v&&(p=m[v],m[v]=m[f],m[f]=p,p=g[v],g[v]=g[f],g[f]=p);var b=m[v],F=g[v];for(f=0;f<e;f++){var A=m[f],E=g[f];if(f!==v){if(0!==A[v]){for(h=n(o(A[v]),b[v]),l=v;l<r;l++)A[l]=i(A[l],u(h,b[l]));for(l=0;l<r;l++)E[l]=i(E[l],u(h,F[l]))}}else{for(h=b[v],l=v;l<r;l++)A[l]=n(A[l],h);for(l=0;l<r;l++)E[l]=n(E[l],h)}}}return g}}),q={absDependencies:F,addScalarDependencies:A.$,detDependencies:k,divideScalarDependencies:v,identityDependencies:U,matrixDependencies:x.p,multiplyDependencies:M.i,typedDependencies:u.U,unaryMinusDependencies:S.j,createInv:R},H=r(29563),Z=r(59261),G=(0,o.P9)("divide",["typed","matrix","multiply","equalScalar","divideScalar","inv"],t=>{var{typed:e,matrix:r,multiply:n,equalScalar:i,divideScalar:u,inv:o}=t,a=(0,H.A)({typed:e,equalScalar:i}),s=(0,Z.A)({typed:e});return e("divide",(0,N.X$)({"Array | Matrix, Array | Matrix":function(t,e){return n(t,o(e))},"DenseMatrix, any":function(t,e){return s(t,e,u,!1)},"SparseMatrix, any":function(t,e){return a(t,e,u,!1)},"Array, any":function(t,e){return s(r(t),e,u,!1).valueOf()},"any, Array | Matrix":function(t,e){return n(t,o(e))}},u.signatures))}),J={divideScalarDependencies:v,equalScalarDependencies:y.u,invDepen
1dencies:q,matrixDependencies:x.p,multiplyDependencies:M.i,typedDependencies:u.U,createDivide:G}},86333:(t,e,r)=>{"use strict";r.d(e,{u:()=>c});var n=r(42483),i=r(6416),u=r(90329),o=(0,u.P9)("compareUnits",["typed"],t=>{var{typed:e}=t;return{"Unit, Unit":e.referToSelf(t=>(r,n)=>{if(!r.equalBase(n))throw Error("Cannot compare units with different base");return e.find(t,[r.valueType(),n.valueType()])(r.value,n.value)})}}),a="equalScalar",s=(0,u.P9)(a,["typed","config"],t=>{var{typed:e,config:r}=t,n=o({typed:e});return e(a,{"boolean, boolean":function(t,e){return t===e},"number, number":function(t,e){return(0,i.q8)(t,e,r.relTol,r.absTol)},"BigNumber, BigNumber":function(t,e){return t.eq(e)||function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e-9,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(r<=0)throw Error("Relative tolerance must be greater than 0");if(n<0)throw Error("Absolute tolerance must be at least 0");return!(t.isNaN()||e.isNaN())&&(t.isFinite()&&e.isFinite()?!!t.eq(e)||t.minus(e).abs().lte(t.constructor.max(t.constructor.max(t.abs(),e.abs()).mul(r),n)):t.eq(e))}(t,e,r.relTol,r.absTol)},"bigint, bigint":function(t,e){return t===e},"Fraction, Fraction":function(t,e){return t.equals(e)},"Complex, Complex":function(t,e){var n,u;return n=r.relTol,u=r.absTol,(0,i.q8)(t.re,e.re,n,u)&&(0,i.q8)(t.im,e.im,n,u)}},n)});(0,u.P9)(a,["typed","config"],t=>{var{typed:e,config:r}=t;return e(a,{"number, number":function(t,e){return(0,i.q8)(t,e,r.relTol,r.absTol)}})});var c={typedDependencies:n.U,createEqualScalar:s}},93760:(t,e,r)=>{"use strict";r.d(e,{M:()=>b}),"undefined"==typeof BigInt&&(BigInt=function(t){if(isNaN(t))throw Error("");return t});let n=BigInt(0),i=BigInt(1),u=BigInt(2),o=BigInt(3),a=BigInt(5),s=BigInt(10);BigInt(Number.MAX_SAFE_INTEGER);let c={s:i,n:n,d:i};function f(t,e){try{t=BigInt(t)}catch(t){throw y()}return t*e}function l(t){return"bigint"==typeof t?t:Math.floor(t)}function h(t,e){if(e===n)throw v();let r=Object.create(g.prototype);r.s=t<n?-i:i;let u=m(t=t<n?-t:t,e);return r.n=t/u,r.d=e/u,r}let d=[u*u,u,u*u,u,u*u,u*o,u,u*o];function p(t){let e=Object.create(null);if(t<=i)return e[t]=i,e;let r=t=>{e[t]=(e[t]||n)+i};for(;t%u===n;)r(u),t/=u;for(;t%o===n;)r(o),t/=o;for(;t%a===n;)r(a),t/=a;for(let e=0,i=u+a;i*i<=t;){for(;t%i===n;)r(i),t/=i;i+=d[e],e=e+1&7}return t>i&&r(t),e}let D=function(t,e){let r=n,u=i,o=i;if(null==t);else if(void 0!==e){if("bigint"==typeof t)r=t;else if(isNaN(t))throw y();else if(t%1!=0)throw w();else r=BigInt(t);if("bigint"==typeof e)u=e;else if(isNaN(e))throw y();else if(e%1!=0)throw w();else u=BigInt(e);o=r*u}else if("object"==typeof t){if("d"in t&&"n"in t)r=BigInt(t.n),u=BigInt(t.d),"s"in t&&(r*=BigInt(t.s));else if(0 in t)r=BigInt(t[0]),1 in t&&(u=BigInt(t[1]));else if("bigint"==typeof t)r=t;else throw y();o=r*u}else if("number"==typeof t){if(isNaN(t))throw y();if(t<0&&(o=-i,t=-t),t%1==0)r=BigInt(t);else{let e=1,n=0,i=1,o=1,a=1;for(t>=1&&(e=10**Math.floor(1+Math.log10(t)),t/=e);i<=1e7&&a<=1e7;){let e=(n+o)/(i+a);if(t===e){i+a<=1e7?(r=n+o,u=i+a):a>i?(r=o,u=a):(r=n,u=i);break}t>e?(n+=o,i+=a):(o+=n,a+=i),i>1e7?(r=o,u=a):(r=n,u=i)}r=BigInt(r)*BigInt(e),u=BigInt(u)}}else if("string"==typeof t){let e=0,a=n,c=n,l=n,h=i,d=i,p=t.replace(/_/g,"").match(/\d+|./g);if(null===p)throw y();if("-"===p[e]?(o=-i,e++):"+"===p[e]&&e++,p.length===e+1?c=f(p[e++],o):"."===p[e+1]||"."===p[e]?("."!==p[e]&&(a=f(p[e++],o)),(++e+1===
1p.length||"("===p[e+1]&&")"===p[e+3]||"'"===p[e+1]&&"'"===p[e+3])&&(c=f(p[e],o),h=s**BigInt(p[e].length),e++),("("===p[e]&&")"===p[e+2]||"'"===p[e]&&"'"===p[e+2])&&(l=f(p[e+1],o),d=s**BigInt(p[e+1].length)-i,e+=3)):"/"===p[e+1]||":"===p[e+1]?(c=f(p[e],o),h=f(p[e+2],i),e+=3):"/"===p[e+3]&&" "===p[e+1]&&(a=f(p[e],o),c=f(p[e+2],o),h=f(p[e+4],i),e+=5),p.length<=e)o=r=l+(u=h*d)*a+d*c;else throw y()}else if("bigint"==typeof t)r=t,o=t,u=i;else throw y();if(u===n)throw v();c.s=o<n?-i:i,c.n=r<n?-r:r,c.d=u<n?-u:u};function m(t,e){if(!t)return e;if(!e)return t;for(;;){if(!(t%=e))return e;if(!(e%=t))return t}}function g(t,e){if(D(t,e),!(this instanceof g))return h(c.s*c.n,c.d);t=m(c.d,c.n),this.s=c.s,this.n=c.n/t,this.d=c.d/t}let v=function(){return Error("Division by Zero")},y=function(){return Error("Invalid argument")},w=function(){return Error("Parameters must be integer")};g.prototype={s:i,n:n,d:i,abs:function(){return h(this.n,this.d)},neg:function(){return h(-this.s*this.n,this.d)},add:function(t,e){return D(t,e),h(this.s*this.n*c.d+c.s*this.d*c.n,this.d*c.d)},sub:function(t,e){return D(t,e),h(this.s*this.n*c.d-c.s*this.d*c.n,this.d*c.d)}
1,mul:function(t,e){return D(t,e),h(this.s*c.s*this.n*c.n,this.d*c.d)},div:function(t,e){return D(t,e),h(this.s*c.s*this.n*c.d,this.d*c.n)},clone:function(){return h(this.s*this.n,this.d)},mod:function(t,e){if(void 0===t)return h(this.s*this.n%this.d,i);if(D(t,e),n===c.n*this.d)throw v();return h(this.s*(c.d*this.n)%(c.n*this.d),c.d*this.d)},gcd:function(t,e){return D(t,e),h(m(c.n,this.n)*m(c.d,this.d),c.d*this.d)},lcm:function(t,e){return(D(t,e),c.n===n&&this.n===n)?h(n,i):h(c.n*this.n,m(c.n,this.n)*m(c.d,this.d))},inverse:function(){return h(this.s*this.d,this.n)},pow:function(t,e){if(D(t,e),c.d===i)return c.s<n?h((this.s*this.d)**c.n,this.n**c.n):h((this.s*this.n)**c.n,this.d**c.n);if(this.s<n)return null;let r=p(this.n),u=p(this.d),o=i,a=i;for(let t in r)if("1"!==t){if("0"===t){o=n;break}if(r[t]*=c.n,r[t]%c.d!==n)return null;r[t]/=c.d,o*=BigInt(t)**r[t]}for(let t in u)if("1"!==t){if(u[t]*=c.n,u[t]%c.d!==n)return null;u[t]/=c.d,a*=BigInt(t)**u[t]}return c.s<n?h(a,o):h(o,a)},log:function(t,e){if(D(t,e),this.s<=n||c.s<=n)return null;let r=Object.create(null),i=p(c.n),u=p(c.d),o=p(this.n),a=p(this.d);for(let t in u)i[t]=(i[t]||n)-u[t];for(let t in a)o[t]=(o[t]||n)-a[t];for(let t in i)"1"!==t&&(r[t]=!0);for(let t in o)"1"!==t&&(r[t]=!0);let s=null,f=null;for(let t in r){let e=i[t]||n,r=o[t]||n;if(e===n){if(r!==n)return null;continue}let u=r,a=e,c=m(u,a);if(u/=c,a/=c,null===s&&null===f)s=u,f=a;else if(u*f!=s*a)return null}return null!==s&&null!==f?h(s,f):null},equals:function(t,e){return D(t,e),this.s*this.n*c.d==c.s*c.n*this.d},lt:function(t,e){return D(t,e),this.s*this.n*c.d<c.s*c.n*this.d},lte:function(t,e){return D(t,e),this.s*this.n*c.d<=c.s*c.n*this.d},gt:function(t,e){return D(t,e),this.s*this.n*c.d>c.s*c.n*this.d},gte:function(t,e){return D(t,e),this.s*this.n*c.d>=c.s*c.n*this.d},compare:function(t,e){D(t,e);let r=this.s*this.n*c.d-c.s*c.n*this.d;return(n<r)-(r<n)},ceil:function(t){return t=s**BigInt(t||0),h(l(this.s*t*this.n/this.d)+(t*this.n%this.d>n&&this.s>=n?i:n),t)},floor:function(t){return t=s**BigInt(t||0),h(l(this.s*t*this.n/this.d)-(t*this.n%this.d>n&&this.s<n?i:n),t)},round:function(t){return t=s**BigInt(t||0),h(l(this.s*t*this.n/this.d)+this.s*((this.s>=n?i:n)+u*(t*this.n%this.d)>this.d?i:n),t)},roundTo:function(t,e){D(t,e);let r=this.n*c.d,n=this.d*c.n,i=r%n,u=l(r/n);return i+i>=n&&u++,h(this.s*u*c.n,c.d)},divisible:function(t,e){return D(t,e),c.n!==n&&this.n*c.d%(c.n*this.d)===n},valueOf:function(){return Number(this.s*this.n)/Number(this.d)},toString:function(t=15){let e=this.n,r=this.d,o=function(t,e){for(;e%u===n;e/=u);for(;e%a===n;e/=a);if(e===i)return n;let r=s%e,o=1;for(;r!==i;o++)if(r=r*s%e,o>2e3)return n;return BigInt(o)}(0,r),c=function(t,e,r){let u=i,o=function(t,e,r){let u=i;for(;e>n;t=t*t%r,e>>=i)e&i&&(u=u*t%r);return u}(s,r,e);for(let t=0;t<300;t++){if(u===o)return BigInt(t);u=u*s%e,o=o*s%e}return 0}(0,r,o),f=this.s<n?"-":"";if(f+=l(e/r),e%=r,(e*=s)&&(f+="."),o){for(let t=c;t--;)f+=l(e/r),e%=r,e*=s;f+="(";for(let t=o;t--;)f+=l(e/r),e%=r,e*=s;f+=")"}else for(let n=t;e&&n--;)f+=l(e/r),e%=r,e*=s;return f},toFraction:function(t=!1){let e=this.n,r=this.d,u=this.s<n?"-":"";if(r===i)u+=e;else{let i=l(e/r);t&&i>n&&(u+=i,u+=" ",e%=r),u+=e,u+="/",u+=r}return u},toLatex:function(t=!1){let e=this.n,r=this.d,u=this.s<n?"-":"";if(r===i)u+=e;else{let i=l(e/r);t&&i>n&&(u+=i,e%=r),u+="\\frac{",u+=e,u+="}{",u+=r,u+="}"}return u},toContinued:function(){let t=this.n,e=this.d,r=[];for(;e;){r.push(l(t/e));let n=t%e;t=e,e=n}return r},simplify:function(t=.001){let e=BigInt(Math.ceil(1/t)),r=this.abs(),n=r.toContinued();for(let t=1;t<n.length;t++){let u=h(n[t-1],i);for(let e=t-2;e>=0;e--)u=u.inverse().add(n[e]);let o=u.sub(r);if(o.n*e<o.d)return u.mul(this.s)}return this}};var b={createFractionClass:(0,r(90329).P9)("Fraction",[],()=>(Object.defineProperty(g,"name",{value:"Fraction"}),g.prototype.constructor=g,g.prototype.type="Fraction",g.prototype.isFraction=!0,g.prototype.toJSON=function(){return{mathjs:"Fraction",n:String(this.s*this.n),d:String(this.d)}},g.fromJSON=function(t){return new g(t)},g),{isClass:!0})}},59273:(t,e,r)=>{"use strict";r.d(e,{p:()=>f});var n=r(26485),i=r(14098),u=r(95712),o=r(42483),a=r(90329),s="matrix",c=(0,a.P9)(s,["typed","Matrix","DenseMatrix","SparseMatrix"],t=>{var{typed:e,Matrix:r,DenseMatrix:n,SparseMatrix:i}=t;return e(s,{"":function(){return u([])}
1,string:function(t){return u([],t)},"string, string":function(t,e){return u([],t,e)},Array:function(t){return u(t)},Matrix:function(t){return u(t,t.storage())},"Array | Matrix, string":u,"Array | Matrix, string, string":u});function u(t,e,r){if("dense"===e||"default"===e||void 0===e)return new n(t,r);if("sparse"===e)return new i(t,r);throw TypeError("Unknown matrix type "+JSON.stringify(e)+".")}}),f={DenseMatrixDependencies:n.k,MatrixDependencies:i.t,SparseMatrixDependencies:u.J,typedDependencies:o.U,createMatrix:c}},14098:(t,e,r)=>{"use strict";r.d(e,{t:()=>n});var n={createMatrixClass:(0,r(90329).P9)("Matrix",[],()=>{function t(){if(!(this instanceof t))throw SyntaxError("Constructor must be called with the new operator")}return t.prototype.type="Matrix",t.prototype.isMatrix=!0,t.prototype.storage=function(){throw Error("Cannot invoke storage on a Matrix interface")},t.prototype.datatype=function(){throw Error("Cannot invoke datatype on a Matrix interface")},t.prototype.create=function(t,e){throw Error("Cannot invoke create on a Matrix interface")},t.prototype.subset=function(t,e,r){throw Error("Cannot invoke subset on a Matrix interface")},t.prototype.get=function(t){throw Error("Cannot invoke get on a Matrix interface")},t.prototype.set=function(t,e,r){throw Error("Cannot invoke set on a Matrix interface")},t.prototype.resize=function(t,e){throw Error("Cannot invoke resize on a Matrix interface")},t.prototype.reshape=function(t,e){throw Error("Cannot invoke reshape on a Matrix interface")},t.prototype.clone=function(){throw Error("Cannot invoke clone on a Matrix interface")},t.prototype.size=function(){throw Error("Cannot invoke size on a Matrix interface")},t.prototype.map=function(t,e){throw Error("Cannot invoke map on a Matrix interface")},t.prototype.forEach=function(t){throw Error("Cannot invoke forEach on a Matrix interface")},t.prototype[Symbol.iterator]=function(){throw Error("Cannot iterate a Matrix interface")},t.prototype.toArray=function(){throw Error("Cannot invoke toArray on a Matrix interface")},t.prototype.valueOf=function(){throw Error("Cannot invoke valueOf on a Matrix interface")},t.prototype.format=function(t){throw Error("Cannot invoke format on a Matrix interface")},t.prototype.toString=function(){throw Error("Cannot invoke toString on a Matrix interface")},t},{isClass:!0})}},8491:(t,e,r)=>{"use strict";r.d(e,{i:()=>x});var n=r(49639),i=r(42483),u=r(90329),o=r(10885),a="conj",s=(0,u.P9)(a,["typed"],t=>{var{typed:e}=t;return e(a,{"number | BigNumber | Fraction":t=>t,Complex:t=>t.conjugate(),Unit:e.referToSelf(t=>e=>new e.constructor(t(e.toNumeric()),e.formatUnits())),"Array | Matrix":e.referToSelf(t=>e=>(0,o.Bl)(e,t))})}),c={typedDependencies:i.U,createConj:s},f=r(52492),l=(0,u.P9)("multiplyScalar",["typed"],t=>{var{typed:e}=t;return e("multiplyScalar",{"number, number":f.YD,"Complex, Complex":function(t,e){return t.mul(e)},"BigNumber, BigNumber":function(t,e){return t.times(e)},"bigint, bigint":function(t,e){return t*e},"Fraction, Fraction":function(t,e){return t.mul(e)},"number | Fraction | BigNumber | Complex, Unit":(t,e)=>e.multiply(t),"Unit, number | Fraction | BigNumber | Complex | Unit":(t,e)=>t.multiply(e)})}),h={typedDependencies:i.U,createMultiplyScalar:l},d=r(59273),p=r(38458),D=r(577),m="size",g=(0,u.P9)(m,["typed","config","?matrix"],t=>{var{typed:e,config:r,matrix:n}=t;return e(m,{Matrix:function(t){return t.create(t.size(),"number")},Array:p.LO,string:function(t){return"Array"===r.matrix?[t.length]:n([t.length],"dense","number")},"number | Complex | BigNumber | Unit | boolean | null":function(t){return"Array"===r.matrix?[]:n?n([],"dense","number"):(0,D.zc)()}})}),v={matrixDependencies:d.p,typedDependencies:i.U,createSize:g},y=r(19600),w=(0,u.P9)("dot",["typed","addScalar","multiplyScalar","conj","size"],t=>{var{typed:e,addScalar:r,multiplyScalar:n,conj:i,size:u}=t;return e("dot",{"Array | DenseMatrix, Array | DenseMatrix":function(t,u){var s=o(t,u),c=(0,y.OA)(t)?t._data:t,f=(0,y.OA)(t)?t._datatype||t.getDataType():void 0,l=(0,y.OA)(u)?u._data:u,h=(0,y.OA)(u)?u._datatype||u.getDataType():void 0,d=2===a(t).length,p=2===a(u).length,D=r,m=n;
1if(f&&h&&f===h&&"string"==typeof f&&"mixed"!==f&&(D=e.find(r,[f,f]),m=e.find(n,[f,f])),!d&&!p){for(var g=m(i(c[0]),l[0]),v=1;v<s;v++)g=D(g,m(i(c[v]),l[v]));return g}if(!d&&p){for(var w=m(i(c[0]),l[0][0]),b=1;b<s;b++)w=D(w,m(i(c[b]),l[b][0]));return w}if(d&&!p){for(var F=m(i(c[0][0]),l[0]),A=1;A<s;A++)F=D(F,m(i(c[A][0]),l[A]));return F}if(d&&p){for(var E=m(i(c[0][0]),l[0][0]),_=1;_<s;_++)E=D(E,m(i(c[_][0]),l[_][0]));return E}},"SparseMatrix, SparseMatrix":function(t,e){o(t,e);for(var i=t._index,u=t._values,a=e._index,s=e._values,c=0,f=0,l=0;f<i.length&&l<a.length;){var h=i[f],d=a[l];if(h<d){f++;continue}if(h>d){l++;continue}h===d&&(c=r(c,n(u[f],s[l])),f++,l++)}return c}});function o(t,e){var r,n,i=a(t),u=a(e);if(1===i.length)r=i[0];else if(2===i.length&&1===i[1])r=i[0];else throw RangeError("Expected a column vector, instead got a matrix of size ("+i.join(", ")+")");if(1===u.length)n=u[0];else if(2===u.length&&1===u[1])n=u[0];else throw RangeError("Expected a column vector, instead got a matrix of size ("+u.join(", ")+")");if(r!==n)throw RangeError("Vectors must have equal length ("+r+" != "+n+")");if(0===r)throw RangeError("Cannot calculate the dot product of empty vectors");return r}function a(t){return(0,y.OA)(t)?t.size():u(t)}}),b={addScalarDependencies:n.$,conjDependencies:c,multiplyScalarDependencies:h,sizeDependencies:v,typedDependencies:i.U,createDot:w},F=r(86333),A=r(29563),E=r(59261),_="multiply",C=(0,u.P9)(_,["typed","matrix","addScalar","multiplyScalar","equalScalar","dot"],t=>{var{typed:e,matrix:r,addScalar:n,multiplyScalar:i,equalScalar:u,dot:o}=t,a=(0,A.A)({typed:e,equalScalar:u}),s=(0,E.A)({typed:e});function c(t,e){switch(t.length){case 1:switch(e.length){case 1:if(t[0]!==e[0])throw RangeError("Dimension mismatch in multiplication. Vectors must have the same length");break;case 2:if(t[0]!==e[0])throw RangeError("Dimension mismatch in multiplication. Vector length ("+t[0]+") must match Matrix rows ("+e[0]+")");break;default:throw Error("Can only multiply a 1 or 2 dimensional matrix (Matrix B has "+e.length+" dimensions)")}break;case 2:switch(e.length){case 1:if(t[1]!==e[0])throw RangeError("Dimension mismatch in multiplication. Matrix columns ("+t[1]+") must match Vector length ("+e[0]+")");break;case 2:if(t[1]!==e[0])throw RangeError("Dimension mismatch in multiplication. Matrix A columns ("+t[1]+") must match Matrix B rows ("+e[0]+")");break;default:throw Error("Can only multiply a 1 or 2 dimensional matrix (Matrix B has "+e.length+" dimensions)")}break;default:throw Error("Can only multiply a 1 or 2 dimensional matrix (Matrix A has "+t.length+" dimensions)")}}var f=e("_multiplyMatrixVector",{"DenseMatrix, any":function(t,r){var u,o=t._data,a=t._size,s=t._datatype||t.getDataType(),c=r._data,f=r._datatype||r.getDataType(),l=a[0],h=a[1],d=n,p=i;s&&f&&s===f&&"string"==typeof s&&"mixed"!==s&&(u=s,d=e.find(n,[u,u]),p=e.find(i,[u,u]));for(var D=[],m=0;m<l;m++){for(var g=o[m],v=p(g[0],c[0]),y=1;y<h;y++)v=d(v,p(g[y],c[y]));D[m]=v}return t.createDenseMatrix({data:D,size:[l],datatype:s===t._datatype&&f===r._datatype?u:void 0})},"SparseMatrix, any":function(t,r){var o,a=t._values,s=t._index,c=t._ptr,f=t._datatype||void 0===t._data?t._datatype:t.getDataType();if(!a)throw Error("Cannot multiply Pattern only Matrix times Dense Matrix");var l=r._data,h=r._datatype||r.getDataType(),d=t._size[0],p=r._size[0],D=[],m=[],g=[],v=n,y=i,w=u,b=0;f&&h&&f===h&&"string"==typeof f&&"mixed"!==f&&(o=f,v=e.find(n,[o,o]),y=e.find(i,[o,o]),w=e.find(u,[o,o]),b=e.convert(0,o));var F=[],A=[];g[0]=0;for(var E=0;E<p;E++){var _=l[E];if(!w(_,b))for(var C=c[E],x=c[E+1],M=C;M<x;M++){var B=s[M];A[B]?F[B]=v(F[B],y(_,a[M])):(A[B]=!0,m.push(B),F[B]=y(_,a[M]))}}for(var S=m.length,N=0;N<S;N++){var T=m[N];D[N]=F[T]}return g[1]=m.length,t.createSparseMatrix({values:D,index:m,ptr:g,size:[d,1],datatype:f===t._datatype&&h===r._datatype?o:void 0})}}),l=e("_multiplyMatrixMatrix",{"DenseMatrix, DenseMatrix":function(t,r){var u,o=t._data,a=t._size,s=t._datatype||t.getDataType(),c=r._data,f=r._size,l=r._datatype||r.getDataType(),h=a[0],d=a[1],p=f[1],D=n,m=i;s&&l&&s===l&&"string"==typeof s&&"mixed"!==s&&"mixed"!==s&&(u=s,D=e.find(n,[u,u]),m=e.find(i,[u,u]));for(var g=[],v=0;v<h;v++){var y=o[v];g[v]=[];for(var w=0;w<p;w++){for(var b=m(y[0],c[0][w]),F=1;F<d;
1F++)b=D(b,m(y[F],c[F][w]));g[v][w]=b}}return t.createDenseMatrix({data:g,size:[h,p],datatype:s===t._datatype&&l===r._datatype?u:void 0})},"DenseMatrix, SparseMatrix":function(t,r){var o,a=t._data,s=t._size,c=t._datatype||t.getDataType(),f=r._values,l=r._index,h=r._ptr,d=r._size,p=r._datatype||void 0===r._data?r._datatype:r.getDataType();if(!f)throw Error("Cannot multiply Dense Matrix times Pattern only Matrix");var D=s[0],m=d[1],g=n,v=i,y=u,w=0;c&&p&&c===p&&"string"==typeof c&&"mixed"!==c&&(o=c,g=e.find(n,[o,o]),v=e.find(i,[o,o]),y=e.find(u,[o,o]),w=e.convert(0,o));for(var b=[],F=[],A=[],E=r.createSparseMatrix({values:b,index:F,ptr:A,size:[D,m],datatype:c===t._datatype&&p===r._datatype?o:void 0}),_=0;_<m;_++){A[_]=F.length;var C=h[_],x=h[_+1];if(x>C)for(var M=0,B=0;B<D;B++){for(var S=B+1,N=void 0,T=C;T<x;T++){var O=l[T];M!==S?(N=v(a[B][O],f[T]),M=S):N=g(N,v(a[B][O],f[T]))}M!==S||y(N,w)||(F.push(B),b.push(N))}}return A[m]=F.length,E},"SparseMatrix, DenseMatrix":function(t,r){var o,a=t._values,s=t._index,c=t._ptr,f=t._datatype||void 0===t._data?t._datatype:t.getDataType();if(!a)throw Error("Cannot multiply Pattern only Matrix times Dense Matrix");var l=r._data,h=r._datatype||r.getDataType(),d=t._size[0],p=r._size[0],D=r._size[1],m=n,g=i,v=u,y=0;f&&h&&f===h&&"string"==typeof f&&"mixed"!==f&&(o=f,m=e.find(n,[o,o]),g=e.find(i,[o,o]),v=e.find(u,[o,o]),y=e.convert(0,o));for(var w=[],b=[],F=[],A=t.createSparseMatrix({values:w,index:b,ptr:F,size:[d,D],datatype:f===t._datatype&&h===r._datatype?o:void 0}),E=[],_=[],C=0;C<D;C++){F[C]=b.length;for(var x=C+1,M=0;M<p;M++){var B=l[M][C];if(!v(B,y))for(var S=c[M],N=c[M+1],T=S;T<N;T++){var O=s[T];_[O]!==x?(_[O]=x,b.push(O),E[O]=g(B,a[T])):E[O]=m(E[O],g(B,a[T]))}}for(var k=F[C],Y=b.length,z=k;z<Y;z++){var P=b[z];w[z]=E[P]}}return F[D]=b.length,A},"SparseMatrix, SparseMatrix":function(t,r){var u,o,a,s,c,f,l,h,d,p=t._values,D=t._index,m=t._ptr,g=t._datatype||void 0===t._data?t._datatype:t.getDataType(),v=r._values,y=r._index,w=r._ptr,b=r._datatype||void 0===r._data?r._datatype:r.getDataType(),F=t._size[0],A=r._size[1],E=p&&v,_=n,C=i;g&&b&&g===b&&"string"==typeof g&&"mixed"!==g&&(u=g,_=e.find(n,[u,u]),C=e.find(i,[u,u]));for(var x=E?[]:void 0,M=[],B=[],S=t.createSparseMatrix({values:x,index:M,ptr:B,size:[F,A],datatype:g===t._datatype&&b===r._datatype?u:void 0}),N=E?[]:void 0,T=[],O=0;O<A;O++){B[O]=M.length;var k=O+1;for(f=w[O],l=w[O+1],c=f;c<l;c++)if(d=y[c],E)for(a=m[d],s=m[d+1],o=a;o<s;o++)T[h=D[o]]!==k?(T[h]=k,M.push(h),N[h]=C(v[c],p[o])):N[h]=_(N[h],C(v[c],p[o]));else for(a=m[d],s=m[d+1],o=a;o<s;o++)T[h=D[o]]!==k&&(T[h]=k,M.push(h));if(E)for(var Y=B[O],z=M.length,P=Y;P<z;P++){var I=M[P];x[P]=N[I]}}return B[A]=M.length,S}});return e(_,i,{"Array, Array":e.referTo("Matrix, Matrix",t=>(e,n)=>{c((0,p.LO)(e),(0,p.LO)(n));var i=t(r(e),r(n));return(0,y.OA)(i)?i.valueOf():i}),"Matrix, Matrix":function(t,r){var u=t.size(),a=r.size();return(c(u,a),1===u.length)?1===a.length?function(t,e,r){if(0===r)throw Error("Cannot multiply two empty vectors");return o(t,e)}(t,r,u[0]):function(t,r){if("dense"!==r.storage())throw Error("Support for SparseMatrix not implemented");return function(t,r){var u,o=t._data,a=t._size,s=t._datatype||t.getDataType(),c=r._data,f=r._size,l=r._datatype||r.getDataType(),h=a[0],d=f[1],p=n,D=i;s&&l&&s===l&&"string"==typeof s&&"mixed"!==s&&(u=s,p=e.find(n,[u,u]),D=e.find(i,[u,u]));for(var m=[],g=0;g<d;g++){for(var v=D(o[0],c[0][g]),y=1;y<h;y++)v=p(v,D(o[y],c[y][g]));m[g]=v}return t.createDenseMatrix({data:m,size:[d],datatype:s===t._datatype&&l===r._datatype?u:void 0})}(t,r)}(t,r):1===a.length?f(t,r):l(t,r)},"Matrix, Array":e.referTo("Matrix,Matrix",t=>(e,n)=>t(e,r(n))),"Array, Matrix":e.referToSelf(t=>(e,n)=>t(r(e,n.storage()),n)),"SparseMatrix, any":function(t,e){return a(t,e,i,!1)},"DenseMatrix, any":function(t,e){return s(t,e,i,!1)},"any, SparseMatrix":function(t,e){return a(e,t,i,!0)},"any, DenseMatrix":function(t,e){return s(e,t,i,!0)},"Array, any":function(t,e){return s(r(t),e,i,!1).valueOf()},"any, Array":function(t,e){return s(r(e),t,i,!0).valueOf()},"any, any":i,"any, any, ...any":e.referToSelf(t=>(e,r,n)=>{for(var i=t(e,r),u=0;u<n.length;u++)i=t(i,n[u]);return i})})}),x={addScalarDependencies:n.$,dotDependencies:b,equalScalarDependencies:F.u,matrixDependencies:d.p,multiplyScalarDependencies:h,typedDependencies:i.U,createMultiply:C}},95712:(t,e,r)=>{"use strict";r.d(e,{J:()=>D});var n=r(14098),i=r(86333),u=r(42483),o=r(19600),a=r(6416),s=r(82152),c=r(23610),f=r(38458),l=r(90329),h=r(12270),d=r(96153),p=(0,l.P9)("SparseMatrix",["typed","equalScalar","Matrix"],t=>
1{var{typed:e,equalScalar:r,Matrix:n}=t;function i(t,e){if(!(this instanceof i))throw SyntaxError("Constructor must be called with the new operator");if(e&&!(0,o.Kg)(e))throw Error("Invalid datatype: "+e);if((0,o.OA)(t))"SparseMatrix"===t.type?(this._values=t._values?(0,c.o8)(t._values):void 0,this._index=(0,c.o8)(t._index),this._ptr=(0,c.o8)(t._ptr),this._size=(0,c.o8)(t._size),this._datatype=e||t._datatype):u(this,t.valueOf(),e||t._datatype);else if(t&&(0,o.cy)(t.index)&&(0,o.cy)(t.ptr)&&(0,o.cy)(t.size))this._values=t.values,this._index=t.index,this._ptr=t.ptr,this._size=t.size,this._datatype=e||t.datatype;else if((0,o.cy)(t))u(this,t,e);else if(t)throw TypeError("Unsupported type of data ("+(0,o.QP)(t)+")");else this._values=[],this._index=[],this._ptr=[0],this._size=[0,0],this._datatype=e}function u(t,n,i){t._values=[],t._index=[],t._ptr=[],t._datatype=i;var u=n.length,a=0,s=r,c=0;if((0,o.Kg)(i)&&(s=e.find(r,[i,i])||r,c=e.convert(0,i)),u>0){var f=0;do{t._ptr.push(t._index.length);for(var l=0;l<u;l++){var h=n[l];if((0,o.cy)(h)){if(0===f&&a<h.length&&(a=h.length),f<h.length){var d=h[f];s(d,c)||(t._values.push(d),t._index.push(l))}}else 0===f&&a<1&&(a=1),s(h,c)||(t._values.push(h),t._index.push(l))}f++}while(f<a)}t._ptr.push(t._index.length),t._size=[u,a]}function l(t,e,r,n){if(r-e==0)return r;for(var i=e;i<r;i++)if(n[i]===t)return i;return e}function p(t,e,r,n,i,u,o){i.splice(t,0,n),u.splice(t,0,e);for(var a=r+1;a<o.length;a++)o[a]++}function D(t,n,i,u){var a,s,c,f=u||0,l=r,h=0;(0,o.Kg)(t._datatype)&&(l=e.find(r,[t._datatype,t._datatype])||r,h=e.convert(0,t._datatype),f=e.convert(f,t._datatype));var d=!l(f,h),p=t._size[0],D=t._size[1];if(i>D){for(s=D;s<i;s++)if(t._ptr[s]=t._values.length,d)for(a=0;a<p;a++)t._values.push(f),t._index.push(a);t._ptr[i]=t._values.length}else i<D&&(t._ptr.splice(i+1,D-i),t._values.splice(t._ptr[i],t._values.length),t._index.splice(t._ptr[i],t._index.length));if(D=i,n>p){if(d){var m=0;for(s=0;s<D;s++){t._ptr[s]=t._ptr[s]+m,c=t._ptr[s+1]+m;var g=0;for(a=p;a<n;a++,g++)t._values.splice(c+g,0,f),t._index.splice(c+g,0,a),m++}t._ptr[D]=t._values.length}}else if(n<p){var v=0;for(s=0;s<D;s++){t._ptr[s]=t._ptr[s]-v;var y=t._ptr[s],w=t._ptr[s+1]-v;for(c=y;c<w;c++)(a=t._index[c])>n-1&&(t._values.splice(c,1),t._index.splice(c,1),v++)}t._ptr[s]=t._values.length}return t._size[0]=n,t._size[1]=i,t}function m(t,e,r,n,i){var u,o,a=n[0],s=n[1],f=[];for(u=0;u<a;u++)for(o=0,f[u]=[];o<s;o++)f[u][o]=0;for(o=0;o<s;o++)for(var l=r[o],h=r[o+1],d=l;d<h;d++)f[u=e[d]][o]=t?i?(0,c.o8)(t[d]):t[d]:1;return f}return i.prototype=new n,i.prototype.createSparseMatrix=function(t,e){return new i(t,e)},Object.defineProperty(i,"name",{value:"SparseMatrix"}),i.prototype.constructor=i,i.prototype.type="SparseMatrix",i.prototype.isSparseMatrix=!0,i.prototype.getDataType=function(){return(0,f.ig)(this._values,o.QP)},i.prototype.storage=function(){return"sparse"},i.prototype.datatype=function(){return this._datatype},i.prototype.create=function(t,e){return new i(t,e)},i.prototype.density=function(){var t=this._size[0],e=this._size[1];return 0!==t&&0!==e?this._index.length/(t*e):0},i.prototype.subset=function(t,e,r){if(!this._values)throw Error("Cannot invoke subset on a Pattern only matrix");switch(arguments.length){case 1:return function(t,e){if(!(0,o.nw)(e))throw TypeError("Invalid index");if(e.isScalar())return t.get(e.min());var r,n,u,a,s=e.size();if(s.length!==t._size.length)throw new h.h(s.length,t._size.length);var c=e.min(),l=e.max();for(r=0,n=t._size.length;r<n;r++)(0,f.r7)(c[r],t._size[r]),(0,f.r7)(l[r],t._size[r]);var d=t._values,p=t._index,D=t._ptr,m=e.dimension(0),g=e.dimension(1),v=[],y=[];m.forEach(function(t,e){y[t]=e[0],v[t]=!0});var w=d?[]:void 0,b=[],F=[];return g.forEach(function(t){for(F.push(b.length),u=D[t],a=D[t+1];u<a;u++)!0===v[r=p[u]]&&(b.push(y[r]),w&&w.push(d[u]))}),F.push(b.length),new i({values:w,index:b,ptr:F,size:s,datatype:t._datatype})}(this,t);case 2:case 3:return function(t,e,r,n){if(!e||!0!==e.isIndex)throw TypeError("Invalid index");var i,u=e.size(),a=e.isScalar();if((0,o.OA)(r)?(i=r.size(),r=r.toArray()):i=(0,f.LO)(r),a){if(0!==i.length)throw TypeError("Scalar expected");t.set(e.min(),r,n)}else{if(1!==u.length&&2!==u.length)throw new h.h(u.length,t._size.length,"<");if(i.length<u.length){for(var s=0,l=0;1===u[s]&&1===i[s];)s++;for(;1===u[s];)l++,s++;r=(0,f.iD)(r,u.length,l,i)}if(!(0,c.QO)(u,i))throw new h.h(u,i,">");
1if(1===u.length)e.dimension(0).forEach(function(e,i){(0,f.r7)(e),t.set([e,0],r[i[0]],n)});else{var d=e.dimension(0),p=e.dimension(1);d.forEach(function(e,i){(0,f.r7)(e),p.forEach(function(u,o){(0,f.r7)(u),t.set([e,u],r[i[0]][o[0]],n)})})}}return t}(this,t,e,r);default:throw SyntaxError("Wrong number of arguments")}},i.prototype.get=function(t){if(!(0,o.cy)(t))throw TypeError("Array expected");if(t.length!==this._size.length)throw new h.h(t.length,this._size.length);if(!this._values)throw Error("Cannot invoke get on a Pattern only matrix");var e=t[0],r=t[1];(0,f.r7)(e,this._size[0]),(0,f.r7)(r,this._size[1]);var n=l(e,this._ptr[r],this._ptr[r+1],this._index);return n<this._ptr[r+1]&&this._index[n]===e?this._values[n]:0},i.prototype.set=function(t,n,i){if(!(0,o.cy)(t))throw TypeError("Array expected");if(t.length!==this._size.length)throw new h.h(t.length,this._size.length);if(!this._values)throw Error("Cannot invoke set on a Pattern only matrix");var u=t[0],a=t[1],s=this._size[0],c=this._size[1],d=r,m=0;(0,o.Kg)(this._datatype)&&(d=e.find(r,[this._datatype,this._datatype])||r,m=e.convert(0,this._datatype)),(u>s-1||a>c-1)&&(D(this,Math.max(u+1,s),Math.max(a+1,c),i),s=this._size[0],c=this._size[1]),(0,f.r7)(u,s),(0,f.r7)(a,c);var g=l(u,this._ptr[a],this._ptr[a+1],this._index);return g<this._ptr[a+1]&&this._index[g]===u?d(n,m)?function(t,e,r,n,i){r.splice(t,1),n.splice(t,1);for(var u=e+1;u<i.length;u++)i[u]--}(g,a,this._values,this._index,this._ptr):this._values[g]=n:d(n,m)||p(g,u,a,n,this._values,this._index,this._ptr),this},i.prototype.resize=function(t,e,r){if(!(0,o.P3)(t))throw TypeError("Array or Matrix expected");var n=t.valueOf().map(t=>Array.isArray(t)&&1===t.length?t[0]:t);if(2!==n.length)throw Error("Only two dimensions matrix are supported");return n.forEach(function(t){if(!(0,o.Et)(t)||!(0,a.YN)(t)||t<0)throw TypeError("Invalid size, must contain positive integers (size: "+(0,s.GP)(n)+")")}),D(r?this.clone():this,n[0],n[1],e)},i.prototype.reshape=function(t,e){if(!(0,o.cy)(t))throw TypeError("Array expected");if(2!==t.length)throw Error("Sparse matrices can only be reshaped in two dimensions");t.forEach(function(e){if(!(0,o.Et)(e)||!(0,a.YN)(e)||e<=-2||0===e)throw TypeError("Invalid size, must contain positive integers or -1 (size: "+(0,s.GP)(t)+")")});var r=this._size[0]*this._size[1],n=(t=(0,f.cs)(t,r))[0]*t[1];if(r!==n)throw Error("Reshaping sparse matrix will result in the wrong number of elements");var i=e?this.clone():this;if(this._size[0]===t[0]&&this._size[1]===t[1])return i;for(var u=[],c=0;c<i._ptr.length;c++)for(var h=0;h<i._ptr[c+1]-i._ptr[c];h++)u.push(c);for(var d=i._values.slice(),D=i._index.slice(),m=0;m<i._index.length;m++){var g=D[m],v=u[m],y=g*i._size[1]+v;u[m]=y%t[1],D[m]=Math.floor(y/t[1])}i._values.length=0,i._index.length=0,i._ptr.length=t[1]+1,i._size=t.slice();for(var w=0;w<i._ptr.length;w++)i._ptr[w]=0;for(var b=0;b<d.length;b++){var F=D[b],A=u[b],E=d[b];p(l(F,i._ptr[A],i._ptr[A+1],i._index),F,A,E,i._values,i._index,i._ptr)}return i},i.prototype.clone=function(){return new i({values:this._values?(0,c.o8)(this._values):void 0,index:(0,c.o8)(this._index),ptr:(0,c.o8)(this._ptr),size:(0,c.o8)(this._size),datatype:this._datatype})},i.prototype.size=function(){return this._size.slice(0)},i.prototype.map=function(t,n){if(!this._values)throw Error("Cannot invoke map on a Pattern only matrix");var u=this,a=this._size[0],s=this._size[1],c=(0,d.r)(t,u,"map");return function(t,n,u,a,s,c,f){var l=[],h=[],d=[],p=r,D=0;(0,o.Kg)(t._datatype)&&(p=e.find(r,[t._datatype,t._datatype])||r,D=e.convert(0,t._datatype));for(var m=function(t,e,r){var n=c(t,e,r);p(n,D)||(l.push(n),h.push(e))},g=0;g<=s;g++){d.push(l.length);var v=t._ptr[g],y=t._ptr[g+1];if(f)for(var w=v;w<y;w++){var b=t._index[w];b>=0&&b<=u&&m(t._values[w],b-0,g-0)}else{for(var F={},A=v;A<y;A++)F[t._index[A]]=t._values[A];for(var E=n;E<=u;E++)m(E in F?F[E]:0,E-n,g-a)}}return d.push(l.length),new i({values:l,index:h,ptr:d,size:[u-n+1,s-a+1]})}(this,0,a-1,0,s-1,function(t,e,r){return c.fn(t,[e,r],u)},n)},i.prototype.forEach=function(t,e){if(!this._values)throw Error("Cannot invoke forEach on a Pattern only matrix");for(var r=this._size[0],n=this._size[1],i=(0,d.r)(t,this,"forEach"),u=0;u<n;u++){var o=this._ptr[u],a=this._ptr[u+1];if(e)for(var s=o;s<a;s++){var c=this._index[s];i.fn(this._values[s],[c,u],this)}else{for(var f={},l=o;l<a;l++)f[this._index[l]]=this._values[l];for(var h=0;h<r;h++){var p=h in f?f[h]:0;i.fn(p,[h,u],this)}}}},i.prototype[Symbol.iterator]=function*(){if(!this._values)throw Error("Cannot iterate a Pattern only matrix");for(var t=this._size[1],e=0;e<t;e++)for(var r=this._ptr[e],n=this._ptr[e+1],i=r;i<n;i++){var u=this._index[i];
1yield{value:this._values[i],index:[u,e]}}},i.prototype.toArray=function(){return m(this._values,this._index,this._ptr,this._size,!0)},i.prototype.valueOf=function(){return m(this._values,this._index,this._ptr,this._size,!1)},i.prototype.format=function(t){for(var e=this._size[0],r=this._size[1],n=this.density(),i="Sparse Matrix ["+(0,s.GP)(e,t)+" x "+(0,s.GP)(r,t)+"] density: "+(0,s.GP)(n,t)+"\n",u=0;u<r;u++)for(var o=this._ptr[u],a=this._ptr[u+1],c=o;c<a;c++){var f=this._index[c];i+="\n    ("+(0,s.GP)(f,t)+", "+(0,s.GP)(u,t)+") ==> "+(this._values?(0,s.GP)(this._values[c],t):"X")}return i},i.prototype.toString=function(){return(0,s.GP)(this.toArray())},i.prototype.toJSON=function(){return{mathjs:"SparseMatrix",values:this._values,index:this._index,ptr:this._ptr,size:this._size,datatype:this._datatype}},i.prototype.diagonal=function(t){if(t){if((0,o.C4)(t)&&(t=t.toNumber()),!(0,o.Et)(t)||!(0,a.YN)(t))throw TypeError("The parameter k must be an integer number")}else t=0;var e=t>0?t:0,r=t<0?-t:0,n=this._size[0],u=this._size[1],s=Math.min(n-r,u-e),c=[],f=[],l=[];l[0]=0;for(var h=e;h<u&&c.length<s;h++)for(var d=this._ptr[h],p=this._ptr[h+1],D=d;D<p;D++){var m=this._index[D];if(m===h-e+r){c.push(this._values[D]),f[c.length-1]=m-r;break}}return l.push(c.length),new i({values:c,index:f,ptr:l,size:[s,1]})},i.fromJSON=function(t){return new i(t)},i.diagonal=function(t,n,u,s,c){if(!(0,o.cy)(t))throw TypeError("Array expected, size parameter");if(2!==t.length)throw Error("Only two dimensions matrix are supported");if(t=t.map(function(t){if((0,o.C4)(t)&&(t=t.toNumber()),!(0,o.Et)(t)||!(0,a.YN)(t)||t<1)throw Error("Size values must be positive integers");return t}),u){if((0,o.C4)(u)&&(u=u.toNumber()),!(0,o.Et)(u)||!(0,a.YN)(u))throw TypeError("The parameter k must be an integer number")}else u=0;var f,l=r,h=0;(0,o.Kg)(c)&&(l=e.find(r,[c,c])||r,h=e.convert(0,c));var d=u>0?u:0,p=u<0?-u:0,D=t[0],m=t[1],g=Math.min(D-p,m-d);if((0,o.cy)(n)){if(n.length!==g)throw Error("Invalid value array length");f=function(t){return n[t]}}else if((0,o.OA)(n)){var v=n.size();if(1!==v.length||v[0]!==g)throw Error("Invalid matrix length");f=function(t){return n.get([t])}}else f=function(){return n};for(var y=[],w=[],b=[],F=0;F<m;F++){b.push(y.length);var A=F-d;if(A>=0&&A<g){var E=f(A);l(E,h)||(w.push(A+p),y.push(E))}}return b.push(y.length),new i({values:y,index:w,ptr:b,size:[D,m]})},i.prototype.swapRows=function(t,e){if(!(0,o.Et)(t)||!(0,a.YN)(t)||!(0,o.Et)(e)||!(0,a.YN)(e))throw Error("Row index must be positive integers");if(2!==this._size.length)throw Error("Only two dimensional matrix is supported");return(0,f.r7)(t,this._size[0]),(0,f.r7)(e,this._size[0]),i._swapRows(t,e,this._size[1],this._values,this._index,this._ptr),this},i._forEachRow=function(t,e,r,n,i){for(var u=n[t],o=n[t+1],a=u;a<o;a++)i(r[a],e[a])},i._swapRows=function(t,e,r,n,i,u){for(var o=0;o<r;o++){var a=u[o],s=u[o+1],c=l(t,a,s,i),f=l(e,a,s,i);if(c<s&&f<s&&i[c]===t&&i[f]===e){if(n){var h=n[c];n[c]=n[f],n[f]=h}continue}if(c<s&&i[c]===t&&(f>=s||i[f]!==e)){var d=n?n[c]:void 0;i.splice(f,0,e),n&&n.splice(f,0,d),i.splice(f<=c?c+1:c,1),n&&n.splice(f<=c?c+1:c,1);continue}if(f<s&&i[f]===e&&(c>=s||i[c]!==t)){var p=n?n[f]:void 0;i.splice(c,0,t),n&&n.splice(c,0,p),i.splice(c<=f?f+1:f,1),n&&n.splice(c<=f?f+1:f,1)}}},i},{isClass:!0}),D={MatrixDependencies:n.t,equalScalarDependencies:i.u,typedDependencies:u.U,createSparseMatrixClass:p}},45690:(t,e,r)=>{"use strict";r.d(e,{Y:()=>k});var n=r(26485),i=r(42483),u=r(10885),o=r(6416),a=r(90329),s="isInteger",c=(0,a.P9)(s,["typed"],t=>{var{typed:e}=t;return e(s,{number:o.YN,BigNumber:function(t){return t.isInt()},bigint:function(t){return!0},Fraction:function(t){return 1n===t.d},"Array | Matrix":e.referToSelf(t=>e=>(0,u.Bl)(e,t))})}),f={typedDependencies:i.U,createIsInteger:c},l=r(59273),h=r(19600),d=r(23610),p=r(38458),D=r(3762),m=r(12270),g="concat",v=(0,a.P9)(g,["typed","matrix","isInteger"],t=>{var{typed:e,matrix:r,isInteger:n}=t;return e(g,{"...Array | Matrix | number | BigNumber":function(t){var e,i,u=t.length,o=-1,a=!1,s=[];for(e=0;e<u;e++){var c=t[e];
1if((0,h.OA)(c)&&(a=!0),(0,h.Et)(c)||(0,h.C4)(c)){if(e!==u-1)throw Error("Dimension must be specified as last argument");if(i=o,!n(o=c.valueOf()))throw TypeError("Integer number expected for dimension");if(o<0||e>0&&o>i)throw new D.d(o,i+1)}else{var f=(0,d.o8)(c).valueOf(),l=(0,p.LO)(f);if(s[e]=f,i=o,o=l.length-1,e>0&&o!==i)throw new m.h(i+1,o+1)}}if(0===s.length)throw SyntaxError("At least one matrix expected");for(var g=s.shift();s.length;)g=(0,p.xW)(g,s.shift(),o);return a?r(g):g},"...string":function(t){return t.join("")}})}),y={isIntegerDependencies:f,matrixDependencies:l.p,typedDependencies:i.U,createConcat:v},w=r(86333),b=r(36920),F=r(141),A=(0,a.P9)("matAlgo01xDSid",["typed"],t=>{var{typed:e}=t;return function(t,r,n,i){var u,o,a=t._data,s=t._size,c=t._datatype||t.getDataType(),f=r._values,l=r._index,h=r._ptr,d=r._size,p=r._datatype||void 0===r._data?r._datatype:r.getDataType();if(s.length!==d.length)throw new m.h(s.length,d.length);if(s[0]!==d[0]||s[1]!==d[1])throw RangeError("Dimension mismatch. Matrix A ("+s+") must match Matrix B ("+d+")");if(!f)throw Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var D=s[0],g=s[1],v="string"==typeof c&&"mixed"!==c&&c===p?c:void 0,y=v?e.find(n,[v,v]):n,w=[];for(u=0;u<D;u++)w[u]=[];var b=[],F=[];for(o=0;o<g;o++){for(var A=o+1,E=h[o],_=h[o+1],C=E;C<_;C++)b[u=l[C]]=i?y(f[C],a[u][o]):y(a[u][o],f[C]),F[u]=A;for(u=0;u<D;u++)F[u]===A?w[u][o]=b[u]:w[u][o]=a[u][o]}return t.createDenseMatrix({data:w,size:[D,g],datatype:c===t._datatype&&p===r._datatype?v:void 0})}}),E=(0,a.P9)("matAlgo03xDSf",["typed"],t=>{var{typed:e}=t;return function(t,r,n,i){var u,o=t._data,a=t._size,s=t._datatype||t.getDataType(),c=r._values,f=r._index,l=r._ptr,h=r._size,d=r._datatype||void 0===r._data?r._datatype:r.getDataType();if(a.length!==h.length)throw new m.h(a.length,h.length);if(a[0]!==h[0]||a[1]!==h[1])throw RangeError("Dimension mismatch. Matrix A ("+a+") must match Matrix B ("+h+")");if(!c)throw Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var p=a[0],D=a[1],g=0,v=n;"string"==typeof s&&s===d&&"mixed"!==s&&(u=s,g=e.convert(0,u),v=e.find(n,[u,u]));for(var y=[],w=0;w<p;w++)y[w]=[];for(var b=[],F=[],A=0;A<D;A++){for(var E=A+1,_=l[A],C=l[A+1],x=_;x<C;x++){var M=f[x];b[M]=i?v(c[x],o[M][A]):v(o[M][A],c[x]),F[M]=E}for(var B=0;B<p;B++)F[B]===E?y[B][A]=b[B]:y[B][A]=i?v(g,o[B][A]):v(o[B][A],g)}return t.createDenseMatrix({data:y,size:[p,D],datatype:s===t._datatype&&d===r._datatype?u:void 0})}}),_=(0,a.P9)("matAlgo05xSfSf",["typed","equalScalar"],t=>{var{typed:e,equalScalar:r}=t;return function(t,n,i){var u,o,a,s,c,f=t._values,l=t._index,h=t._ptr,d=t._size,p=t._datatype||void 0===t._data?t._datatype:t.getDataType(),D=n._values,g=n._index,v=n._ptr,y=n._size,w=n._datatype||void 0===n._data?n._datatype:n.getDataType();if(d.length!==y.length)throw new m.h(d.length,y.length);if(d[0]!==y[0]||d[1]!==y[1])throw RangeError("Dimension mismatch. Matrix A ("+d+") must match Matrix B ("+y+")");var b=d[0],F=d[1],A=r,E=0,_=i;"string"==typeof p&&p===w&&"mixed"!==p&&(u=p,A=e.find(r,[u,u]),E=e.convert(0,u),_=e.find(i,[u,u]));var C=f&&D?[]:void 0,x=[],M=[],B=C?[]:void 0,S=C?[]:void 0,N=[],T=[];for(a=0;a<F;a++){M[a]=x.length;var O=a+1;for(s=h[a],c=h[a+1];s<c;s++)o=l[s],x.push(o),N[o]=O,B&&(B[o]=f[s]);for(s=v[a],c=v[a+1];s<c;s++)N[o=g[s]]!==O&&x.push(o),T[o]=O,S&&(S[o]=D[s]);if(C)for(s=M[a];s<x.length;){var k=N[o=x[s]],Y=T[o];if(k===O||Y===O){var z=_(k===O?B[o]:E,Y===O?S[o]:E);A(z,E)?x.splice(s,1):(C.push(z),s++)}}}return M[F]=x.length,t.createSparseMatrix({values:C,index:x,ptr:M,size:[b,F],datatype:p===t._datatype&&w===n._datatype?u:void 0})}}),C=(0,a.P9)("matAlgo10xSids",["typed","DenseMatrix"],t=>{var{typed:e,DenseMatrix:r}=t;return function(t,n,i,u){var o,a=t._values,s=t._index,c=t._ptr,f=t._size,l=t._datatype;if(!a)throw Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var h=f[0],d=f[1],p=i;"string"==typeof l&&(o=l,n=e.convert(n,o),p=e.find(i,[o,o]));for(var D=[],m=[],g=[],v=0;v<d;v++){for(var y=v+1,w=c[v],b=c[v+1],F=w;F<b;F++){var A=s[F];m[A]=a[F],g[A]=y}for(var E=0;E<h;E++)0===v&&(D[E]=[]),g[E]===y?D[E][v]=u?p(n,m[E]):p(m[E],n):D[E][v]=n}return new r({data:D,size:[h,d],datatype:o})}}),x=(0,a.P9)("matAlgo12xSfs",["typed","DenseMatrix"],t=>{var{typed:e,DenseMatrix:r}=t;return function(t,n,i,u){var o,a=t._values,s=t._index,c=t._ptr,f=t._size,l=t._datatype;if(!a)throw Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var h=f[0],d=f[1],p=i;"string"==typeof l&&(o=l,n=e.convert(n,o),p=e.find(i,[o,o]));for(var D=[],m=[],g=[],v=0;v<d;v++){for(var y=v+1,w=c[v],b=c[v+1],F=w;F<b;F++){var A=s[F];m[A]=a[F],g[A]=y}for(var E=0;E<h;E++)0===v&&(D[E]=[]),g[E]===y?D[E][v]=u?p(n,m[E]):p(m[E],n):D[E][v]=u?p(n,0):p(0,n)}return new r({data:D,size:[h,d],datatype:o})}}),M=(0,a.P9)("matAlgo13xDD",["typed"],t=>{var{typed:e}=t;return function(t,r,n){var i,u=t._data,o=t._size,a=t._datatype,s=r._data,c=r._size,f=r._datatype,l=[];if(o.length!==c.length)throw new m.h(o.length,c.length);for(var h=0;h<o.length;h++){if(o[h]!==c[h])throw RangeError("Dimension mismatch. Matrix A ("+o+") must match Matrix B ("+c+")");l[h]=o[h]}var d=n;
1"string"==typeof a&&a===f&&(i=a,d=e.find(n,[i,i]));var p=l.length>0?function t(e,r,n,i,u,o){var a=[];if(r===n.length-1)for(var s=0;s<i;s++)a[s]=e(u[s],o[s]);else for(var c=0;c<i;c++)a[c]=t(e,r+1,n,n[r+1],u[c],o[c]);return a}(d,0,l,l[0],u,s):[];return t.createDenseMatrix({data:p,size:l,datatype:i})}}),B=r(59261);function S(t,e){if((0,d.QO)(t.size(),e.size()))return[t,e];var r=(0,p.Kx)(t.size(),e.size());return[t,e].map(t=>(0,d.QO)(t.size(),r)?t:t.create((0,p.hO)(t.valueOf(),r),t.datatype()))}var N=(0,a.P9)("matrixAlgorithmSuite",["typed","matrix"],t=>{var{typed:e,matrix:r}=t,n=M({typed:e}),i=(0,B.A)({typed:e});return function(t){var u,o=t.elop,a=t.SD||t.DS;o?(u={"DenseMatrix, DenseMatrix":(t,e)=>n(...S(t,e),o),"Array, Array":(t,e)=>n(...S(r(t),r(e)),o).valueOf(),"Array, DenseMatrix":(t,e)=>n(...S(r(t),e),o),"DenseMatrix, Array":(t,e)=>n(...S(t,r(e)),o)},t.SS&&(u["SparseMatrix, SparseMatrix"]=(e,r)=>t.SS(...S(e,r),o,!1)),t.DS&&(u["DenseMatrix, SparseMatrix"]=(e,r)=>t.DS(...S(e,r),o,!1),u["Array, SparseMatrix"]=(e,n)=>t.DS(...S(r(e),n),o,!1)),a&&(u["SparseMatrix, DenseMatrix"]=(t,e)=>a(...S(e,t),o,!0),u["SparseMatrix, Array"]=(t,e)=>a(...S(r(e),t),o,!0))):(u={"DenseMatrix, DenseMatrix":e.referToSelf(t=>(e,r)=>n(...S(e,r),t)),"Array, Array":e.referToSelf(t=>(e,i)=>n(...S(r(e),r(i)),t).valueOf()),"Array, DenseMatrix":e.referToSelf(t=>(e,i)=>n(...S(r(e),i),t)),"DenseMatrix, Array":e.referToSelf(t=>(e,i)=>n(...S(e,r(i)),t))},t.SS&&(u["SparseMatrix, SparseMatrix"]=e.referToSelf(e=>(r,n)=>t.SS(...S(r,n),e,!1))),t.DS&&(u["DenseMatrix, SparseMatrix"]=e.referToSelf(e=>(r,n)=>t.DS(...S(r,n),e,!1)),u["Array, SparseMatrix"]=e.referToSelf(e=>(n,i)=>t.DS(...S(r(n),i),e,!1))),a&&(u["SparseMatrix, DenseMatrix"]=e.referToSelf(t=>(e,r)=>a(...S(r,e),t,!0)),u["SparseMatrix, Array"]=e.referToSelf(t=>(e,n)=>a(...S(r(n),e),t,!0))));var s=t.scalar||"any";(t.Ds||t.Ss)&&(o?(u["DenseMatrix,"+s]=(t,e)=>i(t,e,o,!1),u[s+", DenseMatrix"]=(t,e)=>i(e,t,o,!0),u["Array,"+s]=(t,e)=>i(r(t),e,o,!1).valueOf(),u[s+", Array"]=(t,e)=>i(r(e),t,o,!0).valueOf()):(u["DenseMatrix,"+s]=e.referToSelf(t=>(e,r)=>i(e,r,t,!1)),u[s+", DenseMatrix"]=e.referToSelf(t=>(e,r)=>i(r,e,t,!0)),u["Array,"+s]=e.referToSelf(t=>(e,n)=>i(r(e),n,t,!1).valueOf()),u[s+", Array"]=e.referToSelf(t=>(e,n)=>i(r(n),e,t,!0).valueOf())));var c=void 0!==t.sS?t.sS:t.Ss;return o?(t.Ss&&(u["SparseMatrix,"+s]=(e,r)=>t.Ss(e,r,o,!1)),c&&(u[s+", SparseMatrix"]=(t,e)=>c(e,t,o,!0))):(t.Ss&&(u["SparseMatrix,"+s]=e.referToSelf(e=>(r,n)=>t.Ss(r,n,e,!1))),c&&(u[s+", SparseMatrix"]=e.referToSelf(t=>(e,r)=>c(r,e,t,!0)))),o&&o.signatures&&(0,d.X$)(u,o.signatures),u}}),T="subtract",O=(0,a.P9)(T,["typed","matrix","equalScalar","subtractScalar","unaryMinus","DenseMatrix","concat"],t=>{var{typed:e,matrix:r,equalScalar:n,subtractScalar:i,unaryMinus:u,DenseMatrix:o,concat:a}=t,s=A({typed:e}),c=E({typed:e}),f=_({typed:e,equalScalar:n}),l=C({typed:e,DenseMatrix:o}),h=x({typed:e,DenseMatrix:o}),d=N({typed:e,matrix:r,concat:a});return e(T,{"any, any":i},d({elop:i,SS:f,DS:s,SD:c,Ss:h,sS:l}))}),k={DenseMatrixDependencies:n.k,concatDependencies:y,equalScalarDependencies:w.u,matrixDependencies:l.p,subtractScalarDependencies:b.w,typedDependencies:i.U,unaryMinusDependencies:F.j,createSubtract:O}},36920:(t,e,r)=>{"use strict";r.d(e,{w:()=>s});var n=r(42483),i=r(90329),u=r(52492),o="subtractScalar",a=(0,i.P9)(o,["typed"],t=>{var{typed:e}=t;return e(o,{"number, number":u.Ki,"Complex, Complex":function(t,e){return t.sub(e)},"BigNumber, BigNumber":function(t,e){return t.minus(e)},"bigint, bigint":function(t,e){return t-e},"Fraction, Fraction":function(t,e){return t.sub(e)},"Unit, Unit":e.referToSelf(t=>(r,n)=>{if(null===r.value||void 0===r.value)throw Error("Parameter x contains a unit with undefined value");if(null===n.value||void 0===n.value)throw Error("Parameter y contains a unit with undefined value");if(!r.equalBase(n))throw Error("Units do not match");var i=r.clone();return i.value=e.find(t,[i.valueType(),n.valueType()])(i.value,n.value),i.fixPrefix=!1,i})})}),s={typedDependencies:n.U,createSubtractScalar:a}},42483:(t,e,r)=>{"use strict";r.d(e,{U:()=>_});var n=r(90803);let i=Math.cosh||function(t){return 1e-9>Math.abs(t)?1-t:(Math.exp(t)+Math.exp(-t))*.5},u=Math.sinh||function(t){return 1e-9>Math.abs(t)?t:(Math.exp(t)-Math.exp(-t))*.5},o=t=>{let e=Math.sin(.5*t);return -2*e*e},a=function(t,e){return((t=Math.abs(t))<(e=Math.abs(e))&&([t,e]=[e,t]),t<1e8)?Math.sqrt(t*t+e*e):(e/=t,t*Math.sqrt(1+e*e))},s=function(){throw SyntaxError("Invalid Param")};function c(t,e){let r=Math.abs(t),n=Math.abs(e);return 0===t?Math.log(n):0===e?Math.log(r):r<3e3&&n<3e3?.5*Math.log(t*t+e*e):.5*Math.log((t*=.5)*t+(e*=.5)*e)+Math.LN2}let f={re:0,im:0},l=function(t,e){if(null==t)f.re=f.im=0;else if(void 0!==e)f.re=t,f.im=e;else switch(typeof t){case"object":if("im"in t&&"re"in t)f.re=t.re,f.im=t.im;else if("abs"in t&&"arg"in t){if(!isFinite(t.abs)&&isFinite(t.arg))return h.INFINITY;f.re=t.abs*Math.cos(t.arg),f.im=t.abs*Math.sin(t.arg)}else if("r"in t&&"phi"in t){if(!isFinite(t.r)&&isFinite(t.phi))return h.INFINITY;f.re=t.r*Math.cos(t.phi),f.im=t.r*Math.sin(t.phi)}else 2===t.length?(f.re=t[0],f.im=t[1]):s();break;case"string":f.im=f.re=0;let r=t.replace(/_/g,"").match(/\d+\.?\d*e[+-]?\d+|\d+\.?\d*|\.\d+|./g),n=1,i=0;null===r&&s();for(let t=0;t<r.length;t++){let e=r[t];" "===e||"	"===e||"\n"===e||("+"===e?n++:"-"===e?i++:("i"===e||"I"===e?(n+i===0&&s()," "===r[t+1]||isNaN(r[t+1])?f.im+=parseFloat((i%2?"-":"")+"1"):(f.im+=parseFloat((i%2?"-":"")+r[t+1]),t++)):((n+i===0||isNaN(e))&&s(),"i"===r[t+1]||"I"===r[t+1]?(f.im+=parseFloat((i%2?"-":"")+e),t++):f.re+=parseFloat((i%2?"-":"")+e)),n=i=0))}n+i>0&&s();break;case"number":f.im=0,f.re=t;break;default:s()}return isNaN(f.re)||isNaN(f.im),f};function h(t,e){if(!(this instanceof h))return new h(t,e);let r=l(t,e);this.re=r.re,this.im=r.im}h.prototype={re:0,im:0,sign:function(){let t=a(this.re,this.im);return new h(this.re/t,this.im/t)},add:function(t,e){let r=l(t,e),n=this.isInfinite(),i=!(isFinite(r.re)&&isFinite(r.im));return n||i?n&&i?h.NAN:h.INFINITY:new h(this.re+r.re,this.im+r.im)},sub:function(t,e){let r=l(t,e),n=this.isInfinite(),i=!(isFinite(r.re)&&isFinite(r.im));return n||i?n&&i?h.NAN:h.INFINITY:new h(this.re-r.re,this.im-r.im)},mul:function(t,e){let r=l(t,e),n=this.isInfinite(),i=!(isFinite(r.re)&&isFinite(r.im)),u=0===this.re&&0===this.im,o=0===r.re&&0===r.im;return n&&o||i&&u?h.NAN:n||i?h.INFINITY:0===r.im&&0===this.im?new h(this.re*r.re,0):new h(this.re*r.re-this.im*r.im,this.re*r.im+this.im*r.re)},div:function(t,e){let r=l(t,e),n=this.isInfinite(),i=!(isFinite(r.re)&&isFinite(r.im)),u=0===this.re&&0===this.im,o=0===r.re&&0===r.im;if(u&&o||n&&i)return h.NAN;if(o||n)return h.INFINITY;if(u||i)return h.ZERO;if(0===r.im)return new h(this.re/r.re,this.im/r.re);if(Math.abs(r.re)<Math.abs(r.im)){let t=r.re/r.im,e=r.re*t+r.im;return new h((this.re*t+this.im)/e,(this.im*t-this.re)/e)}{let t=r.im/r.re,e=r.im*t+r.re;return new h((this.re+this.im*t)/e,(this.im-this.re*t)/e)}},pow:function(t,e){let r=l(t,e),n=0===this.re&&0===this.im;if(0===r.re&&0===r.im)return h.ONE;if(0===r.im){if(0===this.im&&this.re>0)return new h(Math.pow(this.re,r.re),0);if(0===this.re)switch((r.re%4+4)%4){case 0:return new h(Math.pow(this.im,r.re),0);case 1:return new h(0,Math.pow(this.im,r.re));case 2:return new h(-Math.pow(this.im,r.re),0);case 3:return new h(0,-Math.pow(this.im,r.re))}}if(n&&r.re>0)return h.ZERO;let i=Math.atan2(this.im,this.re),u=c(this.re,this.im),o=Math.exp(r.re*u-r.im*i),a=r.im*u+r.re*i;return new h(o*Math.cos(a),o*Math.sin(a))},sqrt:function(){let t=this.re,e=this.im;if(0===e)return t>
1=0?new h(Math.sqrt(t),0):new h(0,Math.sqrt(-t));let r=Math.sqrt(.5*(a(t,e)+Math.abs(t))),n=Math.abs(e)/(2*r);return t>=0?new h(r,e<0?-n:n):new h(n,e<0?-r:r)},exp:function(){let t=Math.exp(this.re);return 0===this.im?new h(t,0):new h(t*Math.cos(this.im),t*Math.sin(this.im))},expm1:function(){let t=this.re,e=this.im;return new h(Math.expm1(t)*Math.cos(e)+o(e),Math.exp(t)*Math.sin(e))},log:function(){let t=this.re,e=this.im;return 0===e&&t>0?new h(Math.log(t),0):new h(c(t,e),Math.atan2(e,t))},abs:function(){return a(this.re,this.im)},arg:function(){return Math.atan2(this.im,this.re)},sin:function(){let t=this.re,e=this.im;return new h(Math.sin(t)*i(e),Math.cos(t)*u(e))},cos:function(){let t=this.re,e=this.im;return new h(Math.cos(t)*i(e),-Math.sin(t)*u(e))},tan:function(){let t=2*this.re,e=2*this.im,r=Math.cos(t)+i(e);return new h(Math.sin(t)/r,u(e)/r)},cot:function(){let t=2*this.re,e=2*this.im,r=Math.cos(t)-i(e);return new h(-Math.sin(t)/r,u(e)/r)},sec:function(){let t=this.re,e=this.im,r=.5*i(2*e)+.5*Math.cos(2*t);return new h(Math.cos(t)*i(e)/r,Math.sin(t)*u(e)/r)},csc:function(){let t=this.re,e=this.im,r=.5*i(2*e)-.5*Math.cos(2*t);return new h(Math.sin(t)*i(e)/r,-Math.cos(t)*u(e)/r)},asin:function(){let t=this.re,e=this.im,r=new h(e*e-t*t+1,-2*t*e).sqrt(),n=new h(r.re-e,r.im+t).log();return new h(n.im,-n.re)},acos:function(){let t=this.re,e=this.im,r=new h(e*e-t*t+1,-2*t*e).sqrt(),n=new h(r.re-e,r.im+t).log();return new h(Math.PI/2-n.im,n.re)},atan:function(){let t=this.re,e=this.im;if(0===t){if(1===e)return new h(0,1/0);if(-1===e)return new h(0,-1/0)}let r=t*t+(1-e)*(1-e),n=new h((1-e*e-t*t)/r,-2*t/r).log();return new h(-.5*n.im,.5*n.re)},acot:function(){let t=this.re,e=this.im;if(0===e)return new h(Math.atan2(1,t),0);let r=t*t+e*e;return 0!==r?new h(t/r,-e/r).atan():new h(0!==t?t/0:0,0!==e?-e/0:0).atan()},asec:function(){let t=this.re,e=this.im;if(0===t&&0===e)return new h(0,1/0);let r=t*t+e*e;return 0!==r?new h(t/r,-e/r).acos():new h(0!==t?t/0:0,0!==e?-e/0:0).acos()},acsc:function(){let t=this.re,e=this.im;if(0===t&&0===e)return new h(Math.PI/2,1/0);let r=t*t+e*e;return 0!==r?new h(t/r,-e/r).asin():new h(0!==t?t/0:0,0!==e?-e/0:0).asin()},sinh:function(){let t=this.re,e=this.im;return new h(u(t)*Math.cos(e),i(t)*Math.sin(e))},cosh:function(){let t=this.re,e=this.im;return new h(i(t)*Math.cos(e),u(t)*Math.sin(e))},tanh:function(){let t=2*this.re,e=2*this.im,r=i(t)+Math.cos(e);return new h(u(t)/r,Math.sin(e)/r)},coth:function(){let t=2*this.re,e=2*this.im,r=i(t)-Math.cos(e);return new h(u(t)/r,-Math.sin(e)/r)},csch:function(){let t=this.re,e=this.im,r=Math.cos(2*e)-i(2*t);return new h(-2*u(t)*Math.cos(e)/r,2*i(t)*Math.sin(e)/r)},sech:function(){let t=this.re,e=this.im,r=Math.cos(2*e)+i(2*t);return new h(2*i(t)*Math.cos(e)/r,-2*u(t)*Math.sin(e)/r)},asinh:function(){let t=this.re,e=this.im;if(0===e){if(0===t)return new h(0,0);let e=Math.abs(t),r=Math.log(e+Math.sqrt(e*e+1));return new h(t<0?-r:r,0)}let r=new h(t*t-e*e+1,2*t*e).sqrt();return new h(t+r.re,e+r.im).log()},acosh:function(){let t=this.re,e=this.im;if(0===e){if(t>1)return new h(Math.log(t+Math.sqrt(t-1)*Math.sqrt(t+1)),0);if(t<-1){let e=Math.sqrt(t*t-1);return new h(Math.log(-t+e),Math.PI)}return new h(0,Math.acos(t))}let r=new h(t-1,e).sqrt(),n=new h(t+1,e).sqrt();return new h(t+r.re*n.re-r.im*n.im,e+r.re*n.im+r.im*n.re).log()},atanh:function(){let t=this.re,e=this.im;if(0===e)return 0===t?new h(0,0):1===t?new h(1/0,0):-1===t?new h(-1/0,0):-1<t&&t<1?new h(.5*Math.log((1+t)/(1-t)),0):t>1?new h(.5*Math.log((t+1)/(t-1)),-Math.PI/2):new h(.5*Math.log(-((1+t)/(1-t))),Math.PI/2);let r=1-t,n=1+t,i=r*r+e*e;if(0===i)return new h(-1!==t?t/0:0,0!==e?e/0:0);let u=(n*r-e*e)/i,o=(e*r+n*e)/i;return new h(c(u,o)/2,Math.atan2(o,u)/2)},acoth:function(){let t=this.re,e=this.im;if(0===t&&0===e)return new h(0,Math.PI/2);let r=t*t+e*e;return 0!==r?new h(t/r,-e/r).atanh():new h(0!==t?t/0:0,0!==e?-e/0:0).atanh()},acsch:function(){let t=this.re,e=this.im;if(0===e){if(0===t)return new h(1/0,0);let e=1/t;return new h(Math.log(e+Math.sqrt(e*e+1)),0)}let r=t*t+e*e;return 0!==r?new h(t/r,-e/r).asinh():new h(0!==t?t/0:0,0!==e?-e/0:0).asinh()},asech:function(){let t=this.re,e=this.im;if(this.isZero())return h.INFINITY;let r=t*t+e*e;return 0!==r?new h(t/r,-e/r).acosh():new h(0!==t?t/0:0,0!==e?-e/0:0).acosh()},inverse:function(){if(this.isZero())return h.INFINITY;if(this.isInfinite())return h.ZERO;let t=this.re,e=this.im,r=t*t+e*e;return new h(t/r,-e/r)},conjugate:function(){return new h(this.re,-this.im)},neg:function(){return new h(-this.re,-this.im)}
1,ceil:function(t){return t=Math.pow(10,t||0),new h(Math.ceil(this.re*t)/t,Math.ceil(this.im*t)/t)},floor:function(t){return t=Math.pow(10,t||0),new h(Math.floor(this.re*t)/t,Math.floor(this.im*t)/t)},round:function(t){return t=Math.pow(10,t||0),new h(Math.round(this.re*t)/t,Math.round(this.im*t)/t)},equals:function(t,e){let r=l(t,e);return Math.abs(r.re-this.re)<=h.EPSILON&&Math.abs(r.im-this.im)<=h.EPSILON},clone:function(){return new h(this.re,this.im)},toString:function(){let t=this.re,e=this.im,r="";return this.isNaN()?"NaN":this.isInfinite()?"Infinity":(Math.abs(t)<h.EPSILON&&(t=0),Math.abs(e)<h.EPSILON&&(e=0),0===e)?r+t:(0!==t?(r+=t,r+=" ",e<0?(e=-e,r+="-"):r+="+",r+=" "):e<0&&(e=-e,r+="-"),1!==e&&(r+=e),r+"i")},toVector:function(){return[this.re,this.im]},valueOf:function(){return 0===this.im?this.re:null},isNaN:function(){return isNaN(this.re)||isNaN(this.im)},isZero:function(){return 0===this.im&&0===this.re},isFinite:function(){return isFinite(this.re)&&isFinite(this.im)},isInfinite:function(){return!this.isFinite()}},h.ZERO=new h(0,0),h.ONE=new h(1,0),h.I=new h(0,1),h.PI=new h(Math.PI,0),h.E=new h(Math.E,0),h.INFINITY=new h(1/0,1/0),h.NAN=new h(NaN,NaN),h.EPSILON=1e-15;var d=r(6416),p=r(19600),D=r(90329),m=(0,D.P9)("Complex",[],()=>(Object.defineProperty(h,"name",{value:"Complex"}),h.prototype.constructor=h,h.prototype.type="Complex",h.prototype.isComplex=!0,h.prototype.toJSON=function(){return{mathjs:"Complex",re:this.re,im:this.im}},h.prototype.toPolar=function(){return{r:this.abs(),phi:this.arg()}},h.prototype.format=function(t){var e=this.im,r=this.re,n=(0,d.GP)(this.re,t),i=(0,d.GP)(this.im,t),u=(0,p.Et)(t)?t:t?t.precision:null;if(null!==u){var o=Math.pow(10,-u);Math.abs(r/e)<o&&(r=0),Math.abs(e/r)<o&&(e=0)}return 0===e?n:0===r?1===e?"i":-1===e?"-i":i+"i":e<0?-1===e?n+" - i":n+" - "+i.substring(1)+"i":1===e?n+" + i":n+" + "+i+"i"},h.fromPolar=function(t){switch(arguments.length){case 1:var e=arguments[0];if("object"==typeof e)return h(e);throw TypeError("Input has to be an object with r and phi keys.");case 2:var r=arguments[0],n=arguments[1];if((0,p.Et)(r)){if((0,p.vO)(n)&&n.hasBase("ANGLE")&&(n=n.toNumber("rad")),(0,p.Et)(n))return new h({r,phi:n});throw TypeError("Phi is not a number nor an angle unit.")}throw TypeError("Radius r is not a number.");default:throw SyntaxError("Wrong number of arguments in function fromPolar")}},h.prototype.valueOf=h.prototype.toString,h.fromJSON=function(t){return new h(t)},h.compare=function(t,e){return t.re>e.re?1:t.re<e.re?-1:t.im>e.im?1:t.im<e.im?-1:0},h),{isClass:!0}),g=r(26485),v=r(93760),y=r(75866),w=function(){return w=y.create,y},b=(0,D.P9)("typed",["?BigNumber","?Complex","?DenseMatrix","?Fraction"],function(t){var{BigNumber:e,Complex:r,DenseMatrix:n,Fraction:i}=t,u=w();return u.clear(),u.addTypes([{name:"number",test:p.Et},{name:"Complex",test:p.Zd},{name:"BigNumber",test:p.C4},{name:"bigint",test:p.sI},{name:"Fraction",test:p.fU},{name:"Unit",test:p.vO},{name:"identifier",test:t=>p.Kg&&/^(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u
10EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDD4A-\uDD65\uDD6F-\uDD85\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC4\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE4
10-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDDD0-\uDDED\uDDF0\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFB
1D3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDD4A-\uDD65\uDD6F-\uDD85\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC4\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDDD0-\uDDED\uDDF0\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])*$/.test(t)},{name:"string",test:p.Kg},{name:"Chain",test:p.o_},{name:"Array",test:p.cy},{name:"Matrix",test:p.OA},{name:"DenseMatrix",test:p.zR},{name:"SparseMatrix",test:p.AF},{name:"Range",test:p._Z},{name:"Index",test:p.nw},{name:"boolean",test:p.Lm},{name:"ResultSet",test:p.eW},{name:"Help",test:p.gS},{name:"function",test:p.Tn},{name:"Date",test:p.$P},{name:"RegExp",test:p.gd},{name:"null",test:p.kZ},{name:"undefined",test:p.b0}
1,{name:"AccessorNode",test:p.AS},{name:"ArrayNode",test:p.gO},{name:"AssignmentNode",test:p.qM},{name:"BlockNode",test:p.CD},{name:"ConditionalNode",test:p.PO},{name:"ConstantNode",test:p.BA},{name:"FunctionNode",test:p.Px},{name:"FunctionAssignmentNode",test:p.m2},{name:"IndexNode",test:p.$I},{name:"Node",test:p.Ll},{name:"ObjectNode",test:p.GJ},{name:"OperatorNode",test:p.$$},{name:"ParenthesisNode",test:p.tv},{name:"RangeNode",test:p.Ye},{name:"RelationalNode",test:p.iu},{name:"SymbolNode",test:p.li},{name:"Map",test:p.jh},{name:"Object",test:p.Gv}]),u.addConversions([{from:"number",to:"BigNumber",convert:function(t){if(e||F(t),(0,d.vm)(t)>15)throw TypeError("Cannot implicitly convert a number with >15 significant digits to BigNumber (value: "+t+"). Use function bignumber(x) to convert to BigNumber.");return new e(t)}},{from:"number",to:"Complex",convert:function(t){return r||A(t),new r(t,0)}},{from:"BigNumber",to:"Complex",convert:function(t){return r||A(t),new r(t.toNumber(),0)}},{from:"bigint",to:"number",convert:function(t){if(t>Number.MAX_SAFE_INTEGER)throw TypeError("Cannot implicitly convert bigint to number: value exceeds the max safe integer value (value: "+t+")");return Number(t)}},{from:"bigint",to:"BigNumber",convert:function(t){return e||F(t),new e(t.toString())}},{from:"bigint",to:"Fraction",convert:function(t){return i||E(t),new i(t)}},{from:"Fraction",to:"BigNumber",convert:function(t){throw TypeError("Cannot implicitly convert a Fraction to BigNumber or vice versa. Use function bignumber(x) to convert to BigNumber or fraction(x) to convert to Fraction.")}},{from:"Fraction",to:"Complex",convert:function(t){return r||A(t),new r(t.valueOf(),0)}},{from:"number",to:"Fraction",convert:function(t){i||E(t);var e=new i(t);if(e.valueOf()!==t)throw TypeError("Cannot implicitly convert a number to a Fraction when there will be a loss of precision (value: "+t+"). Use function fraction(x) to convert to Fraction.");return e}},{from:"string",to:"number",convert:function(t){var e=Number(t);if(isNaN(e))throw Error('Cannot convert "'+t+'" to a number');return e}},{from:"string",to:"BigNumber",convert:function(t){e||F(t);try{return new e(t)}catch(e){throw Error('Cannot convert "'+t+'" to BigNumber')}}},{from:"string",to:"bigint",convert:function(t){try{return BigInt(t)}catch(e){throw Error('Cannot convert "'+t+'" to BigInt')}}},{from:"string",to:"Fraction",convert:function(t){i||E(t);try{return new i(t)}catch(e){throw Error('Cannot convert "'+t+'" to Fraction')}}},{from:"string",to:"Complex",convert:function(t){r||A(t);try{return new r(t)}catch(e){throw Error('Cannot convert "'+t+'" to Complex')}}},{from:"boolean",to:"number",convert:function(t){return+t}},{from:"boolean",to:"BigNumber",convert:function(t){return e||F(t),new e(+t)}},{from:"boolean",to:"bigint",convert:function(t){return BigInt(+t)}},{from:"boolean",to:"Fraction",convert:function(t){return i||E(t),new i(+t)}},{from:"boolean",to:"string",convert:function(t){return String(t)}},{from:"Array",to:"Matrix",convert:function(t){return n||function(){throw Error("Cannot convert array into a Matrix: no class 'DenseMatrix' provided")}(),new n(t)}},{from:"Matrix",to:"Array",convert:function(t){return t.valueOf()}}]),u.onMismatch=(t,e,r)=>{var n=u.createError(t,e,r);if(["wrongType","mismatch"].includes(n.data.category)&&1===e.length&&(0,p.P3)(e[0])&&r.some(t=>!t.params.includes(","))){var i=TypeError("Function '".concat(t,"' doesn't apply to matrices. To call it ")+"elementwise on a matrix 'M', try 'map(M, ".concat(t,")'."));throw i.data=n.data,i}throw n},u.onMismatch=(t,e,r)=>{var n=u.createError(t,e,r);if(["wrongType","mismatch"].includes(n.data.category)&&1===e.length&&(0,p.P3)(e[0])&&r.some(t=>!t.params.includes(","))){var i=TypeError("Function '".concat(t,"' doesn't apply to matrices. To call it ")+"elementwise on a matrix 'M', try 'map(M, ".concat(t,")'."));throw i.data=n.data,i}throw n},u});function F(t){throw Error("Cannot convert value ".concat(t," into a BigNumber: no class 'BigNumber' provided"))}function A(t){throw Error("Cannot convert value ".concat(t," into a Complex number: no class 'Complex' provided"))}function E(t){throw Error("Cannot convert value ".concat(t," into a Fraction, no class 'Fraction' provided."))}
1var _={BigNumberDependencies:n.P,ComplexDependencies:{createComplexClass:m},DenseMatrixDependencies:g.k,FractionDependencies:v.M,createTyped:b}},141:(t,e,r)=>{"use strict";r.d(e,{j:()=>c});var n=r(42483),i=r(90329),u=r(10885),o=r(52492),a="unaryMinus",s=(0,i.P9)(a,["typed"],t=>{var{typed:e}=t;return e(a,{number:o.zZ,"Complex | BigNumber | Fraction":t=>t.neg(),bigint:t=>-t,Unit:e.referToSelf(t=>r=>{var n=r.clone();return n.value=e.find(t,n.valueType())(r.value),n}),"Array | Matrix":e.referToSelf(t=>e=>(0,u.Bl)(e,t,!0))})}),c={typedDependencies:n.U,createUnaryMinus:s}},12270:(t,e,r)=>{"use strict";function n(t,e,r){if(!(this instanceof n))throw SyntaxError("Constructor must be called with the new operator");this.actual=t,this.expected=e,this.relation=r,this.message="Dimension mismatch ("+(Array.isArray(t)?"["+t.join(", ")+"]":t)+" "+(this.relation||"!=")+" "+(Array.isArray(e)?"["+e.join(", ")+"]":e)+")",this.stack=Error().stack}r.d(e,{h:()=>n}),n.prototype=RangeError(),n.prototype.constructor=RangeError,n.prototype.name="DimensionError",n.prototype.isDimensionError=!0},3762:(t,e,r)=>{"use strict";function n(t,e,r){if(!(this instanceof n))throw SyntaxError("Constructor must be called with the new operator");this.index=t,arguments.length<3?(this.min=0,this.max=e):(this.min=e,this.max=r),void 0!==this.min&&this.index<this.min?this.message="Index out of range ("+this.index+" < "+this.min+")":void 0!==this.max&&this.index>=this.max?this.message="Index out of range ("+this.index+" > "+(this.max-1)+")":this.message="Index out of range ("+this.index+")",this.stack=Error().stack}r.d(e,{d:()=>n}),n.prototype=RangeError(),n.prototype.constructor=RangeError,n.prototype.name="IndexError",n.prototype.isIndexError=!0},52492:(t,e,r)=>{"use strict";r.d(e,{Ki:()=>a,LF:()=>o,YD:()=>s,gu:()=>u,zZ:()=>c}),r(6416);var n="number",i="number, number";function u(t){return Math.abs(t)}function o(t,e){return t+e}function a(t,e){return t-e}function s(t,e){return t*e}function c(t){return-t}u.signature=n,o.signature=i,a.signature=i,s.signature=i,c.signature=n},29563:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var n=(0,r(90329).P9)("matAlgo11xS0s",["typed","equalScalar"],t=>{var{typed:e,equalScalar:r}=t;return function(t,n,i,u){var o,a=t._values,s=t._index,c=t._ptr,f=t._size,l=t._datatype;if(!a)throw Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var h=f[0],d=f[1],p=r,D=0,m=i;"string"==typeof l&&(o=l,p=e.find(r,[o,o]),D=e.convert(0,o),n=e.convert(n,o),m=e.find(i,[o,o]));for(var g=[],v=[],y=[],w=0;w<d;w++){y[w]=v.length;for(var b=c[w],F=c[w+1],A=b;A<F;A++){var E=s[A],_=u?m(n,a[A]):m(a[A],n);p(_,D)||(v.push(E),g.push(_))}}return y[d]=v.length,t.createSparseMatrix({values:g,index:v,ptr:y,size:[h,d],datatype:o})}})},59261:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var n=r(90329),i=r(23610),u=(0,n.P9)("matAlgo14xDs",["typed"],t=>{var{typed:e}=t;return function(t,r,n,u){var o,a=t._data,s=t._size,c=t._datatype,f=n;"string"==typeof c&&(o=c,r=e.convert(r,o),f=e.find(n,[o,o]));var l=s.length>0?function t(e,r,n,i,u,o,a){var s=[];if(r===n.length-1)for(var c=0;c<i;c++)s[c]=a?e(o,u[c]):e(u[c],o);else for(var f=0;f<i;f++)s[f]=t(e,r+1,n,n[r+1],u[f],o,a);return s}(f,0,s,s[0],a,r,u):[];return t.createDenseMatrix({data:l,size:(0,i.o8)(s),datatype:o})}})},38458:(t,e,r)=>{"use strict";r.d(e,{Bl:()=>A,Jt:()=>F,Kx:()=>y,LO:()=>f,XR:()=>d,cs:()=>D,hO:()=>b,iD:()=>g,ig:()=>function t(e,r){for(var n,i=0,u=0;u<e.length;u++){var o=e[u],a=Array.isArray(o);if(0===u&&a&&(i=o.length),a&&o.length!==i)return;var s=a?t(o,r):r(o);if(void 0===n)n=s;else if(n!==s)return"mixed"}return n},r7:()=>h,tQ:()=>p,tf:()=>l,xW:()=>v});var n=r(31111),i=r(6416),u=r(19600),o=r(82152),a=r(12270),s=r(3762),c=r(23610);function f(t){for(var e=[];Array.isArray(t);)e.push(t.length),t=t[0];return e}function l(t,e){if(0===e.length){if(Array.isArray(t))throw new a.h(t.length,0)}else!function t(e,r,n){var i,u=e.length;if(u!==r[n])throw new a.h(u,r[n]);if(n<r.length-1){var o=n+1;for(i=0;i<u;i++){if(!Array.isArray(e[i]))throw new a.h(r.length-1,r.length,"<");t(e[i],r,o)}}else for(i=0;i<u;i++)if(Array.isArray(e[i]))throw new a.h(r.length+1,r.length,">")}(t,e,0)}function h(t,e){if(void 0!==t){if(!(0,u.Et)(t)||!(0,i.YN)(t))throw TypeError("Index must be an integer (value: "+t+")");if(t<0||"number"==typeof e&&t>=e)throw new s.d(t,e)}}function d(t,e,r){if(!Array.isArray(e))throw TypeError("Array expected");if(0===e.length)throw Error("Resizing to scalar is not supported");return e.forEach(function(t){if(!(0,u.Et)(t)||!(0,i.YN)(t)||t<0)throw TypeError("Invalid size, must contain positive integers (size: "+(0,o.GP)(e)+")")}),((0,u.Et)(t)||(0,u.C4)(t))&&(t=[t]),function t(e,r,n,i){var u,o,a=e.length,s=r[n],c=Math.min(a,s);if(e.length=s,n<r.length-1){var f=n+1;for(u=0;
1u<c;u++)Array.isArray(o=e[u])||(o=[o],e[u]=o),t(o,r,f,i);for(u=c;u<s;u++)o=[],e[u]=o,t(o,r,f,i)}else{for(u=0;u<c;u++)for(;Array.isArray(e[u]);)e[u]=e[u][0];for(u=c;u<s;u++)e[u]=i}}(t,e,0,void 0!==r?r:0),t}function p(t,e){var r=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!Array.isArray(t))return t;if("boolean"!=typeof e)throw TypeError("Boolean expected for second argument of flatten");var r=[];return e?function t(e){if(Array.isArray(e[0]))for(var n=0;n<e.length;n++)t(e[n]);else for(var i=0;i<e.length;i++)r.push(e[i])}(t):function t(e){for(var n=0;n<e.length;n++){var i=e[n];Array.isArray(i)?t(i):r.push(i)}}(t),r}(t,!0),n=r.length;if(!Array.isArray(t)||!Array.isArray(e))throw TypeError("Array expected");if(0===e.length)throw new a.h(0,n,"!=");var i=m(e=D(e,n));if(n!==i)throw new a.h(i,n,"!=");try{return function(t,e){for(var r,n=t,i=e.length-1;i>0;i--){var u=e[i];r=[];for(var o=n.length/u,a=0;a<o;a++)r.push(n.slice(a*u,(a+1)*u));n=r}return n}(r,e)}catch(t){if(t instanceof a.h)throw new a.h(i,n,"!=");throw t}}function D(t,e){var r=m(t),n=t.slice(),i=t.indexOf(-1);if(t.indexOf(-1,i+1)>=0)throw Error("More than one wildcard in sizes");if(i>=0){if(e%r==0)n[i]=-e/r;else throw Error("Could not replace wildcard, since "+e+" is no multiple of "+-r)}return n}function m(t){return t.reduce((t,e)=>t*e,1)}function g(t,e,r,n){var i=n||f(t);if(r)for(var u=0;u<r;u++)t=[t],i.unshift(1);for(t=function t(e,r,n){var i,u;if(Array.isArray(e)){var o=n+1;for(i=0,u=e.length;i<u;i++)e[i]=t(e[i],r,o)}else for(var a=n;a<r;a++)e=[e];return e}(t,e,0);i.length<e;)i.push(1);return t}function v(){var t=Array.prototype.slice.call(arguments,0,-1),e=Array.prototype.slice.call(arguments,-1);if(1===t.length)return t[0];if(t.length>1)return t.slice(1).reduce(function(t,r){return function t(e,r,n,i){if(!(i<n))return e.concat(r);if(e.length!==r.length)throw new a.h(e.length,r.length);for(var u=[],o=0;o<e.length;o++)u[o]=t(e[o],r[o],n,i+1);return u}(t,r,e,0)},t[0]);throw Error("Wrong number of arguments in function concat")}function y(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var n=e.map(t=>t.length),i=Math.max(...n),u=Array(i).fill(null),o=0;o<e.length;o++)for(var a=e[o],s=n[o],c=0;c<s;c++){var f=i-s+c;a[c]>u[f]&&(u[f]=a[c])}for(var l=0;l<e.length;l++)w(e[l],u);return u}function w(t,e){for(var r=e.length,n=t.length,i=0;i<n;i++){var u=r-n+i;if(t[i]<e[u]&&t[i]>1||t[i]>e[u])throw Error("shape mismatch: mismatch is found in arg with shape (".concat(t,") not possible to broadcast dimension ").concat(n," with size ").concat(t[i]," to size ").concat(e[u]))}}function b(t,e){var r,i,u,o=f(t);if((0,c.QO)(o,e))return t;w(o,e);var a=y(o,e),s=a.length,l=[...Array(s-o.length).fill(1),...o],h=(0,n.A)([],t);o.length<s&&(o=f(h=p(h,l)));for(var d=0;d<s;d++)o[d]<a[d]&&(o=f((r=h,i=a[d],u=d,h=v(...Array(i).fill(r),u))));return h}function F(t,e){if(!Array.isArray(t))throw Error("Array expected");var r=f(t);if(e.length!==r.length)throw new a.h(e.length,r.length);for(var n=0;n<e.length;n++)h(e[n],r[n]);return e.reduce((t,e)=>t[e],t)}function A(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(0===t.length)return[];if(r)return function t(r){if(!Array.isArray(r))return e(r);for(var n=r.length,i=Array(n),u=0;u<n;u++)i[u]=t(r[u]);return i}(t);var n=[];return function r(i,u){if(!Array.isArray(i))return e(i,n.slice(0,u),t);for(var o=i.length,a=Array(o),s=0;s<o;s++)n[u]=s,a[s]=r(i[s],u+1);return a}(t,0)}},10885:(t,e,r)=>{"use strict";r.d(e,{Bl:()=>u});var n=r(19600),i=r(38458);function u(t,e,r){if(!r)return(0,n.OA)(t)?t.map(t=>e(t),!1,!0):(0,i.Bl)(t,e,!0);var u=t=>0===t?t:e(t);return(0,n.OA)(t)?t.map(t=>u(t),!1,!0):(0,i.Bl)(t,u,!0)}},90329:(t,e,r)=>{"use strict";r.d(e,{P9:()=>i,Py:()=>o,T$:()=>u});var n=r(23610);function i(t,e,r,i){function u(i){var u=(0,n.K)(i,e.map(o));return function(t,e,r){if(!e.filter(t=>!(t&&"?"===t[0])).every(t=>void 0!==r[t])){var n=e.filter(t=>void 0===r[t]);throw Error('Cannot create function "'.concat(t,'", ')+"some dependencies are missing: ".concat(n.map(t=>'"'.concat(t,'"')).join(", "),"."))}}(t,e,i),r(u)}return u.isFactory=!0,u.fn=t,u.dependencies=e.slice().sort(),i&&(u.meta=i),u}function u(t){return"function"==typeof t&&"string"==typeof t.fn&&Array.isArray(t.dependencies)}function o(t){return t&&"?"===t[0]?t.slice(1):t}},19600:(t,e,r)=>{"use strict";r.d(e,{AS:()=>k,cy:()=>D,gO:()=>Y,qM:()=>z,sI:()=>f,C4:()=>c,CD:()=>P,Lm:()=>F,o_:()=>Q,P3:()=>g,Zd:()=>l,PO:()=>I,BA:()=>j,$P:()=>C,zR:()=>v,fU:()=>h,Tn:()=>_,m2:()=>L,Px:()=>$,gS:()=>E,nw:()=>b,$I:()=>U,jh:()=>B,OA:()=>m,Ll:()=>R,kZ:()=>T,Et:()=>s,Gv:()=>M,GJ:()=>q,uQ:()=>N,$$:()=>H,tv:()=>Z,aZ:()=>S,_Z:()=>w,Ye:()=>G,gd:()=>x,iu:()=>J,eW:()=>A,AF:()=>y,Kg:()=>p,li:()=>W,b0:()=>O,vO:()=>d,QP:()=>V});var n=r(23610);function i(t,e){return!!("object"==typeof t&&t&&t.constructor===Object||Array.isArray(t))&&(!!(0,n.mQ)(u,e)||!(e in Object.prototype)&&!(e in Function.prototype))}var u={length:!0,name:!0}
1,o={toString:!0,valueOf:!0,toLocaleString:!0};class a{constructor(t){this.wrappedObject=t,this[Symbol.iterator]=this.entries}keys(){return Object.keys(this.wrappedObject).filter(t=>this.has(t)).values()}get(t){return function(t,e){if(i(t,e))return t[e];if("function"==typeof t[e]&&!(null==t||"function"!=typeof t[e]||(0,n.mQ)(t,e)&&Object.getPrototypeOf&&e in Object.getPrototypeOf(t))&&((0,n.mQ)(o,e)||!(e in Object.prototype)&&!(e in Function.prototype)))throw Error('Cannot access method "'+e+'" as a property');throw Error('No access to property "'+e+'"')}(this.wrappedObject,t)}set(t,e){return function(t,e,r){if(i(t,e))return t[e]=r;throw Error('No access to property "'+e+'"')}(this.wrappedObject,t,e),this}has(t){return i(this.wrappedObject,t)&&t in this.wrappedObject}entries(){var t,e;return t=this.keys(),e=t=>[t,this.get(t)],{next:()=>{var r=t.next();return r.done?r:{value:e(r.value),done:!1}}}}forEach(t){for(var e of this.keys())t(this.get(e),e,this)}delete(t){i(this.wrappedObject,t)&&delete this.wrappedObject[t]}clear(){for(var t of this.keys())this.delete(t)}get size(){return Object.keys(this.wrappedObject).length}}function s(t){return"number"==typeof t}function c(t){return!!t&&"object"==typeof t&&"function"==typeof t.constructor&&(!0===t.isBigNumber&&"object"==typeof t.constructor.prototype&&!0===t.constructor.prototype.isBigNumber||"function"==typeof t.constructor.isDecimal&&!0===t.constructor.isDecimal(t))}function f(t){return"bigint"==typeof t}function l(t){return t&&"object"==typeof t&&!0===Object.getPrototypeOf(t).isComplex||!1}function h(t){return t&&"object"==typeof t&&!0===Object.getPrototypeOf(t).isFraction||!1}function d(t){return t&&!0===t.constructor.prototype.isUnit||!1}function p(t){return"string"==typeof t}var D=Array.isArray;function m(t){return t&&!0===t.constructor.prototype.isMatrix||!1}function g(t){return Array.isArray(t)||m(t)}function v(t){return t&&t.isDenseMatrix&&!0===t.constructor.prototype.isMatrix||!1}function y(t){return t&&t.isSparseMatrix&&!0===t.constructor.prototype.isMatrix||!1}function w(t){return t&&!0===t.constructor.prototype.isRange||!1}function b(t){return t&&!0===t.constructor.prototype.isIndex||!1}function F(t){return"boolean"==typeof t}function A(t){return t&&!0===t.constructor.prototype.isResultSet||!1}function E(t){return t&&!0===t.constructor.prototype.isHelp||!1}function _(t){return"function"==typeof t}function C(t){return t instanceof Date}function x(t){return t instanceof RegExp}function M(t){return!!(t&&"object"==typeof t&&t.constructor===Object&&!l(t)&&!h(t))}function B(t){return!!t&&(t instanceof Map||t instanceof a||"function"==typeof t.set&&"function"==typeof t.get&&"function"==typeof t.keys&&"function"==typeof t.has)}function S(t){return B(t)&&B(t.a)&&B(t.b)}function N(t){return B(t)&&M(t.wrappedObject)}function T(t){return null===t}function O(t){return void 0===t}function k(t){return t&&!0===t.isAccessorNode&&!0===t.constructor.prototype.isNode||!1}function Y(t){return t&&!0===t.isArrayNode&&!0===t.constructor.prototype.isNode||!1}function z(t){return t&&!0===t.isAssignmentNode&&!0===t.constructor.prototype.isNode||!1}function P(t){return t&&!0===t.isBlockNode&&!0===t.constructor.prototype.isNode||!1}function I(t){return t&&!0===t.isConditionalNode&&!0===t.constructor.prototype.isNode||!1}function j(t){return t&&!0===t.isConstantNode&&!0===t.constructor.prototype.isNode||!1}function L(t){return t&&!0===t.isFunctionAssignmentNode&&!0===t.constructor.prototype.isNode||!1}function $(t){return t&&!0===t.isFunctionNode&&!0===t.constructor.prototype.isNode||!1}function U(t){return t&&!0===t.isIndexNode&&!0===t.constructor.prototype.isNode||!1}function R(t){return t&&!0===t.isNode&&!0===t.constructor.prototype.isNode||!1}function q(t){return t&&!0===t.isObjectNode&&!0===t.constructor.prototype.isNode||!1}function H(t){return t&&!0===t.isOperatorNode&&!0===t.constructor.prototype.isNode||!1}function Z(t){return t&&!0===t.isParenthesisNode&&!0===t.constructor.prototype.isNode||!1}function G(t){return t&&!0===t.isRangeNode&&!0===t.constructor.prototype.isNode||!1}function J(t){return t&&!0===t.isRelationalNode&&!0===t.constructor.prototype.isNode||!1}function W(t){return t&&!0===t.isSymbolNode&&!0===t.constructor.prototype.isNode||!1}function Q(t){return t&&!0===t.constructor.prototype.isChain||!1}function V(t){var e=typeof t;return"object"===e?null===t?"null":c(t)?"BigNumber":t.constructor&&t.constructor.name?t.constructor.name:"Object":e}},577:(t,e,r)=>{"use strict";function n(){throw Error('No "bignumber" implementation available')}function i(){throw Error('No "fraction" implementation available')}function u(){throw Error('No "matrix" implementation available')}r.d(e,{Sw:()=>i,j9:()=>n,zc:()=>u})},6416:(t,e,r)=>{"use strict";r.d(e,{GP:()=>h,IY:()=>f,Kk:()=>s,YL:()=>a,YN:()=>i,_S:()=>u,_n:()=>c,jS:()=>d,p6:()=>o,q8:()=>y,vm:()=>v});var n=r(19600);function i(t){return"boolean"==typeof t||!!isFinite(t)&&t===Math.round(t)}var u=Math.sign||function(t){return t>0?1:t<0?-1:0},o=Math.log2||function(t){return Math.log(t)/Math.LN2},a=Math.log10||function(t){return Math.log(t)/Math.LN10},s=Math.log1p||function(t){return Math.log(t+1)},c=Math.cbrt||function(t){if(0===t)return t;var e,r=t<0;return r&&(t=-t),isFinite(t)?(e=Math.exp(Math.log(t)/3),e=(t/(e*e)+2*e)/3):e=t,r?-e:e},f=Math.expm1||function(t){return t>=2e-4||t<=-2e-4?Math.exp(t)-1:t+t*t/2+t*t*t/6};function l(t,e,r){var n="";if(r){if(r<1)throw Error("size must be in greater than 0");if(!i(r))throw Error("size must be an integer");if(t>2**(r-1)-1||t<-(2**(r-1)))throw Error("Value must be in range [-2^".concat(r-1,", 2^").
1concat(r-1,"-1]"));if(!i(t))throw Error("Value must be an integer");t<0&&(t+=2**r),n="i".concat(r)}var u="";return t<0&&(t=-t,u="-"),"".concat(u).concat({2:"0b",8:"0o",16:"0x"}[e]).concat(t.toString(e)).concat(n)}function h(t,e){if("function"==typeof e)return e(t);if(t===1/0)return"Infinity";if(t===-1/0)return"-Infinity";if(isNaN(t))return"NaN";var{notation:r,precision:i,wordSize:u}=d(e);switch(r){case"fixed":return function(t,e){if(isNaN(t)||!isFinite(t))return String(t);var r=p(t),n="number"==typeof e?m(r,r.exponent+1+e):r,i=n.coefficients,u=n.exponent+1,o=u+(e||0);return i.length<o&&(i=i.concat(g(o-i.length))),u<0&&(i=g(-u+1).concat(i),u=1),u<i.length&&i.splice(u,0,0===u?"0.":"."),n.sign+i.join("")}(t,i);case"exponential":return D(t,i);case"engineering":return function(t,e){if(isNaN(t)||!isFinite(t))return String(t);var r=m(p(t),e),i=r.exponent,u=r.coefficients,o=i%3==0?i:i<0?i-3-i%3:i-i%3;if((0,n.Et)(e))for(;e>u.length||i-o+1>u.length;)u.push(0);else for(var a=Math.abs(i-o)-(u.length-1),s=0;s<a;s++)u.push(0);for(var c=Math.abs(i-o),f=1;c>0;)f++,c--;var l=u.slice(f).join(""),h=(0,n.Et)(e)&&l.length||l.match(/[1-9]/)?"."+l:"",d=u.slice(0,f).join("")+h+"e"+(i>=0?"+":"")+o.toString();return r.sign+d}(t,i);case"bin":return l(t,2,u);case"oct":return l(t,8,u);case"hex":return l(t,16,u);case"auto":return(function(t,e,r){if(isNaN(t)||!isFinite(t))return String(t);var n=b(null==r?void 0:r.lowerExp,-3),i=b(null==r?void 0:r.upperExp,5),u=p(t),o=e?m(u,e):u;if(o.exponent<n||o.exponent>=i)return D(t,e);var a=o.coefficients,s=o.exponent;a.length<e&&(a=a.concat(g(e-a.length))),a=a.concat(g(s-a.length+1+(a.length<e?e-a.length:0))),a=g(-s).concat(a);var c=s>0?s:0;return c<a.length-1&&a.splice(c+1,0,"."),o.sign+a.join("")})(t,i,e).replace(/((\.\d*?)(0+))($|e)/,function(){var t=arguments[2],e=arguments[4];return"."!==t?t+e:e});default:throw Error('Unknown notation "'+r+'". Choose "auto", "exponential", "fixed", "bin", "oct", or "hex.')}}function d(t){var e,r,i="auto";if(void 0!==t){if((0,n.Et)(t))e=t;else if((0,n.C4)(t))e=t.toNumber();else if((0,n.Gv)(t))void 0!==t.precision&&(e=w(t.precision,()=>{throw Error('Option "precision" must be a number or BigNumber')})),void 0!==t.wordSize&&(r=w(t.wordSize,()=>{throw Error('Option "wordSize" must be a number or BigNumber')})),t.notation&&(i=t.notation);else throw Error("Unsupported type of options, number, BigNumber, or object expected")}return{notation:i,precision:e,wordSize:r}}function p(t){var e=String(t).toLowerCase().match(/^(-?)(\d+\.?\d*)(e([+-]?\d+))?$/);if(!e)throw SyntaxError("Invalid number "+t);var r=e[1],n=e[2],i=parseFloat(e[4]||"0"),u=n.indexOf(".");i+=-1!==u?u-1:n.length-1;var o=n.replace(".","").replace(/^0*/,function(t){return i-=t.length,""}).replace(/0*$/,"").split("").map(function(t){return parseInt(t)});return 0===o.length&&(o.push(0),i++),{sign:r,coefficients:o,exponent:i}}function D(t,e){if(isNaN(t)||!isFinite(t))return String(t);var r=p(t),n=e?m(r,e):r,i=n.coefficients,u=n.exponent;i.length<e&&(i=i.concat(g(e-i.length)));var o=i.shift();return n.sign+o+(i.length>0?"."+i.join(""):"")+"e"+(u>=0?"+":"")+u}function m(t,e){for(var r={sign:t.sign,coefficients:t.coefficients,exponent:t.exponent},n=r.coefficients;e<=0;)n.unshift(0),r.exponent++,e++;if(n.length>e&&n.splice(e,n.length-e)[0]>=5){var i=e-1;for(n[i]++;10===n[i];)n.pop(),0===i&&(n.unshift(0),r.exponent++,i++),i--,n[i]++}return r}function g(t){for(var e=[],r=0;r<t;r++)e.push(0);return e}function v(t){return t.toExponential().replace(/e.*$/,"").replace(/^0\.?0*|\./,"").length}function y(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e-8,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;
1if(r<=0)throw Error("Relative tolerance must be greater than 0");if(n<0)throw Error("Absolute tolerance must be at least 0");return!(isNaN(t)||isNaN(e))&&(isFinite(t)&&isFinite(e)?t===e||Math.abs(t-e)<=Math.max(r*Math.max(Math.abs(t),Math.abs(e)),n):t===e)}function w(t,e){return(0,n.Et)(t)?t:(0,n.C4)(t)?t.toNumber():void e()}function b(t,e){return(0,n.Et)(t)?t:(0,n.C4)(t)?t.toNumber():e}},23610:(t,e,r)=>{"use strict";r.d(e,{K:()=>c,Mx:()=>s,QO:()=>function t(e,r){var n,i,u;if(Array.isArray(e)){if(!Array.isArray(r)||e.length!==r.length)return!1;for(i=0,u=e.length;i<u;i++)if(!t(e[i],r[i]))return!1;return!0}if("function"==typeof e||!(e instanceof Object))return e===r;if(Array.isArray(r)||!(r instanceof Object))return!1;for(n in e)if(!(n in r)||!t(e[n],r[n]))return!1;for(n in r)if(!(n in e))return!1;return!0},RZ:()=>o,X$:()=>i,mQ:()=>a,o8:()=>function t(e){var r=typeof e;if("number"===r||"bigint"===r||"string"===r||"boolean"===r||null==e)return e;if("function"==typeof e.clone)return e.clone();if(Array.isArray(e))return e.map(function(e){return t(e)});if(e instanceof Date)return new Date(e.valueOf());if((0,n.C4)(e))return e;if((0,n.Gv)(e))return function(t,e){var r={};for(var n in t)a(t,n)&&(r[n]=e(t[n]));return r}(e,t);if("function"===r)return e;throw TypeError("Cannot clone: unknown type of value (value: ".concat(e,")"))},rU:()=>u,zw:()=>function t(e,r){if(Array.isArray(r))throw TypeError("Arrays are not supported by deepExtend");for(var n in r)if(a(r,n)&&!(n in Object.prototype)&&!(n in Function.prototype)){if(r[n]&&r[n].constructor===Object)void 0===e[n]&&(e[n]={}),e[n]&&e[n].constructor===Object?t(e[n],r[n]):e[n]=r[n];else if(Array.isArray(r[n]))throw TypeError("Arrays are not supported by deepExtend");else e[n]=r[n]}return e}});var n=r(19600);function i(t,e){for(var r in e)a(e,r)&&(t[r]=e[r]);return t}function u(t){var e={};return function t(e,r){for(var n in e)if(a(e,n)){var i=e[n];"object"==typeof i&&null!==i?t(i,r):r[n]=i}}(t,e),e}function o(t,e,r){var n,i=!0;Object.defineProperty(t,e,{get:function(){return i&&(n=r(),i=!1),n},set:function(t){n=t,i=!1},configurable:!0,enumerable:!0})}function a(t,e){return t&&Object.hasOwnProperty.call(t,e)}function s(t){return t&&"function"==typeof t.factory}function c(t,e){for(var r={},n=0;n<e.length;n++){var i=e[n],u=t[i];void 0!==u&&(r[i]=u)}return r}},96153:(t,e,r)=>{"use strict";r.d(e,{r:()=>o});var n=r(75866),i=r(38458),u=r(19600);function o(t,e,r,u){if(n.isTypedFunction(t)){if(u)o=1;else{var o,s,c=(e.isMatrix?e.size():(0,i.LO)(e)).map(()=>0);o=function(t,e,r,i){for(var u=[e,r,i],o=3;o>0;o--){var a=u.slice(0,o);if(null!==n.resolve(t,a))return o}}(t,e.isMatrix?e.get(c):(0,i.Jt)(e,c),c,e)}if(e.isMatrix&&"mixed"!==e.dataType&&void 0!==e.dataType){var f=function(t,e){var r=[];if(Object.entries(t.signatures).forEach(t=>{var[n,i]=t;n.split(",").length===e&&r.push(i)}),1===r.length)return r[0]}(t,o);s=void 0!==f?f:t}else s=t;return o>=1&&o<=3?{isUnary:1===o,fn:function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];return a(s,n.slice(0,o),r,t.name)}}:{isUnary:!1,fn:function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];return a(s,n,r,t.name)}}}return void 0===u?{isUnary:function(t){if(1!==t.length)return!1;var e=t.toString();if(/arguments/.test(e))return!1;var r=e.match(/\(.*?\)/);return!/\.\.\./.test(r)}(t),fn:t}:{isUnary:u,fn:t}}function a(t,e,r,n){try{return t(...e)}catch(t){(function(t,e,r,n){var i;if(t instanceof TypeError&&(null===(i=t.data)||void 0===i?void 0:i.category)==="wrongType"){var o=[];throw o.push("value: ".concat((0,u.QP)(e[0]))),e.length>=2&&o.push("index: ".concat((0,u.QP)(e[1]))),e.length>=3&&o.push("array: ".concat((0,u.QP)(e[2]))),TypeError("Function ".concat(r," cannot apply callback arguments ")+"".concat(n,"(").concat(o.join(", "),") at index ").concat(JSON.stringify(e[1])))}throw TypeError("Function ".concat(r," cannot apply callback arguments ")+"to function ".concat(n,": ").concat(t.message))})(t,e,r,n)}}},82152:(t,e,r)=>{"use strict";r.d(e,{GP:()=>function t(e,r){var c=function(e,r){return"number"==typeof e?(0,i.GP)(e,r):(0,n.C4)(e)?function(t,e){if("function"==typeof e)return e(t);if(!t.isFinite())return t.isNaN()?"NaN":t.gt(0)?"Infinity":"-Infinity";var{notation:r,precision:n,wordSize:s}=(0,i.jS)(e);switch(r){case"fixed":return t.toFixed(n);case"exponential":return o(t,n);case"engineering":return f=(c=t.e)%3==0?c:c<0?c-3-c%3:c-c%3,(l=t.mul(Math.pow(10,-f)).toPrecision(n)).includes("e")&&(l=new t.constructor(l).toFixed()),l+"e"+(c>=0?"+":"")+f.toString();case"bin":return u(t,2,s);case"oct":return u(t,8,s);case"hex":return u(t,16,s);case"auto":var c,f,l,h=a(null==e?void 0:e.lowerExp,-3),d=a(null==e?void 0:e.upperExp,5);if(t.isZero())return"0";var p=t.toSignificantDigits(n),D=p.e;return(D>=h&&D<d?p.toFixed():o(t,n)).replace(/((\.\d*?)(0+))($|e)/,function(){var t=arguments[2],e=arguments[4];return"."!==t?t+e:e});default:throw Error('Unknown notation "'+r+'". Choose "auto", "exponential", "fixed", "bin", "oct", or "hex.')}}(e,r):e&&"object"==typeof e&&"bigint"==typeof e.s&&"bigint"==typeof e.n&&"bigint"==typeof e.d?r&&"decimal"===r.fraction?e.toString():"".concat(e.s*e.n,"/").concat(e.d):Array.isArray(e)?function e(r,n){if(!Array.isArray(r))return t(r,n);for(var i="[",u=r.length,o=0;o<u;
1o++)0!==o&&(i+=", "),i+=e(r[o],n);return i+"]"}(e,r):(0,n.Kg)(e)?s(e):"function"==typeof e?e.syntax?String(e.syntax):"function":e&&"object"==typeof e?"function"==typeof e.format?e.format(r):e&&e.toString(r)!==({}).toString()?e.toString(r):"{"+Object.keys(e).map(n=>s(n)+": "+t(e[n],r)).join(", ")+"}":String(e)}(e,r);return r&&"object"==typeof r&&"truncate"in r&&c.length>r.truncate?c.substring(0,r.truncate-3)+"...":c}});var n=r(19600),i=r(6416);function u(t,e,r){var n=new t.constructor(2),u="";if(r){if(r<1)throw Error("size must be in greater than 0");if(!(0,i.YN)(r))throw Error("size must be an integer");if(t.greaterThan(n.pow(r-1).sub(1))||t.lessThan(n.pow(r-1).mul(-1)))throw Error("Value must be in range [-2^".concat(r-1,", 2^").concat(r-1,"-1]"));if(!t.isInteger())throw Error("Value must be an integer");t.lessThan(0)&&(t=t.add(n.pow(r))),u="i".concat(r)}switch(e){case 2:return"".concat(t.toBinary()).concat(u);case 8:return"".concat(t.toOctal()).concat(u);case 16:return"".concat(t.toHexadecimal()).concat(u);default:throw Error("Base ".concat(e," not supported "))}}function o(t,e){return void 0!==e?t.toExponential(e-1):t.toExponential()}function a(t,e){return(0,n.Et)(t)?t:(0,n.C4)(t)?t.toNumber():e}function s(t){for(var e=String(t),r="",n=0;n<e.length;){var i=e.charAt(n);r+=i in c?c[i]:i,n++}return'"'+r+'"'}var c={'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","	":"\\t"}}}]);

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