/*! For license information please see main.470a16e2eaae12e0ce62.js.LICENSE.txt */ (()=>{var e,t,n,r,i,a,o={97551:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(81019),i=["address"];function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=f(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){u=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(u)throw a}}}}function u(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n";if(!r.length)return t;var i=t;return r.forEach((function(e){var t=e.type;if("link"===t){var n=(null==e?void 0:e.attrs)||{},r=n.href,a=n.target;i='').concat(i,"")}else if("textStyle"===t){var o=((null==e?void 0:e.attrs)||{}).color;"string"==typeof o&&o&&(i='').concat(i,""))}else"bold"===t?i="".concat(i,""):"italic"===t&&(i="".concat(i,""))})),i})).join("")}},{key:"instantiateData",value:function(e){return this.profile||this.secondaryProfile?this.instantiateContent(e):e}},{key:"getVariable",value:function(e,t){var n=e.startsWith("@"),i=n?e.slice(1)||"":e,u=i.startsWith("$");i=u?i.slice(1)||"":i;var l=u?this.profile:this.secondaryProfile;if(i.startsWith("/")){var c=(i=i.slice(1)).replace(/\./g,"/");if(n)return this.profile.getMetaInfo(c)||c;if(c.includes("/")){var s=c.split("/");if(s.length>2){var f=s.pop(),d=s.join("/"),h=l.getValue(d);return r.Z.isPlainObject(h)||Array.isArray(h)?Array.isArray(h)?h.map((function(e){return e[f]})):h[f]:null}return l.getValue(c)}return l.getValue(c)}t||(t=l);var p=i.replace(/\./g,"/"),v=this.buildPendingVariable(p,u);if(!(t instanceof r.Z)){if(n)return(u?this.profile:this.secondaryProfile).getMetaInfo(v)||v;if(p.includes("/")){var y,g=t,b=o(p.split("/"));try{var m=function(){var e=y.value;if(!r.Z.isPlainObject(g)&&!Array.isArray(g))return{v:null};g=Array.isArray(g)?g.map((function(t){return t[e]})):g[e]};for(b.s();!(y=b.n()).done;){var w=m();if("object"===a(w))return w.v}}catch(e){b.e(e)}finally{b.f()}return g}return t[i]}return n?t.getMetaInfo(v)||v:t.getValue(v)}},{key:"getSectionItems",value:function(e){var t=this,n=e.startsWith("*");return e=n?e.slice(1):e,this.processor.evaluateText(e,(function(e){return n?t.profiles.map((function(n){return t.getVariable(e,n)})).flat():t.getVariable(e)}))}},{key:"buildPendingVariable",value:function(e,t){return t?e.slice(1)||"":e.includes("/")||!this.section?e:"".concat(this.section).concat(e?"/".concat(e):"")}},{key:"parseHeader",value:function(t,n){var r,i,a,o,l={},c=t[n],s=null==c?void 0:c.attrs,f=(null==c?void 0:c.content)||[],d=null==s?void 0:s.level,h=null==s?void 0:s.textAlign,p=this.parseHeading(f);l[1===d?"title":2===d?"subtitle":"subtitle2"]=p,l.alignment=h;for(var v=e.getNextNoneEmptyIndex(t,n),y=(null==t?void 0:t[v])||{},g=null===(r=y)||void 0===r?void 0:r.type,b=null===(i=y)||void 0===i?void 0:i.attrs,m=null===(a=b)||void 0===a?void 0:a.level,w=(null===(o=y)||void 0===o?void 0:o.content)||[];"heading"===g&&m>d&&v<=t.length;){var k,O,P,j,S=1===m?"title":2===m?"subtitle":"subtitle2",_=this.parseHeading(w);if(null!=l&&l[S]){var x=Array.isArray(l[S])?l[S]:[l[S]];l[S]=[].concat(u(x),[_])}else l[S]=_;v=e.getNextNoneEmptyIndex(t,v),g=null===(k=y=(null==t?void 0:t[v])||{})||void 0===k?void 0:k.type,m=null===(P=b=null===(O=y)||void 0===O?void 0:O.attrs)||void 0===P?void 0:P.level,w=(null===(j=y)||void 0===j?void 0:j.content)||[]}return{header:l,nextIndex:v}}},{key:"parseGenericData",value:function(t){var n=this,r={imgs:[],videos:[],lists:[],links:[],headings:[],paragraphs:[],properties:[],propertyBlocks:[],icons:[],cards:[]};return t.forEach((function(t){var i,a=null==t?void 0:t.type,o=null==t?void 0:t.attrs,l=(null==t?void 0:t.content)||[];switch(a){case"heading":case"paragraph":var c=e.hasOnlyLink(t);c?r.links.push(c):r["".concat(a,"s")].push(n.parseHeading(l));break;case"ImageBlock":r.imgs.push(n.parseImgBlock(o));break;case"Video":r.videos.push(e.parseVideoBlock(o));break;case"bulletList":var s=l.map((function(e){return"listItem"===e.type?e.content:null})).filter(Boolean);r.lists.push(s.map((function(e){return n.parseGenericData(e)})));break;case"Icon":r.icons.push(e.parseIconBlock(o));break;case"card-group":var f=l.map((function(e){return"card"!==e.type||e.attrs.hidden?null:e})).filter(Boolean);(i=r.cards).push.apply(i,u(f.map((function(t){return e.parseCardBlock(t.attrs)}))))}})),r}},{key:"parseItem",value:function(t){for(var n,r,i,a=null,o=null,u=null,l=0,s=0,f=0;ft.length){f=g;break}var b=t[g],m=null==b?void 0:b.type,w=null==b?void 0:b.attrs;"heading"===m&&1===(null==w?void 0:w.level)&&(o.pretitle=this.parseHeading(v),y=g)}var k=this.parseHeader(t,y),O=k.header,P=k.nextIndex;o=c(c({},o),O),f=P;break}break}a=this.parseImgBlock(p),l++,f++}else s++,l++,f++}return f1&&void 0!==arguments[1]?arguments[1]:null,r=this.format,i=r.global,a=r.manual,o=this.options.report,l=void 0!==o&&o;if(!i&&!a&&!l)return e;var s=function(e){return t.getVariable(e,n)},f=function(e){return t.processor.render(e,s)};if(Array.isArray(e))return this.instantiateBlocks(u(e),f);var d=u((null==e?void 0:e.content)||[]);return c(c({},e),{},{content:this.instantiateBlocks(d,f)})}},{key:"instantiateBlocks",value:function(e,t){var n=this;return e.map((function(e){return n.instantiateComponent(e,t)}))}},{key:"instantiateComponent",value:function(e,t){var n=e.type,r=e.content;if("text"===n){var i=e.text;return c(c({},e),{},{text:t(i)})}return r&&Array.isArray(r)?c(c({},e),{},{content:this.instantiateBlocks(r,t)}):e}}],l=[{key:"isEmptyItem",value:function(e){for(var t=0;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,i),r=null;try{t&&(r=JSON.parse(t))}catch(e){}return c(c({},n),{},{address:r})}},{key:"getNextNoneEmptyIndex",value:function(e,t){for(var n,r,i=t+1,a=e[i],o=null===(n=a)||void 0===n?void 0:n.type,u=(null===(r=a)||void 0===r?void 0:r.content)||[];"paragraph"===o&&!u.length&&i<=e.length-1;){var l,c;o=null===(l=a=e[++i])||void 0===l?void 0:l.type,u=(null===(c=a)||void 0===c?void 0:c.content)||[]}return i}},{key:"hasOnlyLink",value:function(e){var t=(null==e?void 0:e.content)||[];if(1===t.length)for(var n=null==t?void 0:t[0],r=(null==n?void 0:n.marks)||[],i=0;i]*>/g,"");return(new DOMParser).parseFromString(t,"text/html").body.textContent}}],n&&h(t.prototype,n),l&&h(t,l),Object.defineProperty(t,"prototype",{writable:!1}),e}()},43488:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});var r={"afghan afghani":"AFN","afghani afgan":"AFN","albanian lek":"ALL","lek albanais":"ALL","algerian dinar":"DZD","dinar algérien":"DZD","angolan kwanza":"AOA","kwanza angolais":"AOA","argentine peso":"ARS","peso argentin":"ARS","armenian dram":"AMD","dram arménien":"AMD","aruban florin":"AWG","florin arubais":"AWG","australian dollar":"AUD","dollar australien":"AUD","azerbaijani manat":"AZN","manat azerbaidjanais":"AZN","bahamian dollar":"BSD","dollar bahamien":"BSD","bahraini dinar":"BHD","dinar bahrëini":"BHD","bangladeshi taka":"BDT","taka bangladeshi":"BDT","barbados dollar":"BBD","dollar barbadien":"BBD","belarusian ruble":"BYN","rouble biélorusse":"BYN","belize dollar":"BZD","dollar bélizien":"BZD","bermudian dollar":"BMD","dollar bermudien":"BMD","bhutanese ngultrum":"BTN","ngultrum bhoutanais":"BTN",boliviano:"BOB","boliviano bolivien":"BOB","bosnia and herzegovina convertible mark":"BAM","marka bosniaque":"BAM","botswana pula":"BWP","pula botswanéen":"BWP","brazilian real":"BRL","real brésilien":"BRL","brunei dollar":"BND","dollar brunéin":"BND","bulgarian lev":"BGN","lev bulgare":"BGN","burundian franc":"BIF","franc burundais":"BIF","cambodian riel":"KHR","rien cambodgien":"KHR","canadian dollar":"CAD","dollar canadien":"CAD","cape verde escudo":"CVE","escudo capverdien":"CVE","cayman islands dollar":"KYD","dollar des îles caïmans":"KYD","chilean peso":"CLP","peso chilien":"CLP","chinese yuan":"CNY","yuan chinois":"CNY","colombian peso":"COP","peso colombien":"COP","comoro franc":"KMF","franc comorien":"KMF","congolese franc":"CDF","franc congolais":"CDF","cordoba oro":"NIO","oro de cordoba":"NIO","costa rican colon":"CRC","colon costaricain":"CRC","croatian kuna":"HRK","kuna croate":"HRK","cuban peso":"CUP","peso cubain":"CUP","czech koruna":"CZK","couronne tchèque":"CZK","danish krone":"DKK","couronne danoise":"DKK","djiboutian franc":"DJF","franc djiboutien":"DJF","dominican peso":"DOP","peso dominicain":"DOP","east caribbean dollar":"XCD","dollar des caraïbes":"XCD","egyptian pound":"EGP","livre égyptienne":"EGP","eritrean nakfa":"ERN","nafka erythréen":"ERN","ethiopian birr":"ETB","birr éthiopien":"ETB",euro:"EUR","falkland islands pound":"FKP","livre des îles malouines":"FKP","fiji dollar":"FJD","dollar fidjien":"FJD","gambian dalasi":"GMD","dalasi gambien":"GMD","georgian lari":"GEL","lari georgien":"GEL","ghanaian cedi":"GHS","cedi ghanéen":"GHS","gibraltar pound":"GIP","livre de gibraltar":"GIP","guatemalan quetzal":"GTQ","quetzal guatémaltèque":"GTQ","guinean franc":"GNF","franc guinéen":"GNF","guyanese dollar":"GYD","dollar guyannais":"GYD","haitian gourde":"HTG","gourde haïtien":"HTG","honduran lempira":"HNL","lempira hondurien":"HNL","hong kong dollar":"HKD","dollar hongkongais":"HKD","hungarian forint":"HUF","forint hongrois":"HUF","icelandic króna":"ISK","couronne islandaise":"ISK","indian rupee":"INR","roupie indienne":"INR","indonesian rupiah":"IDR","roupie indonésienne":"IDR","iranian rial":"IRR","rial iranien":"IRR","iraqi dinar":"IQD","dinar irakien":"IQD","israeli new sheqel":"ILS","nouveau shekel israélien":"ILS","jamaican dollar":"JMD","dollar jamaicain":"JMD","japanese yen":"JPY","yen japonais":"JPY","jordanian dinar":"JOD","dinar jordanien":"JOD","kazakhstani tenge":"KZT","tenge kazakh":"KZT","kenyan shilling":"KES","shilling kenian":"KES","kuwaiti dinar":"KWD","dinar koweitien":"KWD","kyrgyzstani som":"KGS","som kirghiz":"KGS","lao kip":"LAK","kip laotien":"LAK","latvian lats":"LVL","lats letton":"LVL","lebanese pound":"LBP","livre libanaise":"LBP","lesotho loti":"LSL","loti lésothan":"LSL","liberian dollar":"LRD","dollar libérien":"LRD","libyan dinar":"LYD","dinar libyen":"LYD",lilangeni:"LTL","lithuanian litas":"LTL","litas lituanien":"LTL","macanese pataca":"MOP","pataca de macao":"MOP","macedonian denar":"MKD","denar macédonien":"MKD","malagasy ariary":"MGA","ariary malgache":"MGA","malawian kwacha":"MWK","kwacha malawite":"MWK","malaysian ringgit":"MYR","ringgit malaisien":"MYR","maldivian rufiyaa":"MVR","rufiyaa maldivien":"MVR","mauritanian ouguiya":"MRO","ouguiya mauritanien":"MRO","mauritian rupee":"MUR","roupie mauricienne":"MUR","mexican peso":"MXN","peso mexicain":"MXN","moldovan leu":"MDL","leu moldave":"MDL","mongolian tugrik":"MNT","tugrik mongolien":"MNT","moroccan dirham":"MAD","dirham marocain":"MAD","mozambican metical":"MZN","metical mozambicain":"MZN","myanma kyat":"BUK","kyat birman":"BUK","namibian dollar":"NAD","dollar namibien":"NAD","nepalese rupee":"NPR","roupie népalaise":"NPR","netherlands antillean guilder":"ANG","florin des antilles néerlandaises":"ANG","new taiwan dollar":"TWD","nouveau dollar de taïwan":"TWD","new zealand dollar":"NZD","dollar néo-zélandais":"NZD","nigerian naira":"NGN","naira nigérien":"NGN","north korean won":"KPW","won nord-coréen":"KPW","norwegian krone":"NOK","couronne norvégienne":"NOK","omani rial":"OMR","rial omanais":"OMR","pakistani rupee":"PKR","roupie pakistanaise":"PKR","panamanian balboa":"PAB","balboa panaméen":"PAB","papua new guinean kina":"PGK","kina papouan":"PGK","paraguayan guaraní":"PYG","guarani paraguayen":"PYG","peruvian nuevo sol":"PEN","nuevo sol péruvien":"PEN","philippine peso":"PHP","peso philippin":"PHP","polish z?oty":"PLN","zloty polonais":"PLN","pound sterling":"GBP","livre sterling":"GBP","qatari rial":"QAR","rial quatarien":"QAR","romanian new leu":"RON","leu roumain":"RON","russian rouble":"RUB","rouble russe":"RUB","rwandan franc":"RWF","franc rwandais":"RWF","saint helena pound":"SHP","livre de saint-hélène":"SHP","samoan tala":"WST","tala samoan":"WST","são tomé and príncipe dobra":"STD","dobra santoméen":"STD","saudi riyal":"SAR","riyal saoudien":"SAR","serbian dinar":"RSD","dinar serbe":"RSD","seychelles rupee":"SCR","roupie seychelloise":"SCR","sierra leonean leone":"SLL","leone sierra-léonais":"SLL","singapore dollar":"SGD","dollar singapourien":"SGD","solomon islands dollar":"SBD","dollar des îles solomon":"SBD","somali shilling":"SOS","shilling somalien":"SOS","south african rand":"ZAR","rand sud-africain":"ZAR","south korean won":"KRW","won sud-coréen":"KRW","sri lanka rupee":"LKR","roupie srilankaise":"LKR","sudanese pound":"SDG","livre sudanaise":"SDG","surinamese dollar":"SRD","dollar surinamien":"SRD","swedish krona/kronor":"SEK","couronne suédoise":"SEK","swiss franc":"CHF","franc suisse":"CHF","syrian pound":"SYP","livre syrienne":"SYP","tajikistani somoni":"TJS","somoni tadjik":"TJS","tanzanian shilling":"TZS","shilling tanzanien":"TZS","thai baht":"THB","baht thailandais":"THB","tongan pa'anga":"TOP","pa'anga tonguien":"TOP","trinidad and tobago dollar":"TTD","dollar trinidadien":"TTD","tunisian dinar":"TND","dinar tunisien":"TND","turkish lira":"TRY","livre turque":"TRY","turkmenistani manat":"TMT","manat turkmène":"TMM","ugandan shilling":"UGX","shilling ougandais":"UGX","ukrainian hryvnia":"UAH","hryvnia ukrainienne":"UAH","united arab emirates dirham":"AED","dirham des émirats arabes unis":"AED","united states dollar":"USD","dollar américain":"USD","uruguayan peso":"UYU","peso uruguayen":"UYU","uzbekistan som":"UZS","soum ouzbek":"UZS","vanuatu vatu":"VUV","vatu vanuatuan":"VUV","venezuelan bolivar fuerte":"VEF","bolivar fuerte vénézuélien":"VEF","vietnamese dong":"VND","dong vietnamien":"VND","yemeni rial":"YER","rial yéméni":"YER","zambian kwacha":"ZMW","kwacha zambien":"ZMW","zimbabwe dollar":"ZWD","dollar zimbabwéen":"ZWD"}},54574:(e,t,n)=>{"use strict";n.d(t,{Zh:()=>d,e:()=>f,p6:()=>h});var r=n(52507),i=n.n(r),a=n(79381),o=n.n(a),u=n(27012),l=n.n(u),c=n(43314),s=n.n(c);function f(e,t){return i().utc(e).locale(t).local()}function d(e){return e.isBefore(i()().subtract(1,"year"))?h(e.toDate()):e.fromNow()}function h(e,t,n){return e?(e instanceof Date||(e=new Date(e)),n||(n={year:"numeric",month:"short",day:"numeric"}),e.toLocaleString(t,n)):null}i().extend(s()),i().extend(o()),i().extend(l()),i().updateLocale("en",{name:"en",relativeTime:{future:"in %s",past:"%s",s:"~1 min",m:"1 min",mm:"%d min",h:"1 h",hh:"%d h",d:"1 d",dd:"%d d",M:"1 M",MM:"%d M",y:"a year",yy:"%d years"}})},98238:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(12012),i=n(8053);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function o(){o=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function f(e,t,n,i){var a=t&&t.prototype instanceof p?t:p,o=Object.create(a.prototype),u=new x(i||[]);return r(o,"_invoke",{value:P(e,n,u)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var h={};function p(){}function v(){}function y(){}var g={};s(g,u,(function(){return this}));var b=Object.getPrototypeOf,m=b&&b(b(I([])));m&&m!==t&&n.call(m,u)&&(g=m);var w=y.prototype=p.prototype=Object.create(g);function k(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function i(r,o,u,l){var c=d(e[r],e,o);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==a(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,u,l)}),(function(e){i("throw",e,u,l)})):t.resolve(f).then((function(e){s.value=e,u(s)}),(function(e){return i("throw",e,u,l)}))}l(c.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function P(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return{value:void 0,done:!0}}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var u=j(o,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=d(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function j(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=d(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,h;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function I(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;_(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:I(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},e}function u(e,t,n,r,i,a,o){try{var u=e[a](o),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,i)}function l(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){u(a,r,i,o,l,"next",e)}function l(e){u(a,r,i,o,l,"throw",e)}o(void 0)}))}}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,u=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){u=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(u)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"";if(!e)return["",""];var r=null===(t=e.split("?"))||void 0===t?void 0:t[0].split("/"),i=r.pop();if(r.length){var a=r.join("/"),o="System"===a?"":"".concat(a,"Remote");return[i,o]}var u="".concat(this.website.type,"Remote");return[i,n?u:""]}}],a=[{key:"getStylerProps",value:function(e){var t=e.split("?");if(t.length<=1)return{};t.shift();var n=new URLSearchParams(t.join("?"));return Object.fromEntries(n.entries())}},{key:"getModuleComponents",value:(h=l(o().mark((function t(n){var r,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null===(r=e.cache)||void 0===r||null===(i=r[n])||void 0===i||!i.components){t.next=2;break}return t.abrupt("return",Promise.resolve(e.cache[n].components));case 2:return t.abrupt("return",e.fetchModuleSchema(n).then((function(t){var r=[];for(var i in t)if("_self"!==i){var a=t[i];r.push(a)}return e.setRemoteCashe(n,"components",r),r})));case 3:case"end":return t.stop()}}),t)}))),function(e){return h.apply(this,arguments)})},{key:"getModuleInfo",value:(f=l(o().mark((function t(n){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.fetchModuleSchema(n).then((function(e){return(null==e?void 0:e._self)||{}})));case 1:case"end":return t.stop()}}),t)}))),function(e){return f.apply(this,arguments)})},{key:"getComponentInfo",value:(s=l(o().mark((function t(n,r){var i,a,u,l;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null===(i=e.cache[n])||void 0===i||null===(a=i.componentInfo)||void 0===a||!a[r]){t.next=2;break}return t.abrupt("return",Promise.resolve(null===(u=e.cache[n])||void 0===u||null===(l=u.componentInfo)||void 0===l?void 0:l[r]));case 2:return t.abrupt("return",e.fetchModuleSchema(n).then((function(t){var i,a=(null==t?void 0:t[r])||{},o=(null===(i=e.cache[n])||void 0===i?void 0:i.componentInfo)||{};return a&&(o[r]=a,e.setRemoteCashe(n,"currentComponents",o)),a})));case 3:case"end":return t.stop()}}),t)}))),function(e,t){return s.apply(this,arguments)})},{key:"fetchModuleSchema",value:(u=l(o().mark((function t(n){var r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.cache[n]){t.next=2;break}return t.abrupt("return",Promise.resolve(null===(r=e.cache[n])||void 0===r?void 0:r.schema));case 2:return t.abrupt("return",fetch(n).then((function(e){return e.json()})).then((function(t){return e.setRemoteCashe(n,"schema",t),t})));case 3:case"end":return t.stop()}}),t)}))),function(e){return u.apply(this,arguments)})},{key:"setRemoteCashe",value:function(t,n,r){e.cache[t]||(e.cache[t]={}),e.cache[t][n]=r}},{key:"isCaseInsensitiveEqual",value:function(e,t){return(null==e?void 0:e.toLowerCase())===(null==t?void 0:t.toLowerCase())}}],n&&p(t.prototype,n),a&&p(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}();v.cache={}},18258:(e,t,n)=>{"use strict";n.d(t,{NE:()=>o.y,Zh:()=>a.Zh,d2:()=>r.Z,e:()=>a.e,hi:()=>i.Z,p6:()=>a.p6}),n(81019);var r=n(97551),i=(n(4843),n(98238)),a=n(54574),o=n(43488)},81019:(e,t,n)=>{"use strict";n.d(t,{Z:()=>F});var r=n(8053),i=n(16498),a=n(68713),o=(n(4843),n(97551));function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;_(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:I(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},e}function d(e,t,n,r,i,a,o){try{var u=e[a](o),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,i)}function h(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){d(a,r,i,o,u,"next",e)}function u(e){d(a,r,i,o,u,"throw",e)}o(void 0)}))}}function p(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=g(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){u=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(u)throw a}}}}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,u=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){u=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(u)throw i}}return a}}(e,t)||g(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){if(e){if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},r=n.type,i=n.subFolder,a=n.withFolder,o=void 0===a||a,u=this.getProfiles(r,i);if(!e)return u;var l=e.split(" "),c=u.filter((function(e){var t,n=e.getBasicInfo().title,r=!1,i=e.options.tags,a=v(l);try{var o=function(){var e=t.value;return n.toLowerCase().includes(e.toLowerCase())||i.length&&i.some((function(t){return t.toLowerCase().includes(e.toLowerCase())}))?(r=!0,"break"):void 0};for(a.s();!(t=a.n()).done&&"break"!==o(););}catch(e){a.e(e)}finally{a.f()}return r})),s=[];if(o){var f=this.getProfiles("folder/profile",i),d=f.filter((function(e){var t,n=e.getBasicInfo().title,r=e.options.tags,i=!1,a=v(l);try{var o=function(){var e=t.value;return n.toLowerCase().includes(e.toLowerCase())||r.length&&r.some((function(t){return t.toLowerCase().includes(e.toLowerCase())}))?(i=!0,"break"):void 0};for(a.s();!(t=a.n()).done&&"break"!==o(););}catch(e){a.e(e)}finally{a.f()}return i}));d.forEach((function(e){s=s.concat(t.getProfiles(r,e.folder.fileId))}))}var h=[];return[].concat(p(c),p(s)).forEach((function(e){var t=e.getProfileType(),n=e.getId(),r="".concat(t,"_").concat(n),i=h[r];i&&(e.options.tags=p(new Set([].concat(p(i.options.tags||[]),p(e.options.tags||[]))))),h[r]=e})),Object.values(h)}},{key:"filter",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.mode,r=void 0===n?"all":n,i=t.types,a=void 0===i?[]:i,o=t.withHierarchy,u=void 0!==o&&o,l=t.unique,c=void 0===l||l,s=t.subFolder,f=Object.values(this.profiles);if(s){var d=this.getDescendantFileIds(s,!0);f=d.map((function(t){return e.profiles[t]}))}var h=[];if("all"===r?h=f:(u&&!a.includes("folder/profile")&&a.push("folder/profile"),h=f.filter((function(e){return a.includes(e.getProfileType())}))),c){var v=[];h.forEach((function(e){var t=e.getProfileType(),n=e.getId(),r="".concat(t,"_").concat(n),i=v[r];i&&(e.options.tags=p(new Set([].concat(p(i.options.tags||[]),p(e.options.tags||[]))))),v[r]=e})),h=Object.values(v)}return h}},{key:"fetchContents",value:(o=h(f().mark((function e(){var t=this;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.fetchPromise){e.next=2;break}return e.abrupt("return",this.fetchPromise);case 2:if(!this.profiles){e.next=4;break}return e.abrupt("return",Promise.resolve(this.profiles));case 4:return this.fetchPromise=this.folderProfile.initialize().then((function(e){var n,r,i=e.getData();if(t.name=e.getBasicInfo().title,!t.name)return t.profiles={},null;t.parentFolder?t.path=t.parentFolder.path+"/"+t.name:t.path=t.name;var a=null==i||null===(n=i.info)||void 0===n?void 0:n._structure,o=a?Object.values(a)[0]:"",u=o?JSON.parse(o):{},l=(null===(r=Object.values(u))||void 0===r?void 0:r[0])||"";return t.order=l,t.parseFileContents(i.files),t.fetchPromise=null,Promise.all(Object.values(t.profiles).map((function(e){return e.initialize()}))).then((function(){return t.profiles}))})).catch((function(e){throw t.fetchPromise=null,e})),e.abrupt("return",this.fetchPromise);case 6:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"getFiles",value:(a=h(f().mark((function e(t){var n=this;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.fetchContents().then((function(){return n.filter(t)})));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"parseFileContents",value:(i=h(f().mark((function e(t){var n,r,i,a,o,u,l,s,d,h,p,y,g,b,m,w,k,O,P=this;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.profiles={},n=[],r=[],i=v(t);try{for(i.s();!(a=i.n()).done;)u=a.value,l=null,s="",d=null,h={fileId:u.id,tags:(null===(o=u.metadata)||void 0===o?void 0:o.tags)||[]},u.profile?(p=u.profile)&&(d=c(c({},h),{},{head:p[1]}),s=p[6]._subtype,l=p[0]):u.file||u.url?(s="webasset/profile",l=this.contentId+"_"+u.id,d=c(c({},h),{},{data:this.makeWebAssetProfileData(u)})):(n.push(u),r.push(u.id)),s&&l&&(this.profiles[u.id]=F.newProfile(s,l,d))}catch(e){i.e(e)}finally{i.f()}if(y=[],!r.length){e.next=20;break}case 7:if(y.length===r.length){e.next=20;break}g=0;case 9:if(!(g1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.order.split(","),i=new Set;return r.forEach((function(r){var a=r.split("/"),o=a.indexOf(e);if(-1!==o)if(t)if(n){var u=a.slice(o+1).join("/");u&&i.add(u)}else for(var l=o+1;l=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function j(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=E(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){u=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(u)throw a}}}}function S(){S=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,i){var a=t&&t.prototype instanceof d?t:d,o=Object.create(a.prototype),u=new _(i||[]);return r(o,"_invoke",{value:k(e,n,u)}),o}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f={};function d(){}function h(){}function p(){}var v={};l(v,a,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(x([])));g&&g!==t&&n.call(g,a)&&(v=g);var b=p.prototype=d.prototype=Object.create(v);function m(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function i(r,a,o,u){var l=s(e[r],e,a);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==L(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,o,u)}),(function(e){i("throw",e,o,u)})):t.resolve(f).then((function(e){c.value=e,o(c)}),(function(e){return i("throw",e,o,u)}))}u(l.arg)}var a;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return a=a?a.then(r,r):r()}})}function k(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return{value:void 0,done:!0}}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var u=O(o,n);if(u){if(u===f)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function O(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function x(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;j(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function _(e,t,n,r,i,a,o){try{var u=e[a](o),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,i)}function x(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){_(a,r,i,o,u,"next",e)}function u(e){_(a,r,i,o,u,"throw",e)}o(void 0)}))}}function I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,u=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){u=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(u)throw i}}return a}}(e,t)||E(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){if(e){if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"social_media_links",n=i.findInFull(t),r=[];return n&&(Array.isArray(n)?n.forEach((function(t){r.push(e.parseMediaLinkValue(t))})):"object"===L(n)&&Object.keys(n).length&&r.push(e.parseMediaLinkValue(data)(n))),r}));var a=r||{},o=a.data,u=a.head,l=a.format,c=a.website,s=a.lang,f=a.contentInfo;this.options=r,this.profileType=e.completeProfileType(t);var d=I(e.parseProfileType(this.profileType),2);this.contentType=d[0],this.viewType=d[1],this.contentId=n,this.website=c||uniweb.getActiveWebsite(),this.activeLang=s||this.website.getLanguage(),this.key=e.makeProfileKey(this.profileType,this.contentId,this.activeLang),this.fetchPromise=null,this.setAsyncData(o,u,l,f)}var t,u,l,c,s,f,d,h;return t=e,u=[{key:"isReady",value:function(){return!!this.rawData}},{key:"setAsyncData",value:function(t,n,r,i){var a,o,u,l;null!==(a=this.rawData)&&void 0!==a||(this.rawData=t),r&&(null!==(o=this.format)&&void 0!==o||(this.format=r)),i&&(null!==(u=this.contentInfo)&&void 0!==u||(this.contentInfo=i)),n?"string"==typeof n&&(n=JSON.parse(n)):(n=e.parseHeadItem(t),this.contentInfo&&Object.assign(n,this.contentInfo)),null!==(l=this.rawHead)&&void 0!==l||(this.rawHead=n),this.basicInfo=null,this.simpleData=null,this.displayData=null,this.fullData=null,this.typeInfo=null,this.sectionIndex=null,this.fieldTypeSchema=null,this.richData=null}},{key:"initialize",value:(h=x(S().mark((function t(){var r,i,a=arguments;return S().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.length>0&&void 0!==a[0]?a[0]:null,i=this.fetchContents(),"function"==typeof r&&("custom"===this.getContentType()?i.then((function(t){var i,a=t.at("info"),o=null==a||null===(i=a.schema)||void 0===i?void 0:i[0];o&&e.newProfile("content/profile",o).initialize((function(e){n.e(5159).then(n.bind(n,45159)).then((function(n){var i=new(0,n.default)(t,e);r(i.contentProfile)}))}))})):i.then((function(e){return r(e)}))),t.abrupt("return",i);case 4:case"end":return t.stop()}}),t,this)}))),function(){return h.apply(this,arguments)})},{key:"fetchContents",value:(d=x(S().mark((function t(){var n=this;return S().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isReady()){t.next=2;break}return t.abrupt("return",Promise.resolve(this));case 2:if(!this.fetchPromise){t.next=4;break}return t.abrupt("return",this.fetchPromise);case 4:return this.fetchPromise=e.fetch(this.profileType,this.contentId,this.activeLang).then((function(e){return n.setAsyncData(e.rawData,e.rawHead,e.format,e.contentInfo),n.fetchPromise=null,n})).catch((function(e){n.fetchPromise=null,console.log(e),console.log("Cannot fetch ".concat(n.profileType,"/").concat(n.contentId))})),t.abrupt("return",this.fetchPromise);case 6:case"end":return t.stop()}}),t,this)}))),function(){return d.apply(this,arguments)})},{key:"getLanguage",value:function(){return this.activeLang}},{key:"getProfileType",value:function(){return this.profileType}},{key:"getContentType",value:function(){return this.contentType}},{key:"getViewType",value:function(){return this.viewType}},{key:"getId",value:function(){return this.contentId}},{key:"getHandle",value:function(){var e;return null===(e=this.rawHead)||void 0===e?void 0:e.handle}},{key:"info",value:function(){return{id:this.contentId,contentType:this.contentType,viewType:this.viewType}}},{key:"getData",value:function(){var t;return null!==(t=this.simpleData)&&void 0!==t?t:this.simpleData=this.rawData?e.parseAsSimpleData(this.rawData,this.website):null}},{key:"getDisplayData",value:function(){var t;return null!==(t=this.displayData)&&void 0!==t?t:this.displayData=this.rawData?e.parseAsDisplayData(this.rawData,this.website):null}},{key:"getEditData",value:function(){var t;return e.editableMode()?null!==(t=this.richData)&&void 0!==t?t:this.richData=this.rawData?e.parseAsRichData(this.rawData):null:null}},{key:"resetComputedData",value:function(){this.setAsyncData()}},{key:"getFullData",value:function(){var e;return null!==(e=this.fullData)&&void 0!==e?e:this.fullData=this.rawData?(0,i.HN)({sections:this.rawData,format:this.format,contentInfo:this.contentInfo},null,!0,this.activeLang):null}},{key:"getTopSectionName",value:function(){return Object.keys(this.getSectionIndex())[0]}},{key:"getTypeInfo",value:function(){var e;return null!==(e=this.typeInfo)&&void 0!==e?e:this.typeInfo=(0,r.pe)(this.contentType,this.viewType)}},{key:"getSectionIndex",value:function(){return null===this.sectionIndex&&this.rawData&&(this.sectionIndex={},e.indexSectionInfo(this.sectionIndex,this.rawData)),this.sectionIndex||{}}},{key:"getSectionInfo",value:function(e){return Array.isArray(e)&&e.join("/"),this.getSectionIndex()[e]}},{key:"getFieldTypeSchema",value:function(){var t;return null!==(t=this.fieldTypeSchema)&&void 0!==t?t:this.fieldTypeSchema=this.rawData?e.parseAsSchema(this.rawData):null}},{key:"getContentId",value:function(){return this.contentId}},{key:"isHeadless",value:function(){var e;return null===(e=this.getTypeInfo())||void 0===e?void 0:e.headless}},{key:"getBasicInfo",value:function(){if(null===this.basicInfo&&this.rawHead){var t=this.rawHead&&"string"==typeof this.rawHead?JSON.parse(this.rawHead):this.rawHead,n=(0,r.uZ)(this.getContentType(),this.isHeadless()?"profile":this.viewType,t,this.activeLang),i=n.titleField,a=void 0===i?"":i,o=n.captionField;o&&"object"===L(o)&&(o=o.title?o.title:Object.values(o).filter(Boolean)[0]||""),this.basicInfo={title:a,subtitle:o,avatar:t._avatar,banner:t._banner,coverImg:null==t?void 0:t._coverImg,lastEditTime:t.last_edit,lastLocalEditTime:e.convertTimestampToLocalString(t.last_edit),handle:t.handle,head:t}}return this.basicInfo}},{key:"getDisplayName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.getBasicInfo().title||e}},{key:"getVisibility",value:function(){var e=this.getBasicInfo().head,t=(void 0===e?{}:e).visibility,n=Array.isArray(t)?t[0]:t;return parseInt(n||3)}},{key:"isHidden",value:function(){return 3===this.getVisibility()}},{key:"getAvatar",value:function(){return this.rawHead._avatar}},{key:"getBanner",value:function(){return this.rawHead._banner}},{key:"getLastEditTime",value:function(){return this.rawHead.last_edit}},{key:"getResources",value:function(e){var t,n,r=null!==(t=null===(n=this.getFullData().filter((function(t){return t.name===e})))||void 0===n?void 0:n[0])&&void 0!==t?t:null;if(!r)return[];var i=this.getSectionInfo(e);r.fields=i.fields;var o=(0,a.H3)(r);return(null==o?void 0:o.cards)||[]}},{key:"getLinkedProfileCards",value:function(t){var n,i,o=null!==(n=null===(i=this.getFullData().filter((function(e){return e.name===t})))||void 0===i?void 0:i[0])&&void 0!==n?n:null;if(!o)return{cards:[],filters:{}};var u="",l={searchKey:"title",histograms:{}};Object.values(o.fields).forEach((function(e){"profile"===e.type&&(u=e.subtype)})),u&&e.getFilterableFields(u).forEach((function(t){var n=t.label,i=t.name;n=(0,r.NC)(n,"",e.websiteLang),l.histograms[n]=i}));var c=(0,a.H3)(o,l),s=c.cards,f=void 0===s?[]:s,d=c.filters;return{cards:f,filters:void 0===d?{}:d}}},{key:"getSectionsWithRelationFields",value:function(){var e=this.getSectionIndex(),t=[];for(var n in e){var r=e[n];r.profileLinks&&t.push(r)}return t}},{key:"findRelationField",value:function(t,n,r){if(t=e.completeProfileType(t),!n)for(var i=this.getSectionsWithRelationFields(),a=0;a1&&void 0!==arguments[1]&&arguments[1],r=n?this.getEditData():this.getData();"string"==typeof t&&(t=t.split("/"));var i,a=j(t);try{for(a.s();!(i=a.n()).done;){var o,u=i.value;if(Array.isArray(r)&&(r=null!==(o=r[0])&&void 0!==o?o:null),!e.isPlainObject(r))return null;r=r[u]}}catch(e){a.e(e)}finally{a.f()}return Array.isArray(r)&&(r=r.map((function(e){return C(C({},e),{},{"@":{name:t[t.length-1]}})}))),Array.isArray(r)&&1==r.length&&this.isSingleItemSection(t)?r[0]:r}},{key:"findInFull",value:function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getFullData();if(!r)return null;if("string"==typeof t&&(t=t.split("/")),1===t.length){var i,a,o=t[0],u=this.hasFields(o);return Array.isArray(r)?u?null!==(i=null===(a=r.find((function(e){return e.name===o})))||void 0===a?void 0:a.value)&&void 0!==i?i:null:r.map((function(e){return e[o]})):r[o]}var l,c,s=t[0];if(Array.isArray(r))l=null===(c=r.find((function(e){return e.name===s})))||void 0===c?void 0:c.value;else if(e.isPlainObject(r)){var f;l=null===(f=Object.values(r).find((function(e){return e.name===s})))||void 0===f?void 0:f.value}if(l){if(Array.isArray(l)){var d=l.map((function(e){return n.findInFull(t.slice(1),e)}));return d.flat().filter(Boolean)}return console.log("find out why section data is not array",l),null}return null}},{key:"hasFields",value:function(e){var t,n=null===(t=this.getSectionInfo(e))||void 0===t?void 0:t.has_fields;return!!n&&parseInt(n)}},{key:"getMaxItemCount",value:function(e){var t,n=null===(t=this.getSectionInfo(e))||void 0===t?void 0:t.max_item_count;return n?parseInt(n):null}},{key:"isSingleItemSection",value:function(e){return 1===this.getMaxItemCount(e)}},{key:"isSectionGroup",value:function(e){return!this.hasFields(e)&&this.isSingleItemSection(e)}},{key:"getLinkedProfileInfoFromSection",value:function(e){var t,n=(null===(t=this.getSectionFields(e).filter((function(e){return"profile"===e.type})))||void 0===t?void 0:t[0])||{};return{field:n.name,type:n.subtype}}},{key:"renderProfileCards",value:function(e,t,n){var r=this.getLinkedProfileInfoFromSection(e),i=r.field,a=r.type,o=this.getLinkedProfiles(a,e,i);return o.length&&t?(n&&(o=n(o)),o.map((function(e,n){return t(e,n)}))):null}},{key:"findSectionByFieldName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null,i=this.getSectionIndex();for(var a in i){var o=i[a].fields;if(!t||t&&1===Object.keys(o).length)for(var u in o){var l=o[u];if(l.name===e){if(!n||!Object.keys(n).length){r=a;break}for(var c in n)if(l[c]===n[c]){r=a;break}}}}return r}},{key:"useReadyStateEffect",value:function(e,t){var n=this,r=I(e(),2)[1];return t((function(){n.initialize(r)}),[]),this.isReady()}},{key:"getImageInfo",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"banner",n=arguments.length>1?arguments[1]:void 0,r=this.getBasicInfo().coverImg,i="",a="";if(r)i=r;else{var o="https://assets.uniweb.app/",u="banner"===t?this.getBanner():this.getAvatar();if(u&&"_default"!==u||(u=uniweb.getDefaultImgUrl(this.contentType,t)),u){var l=u.split("/"),c=I(l,2),s=c[0],f=c[1],d=void 0===f?"":f,h=d.substring(d.lastIndexOf(".")+1,d.length).toLowerCase(),p="original"===n;a="".concat(o,"dist/").concat(s,"/base.").concat(h),p?i=a:(n||(n="banner"===t?"md":"sm"),n=e.calcFinalImageSize(n),i=["jpg","jpeg","png"].includes(h.toLowerCase())?"".concat(o,"opt/").concat(s,"/").concat(n,".webp"):a)}}return{url:i,alt:"Profile ".concat(t," for ").concat(this.contentType," ").concat(this.contentId),fallback:a}}},{key:"getAssetInfo",value:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"lg",a="https://assets.uniweb.app/";if(!t)return{};var o=t.split("/"),u=I(o,2),l=u[0],c=u[1];if(!c)return{};var s=c.substring(c.lastIndexOf(".")+1,c.length).toLowerCase(),f="original"===i,d="".concat(a,"dist/").concat(l,"/base.").concat(s),h="";f?h=d:(i=e.calcFinalImageSize(i),["jpg","jpeg","png"].includes(s.toLowerCase())?h="".concat(a,"opt/").concat(l,"/").concat(i,".webp"):n&&["pdf","doc","docx","ppt","pptx","xls","xlsx"].includes(s.toLowerCase())?(h="".concat(a,"opt/").concat(l,"/").concat(i,".webp"),d="".concat(a,"dist/").concat(l,"/preview.png")):h=d);var p=this.website.localize(r)||c;return{src:d,alt:p,optSrc:h,href:this.website.buildLoadProfileAssetURL(t)}}},{key:"getContent",value:function(){if(!this.isReady())return null;if("profile"==this.viewType)switch(this.contentType){case"article":return new o.Z(this.at("article_body"));case"list":return e.getProfilesInList(this.contentId)}return this.getData()}},{key:"makeOwnHref",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.tab,i=void 0===r?"":r,a=n.searchParams,o=this.contentType,u=this.viewType,l=this.getId(),c=u||"profile",s="",f="equipment"===o?"resources":o;s="view/".concat(c,"/").concat(f),l&&(s+="/".concat(l),i&&(s+="/".concat(i))),a&&(s+=a);var d=null===(e=uniweb.config.data)||void 0===e||null===(t=e.domainsInfo)||void 0===t?void 0:t.appDomain;return"".concat(d.endsWith("/")?d:"".concat(d,"/")).concat(s)}},{key:"getMetaInfo",value:function(e){var t=this.getSectionInfo(e);if(t)return t;if(e.includes("/")){var n=e.split("/"),r=n.pop(),i=n.join("/");return this.getFieldInfo(i,r)}}},{key:"getValue",value:function(e){if("@link"===(e=e.replace(/\./g,"/")))return this.makeOwnHref();if("@lastEditTime"===e)return this.getLastEditTime()||"";var t,n,r;if("@title"===e)return(null===(t=this.getBasicInfo())||void 0===t?void 0:t.title)||"";if("@subtitle"===e)return(null===(n=this.getBasicInfo())||void 0===n?void 0:n.subtitle)||"";if("@avatar"===e||"@banner"===e)return null===(r=this.getImageInfo(e.slice(1),"md"))||void 0===r?void 0:r.url;if(!e.includes("/")&&!e.includes("@")){if(this.getSectionInfo(e))return this.at(e)||"";var i=this.getTopSectionName();return this.at("".concat(i,"/").concat(e))||""}if(!e.includes("@"))return this.at(e)||"";if(e.includes("@")){var a=e.split("@"),o=a.pop(),u=a.join("");if(o){var l=this.getSectionInfo(u);if(l)return(null==l?void 0:l[o])||"";var c=u.split("/"),s=c.pop(),f=c.join("/"),d=this.getFieldInfo(f,s);if(d)return(null==d?void 0:d[o])||""}}return""}},{key:"useContent",value:function(e,t){return this.useReadyStateEffect(e,t),this.getContent()}},{key:"getProfileTabs",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(0,r.D0)(this.getContentType(),this.getViewType());n=n.filter((function(e){return e.sectionName}));var i=t.filterEmpty,a=void 0===i||i;return a&&(n=n.filter((function(t){var n;return null===(n=e.at(t.sectionName))||void 0===n?void 0:n.length}))),n}}],l=[{key:"makeProfileKey",value:function(t,n,r){return t=e.completeProfileType(t),"".concat(n,"/").concat(t).concat(r?"/".concat(r):"")}},{key:"completeProfileType",value:function(e){return e.includes("/")||(e+="/profile"),e}},{key:"newProfile",value:function(t,n,r){var i=new e(t,n,r);return!e.editableMode()&&null!=r&&r.data&&e.setCashedProfile(i),"folder/profile"==t&&(i.folder=new w(i,r)),i}},{key:"getCashedProfile",value:function(t,n){var r=e.makeProfileKey(t,n);return e.cache.profiles[r]}},{key:"setCashedProfile",value:function(t){e.cache.profiles[t.key]=t}},{key:"clearCashedProfile",value:function(t,n){delete e.cache.profiles[e.makeProfileKey(t,n)]}},{key:"getCashedFormat",value:function(t){return t=e.completeProfileType(t),e.cache.formats[t]}},{key:"setCashedFormat",value:function(t,n){t=e.completeProfileType(t),e.cache.formats[t]=n}},{key:"fetch",value:(f=x(S().mark((function t(n,i,a){var o,u,l,c,s,f,d;return S().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(o=e.getCashedProfile(n,i))||!o.isReady()){t.next=3;break}return t.abrupt("return",Promise.resolve(o));case 3:return u=e.parseProfileType(n),l=I(u,2),c=l[0],s=l[1],f={action:"display",editable:!1,contentType:c,viewType:s,contentId:i,profileLang:a,withFormat:!e.getCashedFormat(n)},d=function(t){var r=t.data,a=r.sections;return r.format&&e.setCashedFormat(n,t.data.format),e.newProfile(n,i,{data:a})},t.abrupt("return",r.ZP.get("profiles.php",{params:f}).then(d));case 7:case"end":return t.stop()}}),t)}))),function(e,t,n){return f.apply(this,arguments)})},{key:"fetchAll",value:(s=x(S().mark((function t(n,i,a){var o,u,l,c,s,f,d,h,p,v,y,g;return S().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=[],u=[],l=j(i);try{for(l.s();!(c=l.n()).done;)s=c.value,(f=e.getCashedProfile(n,s))&&f.isReady()?u.push(f):o.push(s)}catch(e){l.e(e)}finally{l.f()}if(o.length){t.next=6;break}return t.abrupt("return",Promise.resolve(u));case 6:return d=e.parseProfileType(n),h=I(d,2),p=h[0],v=h[1],y={action:"displayProfiles",contentType:p,viewType:v,contentIds:o,profileLang:a,withFormat:!e.getCashedFormat(n)},g=function(t){var r=t.data,i=r.profiles,a=r.format;for(var o in a&&e.setCashedFormat(n,a),i){var l=i[o],c=l.sections,s=l.contentInfo;u.push(e.newProfile(n,o,{data:c,contentInfo:s}))}return u},t.abrupt("return",r.ZP.get("profiles.php",{params:y}).then(g));case 10:case"end":return t.stop()}}),t)}))),function(e,t,n){return s.apply(this,arguments)})},{key:"fetchBasicInfo",value:(c=x(S().mark((function t(n){var i,a,o,u,l,c,s,f,d,h,p,v,y=arguments;return S().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=y.length>1&&void 0!==y[1]?y[1]:"public",o=y.length>2&&void 0!==y[2]?y[2]:[],u=y.length>3&&void 0!==y[3]?y[3]:null,l=e.parseProfileType(n),c=I(l,2),s=c[0],f=c[1],d=!(e.editableMode()||null!=o&&o.contentIds),null!==(i=u)&&void 0!==i||(u=this.activeLang),h={action:"getBasicInfo",contentType:s,viewType:f,scope:a,filter:o},!d){t.next=12;break}if(d=e.generateCacheKey(h),!(p=e.cache.queries[d])){t.next=12;break}return t.abrupt("return",Promise.resolve(p));case 12:return v=function(t){var r,i=[],a=j(t.data);try{for(a.s();!(r=a.n()).done;){var o=I(r.value,6),u=o[0],l=o[1],c=o[2],s=o[3],f=o[4],h=o[5];i.push(new e(n,u,{head:C(C({},l),{},{ownerId:c,visibility:s,lastEdit:f,handle:h})}))}}catch(e){a.e(e)}finally{a.f()}return d&&(e.cache.queries[d]=i),i},t.abrupt("return",r.ZP.get("profiles.php",{params:h}).then(v));case 14:case"end":return t.stop()}}),t,this)}))),function(e){return c.apply(this,arguments)})},{key:"generateCacheKey",value:function(e){return Object.keys(e).sort().map((function(t){return"".concat(t,"=").concat(encodeURIComponent(e[t]))})).join("&")}},{key:"getProfileSection",value:function(e,t,n,i){return(0,r.CO)(e,t,n,!1,i)}},{key:"getListProfileItems",value:function(t,n){return(0,r.V2)(t,e.websiteLang,n)}},{key:"getProfilesInList",value:function(t,n){return(0,r.V2)(t,e.websiteLang,n).then((function(t){return t.map((function(t){var n=t.contentId,r=t.contentType,i=t.viewType,a=t.head,o=t.ownerId,u=t.lastEditTime,l=t.handle;return a="string"==typeof a?JSON.parse(a):a,new e("".concat(r,"/").concat(i),n,{head:C(C({},a),{},{ownerId:o,lastEdit:u,handle:l})})}))}))}},{key:"getAttributeName",value:function(e){var t;return null===(t=uniweb.config.data.attributeTypes)||void 0===t?void 0:t[e]}},{key:"parseAsSimpleData",value:function(t,n){var r,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=i?{}:[],o=j(t);try{for(o.s();!(r=o.n()).done;){var u,l=r.value,c=[],s=l.max_item_count?parseInt(l.max_item_count):null,f=j(l.items);try{for(f.s();!(u=f.n()).done;){var d=u.value,h={id:d.id};for(var p in d.attributes){var v=e.getAttributeName(p);v&&(h["_"+v]=d.attributes[p])}for(var y in d.values){var g=l.fields[y],b=d.values[y];if("section"==g.type){var m=l.subsections[g.subsection_id];m.items=b,b=e.parseAsSimpleData([m],n,!1)}else if(b&&"localstr"==g.type)b=n.localize(b);else if(b&&"json"==g.type)b="string"==typeof b?JSON.parse(b):b;else if(!b||"systable"!=g.type&&"lov"!=g.type){if(b&&"reftable"===g.type)b=(b=b[1]).split("|").map((function(e){return["not required","non requis"].includes(e.toLowerCase())?"":e}));else if(b&&"address"==g.type)b=JSON.parse(b);else if("bilingual"===g.type){var w,k,O=(null===(w=b)||void 0===w?void 0:w.english)||"",P=(null===(k=b)||void 0===k?void 0:k.french)||"";b="en"===e.websiteLang?O:"fr"===e.websiteLang?P||O:""}}else b=b[1];h[g.name]=b}c.push(h)}}catch(e){f.e(e)}finally{f.f()}c.length&&1===s&&(c=c[0]),i?a[l.name]=c:a=c}}catch(e){o.e(e)}finally{o.f()}return a}},{key:"parseAsDisplayData",value:function(t,n){var i,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=a?{}:[],u=0,l=j(t);try{for(l.s();!(i=l.n()).done;){var c,s=i.value,f=[],d=j(s.items);try{for(d.s();!(c=d.n()).done;){var h=c.value,p={};for(var v in h.values){var y=s.fields[v],g=y.type,b=h.values[v];if(b&&"order"!==y.name){var m={label:y.label};if("section"==y.type){var w=s.subsections[y.subsection_id];w.items=b;var k=e.parseAsDisplayData([w],n,!1);m.isSection=!0,m.label=k.label,m.value=k.value}else if("localstr"==g)m.isHTML=!0,m.value=n.localize(b);else if("json"==g)m.isJSON=!0,m.value="string"==typeof b?JSON.parse(b):b;else if("systable"==g||"lov"==g)m.value=b[1],"WebsiteTypes"===y.subtype&&(m.rawValue=b[2]);else if("address"==g)b=JSON.parse(b),m.isAddress=!0,m.rawValue=b,m.value=b.formatted_address;else if("bilingual"===g)m.value=Object.values(b)[0];else if("profile"===g){y.subtype&&(b[6]={_subtype:y.subtype});var O,P=(0,r.WD)(b);P&&(m.isProfile=!0,m.profileId=P[0].contentId,m.rawValue=P,m.value=(null==P||null===(O=P[0])||void 0===O?void 0:O.title)||"")}else m.value="string"==typeof b?b:b.toString();p[y.name]=m}}Object.keys(p).length&&f.push(p)}}catch(e){d.e(e)}finally{d.f()}if(a){var S={label:s.label,value:f};0===u&&(S.isInfo=!0),o[s.name]=S}else o={label:s.label,value:f};u++}}catch(e){l.e(e)}finally{l.f()}return o}},{key:"parseAsRichData",value:function(t){var n,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=i?{}:[],o=j(t);try{for(o.s();!(n=o.n()).done;){var u,l=n.value,c=[],s=l.max_item_count?parseInt(l.max_item_count):null,f=j(l.items);try{for(f.s();!(u=f.n()).done;){var d=u.value,h={id:d.id,attributes:{},fields:{}};for(var p in d.attributes){var v=e.getAttributeName(p);v&&(h.attributes[v]=d.attributes[p])}for(var y in d.values){var g=l.fields[y],b=d.values[y];if("section"==g.type){var m=l.subsections[g.subsection_id];m.items=b,b=e.parseAsRichData([m],!1)}else b&&"localstr"==g.type?b=(0,r.NC)(b,"",this.activeLang):b&&"json"==g.type?b="string"==typeof b?JSON.parse(b):b:b&&"address"==g.type&&(b=JSON.parse(b));h.fields[g.name]={fieldId:y,value:b}}c.push(h)}}catch(e){f.e(e)}finally{f.f()}c.length&&1===s&&(c=c[0]),i?a[l.name]=c:a=c}}catch(e){o.e(e)}finally{o.f()}return a}},{key:"parseAsSchema",value:function(t){var n,r,i,a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=[],u=j(t);try{for(u.s();!(i=u.n()).done;){var l=i.value;for(var c in r={},l.fields){var s=l.fields[c];if("section"==s.type){var f=l.subsections[s.subsection_id];n=e.parseAsSchema(f,!1)}else n=C({},s);r[s.name]=n}a?o[l.name]=r:o.push(r)}}catch(e){u.e(e)}finally{u.f()}return o}},{key:"isPlainObject",value:function(e){return"object"===L(e)&&null!==e&&!Array.isArray(e)&&e.constructor===Object}},{key:"indexSectionInfo",value:function(t,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=j(n);try{for(a.s();!(r=a.n()).done;){var o,u=r.value,l=i?i+"/"+u.name:u.name,c=(null===(o=u.items)||void 0===o?void 0:o.length)||0;t[l]=C(C({},u),{},{itemCount:c});var s=null;for(var f in u.fields){var d=u.fields[f];if("section"==d.type){var h=u.subsections[d.subsection_id];e.indexSectionInfo(t,[h],l)}else if("profile"==d.type){var p,v,y,g;null!==(p=s)&&void 0!==p||(s={}),null!==(g=(v=s)[y=d.subtype])&&void 0!==g||(v[y]=d.name)}}s&&(t[l].profileLinks=s)}}catch(e){a.e(e)}finally{a.f()}}},{key:"getFilterableFields",value:function(t){var n=I(e.parseProfileType(t),2),i=n[0],a=n[1],o=(0,r.pe)(i,a).filterableFieldNames;return void 0===o?[]:o}},{key:"setWebsiteLanguage",value:function(t){e.websiteLang=t}},{key:"parseProfileType",value:function(e){var t=I(e.split("/"),2),n=t[0],r=t[1];return[n,void 0===r?"profile":r]}},{key:"parseHeadItem",value:function(t){if(!t||!t[0])return null;var n=t[0],r=n.items[0]||{},i={},a=["handle","visibility","last_edit","ownerId","_coverImg"];for(var o in r.attributes){var u=e.getAttributeName(o);if(u){var l,c=r.attributes[o]||{};"avatar"!=u&&"banner"!==u||(c=null===(l=Object.values(c))||void 0===l?void 0:l[0]),i["_"+u]=c}else a.includes(o)&&(i[o]=r.attributes[o]||"")}for(var s in r.values)i[n.fields[s].name]=r.values[s];return i}},{key:"useCompleteProfile",value:function(t,n,r,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},u=o.initVal,l=void 0===u?null:u,c=o.lang,s=void 0===c?null:c,f=t(l),d=I(f,2),h=d[0],p=d[1];return n((function(){i&&e.newProfile(r,i,{lang:s}).initialize(p)}),[r,i,a,s]),h&&h.isReady()||h!==l?h:null}},{key:"calcFinalImageSize",value:function(e){if(window.devicePixelRatio>1){if("xs"===e)return"sm";if("sm"===e)return"md";if("md"===e)return"lg"}return e}},{key:"editableMode",value:function(){return!!uniweb&&!!uniweb.activeUserId()}},{key:"parseMediaLinkValue",value:function(t){var n,i=t.url,a=t.website_type,o=t.link_name,u=(null==a||null===(n=a.other_values)||void 0===n?void 0:n[0])||(null==a?void 0:a.rawValue)||null,l=null==i?void 0:i.value,c="",s="";if(l&&u){l.startsWith("https://")?c=l:s=l;var f="";switch(u){case"facebook":f="https://www.facebook.com/";break;case"linkedin":f="https://www.linkedin.com/in/";break;case"medium":f="https://medium.com/";break;case"mendeley":f="https://www.mendeley.com/profiles/";break;case"orcid_page":f="https://orcid.org/";break;case"pinterest":f="https://www.pinterest.com/";break;case"quora":f="https://www.quora.com/profile/";break;case"researchgate":f="https://www.researchgate.net/";break;case"tumblr":f="https://www.tumblr.com/";break;case"twitter":f="https://twitter.com/";break;case"youtube":f="https://www.youtube.com/"}s?c="".concat(f).concat(s):s=c.replace(f,"")}return{type:u,url:c,name:(null==a?void 0:a.value)||"",label:null!=o&&o.value?(0,r.NC)(null==o?void 0:o.value,"",e.websiteLang):"",handle:s}}},{key:"convertTimestampToLocalString",value:function(e){if(!e)return null;if(!Number(e)||!new Date(Number(e)).getTime())return e;var t="en"===uniweb.language()?"en-CA":"fr-CA",n=(e*=1e3,new Date(e).getTimezoneOffset());return new Date(e-60*n*1e3).toISOString(t).slice(0,19).replace("T"," ")}},{key:"getProfileTitleAndCaptionFieldName",value:function(t){var n=I(e.parseProfileType(t),2),i=n[0],a=n[1],o=(0,r.pe)(i,a)||{},u=o.titleFieldName,l=void 0===u?"":u,c=o.captionFieldName;return{titleFieldName:l,captionFieldName:void 0===c?"":c}}}],u&&D(t.prototype,u),l&&D(t,l),Object.defineProperty(t,"prototype",{writable:!1}),e}();F.websiteLang=null,F.cache={formats:{},profiles:{},queries:{}}},11865:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n1,"There should be at least a property and a value");for(var a=0;a1||fetch("engine.php?action=getAsyncData").then((function(e){return e.json()})).then((function(e){t.hasData=!0,t.units=null==e?void 0:e.units,t.permissions=null==e?void 0:e.permissions;for(var n=0;n=0}return!1}},{key:"getPermittedUnitIds",value:function(e,t){var n,r=null===(n=this.permissions)||void 0===n?void 0:n[e];return r&&r[t]||[]}},{key:"getPermittedUnits",value:function(e,t){var n,r=[],i={},a=[];for(var o in this.units)n=this.getUnitData(o),this.permission(e,t,o)&&(r.push([o,n.unitName]),i[o]=n);for(var o in i)i[i[o].parentId]||a.push(o);return{options:r,roots:a}}},{key:"getUnitColor",value:function(e){var t;if(!this.unitColors)for(var n in this.unitColors={},this.units)t=this.getUnitData(n),this.unitColors[t.unitName]=this.getUnitColorRecursive(t);return this.unitColors[e]}},{key:"getUnitColorRecursive",value:function(e){return e.color?"#"+e.color:e.parentId?this.getUnitColorRecursive(this.getUnitData(e.parentId)):"#aaa"}},{key:"getUnitId",value:function(e){if(e)for(var t in this.units)if(this.getUnitData(t).urlName==e)return t;return 1}},{key:"getUnitURLName",value:function(e){return this.getUnitData(e).urlName}},{key:"getParentUnitURLName",value:function(e){var t=this.getUnitData(e).parentId;return t?this.getUnitURLName(t):null}},{key:"getUnitNameById",value:function(e){return this.getUnitData(e).unitName}},{key:"getUnitData",value:function(e){var t=this.units[e];return t||(t={}),{id:e,urlName:t[0],parentId:t[1],unitName:t[2],homepage:t[3],title:t[4],visible:"1"==t[5],color:t[6]}}},{key:"getUnitTree",value:function(){var e,t={},n=[];for(var r in this.units)e=this.getUnitData(r),t[r]?(t[r][0]=e.unitName,t[r][2]=e.urlName):t[r]=[e.unitName,[],e.urlName],e.parentId?(t[e.parentId]||(t[e.parentId]=[null,[],null]),t[e.parentId][1].push(r)):n.push(r);for(var i=[],a=0;a=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;_(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:I(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},e}function f(e,t,n,r,i,a,o){try{var u=e[a](o),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,i)}function d(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){f(a,r,i,o,u,"next",e)}function u(e){f(a,r,i,o,u,"throw",e)}o(void 0)}))}}function h(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"",r=[e,""];n&&r.push(n),(t=window.history).replaceState.apply(t,r)}},{key:"updateState",value:function(e){var t=window.history.state||{};if(!t.currentIndex){var n=window.history.length,r=this.state.lastUsedUrl,i=this.isSignificantChange(r,e)?n:this.state.lastExitIndex;this.replaceState(b(b({},t),{},{currentIndex:n,exitIndex:i})),this.state={lastUsedUrl:e,lastExitIndex:i,currentIndex:n}}}},{key:"updateChildState",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!t&&null!==(e=this.state)&&void 0!==e&&e.frameReady){var n=window.history.state||{};t=n.currentIndex||window.history.length}else t&&(this.state.frameReady=!0);t&&(this.replaceState({currentIndex:t}),uniweb.messenger.sendToParent("setChildFrameIndex",t))}},{key:"isSignificantChange",value:function(e,t){if(!t.startsWith("/")||!e)return!1;if(e.startsWith("/edit")&&t.startsWith("/edit")||e.startsWith("/view")&&t.startsWith("/view")){var n=function(e){var t=e.match(/^\/(edit|view)(?:\/([^\/]*))?(?:\/([^\/]*))?(?:\/([^\/]*))?/);return t?t.slice(1):null},r=n(e),i=n(t);if(!r||!i)return console.log("One or both URLs do not follow the expected format."),!1;for(var a=r.length>i.length?r:i,o=0;oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;j(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function A(e,t,n,r,i,a,o){try{var u=e[a](o),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,i)}function L(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){A(a,r,i,o,u,"next",e)}function u(e){A(a,r,i,o,u,"throw",e)}o(void 0)}))}}function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:null,i=this.siteGlobals.defaultComponents,a=r&&i?i[r]:null,o=e&&null!==(n=uniweb.getModule(e)[t])&&void 0!==n?n:a;return o||console.log("Missing ".concat(e?"remote ".concat(e):""," category ").concat(t)),o}},{key:"hasWebsiteRemote",value:function(){return this.hasModule("WebsiteRemote")}},{key:"setWebsiteRemote",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.activeWebsite,n=e.default;this.addModule("WebsiteRemote",n),t.remoteSite=e.site||{}}},{key:"changeLanguage",value:function(e){fetch("?lang=".concat(e)).then((function(){"?lang=fr"==window.location.search||"?lang=en"==window.location.search?window.location.search="":window.location.reload()}))}},{key:"canUseWebP",value:function(){var e=document.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))&&0==e.toDataURL("image/webp").indexOf("data:image/webp")}},{key:"clearMetaFromServer",value:function(){["title","[name='description']","[name='twitter:card']","[name='twitter:title']","[name='twitter:description']","[property='og:title']","[property='og:description']","[property='og:type']"].forEach((function(e){var t=document.querySelector(e);t&&t.parentNode.removeChild(t)}))}},{key:"setContentFormat",value:function(e,t,n){this.data.setAsyncData(e,t,n)}},{key:"uniqueId",value:function(e){var t=(new Date).getTime();return e?e+t:t}},{key:"permittedUnits",value:function(e,t){return this.activeUserId()?this.data.getPermittedUnitIds(e,t):void 0}},{key:"checkUserPermission",value:function(e,t){if(!e)return!0;if(!t){var n=e.split("_"),r=n.shift(),i=n.join("_");return!!this.data.getPermittedUnitIds(r,i).length}var a=t[e];return a&&"0"!=a}},{key:"getActiveUser",value:function(){return this.config.activeUser()}},{key:"activeUserId",value:function(){return this.getActiveUser().id}},{key:"language",value:function(){return this.config.activeLanguage()}},{key:"newProfile",value:function(e,t,n){return l.Z.newProfile(e,t,n)}},{key:"getServices",value:function(){return{}}},{key:"getComponent",value:(c=L(E().mark((function e(t,n){return E().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.components.getComponent(t,n));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return c.apply(this,arguments)})},{key:"getProfileRenderer",value:(a=L(E().mark((function e(t){return E().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.components.getProfileRenderer(t));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"setCookie",value:function(e,t,n){var r,i;n?((i=new Date).setTime(i.getTime()+24*n*60*60*1e3),r="; expires="+i.toGMTString()):r="",document.cookie=e+"="+t+r+"; path=/"}},{key:"deleteCookie",value:function(e){this.setCookie(e,"",-1)}},{key:"getInitSiteInfo",value:function(){return this.config.data.initSite||null}},{key:"getActiveWebsite",value:function(){return this.activeWebsite}},{key:"preloadFont",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:400,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"normal",r="https://fonts.googleapis.com/css?family=".concat(encodeURIComponent(e),":").concat(t).concat(n);if(!this.loadedFonts[r]){var i=document.createElement("link");i.href=r,i.rel="stylesheet",document.head.appendChild(i),this.loadedFonts[r]=!0}}},{key:"localize",value:function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=a||uniweb.language(),l=window.uniweb?null===(t=window.uniweb)||void 0===t||null===(n=t.config)||void 0===n||null===(r=n.languages())||void 0===r?void 0:r[0]:"en";if("object"===I(e)&&!Array.isArray(e))return o?(null==e?void 0:e[u])||(null==e?void 0:e[l])||i:(null==e?void 0:e[u])||i;if("string"==typeof e)try{var c=JSON.parse(e);return"object"===I(c)?o?(null==c?void 0:c[u])||(null==c?void 0:c[l])||i:(null==c?void 0:c[u])||i:c}catch(t){return e}return i}},{key:"getDefaultImgUrl",value:function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"banner",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"profile",o=(null===(t=this.config.data)||void 0===t||null===(n=t.appData)||void 0===n?void 0:n.profileImages)||{};return(null===(r=o["".concat(e,"/").concat(a)])||void 0===r?void 0:r[i])||""}},{key:"onErrorResponse",value:function(e){var t=this;if(console.error(e),console.trace(),e.response&&e.response.data){var n=e.response.data.message||e.response.data.error||"Server error";this.errorMessages||(this.errorMessages=[],setTimeout((function(){var e=t.errorMessages.join("\n");t.errorMessages=!1,t.showError&&t.showError(e)}),500)),401!==e.response.status||uniweb.activeUserId(),this.errorMessages.push(n+" [code ".concat(e.response.status,"]"))}}},{key:"onUnhandledRejection",value:function(e){console.error("Unhandled promise rejection:",e.reason)}},{key:"log",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{},t=this.getPageKey(),n=window.scrollY;this.pageStates[t]=C(C({},e),{},{scrollTop:n})}},{key:"resetPageState",value:function(e){this.pageStates[e]&&delete this.pageStates[e]}},{key:"restorePageScrollPos",value:function(e){var t=this.getPageState("scrollTop",0,e);setTimeout((function(){window.scrollTo({top:t})}),50)}},{key:"getPageState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=n||this.getPageKey(),i=this.pageStates[r]||{};return e?i[e]||t:i}},{key:"getPackageSettings",value:function(e){var t;return(null===(t=this.appSettings._site)||void 0===t?void 0:t[e])||{}}},{key:"getAppSettings",value:(r=L(E().mark((function e(t){var n;return E().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.appSettings[t]){e.next=2;break}return e.abrupt("return",Promise.resolve(this.appSettings[t]));case 2:return e.next=4,(0,_.j0)("support.php",{action:"getAppSettings",name:t}).then((function(e){return e.data}));case 4:return n=e.sent,this.appSettings[t]=n,e.abrupt("return",n);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})}],n&&N(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();!function(){var e=JSON.parse(document.getElementById("APP_CONFIG").textContent);e.activeLanguage=document.documentElement.getAttribute("lang"),e.langs=[];for(var t=document.querySelectorAll('link[rel="alternate"]'),r=0;r{"use strict";n.d(t,{Z:()=>Qt});var r=n(81019),i=n(54574),a=n(8053),o=n(98238),u=n(97551);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,u=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){u=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(u)throw i}}return a}}(e,t)||f(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;_(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:I(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function p(e,t,n,r,i,a,o){try{var u=e[a](o),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,i)}function v(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){p(a,r,i,o,u,"next",e)}function u(e){p(a,r,i,o,u,"throw",e)}o(void 0)}))}}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;ta?"ASC"===p?1:-1:0}))),u&&(l=l.slice(0,parseInt(u))),l}},{key:"isFilterable",value:function(e){var t=e.select,n=void 0===t?{}:t,r=n.type,i=void 0===r?"primary":r,a=n.params,o=void 0===a?{}:a;if("primary"===i)return!0;var u=o.mode,l=o.types;return!("all"===u||(void 0===l?[]:l).length>1)}},{key:"fetchAndCache",value:(y=v(h().mark((function t(n){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.fetch(n));case 1:case"end":return t.stop()}}),t)}))),function(e){return y.apply(this,arguments)})},{key:"getDetail",value:function(e,t,n){var r=e.at(t);return n&&r&&(r=Array.isArray(r)?r.map((function(e){return e[n]})):r[n]),r}},{key:"fetch",value:(p=v(h().mark((function t(n){var r,i,a,o,u,l,c,s,f,d,p,v,y,b,m,w,k,O,P;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.select,i=void 0===r?{}:r,a=n.format,o=void 0===a?{}:a,u=i.type,l=void 0===u?"primary":u,c=i.detail,s=void 0===c?{}:c,f=i.params,d=void 0===f?{}:f,p=s.type,v=void 0===p?"full":p,y=s.params,b=void 0===y?{}:y,m=o.report,w="",k="","partial"===v&&(P=(null===(O=Object.values(b))||void 0===O?void 0:O[0])||{},w=null==P?void 0:P.section,k=null==P?void 0:P.field),t.abrupt("return",e.fetchPrimaryProfiles(n).then((function(t){if("primary"===l){var r=t[0];return"folder/profile"===(r?r.getProfileType():"")?Promise.all(t.map((function(t){return t.folder.getFiles().then((function(n){var r={contentProfile:t};return w&&(r.data=e.getDetail(t,w,k)),r}))}))).then((function(e){return e.flat()})):t.map((function(t){var r={contentProfile:t};return w?r.data=e.getDetail(t,w,k):m&&(r.data=e.getSectionItems(t,m,n)),r}))}if(t.length){var i=t[0].getProfileType(),a=d.mode,o=d.types,u=void 0===o?[]:o,c=null;if("list/profile"===i?(w="",c=e.fetchFromList(g(g({},n),{},{mainProfiles:t}))):"folder/profile"===i?(w="",c=e.fetchFromFolder(g(g({},n),{},{mainProfiles:t}))):(c=e.fetchLinkedProfiles(g(g({},n),{},{mainProfiles:t})),("all"===a||u.length>1)&&(w="")),c)return c.then((function(t){return e.fetchUniqueProfiles(t).map((function(t){var n={contentProfile:t};return w&&(n.data=e.getDetail(t,w,k)),n}))}))}return Promise.resolve([])})));case 7:case"end":return t.stop()}}),t)}))),function(e){return p.apply(this,arguments)})},{key:"fetchUniqueProfiles",value:function(e){var t={};return e.forEach((function(e){var n=e.getProfileType(),r=e.getId(),i="".concat(n,"_").concat(r);t[i]=e})),Object.values(t)}},{key:"fetchPrimaryProfiles",value:(d=v(h().mark((function t(n){var r,i,a,o,u,l,c,s,f,d,p,v;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.from,i=void 0===r?{}:r,a=n.activeLang,o=n.website,u=i.type,l=i.params,c=void 0===l?{}:l,"main"===u?s=Promise.resolve([o.getMainProfile()]):"manual"===u?(f=c.type,d=c.id,s=e.fetchFromManualSection({activeLang:a,type:f,ids:d})):"dynamic"===u&&(p=c.mode,v=c.id,s=e.fetchFromDynamicContent({activeLang:a,mode:p,id:v,website:o})),t.abrupt("return",s);case 4:case"end":return t.stop()}}),t)}))),function(e){return d.apply(this,arguments)})},{key:"fetchFromManualSection",value:(f=v(h().mark((function e(t){var n,i,a;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.type,i=t.ids,a=t.activeLang,e.abrupt("return",r.Z.fetchAll(n,i,a).then((function(e){return e})));case 2:case"end":return e.stop()}}),e)}))),function(e){return f.apply(this,arguments)})},{key:"fetchFromDynamicContent",value:(l=v(h().mark((function t(n){var r,i,a,o,u,l,c,s,f;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=n.mode,i=n.id,a=n.activeLang,o=n.website,"current"===r?(c=o.activePage,(s=c.getRoute()).includes("/index")||"index"===s?"index"===s?u=o.getPageInfo("/[id]","id"):(f=s.replace("/index","/[id]"),u=o.getPageInfo(f,"id")):u=c.getPageId()):u="single"===r?o.activePage.getPageId():i,u){t.next=4;break}return t.abrupt("return",Promise.resolve([]));case 4:return l=o.getPageInfo(u,"data_source_info"),t.abrupt("return",e.fetchAndCache(g(g({},l),{},{activeLang:a,website:o})).then((function(t){return e.sortAndFilter(l,t)})).then((function(e){var t=e.map((function(e){return e.contentProfile}));if("single"===r){var n=o.activePage.getTargetDSId(),i=t.filter((function(e){return e.getId()===n||e.getHandle()===n}));if(i.length){var a=i[0];return a.isReady()?[i[0]]:a.initialize().then((function(e){return[e]}))}return[]}if("current"===r){var u=o.activePage.getTargetDSId();return u?t.filter((function(e){return e.getId()!==u&&e.getHandle()!==u})):t}return t})));case 6:case"end":return t.stop()}}),t)}))),function(e){return l.apply(this,arguments)})},{key:"fetchLinkedProfiles",value:(u=v(h().mark((function t(n){var r,i,a,o,u,l,f,d,p,y,g,b,m,w,k,O,P;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.select,i=void 0===r?{}:r,a=n.mainProfiles,o=n.activeLang,u=i.params,f=(l=void 0===u?{}:u).mode,d=l.types,p=void 0===d?[]:d,y=[],g=null==a?void 0:a[0],"all"===f?(b=g.getSectionsWithRelationFields(),y=[],b.forEach((function(e){var t=e.name,n=e.profileLinks,r=void 0===n?{}:n,i=Object.keys(r);i=i.map((function(e){var n=s(g.findRelationField(e,t),2);return{type:e,section:n[0],field:n[1]}})),y=[].concat(c(y),c(i))}))):"custom"===f?y=p.map((function(e){var t=s(g.findRelationField(e),2);return{type:e,section:t[0],field:t[1]}})):"specific"===f&&(m=null==p?void 0:p[0],w=g.findRelationField(m,(null==l?void 0:l.section)||""),k=s(w,2),O=k[0],P=k[1],y=[{type:m,section:O,field:P}]),t.abrupt("return",Promise.all(a.map(function(){var t=v(h().mark((function t(n){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Promise.all(y.map((function(t){var r=t.type,i=t.section,a=t.field,u=n.getLinkedProfiles(r,i,a).map((function(e){return e.getId()}));return e.fetchFromManualSection({type:r,ids:u,activeLang:o})}))).then((function(e){return e.flat()})));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())).then((function(e){return e.flat()})));case 7:case"end":return t.stop()}}),t)}))),function(e){return u.apply(this,arguments)})},{key:"fetchFromFolder",value:(o=v(h().mark((function e(t){var n,r,i,a,o,u,l,c,s;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.select,r=void 0===n?{}:n,i=t.mainProfiles,a=t.activeLang,o=r.params,l=(u=void 0===o?{}:o).mode,c=u.types,s={activeLang:a,mode:l,types:void 0===c?[]:c},e.abrupt("return",Promise.all(i.map((function(e){return e.folder.getFiles(s).then((function(e){return e}))}))).then((function(e){return e.flat()})));case 5:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)})},{key:"fetchFromList",value:(a=v(h().mark((function t(n){var i,a,o,u,l,c,s,f,d,p;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=n.select,a=void 0===i?{}:i,o=n.mainProfiles,u=n.activeLang,l=a.params,s=(c=void 0===l?{}:l).mode,f=c.types,d=void 0===f?[]:f,p=o.map((function(e){return e.getId()})),t.abrupt("return",Promise.all(p.map((function(e){return r.Z.getListProfileItems(e)}))).then(function(){var t=v(h().mark((function t(n){var r,i;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={},n.forEach((function(e){e.forEach((function(e){var t=e.profile_type,n=e.contentId;("all"===s||"custom"===s&&d.includes(t))&&(r[t]||(r[t]=[]),r[t].push(n))}))})),i=[],Object.keys(r).map((function(t){var n=r[t];i.push(e.fetchFromManualSection({type:t,ids:n,activeLang:u}))})),t.abrupt("return",Promise.all(i).then((function(e){return e.flat()})));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 5:case"end":return t.stop()}}),t)}))),function(e){return a.apply(this,arguments)})},{key:"getSectionItems",value:function(e,t,n){var r=n.website.getTemplateEngine(),i=t.select,a=t.filter;if(i){var o=r.evaluateText(i,(function(t){return e.getValue(t)}));return a&&Array.isArray(o)&&(o=o.filter((function(e){return r.evaluateText(a,(function(t){return e[t]}))}))),o&&!Array.isArray(o)&&(o=[o]),o}return[]}}],n&&m(t.prototype,n),i&&m(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"transparent",n=e.color,r=void 0===n?"":n,i=e.shade,a=void 0===i?500:i,o=e.opacity,u=void 0===o?100:o;return"white"===r||"black"===r?r:0===parseInt(u)?t:r?"rgba(var(--".concat(r,"-").concat(a,") / ").concat(u/100,")"):t}},{key:"getWrapperProps",value:function(){var e=(this.block.disableTheming()?"":this.block.themeName)||"",t=this.block.standardOptions,n=t.background,r=void 0===n?{}:n,i=t.colors,a=void 0===i?{}:i,o={};if(r){var u=r.mode,l=void 0===u?"color":u;if("color"===l){var c=(null==r?void 0:r.color)||{};c.color&&(o["--bg-color"]=this.buildColorVal(c))}else if("gradient"===l){var s=(null==r?void 0:r.gradient)||{},f=s.start,d=void 0===f?{}:f,h=s.end,p=void 0===h?{}:h,v=s.rotation,y=void 0===v?0:v,g=this.buildColorVal(d),b=this.buildColorVal(p);o["--bg-color"]="linear-gradient(".concat(y,"deg, ").concat(g," 0%, ").concat(b," 100%)")}else"image"!==l&&"video"!==l||(o=O(O({},o),{},{position:"relative",maxWidth:"100%","--bg-color":"transparent"}))}var m=a.paragraph,w=a.heading,k=a.link,P=a.icon,j=a.button;return m&&m.color&&(o["--text-color"]=this.buildColorVal(m)),w&&w.color&&(o["--heading-color"]=this.buildColorVal(w)),k&&k.color&&(o["--link-color"]=this.buildColorVal(k)),P&&P.color&&(o["--icon-color"]=this.buildColorVal(P)),j&&j.color&&(o["--btn-color"]=this.buildColorVal(j)),{id:"Section".concat(this.block.id),style:o,className:e}}},{key:"getBgComponentProps",value:function(){var e=this.block.standardOptions.background,t={};if(e){var n=e.mode,r=void 0===n?"color":n;if("video"===r){var i=(null==e?void 0:e.video)||{},a=i.url,o=void 0===a?"":a,u=i.file,l=(void 0===u?{}:u).src,c=(void 0===l?"":l)||o;c&&(t={video:{src:c}})}else if("image"===r){var s=(null==e?void 0:e.image)||{},f=s.url,d=void 0===f?"":f,h=s.file,p=(void 0===h?{}:h).optSrc,v=d||p;v&&(t={image:{imgPos:!0,url:v}})}}return t}}],n&&j(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,u=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){u=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(u)throw i}}return a}}(e,t)||A(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(){I=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,i){var a=t&&t.prototype instanceof d?t:d,o=Object.create(a.prototype),u=new S(i||[]);return r(o,"_invoke",{value:k(e,n,u)}),o}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f={};function d(){}function h(){}function p(){}var v={};l(v,a,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(x([])));g&&g!==t&&n.call(g,a)&&(v=g);var b=p.prototype=d.prototype=Object.create(v);function m(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function i(r,a,o,u){var l=s(e[r],e,a);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==_(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,o,u)}),(function(e){i("throw",e,o,u)})):t.resolve(f).then((function(e){c.value=e,o(c)}),(function(e){return i("throw",e,o,u)}))}u(l.arg)}var a;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return a=a?a.then(r,r):r()}})}function k(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return{value:void 0,done:!0}}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var u=O(o,n);if(u){if(u===f)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function O(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function x(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;j(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function E(e,t,n,r,i,a,o){try{var u=e[a](o),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,i)}function A(e,t){if(e){if("string"==typeof e)return L(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(e,t):void 0}}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},n=this.page.website;if(t.nested){var r,i=(null===(r=this.main.body)||void 0===r?void 0:r.lists)||[],a=i[0];return e.parseNestedLinks(a,n)}var o,u=(null===(o=this.main.body)||void 0===o?void 0:o.links)||[];return u.map((function(e){return{route:n.makeHref(e.href),label:e.label}}))}},{key:"getBlockProperties",value:function(){return this.params||{}}},{key:"getBlockItems",value:function(){var t,n=[],r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=A(e))){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){u=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(u)throw a}}}}(this.items);try{for(r.s();!(t=r.n()).done;){var i=t.value;n.push(e.parseBlockItem(i))}}catch(e){r.e(e)}finally{r.f()}return n}},{key:"getBlockInfo",value:function(){var e;return{theme:this.themeName,category:null===(e=this.widget)||void 0===e?void 0:e.category,state:this.state}}},{key:"getNextBlockInfo",value:function(){var e=this.page.getBlockIndex(this);return e>=0?this.page.getBlockInfo(e+1):null}},{key:"disableTheming",value:function(){var e,t;return(null===(e=this.website.getRemoteProps())||void 0===e?void 0:e.disableTheming)||(null===(t=this.state)||void 0===t?void 0:t.disableTheming)}},{key:"hasInput",value:function(){var e=this.contentProfile.info,t=void 0===e?{}:e;return Object.keys(t).length}},{key:"renderInputData",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this.input)return null;var r=this.input.profiles;return r.length&&e?(t&&(r=t(r)),n?e(r):r.map((function(t,n){return e(t,n)}))):null}},{key:"getRenderingInput",value:function(){var e;return!this.input||null!==(e=this.input.format)&&void 0!==e&&e.manual?{profiles:[]}:this.input}},{key:"getBlockIdentifier",value:function(){return"".concat(this.page.getPageId(),"_").concat(this.page.options.pathname,"_").concat(this.id)}},{key:"resetInput",value:function(e){this.input=e,this.initBlockContent()}},{key:"stripTags",value:function(e){return u.Z.stripTags(e)}},{key:"fetchInput",value:(i=I().mark((function e(){var t,n,r=this;return I().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.input){e.next=2;break}return e.abrupt("return",Promise.resolve(this.input));case 2:return t=this.contentProfile.info||{},n=new w(t,this.website),e.abrupt("return",n.fetchData().then((function(e){return r.resetInput(n),n})));case 5:case"end":return e.stop()}}),e,this)})),a=function(){var e=this,t=arguments;return new Promise((function(n,r){var a=i.apply(e,t);function o(e){E(a,n,r,o,u,"next",e)}function u(e){E(a,n,r,o,u,"throw",e)}o(void 0)}))},function(){return a.apply(this,arguments)})},{key:"getChildBlockRenderer",value:function(){return this.website.getChildBlockRenderer()}},{key:"useBlockState",value:function(e,t){var n=this;void 0!==t&&null===this.startState?(this.startState=t,this.state=t):t=this.startState;var r=x(e(t),2),i=r[0],a=r[1];return this.resetStateHook=function(){return a(t)},[i,function(e){return a(n.state=e)}]}}],r=[{key:"parseBlockItem",value:function(e){var t=e.banner,n=e.body,r=e.header,i=(null==r?void 0:r.title)||"",a=(null==r?void 0:r.pretitle)||"",o=(null==r?void 0:r.subtitle)||"",u=(null==r?void 0:r.description)||"",l=(null==n?void 0:n.links)||[],c=(null==n?void 0:n.imgs)||[];return{banner:t,pretitle:a,title:i,subtitle:o,description:u,paragraphs:(null==n?void 0:n.paragraphs)||[],images:c,links:l,icons:(null==n?void 0:n.icons)||[],videos:(null==n?void 0:n.videos)||[],lists:(null==n?void 0:n.lists)||[]}}},{key:"parseChildBlocks",value:function(t,n,r){var i=[];return null!=t&&t.size&&Array.from(t).forEach((function(t){var a=x(t,2),o=(a[0],a[1]);if(!o.hidden||"0"===o.hidden){var u=new e(n.website.parseTopicSection(o,r,!0),n);i.push(u)}})),i}}],n&&C(t.prototype,n),r&&C(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();D(N,"parseNestedLinks",(function(e,t){var n=[];return null!=e&&e.length&&e.forEach((function(e){var r=e.links,i=e.lists,a=e.paragraphs,o=r[0],u=i[0],l=a[0],c="",s="",f=[],d=!0;o?(c=o.label,s=o.href,u&&(f=N.parseNestedLinks(u,t))):(c=l,d=!1,u&&(f=N.parseNestedLinks(u,t))),n.push({label:c,route:t.makeHref(s),child_items:f,hasData:d})})),n}));var F=["activeRoute","targetRoute","pageProps","activeLang"];function M(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=R(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){u=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(u)throw a}}}}function R(e,t){if(e){if("string"==typeof e)return B(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,F);!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.activeRoute=r,this.targetRoute=i,this.activeLang=o,this.pageProps=a||{},this.options=u||{},this.website=n,this.childBlocks=[],this.blockGroups=null,this.scrollY=0,this.profile=null,Object.preventExtensions(this)}var t,n;return t=e,n=[{key:"getBlockIndex",value:function(e){return this.childBlocks.indexOf(e)}},{key:"getBlockInfo",value:function(e){var t;return null===(t=this.childBlocks[e])||void 0===t?void 0:t.getBlockInfo()}},{key:"createBlock",value:function(e){var t=new N(e,this);return this.childBlocks.push(t),t}},{key:"getRoute",value:function(){return this.activeRoute}},{key:"getRoutes",value:function(){return this.options.fullRoute||{}}},{key:"getTargetRoute",value:function(){return this.targetRoute}},{key:"getTargetDSId",value:function(){var e,t;return(null===(e=this.options)||void 0===e||null===(t=e.activeContent)||void 0===t?void 0:t.targetDSId)||""}},{key:"isIndexPage",value:function(){var e,t,n,r;return(null===(e=this.options)||void 0===e||null===(t=e.activeContent)||void 0===t?void 0:t.data_source_info)&&(null===(n=this.options)||void 0===n||null===(r=n.activeContent)||void 0===r?void 0:r.indexPage)}},{key:"getPageProfile",value:function(){var e,t,n;return null!==(e=this.profile)&&void 0!==e?e:this.profile=new r.Z("docufolio",null===(t=this.options)||void 0===t||null===(n=t.activeContent)||void 0===n?void 0:n.docId)}},{key:"getPageId",value:function(){return this.options.activeContent.id}},{key:"getTemplateId",value:function(){return this.options.template}},{key:"getPageContent",value:function(){return this.options.activeContent}},{key:"getPageBody",value:function(){var e;return null===(e=this.options.activeContent)||void 0===e?void 0:e.sections}},{key:"getLayoutPreferences",value:function(){var e,t,n=null===(e=this.options)||void 0===e||null===(t=e.activeContent)||void 0===t?void 0:t.page_options;return n?JSON.parse(n):{}}},{key:"getPageProps",value:function(){return this.pageProps}},{key:"getPageProp",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(null===(t=this.pageProps)||void 0===t?void 0:t[e])||n}},{key:"getPageTitle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,a.NC)(this.getPageProp("title",e),"",this.activeLang)||e}},{key:"getPageLeadText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,a.NC)(this.getPageProp("lead_text",e),"",this.activeLang)||e}},{key:"getPageHeaderImg",value:function(){return this.getPageProp("header_image","")}},{key:"getPageHeaderImgHiddenState",value:function(){var e=this.getPageProp("hide_header_image","");return e&&"0"!==e}},{key:"getPageOptions",value:function(){var e=this.getPageProp("options","");return e?JSON.parse(e):{}}},{key:"getPageMeta",value:function(){var e=this.options,t=e.title,n=e.description,r=this.pageProps,i=r.title,o=r.lead_text;return{title:(0,a.NC)(i,"",this.activeLang)||t,description:(0,a.NC)(o,"",this.activeLang)||n}}},{key:"createBlockGroup",value:function(e,t){for(var n=[],r=0,i=Array.from(e);r2&&void 0!==arguments[2]?arguments[2]:0,r=n>0?Date.now()+1e3*n:null;this.store.set(e,{value:t,expiresAt:r})}},{key:"get",value:function(e){var t=this.store.get(e);return t?t.expiresAt&&t.expiresAt=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){u=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(u)throw a}}}}function Z(e,t){if(e){if("string"==typeof e)return K(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?K(e,t):void 0}}function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n!&|]+)/,X={"|":1,"&":2,"=":3,"!=":3,"<":4,"<=":4,">":4,">=":4,"+":5,"-":5,"*":6,"/":6,"%":6,"!":7};function ee(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object.keys(t),i=n.minQuoteLevel||0,a=n.splitText||!1,o=n.skipCommas||!0,u=[],l=0,c="",s=!1,f="",d=[],h="",p=0,v=["'",'"',"`","‘","’","“","”"],y=function(e,t){return e===t||["‘","’"].includes(e)&&["‘","’"].includes(t)||["“","”"].includes(e)&&["“","”"].includes(t)};function g(e,t){if(a&&"text"==e){var n,r=J(t.trim().split(Y));try{for(r.s();!(n=r.n()).done;){var i=n.value;o&&(i=ne(i)),""!==i&&u.push({type:e,value:i})}}catch(e){r.e(e)}finally{r.f()}}else u.push({type:e,value:t});c=""}function b(e){0===p?(""!==c&&g("text",c),c=e):c+=e}for(;li?(b(m),s=!0,f=m):s&&y(f,m)?(c+=m,s=!1,0===p&&g("quote",c)):c+=m:(c+=m,d.pop(),h=--p>0?t[d[p-1]]:"",0===p&&g("enclosure",c)),l++}return""!==c&&g("text",c),u}function te(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if("string"!=typeof e)return e instanceof Object?V({},e):{};var n=ee(e,{"{":"}","(":")"},{minQuoteLevel:1}),r={};function i(e,n,r){var i="Invalid ".concat(e," for snippet: ").concat(r,". Expecting: ").concat(n);t.push(i),console.error(i)}n.length<=1&&i("input","[name arg ...] { ... }",e);for(var a=1;a=t&&","===e[n];)n--;return e.slice(t,n+1)}function re(e){var t,n,r,i,a=[],o=[],u=J(e);try{for(u.s();!(i=u.n()).done;){var l=i.value;if(l.isOperator){for(;o.length>0&&X[o[o.length-1]]>=X[l.value];)t=o.pop(),n=a.pop(),r=a.pop(),a.push("(".concat(t," ").concat(r," ").concat(n,")"));o.push(l.value)}else a.push(l.value)}}catch(e){u.e(e)}finally{u.f()}for(;o.length>0;)t=o.pop(),n=a.pop(),r=a.pop(),a.push("(".concat(t," ").concat(r," ").concat(n,")"));return a[0]}function ie(e){var t,n=[{type:"text",value:e.name}],r=J(e.args);try{for(r.s();!(t=r.n()).done;){var i=t.value;n.push(i)}}catch(e){r.e(e)}finally{r.f()}for(var a in e.flags){var o=e.flags[a];!0===o?n.push({type:"text",value:"-"+a}):n.push({type:"text",value:"-"+a+"="},o)}return n}function ae(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ue(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){u=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(u)throw a}}}}function oe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,u=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){u=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(u)throw i}}return a}}(e,t)||ue(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ue(e,t){if(e){if("string"==typeof e)return le(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?le(e,t):void 0}}function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"vancouver",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en-US",u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};se(this,e),this.data=JSON.parse(JSON.stringify(t)),this.sectionName=(null===(n=this.data)||void 0===n||null===(r=n[0])||void 0===r||null===(i=r["@"])||void 0===i?void 0:i.name)||"",this.style=a,this.lang=o,this.fieldMapping=u.fieldMapping||{},this.customSections=u.customSections||{}}var t,n;return t=e,n=[{key:"getFieldMapping",value:function(){var e,t,n,r=(ce(e={"available-date":[],author:["authors"],"original-author":["book_reviewed_authors","original_author"],title:[[": ","book_title","chapter_title"],"article_title","issue_title","title","presentation_title","review_title","translation_title","dissertation_title","publication_title","case_name","entry_title","report_title","paper_title","manual_title","bibliography_title","narrative","patent_title","license_title","disclosure_title","copyright_title","trademark_title","title_of_work","piece_title","catalogue_title","composition_title"],"collection-title":["journal","program","forum","published_in","newspaper","newsletter","encyclopedia_name","magazine_name","dictionary_name","series_title","broadcast_type","album_title"],"collection-number":["patent_number"],"container-title":["journal_title"],"collection-editor":["series_editor"],contributor:"contributors",producer:"producer",volume:["volume","book_reviewed_volume"],"number-of-volumes":["number_of_volumes"],edition:["edition","book_reviewed_edition"],interviewer:"interviewer",issue:"issue",page:["page_range","number_of_pages"],"reviewed-title":"book_reviewed_title",issued:["date","publication_date",["date-group","date_issued","date_of_end_term"],["date-group","date_issued","end_date"],"date_issued","date_of_first_performance","book_reviewed_publication_date","date_completed","date_posted_online","date_first_released","release_date"],accessed:"date_first_used",composer:"artists",publisher:["publisher","network","gallery_publisher"],"publisher-place":[["glue",", ",["publication_location","publication_city"]],"patent_location","venue"],"event-title":["conference_event_name","conference_name","topic",["org","organization"],"other_organization"],"event-place":[["glue",", ",["conference_location","city"]],["glue",", ",["location","city"]],["org-place","organization"]],"original-date":[["date-group","first_broadcast_date","end_date"],"first_broadcast_date","publication_date","original_publication_date"],"original-publisher":"original_publisher_name","original-publisher-place":"original_publication_city","original-title":"original_title",narrator:"co-presenters","event-date":["presentation_date","review_date","completion_date","conference_date","broadcast_date"],URL:"url",editor:"editors",PMID:"pmid",DOI:"doi",status:["publishing_status","publication_status","patent_status","license_status","disclosure_status","copyright_status","trademark_status"],note:["presentation_type","translation_description","degree_type","key_legal_issues","conference_publication_type","research_type","exhibition_category","instrumentation_tags"],annote:["description_contribution_value"]},"contributor","contributor_role"),ce(e,"organizer",["supervisor","distributor"]),ce(e,"recipient",["student","person_acted_for"]),ce(e,"authority","court"),ce(e,"section","section"),ce(e,"submitted",["date_submitted","filing_date"]),ce(e,"producer",["inventors"]),e),i=this.mergeRecursive(r,this.fieldMapping);return null!==(t=this.customSections)&&void 0!==t&&t[this.sectionName]&&(i=this.mergeFieldMapping(i,(null===(n=this.customSections[this.sectionName])||void 0===n?void 0:n.field)||{})),i}},{key:"applyFunction",value:function(e,t){var n,r=this;switch(t.shift()){case"glue":return t[1]=t[1].map((function(t){return r.fetchValue(e,t)})).filter(Boolean),t[1].join(t[0]);case"org":var i=this.fetchValue(e,t[0],!1);return i?i[0]:null;case"org-place":var a=this.fetchValue(e,t[0],!1);return a&&[this.cleanTableValue(a[2]),this.cleanTableValue(a[1])].filter(Boolean).join(", ")||null;case": ":var o=[this.fetchValue(e,t[0],!1),this.fetchValue(e,t[1],!1)].filter(Boolean);return o.length>0?o.join(": "):null;case"date-group":var u=!0,l=function(e){if(Array.isArray(e))return le(e)}(n=t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||ue(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();return t=t.map((function(t){var n=r.fetchValue(e,t,!1);return null===n&&(u=!1),n})),u?(l.forEach((function(t){delete e[t]})),t):null;default:return null}}},{key:"cleanTableValue",value:function(e){var t="fr"==this.lang?"non requis":"not required";return e.toLowerCase()==t?null:e}},{key:"fetchValue",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e.hasOwnProperty(t)){var r=e[t];return n&&delete e[t],Array.isArray(r)&&2===r.length?r[1]:r}return null}},{key:"mergeFieldMapping",value:function(e,t){for(var n=this,r=function(){var t=oe(a[i],2),r=(t[0],t[1]);Object.entries(e).forEach((function(t){var i=oe(t,2),a=i[0],o=i[1];Array.isArray(o)||(e[a]=[o]),e[a]=e[a].filter((function(e){return!(e===r||Array.isArray(e)&&n.inArrayRecursive(r,e))}))}))},i=0,a=Object.entries(t);i2&&void 0!==arguments[2]&&arguments[2],i=ae(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;if((r?a===e:a==e)||Array.isArray(a)&&this.inArrayRecursive(e,a,r))return!0}}catch(e){i.e(e)}finally{i.f()}return!1}},{key:"mergeRecursive",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r').concat(JSON.stringify(n),"")}}],n&&fe(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),ve=n(43488),ye=["style","locale"];function ge(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function be(e){if(Array.isArray(e))return e}function me(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&we(e,t)}function we(e,t){return we=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},we(e,t)}function ke(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pe(e);if(t){var i=Pe(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Oe(this,n)}}function Oe(e,t){if(t&&("object"===xe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Pe(e){return Pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Pe(e)}function je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Se(e,t){for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){u=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(u)throw a}}}}function De(e,t){if(e){if("string"==typeof e)return Ne(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ne(e,t):void 0}}function Ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n>":{prop:"*",desc:!0,date:!0},"#":{currency:"*",row:"*",sep:"*",wrap:"*",unit:"unit",number:["decimal","currency","percent","unit"],string:[],date:["medium","full","long","short","year","ym"],list:[],object:[],json:[],debug:[],range:["open"],citation:["apa","mla","chicago","harvard","vancouver"],text:"string",map:"object",tag:["bold","italic","underline","strikethrough","superscript","subscript","span","h1","h2","h3","h4","h5","h6"]}},Re={accessor:{"":{handler:function(e,t,n){var r=n[0],i=n.slice(1);if(!i.length)return r;if(it(r)){if(i.length>1||ot(i[0])){var a,o=[],u=Ce(1==i.length?i[0]:i);try{for(u.s();!(a=u.n()).done;){var l=a.value;o.push(e(r,l))}}catch(e){u.e(e)}finally{u.f()}return o}return e(r,i[0])}return 1==i.length?e(r,i[0]):e(r,i)},minArgs:2,spread:!1},".":function(e,t){if(lt(e)&&(e=e.toString()),at(e))return rt(e,t);if(ot(e)){var n,r={},i=Ce(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;r[a]=rt(a,t)}}catch(e){i.e(e)}finally{i.f()}return r}if(it(e)){var o={};for(var u in e)o[e[u]]=rt(u,t);return o}}},collector:{"":function(e,t,n){var r=qe(n);return r.length?r.reduce(e):""},"++":We,"++!!":function(e,t){return nt(t)?e:e+1}},creator:{"":{handler:function(e,t,n){if(["~","phone","address","ref"].includes(t._name)&&ut(n)){var r=He(t,n);return"phone"===t._name&&(r=r.filter((function(e){return e[0]}))),r.map((function(n){return e(t,n)}))}return e(t,n)},spread:!1},"^":He,"~":function(e,t){return new Ot(e,t)},"\\":function(e,t){return new RegExp(t,e)},"@":function(e,t){return new kt(e,t)},"<>":function(e,t){return new Pt(e,t)},phone:function(e,t){return new jt(e,t)},address:function(e,t){return new St(e,t)},org:function(e,t){return new _t(e,t)},ref:function(e,t){return new xt(e,t)},currency:function(e,t){return new It(e,t)}},filter:{"":function(e,t,n){if(!ut(n))return e(n);for(var r=He({},n),i=[],a=0;a=t.length){if(e.endsWith(t))return e.slice(0,-t.length)}else if(t.startsWith(e))return t.slice(e.length);return e}return null},"%":function(e,t){return t/e*100},"*":function(e,t){return e*t},"/":function(e,t){return lt(e)&<(t)?e/t:e.toString().split(t.toString())},">":function(e,t){return e>t},"<":function(e,t){return e=":function(e,t){return e>=t},"<=":function(e,t){return e<=t},"=":Ye,"==":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t}},sorter:{"":function(e,t,n){if(!ut(n))return e(t,n);for(var r=He({},n),i=[],a=0;a>":function(e,t){var n=e.date?Qe:Xe,r=e.desc?-1:1;return t.sort((function(t,i){return r*n(e,t,i)}))}},switcher:{"":function(e,t,n){var r=[],i=[];if("?:"===t._name)r=n,i=n;else{var a=parseInt(t.cases);if(a||(a={"??":2,"???":3}[t._name]||1),a>=n.length)return null;r=n.slice(0,a),i=n.slice(a)}if(ut(r)||ut(i)){for(var o=Math.max($e(r),$e(i)),u={sz:o},l=He(u,r),c=He(u,i),s=[],f=0;fl.length?o.push([].concat(Ie(l),Ie(Array(r-l.length).fill(i)))):r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,ye);return new pe(t,n,r,i).render()}(t,n);default:return n?(null==n?void 0:n.toString())||"":(console.warn("Cannot format type: ".concat(t.type," for the value ").concat(n)),"")}}(r,Le(Le({},i),{},Te({},e.type,e[e.type]))||{},t),e.title&&at(t)&&(t=pt(t,e.locale)),e.aux&&(ot(t)&&(t=t.join(e.sep||", ")),t=mt(e,t)),e.label&&(ot(t)&&(t=t.join(e.sep||", ")),!0===e.label&&(e.label=e._params[0]),t=function(e,t){return t||e.force?new Pt(e,[["u-inline-value-group",new Pt(e,[["label",e.label],["span",t]])]]).format():""}(e,t)),e.heading&&(ot(t)&&(t=t.join(e.sep||", ")),!0===e.heading&&(e.heading=e._params[0]),t=function(e,t){if(!t&&!e.force)return"";var n=e.level||3;return new Pt(e,[["u-value-group",new Pt(e,[["h".concat(n),e.heading],["span",t]])]]).format()}(e,t)),e.wrap&&(nt(t)?t="":(!0===e.wrap&&(e.wrap="()"),t=e.wrap[0]+t+e.wrap[1])),t}function Ye(e,t){return e==t}function Qe(e,t,n){var r=et(t),i=et(n);return ct(r)&&ct(i)?st(r,"date").getTime()-st(i,"date").getTime():Xe(e,t,n)}function Xe(e,t,n){var r=et(t),i=et(n),a=lt(r),o=lt(i);return a&&o?Number(r)-Number(i):a||o?a?-1:1:("string"!=typeof r&&(r=String(r)),"string"!=typeof i&&(i=String(i)),r.localeCompare(i,e.locale))}function et(e){return ot(e)?e[0]:e instanceof Map?e.values().next().value:it(e)?e[Object.keys(e)[0]]:e}function tt(e,t,n){for(var r=0;rt.length?n[t.length]:null}function nt(e){return!e||"0"===e||(Array.isArray(e)?0===e.length:!!(e instanceof wt&&"function"==typeof e.isEmpty&&e.isEmpty())||"object"===xe(e)&&e.constructor===Object&&0===Object.keys(e).length)}function rt(e,t){for(var n=e.split("."),r=t,i=0;i2&&void 0!==arguments[2]?arguments[2]:{};switch(t){case"boolean":return!nt(e);case"date":return ct(e)?e instanceof Date?e:new Date(e):null;case"text":case"string":return at(e)?e:ze(qe(e));case"list":return ot(e)?e:it(e)?qe(e):null;case"object":return it(e)?e:null;case"number":return lt(e)?parseFloat(e):ct(e)?st(e,"date").getTime():0;case"range":return e instanceof Ot?e:ot(e)?new Ot(n,e):it(e)?new Ot(n,[e.start,e.end]):new Ot(n,[e]);case"tag":return e instanceof Pt?e:ot(e)?new Pt(n,[e]):e instanceof wt?new Pt(n,[[null,e,null]]):it(e)?new Pt(n,[e]):new Pt(n,[[null,e,null]])}return e}function ft(e){if(e instanceof wt)return"entity";if(e instanceof Date)return"date";var t=xe(e);return"undefined"==t||null===e?"null":"boolean"==t?t:ot(e)?"list":lt(e)?"number":ct(e)?"date":it(e)?"object":t}function dt(e,t){var n,r=[],i=Ce(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;ot(a)?a=dt(e,a):it(a)&&(a=ht(0,a)),a&&r.push(a)}}catch(e){i.e(e)}finally{i.f()}return r.join(void 0===e.sep?" ":e.sep)}function ht(e,t){return JSON.stringify(t)}function pt(e,t){t=yt(t);var n=new Set(["and","or","but","a","an","the","in","on","at","to","for","with","not"]);function r(e){return e.charAt(0).toLocaleUpperCase(t)+e.slice(1).toLocaleLowerCase(t)}return t.toLowerCase().startsWith("en")?e.split(" ").map((function(e,t,i){return 0!==t&&t!==i.length-1&&n.has(e.toLowerCase())?e.toLowerCase():r(e)})).join(" "):r(e)}function vt(e){Fe=e||document.documentElement.getAttribute("lang")||"en"}function yt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return Fe||vt(),e||Fe}function gt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return yt(e).split("-")[0].toLowerCase()}function bt(e){return{en:"Present",fr:"présent",es:"presente",de:"heute",it:"presente",pt:"presente",zh:"至今",ja:"現在",ko:"현재",ru:"настоящее время",ar:"الحاضر",hi:"वर्तमान",bn:"বর্তমান",id:"sekarang",nl:"heden",pl:"obecnie",ro:"prezent",sv:"nuvarande",tr:"günümüz",uk:"теперішній час",vi:"hiện tại"}[gt(e)]}function mt(e,t){return t?new Pt(e,[["u-aux",t]]).format():""}var wt=function(){function e(t,n){if(je(this,e),this.flags=Le({},t),this.values=Array.isArray(n)?Ie(n):"object"===xe(n)?Le({},n):n,this.parsedArgs=null,(this instanceof e?this.constructor:void 0)===e)throw new TypeError("Cannot instantiate BaseEntity directly.")}return _e(e,[{key:"format",value:function(){return this.values}},{key:"isEmpty",value:function(){throw new Error("Method 'isEmpty()' must be implemented.")}},{key:"toString",value:function(){throw new Error("Method 'toString()' must be implemented.")}},{key:"getParsedArgs",value:function(e){var t=this;if(this.parsedArgs)return this.parsedArgs;var n={},r=this.getFieldMapping(),i=Object.keys(e);return Object.keys(r).forEach((function(a){var o=r[a];Array.isArray(o)||(o=[o]);var u=[],l=[];o.forEach((function(n){if(Array.isArray(n)){var r=t.applyFunction(e,n);u.push(r),l.push(r)}else u.push(i.includes(n)),l.push((null==e?void 0:e[n])||"")}));var c=tt(0,u,l);n[a]=c})),n}},{key:"applyFunction",value:function(e,t){if("."===t.shift()){var n=t[1];if(null==e||!e[n])return!1;var r=e[n],i=t[0];return i||0===i?r[i]:""}return!1}},{key:"getFieldMapping",value:function(){return{}}}]),e}(),kt=function(e){me(n,e);var t=ke(n);function n(e,r){var i;je(this,n),i=t.call(this,e,r);var a=ot(r)?null==r?void 0:r[0]:r;return i.values=it(a)?a:{},i}return _e(n,[{key:"toString",value:function(){return this.values[this.flags.lang]}},{key:"isEmpty",value:function(){return!this.values||0===Object.keys(this.values).length}}]),n}(wt),Ot=function(e){me(n,e);var t=ke(n);function n(e,r){var i;je(this,n),i=t.call(this,e,r);var a=qe(r),o=a[0],u=a[1];return i.givenStart=o,i.givenEnd=u,i.includeStart=!e.open,i.includeEnd=!e.open,i.flags.type||(i.flags.type=ft(o||u)),i.start=st(o,"number"),i.end=st(u,"number"),i}return _e(n,[{key:"contains",value:function(e){if(e instanceof n)return this.overlaps(e);e=st(e,"number");var t=this.includeStart?e>=this.start:e>this.start,r=this.includeEnd?e<=this.end:e=this.start:e.end>this.start;return t&&n}},{key:"format",value:function(e){var t=(e=Le(Le({},e),this.flags)).separator||" – ",n=this.givenStart,r=this.givenEnd;return"date"===e.type?(n=n?Ke(e,n):bt(e.locale),r=r?Ke(e,r):bt(e.locale)):"range"!==e.type&&(n=Ke(e,n||""),r=Ke(e,r||"")),n||r?"".concat(n).concat(t).concat(r):""}},{key:"isEmpty",value:function(){return!this.values||Array.isArray(this.values)&&!this.values.filter(Boolean).length}},{key:"toString",value:function(){return this.format()}}]),n}(wt),Pt=function(e){me(n,e);var t=ke(n);function n(e,r){var i;je(this,n),i=t.call(this,e,r);var a=e.tag,o=a?ot(a)?a:[a]:[];return i.markups=r.map((function(e){var t,n,r="",i="",a={};if(Array.isArray(e)){var u=(n=3,be(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,u=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){u=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(u)throw i}}return a}}(t,n)||De(t,n)||ge());r=u[0],i=u[1];var l=u[2];a=void 0===l?{}:l}else"object"===xe(e)?(r=e.tag||"",i=e.children||"",a=e.attrs||{}):"string"==typeof e&&(i=e);var c=r?[].concat(Ie(o),[r]):Ie(o);return c.length||(c=["span"]),{tag:c,children:i,attrs:a}})),i}return _e(n,[{key:"format",value:function(){var e="",t=["strong","em","u","s","sup","sub"];return this.markups.forEach((function(n){var r=n.tag,i=n.children,a=n.attrs,o=i||"";r.forEach((function(e,n){var r="",i={};switch(e){case"bold":r="strong";break;case"italic":r="em";break;case"underline":r="u";break;case"strikethrough":r="s";break;case"superscript":r="sup";break;case"subscript":r="sub";break;default:r=e}if(t.includes(r)){if(!o)return"";if(o instanceof wt&&o.isEmpty())return""}if(0===n&&(i=a),i&&Object.keys(i).length){r="_self"===r?"span":r;var u=Object.keys(i).reduce((function(e,t){return"".concat(e," ").concat(t,'="').concat(i[t],'"')}),"");o="<".concat(r).concat(u,">").concat(o,"")}else("span"!==r||o)&&(o="_self"===r?o:"<".concat(r,">").concat(o,""))})),e+=o})),e}},{key:"isEmpty",value:function(){return!(1!==this.markups.length||1!==this.markups[0].tag.length||this.markups[0].children||this.markups[0].attrs&&Object.keys(this.markups[0].attrs).length)}},{key:"toString",value:function(){return this.format()}}]),n}(wt),jt=function(e){me(n,e);var t=ke(n);function n(e,r){var i;return je(this,n),(i=t.call(this,e,r)).parsedArgs=i.getParsedArgs((null==r?void 0:r[0])||{}),i}return _e(n,[{key:"getFieldMapping",value:function(){return{type:["type","phone_type","telephone_type"],country:["country","country_code","telephone_country","phone_country"],area:["area","area_code","telephone_area","phone_area"],number:["number","telephone_number","phone_number"],ext:["ext","extension","telephone_extension","phone_extension"],start:["start","telephone_start_date","phone_start_date"],end:["end","telephone_end_date","phone_end_date","telephone_expiration_date","phone_expiration_date"]}}},{key:"format",value:function(){if(this.isEmpty())return"";this.flags.link;var e=this.parsedArgs,t=e.type,n=e.country,r=e.ext,i=e.start,a=e.end,o=new Ot({},[i,a]).format();return[Ve([t,":"]),Ve(["+",n]),this.buildNumber(),Ve(["x ",r]),o?new Pt({},[["u-aux",o]]).format():""].filter(Boolean).join(" ")}},{key:"buildNumber",value:function(){var e=this.parsedArgs,t=e.area,n=e.number;return t||n?Ve([Ve(["(",t,") "]),n]):""}},{key:"isEmpty",value:function(){return!this.buildNumber()}},{key:"toString",value:function(){return this.format()}}]),n}(wt),St=function(e){me(n,e);var t=ke(n);function n(e,r){var i;return je(this,n),(i=t.call(this,e,r)).parsedArgs=i.getParsedArgs(null==r?void 0:r[0]),i}return _e(n,[{key:"getFieldMapping",value:function(){return{type:["type","address_type"],line1:["line1","line_1","address_-_line_1","address_line_1"],line2:["line2","line_2","address_-_line_2","address_line_2"],line3:["line3","line_3","address_-_line_3","address_line_3"],line4:["line4","line_4","address_-_line_4","address_line_4"],line5:["line5","line_5","address_-_line_5","address_line_5"],start:["start","address_start_date","start_date"],end:["end","address_end_date","end_date","expiration_date","address_expiration_date"],city:["city","address_city"],province:[[".",0,"location"],"province","address_province","state","address_state"],country:[[".",1,"location"],"country","address_country"],zip:["zip","postal_code","address_zip","address_postal_code","postal_zip_code"]}}},{key:"format",value:function(){if(this.isEmpty())return"";var e=this.parsedArgs,t=e.type,n=e.country,r=e.city,i=e.line1,a=void 0===i?"":i,o=e.line2,u=void 0===o?"":o,l=e.line3,c=void 0===l?"":l,s=e.line4,f=void 0===s?"":s,d=e.line5,h=void 0===d?"":d,p=e.province,v=e.zip,y=void 0===v?"":v,g=e.start,b=void 0===g?"":g,m=e.end,w=void 0===m?"":m;return[ze(0,[" ",Ke({tag:"bold",type:"tag",bold:!0},Ve([t,":"])),ze(0,[" ",a,Ve(["(",new Ot({},[b,w]),")"])])]),u,c,f,h,ze(0,[", ",r,ze(0,[" ",p,Ve(["(",n,")"])])]),y].filter(Boolean).join("
")}},{key:"isEmpty",value:function(){var e=this.parsedArgs,t=e.country,n=e.city,r=e.line1,i=void 0===r?"":r,a=e.province;return!(t||n||i||a)}},{key:"toString",value:function(){return this.format()}}]),n}(wt),_t=function(e){me(n,e);var t=ke(n);function n(e,r){var i;return je(this,n),(i=t.call(this,e,r)).parsedArgs=i.getParsedArgs(null==r?void 0:r[0]),i}return _e(n,[{key:"name",get:function(){return this.parsedArgs.organization}},{key:"country",get:function(){return this.parsedArgs.country}},{key:"province",get:function(){return this.parsedArgs.province}},{key:"type",get:function(){return this.parsedArgs.type}},{key:"getFieldMapping",value:function(){return{organization:[[".",0,"organization"],"organization","other_organization","other_organization_type"],country:[[".",1,"organization"]],province:[[".",2,"organization"],"province","organization_province","state","organization_state"],type:[[".",3,"organization"],"type","organization_type"]}}},{key:"format",value:function(){if(this.isEmpty())return"";var e=this.parsedArgs,t=e.type,n=e.organization,r=ze(0,[" - ",e.country,e.province,t]);return new Pt({},[["u-org",new Pt({},[["u-org-name",n],["_self",mt({},r)]])]]).format()}},{key:"isEmpty",value:function(){return!this.parsedArgs.organization}},{key:"toString",value:function(){return this.format()}}]),n}(wt),xt=function(e){me(n,e);var t=ke(n);function n(e,r){return je(this,n),t.call(this,e,qe(r))}return _e(n,[{key:"format",value:function(){var e,t=be(e=this.values)||Ee(e)||De(e)||ge(),n=t[0],r=t.slice(1),i=ze(0,[" - "].concat(Ie(r)));return n?new Pt({},[["u-ref",new Pt({},[["u-ref-name",n],["_self",mt({},i)]])]]).format():""}},{key:"isEmpty",value:function(){return!this.values||!this.values.length}},{key:"toString",value:function(){return this.format()}}]),n}(wt),It=function(e){me(n,e);var t=ke(n);function n(e,r){var i;return je(this,n),(i=t.call(this,e,r)).parsedArgs=i.getParsedArgs(null==r?void 0:r[0]),i}return _e(n,[{key:"getFieldMapping",value:function(){return{amount:["amount","currency_amount"],currency:["currency","currency_code"],convertedAmount:["converted_amount","converted_currency_amount"]}}},{key:"format",value:function(){if(this.isEmpty())return"";var e=this.parsedArgs,t=e.amount,n=e.currency,r=e.convertedAmount,i=ve.y[n.toLowerCase()],a=[["u-amount",i?new Intl.NumberFormat("".concat(uniweb.language(),"-CA"),{style:"currency",currency:i}).format(t):t]];return n&&a.push(["u-unit",n]),r&&"0"!==r&&a.push(["u-aux",new Intl.NumberFormat("".concat(uniweb.language(),"-CA"),{style:"currency",currency:"CAD"}).format(r)]),new Pt({},[["u-currency",new Pt({},a)]]).format()}},{key:"isEmpty",value:function(){return!this.parsedArgs.amount}},{key:"toString",value:function(){return this.format()}}]),n}(wt);function Et(e){return Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Et(e)}function At(e){return function(e){if(Array.isArray(e))return Ct(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Tt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Tt(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){u=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(u)throw a}}}}function Tt(e,t){if(e){if("string"==typeof e)return Ct(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ct(e,t):void 0}}function Ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Dt(this,e),this.snippets=te(t),this.functions=n}var t,n;return t=e,n=[{key:"setVariables",value:function(e){this.variables="function"==typeof e?e:function(t){return rt(t,e)}}},{key:"render",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;t&&this.setVariables(t);var r,i=ee(e,{"{":"}"}),a="",o=Lt(i);try{for(o.s();!(r=o.n()).done;){var u=r.value;if("enclosure"===u.type){var l=u.value.slice(1,-1);l.startsWith("{")&&l.endsWith("}")&&(l=l.slice(1,-1));try{"string"!=typeof(l=this.evaluateText(l,null,n))&&(l=Ge("#",{l:!0,sep:", "},[l]))}catch(e){l=e}a+=l}else a+=u.value}}catch(e){o.e(e)}finally{o.f()}return a}},{key:"evaluateText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return e=e.trim(),t&&this.setVariables(t),Ft.test(e)?this.getVariable(e,n):this.evaluateFunction(e,n)}},{key:"evaluateList",value:function(e,t){var n=ee(e,{"(":")","[":"]","{":"}"},{minQuoteLevel:-1,splitText:!0});if(!n.length)return"";var r,i=[],a=Lt(n);try{for(a.s();!(r=a.n()).done;){var o=r.value;i.push(this.evaluateExpression(o,t).value)}}catch(e){a.e(e)}finally{a.f()}return i}},{key:"evaluateObject",value:function(e,t){var n=ee(e,{"(":")","[":"]","{":"}"},{minQuoteLevel:-1,splitText:!0});if(!n.length)return"";var r,i,a,o=function(e){var t=0,n="",r="",i=!1,a=new Map;function o(e,t){a.set(r,{type:e,value:t}),i=!1,n=""}function u(e){a.set(e,{type:"text",value:!0}),i=!0,r=e,n=""}for(;t>"},r=n[e[0].value.toLowerCase()];if(!r)return e;e=function(e){var t,n=function(e){var t,n,r,i,a=[],o=J(e);try{for(o.s();!(i=o.n()).done;){var u=i.value;if("text"===u.type)if((t=u.value.split(Q)).length<=1)a.push(u);else for(var l=0;l!&|".includes(n[0]),"!"===n&&a.push({type:"text",value:""}),a.push({type:"text",value:n,isOperator:r}));else a.push(u)}}catch(e){o.e(e)}finally{o.f()}return a}(e),r=function(e){for(var t=[],n=0,r=!1,i=[];n0&&o.unshift.apply(o,function(e){if(Array.isArray(e))return K(e)}(t=o.splice(h,1))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||Z(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());break}for(var p=o.shift(),v=0,y=o;v1&&void 0!==arguments[1]?arguments[1]:null,n=e.value,r=e.type;if("quote"===r)return{value:n.slice(1,-1),type:r};if("enclosure"===e.type){if(n.startsWith("(")&&n.endsWith(")"))return{value:this.evaluateFunction(n.slice(1,-1),t),type:"function"};if(n.startsWith("[")&&n.endsWith("]"))return{value:this.evaluateList(n.slice(1,-1),t),type:"list"};if(n.startsWith("{")&&n.endsWith("}"))return{value:this.evaluateObject(n.slice(1,-1),t),type:"object"}}return t&&t.has(n)?{value:t.get(n),type:"aux"}:Ft.test(n)?{value:this.getVariable(n,t),label:this.getVariableMeta(n).label,type:"variable"}:Mt.test(n)?{value:parseFloat(n),type:"number"}:{value:this.getError(103,"Invalid expression",n),type:"error"}}},{key:"getVariable",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e.startsWith("@"))return this.getVariableMeta(e.slice(1)).label;var n=this.variables(e);if(void 0!==n){var r=this.getVariableMeta(e);return r.type?st(n,r.type):n}return t&&t.has(e)?t.get(e):this.snippets.hasOwnProperty(e)?this.callSnippet(e):this.functions.hasOwnProperty(e)?this.callCustomFunction(this.functions[e],[]):"_now"===e?new Date:{true:!0,false:!1,null:null}[e]}},{key:"callSnippet",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=this.snippets[e];return"function"!=typeof r&&(r=this.makeSnippetFunction(r),this.snippets[e]=r),r(t,n)}},{key:"makeSnippetFunction",value:function(e){var t=this,n=e.args||[],r=e.isText,i=e.body,a=e.hasFlags,o=new Map;return function(e,u){a&&o.set("$0",e);for(var l=0;l=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;j(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function $t(e,t,n,r,i,a,o){try{var u=e[a](o),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,i)}function Ht(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){$t(a,r,i,o,u,"next",e)}function u(e){$t(a,r,i,o,u,"throw",e)}o(void 0)}))}}function Wt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,u=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){u=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(u)throw i}}return a}}(e,t)||zt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zt(e,t){if(e){if("string"==typeof e)return Vt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vt(e,t):void 0}}function Vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:"Website";Kt(this,e),this.websiteData=(null==t?void 0:t.websiteData)||null,this.domainsInfo=(null==t?void 0:t.domainsInfo)||{},this.isSitePublic=(null==t?void 0:t.isWebsitePublic)||!1,this.mainProfile=null,this.websiteProfile=null,this.defaultLang=(null===(r=t.langs)||void 0===r?void 0:r[0])||n||"en",this.docufolio=null,this.ga=null,this.activePage=null,this.type=s,this.pageHierarchy=null,this.pageRoutes={},this.rootClassName="",this.remoteSite={},this.initLang((null===(i=this.domainsInfo)||void 0===i||null===(a=i.info)||void 0===a?void 0:a.lang)||this.getPrimaryLang()),this.initDocuments(),this.pages=new W,this.activePath=null,this.timeStep=0,this.defineConstProperty("siteId",(null===(o=this.domainsInfo.info)||void 0===o?void 0:o.siteId)||(null==t||null===(u=t.initSite)||void 0===u?void 0:u.siteId)),this.layout={},this.reportDownloadOptions=null!=t&&null!==(l=t.websiteData)&&void 0!==l&&l.downloadOptions?JSON.parse(null==t||null===(c=t.websiteData)||void 0===c?void 0:c.downloadOptions):{},this.reloadSite=null,Object.preventExtensions(this)}var t,n,u,l,c,s;return t=e,n=[{key:"initLang",value:function(e){this.websiteLang=e,r.Z.setWebsiteLanguage(e),this.initGA()}},{key:"setLang",value:function(e){this.initLang(e),this.getMainProfile().resetComputedData(),this.resetDocuments()}},{key:"initDocuments",value:function(){var e,t=this,n=(null===(e=this.websiteData)||void 0===e?void 0:e.documents)||[];n.length&&(this.websiteData.documents=n.map((function(e){var n=e.pages;return{docId:e.docId,pages:t.initPageRoutes(n)}})))}},{key:"initPageRoutes",value:function(e){var t=this,n=this.getLanguage();return e.map((function(e){var r=(null==e?void 0:e.child_items)||[],i=(null==e?void 0:e.fullRoute)||{},a=null==i?void 0:i[n];return t.pageRoutes[e.id]=i,Jt(Jt({},e),{},{route:a,fullRoute:i,child_items:t.initPageRoutes(r,i)})}))}},{key:"resetDocuments",value:function(){var e,t=this,n=(null===(e=this.websiteData)||void 0===e?void 0:e.documents)||[];n.length&&(this.websiteData.documents=n.map((function(e){var n=e.pages;return{docId:e.docId,pages:t.flipPageRoutes(n)}})))}},{key:"flipPageRoutes",value:function(e){var t=this;return e.map((function(e){var n=(null==e?void 0:e.child_items)||[],r=(null==e?void 0:e.fullRoute)||{},i=null==r?void 0:r[t.getLanguage()];return Jt(Jt({},e),{},{route:i,child_items:t.flipPageRoutes(n)})}))}},{key:"initGA",value:function(){var e=this.getAnalyticId();e&&($.ZP.initialize(e,{legacyDimensionMetric:!1,debug:!0}),this.ga=$.ZP)}},{key:"getSiteId",value:function(){return this.siteId}},{key:"getDomains",value:function(){return this.domainsInfo.domains}},{key:"getDomainsInfo",value:function(){var e;return null===(e=this.domainsInfo)||void 0===e?void 0:e.info}},{key:"isPublic",value:function(){return this.isSitePublic}},{key:"inPublishedMode",value:function(){var e;return null===(e=this.domainsInfo)||void 0===e?void 0:e.publishedMode}},{key:"getLanguage",value:function(){return this.websiteLang}},{key:"getLanguagePreference",value:function(){var e;return null===(e=this.websiteData)||void 0===e?void 0:e.language}},{key:"getSnippets",value:function(){var e;return(null===(e=this.websiteData)||void 0===e?void 0:e.snippets)||{}}},{key:"getLanguages",value:function(){var e,t=null===(e=this.websiteData)||void 0===e?void 0:e.language;try{return JSON.parse(t)||[]}catch(e){}return[]}},{key:"getPrimaryLang",value:function(){var e,t;return(null===(e=this.getLanguages())||void 0===e||null===(t=e[0])||void 0===t?void 0:t.value)||this.defaultLang}},{key:"getData",value:function(){return this.websiteData||{}}},{key:"getWebsiteProfile",value:function(){if(null===this.websiteProfile){var e,t,n,i,a={_avatar:null===(e=this.getData())||void 0===e||null===(t=e.siteMeta)||void 0===t?void 0:t._avatar,_banner:null===(n=this.getData())||void 0===n||null===(i=n.siteMeta)||void 0===i?void 0:i._banner};this.websiteProfile=new r.Z("website",this.getSiteId(),{head:a})}return this.websiteProfile}},{key:"getDocs",value:function(){var e;return(null===(e=this.websiteData)||void 0===e?void 0:e.documents)||[]}},{key:"getTemplateParams",value:function(){return this.getData().templateParams}},{key:"getDataSource",value:function(){return this.getData().dataSource||{}}},{key:"getDataSourceInfo",value:function(){var e=this.getDataSource(),t=e.type,n=void 0===t?"":t,r=e.id,i=Wt(n.split("/"),2);return{contentType:i[0],viewType:i[1],id:r}}},{key:"getSearchData",value:(s=Ht(Gt().mark((function e(){return Gt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",fetch("website.php?action=getSearchData&siteId=".concat(this.getSiteId(),"&activeLang=").concat(this.getLanguage())).then((function(e){return e.json()})));case 1:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"getAnalyticId",value:function(){var e;return(0,a.NC)(null===(e=this.getData())||void 0===e?void 0:e.analyticId,"",this.getLanguage(),!0)}},{key:"search",value:function(e){}},{key:"submitEvent",value:function(e,t){this.ga&&(e?this.ga.event(e,t):this.ga.send(t))}},{key:"getWebsiteStructure",value:function(){var e=this;if(null===this.docufolio){var t=this.getData(),n=t.documents,r=void 0===n?[]:n,i=t.layouts,a=void 0===i?{}:i,u=t.template,l=r.map((function(t){var n=t.pages;return{docId:t.docId,pages:e.getFlatPages(n)}}));this.docufolio=new o.Z(l,a,u,this)}return this.docufolio}},{key:"createPage",value:function(e){var t=this.pages.get(e);if(!t){var n=this.getWebsiteStructure().getDocInfo(e,this.getLanguage());t=new G(n,this),this.pages.add(e,t,3600)}return this.activePage=t}},{key:"getPageInfo",value:function(e,t){var n=this.getWebsiteStructure().getPageInfo(e);return t?null==n?void 0:n[t]:n}},{key:"getPageHierarchy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.getDocs(),n=[];t.forEach((function(e){var t=e.pages;n=[].concat(Ut(n),Ut(t))}));var r=e.nested,i=void 0===r||r;return i||(n=this.getFlatPages(n)),this.getParsedPageHierarchy(n,e)}},{key:"getFlatPages",value:function(e){var t=this,n=[];return e.forEach((function(e){var r=Ut((null==e?void 0:e.child_items)||[]);delete r.child_items,n.push(e),n=[].concat(Ut(n),Ut(t.getFlatPages(r)))})),n}},{key:"getParsedPageHierarchy",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=[],a=t.filterEmpty,o=void 0===a||a,u=t.pageOnly,l=void 0!==u&&u,c=t.dynamicPageOnly,s=void 0!==c&&c;e.forEach((function(e,a){var u=e.id,c=e.label,f=e.child_items,d=e.hidden,h=e.route,p=e.title,v=e.description,y=e.sections,g=e.page_options,b=n.localize(h),m=b.includes("[id]"),w=b.includes("/index"),k=g?JSON.parse(g):{},O=(null==k?void 0:k.hierarchyMode)||"auto";if(!r&&("/"===b||!b&&0===a)||"include"===O||(!d||"0"===d)&&"exclude"!==O&&(!o||n.hasDataInRequiredSections(y))&&!w&&(!l||y.length)&&(!s||m)){var P={id:u,label:n.localize(c),route:"/"===b?"":b,title:n.localize(p),description:n.localize(v),child_items:f?n.getParsedPageHierarchy(f,t,!0):null,inputs:n.getSectionInputs(y),hasData:!(null==y||!y.length)};m&&(P.route=b.replace("/[id]","")),i.push(P)}}));var f=t.sort;return f?f(i):i}},{key:"getSectionInputs",value:function(e){for(var t=this.getMainProfile(),n=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:this.getLanguage();return(0,i.e)(e,t)}},{key:"dateFromNow",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLanguage();return(0,i.Zh)((0,i.e)(e,t))}},{key:"localize",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.getLanguage();return e instanceof Date?(0,i.p6)(e):(0,a.NC)(e,t,n,!0)}},{key:"isReady",value:function(){return!!this.websiteData}},{key:"initialize",value:(c=Ht(Gt().mark((function t(){var n,r,i=arguments;return Gt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n=i.length>0&&void 0!==i[0]?i[0]:null)||"function"==typeof n){t.next=3;break}throw"Invalid callback";case 3:if(!this.isReady()){t.next=8;break}return n&&n(this),t.abrupt("return",Promise.resolve(this));case 8:return r=this.getSiteId(),t.abrupt("return",e.fetch(r).then((function(e){return n&&n(e),e})).catch((function(e){console.log(e),console.log("Cannot fetch website/".concat(r))})));case 10:case"end":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)})},{key:"submitWebsiteForm",value:function(e,t){return(0,a.j0)("website.php",{action:"submitWebsiteForm",siteId:this.getSiteId(),data:t,tag:e})}},{key:"submitInfoData",value:function(e,t){return(0,a.j0)("website.php",{action:"submitInfoData",route:e,data:t})}},{key:"parseTopicSection",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.getData().remote,i=this.getLanguage();return this.getWebsiteStructure().parseTopicSection(e,t,r,i,n)}},{key:"findComponent",value:function(e){var t=e.remoteName,n=e.category,r=e.widgetName;return uniweb.getWidget(t,n,r)}},{key:"changeLanguage",value:function(e){var t,n=this;if(this.getLanguage()===e||!this.activePage)return null;var r=this.getDomains(),i=this.activePage.getRoute(),a=(null===(t=this.activePage.getRoutes())||void 0===t?void 0:t[e])||"",o=this.activePage.options.pathname,u=Object.keys(r),l=u.find((function(t){var n;return(null===(n=r[t])||void 0===n?void 0:n.lang)===e})),c=u.find((function(e){var t;return(null===(t=r[e])||void 0===t?void 0:t.lang)===n.getLanguage()}));i.includes("[id]")&&(i=i.replace("[id]",""),a=a.replace("[id]",""));var s=o.replace(i,a),f="";if(l||c){var d=l||c;f="".concat(d.endsWith("/")?d:"".concat(d,"/")).concat(s)}else{var h=window.location.origin,p=window.location.href.replace(h,""),v=p.startsWith("/websites")?"/websites":p.startsWith("/sites")?"/sites":"";f="".concat(h).concat(v,"/").concat(e,"/").concat(this.getSiteId(),"/").concat(s)}window.location.replace(f)}},{key:"getRoutingComponents",value:function(){return uniweb.siteGlobals.routingComponents}},{key:"getComponent",value:function(e){return uniweb.siteGlobals.defaultComponents[e]||null}},{key:"getChildBlockRenderer",value:function(){return uniweb.siteGlobals.childBlockRenderer}},{key:"inProfileTypeSite",value:function(){var e=this.getDataSource().type;return!["docufolio/profile","folder/profile","list/profile"].includes(e)}},{key:"getRemoteLayout",value:function(){return this.remoteSite.Layout||null}},{key:"getRemoteProps",value:function(){return this.remoteSite.props||null}},{key:"getRemoteReportFns",value:function(){var e;return(null===(e=this.websiteData)||void 0===e?void 0:e.functions)||this.remoteSite.report||{}}},{key:"getTemplateEngine",value:function(){return new Rt(this.getSnippets(),this.getRemoteReportFns())}},{key:"getRootClassName",value:function(){return this.rootClassName}},{key:"setRootClassName",value:function(e){this.rootClassName=e}}],u=[{key:"fetch",value:(l=Ht(Gt().mark((function t(n){var r,i;return Gt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={action:"getWebsiteData",contentId:n},i=function(t){return new e({websiteData:t.data,initSite:{siteId:n}},uniweb.language())},t.abrupt("return",a.ZP.get("website.php",{params:r}).then(i));case 3:case"end":return t.stop()}}),t)}))),function(e){return l.apply(this,arguments)})},{key:"useCompleteWebsite",value:function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=t(null),o=Wt(a,2),u=o[0],l=o[1];return n((function(){new e({initSite:{siteId:r}},uniweb.language()).initialize(l)}),[r,i]),u&&u.isReady()?u:null}}],n&&Yt(t.prototype,n),u&&Yt(t,u),Object.defineProperty(t,"prototype",{writable:!1}),e}()},68713:(e,t,n)=>{"use strict";n.d(t,{Gx:()=>j,H3:()=>x,Ly:()=>U,Mn:()=>A,VI:()=>F,Z7:()=>M,_7:()=>E,b5:()=>B,c6:()=>P,qI:()=>N,uD:()=>L,uK:()=>T});var r=n(24474),i=n.n(r),a=n(43474),o=n.n(a),u=n(8053),l=["itemId","_attributes"],c=["searchText"],s=["head","sectionId"];function f(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=g(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){u=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(u)throw a}}}}function d(e){var t=function(e,t){if("object"!==v(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===v(t)?t:String(t)}function h(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function p(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,u=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){u=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(u)throw i}}return a}}(e,t)||g(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){if(e){if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=w({action:"getCardList",contentType:e},t);return O.get("ui/cards.php",{params:n}).then((function(e){return{data:e.data}})).catch((function(e){}))}function j(e,t){var n={},r=e.cards,i=void 0===r?[]:r,a=e.filters,o=e.navbar,u=e.options;a&&a.histograms&&(a.histograms.data||[]).forEach((function(e){var r=y(e,4),i=r[0],a=(r[1],r[2]),o=r[3]||t||a.replace("Filter by","No");n[a]||(n[a]={}),n[a][o]||(n[a][o]=[]),n[a][o].push(i)}));var l=o?_(o.data):null;return i.forEach((function(e){e.href&&delete e.href})),{cards:i,filters:n,navbar:l,hierarchicalCards:I(i,null==u?void 0:u.hierarchy)}}O.defaults.headers.patch["Content-Type"]="application/merge-patch+json";var S=function(e,t){var n={};return e.forEach((function(e){var r=y(e,4),i=r[0],a=(r[1],r[2]),o=r[3];n[a]||(n[a]={});var u=o||t||a.replace("Filter by","No");"object"===v(u)&&(u=u.title||u.name||Object.values(u)[0]),n[a][u]||(n[a][u]=[]),n[a][u].push(i)})),{filters:n}},_=function(e){var t=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=t.active,i=void 0!==r&&r,a=t.children,o=void 0===a?[]:a,u=t.href,l=t.id,c=t.opened,s=void 0!==c&&c,f=t.value,d=[].concat(p(n),[l]),h={active:i,link:u,name:l,open:s,label:f,subItems:[],itemPath:d};return o.forEach((function(t){h.subItems.push(e(t,d))})),h},n={title:"",items:[]};return e.forEach((function(e){"label"in e?n.title=e.label:n.items.push(t(e))})),n.activeItems=function e(t){var n=[];return t.length&&t.forEach((function(t){var r=t.active,i=t.subItems;r&&(n.push(t),n.push.apply(n,p(e(i))))})),n}(n.items),n},x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.label,r=e.name,i=e.fields,a=e.section_id,o=e.value,u=[],c=[],s=t.histograms;o.forEach((function(e){var n=e.itemId,r=e._attributes,i=h(e,l),a=!0;if(Object.values(i).forEach((function(e){"profile"===e.type&&(e.value||(a=!1))})),a){var o={itemId:n};r&&(o._attributes={},Object.keys(r).forEach((function(e){o._attributes[e]=Object.values(null==r?void 0:r[e])[0]})));for(var f=0,d=Object.entries(i);f1&&void 0!==arguments[1]?arguments[1]:"",r=null;return t.length&&t.forEach((function(t){var i,a=t.contentId,o=t.subCards;n&&a==n&&(r=t),null!=o&&o.length&&(r=null!==(i=r)&&void 0!==i?i:e(o,n))})),r},A=function(e,t,n){var r,i,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null!==(r=t)&&void 0!==r||(t={}),null!==(i=n)&&void 0!==i||(n={}),!Object.keys(n).length)return t;var u=o()(t),l=L(e,t,n,a);Object.values(u).forEach((function(e){Object.keys(e).forEach((function(t){var n=[];e[t].forEach((function(e){-1!==(null==l?void 0:l.findIndex((function(t){return t.contentId===e})))&&n.push(e)})),e[t]=n}))}));var c={};return Object.keys(n).forEach((function(r){if("searchText"!==r){var i=n,u=(i[r],h(i,[r].map(d))),l=L(e,t,u,a),s=o()(t);Object.values(s).forEach((function(e){Object.keys(e).forEach((function(t){var n=[];e[t].forEach((function(e){-1!==(null==l?void 0:l.findIndex((function(t){return t.contentId===e})))&&n.push(e)})),e[t]=n}))})),c[r]=s}})),Object.keys(u).forEach((function(e){c[e]&&(u[e]=c[e][e])})),u},L=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=!1;if(n&&Object.values(n).forEach((function(e){e&&(i=!0)})),null!=e&&e.length&&i){var a=r?T(e):e,o=n.searchText,u=h(n,c),l=[];return Object.entries(u).forEach((function(e){var n,r=y(e,2),i=r[0],a=r[1];l.push.apply(l,p((null===(n=t[i])||void 0===n?void 0:n[a])||[]))})),a.filter((function(e){return!(l.length&&!l.includes(e.contentId)||o&&!e.searchText.toLowerCase().includes(o.toLowerCase()))}))}return e},T=function e(t){var n=o()(t),r=[];return n.length&&n.forEach((function(t){var n=t.subCards;r.push(t),t.hasOwnProperty("depth")&&(t.depth=0),null!=n&&n.length&&(r=[].concat(p(r),p(e(n))),delete t.subCards,delete t.open)})),r},C=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=function(e){if("string"!=typeof e)return e;var t=[];return e.split(".").forEach((function(e){e.split(/\[([^}]+)\]/g).forEach((function(e){e.length>0&&t.push(e)}))})),t};t=r(t);for(var i=e,a=0;a1&&void 0!==arguments[1]?arguments[1]:"profile",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return O.get("profiles.php",{params:{action:"getCardProfiles",contentType:e,viewType:t,filter:n}}).then((function(n){var i=n.data,a=i.cards,o=i.filters,u=D(a,r,e,t);return{cards:u.parsedCards,hierarchicalCards:u.parseHierarchicalCards,filters:o}}))},F=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"profile",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return O.get("profiles.php",{params:{action:"getProfileFieldOptionsByName",contentType:e,viewType:t,sectionName:n,fieldName:r}}).then((function(e){var t=e.data,n=t.options,r=t.sectionId,i=t.fieldId,a=n.cards,o=n.filters,u=a[0],l=u.contentType,c=u.viewType,s=D(a,"",l,void 0===c?"profile":c);return{cards:s.parsedCards,hierarchicalCards:s.parseHierarchicalCards,filters:o,sectionId:r,fieldId:i}}))},M=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"profile",n=arguments.length>2?arguments[2]:void 0;return O.get("profiles.php",{params:{action:"getProfileFieldOptions",contentType:e,viewType:t,fieldInfo:JSON.stringify(n)}}).then((function(n){var r=n.data,i=r.cards,a=r.filters,o=D(i,"",e,t);return{cards:o.parsedCards,hierarchicalCards:o.parseHierarchicalCards,filters:a}}))},R=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";t.length&&t.forEach((function(t){var r=t.subCards,i=t.title,a=n?"".concat(n,"/").concat(i):i;t.itemPath=a,e(r,a)}))},B=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"a-z";t.sort((function(e,t){var r=e.title.toLowerCase(),i=t.title.toLowerCase();return"a-z"===n?r.localeCompare(i):i.localeCompare(r)})),t.forEach((function(t){var r;null!==(r=t.subCards)&&void 0!==r&&r.length&&e(t.subCards,n)}))},U=function(e,t){for(var n=e.map((function(e){return{card:e,path:[]}}));n.length>0;){var r=n.pop(),i=r.card,a=r.path;if(i.contentId===t)return i.subCards&&i.subCards.length>0?[].concat(p(a),[i.contentId]):a;if(i.subCards&&i.subCards.length>0){var o,u=f(i.subCards);try{for(u.s();!(o=u.n()).done;){var l=o.value;n.push({card:l,path:[].concat(p(a),[i.contentId])})}}catch(e){u.e(e)}finally{u.f()}}}return[]}},8053:(e,t,n)=>{"use strict";n.d(t,{Hm:()=>be,B3:()=>J,ZP:()=>_,ge:()=>z,dy:()=>we,Yk:()=>Q,kd:()=>X,PR:()=>Y,J0:()=>F,V2:()=>ve,Ai:()=>C,dr:()=>$,Ey:()=>ge,nl:()=>H,OB:()=>ye,CO:()=>N,eH:()=>ke,D0:()=>se,uZ:()=>fe,pe:()=>ce,cp:()=>le,pm:()=>K,lP:()=>D,zM:()=>q,uL:()=>R,b7:()=>ne,mF:()=>Z,NC:()=>he,Fv:()=>de,a5:()=>me,Zd:()=>ae,HN:()=>a.HN,WD:()=>oe,jk:()=>ue,M8:()=>ie,jt:()=>x,j0:()=>A,FU:()=>G,fi:()=>te,xO:()=>pe,QI:()=>W,Cp:()=>ee});var r=n(24474),i=n.n(r),a=n(16498),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return e&&(e=e.filter(Boolean)).length?(e=e.map((function(e){return e.trim()}))).join(t):""},u=["contentId","head","sectionId","itemId"],l=["_banner","_avatar"],c=["_banner","_avatar"],s=["targetProfile"];function f(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function d(){d=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,i){var a=t&&t.prototype instanceof h?t:h,o=Object.create(a.prototype),u=new x(i||[]);return r(o,"_invoke",{value:P(e,n,u)}),o}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f={};function h(){}function p(){}function v(){}var y={};l(y,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(I([])));b&&b!==t&&n.call(b,a)&&(y=b);var m=v.prototype=h.prototype=Object.create(y);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function i(r,a,o,u){var l=s(e[r],e,a);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==O(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,o,u)}),(function(e){i("throw",e,o,u)})):t.resolve(f).then((function(e){c.value=e,o(c)}),(function(e){return i("throw",e,o,u)}))}u(l.arg)}var a;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return a=a?a.then(r,r):r()}})}function P(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return{value:void 0,done:!0}}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var u=j(o,n);if(u){if(u===f)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function j(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function I(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;_(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:I(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function h(e,t,n,r,i,a,o){try{var u=e[a](o),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,i)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){h(a,r,i,o,u,"next",e)}function u(e){h(a,r,i,o,u,"throw",e)}o(void 0)}))}}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,u=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){u=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(u)throw i}}return a}}(e,t)||w(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n3&&void 0!==arguments[3]?arguments[3]:"",a=i||"".concat(t);for(var o in n[t])"object"===O(n[t][o])?e(o,n[t],r,"".concat(a,"[").concat(o,"]")):r.append("".concat(a,"[").concat(o,"]"),n[t][o])},E=function(e){var t=new URLSearchParams;return Object.keys(e).forEach((function(n){Array.isArray(e[n])?e[n].forEach((function(r){Array.isArray(r)?console.error("Unhandled case when post request body has array of array"):"object"==O(r)?I(n,e,t,n):t.append("".concat(n,"[]"),r)})):"object"==O(e[n])?I(n,e,t):t.append(n,e[n])})),t};function A(e,t){return x.post(e,E(t))}function L(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"profile",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a={action:"display",editable:n,contentType:e,contentId:isNaN(t)?t:parseInt(t),viewType:r,withFormat:!0};return i&&(a.profileLang=i),S.get("profiles.php",{params:a}).then((function(e){return{data:e.data}})).catch((function(n){return console.warn("Cannot get the profile: "+"".concat(e," ").concat(t)),window.uniweb.onErrorResponse(n),{data:{}}}))}var T=function(e,t){var n={action:"getContentInfo",contentType:e,contentId:isNaN(t)?t:parseInt(t)};return S.get("profiles.php",{params:n})};function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"members",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"profile",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],u=L(e,t,r,i);return u.then((function(e){if(e){var t=e.data,r=t.sections,i=t.format,u=t.contentInfo;return(0,a.HN)({sections:r,format:i,contentInfo:u},n,o)}}))}function D(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"profile";return L(e,t,n,r).then((function(e){return e.data}))}function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"members",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"profile",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",u={skip:"all",keep:Array.isArray(n)?m(n):[n],ignoreEmpty:!0},l=L(e,t,!1,i,o);return l.then((function(e){if(e){var t=e.data,n=t.sections,i=t.format,o=t.contentInfo;return(0,a.HN)({sections:n,format:i,contentInfo:o},u,r)}}))}function F(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"profile",i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5?arguments[5]:void 0;return N(e,n,t,i,r,a).then((function(e){var t,n,r,i=e[0],a=i.section_id,o=i.value;if(null!==(t=o[0])&&void 0!==t&&t._attributes){var u=o[0]._attributes,l=u.banner,c=u.avatar;n=l?l[Object.keys(l)[0]]:"",r=c?c[Object.keys(c)[0]]:""}return g(g({section_id:a},o[0]),{},{_banner:n,_avatar:r})}))}var M=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a={action:"getMultiFieldEditOptions",contentType:n,viewType:r};i&&(a.contentId=i);var o={},u=e.map((function(e){return Array.isArray(e)?e[0]:e}));Object.keys(t).forEach((function(e){var n=t[e],r=n.field_id,i=n.subtype_id,a=n.subtype,l=n.type;u.includes(i)&&(o[i]={field_id:r,subtype:a,type:l})}));var l=e.map((function(e){var t=Array.isArray(e)?e[0]:e;return o[t].field_id}));return l.length?S.get("profiles.php",{params:g(g({},a),{},{fieldIds:l})}).then((function(t){return t.data.map((function(t,n){var r=Array.isArray(e[n])?e[n][0]:e[n];return{subtype:o[r].subtype,type:o[r].type,options:t}}))})):{}},R=function(e,t){var n={action:"subtypeOptions",contentType:t},r=e.map((function(e){var t;return t=Array.isArray(e)?g(g({},n),{},{subtypeId:e[0]}):g(g({},n),{},{subtypeId:e}),S.get("profiles.php",{params:t})}));return Promise.all(r).then((function(e){return e.map((function(e){return e.data}))}))},B=function(e){var t=e.map((function(e){var t={action:"getCardList",contentType:"generic",viewType:e};return S.get("ui/cards.php",{params:t})}));return Promise.all(t).then((function(e){return e.map((function(e){return e.data}))}))};function U(e){var t=e.fields,n=e.subsections,r=g({},t);return n&&Object.values(n).forEach((function(e){r=g(g({},r),U(e))})),r}function G(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=e.sections,u=e.format,l=e.contentInfo,c=null===(r=(0,a.HN)({sections:o,format:u,contentInfo:l},!1,!0))||void 0===r?void 0:r[0],s=uniweb.activeUserId();if(c){var f=c.cardFileNames,d=c.subtypeIds,h=(c.fields,U(c)),p=s?M(d,h,t,n,i):R(d,t);return Promise.all([p,B(f)]).then((function(e){var t={},n={},r=e[0],i=e[1];return d.forEach((function(e,n){var i,o=r[n];if(s){var u=o.subtype,l=o.options,c=o.type;i="profile"===c&&l?u?l.map((function(e){return(0,a.ZZ)(c,u,e)})).filter(Boolean):ue(l):l}else i=o;Array.isArray(e)?t[e[0]]=i:t[e]=i})),f.forEach((function(e,t){n[e]=i[t]})),{section:c,lovOptions:t,stringCards:n,format:u}}))}console.log("invalid parsed profile item data",c)}function $(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"profile";return S.get("profiles.php",{params:{action:"getCreationSchema",contentType:e,viewType:t}}).then((function(n){return G(n.data,e,t)}))}function H(e,t,n,r,i,a,o){var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"",l={action:"edit",editable:!0,contentType:e,contentId:t,viewType:n,section:r,itemId:i,withFormat:!0};return u&&(l.templateId=u),S.get("profiles.php",{params:l}).then((function(r){return G(r.data,e,n,t)}))}function W(e,t,n,r,i,a,o,u){var l=new FormData;return"0"===i||0===i?l.append("action","insert"):l.append("action","update"),l.append("contentType",e),l.append("contentId",t),l.append("viewType",n),l.append("sectionId",r),l.append("itemId",i),a&&l.append("parentItemId",a),o&&l.append("parentFieldId",o),u.forEach((function(e){for(var t=0,n=Object.entries(e);t1&&void 0!==arguments[1]?arguments[1]:"",r=[];return t.forEach((function(t){var i=t.name,a=t.has_fields,o=t.subsections,u=void 0===o?[]:o,l=n?"".concat(n,"/").concat(i):i;r.push(l),a&&"0"!==a||(r=[].concat(m(r),m(e(Object.values(u),l))))})),r};function q(e){return V(e)}function J(e,t,n){return T(e,t).then((function(e){var t=e.data,r=t.is_owner,i=uniweb.checkUserPermission(n,t);return r||i&&uniweb.activeUserId()}))}function Z(e,t){return T(e,t).then((function(e){return e.data.is_owner}))}function K(e,t){return new URLSearchParams(e).get(t)||""}function Y(e){var t=K(e,"item"),n=t?t.split(","):["",""];return{sectionId:n[0],itemId:n[1],parentItemId:n[2],parentFieldId:n[3]}}function Q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i={action:"display",editable:n,contentType:"members",contentId:e,viewType:"cv",withFormat:!0};r&&(i.templateId=r);var o=S.get("profiles.php",{params:i}).then((function(e){return{data:(null==e?void 0:e.data)||{}}})).catch((function(e){}));return o.then((function(e){var n=(null==e?void 0:e.data)||{},r=n.sections,i=n.format,o=n.contentInfo,u=n.validation;return uniweb.setContentFormat("members","cv",i),{sections:(0,a.HN)({sections:r,format:i,contentInfo:o},t),contentInfo:o,format:i,validation:u}}))}function X(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t={action:"getReportsAndTemplates",contentType:"members",viewType:"cv"};return e&&(t.section=e),S.get("schema.php",{params:t}).then((function(e){return{data:e.data}})).catch((function(e){return null}))}function ee(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};Object.keys(t).forEach((function(e){var r=t[e].file;n[e]={name:r.name,type:r.type}}));var r=g(g({},e),{},{action:"uploadProfileAssets",fields:JSON.stringify(n)});return A("file_loader.php",r).then((function(e){var n=e.data;return Promise.all(Object.keys(n).map(function(){var e=p(d().mark((function e(r){var i,a,o,u,l,c,s,f;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=n[r],a=i.url,o=i.fields,u={identifier:"".concat(null==o?void 0:o["x-amz-meta-identifier"],"/").concat(null==o?void 0:o["x-amz-meta-filename"])},l=new FormData,Object.keys(o).forEach((function(e){l.append(e,o[e])})),c=t[r],s=c.file,f=c.fieldValue,l.append("file",s),e.abrupt("return",fetch(a,{method:"POST",body:l}).then((function(e){return e.ok?b({},r,u):{error:b({},r,f)}})).catch((function(e){return{error:b({},r,f)}})));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())).then((function(e){return e}))}))}var te=function(e){var t=e.contentType,n=e.contentId,r=e.viewType,i=e.sectionId,a=e.itemId;return x.post("profiles.php",E({action:"setPrimaryItem",contentType:t,contentId:n,viewType:r,"data[sectionId]":i,"data[itemId]":a}))},ne=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=ce(t,n),a=null==i?void 0:i.titleFieldName;return a&&!Array.isArray(a)&&(a=[a]),a.map((function(t){var n=t.split("."),i=n[n.length-1];return he(null==e?void 0:e[i],"",r)})).join(" ")},re=function(e,t){var n=t.name,r=t.type,i=t.subtype;if(null==e||!e[n])return null;if("systable"===r)return null==e?void 0:e[n][1];if("address"===r){var a,o,u=null!==(a=null==e?void 0:e[n])&&void 0!==a?a:"";return null===(o=u=u?"string"==typeof u?JSON.parse(u):u:{})||void 0===o?void 0:o.formatted_address}if("profile"!==r)return null==e?void 0:e[n];var l,c=null==e?void 0:e[n][1],s=ce(i.split("/")[0],i.split("/")[1]).titleFieldName;return"string"==typeof c&&(c=JSON.parse(c)),"string"==typeof s?null===(l=c)||void 0===l?void 0:l[s]:Array.isArray(s)?s.map((function(e){var t,n=e.split("."),r=n[n.length-1];return null===(t=c)||void 0===t?void 0:t[r]})).join(" "):void 0},ie=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"profile",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=ce(t,n),a=null==i?void 0:i.titleFieldName,o=(null==i?void 0:i.captionFieldName)||"";a&&!Array.isArray(a)&&(a=[a]),o&&!Array.isArray(o)&&(o=[o]);var l=28;return e.length?A("profiles.php",{action:"getFieldsInSection",sectionId:r,contentType:t,viewType:n}).then((function(t){var n=t.data,r=[],i=[],c=0;Object.keys(n).forEach((function(e){var t=n[e],u=t.name,s=t.type,f=t.subtype,d=t.label,h=t.constraints;if(h=h?JSON.parse(h):{},a.includes(u))r.push({name:u,label:d,type:s,subtype:f,width:"".concat(l/a.length,"%"),highlight:!0,primary:!0});else if(o&&o.includes(u)||"systable"===s||"string"===s&&h.select){c++;var p={name:u,label:d,type:s,subtype:f,width:"".concat(100-l)};("systable"===s||"string"===s&&h.select)&&(p.filterable=!0),o.includes(u)?(p.secondary=!0,i.unshift(p)):i.push(p)}}));var s=[].concat(r,m(i.map((function(e){return g(g({},e),{},{width:"".concat((100-l)/c,"%")})})))),d=e.map((function(e){var t=e.contentId,n=e.head,r=e.sectionId,i=e.itemId,a=f(e,u),o=n&&"string"==typeof n?JSON.parse(n):n||{},l={contentId:t,sectionId:r,itemId:i};s.forEach((function(e){var t=e.name,n=re(o,e);l[t]=n}));var c=o._banner,d=o._avatar;return c&&(l.banner=c),d&&(l.avatarVersion=d),g(g(g({},l),a),{},{head:o})}));return{filteredFields:s,filteredProfiles:d,titleFieldName:a,captionFieldName:o}})):Promise.resolve({filteredFields:[],filteredProfiles:[],titleFieldName:a,captionFieldName:o})},ae=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"profile",r=ce(t,n);return e.map((function(e){var i=e.contentId,a=e.head,u=e.ownerId,c=a?JSON.parse(a):{},s=c._banner,d=void 0===s?"":s,h=c._avatar,p=void 0===h?"":h,y=f(c,l),g={contentId:i,ownerId:u,head:{}};if("members"===t&&"profile"===n){var b,m;g.title=o([null==y?void 0:y.first_name,null==y?void 0:y.last_name]),g.subtitle=o([null==y||null===(b=y.position_title)||void 0===b?void 0:b[1],null==y||null===(m=y.academic_unit)||void 0===m?void 0:m[1]],", ")}else{var w=null==r?void 0:r.titleFieldName,k=null==r?void 0:r.captionFieldName,P=y[w],j=y[k];P=Array.isArray(P)?P[1]:P,(j=Array.isArray(j)?j[1]:j)&&"object"===O(j)&&(j=[w]in j?j[w]:Object.values(j)[0]),g.title=P,g.subtitle=j}return Object.entries(y).forEach((function(e){var t=v(e,2),n=t[0],r=t[1];Array.isArray(r)?"string"==typeof r[1]?g[n]=r[1]:O(r[1]):g[n]=r})),r.hasBanner&&(g.banner=d),r.hasAvatar&&(g.avatar=p),g}))},oe=function(e){var t=v(e,7),n=t[0],r=t[1],i=t[4],a=void 0===i?"":i,u=t[6],l=void 0===u?{}:u,c=(null==l?void 0:l._subtype)||"",s=v(c.split("/"),2),f=s[0],d=s[1],h=void 0===d?"profile":d;if("profile"===h&&r){var p=ce(f,h),y=he(null==p?void 0:p.label),g=JSON.parse(r),b={contentId:n,head:g,lastEditTime:a};if("members"===f&&"profile"===h){var m,w;b.title=o([null==g?void 0:g.first_name,null==g?void 0:g.last_name]),b.subtitle=o([null==g||null===(m=g.position_title)||void 0===m?void 0:m[1],null==g||null===(w=g.academic_unit)||void 0===w?void 0:w[1]],", ")}else{var k=null==p?void 0:p.titleFieldName,P=null==p?void 0:p.captionFieldName,j=g[k],S=g[P];j=Array.isArray(j)?j[1]:j,(S=Array.isArray(S)?S[1]:S)&&"object"===O(S)&&(S=[k]in S?S[k]:Object.values(S)[0]),b.title=j,b.subtitle=S}return[b,c,y]}return null},ue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r={};e.forEach((function(e){var t=oe(e);if(t){var n=v(t,3),i=n[0],a=n[1],o=n[2];null!=r&&r[a]||(r[a]={label:o,data:[]}),r[a].data.push(i)}}));var i={};return null!=t&&t.length?t.forEach((function(e){null!=r&&r[e]&&(i[e]=null==r?void 0:r[e])})):i=r,null!=n&&n.length&&n.forEach((function(e){var t=e.type,n=e.id;t in i&&n&&(i[t].data=i[t].data.filter((function(e){return e.contentId!==n})))})),i},le=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[],l=ce(e,t);return S.get("profiles.php",{params:{action:"getProfiles",contentType:e,viewType:t,filter:n,orderBy:i,profileLang:a}}).then((function(n){return n.data.map((function(n){var i=n.contentId,a=n.head,s=n.ownerId,d=n.handle;if(!a)return null;var h=a?JSON.parse(a):{},p=h._banner,y=void 0===p?"":p,g=h._avatar,b=void 0===g?"":g,m=f(h,c),w={contentId:i,ownerId:s,handle:d,head:{},rawHead:h};if(u.forEach((function(e){w.head[e]=null==h?void 0:h[e]})),r)if("members"===e&&"profile"===t){var k,P;w.title=o([null==m?void 0:m.first_name,null==m?void 0:m.last_name]),w.subtitle=o([null==m||null===(k=m.position_title)||void 0===k?void 0:k[1],null==m||null===(P=m.academic_unit)||void 0===P?void 0:P[1]],", ")}else{var j=null==l?void 0:l.titleFieldName,S=null==l?void 0:l.captionFieldName,_=m[j],x=m[S];_=Array.isArray(_)?_[1]:_,(x=Array.isArray(x)?x[1]:x)&&"object"===O(x)&&(x=[j]in x?x[j]:Object.values(x)[0]),w.title=_,w.subtitle=x}return Object.entries(m).forEach((function(e){var t=v(e,2),n=t[0],r=t[1];Array.isArray(r)?"string"==typeof r[1]?w[n]=r[1]:O(r[1]):w[n]=r})),l.hasBanner&&(w.banner=y),l.hasAvatar&&(w.avatar=b),w})).filter(Boolean)}))},ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=uniweb.clientConfigs.menus,r="resources"===e?"equipment":e;if(r&&t)return n["".concat(r,"/").concat(t)];if(r){var i={};return Object.keys(n).forEach((function(e){e.startsWith("".concat(r,"/"))&&(i[e]=n[e])})),i}return n},se=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"profile",n=uniweb.clientConfigs.menus;if(e&&t){var r,i=null===(r=n["".concat(e,"/").concat(t)])||void 0===r?void 0:r.tabs;if(null!=i&&i.length){var a=[];return i.forEach((function(e){var t=e.targetProfile,n=f(e,s),r={};if(t){var i=v(t.split("/"),2),o=i[0],u=i[1],l=ce(o,u).filterableFieldNames;null!=l&&l.length&&l.forEach((function(e){var t=e.name,n=e.label,i=e.byProfile,a=he(n);if(i){var o=v(i.split("/"),2),u=o[0],l=o[1],c=ce(u,l).titleFieldName;r[a]=[t,1,c]}else r[a]=t}))}a.push(g(g({},n),{},{histograms:r}))})),a}}return[]},fe=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" ";e&&!Array.isArray(e)&&(e=[e]);var i=e.map((function(e){var n,i=e.split("."),a=i[i.length-1],o=(null==t?void 0:t[a])||"";return Array.isArray(o)&&(o=null===(n=o)||void 0===n?void 0:n[1]),"string"==typeof o&&/^\{.*\}$/g.test(o)&&(o=JSON.parse(o)),"object"!==O(o)||Array.isArray(o)||!("en"in o)&&!("fr"in o)?o:he(o,he(o,"",uniweb.language()),r)}));return n?i.join(n):(null==i?void 0:i[0])||""},a=ce(e,t),o=a.titleFieldName,u=a.captionFieldName,l=a.captionGlue,c=void 0===l?null:l,s=i(o,n),f=u?i(u,n,c):"";return{titleField:s,captionField:f}};function de(e){return e.trim().replace(/\s|'/g,"-").normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function he(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=a||uniweb.language(),l=window.uniweb?null===(t=window.uniweb)||void 0===t||null===(n=t.config)||void 0===n||null===(r=n.languages())||void 0===r?void 0:r[0]:"en";if("object"===O(e)&&!Array.isArray(e))return o?(null==e?void 0:e[u])||(null==e?void 0:e[l])||i:(null==e?void 0:e[u])||i;if("string"==typeof e)try{var c=JSON.parse(e);return"object"===O(c)?o?(null==c?void 0:c[u])||(null==c?void 0:c[l])||i:(null==c?void 0:c[u])||i:c}catch(t){return e}return i}function pe(){var e,t,n=location.protocol+"//"+location.host;return!uniweb.activeUserId()||n===(null===(e=uniweb.config.data)||void 0===e||null===(t=e.domainsInfo)||void 0===t?void 0:t.publicDomain)}function ve(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r="profiles.php/get/list/profile/".concat(e);t&&(r+="?profileLang=".concat(t));var i=[];return S.get(r).then((function(e){var t=e.data,r=t.search_queries,a=void 0===r?[]:r,o=t.selected_items,u=void 0===o?[]:o,l={},c=a.map((function(e){var t=e.filter,n=e.profile_type,r=v(n.split("/"),2),i={action:"getProfiles",contentType:r[0],viewType:r[1]};return t&&(i.filter={sql:JSON.parse(t)}),S.get("profiles.php",{params:i}).then((function(e){return e.data.map((function(e){return g(g({},e),{},{profile_type:n})}))}))}));u.forEach((function(e){var t=e.profile_type,n=e.profile_id;l[t]||(l[t]=[]),l[t].push(n)}));var s=Object.keys(l),f=[].concat(m(c),m(s.map((function(e){var t=l[e],n=v(e.split("/"),2),r=n[0],i=n[1];return S.get("profiles.php",{params:{action:"getProfiles",contentType:r,viewType:i,filter:{sql:["IN","content_id","(".concat(t.join(", "),")")]}}}).then((function(t){return t.data.map((function(t){return g(g({},t),{},{profile_type:e})}))}))}))));return Promise.all(f).then((function(e){if(e.forEach((function(e){i=[].concat(m(i),m(e))})),n&&Object.keys(n).length){var t=[],r=[];i.forEach((function(e){Object.keys(n).includes(e.profile_type)?r.push(e):t.push(e)}));var a={};r.forEach((function(e){var t=e.profile_type;a[t]?a[t].push(e.contentId):a[t]=[e.contentId]}));var o=Object.keys(a).map((function(e){var t=v(e.split("/"),2),r=t[0],i=t[1];return S.get("profiles.php",{params:{action:"getProfilesSectionData",contentType:r,viewType:i,contentIds:a[e],section:n[e].section}})}));return Promise.all(o).then((function(e){return e.forEach((function(e,t){var i=e.data,o=Object.keys(a)[t],u=n[o].section;Object.entries(i).forEach((function(e){var t=v(e,2),n=t[0],i=t[1],a=r.find((function(e){return e.profile_type===o&&e.contentId===n}));a&&(a[u]=i)}))})),[].concat(t,r)}))}return i}))}))}var ye=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r="resources"===e?"equipment":e,i=ce(r,t);return n?null!=i&&i.label_plural?he(i.label_plural):"":null!=i&&i.label?he(i.label):""},ge=function(e,t){var n=ce("resources"===e?"equipment":e,t);return(null==n?void 0:n.icon)||null},be=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[],i=(0,a.HN)(e,t,n),o=e.sections;return o.forEach((function(e){e.items.length||r.push(e.name)})),[i,{empty:r}]};function me(e){var t,n,r,i=e.section_id,a=e.value;if(null!==(t=a=a[0])&&void 0!==t&&t._attributes){var o=a._attributes,u=o.banner,l=o.avatar;n=u?Object.values(u)[0]:"",r=l?Object.values(l)[0]:""}return g(g({section_id:i},a),{},{_banner:n,_avatar:r})}function we(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return e.filter((function(e){var i=e.name,a=e.sectionName;if(t.includes(i))return!1;if(n&&a&&r.length){var o=r.find((function(e){return e.name===a}));if(!o)return!1;if(!o.items.filter((function(e){var t,n,r=(null==e||null===(t=e._attributes)||void 0===t?void 0:t.status)||{};return"Pending"!==((null===(n=Object.values(r))||void 0===n?void 0:n[0])||"")})).length)return!1}return!0}))}function ke(e,t,n){var r=ce(e,t).tabs,i=(void 0===r?[]:r).find((function(e){return e.name===n}));return null==i?void 0:i.icon}},12012:(e,t,n)=>{"use strict";n.d(t,{cl:()=>l,dP:()=>c,eT:()=>u}),n(8053),n(18258);var r=["id"];function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t1){var u=t[t.length-2];o=null==i?void 0:i[u]}r.push(a(a({},null==i?void 0:i[n]),{},{parentInfo:o}))})),r},l=function(e,t){if(!t)return new Map;var n=t.split(","),r=new Map,i={};return e.forEach((function(e){i[null==e?void 0:e.id]=a({},e)})),n.forEach((function(e){var t=e.split("/");if(1===t.length){var n,o,u=!(null!=i&&null!==(n=i[e])&&void 0!==n&&null!==(o=n.sections)&&void 0!==o&&o.length);r.set(e,a(a({},null==i?void 0:i[e]),{},{child_items:new Map,isFolder:u}))}else for(var l=0,c=null;l=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,r),o=(null==i?void 0:i.child_items)||{};return Object.keys(o).length&&(i.child_items=e(o)),[n,a({id:n},i)]}));return new Map(n)}},16498:(e,t,n)=>{"use strict";n.d(t,{HN:()=>S,ZZ:()=>w});var r=n(8053),i=["@"];function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){return y(e)||f(e)||p(e)||h()}function s(e){return function(e){if(Array.isArray(e))return v(e)}(e)||f(e)||p(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function d(e,t){return y(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,u=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){u=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(u)throw i}}return a}}(e,t)||p(e,t)||h()}function h(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function p(e,t){if(e){if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0;if(null===n)return{value:null};var s={};switch(e){case"profile":if(!Array.isArray(n))return null;var f=d(n,7),h=f[0],p=f[1],v=f[2],y=f[3],g=f[5],b=f[6];if(!p)return null;var m=n[n.length-1],w=uniweb.config.data.profileTypes,k="string"==typeof p?JSON.parse(p):p,O=null;try{O=m&&"string"==typeof m?JSON.parse(m):m||null}catch(e){}if(!t&&null!=b&&b._subtype){var P,j=(0,r.WD)(n),S="";return{contentId:h,value:S=null===(P=j[0])||void 0===P?void 0:P.title,rawValue:["".concat(b._subtype,"|").concat(h),S,O,v,y]}}switch(t){case"members/expert":case"members/system":case"members/profile":var _=k.first_name,x=k.last_name,I=k.position_title,E=k.academic_unit,A=k._banner,L=void 0===A?"":A,T=k._avatar,C=void 0===T?"":T,D="".concat(_," ").concat(x),N=null!=E&&E[1]?(0,r.NC)(E[1],"",o):"",F=null!=I&&I[1]?(0,r.NC)(I[1],"",o):"";return{contentId:h,title:D,subtitle:[F,N].filter(Boolean).join(", "),value:D,rawValue:[h,D,O,v,y],version:C,bannerVersion:L,position:F,unit:N,head:k,handle:g};case"disciplines/profile":var M,R=k.name,B=k.parent_discipline,U=void 0===B?[]:B,G=k._banner,$=Object.values((null==a?void 0:a.status)||{});$=$.length?$[0]:"Connected";var H=(null==U?void 0:U[1])||"";return H&&"string"==typeof H&&(H=JSON.parse(H)),{contentId:h,title:R,subtitle:H&&(null===(M=H)||void 0===M?void 0:M.name)||"",value:"Connected"===$?R:"".concat(R," (").concat($,")"),rawValue:[h,R,O,v,y],version:G,parent_discipline_name:(null==U?void 0:U[1])||"",head:k,handle:g};case"project/profile":var W,z=k.project_name,V=k.category,q=k._banner;return{contentId:h,title:z,subtitle:V&&(null===(W=V[1])||void 0===W?void 0:W.title)||"",value:z,rawValue:[h,z,O,v,y],version:q||"",head:k,handle:g};default:var J,Z,K=t.split("/")[0],Y="".concat(K,"/profile"),Q=w[Y],X=null===(J=w[Y])||void 0===J?void 0:J.titleFieldName,ee=null===(Z=w[Y])||void 0===Z?void 0:Z.captionFieldName,te=k[X],ne=k[ee],re=k._banner,ie=void 0===re?"":re,ae=k._avatar,oe=void 0===ae?"":ae;te=Array.isArray(te)?te[1]:te,(ne=Array.isArray(ne)?ne[1]:ne)instanceof Object&&(ne=ne[X]);var ue=(0,r.NC)(te,"",o),le={contentId:h,title:ue,subtitle:(0,r.NC)(ne,"",o),value:ue,rawValue:[h,ue,O,v,y],head:k,handle:g};return null!=Q&&Q.hasBanner&&null!=Q&&Q.hasAvatar?(le.version=oe,le.bannerVersion=ie):null!=Q&&Q.hasBanner?le.version=ie:null!=Q&&Q.hasAvatar&&(le.version=oe),le}case"systable":case"lov":case"reftable":var ce=c(n),se=ce[0],fe=ce[1],de=void 0===fe?null:fe,he=ce.slice(2),pe={value_id:se};return de&&(pe.value=de),he&&(pe.other_values=he),pe;case"bilingual":return n.english&&(s.en=n.english),n.french&&(s.fr=n.french),{value:s};case"localstr":try{s=JSON.parse(n)}catch(e){var ve;l(ve={},uniweb.language(),n),l(ve,"@",{}),s=ve}var ye=s,ge=ye["@"],be=void 0===ge?{}:ge,me=u(ye,i);return{value:me,activeValue:me[uniweb.language()],activeLang:uniweb.language(),metadata:be};case"address":return{value:JSON.parse(n)};default:return{value:n}}},k=function e(t,n,r){for(var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5?arguments[5]:void 0,u={},l=0,c=Object.entries(t);l3&&void 0!==arguments[3]?arguments[3]:{skip:[],keep:[],ignoreEmpty:!1},a=arguments.length>4?arguments[4]:void 0,u=arguments.length>5?arguments[5]:void 0,l=t.name,c=t.sectionPath,s=t.label,f=t.max_item_count,h=t.section_id,p=t.fields,v=t.has_fields,y=t.disabled,w=t.items,j=t.description,S=t.constraints,_=void 0===S?{}:S,x=t.subsections,I=i.skip,E=i.keep,A=i.ignoreEmpty,L=[],T=[],C=[],D=!1;if(-1!==E.indexOf(l)&&(D=!0),"1"===y)return null;if(("all"===I||-1!==I.indexOf(l))&&!D)return null;if(O(p),P(x),"1"===v)w&&w.forEach((function(e){var t=e.id,r=e.values,i=e.attributes,a={};i&&(!0===i.primary?a._primaryItem=!0:n&&(a._attributes=g(i,n)));var l=o(o({itemId:t},k(p,r,x,null,null==a?void 0:a._attributes,u)),a);L.push(l)})),T=m(p,x),C=b(p,x);else if(null!=w&&w[0])for(var N=w[0],F=N.values,M=N.id,R=0,B=Object.entries(p);R2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=[],a={},o=e.sections,u=e.format,l=e.contentInfo;return a=t?!0===t?{skip:[],keep:[],ignoreEmpty:!0}:Object.assign({skip:[],keep:[],ignoreEmpty:!1},t):{skip:[],keep:[],ignoreEmpty:!1},o.forEach((function(e){var t=j(e,u,l,a,n,r);t&&i.push(t)})),i}},24474:(e,t,n)=>{e.exports=n(8469)},91058:(e,t,n)=>{"use strict";var r=n(67890),i=n(39165),a=n(67424),o=n(70768),u=n(52979),l=n(83893),c=n(47813),s=n(85770);e.exports=function(e){return new Promise((function(t,n){var f=e.data,d=e.headers,h=e.responseType;r.isFormData(f)&&delete d["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var v=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(v+":"+y)}var g=u(e.baseURL,e.url);function b(){if(p){var r="getAllResponseHeaders"in p?l(p.getAllResponseHeaders()):null,a={data:h&&"text"!==h&&"json"!==h?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:e,request:p};i(t,n,a),p=null}}if(p.open(e.method.toUpperCase(),o(g,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,"onloadend"in p?p.onloadend=b:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(b)},p.onabort=function(){p&&(n(s("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(s("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(s(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var m=(e.withCredentials||c(g))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;m&&(d[e.xsrfHeaderName]=m)}"setRequestHeader"in p&&r.forEach(d,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete d[t]:p.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),h&&"json"!==h&&(p.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){p&&(p.abort(),n(e),p=null)})),f||(f=null),p.send(f)}))}},8469:(e,t,n)=>{"use strict";var r=n(67890),i=n(12399),a=n(15363),o=n(24638);function u(e){var t=new a(e),n=i(a.prototype.request,t);return r.extend(n,a.prototype,t),r.extend(n,t),n}var l=u(n(39292));l.Axios=a,l.create=function(e){return u(o(l.defaults,e))},l.Cancel=n(33682),l.CancelToken=n(80876),l.isCancel=n(76921),l.all=function(e){return Promise.all(e)},l.spread=n(84857),l.isAxiosError=n(34093),e.exports=l,e.exports.default=l},33682:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},80876:(e,t,n)=>{"use strict";var r=n(33682);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},76921:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},15363:(e,t,n)=>{"use strict";var r=n(67890),i=n(70768),a=n(79282),o=n(22847),u=n(24638),l=n(23182),c=l.validators;function s(e){this.defaults=e,this.interceptors={request:new a,response:new a}}s.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=u(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&l.assertOptions(t,{silentJSONParsing:c.transitional(c.boolean,"1.0.0"),forcedJSONParsing:c.transitional(c.boolean,"1.0.0"),clarifyTimeoutError:c.transitional(c.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var i,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)})),!r){var s=[o,void 0];for(Array.prototype.unshift.apply(s,n),s=s.concat(a),i=Promise.resolve(e);s.length;)i=i.then(s.shift(),s.shift());return i}for(var f=e;n.length;){var d=n.shift(),h=n.shift();try{f=d(f)}catch(e){h(e);break}}try{i=o(f)}catch(e){return Promise.reject(e)}for(;a.length;)i=i.then(a.shift(),a.shift());return i},s.prototype.getUri=function(e){return e=u(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){s.prototype[e]=function(t,n){return this.request(u(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){s.prototype[e]=function(t,n,r){return this.request(u(r||{},{method:e,url:t,data:n}))}})),e.exports=s},79282:(e,t,n)=>{"use strict";var r=n(67890);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},52979:(e,t,n)=>{"use strict";var r=n(65634),i=n(62197);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},85770:(e,t,n)=>{"use strict";var r=n(21350);e.exports=function(e,t,n,i,a){var o=new Error(e);return r(o,t,n,i,a)}},22847:(e,t,n)=>{"use strict";var r=n(67890),i=n(27036),a=n(76921),o=n(39292);function u(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return u(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||o.adapter)(e).then((function(t){return u(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(u(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},21350:e=>{"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},24638:(e,t,n)=>{"use strict";var r=n(67890);e.exports=function(e,t){t=t||{};var n={},i=["url","method","data"],a=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],u=["validateStatus"];function l(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function c(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=l(void 0,e[i])):n[i]=l(e[i],t[i])}r.forEach(i,(function(e){r.isUndefined(t[e])||(n[e]=l(void 0,t[e]))})),r.forEach(a,c),r.forEach(o,(function(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=l(void 0,e[i])):n[i]=l(void 0,t[i])})),r.forEach(u,(function(r){r in t?n[r]=l(e[r],t[r]):r in e&&(n[r]=l(void 0,e[r]))}));var s=i.concat(a).concat(o).concat(u),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===s.indexOf(e)}));return r.forEach(f,c),n}},39165:(e,t,n)=>{"use strict";var r=n(85770);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},27036:(e,t,n)=>{"use strict";var r=n(67890),i=n(39292);e.exports=function(e,t,n){var a=this||i;return r.forEach(n,(function(n){e=n.call(a,e,t)})),e}},39292:(e,t,n)=>{"use strict";var r=n(67890),i=n(64703),a=n(21350),o={"Content-Type":"application/x-www-form-urlencoded"};function u(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(l=n(91058)),l),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(u(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(u(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(0,JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw a(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(o)})),e.exports=c},12399:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r{"use strict";var r=n(67890);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(r.isURLSearchParams(t))a=t.toString();else{var o=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),o.push(i(t)+"="+i(e))})))})),a=o.join("&")}if(a){var u=e.indexOf("#");-1!==u&&(e=e.slice(0,u)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},62197:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},67424:(e,t,n)=>{"use strict";var r=n(67890);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,a,o){var u=[];u.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),r.isString(i)&&u.push("path="+i),r.isString(a)&&u.push("domain="+a),!0===o&&u.push("secure"),document.cookie=u.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},65634:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},34093:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},47813:(e,t,n)=>{"use strict";var r=n(67890);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},64703:(e,t,n)=>{"use strict";var r=n(67890);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},83893:(e,t,n)=>{"use strict";var r=n(67890),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,a,o={};return e?(r.forEach(e.split("\n"),(function(e){if(a=e.indexOf(":"),t=r.trim(e.substr(0,a)).toLowerCase(),n=r.trim(e.substr(a+1)),t){if(o[t]&&i.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},84857:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},23182:(e,t,n)=>{"use strict";var r=n(35526),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={},o=r.version.split(".");function u(e,t){for(var n=t?t.split("."):o,r=e.split("."),i=0;i<3;i++){if(n[i]>r[i])return!0;if(n[i]0;){var a=r[i],o=t[a];if(o){var u=e[a],l=void 0===u||o(u,a,e);if(!0!==l)throw new TypeError("option "+a+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+a)}},validators:i}},67890:(e,t,n)=>{"use strict";var r=n(12399),i=Object.prototype.toString;function a(e){return"[object Array]"===i.call(e)}function o(e){return void 0===e}function u(e){return null!==e&&"object"==typeof e}function l(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===i.call(e)}function s(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n{var t=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var t,n,r;try{t=Map}catch(e){t=function(){}}try{n=Set}catch(e){n=function(){}}try{r=Promise}catch(e){r=function(){}}function i(a,u,l,c,s){"object"==typeof u&&(l=u.depth,c=u.prototype,s=u.includeNonEnumerable,u=u.circular);var f=[],d=[],h="undefined"!=typeof Buffer;return void 0===u&&(u=!0),void 0===l&&(l=1/0),function a(l,p){if(null===l)return null;if(0===p)return l;var v,y;if("object"!=typeof l)return l;if(e(l,t))v=new t;else if(e(l,n))v=new n;else if(e(l,r))v=new r((function(e,t){l.then((function(t){e(a(t,p-1))}),(function(e){t(a(e,p-1))}))}));else if(i.__isArray(l))v=[];else if(i.__isRegExp(l))v=new RegExp(l.source,o(l)),l.lastIndex&&(v.lastIndex=l.lastIndex);else if(i.__isDate(l))v=new Date(l.getTime());else{if(h&&Buffer.isBuffer(l))return v=Buffer.allocUnsafe?Buffer.allocUnsafe(l.length):new Buffer(l.length),l.copy(v),v;e(l,Error)?v=Object.create(l):void 0===c?(y=Object.getPrototypeOf(l),v=Object.create(y)):(v=Object.create(c),y=c)}if(u){var g=f.indexOf(l);if(-1!=g)return d[g];f.push(l),d.push(v)}for(var b in e(l,t)&&l.forEach((function(e,t){var n=a(t,p-1),r=a(e,p-1);v.set(n,r)})),e(l,n)&&l.forEach((function(e){var t=a(e,p-1);v.add(t)})),l){var m;y&&(m=Object.getOwnPropertyDescriptor(y,b)),m&&null==m.set||(v[b]=a(l[b],p-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(l);for(b=0;b=t?e:""+Array(t+1-r.length).join(n)+e},g={s:y,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+y(r,2,"0")+":"+y(i,2,"0")},m:function e(t,n){if(t.date()1)return e(o[0])}else{var u=t.name;m[u]=t,i=u}return!r&&i&&(b=i),i||!r&&b},O=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new j(n)},P=g;P.l=k,P.i=w,P.w=function(e,t){return O(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var j=function(){function v(e){this.$L=k(e.locale,null,!0),this.parse(e)}var y=v.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(P.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return P},y.isValid=function(){return!(this.$d.toString()===d)},y.isSame=function(e,t){var n=O(e);return this.startOf(t)<=n&&n<=this.endOf(t)},y.isAfter=function(e,t){return O(e)0,y<=v.r||!v.r){y<=1&&p>0&&(v=d[p-1]);var g=f[v.l];u&&(y=u(""+y)),c="string"==typeof g?g.replace("%d",y):g(y,r,v.l,s);break}}if(r)return c;var b=s?f.future:f.past;return"function"==typeof b?b(c):b.replace("%s",c)},r.to=function(e,t){return a(e,t,this,!0)},r.from=function(e,t){return a(e,t,this)};var o=function(e){return e.$u?n.utc():n()};r.toNow=function(e){return this.to(o(this),e)},r.fromNow=function(e){return this.from(o(this),e)}}}()},27012:function(e){e.exports=function(){"use strict";return function(e,t,n){n.updateLocale=function(e,t){var r=n.Ls[e];if(r)return(t?Object.keys(t):[]).forEach((function(e){r[e]=t[e]})),r}}}()},43314:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,a){var o=i.prototype;a.utc=function(e){return new i({date:e,utc:!0,args:arguments})},o.utc=function(t){var n=a(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},o.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var u=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),u.call(this,e)};var l=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var c=o.utcOffset;o.utcOffset=function(r,i){var a=this.$utils().u;if(a(r))return this.$u?0:a(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var i=(""+r[0]).match(n)||["-",0,0],a=i[0],o=60*+i[1]+ +i[2];return 0===o?0:"+"===a?o:-o}(r),null===r))return this;var o=Math.abs(r)<=16?60*r:r,u=this;if(i)return u.$offset=o,u.$u=0===r,u;if(0!==r){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(u=this.local().add(o+l,e)).$offset=o,u.$x.$localOffset=l}else u=this.utc();return u};var s=o.format;o.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return s.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var f=o.toDate;o.toDate=function(e){return"s"===e&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var d=o.diff;o.diff=function(e,t,n){if(e&&this.$u===e.$u)return d.call(this,e,t,n);var r=this.local(),i=a(e).local();return d.call(r,i,t,n)}}}()},14522:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=e||"";return t&&(a=r(e)),n&&(a=i(a)),a};var n=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function r(e){return e.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,(function(e,t,r){return t>0&&t+e.length!==r.length&&e.search(n)>-1&&":"!==r.charAt(t-2)&&("-"!==r.charAt(t+e.length)||"-"===r.charAt(t-1))&&r.charAt(t-1).search(/[^\s-]/)<0?e.toLowerCase():e.substr(1).search(/[A-Z]|\../)>-1?e:e.charAt(0).toUpperCase()+e.substr(1)}))}function i(e){return"string"==typeof(t=e)&&-1!==t.indexOf("@")?(console.warn("This arg looks like an email address, redacting."),"REDACTED (Potential Email Address)"):e;var t}},47756:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.GA4=void 0;var r=c(n(49253)),i=c(n(14522)),a=["eventCategory","eventAction","eventLabel","eventValue","hitType"],o=["title","location"],u=["page","hitType"],l=["action","category","label","value","nonInteraction","transport"];function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function d(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||v(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("Require GA_MEASUREMENT_ID");var r="string"==typeof e?[{trackingId:e}]:e;t._currentMeasurementId=r[0].trackingId;var i=n.gaOptions,a=n.gtagOptions,o=n.legacyDimensionMetric,u=void 0===o||o,l=n.nonce,c=n.testMode,s=void 0!==c&&c;if(t._testMode=s,s||t._loadGA(t._currentMeasurementId,l),t.isInitialized||(t._gtag("js",new Date),r.forEach((function(e){var n=t._appendCustomMap(p(p(p({send_page_view:!1},t._toGtagOptions(p(p({},i),e.gaOptions))),a),e.gtagOptions),u);t._gtag("config",e.trackingId,n)}))),t.isInitialized=!0,!s){var f=d(t._queueGtag);for(t._queueGtag=[],t._isQueuing=!1;f.length;){var h=f.shift();t._gtag.apply(t,d(h)),"get"===h[0]&&(t._isQueuing=!0)}}})),b(this,"set",(function(e){e?"object"===f(e)?(0===Object.keys(e).length&&console.warn("empty `fieldsObject` given to .set()"),t._gaCommand("set",e)):console.warn("Expected `fieldsObject` arg to be an Object"):console.warn("`fieldsObject` is required in .set()")})),b(this,"_gaCommandSendEvent",(function(e,n,r,i,a){t._gtag("event",n,p(p({event_category:e,event_label:r,value:i},a&&{non_interaction:a.nonInteraction}),t._toGtagOptions(a)))})),b(this,"_gaCommandSendEventParameters",(function(){for(var e=arguments.length,n=new Array(e),r=0;r1?n-1:0),i=1;i1&&void 0!==arguments[1])||arguments[1];if(!t)return e;e.custom_map||(e.custom_map={});for(var n=1;n<=200;n++)e.custom_map["dimension".concat(n)]||(e.custom_map["dimension".concat(n)]="dimension".concat(n)),e.custom_map["metric".concat(n)]||(e.custom_map["metric".concat(n)]="metric".concat(n));return e}},{key:"outboundLink",value:function(e,t){var n=e.label;if("function"==typeof t)if(n){var r={hitType:"event",eventCategory:"Outbound",eventAction:"Click",eventLabel:(0,i.default)(n)},a=!1,o=setTimeout((function(){a=!0,t()}),250);r.hitCallback=function(){clearTimeout(o),a||t()},this._gaCommand("send",r)}else console.warn("args.label is required in outboundLink()");else console.warn("hitCallback function is required")}}],n&&g(t.prototype,n),e}();t.GA4=m;var w=new m;t.default=w},49253:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.ZP=void 0;var i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var l=o?Object.getOwnPropertyDescriptor(e,u):null;l&&(l.get||l.set)?Object.defineProperty(i,u,l):i[u]=e[u]}return i.default=e,n&&n.set(e,i),i}(n(47756));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}i.GA4;var o=i.default;t.ZP=o},16700:(e,t,n)=>{"use strict";var r=new Error;e.exports=new Promise(((e,t)=>{if("undefined"!=typeof AppRemote)return e();n.l(window.uniweb.init.modules.AppRemote??"./remotes/app.js",(n=>{if("undefined"!=typeof AppRemote)return e();var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;r.message="Loading script failed.\n("+i+": "+a+")",r.name="ScriptExternalLoadError",r.type=i,r.request=a,t(r)}),"AppRemote")})).then((()=>AppRemote))},96790:(e,t,n)=>{"use strict";var r=new Error;e.exports=new Promise(((e,t)=>{if("undefined"!=typeof WebsiteRemote)return e();n.l(window.uniweb.init.modules.WebsiteRemote??"./remotes/website.js",(n=>{if("undefined"!=typeof WebsiteRemote)return e();var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;r.message="Loading script failed.\n("+i+": "+a+")",r.name="ScriptExternalLoadError",r.type=i,r.request=a,t(r)}),"WebsiteRemote")})).then((()=>WebsiteRemote))},35526:e=>{"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')}},u={};function l(e){var t=u[e];if(void 0!==t)return t.exports;var n=u[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,l),n.loaded=!0,n.exports}l.m=o,l.c=u,l.amdO={},l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,l.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);l.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var o=2&r&&n;"object"==typeof o&&!~e.indexOf(o);o=t(o))Object.getOwnPropertyNames(o).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,l.d(i,a),i},l.d=(e,t)=>{for(var n in t)l.o(t,n)&&!l.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},l.f={},l.e=e=>Promise.all(Object.keys(l.f).reduce(((t,n)=>(l.f[n](e,t),t)),[])),l.u=e=>(({4641:"site",7103:"spa",7770:"routes"}[e]||e)+"."+{7:"cb9846d47c6de10e6e96",32:"5d2409f67e00ba875685",36:"1bfd3407593c8bf05ddd",69:"a5df69820be36bfe0de7",105:"e28ff24b7e56d30b96c5",107:"0c5663cb60fdeaf18b0e",212:"a2adcd28135b1177bcb9",225:"2f451c8626ee6943152f",228:"a86609ef0761f285aa6f",251:"50b246f303fbe1022a5a",257:"a462c540144f930e79f9",272:"23c41009d8d4e032a0ba",287:"35ac53fc8395e9c7f8a1",308:"f884db03858ea313e9c4",359:"9134df0b8833dab98adc",409:"c15887e0225ab03b244d",444:"f4a104650d7417a81eda",445:"cbbb8c3fccb358bea62c",446:"337682d2705dc3b8b3b6",474:"1072fbdc4af7ac5d2049",511:"8fc9a3e2372ae8cfb33a",519:"54b9680ced9bc4838072",565:"46708786ec3faaed333e",569:"aa2d2e79002bd237b13f",637:"a8f2b15886f50b5c4793",640:"6741d0f6d2edb0ad0ef7",661:"71d4cd0b88041cb744c4",674:"055415a556cd6fe6072b",700:"f0444a2abf29f5d3d374",701:"fb5ec1fa31d33c0bb3c3",702:"5c8958f265752cf042d4",719:"5446c5d2c127878bce5d",726:"31a52bc6ee1118423b90",734:"a42c40e15d75dd0f2643",784:"32c8386107e497fc8622",785:"44290e7ee556e45ffefb",815:"b515b3192f8912c2e2aa",819:"f21958cbb447a61e7d7a",823:"c8314124b54cbc6829e1",828:"0d3506d80d35592c78d4",849:"b22c9a89733213661633",850:"2f629c94071768101b0d",859:"3a5be49e2f3bc0bafe2c",900:"9a1a409201966f09da90",914:"260321eff3b2e1b45336",977:"ee2e1967a993aeda0971",983:"dfa1b925273a5c16b0ea",992:"0d4a1a07e9fd0fb0d6d0",1026:"0da2ee728866f837cc56",1052:"705e13bff24392619384",1106:"3574ea67b45bc4e964d7",1129:"23cc4034cd7c529f6c62",1130:"4a46137dc06178fe9e95",1150:"50c0aa95bdf67a753007",1172:"07f0bcbd11b8ff6088b3",1193:"1f35e2d4f520ae85d863",1196:"9c33dc70795d87c0adb7",1248:"0bb6a3803c81d49fecf8",1257:"2f865a79c7a36994f0ef",1356:"5684ea7657c739b55001",1382:"0e362123efaebf34210f",1393:"d8118e4468a2f5a17978",1424:"a34fc3303b769cd382fd",1450:"63362d50ccdaac806ca0",1464:"0e3d782573ad2b083e94",1490:"42bd475c504b248494f3",1516:"c22a1bc9ef775b3ba22f",1521:"0855db7dd676169105e8",1523:"a9ffbfe636adbe99ec4f",1529:"6f4850966dc37f864e32",1531:"6872963589ee876f2e39",1533:"b1c1f7a0fc425a1767b5",1536:"82c5aaaf4c6cb34f8824",1562:"fc34aec7ff139c6a6898",1613:"92a44e1bfe48dc74f5ff",1621:"ff199c158b338be82491",1642:"dc9914e1f0480d68e42f",1664:"f9d513ac2b0fc3cf16b9",1683:"f9f169b473f56eb3a7be",1684:"8600768a13eb847a41e5",1700:"ae224651a9b76ed8991b",1734:"990a1731d864432be562",1749:"6dfea3b4e5d3157cd84e",1762:"6280d085797b50093149",1788:"e28977a9c3769464cf51",1794:"fefa5af0ff4f2d0a4eb3",1815:"51d8a7847701bd27bc0c",1820:"e079001f447131a0900a",1835:"c27b5bee9225ed990956",1857:"e52c0dbf7e0dd7e6d7cc",1871:"db5d9577066ea56818bb",1899:"e7649ac6d16ac424e3cd",1930:"20f32b4eb663c1982da5",1968:"159e23dc70eb7ab969df",1999:"22247057a14888689637",2011:"d0e4ded403d7767fbb05",2050:"a592f2b8b321cc02dbb3",2087:"2f7e08ab8bb079618003",2088:"025ae2c52382624af4ff",2094:"1f07b0160e29e0cd9dc8",2103:"e0a661fb108882ca0bb7",2117:"5b0b7ed514bfc53b619d",2126:"a418c55b67de13e14bcf",2140:"59555e77b6706ec165da",2153:"0d27db0db6e7d68206b1",2155:"5f4ce4bef5d38df178a2",2157:"1963a62b3fcfdf6908b1",2158:"c8714af93c69e736ea9a",2161:"bccd011c061be3f989d1",2196:"48cf7051dce5ea15dc94",2297:"a8b68495f7e174e2254e",2345:"155c12e9ce6bf83ba89f",2351:"22710dcab7e3a8e487b4",2374:"34a950c8920dd8d8cc9c",2408:"e3b84ba6c74cb3304bf8",2482:"6de33c7c903a9d47bf11",2516:"8df918fd1cb6a495ccd7",2571:"f5ef26535d013ebc547a",2596:"74a51cef91a5d5f4a4d5",2627:"fd24909f3a5c906a19be",2639:"f199f7e1a442cb6401e7",2669:"4b13d8a9f2da70d05ac3",2692:"8b04648f5a8a241fbd4e",2729:"cbde792b35f21877997c",2772:"62978c0493ce1775cb60",2802:"4177357e5ea377c224c1",2808:"fd7cf8813926b2f72a88",2826:"b31dc952c90dfb4e950d",2862:"4a89fdc4bb9d5469bc29",2889:"ecaef4b75a758e55cc9d",2910:"4fed347bc75c6d710692",2918:"af03107ad8b6c2b4f7ad",2953:"fe4082f20d57a922e4c0",2974:"73f1fc161b2e143d2ca4",2975:"e80fa3654cc7417a15d0",2976:"9836adc40610f51b94f8",2981:"d7b65517ef89e8772ff2",3006:"a3299046cbf6be991070",3022:"d410f760583a162ea861",3040:"6ef1b11ecccbfb28e927",3058:"e91d27558943836a31db",3062:"bea4ce3fe5ed3bd14cbc",3063:"c596dc3608ce6a37a2ba",3082:"4d19a4c31ffc24fd23de",3086:"11284b62ec71807aa240",3103:"d2919810317f4a321860",3114:"af0b90a6ffb6f6385e1f",3163:"cc5ce380b12c5516d4cd",3188:"5c64ec6dfff64b7789c2",3227:"4e61d506362a9a8f25f6",3235:"7e9216c686a20193de7a",3236:"65e6c81c7225d203b158",3238:"56b474020db615385142",3258:"18d0568483f1aae50c32",3272:"b74970e1c6a7cc089f0c",3280:"65b7caa02e0277164351",3309:"0a505c919fbae3408f29",3347:"47fcdcd943cf7a3e5e8c",3350:"501da769be7367d799c0",3396:"ee8c627aa1c510a0bebc",3411:"a30cbdeb1aee2f0d30db",3437:"04eed214c4fc1f3b8b79",3439:"9110b029822942174618",3475:"03490d2ebe78c05d2108",3484:"38c5cfe5e6bdc6b89f74",3490:"7e6da3d19e5171ff399b",3519:"738fdd60c20f44aed493",3532:"66b4083b6f19e92dc066",3535:"b81e27b9cdb1584b6016",3597:"869bcb017d8bba1c262d",3599:"5a4f06757ae91b7f76b6",3606:"17e76fa3089f05ac840b",3634:"10d2085ba46708214a61",3674:"96ac2b08a5ae399c1cc8",3683:"1f214a28a8d8b466f1d5",3694:"9bc31b05d52547032e81",3706:"2fe233b02b60346f2cdc",3733:"5da36a6062d3b8a900bd",3772:"6eeb18e846cf5e85a0ca",3778:"96ffea105f681f39f0f2",3781:"3f20ef4d9172e780a55b",3788:"17c7af1a407360014dee",3799:"5f1d1b78363d601af895",3818:"c6ff399dce8a08eb24fd",3865:"e4363925c3abd74fc6d6",3866:"1d8e6f24a3adee13e247",3883:"c336083a70fcd0205410",3900:"5808202cadb4662c822e",3921:"1a29c8b14bd419596c4f",3940:"82f5a7fc8197feaa0046",3941:"8080fa63295c4098cd11",3959:"0cb24948770ef2f5faa6",3995:"99f7c79077febaf6c960",3999:"c68293819df70e624da3",4002:"a1b35f45e2b11eec7eba",4008:"ab5433f32b06e5dae14a",4034:"f213d6aec0dbdc3046dc",4049:"4d9ff4013f9435f3715e",4076:"4921246888938c071b50",4090:"19f087fa97b067fd61c0",4091:"2267785c57eb2db4257e",4123:"0a43a01edb219ee9f105",4140:"3727f09c98a93df3d01c",4141:"c37fc88eee1f97f4d392",4170:"36218e27de0279f4f19a",4291:"c0f7ed26d92184ef0e84",4308:"1ea9433f1fd68245d7d4",4325:"c903117273998e1067c0",4358:"adf281b15abc2fa2228b",4366:"e8c29afe56a17aa061fa",4370:"75a9a1f2af90957f8a0d",4384:"da85c11e5e0f6f4c0d16",4394:"5b4afeeb59d49f897db2",4438:"59021a6ea5464e3fed51",4456:"59a4467ed9c6acb858d0",4473:"762121c092683ce173bb",4493:"d2df219d6561e7026502",4499:"7fadc14583b514dd5f29",4531:"854f5547348452124d01",4545:"7155a27d1b019f5463be",4560:"3192072a6eb4e724b56f",4575:"0c04dc100133baf32ffc",4641:"c0afaf3a13a0aa25ae12",4642:"91235e0e60057901edcb",4655:"95b9cdcd13e5c0cf3a88",4708:"14e8333b70d43231b26f",4719:"17cd54b26c9cfc4bb353",4771:"4ccc2928d3ffe1ae6a16",4790:"63f9d52804591b151891",4794:"3c40cbce2d59dd6b5f8f",4800:"950ed09c5e2a40193991",4819:"9fa2456e405070fb1b1b",4828:"12cf20c3eb330165ca93",4844:"eec6d6d39b464de71c1f",4914:"35ad89b4341406c6123f",4958:"f0011cea8ed57b571d56",4962:"76b019f1bc20035f9d67",4973:"c4a234709d55b2e85b35",5002:"2dd073b9bd7583652ccb",5073:"468b408bc383f99f2d74",5110:"2bc72cc87ab94117ec9e",5116:"0cabbd8fd715b8a75e47",5159:"8e0aa9ce61ac6d7be2e1",5174:"abd2d349dfcf4de5f3ea",5202:"b60bbdc5b00ae78e08e4",5222:"50dbaa917f832a8f7b64",5234:"cb1dcd94d44beadc68bd",5257:"5bc5c4ee8919fb127798",5262:"b24af25d164d0274d43d",5304:"9d8fd2bfd45b8faf6346",5308:"ff5886f6c2651b58b957",5315:"98df8716ba876071bef7",5316:"5b500b980c20c9a73dfa",5321:"fec01a03f10df3c9540f",5334:"d552993e87fb5b720e01",5372:"045301ea58da0b14e40d",5377:"f2a9fed7473d61e7501a",5428:"1935548544bb5c6c2734",5485:"1f38181e5c508007250c",5503:"e3e8c7671a1fdfd2e916",5512:"7787dab366debc781c84",5528:"5a5bdd1d6d6146e0fe27",5544:"63412075f41393889c69",5666:"f1064e5b235485ba3a5f",5668:"7ac3e901b5c1eb2b136a",5709:"c8d10b54184000ac0b21",5752:"b2b6bf2077a272fc5a2e",5754:"d25ff35a08a1fcd9bc3a",5771:"91ed40ce2f07c25b36bc",5784:"deecc2a94c59425a4808",5793:"2c6a2b0ff842c11c3736",5795:"17a26e855920386c50ae",5809:"e22802f5675ca8287637",5833:"e13bdc0c65e7d71fd627",5863:"e1917cb101686d377ef8",5893:"dbddc8deafab5c8fc3cf",5962:"b627c14f1f4d8887c206",6001:"a329a33888b7f138d889",6033:"a605811b9d8e34362cd9",6050:"5e5f8333a9455cf1370d",6052:"d683e5365362ce4082c4",6068:"f58768977ce63e539b08",6094:"6ac74e51bd43f88414be",6096:"fee9783c45b3f28d6196",6122:"0558af8d2bfc86fcd49e",6125:"8ffe94ee7493877a8016",6138:"494900ffeb6b4cf985fd",6139:"fa972fadc4359299164b",6158:"5137749faa8605267fb6",6179:"b7647bffbd9deda5e2c2",6180:"419cbb709d84db39aa01",6201:"353614b30393e20e2f3b",6202:"b20eae41aed1a224b579",6220:"340f70124cbc68f67a69",6259:"4e2a4b3297b77cdc7f91",6276:"087b0a49fd5cde61b6a3",6302:"4105d92ffbc5ebc6fc01",6313:"c7da3493fa10a3d9cbda",6344:"88e19d8d6c0fcd6d242a",6386:"2b1dee0ce731dedcb7b1",6428:"950da6fa82cc78eaaa92",6446:"b015a3cbe25af58fa80b",6454:"43a179784d28cddc12de",6475:"e584bc3b719b15a7943f",6493:"04a97378bf161ad0bb47",6514:"94d24b3bfd1d7f6b619d",6600:"e56934897f980c1e4305",6667:"b94cc9e887e99f2e8a8d",6685:"fd40bf803632a1ed17a5",6808:"fa497302f706615f9ddb",6835:"cf611e4ae5bcc23bc956",6855:"71fd04a102ffbc630e4c",6870:"583d9df6657f123680a8",6940:"eec7f555034e8b06f6a1",6954:"4493d8a33ca7c999ba7e",6965:"2d74cd1bfe2d6965b616",6969:"859682b533c83e685cec",7008:"1d2747a5114989230183",7063:"b9bc94923794cde426af",7068:"25b756df89151d4c3f27",7071:"f8a99be0ac16a408dea5",7097:"910fa0747b52d2d0b007",7098:"fa6dce73bb7f62d767f7",7103:"2e5e9458c442b401140f",7123:"f6988a53c76e672a667b",7126:"ce5824a935d07c26e008",7153:"02a42535770a6ae4c8ba",7217:"9c861253ff42713cf77c",7260:"72e28e987b6db6a49645",7301:"74d4dbbcaf0390b6ce69",7302:"797239b7c7e6f4d50ad8",7325:"6888eac4e424603143dc",7334:"5ed81cc029fabbb45021",7359:"3f9275a819bcd5725c08",7443:"11a3ef48b6cdd944b514",7444:"3fbea944cca5addb0232",7448:"6483a87c284b0bae67a4",7458:"705bdfd8781093953114",7466:"4ef73e965f1b1f061d96",7503:"9eb4c65da53910f636e4",7508:"7eea419ab7638d148b4c",7552:"a62919b6652346df4e15",7560:"c0d2f40527eaa07c0715",7563:"02ad2937cae6306f09da",7585:"13138123d3abb91f4b05",7601:"44b57fb5afef34a72f16",7632:"2617d19e78b3efa523ba",7650:"13ac063ea9209c9eaa2b",7653:"fce9493b2b724562623f",7657:"3df90ae840a8f97274fe",7666:"1e5e9c3bac772c2fa0a8",7672:"4ac58b8ab129e22ee262",7717:"9898be6a605caa2a9214",7770:"ee5a180d56ce4852223b",7795:"af5b2594afc9d1a1a3fe",7804:"ecf46650b7ed71003db8",7805:"cec0046f3f2bd19b9203",7883:"55c7ceb9c5f3f4d855e0",7966:"52ecd28f6d5986952251",8081:"0891a907d3ff9cff5d47",8114:"c9721b1233e11e3147c5",8123:"fa642b68e24a43820cfd",8128:"2c75034c3b67cbeeeab0",8129:"31eae7b069637ddaa930",8139:"98e64b82f07cd2e46024",8158:"c18db0bf3a13a3207155",8165:"180cde9b5174ae9ba862",8170:"9b7250c48e4db950b1e0",8185:"5172dc262e7561513324",8205:"61afa203631712da592f",8231:"647e2fd92f2c4f0dce85",8254:"85ab66dc55b4ff5603f8",8259:"287ff8b9f19f9face16c",8277:"bb472c16c07ab570400a",8289:"1fc58881a6d09eb67b42",8298:"0c3f20d5cc86c66a7fca",8453:"d754193abc270ab12205",8455:"061005cde576282cb387",8476:"121edaa7f068b40580a9",8572:"e3ea9a6815f72e4a3254",8685:"5cb037ff85f08e94f2bb",8687:"cd43c9b58eb0a64ee01e",8754:"19a97342b9d573304ea1",8808:"220a63942e524e639093",8828:"d25095d724f7d7f0e82c",8832:"fd43b171d9a62e4ff333",8833:"29add111c746257a3b58",8834:"a9c7bc4b1d7678edacca",8845:"a16236fbe14c717c5615",8888:"2214bf851686d216c266",8900:"a112fdd8b01dd082c8d4",8921:"1c948f91f3310942df11",8943:"c4e2924dc482d15d2bde",8970:"18fecb5a2f587c192e07",8978:"37c07a96d841a314914e",9003:"82ec57ec23815830bea6",9029:"0a87415f1b21533d4cb4",9035:"128e95f70161184640f0",9053:"54a6abbfba8533fedd52",9084:"ba925c84d72448c70db4",9096:"451a4ff5d07d69af979c",9106:"bed067266a4951183d39",9119:"51004e30363033fe39ca",9145:"3e12f2d02f6cf5954a11",9193:"12b03d5388ec66308613",9269:"965aab4ff8691027b90a",9354:"bd2b1cc40aaad57f9ef2",9385:"fc057a303ab750a29e5b",9404:"229f47b8869d8a11edbe",9440:"5399ea4b2ddeca9988e9",9481:"1b75d29a20599ab30121",9495:"129087b245a5b7eb11e9",9580:"aa9dbe65ff5f049e79c9",9590:"d58a407aa77ab9929ffe",9596:"37773a408c7da516f19b",9628:"0b090909997daa808c81",9629:"f7193c0b6d536f1a704c",9631:"abf69d9cee449c2183e4",9675:"f6c66f9bae63cabd02eb",9725:"7614a406e0c6f8d2b7e8",9760:"62afad5c2183b6dff717",9767:"bfc4b38b227df2c9d1b1",9794:"6a751e2711555bcedce3",9805:"5b9f563237c91a287bad",9810:"a26fb6c1829f3bd08820",9844:"ec6a4005e6735fc13f61",9864:"528280b3f42fa6b796d1",9872:"40184ab1909a36fa1c87",9873:"d0be0e75603d2db1b580",9875:"f554f6bfc281f0425c94",9880:"f5fd05f555b19b4343af",9882:"043bbbbacde11c3a1a97",9921:"2e7e6f9b906dbba4011c",9967:"34fe01e935eb638bbb59"}[e]+".js"),l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="uniweb-builder:",l.l=(e,t,i,a)=>{if(n[e])n[e].push(t);else{var o,u;if(void 0!==i)for(var c=document.getElementsByTagName("script"),s=0;s{o.onerror=o.onload=null,clearTimeout(h);var i=n[e];if(delete n[e],o.parentNode&&o.parentNode.removeChild(o),i&&i.forEach((e=>e(r))),t)return t(r)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=d.bind(null,o.onerror),o.onload=d.bind(null,o.onload),u&&document.head.appendChild(o)}},l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i={828:[70828],983:[20983]},a={20983:["default","./widgets",16700],70828:["default","./widgets",96790]},l.f.remotes=(e,t)=>{l.o(i,e)&&i[e].forEach((e=>{var n=l.R;n||(n=[]);var r=a[e];if(!(n.indexOf(r)>=0)){if(n.push(r),r.p)return t.push(r.p);var i=t=>{t||(t=new Error("Container missing")),"string"==typeof t.message&&(t.message+='\nwhile loading "'+r[1]+'" from '+r[2]),l.m[e]=()=>{throw t},r.p=0},o=(e,n,a,o,u,l)=>{try{var c=e(n,a);if(!c||!c.then)return u(c,o,l);var s=c.then((e=>u(e,o)),i);if(!l)return s;t.push(r.p=s)}catch(e){i(e)}},u=(e,t,i)=>o(t.get,r[1],n,0,c,i),c=t=>{r.p=1,l.m[e]=e=>{e.exports=t()}};o(l,r[2],0,0,((e,t,n)=>e?o(l.I,r[0],0,e,u,n):i()),1)}}))},(()=>{l.S={};var e={},t={};l.I=(n,r)=>{r||(r=[]);var i=t[n];if(i||(i=t[n]={}),!(r.indexOf(i)>=0)){if(r.push(i),e[n])return e[n];l.o(l.S,n)||(l.S[n]={});var a=l.S[n],o="uniweb-builder",u=(e,t,n,r)=>{var i=a[e]=a[e]||{},u=i[t];(!u||!u.loaded&&(!r!=!u.eager?r:o>u.from))&&(i[t]={get:n,from:o,eager:!!r})},c=e=>{var t=e=>{return t="Initialization of sharing external failed: "+e,"undefined"!=typeof console&&console.warn&&console.warn(t);var t};try{var i=l(e);if(!i)return;var a=e=>e&&e.init&&e.init(l.S[n],r);if(i.then)return s.push(i.then(a,t));var o=a(i);if(o&&o.then)return s.push(o.catch(t))}catch(e){t(e)}},s=[];return"default"===n&&(u("@twind/react","0.0.4",(()=>Promise.all([l.e(1129),l.e(4560),l.e(2889)]).then((()=>()=>l(42889))))),u("react-dom","18.2.0",(()=>Promise.all([l.e(3258),l.e(1129)]).then((()=>()=>l(83258))))),u("react-router-dom","6.4.3",(()=>Promise.all([l.e(9967),l.e(1129)]).then((()=>()=>l(79967))))),u("react","18.2.0",(()=>l.e(3900).then((()=>()=>l(13900))))),u("twind","0.16.19",(()=>l.e(5110).then((()=>()=>l(25110))))),c(16700),c(96790)),s.length?e[n]=Promise.all(s).then((()=>e[n]=1)):e[n]=1}}})(),l.p="https://app-assets-ca-central-1-training.uniweb.io/uniweb/6685751da08f8/js/",(()=>{var e=e=>{var t=e=>e.split(".").map((e=>+e==e?+e:e)),n=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),r=n[1]?t(n[1]):[];return n[2]&&(r.length++,r.push.apply(r,t(n[2]))),n[3]&&(r.push([]),r.push.apply(r,t(n[3]))),r},t=e=>{var n=e[0],r="";if(1===e.length)return"*";if(n+.5){r+=0==n?">=":-1==n?"<":1==n?"^":2==n?"~":n>0?"=":"!=";for(var i=1,a=1;a0?".":"")+(i=2,u);return r}var o=[];for(a=1;a{if(0 in t){r=e(r);var i=t[0],a=i<0;a&&(i=-i-1);for(var o=0,u=1,l=!0;;u++,o++){var c,s,f=u=r.length||"o"==(s=(typeof(c=r[o]))[0]))return!l||("u"==f?u>i&&!a:""==f!=a);if("u"==s){if(!l||"u"!=f)return!1}else if(l)if(f==s)if(u<=i){if(c!=t[u])return!1}else{if(a?c>t[u]:c{var r=t[n];return Object.keys(r).reduce(((t,n)=>!t||!r[t].loaded&&((t,n)=>{t=e(t),n=e(n);for(var r=0;;){if(r>=t.length)return r=n.length)return"u"==a;var o=n[r],u=(typeof o)[0];if(a!=u)return"o"==a&&"n"==u||"s"==u||"u"==a;if("o"!=a&&"u"!=a&&i!=o)return i{var l=r(e,o);return n(u,l)||"undefined"!=typeof console&&console.warn&&console.warn(((e,n,r,i)=>"Unsatisfied version "+r+" from "+(r&&e[n][r].from)+" of shared singleton module "+n+" (required "+t(i)+")")(e,o,l,u)),a(e[o][l])},a=e=>(e.loaded=1,e.get()),o=(e=>function(t,n,r,i){var a=l.I(t);return a&&a.then?a.then(e.bind(e,t,l.S[t],n,r,i)):e(t,l.S[t],n,r,i)})(((e,t,n,r,a)=>t&&l.o(t,n)?i(t,0,n,r):a())),u={},c={11129:()=>o("default","react",[1,18,2,0],(()=>l.e(3900).then((()=>()=>l(13900))))),4291:()=>o("default","react-router-dom",[1,6,4,2],(()=>l.e(9967).then((()=>()=>l(79967))))),62050:()=>o("default","react-dom",[1,18,2,0],(()=>l.e(3258).then((()=>()=>l(83258))))),34560:()=>o("default","twind",[2,0,16,17],(()=>l.e(5110).then((()=>()=>l(25110))))),35666:()=>o("default","@twind/react",[3,0,0,4],(()=>l.e(6179).then((()=>()=>l(42889)))))},s={1129:[11129],2050:[62050],4090:[35666],4291:[4291],4560:[34560]};l.f.consumes=(e,t)=>{l.o(s,e)&&s[e].forEach((e=>{if(l.o(u,e))return t.push(u[e]);var n=t=>{u[e]=0,l.m[e]=n=>{delete l.c[e],n.exports=t()}},r=t=>{delete u[e],l.m[e]=n=>{throw delete l.c[e],t}};try{var i=c[e]();i.then?t.push(u[e]=i.then(n).catch(r)):n(i)}catch(e){r(e)}}))}})(),(()=>{var e={179:0};l.f.j=(t,n)=>{var r=l.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else if(/^(4(090|291|560)|1129|2050|828|983)$/.test(t))e[t]=0;else{var i=new Promise(((n,i)=>r=e[t]=[n,i]));n.push(r[2]=i);var a=l.p+l.u(t),o=new Error;l.l(a,(n=>{if(l.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;o.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",o.name="ChunkLoadError",o.type=i,o.request=a,r[1](o)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[a,o,u]=n,c=0;if(a.some((t=>0!==e[t]))){for(r in o)l.o(o,r)&&(l.m[r]=o[r]);u&&u(l)}for(t&&t(n);c