diff --git a/CHANGES.rst b/CHANGES.rst index ccf8ad0797..a898cccb5f 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,6 +4,7 @@ Changelog 2.5.0 (unreleased) ------------------ +- #2413 Fix select custom value for queryselect widget - #2412 Layered listing searchable text adapter lookup - #2409 Fix empty results get interpreted as 0.0 by 2-Dimensional-CSV importer - #2410 Fix order of choices for interims on data entry is not preserved diff --git a/src/senaite/core/browser/static/bundles/senaite.core.widgets.js b/src/senaite/core/browser/static/bundles/senaite.core.widgets.js index 40fecd1b71..a109a85984 100644 --- a/src/senaite/core/browser/static/bundles/senaite.core.widgets.js +++ b/src/senaite/core/browser/static/bundles/senaite.core.widgets.js @@ -1,2 +1,2 @@ -(()=>{var e={89:e=>{var t;t=function(e){"use strict";return function(){for(var t=[["Afghanistan (‫افغانستان‬‎)","af","93"],["Albania (Shqipëri)","al","355"],["Algeria (‫الجزائر‬‎)","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua and Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia (Հայաստան)","am","374"],["Aruba","aw","297"],["Ascension Island","ac","247"],["Australia","au","61",0],["Austria (Österreich)","at","43"],["Azerbaijan (Azərbaycan)","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain (‫البحرين‬‎)","bh","973"],["Bangladesh (বাংলাদেশ)","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus (Беларусь)","by","375"],["Belgium (België)","be","32"],["Belize","bz","501"],["Benin (Bénin)","bj","229"],["Bermuda","bm","1",10,["441"]],["Bhutan (འབྲུག)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (Босна и Херцеговина)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1",11,["284"]],["Brunei","bn","673"],["Bulgaria (България)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (កម្ពុជា)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic (République centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (中国)","cn","86"],["Christmas Island","cx","61",2,["89164"]],["Cocos (Keeling) Islands","cc","61",1,["89162"]],["Colombia","co","57"],["Comoros (‫جزر القمر‬‎)","km","269"],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Côte d’Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599",0],["Cyprus (Κύπρος)","cy","357"],["Czech Republic (Česká republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1",13,["767"]],["Dominican Republic (República Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (‫مصر‬‎)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Eswatini","sz","268"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (Føroyar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane française)","gf","594"],["French Polynesia (Polynésie française)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (საქართველო)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (Ελλάδα)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["Guinea (Guinée)","gn","224"],["Guinea-Bissau (Guiné Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (香港)","hk","852"],["Hungary (Magyarország)","hu","36"],["Iceland (Ísland)","is","354"],["India (भारत)","in","91"],["Indonesia","id","62"],["Iran (‫ایران‬‎)","ir","98"],["Iraq (‫العراق‬‎)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2,["1624","74576","7524","7924","7624"]],["Israel (‫ישראל‬‎)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan (日本)","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan (‫الأردن‬‎)","jo","962"],["Kazakhstan (Казахстан)","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (‫الكويت‬‎)","kw","965"],["Kyrgyzstan (Кыргызстан)","kg","996"],["Laos (ລາວ)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (‫لبنان‬‎)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (‫ليبيا‬‎)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (澳門)","mo","853"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (‫موريتانيا‬‎)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1,["269","639"]],["Mexico (México)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (Монгол)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1",16,["664"]],["Morocco (‫المغرب‬‎)","ma","212",0],["Mozambique (Moçambique)","mz","258"],["Myanmar (Burma) (မြန်မာ)","mm","95"],["Namibia (Namibië)","na","264"],["Nauru","nr","674"],["Nepal (नेपाल)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Calédonie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (조선 민주주의 인민 공화국)","kp","850"],["North Macedonia (Северна Македонија)","mk","389"],["Northern Mariana Islands","mp","1",17,["670"]],["Norway (Norge)","no","47",0],["Oman (‫عُمان‬‎)","om","968"],["Pakistan (‫پاکستان‬‎)","pk","92"],["Palau","pw","680"],["Palestine (‫فلسطين‬‎)","ps","970"],["Panama (Panamá)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Perú)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (‫قطر‬‎)","qa","974"],["Réunion (La Réunion)","re","262",0],["Romania (România)","ro","40"],["Russia (Россия)","ru","7",0],["Rwanda","rw","250"],["Saint Barthélemy","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1",18,["869"]],["Saint Lucia","lc","1",19,["758"]],["Saint Martin (Saint-Martin (partie française))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1",20,["784"]],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe (São Tomé e Príncipe)","st","239"],["Saudi Arabia (‫المملكة العربية السعودية‬‎)","sa","966"],["Senegal (Sénégal)","sn","221"],["Serbia (Србија)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1",21,["721"]],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["Somalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (대한민국)","kr","82"],["South Sudan (‫جنوب السودان‬‎)","ss","211"],["Spain (España)","es","34"],["Sri Lanka (ශ්‍රී ලංකාව)","lk","94"],["Sudan (‫السودان‬‎)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1,["79"]],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (‫سوريا‬‎)","sy","963"],["Taiwan (台灣)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (ไทย)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1",22,["868"]],["Tunisia (‫تونس‬‎)","tn","216"],["Turkey (Türkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1",24,["340"]],["Uganda","ug","256"],["Ukraine (Україна)","ua","380"],["United Arab Emirates (‫الإمارات العربية المتحدة‬‎)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (Oʻzbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Città del Vaticano)","va","39",1,["06698"]],["Venezuela","ve","58"],["Vietnam (Việt Nam)","vn","84"],["Wallis and Futuna (Wallis-et-Futuna)","wf","681"],["Western Sahara (‫الصحراء الغربية‬‎)","eh","212",1,["5288","5289"]],["Yemen (‫اليمن‬‎)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Åland Islands","ax","358",1,["18"]]],n=0;nthis.countryCodeMaxLen&&(this.countryCodeMaxLen=n.length),this.countryCodes.hasOwnProperty(n)||(this.countryCodes[n]=[]);for(var o=0;o-1}))}else if(this.options.excludeCountries.length){var n=this.options.excludeCountries.map((function(e){return e.toLowerCase()}));this.countries=t.filter((function(e){return-1===n.indexOf(e.iso2)}))}else this.countries=t}},{key:"_translateCountriesByLocale",value:function(){for(var e=0;e"),r+="
"),r+="".concat(i.name,""),r+="+".concat(i.dialCode,""),r+=""}this.countryList.insertAdjacentHTML("beforeend",r)}},{key:"_setInitialState",value:function(){var e=this.telInput.getAttribute("value"),t=this.telInput.value,n=!e||"+"!==e.charAt(0)||t&&"+"===t.charAt(0)?t:e,r=this._getDialCode(n),o=this._isRegionlessNanp(n),i=this.options,a=i.initialCountry,u=i.nationalMode,s=i.autoHideDialCode,c=i.separateDialCode;r&&!o?this._updateFlagFromNumber(n):"auto"!==a&&(a?this._setFlag(a.toLowerCase()):r&&o?this._setFlag("us"):(this.defaultCountry=this.preferredCountries.length?this.preferredCountries[0].iso2:this.countries[0].iso2,n||this._setFlag(this.defaultCountry)),n||u||s||c||(this.telInput.value="+".concat(this.selectedCountryData.dialCode))),n&&this._updateValFromNumber(n)}},{key:"_initListeners",value:function(){this._initKeyListeners(),this.options.autoHideDialCode&&this._initBlurListeners(),this.options.allowDropdown&&this._initDropdownListeners(),this.hiddenInput&&this._initHiddenInputListener()}},{key:"_initHiddenInputListener",value:function(){var e=this;this._handleHiddenInputSubmit=function(){e.hiddenInput.value=e.getNumber()},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleHiddenInputSubmit)}},{key:"_getClosestLabel",value:function(){for(var e=this.telInput;e&&"LABEL"!==e.tagName;)e=e.parentNode;return e}},{key:"_initDropdownListeners",value:function(){var e=this;this._handleLabelClick=function(t){e.countryList.classList.contains("iti__hide")?e.telInput.focus():t.preventDefault()};var t=this._getClosestLabel();t&&t.addEventListener("click",this._handleLabelClick),this._handleClickSelectedFlag=function(){!e.countryList.classList.contains("iti__hide")||e.telInput.disabled||e.telInput.readOnly||e._showDropdown()},this.selectedFlag.addEventListener("click",this._handleClickSelectedFlag),this._handleFlagsContainerKeydown=function(t){e.countryList.classList.contains("iti__hide")&&-1!==["ArrowUp","Up","ArrowDown","Down"," ","Enter"].indexOf(t.key)&&(t.preventDefault(),t.stopPropagation(),e._showDropdown()),"Tab"===t.key&&e._closeDropdown()},this.flagsContainer.addEventListener("keydown",this._handleFlagsContainerKeydown)}},{key:"_initRequests",value:function(){var e=this;this.options.utilsScript&&!window.intlTelInputUtils?window.intlTelInputGlobals.documentReady()?window.intlTelInputGlobals.loadUtils(this.options.utilsScript):window.addEventListener("load",(function(){window.intlTelInputGlobals.loadUtils(e.options.utilsScript)})):this.resolveUtilsScriptPromise(),"auto"===this.options.initialCountry?this._loadAutoCountry():this.resolveAutoCountryPromise()}},{key:"_loadAutoCountry",value:function(){window.intlTelInputGlobals.autoCountry?this.handleAutoCountry():window.intlTelInputGlobals.startedLoadingAutoCountry||(window.intlTelInputGlobals.startedLoadingAutoCountry=!0,"function"==typeof this.options.geoIpLookup&&this.options.geoIpLookup((function(e){window.intlTelInputGlobals.autoCountry=e.toLowerCase(),setTimeout((function(){return l("handleAutoCountry")}))}),(function(){return l("rejectAutoCountryPromise")})))}},{key:"_initKeyListeners",value:function(){var e=this;this._handleKeyupEvent=function(){e._updateFlagFromNumber(e.telInput.value)&&e._triggerCountryChange()},this.telInput.addEventListener("keyup",this._handleKeyupEvent),this._handleClipboardEvent=function(){setTimeout(e._handleKeyupEvent)},this.telInput.addEventListener("cut",this._handleClipboardEvent),this.telInput.addEventListener("paste",this._handleClipboardEvent)}},{key:"_cap",value:function(e){var t=this.telInput.getAttribute("maxlength");return t&&e.length>t?e.substr(0,t):e}},{key:"_initBlurListeners",value:function(){var e=this;this._handleSubmitOrBlurEvent=function(){e._removeEmptyDialCode()},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleSubmitOrBlurEvent),this.telInput.addEventListener("blur",this._handleSubmitOrBlurEvent)}},{key:"_removeEmptyDialCode",value:function(){if("+"===this.telInput.value.charAt(0)){var e=this._getNumeric(this.telInput.value);e&&this.selectedCountryData.dialCode!==e||(this.telInput.value="")}}},{key:"_getNumeric",value:function(e){return e.replace(/\D/g,"")}},{key:"_trigger",value:function(e){var t=document.createEvent("Event");t.initEvent(e,!0,!0),this.telInput.dispatchEvent(t)}},{key:"_showDropdown",value:function(){this.countryList.classList.remove("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","true"),this._setDropdownPosition(),this.activeItem&&(this._highlightListItem(this.activeItem,!1),this._scrollTo(this.activeItem,!0)),this._bindDropdownListeners(),this.dropdownArrow.classList.add("iti__arrow--up"),this._trigger("open:countrydropdown")}},{key:"_toggleClass",value:function(e,t,n){n&&!e.classList.contains(t)?e.classList.add(t):!n&&e.classList.contains(t)&&e.classList.remove(t)}},{key:"_setDropdownPosition",value:function(){var e=this;if(this.options.dropdownContainer&&this.options.dropdownContainer.appendChild(this.dropdown),!this.isMobile){var t=this.telInput.getBoundingClientRect(),n=window.pageYOffset||document.documentElement.scrollTop,r=t.top+n,o=this.countryList.offsetHeight,i=r+this.telInput.offsetHeight+on;if(this._toggleClass(this.countryList,"iti__country-list--dropup",!i&&a),this.options.dropdownContainer){var u=!i&&a?0:this.telInput.offsetHeight;this.dropdown.style.top="".concat(r+u,"px"),this.dropdown.style.left="".concat(t.left+document.body.scrollLeft,"px"),this._handleWindowScroll=function(){return e._closeDropdown()},window.addEventListener("scroll",this._handleWindowScroll)}}}},{key:"_getClosestListItem",value:function(e){for(var t=e;t&&t!==this.countryList&&!t.classList.contains("iti__country");)t=t.parentNode;return t===this.countryList?null:t}},{key:"_bindDropdownListeners",value:function(){var e=this;this._handleMouseoverCountryList=function(t){var n=e._getClosestListItem(t.target);n&&e._highlightListItem(n,!1)},this.countryList.addEventListener("mouseover",this._handleMouseoverCountryList),this._handleClickCountryList=function(t){var n=e._getClosestListItem(t.target);n&&e._selectListItem(n)},this.countryList.addEventListener("click",this._handleClickCountryList);var t=!0;this._handleClickOffToClose=function(){t||e._closeDropdown(),t=!1},document.documentElement.addEventListener("click",this._handleClickOffToClose);var n="",r=null;this._handleKeydownOnDropdown=function(t){t.preventDefault(),"ArrowUp"===t.key||"Up"===t.key||"ArrowDown"===t.key||"Down"===t.key?e._handleUpDownKey(t.key):"Enter"===t.key?e._handleEnterKey():"Escape"===t.key?e._closeDropdown():/^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(t.key)&&(r&&clearTimeout(r),n+=t.key.toLowerCase(),e._searchForCountry(n),r=setTimeout((function(){n=""}),1e3))},document.addEventListener("keydown",this._handleKeydownOnDropdown)}},{key:"_handleUpDownKey",value:function(e){var t="ArrowUp"===e||"Up"===e?this.highlightedItem.previousElementSibling:this.highlightedItem.nextElementSibling;t&&(t.classList.contains("iti__divider")&&(t="ArrowUp"===e||"Up"===e?t.previousElementSibling:t.nextElementSibling),this._highlightListItem(t,!0))}},{key:"_handleEnterKey",value:function(){this.highlightedItem&&this._selectListItem(this.highlightedItem)}},{key:"_searchForCountry",value:function(e){for(var t=0;ta){t&&(l+=f);var d=o-u;n.scrollTop=l-d}}},{key:"_updateDialCode",value:function(e,t){var n,r=this.telInput.value,o="+".concat(e);if("+"===r.charAt(0)){var i=this._getDialCode(r);n=i?r.replace(i,o):o}else{if(this.options.nationalMode||this.options.separateDialCode)return;if(r)n=o+r;else{if(!t&&this.options.autoHideDialCode)return;n=o}}this.telInput.value=n}},{key:"_getDialCode",value:function(e,t){var n="";if("+"===e.charAt(0))for(var r="",o=0;o{e.exports=n(89)},944:(e,t,n)=>{!function(){"use strict";var t=function(e){if(null===e)return"null";if(void 0===e)return"undefined";var t=typeof e;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},r=function(e){return{eq:e}},o=r((function(e,t){return e===t})),i=function(e){return r((function(t,n){if(t.length!==n.length)return!1;for(var r=t.length,o=0;o-1},q=function(e,t){for(var n=0,r=e.length;n=0;n--)t(e[n],n)},W=function(e,t){for(var n=[],r=[],o=0,i=e.length;o=0&&t=t.length&&e.substr(0,0+t.length)===t}(e,t)},Me=function(e){return function(t){return t.replace(e,"")}},je=Me(/^\s+|\s+$/g),Fe=Me(/^\s+/g),Ue=Me(/\s+$/g),ze=function(e){return e.length>0},qe=function(e){return!ze(e)},He=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Ve=function(e){return function(t){return De(t,e)}},$e=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return De(e,"edge/")&&De(e,"chrome")&&De(e,"safari")&&De(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,He],search:function(e){return De(e,"chrome")&&!De(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return De(e,"msie")||De(e,"trident")}},{name:"Opera",versionRegexes:[He,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Ve("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Ve("firefox")},{name:"Safari",versionRegexes:[He,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(De(e,"safari")||De(e,"mobile/"))&&De(e,"applewebkit")}}],We=[{name:"Windows",search:Ve("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return De(e,"iphone")||De(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Ve("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Ve("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Ve("linux"),versionRegexes:[]},{name:"Solaris",search:Ve("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Ve("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Ve("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Ke={browsers:x($e),oses:x(We)},Ge="Edge",Xe="Chrome",Ye="Opera",Je="Firefox",Qe="Safari",Ze=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(Ge),isChrome:r(Xe),isIE:r("IE"),isOpera:r(Ye),isFirefox:r(Je),isSafari:r(Qe)}},et=function(){return Ze({current:void 0,version:Be.unknown()})},tt=Ze,nt=(x(Ge),x(Xe),x("IE"),x(Ye),x(Je),x(Qe),"Windows"),rt="Android",ot="Linux",it="Solaris",at="FreeBSD",ut="ChromeOS",st=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(nt),isiOS:r("iOS"),isAndroid:r(rt),isOSX:r("OSX"),isLinux:r(ot),isSolaris:r(it),isFreeBSD:r(at),isChromeOS:r(ut)}},ct=function(){return st({current:void 0,version:Be.unknown()})},lt=st,ft=(x(nt),x("iOS"),x(rt),x(ot),x("OSX"),x(it),x(at),x(ut),function(e){return window.matchMedia(e).matches}),dt=Te((function(){return function(e,t,n){var r=Ke.browsers(),o=Ke.oses(),i=t.bind((function(e){return function(e,t){return se(t.brands,(function(t){var n=t.brand.toLowerCase();return J(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:Be.nu(parseInt(t.version,10),0)}}))}))}(r,e)})).orThunk((function(){return function(e,t){return Le(e,t).map((function(e){var n=Be.detect(e.versionRegexes,t);return{current:e.name,version:n}}))}(r,e)})).fold(et,tt),a=function(e,t){return Le(e,t).map((function(e){var n=Be.detect(e.versionRegexes,t);return{current:e.name,version:n}}))}(o,e).fold(ct,lt),u=function(e,t,n,r){var o=e.isiOS()&&!0===/ipad/i.test(n),i=e.isiOS()&&!o,a=e.isiOS()||e.isAndroid(),u=a||r("(pointer:coarse)"),s=o||!i&&a&&r("(min-device-width:768px)"),c=i||a&&!s,l=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),f=!c&&!s&&!l;return{isiPad:x(o),isiPhone:x(i),isTablet:x(s),isPhone:x(c),isTouch:x(u),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:x(l),isDesktop:x(f)}}(a,i,e,n);return{browser:i,os:a,deviceType:u}}(navigator.userAgent,I.from(navigator.userAgentData),ft)})),pt=function(){return dt()},ht=navigator.userAgent,mt=pt(),gt=mt.browser,vt=mt.os,yt=mt.deviceType,bt=/WebKit/.test(ht)&&!gt.isEdge(),_t="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,Ct=-1!==ht.indexOf("Windows Phone"),wt={opera:gt.isOpera(),webkit:bt,ie:!(!gt.isIE()&&!gt.isEdge())&>.version.major,gecko:gt.isFirefox(),mac:vt.isOSX()||vt.isiOS(),iOS:yt.isiPad()||yt.isiPhone(),android:vt.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:window.getSelection&&"Range"in window,documentMode:gt.isIE()?document.documentMode||7:10,fileApi:_t,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!gt.isIE(),desktop:yt.isDesktop(),windowsPhone:Ct,browser:{current:gt.current,version:gt.version,isChrome:gt.isChrome,isEdge:gt.isEdge,isFirefox:gt.isFirefox,isIE:gt.isIE,isOpera:gt.isOpera,isSafari:gt.isSafari},os:{current:vt.current,version:vt.version,isAndroid:vt.isAndroid,isChromeOS:vt.isChromeOS,isFreeBSD:vt.isFreeBSD,isiOS:vt.isiOS,isLinux:vt.isLinux,isOSX:vt.isOSX,isSolaris:vt.isSolaris,isWindows:vt.isWindows},deviceType:{isDesktop:yt.isDesktop,isiPad:yt.isiPad,isiPhone:yt.isiPhone,isPhone:yt.isPhone,isTablet:yt.isTablet,isTouch:yt.isTouch,isWebView:yt.isWebView}},kt=/^\s*|\s*$/g,xt=function(e){return null==e?"":(""+e).replace(kt,"")},St=function(e,t){return t?!("array"!==t||!_e(e))||typeof e===t:void 0!==e},Et=function(e,t,n,r){r=r||this,e&&(n&&(e=e[n]),Ce(e,(function(e,o){if(!1===t.call(r,e,o,n))return!1;Et(e,t,n,r)})))},Nt={trim:xt,isArray:_e,is:St,toArray:function(e){if(_e(e))return e;for(var t=[],n=0,r=e.length;n1)throw new Error("HTML must have a single root node");return At(n.childNodes[0])},Tt=function(e,t){var n=(t||document).createElement(e);return At(n)},Rt=function(e,t){var n=(t||document).createTextNode(e);return At(n)},Pt=At,Bt=function(e,t){var n=[],r=function(e){return n.push(e),t(e)},o=t(e);do{o=o.bind(r)}while(o.isSome());return n},Lt=function(e,t){var n=e.dom;if(1!==n.nodeType)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Dt=function(e){return 1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType||0===e.childElementCount},It=function(e,t){return e.dom===t.dom},Mt=function(e,t){return pt().browser.isIE()?function(e,t){return function(e,t,n){return 0!=(e.compareDocumentPosition(t)&n)}(e.dom,t.dom,Node.DOCUMENT_POSITION_CONTAINED_BY)}(e,t):function(e,t){var n=e.dom,r=t.dom;return n!==r&&n.contains(r)}(e,t)};"undefined"!=typeof window?window:Function("return this;")();var jt=function(e){return e.dom.nodeName.toLowerCase()},Ft=function(e){return e.dom.nodeType},Ut=function(e){return function(t){return Ft(t)===e}},zt=Ut(1),qt=Ut(3),Ht=Ut(9),Vt=Ut(11),$t=function(e){return Pt(e.dom.ownerDocument)},Wt=function(e){return Ht(e)?e:$t(e)},Kt=function(e){return Pt(Wt(e).dom.defaultView)},Gt=function(e){return I.from(e.dom.parentNode).map(Pt)},Xt=function(e){return I.from(e.dom.previousSibling).map(Pt)},Yt=function(e){return I.from(e.dom.nextSibling).map(Pt)},Jt=function(e){return te(Bt(e,Xt))},Qt=function(e){return Bt(e,Yt)},Zt=function(e){return H(e.dom.childNodes,Pt)},en=function(e,t){var n=e.dom.childNodes;return I.from(n[t]).map(Pt)},tn=function(e){return en(e,0)},nn=function(e){return en(e,e.dom.childNodes.length-1)},rn=function(e){return e.dom.childNodes.length},on=function(e){return Vt(e)&&y(e.dom.host)},an=b(Element.prototype.attachShadow)&&b(Node.prototype.getRootNode),un=x(an),sn=an?function(e){return Pt(e.dom.getRootNode())}:Wt,cn=function(e){return on(e)?e:function(e){var t=e.dom.head;if(null==t)throw new Error("Head is not available yet");return Pt(t)}(Wt(e))},ln=function(e){return Pt(e.dom.host)},fn=function(e,t){Gt(e).each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},dn=function(e,t){Yt(e).fold((function(){Gt(e).each((function(e){hn(e,t)}))}),(function(e){fn(e,t)}))},pn=function(e,t){tn(e).fold((function(){hn(e,t)}),(function(n){e.dom.insertBefore(t.dom,n.dom)}))},hn=function(e,t){e.dom.appendChild(t.dom)},mn=function(e,t){V(t,(function(t){hn(e,t)}))},gn=function(e){e.dom.textContent="",V(Zt(e),(function(e){vn(e)}))},vn=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},yn=function(e){var t,n=Zt(e);n.length>0&&(t=e,V(n,(function(e){fn(t,e)}))),vn(e)},bn=function(e){var t=qt(e)?e.dom.parentNode:e.dom;if(null==t||null===t.ownerDocument)return!1;var n=t.ownerDocument;return function(e){var t=sn(e);return on(t)?I.some(t):I.none()}(Pt(t)).fold((function(){return n.body.contains(t)}),k(bn,ln))},_n=function(e,t){return{left:e,top:t,translate:function(n,r){return _n(e+n,t+r)}}},Cn=_n,wn=function(e,t){return void 0!==e?e:void 0!==t?t:0},kn=function(e){var t=e.dom,n=t.ownerDocument.body;return n===t?Cn(n.offsetLeft,n.offsetTop):bn(e)?function(e){var t=e.getBoundingClientRect();return Cn(t.left,t.top)}(t):Cn(0,0)},xn=function(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return Cn(n,r)},Sn=function(e,t,n){var r=(void 0!==n?n.dom:document).defaultView;r&&r.scrollTo(e,t)},En=function(e,t){pt().browser.isSafari()&&b(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(t)},Nn=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},An=function(e){var t=void 0===e?window:e,n=t.document,r=xn(Pt(n));return function(e){var t=void 0===e?window:e;return pt().browser.isFirefox()?I.none():I.from(t.visualViewport)}(t).fold((function(){var e=t.document.documentElement,n=e.clientWidth,o=e.clientHeight;return Nn(r.left,r.top,n,o)}),(function(e){return Nn(Math.max(e.pageLeft,r.left),Math.max(e.pageTop,r.top),e.width,e.height)}))},On=function(e){return function(t){return!!t&&t.nodeType===e}},Tn=function(e){return!!e&&!Object.getPrototypeOf(e)},Rn=On(1),Pn=function(e){var t=e.map((function(e){return e.toLowerCase()}));return function(e){if(e&&e.nodeName){var n=e.nodeName.toLowerCase();return z(t,n)}return!1}},Bn=function(e,t){var n=t.toLowerCase().split(" ");return function(t){if(Rn(t))for(var r=0;r0}))},ur=function(e){var t={},n=e.dom;if(Jn(n))for(var r=0;r=o.length&&e(t)}}(i))}))}))).get((function(e){var r=W(e,(function(e){return e.isValue()}));r.fail.length>0?n(r.fail.map(kr)):t(r.pass.map(kr))}))},unload:c,unloadAll:function(e){V(e,(function(e){c(e)}))},_setReferrerPolicy:function(e){t.referrerPolicy=e}}},eo=function(){var e=new WeakMap;return{forElement:function(t,n){var r=sn(t).dom;return I.from(e.get(r)).getOrThunk((function(){var t=Zr(r,n);return e.set(r,t),t}))}}}(),to=function(){function e(e,t){this.node=e,this.rootNode=t,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}return e.prototype.current=function(){return this.node},e.prototype.next=function(e){return this.node=this.findSibling(this.node,"firstChild","nextSibling",e),this.node},e.prototype.prev=function(e){return this.node=this.findSibling(this.node,"lastChild","previousSibling",e),this.node},e.prototype.prev2=function(e){return this.node=this.findPreviousNode(this.node,"lastChild","previousSibling",e),this.node},e.prototype.findSibling=function(e,t,n,r){var o,i;if(e){if(!r&&e[t])return e[t];if(e!==this.rootNode){if(o=e[n])return o;for(i=e.parentNode;i&&i!==this.rootNode;i=i.parentNode)if(o=i[n])return o}}},e.prototype.findPreviousNode=function(e,t,n,r){var o,i,a;if(e){if(o=e[n],this.rootNode&&o===this.rootNode)return;if(o){if(!r)for(a=o[t];a;a=a[t])if(!a[t])return a;return o}if((i=e.parentNode)&&i!==this.rootNode)return i}},e}(),no=function(e){var t;return function(n){return t=t||function(e,t){for(var n={},r=0,o=e.length;r=0;i--)Yo(e,o[i],r);if(Rn(t)){var a=t.childNodes;1===a.length&&Xo(a[0])&&t.parentNode.insertBefore(a[0],t)}return function(e){return qn(e)||zn(e)}(t)||Ho(t,r)||function(e){return!!Rn(e)&&e.childNodes.length>0}(t)||function(e,t){return Fn(e)&&e.data.length>0&&function(e,t){var n=new to(e,t).prev(!1),r=new to(e,t).next(!1),o=g(n)||Go(n,t),i=g(r)||Go(r,t);return o&&i}(e,t)}(t,r)||e.remove(t),t},Jo=Nt.makeMap,Qo=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Zo=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ei=/[<>&\"\']/g,ti=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,ni={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},ri={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},oi={"<":"<",">":">","&":"&",""":'"',"'":"'"},ii=function(e,t){var n,r,o,i={};if(e){for(e=e.split(","),t=t||10,n=0;n1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":ri[e]||"&#"+e.charCodeAt(0)+";"}))},ci=function(e,t,n){return n=n||ai,e.replace(t?Qo:Zo,(function(e){return ri[e]||n[e]||e}))},li={encodeRaw:ui,encodeAllRaw:function(e){return(""+e).replace(ei,(function(e){return ri[e]||e}))},encodeNumeric:si,encodeNamed:ci,getEncodeFunc:function(e,t){var n=ii(t)||ai,r=Jo(e.replace(/\+/g,","));return r.named&&r.numeric?function(e,t){return e.replace(t?Qo:Zo,(function(e){return void 0!==ri[e]?ri[e]:void 0!==n[e]?n[e]:e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":"&#"+e.charCodeAt(0)+";"}))}:r.named?t?function(e,t){return ci(e,t,n)}:ci:r.numeric?si:ui},decode:function(e){return e.replace(ti,(function(e,t){return t?(t="x"===t.charAt(0).toLowerCase()?parseInt(t.substr(1),16):parseInt(t,10))>65535?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):ni[t]||String.fromCharCode(t):oi[e]||ai[e]||function(e){var t=Tt("div").dom;return t.innerHTML=e,t.textContent||t.innerText||e}(e)}))}},fi={},di={},pi=Nt.makeMap,hi=Nt.each,mi=Nt.extend,gi=Nt.explode,vi=Nt.inArray,yi=function(e,t){return(e=Nt.trim(e))?e.split(t||" "):[]},bi=function(e,t){var n=pi(e," ",pi(e.toUpperCase()," "));return mi(n,t)},_i=function(e){return bi("td th li dt dd figcaption caption details summary",e.getTextBlockElements())},Ci=function(e,t){var n;return e&&(n={},"string"==typeof e&&(e={"*":e}),hi(e,(function(e,r){n[r]=n[r.toUpperCase()]="map"===t?pi(e,/[, ]/):gi(e,/[, ]/)}))),n},wi=function(e){var t={},n={},r=[],o={},i={},a=function(t,n,r){var o=e[t];return o?o=pi(o,/[, ]/,pi(o.toUpperCase(),/[, ]/)):(o=fi[t])||(o=bi(n,r),fi[t]=o),o},u=function(e){var t,n,r,o,i,a,u={},s=function(e,n,r){var o,i,a,s=function(e,t){var n,r,o={};for(n=0,r=e.length;n