qlu-20-ui-library 1.3.71 → 1.3.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/qlu-20-ui-library.cjs +2 -2
- package/dist/build/qlu-20-ui-library.js +35 -33
- package/dist/components/AssignmentCreationCard/index.d.ts +1 -1
- package/dist/types/components/AssignmentCreationCard/index.d.ts +1 -1
- package/dist/types/components/AssignmentCreationCard/index.js +3 -2
- package/dist/types/utils.d.ts +1 -1
- package/dist/types/utils.js +3 -2
- package/dist/utils.d.ts +1 -1
- package/package.json +1 -1
|
@@ -31,7 +31,7 @@ Check the top-level render call using <`+st+">.")}return Ie}}function Y1(oe,Ie){
|
|
|
31
31
|
planet with those decisions. I founded Simple Mills with exactly that intent.Since 2012, I have been on a mission to transform what
|
|
32
32
|
America eats by creating snacks from simple, nutrient-dense ingredients. I believe that what we put in our bodies, and how it is grown,
|
|
33
33
|
matter immensely and we have the power to heal both people and our planet with those decisions. I founded Simple Mills with exactly
|
|
34
|
-
that intent.Since 2012, I have been on a missscpion to transform what America eats by creating snacks from simple, nutrient-dense ingredients`,Im={about:a6,industries:["Food","Wellness","Groceries","E-commerce","Health","Fitness"],employeeCount:50,websiteUrl:"qlu.ai",headquarter:"Islamabad, Pakistan"},Os=e=>{var
|
|
34
|
+
that intent.Since 2012, I have been on a missscpion to transform what America eats by creating snacks from simple, nutrient-dense ingredients`,Im={about:a6,industries:["Food","Wellness","Groceries","E-commerce","Health","Fitness"],employeeCount:50,websiteUrl:"qlu.ai",headquarter:"Islamabad, Pakistan"},Os=e=>{var l,c;if(!e||!e.trim())return"U";const a=e.trim().split(/[^\w]+/).filter(d=>d!==""),i=(l=a[0])==null?void 0:l.charAt(0);if(a.length===1)return i.toUpperCase()??"";const o=(c=a[1])==null?void 0:c.charAt(0);return`${i??""}${o??""}`.toUpperCase()},gE=e=>{const t=e.trim();return t===""?"":t.split(/[^\w]+/).filter(i=>i!=="")[0]??""},yE={1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},sr=e=>{const t=e==null?void 0:e.split("-");return t.length>1?`${yE[t[0]]} ${t[1]}`:e};function Ns(e){return e<1e3?e:e<1e4?Math.round(e/1e3*10)/10+"K":e===1e4?"10K":"10K+"}const Bn=Intl.NumberFormat("en",{style:"currency",currency:"USD",notation:"compact"}),tl=e=>e.replace(/{{\.First_Name}}/g,"First Name ✕").replace(/{{\.Last_Name}}/g,"Last Name ✕").replace(/{{\.Full_Name}}/g,"Full Name ✕").replace(/{{\.Current_Title}}/g,"Current Title ✕").replace(/{{\.Job_Title}}/g,"Job Title ✕").replace(/{{\.My_Name}}/g,"My Name ✕").replace(/{{\.My_First_Name}}/g,"My First Name ✕").replace(/{{\.My_Full_Name}}/g,"My Full Name ✕").replace(/{{\.User_Name}}/g,"User Name ✕").replace(/{{\.School_Name}}/g,"School Name ✕").replace(/{{\.Current_Company}}/g,"Current Company ✕").replace(/{{\.Hiring_Company}}/g,"Hiring Company ✕"),r7=e=>e.replace(/My Name ✕/g,"{{.My_Name}}").replace(/My First Name ✕/g,"{{.My_First_Name}}").replace(/My Full Name ✕/g,"{{.My_Full_Name}}").replace(/First Name ✕/g,"{{.First_Name}}").replace(/Last Name ✕/g,"{{.Last_Name}}").replace(/Full Name ✕/g,"{{.Full_Name}}").replace(/Current Title ✕/g,"{{.Current_Title}}").replace(/Job Title ✕/g,"{{.Job_Title}}").replace(/User Name ✕/g,"{{.User_Name}}").replace(/School Name ✕/g,"{{.School_Name}}").replace(/Current Company ✕/g,"{{.Current_Company}}").replace(/Hiring Company ✕/g,"{{.Hiring_Company}}"),wE=(e,t,n)=>{const r=t.includes(e),a=n.includes(e);if(r&&a)return"Extracted from company and experience";if(a)return"Extracted from experience";if(r)return"Extracted from company"},xE=({industries:e,expIndustries:t})=>{const n=e.map(o=>o.toLowerCase().trim()),r=t.map(o=>o.toLowerCase().trim()),a=new Set([...n,...r]);return Array.from(a).map(o=>({source:wE(o,n,r),industry:Ts(o)}))},i6=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),bE=(e,t,n)=>{const r="Extracted from company and experience",a="Extracted from title",i="Extracted from experience",o="Extracted from company";return[...new Set([...e,...t,...n])].map(d=>{const f=e.includes(d),h=t.includes(d),m=n.includes(d.toLowerCase());let v;return f&&h?v=r:m?v=a:f?v=o:v=i,{industry:d,source:v}})},EE=({experienceIndustriesFromTitle:e,companyIndustries:t,experienceIndustries:n,filterIndustries:r})=>{const a=t.map(f=>f.trim().toLowerCase()),i=n.map(f=>f.trim().toLowerCase()),o=e.map(f=>f.trim().toLowerCase()),l=r.map(f=>f.trim().toLowerCase()),c={};return l.forEach(f=>{c[f]={industry:f,source:""}}),bE(a,i,o).forEach(({industry:f,source:h})=>{c[f]&&(c[f].source=h)}),Object.values(c).filter(({source:f})=>!!f).map(f=>({...f,industry:Ts(f.industry)}))},ms=(e,t)=>{const n=[];return t.forEach(r=>{const a=i6(r),i=new RegExp(`\\b${a}\\b`,"gi");e.match(i)&&n.push(r)}),n},Vm=(e,t)=>{if(t.length===0)return[e];const n=t.map(i6),r=new RegExp(`(${n.join("|")})`,"gi");return e.split(r)},Hm=(e,t,n)=>{if(e.length===1)return e;const r=t.map(i6),a=new RegExp(`\\b(${r.join("|")})\\b`,"i");return e.map(i=>a.test(i)?u.jsx("b",{className:n(i),children:i}):i)},AE="#373737",CE="#151217",SE="#100e11",ME="_ellipsisTextStyling_11t3s_255",FE={"orange-25":"#fffcfa","orange-50":"#fff0e8","orange-100":"#ffe0cf","orange-200":"#ffcfb5","orange-300":"#ffb58c","orange-400":"#ff9e69","orange-500":"#ff8d4e","orange-600":"#e57f46","orange-700":"#c3713e","orange-800":"#99552f","orange-900":"#66381f","orange-950":"#331c10","orange-990":"#190e08","gray-10":"#fafafa","gray-15":"#e8e8e8","gray-25":"#d5d5d5","gray-50":"#c1c1c1","gray-100":"#adadad","gray-200":"#999999","gray-300":"#868686","gray-400":"#727272","gray-500":"#5e5e5e","gray-600":"#4b4b4b","gray-700":"#373737","gray-800":"#232323","gray-850":"#1a1a1a","gray-900":"#0f0f0f","blue-50":"#ebf5ff","blue-100":"#e1effe","blue-200":"#c3ddfd","blue-300":"#a4cafe","blue-400":"#76a9fa","blue-500":"#3f83f8","blue-600":"#1c64f2","blue-700":"#1a56db","blue-800":"#1e429f","blue-900":"#233876","red-50":"#fdf2f2","red-100":"#fde8e8","red-200":"#fbd5d5","red-300":"#f8b4b4","red-400":"#f98080","red-500":"#f05252","red-600":"#e02424","red-700":"#c81e1e","red-800":"#9b1c1c","red-900":"#771d1d","red-950":"#5e2a2a","red-990":"#402c2c","twOrange-50":"#fff8f1","twOrange-100":"#feecdc","twOrange-200":"#fcd9bd","twOrange-300":"#fdba8c","twOrange-400":"#ff8a4c","twOrange-500":"#ff5a1f","twOrange-600":"#d03801","twOrange-700":"#b43403","twOrange-800":"#8a2c0d","twOrange-900":"#771d1d","yellow-50":"#fdfdea","yellow-100":"#fdf6b2","yellow-200":"#fce96a","yellow-300":"#faca15","yellow-400":"#e3a008","yellow-500":"#c27803","yellow-600":"#9f580a","yellow-700":"#8e4b10","yellow-800":"#723b13","yellow-900":"#633112","green-50":"#f3faf7","green-100":"#def7ec","green-200":"#bcf0da","green-300":"#84e1bc","green-400":"#31c48d","green-500":"#0e9f6e","green-600":"#057a55","green-700":"#046c4e","green-800":"#03543f","green-900":"#014737","teal-50":"#edfafa","teal-100":"#d5f5f6","teal-200":"#afecef","teal-300":"#7edce2","teal-400":"#16bdca","teal-500":"#0694a2","teal-600":"#047481","teal-700":"#036672","teal-800":"#05505c","teal-900":"#014451","indigo-50":"#f0f5ff","indigo-100":"#e5edff","indigo-200":"#cddbfe","indigo-300":"#b46cfc","indigo-400":"#8da2fb","indigo-500":"#6875f5","indigo-600":"#5850ec","indigo-700":"#5145cd","indigo-800":"#42389d","indigo-900":"#362f78","purple-50":"#f6f5ff","purple-100":"#edebfe","purple-200":"#dcd7fe","purple-300":"#cabffd","purple-400":"#ac94fa","purple-500":"#9061f9","purple-600":"#7e3af2","purple-700":"#6c2bd9","purple-800":"#5521b5","purple-900":"#4a1d96","pink-50":"#fdf2f8","pink-100":"#fce8f3","pink-200":"#fad1ed","pink-300":"#f8b4d9","pink-400":"#f17eb8","pink-500":"#e74694","pink-600":"#d61f69","pink-700":"#bf125d","pink-800":"#99154b","pink-900":"#751a3d",bgPlaceholder:AE,tableBgEven:CE,tableBgOdd:SE,ellipsisTextStyling:ME};var Wm={exports:{}};/*!
|
|
35
35
|
Copyright (c) 2018 Jed Watson.
|
|
36
36
|
Licensed under the MIT License (MIT), see
|
|
37
37
|
http://jedwatson.github.io/classnames
|
|
@@ -172,7 +172,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
172
172
|
box-sizing: border-box; }
|
|
173
173
|
.ReactFlagsSelect-module_filterBox__3m8EU input:focus {
|
|
174
174
|
outline: none; }
|
|
175
|
-
`,bn={flagsSelect:"ReactFlagsSelect-module_flagsSelect__2pfa2",flagsSelectInline:"ReactFlagsSelect-module_flagsSelectInline__cUnnz",selectBtn:"ReactFlagsSelect-module_selectBtn__19wW7",disabledBtn:"ReactFlagsSelect-module_disabledBtn__3A4GF",label:"ReactFlagsSelect-module_label__27pw9",secondaryLabel:"ReactFlagsSelect-module_secondaryLabel__37t1D",selectValue:"ReactFlagsSelect-module_selectValue__152eS",selectOption:"ReactFlagsSelect-module_selectOption__3pcgW",selectFlag:"ReactFlagsSelect-module_selectFlag__2q5gC",selectOptionValue:"ReactFlagsSelect-module_selectOptionValue__vS99-",selectOptionWithlabel:"ReactFlagsSelect-module_selectOptionWithlabel__2GpmM",selectOptions:"ReactFlagsSelect-module_selectOptions__3LNBJ",selectOptionsWithSearch:"ReactFlagsSelect-module_selectOptionsWithSearch__1W03w",fullWidthOptions:"ReactFlagsSelect-module_fullWidthOptions__1XeR6",alignOptionsToRight:"ReactFlagsSelect-module_alignOptionsToRight__3Qvq2",filterBox:"ReactFlagsSelect-module_filterBox__3m8EU"};zz(Lz);var jz="Select a country",Rz="Search",Dz=function(e){var t,n,r,a=e.className,i=e.selected,o=e.onSelect,l=e.selectButtonClassName,c=e.showSelectedLabel,d=c===void 0?!0:c,f=e.showSecondarySelectedLabel,h=f===void 0?!0:f,m=e.showOptionLabel,v=m===void 0?!0:m,g=e.showSecondaryOptionLabel,w=g===void 0?!0:g,x=e.selectedSize,C=x===void 0?16:x,M=e.optionsSize,A=M===void 0?16:M,F=e.customLabels,S=F===void 0?{}:F,B=e.placeholder,I=e.searchable,K=I===void 0?!1:I,Z=e.searchPlaceholder,X=e.alignOptionsToRight,te=X===void 0?!1:X,ue=e.countries,Q=e.blacklistCountries,fe=Q===void 0?!1:Q,he=e.fullWidth,ve=he===void 0?!0:he,ne=e.disabled,le=ne===void 0?!1:ne,be=e.id,G=e.rfsKey,de=G===void 0?"rfs":G,ee=W3(s.useState(!1),2),me=ee[0],ge=ee[1],ye=W3(s.useState([]),2),q=ye[0],Le=ye[1],pe=W3(s.useState([]),2),je=pe[0],Te=pe[1],Me=W3(s.useState(""),2),ce=Me[0],qe=Me[1],ct=s.useRef(null),Ve=s.useRef(null),It=s.useRef(null),wt=q.includes(i)?i:"",Lt=ce?je:q,a1=function(St){return kz[St]},Ct=function(){var St=h7(wt),Ee=a1(St);return s.createElement(Ee,null)},Yt=function(St){return S[St]||M4[St]},qt=function(){return ge(!me)},n1=function(St){qe(""),o(St)},ot=function(St){var Ee=St.target.value||"";if(qe(Ee),!Ee){Te([]);return}var Oe=q.filter(function(zt){var y1,Mt,p1=Yt(zt);return E3(p1)?nl((y1=p1)===null||y1===void 0?void 0:y1.primary,Ee)||nl((Mt=p1)===null||Mt===void 0?void 0:Mt.secondary,Ee):nl(p1,Ee)});Te(Oe)},et=function(St){St.target!==ct.current&&St.target!==Ve.current&&St.target!==It.current&&ge(!1)},Rt=function(St){St.preventDefault(),St.keyCode===27&&ge(!1)},vt=function(St,Ee){St.preventDefault(),St.keyCode===13?(n1(Ee),ge(!1)):St.keyCode===27&&ge(!1)};s.useEffect(function(){Le(ES(ue,fe))},[ue,fe]),s.useEffect(function(){return window.addEventListener("click",et),function(){window.removeEventListener("click",et)}},[]);var jt=Yt(wt),f1=de+"-btn";return s.createElement("div",{className:ho(bn.flagsSelect,a,(t={},t[bn.flagsSelectInline]=!ve,t)),id:be,"data-testid":de},s.createElement("button",{ref:ct,id:f1,type:"button",className:ho(bn.selectBtn,l,(n={},n[bn.disabledBtn]=le,n)),style:{fontSize:C},onClick:qt,onKeyUp:function(St){return Rt(St)},disabled:le,"aria-labelledby":f1,"aria-haspopup":"listbox","aria-expanded":me,"data-testid":f1},s.createElement("span",{className:bn.selectValue},wt?s.createElement(s.Fragment,null,s.createElement("span",{className:bn.selectFlag,"data-testid":de+"-selected-flag"},Ct()),d&&s.createElement("span",{className:bn.label},E3(jt)?jt.primary:jt),h&&E3(jt)&&s.createElement("span",{className:bn.secondaryLabel},jt.secondary)):s.createElement(s.Fragment,null,B||jz))),!le&&me&&s.createElement("ul",{tabIndex:-1,role:"listbox",ref:Ve,style:{fontSize:A},className:ho(bn.selectOptions,(r={},r[bn.selectOptionsWithSearch]=K,r[bn.alignOptionsToRight]=te,r[bn.fullWidthOptions]=ve,r))},K&&s.createElement("div",{className:bn.filterBox},s.createElement("input",{type:"text",name:de+"-q",autoComplete:"off",value:ce,placeholder:Z||Rz,ref:It,onChange:ot})),Lt.map(function(St){var Ee,Oe=h7(St),zt=a1(Oe),y1=Yt(St);return s.createElement("li",{key:St,id:de+"-"+St,role:"option",tabIndex:0,className:ho(bn.selectOption,(Ee={},Ee[bn.selectOptionWithlabel]=v,Ee)),onClick:function(){return n1(St)},onKeyUp:function(Mt){return vt(Mt,St)}},s.createElement("span",{className:bn.selectOptionValue},s.createElement("span",{className:bn.selectFlag},s.createElement(zt,null)),v&&s.createElement("span",{className:bn.label},E3(y1)?y1.primary:y1),w&&E3(y1)&&s.createElement("span",{className:bn.secondaryLabel},y1.secondary)))})))};const Tz=["AF","AL","DZ","AS","AD","AO","AI","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BA","BW","BR","IO","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","CO","KM","CG","CD","CK","CR","CI","HR","CU","CW","CY","CZ","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","PF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GU","GT","GG","GN","GW","HT","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KP","KR","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NZ","NI","NE","NG","NU","NF","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RO","RU","RW","KN","LC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SX","SK","SI","SB","SO","ZA","SS","ES","LK","SD","SR","SZ","SE","CH","SY","TW","TJ","TZ","TH","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UY","UZ","VU","VE","VN","VI","YE","ZM","ZW"],p7={AF:{primary:"Afghanistan",secondary:"+93"},AL:{primary:"Albania",secondary:"+355"},DZ:{primary:"Algeria",secondary:"+213"},AS:{primary:"American Samoa",secondary:"+1-684"},AD:{primary:"Andorra",secondary:"+376"},AO:{primary:"Angola",secondary:"+244"},AI:{primary:"Anguilla",secondary:"+1-264"},AG:{primary:"Antigua and Barbuda",secondary:"+1-268"},AR:{primary:"Argentina",secondary:"+54"},AM:{primary:"Armenia",secondary:"+374"},AW:{primary:"Aruba",secondary:"+297"},AU:{primary:"Australia",secondary:"+61"},AT:{primary:"Austria",secondary:"+43"},AZ:{primary:"Azerbaijan",secondary:"+994"},BS:{primary:"Bahamas",secondary:"+1-242"},BH:{primary:"Bahrain",secondary:"+973"},BD:{primary:"Bangladesh",secondary:"+880"},BB:{primary:"Barbados",secondary:"+1-246"},BY:{primary:"Belarus",secondary:"+375"},BE:{primary:"Belgium",secondary:"+32"},BZ:{primary:"Belize",secondary:"+501"},BJ:{primary:"Benin",secondary:"+229"},BM:{primary:"Bermuda",secondary:"+1-441"},BT:{primary:"Bhutan",secondary:"+975"},BO:{primary:"Bolivia, Plurinational State of",secondary:"+591"},BA:{primary:"Bosnia and Herzegovina",secondary:"+387"},BW:{primary:"Botswana",secondary:"+267"},BR:{primary:"Brazil",secondary:"+55"},IO:{primary:"British Indian Ocean Territory",secondary:"+246"},BG:{primary:"Bulgaria",secondary:"+359"},BF:{primary:"Burkina Faso",secondary:"+226"},BI:{primary:"Burundi",secondary:"+257"},KH:{primary:"Cambodia",secondary:"+855"},CM:{primary:"Cameroon",secondary:"+237"},CA:{primary:"Canada",secondary:"+1"},CV:{primary:"Cape Verde",secondary:"+238"},KY:{primary:"Cayman Islands",secondary:"+1-345"},CF:{primary:"Central African Republic",secondary:"+236"},TD:{primary:"Chad",secondary:"+235"},CL:{primary:"Chile",secondary:"+56"},CN:{primary:"China",secondary:"+86"},CO:{primary:"Colombia",secondary:"+57"},KM:{primary:"Comoros",secondary:"+269"},CG:{primary:"Congo",secondary:"+242"},CD:{primary:"Democratic Republic of the Congo",secondary:"+243"},CK:{primary:"Cook Islands",secondary:"+682"},CR:{primary:"Costa Rica",secondary:"+506"},CI:{primary:"Côte d'Ivoire",secondary:"+225"},HR:{primary:"Croatia",secondary:"+385"},CU:{primary:"Cuba",secondary:"+53"},CW:{primary:"Curaçao",secondary:"+599"},CY:{primary:"Cyprus",secondary:"+357"},CZ:{primary:"Czech Republic",secondary:"+420"},DK:{primary:"Denmark",secondary:"+45"},DJ:{primary:"Djibouti",secondary:"+253"},DM:{primary:"Dominica",secondary:"+1-767"},DO:{primary:"Dominican Republic",secondary:"+1-809, +1-829, +1-849"},EC:{primary:"Ecuador",secondary:"+593"},EG:{primary:"Egypt",secondary:"+20"},SV:{primary:"El Salvador",secondary:"+503"},GQ:{primary:"Equatorial Guinea",secondary:"+240"},ER:{primary:"Eritrea",secondary:"+291"},EE:{primary:"Estonia",secondary:"+372"},ET:{primary:"Ethiopia",secondary:"+251"},FK:{primary:"Falkland Islands (Malvinas)",secondary:"+500"},FO:{primary:"Faroe Islands",secondary:"+298"},FJ:{primary:"Fiji",secondary:"+679"},FI:{primary:"Finland",secondary:"+358"},FR:{primary:"France",secondary:"+33"},PF:{primary:"French Polynesia",secondary:"+689"},GA:{primary:"Gabon",secondary:"+241"},GM:{primary:"Gambia",secondary:"+220"},GE:{primary:"Georgia",secondary:"+995"},DE:{primary:"Germany",secondary:"+49"},GH:{primary:"Ghana",secondary:"+233"},GI:{primary:"Gibraltar",secondary:"+350"},GR:{primary:"Greece",secondary:"+30"},GL:{primary:"Greenland",secondary:"+299"},GD:{primary:"Grenada",secondary:"+1-473"},GU:{primary:"Guam",secondary:"+1-671"},GT:{primary:"Guatemala",secondary:"+502"},GG:{primary:"Guernsey",secondary:"+44-1481"},GN:{primary:"Guinea",secondary:"+224"},GW:{primary:"Guinea-Bissau",secondary:"+245"},HT:{primary:"Haiti",secondary:"+509"},HN:{primary:"Honduras",secondary:"+504"},HK:{primary:"Hong Kong",secondary:"+852"},HU:{primary:"Hungary",secondary:"+36"},IS:{primary:"Iceland",secondary:"+354"},IN:{primary:"India",secondary:"+91"},ID:{primary:"Indonesia",secondary:"+62"},IR:{primary:"Iran, Islamic Republic of",secondary:"+98"},IQ:{primary:"Iraq",secondary:"+964"},IE:{primary:"Ireland",secondary:"+353"},IM:{primary:"Isle of Man",secondary:"+44-1624"},IL:{primary:"Israel",secondary:"+972"},IT:{primary:"Italy",secondary:"+39"},JM:{primary:"Jamaica",secondary:"+1-876"},JP:{primary:"Japan",secondary:"+81"},JE:{primary:"Jersey",secondary:"+44-1534"},JO:{primary:"Jordan",secondary:"+962"},KZ:{primary:"Kazakhstan",secondary:"+7"},KE:{primary:"Kenya",secondary:"+254"},KI:{primary:"Kiribati",secondary:"+686"},KP:{primary:"North Korea",secondary:"+850"},KR:{primary:"South Korea",secondary:"+82"},KW:{primary:"Kuwait",secondary:"+965"},KG:{primary:"Kyrgyzstan",secondary:"+996"},LA:{primary:"Lao People's Democratic Republic",secondary:"+856"},LV:{primary:"Latvia",secondary:"+371"},LB:{primary:"Lebanon",secondary:"+961"},LS:{primary:"Lesotho",secondary:"+266"},LR:{primary:"Liberia",secondary:"+231"},LY:{primary:"Libya",secondary:"+218"},LI:{primary:"Liechtenstein",secondary:"+423"},LT:{primary:"Lithuania",secondary:"+370"},LU:{primary:"Luxembourg",secondary:"+352"},MO:{primary:"Macao",secondary:"+853"},MK:{primary:"Republic of Macedonia",secondary:"+389"},MG:{primary:"Madagascar",secondary:"+261"},MW:{primary:"Malawi",secondary:"+265"},MY:{primary:"Malaysia",secondary:"+60"},MV:{primary:"Maldives",secondary:"+960"},ML:{primary:"Mali",secondary:"+223"},MT:{primary:"Malta",secondary:"+356"},MH:{primary:"Marshall Islands",secondary:"+692"},MQ:{primary:"Martinique",secondary:"+596"},MR:{primary:"Mauritania",secondary:"+222"},MU:{primary:"Mauritius",secondary:"+230"},MX:{primary:"Mexico",secondary:"+52"},FM:{primary:"Micronesia, Federated States of",secondary:"+691"},MD:{primary:"Republic of Moldova",secondary:"+373"},MC:{primary:"Monaco",secondary:"+377"},MN:{primary:"Mongolia",secondary:"+976"},ME:{primary:"Montenegro",secondary:"+382"},MS:{primary:"Montserrat",secondary:"+1-664"},MA:{primary:"Morocco",secondary:"+212"},MZ:{primary:"Mozambique",secondary:"+258"},MM:{primary:"Myanmar",secondary:"+95"},NA:{primary:"Namibia",secondary:"+264"},NR:{primary:"Nauru",secondary:"+674"},NP:{primary:"Nepal",secondary:"+977"},NL:{primary:"Netherlands",secondary:"+31"},NC:{primary:"New Caledonia",secondary:"+687"},NZ:{primary:"New Zealand",secondary:"+64"},NI:{primary:"Nicaragua",secondary:"+505"},NE:{primary:"Niger",secondary:"+227"},NG:{primary:"Nigeria",secondary:"+234"},NU:{primary:"Niue",secondary:"+683"},MP:{primary:"Northern Mariana Islands",secondary:"+1-670"},NO:{primary:"Norway",secondary:"+47"},OM:{primary:"Oman",secondary:"+968"},PK:{primary:"Pakistan",secondary:"+92"},PW:{primary:"Palau",secondary:"+680"},PS:{primary:"Palestine, State of",secondary:"+970"},PA:{primary:"Panama",secondary:"+507"},PG:{primary:"Papua New Guinea",secondary:"+675"},PY:{primary:"Paraguay",secondary:"+595"},PE:{primary:"Peru",secondary:"+51"},PH:{primary:"Philippines",secondary:"+63"},PL:{primary:"Poland",secondary:"+48"},PT:{primary:"Portugal",secondary:"+351"},PR:{primary:"Puerto Rico",secondary:"+1-787, +1-939"},QA:{primary:"Qatar",secondary:"+974"},RO:{primary:"Romania",secondary:"+40"},RU:{primary:"Russian Federation",secondary:"+7"},RW:{primary:"Rwanda",secondary:"+250"},BL:{primary:"Saint Barthélemy",secondary:"+590"},SH:{primary:"Saint Helena, Ascension and Tristan da Cunha",secondary:"+290"},KN:{primary:"Saint Kitts and Nevis",secondary:"+1-869"},LC:{primary:"Saint Lucia",secondary:"+1-758"},MF:{primary:"Saint Martin (French part)",secondary:"+590"},PM:{primary:"Saint Pierre and Miquelon",secondary:"+508"},VC:{primary:"Saint Vincent and the Grenadines",secondary:"+1-784"},WS:{primary:"Samoa",secondary:"+685"},SM:{primary:"San Marino",secondary:"+378"},ST:{primary:"Sao Tome and Principe",secondary:"+239"},SA:{primary:"Saudi Arabia",secondary:"+966"},SN:{primary:"Senegal",secondary:"+221"},RS:{primary:"Serbia",secondary:"+381"},SC:{primary:"Seychelles",secondary:"+248"},SL:{primary:"Sierra Leone",secondary:"+232"},SG:{primary:"Singapore",secondary:"+65"},SX:{primary:"Sint Maarten (Dutch part)",secondary:"+1-721"},SK:{primary:"Slovakia",secondary:"+421"},SI:{primary:"Slovenia",secondary:"+386"},SB:{primary:"Solomon Islands",secondary:"+677"},SO:{primary:"Somalia",secondary:"+252"},ZA:{primary:"South Africa",secondary:"+27"},SS:{primary:"South Sudan",secondary:"+211"},ES:{primary:"Spain",secondary:"+34"},LK:{primary:"Sri Lanka",secondary:"+94"},SD:{primary:"Sudan",secondary:"+249"},SR:{primary:"Suriname",secondary:"+597"},SJ:{primary:"Svalbard and Jan Mayen",secondary:"+47"},SZ:{primary:"Swaziland",secondary:"+268"},SE:{primary:"Sweden",secondary:"+46"},CH:{primary:"Switzerland",secondary:"+41"},SY:{primary:"Syrian Arab Republic",secondary:"+963"},TW:{primary:"Taiwan, Province of China",secondary:"+886"},TJ:{primary:"Tajikistan",secondary:"+992"},TZ:{primary:"Tanzania, United Republic of",secondary:"+255"},TH:{primary:"Thailand",secondary:"+66"},TL:{primary:"Timor-Leste",secondary:"+670"},TG:{primary:"Togo",secondary:"+228"},TK:{primary:"Tokelau",secondary:"+690"},TO:{primary:"Tonga",secondary:"+676"},TT:{primary:"Trinidad and Tobago",secondary:"+1-868"},TN:{primary:"Tunisia",secondary:"+216"},TR:{primary:"Turkey",secondary:"+90"},TM:{primary:"Turkmenistan",secondary:"+993"},TC:{primary:"Turks and Caicos Islands",secondary:"+1-649"},TV:{primary:"Tuvalu",secondary:"+688"},UG:{primary:"Uganda",secondary:"+256"},UA:{primary:"Ukraine",secondary:"+380"},AE:{primary:"United Arab Emirates",secondary:"+971"},GB:{primary:"United Kingdom",secondary:"+44"},US:{primary:"United States",secondary:"+1"},UY:{primary:"Uruguay",secondary:"+598"},UZ:{primary:"Uzbekistan",secondary:"+998"},VU:{primary:"Vanuatu",secondary:"+678"},VE:{primary:"Venezuela, Bolivarian Republic of",secondary:"+58"},VN:{primary:"Viet Nam",secondary:"+84"},VG:{primary:"Virgin Islands, British",secondary:"+1-284"},VI:{primary:"Virgin Islands, U.S.",secondary:"+1-340"},WF:{primary:"Wallis and Futuna",secondary:"+681"},YE:{primary:"Yemen",secondary:"+967"},ZM:{primary:"Zambia",secondary:"+260"},ZW:{primary:"Zimbabwe",secondary:"+263"}},ov=({placeholderText:e="Enter Your Phone Number",defaultCountry:t="PK",handlePhoneChange:n=r=>{alert(r)}})=>{const[r,a]=s.useState(t),[i,o]=s.useState(""),l=d=>{if(d.target.value.length>=9){let f=p7[r].secondary;n(f+""+d.target.value)}o(d.target.value)},c=d=>{a(d)};return u.jsxs("div",{className:"number-input",children:[u.jsx(Dz,{countries:Tz,customLabels:p7,selected:r,showSelectedLabel:!1,onSelect:c,searchable:!0,fullWidth:!0,alignOptionsToRight:!0,className:"custom-country-select"}),u.jsx("input",{type:"number",placeholder:e,value:i,onChange:l,className:"custom-phone-input"})]})};const Bz=({isAdmin:e=!1,isLoading:t=!1,iconType:n="plus",onClick:r})=>e?null:t?u.jsx(hn,{height:"36",width:"36"}):u.jsx(Tr,{shape:"circular",color:"gray",variant:"tertiary",iconType:n,onClick:r,sizeVariant:"xs"}),Oz=({assigneeName:e="",assigneeMail:t="",iconType:n="plus",isLoading:r=!1,isAdmin:a=!1,onClick:i})=>u.jsxs("div",{className:`assignmentCreation ${n}`,children:[u.jsx("div",{className:"addTribeMemberCard--Initials",children:Os(e).toUpperCase()}),u.jsxs("span",{className:"addTribeMemberCard--TextAndButton",children:[u.jsxs("span",{className:"addTribeMemberCard--Details",children:[u.jsx("span",{className:"addTribeMemberCard--Name",children:u.jsx(Nn,{maxWidth:"100%",children:e})}),u.jsx("span",{className:"addTribeMemberCard--Mail",children:u.jsx(Nn,{maxWidth:"100%",children:t})}),a&&u.jsx(lv,{showIcon:!1,text:"Owner",variant:"neutral"})]}),Bz({iconType:n,isAdmin:a,isLoading:r,onClick:i})]})]});const Nz=({date:e="Sept 20",fullName:t="Raja Zain",initials:n="RZ",initialsIconSize:r="24",initialsColor:a="white",initialsBackground:i="#B4C6FC",heading:o="CEOs Fortune 500 Companies",location:l="New York, NY",showNotSpecified:c=!1,showLocation:d=!1})=>u.jsxs("span",{className:"assignment-info-subheader",children:[u.jsxs("span",{className:"header",children:[o,c&&u.jsx("span",{className:"pipeline",children:"|"}),c&&u.jsx("span",{className:"svg",children:u.jsx(Je,{iconType:"officeBuilding",iconSize:"18"})}),c&&u.jsx("span",{className:"specified",children:"Not Specfied"})]}),d&&u.jsxs("span",{className:"location",children:[u.jsx("span",{className:"svg",children:u.jsx(Je,{iconType:"location",iconSize:"18"})}),u.jsx("span",{children:l})]}),u.jsxs("span",{className:"footer",children:[u.jsx("span",{className:"svg",children:u.jsx(Je,{iconType:"calendar",iconSize:"18"})}),u.jsxs("span",{children:["Created ",e," by"]}),u.jsx("span",{className:`icon w-${r}`,style:{background:i,color:a},children:n}),u.jsx("span",{className:"name",children:t})]})]});const Pz=({notes:e,onNotesViewAllClick:t})=>u.jsx(u.Fragment,{children:u.jsxs("section",{className:"notes--container",children:[u.jsxs("div",{className:"notes-header",children:[u.jsx("span",{className:"text",children:"Notes"}),u.jsx("span",{children:u.jsx(Pn,{colorVariant:"gray",sizeVariant:"sm",text:e!=null&&e.content?"View":"Add",onClick:t})})]}),(e==null?void 0:e.content)&&u.jsxs("div",{className:"notes-body",children:[u.jsxs("div",{className:"notes-contributors",children:[e.contributors.slice(0,3).map(({name:n,iconURL:r})=>u.jsxs("span",{children:[r?u.jsx(Jn,{iconPath:r}):u.jsx("p",{className:"notes--collaborators--initials",children:Os(n)})," "]},n))," ",e.contributors.length>3&&u.jsxs("p",{children:["+ ",e.contributors.length-3," More"]})]}),u.jsx("div",{className:"notes-content",dangerouslySetInnerHTML:{__html:e.content}})]}),!(e!=null&&e.content)&&u.jsx("div",{className:"notes-body",children:u.jsx("p",{children:"No notes added"})})]})});const Iz=({iconPath:e="https://media.licdn.com/dms/image/C5603AQHn7tbH46HwRw/profile-displayphoto-shrink_100_100/0/1651460224714?e=1688601600&v=beta&t=Rp0HL0Q-b3zSydvEhWzj67pxqvi5lIRF-ZlLloVru4o",iconSize:t="88",name:n="Ethan Brown",designation:r="VP Product @ Beyond Meat",universalName:a,urn:i,recentCompany:o,location:l,onViewProfileButtonClick:c,onCompanyNameClick:d})=>u.jsx("div",{className:"profileCard",children:u.jsxs("span",{className:"body-profile-card",children:[u.jsx("span",{children:u.jsx(Jn,{iconPath:e,iconSize:t,altImageType:"profile"})}),u.jsxs("span",{className:"profile-details-section",children:[u.jsx("span",{className:"person-name",children:n}),u.jsxs("span",{className:"designation",children:[`${r} at `,u.jsx("span",{className:"companyName",onClick:()=>d(a,i),children:o})]}),u.jsx("span",{className:"location",children:l})]}),u.jsx("span",{className:"view-profile-button-istcardcolum",children:u.jsx(ro,{text:"View Full Profile",colorVariant:"orange",onClick:c,sizeVariant:"xs"})})]})});const Vz=({onCampaignClick:e})=>u.jsx("div",{className:"prospect--campaign--container",children:u.jsxs("div",{className:"header",children:[u.jsx("span",{children:"Campaigns"}),u.jsx(Pn,{colorVariant:"gray",sizeVariant:"sm",text:"View",onClick:e})]})}),Hz=({profileIconPath:e="https://media.licdn.com/dms/image/C5603AQHn7tbH46HwRw/profile-displayphoto-shrink_100_100/0/1651460224714?e=1688601600&v=beta&t=Rp0HL0Q-b3zSydvEhWzj67pxqvi5lIRF-ZlLloVru4o",profileIconSize:t="88",personName:n="Ethan Brown",personDesignation:r="VP Product @ Beyond Meat",personRecentCompany:a,companyLocation:i,onNotesViewAllClick:o,onViewProfileButtonClick:l=()=>{},universalName:c,urn:d,onCompanyNameClick:f,notes:h,campaign:m,onCampaignClick:v=()=>{}})=>u.jsxs("div",{className:"profileCard--Generic",children:[u.jsx("span",{children:u.jsx(Iz,{iconPath:e,iconSize:t,name:n,universalName:c,urn:d,onCompanyNameClick:f,designation:r,recentCompany:a,location:i,onViewProfileButtonClick:l})}),!!(m!=null&&m.id)&&u.jsx("span",{children:u.jsx(Vz,{onCampaignClick:v})}),u.jsx("span",{children:u.jsx(Pz,{notes:h,onNotesViewAllClick:o})})]});const Wz=({iconAltText:e="",institue:t="",degree:n="",from:r="",to:a=""})=>{const i=ut({educationCard:!0,[e]:!1}),o=n==null?void 0:n.trim(),l=t==null?void 0:t.trim(),c=o&&l;return u.jsxs("div",{className:i,children:[u.jsx("div",{className:"educationCard--ImagePlaceholder",children:u.jsx(x5,{width:"24",height:"24"})}),u.jsxs("span",{className:"educationCardDetails",children:[u.jsxs("p",{className:"degreeName",children:[o&&n,l&&u.jsxs("span",{className:"",children:[c?" from ":"",t]})]}),r&&u.jsx("span",{className:"date",children:`${sr(r)} - ${sr(a)}`})]})]})},sv=({educations:e=[],initialItemsToShow:t=3})=>{const[n,r]=s.useState(t),[a,i]=s.useState(`${e.length>t?e.length-t:e.length} More`);return u.jsx(u.Fragment,{children:u.jsxs("ul",{className:"education--ul--container",children:[e==null?void 0:e.slice(0,n).map((o,l)=>u.jsx("li",{className:"education-li",children:u.jsx(Wz,{iconAltText:o.iconAltText,degree:o.degree,institue:o.institue,from:o.from,to:o.to})},l)),u.jsx("li",{className:"education-more-button-li",children:e.length>t&&e.length-t>=0&&u.jsx(Pn,{colorVariant:"gray",sizeVariant:"sm",text:a,onClick:()=>{e.length===n?i(`${e.length-t} More`):i("View less"),r(e.length===n?t:e.length)}})})]})})};const Kz=({iconUrl:e="",position:t="",company:n="",from:r="",to:a="",universalName:i="",urn:o="",onExperienceCompanyClick:l,industries:c=[]})=>{const[d,f]=s.useState(!1);s.useEffect(()=>{f(!e)},[e]);const h=!!r;return u.jsxs("div",{className:"experienceCard--Assignmnet",children:[d?u.jsx("div",{className:"companyPlaceholder",children:u.jsx(Je,{iconSize:"40",iconType:"company"})}):u.jsx("img",{width:40,height:40,src:e,onError:()=>{f(!0)}}),u.jsxs("span",{className:"experienceCardDetails",children:[u.jsx("span",{className:"header",children:u.jsxs("p",{children:[u.jsx("span",{children:t}),u.jsx("span",{children:" at "}),u.jsx("span",{onClick:()=>{l(i,o)},className:"company",children:n})]})}),h&&u.jsxs("p",{className:"date",children:[sr(r)," - ",sr(a)]}),(c==null?void 0:c.length)!==0&&u.jsxs("span",{className:"skillsAndIndustries",children:[u.jsx("h2",{children:"INDUSTRIES"}),u.jsx("span",{children:c.map((m,v)=>u.jsx(aa,{highlightPill:!0,text:m},v))})]})]})]})},Uz=({experiences:e,initialItemsToShow:t,onCompanyClick:n})=>{const[r,a]=s.useState(t),[i,o]=s.useState(`${e.length>t?e.length-t:e.length} More`);return u.jsx(u.Fragment,{children:u.jsxs("ul",{className:"experience--ul--container",children:[e==null?void 0:e.slice(0,r).map((l,c)=>u.jsx("li",{className:"experience-li",children:u.jsx(Kz,{iconUrl:l.iconUrl,position:l.position,company:l.company,from:l.from,to:l.to,separator:l.separator,universalName:l.universalName,urn:l.urn,onExperienceCompanyClick:n,industries:l.industries})},c)),u.jsx("li",{className:"experience-more-button-li",children:e.length>t&&e.length-t>=0&&u.jsx(Pn,{colorVariant:"gray",sizeVariant:"sm",text:i,onClick:()=>{e.length===r?o(`${e.length-t} More`):o("View less"),a(e.length===r?t:e.length)}})})]})})};const Gz=({initialItemsToShow:e=3,experiencesList:t,educationsList:n,onExpoerienceCompanyClick:r})=>u.jsx("div",{className:"profileDetailedCard--Generic",children:u.jsxs("span",{className:"experenieceAndEducationSection",children:[u.jsxs("span",{className:"profileDetailedCard-Experience",children:[u.jsx("span",{className:"profileDetailedCard-DivisionHeading",children:"Experience"}),(t==null?void 0:t.length)===0||!t?u.jsx("div",{children:"No experiences found"}):u.jsx(Uz,{experiences:t,initialItemsToShow:e,onCompanyClick:r})]}),u.jsxs("span",{className:"profileDetailedCard-Education",children:[u.jsx("span",{className:"profileDetailedCard-DivisionHeading",children:"Education"}),(n==null?void 0:n.length)===0||!n?u.jsx("div",{children:"No record of education found"}):u.jsx(sv,{educations:n,initialItemsToShow:e})]})]})});const Yz=({profileIndex:e,publicIdentifier:t,profileIconPath:n,profileIconSize:r,personName:a,personDesignation:i,personRecentCompany:o,recentCompanyUniversalName:l,recentCompanyUrn:c,companyLocation:d,notes:f,onCheckboxSelected:h,onNotesViewAllClick:m,initialItemsToShow:v,skillsMissingList:g,skillsMatchingList:w,industryMissingList:x,industryMatchingList:C,experiencesList:M,educationsList:A,onViewDetailsClick:F=ue=>{},onCompanyClick:S,handleStarClick:B,starSelected:I=!1,checkSelected:K=!1,isStarIconShown:Z=!0,onCampaignClick:X=()=>{},campaign:te})=>{const ue=()=>{h(t)},Q=()=>{B(t)};return u.jsxs("span",{className:`assignment-ideal-profile-card--Generic ${K?"checkboxChecked":""}`,children:[u.jsxs("span",{className:"left-component-ideal-profile",children:[u.jsxs("span",{className:"profilecard-header-checkboxandstar-emoji",children:[u.jsxs("span",{className:"check-box--profilecard",children:[e&&u.jsxs("p",{children:[e,"."]}),u.jsx(n2,{checked:K,onClick:ue})]}),Z&&u.jsx("span",{className:`profilecard-header-star ${I?"":"starNotChecked"}`,children:u.jsx(Tr,{shape:"circular",iconType:"star",variant:"tertiary",color:"gray",iconSize:"20",sizeVariant:"sm",onClick:Q})})]}),u.jsx(Hz,{profileIconPath:n,profileIconSize:r,personName:a,personDesignation:i,personRecentCompany:o,companyLocation:d,universalName:l,urn:c,notes:f,onNotesViewAllClick:()=>m(t),onViewProfileButtonClick:()=>F(t),onCompanyNameClick:S,onCampaignClick:X,campaign:te})]}),u.jsx(Gz,{initialItemsToShow:v,skillsMissingList:g,skillsMatchingList:w,industryMissingList:x,industryMatchingList:C,experiencesList:M,educationsList:A,onExpoerienceCompanyClick:S})]})};const lv=({showIcon:e=!0,showIconOnLeft:t=!0,iconSize:n="18",iconType:r="excalamationCircle",text:a="Warning",isTransparent:i=!1,variant:o="warning"})=>{const l=ut({[`badgeNonClickable--${r6(o)}`]:!0,"badgeNonClickable--RowReverse":t,"badgeNonClickable--Transparent":i});return u.jsxs("div",{className:l,children:[e&&u.jsx(Je,{iconType:r,iconSize:n}),a]})};var cv={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(L2,function(){var n=Array.prototype.slice;function r(p,y){y&&(p.prototype=Object.create(y.prototype)),p.prototype.constructor=p}function a(p){return c(p)?p:qe(p)}r(i,a);function i(p){return d(p)?p:ct(p)}r(o,a);function o(p){return f(p)?p:Ve(p)}r(l,a);function l(p){return c(p)&&!h(p)?p:It(p)}function c(p){return!!(p&&p[v])}function d(p){return!!(p&&p[g])}function f(p){return!!(p&&p[w])}function h(p){return d(p)||f(p)}function m(p){return!!(p&&p[x])}a.isIterable=c,a.isKeyed=d,a.isIndexed=f,a.isAssociative=h,a.isOrdered=m,a.Keyed=i,a.Indexed=o,a.Set=l;var v="@@__IMMUTABLE_ITERABLE__@@",g="@@__IMMUTABLE_KEYED__@@",w="@@__IMMUTABLE_INDEXED__@@",x="@@__IMMUTABLE_ORDERED__@@",C="delete",M=5,A=1<<M,F=A-1,S={},B={value:!1},I={value:!1};function K(p){return p.value=!1,p}function Z(p){p&&(p.value=!0)}function X(){}function te(p,y){y=y||0;for(var z=Math.max(0,p.length-y),L=new Array(z),T=0;T<z;T++)L[T]=p[T+y];return L}function ue(p){return p.size===void 0&&(p.size=p.__iterate(fe)),p.size}function Q(p,y){if(typeof y!="number"){var z=y>>>0;if(""+z!==y||z===4294967295)return NaN;y=z}return y<0?ue(p)+y:y}function fe(){return!0}function he(p,y,z){return(p===0||z!==void 0&&p<=-z)&&(y===void 0||z!==void 0&&y>=z)}function ve(p,y){return le(p,y,0)}function ne(p,y){return le(p,y,y)}function le(p,y,z){return p===void 0?z:p<0?Math.max(0,y+p):y===void 0?p:Math.min(y,p)}var be=0,G=1,de=2,ee=typeof Symbol=="function"&&Symbol.iterator,me="@@iterator",ge=ee||me;function ye(p){this.next=p}ye.prototype.toString=function(){return"[Iterator]"},ye.KEYS=be,ye.VALUES=G,ye.ENTRIES=de,ye.prototype.inspect=ye.prototype.toSource=function(){return this.toString()},ye.prototype[ge]=function(){return this};function q(p,y,z,L){var T=p===0?y:p===1?z:[y,z];return L?L.value=T:L={value:T,done:!1},L}function Le(){return{value:void 0,done:!0}}function pe(p){return!!Me(p)}function je(p){return p&&typeof p.next=="function"}function Te(p){var y=Me(p);return y&&y.call(p)}function Me(p){var y=p&&(ee&&p[ee]||p[me]);if(typeof y=="function")return y}function ce(p){return p&&typeof p.length=="number"}r(qe,a);function qe(p){return p==null?ot():c(p)?p.toSeq():vt(p)}qe.of=function(){return qe(arguments)},qe.prototype.toSeq=function(){return this},qe.prototype.toString=function(){return this.__toString("Seq {","}")},qe.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},qe.prototype.__iterate=function(p,y){return f1(this,p,y,!0)},qe.prototype.__iterator=function(p,y){return St(this,p,y,!0)},r(ct,qe);function ct(p){return p==null?ot().toKeyedSeq():c(p)?d(p)?p.toSeq():p.fromEntrySeq():et(p)}ct.prototype.toKeyedSeq=function(){return this},r(Ve,qe);function Ve(p){return p==null?ot():c(p)?d(p)?p.entrySeq():p.toIndexedSeq():Rt(p)}Ve.of=function(){return Ve(arguments)},Ve.prototype.toIndexedSeq=function(){return this},Ve.prototype.toString=function(){return this.__toString("Seq [","]")},Ve.prototype.__iterate=function(p,y){return f1(this,p,y,!1)},Ve.prototype.__iterator=function(p,y){return St(this,p,y,!1)},r(It,qe);function It(p){return(p==null?ot():c(p)?d(p)?p.entrySeq():p:Rt(p)).toSetSeq()}It.of=function(){return It(arguments)},It.prototype.toSetSeq=function(){return this},qe.isSeq=qt,qe.Keyed=ct,qe.Set=It,qe.Indexed=Ve;var wt="@@__IMMUTABLE_SEQ__@@";qe.prototype[wt]=!0,r(Lt,Ve);function Lt(p){this._array=p,this.size=p.length}Lt.prototype.get=function(p,y){return this.has(p)?this._array[Q(this,p)]:y},Lt.prototype.__iterate=function(p,y){for(var z=this._array,L=z.length-1,T=0;T<=L;T++)if(p(z[y?L-T:T],T,this)===!1)return T+1;return T},Lt.prototype.__iterator=function(p,y){var z=this._array,L=z.length-1,T=0;return new ye(function(){return T>L?Le():q(p,T,z[y?L-T++:T++])})},r(a1,ct);function a1(p){var y=Object.keys(p);this._object=p,this._keys=y,this.size=y.length}a1.prototype.get=function(p,y){return y!==void 0&&!this.has(p)?y:this._object[p]},a1.prototype.has=function(p){return this._object.hasOwnProperty(p)},a1.prototype.__iterate=function(p,y){for(var z=this._object,L=this._keys,T=L.length-1,V=0;V<=T;V++){var H=L[y?T-V:V];if(p(z[H],H,this)===!1)return V+1}return V},a1.prototype.__iterator=function(p,y){var z=this._object,L=this._keys,T=L.length-1,V=0;return new ye(function(){var H=L[y?T-V:V];return V++>T?Le():q(p,H,z[H])})},a1.prototype[x]=!0,r(Ct,Ve);function Ct(p){this._iterable=p,this.size=p.length||p.size}Ct.prototype.__iterateUncached=function(p,y){if(y)return this.cacheResult().__iterate(p,y);var z=this._iterable,L=Te(z),T=0;if(je(L))for(var V;!(V=L.next()).done&&p(V.value,T++,this)!==!1;);return T},Ct.prototype.__iteratorUncached=function(p,y){if(y)return this.cacheResult().__iterator(p,y);var z=this._iterable,L=Te(z);if(!je(L))return new ye(Le);var T=0;return new ye(function(){var V=L.next();return V.done?V:q(p,T++,V.value)})},r(Yt,Ve);function Yt(p){this._iterator=p,this._iteratorCache=[]}Yt.prototype.__iterateUncached=function(p,y){if(y)return this.cacheResult().__iterate(p,y);for(var z=this._iterator,L=this._iteratorCache,T=0;T<L.length;)if(p(L[T],T++,this)===!1)return T;for(var V;!(V=z.next()).done;){var H=V.value;if(L[T]=H,p(H,T++,this)===!1)break}return T},Yt.prototype.__iteratorUncached=function(p,y){if(y)return this.cacheResult().__iterator(p,y);var z=this._iterator,L=this._iteratorCache,T=0;return new ye(function(){if(T>=L.length){var V=z.next();if(V.done)return V;L[T]=V.value}return q(p,T,L[T++])})};function qt(p){return!!(p&&p[wt])}var n1;function ot(){return n1||(n1=new Lt([]))}function et(p){var y=Array.isArray(p)?new Lt(p).fromEntrySeq():je(p)?new Yt(p).fromEntrySeq():pe(p)?new Ct(p).fromEntrySeq():typeof p=="object"?new a1(p):void 0;if(!y)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+p);return y}function Rt(p){var y=jt(p);if(!y)throw new TypeError("Expected Array or iterable object of values: "+p);return y}function vt(p){var y=jt(p)||typeof p=="object"&&new a1(p);if(!y)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+p);return y}function jt(p){return ce(p)?new Lt(p):je(p)?new Yt(p):pe(p)?new Ct(p):void 0}function f1(p,y,z,L){var T=p._cache;if(T){for(var V=T.length-1,H=0;H<=V;H++){var se=T[z?V-H:H];if(y(se[1],L?se[0]:H,p)===!1)return H+1}return H}return p.__iterateUncached(y,z)}function St(p,y,z,L){var T=p._cache;if(T){var V=T.length-1,H=0;return new ye(function(){var se=T[z?V-H:H];return H++>V?Le():q(y,L?se[0]:H-1,se[1])})}return p.__iteratorUncached(y,z)}function Ee(p,y){return y?Oe(y,p,"",{"":p}):zt(p)}function Oe(p,y,z,L){return Array.isArray(y)?p.call(L,z,Ve(y).map(function(T,V){return Oe(p,T,V,y)})):y1(y)?p.call(L,z,ct(y).map(function(T,V){return Oe(p,T,V,y)})):y}function zt(p){return Array.isArray(p)?Ve(p).map(zt).toList():y1(p)?ct(p).map(zt).toMap():p}function y1(p){return p&&(p.constructor===Object||p.constructor===void 0)}function Mt(p,y){if(p===y||p!==p&&y!==y)return!0;if(!p||!y)return!1;if(typeof p.valueOf=="function"&&typeof y.valueOf=="function"){if(p=p.valueOf(),y=y.valueOf(),p===y||p!==p&&y!==y)return!0;if(!p||!y)return!1}return!!(typeof p.equals=="function"&&typeof y.equals=="function"&&p.equals(y))}function p1(p,y){if(p===y)return!0;if(!c(y)||p.size!==void 0&&y.size!==void 0&&p.size!==y.size||p.__hash!==void 0&&y.__hash!==void 0&&p.__hash!==y.__hash||d(p)!==d(y)||f(p)!==f(y)||m(p)!==m(y))return!1;if(p.size===0&&y.size===0)return!0;var z=!h(p);if(m(p)){var L=p.entries();return y.every(function(xe,Ae){var ze=L.next().value;return ze&&Mt(ze[1],xe)&&(z||Mt(ze[0],Ae))})&&L.next().done}var T=!1;if(p.size===void 0)if(y.size===void 0)typeof p.cacheResult=="function"&&p.cacheResult();else{T=!0;var V=p;p=y,y=V}var H=!0,se=y.__iterate(function(xe,Ae){if(z?!p.has(xe):T?!Mt(xe,p.get(Ae,S)):!Mt(p.get(Ae,S),xe))return H=!1,!1});return H&&p.size===se}r(l1,Ve);function l1(p,y){if(!(this instanceof l1))return new l1(p,y);if(this._value=p,this.size=y===void 0?1/0:Math.max(0,y),this.size===0){if(gn)return gn;gn=this}}l1.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},l1.prototype.get=function(p,y){return this.has(p)?this._value:y},l1.prototype.includes=function(p){return Mt(this._value,p)},l1.prototype.slice=function(p,y){var z=this.size;return he(p,y,z)?this:new l1(this._value,ne(y,z)-ve(p,z))},l1.prototype.reverse=function(){return this},l1.prototype.indexOf=function(p){return Mt(this._value,p)?0:-1},l1.prototype.lastIndexOf=function(p){return Mt(this._value,p)?this.size:-1},l1.prototype.__iterate=function(p,y){for(var z=0;z<this.size;z++)if(p(this._value,z,this)===!1)return z+1;return z},l1.prototype.__iterator=function(p,y){var z=this,L=0;return new ye(function(){return L<z.size?q(p,L++,z._value):Le()})},l1.prototype.equals=function(p){return p instanceof l1?Mt(this._value,p._value):p1(p)};var gn;function yn(p,y){if(!p)throw new Error(y)}r(I1,Ve);function I1(p,y,z){if(!(this instanceof I1))return new I1(p,y,z);if(yn(z!==0,"Cannot step a Range by 0"),p=p||0,y===void 0&&(y=1/0),z=z===void 0?1:Math.abs(z),y<p&&(z=-z),this._start=p,this._end=y,this._step=z,this.size=Math.max(0,Math.ceil((y-p)/z-1)+1),this.size===0){if(fr)return fr;fr=this}}I1.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},I1.prototype.get=function(p,y){return this.has(p)?this._start+Q(this,p)*this._step:y},I1.prototype.includes=function(p){var y=(p-this._start)/this._step;return y>=0&&y<this.size&&y===Math.floor(y)},I1.prototype.slice=function(p,y){return he(p,y,this.size)?this:(p=ve(p,this.size),y=ne(y,this.size),y<=p?new I1(0,0):new I1(this.get(p,this._end),this.get(y,this._end),this._step))},I1.prototype.indexOf=function(p){var y=p-this._start;if(y%this._step===0){var z=y/this._step;if(z>=0&&z<this.size)return z}return-1},I1.prototype.lastIndexOf=function(p){return this.indexOf(p)},I1.prototype.__iterate=function(p,y){for(var z=this.size-1,L=this._step,T=y?this._start+z*L:this._start,V=0;V<=z;V++){if(p(T,V,this)===!1)return V+1;T+=y?-L:L}return V},I1.prototype.__iterator=function(p,y){var z=this.size-1,L=this._step,T=y?this._start+z*L:this._start,V=0;return new ye(function(){var H=T;return T+=y?-L:L,V>z?Le():q(p,V++,H)})},I1.prototype.equals=function(p){return p instanceof I1?this._start===p._start&&this._end===p._end&&this._step===p._step:p1(this,p)};var fr;r(Y1,a);function Y1(){throw TypeError("Abstract")}r(wn,Y1);function wn(){}r(mn,Y1);function mn(){}r(jn,Y1);function jn(){}Y1.Keyed=wn,Y1.Indexed=mn,Y1.Set=jn;var Xn=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(y,z){y=y|0,z=z|0;var L=y&65535,T=z&65535;return L*T+((y>>>16)*T+L*(z>>>16)<<16>>>0)|0};function Qn(p){return p>>>1&1073741824|p&3221225471}function ln(p){if(p===!1||p===null||p===void 0||typeof p.valueOf=="function"&&(p=p.valueOf(),p===!1||p===null||p===void 0))return 0;if(p===!0)return 1;var y=typeof p;if(y==="number"){var z=p|0;for(z!==p&&(z^=p*4294967295);p>4294967295;)p/=4294967295,z^=p;return Qn(z)}if(y==="string")return p.length>cn?va(p):o2(p);if(typeof p.hashCode=="function")return p.hashCode();if(y==="object")return oe(p);if(typeof p.toString=="function")return o2(p.toString());throw new Error("Value type "+y+" cannot be hashed.")}function va(p){var y=Sn[p];return y===void 0&&(y=o2(p),B1===K1&&(B1=0,Sn={}),B1++,Sn[p]=y),y}function o2(p){for(var y=0,z=0;z<p.length;z++)y=31*y+p.charCodeAt(z)|0;return Qn(y)}function oe(p){var y;if(v1&&(y=w1.get(p),y!==void 0)||(y=p[Jt],y!==void 0)||!st&&(y=p.propertyIsEnumerable&&p.propertyIsEnumerable[Jt],y!==void 0||(y=Kt(p),y!==void 0)))return y;if(y=++i1,i1&1073741824&&(i1=0),v1)w1.set(p,y);else{if(Ie!==void 0&&Ie(p)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(st)Object.defineProperty(p,Jt,{enumerable:!1,configurable:!1,writable:!1,value:y});else if(p.propertyIsEnumerable!==void 0&&p.propertyIsEnumerable===p.constructor.prototype.propertyIsEnumerable)p.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},p.propertyIsEnumerable[Jt]=y;else if(p.nodeType!==void 0)p[Jt]=y;else throw new Error("Unable to set a non-enumerable property on object.")}return y}var Ie=Object.isExtensible,st=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function Kt(p){if(p&&p.nodeType>0)switch(p.nodeType){case 1:return p.uniqueID;case 9:return p.documentElement&&p.documentElement.uniqueID}}var v1=typeof WeakMap=="function",w1;v1&&(w1=new WeakMap);var i1=0,Jt="__immutablehash__";typeof Symbol=="function"&&(Jt=Symbol(Jt));var cn=16,K1=255,B1=0,Sn={};function J1(p){yn(p!==1/0,"Cannot perform this action with an infinite size.")}r(c1,wn);function c1(p){return p==null?$n():un(p)&&!m(p)?p:$n().withMutations(function(y){var z=i(p);J1(z.size),z.forEach(function(L,T){return y.set(T,L)})})}c1.prototype.toString=function(){return this.__toString("Map {","}")},c1.prototype.get=function(p,y){return this._root?this._root.get(0,void 0,p,y):y},c1.prototype.set=function(p,y){return p0(this,p,y)},c1.prototype.setIn=function(p,y){return this.updateIn(p,S,function(){return y})},c1.prototype.remove=function(p){return p0(this,p,S)},c1.prototype.deleteIn=function(p){return this.updateIn(p,function(){return S})},c1.prototype.update=function(p,y,z){return arguments.length===1?p(this):this.updateIn([p],y,z)},c1.prototype.updateIn=function(p,y,z){z||(z=y,y=void 0);var L=ya(this,Ze(p),y,z);return L===S?void 0:L},c1.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):$n()},c1.prototype.merge=function(){return ga(this,void 0,arguments)},c1.prototype.mergeWith=function(p){var y=n.call(arguments,1);return ga(this,p,y)},c1.prototype.mergeIn=function(p){var y=n.call(arguments,1);return this.updateIn(p,$n(),function(z){return typeof z.merge=="function"?z.merge.apply(z,y):y[y.length-1]})},c1.prototype.mergeDeep=function(){return ga(this,y0,arguments)},c1.prototype.mergeDeepWith=function(p){var y=n.call(arguments,1);return ga(this,w0(p),y)},c1.prototype.mergeDeepIn=function(p){var y=n.call(arguments,1);return this.updateIn(p,$n(),function(z){return typeof z.mergeDeep=="function"?z.mergeDeep.apply(z,y):y[y.length-1]})},c1.prototype.sort=function(p){return U1(Re(this,p))},c1.prototype.sortBy=function(p,y){return U1(Re(this,y,p))},c1.prototype.withMutations=function(p){var y=this.asMutable();return p(y),y.wasAltered()?y.__ensureOwner(this.__ownerID):this},c1.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new X)},c1.prototype.asImmutable=function(){return this.__ensureOwner()},c1.prototype.wasAltered=function(){return this.__altered},c1.prototype.__iterator=function(p,y){return new W2(this,p,y)},c1.prototype.__iterate=function(p,y){var z=this,L=0;return this._root&&this._root.iterate(function(T){return L++,p(T[1],T[0],z)},y),L},c1.prototype.__ensureOwner=function(p){return p===this.__ownerID?this:p?K2(this.size,this._root,p,this.__hash):(this.__ownerID=p,this.__altered=!1,this)};function un(p){return!!(p&&p[li])}c1.isMap=un;var li="@@__IMMUTABLE_MAP__@@",h1=c1.prototype;h1[li]=!0,h1[C]=h1.remove,h1.removeIn=h1.deleteIn;function s2(p,y){this.ownerID=p,this.entries=y}s2.prototype.get=function(p,y,z,L){for(var T=this.entries,V=0,H=T.length;V<H;V++)if(Mt(z,T[V][0]))return T[V][1];return L},s2.prototype.update=function(p,y,z,L,T,V,H){for(var se=T===S,xe=this.entries,Ae=0,ze=xe.length;Ae<ze&&!Mt(L,xe[Ae][0]);Ae++);var rt=Ae<ze;if(rt?xe[Ae][1]===T:se)return this;if(Z(H),(se||!rt)&&Z(V),!(se&&xe.length===1)){if(!rt&&!se&&xe.length>=x3)return v0(p,xe,L,T);var nt=p&&p===this.ownerID,Zt=nt?xe:te(xe);return rt?se?Ae===ze-1?Zt.pop():Zt[Ae]=Zt.pop():Zt[Ae]=[L,T]:Zt.push([L,T]),nt?(this.entries=Zt,this):new s2(p,Zt)}};function l2(p,y,z){this.ownerID=p,this.bitmap=y,this.nodes=z}l2.prototype.get=function(p,y,z,L){y===void 0&&(y=ln(z));var T=1<<((p===0?y:y>>>p)&F),V=this.bitmap;return V&T?this.nodes[u2(V&T-1)].get(p+M,y,z,L):L},l2.prototype.update=function(p,y,z,L,T,V,H){z===void 0&&(z=ln(L));var se=(y===0?z:z>>>y)&F,xe=1<<se,Ae=this.bitmap,ze=(Ae&xe)!==0;if(!ze&&T===S)return this;var rt=u2(Ae&xe-1),nt=this.nodes,Zt=ze?nt[rt]:void 0,e1=di(Zt,p,y+M,z,L,T,V,H);if(e1===Zt)return this;if(!ze&&e1&&nt.length>=b0)return y3(p,nt,Ae,se,e1);if(ze&&!e1&&nt.length===2&&m0(nt[rt^1]))return nt[rt^1];if(ze&&e1&&nt.length===1&&m0(e1))return e1;var t1=p&&p===this.ownerID,Vn=ze?e1?Ae:Ae^xe:Ae|xe,Rn=ze?e1?pi(nt,rt,e1,t1):x0(nt,rt,t1):w3(nt,rt,e1,t1);return t1?(this.bitmap=Vn,this.nodes=Rn,this):new l2(p,Vn,Rn)};function H2(p,y,z){this.ownerID=p,this.count=y,this.nodes=z}H2.prototype.get=function(p,y,z,L){y===void 0&&(y=ln(z));var T=(p===0?y:y>>>p)&F,V=this.nodes[T];return V?V.get(p+M,y,z,L):L},H2.prototype.update=function(p,y,z,L,T,V,H){z===void 0&&(z=ln(L));var se=(y===0?z:z>>>y)&F,xe=T===S,Ae=this.nodes,ze=Ae[se];if(xe&&!ze)return this;var rt=di(ze,p,y+M,z,L,T,V,H);if(rt===ze)return this;var nt=this.count;if(!ze)nt++;else if(!rt&&(nt--,nt<E0))return g0(p,Ae,nt,se);var Zt=p&&p===this.ownerID,e1=pi(Ae,se,rt,Zt);return Zt?(this.count=nt,this.nodes=e1,this):new H2(p,nt,e1)};function c2(p,y,z){this.ownerID=p,this.keyHash=y,this.entries=z}c2.prototype.get=function(p,y,z,L){for(var T=this.entries,V=0,H=T.length;V<H;V++)if(Mt(z,T[V][0]))return T[V][1];return L},c2.prototype.update=function(p,y,z,L,T,V,H){z===void 0&&(z=ln(L));var se=T===S;if(z!==this.keyHash)return se?this:(Z(H),Z(V),fi(this,p,y,z,[L,T]));for(var xe=this.entries,Ae=0,ze=xe.length;Ae<ze&&!Mt(L,xe[Ae][0]);Ae++);var rt=Ae<ze;if(rt?xe[Ae][1]===T:se)return this;if(Z(H),(se||!rt)&&Z(V),se&&ze===2)return new _n(p,this.keyHash,xe[Ae^1]);var nt=p&&p===this.ownerID,Zt=nt?xe:te(xe);return rt?se?Ae===ze-1?Zt.pop():Zt[Ae]=Zt.pop():Zt[Ae]=[L,T]:Zt.push([L,T]),nt?(this.entries=Zt,this):new c2(p,this.keyHash,Zt)};function _n(p,y,z){this.ownerID=p,this.keyHash=y,this.entry=z}_n.prototype.get=function(p,y,z,L){return Mt(z,this.entry[0])?this.entry[1]:L},_n.prototype.update=function(p,y,z,L,T,V,H){var se=T===S,xe=Mt(L,this.entry[0]);if(xe?T===this.entry[1]:se)return this;if(Z(H),se){Z(V);return}return xe?p&&p===this.ownerID?(this.entry[1]=T,this):new _n(p,this.keyHash,[L,T]):(Z(V),fi(this,p,y,ln(L),[L,T]))},s2.prototype.iterate=c2.prototype.iterate=function(p,y){for(var z=this.entries,L=0,T=z.length-1;L<=T;L++)if(p(z[y?T-L:L])===!1)return!1},l2.prototype.iterate=H2.prototype.iterate=function(p,y){for(var z=this.nodes,L=0,T=z.length-1;L<=T;L++){var V=z[y?T-L:L];if(V&&V.iterate(p,y)===!1)return!1}},_n.prototype.iterate=function(p,y){return p(this.entry)},r(W2,ye);function W2(p,y,z){this._type=y,this._reverse=z,this._stack=p._root&&h0(p._root)}W2.prototype.next=function(){for(var p=this._type,y=this._stack;y;){var z=y.node,L=y.index++,T;if(z.entry){if(L===0)return ci(p,z.entry)}else if(z.entries){if(T=z.entries.length-1,L<=T)return ci(p,z.entries[this._reverse?T-L:L])}else if(T=z.nodes.length-1,L<=T){var V=z.nodes[this._reverse?T-L:L];if(V){if(V.entry)return ci(p,V.entry);y=this._stack=h0(V,y)}continue}y=this._stack=this._stack.__prev}return Le()};function ci(p,y){return q(p,y[0],y[1])}function h0(p,y){return{node:p,index:0,__prev:y}}function K2(p,y,z,L){var T=Object.create(h1);return T.size=p,T._root=y,T.__ownerID=z,T.__hash=L,T.__altered=!1,T}var ui;function $n(){return ui||(ui=K2(0))}function p0(p,y,z){var L,T;if(p._root){var V=K(B),H=K(I);if(L=di(p._root,p.__ownerID,0,void 0,y,z,V,H),!H.value)return p;T=p.size+(V.value?z===S?-1:1:0)}else{if(z===S)return p;T=1,L=new s2(p.__ownerID,[[y,z]])}return p.__ownerID?(p.size=T,p._root=L,p.__hash=void 0,p.__altered=!0,p):L?K2(T,L):$n()}function di(p,y,z,L,T,V,H,se){return p?p.update(y,z,L,T,V,H,se):V===S?p:(Z(se),Z(H),new _n(y,L,[T,V]))}function m0(p){return p.constructor===_n||p.constructor===c2}function fi(p,y,z,L,T){if(p.keyHash===L)return new c2(y,L,[p.entry,T]);var V=(z===0?p.keyHash:p.keyHash>>>z)&F,H=(z===0?L:L>>>z)&F,se,xe=V===H?[fi(p,y,z+M,L,T)]:(se=new _n(y,L,T),V<H?[p,se]:[se,p]);return new l2(y,1<<V|1<<H,xe)}function v0(p,y,z,L){p||(p=new X);for(var T=new _n(p,ln(z),[z,L]),V=0;V<y.length;V++){var H=y[V];T=T.update(p,0,void 0,H[0],H[1])}return T}function g0(p,y,z,L){for(var T=0,V=0,H=new Array(z),se=0,xe=1,Ae=y.length;se<Ae;se++,xe<<=1){var ze=y[se];ze!==void 0&&se!==L&&(T|=xe,H[V++]=ze)}return new l2(p,T,H)}function y3(p,y,z,L,T){for(var V=0,H=new Array(A),se=0;z!==0;se++,z>>>=1)H[se]=z&1?y[V++]:void 0;return H[L]=T,new H2(p,V+1,H)}function ga(p,y,z){for(var L=[],T=0;T<z.length;T++){var V=z[T],H=i(V);c(V)||(H=H.map(function(se){return Ee(se)})),L.push(H)}return hi(p,y,L)}function y0(p,y,z){return p&&p.mergeDeep&&c(y)?p.mergeDeep(y):Mt(p,y)?p:y}function w0(p){return function(y,z,L){if(y&&y.mergeDeepWith&&c(z))return y.mergeDeepWith(p,z);var T=p(y,z,L);return Mt(y,T)?y:T}}function hi(p,y,z){return z=z.filter(function(L){return L.size!==0}),z.length===0?p:p.size===0&&!p.__ownerID&&z.length===1?p.constructor(z[0]):p.withMutations(function(L){for(var T=y?function(H,se){L.update(se,S,function(xe){return xe===S?H:y(xe,H,se)})}:function(H,se){L.set(se,H)},V=0;V<z.length;V++)z[V].forEach(T)})}function ya(p,y,z,L){var T=p===S,V=y.next();if(V.done){var H=T?z:p,se=L(H);return se===H?p:se}yn(T||p&&p.set,"invalid keyPath");var xe=V.value,Ae=T?S:p.get(xe,S),ze=ya(Ae,y,z,L);return ze===Ae?p:ze===S?p.remove(xe):(T?$n():p).set(xe,ze)}function u2(p){return p=p-(p>>1&1431655765),p=(p&858993459)+(p>>2&858993459),p=p+(p>>4)&252645135,p=p+(p>>8),p=p+(p>>16),p&127}function pi(p,y,z,L){var T=L?p:te(p);return T[y]=z,T}function w3(p,y,z,L){var T=p.length+1;if(L&&y+1===T)return p[y]=z,p;for(var V=new Array(T),H=0,se=0;se<T;se++)se===y?(V[se]=z,H=-1):V[se]=p[se+H];return V}function x0(p,y,z){var L=p.length-1;if(z&&y===L)return p.pop(),p;for(var T=new Array(L),V=0,H=0;H<L;H++)H===y&&(V=1),T[H]=p[H+V];return T}var x3=A/4,b0=A/2,E0=A/4;r(F1,mn);function F1(p){var y=yi();if(p==null)return y;if(A0(p))return p;var z=o(p),L=z.size;return L===0?y:(J1(L),L>0&&L<A?U2(0,L,M,null,new hr(z.toArray())):y.withMutations(function(T){T.setSize(L),z.forEach(function(V,H){return T.set(H,V)})}))}F1.of=function(){return this(arguments)},F1.prototype.toString=function(){return this.__toString("List [","]")},F1.prototype.get=function(p,y){if(p=Q(this,p),p>=0&&p<this.size){p+=this._origin;var z=wa(this,p);return z&&z.array[p&F]}return y},F1.prototype.set=function(p,y){return b3(this,p,y)},F1.prototype.remove=function(p){return this.has(p)?p===0?this.shift():p===this.size-1?this.pop():this.splice(p,1):this},F1.prototype.insert=function(p,y){return this.splice(p,0,y)},F1.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=M,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):yi()},F1.prototype.push=function(){var p=arguments,y=this.size;return this.withMutations(function(z){pr(z,0,y+p.length);for(var L=0;L<p.length;L++)z.set(y+L,p[L])})},F1.prototype.pop=function(){return pr(this,0,-1)},F1.prototype.unshift=function(){var p=arguments;return this.withMutations(function(y){pr(y,-p.length);for(var z=0;z<p.length;z++)y.set(z,p[z])})},F1.prototype.shift=function(){return pr(this,1)},F1.prototype.merge=function(){return Wr(this,void 0,arguments)},F1.prototype.mergeWith=function(p){var y=n.call(arguments,1);return Wr(this,p,y)},F1.prototype.mergeDeep=function(){return Wr(this,y0,arguments)},F1.prototype.mergeDeepWith=function(p){var y=n.call(arguments,1);return Wr(this,w0(p),y)},F1.prototype.setSize=function(p){return pr(this,0,p)},F1.prototype.slice=function(p,y){var z=this.size;return he(p,y,z)?this:pr(this,ve(p,z),ne(y,z))},F1.prototype.__iterator=function(p,y){var z=0,L=vi(this,y);return new ye(function(){var T=L();return T===d2?Le():q(p,z++,T)})},F1.prototype.__iterate=function(p,y){for(var z=0,L=vi(this,y),T;(T=L())!==d2&&p(T,z++,this)!==!1;);return z},F1.prototype.__ensureOwner=function(p){return p===this.__ownerID?this:p?U2(this._origin,this._capacity,this._level,this._root,this._tail,p,this.__hash):(this.__ownerID=p,this)};function A0(p){return!!(p&&p[mi])}F1.isList=A0;var mi="@@__IMMUTABLE_LIST__@@",xn=F1.prototype;xn[mi]=!0,xn[C]=xn.remove,xn.setIn=h1.setIn,xn.deleteIn=xn.removeIn=h1.removeIn,xn.update=h1.update,xn.updateIn=h1.updateIn,xn.mergeIn=h1.mergeIn,xn.mergeDeepIn=h1.mergeDeepIn,xn.withMutations=h1.withMutations,xn.asMutable=h1.asMutable,xn.asImmutable=h1.asImmutable,xn.wasAltered=h1.wasAltered;function hr(p,y){this.array=p,this.ownerID=y}hr.prototype.removeBefore=function(p,y,z){if(z===y?1<<y:this.array.length===0)return this;var L=z>>>y&F;if(L>=this.array.length)return new hr([],p);var T=L===0,V;if(y>0){var H=this.array[L];if(V=H&&H.removeBefore(p,y-M,z),V===H&&T)return this}if(T&&!V)return this;var se=f2(this,p);if(!T)for(var xe=0;xe<L;xe++)se.array[xe]=void 0;return V&&(se.array[L]=V),se},hr.prototype.removeAfter=function(p,y,z){if(z===(y?1<<y:0)||this.array.length===0)return this;var L=z-1>>>y&F;if(L>=this.array.length)return this;var T;if(y>0){var V=this.array[L];if(T=V&&V.removeAfter(p,y-M,z),T===V&&L===this.array.length-1)return this}var H=f2(this,p);return H.array.splice(L+1),T&&(H.array[L]=T),H};var d2={};function vi(p,y){var z=p._origin,L=p._capacity,T=Kr(L),V=p._tail;return H(p._root,p._level,0);function H(Ae,ze,rt){return ze===0?se(Ae,rt):xe(Ae,ze,rt)}function se(Ae,ze){var rt=ze===T?V&&V.array:Ae&&Ae.array,nt=ze>z?0:z-ze,Zt=L-ze;return Zt>A&&(Zt=A),function(){if(nt===Zt)return d2;var e1=y?--Zt:nt++;return rt&&rt[e1]}}function xe(Ae,ze,rt){var nt,Zt=Ae&&Ae.array,e1=rt>z?0:z-rt>>ze,t1=(L-rt>>ze)+1;return t1>A&&(t1=A),function(){do{if(nt){var Vn=nt();if(Vn!==d2)return Vn;nt=null}if(e1===t1)return d2;var Rn=y?--t1:e1++;nt=H(Zt&&Zt[Rn],ze-M,rt+(Rn<<ze))}while(!0)}}}function U2(p,y,z,L,T,V,H){var se=Object.create(xn);return se.size=y-p,se._origin=p,se._capacity=y,se._level=z,se._root=L,se._tail=T,se.__ownerID=V,se.__hash=H,se.__altered=!1,se}var gi;function yi(){return gi||(gi=U2(0,0,M))}function b3(p,y,z){if(y=Q(p,y),y!==y)return p;if(y>=p.size||y<0)return p.withMutations(function(H){y<0?pr(H,y).set(0,z):pr(H,0,y+1).set(y,z)});y+=p._origin;var L=p._tail,T=p._root,V=K(I);return y>=Kr(p._capacity)?L=wi(L,p.__ownerID,0,y,z,V):T=wi(T,p.__ownerID,p._level,y,z,V),V.value?p.__ownerID?(p._root=T,p._tail=L,p.__hash=void 0,p.__altered=!0,p):U2(p._origin,p._capacity,p._level,T,L):p}function wi(p,y,z,L,T,V){var H=L>>>z&F,se=p&&H<p.array.length;if(!se&&T===void 0)return p;var xe;if(z>0){var Ae=p&&p.array[H],ze=wi(Ae,y,z-M,L,T,V);return ze===Ae?p:(xe=f2(p,y),xe.array[H]=ze,xe)}return se&&p.array[H]===T?p:(Z(V),xe=f2(p,y),T===void 0&&H===xe.array.length-1?xe.array.pop():xe.array[H]=T,xe)}function f2(p,y){return y&&p&&y===p.ownerID?p:new hr(p?p.array.slice():[],y)}function wa(p,y){if(y>=Kr(p._capacity))return p._tail;if(y<1<<p._level+M){for(var z=p._root,L=p._level;z&&L>0;)z=z.array[y>>>L&F],L-=M;return z}}function pr(p,y,z){y!==void 0&&(y=y|0),z!==void 0&&(z=z|0);var L=p.__ownerID||new X,T=p._origin,V=p._capacity,H=T+y,se=z===void 0?V:z<0?V+z:T+z;if(H===T&&se===V)return p;if(H>=se)return p.clear();for(var xe=p._level,Ae=p._root,ze=0;H+ze<0;)Ae=new hr(Ae&&Ae.array.length?[void 0,Ae]:[],L),xe+=M,ze+=1<<xe;ze&&(H+=ze,T+=ze,se+=ze,V+=ze);for(var rt=Kr(V),nt=Kr(se);nt>=1<<xe+M;)Ae=new hr(Ae&&Ae.array.length?[Ae]:[],L),xe+=M;var Zt=p._tail,e1=nt<rt?wa(p,se-1):nt>rt?new hr([],L):Zt;if(Zt&&nt>rt&&H<V&&Zt.array.length){Ae=f2(Ae,L);for(var t1=Ae,Vn=xe;Vn>M;Vn-=M){var Rn=rt>>>Vn&F;t1=t1.array[Rn]=f2(t1.array[Rn],L)}t1.array[rt>>>M&F]=Zt}if(se<V&&(e1=e1&&e1.removeAfter(L,0,se)),H>=nt)H-=nt,se-=nt,xe=M,Ae=null,e1=e1&&e1.removeBefore(L,0,H);else if(H>T||nt<rt){for(ze=0;Ae;){var Ea=H>>>xe&F;if(Ea!==nt>>>xe&F)break;Ea&&(ze+=(1<<xe)*Ea),xe-=M,Ae=Ae.array[Ea]}Ae&&H>T&&(Ae=Ae.removeBefore(L,xe,H-ze)),Ae&&nt<rt&&(Ae=Ae.removeAfter(L,xe,nt-ze)),ze&&(H-=ze,se-=ze)}return p.__ownerID?(p.size=se-H,p._origin=H,p._capacity=se,p._level=xe,p._root=Ae,p._tail=e1,p.__hash=void 0,p.__altered=!0,p):U2(H,se,xe,Ae,e1)}function Wr(p,y,z){for(var L=[],T=0,V=0;V<z.length;V++){var H=z[V],se=o(H);se.size>T&&(T=se.size),c(H)||(se=se.map(function(xe){return Ee(xe)})),L.push(se)}return T>p.size&&(p=p.setSize(T)),hi(p,y,L)}function Kr(p){return p<A?0:p-1>>>M<<M}r(U1,c1);function U1(p){return p==null?h2():xi(p)?p:h2().withMutations(function(y){var z=i(p);J1(z.size),z.forEach(function(L,T){return y.set(T,L)})})}U1.of=function(){return this(arguments)},U1.prototype.toString=function(){return this.__toString("OrderedMap {","}")},U1.prototype.get=function(p,y){var z=this._map.get(p);return z!==void 0?this._list.get(z)[1]:y},U1.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):h2()},U1.prototype.set=function(p,y){return S0(this,p,y)},U1.prototype.remove=function(p){return S0(this,p,S)},U1.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},U1.prototype.__iterate=function(p,y){var z=this;return this._list.__iterate(function(L){return L&&p(L[1],L[0],z)},y)},U1.prototype.__iterator=function(p,y){return this._list.fromEntrySeq().__iterator(p,y)},U1.prototype.__ensureOwner=function(p){if(p===this.__ownerID)return this;var y=this._map.__ensureOwner(p),z=this._list.__ensureOwner(p);return p?G2(y,z,p,this.__hash):(this.__ownerID=p,this._map=y,this._list=z,this)};function xi(p){return un(p)&&m(p)}U1.isOrderedMap=xi,U1.prototype[x]=!0,U1.prototype[C]=U1.prototype.remove;function G2(p,y,z,L){var T=Object.create(U1.prototype);return T.size=p?p.size:0,T._map=p,T._list=y,T.__ownerID=z,T.__hash=L,T}var C0;function h2(){return C0||(C0=G2($n(),yi()))}function S0(p,y,z){var L=p._map,T=p._list,V=L.get(y),H=V!==void 0,se,xe;if(z===S){if(!H)return p;T.size>=A&&T.size>=L.size*2?(xe=T.filter(function(Ae,ze){return Ae!==void 0&&V!==ze}),se=xe.toKeyedSeq().map(function(Ae){return Ae[0]}).flip().toMap(),p.__ownerID&&(se.__ownerID=xe.__ownerID=p.__ownerID)):(se=L.remove(y),xe=V===T.size-1?T.pop():T.set(V,void 0))}else if(H){if(z===T.get(V)[1])return p;se=L,xe=T.set(V,[y,z])}else se=L.set(y,T.size),xe=T.set(T.size,[y,z]);return p.__ownerID?(p.size=se.size,p._map=se,p._list=xe,p.__hash=void 0,p):G2(se,xe)}r(In,ct);function In(p,y){this._iter=p,this._useKeys=y,this.size=p.size}In.prototype.get=function(p,y){return this._iter.get(p,y)},In.prototype.has=function(p){return this._iter.has(p)},In.prototype.valueSeq=function(){return this._iter.valueSeq()},In.prototype.reverse=function(){var p=this,y=xa(this,!0);return this._useKeys||(y.valueSeq=function(){return p._iter.toSeq().reverse()}),y},In.prototype.map=function(p,y){var z=this,L=Ei(this,p,y);return this._useKeys||(L.valueSeq=function(){return z._iter.toSeq().map(p,y)}),L},In.prototype.__iterate=function(p,y){var z=this,L;return this._iter.__iterate(this._useKeys?function(T,V){return p(T,V,z)}:(L=y?tt(this):0,function(T){return p(T,y?--L:L++,z)}),y)},In.prototype.__iterator=function(p,y){if(this._useKeys)return this._iter.__iterator(p,y);var z=this._iter.__iterator(G,y),L=y?tt(this):0;return new ye(function(){var T=z.next();return T.done?T:q(p,y?--L:L++,T.value,T)})},In.prototype[x]=!0,r(p2,Ve);function p2(p){this._iter=p,this.size=p.size}p2.prototype.includes=function(p){return this._iter.includes(p)},p2.prototype.__iterate=function(p,y){var z=this,L=0;return this._iter.__iterate(function(T){return p(T,L++,z)},y)},p2.prototype.__iterator=function(p,y){var z=this._iter.__iterator(G,y),L=0;return new ye(function(){var T=z.next();return T.done?T:q(p,L++,T.value,T)})},r(Ur,It);function Ur(p){this._iter=p,this.size=p.size}Ur.prototype.has=function(p){return this._iter.includes(p)},Ur.prototype.__iterate=function(p,y){var z=this;return this._iter.__iterate(function(L){return p(L,L,z)},y)},Ur.prototype.__iterator=function(p,y){var z=this._iter.__iterator(G,y);return new ye(function(){var L=z.next();return L.done?L:q(p,L.value,L.value,L)})},r(Gr,ct);function Gr(p){this._iter=p,this.size=p.size}Gr.prototype.entrySeq=function(){return this._iter.toSeq()},Gr.prototype.__iterate=function(p,y){var z=this;return this._iter.__iterate(function(L){if(L){We(L);var T=c(L);return p(T?L.get(1):L[1],T?L.get(0):L[0],z)}},y)},Gr.prototype.__iterator=function(p,y){var z=this._iter.__iterator(G,y);return new ye(function(){for(;;){var L=z.next();if(L.done)return L;var T=L.value;if(T){We(T);var V=c(T);return q(p,V?T.get(0):T[0],V?T.get(1):T[1],L)}}})},p2.prototype.cacheResult=In.prototype.cacheResult=Ur.prototype.cacheResult=Gr.prototype.cacheResult=Gt;function bi(p){var y=ft(p);return y._iter=p,y.size=p.size,y.flip=function(){return p},y.reverse=function(){var z=p.reverse.apply(this);return z.flip=function(){return p.reverse()},z},y.has=function(z){return p.includes(z)},y.includes=function(z){return p.has(z)},y.cacheResult=Gt,y.__iterateUncached=function(z,L){var T=this;return p.__iterate(function(V,H){return z(H,V,T)!==!1},L)},y.__iteratorUncached=function(z,L){if(z===de){var T=p.__iterator(z,L);return new ye(function(){var V=T.next();if(!V.done){var H=V.value[0];V.value[0]=V.value[1],V.value[1]=H}return V})}return p.__iterator(z===G?be:G,L)},y}function Ei(p,y,z){var L=ft(p);return L.size=p.size,L.has=function(T){return p.has(T)},L.get=function(T,V){var H=p.get(T,S);return H===S?V:y.call(z,H,T,p)},L.__iterateUncached=function(T,V){var H=this;return p.__iterate(function(se,xe,Ae){return T(y.call(z,se,xe,Ae),xe,H)!==!1},V)},L.__iteratorUncached=function(T,V){var H=p.__iterator(de,V);return new ye(function(){var se=H.next();if(se.done)return se;var xe=se.value,Ae=xe[0];return q(T,Ae,y.call(z,xe[1],Ae,p),se)})},L}function xa(p,y){var z=ft(p);return z._iter=p,z.size=p.size,z.reverse=function(){return p},p.flip&&(z.flip=function(){var L=bi(p);return L.reverse=function(){return p.flip()},L}),z.get=function(L,T){return p.get(y?L:-1-L,T)},z.has=function(L){return p.has(y?L:-1-L)},z.includes=function(L){return p.includes(L)},z.cacheResult=Gt,z.__iterate=function(L,T){var V=this;return p.__iterate(function(H,se){return L(H,se,V)},!T)},z.__iterator=function(L,T){return p.__iterator(L,!T)},z}function ba(p,y,z,L){var T=ft(p);return L&&(T.has=function(V){var H=p.get(V,S);return H!==S&&!!y.call(z,H,V,p)},T.get=function(V,H){var se=p.get(V,S);return se!==S&&y.call(z,se,V,p)?se:H}),T.__iterateUncached=function(V,H){var se=this,xe=0;return p.__iterate(function(Ae,ze,rt){if(y.call(z,Ae,ze,rt))return xe++,V(Ae,L?ze:xe-1,se)},H),xe},T.__iteratorUncached=function(V,H){var se=p.__iterator(de,H),xe=0;return new ye(function(){for(;;){var Ae=se.next();if(Ae.done)return Ae;var ze=Ae.value,rt=ze[0],nt=ze[1];if(y.call(z,nt,rt,p))return q(V,L?rt:xe++,nt,Ae)}})},T}function b(p,y,z){var L=c1().asMutable();return p.__iterate(function(T,V){L.update(y.call(z,T,V,p),0,function(H){return H+1})}),L.asImmutable()}function R(p,y,z){var L=d(p),T=(m(p)?U1():c1()).asMutable();p.__iterate(function(H,se){T.update(y.call(z,H,se,p),function(xe){return xe=xe||[],xe.push(L?[se,H]:H),xe})});var V=at(p);return T.map(function(H){return Ce(p,V(H))})}function O(p,y,z,L){var T=p.size;if(y!==void 0&&(y=y|0),z!==void 0&&(z=z|0),he(y,z,T))return p;var V=ve(y,T),H=ne(z,T);if(V!==V||H!==H)return O(p.toSeq().cacheResult(),y,z,L);var se=H-V,xe;se===se&&(xe=se<0?0:se);var Ae=ft(p);return Ae.size=xe===0?xe:p.size&&xe||void 0,!L&&qt(p)&&xe>=0&&(Ae.get=function(ze,rt){return ze=Q(this,ze),ze>=0&&ze<xe?p.get(ze+V,rt):rt}),Ae.__iterateUncached=function(ze,rt){var nt=this;if(xe===0)return 0;if(rt)return this.cacheResult().__iterate(ze,rt);var Zt=0,e1=!0,t1=0;return p.__iterate(function(Vn,Rn){if(!(e1&&(e1=Zt++<V)))return t1++,ze(Vn,L?Rn:t1-1,nt)!==!1&&t1!==xe}),t1},Ae.__iteratorUncached=function(ze,rt){if(xe!==0&&rt)return this.cacheResult().__iterator(ze,rt);var nt=xe!==0&&p.__iterator(ze,rt),Zt=0,e1=0;return new ye(function(){for(;Zt++<V;)nt.next();if(++e1>xe)return Le();var t1=nt.next();return L||ze===G?t1:ze===be?q(ze,e1-1,void 0,t1):q(ze,e1-1,t1.value[1],t1)})},Ae}function N(p,y,z){var L=ft(p);return L.__iterateUncached=function(T,V){var H=this;if(V)return this.cacheResult().__iterate(T,V);var se=0;return p.__iterate(function(xe,Ae,ze){return y.call(z,xe,Ae,ze)&&++se&&T(xe,Ae,H)}),se},L.__iteratorUncached=function(T,V){var H=this;if(V)return this.cacheResult().__iterator(T,V);var se=p.__iterator(de,V),xe=!0;return new ye(function(){if(!xe)return Le();var Ae=se.next();if(Ae.done)return Ae;var ze=Ae.value,rt=ze[0],nt=ze[1];return y.call(z,nt,rt,H)?T===de?Ae:q(T,rt,nt,Ae):(xe=!1,Le())})},L}function _(p,y,z,L){var T=ft(p);return T.__iterateUncached=function(V,H){var se=this;if(H)return this.cacheResult().__iterate(V,H);var xe=!0,Ae=0;return p.__iterate(function(ze,rt,nt){if(!(xe&&(xe=y.call(z,ze,rt,nt))))return Ae++,V(ze,L?rt:Ae-1,se)}),Ae},T.__iteratorUncached=function(V,H){var se=this;if(H)return this.cacheResult().__iterator(V,H);var xe=p.__iterator(de,H),Ae=!0,ze=0;return new ye(function(){var rt,nt,Zt;do{if(rt=xe.next(),rt.done)return L||V===G?rt:V===be?q(V,ze++,void 0,rt):q(V,ze++,rt.value[1],rt);var e1=rt.value;nt=e1[0],Zt=e1[1],Ae&&(Ae=y.call(z,Zt,nt,se))}while(Ae);return V===de?rt:q(V,nt,Zt,rt)})},T}function U(p,y){var z=d(p),L=[p].concat(y).map(function(H){return c(H)?z&&(H=i(H)):H=z?et(H):Rt(Array.isArray(H)?H:[H]),H}).filter(function(H){return H.size!==0});if(L.length===0)return p;if(L.length===1){var T=L[0];if(T===p||z&&d(T)||f(p)&&f(T))return T}var V=new Lt(L);return z?V=V.toKeyedSeq():f(p)||(V=V.toSetSeq()),V=V.flatten(!0),V.size=L.reduce(function(H,se){if(H!==void 0){var xe=se.size;if(xe!==void 0)return H+xe}},0),V}function ae(p,y,z){var L=ft(p);return L.__iterateUncached=function(T,V){var H=0,se=!1;function xe(Ae,ze){var rt=this;Ae.__iterate(function(nt,Zt){return(!y||ze<y)&&c(nt)?xe(nt,ze+1):T(nt,z?Zt:H++,rt)===!1&&(se=!0),!se},V)}return xe(p,0),H},L.__iteratorUncached=function(T,V){var H=p.__iterator(T,V),se=[],xe=0;return new ye(function(){for(;H;){var Ae=H.next();if(Ae.done!==!1){H=se.pop();continue}var ze=Ae.value;if(T===de&&(ze=ze[1]),(!y||se.length<y)&&c(ze))se.push(H),H=ze.__iterator(T,V);else return z?Ae:q(T,xe++,ze,Ae)}return Le()})},L}function Fe(p,y,z){var L=at(p);return p.toSeq().map(function(T,V){return L(y.call(z,T,V,p))}).flatten(!0)}function ke(p,y){var z=ft(p);return z.size=p.size&&p.size*2-1,z.__iterateUncached=function(L,T){var V=this,H=0;return p.__iterate(function(se,xe){return(!H||L(y,H++,V)!==!1)&&L(se,H++,V)!==!1},T),H},z.__iteratorUncached=function(L,T){var V=p.__iterator(G,T),H=0,se;return new ye(function(){return(!se||H%2)&&(se=V.next(),se.done)?se:H%2?q(L,H++,y):q(L,H++,se.value,se)})},z}function Re(p,y,z){y||(y=xt);var L=d(p),T=0,V=p.toSeq().map(function(H,se){return[se,H,T++,z?z(H,se,p):H]}).toArray();return V.sort(function(H,se){return y(H[3],se[3])||H[2]-se[2]}).forEach(L?function(H,se){V[se].length=2}:function(H,se){V[se]=H[1]}),L?ct(V):f(p)?Ve(V):It(V)}function Ye(p,y,z){if(y||(y=xt),z){var L=p.toSeq().map(function(T,V){return[T,z(T,V,p)]}).reduce(function(T,V){return Ke(y,T[1],V[1])?V:T});return L&&L[0]}else return p.reduce(function(T,V){return Ke(y,T,V)?V:T})}function Ke(p,y,z){var L=p(z,y);return L===0&&z!==y&&(z==null||z!==z)||L>0}function He(p,y,z){var L=ft(p);return L.size=new Lt(z).map(function(T){return T.size}).min(),L.__iterate=function(T,V){for(var H=this.__iterator(G,V),se,xe=0;!(se=H.next()).done&&T(se.value,xe++,this)!==!1;);return xe},L.__iteratorUncached=function(T,V){var H=z.map(function(Ae){return Ae=a(Ae),Te(V?Ae.reverse():Ae)}),se=0,xe=!1;return new ye(function(){var Ae;return xe||(Ae=H.map(function(ze){return ze.next()}),xe=Ae.some(function(ze){return ze.done})),xe?Le():q(T,se++,y.apply(null,Ae.map(function(ze){return ze.value})))})},L}function Ce(p,y){return qt(p)?y:p.constructor(y)}function We(p){if(p!==Object(p))throw new TypeError("Expected [K, V] tuple: "+p)}function tt(p){return J1(p.size),ue(p)}function at(p){return d(p)?i:f(p)?o:l}function ft(p){return Object.create((d(p)?ct:f(p)?Ve:It).prototype)}function Gt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):qe.prototype.cacheResult.call(this)}function xt(p,y){return p>y?1:p<y?-1:0}function Ze(p){var y=Te(p);if(!y){if(!ce(p))throw new TypeError("Expected iterable or array-like: "+p);y=Te(a(p))}return y}r(Ft,wn);function Ft(p,y){var z,L=function(H){if(H instanceof L)return H;if(!(this instanceof L))return new L(H);if(!z){z=!0;var se=Object.keys(p);Nt(T,se),T.size=se.length,T._name=y,T._keys=se,T._defaultValues=p}this._map=c1(H)},T=L.prototype=Object.create(Qe);return T.constructor=L,L}Ft.prototype.toString=function(){return this.__toString(s1(this)+" {","}")},Ft.prototype.has=function(p){return this._defaultValues.hasOwnProperty(p)},Ft.prototype.get=function(p,y){if(!this.has(p))return y;var z=this._defaultValues[p];return this._map?this._map.get(p,z):z},Ft.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var p=this.constructor;return p._empty||(p._empty=Ot(this,$n()))},Ft.prototype.set=function(p,y){if(!this.has(p))throw new Error('Cannot set unknown key "'+p+'" on '+s1(this));var z=this._map&&this._map.set(p,y);return this.__ownerID||z===this._map?this:Ot(this,z)},Ft.prototype.remove=function(p){if(!this.has(p))return this;var y=this._map&&this._map.remove(p);return this.__ownerID||y===this._map?this:Ot(this,y)},Ft.prototype.wasAltered=function(){return this._map.wasAltered()},Ft.prototype.__iterator=function(p,y){var z=this;return i(this._defaultValues).map(function(L,T){return z.get(T)}).__iterator(p,y)},Ft.prototype.__iterate=function(p,y){var z=this;return i(this._defaultValues).map(function(L,T){return z.get(T)}).__iterate(p,y)},Ft.prototype.__ensureOwner=function(p){if(p===this.__ownerID)return this;var y=this._map&&this._map.__ensureOwner(p);return p?Ot(this,y,p):(this.__ownerID=p,this._map=y,this)};var Qe=Ft.prototype;Qe[C]=Qe.remove,Qe.deleteIn=Qe.removeIn=h1.removeIn,Qe.merge=h1.merge,Qe.mergeWith=h1.mergeWith,Qe.mergeIn=h1.mergeIn,Qe.mergeDeep=h1.mergeDeep,Qe.mergeDeepWith=h1.mergeDeepWith,Qe.mergeDeepIn=h1.mergeDeepIn,Qe.setIn=h1.setIn,Qe.update=h1.update,Qe.updateIn=h1.updateIn,Qe.withMutations=h1.withMutations,Qe.asMutable=h1.asMutable,Qe.asImmutable=h1.asImmutable;function Ot(p,y,z){var L=Object.create(Object.getPrototypeOf(p));return L._map=y,L.__ownerID=z,L}function s1(p){return p._name||p.constructor.name||"Record"}function Nt(p,y){try{y.forEach(Vt.bind(void 0,p))}catch{}}function Vt(p,y){Object.defineProperty(p,y,{get:function(){return this.get(y)},set:function(z){yn(this.__ownerID,"Cannot set on an immutable record."),this.set(y,z)}})}r(Dt,jn);function Dt(p){return p==null?W():Ht(p)&&!m(p)?p:W().withMutations(function(y){var z=l(p);J1(z.size),z.forEach(function(L){return y.add(L)})})}Dt.of=function(){return this(arguments)},Dt.fromKeys=function(p){return this(i(p).keySeq())},Dt.prototype.toString=function(){return this.__toString("Set {","}")},Dt.prototype.has=function(p){return this._map.has(p)},Dt.prototype.add=function(p){return k(this,this._map.set(p,!0))},Dt.prototype.remove=function(p){return k(this,this._map.remove(p))},Dt.prototype.clear=function(){return k(this,this._map.clear())},Dt.prototype.union=function(){var p=n.call(arguments,0);return p=p.filter(function(y){return y.size!==0}),p.length===0?this:this.size===0&&!this.__ownerID&&p.length===1?this.constructor(p[0]):this.withMutations(function(y){for(var z=0;z<p.length;z++)l(p[z]).forEach(function(L){return y.add(L)})})},Dt.prototype.intersect=function(){var p=n.call(arguments,0);if(p.length===0)return this;p=p.map(function(z){return l(z)});var y=this;return this.withMutations(function(z){y.forEach(function(L){p.every(function(T){return T.includes(L)})||z.remove(L)})})},Dt.prototype.subtract=function(){var p=n.call(arguments,0);if(p.length===0)return this;p=p.map(function(z){return l(z)});var y=this;return this.withMutations(function(z){y.forEach(function(L){p.some(function(T){return T.includes(L)})&&z.remove(L)})})},Dt.prototype.merge=function(){return this.union.apply(this,arguments)},Dt.prototype.mergeWith=function(p){var y=n.call(arguments,1);return this.union.apply(this,y)},Dt.prototype.sort=function(p){return Y(Re(this,p))},Dt.prototype.sortBy=function(p,y){return Y(Re(this,y,p))},Dt.prototype.wasAltered=function(){return this._map.wasAltered()},Dt.prototype.__iterate=function(p,y){var z=this;return this._map.__iterate(function(L,T){return p(T,T,z)},y)},Dt.prototype.__iterator=function(p,y){return this._map.map(function(z,L){return L}).__iterator(p,y)},Dt.prototype.__ensureOwner=function(p){if(p===this.__ownerID)return this;var y=this._map.__ensureOwner(p);return p?this.__make(y,p):(this.__ownerID=p,this._map=y,this)};function Ht(p){return!!(p&&p[d1])}Dt.isSet=Ht;var d1="@@__IMMUTABLE_SET__@@",E=Dt.prototype;E[d1]=!0,E[C]=E.remove,E.mergeDeep=E.merge,E.mergeDeepWith=E.mergeWith,E.withMutations=h1.withMutations,E.asMutable=h1.asMutable,E.asImmutable=h1.asImmutable,E.__empty=W,E.__make=D;function k(p,y){return p.__ownerID?(p.size=y.size,p._map=y,p):y===p._map?p:y.size===0?p.__empty():p.__make(y)}function D(p,y){var z=Object.create(E);return z.size=p?p.size:0,z._map=p,z.__ownerID=y,z}var j;function W(){return j||(j=D($n()))}r(Y,Dt);function Y(p){return p==null?De():P(p)?p:De().withMutations(function(y){var z=l(p);J1(z.size),z.forEach(function(L){return y.add(L)})})}Y.of=function(){return this(arguments)},Y.fromKeys=function(p){return this(i(p).keySeq())},Y.prototype.toString=function(){return this.__toString("OrderedSet {","}")};function P(p){return Ht(p)&&m(p)}Y.isOrderedSet=P;var ie=Y.prototype;ie[x]=!0,ie.__empty=De,ie.__make=we;function we(p,y){var z=Object.create(ie);return z.size=p?p.size:0,z._map=p,z.__ownerID=y,z}var Se;function De(){return Se||(Se=we(h2()))}r(Pe,mn);function Pe(p){return p==null?bt():Ne(p)?p:bt().unshiftAll(p)}Pe.of=function(){return this(arguments)},Pe.prototype.toString=function(){return this.__toString("Stack [","]")},Pe.prototype.get=function(p,y){var z=this._head;for(p=Q(this,p);z&&p--;)z=z.next;return z?z.value:y},Pe.prototype.peek=function(){return this._head&&this._head.value},Pe.prototype.push=function(){if(arguments.length===0)return this;for(var p=this.size+arguments.length,y=this._head,z=arguments.length-1;z>=0;z--)y={value:arguments[z],next:y};return this.__ownerID?(this.size=p,this._head=y,this.__hash=void 0,this.__altered=!0,this):Be(p,y)},Pe.prototype.pushAll=function(p){if(p=o(p),p.size===0)return this;J1(p.size);var y=this.size,z=this._head;return p.reverse().forEach(function(L){y++,z={value:L,next:z}}),this.__ownerID?(this.size=y,this._head=z,this.__hash=void 0,this.__altered=!0,this):Be(y,z)},Pe.prototype.pop=function(){return this.slice(1)},Pe.prototype.unshift=function(){return this.push.apply(this,arguments)},Pe.prototype.unshiftAll=function(p){return this.pushAll(p)},Pe.prototype.shift=function(){return this.pop.apply(this,arguments)},Pe.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):bt()},Pe.prototype.slice=function(p,y){if(he(p,y,this.size))return this;var z=ve(p,this.size),L=ne(y,this.size);if(L!==this.size)return mn.prototype.slice.call(this,p,y);for(var T=this.size-z,V=this._head;z--;)V=V.next;return this.__ownerID?(this.size=T,this._head=V,this.__hash=void 0,this.__altered=!0,this):Be(T,V)},Pe.prototype.__ensureOwner=function(p){return p===this.__ownerID?this:p?Be(this.size,this._head,p,this.__hash):(this.__ownerID=p,this.__altered=!1,this)},Pe.prototype.__iterate=function(p,y){if(y)return this.reverse().__iterate(p);for(var z=0,L=this._head;L&&p(L.value,z++,this)!==!1;)L=L.next;return z},Pe.prototype.__iterator=function(p,y){if(y)return this.reverse().__iterator(p);var z=0,L=this._head;return new ye(function(){if(L){var T=L.value;return L=L.next,q(p,z++,T)}return Le()})};function Ne(p){return!!(p&&p[Ue])}Pe.isStack=Ne;var Ue="@@__IMMUTABLE_STACK__@@",Xe=Pe.prototype;Xe[Ue]=!0,Xe.withMutations=h1.withMutations,Xe.asMutable=h1.asMutable,Xe.asImmutable=h1.asImmutable,Xe.wasAltered=h1.wasAltered;function Be(p,y,z,L){var T=Object.create(Xe);return T.size=p,T._head=y,T.__ownerID=z,T.__hash=L,T.__altered=!1,T}var dt;function bt(){return dt||(dt=Be(0))}function At(p,y){var z=function(L){p.prototype[L]=y[L]};return Object.keys(y).forEach(z),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(y).forEach(z),p}a.Iterator=ye,At(a,{toArray:function(){J1(this.size);var p=new Array(this.size||0);return this.valueSeq().__iterate(function(y,z){p[z]=y}),p},toIndexedSeq:function(){return new p2(this)},toJS:function(){return this.toSeq().map(function(p){return p&&typeof p.toJS=="function"?p.toJS():p}).__toJS()},toJSON:function(){return this.toSeq().map(function(p){return p&&typeof p.toJSON=="function"?p.toJSON():p}).__toJS()},toKeyedSeq:function(){return new In(this,!0)},toMap:function(){return c1(this.toKeyedSeq())},toObject:function(){J1(this.size);var p={};return this.__iterate(function(y,z){p[z]=y}),p},toOrderedMap:function(){return U1(this.toKeyedSeq())},toOrderedSet:function(){return Y(d(this)?this.valueSeq():this)},toSet:function(){return Dt(d(this)?this.valueSeq():this)},toSetSeq:function(){return new Ur(this)},toSeq:function(){return f(this)?this.toIndexedSeq():d(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Pe(d(this)?this.valueSeq():this)},toList:function(){return F1(d(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(p,y){return this.size===0?p+y:p+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+y},concat:function(){var p=n.call(arguments,0);return Ce(this,U(this,p))},includes:function(p){return this.some(function(y){return Mt(y,p)})},entries:function(){return this.__iterator(de)},every:function(p,y){J1(this.size);var z=!0;return this.__iterate(function(L,T,V){if(!p.call(y,L,T,V))return z=!1,!1}),z},filter:function(p,y){return Ce(this,ba(this,p,y,!0))},find:function(p,y,z){var L=this.findEntry(p,y);return L?L[1]:z},findEntry:function(p,y){var z;return this.__iterate(function(L,T,V){if(p.call(y,L,T,V))return z=[T,L],!1}),z},findLastEntry:function(p,y){return this.toSeq().reverse().findEntry(p,y)},forEach:function(p,y){return J1(this.size),this.__iterate(y?p.bind(y):p)},join:function(p){J1(this.size),p=p!==void 0?""+p:",";var y="",z=!0;return this.__iterate(function(L){z?z=!1:y+=p,y+=L!=null?L.toString():""}),y},keys:function(){return this.__iterator(be)},map:function(p,y){return Ce(this,Ei(this,p,y))},reduce:function(p,y,z){J1(this.size);var L,T;return arguments.length<2?T=!0:L=y,this.__iterate(function(V,H,se){T?(T=!1,L=V):L=p.call(z,L,V,H,se)}),L},reduceRight:function(p,y,z){var L=this.toKeyedSeq().reverse();return L.reduce.apply(L,arguments)},reverse:function(){return Ce(this,xa(this,!0))},slice:function(p,y){return Ce(this,O(this,p,y,!0))},some:function(p,y){return!this.every(_e(p),y)},sort:function(p){return Ce(this,Re(this,p))},values:function(){return this.__iterator(G)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(p,y){return ue(p?this.toSeq().filter(p,y):this)},countBy:function(p,y){return b(this,p,y)},equals:function(p){return p1(this,p)},entrySeq:function(){var p=this;if(p._cache)return new Lt(p._cache);var y=p.toSeq().map(lt).toIndexedSeq();return y.fromEntrySeq=function(){return p.toSeq()},y},filterNot:function(p,y){return this.filter(_e(p),y)},findLast:function(p,y,z){return this.toKeyedSeq().reverse().find(p,y,z)},first:function(){return this.find(fe)},flatMap:function(p,y){return Ce(this,Fe(this,p,y))},flatten:function(p){return Ce(this,ae(this,p,!0))},fromEntrySeq:function(){return new Gr(this)},get:function(p,y){return this.find(function(z,L){return Mt(L,p)},void 0,y)},getIn:function(p,y){for(var z=this,L=Ze(p),T;!(T=L.next()).done;){var V=T.value;if(z=z&&z.get?z.get(V,S):S,z===S)return y}return z},groupBy:function(p,y){return R(this,p,y)},has:function(p){return this.get(p,S)!==S},hasIn:function(p){return this.getIn(p,S)!==S},isSubset:function(p){return p=typeof p.includes=="function"?p:a(p),this.every(function(y){return p.includes(y)})},isSuperset:function(p){return p=typeof p.isSubset=="function"?p:a(p),p.isSubset(this)},keySeq:function(){return this.toSeq().map(r1).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(p){return Ye(this,p)},maxBy:function(p,y){return Ye(this,y,p)},min:function(p){return Ye(this,p?it(p):Qt)},minBy:function(p,y){return Ye(this,y?it(y):Qt,p)},rest:function(){return this.slice(1)},skip:function(p){return this.slice(Math.max(0,p))},skipLast:function(p){return Ce(this,this.toSeq().reverse().skip(p).reverse())},skipWhile:function(p,y){return Ce(this,_(this,p,y,!0))},skipUntil:function(p,y){return this.skipWhile(_e(p),y)},sortBy:function(p,y){return Ce(this,Re(this,y,p))},take:function(p){return this.slice(0,Math.max(0,p))},takeLast:function(p){return Ce(this,this.toSeq().reverse().take(p).reverse())},takeWhile:function(p,y){return Ce(this,N(this,p,y))},takeUntil:function(p,y){return this.takeWhile(_e(p),y)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=M1(this))}});var Ge=a.prototype;Ge[v]=!0,Ge[ge]=Ge.values,Ge.__toJS=Ge.toArray,Ge.__toStringMapper=Et,Ge.inspect=Ge.toSource=function(){return this.toString()},Ge.chain=Ge.flatMap,Ge.contains=Ge.includes,function(){try{Object.defineProperty(Ge,"length",{get:function(){if(!a.noLengthWarning){var p;try{throw new Error}catch(y){p=y.stack}if(p.indexOf("_wrapObject")===-1)return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+p),this.size}}})}catch{}}(),At(i,{flip:function(){return Ce(this,bi(this))},findKey:function(p,y){var z=this.findEntry(p,y);return z&&z[0]},findLastKey:function(p,y){return this.toSeq().reverse().findKey(p,y)},keyOf:function(p){return this.findKey(function(y){return Mt(y,p)})},lastKeyOf:function(p){return this.findLastKey(function(y){return Mt(y,p)})},mapEntries:function(p,y){var z=this,L=0;return Ce(this,this.toSeq().map(function(T,V){return p.call(y,[V,T],L++,z)}).fromEntrySeq())},mapKeys:function(p,y){var z=this;return Ce(this,this.toSeq().flip().map(function(L,T){return p.call(y,L,T,z)}).flip())}});var Ut=i.prototype;Ut[g]=!0,Ut[ge]=Ge.entries,Ut.__toJS=Ge.toObject,Ut.__toStringMapper=function(p,y){return JSON.stringify(y)+": "+Et(p)},At(o,{toKeyedSeq:function(){return new In(this,!1)},filter:function(p,y){return Ce(this,ba(this,p,y,!1))},findIndex:function(p,y){var z=this.findEntry(p,y);return z?z[0]:-1},indexOf:function(p){var y=this.toKeyedSeq().keyOf(p);return y===void 0?-1:y},lastIndexOf:function(p){var y=this.toKeyedSeq().reverse().keyOf(p);return y===void 0?-1:y},reverse:function(){return Ce(this,xa(this,!1))},slice:function(p,y){return Ce(this,O(this,p,y,!1))},splice:function(p,y){var z=arguments.length;if(y=Math.max(y|0,0),z===0||z===2&&!y)return this;p=ve(p,p<0?this.count():this.size);var L=this.slice(0,p);return Ce(this,z===1?L:L.concat(te(arguments,2),this.slice(p+y)))},findLastIndex:function(p,y){var z=this.toKeyedSeq().findLastKey(p,y);return z===void 0?-1:z},first:function(){return this.get(0)},flatten:function(p){return Ce(this,ae(this,p,!1))},get:function(p,y){return p=Q(this,p),p<0||this.size===1/0||this.size!==void 0&&p>this.size?y:this.find(function(z,L){return L===p},void 0,y)},has:function(p){return p=Q(this,p),p>=0&&(this.size!==void 0?this.size===1/0||p<this.size:this.indexOf(p)!==-1)},interpose:function(p){return Ce(this,ke(this,p))},interleave:function(){var p=[this].concat(te(arguments)),y=He(this.toSeq(),Ve.of,p),z=y.flatten(!0);return y.size&&(z.size=y.size*p.length),Ce(this,z)},last:function(){return this.get(-1)},skipWhile:function(p,y){return Ce(this,_(this,p,y,!1))},zip:function(){var p=[this].concat(te(arguments));return Ce(this,He(this,Xt,p))},zipWith:function(p){var y=te(arguments);return y[0]=this,Ce(this,He(this,p,y))}}),o.prototype[w]=!0,o.prototype[x]=!0,At(l,{get:function(p,y){return this.has(p)?p:y},includes:function(p){return this.has(p)},keySeq:function(){return this.valueSeq()}}),l.prototype.has=Ge.includes,At(ct,i.prototype),At(Ve,o.prototype),At(It,l.prototype),At(wn,i.prototype),At(mn,o.prototype),At(jn,l.prototype);function r1(p,y){return y}function lt(p,y){return[y,p]}function _e(p){return function(){return!p.apply(this,arguments)}}function it(p){return function(){return-p.apply(this,arguments)}}function Et(p){return typeof p=="string"?JSON.stringify(p):p}function Xt(){return te(arguments)}function Qt(p,y){return p<y?1:p>y?-1:0}function M1(p){if(p.size===1/0)return 0;var y=m(p),z=d(p),L=y?1:0,T=p.__iterate(z?y?function(V,H){L=31*L+nn(ln(V),ln(H))|0}:function(V,H){L=L+nn(ln(V),ln(H))|0}:y?function(V){L=31*L+ln(V)|0}:function(V){L=L+ln(V)|0});return mt(T,L)}function mt(p,y){return y=Xn(y,3432918353),y=Xn(y<<15|y>>>-15,461845907),y=Xn(y<<13|y>>>-13,5),y=(y+3864292196|0)^p,y=Xn(y^y>>>16,2246822507),y=Xn(y^y>>>13,3266489909),y=Qn(y^y>>>16),y}function nn(p,y){return p^y+2654435769+(p<<6)+(p>>2)|0}var $t={Iterable:a,Seq:qe,Collection:Y1,Map:c1,OrderedMap:U1,List:F1,Stack:Pe,Set:Dt,OrderedSet:Y,Record:Ft,Range:I1,Repeat:l1,is:Mt,fromJS:Ee};return $t})})(cv);var x1=cv.exports;const m7=i0(x1);var qz=x1,Zz=qz.OrderedMap,Jz={createFromArray:function(t){return Zz(t.map(function(n){return[n.getKey(),n]}))}},W8=Jz;function Xz(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var d6=x1,F4=d6.Map,k4=d6.OrderedSet,Qz=d6.Record,uv=k4(),dv={style:uv,entity:null},_z=Qz(dv),f6=function(e){Xz(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.getStyle=function(){return this.get("style")},n.getEntity=function(){return this.get("entity")},n.hasStyle=function(a){return this.getStyle().includes(a)},t.applyStyle=function(a,i){var o=a.set("style",a.getStyle().add(i));return t.create(o)},t.removeStyle=function(a,i){var o=a.set("style",a.getStyle().remove(i));return t.create(o)},t.applyEntity=function(a,i){var o=a.getEntity()===i?a:a.set("entity",i);return t.create(o)},t.create=function(a){if(!a)return h6;var i={style:uv,entity:null},o=F4(i).merge(a),l=rl.get(o);if(l)return l;var c=new t(o);return rl=rl.set(o,c),c},t.fromJS=function(a){var i=a.style,o=a.entity;return new t({style:Array.isArray(i)?k4(i):i,entity:Array.isArray(o)?k4(o):o})},t}(_z),h6=new f6,rl=F4([[F4(dv),h6]]);f6.EMPTY=h6;var Vr=f6;function $z(e,t,n,r){if(e.size){var a=0;e.reduce(function(i,o,l){return t(i,o)||(n(i)&&r(a,l),a=l),o}),n(e.last())&&r(a,e.count())}}var K8=$z;function eL(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var tL=Vr,v7=K8,U8=x1,fv=U8.List,nL=U8.Map,rL=U8.OrderedSet,aL=U8.Record,iL=U8.Repeat,oL=rL(),sL={key:"",type:"unstyled",text:"",characterList:fv(),depth:0,data:nL()},lL=aL(sL),cL=function(t){if(!t)return t;var n=t.characterList,r=t.text;return r&&!n&&(t.characterList=fv(iL(tL.EMPTY,r.length))),t},uL=function(e){eL(t,e);function t(r){return e.call(this,cL(r))||this}var n=t.prototype;return n.getKey=function(){return this.get("key")},n.getType=function(){return this.get("type")},n.getText=function(){return this.get("text")},n.getCharacterList=function(){return this.get("characterList")},n.getLength=function(){return this.getText().length},n.getDepth=function(){return this.get("depth")},n.getData=function(){return this.get("data")},n.getInlineStyleAt=function(a){var i=this.getCharacterList().get(a);return i?i.getStyle():oL},n.getEntityAt=function(a){var i=this.getCharacterList().get(a);return i?i.getEntity():null},n.findStyleRanges=function(a,i){v7(this.getCharacterList(),dL,a,i)},n.findEntityRanges=function(a,i){v7(this.getCharacterList(),fL,a,i)},t}(lL);function dL(e,t){return e.getStyle()===t.getStyle()}function fL(e,t){return e.getEntity()===t.getEntity()}var o0=uL;function hL(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var pL=Vr,g7=K8,G8=x1,z4=G8.List,mL=G8.Map,vL=G8.OrderedSet,gL=G8.Record,yL=G8.Repeat,wL=vL(),y7={parent:null,characterList:z4(),data:mL(),depth:0,key:"",text:"",type:"unstyled",children:z4(),prevSibling:null,nextSibling:null},xL=function(t,n){return t.getStyle()===n.getStyle()},bL=function(t,n){return t.getEntity()===n.getEntity()},EL=function(t){if(!t)return t;var n=t.characterList,r=t.text;return r&&!n&&(t.characterList=z4(yL(pL.EMPTY,r.length))),t},AL=function(e){hL(t,e);function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:y7;return e.call(this,EL(r))||this}var n=t.prototype;return n.getKey=function(){return this.get("key")},n.getType=function(){return this.get("type")},n.getText=function(){return this.get("text")},n.getCharacterList=function(){return this.get("characterList")},n.getLength=function(){return this.getText().length},n.getDepth=function(){return this.get("depth")},n.getData=function(){return this.get("data")},n.getInlineStyleAt=function(a){var i=this.getCharacterList().get(a);return i?i.getStyle():wL},n.getEntityAt=function(a){var i=this.getCharacterList().get(a);return i?i.getEntity():null},n.getChildKeys=function(){return this.get("children")},n.getParentKey=function(){return this.get("parent")},n.getPrevSiblingKey=function(){return this.get("prevSibling")},n.getNextSiblingKey=function(){return this.get("nextSibling")},n.findStyleRanges=function(a,i){g7(this.getCharacterList(),xL,a,i)},n.findEntityRanges=function(a,i){g7(this.getCharacterList(),bL,a,i)},t}(gL(y7)),Hr=AL,w7=Vr,CL=x1,SL=CL.Map,ML={add:function(t,n,r){return x7(t,n,r,!0)},remove:function(t,n,r){return x7(t,n,r,!1)}};function x7(e,t,n,r){var a=e.getBlockMap(),i=t.getStartKey(),o=t.getStartOffset(),l=t.getEndKey(),c=t.getEndOffset(),d=a.skipUntil(function(f,h){return h===i}).takeUntil(function(f,h){return h===l}).concat(SL([[l,a.get(l)]])).map(function(f,h){var m,v;i===l?(m=o,v=c):(m=h===i?o:0,v=h===l?c:f.getLength());for(var g=f.getCharacterList(),w;m<v;)w=g.get(m),g=g.set(m,r?w7.applyStyle(w,n):w7.removeStyle(w,n)),m++;return f.set("characterList",g)});return e.merge({blockMap:a.merge(d),selectionBefore:t,selectionAfter:t})}var FL=ML,kL=Vr;function zL(e,t,n,r){for(var a=t,i=e.getCharacterList();a<n;)i=i.set(a,kL.applyEntity(i.get(a),r)),a++;return e.set("characterList",i)}var LL=zL,jL=LL,RL=x1;function DL(e,t,n){var r=e.getBlockMap(),a=t.getStartKey(),i=t.getStartOffset(),o=t.getEndKey(),l=t.getEndOffset(),c=r.skipUntil(function(d,f){return f===a}).takeUntil(function(d,f){return f===o}).toOrderedMap().merge(RL.OrderedMap([[o,r.get(o)]])).map(function(d,f){var h=f===a?i:0,m=f===o?l:d.getLength();return jL(d,h,m,n)});return e.merge({blockMap:r.merge(c),selectionBefore:t,selectionAfter:t})}var TL=DL,BL={getRemovalRange:function(t,n,r,a,i){var o=r.split(" ");o=o.map(function(x,C){if(i==="forward"){if(C>0)return" "+x}else if(C<o.length-1)return x+" ";return x});for(var l=a,c,d,f=null,h=null,m=0;m<o.length;m++){if(d=o[m],c=l+d.length,t<c&&l<n)f!==null||(f=l),h=c;else if(f!==null)break;l=c}var v=a+r.length,g=f===a,w=h===v;return(!g&&w||g&&!w)&&(i==="forward"?h!==v&&h++:f!==a&&f--),{start:f,end:h}}},OL=BL,NL=process.env.NODE_ENV!=="production"?function(e){if(e===void 0)throw new Error("invariant(...): Second argument must be a string.")}:function(e){};function PL(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];if(NL(t),!e){var i;if(t===void 0)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;i=new Error(t.replace(/%s/g,function(){return String(r[o++])})),i.name="Invariant Violation"}throw i.framesToPop=1,i}}var k1=PL,b7=k1;function IL(e,t){var n=[];return e.findEntityRanges(function(r){return r.getEntity()===t},function(r,a){n.push({start:r,end:a})}),n.length||(process.env.NODE_ENV!=="production"?b7(!1,"Entity key not found in this range."):b7(!1)),n}var VL=IL,HL=OL,WL=VL,E7=k1;function KL(e,t,n,r,a){var i=r.getStartOffset(),o=r.getEndOffset(),l=t.getEntityAt(i),c=n.getEntityAt(o-1);if(!l&&!c)return r;var d=r;if(l&&l===c)d=A3(e,t,d,a,l,!0,!0);else if(l&&c){var f=A3(e,t,d,a,l,!1,!0),h=A3(e,n,d,a,c,!1,!1);d=d.merge({anchorOffset:f.getAnchorOffset(),focusOffset:h.getFocusOffset(),isBackward:!1})}else if(l){var m=A3(e,t,d,a,l,!1,!0);d=d.merge({anchorOffset:m.getStartOffset(),isBackward:!1})}else if(c){var v=A3(e,n,d,a,c,!1,!1);d=d.merge({focusOffset:v.getEndOffset(),isBackward:!1})}return d}function A3(e,t,n,r,a,i,o){var l=n.getStartOffset(),c=n.getEndOffset(),d=e.__get(a),f=d.getMutability(),h=o?l:c;if(f==="MUTABLE")return n;var m=WL(t,a).filter(function(w){return h<=w.end&&h>=w.start});m.length!=1&&(process.env.NODE_ENV!=="production"?E7(!1,"There should only be one entity range within this removal range."):E7(!1));var v=m[0];if(f==="IMMUTABLE")return n.merge({anchorOffset:v.start,focusOffset:v.end,isBackward:!1});i||(o?c=v.end:l=v.start);var g=HL.getRemovalRange(l,c,t.getText().slice(v.start,v.end),v.start,r);return n.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1})}var UL=KL,A7={},GL=Math.pow(2,24);function YL(){for(var e;e===void 0||A7.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*GL).toString(32);return A7[e]=!0,e}var N2=YL,qL=Hr,hv=N2,ZL=x1,pv=ZL.OrderedMap,JL=function(t){var n={},r;return pv(t.withMutations(function(a){a.forEach(function(i,o){var l=i.getKey(),c=i.getNextSiblingKey(),d=i.getPrevSiblingKey(),f=i.getChildKeys(),h=i.getParentKey(),m=hv();if(n[l]=m,c){var v=a.get(c);v?a.setIn([c,"prevSibling"],m):a.setIn([l,"nextSibling"],null)}if(d){var g=a.get(d);g?a.setIn([d,"nextSibling"],m):a.setIn([l,"prevSibling"],null)}if(h&&a.get(h)){var w=a.get(h),x=w.getChildKeys();a.setIn([h,"children"],x.set(x.indexOf(i.getKey()),m))}else a.setIn([l,"parent"],null),r&&(a.setIn([r.getKey(),"nextSibling"],m),a.setIn([l,"prevSibling"],n[r.getKey()])),r=a.get(l);f.forEach(function(C){var M=a.get(C);M?a.setIn([C,"parent"],m):a.setIn([l,"children"],i.getChildKeys().filter(function(A){return A!==C}))})})}).toArray().map(function(a){return[n[a.getKey()],a.set("key",n[a.getKey()])]}))},XL=function(t){return pv(t.toArray().map(function(n){var r=hv();return[r,n.set("key",r)]}))},QL=function(t){var n=t.first()instanceof qL;return n?JL(t):XL(t)},mv=QL,_L=Vr,$L=K8,C7=k1;function ej(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),a={},i=t.getStartKey(),o=t.getStartOffset(),l=n.get(i),c=S7(r,l,o);c!==l&&(a[i]=c);var d=t.getEndKey(),f=t.getEndOffset(),h=n.get(d);i===d&&(h=c);var m=S7(r,h,f);return m!==h&&(a[d]=m),Object.keys(a).length?e.merge({blockMap:n.merge(a),selectionAfter:t}):e.set("selectionAfter",t)}function tj(e,t,n){var r;return $L(e,function(a,i){return a.getEntity()===i.getEntity()},function(a){return a.getEntity()===t},function(a,i){a<=n&&i>=n&&(r={start:a,end:i})}),typeof r!="object"&&(process.env.NODE_ENV!=="production"?C7(!1,"Removal range must exist within character list."):C7(!1)),r}function S7(e,t,n){var r=t.getCharacterList(),a=n>0?r.get(n-1):void 0,i=n<r.count()?r.get(n):void 0,o=a?a.getEntity():void 0,l=i?i.getEntity():void 0;if(l&&l===o){var c=e.__get(l);if(c.getMutability()!=="MUTABLE"){for(var d=tj(r,l,n),f=d.start,h=d.end,m;f<h;)m=r.get(f),r=r.set(f,_L.applyEntity(m,null)),f++;return t.set("characterList",r)}}return t}var vv=ej,nj=mv,rj=vv,aj=function(t,n){var r=n.getStartKey(),a=n.getStartOffset(),i=n.getEndKey(),o=n.getEndOffset(),l=rj(t,n),c=l.getBlockMap(),d=c.keySeq(),f=d.indexOf(r),h=d.indexOf(i)+1;return nj(c.slice(f,h).map(function(m,v){var g=m.getText(),w=m.getCharacterList();return r===i?m.merge({text:g.slice(a,o),characterList:w.slice(a,o)}):v===r?m.merge({text:g.slice(a),characterList:w.slice(a)}):v===i?m.merge({text:g.slice(0,o),characterList:w.slice(0,o)}):m}))},b5=aj;function ij(e,t,n){var r=e;if(n===r.count())t.forEach(function(o){r=r.push(o)});else if(n===0)t.reverse().forEach(function(o){r=r.unshift(o)});else{var a=r.slice(0,n),i=r.slice(n);r=a.concat(t,i).toList()}return r}var gv=ij,oj=W8,yv=Hr,sj=x1,lj=gv,po=k1,cj=mv,uj=sj.List,dj=function(t,n,r,a,i,o){var l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:"REPLACE_WITH_NEW_DATA",c=r.get(i),d=c.getText(),f=c.getCharacterList(),h=i,m=o+a.getText().length,v=null;switch(l){case"MERGE_OLD_DATA_TO_NEW_DATA":v=a.getData().merge(c.getData());break;case"REPLACE_WITH_NEW_DATA":v=a.getData();break}var g=c.getType();d&&g==="unstyled"&&(g=a.getType());var w=c.merge({text:d.slice(0,o)+a.getText()+d.slice(o),characterList:lj(f,a.getCharacterList(),o),type:g,data:v});return t.merge({blockMap:r.set(i,w),selectionBefore:n,selectionAfter:n.merge({anchorKey:h,anchorOffset:m,focusKey:h,focusOffset:m,isBackward:!1})})},fj=function(t,n,r){var a=t.getText(),i=t.getCharacterList(),o=a.slice(0,n),l=i.slice(0,n),c=r.first();return t.merge({text:o+c.getText(),characterList:l.concat(c.getCharacterList()),type:o?t.getType():c.getType(),data:c.getData()})},hj=function(t,n,r){var a=t.getText(),i=t.getCharacterList(),o=a.length,l=a.slice(n,o),c=i.slice(n,o),d=r.last();return d.merge({text:d.getText()+l,characterList:d.getCharacterList().concat(c),data:d.getData()})},pj=function(t,n){var r=t.getKey(),a=t,i=[];for(n.get(r)&&i.push(r);a&&a.getNextSiblingKey();){var o=a.getNextSiblingKey();if(!o)break;i.push(o),a=n.get(o)}return i},mj=function(t,n,r,a){return t.withMutations(function(i){var o=r.getKey(),l=a.getKey(),c=r.getNextSiblingKey(),d=r.getParentKey(),f=pj(a,t),h=f[f.length-1];if(i.get(l)?(i.setIn([o,"nextSibling"],l),i.setIn([l,"prevSibling"],o)):(i.setIn([o,"nextSibling"],a.getNextSiblingKey()),i.setIn([a.getNextSiblingKey(),"prevSibling"],o)),i.setIn([h,"nextSibling"],c),c&&i.setIn([c,"prevSibling"],h),f.forEach(function(C){return i.setIn([C,"parent"],d)}),d){var m=t.get(d),v=m.getChildKeys(),g=v.indexOf(o),w=g+1,x=v.toArray();x.splice.apply(x,[w,0].concat(f)),i.setIn([d,"children"],uj(x))}})},vj=function(t,n,r,a,i,o){var l=r.first()instanceof yv,c=[],d=a.size,f=r.get(i),h=a.first(),m=a.last(),v=m.getLength(),g=m.getKey(),w=l&&(!f.getChildKeys().isEmpty()||!h.getChildKeys().isEmpty());r.forEach(function(C,M){if(M!==i){c.push(C);return}w?c.push(C):c.push(fj(C,o,a)),a.slice(w?0:1,d-1).forEach(function(A){return c.push(A)}),c.push(hj(C,o,a))});var x=oj.createFromArray(c);return l&&(x=mj(x,r,f,h)),t.merge({blockMap:x,selectionBefore:n,selectionAfter:n.merge({anchorKey:g,anchorOffset:v,focusKey:g,focusOffset:v,isBackward:!1})})},gj=function(t,n,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"REPLACE_WITH_NEW_DATA";n.isCollapsed()||(process.env.NODE_ENV!=="production"?po(!1,"`insertFragment` should only be called with a collapsed selection state."):po(!1));var i=t.getBlockMap(),o=cj(r),l=n.getStartKey(),c=n.getStartOffset(),d=i.get(l);return d instanceof yv&&(d.getChildKeys().isEmpty()||(process.env.NODE_ENV!=="production"?po(!1,"`insertFragment` should not be called when a container node is selected."):po(!1))),o.size===1?dj(t,n,i,o.first(),l,c,a):vj(t,n,i,o,l,c)},yj=gj,wj=x1,xj=gv,M7=k1,bj=wj.Repeat;function Ej(e,t,n,r){t.isCollapsed()||(process.env.NODE_ENV!=="production"?M7(!1,"`insertText` should only be called with a collapsed range."):M7(!1));var a=null;if(n!=null&&(a=n.length),a==null||a===0)return e;var i=e.getBlockMap(),o=t.getStartKey(),l=t.getStartOffset(),c=i.get(o),d=c.getText(),f=c.merge({text:d.slice(0,l)+n+d.slice(l,c.getLength()),characterList:xj(c.getCharacterList(),bj(r,a).toList(),l)}),h=l+a;return e.merge({blockMap:i.set(o,f),selectionAfter:t.merge({anchorOffset:h,focusOffset:h})})}var Aj=Ej,Cj=x1,Sj=Cj.Map;function Mj(e,t,n){var r=t.getStartKey(),a=t.getEndKey(),i=e.getBlockMap(),o=i.toSeq().skipUntil(function(l,c){return c===r}).takeUntil(function(l,c){return c===a}).concat(Sj([[a,i.get(a)]])).map(n);return e.merge({blockMap:i.merge(o),selectionBefore:t,selectionAfter:t})}var wv=Mj,Fj=Hr,kj=function(t,n){var r=t instanceof Fj;if(!r)return null;var a=t.getNextSiblingKey();if(a)return a;var i=t.getParentKey();if(!i)return null;for(var o=n.get(i);o&&!o.getNextSiblingKey();){var l=o.getParentKey();o=l?n.get(l):null}return o?o.getNextSiblingKey():null},xv=kj,zj=Hr,L4=xv,bv=x1;bv.List;var F7=bv.Map,er=function(t,n,r){if(t){var a=n.get(t);a&&n.set(t,r(a))}},Hs=function(t,n){var r=[];if(!t)return r;for(var a=n.get(t);a&&a.getParentKey();){var i=a.getParentKey();i&&r.push(i),a=i?n.get(i):null}return r},Lj=function(t,n){var r=[];if(!t)return r;for(var a=L4(t,n);a&&n.get(a);){var i=n.get(a);r.push(a),a=i.getParentKey()?L4(i,n):null}return r},F0=function(t,n,r){if(!t)return null;for(var a=r.get(t.getKey()).getNextSiblingKey();a&&!n.get(a);)a=r.get(a).getNextSiblingKey()||null;return a},k0=function(t,n,r){if(!t)return null;for(var a=r.get(t.getKey()).getPrevSiblingKey();a&&!n.get(a);)a=r.get(a).getPrevSiblingKey()||null;return a},jj=function(t,n,r,a){return t.withMutations(function(i){if(er(n.getKey(),i,function(f){return f.merge({nextSibling:F0(f,i,a),prevSibling:k0(f,i,a)})}),er(r.getKey(),i,function(f){return f.merge({nextSibling:F0(f,i,a),prevSibling:k0(f,i,a)})}),Hs(n.getKey(),a).forEach(function(f){return er(f,i,function(h){return h.merge({children:h.getChildKeys().filter(function(m){return i.get(m)}),nextSibling:F0(h,i,a),prevSibling:k0(h,i,a)})})}),er(n.getNextSiblingKey(),i,function(f){return f.merge({prevSibling:n.getPrevSiblingKey()})}),er(n.getPrevSiblingKey(),i,function(f){return f.merge({nextSibling:F0(f,i,a)})}),er(r.getNextSiblingKey(),i,function(f){return f.merge({prevSibling:k0(f,i,a)})}),er(r.getPrevSiblingKey(),i,function(f){return f.merge({nextSibling:r.getNextSiblingKey()})}),Hs(r.getKey(),a).forEach(function(f){er(f,i,function(h){return h.merge({children:h.getChildKeys().filter(function(m){return i.get(m)}),nextSibling:F0(h,i,a),prevSibling:k0(h,i,a)})})}),Lj(r,a).forEach(function(f){return er(f,i,function(h){return h.merge({nextSibling:F0(h,i,a),prevSibling:k0(h,i,a)})})}),t.get(n.getKey())==null&&t.get(r.getKey())!=null&&r.getParentKey()===n.getKey()&&r.getPrevSiblingKey()==null){var o=n.getPrevSiblingKey();er(r.getKey(),i,function(f){return f.merge({prevSibling:o})}),er(o,i,function(f){return f.merge({nextSibling:r.getKey()})});var l=o?t.get(o):null,c=l?l.getParentKey():null;if(n.getChildKeys().forEach(function(f){er(f,i,function(h){return h.merge({parent:c})})}),c!=null){var d=t.get(c);er(c,i,function(f){return f.merge({children:d.getChildKeys().concat(n.getChildKeys())})})}er(n.getChildKeys().find(function(f){var h=t.get(f);return h.getNextSiblingKey()===null}),i,function(f){return f.merge({nextSibling:n.getNextSiblingKey()})})}})},Rj=function(t,n){if(n.isCollapsed())return t;var r=t.getBlockMap(),a=n.getStartKey(),i=n.getStartOffset(),o=n.getEndKey(),l=n.getEndOffset(),c=r.get(a),d=r.get(o),f=c instanceof zj,h=[];if(f){var m=d.getChildKeys(),v=Hs(o,r);d.getNextSiblingKey()&&(h=h.concat(v)),m.isEmpty()||(h=h.concat(v.concat([o]))),h=h.concat(Hs(L4(d,r),r))}var g;c===d?g=Dj(c.getCharacterList(),i,l):g=c.getCharacterList().slice(0,i).concat(d.getCharacterList().slice(l));var w=c.merge({text:c.getText().slice(0,i)+d.getText().slice(l),characterList:g}),x=f&&i===0&&l===0&&d.getParentKey()===a&&d.getPrevSiblingKey()==null,C=x?F7([[a,null]]):r.toSeq().skipUntil(function(A,F){return F===a}).takeUntil(function(A,F){return F===o}).filter(function(A,F){return h.indexOf(F)===-1}).concat(F7([[o,null]])).map(function(A,F){return F===a?w:null}),M=r.merge(C).filter(function(A){return!!A});return f&&c!==d&&(M=jj(M,c,d,r)),t.merge({blockMap:M,selectionBefore:n,selectionAfter:n.merge({anchorKey:a,anchorOffset:i,focusKey:a,focusOffset:i,isBackward:!1})})},Dj=function(t,n,r){if(n===0)for(;n<r;)t=t.shift(),n++;else if(r===t.count())for(;r>n;)t=t.pop(),r--;else{var a=t.slice(0,n),i=t.slice(r);t=a.concat(i).toList()}return t},Tj=Rj,Bj=Hr,Oj=N2,Ev=x1,mo=k1,Nj=wv,Pj=Ev.List,Ij=Ev.Map,vo=function(t,n,r){if(t){var a=n.get(t);a&&n.set(t,r(a))}},Vj=function(t,n,r){return t.withMutations(function(a){var i=n.getKey(),o=r.getKey();vo(n.getParentKey(),a,function(l){var c=l.getChildKeys(),d=c.indexOf(i)+1,f=c.toArray();return f.splice(d,0,o),l.merge({children:Pj(f)})}),vo(n.getNextSiblingKey(),a,function(l){return l.merge({prevSibling:o})}),vo(i,a,function(l){return l.merge({nextSibling:o})}),vo(o,a,function(l){return l.merge({prevSibling:i})})})},Hj=function(t,n){n.isCollapsed()||(process.env.NODE_ENV!=="production"?mo(!1,"Selection range must be collapsed."):mo(!1));var r=n.getAnchorKey(),a=t.getBlockMap(),i=a.get(r),o=i.getText();if(!o){var l=i.getType();if(l==="unordered-list-item"||l==="ordered-list-item")return Nj(t,n,function(C){return C.merge({type:"unstyled",depth:0})})}var c=n.getAnchorOffset(),d=i.getCharacterList(),f=Oj(),h=i instanceof Bj,m=i.merge({text:o.slice(0,c),characterList:d.slice(0,c)}),v=m.merge({key:f,text:o.slice(c),characterList:d.slice(c),data:Ij()}),g=a.toSeq().takeUntil(function(C){return C===i}),w=a.toSeq().skipUntil(function(C){return C===i}).rest(),x=g.concat([[r,m],[f,v]],w).toOrderedMap();return h&&(i.getChildKeys().isEmpty()||(process.env.NODE_ENV!=="production"?mo(!1,"ContentBlockNode must not have children"):mo(!1)),x=Vj(x,m,v)),t.merge({blockMap:x,selectionBefore:n,selectionAfter:n.merge({anchorKey:f,anchorOffset:0,focusKey:f,focusOffset:0,isBackward:!1})})},Wj=Hj,Kj=Vr,k7=FL,Uj=TL,Gj=UL,Yj=b5,qj=x1,Zj=yj,Jj=Aj,z7=k1,al=wv,C3=vv,S3=Tj,Xj=Wj,Qj=qj.OrderedSet,vs={replaceText:function(t,n,r,a,i){var o=C3(t,n),l=S3(o,n),c=Kj.create({style:a||Qj(),entity:i||null});return Jj(l,l.getSelectionAfter(),r,c)},insertText:function(t,n,r,a,i){return n.isCollapsed()||(process.env.NODE_ENV!=="production"?z7(!1,"Target range must be collapsed for `insertText`."):z7(!1)),vs.replaceText(t,n,r,a,i)},moveText:function(t,n,r){var a=Yj(t,n),i=vs.removeRange(t,n,"backward");return vs.replaceWithFragment(i,r,a)},replaceWithFragment:function(t,n,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"REPLACE_WITH_NEW_DATA",i=C3(t,n),o=S3(i,n);return Zj(o,o.getSelectionAfter(),r,a)},removeRange:function(t,n,r){var a,i,o,l;n.getIsBackward()&&(n=n.merge({anchorKey:n.getFocusKey(),anchorOffset:n.getFocusOffset(),focusKey:n.getAnchorKey(),focusOffset:n.getAnchorOffset(),isBackward:!1})),a=n.getAnchorKey(),i=n.getFocusKey(),o=t.getBlockForKey(a),l=t.getBlockForKey(i);var c=n.getStartOffset(),d=n.getEndOffset(),f=o.getEntityAt(c),h=l.getEntityAt(d-1);if(a===i&&f&&f===h){var m=Gj(t.getEntityMap(),o,l,n,r);return S3(t,m)}var v=C3(t,n);return S3(v,n)},splitBlock:function(t,n){var r=C3(t,n),a=S3(r,n);return Xj(a,a.getSelectionAfter())},applyInlineStyle:function(t,n,r){return k7.add(t,n,r)},removeInlineStyle:function(t,n,r){return k7.remove(t,n,r)},setBlockType:function(t,n,r){return al(t,n,function(a){return a.merge({type:r,depth:0})})},setBlockData:function(t,n,r){return al(t,n,function(a){return a.merge({data:r})})},mergeBlockData:function(t,n,r){return al(t,n,function(a){return a.merge({data:a.getData().merge(r)})})},applyEntity:function(t,n,r){var a=C3(t,n);return Uj(a,n,r)}},lr=vs;function _j(e){return Object.keys(e).map(function(t){return e[t]})}var Av=_j;function $j(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){eR(e,a,n[a])})}return e}function eR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tR(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}var Cv=K8,nR=Av,p6=x1,O0=p6.List,rR=p6.Repeat,Sv=p6.Record,Mv=function(){return!0},aR={start:null,end:null},j4=Sv(aR),iR={start:null,end:null,decoratorKey:null,leaves:null},il=Sv(iR),oR={generate:function(t,n,r){var a=n.getLength();if(!a)return O0.of(new il({start:0,end:0,decoratorKey:null,leaves:O0.of(new j4({start:0,end:0}))}));var i=[],o=r?r.getDecorations(n,t):O0(rR(null,a)),l=n.getCharacterList();return Cv(o,Fv,Mv,function(c,d){i.push(new il({start:c,end:d,decoratorKey:o.get(c),leaves:sR(l.slice(c,d).toList(),c)}))}),O0(i)},fromJS:function(t){var n=t.leaves,r=tR(t,["leaves"]);return new il($j({},r,{leaves:n!=null?O0(Array.isArray(n)?n:nR(n)).map(function(a){return j4(a)}):null}))}};function sR(e,t){var n=[],r=e.map(function(a){return a.getStyle()}).toList();return Cv(r,Fv,Mv,function(a,i){n.push(new j4({start:a+t,end:i+t}))}),O0(n)}function Fv(e,t){return e===t}var lR=oR;function cR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var uR=x1,dR=uR.Record,fR=dR({type:"TOKEN",mutability:"IMMUTABLE",data:Object}),hR=function(e){cR(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.getType=function(){return this.get("type")},n.getMutability=function(){return this.get("mutability")},n.getData=function(){return this.get("data")},t}(fR),kv=hR;function pR(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=Math.random()*16|0,n=e=="x"?t:t&3|8;return n.toString(16)})}var mR=pR;function vR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){gR(e,a,n[a])})}return e}function gR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yR=kv,wR=x1,L7=k1,R4=mR,xR=wR.Map,Y2=xR(),M3=R4();function z0(e,t){console.warn("WARNING: "+e+` will be deprecated soon!
|
|
175
|
+
`,bn={flagsSelect:"ReactFlagsSelect-module_flagsSelect__2pfa2",flagsSelectInline:"ReactFlagsSelect-module_flagsSelectInline__cUnnz",selectBtn:"ReactFlagsSelect-module_selectBtn__19wW7",disabledBtn:"ReactFlagsSelect-module_disabledBtn__3A4GF",label:"ReactFlagsSelect-module_label__27pw9",secondaryLabel:"ReactFlagsSelect-module_secondaryLabel__37t1D",selectValue:"ReactFlagsSelect-module_selectValue__152eS",selectOption:"ReactFlagsSelect-module_selectOption__3pcgW",selectFlag:"ReactFlagsSelect-module_selectFlag__2q5gC",selectOptionValue:"ReactFlagsSelect-module_selectOptionValue__vS99-",selectOptionWithlabel:"ReactFlagsSelect-module_selectOptionWithlabel__2GpmM",selectOptions:"ReactFlagsSelect-module_selectOptions__3LNBJ",selectOptionsWithSearch:"ReactFlagsSelect-module_selectOptionsWithSearch__1W03w",fullWidthOptions:"ReactFlagsSelect-module_fullWidthOptions__1XeR6",alignOptionsToRight:"ReactFlagsSelect-module_alignOptionsToRight__3Qvq2",filterBox:"ReactFlagsSelect-module_filterBox__3m8EU"};zz(Lz);var jz="Select a country",Rz="Search",Dz=function(e){var t,n,r,a=e.className,i=e.selected,o=e.onSelect,l=e.selectButtonClassName,c=e.showSelectedLabel,d=c===void 0?!0:c,f=e.showSecondarySelectedLabel,h=f===void 0?!0:f,m=e.showOptionLabel,v=m===void 0?!0:m,g=e.showSecondaryOptionLabel,w=g===void 0?!0:g,x=e.selectedSize,C=x===void 0?16:x,M=e.optionsSize,A=M===void 0?16:M,F=e.customLabels,S=F===void 0?{}:F,B=e.placeholder,I=e.searchable,K=I===void 0?!1:I,Z=e.searchPlaceholder,X=e.alignOptionsToRight,te=X===void 0?!1:X,ue=e.countries,Q=e.blacklistCountries,fe=Q===void 0?!1:Q,he=e.fullWidth,ve=he===void 0?!0:he,ne=e.disabled,le=ne===void 0?!1:ne,be=e.id,G=e.rfsKey,de=G===void 0?"rfs":G,ee=W3(s.useState(!1),2),me=ee[0],ge=ee[1],ye=W3(s.useState([]),2),q=ye[0],Le=ye[1],pe=W3(s.useState([]),2),je=pe[0],Te=pe[1],Me=W3(s.useState(""),2),ce=Me[0],qe=Me[1],ct=s.useRef(null),Ve=s.useRef(null),It=s.useRef(null),wt=q.includes(i)?i:"",Lt=ce?je:q,a1=function(St){return kz[St]},Ct=function(){var St=h7(wt),Ee=a1(St);return s.createElement(Ee,null)},Yt=function(St){return S[St]||M4[St]},qt=function(){return ge(!me)},n1=function(St){qe(""),o(St)},ot=function(St){var Ee=St.target.value||"";if(qe(Ee),!Ee){Te([]);return}var Oe=q.filter(function(zt){var y1,Mt,p1=Yt(zt);return E3(p1)?nl((y1=p1)===null||y1===void 0?void 0:y1.primary,Ee)||nl((Mt=p1)===null||Mt===void 0?void 0:Mt.secondary,Ee):nl(p1,Ee)});Te(Oe)},et=function(St){St.target!==ct.current&&St.target!==Ve.current&&St.target!==It.current&&ge(!1)},Rt=function(St){St.preventDefault(),St.keyCode===27&&ge(!1)},vt=function(St,Ee){St.preventDefault(),St.keyCode===13?(n1(Ee),ge(!1)):St.keyCode===27&&ge(!1)};s.useEffect(function(){Le(ES(ue,fe))},[ue,fe]),s.useEffect(function(){return window.addEventListener("click",et),function(){window.removeEventListener("click",et)}},[]);var jt=Yt(wt),f1=de+"-btn";return s.createElement("div",{className:ho(bn.flagsSelect,a,(t={},t[bn.flagsSelectInline]=!ve,t)),id:be,"data-testid":de},s.createElement("button",{ref:ct,id:f1,type:"button",className:ho(bn.selectBtn,l,(n={},n[bn.disabledBtn]=le,n)),style:{fontSize:C},onClick:qt,onKeyUp:function(St){return Rt(St)},disabled:le,"aria-labelledby":f1,"aria-haspopup":"listbox","aria-expanded":me,"data-testid":f1},s.createElement("span",{className:bn.selectValue},wt?s.createElement(s.Fragment,null,s.createElement("span",{className:bn.selectFlag,"data-testid":de+"-selected-flag"},Ct()),d&&s.createElement("span",{className:bn.label},E3(jt)?jt.primary:jt),h&&E3(jt)&&s.createElement("span",{className:bn.secondaryLabel},jt.secondary)):s.createElement(s.Fragment,null,B||jz))),!le&&me&&s.createElement("ul",{tabIndex:-1,role:"listbox",ref:Ve,style:{fontSize:A},className:ho(bn.selectOptions,(r={},r[bn.selectOptionsWithSearch]=K,r[bn.alignOptionsToRight]=te,r[bn.fullWidthOptions]=ve,r))},K&&s.createElement("div",{className:bn.filterBox},s.createElement("input",{type:"text",name:de+"-q",autoComplete:"off",value:ce,placeholder:Z||Rz,ref:It,onChange:ot})),Lt.map(function(St){var Ee,Oe=h7(St),zt=a1(Oe),y1=Yt(St);return s.createElement("li",{key:St,id:de+"-"+St,role:"option",tabIndex:0,className:ho(bn.selectOption,(Ee={},Ee[bn.selectOptionWithlabel]=v,Ee)),onClick:function(){return n1(St)},onKeyUp:function(Mt){return vt(Mt,St)}},s.createElement("span",{className:bn.selectOptionValue},s.createElement("span",{className:bn.selectFlag},s.createElement(zt,null)),v&&s.createElement("span",{className:bn.label},E3(y1)?y1.primary:y1),w&&E3(y1)&&s.createElement("span",{className:bn.secondaryLabel},y1.secondary)))})))};const Tz=["AF","AL","DZ","AS","AD","AO","AI","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BA","BW","BR","IO","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","CO","KM","CG","CD","CK","CR","CI","HR","CU","CW","CY","CZ","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","PF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GU","GT","GG","GN","GW","HT","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KP","KR","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NZ","NI","NE","NG","NU","NF","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RO","RU","RW","KN","LC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SX","SK","SI","SB","SO","ZA","SS","ES","LK","SD","SR","SZ","SE","CH","SY","TW","TJ","TZ","TH","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UY","UZ","VU","VE","VN","VI","YE","ZM","ZW"],p7={AF:{primary:"Afghanistan",secondary:"+93"},AL:{primary:"Albania",secondary:"+355"},DZ:{primary:"Algeria",secondary:"+213"},AS:{primary:"American Samoa",secondary:"+1-684"},AD:{primary:"Andorra",secondary:"+376"},AO:{primary:"Angola",secondary:"+244"},AI:{primary:"Anguilla",secondary:"+1-264"},AG:{primary:"Antigua and Barbuda",secondary:"+1-268"},AR:{primary:"Argentina",secondary:"+54"},AM:{primary:"Armenia",secondary:"+374"},AW:{primary:"Aruba",secondary:"+297"},AU:{primary:"Australia",secondary:"+61"},AT:{primary:"Austria",secondary:"+43"},AZ:{primary:"Azerbaijan",secondary:"+994"},BS:{primary:"Bahamas",secondary:"+1-242"},BH:{primary:"Bahrain",secondary:"+973"},BD:{primary:"Bangladesh",secondary:"+880"},BB:{primary:"Barbados",secondary:"+1-246"},BY:{primary:"Belarus",secondary:"+375"},BE:{primary:"Belgium",secondary:"+32"},BZ:{primary:"Belize",secondary:"+501"},BJ:{primary:"Benin",secondary:"+229"},BM:{primary:"Bermuda",secondary:"+1-441"},BT:{primary:"Bhutan",secondary:"+975"},BO:{primary:"Bolivia, Plurinational State of",secondary:"+591"},BA:{primary:"Bosnia and Herzegovina",secondary:"+387"},BW:{primary:"Botswana",secondary:"+267"},BR:{primary:"Brazil",secondary:"+55"},IO:{primary:"British Indian Ocean Territory",secondary:"+246"},BG:{primary:"Bulgaria",secondary:"+359"},BF:{primary:"Burkina Faso",secondary:"+226"},BI:{primary:"Burundi",secondary:"+257"},KH:{primary:"Cambodia",secondary:"+855"},CM:{primary:"Cameroon",secondary:"+237"},CA:{primary:"Canada",secondary:"+1"},CV:{primary:"Cape Verde",secondary:"+238"},KY:{primary:"Cayman Islands",secondary:"+1-345"},CF:{primary:"Central African Republic",secondary:"+236"},TD:{primary:"Chad",secondary:"+235"},CL:{primary:"Chile",secondary:"+56"},CN:{primary:"China",secondary:"+86"},CO:{primary:"Colombia",secondary:"+57"},KM:{primary:"Comoros",secondary:"+269"},CG:{primary:"Congo",secondary:"+242"},CD:{primary:"Democratic Republic of the Congo",secondary:"+243"},CK:{primary:"Cook Islands",secondary:"+682"},CR:{primary:"Costa Rica",secondary:"+506"},CI:{primary:"Côte d'Ivoire",secondary:"+225"},HR:{primary:"Croatia",secondary:"+385"},CU:{primary:"Cuba",secondary:"+53"},CW:{primary:"Curaçao",secondary:"+599"},CY:{primary:"Cyprus",secondary:"+357"},CZ:{primary:"Czech Republic",secondary:"+420"},DK:{primary:"Denmark",secondary:"+45"},DJ:{primary:"Djibouti",secondary:"+253"},DM:{primary:"Dominica",secondary:"+1-767"},DO:{primary:"Dominican Republic",secondary:"+1-809, +1-829, +1-849"},EC:{primary:"Ecuador",secondary:"+593"},EG:{primary:"Egypt",secondary:"+20"},SV:{primary:"El Salvador",secondary:"+503"},GQ:{primary:"Equatorial Guinea",secondary:"+240"},ER:{primary:"Eritrea",secondary:"+291"},EE:{primary:"Estonia",secondary:"+372"},ET:{primary:"Ethiopia",secondary:"+251"},FK:{primary:"Falkland Islands (Malvinas)",secondary:"+500"},FO:{primary:"Faroe Islands",secondary:"+298"},FJ:{primary:"Fiji",secondary:"+679"},FI:{primary:"Finland",secondary:"+358"},FR:{primary:"France",secondary:"+33"},PF:{primary:"French Polynesia",secondary:"+689"},GA:{primary:"Gabon",secondary:"+241"},GM:{primary:"Gambia",secondary:"+220"},GE:{primary:"Georgia",secondary:"+995"},DE:{primary:"Germany",secondary:"+49"},GH:{primary:"Ghana",secondary:"+233"},GI:{primary:"Gibraltar",secondary:"+350"},GR:{primary:"Greece",secondary:"+30"},GL:{primary:"Greenland",secondary:"+299"},GD:{primary:"Grenada",secondary:"+1-473"},GU:{primary:"Guam",secondary:"+1-671"},GT:{primary:"Guatemala",secondary:"+502"},GG:{primary:"Guernsey",secondary:"+44-1481"},GN:{primary:"Guinea",secondary:"+224"},GW:{primary:"Guinea-Bissau",secondary:"+245"},HT:{primary:"Haiti",secondary:"+509"},HN:{primary:"Honduras",secondary:"+504"},HK:{primary:"Hong Kong",secondary:"+852"},HU:{primary:"Hungary",secondary:"+36"},IS:{primary:"Iceland",secondary:"+354"},IN:{primary:"India",secondary:"+91"},ID:{primary:"Indonesia",secondary:"+62"},IR:{primary:"Iran, Islamic Republic of",secondary:"+98"},IQ:{primary:"Iraq",secondary:"+964"},IE:{primary:"Ireland",secondary:"+353"},IM:{primary:"Isle of Man",secondary:"+44-1624"},IL:{primary:"Israel",secondary:"+972"},IT:{primary:"Italy",secondary:"+39"},JM:{primary:"Jamaica",secondary:"+1-876"},JP:{primary:"Japan",secondary:"+81"},JE:{primary:"Jersey",secondary:"+44-1534"},JO:{primary:"Jordan",secondary:"+962"},KZ:{primary:"Kazakhstan",secondary:"+7"},KE:{primary:"Kenya",secondary:"+254"},KI:{primary:"Kiribati",secondary:"+686"},KP:{primary:"North Korea",secondary:"+850"},KR:{primary:"South Korea",secondary:"+82"},KW:{primary:"Kuwait",secondary:"+965"},KG:{primary:"Kyrgyzstan",secondary:"+996"},LA:{primary:"Lao People's Democratic Republic",secondary:"+856"},LV:{primary:"Latvia",secondary:"+371"},LB:{primary:"Lebanon",secondary:"+961"},LS:{primary:"Lesotho",secondary:"+266"},LR:{primary:"Liberia",secondary:"+231"},LY:{primary:"Libya",secondary:"+218"},LI:{primary:"Liechtenstein",secondary:"+423"},LT:{primary:"Lithuania",secondary:"+370"},LU:{primary:"Luxembourg",secondary:"+352"},MO:{primary:"Macao",secondary:"+853"},MK:{primary:"Republic of Macedonia",secondary:"+389"},MG:{primary:"Madagascar",secondary:"+261"},MW:{primary:"Malawi",secondary:"+265"},MY:{primary:"Malaysia",secondary:"+60"},MV:{primary:"Maldives",secondary:"+960"},ML:{primary:"Mali",secondary:"+223"},MT:{primary:"Malta",secondary:"+356"},MH:{primary:"Marshall Islands",secondary:"+692"},MQ:{primary:"Martinique",secondary:"+596"},MR:{primary:"Mauritania",secondary:"+222"},MU:{primary:"Mauritius",secondary:"+230"},MX:{primary:"Mexico",secondary:"+52"},FM:{primary:"Micronesia, Federated States of",secondary:"+691"},MD:{primary:"Republic of Moldova",secondary:"+373"},MC:{primary:"Monaco",secondary:"+377"},MN:{primary:"Mongolia",secondary:"+976"},ME:{primary:"Montenegro",secondary:"+382"},MS:{primary:"Montserrat",secondary:"+1-664"},MA:{primary:"Morocco",secondary:"+212"},MZ:{primary:"Mozambique",secondary:"+258"},MM:{primary:"Myanmar",secondary:"+95"},NA:{primary:"Namibia",secondary:"+264"},NR:{primary:"Nauru",secondary:"+674"},NP:{primary:"Nepal",secondary:"+977"},NL:{primary:"Netherlands",secondary:"+31"},NC:{primary:"New Caledonia",secondary:"+687"},NZ:{primary:"New Zealand",secondary:"+64"},NI:{primary:"Nicaragua",secondary:"+505"},NE:{primary:"Niger",secondary:"+227"},NG:{primary:"Nigeria",secondary:"+234"},NU:{primary:"Niue",secondary:"+683"},MP:{primary:"Northern Mariana Islands",secondary:"+1-670"},NO:{primary:"Norway",secondary:"+47"},OM:{primary:"Oman",secondary:"+968"},PK:{primary:"Pakistan",secondary:"+92"},PW:{primary:"Palau",secondary:"+680"},PS:{primary:"Palestine, State of",secondary:"+970"},PA:{primary:"Panama",secondary:"+507"},PG:{primary:"Papua New Guinea",secondary:"+675"},PY:{primary:"Paraguay",secondary:"+595"},PE:{primary:"Peru",secondary:"+51"},PH:{primary:"Philippines",secondary:"+63"},PL:{primary:"Poland",secondary:"+48"},PT:{primary:"Portugal",secondary:"+351"},PR:{primary:"Puerto Rico",secondary:"+1-787, +1-939"},QA:{primary:"Qatar",secondary:"+974"},RO:{primary:"Romania",secondary:"+40"},RU:{primary:"Russian Federation",secondary:"+7"},RW:{primary:"Rwanda",secondary:"+250"},BL:{primary:"Saint Barthélemy",secondary:"+590"},SH:{primary:"Saint Helena, Ascension and Tristan da Cunha",secondary:"+290"},KN:{primary:"Saint Kitts and Nevis",secondary:"+1-869"},LC:{primary:"Saint Lucia",secondary:"+1-758"},MF:{primary:"Saint Martin (French part)",secondary:"+590"},PM:{primary:"Saint Pierre and Miquelon",secondary:"+508"},VC:{primary:"Saint Vincent and the Grenadines",secondary:"+1-784"},WS:{primary:"Samoa",secondary:"+685"},SM:{primary:"San Marino",secondary:"+378"},ST:{primary:"Sao Tome and Principe",secondary:"+239"},SA:{primary:"Saudi Arabia",secondary:"+966"},SN:{primary:"Senegal",secondary:"+221"},RS:{primary:"Serbia",secondary:"+381"},SC:{primary:"Seychelles",secondary:"+248"},SL:{primary:"Sierra Leone",secondary:"+232"},SG:{primary:"Singapore",secondary:"+65"},SX:{primary:"Sint Maarten (Dutch part)",secondary:"+1-721"},SK:{primary:"Slovakia",secondary:"+421"},SI:{primary:"Slovenia",secondary:"+386"},SB:{primary:"Solomon Islands",secondary:"+677"},SO:{primary:"Somalia",secondary:"+252"},ZA:{primary:"South Africa",secondary:"+27"},SS:{primary:"South Sudan",secondary:"+211"},ES:{primary:"Spain",secondary:"+34"},LK:{primary:"Sri Lanka",secondary:"+94"},SD:{primary:"Sudan",secondary:"+249"},SR:{primary:"Suriname",secondary:"+597"},SJ:{primary:"Svalbard and Jan Mayen",secondary:"+47"},SZ:{primary:"Swaziland",secondary:"+268"},SE:{primary:"Sweden",secondary:"+46"},CH:{primary:"Switzerland",secondary:"+41"},SY:{primary:"Syrian Arab Republic",secondary:"+963"},TW:{primary:"Taiwan, Province of China",secondary:"+886"},TJ:{primary:"Tajikistan",secondary:"+992"},TZ:{primary:"Tanzania, United Republic of",secondary:"+255"},TH:{primary:"Thailand",secondary:"+66"},TL:{primary:"Timor-Leste",secondary:"+670"},TG:{primary:"Togo",secondary:"+228"},TK:{primary:"Tokelau",secondary:"+690"},TO:{primary:"Tonga",secondary:"+676"},TT:{primary:"Trinidad and Tobago",secondary:"+1-868"},TN:{primary:"Tunisia",secondary:"+216"},TR:{primary:"Turkey",secondary:"+90"},TM:{primary:"Turkmenistan",secondary:"+993"},TC:{primary:"Turks and Caicos Islands",secondary:"+1-649"},TV:{primary:"Tuvalu",secondary:"+688"},UG:{primary:"Uganda",secondary:"+256"},UA:{primary:"Ukraine",secondary:"+380"},AE:{primary:"United Arab Emirates",secondary:"+971"},GB:{primary:"United Kingdom",secondary:"+44"},US:{primary:"United States",secondary:"+1"},UY:{primary:"Uruguay",secondary:"+598"},UZ:{primary:"Uzbekistan",secondary:"+998"},VU:{primary:"Vanuatu",secondary:"+678"},VE:{primary:"Venezuela, Bolivarian Republic of",secondary:"+58"},VN:{primary:"Viet Nam",secondary:"+84"},VG:{primary:"Virgin Islands, British",secondary:"+1-284"},VI:{primary:"Virgin Islands, U.S.",secondary:"+1-340"},WF:{primary:"Wallis and Futuna",secondary:"+681"},YE:{primary:"Yemen",secondary:"+967"},ZM:{primary:"Zambia",secondary:"+260"},ZW:{primary:"Zimbabwe",secondary:"+263"}},ov=({placeholderText:e="Enter Your Phone Number",defaultCountry:t="PK",handlePhoneChange:n=r=>{alert(r)}})=>{const[r,a]=s.useState(t),[i,o]=s.useState(""),l=d=>{if(d.target.value.length>=9){let f=p7[r].secondary;n(f+""+d.target.value)}o(d.target.value)},c=d=>{a(d)};return u.jsxs("div",{className:"number-input",children:[u.jsx(Dz,{countries:Tz,customLabels:p7,selected:r,showSelectedLabel:!1,onSelect:c,searchable:!0,fullWidth:!0,alignOptionsToRight:!0,className:"custom-country-select"}),u.jsx("input",{type:"number",placeholder:e,value:i,onChange:l,className:"custom-phone-input"})]})};const Bz=({isAdmin:e=!1,isLoading:t=!1,iconType:n="plus",onClick:r})=>e?null:t?u.jsx(hn,{height:"36",width:"36"}):u.jsx(Tr,{shape:"circular",color:"gray",variant:"tertiary",iconType:n,onClick:r,sizeVariant:"xs"}),Oz=({assigneeName:e,assigneeMail:t,iconType:n="plus",isLoading:r=!1,isAdmin:a=!1,onClick:i})=>{const o=!e||!e.trim();return u.jsxs("div",{className:`assignmentCreation ${n}`,children:[u.jsx("div",{className:"addTribeMemberCard--Initials",children:o?"U":Os(e).toUpperCase()}),u.jsxs("span",{className:"addTribeMemberCard--TextAndButton",children:[u.jsxs("span",{className:"addTribeMemberCard--Details",children:[u.jsx("span",{className:"addTribeMemberCard--Name",children:u.jsx(Nn,{maxWidth:"100%",children:e})}),u.jsx("span",{className:"addTribeMemberCard--Mail",children:u.jsx(Nn,{maxWidth:"100%",children:t})}),a&&u.jsx(lv,{showIcon:!1,text:"Owner",variant:"neutral"})]}),Bz({iconType:n,isAdmin:a,isLoading:r,onClick:i})]})]})};const Nz=({date:e="Sept 20",fullName:t="Raja Zain",initials:n="RZ",initialsIconSize:r="24",initialsColor:a="white",initialsBackground:i="#B4C6FC",heading:o="CEOs Fortune 500 Companies",location:l="New York, NY",showNotSpecified:c=!1,showLocation:d=!1})=>u.jsxs("span",{className:"assignment-info-subheader",children:[u.jsxs("span",{className:"header",children:[o,c&&u.jsx("span",{className:"pipeline",children:"|"}),c&&u.jsx("span",{className:"svg",children:u.jsx(Je,{iconType:"officeBuilding",iconSize:"18"})}),c&&u.jsx("span",{className:"specified",children:"Not Specfied"})]}),d&&u.jsxs("span",{className:"location",children:[u.jsx("span",{className:"svg",children:u.jsx(Je,{iconType:"location",iconSize:"18"})}),u.jsx("span",{children:l})]}),u.jsxs("span",{className:"footer",children:[u.jsx("span",{className:"svg",children:u.jsx(Je,{iconType:"calendar",iconSize:"18"})}),u.jsxs("span",{children:["Created ",e," by"]}),u.jsx("span",{className:`icon w-${r}`,style:{background:i,color:a},children:n}),u.jsx("span",{className:"name",children:t})]})]});const Pz=({notes:e,onNotesViewAllClick:t})=>u.jsx(u.Fragment,{children:u.jsxs("section",{className:"notes--container",children:[u.jsxs("div",{className:"notes-header",children:[u.jsx("span",{className:"text",children:"Notes"}),u.jsx("span",{children:u.jsx(Pn,{colorVariant:"gray",sizeVariant:"sm",text:e!=null&&e.content?"View":"Add",onClick:t})})]}),(e==null?void 0:e.content)&&u.jsxs("div",{className:"notes-body",children:[u.jsxs("div",{className:"notes-contributors",children:[e.contributors.slice(0,3).map(({name:n,iconURL:r})=>u.jsxs("span",{children:[r?u.jsx(Jn,{iconPath:r}):u.jsx("p",{className:"notes--collaborators--initials",children:Os(n)})," "]},n))," ",e.contributors.length>3&&u.jsxs("p",{children:["+ ",e.contributors.length-3," More"]})]}),u.jsx("div",{className:"notes-content",dangerouslySetInnerHTML:{__html:e.content}})]}),!(e!=null&&e.content)&&u.jsx("div",{className:"notes-body",children:u.jsx("p",{children:"No notes added"})})]})});const Iz=({iconPath:e="https://media.licdn.com/dms/image/C5603AQHn7tbH46HwRw/profile-displayphoto-shrink_100_100/0/1651460224714?e=1688601600&v=beta&t=Rp0HL0Q-b3zSydvEhWzj67pxqvi5lIRF-ZlLloVru4o",iconSize:t="88",name:n="Ethan Brown",designation:r="VP Product @ Beyond Meat",universalName:a,urn:i,recentCompany:o,location:l,onViewProfileButtonClick:c,onCompanyNameClick:d})=>u.jsx("div",{className:"profileCard",children:u.jsxs("span",{className:"body-profile-card",children:[u.jsx("span",{children:u.jsx(Jn,{iconPath:e,iconSize:t,altImageType:"profile"})}),u.jsxs("span",{className:"profile-details-section",children:[u.jsx("span",{className:"person-name",children:n}),u.jsxs("span",{className:"designation",children:[`${r} at `,u.jsx("span",{className:"companyName",onClick:()=>d(a,i),children:o})]}),u.jsx("span",{className:"location",children:l})]}),u.jsx("span",{className:"view-profile-button-istcardcolum",children:u.jsx(ro,{text:"View Full Profile",colorVariant:"orange",onClick:c,sizeVariant:"xs"})})]})});const Vz=({onCampaignClick:e})=>u.jsx("div",{className:"prospect--campaign--container",children:u.jsxs("div",{className:"header",children:[u.jsx("span",{children:"Campaigns"}),u.jsx(Pn,{colorVariant:"gray",sizeVariant:"sm",text:"View",onClick:e})]})}),Hz=({profileIconPath:e="https://media.licdn.com/dms/image/C5603AQHn7tbH46HwRw/profile-displayphoto-shrink_100_100/0/1651460224714?e=1688601600&v=beta&t=Rp0HL0Q-b3zSydvEhWzj67pxqvi5lIRF-ZlLloVru4o",profileIconSize:t="88",personName:n="Ethan Brown",personDesignation:r="VP Product @ Beyond Meat",personRecentCompany:a,companyLocation:i,onNotesViewAllClick:o,onViewProfileButtonClick:l=()=>{},universalName:c,urn:d,onCompanyNameClick:f,notes:h,campaign:m,onCampaignClick:v=()=>{}})=>u.jsxs("div",{className:"profileCard--Generic",children:[u.jsx("span",{children:u.jsx(Iz,{iconPath:e,iconSize:t,name:n,universalName:c,urn:d,onCompanyNameClick:f,designation:r,recentCompany:a,location:i,onViewProfileButtonClick:l})}),!!(m!=null&&m.id)&&u.jsx("span",{children:u.jsx(Vz,{onCampaignClick:v})}),u.jsx("span",{children:u.jsx(Pz,{notes:h,onNotesViewAllClick:o})})]});const Wz=({iconAltText:e="",institue:t="",degree:n="",from:r="",to:a=""})=>{const i=ut({educationCard:!0,[e]:!1}),o=n==null?void 0:n.trim(),l=t==null?void 0:t.trim(),c=o&&l;return u.jsxs("div",{className:i,children:[u.jsx("div",{className:"educationCard--ImagePlaceholder",children:u.jsx(x5,{width:"24",height:"24"})}),u.jsxs("span",{className:"educationCardDetails",children:[u.jsxs("p",{className:"degreeName",children:[o&&n,l&&u.jsxs("span",{className:"",children:[c?" from ":"",t]})]}),r&&u.jsx("span",{className:"date",children:`${sr(r)} - ${sr(a)}`})]})]})},sv=({educations:e=[],initialItemsToShow:t=3})=>{const[n,r]=s.useState(t),[a,i]=s.useState(`${e.length>t?e.length-t:e.length} More`);return u.jsx(u.Fragment,{children:u.jsxs("ul",{className:"education--ul--container",children:[e==null?void 0:e.slice(0,n).map((o,l)=>u.jsx("li",{className:"education-li",children:u.jsx(Wz,{iconAltText:o.iconAltText,degree:o.degree,institue:o.institue,from:o.from,to:o.to})},l)),u.jsx("li",{className:"education-more-button-li",children:e.length>t&&e.length-t>=0&&u.jsx(Pn,{colorVariant:"gray",sizeVariant:"sm",text:a,onClick:()=>{e.length===n?i(`${e.length-t} More`):i("View less"),r(e.length===n?t:e.length)}})})]})})};const Kz=({iconUrl:e="",position:t="",company:n="",from:r="",to:a="",universalName:i="",urn:o="",onExperienceCompanyClick:l,industries:c=[]})=>{const[d,f]=s.useState(!1);s.useEffect(()=>{f(!e)},[e]);const h=!!r;return u.jsxs("div",{className:"experienceCard--Assignmnet",children:[d?u.jsx("div",{className:"companyPlaceholder",children:u.jsx(Je,{iconSize:"40",iconType:"company"})}):u.jsx("img",{width:40,height:40,src:e,onError:()=>{f(!0)}}),u.jsxs("span",{className:"experienceCardDetails",children:[u.jsx("span",{className:"header",children:u.jsxs("p",{children:[u.jsx("span",{children:t}),u.jsx("span",{children:" at "}),u.jsx("span",{onClick:()=>{l(i,o)},className:"company",children:n})]})}),h&&u.jsxs("p",{className:"date",children:[sr(r)," - ",sr(a)]}),(c==null?void 0:c.length)!==0&&u.jsxs("span",{className:"skillsAndIndustries",children:[u.jsx("h2",{children:"INDUSTRIES"}),u.jsx("span",{children:c.map((m,v)=>u.jsx(aa,{highlightPill:!0,text:m},v))})]})]})]})},Uz=({experiences:e,initialItemsToShow:t,onCompanyClick:n})=>{const[r,a]=s.useState(t),[i,o]=s.useState(`${e.length>t?e.length-t:e.length} More`);return u.jsx(u.Fragment,{children:u.jsxs("ul",{className:"experience--ul--container",children:[e==null?void 0:e.slice(0,r).map((l,c)=>u.jsx("li",{className:"experience-li",children:u.jsx(Kz,{iconUrl:l.iconUrl,position:l.position,company:l.company,from:l.from,to:l.to,separator:l.separator,universalName:l.universalName,urn:l.urn,onExperienceCompanyClick:n,industries:l.industries})},c)),u.jsx("li",{className:"experience-more-button-li",children:e.length>t&&e.length-t>=0&&u.jsx(Pn,{colorVariant:"gray",sizeVariant:"sm",text:i,onClick:()=>{e.length===r?o(`${e.length-t} More`):o("View less"),a(e.length===r?t:e.length)}})})]})})};const Gz=({initialItemsToShow:e=3,experiencesList:t,educationsList:n,onExpoerienceCompanyClick:r})=>u.jsx("div",{className:"profileDetailedCard--Generic",children:u.jsxs("span",{className:"experenieceAndEducationSection",children:[u.jsxs("span",{className:"profileDetailedCard-Experience",children:[u.jsx("span",{className:"profileDetailedCard-DivisionHeading",children:"Experience"}),(t==null?void 0:t.length)===0||!t?u.jsx("div",{children:"No experiences found"}):u.jsx(Uz,{experiences:t,initialItemsToShow:e,onCompanyClick:r})]}),u.jsxs("span",{className:"profileDetailedCard-Education",children:[u.jsx("span",{className:"profileDetailedCard-DivisionHeading",children:"Education"}),(n==null?void 0:n.length)===0||!n?u.jsx("div",{children:"No record of education found"}):u.jsx(sv,{educations:n,initialItemsToShow:e})]})]})});const Yz=({profileIndex:e,publicIdentifier:t,profileIconPath:n,profileIconSize:r,personName:a,personDesignation:i,personRecentCompany:o,recentCompanyUniversalName:l,recentCompanyUrn:c,companyLocation:d,notes:f,onCheckboxSelected:h,onNotesViewAllClick:m,initialItemsToShow:v,skillsMissingList:g,skillsMatchingList:w,industryMissingList:x,industryMatchingList:C,experiencesList:M,educationsList:A,onViewDetailsClick:F=ue=>{},onCompanyClick:S,handleStarClick:B,starSelected:I=!1,checkSelected:K=!1,isStarIconShown:Z=!0,onCampaignClick:X=()=>{},campaign:te})=>{const ue=()=>{h(t)},Q=()=>{B(t)};return u.jsxs("span",{className:`assignment-ideal-profile-card--Generic ${K?"checkboxChecked":""}`,children:[u.jsxs("span",{className:"left-component-ideal-profile",children:[u.jsxs("span",{className:"profilecard-header-checkboxandstar-emoji",children:[u.jsxs("span",{className:"check-box--profilecard",children:[e&&u.jsxs("p",{children:[e,"."]}),u.jsx(n2,{checked:K,onClick:ue})]}),Z&&u.jsx("span",{className:`profilecard-header-star ${I?"":"starNotChecked"}`,children:u.jsx(Tr,{shape:"circular",iconType:"star",variant:"tertiary",color:"gray",iconSize:"20",sizeVariant:"sm",onClick:Q})})]}),u.jsx(Hz,{profileIconPath:n,profileIconSize:r,personName:a,personDesignation:i,personRecentCompany:o,companyLocation:d,universalName:l,urn:c,notes:f,onNotesViewAllClick:()=>m(t),onViewProfileButtonClick:()=>F(t),onCompanyNameClick:S,onCampaignClick:X,campaign:te})]}),u.jsx(Gz,{initialItemsToShow:v,skillsMissingList:g,skillsMatchingList:w,industryMissingList:x,industryMatchingList:C,experiencesList:M,educationsList:A,onExpoerienceCompanyClick:S})]})};const lv=({showIcon:e=!0,showIconOnLeft:t=!0,iconSize:n="18",iconType:r="excalamationCircle",text:a="Warning",isTransparent:i=!1,variant:o="warning"})=>{const l=ut({[`badgeNonClickable--${r6(o)}`]:!0,"badgeNonClickable--RowReverse":t,"badgeNonClickable--Transparent":i});return u.jsxs("div",{className:l,children:[e&&u.jsx(Je,{iconType:r,iconSize:n}),a]})};var cv={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(L2,function(){var n=Array.prototype.slice;function r(p,y){y&&(p.prototype=Object.create(y.prototype)),p.prototype.constructor=p}function a(p){return c(p)?p:qe(p)}r(i,a);function i(p){return d(p)?p:ct(p)}r(o,a);function o(p){return f(p)?p:Ve(p)}r(l,a);function l(p){return c(p)&&!h(p)?p:It(p)}function c(p){return!!(p&&p[v])}function d(p){return!!(p&&p[g])}function f(p){return!!(p&&p[w])}function h(p){return d(p)||f(p)}function m(p){return!!(p&&p[x])}a.isIterable=c,a.isKeyed=d,a.isIndexed=f,a.isAssociative=h,a.isOrdered=m,a.Keyed=i,a.Indexed=o,a.Set=l;var v="@@__IMMUTABLE_ITERABLE__@@",g="@@__IMMUTABLE_KEYED__@@",w="@@__IMMUTABLE_INDEXED__@@",x="@@__IMMUTABLE_ORDERED__@@",C="delete",M=5,A=1<<M,F=A-1,S={},B={value:!1},I={value:!1};function K(p){return p.value=!1,p}function Z(p){p&&(p.value=!0)}function X(){}function te(p,y){y=y||0;for(var z=Math.max(0,p.length-y),L=new Array(z),T=0;T<z;T++)L[T]=p[T+y];return L}function ue(p){return p.size===void 0&&(p.size=p.__iterate(fe)),p.size}function Q(p,y){if(typeof y!="number"){var z=y>>>0;if(""+z!==y||z===4294967295)return NaN;y=z}return y<0?ue(p)+y:y}function fe(){return!0}function he(p,y,z){return(p===0||z!==void 0&&p<=-z)&&(y===void 0||z!==void 0&&y>=z)}function ve(p,y){return le(p,y,0)}function ne(p,y){return le(p,y,y)}function le(p,y,z){return p===void 0?z:p<0?Math.max(0,y+p):y===void 0?p:Math.min(y,p)}var be=0,G=1,de=2,ee=typeof Symbol=="function"&&Symbol.iterator,me="@@iterator",ge=ee||me;function ye(p){this.next=p}ye.prototype.toString=function(){return"[Iterator]"},ye.KEYS=be,ye.VALUES=G,ye.ENTRIES=de,ye.prototype.inspect=ye.prototype.toSource=function(){return this.toString()},ye.prototype[ge]=function(){return this};function q(p,y,z,L){var T=p===0?y:p===1?z:[y,z];return L?L.value=T:L={value:T,done:!1},L}function Le(){return{value:void 0,done:!0}}function pe(p){return!!Me(p)}function je(p){return p&&typeof p.next=="function"}function Te(p){var y=Me(p);return y&&y.call(p)}function Me(p){var y=p&&(ee&&p[ee]||p[me]);if(typeof y=="function")return y}function ce(p){return p&&typeof p.length=="number"}r(qe,a);function qe(p){return p==null?ot():c(p)?p.toSeq():vt(p)}qe.of=function(){return qe(arguments)},qe.prototype.toSeq=function(){return this},qe.prototype.toString=function(){return this.__toString("Seq {","}")},qe.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},qe.prototype.__iterate=function(p,y){return f1(this,p,y,!0)},qe.prototype.__iterator=function(p,y){return St(this,p,y,!0)},r(ct,qe);function ct(p){return p==null?ot().toKeyedSeq():c(p)?d(p)?p.toSeq():p.fromEntrySeq():et(p)}ct.prototype.toKeyedSeq=function(){return this},r(Ve,qe);function Ve(p){return p==null?ot():c(p)?d(p)?p.entrySeq():p.toIndexedSeq():Rt(p)}Ve.of=function(){return Ve(arguments)},Ve.prototype.toIndexedSeq=function(){return this},Ve.prototype.toString=function(){return this.__toString("Seq [","]")},Ve.prototype.__iterate=function(p,y){return f1(this,p,y,!1)},Ve.prototype.__iterator=function(p,y){return St(this,p,y,!1)},r(It,qe);function It(p){return(p==null?ot():c(p)?d(p)?p.entrySeq():p:Rt(p)).toSetSeq()}It.of=function(){return It(arguments)},It.prototype.toSetSeq=function(){return this},qe.isSeq=qt,qe.Keyed=ct,qe.Set=It,qe.Indexed=Ve;var wt="@@__IMMUTABLE_SEQ__@@";qe.prototype[wt]=!0,r(Lt,Ve);function Lt(p){this._array=p,this.size=p.length}Lt.prototype.get=function(p,y){return this.has(p)?this._array[Q(this,p)]:y},Lt.prototype.__iterate=function(p,y){for(var z=this._array,L=z.length-1,T=0;T<=L;T++)if(p(z[y?L-T:T],T,this)===!1)return T+1;return T},Lt.prototype.__iterator=function(p,y){var z=this._array,L=z.length-1,T=0;return new ye(function(){return T>L?Le():q(p,T,z[y?L-T++:T++])})},r(a1,ct);function a1(p){var y=Object.keys(p);this._object=p,this._keys=y,this.size=y.length}a1.prototype.get=function(p,y){return y!==void 0&&!this.has(p)?y:this._object[p]},a1.prototype.has=function(p){return this._object.hasOwnProperty(p)},a1.prototype.__iterate=function(p,y){for(var z=this._object,L=this._keys,T=L.length-1,V=0;V<=T;V++){var H=L[y?T-V:V];if(p(z[H],H,this)===!1)return V+1}return V},a1.prototype.__iterator=function(p,y){var z=this._object,L=this._keys,T=L.length-1,V=0;return new ye(function(){var H=L[y?T-V:V];return V++>T?Le():q(p,H,z[H])})},a1.prototype[x]=!0,r(Ct,Ve);function Ct(p){this._iterable=p,this.size=p.length||p.size}Ct.prototype.__iterateUncached=function(p,y){if(y)return this.cacheResult().__iterate(p,y);var z=this._iterable,L=Te(z),T=0;if(je(L))for(var V;!(V=L.next()).done&&p(V.value,T++,this)!==!1;);return T},Ct.prototype.__iteratorUncached=function(p,y){if(y)return this.cacheResult().__iterator(p,y);var z=this._iterable,L=Te(z);if(!je(L))return new ye(Le);var T=0;return new ye(function(){var V=L.next();return V.done?V:q(p,T++,V.value)})},r(Yt,Ve);function Yt(p){this._iterator=p,this._iteratorCache=[]}Yt.prototype.__iterateUncached=function(p,y){if(y)return this.cacheResult().__iterate(p,y);for(var z=this._iterator,L=this._iteratorCache,T=0;T<L.length;)if(p(L[T],T++,this)===!1)return T;for(var V;!(V=z.next()).done;){var H=V.value;if(L[T]=H,p(H,T++,this)===!1)break}return T},Yt.prototype.__iteratorUncached=function(p,y){if(y)return this.cacheResult().__iterator(p,y);var z=this._iterator,L=this._iteratorCache,T=0;return new ye(function(){if(T>=L.length){var V=z.next();if(V.done)return V;L[T]=V.value}return q(p,T,L[T++])})};function qt(p){return!!(p&&p[wt])}var n1;function ot(){return n1||(n1=new Lt([]))}function et(p){var y=Array.isArray(p)?new Lt(p).fromEntrySeq():je(p)?new Yt(p).fromEntrySeq():pe(p)?new Ct(p).fromEntrySeq():typeof p=="object"?new a1(p):void 0;if(!y)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+p);return y}function Rt(p){var y=jt(p);if(!y)throw new TypeError("Expected Array or iterable object of values: "+p);return y}function vt(p){var y=jt(p)||typeof p=="object"&&new a1(p);if(!y)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+p);return y}function jt(p){return ce(p)?new Lt(p):je(p)?new Yt(p):pe(p)?new Ct(p):void 0}function f1(p,y,z,L){var T=p._cache;if(T){for(var V=T.length-1,H=0;H<=V;H++){var se=T[z?V-H:H];if(y(se[1],L?se[0]:H,p)===!1)return H+1}return H}return p.__iterateUncached(y,z)}function St(p,y,z,L){var T=p._cache;if(T){var V=T.length-1,H=0;return new ye(function(){var se=T[z?V-H:H];return H++>V?Le():q(y,L?se[0]:H-1,se[1])})}return p.__iteratorUncached(y,z)}function Ee(p,y){return y?Oe(y,p,"",{"":p}):zt(p)}function Oe(p,y,z,L){return Array.isArray(y)?p.call(L,z,Ve(y).map(function(T,V){return Oe(p,T,V,y)})):y1(y)?p.call(L,z,ct(y).map(function(T,V){return Oe(p,T,V,y)})):y}function zt(p){return Array.isArray(p)?Ve(p).map(zt).toList():y1(p)?ct(p).map(zt).toMap():p}function y1(p){return p&&(p.constructor===Object||p.constructor===void 0)}function Mt(p,y){if(p===y||p!==p&&y!==y)return!0;if(!p||!y)return!1;if(typeof p.valueOf=="function"&&typeof y.valueOf=="function"){if(p=p.valueOf(),y=y.valueOf(),p===y||p!==p&&y!==y)return!0;if(!p||!y)return!1}return!!(typeof p.equals=="function"&&typeof y.equals=="function"&&p.equals(y))}function p1(p,y){if(p===y)return!0;if(!c(y)||p.size!==void 0&&y.size!==void 0&&p.size!==y.size||p.__hash!==void 0&&y.__hash!==void 0&&p.__hash!==y.__hash||d(p)!==d(y)||f(p)!==f(y)||m(p)!==m(y))return!1;if(p.size===0&&y.size===0)return!0;var z=!h(p);if(m(p)){var L=p.entries();return y.every(function(xe,Ae){var ze=L.next().value;return ze&&Mt(ze[1],xe)&&(z||Mt(ze[0],Ae))})&&L.next().done}var T=!1;if(p.size===void 0)if(y.size===void 0)typeof p.cacheResult=="function"&&p.cacheResult();else{T=!0;var V=p;p=y,y=V}var H=!0,se=y.__iterate(function(xe,Ae){if(z?!p.has(xe):T?!Mt(xe,p.get(Ae,S)):!Mt(p.get(Ae,S),xe))return H=!1,!1});return H&&p.size===se}r(l1,Ve);function l1(p,y){if(!(this instanceof l1))return new l1(p,y);if(this._value=p,this.size=y===void 0?1/0:Math.max(0,y),this.size===0){if(gn)return gn;gn=this}}l1.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},l1.prototype.get=function(p,y){return this.has(p)?this._value:y},l1.prototype.includes=function(p){return Mt(this._value,p)},l1.prototype.slice=function(p,y){var z=this.size;return he(p,y,z)?this:new l1(this._value,ne(y,z)-ve(p,z))},l1.prototype.reverse=function(){return this},l1.prototype.indexOf=function(p){return Mt(this._value,p)?0:-1},l1.prototype.lastIndexOf=function(p){return Mt(this._value,p)?this.size:-1},l1.prototype.__iterate=function(p,y){for(var z=0;z<this.size;z++)if(p(this._value,z,this)===!1)return z+1;return z},l1.prototype.__iterator=function(p,y){var z=this,L=0;return new ye(function(){return L<z.size?q(p,L++,z._value):Le()})},l1.prototype.equals=function(p){return p instanceof l1?Mt(this._value,p._value):p1(p)};var gn;function yn(p,y){if(!p)throw new Error(y)}r(I1,Ve);function I1(p,y,z){if(!(this instanceof I1))return new I1(p,y,z);if(yn(z!==0,"Cannot step a Range by 0"),p=p||0,y===void 0&&(y=1/0),z=z===void 0?1:Math.abs(z),y<p&&(z=-z),this._start=p,this._end=y,this._step=z,this.size=Math.max(0,Math.ceil((y-p)/z-1)+1),this.size===0){if(fr)return fr;fr=this}}I1.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},I1.prototype.get=function(p,y){return this.has(p)?this._start+Q(this,p)*this._step:y},I1.prototype.includes=function(p){var y=(p-this._start)/this._step;return y>=0&&y<this.size&&y===Math.floor(y)},I1.prototype.slice=function(p,y){return he(p,y,this.size)?this:(p=ve(p,this.size),y=ne(y,this.size),y<=p?new I1(0,0):new I1(this.get(p,this._end),this.get(y,this._end),this._step))},I1.prototype.indexOf=function(p){var y=p-this._start;if(y%this._step===0){var z=y/this._step;if(z>=0&&z<this.size)return z}return-1},I1.prototype.lastIndexOf=function(p){return this.indexOf(p)},I1.prototype.__iterate=function(p,y){for(var z=this.size-1,L=this._step,T=y?this._start+z*L:this._start,V=0;V<=z;V++){if(p(T,V,this)===!1)return V+1;T+=y?-L:L}return V},I1.prototype.__iterator=function(p,y){var z=this.size-1,L=this._step,T=y?this._start+z*L:this._start,V=0;return new ye(function(){var H=T;return T+=y?-L:L,V>z?Le():q(p,V++,H)})},I1.prototype.equals=function(p){return p instanceof I1?this._start===p._start&&this._end===p._end&&this._step===p._step:p1(this,p)};var fr;r(Y1,a);function Y1(){throw TypeError("Abstract")}r(wn,Y1);function wn(){}r(mn,Y1);function mn(){}r(jn,Y1);function jn(){}Y1.Keyed=wn,Y1.Indexed=mn,Y1.Set=jn;var Xn=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(y,z){y=y|0,z=z|0;var L=y&65535,T=z&65535;return L*T+((y>>>16)*T+L*(z>>>16)<<16>>>0)|0};function Qn(p){return p>>>1&1073741824|p&3221225471}function ln(p){if(p===!1||p===null||p===void 0||typeof p.valueOf=="function"&&(p=p.valueOf(),p===!1||p===null||p===void 0))return 0;if(p===!0)return 1;var y=typeof p;if(y==="number"){var z=p|0;for(z!==p&&(z^=p*4294967295);p>4294967295;)p/=4294967295,z^=p;return Qn(z)}if(y==="string")return p.length>cn?va(p):o2(p);if(typeof p.hashCode=="function")return p.hashCode();if(y==="object")return oe(p);if(typeof p.toString=="function")return o2(p.toString());throw new Error("Value type "+y+" cannot be hashed.")}function va(p){var y=Sn[p];return y===void 0&&(y=o2(p),B1===K1&&(B1=0,Sn={}),B1++,Sn[p]=y),y}function o2(p){for(var y=0,z=0;z<p.length;z++)y=31*y+p.charCodeAt(z)|0;return Qn(y)}function oe(p){var y;if(v1&&(y=w1.get(p),y!==void 0)||(y=p[Jt],y!==void 0)||!st&&(y=p.propertyIsEnumerable&&p.propertyIsEnumerable[Jt],y!==void 0||(y=Kt(p),y!==void 0)))return y;if(y=++i1,i1&1073741824&&(i1=0),v1)w1.set(p,y);else{if(Ie!==void 0&&Ie(p)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(st)Object.defineProperty(p,Jt,{enumerable:!1,configurable:!1,writable:!1,value:y});else if(p.propertyIsEnumerable!==void 0&&p.propertyIsEnumerable===p.constructor.prototype.propertyIsEnumerable)p.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},p.propertyIsEnumerable[Jt]=y;else if(p.nodeType!==void 0)p[Jt]=y;else throw new Error("Unable to set a non-enumerable property on object.")}return y}var Ie=Object.isExtensible,st=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function Kt(p){if(p&&p.nodeType>0)switch(p.nodeType){case 1:return p.uniqueID;case 9:return p.documentElement&&p.documentElement.uniqueID}}var v1=typeof WeakMap=="function",w1;v1&&(w1=new WeakMap);var i1=0,Jt="__immutablehash__";typeof Symbol=="function"&&(Jt=Symbol(Jt));var cn=16,K1=255,B1=0,Sn={};function J1(p){yn(p!==1/0,"Cannot perform this action with an infinite size.")}r(c1,wn);function c1(p){return p==null?$n():un(p)&&!m(p)?p:$n().withMutations(function(y){var z=i(p);J1(z.size),z.forEach(function(L,T){return y.set(T,L)})})}c1.prototype.toString=function(){return this.__toString("Map {","}")},c1.prototype.get=function(p,y){return this._root?this._root.get(0,void 0,p,y):y},c1.prototype.set=function(p,y){return p0(this,p,y)},c1.prototype.setIn=function(p,y){return this.updateIn(p,S,function(){return y})},c1.prototype.remove=function(p){return p0(this,p,S)},c1.prototype.deleteIn=function(p){return this.updateIn(p,function(){return S})},c1.prototype.update=function(p,y,z){return arguments.length===1?p(this):this.updateIn([p],y,z)},c1.prototype.updateIn=function(p,y,z){z||(z=y,y=void 0);var L=ya(this,Ze(p),y,z);return L===S?void 0:L},c1.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):$n()},c1.prototype.merge=function(){return ga(this,void 0,arguments)},c1.prototype.mergeWith=function(p){var y=n.call(arguments,1);return ga(this,p,y)},c1.prototype.mergeIn=function(p){var y=n.call(arguments,1);return this.updateIn(p,$n(),function(z){return typeof z.merge=="function"?z.merge.apply(z,y):y[y.length-1]})},c1.prototype.mergeDeep=function(){return ga(this,y0,arguments)},c1.prototype.mergeDeepWith=function(p){var y=n.call(arguments,1);return ga(this,w0(p),y)},c1.prototype.mergeDeepIn=function(p){var y=n.call(arguments,1);return this.updateIn(p,$n(),function(z){return typeof z.mergeDeep=="function"?z.mergeDeep.apply(z,y):y[y.length-1]})},c1.prototype.sort=function(p){return U1(Re(this,p))},c1.prototype.sortBy=function(p,y){return U1(Re(this,y,p))},c1.prototype.withMutations=function(p){var y=this.asMutable();return p(y),y.wasAltered()?y.__ensureOwner(this.__ownerID):this},c1.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new X)},c1.prototype.asImmutable=function(){return this.__ensureOwner()},c1.prototype.wasAltered=function(){return this.__altered},c1.prototype.__iterator=function(p,y){return new W2(this,p,y)},c1.prototype.__iterate=function(p,y){var z=this,L=0;return this._root&&this._root.iterate(function(T){return L++,p(T[1],T[0],z)},y),L},c1.prototype.__ensureOwner=function(p){return p===this.__ownerID?this:p?K2(this.size,this._root,p,this.__hash):(this.__ownerID=p,this.__altered=!1,this)};function un(p){return!!(p&&p[li])}c1.isMap=un;var li="@@__IMMUTABLE_MAP__@@",h1=c1.prototype;h1[li]=!0,h1[C]=h1.remove,h1.removeIn=h1.deleteIn;function s2(p,y){this.ownerID=p,this.entries=y}s2.prototype.get=function(p,y,z,L){for(var T=this.entries,V=0,H=T.length;V<H;V++)if(Mt(z,T[V][0]))return T[V][1];return L},s2.prototype.update=function(p,y,z,L,T,V,H){for(var se=T===S,xe=this.entries,Ae=0,ze=xe.length;Ae<ze&&!Mt(L,xe[Ae][0]);Ae++);var rt=Ae<ze;if(rt?xe[Ae][1]===T:se)return this;if(Z(H),(se||!rt)&&Z(V),!(se&&xe.length===1)){if(!rt&&!se&&xe.length>=x3)return v0(p,xe,L,T);var nt=p&&p===this.ownerID,Zt=nt?xe:te(xe);return rt?se?Ae===ze-1?Zt.pop():Zt[Ae]=Zt.pop():Zt[Ae]=[L,T]:Zt.push([L,T]),nt?(this.entries=Zt,this):new s2(p,Zt)}};function l2(p,y,z){this.ownerID=p,this.bitmap=y,this.nodes=z}l2.prototype.get=function(p,y,z,L){y===void 0&&(y=ln(z));var T=1<<((p===0?y:y>>>p)&F),V=this.bitmap;return V&T?this.nodes[u2(V&T-1)].get(p+M,y,z,L):L},l2.prototype.update=function(p,y,z,L,T,V,H){z===void 0&&(z=ln(L));var se=(y===0?z:z>>>y)&F,xe=1<<se,Ae=this.bitmap,ze=(Ae&xe)!==0;if(!ze&&T===S)return this;var rt=u2(Ae&xe-1),nt=this.nodes,Zt=ze?nt[rt]:void 0,e1=di(Zt,p,y+M,z,L,T,V,H);if(e1===Zt)return this;if(!ze&&e1&&nt.length>=b0)return y3(p,nt,Ae,se,e1);if(ze&&!e1&&nt.length===2&&m0(nt[rt^1]))return nt[rt^1];if(ze&&e1&&nt.length===1&&m0(e1))return e1;var t1=p&&p===this.ownerID,Vn=ze?e1?Ae:Ae^xe:Ae|xe,Rn=ze?e1?pi(nt,rt,e1,t1):x0(nt,rt,t1):w3(nt,rt,e1,t1);return t1?(this.bitmap=Vn,this.nodes=Rn,this):new l2(p,Vn,Rn)};function H2(p,y,z){this.ownerID=p,this.count=y,this.nodes=z}H2.prototype.get=function(p,y,z,L){y===void 0&&(y=ln(z));var T=(p===0?y:y>>>p)&F,V=this.nodes[T];return V?V.get(p+M,y,z,L):L},H2.prototype.update=function(p,y,z,L,T,V,H){z===void 0&&(z=ln(L));var se=(y===0?z:z>>>y)&F,xe=T===S,Ae=this.nodes,ze=Ae[se];if(xe&&!ze)return this;var rt=di(ze,p,y+M,z,L,T,V,H);if(rt===ze)return this;var nt=this.count;if(!ze)nt++;else if(!rt&&(nt--,nt<E0))return g0(p,Ae,nt,se);var Zt=p&&p===this.ownerID,e1=pi(Ae,se,rt,Zt);return Zt?(this.count=nt,this.nodes=e1,this):new H2(p,nt,e1)};function c2(p,y,z){this.ownerID=p,this.keyHash=y,this.entries=z}c2.prototype.get=function(p,y,z,L){for(var T=this.entries,V=0,H=T.length;V<H;V++)if(Mt(z,T[V][0]))return T[V][1];return L},c2.prototype.update=function(p,y,z,L,T,V,H){z===void 0&&(z=ln(L));var se=T===S;if(z!==this.keyHash)return se?this:(Z(H),Z(V),fi(this,p,y,z,[L,T]));for(var xe=this.entries,Ae=0,ze=xe.length;Ae<ze&&!Mt(L,xe[Ae][0]);Ae++);var rt=Ae<ze;if(rt?xe[Ae][1]===T:se)return this;if(Z(H),(se||!rt)&&Z(V),se&&ze===2)return new _n(p,this.keyHash,xe[Ae^1]);var nt=p&&p===this.ownerID,Zt=nt?xe:te(xe);return rt?se?Ae===ze-1?Zt.pop():Zt[Ae]=Zt.pop():Zt[Ae]=[L,T]:Zt.push([L,T]),nt?(this.entries=Zt,this):new c2(p,this.keyHash,Zt)};function _n(p,y,z){this.ownerID=p,this.keyHash=y,this.entry=z}_n.prototype.get=function(p,y,z,L){return Mt(z,this.entry[0])?this.entry[1]:L},_n.prototype.update=function(p,y,z,L,T,V,H){var se=T===S,xe=Mt(L,this.entry[0]);if(xe?T===this.entry[1]:se)return this;if(Z(H),se){Z(V);return}return xe?p&&p===this.ownerID?(this.entry[1]=T,this):new _n(p,this.keyHash,[L,T]):(Z(V),fi(this,p,y,ln(L),[L,T]))},s2.prototype.iterate=c2.prototype.iterate=function(p,y){for(var z=this.entries,L=0,T=z.length-1;L<=T;L++)if(p(z[y?T-L:L])===!1)return!1},l2.prototype.iterate=H2.prototype.iterate=function(p,y){for(var z=this.nodes,L=0,T=z.length-1;L<=T;L++){var V=z[y?T-L:L];if(V&&V.iterate(p,y)===!1)return!1}},_n.prototype.iterate=function(p,y){return p(this.entry)},r(W2,ye);function W2(p,y,z){this._type=y,this._reverse=z,this._stack=p._root&&h0(p._root)}W2.prototype.next=function(){for(var p=this._type,y=this._stack;y;){var z=y.node,L=y.index++,T;if(z.entry){if(L===0)return ci(p,z.entry)}else if(z.entries){if(T=z.entries.length-1,L<=T)return ci(p,z.entries[this._reverse?T-L:L])}else if(T=z.nodes.length-1,L<=T){var V=z.nodes[this._reverse?T-L:L];if(V){if(V.entry)return ci(p,V.entry);y=this._stack=h0(V,y)}continue}y=this._stack=this._stack.__prev}return Le()};function ci(p,y){return q(p,y[0],y[1])}function h0(p,y){return{node:p,index:0,__prev:y}}function K2(p,y,z,L){var T=Object.create(h1);return T.size=p,T._root=y,T.__ownerID=z,T.__hash=L,T.__altered=!1,T}var ui;function $n(){return ui||(ui=K2(0))}function p0(p,y,z){var L,T;if(p._root){var V=K(B),H=K(I);if(L=di(p._root,p.__ownerID,0,void 0,y,z,V,H),!H.value)return p;T=p.size+(V.value?z===S?-1:1:0)}else{if(z===S)return p;T=1,L=new s2(p.__ownerID,[[y,z]])}return p.__ownerID?(p.size=T,p._root=L,p.__hash=void 0,p.__altered=!0,p):L?K2(T,L):$n()}function di(p,y,z,L,T,V,H,se){return p?p.update(y,z,L,T,V,H,se):V===S?p:(Z(se),Z(H),new _n(y,L,[T,V]))}function m0(p){return p.constructor===_n||p.constructor===c2}function fi(p,y,z,L,T){if(p.keyHash===L)return new c2(y,L,[p.entry,T]);var V=(z===0?p.keyHash:p.keyHash>>>z)&F,H=(z===0?L:L>>>z)&F,se,xe=V===H?[fi(p,y,z+M,L,T)]:(se=new _n(y,L,T),V<H?[p,se]:[se,p]);return new l2(y,1<<V|1<<H,xe)}function v0(p,y,z,L){p||(p=new X);for(var T=new _n(p,ln(z),[z,L]),V=0;V<y.length;V++){var H=y[V];T=T.update(p,0,void 0,H[0],H[1])}return T}function g0(p,y,z,L){for(var T=0,V=0,H=new Array(z),se=0,xe=1,Ae=y.length;se<Ae;se++,xe<<=1){var ze=y[se];ze!==void 0&&se!==L&&(T|=xe,H[V++]=ze)}return new l2(p,T,H)}function y3(p,y,z,L,T){for(var V=0,H=new Array(A),se=0;z!==0;se++,z>>>=1)H[se]=z&1?y[V++]:void 0;return H[L]=T,new H2(p,V+1,H)}function ga(p,y,z){for(var L=[],T=0;T<z.length;T++){var V=z[T],H=i(V);c(V)||(H=H.map(function(se){return Ee(se)})),L.push(H)}return hi(p,y,L)}function y0(p,y,z){return p&&p.mergeDeep&&c(y)?p.mergeDeep(y):Mt(p,y)?p:y}function w0(p){return function(y,z,L){if(y&&y.mergeDeepWith&&c(z))return y.mergeDeepWith(p,z);var T=p(y,z,L);return Mt(y,T)?y:T}}function hi(p,y,z){return z=z.filter(function(L){return L.size!==0}),z.length===0?p:p.size===0&&!p.__ownerID&&z.length===1?p.constructor(z[0]):p.withMutations(function(L){for(var T=y?function(H,se){L.update(se,S,function(xe){return xe===S?H:y(xe,H,se)})}:function(H,se){L.set(se,H)},V=0;V<z.length;V++)z[V].forEach(T)})}function ya(p,y,z,L){var T=p===S,V=y.next();if(V.done){var H=T?z:p,se=L(H);return se===H?p:se}yn(T||p&&p.set,"invalid keyPath");var xe=V.value,Ae=T?S:p.get(xe,S),ze=ya(Ae,y,z,L);return ze===Ae?p:ze===S?p.remove(xe):(T?$n():p).set(xe,ze)}function u2(p){return p=p-(p>>1&1431655765),p=(p&858993459)+(p>>2&858993459),p=p+(p>>4)&252645135,p=p+(p>>8),p=p+(p>>16),p&127}function pi(p,y,z,L){var T=L?p:te(p);return T[y]=z,T}function w3(p,y,z,L){var T=p.length+1;if(L&&y+1===T)return p[y]=z,p;for(var V=new Array(T),H=0,se=0;se<T;se++)se===y?(V[se]=z,H=-1):V[se]=p[se+H];return V}function x0(p,y,z){var L=p.length-1;if(z&&y===L)return p.pop(),p;for(var T=new Array(L),V=0,H=0;H<L;H++)H===y&&(V=1),T[H]=p[H+V];return T}var x3=A/4,b0=A/2,E0=A/4;r(F1,mn);function F1(p){var y=yi();if(p==null)return y;if(A0(p))return p;var z=o(p),L=z.size;return L===0?y:(J1(L),L>0&&L<A?U2(0,L,M,null,new hr(z.toArray())):y.withMutations(function(T){T.setSize(L),z.forEach(function(V,H){return T.set(H,V)})}))}F1.of=function(){return this(arguments)},F1.prototype.toString=function(){return this.__toString("List [","]")},F1.prototype.get=function(p,y){if(p=Q(this,p),p>=0&&p<this.size){p+=this._origin;var z=wa(this,p);return z&&z.array[p&F]}return y},F1.prototype.set=function(p,y){return b3(this,p,y)},F1.prototype.remove=function(p){return this.has(p)?p===0?this.shift():p===this.size-1?this.pop():this.splice(p,1):this},F1.prototype.insert=function(p,y){return this.splice(p,0,y)},F1.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=M,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):yi()},F1.prototype.push=function(){var p=arguments,y=this.size;return this.withMutations(function(z){pr(z,0,y+p.length);for(var L=0;L<p.length;L++)z.set(y+L,p[L])})},F1.prototype.pop=function(){return pr(this,0,-1)},F1.prototype.unshift=function(){var p=arguments;return this.withMutations(function(y){pr(y,-p.length);for(var z=0;z<p.length;z++)y.set(z,p[z])})},F1.prototype.shift=function(){return pr(this,1)},F1.prototype.merge=function(){return Wr(this,void 0,arguments)},F1.prototype.mergeWith=function(p){var y=n.call(arguments,1);return Wr(this,p,y)},F1.prototype.mergeDeep=function(){return Wr(this,y0,arguments)},F1.prototype.mergeDeepWith=function(p){var y=n.call(arguments,1);return Wr(this,w0(p),y)},F1.prototype.setSize=function(p){return pr(this,0,p)},F1.prototype.slice=function(p,y){var z=this.size;return he(p,y,z)?this:pr(this,ve(p,z),ne(y,z))},F1.prototype.__iterator=function(p,y){var z=0,L=vi(this,y);return new ye(function(){var T=L();return T===d2?Le():q(p,z++,T)})},F1.prototype.__iterate=function(p,y){for(var z=0,L=vi(this,y),T;(T=L())!==d2&&p(T,z++,this)!==!1;);return z},F1.prototype.__ensureOwner=function(p){return p===this.__ownerID?this:p?U2(this._origin,this._capacity,this._level,this._root,this._tail,p,this.__hash):(this.__ownerID=p,this)};function A0(p){return!!(p&&p[mi])}F1.isList=A0;var mi="@@__IMMUTABLE_LIST__@@",xn=F1.prototype;xn[mi]=!0,xn[C]=xn.remove,xn.setIn=h1.setIn,xn.deleteIn=xn.removeIn=h1.removeIn,xn.update=h1.update,xn.updateIn=h1.updateIn,xn.mergeIn=h1.mergeIn,xn.mergeDeepIn=h1.mergeDeepIn,xn.withMutations=h1.withMutations,xn.asMutable=h1.asMutable,xn.asImmutable=h1.asImmutable,xn.wasAltered=h1.wasAltered;function hr(p,y){this.array=p,this.ownerID=y}hr.prototype.removeBefore=function(p,y,z){if(z===y?1<<y:this.array.length===0)return this;var L=z>>>y&F;if(L>=this.array.length)return new hr([],p);var T=L===0,V;if(y>0){var H=this.array[L];if(V=H&&H.removeBefore(p,y-M,z),V===H&&T)return this}if(T&&!V)return this;var se=f2(this,p);if(!T)for(var xe=0;xe<L;xe++)se.array[xe]=void 0;return V&&(se.array[L]=V),se},hr.prototype.removeAfter=function(p,y,z){if(z===(y?1<<y:0)||this.array.length===0)return this;var L=z-1>>>y&F;if(L>=this.array.length)return this;var T;if(y>0){var V=this.array[L];if(T=V&&V.removeAfter(p,y-M,z),T===V&&L===this.array.length-1)return this}var H=f2(this,p);return H.array.splice(L+1),T&&(H.array[L]=T),H};var d2={};function vi(p,y){var z=p._origin,L=p._capacity,T=Kr(L),V=p._tail;return H(p._root,p._level,0);function H(Ae,ze,rt){return ze===0?se(Ae,rt):xe(Ae,ze,rt)}function se(Ae,ze){var rt=ze===T?V&&V.array:Ae&&Ae.array,nt=ze>z?0:z-ze,Zt=L-ze;return Zt>A&&(Zt=A),function(){if(nt===Zt)return d2;var e1=y?--Zt:nt++;return rt&&rt[e1]}}function xe(Ae,ze,rt){var nt,Zt=Ae&&Ae.array,e1=rt>z?0:z-rt>>ze,t1=(L-rt>>ze)+1;return t1>A&&(t1=A),function(){do{if(nt){var Vn=nt();if(Vn!==d2)return Vn;nt=null}if(e1===t1)return d2;var Rn=y?--t1:e1++;nt=H(Zt&&Zt[Rn],ze-M,rt+(Rn<<ze))}while(!0)}}}function U2(p,y,z,L,T,V,H){var se=Object.create(xn);return se.size=y-p,se._origin=p,se._capacity=y,se._level=z,se._root=L,se._tail=T,se.__ownerID=V,se.__hash=H,se.__altered=!1,se}var gi;function yi(){return gi||(gi=U2(0,0,M))}function b3(p,y,z){if(y=Q(p,y),y!==y)return p;if(y>=p.size||y<0)return p.withMutations(function(H){y<0?pr(H,y).set(0,z):pr(H,0,y+1).set(y,z)});y+=p._origin;var L=p._tail,T=p._root,V=K(I);return y>=Kr(p._capacity)?L=wi(L,p.__ownerID,0,y,z,V):T=wi(T,p.__ownerID,p._level,y,z,V),V.value?p.__ownerID?(p._root=T,p._tail=L,p.__hash=void 0,p.__altered=!0,p):U2(p._origin,p._capacity,p._level,T,L):p}function wi(p,y,z,L,T,V){var H=L>>>z&F,se=p&&H<p.array.length;if(!se&&T===void 0)return p;var xe;if(z>0){var Ae=p&&p.array[H],ze=wi(Ae,y,z-M,L,T,V);return ze===Ae?p:(xe=f2(p,y),xe.array[H]=ze,xe)}return se&&p.array[H]===T?p:(Z(V),xe=f2(p,y),T===void 0&&H===xe.array.length-1?xe.array.pop():xe.array[H]=T,xe)}function f2(p,y){return y&&p&&y===p.ownerID?p:new hr(p?p.array.slice():[],y)}function wa(p,y){if(y>=Kr(p._capacity))return p._tail;if(y<1<<p._level+M){for(var z=p._root,L=p._level;z&&L>0;)z=z.array[y>>>L&F],L-=M;return z}}function pr(p,y,z){y!==void 0&&(y=y|0),z!==void 0&&(z=z|0);var L=p.__ownerID||new X,T=p._origin,V=p._capacity,H=T+y,se=z===void 0?V:z<0?V+z:T+z;if(H===T&&se===V)return p;if(H>=se)return p.clear();for(var xe=p._level,Ae=p._root,ze=0;H+ze<0;)Ae=new hr(Ae&&Ae.array.length?[void 0,Ae]:[],L),xe+=M,ze+=1<<xe;ze&&(H+=ze,T+=ze,se+=ze,V+=ze);for(var rt=Kr(V),nt=Kr(se);nt>=1<<xe+M;)Ae=new hr(Ae&&Ae.array.length?[Ae]:[],L),xe+=M;var Zt=p._tail,e1=nt<rt?wa(p,se-1):nt>rt?new hr([],L):Zt;if(Zt&&nt>rt&&H<V&&Zt.array.length){Ae=f2(Ae,L);for(var t1=Ae,Vn=xe;Vn>M;Vn-=M){var Rn=rt>>>Vn&F;t1=t1.array[Rn]=f2(t1.array[Rn],L)}t1.array[rt>>>M&F]=Zt}if(se<V&&(e1=e1&&e1.removeAfter(L,0,se)),H>=nt)H-=nt,se-=nt,xe=M,Ae=null,e1=e1&&e1.removeBefore(L,0,H);else if(H>T||nt<rt){for(ze=0;Ae;){var Ea=H>>>xe&F;if(Ea!==nt>>>xe&F)break;Ea&&(ze+=(1<<xe)*Ea),xe-=M,Ae=Ae.array[Ea]}Ae&&H>T&&(Ae=Ae.removeBefore(L,xe,H-ze)),Ae&&nt<rt&&(Ae=Ae.removeAfter(L,xe,nt-ze)),ze&&(H-=ze,se-=ze)}return p.__ownerID?(p.size=se-H,p._origin=H,p._capacity=se,p._level=xe,p._root=Ae,p._tail=e1,p.__hash=void 0,p.__altered=!0,p):U2(H,se,xe,Ae,e1)}function Wr(p,y,z){for(var L=[],T=0,V=0;V<z.length;V++){var H=z[V],se=o(H);se.size>T&&(T=se.size),c(H)||(se=se.map(function(xe){return Ee(xe)})),L.push(se)}return T>p.size&&(p=p.setSize(T)),hi(p,y,L)}function Kr(p){return p<A?0:p-1>>>M<<M}r(U1,c1);function U1(p){return p==null?h2():xi(p)?p:h2().withMutations(function(y){var z=i(p);J1(z.size),z.forEach(function(L,T){return y.set(T,L)})})}U1.of=function(){return this(arguments)},U1.prototype.toString=function(){return this.__toString("OrderedMap {","}")},U1.prototype.get=function(p,y){var z=this._map.get(p);return z!==void 0?this._list.get(z)[1]:y},U1.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):h2()},U1.prototype.set=function(p,y){return S0(this,p,y)},U1.prototype.remove=function(p){return S0(this,p,S)},U1.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},U1.prototype.__iterate=function(p,y){var z=this;return this._list.__iterate(function(L){return L&&p(L[1],L[0],z)},y)},U1.prototype.__iterator=function(p,y){return this._list.fromEntrySeq().__iterator(p,y)},U1.prototype.__ensureOwner=function(p){if(p===this.__ownerID)return this;var y=this._map.__ensureOwner(p),z=this._list.__ensureOwner(p);return p?G2(y,z,p,this.__hash):(this.__ownerID=p,this._map=y,this._list=z,this)};function xi(p){return un(p)&&m(p)}U1.isOrderedMap=xi,U1.prototype[x]=!0,U1.prototype[C]=U1.prototype.remove;function G2(p,y,z,L){var T=Object.create(U1.prototype);return T.size=p?p.size:0,T._map=p,T._list=y,T.__ownerID=z,T.__hash=L,T}var C0;function h2(){return C0||(C0=G2($n(),yi()))}function S0(p,y,z){var L=p._map,T=p._list,V=L.get(y),H=V!==void 0,se,xe;if(z===S){if(!H)return p;T.size>=A&&T.size>=L.size*2?(xe=T.filter(function(Ae,ze){return Ae!==void 0&&V!==ze}),se=xe.toKeyedSeq().map(function(Ae){return Ae[0]}).flip().toMap(),p.__ownerID&&(se.__ownerID=xe.__ownerID=p.__ownerID)):(se=L.remove(y),xe=V===T.size-1?T.pop():T.set(V,void 0))}else if(H){if(z===T.get(V)[1])return p;se=L,xe=T.set(V,[y,z])}else se=L.set(y,T.size),xe=T.set(T.size,[y,z]);return p.__ownerID?(p.size=se.size,p._map=se,p._list=xe,p.__hash=void 0,p):G2(se,xe)}r(In,ct);function In(p,y){this._iter=p,this._useKeys=y,this.size=p.size}In.prototype.get=function(p,y){return this._iter.get(p,y)},In.prototype.has=function(p){return this._iter.has(p)},In.prototype.valueSeq=function(){return this._iter.valueSeq()},In.prototype.reverse=function(){var p=this,y=xa(this,!0);return this._useKeys||(y.valueSeq=function(){return p._iter.toSeq().reverse()}),y},In.prototype.map=function(p,y){var z=this,L=Ei(this,p,y);return this._useKeys||(L.valueSeq=function(){return z._iter.toSeq().map(p,y)}),L},In.prototype.__iterate=function(p,y){var z=this,L;return this._iter.__iterate(this._useKeys?function(T,V){return p(T,V,z)}:(L=y?tt(this):0,function(T){return p(T,y?--L:L++,z)}),y)},In.prototype.__iterator=function(p,y){if(this._useKeys)return this._iter.__iterator(p,y);var z=this._iter.__iterator(G,y),L=y?tt(this):0;return new ye(function(){var T=z.next();return T.done?T:q(p,y?--L:L++,T.value,T)})},In.prototype[x]=!0,r(p2,Ve);function p2(p){this._iter=p,this.size=p.size}p2.prototype.includes=function(p){return this._iter.includes(p)},p2.prototype.__iterate=function(p,y){var z=this,L=0;return this._iter.__iterate(function(T){return p(T,L++,z)},y)},p2.prototype.__iterator=function(p,y){var z=this._iter.__iterator(G,y),L=0;return new ye(function(){var T=z.next();return T.done?T:q(p,L++,T.value,T)})},r(Ur,It);function Ur(p){this._iter=p,this.size=p.size}Ur.prototype.has=function(p){return this._iter.includes(p)},Ur.prototype.__iterate=function(p,y){var z=this;return this._iter.__iterate(function(L){return p(L,L,z)},y)},Ur.prototype.__iterator=function(p,y){var z=this._iter.__iterator(G,y);return new ye(function(){var L=z.next();return L.done?L:q(p,L.value,L.value,L)})},r(Gr,ct);function Gr(p){this._iter=p,this.size=p.size}Gr.prototype.entrySeq=function(){return this._iter.toSeq()},Gr.prototype.__iterate=function(p,y){var z=this;return this._iter.__iterate(function(L){if(L){We(L);var T=c(L);return p(T?L.get(1):L[1],T?L.get(0):L[0],z)}},y)},Gr.prototype.__iterator=function(p,y){var z=this._iter.__iterator(G,y);return new ye(function(){for(;;){var L=z.next();if(L.done)return L;var T=L.value;if(T){We(T);var V=c(T);return q(p,V?T.get(0):T[0],V?T.get(1):T[1],L)}}})},p2.prototype.cacheResult=In.prototype.cacheResult=Ur.prototype.cacheResult=Gr.prototype.cacheResult=Gt;function bi(p){var y=ft(p);return y._iter=p,y.size=p.size,y.flip=function(){return p},y.reverse=function(){var z=p.reverse.apply(this);return z.flip=function(){return p.reverse()},z},y.has=function(z){return p.includes(z)},y.includes=function(z){return p.has(z)},y.cacheResult=Gt,y.__iterateUncached=function(z,L){var T=this;return p.__iterate(function(V,H){return z(H,V,T)!==!1},L)},y.__iteratorUncached=function(z,L){if(z===de){var T=p.__iterator(z,L);return new ye(function(){var V=T.next();if(!V.done){var H=V.value[0];V.value[0]=V.value[1],V.value[1]=H}return V})}return p.__iterator(z===G?be:G,L)},y}function Ei(p,y,z){var L=ft(p);return L.size=p.size,L.has=function(T){return p.has(T)},L.get=function(T,V){var H=p.get(T,S);return H===S?V:y.call(z,H,T,p)},L.__iterateUncached=function(T,V){var H=this;return p.__iterate(function(se,xe,Ae){return T(y.call(z,se,xe,Ae),xe,H)!==!1},V)},L.__iteratorUncached=function(T,V){var H=p.__iterator(de,V);return new ye(function(){var se=H.next();if(se.done)return se;var xe=se.value,Ae=xe[0];return q(T,Ae,y.call(z,xe[1],Ae,p),se)})},L}function xa(p,y){var z=ft(p);return z._iter=p,z.size=p.size,z.reverse=function(){return p},p.flip&&(z.flip=function(){var L=bi(p);return L.reverse=function(){return p.flip()},L}),z.get=function(L,T){return p.get(y?L:-1-L,T)},z.has=function(L){return p.has(y?L:-1-L)},z.includes=function(L){return p.includes(L)},z.cacheResult=Gt,z.__iterate=function(L,T){var V=this;return p.__iterate(function(H,se){return L(H,se,V)},!T)},z.__iterator=function(L,T){return p.__iterator(L,!T)},z}function ba(p,y,z,L){var T=ft(p);return L&&(T.has=function(V){var H=p.get(V,S);return H!==S&&!!y.call(z,H,V,p)},T.get=function(V,H){var se=p.get(V,S);return se!==S&&y.call(z,se,V,p)?se:H}),T.__iterateUncached=function(V,H){var se=this,xe=0;return p.__iterate(function(Ae,ze,rt){if(y.call(z,Ae,ze,rt))return xe++,V(Ae,L?ze:xe-1,se)},H),xe},T.__iteratorUncached=function(V,H){var se=p.__iterator(de,H),xe=0;return new ye(function(){for(;;){var Ae=se.next();if(Ae.done)return Ae;var ze=Ae.value,rt=ze[0],nt=ze[1];if(y.call(z,nt,rt,p))return q(V,L?rt:xe++,nt,Ae)}})},T}function b(p,y,z){var L=c1().asMutable();return p.__iterate(function(T,V){L.update(y.call(z,T,V,p),0,function(H){return H+1})}),L.asImmutable()}function R(p,y,z){var L=d(p),T=(m(p)?U1():c1()).asMutable();p.__iterate(function(H,se){T.update(y.call(z,H,se,p),function(xe){return xe=xe||[],xe.push(L?[se,H]:H),xe})});var V=at(p);return T.map(function(H){return Ce(p,V(H))})}function O(p,y,z,L){var T=p.size;if(y!==void 0&&(y=y|0),z!==void 0&&(z=z|0),he(y,z,T))return p;var V=ve(y,T),H=ne(z,T);if(V!==V||H!==H)return O(p.toSeq().cacheResult(),y,z,L);var se=H-V,xe;se===se&&(xe=se<0?0:se);var Ae=ft(p);return Ae.size=xe===0?xe:p.size&&xe||void 0,!L&&qt(p)&&xe>=0&&(Ae.get=function(ze,rt){return ze=Q(this,ze),ze>=0&&ze<xe?p.get(ze+V,rt):rt}),Ae.__iterateUncached=function(ze,rt){var nt=this;if(xe===0)return 0;if(rt)return this.cacheResult().__iterate(ze,rt);var Zt=0,e1=!0,t1=0;return p.__iterate(function(Vn,Rn){if(!(e1&&(e1=Zt++<V)))return t1++,ze(Vn,L?Rn:t1-1,nt)!==!1&&t1!==xe}),t1},Ae.__iteratorUncached=function(ze,rt){if(xe!==0&&rt)return this.cacheResult().__iterator(ze,rt);var nt=xe!==0&&p.__iterator(ze,rt),Zt=0,e1=0;return new ye(function(){for(;Zt++<V;)nt.next();if(++e1>xe)return Le();var t1=nt.next();return L||ze===G?t1:ze===be?q(ze,e1-1,void 0,t1):q(ze,e1-1,t1.value[1],t1)})},Ae}function N(p,y,z){var L=ft(p);return L.__iterateUncached=function(T,V){var H=this;if(V)return this.cacheResult().__iterate(T,V);var se=0;return p.__iterate(function(xe,Ae,ze){return y.call(z,xe,Ae,ze)&&++se&&T(xe,Ae,H)}),se},L.__iteratorUncached=function(T,V){var H=this;if(V)return this.cacheResult().__iterator(T,V);var se=p.__iterator(de,V),xe=!0;return new ye(function(){if(!xe)return Le();var Ae=se.next();if(Ae.done)return Ae;var ze=Ae.value,rt=ze[0],nt=ze[1];return y.call(z,nt,rt,H)?T===de?Ae:q(T,rt,nt,Ae):(xe=!1,Le())})},L}function _(p,y,z,L){var T=ft(p);return T.__iterateUncached=function(V,H){var se=this;if(H)return this.cacheResult().__iterate(V,H);var xe=!0,Ae=0;return p.__iterate(function(ze,rt,nt){if(!(xe&&(xe=y.call(z,ze,rt,nt))))return Ae++,V(ze,L?rt:Ae-1,se)}),Ae},T.__iteratorUncached=function(V,H){var se=this;if(H)return this.cacheResult().__iterator(V,H);var xe=p.__iterator(de,H),Ae=!0,ze=0;return new ye(function(){var rt,nt,Zt;do{if(rt=xe.next(),rt.done)return L||V===G?rt:V===be?q(V,ze++,void 0,rt):q(V,ze++,rt.value[1],rt);var e1=rt.value;nt=e1[0],Zt=e1[1],Ae&&(Ae=y.call(z,Zt,nt,se))}while(Ae);return V===de?rt:q(V,nt,Zt,rt)})},T}function U(p,y){var z=d(p),L=[p].concat(y).map(function(H){return c(H)?z&&(H=i(H)):H=z?et(H):Rt(Array.isArray(H)?H:[H]),H}).filter(function(H){return H.size!==0});if(L.length===0)return p;if(L.length===1){var T=L[0];if(T===p||z&&d(T)||f(p)&&f(T))return T}var V=new Lt(L);return z?V=V.toKeyedSeq():f(p)||(V=V.toSetSeq()),V=V.flatten(!0),V.size=L.reduce(function(H,se){if(H!==void 0){var xe=se.size;if(xe!==void 0)return H+xe}},0),V}function ae(p,y,z){var L=ft(p);return L.__iterateUncached=function(T,V){var H=0,se=!1;function xe(Ae,ze){var rt=this;Ae.__iterate(function(nt,Zt){return(!y||ze<y)&&c(nt)?xe(nt,ze+1):T(nt,z?Zt:H++,rt)===!1&&(se=!0),!se},V)}return xe(p,0),H},L.__iteratorUncached=function(T,V){var H=p.__iterator(T,V),se=[],xe=0;return new ye(function(){for(;H;){var Ae=H.next();if(Ae.done!==!1){H=se.pop();continue}var ze=Ae.value;if(T===de&&(ze=ze[1]),(!y||se.length<y)&&c(ze))se.push(H),H=ze.__iterator(T,V);else return z?Ae:q(T,xe++,ze,Ae)}return Le()})},L}function Fe(p,y,z){var L=at(p);return p.toSeq().map(function(T,V){return L(y.call(z,T,V,p))}).flatten(!0)}function ke(p,y){var z=ft(p);return z.size=p.size&&p.size*2-1,z.__iterateUncached=function(L,T){var V=this,H=0;return p.__iterate(function(se,xe){return(!H||L(y,H++,V)!==!1)&&L(se,H++,V)!==!1},T),H},z.__iteratorUncached=function(L,T){var V=p.__iterator(G,T),H=0,se;return new ye(function(){return(!se||H%2)&&(se=V.next(),se.done)?se:H%2?q(L,H++,y):q(L,H++,se.value,se)})},z}function Re(p,y,z){y||(y=xt);var L=d(p),T=0,V=p.toSeq().map(function(H,se){return[se,H,T++,z?z(H,se,p):H]}).toArray();return V.sort(function(H,se){return y(H[3],se[3])||H[2]-se[2]}).forEach(L?function(H,se){V[se].length=2}:function(H,se){V[se]=H[1]}),L?ct(V):f(p)?Ve(V):It(V)}function Ye(p,y,z){if(y||(y=xt),z){var L=p.toSeq().map(function(T,V){return[T,z(T,V,p)]}).reduce(function(T,V){return Ke(y,T[1],V[1])?V:T});return L&&L[0]}else return p.reduce(function(T,V){return Ke(y,T,V)?V:T})}function Ke(p,y,z){var L=p(z,y);return L===0&&z!==y&&(z==null||z!==z)||L>0}function He(p,y,z){var L=ft(p);return L.size=new Lt(z).map(function(T){return T.size}).min(),L.__iterate=function(T,V){for(var H=this.__iterator(G,V),se,xe=0;!(se=H.next()).done&&T(se.value,xe++,this)!==!1;);return xe},L.__iteratorUncached=function(T,V){var H=z.map(function(Ae){return Ae=a(Ae),Te(V?Ae.reverse():Ae)}),se=0,xe=!1;return new ye(function(){var Ae;return xe||(Ae=H.map(function(ze){return ze.next()}),xe=Ae.some(function(ze){return ze.done})),xe?Le():q(T,se++,y.apply(null,Ae.map(function(ze){return ze.value})))})},L}function Ce(p,y){return qt(p)?y:p.constructor(y)}function We(p){if(p!==Object(p))throw new TypeError("Expected [K, V] tuple: "+p)}function tt(p){return J1(p.size),ue(p)}function at(p){return d(p)?i:f(p)?o:l}function ft(p){return Object.create((d(p)?ct:f(p)?Ve:It).prototype)}function Gt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):qe.prototype.cacheResult.call(this)}function xt(p,y){return p>y?1:p<y?-1:0}function Ze(p){var y=Te(p);if(!y){if(!ce(p))throw new TypeError("Expected iterable or array-like: "+p);y=Te(a(p))}return y}r(Ft,wn);function Ft(p,y){var z,L=function(H){if(H instanceof L)return H;if(!(this instanceof L))return new L(H);if(!z){z=!0;var se=Object.keys(p);Nt(T,se),T.size=se.length,T._name=y,T._keys=se,T._defaultValues=p}this._map=c1(H)},T=L.prototype=Object.create(Qe);return T.constructor=L,L}Ft.prototype.toString=function(){return this.__toString(s1(this)+" {","}")},Ft.prototype.has=function(p){return this._defaultValues.hasOwnProperty(p)},Ft.prototype.get=function(p,y){if(!this.has(p))return y;var z=this._defaultValues[p];return this._map?this._map.get(p,z):z},Ft.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var p=this.constructor;return p._empty||(p._empty=Ot(this,$n()))},Ft.prototype.set=function(p,y){if(!this.has(p))throw new Error('Cannot set unknown key "'+p+'" on '+s1(this));var z=this._map&&this._map.set(p,y);return this.__ownerID||z===this._map?this:Ot(this,z)},Ft.prototype.remove=function(p){if(!this.has(p))return this;var y=this._map&&this._map.remove(p);return this.__ownerID||y===this._map?this:Ot(this,y)},Ft.prototype.wasAltered=function(){return this._map.wasAltered()},Ft.prototype.__iterator=function(p,y){var z=this;return i(this._defaultValues).map(function(L,T){return z.get(T)}).__iterator(p,y)},Ft.prototype.__iterate=function(p,y){var z=this;return i(this._defaultValues).map(function(L,T){return z.get(T)}).__iterate(p,y)},Ft.prototype.__ensureOwner=function(p){if(p===this.__ownerID)return this;var y=this._map&&this._map.__ensureOwner(p);return p?Ot(this,y,p):(this.__ownerID=p,this._map=y,this)};var Qe=Ft.prototype;Qe[C]=Qe.remove,Qe.deleteIn=Qe.removeIn=h1.removeIn,Qe.merge=h1.merge,Qe.mergeWith=h1.mergeWith,Qe.mergeIn=h1.mergeIn,Qe.mergeDeep=h1.mergeDeep,Qe.mergeDeepWith=h1.mergeDeepWith,Qe.mergeDeepIn=h1.mergeDeepIn,Qe.setIn=h1.setIn,Qe.update=h1.update,Qe.updateIn=h1.updateIn,Qe.withMutations=h1.withMutations,Qe.asMutable=h1.asMutable,Qe.asImmutable=h1.asImmutable;function Ot(p,y,z){var L=Object.create(Object.getPrototypeOf(p));return L._map=y,L.__ownerID=z,L}function s1(p){return p._name||p.constructor.name||"Record"}function Nt(p,y){try{y.forEach(Vt.bind(void 0,p))}catch{}}function Vt(p,y){Object.defineProperty(p,y,{get:function(){return this.get(y)},set:function(z){yn(this.__ownerID,"Cannot set on an immutable record."),this.set(y,z)}})}r(Dt,jn);function Dt(p){return p==null?W():Ht(p)&&!m(p)?p:W().withMutations(function(y){var z=l(p);J1(z.size),z.forEach(function(L){return y.add(L)})})}Dt.of=function(){return this(arguments)},Dt.fromKeys=function(p){return this(i(p).keySeq())},Dt.prototype.toString=function(){return this.__toString("Set {","}")},Dt.prototype.has=function(p){return this._map.has(p)},Dt.prototype.add=function(p){return k(this,this._map.set(p,!0))},Dt.prototype.remove=function(p){return k(this,this._map.remove(p))},Dt.prototype.clear=function(){return k(this,this._map.clear())},Dt.prototype.union=function(){var p=n.call(arguments,0);return p=p.filter(function(y){return y.size!==0}),p.length===0?this:this.size===0&&!this.__ownerID&&p.length===1?this.constructor(p[0]):this.withMutations(function(y){for(var z=0;z<p.length;z++)l(p[z]).forEach(function(L){return y.add(L)})})},Dt.prototype.intersect=function(){var p=n.call(arguments,0);if(p.length===0)return this;p=p.map(function(z){return l(z)});var y=this;return this.withMutations(function(z){y.forEach(function(L){p.every(function(T){return T.includes(L)})||z.remove(L)})})},Dt.prototype.subtract=function(){var p=n.call(arguments,0);if(p.length===0)return this;p=p.map(function(z){return l(z)});var y=this;return this.withMutations(function(z){y.forEach(function(L){p.some(function(T){return T.includes(L)})&&z.remove(L)})})},Dt.prototype.merge=function(){return this.union.apply(this,arguments)},Dt.prototype.mergeWith=function(p){var y=n.call(arguments,1);return this.union.apply(this,y)},Dt.prototype.sort=function(p){return Y(Re(this,p))},Dt.prototype.sortBy=function(p,y){return Y(Re(this,y,p))},Dt.prototype.wasAltered=function(){return this._map.wasAltered()},Dt.prototype.__iterate=function(p,y){var z=this;return this._map.__iterate(function(L,T){return p(T,T,z)},y)},Dt.prototype.__iterator=function(p,y){return this._map.map(function(z,L){return L}).__iterator(p,y)},Dt.prototype.__ensureOwner=function(p){if(p===this.__ownerID)return this;var y=this._map.__ensureOwner(p);return p?this.__make(y,p):(this.__ownerID=p,this._map=y,this)};function Ht(p){return!!(p&&p[d1])}Dt.isSet=Ht;var d1="@@__IMMUTABLE_SET__@@",E=Dt.prototype;E[d1]=!0,E[C]=E.remove,E.mergeDeep=E.merge,E.mergeDeepWith=E.mergeWith,E.withMutations=h1.withMutations,E.asMutable=h1.asMutable,E.asImmutable=h1.asImmutable,E.__empty=W,E.__make=D;function k(p,y){return p.__ownerID?(p.size=y.size,p._map=y,p):y===p._map?p:y.size===0?p.__empty():p.__make(y)}function D(p,y){var z=Object.create(E);return z.size=p?p.size:0,z._map=p,z.__ownerID=y,z}var j;function W(){return j||(j=D($n()))}r(Y,Dt);function Y(p){return p==null?De():P(p)?p:De().withMutations(function(y){var z=l(p);J1(z.size),z.forEach(function(L){return y.add(L)})})}Y.of=function(){return this(arguments)},Y.fromKeys=function(p){return this(i(p).keySeq())},Y.prototype.toString=function(){return this.__toString("OrderedSet {","}")};function P(p){return Ht(p)&&m(p)}Y.isOrderedSet=P;var ie=Y.prototype;ie[x]=!0,ie.__empty=De,ie.__make=we;function we(p,y){var z=Object.create(ie);return z.size=p?p.size:0,z._map=p,z.__ownerID=y,z}var Se;function De(){return Se||(Se=we(h2()))}r(Pe,mn);function Pe(p){return p==null?bt():Ne(p)?p:bt().unshiftAll(p)}Pe.of=function(){return this(arguments)},Pe.prototype.toString=function(){return this.__toString("Stack [","]")},Pe.prototype.get=function(p,y){var z=this._head;for(p=Q(this,p);z&&p--;)z=z.next;return z?z.value:y},Pe.prototype.peek=function(){return this._head&&this._head.value},Pe.prototype.push=function(){if(arguments.length===0)return this;for(var p=this.size+arguments.length,y=this._head,z=arguments.length-1;z>=0;z--)y={value:arguments[z],next:y};return this.__ownerID?(this.size=p,this._head=y,this.__hash=void 0,this.__altered=!0,this):Be(p,y)},Pe.prototype.pushAll=function(p){if(p=o(p),p.size===0)return this;J1(p.size);var y=this.size,z=this._head;return p.reverse().forEach(function(L){y++,z={value:L,next:z}}),this.__ownerID?(this.size=y,this._head=z,this.__hash=void 0,this.__altered=!0,this):Be(y,z)},Pe.prototype.pop=function(){return this.slice(1)},Pe.prototype.unshift=function(){return this.push.apply(this,arguments)},Pe.prototype.unshiftAll=function(p){return this.pushAll(p)},Pe.prototype.shift=function(){return this.pop.apply(this,arguments)},Pe.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):bt()},Pe.prototype.slice=function(p,y){if(he(p,y,this.size))return this;var z=ve(p,this.size),L=ne(y,this.size);if(L!==this.size)return mn.prototype.slice.call(this,p,y);for(var T=this.size-z,V=this._head;z--;)V=V.next;return this.__ownerID?(this.size=T,this._head=V,this.__hash=void 0,this.__altered=!0,this):Be(T,V)},Pe.prototype.__ensureOwner=function(p){return p===this.__ownerID?this:p?Be(this.size,this._head,p,this.__hash):(this.__ownerID=p,this.__altered=!1,this)},Pe.prototype.__iterate=function(p,y){if(y)return this.reverse().__iterate(p);for(var z=0,L=this._head;L&&p(L.value,z++,this)!==!1;)L=L.next;return z},Pe.prototype.__iterator=function(p,y){if(y)return this.reverse().__iterator(p);var z=0,L=this._head;return new ye(function(){if(L){var T=L.value;return L=L.next,q(p,z++,T)}return Le()})};function Ne(p){return!!(p&&p[Ue])}Pe.isStack=Ne;var Ue="@@__IMMUTABLE_STACK__@@",Xe=Pe.prototype;Xe[Ue]=!0,Xe.withMutations=h1.withMutations,Xe.asMutable=h1.asMutable,Xe.asImmutable=h1.asImmutable,Xe.wasAltered=h1.wasAltered;function Be(p,y,z,L){var T=Object.create(Xe);return T.size=p,T._head=y,T.__ownerID=z,T.__hash=L,T.__altered=!1,T}var dt;function bt(){return dt||(dt=Be(0))}function At(p,y){var z=function(L){p.prototype[L]=y[L]};return Object.keys(y).forEach(z),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(y).forEach(z),p}a.Iterator=ye,At(a,{toArray:function(){J1(this.size);var p=new Array(this.size||0);return this.valueSeq().__iterate(function(y,z){p[z]=y}),p},toIndexedSeq:function(){return new p2(this)},toJS:function(){return this.toSeq().map(function(p){return p&&typeof p.toJS=="function"?p.toJS():p}).__toJS()},toJSON:function(){return this.toSeq().map(function(p){return p&&typeof p.toJSON=="function"?p.toJSON():p}).__toJS()},toKeyedSeq:function(){return new In(this,!0)},toMap:function(){return c1(this.toKeyedSeq())},toObject:function(){J1(this.size);var p={};return this.__iterate(function(y,z){p[z]=y}),p},toOrderedMap:function(){return U1(this.toKeyedSeq())},toOrderedSet:function(){return Y(d(this)?this.valueSeq():this)},toSet:function(){return Dt(d(this)?this.valueSeq():this)},toSetSeq:function(){return new Ur(this)},toSeq:function(){return f(this)?this.toIndexedSeq():d(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Pe(d(this)?this.valueSeq():this)},toList:function(){return F1(d(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(p,y){return this.size===0?p+y:p+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+y},concat:function(){var p=n.call(arguments,0);return Ce(this,U(this,p))},includes:function(p){return this.some(function(y){return Mt(y,p)})},entries:function(){return this.__iterator(de)},every:function(p,y){J1(this.size);var z=!0;return this.__iterate(function(L,T,V){if(!p.call(y,L,T,V))return z=!1,!1}),z},filter:function(p,y){return Ce(this,ba(this,p,y,!0))},find:function(p,y,z){var L=this.findEntry(p,y);return L?L[1]:z},findEntry:function(p,y){var z;return this.__iterate(function(L,T,V){if(p.call(y,L,T,V))return z=[T,L],!1}),z},findLastEntry:function(p,y){return this.toSeq().reverse().findEntry(p,y)},forEach:function(p,y){return J1(this.size),this.__iterate(y?p.bind(y):p)},join:function(p){J1(this.size),p=p!==void 0?""+p:",";var y="",z=!0;return this.__iterate(function(L){z?z=!1:y+=p,y+=L!=null?L.toString():""}),y},keys:function(){return this.__iterator(be)},map:function(p,y){return Ce(this,Ei(this,p,y))},reduce:function(p,y,z){J1(this.size);var L,T;return arguments.length<2?T=!0:L=y,this.__iterate(function(V,H,se){T?(T=!1,L=V):L=p.call(z,L,V,H,se)}),L},reduceRight:function(p,y,z){var L=this.toKeyedSeq().reverse();return L.reduce.apply(L,arguments)},reverse:function(){return Ce(this,xa(this,!0))},slice:function(p,y){return Ce(this,O(this,p,y,!0))},some:function(p,y){return!this.every(_e(p),y)},sort:function(p){return Ce(this,Re(this,p))},values:function(){return this.__iterator(G)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(p,y){return ue(p?this.toSeq().filter(p,y):this)},countBy:function(p,y){return b(this,p,y)},equals:function(p){return p1(this,p)},entrySeq:function(){var p=this;if(p._cache)return new Lt(p._cache);var y=p.toSeq().map(lt).toIndexedSeq();return y.fromEntrySeq=function(){return p.toSeq()},y},filterNot:function(p,y){return this.filter(_e(p),y)},findLast:function(p,y,z){return this.toKeyedSeq().reverse().find(p,y,z)},first:function(){return this.find(fe)},flatMap:function(p,y){return Ce(this,Fe(this,p,y))},flatten:function(p){return Ce(this,ae(this,p,!0))},fromEntrySeq:function(){return new Gr(this)},get:function(p,y){return this.find(function(z,L){return Mt(L,p)},void 0,y)},getIn:function(p,y){for(var z=this,L=Ze(p),T;!(T=L.next()).done;){var V=T.value;if(z=z&&z.get?z.get(V,S):S,z===S)return y}return z},groupBy:function(p,y){return R(this,p,y)},has:function(p){return this.get(p,S)!==S},hasIn:function(p){return this.getIn(p,S)!==S},isSubset:function(p){return p=typeof p.includes=="function"?p:a(p),this.every(function(y){return p.includes(y)})},isSuperset:function(p){return p=typeof p.isSubset=="function"?p:a(p),p.isSubset(this)},keySeq:function(){return this.toSeq().map(r1).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(p){return Ye(this,p)},maxBy:function(p,y){return Ye(this,y,p)},min:function(p){return Ye(this,p?it(p):Qt)},minBy:function(p,y){return Ye(this,y?it(y):Qt,p)},rest:function(){return this.slice(1)},skip:function(p){return this.slice(Math.max(0,p))},skipLast:function(p){return Ce(this,this.toSeq().reverse().skip(p).reverse())},skipWhile:function(p,y){return Ce(this,_(this,p,y,!0))},skipUntil:function(p,y){return this.skipWhile(_e(p),y)},sortBy:function(p,y){return Ce(this,Re(this,y,p))},take:function(p){return this.slice(0,Math.max(0,p))},takeLast:function(p){return Ce(this,this.toSeq().reverse().take(p).reverse())},takeWhile:function(p,y){return Ce(this,N(this,p,y))},takeUntil:function(p,y){return this.takeWhile(_e(p),y)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=M1(this))}});var Ge=a.prototype;Ge[v]=!0,Ge[ge]=Ge.values,Ge.__toJS=Ge.toArray,Ge.__toStringMapper=Et,Ge.inspect=Ge.toSource=function(){return this.toString()},Ge.chain=Ge.flatMap,Ge.contains=Ge.includes,function(){try{Object.defineProperty(Ge,"length",{get:function(){if(!a.noLengthWarning){var p;try{throw new Error}catch(y){p=y.stack}if(p.indexOf("_wrapObject")===-1)return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+p),this.size}}})}catch{}}(),At(i,{flip:function(){return Ce(this,bi(this))},findKey:function(p,y){var z=this.findEntry(p,y);return z&&z[0]},findLastKey:function(p,y){return this.toSeq().reverse().findKey(p,y)},keyOf:function(p){return this.findKey(function(y){return Mt(y,p)})},lastKeyOf:function(p){return this.findLastKey(function(y){return Mt(y,p)})},mapEntries:function(p,y){var z=this,L=0;return Ce(this,this.toSeq().map(function(T,V){return p.call(y,[V,T],L++,z)}).fromEntrySeq())},mapKeys:function(p,y){var z=this;return Ce(this,this.toSeq().flip().map(function(L,T){return p.call(y,L,T,z)}).flip())}});var Ut=i.prototype;Ut[g]=!0,Ut[ge]=Ge.entries,Ut.__toJS=Ge.toObject,Ut.__toStringMapper=function(p,y){return JSON.stringify(y)+": "+Et(p)},At(o,{toKeyedSeq:function(){return new In(this,!1)},filter:function(p,y){return Ce(this,ba(this,p,y,!1))},findIndex:function(p,y){var z=this.findEntry(p,y);return z?z[0]:-1},indexOf:function(p){var y=this.toKeyedSeq().keyOf(p);return y===void 0?-1:y},lastIndexOf:function(p){var y=this.toKeyedSeq().reverse().keyOf(p);return y===void 0?-1:y},reverse:function(){return Ce(this,xa(this,!1))},slice:function(p,y){return Ce(this,O(this,p,y,!1))},splice:function(p,y){var z=arguments.length;if(y=Math.max(y|0,0),z===0||z===2&&!y)return this;p=ve(p,p<0?this.count():this.size);var L=this.slice(0,p);return Ce(this,z===1?L:L.concat(te(arguments,2),this.slice(p+y)))},findLastIndex:function(p,y){var z=this.toKeyedSeq().findLastKey(p,y);return z===void 0?-1:z},first:function(){return this.get(0)},flatten:function(p){return Ce(this,ae(this,p,!1))},get:function(p,y){return p=Q(this,p),p<0||this.size===1/0||this.size!==void 0&&p>this.size?y:this.find(function(z,L){return L===p},void 0,y)},has:function(p){return p=Q(this,p),p>=0&&(this.size!==void 0?this.size===1/0||p<this.size:this.indexOf(p)!==-1)},interpose:function(p){return Ce(this,ke(this,p))},interleave:function(){var p=[this].concat(te(arguments)),y=He(this.toSeq(),Ve.of,p),z=y.flatten(!0);return y.size&&(z.size=y.size*p.length),Ce(this,z)},last:function(){return this.get(-1)},skipWhile:function(p,y){return Ce(this,_(this,p,y,!1))},zip:function(){var p=[this].concat(te(arguments));return Ce(this,He(this,Xt,p))},zipWith:function(p){var y=te(arguments);return y[0]=this,Ce(this,He(this,p,y))}}),o.prototype[w]=!0,o.prototype[x]=!0,At(l,{get:function(p,y){return this.has(p)?p:y},includes:function(p){return this.has(p)},keySeq:function(){return this.valueSeq()}}),l.prototype.has=Ge.includes,At(ct,i.prototype),At(Ve,o.prototype),At(It,l.prototype),At(wn,i.prototype),At(mn,o.prototype),At(jn,l.prototype);function r1(p,y){return y}function lt(p,y){return[y,p]}function _e(p){return function(){return!p.apply(this,arguments)}}function it(p){return function(){return-p.apply(this,arguments)}}function Et(p){return typeof p=="string"?JSON.stringify(p):p}function Xt(){return te(arguments)}function Qt(p,y){return p<y?1:p>y?-1:0}function M1(p){if(p.size===1/0)return 0;var y=m(p),z=d(p),L=y?1:0,T=p.__iterate(z?y?function(V,H){L=31*L+nn(ln(V),ln(H))|0}:function(V,H){L=L+nn(ln(V),ln(H))|0}:y?function(V){L=31*L+ln(V)|0}:function(V){L=L+ln(V)|0});return mt(T,L)}function mt(p,y){return y=Xn(y,3432918353),y=Xn(y<<15|y>>>-15,461845907),y=Xn(y<<13|y>>>-13,5),y=(y+3864292196|0)^p,y=Xn(y^y>>>16,2246822507),y=Xn(y^y>>>13,3266489909),y=Qn(y^y>>>16),y}function nn(p,y){return p^y+2654435769+(p<<6)+(p>>2)|0}var $t={Iterable:a,Seq:qe,Collection:Y1,Map:c1,OrderedMap:U1,List:F1,Stack:Pe,Set:Dt,OrderedSet:Y,Record:Ft,Range:I1,Repeat:l1,is:Mt,fromJS:Ee};return $t})})(cv);var x1=cv.exports;const m7=i0(x1);var qz=x1,Zz=qz.OrderedMap,Jz={createFromArray:function(t){return Zz(t.map(function(n){return[n.getKey(),n]}))}},W8=Jz;function Xz(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var d6=x1,F4=d6.Map,k4=d6.OrderedSet,Qz=d6.Record,uv=k4(),dv={style:uv,entity:null},_z=Qz(dv),f6=function(e){Xz(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.getStyle=function(){return this.get("style")},n.getEntity=function(){return this.get("entity")},n.hasStyle=function(a){return this.getStyle().includes(a)},t.applyStyle=function(a,i){var o=a.set("style",a.getStyle().add(i));return t.create(o)},t.removeStyle=function(a,i){var o=a.set("style",a.getStyle().remove(i));return t.create(o)},t.applyEntity=function(a,i){var o=a.getEntity()===i?a:a.set("entity",i);return t.create(o)},t.create=function(a){if(!a)return h6;var i={style:uv,entity:null},o=F4(i).merge(a),l=rl.get(o);if(l)return l;var c=new t(o);return rl=rl.set(o,c),c},t.fromJS=function(a){var i=a.style,o=a.entity;return new t({style:Array.isArray(i)?k4(i):i,entity:Array.isArray(o)?k4(o):o})},t}(_z),h6=new f6,rl=F4([[F4(dv),h6]]);f6.EMPTY=h6;var Vr=f6;function $z(e,t,n,r){if(e.size){var a=0;e.reduce(function(i,o,l){return t(i,o)||(n(i)&&r(a,l),a=l),o}),n(e.last())&&r(a,e.count())}}var K8=$z;function eL(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var tL=Vr,v7=K8,U8=x1,fv=U8.List,nL=U8.Map,rL=U8.OrderedSet,aL=U8.Record,iL=U8.Repeat,oL=rL(),sL={key:"",type:"unstyled",text:"",characterList:fv(),depth:0,data:nL()},lL=aL(sL),cL=function(t){if(!t)return t;var n=t.characterList,r=t.text;return r&&!n&&(t.characterList=fv(iL(tL.EMPTY,r.length))),t},uL=function(e){eL(t,e);function t(r){return e.call(this,cL(r))||this}var n=t.prototype;return n.getKey=function(){return this.get("key")},n.getType=function(){return this.get("type")},n.getText=function(){return this.get("text")},n.getCharacterList=function(){return this.get("characterList")},n.getLength=function(){return this.getText().length},n.getDepth=function(){return this.get("depth")},n.getData=function(){return this.get("data")},n.getInlineStyleAt=function(a){var i=this.getCharacterList().get(a);return i?i.getStyle():oL},n.getEntityAt=function(a){var i=this.getCharacterList().get(a);return i?i.getEntity():null},n.findStyleRanges=function(a,i){v7(this.getCharacterList(),dL,a,i)},n.findEntityRanges=function(a,i){v7(this.getCharacterList(),fL,a,i)},t}(lL);function dL(e,t){return e.getStyle()===t.getStyle()}function fL(e,t){return e.getEntity()===t.getEntity()}var o0=uL;function hL(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var pL=Vr,g7=K8,G8=x1,z4=G8.List,mL=G8.Map,vL=G8.OrderedSet,gL=G8.Record,yL=G8.Repeat,wL=vL(),y7={parent:null,characterList:z4(),data:mL(),depth:0,key:"",text:"",type:"unstyled",children:z4(),prevSibling:null,nextSibling:null},xL=function(t,n){return t.getStyle()===n.getStyle()},bL=function(t,n){return t.getEntity()===n.getEntity()},EL=function(t){if(!t)return t;var n=t.characterList,r=t.text;return r&&!n&&(t.characterList=z4(yL(pL.EMPTY,r.length))),t},AL=function(e){hL(t,e);function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:y7;return e.call(this,EL(r))||this}var n=t.prototype;return n.getKey=function(){return this.get("key")},n.getType=function(){return this.get("type")},n.getText=function(){return this.get("text")},n.getCharacterList=function(){return this.get("characterList")},n.getLength=function(){return this.getText().length},n.getDepth=function(){return this.get("depth")},n.getData=function(){return this.get("data")},n.getInlineStyleAt=function(a){var i=this.getCharacterList().get(a);return i?i.getStyle():wL},n.getEntityAt=function(a){var i=this.getCharacterList().get(a);return i?i.getEntity():null},n.getChildKeys=function(){return this.get("children")},n.getParentKey=function(){return this.get("parent")},n.getPrevSiblingKey=function(){return this.get("prevSibling")},n.getNextSiblingKey=function(){return this.get("nextSibling")},n.findStyleRanges=function(a,i){g7(this.getCharacterList(),xL,a,i)},n.findEntityRanges=function(a,i){g7(this.getCharacterList(),bL,a,i)},t}(gL(y7)),Hr=AL,w7=Vr,CL=x1,SL=CL.Map,ML={add:function(t,n,r){return x7(t,n,r,!0)},remove:function(t,n,r){return x7(t,n,r,!1)}};function x7(e,t,n,r){var a=e.getBlockMap(),i=t.getStartKey(),o=t.getStartOffset(),l=t.getEndKey(),c=t.getEndOffset(),d=a.skipUntil(function(f,h){return h===i}).takeUntil(function(f,h){return h===l}).concat(SL([[l,a.get(l)]])).map(function(f,h){var m,v;i===l?(m=o,v=c):(m=h===i?o:0,v=h===l?c:f.getLength());for(var g=f.getCharacterList(),w;m<v;)w=g.get(m),g=g.set(m,r?w7.applyStyle(w,n):w7.removeStyle(w,n)),m++;return f.set("characterList",g)});return e.merge({blockMap:a.merge(d),selectionBefore:t,selectionAfter:t})}var FL=ML,kL=Vr;function zL(e,t,n,r){for(var a=t,i=e.getCharacterList();a<n;)i=i.set(a,kL.applyEntity(i.get(a),r)),a++;return e.set("characterList",i)}var LL=zL,jL=LL,RL=x1;function DL(e,t,n){var r=e.getBlockMap(),a=t.getStartKey(),i=t.getStartOffset(),o=t.getEndKey(),l=t.getEndOffset(),c=r.skipUntil(function(d,f){return f===a}).takeUntil(function(d,f){return f===o}).toOrderedMap().merge(RL.OrderedMap([[o,r.get(o)]])).map(function(d,f){var h=f===a?i:0,m=f===o?l:d.getLength();return jL(d,h,m,n)});return e.merge({blockMap:r.merge(c),selectionBefore:t,selectionAfter:t})}var TL=DL,BL={getRemovalRange:function(t,n,r,a,i){var o=r.split(" ");o=o.map(function(x,C){if(i==="forward"){if(C>0)return" "+x}else if(C<o.length-1)return x+" ";return x});for(var l=a,c,d,f=null,h=null,m=0;m<o.length;m++){if(d=o[m],c=l+d.length,t<c&&l<n)f!==null||(f=l),h=c;else if(f!==null)break;l=c}var v=a+r.length,g=f===a,w=h===v;return(!g&&w||g&&!w)&&(i==="forward"?h!==v&&h++:f!==a&&f--),{start:f,end:h}}},OL=BL,NL=process.env.NODE_ENV!=="production"?function(e){if(e===void 0)throw new Error("invariant(...): Second argument must be a string.")}:function(e){};function PL(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];if(NL(t),!e){var i;if(t===void 0)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;i=new Error(t.replace(/%s/g,function(){return String(r[o++])})),i.name="Invariant Violation"}throw i.framesToPop=1,i}}var k1=PL,b7=k1;function IL(e,t){var n=[];return e.findEntityRanges(function(r){return r.getEntity()===t},function(r,a){n.push({start:r,end:a})}),n.length||(process.env.NODE_ENV!=="production"?b7(!1,"Entity key not found in this range."):b7(!1)),n}var VL=IL,HL=OL,WL=VL,E7=k1;function KL(e,t,n,r,a){var i=r.getStartOffset(),o=r.getEndOffset(),l=t.getEntityAt(i),c=n.getEntityAt(o-1);if(!l&&!c)return r;var d=r;if(l&&l===c)d=A3(e,t,d,a,l,!0,!0);else if(l&&c){var f=A3(e,t,d,a,l,!1,!0),h=A3(e,n,d,a,c,!1,!1);d=d.merge({anchorOffset:f.getAnchorOffset(),focusOffset:h.getFocusOffset(),isBackward:!1})}else if(l){var m=A3(e,t,d,a,l,!1,!0);d=d.merge({anchorOffset:m.getStartOffset(),isBackward:!1})}else if(c){var v=A3(e,n,d,a,c,!1,!1);d=d.merge({focusOffset:v.getEndOffset(),isBackward:!1})}return d}function A3(e,t,n,r,a,i,o){var l=n.getStartOffset(),c=n.getEndOffset(),d=e.__get(a),f=d.getMutability(),h=o?l:c;if(f==="MUTABLE")return n;var m=WL(t,a).filter(function(w){return h<=w.end&&h>=w.start});m.length!=1&&(process.env.NODE_ENV!=="production"?E7(!1,"There should only be one entity range within this removal range."):E7(!1));var v=m[0];if(f==="IMMUTABLE")return n.merge({anchorOffset:v.start,focusOffset:v.end,isBackward:!1});i||(o?c=v.end:l=v.start);var g=HL.getRemovalRange(l,c,t.getText().slice(v.start,v.end),v.start,r);return n.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1})}var UL=KL,A7={},GL=Math.pow(2,24);function YL(){for(var e;e===void 0||A7.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*GL).toString(32);return A7[e]=!0,e}var N2=YL,qL=Hr,hv=N2,ZL=x1,pv=ZL.OrderedMap,JL=function(t){var n={},r;return pv(t.withMutations(function(a){a.forEach(function(i,o){var l=i.getKey(),c=i.getNextSiblingKey(),d=i.getPrevSiblingKey(),f=i.getChildKeys(),h=i.getParentKey(),m=hv();if(n[l]=m,c){var v=a.get(c);v?a.setIn([c,"prevSibling"],m):a.setIn([l,"nextSibling"],null)}if(d){var g=a.get(d);g?a.setIn([d,"nextSibling"],m):a.setIn([l,"prevSibling"],null)}if(h&&a.get(h)){var w=a.get(h),x=w.getChildKeys();a.setIn([h,"children"],x.set(x.indexOf(i.getKey()),m))}else a.setIn([l,"parent"],null),r&&(a.setIn([r.getKey(),"nextSibling"],m),a.setIn([l,"prevSibling"],n[r.getKey()])),r=a.get(l);f.forEach(function(C){var M=a.get(C);M?a.setIn([C,"parent"],m):a.setIn([l,"children"],i.getChildKeys().filter(function(A){return A!==C}))})})}).toArray().map(function(a){return[n[a.getKey()],a.set("key",n[a.getKey()])]}))},XL=function(t){return pv(t.toArray().map(function(n){var r=hv();return[r,n.set("key",r)]}))},QL=function(t){var n=t.first()instanceof qL;return n?JL(t):XL(t)},mv=QL,_L=Vr,$L=K8,C7=k1;function ej(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),a={},i=t.getStartKey(),o=t.getStartOffset(),l=n.get(i),c=S7(r,l,o);c!==l&&(a[i]=c);var d=t.getEndKey(),f=t.getEndOffset(),h=n.get(d);i===d&&(h=c);var m=S7(r,h,f);return m!==h&&(a[d]=m),Object.keys(a).length?e.merge({blockMap:n.merge(a),selectionAfter:t}):e.set("selectionAfter",t)}function tj(e,t,n){var r;return $L(e,function(a,i){return a.getEntity()===i.getEntity()},function(a){return a.getEntity()===t},function(a,i){a<=n&&i>=n&&(r={start:a,end:i})}),typeof r!="object"&&(process.env.NODE_ENV!=="production"?C7(!1,"Removal range must exist within character list."):C7(!1)),r}function S7(e,t,n){var r=t.getCharacterList(),a=n>0?r.get(n-1):void 0,i=n<r.count()?r.get(n):void 0,o=a?a.getEntity():void 0,l=i?i.getEntity():void 0;if(l&&l===o){var c=e.__get(l);if(c.getMutability()!=="MUTABLE"){for(var d=tj(r,l,n),f=d.start,h=d.end,m;f<h;)m=r.get(f),r=r.set(f,_L.applyEntity(m,null)),f++;return t.set("characterList",r)}}return t}var vv=ej,nj=mv,rj=vv,aj=function(t,n){var r=n.getStartKey(),a=n.getStartOffset(),i=n.getEndKey(),o=n.getEndOffset(),l=rj(t,n),c=l.getBlockMap(),d=c.keySeq(),f=d.indexOf(r),h=d.indexOf(i)+1;return nj(c.slice(f,h).map(function(m,v){var g=m.getText(),w=m.getCharacterList();return r===i?m.merge({text:g.slice(a,o),characterList:w.slice(a,o)}):v===r?m.merge({text:g.slice(a),characterList:w.slice(a)}):v===i?m.merge({text:g.slice(0,o),characterList:w.slice(0,o)}):m}))},b5=aj;function ij(e,t,n){var r=e;if(n===r.count())t.forEach(function(o){r=r.push(o)});else if(n===0)t.reverse().forEach(function(o){r=r.unshift(o)});else{var a=r.slice(0,n),i=r.slice(n);r=a.concat(t,i).toList()}return r}var gv=ij,oj=W8,yv=Hr,sj=x1,lj=gv,po=k1,cj=mv,uj=sj.List,dj=function(t,n,r,a,i,o){var l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:"REPLACE_WITH_NEW_DATA",c=r.get(i),d=c.getText(),f=c.getCharacterList(),h=i,m=o+a.getText().length,v=null;switch(l){case"MERGE_OLD_DATA_TO_NEW_DATA":v=a.getData().merge(c.getData());break;case"REPLACE_WITH_NEW_DATA":v=a.getData();break}var g=c.getType();d&&g==="unstyled"&&(g=a.getType());var w=c.merge({text:d.slice(0,o)+a.getText()+d.slice(o),characterList:lj(f,a.getCharacterList(),o),type:g,data:v});return t.merge({blockMap:r.set(i,w),selectionBefore:n,selectionAfter:n.merge({anchorKey:h,anchorOffset:m,focusKey:h,focusOffset:m,isBackward:!1})})},fj=function(t,n,r){var a=t.getText(),i=t.getCharacterList(),o=a.slice(0,n),l=i.slice(0,n),c=r.first();return t.merge({text:o+c.getText(),characterList:l.concat(c.getCharacterList()),type:o?t.getType():c.getType(),data:c.getData()})},hj=function(t,n,r){var a=t.getText(),i=t.getCharacterList(),o=a.length,l=a.slice(n,o),c=i.slice(n,o),d=r.last();return d.merge({text:d.getText()+l,characterList:d.getCharacterList().concat(c),data:d.getData()})},pj=function(t,n){var r=t.getKey(),a=t,i=[];for(n.get(r)&&i.push(r);a&&a.getNextSiblingKey();){var o=a.getNextSiblingKey();if(!o)break;i.push(o),a=n.get(o)}return i},mj=function(t,n,r,a){return t.withMutations(function(i){var o=r.getKey(),l=a.getKey(),c=r.getNextSiblingKey(),d=r.getParentKey(),f=pj(a,t),h=f[f.length-1];if(i.get(l)?(i.setIn([o,"nextSibling"],l),i.setIn([l,"prevSibling"],o)):(i.setIn([o,"nextSibling"],a.getNextSiblingKey()),i.setIn([a.getNextSiblingKey(),"prevSibling"],o)),i.setIn([h,"nextSibling"],c),c&&i.setIn([c,"prevSibling"],h),f.forEach(function(C){return i.setIn([C,"parent"],d)}),d){var m=t.get(d),v=m.getChildKeys(),g=v.indexOf(o),w=g+1,x=v.toArray();x.splice.apply(x,[w,0].concat(f)),i.setIn([d,"children"],uj(x))}})},vj=function(t,n,r,a,i,o){var l=r.first()instanceof yv,c=[],d=a.size,f=r.get(i),h=a.first(),m=a.last(),v=m.getLength(),g=m.getKey(),w=l&&(!f.getChildKeys().isEmpty()||!h.getChildKeys().isEmpty());r.forEach(function(C,M){if(M!==i){c.push(C);return}w?c.push(C):c.push(fj(C,o,a)),a.slice(w?0:1,d-1).forEach(function(A){return c.push(A)}),c.push(hj(C,o,a))});var x=oj.createFromArray(c);return l&&(x=mj(x,r,f,h)),t.merge({blockMap:x,selectionBefore:n,selectionAfter:n.merge({anchorKey:g,anchorOffset:v,focusKey:g,focusOffset:v,isBackward:!1})})},gj=function(t,n,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"REPLACE_WITH_NEW_DATA";n.isCollapsed()||(process.env.NODE_ENV!=="production"?po(!1,"`insertFragment` should only be called with a collapsed selection state."):po(!1));var i=t.getBlockMap(),o=cj(r),l=n.getStartKey(),c=n.getStartOffset(),d=i.get(l);return d instanceof yv&&(d.getChildKeys().isEmpty()||(process.env.NODE_ENV!=="production"?po(!1,"`insertFragment` should not be called when a container node is selected."):po(!1))),o.size===1?dj(t,n,i,o.first(),l,c,a):vj(t,n,i,o,l,c)},yj=gj,wj=x1,xj=gv,M7=k1,bj=wj.Repeat;function Ej(e,t,n,r){t.isCollapsed()||(process.env.NODE_ENV!=="production"?M7(!1,"`insertText` should only be called with a collapsed range."):M7(!1));var a=null;if(n!=null&&(a=n.length),a==null||a===0)return e;var i=e.getBlockMap(),o=t.getStartKey(),l=t.getStartOffset(),c=i.get(o),d=c.getText(),f=c.merge({text:d.slice(0,l)+n+d.slice(l,c.getLength()),characterList:xj(c.getCharacterList(),bj(r,a).toList(),l)}),h=l+a;return e.merge({blockMap:i.set(o,f),selectionAfter:t.merge({anchorOffset:h,focusOffset:h})})}var Aj=Ej,Cj=x1,Sj=Cj.Map;function Mj(e,t,n){var r=t.getStartKey(),a=t.getEndKey(),i=e.getBlockMap(),o=i.toSeq().skipUntil(function(l,c){return c===r}).takeUntil(function(l,c){return c===a}).concat(Sj([[a,i.get(a)]])).map(n);return e.merge({blockMap:i.merge(o),selectionBefore:t,selectionAfter:t})}var wv=Mj,Fj=Hr,kj=function(t,n){var r=t instanceof Fj;if(!r)return null;var a=t.getNextSiblingKey();if(a)return a;var i=t.getParentKey();if(!i)return null;for(var o=n.get(i);o&&!o.getNextSiblingKey();){var l=o.getParentKey();o=l?n.get(l):null}return o?o.getNextSiblingKey():null},xv=kj,zj=Hr,L4=xv,bv=x1;bv.List;var F7=bv.Map,er=function(t,n,r){if(t){var a=n.get(t);a&&n.set(t,r(a))}},Hs=function(t,n){var r=[];if(!t)return r;for(var a=n.get(t);a&&a.getParentKey();){var i=a.getParentKey();i&&r.push(i),a=i?n.get(i):null}return r},Lj=function(t,n){var r=[];if(!t)return r;for(var a=L4(t,n);a&&n.get(a);){var i=n.get(a);r.push(a),a=i.getParentKey()?L4(i,n):null}return r},F0=function(t,n,r){if(!t)return null;for(var a=r.get(t.getKey()).getNextSiblingKey();a&&!n.get(a);)a=r.get(a).getNextSiblingKey()||null;return a},k0=function(t,n,r){if(!t)return null;for(var a=r.get(t.getKey()).getPrevSiblingKey();a&&!n.get(a);)a=r.get(a).getPrevSiblingKey()||null;return a},jj=function(t,n,r,a){return t.withMutations(function(i){if(er(n.getKey(),i,function(f){return f.merge({nextSibling:F0(f,i,a),prevSibling:k0(f,i,a)})}),er(r.getKey(),i,function(f){return f.merge({nextSibling:F0(f,i,a),prevSibling:k0(f,i,a)})}),Hs(n.getKey(),a).forEach(function(f){return er(f,i,function(h){return h.merge({children:h.getChildKeys().filter(function(m){return i.get(m)}),nextSibling:F0(h,i,a),prevSibling:k0(h,i,a)})})}),er(n.getNextSiblingKey(),i,function(f){return f.merge({prevSibling:n.getPrevSiblingKey()})}),er(n.getPrevSiblingKey(),i,function(f){return f.merge({nextSibling:F0(f,i,a)})}),er(r.getNextSiblingKey(),i,function(f){return f.merge({prevSibling:k0(f,i,a)})}),er(r.getPrevSiblingKey(),i,function(f){return f.merge({nextSibling:r.getNextSiblingKey()})}),Hs(r.getKey(),a).forEach(function(f){er(f,i,function(h){return h.merge({children:h.getChildKeys().filter(function(m){return i.get(m)}),nextSibling:F0(h,i,a),prevSibling:k0(h,i,a)})})}),Lj(r,a).forEach(function(f){return er(f,i,function(h){return h.merge({nextSibling:F0(h,i,a),prevSibling:k0(h,i,a)})})}),t.get(n.getKey())==null&&t.get(r.getKey())!=null&&r.getParentKey()===n.getKey()&&r.getPrevSiblingKey()==null){var o=n.getPrevSiblingKey();er(r.getKey(),i,function(f){return f.merge({prevSibling:o})}),er(o,i,function(f){return f.merge({nextSibling:r.getKey()})});var l=o?t.get(o):null,c=l?l.getParentKey():null;if(n.getChildKeys().forEach(function(f){er(f,i,function(h){return h.merge({parent:c})})}),c!=null){var d=t.get(c);er(c,i,function(f){return f.merge({children:d.getChildKeys().concat(n.getChildKeys())})})}er(n.getChildKeys().find(function(f){var h=t.get(f);return h.getNextSiblingKey()===null}),i,function(f){return f.merge({nextSibling:n.getNextSiblingKey()})})}})},Rj=function(t,n){if(n.isCollapsed())return t;var r=t.getBlockMap(),a=n.getStartKey(),i=n.getStartOffset(),o=n.getEndKey(),l=n.getEndOffset(),c=r.get(a),d=r.get(o),f=c instanceof zj,h=[];if(f){var m=d.getChildKeys(),v=Hs(o,r);d.getNextSiblingKey()&&(h=h.concat(v)),m.isEmpty()||(h=h.concat(v.concat([o]))),h=h.concat(Hs(L4(d,r),r))}var g;c===d?g=Dj(c.getCharacterList(),i,l):g=c.getCharacterList().slice(0,i).concat(d.getCharacterList().slice(l));var w=c.merge({text:c.getText().slice(0,i)+d.getText().slice(l),characterList:g}),x=f&&i===0&&l===0&&d.getParentKey()===a&&d.getPrevSiblingKey()==null,C=x?F7([[a,null]]):r.toSeq().skipUntil(function(A,F){return F===a}).takeUntil(function(A,F){return F===o}).filter(function(A,F){return h.indexOf(F)===-1}).concat(F7([[o,null]])).map(function(A,F){return F===a?w:null}),M=r.merge(C).filter(function(A){return!!A});return f&&c!==d&&(M=jj(M,c,d,r)),t.merge({blockMap:M,selectionBefore:n,selectionAfter:n.merge({anchorKey:a,anchorOffset:i,focusKey:a,focusOffset:i,isBackward:!1})})},Dj=function(t,n,r){if(n===0)for(;n<r;)t=t.shift(),n++;else if(r===t.count())for(;r>n;)t=t.pop(),r--;else{var a=t.slice(0,n),i=t.slice(r);t=a.concat(i).toList()}return t},Tj=Rj,Bj=Hr,Oj=N2,Ev=x1,mo=k1,Nj=wv,Pj=Ev.List,Ij=Ev.Map,vo=function(t,n,r){if(t){var a=n.get(t);a&&n.set(t,r(a))}},Vj=function(t,n,r){return t.withMutations(function(a){var i=n.getKey(),o=r.getKey();vo(n.getParentKey(),a,function(l){var c=l.getChildKeys(),d=c.indexOf(i)+1,f=c.toArray();return f.splice(d,0,o),l.merge({children:Pj(f)})}),vo(n.getNextSiblingKey(),a,function(l){return l.merge({prevSibling:o})}),vo(i,a,function(l){return l.merge({nextSibling:o})}),vo(o,a,function(l){return l.merge({prevSibling:i})})})},Hj=function(t,n){n.isCollapsed()||(process.env.NODE_ENV!=="production"?mo(!1,"Selection range must be collapsed."):mo(!1));var r=n.getAnchorKey(),a=t.getBlockMap(),i=a.get(r),o=i.getText();if(!o){var l=i.getType();if(l==="unordered-list-item"||l==="ordered-list-item")return Nj(t,n,function(C){return C.merge({type:"unstyled",depth:0})})}var c=n.getAnchorOffset(),d=i.getCharacterList(),f=Oj(),h=i instanceof Bj,m=i.merge({text:o.slice(0,c),characterList:d.slice(0,c)}),v=m.merge({key:f,text:o.slice(c),characterList:d.slice(c),data:Ij()}),g=a.toSeq().takeUntil(function(C){return C===i}),w=a.toSeq().skipUntil(function(C){return C===i}).rest(),x=g.concat([[r,m],[f,v]],w).toOrderedMap();return h&&(i.getChildKeys().isEmpty()||(process.env.NODE_ENV!=="production"?mo(!1,"ContentBlockNode must not have children"):mo(!1)),x=Vj(x,m,v)),t.merge({blockMap:x,selectionBefore:n,selectionAfter:n.merge({anchorKey:f,anchorOffset:0,focusKey:f,focusOffset:0,isBackward:!1})})},Wj=Hj,Kj=Vr,k7=FL,Uj=TL,Gj=UL,Yj=b5,qj=x1,Zj=yj,Jj=Aj,z7=k1,al=wv,C3=vv,S3=Tj,Xj=Wj,Qj=qj.OrderedSet,vs={replaceText:function(t,n,r,a,i){var o=C3(t,n),l=S3(o,n),c=Kj.create({style:a||Qj(),entity:i||null});return Jj(l,l.getSelectionAfter(),r,c)},insertText:function(t,n,r,a,i){return n.isCollapsed()||(process.env.NODE_ENV!=="production"?z7(!1,"Target range must be collapsed for `insertText`."):z7(!1)),vs.replaceText(t,n,r,a,i)},moveText:function(t,n,r){var a=Yj(t,n),i=vs.removeRange(t,n,"backward");return vs.replaceWithFragment(i,r,a)},replaceWithFragment:function(t,n,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"REPLACE_WITH_NEW_DATA",i=C3(t,n),o=S3(i,n);return Zj(o,o.getSelectionAfter(),r,a)},removeRange:function(t,n,r){var a,i,o,l;n.getIsBackward()&&(n=n.merge({anchorKey:n.getFocusKey(),anchorOffset:n.getFocusOffset(),focusKey:n.getAnchorKey(),focusOffset:n.getAnchorOffset(),isBackward:!1})),a=n.getAnchorKey(),i=n.getFocusKey(),o=t.getBlockForKey(a),l=t.getBlockForKey(i);var c=n.getStartOffset(),d=n.getEndOffset(),f=o.getEntityAt(c),h=l.getEntityAt(d-1);if(a===i&&f&&f===h){var m=Gj(t.getEntityMap(),o,l,n,r);return S3(t,m)}var v=C3(t,n);return S3(v,n)},splitBlock:function(t,n){var r=C3(t,n),a=S3(r,n);return Xj(a,a.getSelectionAfter())},applyInlineStyle:function(t,n,r){return k7.add(t,n,r)},removeInlineStyle:function(t,n,r){return k7.remove(t,n,r)},setBlockType:function(t,n,r){return al(t,n,function(a){return a.merge({type:r,depth:0})})},setBlockData:function(t,n,r){return al(t,n,function(a){return a.merge({data:r})})},mergeBlockData:function(t,n,r){return al(t,n,function(a){return a.merge({data:a.getData().merge(r)})})},applyEntity:function(t,n,r){var a=C3(t,n);return Uj(a,n,r)}},lr=vs;function _j(e){return Object.keys(e).map(function(t){return e[t]})}var Av=_j;function $j(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){eR(e,a,n[a])})}return e}function eR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tR(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}var Cv=K8,nR=Av,p6=x1,O0=p6.List,rR=p6.Repeat,Sv=p6.Record,Mv=function(){return!0},aR={start:null,end:null},j4=Sv(aR),iR={start:null,end:null,decoratorKey:null,leaves:null},il=Sv(iR),oR={generate:function(t,n,r){var a=n.getLength();if(!a)return O0.of(new il({start:0,end:0,decoratorKey:null,leaves:O0.of(new j4({start:0,end:0}))}));var i=[],o=r?r.getDecorations(n,t):O0(rR(null,a)),l=n.getCharacterList();return Cv(o,Fv,Mv,function(c,d){i.push(new il({start:c,end:d,decoratorKey:o.get(c),leaves:sR(l.slice(c,d).toList(),c)}))}),O0(i)},fromJS:function(t){var n=t.leaves,r=tR(t,["leaves"]);return new il($j({},r,{leaves:n!=null?O0(Array.isArray(n)?n:nR(n)).map(function(a){return j4(a)}):null}))}};function sR(e,t){var n=[],r=e.map(function(a){return a.getStyle()}).toList();return Cv(r,Fv,Mv,function(a,i){n.push(new j4({start:a+t,end:i+t}))}),O0(n)}function Fv(e,t){return e===t}var lR=oR;function cR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var uR=x1,dR=uR.Record,fR=dR({type:"TOKEN",mutability:"IMMUTABLE",data:Object}),hR=function(e){cR(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.getType=function(){return this.get("type")},n.getMutability=function(){return this.get("mutability")},n.getData=function(){return this.get("data")},t}(fR),kv=hR;function pR(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=Math.random()*16|0,n=e=="x"?t:t&3|8;return n.toString(16)})}var mR=pR;function vR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){gR(e,a,n[a])})}return e}function gR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yR=kv,wR=x1,L7=k1,R4=mR,xR=wR.Map,Y2=xR(),M3=R4();function z0(e,t){console.warn("WARNING: "+e+` will be deprecated soon!
|
|
176
176
|
Please use "`+t+'" instead.')}var x2={getLastCreatedEntityKey:function(){return z0("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),x2.__getLastCreatedEntityKey()},create:function(t,n,r){return z0("DraftEntity.create","contentState.createEntity"),x2.__create(t,n,r)},add:function(t){return z0("DraftEntity.add","contentState.addEntity"),x2.__add(t)},get:function(t){return z0("DraftEntity.get","contentState.getEntity"),x2.__get(t)},__getAll:function(){return Y2},__loadWithEntities:function(t){Y2=t,M3=R4()},mergeData:function(t,n){return z0("DraftEntity.mergeData","contentState.mergeEntityData"),x2.__mergeData(t,n)},replaceData:function(t,n){return z0("DraftEntity.replaceData","contentState.replaceEntityData"),x2.__replaceData(t,n)},__getLastCreatedEntityKey:function(){return M3},__create:function(t,n,r){return x2.__add(new yR({type:t,mutability:n,data:r||{}}))},__add:function(t){return M3=R4(),Y2=Y2.set(M3,t),M3},__get:function(t){var n=Y2.get(t);return n||(process.env.NODE_ENV!=="production"?L7(!1,"Unknown DraftEntity key: %s.",t):L7(!1)),n},__mergeData:function(t,n){var r=x2.__get(t),a=vR({},r.getData(),n),i=r.set("data",a);return Y2=Y2.set(t,i),i},__replaceData:function(t,n){var r=x2.__get(t),a=r.set("data",n);return Y2=Y2.set(t,a),a}},E5=x2;function bR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var ER=x1,AR=ER.Record,CR={anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1},SR=AR(CR),MR=function(e){bR(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},n.getAnchorKey=function(){return this.get("anchorKey")},n.getAnchorOffset=function(){return this.get("anchorOffset")},n.getFocusKey=function(){return this.get("focusKey")},n.getFocusOffset=function(){return this.get("focusOffset")},n.getIsBackward=function(){return this.get("isBackward")},n.getHasFocus=function(){return this.get("hasFocus")},n.hasEdgeWithin=function(a,i,o){var l=this.getAnchorKey(),c=this.getFocusKey();if(l===c&&l===a){var d=this.getStartOffset(),f=this.getEndOffset();return i<=d&&d<=o||i<=f&&f<=o}if(a!==l&&a!==c)return!1;var h=a===l?this.getAnchorOffset():this.getFocusOffset();return i<=h&&o>=h},n.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},n.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},n.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},n.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},n.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},t.createEmpty=function(a){return new t({anchorKey:a,anchorOffset:0,focusKey:a,focusOffset:0,isBackward:!1,hasFocus:!1})},t}(SR),A5=MR,ai=function(e){return typeof window<"u"&&window.__DRAFT_GKX?!!window.__DRAFT_GKX[e]:!1},FR=new RegExp("\r","g");function kR(e){return e.replace(FR,"")}var zv=kR;function j7(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){zR(e,a,n[a])})}return e}function zR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var jR=W8,R7=Vr,RR=o0,DR=Hr,g2=E5,go=A5,TR=N2,BR=Av,OR=ai,Y8=x1,NR=zv,D7=Y8.List,PR=Y8.Record,IR=Y8.Repeat,VR=Y8.Map,HR=Y8.OrderedMap,WR={entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null},KR=PR(WR),T7=OR("draft_tree_data_support")?DR:RR,UR=function(e){LR(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.getEntityMap=function(){return g2},n.getBlockMap=function(){return this.get("blockMap")},n.getSelectionBefore=function(){return this.get("selectionBefore")},n.getSelectionAfter=function(){return this.get("selectionAfter")},n.getBlockForKey=function(a){var i=this.getBlockMap().get(a);return i},n.getKeyBefore=function(a){return this.getBlockMap().reverse().keySeq().skipUntil(function(i){return i===a}).skip(1).first()},n.getKeyAfter=function(a){return this.getBlockMap().keySeq().skipUntil(function(i){return i===a}).skip(1).first()},n.getBlockAfter=function(a){return this.getBlockMap().skipUntil(function(i,o){return o===a}).skip(1).first()},n.getBlockBefore=function(a){return this.getBlockMap().reverse().skipUntil(function(i,o){return o===a}).skip(1).first()},n.getBlocksAsArray=function(){return this.getBlockMap().toArray()},n.getFirstBlock=function(){return this.getBlockMap().first()},n.getLastBlock=function(){return this.getBlockMap().last()},n.getPlainText=function(a){return this.getBlockMap().map(function(i){return i?i.getText():""}).join(a||`
|
|
177
177
|
`)},n.getLastCreatedEntityKey=function(){return g2.__getLastCreatedEntityKey()},n.hasText=function(){var a=this.getBlockMap();return a.size>1||escape(a.first().getText()).replace(/%u200B/g,"").length>0},n.createEntity=function(a,i,o){return g2.__create(a,i,o),this},n.mergeEntityData=function(a,i){return g2.__mergeData(a,i),this},n.replaceEntityData=function(a,i){return g2.__replaceData(a,i),this},n.addEntity=function(a){return g2.__add(a),this},n.getEntity=function(a){return g2.__get(a)},n.getAllEntities=function(){return g2.__getAll()},n.loadWithEntities=function(a){return g2.__loadWithEntities(a)},t.createFromBlockArray=function(a,i){var o=Array.isArray(a)?a:a.contentBlocks,l=jR.createFromArray(o),c=l.isEmpty()?new go:go.createEmpty(l.first().getKey());return new t({blockMap:l,entityMap:i||g2,selectionBefore:c,selectionAfter:c})},t.createFromText=function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:/\r\n?|\n/g,o=a.split(i),l=o.map(function(c){return c=NR(c),new T7({key:TR(),text:c,type:"unstyled",characterList:D7(IR(R7.EMPTY,c.length))})});return t.createFromBlockArray(l)},t.fromJS=function(a){return new t(j7({},a,{blockMap:HR(a.blockMap).map(t.createContentBlockFromJS),selectionBefore:new go(a.selectionBefore),selectionAfter:new go(a.selectionAfter)}))},t.createContentBlockFromJS=function(a){var i=a.characterList;return new T7(j7({},a,{data:VR(a.data),characterList:i!=null?D7((Array.isArray(i)?i:BR(i)).map(function(o){return R7.fromJS(o)})):void 0}))},t}(KR),m6=UR,Ba=k1,GR="NEUTRAL",C5="LTR",Lv="RTL",gs=null;function Ws(e){return e===C5||e===Lv}function jv(e){return Ws(e)||(process.env.NODE_ENV!=="production"?Ba(!1,"`dir` must be a strong direction to be converted to HTML Direction"):Ba(!1)),e===C5?"ltr":"rtl"}function YR(e,t){return Ws(e)||(process.env.NODE_ENV!=="production"?Ba(!1,"`dir` must be a strong direction to be converted to HTML Direction"):Ba(!1)),Ws(t)||(process.env.NODE_ENV!=="production"?Ba(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):Ba(!1)),e===t?null:jv(e)}function Rv(e){gs=e}function qR(){Rv(C5)}function ZR(){return gs||this.initGlobalDir(),gs||(process.env.NODE_ENV!=="production"?Ba(!1,"Global direction not set."):Ba(!1)),gs}var JR={NEUTRAL:GR,LTR:C5,RTL:Lv,isStrong:Ws,getHTMLDir:jv,getHTMLDirIfDifferent:YR,setGlobalDir:Rv,initGlobalDir:qR,getGlobalDir:ZR},S5=JR,ra=S5,B7=k1,_3={L:"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",R:"־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",AL:"؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-"},XR=new RegExp("["+_3.L+_3.R+_3.AL+"]"),QR=new RegExp("["+_3.R+_3.AL+"]");function Dv(e){var t=XR.exec(e);return t==null?null:t[0]}function Tv(e){var t=Dv(e);return t==null?ra.NEUTRAL:QR.exec(t)?ra.RTL:ra.LTR}function Bv(e,t){if(t=t||ra.NEUTRAL,!e.length)return t;var n=Tv(e);return n===ra.NEUTRAL?t:n}function v6(e,t){return t||(t=ra.getGlobalDir()),ra.isStrong(t)||(process.env.NODE_ENV!=="production"?B7(!1,"Fallback direction must be a strong direction"):B7(!1)),Bv(e,t)}function _R(e,t){return v6(e,t)===ra.LTR}function $R(e,t){return v6(e,t)===ra.RTL}var eD={firstStrongChar:Dv,firstStrongCharDir:Tv,resolveBlockDir:Bv,getDirection:v6,isDirectionLTR:_R,isDirectionRTL:$R},g6=eD;function O7(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tD=g6,N7=S5,P7=k1,nD=function(){function e(n){O7(this,"_defaultDir",void 0),O7(this,"_lastDir",void 0),n?N7.isStrong(n)||(process.env.NODE_ENV!=="production"?P7(!1,"Default direction must be a strong direction (LTR or RTL)"):P7(!1)):n=N7.getGlobalDir(),this._defaultDir=n,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(r){return this._lastDir=tD.getDirection(r,this._lastDir),this._lastDir},e}(),rD=nD,aD=function(t){if(t!=null)return t;throw new Error("Got unexpected null or undefined")},cr=aD,iD=rD,Ov=x1,oD=cr,sD=Ov.OrderedMap,yo,lD={getDirectionMap:function(t,n){yo?yo.reset():yo=new iD;var r=t.getBlockMap(),a=r.valueSeq().map(function(o){return oD(yo).getDirection(o.getText())}),i=sD(r.keySeq().zip(a));return n!=null&&Ov.is(n,i)?n:i}},cD=lD;function I7(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){Nv(e,a,n[a])})}return e}function Nv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var M5=lR,F3=m6,wo=cD,ol=A5,q8=x1,Pv=q8.OrderedSet,uD=q8.Record,Oi=q8.Stack,V7=q8.OrderedMap,dD=q8.List,fD={allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:Oi(),selection:null,treeMap:null,undoStack:Oi()},H7=uD(fD),Iv=function(){t.createEmpty=function(r){return this.createWithText("",r)},t.createWithText=function(r,a){return t.createWithContent(F3.createFromText(r),a)},t.createWithContent=function(r,a){if(r.getBlockMap().count()===0)return t.createEmpty(a);var i=r.getBlockMap().first().getKey();return t.create({currentContent:r,undoStack:Oi(),redoStack:Oi(),decorator:a||null,selection:ol.createEmpty(i)})},t.create=function(r){var a=r.currentContent,i=r.decorator,o=I7({},r,{treeMap:K7(a,i),directionMap:wo.getDirectionMap(a)});return new t(new H7(o))},t.fromJS=function(r){return new t(new H7(I7({},r,{directionMap:r.directionMap!=null?V7(r.directionMap):r.directionMap,inlineStyleOverride:r.inlineStyleOverride!=null?Pv(r.inlineStyleOverride):r.inlineStyleOverride,nativelyRenderedContent:r.nativelyRenderedContent!=null?F3.fromJS(r.nativelyRenderedContent):r.nativelyRenderedContent,redoStack:r.redoStack!=null?Oi(r.redoStack.map(function(a){return F3.fromJS(a)})):r.redoStack,selection:r.selection!=null?new ol(r.selection):r.selection,treeMap:r.treeMap!=null?V7(r.treeMap).map(function(a){return dD(a).map(function(i){return M5.fromJS(i)})}):r.treeMap,undoStack:r.undoStack!=null?Oi(r.undoStack.map(function(a){return F3.fromJS(a)})):r.undoStack,currentContent:F3.fromJS(r.currentContent)})))},t.set=function(r,a){var i=r.getImmutable().withMutations(function(o){var l=o.get("decorator"),c=l;a.decorator===null?c=null:a.decorator&&(c=a.decorator);var d=a.currentContent||r.getCurrentContent();if(c!==l){var f=o.get("treeMap"),h;c&&l?h=pD(d,d.getBlockMap(),f,c,l):h=K7(d,c),o.merge({decorator:c,treeMap:h,nativelyRenderedContent:null});return}var m=r.getCurrentContent();d!==m&&o.set("treeMap",hD(r,d.getBlockMap(),d.getEntityMap(),c)),o.merge(a)});return new t(i)};var e=t.prototype;e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(r,a){return t.set(r,{inlineStyleOverride:a})},e.getCurrentInlineStyle=function(){var r=this.getInlineStyleOverride();if(r!=null)return r;var a=this.getCurrentContent(),i=this.getSelection();return i.isCollapsed()?vD(a,i):gD(a,i)},e.getBlockTree=function(r){return this.getImmutable().getIn(["treeMap",r])},e.isSelectionAtStartOfContent=function(){var r=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(r,0,0)},e.isSelectionAtEndOfContent=function(){var r=this.getCurrentContent(),a=r.getBlockMap(),i=a.last(),o=i.getLength();return this.getSelection().hasEdgeWithin(i.getKey(),o,o)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(r,a){return W7(r,a,!1)},t.forceSelection=function(r,a){return a.getHasFocus()||(a=a.set("hasFocus",!0)),W7(r,a,!0)},t.moveSelectionToEnd=function(r){var a=r.getCurrentContent(),i=a.getLastBlock(),o=i.getKey(),l=i.getLength();return t.acceptSelection(r,new ol({anchorKey:o,anchorOffset:l,focusKey:o,focusOffset:l,isBackward:!1}))},t.moveFocusToEnd=function(r){var a=t.moveSelectionToEnd(r);return t.forceSelection(a,a.getSelection())},t.push=function(r,a,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;if(r.getCurrentContent()===a)return r;var l=wo.getDirectionMap(a,r.getDirectionMap());if(!r.getAllowUndo())return t.set(r,{currentContent:a,directionMap:l,lastChangeType:i,selection:a.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var c=r.getSelection(),d=r.getCurrentContent(),f=r.getUndoStack(),h=a;c!==d.getSelectionAfter()||mD(r,i)?(f=f.push(d),h=h.set("selectionBefore",c)):(i==="insert-characters"||i==="backspace-character"||i==="delete-character")&&(h=h.set("selectionBefore",d.getSelectionBefore()));var m=r.getInlineStyleOverride(),v=["adjust-depth","change-block-type","split-block"];v.indexOf(i)===-1&&(m=null);var g={currentContent:h,directionMap:l,undoStack:f,redoStack:Oi(),lastChangeType:i,selection:a.getSelectionAfter(),forceSelection:o,inlineStyleOverride:m};return t.set(r,g)},t.undo=function(r){if(!r.getAllowUndo())return r;var a=r.getUndoStack(),i=a.peek();if(!i)return r;var o=r.getCurrentContent(),l=wo.getDirectionMap(i,r.getDirectionMap());return t.set(r,{currentContent:i,directionMap:l,undoStack:a.shift(),redoStack:r.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},t.redo=function(r){if(!r.getAllowUndo())return r;var a=r.getRedoStack(),i=a.peek();if(!i)return r;var o=r.getCurrentContent(),l=wo.getDirectionMap(i,r.getDirectionMap());return t.set(r,{currentContent:i,directionMap:l,undoStack:r.getUndoStack().push(o),redoStack:a.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:i.getSelectionAfter()})};function t(n){Nv(this,"_immutable",void 0),this._immutable=n}return e.getImmutable=function(){return this._immutable},t}();function W7(e,t,n){return Iv.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function K7(e,t){return e.getBlockMap().map(function(n){return M5.generate(e,n,t)}).toOrderedMap()}function hD(e,t,n,r){var a=e.getCurrentContent().set("entityMap",n),i=a.getBlockMap(),o=e.getImmutable().get("treeMap");return o.merge(t.toSeq().filter(function(l,c){return l!==i.get(c)}).map(function(l){return M5.generate(a,l,r)}))}function pD(e,t,n,r,a){return n.merge(t.toSeq().filter(function(i){return r.getDecorations(i,e)!==a.getDecorations(i,e)}).map(function(i){return M5.generate(e,i,r)}))}function mD(e,t){var n=e.getLastChangeType();return t!==n||t!=="insert-characters"&&t!=="backspace-character"&&t!=="delete-character"}function vD(e,t){var n=t.getStartKey(),r=t.getStartOffset(),a=e.getBlockForKey(n);return r>0?a.getInlineStyleAt(r-1):a.getLength()?a.getInlineStyleAt(0):Vv(e,n)}function gD(e,t){var n=t.getStartKey(),r=t.getStartOffset(),a=e.getBlockForKey(n);return r<a.getLength()?a.getInlineStyleAt(r):r>0?a.getInlineStyleAt(r-1):Vv(e,n)}function Vv(e,t){var n=e.getBlockMap().reverse().skipUntil(function(r,a){return a===t}).skip(1).skipUntil(function(r,a){return r.getLength()}).first();return n?n.getInlineStyleAt(n.getLength()-1):Pv()}var Z1=Iv,yD=Hr,wD=xv,Hv=x1,Sa=k1,xD=Hv.OrderedMap,bD=Hv.List,Si=function(t,n,r){if(t){var a=n.get(t);a&&n.set(t,r(a))}},ED=function(t,n,r,a,i){if(!i)return t;var o=a==="after",l=n.getKey(),c=r.getKey(),d=n.getParentKey(),f=n.getNextSiblingKey(),h=n.getPrevSiblingKey(),m=r.getParentKey(),v=o?r.getNextSiblingKey():c,g=o?c:r.getPrevSiblingKey();return t.withMutations(function(w){Si(d,w,function(x){var C=x.getChildKeys();return x.merge({children:C.delete(C.indexOf(l))})}),Si(h,w,function(x){return x.merge({nextSibling:f})}),Si(f,w,function(x){return x.merge({prevSibling:h})}),Si(v,w,function(x){return x.merge({prevSibling:l})}),Si(g,w,function(x){return x.merge({nextSibling:l})}),Si(m,w,function(x){var C=x.getChildKeys(),M=C.indexOf(c),A=o?M+1:M!==0?M-1:0,F=C.toArray();return F.splice(A,0,l),x.merge({children:bD(F)})}),Si(l,w,function(x){return x.merge({nextSibling:v,prevSibling:g,parent:m})})})},AD=function(t,n,r,a){a==="replace"&&(process.env.NODE_ENV!=="production"?Sa(!1,"Replacing blocks is not supported."):Sa(!1));var i=r.getKey(),o=n.getKey();o===i&&(process.env.NODE_ENV!=="production"?Sa(!1,"Block cannot be moved next to itself."):Sa(!1));var l=t.getBlockMap(),c=n instanceof yD,d=[n],f=l.delete(o);c&&(d=[],f=l.withMutations(function(C){var M=n.getNextSiblingKey(),A=wD(n,C);C.toSeq().skipUntil(function(F){return F.getKey()===o}).takeWhile(function(F){var S=F.getKey(),B=S===o,I=M&&S!==M,K=!M&&F.getParentKey()&&(!A||S!==A);return!!(B||I||K)}).forEach(function(F){d.push(F),C.delete(F.getKey())})}));var h=f.toSeq().takeUntil(function(C){return C===r}),m=f.toSeq().skipUntil(function(C){return C===r}).skip(1),v=d.map(function(C){return[C.getKey(),C]}),g=xD();if(a==="before"){var w=t.getBlockBefore(i);!w||w.getKey()!==n.getKey()||(process.env.NODE_ENV!=="production"?Sa(!1,"Block cannot be moved next to itself."):Sa(!1)),g=h.concat([].concat(v,[[i,r]]),m).toOrderedMap()}else if(a==="after"){var x=t.getBlockAfter(i);!x||x.getKey()!==o||(process.env.NODE_ENV!=="production"?Sa(!1,"Block cannot be moved next to itself."):Sa(!1)),g=h.concat([[i,r]].concat(v),m).toOrderedMap()}return t.merge({blockMap:ED(g,n,r,a,c),selectionBefore:t.getSelectionAfter(),selectionAfter:t.getSelectionAfter().merge({anchorKey:o,focusKey:o})})},CD=AD;function U7(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){SD(e,a,n[a])})}return e}function SD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var MD=W8,FD=Vr,kD=o0,zD=Hr,L0=lr,G7=Z1,Y7=N2,LD=ai,Wv=x1,xo=CD,Kv=LD("draft_tree_data_support"),q7=Kv?zD:kD,jD=Wv.List,RD=Wv.Repeat,DD={insertAtomicBlock:function(t,n,r){var a=t.getCurrentContent(),i=t.getSelection(),o=L0.removeRange(a,i,"backward"),l=o.getSelectionAfter(),c=L0.splitBlock(o,l),d=c.getSelectionAfter(),f=L0.setBlockType(c,d,"atomic"),h=FD.create({entity:n}),m={key:Y7(),type:"atomic",text:r,characterList:jD(RD(h,r.length))},v={key:Y7(),type:"unstyled"};Kv&&(m=U7({},m,{nextSibling:v.key}),v=U7({},v,{prevSibling:m.key}));var g=[new q7(m),new q7(v)],w=MD.createFromArray(g),x=L0.replaceWithFragment(f,d,w),C=x.merge({selectionBefore:i,selectionAfter:x.getSelectionAfter().set("hasFocus",!0)});return G7.push(t,C,"insert-fragment")},moveAtomicBlock:function(t,n,r,a){var i=t.getCurrentContent(),o=t.getSelection(),l;if(a==="before"||a==="after"){var c=i.getBlockForKey(a==="before"?r.getStartKey():r.getEndKey());l=xo(i,n,c,a)}else{var d=L0.removeRange(i,r,"backward"),f=d.getSelectionAfter(),h=d.getBlockForKey(f.getFocusKey());if(f.getStartOffset()===0)l=xo(d,n,h,"before");else if(f.getEndOffset()===h.getLength())l=xo(d,n,h,"after");else{var m=L0.splitBlock(d,f),v=m.getSelectionAfter(),g=m.getBlockForKey(v.getFocusKey());l=xo(m,n,g,"before")}}var w=l.merge({selectionBefore:o,selectionAfter:l.getSelectionAfter().set("hasFocus",!0)});return G7.push(t,w,"move-block")}},TD=DD;function BD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var OD=x1,ND=OD.List,sl=".",PD=function(){function e(n){BD(this,"_decorators",void 0),this._decorators=n.slice()}var t=e.prototype;return t.getDecorations=function(r,a){var i=Array(r.getText().length).fill(null);return this._decorators.forEach(function(o,l){var c=0,d=o.strategy,f=function(m,v){ID(i,m,v)&&(VD(i,m,v,l+sl+c),c++)};d(r,f,a)}),ND(i)},t.getComponentForKey=function(r){var a=parseInt(r.split(sl)[0],10);return this._decorators[a].component},t.getPropsForKey=function(r){var a=parseInt(r.split(sl)[0],10);return this._decorators[a].props},e}();function ID(e,t,n){for(var r=t;r<n;r++)if(e[r]!=null)return!1;return!0}function VD(e,t,n,r){for(var a=t;a<n;a++)e[a]=r}var HD=PD;function WD(e){return typeof e=="object"?Object.keys(e).filter(function(t){return e[t]}).map(Z7).join(" "):Array.prototype.map.call(arguments,Z7).join(" ")}function Z7(e){return e.replace(/\//g,"-")}var s0=WD,y6=s,w6=s0,KD=x1,UD=KD.Map,GD=y6.createElement("ul",{className:w6("public/DraftStyleDefault/ul")}),YD=y6.createElement("ol",{className:w6("public/DraftStyleDefault/ol")}),qD=y6.createElement("pre",{className:w6("public/DraftStyleDefault/pre")}),ZD=UD({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:GD},"ordered-list-item":{element:"li",wrapper:YD},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:qD},unstyled:{element:"div",aliasedElements:["p"]}}),x6=ZD,Uv={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}},D4={exports:{}};(function(e,t){(function(n,r){var a="0.7.36",i="",o="?",l="function",c="undefined",d="object",f="string",h="major",m="model",v="name",g="type",w="vendor",x="version",C="architecture",M="console",A="mobile",F="tablet",S="smarttv",B="wearable",I="embedded",K=350,Z="Amazon",X="Apple",te="ASUS",ue="BlackBerry",Q="Browser",fe="Chrome",he="Edge",ve="Firefox",ne="Google",le="Huawei",be="LG",G="Microsoft",de="Motorola",ee="Opera",me="Samsung",ge="Sharp",ye="Sony",q="Xiaomi",Le="Zebra",pe="Facebook",je="Chromium OS",Te="Mac OS",Me=function(et,Rt){var vt={};for(var jt in et)Rt[jt]&&Rt[jt].length%2===0?vt[jt]=Rt[jt].concat(et[jt]):vt[jt]=et[jt];return vt},ce=function(et){for(var Rt={},vt=0;vt<et.length;vt++)Rt[et[vt].toUpperCase()]=et[vt];return Rt},qe=function(et,Rt){return typeof et===f?ct(Rt).indexOf(ct(et))!==-1:!1},ct=function(et){return et.toLowerCase()},Ve=function(et){return typeof et===f?et.replace(/[^\d\.]/g,i).split(".")[0]:r},It=function(et,Rt){if(typeof et===f)return et=et.replace(/^\s\s*/,i),typeof Rt===c?et:et.substring(0,K)},wt=function(et,Rt){for(var vt=0,jt,f1,St,Ee,Oe,zt;vt<Rt.length&&!Oe;){var y1=Rt[vt],Mt=Rt[vt+1];for(jt=f1=0;jt<y1.length&&!Oe&&y1[jt];)if(Oe=y1[jt++].exec(et),Oe)for(St=0;St<Mt.length;St++)zt=Oe[++f1],Ee=Mt[St],typeof Ee===d&&Ee.length>0?Ee.length===2?typeof Ee[1]==l?this[Ee[0]]=Ee[1].call(this,zt):this[Ee[0]]=Ee[1]:Ee.length===3?typeof Ee[1]===l&&!(Ee[1].exec&&Ee[1].test)?this[Ee[0]]=zt?Ee[1].call(this,zt,Ee[2]):r:this[Ee[0]]=zt?zt.replace(Ee[1],Ee[2]):r:Ee.length===4&&(this[Ee[0]]=zt?Ee[3].call(this,zt.replace(Ee[1],Ee[2])):r):this[Ee]=zt||r;vt+=2}},Lt=function(et,Rt){for(var vt in Rt)if(typeof Rt[vt]===d&&Rt[vt].length>0){for(var jt=0;jt<Rt[vt].length;jt++)if(qe(Rt[vt][jt],et))return vt===o?r:vt}else if(qe(Rt[vt],et))return vt===o?r:vt;return et},a1={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Ct={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"},Yt={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[x,[v,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[x,[v,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[v,x],[/opios[\/ ]+([\w\.]+)/i],[x,[v,ee+" Mini"]],[/\bopr\/([\w\.]+)/i],[x,[v,ee]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[v,x],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[x,[v,"UC"+Q]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[x,[v,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[x,[v,"WeChat"]],[/konqueror\/([\w\.]+)/i],[x,[v,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[x,[v,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[x,[v,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[v,/(.+)/,"$1 Secure "+Q],x],[/\bfocus\/([\w\.]+)/i],[x,[v,ve+" Focus"]],[/\bopt\/([\w\.]+)/i],[x,[v,ee+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[x,[v,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[x,[v,"Dolphin"]],[/coast\/([\w\.]+)/i],[x,[v,ee+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[x,[v,"MIUI "+Q]],[/fxios\/([-\w\.]+)/i],[x,[v,ve]],[/\bqihu|(qi?ho?o?|360)browser/i],[[v,"360 "+Q]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[v,/(.+)/,"$1 "+Q],x],[/(comodo_dragon)\/([\w\.]+)/i],[[v,/_/g," "],x],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[v,x],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[v],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[v,pe],x],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[v,x],[/\bgsa\/([\w\.]+) .*safari\//i],[x,[v,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[x,[v,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[x,[v,fe+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[v,fe+" WebView"],x],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[x,[v,"Android "+Q]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[v,x],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[x,[v,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[x,v],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[v,[x,Lt,a1]],[/(webkit|khtml)\/([\w\.]+)/i],[v,x],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[v,"Netscape"],x],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[x,[v,ve+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[v,x],[/(cobalt)\/([\w\.]+)/i],[v,[x,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[C,"amd64"]],[/(ia32(?=;))/i],[[C,ct]],[/((?:i[346]|x)86)[;\)]/i],[[C,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[C,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[C,"armhf"]],[/windows (ce|mobile); ppc;/i],[[C,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[C,/ower/,i,ct]],[/(sun4\w)[;\)]/i],[[C,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[C,ct]]],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],[m,[w,me],[g,F]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[m,[w,me],[g,A]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[m,[w,X],[g,A]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[m,[w,X],[g,F]],[/(macintosh);/i],[m,[w,X]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[m,[w,ge],[g,A]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[m,[w,le],[g,F]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[m,[w,le],[g,A]],[/\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,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[m,/_/g," "],[w,q],[g,A]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[m,/_/g," "],[w,q],[g,F]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[m,[w,"OPPO"],[g,A]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[m,[w,"Vivo"],[g,A]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[m,[w,"Realme"],[g,A]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[m,[w,de],[g,A]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[m,[w,de],[g,F]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[m,[w,be],[g,F]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[m,[w,be],[g,A]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[m,[w,"Lenovo"],[g,F]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[m,/_/g," "],[w,"Nokia"],[g,A]],[/(pixel c)\b/i],[m,[w,ne],[g,F]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[m,[w,ne],[g,A]],[/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],[m,[w,ye],[g,A]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[m,"Xperia Tablet"],[w,ye],[g,F]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[m,[w,"OnePlus"],[g,A]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[m,[w,Z],[g,F]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[m,/(.+)/g,"Fire Phone $1"],[w,Z],[g,A]],[/(playbook);[-\w\),; ]+(rim)/i],[m,w,[g,F]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[m,[w,ue],[g,A]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[m,[w,te],[g,F]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[m,[w,te],[g,A]],[/(nexus 9)/i],[m,[w,"HTC"],[g,F]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[w,[m,/_/g," "],[g,A]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[m,[w,"Acer"],[g,F]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[m,[w,"Meizu"],[g,A]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[w,m,[g,A]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/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],[w,m,[g,F]],[/(surface duo)/i],[m,[w,G],[g,F]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[m,[w,"Fairphone"],[g,A]],[/(u304aa)/i],[m,[w,"AT&T"],[g,A]],[/\bsie-(\w*)/i],[m,[w,"Siemens"],[g,A]],[/\b(rct\w+) b/i],[m,[w,"RCA"],[g,F]],[/\b(venue[\d ]{2,7}) b/i],[m,[w,"Dell"],[g,F]],[/\b(q(?:mv|ta)\w+) b/i],[m,[w,"Verizon"],[g,F]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[m,[w,"Barnes & Noble"],[g,F]],[/\b(tm\d{3}\w+) b/i],[m,[w,"NuVision"],[g,F]],[/\b(k88) b/i],[m,[w,"ZTE"],[g,F]],[/\b(nx\d{3}j) b/i],[m,[w,"ZTE"],[g,A]],[/\b(gen\d{3}) b.+49h/i],[m,[w,"Swiss"],[g,A]],[/\b(zur\d{3}) b/i],[m,[w,"Swiss"],[g,F]],[/\b((zeki)?tb.*\b) b/i],[m,[w,"Zeki"],[g,F]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[w,"Dragon Touch"],m,[g,F]],[/\b(ns-?\w{0,9}) b/i],[m,[w,"Insignia"],[g,F]],[/\b((nxa|next)-?\w{0,9}) b/i],[m,[w,"NextBook"],[g,F]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[w,"Voice"],m,[g,A]],[/\b(lvtel\-)?(v1[12]) b/i],[[w,"LvTel"],m,[g,A]],[/\b(ph-1) /i],[m,[w,"Essential"],[g,A]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[m,[w,"Envizen"],[g,F]],[/\b(trio[-\w\. ]+) b/i],[m,[w,"MachSpeed"],[g,F]],[/\btu_(1491) b/i],[m,[w,"Rotor"],[g,F]],[/(shield[\w ]+) b/i],[m,[w,"Nvidia"],[g,F]],[/(sprint) (\w+)/i],[w,m,[g,A]],[/(kin\.[onetw]{3})/i],[[m,/\./g," "],[w,G],[g,A]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[m,[w,Le],[g,F]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[m,[w,Le],[g,A]],[/smart-tv.+(samsung)/i],[w,[g,S]],[/hbbtv.+maple;(\d+)/i],[[m,/^/,"SmartTV"],[w,me],[g,S]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[w,be],[g,S]],[/(apple) ?tv/i],[w,[m,X+" TV"],[g,S]],[/crkey/i],[[m,fe+"cast"],[w,ne],[g,S]],[/droid.+aft(\w+)( bui|\))/i],[m,[w,Z],[g,S]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[m,[w,ge],[g,S]],[/(bravia[\w ]+)( bui|\))/i],[m,[w,ye],[g,S]],[/(mitv-\w{5}) bui/i],[m,[w,q],[g,S]],[/Hbbtv.*(technisat) (.*);/i],[w,m,[g,S]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[w,It],[m,It],[g,S]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[g,S]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[w,m,[g,M]],[/droid.+; (shield) bui/i],[m,[w,"Nvidia"],[g,M]],[/(playstation [345portablevi]+)/i],[m,[w,ye],[g,M]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[m,[w,G],[g,M]],[/((pebble))app/i],[w,m,[g,B]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[m,[w,X],[g,B]],[/droid.+; (glass) \d/i],[m,[w,ne],[g,B]],[/droid.+; (wt63?0{2,3})\)/i],[m,[w,Le],[g,B]],[/(quest( 2| pro)?)/i],[m,[w,pe],[g,B]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[w,[g,I]],[/(aeobc)\b/i],[m,[w,Z],[g,I]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[m,[g,A]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[m,[g,F]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[g,F]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[g,A]],[/(android[-\w\. ]{0,9});.+buil/i],[m,[w,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[x,[v,he+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[x,[v,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[v,x],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[x,v]],os:[[/microsoft (windows) (vista|xp)/i],[v,x],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[v,[x,Lt,Ct]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[v,"Windows"],[x,Lt,Ct]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[x,/_/g,"."],[v,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[v,Te],[x,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[x,v],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[v,x],[/\(bb(10);/i],[x,[v,ue]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[x,[v,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[x,[v,ve+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[x,[v,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[x,[v,"watchOS"]],[/crkey\/([\d\.]+)/i],[x,[v,fe+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[v,je],x],[/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) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[v,x],[/(sunos) ?([\w\.\d]*)/i],[[v,"Solaris"],x],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[v,x]]},qt=function(et,Rt){if(typeof et===d&&(Rt=et,et=r),!(this instanceof qt))return new qt(et,Rt).getResult();var vt=typeof n!==c&&n.navigator?n.navigator:r,jt=et||(vt&&vt.userAgent?vt.userAgent:i),f1=vt&&vt.userAgentData?vt.userAgentData:r,St=Rt?Me(Yt,Rt):Yt,Ee=vt&&vt.userAgent==jt;return this.getBrowser=function(){var Oe={};return Oe[v]=r,Oe[x]=r,wt.call(Oe,jt,St.browser),Oe[h]=Ve(Oe[x]),Ee&&vt&&vt.brave&&typeof vt.brave.isBrave==l&&(Oe[v]="Brave"),Oe},this.getCPU=function(){var Oe={};return Oe[C]=r,wt.call(Oe,jt,St.cpu),Oe},this.getDevice=function(){var Oe={};return Oe[w]=r,Oe[m]=r,Oe[g]=r,wt.call(Oe,jt,St.device),Ee&&!Oe[g]&&f1&&f1.mobile&&(Oe[g]=A),Ee&&Oe[m]=="Macintosh"&&vt&&typeof vt.standalone!==c&&vt.maxTouchPoints&&vt.maxTouchPoints>2&&(Oe[m]="iPad",Oe[g]=F),Oe},this.getEngine=function(){var Oe={};return Oe[v]=r,Oe[x]=r,wt.call(Oe,jt,St.engine),Oe},this.getOS=function(){var Oe={};return Oe[v]=r,Oe[x]=r,wt.call(Oe,jt,St.os),Ee&&!Oe[v]&&f1&&f1.platform!="Unknown"&&(Oe[v]=f1.platform.replace(/chrome os/i,je).replace(/macos/i,Te)),Oe},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 jt},this.setUA=function(Oe){return jt=typeof Oe===f&&Oe.length>K?It(Oe,K):Oe,this},this.setUA(jt),this};qt.VERSION=a,qt.BROWSER=ce([v,x,h]),qt.CPU=ce([C]),qt.DEVICE=ce([m,w,g,M,A,S,F,B,I]),qt.ENGINE=qt.OS=ce([v,x]),e.exports&&(t=e.exports=qt),t.UAParser=qt;var n1=typeof n!==c&&(n.jQuery||n.Zepto);if(n1&&!n1.ua){var ot=new qt;n1.ua=ot.getResult(),n1.ua.get=function(){return ot.getUA()},n1.ua.set=function(et){ot.setUA(et);var Rt=ot.getResult();for(var vt in Rt)n1.ua[vt]=Rt[vt]}}})(typeof window=="object"?window:L2)})(D4,D4.exports);var JD=D4.exports,XD=JD,Mr="Unknown",QD={"Mac OS":"Mac OS X"};function _D(e){return QD[e]||e}function $D(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}var eT=new XD,kr=eT.getResult(),tT=$D(kr.browser.version),nT={browserArchitecture:kr.cpu.architecture||Mr,browserFullVersion:kr.browser.version||Mr,browserMinorVersion:tT.minor||Mr,browserName:kr.browser.name||Mr,browserVersion:kr.browser.major||Mr,deviceName:kr.device.model||Mr,engineName:kr.engine.name||Mr,engineVersion:kr.engine.version||Mr,platformArchitecture:kr.cpu.architecture||Mr,platformName:_D(kr.os.name)||Mr,platformVersion:kr.os.version||Mr,platformFullVersion:kr.os.version||Mr},rT=nT,Oa=k1,Gv=/\./,aT=/\|\|/,iT=/\s+\-\s+/,oT=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,J7=/^(\d*)(.*)/;function sT(e,t){var n=e.split(aT);return n.length>1?n.some(function(r){return Jv.contains(r,t)}):(e=n[0].trim(),lT(e,t))}function lT(e,t){var n=e.split(iT);if(n.length>0&&n.length<=2||(process.env.NODE_ENV!=="production"?Oa(!1,'the "-" operator expects exactly 2 operands'):Oa(!1)),n.length===1)return ll(n[0],t);var r=n[0],a=n[1];return X7(r)&&X7(a)||(process.env.NODE_ENV!=="production"?Oa(!1,'operands to the "-" operator must be simple (no modifiers)'):Oa(!1)),ll(">="+r,t)&&ll("<="+a,t)}function ll(e,t){if(e=e.trim(),e==="")return!0;var n=t.split(Gv),r=Zv(e),a=r.modifier,i=r.rangeComponents;switch(a){case"<":return Yv(n,i);case"<=":return cT(n,i);case">=":return qv(n,i);case">":return dT(n,i);case"~":case"~>":return fT(n,i);default:return uT(n,i)}}function Yv(e,t){return Z8(e,t)===-1}function cT(e,t){var n=Z8(e,t);return n===-1||n===0}function uT(e,t){return Z8(e,t)===0}function qv(e,t){var n=Z8(e,t);return n===1||n===0}function dT(e,t){return Z8(e,t)===1}function fT(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var a=r.length-1,i=parseInt(r[a],10);return T4(i)&&(r[a]=i+1+""),qv(e,n)&&Yv(e,r)}function Zv(e){var t=e.split(Gv),n=t[0].match(oT);return n||(process.env.NODE_ENV!=="production"?Oa(!1,"expected regex to match but it did not"):Oa(!1)),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function T4(e){return!isNaN(e)&&isFinite(e)}function X7(e){return!Zv(e).modifier}function Q7(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function hT(e,t){e=e.slice(),t=t.slice(),Q7(e,t.length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]="0",r[0]==="*"&&n===t.length-1))for(var a=n;a<e.length;a++)e[a]="0"}return Q7(t,e.length),[e,t]}function pT(e,t){var n=e.match(J7)[1],r=t.match(J7)[1],a=parseInt(n,10),i=parseInt(r,10);return T4(a)&&T4(i)&&a!==i?_7(a,i):_7(e,t)}function _7(e,t){return typeof e!=typeof t&&(process.env.NODE_ENV!=="production"?Oa(!1,'"a" and "b" must be of the same type'):Oa(!1)),e>t?1:e<t?-1:0}function Z8(e,t){for(var n=hT(e,t),r=n[0],a=n[1],i=0;i<a.length;i++){var o=pT(r[i],a[i]);if(o)return o}return 0}var Jv={contains:function(t,n){return sT(t.trim(),n.trim())}},mT=Jv,vT=Object.prototype.hasOwnProperty;function gT(e,t,n){if(!e)return null;var r={};for(var a in e)vT.call(e,a)&&(r[a]=t.call(n,e[a],a,e));return r}var yT=gT;function wT(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}var xT=wT,b2=rT,bT=mT,ET=yT,AT=xT;function j0(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var a=n.slice(e.length);return t?(a=r?r(a):a,bT.contains(a,t)):!1}function CT(e){return b2.platformName==="Windows"?e.replace(/^\s*NT/,""):e}var ST={isBrowser:function(t){return j0(b2.browserName,b2.browserFullVersion,t)},isBrowserArchitecture:function(t){return j0(b2.browserArchitecture,null,t)},isDevice:function(t){return j0(b2.deviceName,null,t)},isEngine:function(t){return j0(b2.engineName,b2.engineVersion,t)},isPlatform:function(t){return j0(b2.platformName,b2.platformFullVersion,t,CT)},isPlatformArchitecture:function(t){return j0(b2.platformArchitecture,null,t)}},ur=ET(ST,AT);function MT(e){return!e||!e.ownerDocument?document:e.ownerDocument}var F5=MT;function FT(e){return!e||!e.ownerDocument?!1:e.nodeType===Node.ELEMENT_NODE}var l0=FT,kT=l0;function Xv(e){if(kT(e)){var t=e,n=t.getAttribute("data-offset-key");if(n)return n;for(var r=0;r<t.childNodes.length;r++){var a=Xv(t.childNodes[r]);if(a)return a}}return null}var Qv=Xv,zT=F5,LT=Qv;function jT(e){for(var t=e;t&&t!==zT(e).documentElement;){var n=LT(t);if(n!=null)return n;t=t.parentNode}return null}var k5=jT;function RT(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}var _v=RT;function bo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var DT=ur,TT=k5,BT=_v,OT=x1,$7=k1,NT=cr,eu=OT.Map,PT={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},tu=DT.isBrowser("IE <= 11"),IT=function(){function e(n){var r=this;bo(this,"observer",void 0),bo(this,"container",void 0),bo(this,"mutations",void 0),bo(this,"onCharData",void 0),this.container=n,this.mutations=eu();var a=BT(n);a.MutationObserver&&!tu?this.observer=new a.MutationObserver(function(i){return r.registerMutations(i)}):this.onCharData=function(i){i.target instanceof Node||(process.env.NODE_ENV!=="production"?$7(!1,"Expected target to be an instance of Node"):$7(!1)),r.registerMutation({type:"characterData",target:i.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,PT):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var r=this.observer;r?(this.registerMutations(r.takeRecords()),r.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var a=this.mutations;return this.mutations=eu(),a},t.registerMutations=function(r){for(var a=0;a<r.length;a++)this.registerMutation(r[a])},t.getMutationTextContent=function(r){var a=r.type,i=r.target,o=r.removedNodes;if(a==="characterData"){if(i.textContent!=="")return tu?i.textContent.replace(`
|
|
178
178
|
`,""):i.textContent}else if(a==="childList"){if(o&&o.length)return"";if(i.textContent!=="")return i.textContent}return null},t.registerMutation=function(r){var a=this.getMutationTextContent(r);if(a!=null){var i=NT(TT(r.target));this.mutations=this.mutations.set(i,a)}},e}(),VT=IT,Eo="-",HT={encode:function(t,n,r){return t+Eo+n+Eo+r},decode:function(t){var n=t.split(Eo).reverse(),r=n[0],a=n[1],i=n.slice(2);return{blockKey:i.reverse().join(Eo),decoratorKey:parseInt(a,10),leafKey:parseInt(r,10)}}},ha=HT,z5={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105},$v={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};function WT(e){return!e||!e.ownerDocument?!1:e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement}var J8=WT,Ao=k1,KT=J8;function UT(e){var t=e.editorContainer;t||(process.env.NODE_ENV!=="production"?Ao(!1,"Missing editorNode"):Ao(!1)),KT(t.firstChild)||(process.env.NODE_ENV!=="production"?Ao(!1,"editorNode.firstChild is not an HTMLElement"):Ao(!1));var n=t.firstChild;return n}var eg=UT,nu=ha,GT=cr;function YT(e,t,n,r,a){var i=GT(e.getSelection());if(!t||!r)return process.env.NODE_ENV!=="production"&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var o=nu.decode(t),l=o.blockKey,c=e.getBlockTree(l),d=c&&c.getIn([o.decoratorKey,"leaves",o.leafKey]),f=nu.decode(r),h=f.blockKey,m=e.getBlockTree(h),v=m&&m.getIn([f.decoratorKey,"leaves",f.leafKey]);if(!d||!v)return process.env.NODE_ENV!=="production"&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var g=d.get("start"),w=v.get("start"),x=d?g+n:null,C=v?w+a:null,M=i.getAnchorKey()===l&&i.getAnchorOffset()===x&&i.getFocusKey()===h&&i.getFocusOffset()===C;if(M)return i;var A=!1;if(l===h){var F=d.get("end"),S=v.get("end");w===g&&S===F?A=a<n:A=w<g}else{var B=e.getCurrentContent().getBlockMap().keySeq().skipUntil(function(I){return I===l||I===h}).first();A=B===h}return i.merge({anchorKey:l,anchorOffset:x,focusKey:h,focusOffset:C,isBackward:A})}var tg=YT,K3=k5,$3=Qv,ru=tg,R0=k1,b6=l0,Ii=cr;function qT(e,t,n,r,a,i){var o=n.nodeType===Node.TEXT_NODE,l=a.nodeType===Node.TEXT_NODE;if(o&&l)return{selectionState:ru(e,Ii(K3(n)),r,Ii(K3(a)),i),needsRecovery:!1};var c=null,d=null,f=!0;return o?(c={key:Ii(K3(n)),offset:r},d=Co(t,a,i)):l?(d={key:Ii(K3(a)),offset:i},c=Co(t,n,r)):(c=Co(t,n,r),d=Co(t,a,i),n===a&&r===i&&(f=!!n.firstChild&&n.firstChild.nodeName!=="BR")),{selectionState:ru(e,c.key,c.offset,d.key,d.offset),needsRecovery:f}}function ZT(e){for(;e.firstChild&&(b6(e.firstChild)&&e.firstChild.getAttribute("data-blocks")==="true"||$3(e.firstChild));)e=e.firstChild;return e}function JT(e){for(;e.lastChild&&(b6(e.lastChild)&&e.lastChild.getAttribute("data-blocks")==="true"||$3(e.lastChild));)e=e.lastChild;return e}function Co(e,t,n){var r=t,a=K3(r);if(a!=null||e&&(e===r||e.firstChild===r)||(process.env.NODE_ENV!=="production"?R0(!1,"Unknown node in selection range."):R0(!1)),e===r){r=r.firstChild,b6(r)||(process.env.NODE_ENV!=="production"?R0(!1,"Invalid DraftEditorContents node."):R0(!1));var i=r;r=i,r.getAttribute("data-contents")!=="true"&&(process.env.NODE_ENV!=="production"?R0(!1,"Invalid DraftEditorContents structure."):R0(!1)),n>0&&(n=r.childNodes.length)}if(n===0){var o=null;if(a!=null)o=a;else{var l=ZT(r);o=Ii($3(l))}return{key:o,offset:0}}var c=r.childNodes[n-1],d=null,f=null;if(!$3(c))d=Ii(a),f=au(c);else{var h=JT(c);d=Ii($3(h)),f=au(h)}return{key:d,offset:f}}function au(e){var t=e.textContent;return t===`
|
|
@@ -1152,15 +1152,14 @@ const Bb = "#373737", Ob = "#151217", Nb = "#100e11", Pb = "_assignmentBreadCrum
|
|
|
1152
1152
|
websiteUrl: "qlu.ai",
|
|
1153
1153
|
headquarter: "Islamabad, Pakistan"
|
|
1154
1154
|
}, W5 = (e) => {
|
|
1155
|
-
var
|
|
1156
|
-
|
|
1157
|
-
if (t === "")
|
|
1155
|
+
var s, l;
|
|
1156
|
+
if (!e || !e.trim())
|
|
1158
1157
|
return "U";
|
|
1159
|
-
const
|
|
1160
|
-
if (
|
|
1161
|
-
return
|
|
1162
|
-
const
|
|
1163
|
-
return `${
|
|
1158
|
+
const a = e.trim().split(/[^\w]+/).filter((d) => d !== ""), i = (s = a[0]) == null ? void 0 : s.charAt(0);
|
|
1159
|
+
if (a.length === 1)
|
|
1160
|
+
return i.toUpperCase() ?? "";
|
|
1161
|
+
const o = (l = a[1]) == null ? void 0 : l.charAt(0);
|
|
1162
|
+
return `${i ?? ""}${o ?? ""}`.toUpperCase();
|
|
1164
1163
|
}, Zb = (e) => {
|
|
1165
1164
|
const t = e.trim();
|
|
1166
1165
|
return t === "" ? "" : t.split(/[^\w]+/).filter((i) => i !== "")[0] ?? "";
|
|
@@ -11717,35 +11716,38 @@ const dz = ({
|
|
|
11717
11716
|
sizeVariant: "xs"
|
|
11718
11717
|
}
|
|
11719
11718
|
), o0e = ({
|
|
11720
|
-
assigneeName: e
|
|
11721
|
-
assigneeMail: t
|
|
11719
|
+
assigneeName: e,
|
|
11720
|
+
assigneeMail: t,
|
|
11722
11721
|
iconType: n = "plus",
|
|
11723
11722
|
isLoading: r = !1,
|
|
11724
11723
|
isAdmin: a = !1,
|
|
11725
11724
|
onClick: i
|
|
11726
|
-
}) =>
|
|
11727
|
-
|
|
11728
|
-
/* @__PURE__ */ u.jsxs("
|
|
11729
|
-
/* @__PURE__ */ u.
|
|
11730
|
-
|
|
11731
|
-
/* @__PURE__ */ u.
|
|
11732
|
-
|
|
11733
|
-
|
|
11734
|
-
|
|
11735
|
-
|
|
11736
|
-
|
|
11737
|
-
|
|
11738
|
-
|
|
11739
|
-
|
|
11740
|
-
|
|
11741
|
-
|
|
11742
|
-
|
|
11743
|
-
|
|
11744
|
-
|
|
11745
|
-
|
|
11746
|
-
|
|
11747
|
-
|
|
11748
|
-
|
|
11725
|
+
}) => {
|
|
11726
|
+
const o = !e || !e.trim();
|
|
11727
|
+
return /* @__PURE__ */ u.jsxs("div", { className: `assignmentCreation ${n}`, children: [
|
|
11728
|
+
/* @__PURE__ */ u.jsx("div", { className: "addTribeMemberCard--Initials", children: o ? "U" : W5(e).toUpperCase() }),
|
|
11729
|
+
/* @__PURE__ */ u.jsxs("span", { className: "addTribeMemberCard--TextAndButton", children: [
|
|
11730
|
+
/* @__PURE__ */ u.jsxs("span", { className: "addTribeMemberCard--Details", children: [
|
|
11731
|
+
/* @__PURE__ */ u.jsx("span", { className: "addTribeMemberCard--Name", children: /* @__PURE__ */ u.jsx(Yn, { maxWidth: "100%", children: e }) }),
|
|
11732
|
+
/* @__PURE__ */ u.jsx("span", { className: "addTribeMemberCard--Mail", children: /* @__PURE__ */ u.jsx(Yn, { maxWidth: "100%", children: t }) }),
|
|
11733
|
+
a && /* @__PURE__ */ u.jsx(
|
|
11734
|
+
xz,
|
|
11735
|
+
{
|
|
11736
|
+
showIcon: !1,
|
|
11737
|
+
text: "Owner",
|
|
11738
|
+
variant: "neutral"
|
|
11739
|
+
}
|
|
11740
|
+
)
|
|
11741
|
+
] }),
|
|
11742
|
+
dz({
|
|
11743
|
+
iconType: n,
|
|
11744
|
+
isAdmin: a,
|
|
11745
|
+
isLoading: r,
|
|
11746
|
+
onClick: i
|
|
11747
|
+
})
|
|
11748
|
+
] })
|
|
11749
|
+
] });
|
|
11750
|
+
};
|
|
11749
11751
|
const s0e = ({
|
|
11750
11752
|
date: e = "Sept 20",
|
|
11751
11753
|
fullName: t = "Raja Zain",
|
|
@@ -11,8 +11,9 @@ const RenderAddOrRemoveButton = ({ isAdmin = false, isLoading = false, iconType
|
|
|
11
11
|
}
|
|
12
12
|
return (_jsx(IconButton, { shape: "circular", color: "gray", variant: "tertiary", iconType: iconType, onClick: onClick, sizeVariant: "xs" }));
|
|
13
13
|
};
|
|
14
|
-
const AssignmentCreation = ({ assigneeName
|
|
15
|
-
|
|
14
|
+
const AssignmentCreation = ({ assigneeName, assigneeMail, iconType = "plus", isLoading = false, isAdmin = false, onClick, }) => {
|
|
15
|
+
const invalidName = !assigneeName || !assigneeName.trim();
|
|
16
|
+
return (_jsxs("div", { className: `assignmentCreation ${iconType}`, children: [_jsx("div", { className: "addTribeMemberCard--Initials", children: invalidName ? "U" : getInitials(assigneeName).toUpperCase() }), _jsxs("span", { className: "addTribeMemberCard--TextAndButton", children: [_jsxs("span", { className: "addTribeMemberCard--Details", children: [_jsx("span", { className: "addTribeMemberCard--Name", children: _jsx(EllipsisText, { maxWidth: "100%", children: assigneeName }) }), _jsx("span", { className: "addTribeMemberCard--Mail", children: _jsx(EllipsisText, { maxWidth: "100%", children: assigneeMail }) }), isAdmin && (_jsx(BadgeNonClickable, { showIcon: false, text: "Owner", variant: "neutral" }))] }), RenderAddOrRemoveButton({
|
|
16
17
|
iconType,
|
|
17
18
|
isAdmin,
|
|
18
19
|
isLoading,
|
package/dist/types/utils.d.ts
CHANGED
|
@@ -282,7 +282,7 @@ export declare const dummyExpIndustries: string[][];
|
|
|
282
282
|
export declare const dummyExpSkills: string[][];
|
|
283
283
|
export declare const dummyAbout = "Hello two three Since 2012, SCP I have been on a mission to transform what America eats by creating snacks from simple, nutrient-dense ingredients. \n I believe that what we put in our bodies, and how it is grown, SCSS matter immensely and we have the power to heal both people and our \n planet with those decisions. I founded Simple Mills with exactly that intent.Since 2012, I have been on a mission to transform what \n America eats by creating snacks from simple, nutrient-dense ingredients. I believe that what we put in our bodies, and how it is grown, \n matter immensely and we have the power to heal both people and our planet with those decisions. I founded Simple Mills with exactly \n that intent.Since 2012, I have been on a missscpion to transform what America eats by creating snacks from simple, nutrient-dense ingredients";
|
|
284
284
|
export declare const companyViewSummaryTypesPayload: CompanyViewSummaryTypes;
|
|
285
|
-
export declare const getInitials: (name: string) => string;
|
|
285
|
+
export declare const getInitials: (name: string | null) => string;
|
|
286
286
|
export declare const getFirstName: (fullName: string) => string;
|
|
287
287
|
export declare const getFormatedDate: (str: string) => string;
|
|
288
288
|
export declare const getDateFormatted: (dateString: string, format: "DMY" | "MD" | "TDMY") => string;
|
package/dist/types/utils.js
CHANGED
|
@@ -861,10 +861,11 @@ export const companyViewSummaryTypesPayload = {
|
|
|
861
861
|
headquarter: "Islamabad, Pakistan",
|
|
862
862
|
};
|
|
863
863
|
export const getInitials = (name) => {
|
|
864
|
-
const
|
|
865
|
-
if (
|
|
864
|
+
const invalidName = !name || !name.trim();
|
|
865
|
+
if (invalidName) {
|
|
866
866
|
return "U";
|
|
867
867
|
}
|
|
868
|
+
const trimmedName = name.trim();
|
|
868
869
|
const words = trimmedName.split(/[^\w]+/);
|
|
869
870
|
const filteredWords = words.filter((word) => word !== "");
|
|
870
871
|
const firstInitial = filteredWords[0]?.charAt(0);
|
package/dist/utils.d.ts
CHANGED
|
@@ -282,7 +282,7 @@ export declare const dummyExpIndustries: string[][];
|
|
|
282
282
|
export declare const dummyExpSkills: string[][];
|
|
283
283
|
export declare const dummyAbout = "Hello two three Since 2012, SCP I have been on a mission to transform what America eats by creating snacks from simple, nutrient-dense ingredients. \n I believe that what we put in our bodies, and how it is grown, SCSS matter immensely and we have the power to heal both people and our \n planet with those decisions. I founded Simple Mills with exactly that intent.Since 2012, I have been on a mission to transform what \n America eats by creating snacks from simple, nutrient-dense ingredients. I believe that what we put in our bodies, and how it is grown, \n matter immensely and we have the power to heal both people and our planet with those decisions. I founded Simple Mills with exactly \n that intent.Since 2012, I have been on a missscpion to transform what America eats by creating snacks from simple, nutrient-dense ingredients";
|
|
284
284
|
export declare const companyViewSummaryTypesPayload: CompanyViewSummaryTypes;
|
|
285
|
-
export declare const getInitials: (name: string) => string;
|
|
285
|
+
export declare const getInitials: (name: string | null) => string;
|
|
286
286
|
export declare const getFirstName: (fullName: string) => string;
|
|
287
287
|
export declare const getFormatedDate: (str: string) => string;
|
|
288
288
|
export declare const getDateFormatted: (dateString: string, format: "DMY" | "MD" | "TDMY") => string;
|