/*! For license information please see main.54a47828e86603cd24b7.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(17159),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,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw a}}}}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 u(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 l(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n";if("UniwebIcon"===o)return n&&n.icons&&n.icons.push(e.parseUniwebIcon(t.attrs)),"";if(!a.length)return r;var c=r;return a.forEach((function(e){var t=e.type;if("link"===t){var n=(null==e?void 0:e.attrs)||{},r=n.href,i=n.target,a=r.split(".").pop().toLowerCase(),o=["pdf","doc","docx","xls","xlsx","ppt","pptx","jpg","svg","jpeg","png","webp","gif","mp4","mp3","wav","mov","zip"].includes(a);c='").concat(c,"")}else if("textStyle"===t){var u=((null==e?void 0:e.attrs)||{}).color;"string"==typeof u&&u&&(c='').concat(c,""))}else"bold"===t?c="".concat(c,""):"italic"===t?c="".concat(c,""):"highlight"===t&&(c=''.concat(c,""))})),c})).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,c=i.startsWith("$");i=c?i.slice(1)||"":i;var u=c?this.profile:this.secondaryProfile;if(i.startsWith("/")){var l=(i=i.slice(1)).replace(/\./g,"/");if(n)return this.profile.getMetaInfo(l)||l;if(l.includes("/")){var s=l.split("/");if(s.length>2){var f=s.pop(),d=s.join("/"),h=u.getValue(d);return r.Z.isPlainObject(h)||Array.isArray(h)?Array.isArray(h)?h.map((function(e){return e[f]})):h[f]:null}return u.getValue(l)}return u.getValue(l)}t||(t=u);var p=i.replace(/\./g,"/"),v=this.buildPendingVariable(p,c);if(!(t instanceof r.Z)){if(n){var y=c?this.profile:this.secondaryProfile;return(null==y?void 0:y.getMetaInfo(v))||v}if(p.includes("/")){var b,g=t,m=o(p.split("/"));try{var w=function(){var e=b.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(m.s();!(b=m.n()).done;){var k=w();if("object"===a(k))return k.v}}catch(e){m.e(e)}finally{m.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:("?"===e&&(e=this.field||""),"".concat(this.section).concat(e?"/".concat(e):""))}},{key:"parseHeader",value:function(t,n){var r,i,a,o,u={},l=t[n],s=null==l?void 0:l.attrs,f=(null==l?void 0:l.content)||[],d=null==s?void 0:s.level,h=null==s?void 0:s.textAlign,p=this.parseHeading(f);u[1===d?"title":2===d?"subtitle":"subtitle2"]=p,u.alignment=h;for(var v=e.getNextNoneEmptyIndex(t,n),y=(null==t?void 0:t[v])||{},b=null===(r=y)||void 0===r?void 0:r.type,g=null===(i=y)||void 0===i?void 0:i.attrs,m=null===(a=g)||void 0===a?void 0:a.level,w=(null===(o=y)||void 0===o?void 0:o.content)||[];"heading"===b&&m>d&&v<=t.length;){var k,O,P,S,j=1===m?"title":2===m?"subtitle":"subtitle2",_=this.parseHeading(w);if(null!=u&&u[j]){var x=Array.isArray(u[j])?u[j]:[u[j]];u[j]=[].concat(c(x),[_])}else u[j]=_;v=e.getNextNoneEmptyIndex(t,v),b=null===(k=y=(null==t?void 0:t[v])||{})||void 0===k?void 0:k.type,m=null===(P=g=null===(O=y)||void 0===O?void 0:O.attrs)||void 0===P?void 0:P.level,w=(null===(S=y)||void 0===S?void 0:S.content)||[]}return{header:u,nextIndex:v}}},{key:"parseGenericData",value:function(t){var n=this,r={imgs:[],videos:[],lists:[],links:[],headings:[],paragraphs:[],properties:[],propertyBlocks:[],icons:[],cards:[],buttons:[]};return t.forEach((function(t){var i,a=null==t?void 0:t.type,o=null==t?void 0:t.attrs,u=(null==t?void 0:t.content)||[];switch(a){case"heading":case"paragraph":var l=e.hasOnlyLink(t,r);if(l)r.links.push(l);else{var s=n.parseHeading(u,r);s&&r["".concat(a,"s")].push(s)}break;case"ImageBlock":r.imgs.push(n.parseImgBlock(o));break;case"Video":r.videos.push(e.parseVideoBlock(o));break;case"bulletList":var f=u.map((function(e){return"listItem"===e.type?e.content:null})).filter(Boolean);r.lists.push(f.map((function(e){return n.parseGenericData(e)})));break;case"codeBlock":var d=e.parseCodeBlock(u);r.properties=d,r.propertyBlocks.push(d);break;case"UniwebIcon":r.icons.push(e.parseUniwebIcon(o));break;case"Icon":r.icons.push(e.parseIconBlock(o));break;case"card-group":var h=u.map((function(e){return"card"!==e.type||e.attrs.hidden?null:e})).filter(Boolean);(i=r.cards).push.apply(i,c(h.map((function(t){return e.parseCardBlock(t.attrs)}))));break;case"button":r.buttons.push({attrs:o,content:n.parseHeading(u)})}})),r}},{key:"parseItem",value:function(t){for(var n,r,i,a=null,o=null,c=null,u=0,s=0,f=0;ft.length){f=b;break}var g=t[b],m=null==g?void 0:g.type,w=null==g?void 0:g.attrs;"heading"===m&&1===(null==w?void 0:w.level)&&(o.pretitle=this.parseHeading(v),y=b)}var k=this.parseHeader(t,y),O=k.header,P=k.nextIndex;o=l(l({},o),O),f=P;break}break}a=this.parseImgBlock(p),u++,f++}else s++,u++,f++}return f1&&void 0!==arguments[1]?arguments[1]:null,r=this.format,i=r.global,a=r.manual,o=this.options.report,u=void 0!==o&&o;if(!i&&!a&&!u)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(c(e),f);var d=c((null==e?void 0:e.content)||[]);return l(l({},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 l(l({},e),{},{text:t(i)})}return r&&Array.isArray(r)?l(l({},e),{},{content:this.instantiateBlocks(r,t)}):e}}],u=[{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 l(l({},n),{},{address:r})}},{key:"parseCodeBlock",value:function(e){var t=e.map((function(e){return e.text})).join(" ");try{t=JSON.parse("".concat(t))}catch(e){}return t}},{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,c=(null===(r=a)||void 0===r?void 0:r.content)||[];"paragraph"===o&&!c.length&&i<=e.length-1;){var u,l;o=null===(u=a=e[++i])||void 0===u?void 0:u.type,c=(null===(l=a)||void 0===l?void 0:l.content)||[]}return i}},{key:"hasOnlyLink",value:function(t,n){var r=(null==t?void 0:t.content)||[],i=[];if(1===(r=r.filter((function(e){return"UniwebIcon"!==e.type||(i.push(e),!1)}))).length)for(var a,o=null===(a=r)||void 0===a?void 0:a[0],c=(null==o?void 0:o.marks)||[],u=0;u]*>/g,"");return(new DOMParser).parseFromString(t,"text/html").body.textContent}}],n&&h(t.prototype,n),u&&h(t,u),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),c=n(27012),u=n.n(c),l=n(43314),s=n.n(l);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(u()),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:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",l=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),c=new x(i||[]);return r(o,"_invoke",{value:P(e,n,c)}),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 b={};s(b,c,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(I([])));m&&m!==t&&n.call(m,c)&&(b=m);var w=y.prototype=p.prototype=Object.create(b);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,c,u){var l=d(e[r],e,o);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==a(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,c,u)}),(function(e){i("throw",e,c,u)})):t.resolve(f).then((function(e){s.value=e,c(s)}),(function(e){return i("throw",e,c,u)}))}u(l.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 c=S(o,n);if(c){if(c===h)continue;return c}}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 u=d(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function S(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,S(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 j(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(j,this),this.reset(!0)}function I(e){if(e){var t=e[c];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 c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){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 c(e,t,n,r,i,a,o){try{var c=e[a](o),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,i)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){c(a,r,i,o,u,"next",e)}function u(e){c(a,r,i,o,u,"throw",e)}o(void 0)}))}}function l(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,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){c=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(c)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 c="".concat(this.website.type,"Remote");return[i,n?c:""]}}],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=u(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.setRemoteCache(n,"components",r),r})));case 3:case"end":return t.stop()}}),t)}))),function(e){return h.apply(this,arguments)})},{key:"getModuleInfo",value:(f=u(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=u(o().mark((function t(n,r){var i,a,c,u;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===(c=e.cache[n])||void 0===c||null===(u=c.componentInfo)||void 0===u?void 0:u[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.setRemoteCache(n,"currentComponents",o)),a})));case 3:case"end":return t.stop()}}),t)}))),function(e,t){return s.apply(this,arguments)})},{key:"fetchModuleSchema",value:(c=u(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.setRemoteCache(n,"schema",t),t})));case 3:case"end":return t.stop()}}),t)}))),function(e){return c.apply(this,arguments)})},{key:"setRemoteCache",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={}},40219:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(17159),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(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 c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){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 s(e,t,n,r,i,a,o){try{var c=e[a](o),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,i)}function f(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){s(a,r,i,o,c,"next",e)}function c(e){s(a,r,i,o,c,"throw",e)}o(void 0)}))}}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="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=v(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,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw a}}}}function p(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,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){c=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw i}}return a}}(e,t)||v(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 v(e,t){if(e){if("string"==typeof e)return y(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)?y(e,t):void 0}}function y(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,c=this.getProfiles(r,i);if(!e)return c;var u=e.split(" "),l=c.filter((function(e){var t,n=e.getBasicInfo().title,r=!1,i=e.options.tags,a=h(u);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),p=f.filter((function(e){var t,n=e.getBasicInfo().title,r=e.options.tags,i=!1,a=h(u);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}));p.forEach((function(e){s=s.concat(t.getProfiles(r,e.folder.fileId))}))}var v=[];return[].concat(d(l),d(s)).forEach((function(e){var t=e.getProfileType(),n=e.getId(),r="".concat(t,"_").concat(n),i=v[r];i&&(e.options.tags=d(new Set([].concat(d(i.options.tags||[]),d(e.options.tags||[]))))),v[r]=e})),Object.values(v)}},{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,c=void 0!==o&&o,u=t.unique,l=void 0===u||u,s=t.subFolder,f=Object.values(this.profiles);if(s){var h=this.getDescendantFileIds(s,!0);f=h.map((function(t){return e.profiles[t]}))}var p=[];if("all"===r?p=f:(c&&!a.includes("folder/profile")&&a.push("folder/profile"),p=f.filter((function(e){return a.includes(e.getProfileType())}))),l){var v=[];p.forEach((function(e){var t=e.getProfileType(),n=e.getId(),r="".concat(t,"_").concat(n),i=v[r];i&&(e.options.tags=d(new Set([].concat(d(i.options.tags||[]),d(e.options.tags||[]))))),v[r]=e})),p=Object.values(v)}return p}},{key:"fetchContents",value:(v=f(l().mark((function e(){var t=this;return l().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,a=e.getData();if(t.name=null===(n=e.getBasicInfo())||void 0===n?void 0:n.title,!t.name&&!a)return t.profiles={},null;t.parentFolder?t.path=t.parentFolder.path+"/"+t.name:t.path=t.name;var o=null==a||null===(r=a.info)||void 0===r?void 0:r._structure,c=o?Object.values(o)[0]:{},u=c&&"string"==typeof c?JSON.parse(c):c,l=(null===(i=Object.values(u))||void 0===i?void 0:i[0])||"";return t.order=l,t.parseFileContents(a.files).then((function(){return t.fetchPromise=null,Promise.all(Object.values(t.profiles).map((function(e){return e.initialize()}))).then((function(){var e={};for(var n in t.profiles){var r=t.profiles[n];r.isReady()&&(e[n]=r)}return t.profiles=e,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 v.apply(this,arguments)})},{key:"getFiles",value:(s=f(l().mark((function e(t){var n=this;return l().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 s.apply(this,arguments)})},{key:"replaceValueWithArray",value:function(e,t,n){return e.split(",").map((function(e){if(e===t)return n.join(",");if(e.endsWith("/"+t)){var r=e.slice(0,-t.length-1);return n.map((function(e){return"".concat(r,"/").concat(e)})).join(",")}return e})).join(",")}},{key:"parseFileContents",value:(u=f(l().mark((function t(n){var a,o,u,s,f,d,v,y,b,g,m,w,k,O,P,S,j,_,x,I,E,A,L,C,T,D,N,F,M,R,B,U=this;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.profiles={},this.smartFolders={},a=[],o=[],u=h(n);try{for(u.s();!(s=u.n()).done;)d=s.value,v=null,y="",b=null,g={fileId:d.id,tags:(null===(f=d.metadata)||void 0===f?void 0:f.tags)||[]},d.profile?(m=d.profile)&&(k=m[1],b=c(c({},g),{},{head:m[1]}),y=null===(w=m[6])||void 0===w?void 0:w._subtype,v=m[0],"video/profile"===y&&(S=JSON.parse(k),j=S.video_url,_={id:d.id,name:null===(O=S)||void 0===O?void 0:O.title},x=(null===(P=uniweb.newProfile(y,v,{head:S}).getImageInfo("banner"))||void 0===P?void 0:P.url)||"",j?(I=this.folderProfile.website.localize(j),E=void 0,A=void 0,(L=I.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/embed\/|\/v\/|\/)([^\s&]+)/))?(E="https://www.youtube-nocookie.com/embed/"+L[1],A="https://img.youtube.com/vi/".concat(L[1],"/maxresdefault.jpg")):(L=linkVal.match(/(?:https?:\/{2})?(?:w{3}\.)?(?:player\.)?vimeo\.com(?:\/video\/|\/|\/external\/)([^\s&]+)/))&&(C=L[1],E=C.startsWith("external")?linkVal:"https://player.vimeo.com/video/"+C,A="https://vumbnail.com/".concat(C,"_large.jpg")),E&&(_=c(c({},_),{},{url:I,metadata:{embedSrc:E,image:x||A,thumbnail:x||A,type:"video",title:null===(T=S)||void 0===T?void 0:T.title,description:null===(D=S)||void 0===D?void 0:D.description}}))):(R=(null===(N=S)||void 0===N?void 0:N["video_in_".concat(this.lang)])||"",_=c(c({},_),{},{file:R,metadata:{ext:R.substring(R.lastIndexOf(".")+1,R.length),filename:R.substring(R.lastIndexOf("/")+1,R.length),url:R,image:x,thumbnail:x,title:null===(F=S)||void 0===F?void 0:F.title,description:null===(M=S)||void 0===M?void 0:M.description}})),v=this.contentId+"_"+d.id,y="webasset/profile",b=c(c({},g),{},{data:e.makeWebAssetProfileData(_)}))):d.file||d.url?(y="webasset/profile",v=this.contentId+"_"+d.id,b=c(c({},g),{},{data:e.makeWebAssetProfileData(d)})):d.request?(B=this.contentId+"_"+d.id,this.smartFolders[B]=d.request):(a.push(d),o.push(d.id)),y&&v&&(this.profiles[d.id]=r.Z.newProfile(y,v,b))}catch(e){u.e(e)}finally{u.f()}return t.abrupt("return",Promise.all(Object.entries(this.smartFolders).map((function(e){var t=p(e,2),n=t[0],r=(t[1],p(n.split("_"),2)),a=r[0],o=r[1];return(0,i.j0)("folder.php",{action:"getFilesFromSmartFolder",contentId:a,itemId:o,contentType:U.folderProfile.getContentType(),viewType:U.folderProfile.getViewType()}).then((function(e){var t=[],n=function(n){var r=n.split("/")[0];e.data[n].forEach((function(e){var i="".concat(o,"_").concat(r,"_").concat(e);t.push(i),U.profiles[i]=uniweb.newProfile(n,e,{fileId:i})}))};for(var r in e.data)n(r);return U.order=U.replaceValueWithArray(U.order,o,t),t}))}))).then((function(){var e=[];if(o.length)for(;e.length!==o.length;)for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"";e.sortedProfiles.forEach((function(r){if("folder/profile"===r.getProfileType()){var i=r.folder;i.parentFolder=e;var a=e.folderProfile.getContentId(),o=e.ancestors||[],c=p("".concat(a).split("_"),2)[1];c&&(o=[].concat(d(o),[c])),i.ancestors=o;var u=i.options.title;t.initAncestors(i,"".concat(n?n+"/":"").concat(u))}else r.options._path="".concat(n)}))}},{key:"getDescendantFileIds",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.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 c=a.slice(o+1).join("/");c&&i.add(c)}else for(var u=o+1;u{"use strict";n.d(t,{NE:()=>o.y,NZ:()=>r.Z,Zh:()=>a.Zh,d2:()=>i.Z,e:()=>a.e,p6:()=>a.p6});var r=n(17159),i=n(97551),a=(n(4843),n(98238),n(54574)),o=n(43488)},17159:(e,t,n)=>{"use strict";n.d(t,{Z:()=>P});var r=n(8053),i=n(16498),a=n(68713),o=(n(4843),n(97551)),c=n(40219),u=["searchText"],l=["_sort"];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,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=y(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,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw a}}}}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",c=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function l(e,t,n,i){var a=t&&t.prototype instanceof h?t:h,o=Object.create(a.prototype),c=new x(i||[]);return r(o,"_invoke",{value:P(e,n,c)}),o}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var f={};function h(){}function p(){}function v(){}var y={};u(y,a,(function(){return this}));var b=Object.getPrototypeOf,m=b&&b(b(I([])));m&&m!==t&&n.call(m,a)&&(y=m);var w=v.prototype=h.prototype=Object.create(y);function k(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function i(r,a,o,c){var u=s(e[r],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==g(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,o,c)}),(function(e){i("throw",e,o,c)})):t.resolve(f).then((function(e){l.value=e,o(l)}),(function(e){return i("throw",e,o,c)}))}c(u.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 c=S(o,n);if(c){if(c===f)continue;return c}}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 u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function S(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,S(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 j(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(j,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 c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){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 c=e[a](o),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).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,c,"next",e)}function c(e){h(a,r,i,o,c,"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,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){c=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw i}}return a}}(e,t)||y(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){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);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"===g(n)&&Object.keys(n).length&&r.push(e.parseMediaLinkValue(data)(n))),r}));var a=r||{},o=a.data,c=a.head,u=a.format,l=a.website,s=a.lang,f=a.contentInfo,d=a.editable,h=void 0!==d&&d;this.options=r,this.profileType=e.completeProfileType(t);var p=v(e.parseProfileType(this.profileType),2);this.contentType=p[0],this.viewType=p[1],this.contentId=n,this.website=l||uniweb.getActiveWebsite(),this.activeLang=s||this.website.getLanguage(),this.key=e.makeProfileKey(this.profileType,this.contentId,this.activeLang,h),this.fetchPromise=null,this.setAsyncData(o,c,u,f)}var t,h,y,b,m,P,S,j;return t=e,h=[{key:"isReady",value:function(){return!!this.rawData}},{key:"setAsyncData",value:function(t,n,r,i){var a,o,c;null!==(a=this.rawData)&&void 0!==a||(this.rawData=t),r&&(null!==(o=this.format)&&void 0!==o||(this.format=r)),i&&(null!==(c=this.contentInfo)&&void 0!==c||(this.contentInfo=i)),n?"string"==typeof n&&(n=JSON.parse(n)):(n=e.parseHeadItem(t),this.contentInfo&&Object.assign(n,this.contentInfo)),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:(j=p(d().mark((function t(){var r,i,a,o=arguments;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=o.length>0&&void 0!==o[0]?o[0]:null,i=o.length>1&&void 0!==o[1]&&o[1],a=this.fetchContents(i),"function"==typeof r&&("custom"===this.getContentType()?a.then((function(t){var a,o=t.at("info"),c=null==o||null===(a=o.schema)||void 0===a?void 0:a[0];c&&e.newProfile("content/profile",c,{editable:i}).initialize((function(i,a){n.e(45159).then(n.bind(n,45159)).then((function(n){var o=new(0,n.default)(t,i,{editable:a});e.setCachedProfile(o.contentProfile),r(o.contentProfile)}))}))})):a.then((function(t){e.setCachedProfile(t),r(t)}))),t.abrupt("return",a);case 5:case"end":return t.stop()}}),t,this)}))),function(){return j.apply(this,arguments)})},{key:"fetchContents",value:(S=p(d().mark((function t(){var n,r=this,i=arguments;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=i.length>0&&void 0!==i[0]&&i[0],!this.isReady()){t.next=3;break}return t.abrupt("return",Promise.resolve(this));case 3:if(!this.fetchPromise){t.next=5;break}return t.abrupt("return",this.fetchPromise);case 5:return this.fetchPromise=e.fetch(this.profileType,this.contentId,this.activeLang,n).then((function(e){return r.setAsyncData(e.rawData,e.rawHead,e.format,e.contentInfo),r.fetchPromise=null,r})).catch((function(e){return r.fetchPromise=null,console.log(e),console.log("Cannot fetch ".concat(r.profileType,"/").concat(r.contentId)),null})),t.abrupt("return",this.fetchPromise);case 7:case"end":return t.stop()}}),t,this)}))),function(){return S.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,t;return(null===(e=this.rawHead)||void 0===e?void 0:e.handle)||(null===(t=this.rawHead)||void 0===t?void 0:t._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:"getTopSectionId",value:function(){var e;return null===(e=Object.values(this.getSectionIndex())[0])||void 0===e?void 0:e.section_id}},{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,c=n.categoryField;o&&"object"===g(o)&&(o=o.title?o.title:Object.values(o).filter(Boolean)[0]||""),this.basicInfo={title:a,subtitle:o,category:c,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 c="",u={searchKey:"title",histograms:{}};Object.values(o.fields).forEach((function(e){"profile"===e.type&&(c=e.subtype)})),c&&e.getFilterableFields(c).forEach((function(t){var n=t.label,i=t.name;n=(0,r.NC)(n,"",e.websiteLang),u.histograms[n]=i}));var l=(0,a.H3)(o,u),s=l.cards,f=void 0===s?[]:s,d=l.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=f(t);try{for(a.s();!(i=a.n()).done;){var o,c=i.value;if(Array.isArray(r)&&(r=null!==(o=r[0])&&void 0!==o?o:null),!e.isPlainObject(r))return null;r=r[c]}}catch(e){a.e(e)}finally{a.f()}return Array.isArray(r)&&(r=r.map((function(e){return w(w({},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],c=this.hasFields(o);return Array.isArray(r)?c?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 u,l,s=t[0];if(Array.isArray(r))u=null===(l=r.find((function(e){return e.name===s})))||void 0===l?void 0:l.value;else if(e.isPlainObject(r)){var f;u=null===(f=Object.values(r).find((function(e){return e.name===s})))||void 0===f?void 0:f.value}if(u){if(Array.isArray(u)){var d=u.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",u),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 c in o){var u=o[c];if(u.name===e){if(!n||!Object.keys(n).length){r=a;break}for(var l in n)if(u[l]===n[l]){r=a;break}}}}return r}},{key:"useReadyStateEffect",value:function(e,t){var n=this,r=v(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/",c="banner"===t?this.getBanner():this.getAvatar();if((c=c&&"null"===c?"_default":c)&&"_default"!==c||(c=uniweb.getDefaultImgUrl(this.contentType,t)),c){var u=c.split("/"),l=v(u,2),s=l[0],f=l[1],d=void 0===f?"":f,h=d.substring(d.lastIndexOf(".")+1,d.length),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("/"),c=v(o,2),u=c[0],l=c[1];if(!l)return{};var s=l.substring(l.lastIndexOf(".")+1,l.length),f="original"===i,d="".concat(a,"dist/").concat(u,"/base.").concat(s),h="";f?h=d:(i=e.calcFinalImageSize(i),["jpg","jpeg","png"].includes(s.toLowerCase())?h="".concat(a,"opt/").concat(u,"/").concat(i,".webp"):n&&["pdf","doc","docx","ppt","pptx","xls","xlsx"].includes(s.toLowerCase())?(h="".concat(a,"opt/").concat(u,"/").concat(i,".webp"),d="".concat(a,"dist/").concat(u,"/preview.png")):h=d);var p=this.website.localize(r)||l;return{src:d,alt:p,filename:l,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=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.tab,n=void 0===t?"":t,r=e.searchParams,i=this.contentType,a=this.viewType,o=this.getId(),c=a||"profile",u="",l=i;return u="view/".concat(c,"/").concat(l),o&&(u+="/".concat(o),n&&(u+="/".concat(n))),r&&(u+=r),uniweb.getAppDomain()+u}},{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(),c=a.join("");if(o){var u=this.getSectionInfo(c);if(u)return(null==u?void 0:u[o])||"";var l=c.split("/"),s=l.pop(),f=l.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,o=t.withDefaultTab,c=void 0!==o&&o,u=function(e){return Object.keys(e).filter((function(e){return"id"!==e&&"@"!==e})).length>0};if(a&&(n=n.filter((function(t){var n=e.at(t.sectionName);return!(null==n||!n.length)&&n.some((function(e){return u(e)}))}))),c){var l=this.getDisplayData(),s=Object.keys(l).filter((function(e){return!n.some((function(t){return t.sectionName===e}))&&!l[e].isInfo}));a&&(s=s.filter((function(t){var n=e.at(t);return!(Array.isArray(n)&&(null==n||!n.length))&&(n&&"object"===g(n)&&!Array.isArray(n)?u(n):n.some((function(e){return u(e)})))}))),s.length&&"topic"!==this.getContentType()&&n.unshift({name:"",label:{en:"About",fr:"À propos"}})}return n}}],y=[{key:"makeProfileKey",value:function(t,n,r,i){return t=e.completeProfileType(t),"".concat(i?"edit":"display","/").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=e.getCachedProfile(t,n,(null==r?void 0:r.lang)||uniweb.activeWebsite.getLanguage()||uniweb.language(),null==r?void 0:r.editable),a=(null==r?void 0:r.head)||{},o=(null==i?void 0:i.rawHead)||{};if(i&&JSON.stringify(a)===JSON.stringify(o))return i;var c=new e(t,n,r);return e.setCachedProfile(c),c}},{key:"getCachedProfile",value:function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];r=r||uniweb.activeWebsite.getLanguage()||uniweb.language();var a=e.makeProfileKey(t,n,r,i);return e.cache.profiles[a]}},{key:"setCachedProfile",value:function(t){var n=t.options,r=t.contentType,i=t.viewType;("folder"==r||"folder"==i&&"website"==r)&&(t.folder=new c.Z(t,n)),e.cache.profiles[t.key]=t}},{key:"clearCachedProfile",value:function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];r=r||uniweb.activeWebsite.getLanguage()||uniweb.language();var a=e.getCachedProfile(t,n,r,i);a&&(a.rawData=null),delete e.cache.profiles[e.makeProfileKey(t,n,r,i)]}},{key:"getCachedFormat",value:function(t){return t=e.completeProfileType(t),e.cache.formats[t]}},{key:"hasCachedFormat",value:function(t){return!!e.getCachedFormat(t)}},{key:"setCachedFormat",value:function(t,n){t=e.completeProfileType(t),e.cache.formats[t]=n}},{key:"fetch",value:(P=p(d().mark((function t(n,i,a){var o,c,u,l,s,f,h,p,y=arguments;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=y.length>3&&void 0!==y[3]&&y[3],!(c=e.getCachedProfile(n,i,a,o))||!c.isReady()){t.next=4;break}return t.abrupt("return",Promise.resolve(c));case 4:return u=e.parseProfileType(n),l=v(u,2),s=l[0],f=l[1],h={action:"display",editable:o,contentType:s,viewType:f,contentId:i,profileLang:a,withFormat:!e.getCachedFormat(n)},p=function(t){var r=t.data,a=r.sections;return r.format&&e.setCachedFormat(n,t.data.format),new e(n,i,{data:a,editable:o})},t.abrupt("return",r.ZP.get("profiles.php",{params:h}).then(p).catch((function(e){})));case 8:case"end":return t.stop()}}),t)}))),function(e,t,n){return P.apply(this,arguments)})},{key:"fetchAll",value:(m=p(d().mark((function t(n,i,a){var o,c,u,l,s,h,p,y,b,g,m,w,k,O;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=[],c=[],u=f(i);try{for(u.s();!(l=u.n()).done;)s=l.value,(h=e.getCachedProfile(n,s))&&h.isReady()?c.push(h):o.push(s)}catch(e){u.e(e)}finally{u.f()}if(o.length){t.next=6;break}return t.abrupt("return",Promise.resolve(c));case 6:if(p=e.parseProfileType(n),y=v(p,2),b=y[0],g=y[1],m={action:"displayProfiles",contentType:b,viewType:g,contentIds:o,profileLang:a,withFormat:!e.getCachedFormat(n)},w="".concat(n,"/").concat(o.join(",")),!(k=e.cache.queries[w])){t.next=12;break}return t.abrupt("return",Promise.resolve(k));case 12:return O=function(t){var r=t.data,i=r.profiles,a=r.format;for(var o in a&&e.setCachedFormat(n,a),i){var u=i[o],l=u.sections,s=u.contentInfo;c.push(e.newProfile(n,o,{data:l,contentInfo:s}))}return c},e.cache.queries[w]=r.ZP.get("profiles.php",{params:m}).then(O),t.abrupt("return",e.cache.queries[w]);case 15:case"end":return t.stop()}}),t)}))),function(e,t,n){return m.apply(this,arguments)})},{key:"fetchBasicInfo",value:(b=p(d().mark((function t(n){var i,a,o,c,u,l,s,h,p,y,b,g,m=arguments;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=m.length>1&&void 0!==m[1]?m[1]:"public",o=m.length>2&&void 0!==m[2]?m[2]:[],c=m.length>3&&void 0!==m[3]?m[3]:null,u=e.parseProfileType(n),l=v(u,2),s=l[0],h=l[1],p=!(e.editableMode()||null!=o&&o.contentIds),null!==(i=c)&&void 0!==i||(c=this.activeLang),y={action:"getBasicInfo",contentType:s,viewType:h,scope:a,filter:o},!p){t.next=12;break}if(p=e.generateCacheKey(y),!(b=e.cache.queries[p])){t.next=12;break}return t.abrupt("return",Promise.resolve(b));case 12:return g=function(t){var r,i=[],a=f(t.data);try{for(a.s();!(r=a.n()).done;){var o=v(r.value,6),c=o[0],u=o[1],l=o[2],s=o[3],d=o[4],h=o[5];i.push(new e(n,c,{head:w(w({},u),{},{ownerId:l,visibility:s,lastEdit:d,handle:h})}))}}catch(e){a.e(e)}finally{a.f()}return p&&(e.cache.queries[p]=i),i},t.abrupt("return",r.ZP.get("profiles.php",{params:y}).then(g));case 14:case"end":return t.stop()}}),t,this)}))),function(e){return b.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,c=t.lastEditTime,u=t.handle;return a="string"==typeof a?JSON.parse(a):a,new e("".concat(r,"/").concat(i),n,{head:w(w({},a),{},{ownerId:o,lastEdit:c,handle:u})})}))}))}},{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=f(t);try{for(o.s();!(r=o.n()).done;){var c,u=r.value,l=[],s=u.max_item_count?parseInt(u.max_item_count):null,d=f(u.items);try{for(d.s();!(c=d.n()).done;){var h=c.value,p={id:h.id};for(var v in h.attributes){var y=e.getAttributeName(v);y&&(p["_"+y]=h.attributes[v])}for(var b in h.values){var g=u.fields[b],m=h.values[b];if("section"==g.type){var w=u.subsections[g.subsection_id];w.items=m,m=e.parseAsSimpleData([w],n,!1)}else if(m&&"localstr"==g.type)m=n.localize(m);else if(m&&"json"==g.type)m="string"==typeof m?JSON.parse(m):m;else if(!m||"systable"!=g.type&&"lov"!=g.type){if(m&&"reftable"===g.type)m=(m=m[1]).split("|").map((function(e){return["not required","non requis"].includes(e.toLowerCase())?"":e}));else if(m&&"address"==g.type)m=JSON.parse(m);else if("bilingual"===g.type){var k,O,P=(null===(k=m)||void 0===k?void 0:k.english)||"",S=(null===(O=m)||void 0===O?void 0:O.french)||"";m="en"===e.websiteLang?P:"fr"===e.websiteLang?S||P:""}}else m=m[1];p[g.name]=m}l.push(p)}}catch(e){d.e(e)}finally{d.f()}l.length&&1===s&&(l=l[0]),i?a[u.name]=l:a=l}}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?{}:[],c=0,u=f(t);try{for(u.s();!(i=u.n()).done;){var l,s=i.value,d=[],h=f(s.items);try{for(h.s();!(l=h.n()).done;){var p=l.value,v={};for(var y in p.values){var b=s.fields[y],g=b.type,m=p.values[y];if(m&&"order"!==b.name){var w={label:b.label};if("section"==b.type){var k=s.subsections[b.subsection_id];k.items=m;var O=e.parseAsDisplayData([k],n,!1);w.isSection=!0,w.label=O.label,w.value=O.value}else if("localstr"==g)w.isHTML=!0,w.value=n.localize(m);else if("json"==g)w.isJSON=!0,w.value="string"==typeof m?JSON.parse(m):m;else if("systable"==g||"lov"==g)w.value=m[1],"WebsiteTypes"===b.subtype&&(w.rawValue=m[2]);else if("address"==g)m=JSON.parse(m),w.isAddress=!0,w.rawValue=m,w.value=m.formatted_address;else if("bilingual"===g)w.value=Object.values(m)[0];else if("profile"===g){b.subtype&&(m[6]={_subtype:b.subtype});var P=(0,r.WD)(m),S=P[0]||{},j=S.contentId,_=S.title,x=void 0===_?"":_;P&&(w.isProfile=!0,w.profileId=j,w.rawValue=[j,x,null,m[2],m[3]],w.parsedValue=P,w.value=x)}else w.value="string"==typeof m?m:m.toString();v[b.name]=w}}Object.keys(v).length&&d.push(v)}}catch(e){h.e(e)}finally{h.f()}if(a){var I={label:s.label,value:d};0===c&&(I.isInfo=!0),o[s.name]=I}else o={label:s.label,value:d};c++}}catch(e){u.e(e)}finally{u.f()}return o}},{key:"parseAsRichData",value:function(t){var n,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=i?{}:[],o=f(t);try{for(o.s();!(n=o.n()).done;){var c,u=n.value,l=[],s=u.max_item_count?parseInt(u.max_item_count):null,d=f(u.items);try{for(d.s();!(c=d.n()).done;){var h=c.value,p={id:h.id,attributes:{},fields:{}};for(var v in h.attributes){var y=e.getAttributeName(v);y&&(p.attributes[y]=h.attributes[v])}for(var b in h.values){var g=u.fields[b],m=h.values[b];if("section"==g.type){var w=u.subsections[g.subsection_id];w.items=m,m=e.parseAsRichData([w],!1)}else m&&"localstr"==g.type?m=(0,r.NC)(m,"",this.activeLang):m&&"json"==g.type?m="string"==typeof m?JSON.parse(m):m:m&&"address"==g.type&&(m=JSON.parse(m));p.fields[g.name]={fieldId:b,value:m}}l.push(p)}}catch(e){d.e(e)}finally{d.f()}l.length&&1===s&&(l=l[0]),i?a[u.name]=l:a=l}}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=[],c=f(t);try{for(c.s();!(i=c.n()).done;){var u=i.value;for(var l in r={},u.fields){var s=u.fields[l];if("section"==s.type){var d=u.subsections[s.subsection_id];n=e.parseAsSchema(d,!1)}else n=w({},s);r[s.name]=n}a?o[u.name]=r:o.push(r)}}catch(e){c.e(e)}finally{c.f()}return o}},{key:"isPlainObject",value:function(e){return"object"===g(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=f(n);try{for(a.s();!(r=a.n()).done;){var o,c=r.value,u=i?i+"/"+c.name:c.name,l=(null===(o=c.items)||void 0===o?void 0:o.length)||0;t[u]=w(w({},c),{},{itemCount:l});var s=null;for(var d in c.fields){var h=c.fields[d];if("section"==h.type){var p=c.subsections[h.subsection_id];e.indexSectionInfo(t,[p],u)}else if("profile"==h.type){var v,y,b,g;null!==(v=s)&&void 0!==v||(s={}),null!==(g=(y=s)[b=h.subtype])&&void 0!==g||(y[b]=h.name)}}s&&(t[u].profileLinks=s)}}catch(e){a.e(e)}finally{a.f()}}},{key:"getFilterableFields",value:function(t){var n=v(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=v(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 c=e.getAttributeName(o);if(c){var u,l=r.attributes[o]||{};"avatar"!=c&&"banner"!==c||(l=null===(u=Object.values(l))||void 0===u?void 0:u[0]),i["_"+c]=l}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]:{},c=o.initVal,u=void 0===c?null:c,l=o.lang,s=void 0===l?null:l,f=o.editable,d=void 0!==f&&f,h=t(u),p=v(h,2),y=p[0],b=p[1];return n((function(){if(i){var t=e.getCachedProfile(r,i,s,d);(d||t&&!t.isReady())&&e.clearCachedProfile(r,i,s,d),new e(r,i,{lang:s,editable:d}).initialize(b,d)}}),[r,i,a,s,d]),y&&y.isReady()||y!==u?y: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,c=(null==a||null===(n=a.other_values)||void 0===n?void 0:n[0])||(null==a?void 0:a.rawValue)||null,u=null==i?void 0:i.value,l="",s="";if(u&&c){u.startsWith("https://")?l=u:s=u;var f="";switch(c){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?l="".concat(f).concat(s):s=l.replace(f,"")}else l=u,s=u;return{type:c,url:l,name:(null==a?void 0:a.value)||"",label:null!=o&&o.value?(0,r.NC)(null==o?void 0:o.value,"",e.websiteLang,!0):"",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=v(e.parseProfileType(t),2),i=n[0],a=n[1],o=(0,r.pe)(i,a)||{},c=o.titleFieldName,u=void 0===c?"":c,l=o.captionFieldName,s=void 0===l?"":l,f=o.categoryFieldName;return{titleFieldName:u,captionFieldName:s,categoryFieldName:void 0===f?"":f}}},{key:"fetchOwnedProfiles",value:function(e){var t=uniweb.activeUserId();return r.ZP.get("profiles.php",{params:w({action:"getMemberAssociatedProfiles",memberId:t},e)}).then((function(t){return(0,r.xQ)(e.profileType,t.data)}))}}],h&&k(t.prototype,h),y&&k(t,y),Object.defineProperty(t,"prototype",{writable:!1}),e}();P.websiteLang=null,P.cache={formats:{},profiles:{},queries:{}}},35616:(e,t,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)}function i(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;a1&&void 0!==arguments[1]?arguments[1]:"";if(""===t&&e["/"])return this.generateRoutesMap(e["/"],"/");var n={};if(!e||"object"!==r(e))return n;for(var i in e)if("_package"!==i&&"withFooter"!==i&&"withNavbar"!==i&&"mode"!==i&&"meta"!==i&&"index"!==i){var a="/"===t?"/".concat(i):"".concat(t,"/").concat(i);"object"!==r(e[i])||0!==Object.keys(e[i]).length&&e[i]._package?n[i]=a:n[i]=this.generateRoutesMap(e[i],a)}return n}}],n&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function o(e,t){for(var n=0;n=4?e.slice(0,4).join("/"):null}}])&&o(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),u=n(4843),l=n(17159),s=n(97551);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(){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",c=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function l(e,t,n,i){var a=t&&t.prototype instanceof p?t:p,o=Object.create(a.prototype),c=new x(i||[]);return r(o,"_invoke",{value:P(e,n,c)}),o}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var h={};function p(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(I([])));m&&m!==t&&n.call(m,a)&&(b=m);var w=y.prototype=p.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function i(r,a,o,c){var u=s(e[r],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==f(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,o,c)}),(function(e){i("throw",e,o,c)})):t.resolve(d).then((function(e){l.value=e,o(l)}),(function(e){return i("throw",e,o,c)}))}c(u.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 c=S(o,n);if(c){if(c===h)continue;return c}}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 u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function S(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,S(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=s(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 j(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(j,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 c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){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 h(e,t,n,r,i,a,o){try{var c=e[a](o),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).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,c,"next",e)}function c(e){h(a,r,i,o,c,"throw",e)}o(void 0)}))}}function v(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(w(w({},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;o=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){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),S(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;S(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 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]:{};T(this,e),this.eventQueue=[],this.batchSize=t.batchSize||7,this.sendInterval=t.sendInterval||1e4,this.maxRetries=t.maxRetries||3,this.retryCount=0,this.isSending=!1,t.token,this.requestKey=t.token?this.encodeKey(t.token):null,this.endpoint="meter.php";var n=document.querySelector("base");if(this.baseUrl=n?n.href:window.location.origin+"/",this.boundHandleBeforeUnload=this.handleBeforeUnload.bind(this),this.website=t.website||null,this.website){var r=this.website.inPublishedMode(),i=this.website.getDomainInfo();this.initialized=!1,(r||null!=i&&i.base_route&&!r)&&this.website.isAnalyticsEnabled()&&this.init()}}var t,n,r,i;return t=e,n=[{key:"init",value:function(){var e=this;this.initialized=!0,window.addEventListener("beforeunload",this.boundHandleBeforeUnload),this.sendIntervalId=setInterval((function(){return e.sendEvents()}),this.sendInterval);var t={url:window.location.href,id:window.location.href,referrer:this.removeBase(document.referrer),resolution:"".concat(window.screen.width,"x").concat(window.screen.height),viewport:"".concat(window.innerWidth,"x").concat(window.innerHeight),timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone};this.trackEvent("load",t)}},{key:"encodeKey",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n="",r=0;r=this.batchSize&&this.sendEvents()}},{key:"sendEvents",value:(r=A().mark((function e(){var t,n,r;return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isSending&&this.eventQueue.length&&this.requestKey){e.next=2;break}return e.abrupt("return");case 2:return this.isSending=!0,e.prev=3,t=this.eventQueue.splice(0,this.batchSize),n={action:"events",events:t,key:this.requestKey},console.log("Analytics: Sending events",n),e.next=9,(0,I.j0)(this.endpoint,n);case 9:e.next=15;break;case 11:e.prev=11,e.t0=e.catch(3),console.error("Analytics: Failed to send events",e.t0),this.retryCount0&&this.requestKey&&(console.log("Analytics: Sending remaining events before unload"),navigator.sendBeacon(this.endpoint+"?action=beacon&key=".concat(this.requestKey),JSON.stringify(this.eventQueue)))}},{key:"destroy",value:function(){clearInterval(this.sendIntervalId),document.removeEventListener("click",this.boundHandleBeforeUnload,!0),window.removeEventListener("beforeunload",this.boundHandleBeforeUnload)}}],n&&D(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();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 M(){M=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",c=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function l(e,t,n,i){var a=t&&t.prototype instanceof d?t:d,o=Object.create(a.prototype),c=new j(i||[]);return r(o,"_invoke",{value:k(e,n,c)}),o}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};u(v,a,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(_([])));b&&b!==t&&n.call(b,a)&&(v=b);var g=p.prototype=d.prototype=Object.create(v);function m(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function i(r,a,o,c){var u=s(e[r],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==F(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,o,c)}),(function(e){i("throw",e,o,c)})):t.resolve(f).then((function(e){l.value=e,o(l)}),(function(e){return i("throw",e,o,c)}))}c(u.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 c=O(o,n);if(c){if(c===f)continue;return c}}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 u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function _(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 c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){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),S(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;S(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 R(e,t,n,r,i,a,o){try{var c=e[a](o),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,i)}function B(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){R(a,r,i,o,c,"next",e)}function c(e){R(a,r,i,o,c,"throw",e)}o(void 0)}))}}function U(e,t){for(var n=0;n\n '.concat(e.title,"

").concat(e.text,"

"));var i=document.createElement("div");i.style=e.style,i.innerHTML=e.content,document.body.appendChild(i);var a=i.querySelector("#closeBtn");return a&&(a.onclick=function(){r.removeModal(i)}),i}},{key:"removeModal",value:function(e){document.body.removeChild(e)}},{key:"reloadPage",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.reloadTimeoutId){var n=t.countdown||30;this.reloadTimeoutId=setTimeout((function(){e.applyReload(t)}),1e3*n),this.showReloadModal(t,n)}}},{key:"applyReload",value:function(e){e.keepPage?window.location.reload():window.location.href="/"}},{key:"cancelReload",value:function(){clearTimeout(this.reloadTimeoutId),this.reloadTimeoutId=null}},{key:"handleError",value:function(e){console.error("An error occurred:",e)}},{key:"showReloadModal",value:function(e,t){var n,r=this,i=e.modal||{title:"Reloading in...",text:''.concat(t,"")},a=this.createModal(i),o=a.querySelector("#countdown");o&&(n=setInterval((function(){o.textContent=--t,t<=0&&clearInterval(n)}),1e3));var c=a.querySelector("#applyReload"),u=a.querySelector("#cancelReload");c&&(c.onclick=function(){return r.applyReload(e)}),u&&(u.onclick=function(){r.cancelReload(),n&&clearInterval(n),r.removeModal(a)})}}],n&&U(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function W(e){return W="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},W(e)}function z(e,t){for(var n=0;n=c)break;localStorage.removeItem(s.key),o+=s.size}}},{key:"removeItem",value:function(e,t){e=q(this,K,re).call(this,e,t),localStorage.removeItem(this.prefix+e)}},{key:"clear",value:function(){for(var e=localStorage.length-1;e>=0;e--){var t=localStorage.key(e);t.startsWith(this.prefix)&&localStorage.removeItem(t)}}},{key:"show",value:function(){for(var e={},t=localStorage.length-1;t>=0;t--){var n=localStorage.key(t);e[n]=localStorage.getItem(n)}console.log(e)}},{key:"pushState",value:function(e,t){var n=q(this,Y,ie).call(this,t);n.items=n.items.slice(0,n.currentIndex+1),n.items.push(e),n.items.length>this.maxHistorySize&&n.items.shift(),n.currentIndex=n.items.length-1,q(this,Q,ae).call(this,n,t)}},{key:"getCurrentState",value:function(e){var t=q(this,Y,ie).call(this,e);return t.items[t.currentIndex]}},{key:"getCurrentIndex",value:function(e){return q(this,Y,ie).call(this,e).currentIndex}},{key:"getPreviousState",value:function(e){var t=q(this,Y,ie).call(this,e);return t.items[t.currentIndex-1]}},{key:"getNextState",value:function(e){var t=q(this,Y,ie).call(this,e);return t.items[t.currentIndex+1]}},{key:"undoState",value:function(e){var t=q(this,Y,ie).call(this,e);return t.currentIndex>0?(t.currentIndex--,q(this,Q,ae).call(this,t,e),t.items[t.currentIndex]):null}},{key:"listState",value:function(e){console.log(q(this,Y,ie).call(this,e))}},{key:"redoState",value:function(e){var t=q(this,Y,ie).call(this,e);return t.currentIndex0}},{key:"hasRedo",value:function(e){var t=q(this,Y,ie).call(this,e);return t.currentIndex6e4*e.maxMinutes+e.timestamp}function ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.ScopeLevel.GLOBAL,t=window.location.pathname,n="",r="";switch("object"===W(e)&&(r=e.suffix,e=e.scopeLevel),e){case this.ScopeLevel.GLOBAL:n="";break;case this.ScopeLevel.PATH:n=t;break;default:var i=parseInt(e.description);n=t.split("/").slice(1,i+1).join("/")||"//"}return n+"".concat(r?"|".concat(r):"")}function re(e,t){var n=q(this,Z,ne).call(this,t);return n?"".concat(n,"|").concat(e):e}function ie(e){return this.getItem("_history",e)||{items:[],currentIndex:-1}}function ae(e,t){this.setItem("_history",e,t)}function oe(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]:{};if("string"!=typeof e)throw new Error("Event name must be a string");if("function"!=typeof t)throw new Error("Callback must be a function");var i=r.receiveLastEvent,a=void 0!==i&&i;if(this.subscribers.has(e)||this.subscribers.set(e,new Set),this.subscribers.get(e).add(t),a&&this.eventHistory.has(e)){var o=this.eventHistory.get(e);t(o)}return function(){return n.unsubscribe(e,t)}}},{key:"unsubscribe",value:function(e,t){this.subscribers.has(e)&&(this.subscribers.get(e).delete(t),0===this.subscribers.get(e).size&&this.subscribers.delete(e))}},{key:"publish",value:function(e,t){if("string"!=typeof e)throw new Error("Event name must be a string");if(this.eventHistory.set(e,t),this.subscribers.has(e)){var n,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return oe(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)?oe(e,t):void 0}}(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,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw a}}}}(this.subscribers.get(e));try{for(r.s();!(n=r.n()).done;){var i=n.value;try{i(t)}catch(t){console.error("Error in event subscriber for '".concat(e,"':"),t)}}}catch(e){r.e(e)}finally{r.f()}}}},{key:"clearEventHistory",value:function(e){e?this.eventHistory.delete(e):this.eventHistory.clear()}}],n&&ce(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function le(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 c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){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),S(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;S(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 fe(e,t,n,r,i,a,o){try{var c=e[a](o),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,i)}function de(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){fe(a,r,i,o,c,"next",e)}function c(e){fe(a,r,i,o,c,"throw",e)}o(void 0)}))}}function he(e){return he="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},he(e)}function pe(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 ve(e){for(var t=1;t%c Uniweb %c(v".concat(t.ver,")"),"color: #FA8400; font-weight: bold; font-size: 18px;","color: #00ADFE; font-weight: bold; font-size: 18px;","color: #333; font-size: 18px; font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;","color: #666; font-size: 9px; font-style: italic;"),console.log("%cPowered by innovation","color: #555; font-size: 12px; font-style: italic;")),Object.preventExtensions(this),window.addEventListener("unhandledrejection",this.onUnhandledRejection.bind(this))}var t,n,r,i,o;return t=e,n=[{key:"runTests",value:function(e,t,n,r){}},{key:"getModule",value:function(e){return this.loadedModules.get(e)||{}}},{key:"hasModule",value:function(e){return!(this.init.modules[e]&&!Object.keys(this.getModule(e)).length)}},{key:"addModule",value:function(e,t){this.loadedModules.set(e,t)}},{key:"getPublicDomain",value:function(){return this.config.data.domainsInfo.publicDomain}},{key:"getAppDomain",value:function(){return this.config.data.domainsInfo.appDomain}},{key:"getAppUrl",value:function(){return this.getAppDomain()+this.config.data.website_route}},{key:"getDomainInfo",value:function(){return this.config.data.domainsInfo.info}},{key:"getBaseRoute",value:function(){return this.getDomainInfo().base_route||""}},{key:"getWidget",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this.siteGlobals.defaultComponents,a=r&&i?i[r]:null;t="_default"===t?"Section":t;var o=(e=e||"WebsiteRemote")&&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.remoteConfig=e.config||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:(o=de(se().mark((function e(t,n){return se().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 o.apply(this,arguments)})},{key:"getProfileRenderer",value:(i=de(se().mark((function e(t){return se().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 i.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:"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],c=a||uniweb.language(),u=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"===he(e)&&!Array.isArray(e))return o?(null==e?void 0:e[c])||(null==e?void 0:e[u])||i:(null==e?void 0:e[c])||i;if("string"==typeof e)try{var l=JSON.parse(e);return"object"===he(l)?o?(null==l?void 0:l[c])||(null==l?void 0:l[u])||i:(null==l?void 0:l[c])||i:l}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:"getOrgUrl",value:function(){var e,t;return(null===(e=this.config.data)||void 0===e||null===(t=e.appData)||void 0===t?void 0:t.homepage)||"/"}},{key:"getPageSettings",value:function(e){var t,n,r=(null===(t=this.config.data)||void 0===t||null===(n=t.appData)||void 0===n?void 0:n.pagesSettings)||{},i=this.localize((null==r?void 0:r[e.toLowerCase()])||"",{},"",!0);if(i){var a=new s.Z(i,{website:this.systemWebsite});return ve(ve({},(null==a?void 0:a.parsed)||{}),{},{elements:(null==a?void 0:a.elements)||[]})}return{}}},{key:"showError",value:function(e){console.error(e)}},{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)),this.errorMessages.push(n+" [code ".concat(e.response.status,"]")),401===e.response.status&&this.notifier.fetchStatus()}}},{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]=ve(ve({},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})}),10)}},{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:"registerGetter",value:function(e,t){this.getters[e]={get:t,cache:{},subscribers:{}}}},{key:"useCompleteProfile",value:function(){var e;if(!this.getters.useCompleteProfile)throw new Error("useCompleteProfile getter is not registered");return(e=this.getters.useCompleteProfile).get.apply(e,arguments)}},{key:"useCompleteProfiles",value:function(){var e;if(!this.getters.useCompleteProfiles)throw new Error("useCompleteProfiles getter is not registered");return(e=this.getters.useCompleteProfiles).get.apply(e,arguments)}},{key:"useCompleteQuery",value:function(){var e;if(!this.getters.useCompleteQuery)throw new Error("useCompleteQuery getter is not registered");return(e=this.getters.useCompleteQuery).get.apply(e,arguments)}},{key:"refreshCompleteProfile",value:function(e){var t=this.getters.useCompleteProfile,n=t.cache,r=t.subscribers;Object.keys(n).forEach((function(t){t.startsWith(e)&&(delete n[t],r[t]&&r[t].forEach((function(e){return e()})))}))}},{key:"debounce",value:function(e,t){var n;return function(){for(var r=arguments.length,i=new Array(r),a=0;a{"use strict";n.d(t,{Z:()=>nn});var r=n(17159),i=n(54574),a=n(8053),o=n(98238),c=n(97551),u=n(40219);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)}var s=["contentProfile"];function f(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(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 d(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,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){c=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw i}}return a}}(e,t)||h(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 h(e,t){if(e){if("string"==typeof e)return p(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)?p(e,t):void 0}}function p(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}function y(){y=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",c=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,i){var a=t&&t.prototype instanceof h?t:h,o=Object.create(a.prototype),c=new x(i||[]);return r(o,"_invoke",{value:P(e,n,c)}),o}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var d={};function h(){}function p(){}function v(){}var b={};u(b,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(I([])));m&&m!==t&&n.call(m,a)&&(b=m);var w=v.prototype=h.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function i(r,a,o,c){var u=f(e[r],e,a);if("throw"!==u.type){var s=u.arg,d=s.value;return d&&"object"==l(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,o,c)}),(function(e){i("throw",e,o,c)})):t.resolve(d).then((function(e){s.value=e,o(s)}),(function(e){return i("throw",e,o,c)}))}c(u.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 c=S(o,n);if(c){if(c===d)continue;return c}}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 u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function S(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,S(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=f(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;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,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function j(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(j,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 c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){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 b(e,t,n,r,i,a,o){try{var c=e[a](o),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,i)}function g(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){b(a,r,i,o,c,"next",e)}function c(e){b(a,r,i,o,c,"throw",e)}o(void 0)}))}}function m(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 w(e){for(var t=1;ta?"ASC"===v?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 c=o.mode,u=o.types;return!("all"===c||(void 0===u?[]:u).length>1)}},{key:"makeWebassetProfile",value:function(e,t){var n,r,i=(null===(n=e.getBasicInfo())||void 0===n?void 0:n.head)||{},a=i.video_url,o=e.getId(),c={id:o,name:null==i?void 0:i.title},l=(null===(r=e.getImageInfo("banner"))||void 0===r?void 0:r.url)||"";if(a){var s,f,d=e.website.localize(a),h=d.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/embed\/|\/v\/|\/)([^\s&]+)/);if(h)s="https://www.youtube-nocookie.com/embed/"+h[1],f="https://img.youtube.com/vi/".concat(h[1],"/maxresdefault.jpg");else if(h=linkVal.match(/(?:https?:\/{2})?(?:w{3}\.)?(?:player\.)?vimeo\.com(?:\/video\/|\/|\/external\/)([^\s&]+)/)){var p=h[1];s=p.startsWith("external")?linkVal:"https://player.vimeo.com/video/"+p,f="https://vumbnail.com/".concat(p,"_large.jpg")}s&&(c=w(w({},c),{},{url:d,metadata:{embedSrc:s,image:l||f,thumbnail:l||f,type:"video",title:null==i?void 0:i.title,description:null==i?void 0:i.description}}))}else{var v=(null==i?void 0:i["video_in_".concat(t)])||"";c=w(w({},c),{},{file:v,metadata:{ext:v.substring(v.lastIndexOf(".")+1,v.length),filename:v.substring(v.lastIndexOf("/")+1,v.length),url:v,image:l,thumbnail:l,title:null==i?void 0:i.title,description:null==i?void 0:i.description}})}var y={data:u.Z.makeWebAssetProfileData(c)};return uniweb.newProfile("webasset/profile",o,y)}},{key:"fetchAndCache",value:(m=g(y().mark((function t(n){return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.fetch(n).then((function(t){return t.map((function(t){var r=t.contentProfile,i=v(t,s);return"video"===r.getContentType()?w({contentProfile:e.makeWebassetProfile(r,n.activeLang)},i):t}))})));case 1:case"end":return t.stop()}}),t)}))),function(e){return m.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:(b=g(y().mark((function t(n){var r,i,a,o,c,u,l,s,f,d,h,p,v,b,g,m,k,O,P;return y().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,c=i.type,u=void 0===c?"primary":c,l=i.detail,s=void 0===l?{}:l,f=i.params,d=void 0===f?{}:f,h=s.type,p=void 0===h?"full":h,v=s.params,b=void 0===v?{}:v,g=o.report,m="",k="","partial"===p&&(P=(null===(O=Object.values(b))||void 0===O?void 0:O[0])||{},m=null==P?void 0:P.section,k=null==P?void 0:P.field),t.abrupt("return",e.fetchPrimaryProfiles(n).then((function(t){if("primary"===u){var r=t[0],i=r?r.getProfileType():"";return"folder/profile"===i||"website/folder"===i?Promise.all(t.map((function(t){return t.folder.getFiles().then((function(n){var r={contentProfile:t};return m&&(r.data=e.getDetail(t,m,k)),r}))}))).then((function(e){return e.flat()})):t.map((function(t){var r={contentProfile:t};return m?r.data=e.getDetail(t,m,k):g&&(r.data=e.getSectionItems(t,g,n)),r}))}if(t.length){var a=t[0].getProfileType(),o=d.mode,c=d.types,l=void 0===c?[]:c,s=null;if("list/profile"===a?(m="",s=e.fetchFromList(w(w({},n),{},{mainProfiles:t}))):"folder/profile"===a||"website/folder"===a?(m="",s=e.fetchFromFolder(w(w({},n),{},{mainProfiles:t}))):(s=e.fetchLinkedProfiles(w(w({},n),{},{mainProfiles:t})),("all"===o||l.length>1)&&(m="")),s)return s.then((function(t){return e.fetchUniqueProfiles(t).map((function(t){var n={contentProfile:t};return m&&(n.data=e.getDetail(t,m,k)),n}))}))}return Promise.resolve([])})));case 7:case"end":return t.stop()}}),t)}))),function(e){return b.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:(p=g(y().mark((function t(n){var r,i,a,o,c,u,l,s,f,d,h,p;return y().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,c=i.type,u=i.params,l=void 0===u?{}:u,"main"===c?s=Promise.resolve([o.getMainProfile()]):"owner"===c?s=e.fetchFromManualSection({activeLang:a,type:"members/profile",ids:[o.getOwnerId()]}):"manual"===c?(f=l.type,d=l.id,s=e.fetchFromManualSection({activeLang:a,type:f,ids:d})):"dynamic"===c&&(h=l.mode,p=l.id,s=e.fetchFromDynamicContent({activeLang:a,mode:h,id:p,website:o})),t.abrupt("return",s);case 4:case"end":return t.stop()}}),t)}))),function(e){return p.apply(this,arguments)})},{key:"fetchFromManualSection",value:(h=g(y().mark((function e(t){var n,i,a;return y().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 h.apply(this,arguments)})},{key:"fetchFromDynamicContent",value:(l=g(y().mark((function t(n){var r,i,a,o,c,u,l,s,f;return y().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?(l=o.activePage,(s=l.getRoute()).includes("/index")||"index"===s?"index"===s?c=o.getPageInfo("/[id]","id"):(f=s.replace("/index","/[id]"),c=o.getPageInfo(f,"id")):c=l.getPageId()):c="single"===r?o.activePage.getPageId():i,c){t.next=4;break}return t.abrupt("return",Promise.resolve([]));case 4:return u=o.getPageInfo(c,"data_source_info"),t.abrupt("return",e.fetchAndCache(w(w({},u),{},{activeLang:a,website:o})).then((function(t){return e.sortAndFilter(u,t,a)})).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[]}return t})));case 6:case"end":return t.stop()}}),t)}))),function(e){return l.apply(this,arguments)})},{key:"fetchLinkedProfiles",value:(c=g(y().mark((function t(n){var r,i,a,o,c,u,l,s,h,p,v,b,m,w,k,O,P;return y().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,c=i.params,l=(u=void 0===c?{}:c).mode,s=u.types,h=void 0===s?[]:s,p=[],v=null==a?void 0:a[0],"all"===l?(b=v.getSectionsWithRelationFields(),p=[],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=d(v.findRelationField(e,t),2);return{type:e,section:n[0],field:n[1]}})),p=[].concat(f(p),f(i))}))):"custom"===l?p=h.map((function(e){var t=d(v.findRelationField(e),2);return{type:e,section:t[0],field:t[1]}})):"specific"===l&&(m=null==h?void 0:h[0],w=v.findRelationField(m,(null==u?void 0:u.section)||""),k=d(w,2),O=k[0],P=k[1],p=[{type:m,section:O,field:P}]),t.abrupt("return",Promise.all(a.map(function(){var t=g(y().mark((function t(n){return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Promise.all(p.map((function(t){var r=t.type,i=t.section,a=t.field,c=n.getLinkedProfiles(r,i,a).map((function(e){return e.getId()}));return e.fetchFromManualSection({type:r,ids:c,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 c.apply(this,arguments)})},{key:"fetchFromFolder",value:(o=g(y().mark((function e(t){var n,r,i,a,o,c,u,l,s;return y().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,u=(c=void 0===o?{}:o).mode,l=c.types,s={activeLang:a,mode:u,types:void 0===l?[]:l},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=g(y().mark((function t(n){var i,a,o,c,u,l,s,f,d,h;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=n.select,a=void 0===i?{}:i,o=n.mainProfiles,c=n.activeLang,u=a.params,s=(l=void 0===u?{}:u).mode,f=l.types,d=void 0===f?[]:f,h=o.map((function(e){return e.getId()})),t.abrupt("return",Promise.all(h.map((function(e){return r.Z.getListProfileItems(e)}))).then(function(){var t=g(y().mark((function t(n){var r,i;return y().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:c}))})),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 null==e?void 0: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&&O(t.prototype,n),i&&O(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function S(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 j(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,c=void 0===o?100:o;return"white"===r||"black"===r?r:0===parseInt(c)?t:r?"rgba(var(--".concat(r,"-").concat(a,") / ").concat(c/100,")"):t}},{key:"getWrapperProps",value:function(){var e,t,n=this.block.isThemingDisabled()?"":this.block.themeName,r=(null===(e=this.block.state)||void 0===e?void 0:e.className)||"",i=n||"";r&&(i="".concat(i?"".concat(i," "):"").concat(r));var a=this.block.standardOptions,o=a.background,c=void 0===o?{}:o,u=a.colors,l=void 0===u?{}:u,s=a.overlay,f=void 0===s?{}:s,d={},h=["50","100","200","300","400","500","600","700","800","900","950"],p=l.vars,v=void 0===p?{}:p,y=l.elements,b=void 0===y?{}:y,g=(null==n||null===(t=n.split("__"))||void 0===t?void 0:t[1])||"light",m=(null==v?void 0:v[g])||{},w=(null==v?void 0:v.light)||{};["primary","secondary","accent","neutral"].forEach((function(e){h.forEach((function(t){var n="--".concat(e,"-").concat(t),r=m[n]||w[n]||"";r&&(d[n]=r)}))}));var k=b[g]||{},O=b.light||{};if(["bg-color","text-color","heading-color","link-color","link-active-color","link-hover-color","icon-color","btn-color","btn-text-color","btn-hover-color","btn-hover-text-color","btn-alt-color","btn-alt-text-color","btn-alt-hover-color","btn-alt-hover-text-color","callout","muted","highlight"].forEach((function(e){var t=k[e]||O[e]||"";t&&(d["--".concat(e)]=t)})),c){var P=c.mode;if("gradient"===P){var S=(null==c?void 0:c.gradient)||{},_=S.enabled,x=void 0!==_&&_,I=S.start,E=S.end,A=S.angle,L=void 0===A?0:A,C=S.startPosition,T=void 0===C?0:C,D=S.endPosition,N=void 0===D?100:D,F=S.startOpacity,M=void 0===F?.7:F,R=S.endOpacity,B=void 0===R?.3:R;uniweb.toBoolean(x)&&(I=I||"transparent",E=E||"transparent",d["--bg-color"]="linear-gradient(".concat(L,"deg, \n ").concat(this.hexToRgba(I,M)," ").concat(T,"%, \n ").concat(this.hexToRgba(E,B)," ").concat(N,"%)"))}else if("image"===P||"video"===P){var U=(null==c?void 0:c[P])||{},G=U.url,W=void 0===G?"":G,z=U.file,H=void 0===z?"":z;d=j(j({},d),{},{position:"relative",maxWidth:"100%"}),(W||H)&&(d["--bg-color"]="transparent")}}return uniweb.toBoolean((null==f?void 0:f.enabled)||!1)&&(d.position="relative"),{id:"Section".concat(this.block.id),style:d,className:i}}},{key:"getBgComponentProps",value:function(){var e=this.block.standardOptions,t=e.background,n=e.overlay,r=e.effects,i={};if(t){var a=t.mode,o=void 0===a?"color":a;if("video"===o){var c,u=(null==t?void 0:t.video)||{},l=u.url,s=void 0===l?"":l,f=u.file,d=void 0===f?"":f,h=s||d&&(null===(c=uniweb.newProfile("docufolio","_background").getAssetInfo(d))||void 0===c?void 0:c.src)||"";h&&(i={video:{src:h}})}else if("image"===o){var p,v=(null==t?void 0:t.image)||{},y=v.url,b=void 0===y?"":y,g=v.file,m=void 0===g?"":g,w=b||m&&(null===(p=uniweb.newProfile("docufolio","_background").getAssetInfo(m))||void 0===p?void 0:p.optSrc)||"";w&&(i={image:{imgPos:!0,url:w}})}}if(n){var k=n.enabled,O=void 0!==k&&k,P=n.start,S=n.end,j=n.angle,_=void 0===j?0:j,x=n.startPosition,I=void 0===x?0:x,E=n.endPosition,A=void 0===E?100:E,L=n.startOpacity,C=void 0===L?.7:L,T=n.endOpacity,D=void 0===T?.3:T;P=P||"transparent",S=S||"transparent",uniweb.toBoolean(O)&&(P=P||"transparent",S=S||"transparent",i.overlay="linear-gradient(".concat(_,"deg, \n ").concat(this.hexToRgba(P,C)," ").concat(I,"%, \n ").concat(this.hexToRgba(S,D)," ").concat(A,"%)"))}if(r){var N=r.enabled,F=void 0!==N&&N;uniweb.toBoolean(F)&&(i.effects=r)}return i}}],n&&_(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function E(e){return E="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(e)}function A(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,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){c=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw i}}return a}}(e,t)||T(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 L(){L=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",c=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function l(e,t,n,i){var a=t&&t.prototype instanceof d?t:d,o=Object.create(a.prototype),c=new j(i||[]);return r(o,"_invoke",{value:k(e,n,c)}),o}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};u(v,a,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(_([])));b&&b!==t&&n.call(b,a)&&(v=b);var g=p.prototype=d.prototype=Object.create(v);function m(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function i(r,a,o,c){var u=s(e[r],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==E(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,o,c)}),(function(e){i("throw",e,o,c)})):t.resolve(f).then((function(e){l.value=e,o(l)}),(function(e){return i("throw",e,o,c)}))}c(u.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 c=O(o,n);if(c){if(c===f)continue;return c}}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 u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function _(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 c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){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),S(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;S(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 C(e,t,n,r,i,a,o){try{var c=e[a](o),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,i)}function T(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);n0&&void 0!==arguments[0]?arguments[0]:{},n=this.website;if(t.nested){var r,i=(null===(r=this.main.body)||void 0===r?void 0:r.lists)||[];if(t.grouped)return i.map((function(t){return e.parseNestedLinks(t,n)}));var a=i[0];return e.parseNestedLinks(a,n)}var o,c=(null===(o=this.main.body)||void 0===o?void 0:o.links)||[];return c.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=T(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,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw a}}}}(this.items);try{for(r.s();!(t=r.n()).done;){var i=t.value;n.push(e.parseBlockContent(i))}}catch(e){r.e(e)}finally{r.f()}return n}},{key:"getBlockContent",value:function(){return e.parseBlockContent(this.main)}},{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:"isThemingDisabled",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 c.Z.stripTags(e)}},{key:"fetchInput",value:(i=L().mark((function e(){var t,n,r=this;return L().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 P(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){C(a,n,r,o,c,"next",e)}function c(e){C(a,n,r,o,c,"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=A(e(t),2),i=r[0],a=r[1];return this.resetStateHook=function(){return a(t)},[i,function(e){return a(n.state=e)}]}},{key:"trackEvent",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i={data:r,id:"".concat(this.website.getSiteId(),"_").concat(this.page.getPageId(),"_").concat(this.id),section_id:this.id,page_id:this.page.getPageId(),section_type:(null===(t=this.widget)||void 0===t?void 0:t.category)||"Section",section_title:this.getBlockTitle(),section_dispay_name:this.displayTitle},a=this.main,o=a.banner,c=a.body,u=o||(null==c?void 0:c.imgs[0]);return null!=u&&u.value?i.section_banner=(null===(n=this.page.getPageProfile().getAssetInfo(null==u?void 0:u.value))||void 0===n?void 0:n.src)||"":null!=u&&u.url&&(i.section_banner=u.url),this.website.trackEvent(e,i)}}],r=[{key:"parseBlockContent",value:function(e){var t,n=e.banner,r=e.body,i=e.header,a=(null==i?void 0:i.title)||"",o=(null==i?void 0:i.pretitle)||"",c=(null==i?void 0:i.subtitle)||"",u=(null==i?void 0:i.description)||"",l=(null==r||null===(t=r.propertyBlocks)||void 0===t?void 0:t[0])||{},s=(null==r?void 0:r.links)||[],f=(null==r?void 0:r.imgs)||[];return{banner:n,pretitle:o,title:a,subtitle:c,description:u,paragraphs:(null==r?void 0:r.paragraphs)||[],images:f,links:s,icons:(null==r?void 0:r.icons)||[],properties:l,videos:(null==r?void 0:r.videos)||[],lists:(null==r?void 0:r.lists)||[],buttons:(null==r?void 0:r.buttons)||[]}}},{key:"parseChildBlocks",value:function(t,n,r){var i=[];return null!=t&&t.size&&Array.from(t).forEach((function(t){var a=A(t,2),o=(a[0],a[1]);if(!o.hidden||"0"===o.hidden){var c=new e(n.website.parseTopicSection(o,r,!0),n);i.push(c)}})),i}}],n&&F(t.prototype,n),r&&F(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();M(R,"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=e.icons,c=r[0],u=i[0],l=a[0],s=o[0],f="",d="",h=[],p=!0;c?(f=c.label,d=c.href,u&&(h=R.parseNestedLinks(u,t))):(f=l,p=!1,u&&(h=R.parseNestedLinks(u,t))),n.push({label:f,route:t.makeHref(d),child_items:h,hasData:p,icon:s||null})})),n}));var B=["activeRoute","targetRoute","pageProps","activeLang"];function U(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,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw a}}}}function G(e,t){if(e){if("string"==typeof e)return W(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)?W(e,t):void 0}}function W(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,B);!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=c||{},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 R(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=uniweb.newProfile("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=e.activeContent,i=void 0===r?{}:r,a=e.pathname,o=i.label,c=this.pageProps,u=c.title,l=c.lead_text,s=this.website.localize(u,"",this.activeLang),f=this.website.localize(l,"",this.activeLang),d=this.website.localize(o,"",this.activeLang),h=s||t;return{title:h&&"index"!==h?h:d&&"index"===d?a:d,description:f||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,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw a}}}}function Q(e,t){if(e){if("string"==typeof e)return X(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)?X(e,t):void 0}}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n!&|]+)/,ne={"|":1,"&":2,"=":3,"!=":3,"<":4,"<=":4,">":4,">=":4,"+":5,"-":5,"*":6,"/":6,"%":6,"!":7};function re(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,c=[],u=0,l="",s=!1,f="",d=[],h="",p=0,v=["'",'"',"`","‘","’","“","”"],y=function(e,t){return e===t||["‘","’"].includes(e)&&["‘","’"].includes(t)||["“","”"].includes(e)&&["“","”"].includes(t)};function b(e,t){if(a&&"text"==e){var n,r=Y(t.trim().split(ee));try{for(r.s();!(n=r.n()).done;){var i=n.value;o&&(i=ae(i)),""!==i&&c.push({type:e,value:i})}}catch(e){r.e(e)}finally{r.f()}}else c.push({type:e,value:t});l=""}function g(e){0===p?(""!==l&&b("text",l),l=e):l+=e}for(;ui?(g(m),s=!0,f=m):s&&y(f,m)?(l+=m,s=!1,0===p&&b("quote",l)):l+=m:(l+=m,d.pop(),h=--p>0?t[d[p-1]]:"",0===p&&b("enclosure",l)),u++}return""!==l&&b("text",l),c}function ie(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if("string"!=typeof e)return e instanceof Object?Z({},e):{};var n=re(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 oe(e){var t,n,r,i,a=[],o=[],c=Y(e);try{for(c.s();!(i=c.n()).done;){var u=i.value;if(u.isOperator){for(;o.length>0&&ne[o[o.length-1]]>=ne[u.value];)t=o.pop(),n=a.pop(),r=a.pop(),a.push("(".concat(t," ").concat(r," ").concat(n,")"));o.push(u.value)}else a.push(u.value)}}catch(e){c.e(e)}finally{c.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 ce(e){var t,n=[{type:"text",value:e.name}],r=Y(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 ue(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=se(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,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw a}}}}function le(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,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){c=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw i}}return a}}(e,t)||se(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 se(e,t){if(e){if("string"==typeof e)return fe(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)?fe(e,t):void 0}}function fe(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",c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};he(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=c.fieldMapping||{},this.customSections=c.customSections||{}}var t,n;return t=e,n=[{key:"getFieldMapping",value:function(){var e,t,n,r=(de(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"),de(e,"organizer",["supervisor","distributor"]),de(e,"recipient",["student","person_acted_for"]),de(e,"authority","court"),de(e,"section","section"),de(e,"submitted",["date_submitted","filing_date"]),de(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 c=!0,u=function(e){if(Array.isArray(e))return fe(e)}(n=t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||se(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&&(c=!1),n})),c?(u.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=le(a[i],2),r=(t[0],t[1]);Object.entries(e).forEach((function(t){var i=le(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=ue(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&&pe(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),ge=n(43488),me=["style","locale"];function we(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&&ke(e,t)}function ke(e,t){return ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ke(e,t)}function Oe(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=Se(e);if(t){var i=Se(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Pe(this,n)}}function Pe(e,t){if(t&&("object"===Ie(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 Se(e){return Se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Se(e)}function je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _e(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,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw a}}}}function Re(e,t){if(e){if("string"==typeof e)return Be(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)?Be(e,t):void 0}}function Be(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","auto"],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"]}},We={accessor:{"":{handler:function(e,t,n){var r=n[0],i=n.slice(1);if(!i.length)return r;if(ot(r)){if(i.length>1||ut(i[0])){var a,o=[],c=Me(1==i.length?i[0]:i);try{for(c.s();!(a=c.n()).done;){var u=a.value;o.push(e(r,u))}}catch(e){c.e(e)}finally{c.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(st(e)&&(e=e.toString()),ct(e))return at(e,t);if(ut(e)){var n,r={},i=Me(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;r[a]=at(a,t)}}catch(e){i.e(e)}finally{i.f()}return r}if(ot(e)){var o={};for(var c in e)o[e[c]]=at(c,t);return o}}},collector:{"":function(e,t,n){var r=Ye(n);return r.length?r.reduce(e):""},"++":Je,"++!!":function(e,t){return it(t)?e:e+1}},creator:{"":{handler:function(e,t,n){if(["~","phone","address","ref","email"].includes(t._name)&<(n)){var r=Ve(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},"^":Ve,"~":function(e,t){return new jt(e,t)},"\\":function(e,t){return new RegExp(t,e)},"@":function(e,t){return new St(e,t)},"<>":function(e,t){return new _t(e,t)},phone:function(e,t){return new xt(e,t)},address:function(e,t){return new It(e,t)},org:function(e,t){return new Et(e,t)},ref:function(e,t){return new At(e,t)},currency:function(e,t){return new Lt(e,t)},email:function(e,t){return new Ct(e,t)}},filter:{"":function(e,t,n){if(!lt(n))return e(n);for(var r=Ve({},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 st(e)&&st(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},"=":function(e,t){return e==t},"==":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t}},sorter:{"":function(e,t,n){if(!lt(n))return e(t,n);for(var r=Ve({},n),i=[],a=0;a>":function(e,t){var n=e.date?et:tt,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(lt(r)||lt(i)){for(var o=Math.max(qe(r),qe(i)),c={sz:o},u=Ve(c,r),l=Ve(c,i),s=[],f=0;fu.length?o.push([].concat(Ce(u),Ce(Array(r-u.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,me);return new be(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,Ne(Ne({},i),{},Fe({},e.type,e[e.type]))||{},t),e.title&&ct(t)&&(t=bt(t,e.locale)),e.aux&&(ut(t)&&(t=t.join(e.sep||", ")),t=Ot(e,t)),e.label&&(ut(t)&&(t=t.join(e.sep||", ")),!0===e.label&&(e.label=e._params[0]),t=function(e,t){return t||e.force?new _t(e,[["u-inline-value-group",new _t(e,[["label",e.label],["span",t]])]]).format():""}(e,t)),e.heading&&(ut(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 _t(e,[["u-value-group",new _t(e,[["h".concat(n),e.heading],["span",t]])]]).format()}(e,t)),e.wrap&&(it(t)?t="":(!0===e.wrap&&(e.wrap="()"),t=e.wrap[0]+t+e.wrap[1])),t}function et(e,t,n){var r=nt(t),i=nt(n);return ft(r)&&ft(i)?ht(r,"date").getTime()-ht(i,"date").getTime():tt(e,t,n)}function tt(e,t,n){var r=nt(t),i=nt(n),a=st(r),o=st(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 nt(e){return ut(e)?e[0]:e instanceof Map?e.values().next().value:ot(e)?e[Object.keys(e)[0]]:e}function rt(e,t,n){for(var r=0;rt.length?n[t.length]:null}function it(e){return!e||"0"===e||(Array.isArray(e)?0===e.length:!!(e instanceof Pt&&"function"==typeof e.isEmpty&&e.isEmpty())||"object"===Ie(e)&&e.constructor===Object&&0===Object.keys(e).length)}function at(e,t){for(var n=e.split("."),r=t,i=0;i2&&void 0!==arguments[2]?arguments[2]:{};switch(t){case"boolean":return!it(e);case"date":return ft(e)?e instanceof Date||"auto"===n.date&&dt(e)?e:new Date(e.replace(/-/g,"/")):null;case"text":case"string":return ct(e)?e:Ze(Ye(e));case"list":return ut(e)?e:ot(e)?Ye(e):null;case"object":return ot(e)?e:null;case"number":return st(e)?parseFloat(e):ft(e)?ht(e,"date").getTime():0;case"range":return e instanceof jt?e:ut(e)?new jt(n,e):ot(e)?new jt(n,[e.start,e.end]):new jt(n,[e]);case"tag":return e instanceof _t?e:ut(e)?new _t(n,[e]):e instanceof Pt?new _t(n,[[null,e,null]]):ot(e)?new _t(n,[e]):new _t(n,[[null,e,null]])}return e}function pt(e){if(e instanceof Pt)return"entity";if(e instanceof Date)return"date";var t=Ie(e);return"undefined"==t||null===e?"null":"boolean"==t?t:ut(e)?"list":st(e)?"number":ft(e)?"date":ot(e)?"object":t}function vt(e,t){var n,r=[],i=Me(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;ut(a)?a=vt(e,a):ot(a)&&(a=yt(0,a)),a&&r.push(a)}}catch(e){i.e(e)}finally{i.f()}return r.join(void 0===e.sep?" ":e.sep)}function yt(e,t){return JSON.stringify(t)}function bt(e,t){t=mt(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 gt(e){Ue=e||document.documentElement.getAttribute("lang")||"en"}function mt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return Ue||gt(),e||Ue}function wt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return mt(e).split("-")[0].toLowerCase()}function kt(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"}[wt(e)]}function Ot(e,t){return t?new _t(e,[["u-aux",t]]).format():""}var Pt=function(){function e(t,n){if(je(this,e),this.flags=Ne({},t),this.values=Array.isArray(n)?Ce(n):"object"===Ie(n)?Ne({},n):n,this.parsedArgs=null,(this instanceof e?this.constructor:void 0)===e)throw new TypeError("Cannot instantiate BaseEntity directly.")}return xe(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 c=[],u=[];o.forEach((function(n){if(Array.isArray(n)){var r=t.applyFunction(e,n);c.push(r),u.push(r)}else c.push(i.includes(n)),u.push((null==e?void 0:e[n])||"")}));var l=rt(0,c,u);n[a]=l})),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}(),St=function(e){we(n,e);var t=Oe(n);function n(e,r){var i;je(this,n),i=t.call(this,e,r);var a=ut(r)?null==r?void 0:r[0]:r;return i.values=ot(a)?a:{},i}return xe(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}(Pt),jt=function(e){we(n,e);var t=Oe(n);function n(e,r){var i;je(this,n),i=t.call(this,e,r);var a=Ye(r),o=a[0],c=a[1];return i.givenStart=o,i.givenEnd=c,i.includeStart=!e.open,i.includeEnd=!e.open,i.flags.type||(i.flags.type=pt(o||c)),i.start=ht(o,"number"),i.end=ht(c,"number"),i}return xe(n,[{key:"contains",value:function(e){if(e instanceof n)return this.overlaps(e);e=ht(e,"number");var t=!this.start||(this.includeStart?e>=this.start:e>this.start),r=!this.end||(this.includeEnd?e<=this.end:e=this.start:e.start>this.start)&&(this.includeEnd||e.includeEnd?e.end<=this.end:e.end=e.start:this.start>e.start)&&(this.includeEnd||e.includeEnd?this.end<=e.end:this.end=this.start:e.end>this.start);return t||n||r}return this.start&&!this.end?!e.start||(this.includeStart||e.includeStart?e.start>=this.start:e.start>this.start):!this.start&&this.end?!e.end||(this.includeEnd||e.includeEnd?e.end<=this.end:e.end=this.start:e.start>this.start)&&(this.includeEnd?e.start<=this.end:e.start=this.start:e.end>this.start)&&(this.includeEnd||e.includeEnd?e.end<=this.end:e.end=this.start:e.end>this.start:!this.start&&!this.end||!e.start&&!e.end||!(this.start||this.end||e.start||e.end)}},{key:"format",value:function(e){var t=(e=Ne(Ne({},e),this.flags)).separator||" – ",n=this.givenStart,r=this.givenEnd;return"date"===e.type?(n=n?Xe(e,n):kt(e.locale),r=r?Xe(e,r):kt(e.locale)):"range"!==e.type&&(n=Xe(e,n||""),r=Xe(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}(Pt),_t=function(e){we(n,e);var t=Oe(n);function n(e,r){var i;je(this,n),i=t.call(this,e,r);var a=e.tag,o=a?ut(a)?a:[a]:[];return i.markups=r.map((function(e){var t="",n="",r={};if(Array.isArray(e)){var i=Ee(e,3);t=i[0],n=i[1];var a=i[2];r=void 0===a?{}:a}else"object"===Ie(e)?(t=e.tag||"",n=e.children||"",r=e.attrs||{}):"string"==typeof e&&(n=e);var c=t?[].concat(Ce(o),[t]):Ce(o);return c.length||(c=["span"]),{tag:c,children:n,attrs:r}})),i}return xe(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 Pt&&o.isEmpty())return""}if(0===n&&(i=a),i&&Object.keys(i).length){r="_self"===r?"span":r;var c=Object.keys(i).reduce((function(e,t){return"".concat(e," ").concat(t,'="').concat(i[t],'"')}),"");o="<".concat(r).concat(c,">").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}(Pt),xt=function(e){we(n,e);var t=Oe(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 xe(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 jt({},[i,a]).format();return[Ke([t,":"]),Ke(["+",n]),this.buildNumber(),Ke(["x ",r]),o?new _t({},[["u-aux",o]]).format():""].filter(Boolean).join(" ")}},{key:"buildNumber",value:function(){var e=this.parsedArgs,t=e.area,n=e.number;return t||n?Ke([Ke(["(",t,") "]),n]):""}},{key:"isEmpty",value:function(){return!this.buildNumber()}},{key:"toString",value:function(){return this.format()}}]),n}(Pt),It=function(e){we(n,e);var t=Oe(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 xe(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,c=void 0===o?"":o,u=e.line3,l=void 0===u?"":u,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,b=e.start,g=void 0===b?"":b,m=e.end,w=void 0===m?"":m;return[Ze(0,[" ",Xe({tag:"bold",type:"tag",bold:!0},Ke([t,":"])),Ze(0,[" ",a,Ke(["(",new jt({},[g,w]),")"])])]),c,l,f,h,Ze(0,[", ",r,Ze(0,[" ",p,Ke(["(",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}(Pt),Et=function(e){we(n,e);var t=Oe(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 xe(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 _t({},[["u-org",new _t({},[["u-org-name",n],["_self",Ot({},r)]])]]).format()}},{key:"isEmpty",value:function(){return!this.parsedArgs.organization}},{key:"toString",value:function(){return this.format()}}]),n}(Pt),At=function(e){we(n,e);var t=Oe(n);function n(e,r){return je(this,n),t.call(this,e,Ye(r))}return xe(n,[{key:"format",value:function(){var e,t=Le(e=this.values)||Te(e)||Re(e)||Ae(),n=t[0],r=t.slice(1),i=Ze(0,[" - "].concat(Ce(r)));return n?new _t({},[["u-ref",new _t({},[["u-ref-name",n],["_self",Ot({},i)]])]]).format():""}},{key:"isEmpty",value:function(){return!this.values||!this.values.length}},{key:"toString",value:function(){return this.format()}}]),n}(Pt),Lt=function(e){we(n,e);var t=Oe(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 xe(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=ge.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 _t({},[["u-currency",new _t({},a)]]).format()}},{key:"isEmpty",value:function(){return!this.parsedArgs.amount}},{key:"toString",value:function(){return this.format()}}]),n}(Pt),Ct=function(e){we(n,e);var t=Oe(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 xe(n,[{key:"getFieldMapping",value:function(){return{type:["type","email_type"],email:["address","email_address"],start:["start","email_start_date","start_date"],end:["end","email_end_date","end_date"]}}},{key:"format",value:function(){if(this.isEmpty())return"";var e=this.parsedArgs,t=e.type,n=e.email,r=e.start,i=void 0===r?"":r,a=e.end,o=new jt({},[i,void 0===a?"":a]).format();return[Ke([t,":"]),n,o?new _t({},[["u-aux",o]]).format():""].filter(Boolean).join(" ")}},{key:"isEmpty",value:function(){var e=this.parsedArgs,t=e.type,n=e.email;return!t||!n}},{key:"toString",value:function(){return this.format()}}]),n}(Pt);function Tt(e){return Tt="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},Tt(e)}function Dt(e){return function(e){if(Array.isArray(e))return Mt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ft(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 Nt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ft(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,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw a}}}}function Ft(e,t){if(e){if("string"==typeof e)return Mt(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)?Mt(e,t):void 0}}function Mt(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]:{};Rt(this,e),this.snippets=ie(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 at(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=re(e,{"{":"}"}),a="",o=Nt(i);try{for(o.s();!(r=o.n()).done;){var c=r.value;if("enclosure"===c.type){var u=c.value.slice(1,-1);u.startsWith("{")&&u.endsWith("}")&&(u=u.slice(1,-1));try{"string"!=typeof(u=this.evaluateText(u,null,n))&&(u=$e("#",{l:!0,sep:", "},[u]),Array.isArray(u)&&u.every((function(e){return"string"==typeof e}))&&(u=u.join(", ")))}catch(e){u=e}a+=u}else a+=c.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),Ut.test(e)?this.getVariable(e,n):this.evaluateFunction(e,n)}},{key:"evaluateList",value:function(e,t){var n=re(e,{"(":")","[":"]","{":"}"},{minQuoteLevel:-1,splitText:!0});if(!n.length)return"";var r,i=[],a=Nt(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=re(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 c(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=Y(e);try{for(o.s();!(i=o.n()).done;){var c=i.value;if("text"===c.type)if((t=c.value.split(te)).length<=1)a.push(c);else for(var u=0;u!&|".includes(n[0]),"!"===n&&a.push({type:"text",value:""}),a.push({type:"text",value:n,isOperator:r}));else a.push(c)}}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 X(e)}(t=o.splice(h,1))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||Q(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"}:Ut.test(n)?{value:this.getVariable(n,t),label:this.getVariableMeta(n).label,type:"variable"}:Gt.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?ht(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,c){a&&o.set("$0",e);for(var u=0;u=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){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),S(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;S(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 qt(e,t,n,r,i,a,o){try{var c=e[a](o),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,i)}function Vt(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){qt(a,r,i,o,c,"next",e)}function c(e){qt(a,r,i,o,c,"throw",e)}o(void 0)}))}}function Jt(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,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){c=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(c)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 Kt(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)?Kt(e,t):void 0}}function Kt(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";en(this,e);var c=t.domainsInfo||{},u=t.websiteData;this.isSitePublic=t.isWebsitePublic||!1,this.domainInfo=c.info||{},this.isPublished=c.publishedMode,this.domains=c.domains,this.isReady=!!u,this.websiteData=u||{},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=o,this.pageHierarchy=null,this.pageRoutes={},this.rootClassName="",this.remoteConfig={},this.layout={},this.pages=new V,this.activePath=null,this.timeStep=0;var l=this.websiteData.downloadOptions;this.outputParams=l?JSON.parse(l):{},this.reloadSite=null,this.initLang(this.domainInfo.lang||this.getPrimaryLang()),this.initDocuments(),this.defineConstProperty("siteId",this.websiteData.siteId),this.defineConstProperty("handle",null===(i=this.websiteData.siteMeta)||void 0===i?void 0:i._handle),this.defineConstProperty("name",null===(a=this.websiteData.siteMeta)||void 0===a?void 0:a.name),Object.preventExtensions(this)}var t,n,c,u,l,s;return t=e,n=[{key:"setOutputParams",value:function(e){this.outputParams=e}},{key:"initLang",value:function(e){this.websiteLang=e,r.Z.setWebsiteLanguage(e),this.initGA()}},{key:"setLang",value:function(e){this.initLang(e),this.resetDocuments(),this.getMainProfile()&&this.getMainProfile().resetComputedData()}},{key:"initDocuments",value:function(){var e=this,t=this.websiteData.documents||[];t.length&&(this.websiteData.documents=t.map((function(t){var n=t.pages;return{docId:t.docId,pages:e.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,Qt(Qt({},e),{},{route:a,fullRoute:i,child_items:t.initPageRoutes(r,i)})}))}},{key:"resetDocuments",value:function(){var e=this,t=this.websiteData.documents||[];t.length&&(this.websiteData.documents=t.map((function(t){var n=t.pages;return{docId:t.docId,pages:e.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 Qt(Qt({},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.domains}},{key:"getDomainInfo",value:function(){return this.domainInfo}},{key:"isPublic",value:function(){return this.isSitePublic}},{key:"inPublishedMode",value:function(){return this.isPublished}},{key:"getLanguage",value:function(){return this.websiteLang}},{key:"getLanguagePreference",value:function(){return this.websiteData.language}},{key:"getSnippets",value:function(){return this.websiteData.snippets||{}}},{key:"getLanguages",value:function(){var e=this.websiteData.language,t={en:"English",fr:"Français",zh:"简体中文",es:"Español"};try{return JSON.parse(e).map((function(e){var n=e.value,r=e.label;return{value:n,label:t[n]||r||n}}))}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:"getOwnerId",value:function(){var e;return null===(e=this.getData())||void 0===e?void 0:e.ownerId}},{key:"getData",value:function(){return this.websiteData}},{key:"getWebsiteProfile",value:function(){if(null===this.websiteProfile){var e,t,n,r,i={_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===(r=n.siteMeta)||void 0===r?void 0:r._banner};this.websiteProfile=uniweb.newProfile("website",this.getSiteId(),{head:i})}return this.websiteProfile}},{key:"getDocs",value:function(){return this.websiteData.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=Jt(n.split("/"),2);return{contentType:i[0],viewType:i[1],id:r}}},{key:"getSearchData",value:(s=Vt($t().mark((function e(){return $t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isSearchEnabled()){e.next=5;break}return e.abrupt("return",fetch("website.php?action=getSearchData&siteId=".concat(this.getSiteId(),"&activeLang=").concat(this.getLanguage())).then((function(e){return e.json()})));case 5:return e.abrupt("return",Promise.resolve(null));case 6: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:"isAnalyticsEnabled",value:function(){var e;return null===(e=this.getData())||void 0===e?void 0:e.analyticsEnabled}},{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,c=t.template,u=r.map((function(t){var n=t.pages;return{docId:t.docId,pages:e.flattenPages(n)}}));this.docufolio=new o.Z(u,a,c,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 H(n,this),this.pages.add(e,t,3600);var r=t.getPageMeta().title;this.trackPageImpression({id:this.getSiteId()+"_"+t.getPageId(),page_id:t.getPageId(),title:r,pathname:e})}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(Ht(n),Ht(t))}));var r=e.nested,i=void 0===r||r;return i||(n=this.flattenPages(n)),this.parsePageHierarchy(n,e)}},{key:"flattenPages",value:function(e){var t=this,n=[];return e.forEach((function(e){var r=Ht((null==e?void 0:e.child_items)||[]);delete r.child_items,n.push(e),n=[].concat(Ht(n),Ht(t.flattenPages(r)))})),n}},{key:"parsePageHierarchy",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,c=t.pageOnly,u=void 0!==c&&c,l=t.dynamicPageOnly,s=void 0!==l&&l;e.forEach((function(e,a){var c=e.id,l=e.label,f=e.child_items,d=e.hidden,h=e.route,p=e.title,v=e.description,y=e.sections,b=e.page_options,g=n.localize(h),m=g.includes("[id]"),w=g.includes("/index"),k=b?JSON.parse(b):{},O=(null==k?void 0:k.hierarchyMode)||"auto";if(!r&&("/"===g||!g&&0===a)||"include"===O||(!d||"0"===d)&&"exclude"!==O&&(!o||n.hasDataInRequiredSections(y))&&!w&&(!u||y.length)&&(!s||m)){var P={id:c,label:n.localize(l),route:"/"===g?"":g,title:n.localize(p),description:n.localize(v),child_items:f?n.parsePageHierarchy(f,t,!0):null,inputs:n.getSectionInputs(y),hasData:!(null==y||!y.length)};m&&(P.route=g.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:"initialize",value:(l=Vt($t().mark((function t(){var n,r,i=arguments;return $t().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 l.apply(this,arguments)})},{key:"submitWebsiteForm",value:function(e,t){return this.inPublishedMode()?(0,a.j0)("website.php",{action:"submitWebsiteForm",siteId:this.getSiteId(),data:t,tag:e}):Promise.resolve()}},{key:"submitInfoData",value:function(e,t){return this.inPublishedMode()?(0,a.j0)("website.php",{action:"submitInfoData",route:e,data:t}):Promise.resolve()}},{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=void 0===t?"WebsiteRemote":t,r=e.category,i=e.widgetName;return uniweb.getWidget(n,r,i)}},{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,c=Object.keys(r),u=c.find((function(t){var n;return(null===(n=r[t])||void 0===n?void 0:n.lang)===e})),l=c.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]","")):i.includes("/index")&&(i=i.replace("/index",""),a=a.replace("/index",""));var s=o.replace(i,a),f="";if(u||l){var d=u||l;d=d.endsWith("/")?d:"".concat(d,"/"),f="".concat(d).concat(e,"/").concat(s)}else{var h=window.location.origin,p=window.location.href.replace(h,""),v=p.startsWith("/websites")?"/websites":p.startsWith("/sites")?"/sites":"",y=this.handle||this.siteId;f="".concat(h).concat(v,"/").concat(e,"/").concat(y,"/").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.remoteConfig.Layout||null}},{key:"getRemoteProps",value:function(){return this.remoteConfig.props||null}},{key:"getRemoteReportFns",value:function(){return this.websiteData.functions||this.remoteConfig.report||{}}},{key:"getTemplateEngine",value:function(){return new Wt(this.getSnippets(),this.getRemoteReportFns())}},{key:"getRootClassName",value:function(){var e;return this.rootClassName||(null===(e=this.getRemoteProps())||void 0===e?void 0:e.rootClassName)||""}},{key:"setRootClassName",value:function(e){this.rootClassName=e}},{key:"isAnalyticsReady",value:function(){return uniweb.analytics&&uniweb.analytics.initialized}},{key:"isSearchEnabled",value:function(){return 0!=this.getSearchStatus()}},{key:"getSearchStatus",value:function(){var e,t,n;return(null===(e=this.getData())||void 0===e||null===(t=e.siteMeta)||void 0===t?void 0:t.published_date)?null!==(n=uniweb.config.data)&&void 0!==n&&n.searchEnabled?1:0:-1}},{key:"trackEvent",value:function(e,t){var n;if(this.isAnalyticsEnabled()&&this.isAnalyticsReady()){var r=(null===(n=t)||void 0===n?void 0:n.data)||{};return r=Qt(Qt({},r),{},{lang:this.getLanguage()}),t=Qt(Qt({},t),{},{request_url:window.location.href,site_id:this.getSiteId(),data:r}),uniweb.analytics.trackEvent(e,t)}}},{key:"trackPageImpression",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=window.location.href,n=Qt({url:t,referrer:document.referrer},e);this.trackEvent("page_impression",n)}}],c=[{key:"fetch",value:(u=Vt($t().mark((function t(n){var r,i;return $t().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,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 u.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=Jt(a,2),c=o[0],u=o[1];return n((function(){r&&e.fetch(r).then((function(e){return u(e),e})).catch((function(e){console.log(e),console.log("Cannot fetch website/".concat(r))}))}),[r,i]),c&&c.isReady?c:null}}],n&&tn(t.prototype,n),c&&tn(t,c),Object.defineProperty(t,"prototype",{writable:!1}),e}()},68713:(e,t,n)=>{"use strict";n.d(t,{Gx:()=>P,H3:()=>_,Ly:()=>B,Mn:()=>E,VI:()=>N,Z7:()=>F,_7:()=>I,b5:()=>R,c6:()=>O,qI:()=>D,uD:()=>A,uK:()=>L});var r=n(24474),i=n.n(r),a=n(43474),o=n.n(a),c=n(8053),u=["itemId","_attributes"],l=["head","sectionId"];function s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=y(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,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw a}}}}function f(e){var t=function(e,t){if("object"!==p(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===p(t)?t:String(t)}function d(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 h(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)||y(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 p(e){return p="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},p(e)}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,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){c=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw i}}return a}}(e,t)||y(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){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=m({action:"getCardList",contentType:e},t);return k.get("ui/cards.php",{params:n}).then((function(e){return{data:e.data}})).catch((function(e){}))}function P(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=v(e,4),i=r[0],a=(r[1],r[2]),o=r[3]||t||(0,c.NC)({en:"No ".concat(a),fr:"Pas de ".concat(a)});n[a]||(n[a]={}),n[a][o]||(n[a][o]=[]),n[a][o].push(i)}));var l=o?j(o.data):null;return i.forEach((function(e){e.href&&delete e.href})),{cards:i,filters:n,navbar:l,hierarchicalCards:x(i,null==u?void 0:u.hierarchy)}}k.defaults.headers.patch["Content-Type"]="application/merge-patch+json";var S=function(e,t){var n={};return e.forEach((function(e){var r=v(e,4),i=r[0],a=(r[1],r[2]),o=r[3];n[a]||(n[a]={});var u=o||t||(0,c.NC)({en:"No ".concat(a),fr:"Pas de ".concat(a)});"object"===p(u)&&(u=u.title||u.name||Object.values(u)[0]),n[a][u]||(n[a][u]=[]),n[a][u].push(i)})),{filters:n}},j=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,c=t.href,u=t.id,l=t.opened,s=void 0!==l&&l,f=t.value,d=[].concat(h(n),[u]),p={active:i,link:c,name:u,open:s,label:f,subItems:[],itemPath:d};return o.forEach((function(t){p.subItems.push(e(t,d))})),p},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,h(e(i))))})),n}(n.items),n},_=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,c=[],l=[],s=t.histograms;o.forEach((function(e){var n=e.itemId,r=e._attributes,i=d(e,u),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,h=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},E=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 c=o()(t),u=A(e,t,n,a);Object.values(c).forEach((function(e){Object.keys(e).forEach((function(t){var n=[];e[t].forEach((function(e){-1!==(null==u?void 0:u.findIndex((function(t){return t.contentId===e})))&&n.push(e)})),e[t]=n}))}));var l={};return Object.keys(n).forEach((function(r){if("searchText"!==r){var i=n,c=(i[r],d(i,[r].map(f))),u=A(e,t,c,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==u?void 0:u.findIndex((function(t){return t.contentId===e})))&&n.push(e)})),e[t]=n}))})),l[r]=s}})),Object.keys(c).forEach((function(e){l[e]&&(c[e]=l[e][e])})),c},A=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?L(e):e;return a.filter((function(e){for(var r in n)if(t[r]){var i=n[r]||"";if(i&&!t[r][i].includes(e.contentId))return!1}else if(!((null==e?void 0:e[r])||"").toLowerCase().includes(n[r].toLowerCase()))return!1;return!0}))}return e},L=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(h(r),h(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;a4&&void 0!==arguments[4])||arguments[4],a=(0,c.pe)(n,r),u=a.hierarchicalField,s=a.hasAvatar,f=void 0!==s&&s,h=[],p=[];if(e.forEach((function(e){var i=e.head,a=(e.sectionId,d(e,l));if(i){var o=i?JSON.parse(i):{},u=(0,c.uZ)(n,r,o),s=u.titleField,p=m({head:o,title:s,subtitle:u.captionField,searchText:s,raw:e},a);t&&(p.href="".concat(t,"/").concat(a.contentId));var v=o._banner,y=o._avatar;f?(p.version=y||"",p.bannerVersion=v||""):p.version=v||"",h.push(p)}})),h=h.filter(Boolean),u){var v={};o()(h).forEach((function(e){var t;null!==(t=e.subCards)&&void 0!==t||(e.subCards=[]),v[e.contentId]=e})),Object.values(v).forEach((function(e){var t,n=e.head,r=e.contentId,a=null===(t=n[u])||void 0===t?void 0:t[0];if(a&&a!=r){e.isChild=!0;var o=v[a];o?o.subCards.push(e):i&&U(h,r)}})),p=Object.values(v).filter((function(e){return!e.isChild})),M(p)}return{parsedCards:h,parseHierarchicalCards:p}},D=function(e){var t=arguments.length>1&&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]:"",i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return k.get("profiles.php",{params:{action:"getCardProfiles",contentType:e,viewType:t,filter:n}}).then((function(n){var a=n.data,o=a.cards,c=a.filters,u=T(o,r,e,t,i);return{cards:u.parsedCards,hierarchicalCards:u.parseHierarchicalCards,filters:c}}))},N=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 k.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;if(!a.length)return{cards:[],hierarchicalCards:[],filters:o,sectionId:r,fieldId:i};var c=a[0],u=c.contentType,l=c.viewType,s=T(a,"",u,void 0===l?"profile":l);return{cards:s.parsedCards,hierarchicalCards:s.parseHierarchicalCards,filters:o,sectionId:r,fieldId:i}}))},F=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"profile",n=arguments.length>2?arguments[2]:void 0;return k.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=T(i,"",e,t);return{cards:o.parsedCards,hierarchicalCards:o.parseHierarchicalCards,filters:a}}))},M=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)}))},R=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)}))},B=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(h(a),[i.contentId]):a;if(i.subCards&&i.subCards.length>0){var o,c=s(i.subCards);try{for(c.s();!(o=c.n()).done;){var u=o.value;n.push({card:u,path:[].concat(h(a),[i.contentId])})}}catch(e){c.e(e)}finally{c.f()}}}return[]};function U(e,t){for(var n=0;n{"use strict";n.d(t,{Hm:()=>be,B3:()=>q,ZP:()=>_,ge:()=>z,dy:()=>me,Yk:()=>Z,kd:()=>K,PR:()=>J,J0:()=>D,V2:()=>he,Ai:()=>C,dr:()=>U,IJ:()=>ye,Ey:()=>ve,nl:()=>G,OB:()=>pe,CO:()=>T,eH:()=>we,D0:()=>ue,uZ:()=>le,pe:()=>ce,cp:()=>oe,pm:()=>V,zM:()=>$,uL:()=>F,b7:()=>X,NC:()=>fe,Fv:()=>se,xQ:()=>ne,a5:()=>ge,Zd:()=>re,HN:()=>a.HN,WD:()=>ie,jk:()=>ae,M8:()=>te,fZ:()=>a.fZ,jt:()=>x,j0:()=>A,FU:()=>B,fi:()=>Q,xO:()=>de,QI:()=>W,Cp:()=>Y});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):""},c=["contentId","head","sectionId","itemId"],u=["_banner","_avatar"],l=["_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",c=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function l(e,t,n,i){var a=t&&t.prototype instanceof h?t:h,o=Object.create(a.prototype),c=new x(i||[]);return r(o,"_invoke",{value:P(e,n,c)}),o}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var f={};function h(){}function p(){}function v(){}var y={};u(y,a,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(I([])));g&&g!==t&&n.call(g,a)&&(y=g);var m=v.prototype=h.prototype=Object.create(y);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function i(r,a,o,c){var u=s(e[r],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==O(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,o,c)}),(function(e){i("throw",e,o,c)})):t.resolve(f).then((function(e){l.value=e,o(l)}),(function(e){return i("throw",e,o,c)}))}c(u.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 c=S(o,n);if(c){if(c===f)continue;return c}}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 u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function S(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,S(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 j(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(j,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 c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){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 c=e[a](o),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).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,c,"next",e)}function c(e){h(a,r,i,o,c,"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,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){c=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(c)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 b(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),j.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:{}}}))}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],c=L(e,t,r,i);return c.then((function(e){if(e){var t=e.data,r=t.sections,i=t.format,c=t.contentInfo;return(0,a.HN)({sections:r,format:i,contentInfo:c},n,o)}}))}function T(){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]:"",c={skip:"all",keep:Array.isArray(n)?m(n):[n],ignoreEmpty:!0},u=L(e,t,!1,i,o);return u.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},c,r)}}))}function D(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 T(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 c=o[0]._attributes,u=c.banner,l=c.avatar;n=u?u[Object.keys(u)[0]]:"",r=l?l[Object.keys(l)[0]]:""}return b(b({section_id:a},o[0]),{},{_banner:n,_avatar:r})}))}var N=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={},c=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,u=n.type;c.includes(i)&&(o[i]={field_id:r,subtype:a,type:u})}));var u=e.map((function(e){var t=Array.isArray(e)?e[0]:e;return o[t].field_id}));return u.length?j.get("profiles.php",{params:b(b({},a),{},{fieldIds:u})}).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}}))})):{}},F=function(e,t){var n={action:"subtypeOptions",contentType:t},r=e.map((function(e){var t;return t=Array.isArray(e)?b(b({},n),{},{subtypeId:e[0]}):b(b({},n),{},{subtypeId:e}),j.get("profiles.php",{params:t})}));return Promise.all(r).then((function(e){return e.map((function(e){return e.data}))}))},M=function(e){var t=e.map((function(e){var t={action:"getCardList",contentType:"generic",viewType:e};return j.get("ui/cards.php",{params:t})}));return Promise.all(t).then((function(e){return e.map((function(e){return e.data}))}))};function R(e){var t=e.fields,n=e.subsections,r=b({},t);return n&&Object.values(n).forEach((function(e){r=b(b({},r),R(e))})),r}function B(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],c=e.sections,u=e.format,l=e.contentInfo,s=e.headSectionId,f=e.validation;o&&(c=m(c)).shift();var d=null===(r=(0,a.HN)({sections:c,format:u,contentInfo:l},!1,!0))||void 0===r?void 0:r[0],h=!!uniweb.activeUserId(),p=ce(t,n||"profile"),v=null==p?void 0:p.needsPermission,y=null==p?void 0:p.ownable;if((!y&&"topic"!==t||v)&&(h=uniweb.checkUserPermission("edit_".concat(t))||uniweb.data.privilege("edit",t)),d){var b=d.cardFileNames,g=d.subtypeIds,w=(d.fields,R(d)),k=h?N(g,w,t,n,i):F(g,t);return Promise.all([k,M(b)]).then((function(e){var t={},n={},r=e[0],i=e[1];return g.forEach((function(e,n){var i,o=r[n];if(h){var c=o.subtype,u=o.options,l=o.type;i="profile"===l&&u?c?u.map((function(e){return(0,a.ZZ)(l,c,e)})).filter(Boolean):ae(u):u}else i=o;Array.isArray(e)?t[e[0]]=i:t[e]=i})),b.forEach((function(e,t){n[e]=i[t]})),{section:d,lovOptions:t,stringCards:n,format:u,isHeadSection:parseInt(d.section_id)===s,validation:f}}))}console.log("invalid parsed profile item data",d)}function U(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"profile";return j.get("profiles.php",{params:{action:"getCreationSchema",contentType:e,viewType:t}}).then((function(n){return B(n.data,e,t)}))}function G(e,t,n,r,i,a,o){var c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"",u={action:"edit",editable:!0,contentType:e,contentId:t,viewType:n,section:r,itemId:i,withFormat:!0};return c&&(u.templateId=c),j.get("profiles.php",{params:u}).then((function(r){return B(r.data,e,n,t)}))}function W(e,t,n,r,i,a,o,c){var u=new FormData;return"0"===i||0===i?u.append("action","insert"):u.append("action","update"),u.append("contentType",e),u.append("contentId",t),u.append("viewType",n),u.append("sectionId",r),u.append("itemId",i),a&&u.append("parentItemId",a),o&&u.append("parentFieldId",o),c.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,c=void 0===o?[]:o,u=n?"".concat(n,"/").concat(i):i;r.push(u),a&&"0"!==a||(r=[].concat(m(r),m(e(Object.values(c),u))))})),r};function $(e){return H(e)}function q(e,t,n){return function(e,t){var n={action:"getContentInfo",contentType:e,contentId:isNaN(t)?t:parseInt(t)};return j.get("profiles.php",{params:n})}(e,t).then((function(e){var t=e.data,r=t.is_owner,i=uniweb.checkUserPermission(n,t);return r||i&&uniweb.activeUserId()}))}function V(e,t){return new URLSearchParams(e).get(t)||""}function J(e){var t=V(e,"item"),n=t?t.split(","):["",""];return{sectionId:n[0],itemId:n[1],parentItemId:n[2],parentFieldId:n[3]}}function Z(){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=j.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,c=n.validation;return uniweb.setContentFormat("members","cv",i),{sections:(0,a.HN)({sections:r,format:i,contentInfo:o},t),contentInfo:o,format:i,validation:c}}))}function K(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t={action:"getReportsAndTemplates",contentType:"members",viewType:"cv"};return e&&(t.section=e),j.get("schema.php",{params:t}).then((function(e){return{data:e.data}})).catch((function(e){return null}))}function Y(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,size:r.size}}));var r=b(b({},e),{},{action:"uploadProfileAssets",fields:JSON.stringify(n)});return A("file_loader.php",r).then((function(e){var n=e.data;return"noEnoughStorage"===(null==n?void 0:n.error)?(uniweb.eventBus.publish("globalError",{error:"noEnoughStorage"}),{error:"noEnoughStorage"}):Promise.all(Object.keys(n).map(function(){var e=p(d().mark((function e(r){var i,a,o,c,u,l,s,f,h,p;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=n[r],a=i.url,o=i.fields,c=i.recordId,u=void 0===c?"":c,l={identifier:"".concat(null==o?void 0:o["x-amz-meta-identifier"],"/").concat(null==o?void 0:o["x-amz-meta-filename"])},s=new FormData,Object.keys(o).forEach((function(e){s.append(e,o[e])})),f=t[r],h=f.file,p=f.fieldValue,s.append("file",h),e.abrupt("return",fetch(a,{method:"POST",body:s}).then((function(e){if(e.ok){if(u){var t=new FormData;return t.append("recordId",u),t.append("action","confirmUploaded"),fetch("file_loader.php",{method:"POST",body:t}).then((function(){return g({},r,l)}))}return g({},r,l)}return{error:g({},r,p)}})).catch((function(e){return{error:g({},r,p)}})));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())).then((function(e){return e}))}))}var Q=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}))},X=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 fe(null==e?void 0:e[i],"",r)})).join(" ")},ee=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,c=null!==(a=null==e?void 0:e[n])&&void 0!==a?a:"";return null===(o=c=c?"string"==typeof c?JSON.parse(c):c:{})||void 0===o?void 0:o.formatted_address}if("profile"!==r)return null==e?void 0:e[n];var u,l=null==e?void 0:e[n][1],s=ce(i.split("/")[0],i.split("/")[1]).titleFieldName;return"string"==typeof l&&(l=JSON.parse(l)),"string"==typeof s?null===(u=l)||void 0===u?void 0:u[s]:Array.isArray(s)?s.map((function(e){var t,n=e.split("."),r=n[n.length-1];return null===(t=l)||void 0===t?void 0:t[r]})).join(" "):void 0},te=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 u=28;return e.length?A("profiles.php",{action:"getFieldsInSection",sectionId:r,contentType:t,viewType:n}).then((function(t){var n=t.data,r=[],i=[],l=0;Object.keys(n).forEach((function(e){var t=n[e],c=t.name,s=t.type,f=t.subtype,d=t.label,h=t.constraints;if(h=h?JSON.parse(h):{},a.includes(c))r.push({name:c,label:d,type:s,subtype:f,width:"".concat(u/a.length,"%"),highlight:!0,primary:!0});else if(o&&o.includes(c)||"systable"===s||"string"===s&&h.select){l++;var p={name:c,label:d,type:s,subtype:f,width:"".concat(100-u)};("systable"===s||"string"===s&&h.select)&&(p.filterable=!0),o.includes(c)?(p.secondary=!0,i.unshift(p)):i.push(p)}}));var s=[].concat(r,m(i.map((function(e){return b(b({},e),{},{width:"".concat((100-u)/l,"%")})})))),d=e.map((function(e){var t=e.contentId,n=e.head,r=e.sectionId,i=e.itemId,a=f(e,c),o=n&&"string"==typeof n?JSON.parse(n):n||{},u={contentId:t,sectionId:r,itemId:i};s.forEach((function(e){var t=e.name,n=ee(o,e);u[t]=n}));var l=o._banner,d=o._avatar;return(l||""===l)&&(u.banner=l),(d||""===d)&&(u.avatarVersion=d),b(b(b({},u),a),{},{head:o})}));return{filteredFields:s,filteredProfiles:d,titleFieldName:a,captionFieldName:o}})):Promise.resolve({filteredFields:[],filteredProfiles:[],titleFieldName:a,captionFieldName:o})},ne=function(e,t){var n=v(e.split("/"),2),r=n[0],i=n[1],a=[];return te(t,r,i).then((function(e){var t=e.filteredProfiles,n=e.titleFieldName,o=e.captionFieldName;return t.forEach((function(e){var t=e.contentId,c=e.access_level,u=e.access_type,l=e.ownerId,s="",f="";n&&(s=n.map((function(t){return fe(null==e?void 0:e[t])})).join(" ").trim()),o&&(f=o.map((function(t){return"number"==typeof(null==e?void 0:e[t])?null==e?void 0:e[t]:fe(null==e?void 0:e[t])})).join(" ").trim());var d={contentId:t,title:s,caption:f,subtitle:f,visibility:"",searchText:s,contentType:r,viewType:i,ownerId:l,accessLevel:c,accessType:u,raw:e};a.push(d)})),a.sort((function(e,t){return e.title.localeCompare(t.title)})),a}))},re=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,c=e.ownerId,l=a?JSON.parse(a):{},s=l._banner,d=void 0===s?"":s,h=l._avatar,p=void 0===h?"":h,y=f(l,u),b={contentId:i,ownerId:c,head:{}};if("members"===t&&"profile"===n){var g,m;b.title=o([null==y?void 0:y.first_name,null==y?void 0:y.last_name]),b.subtitle=o([null==y||null===(g=y.position_title)||void 0===g?void 0:g[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],S=y[k];P=Array.isArray(P)?P[1]:P,(S=Array.isArray(S)?S[1]:S)&&"object"===O(S)&&(S=[w]in S?S[w]:Object.values(S)[0]),b.title=P,b.subtitle=S}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]?b[n]=r[1]:O(r[1]):b[n]=r})),r.hasBanner&&(b.banner=d),r.hasAvatar&&(b.avatar=p),b}))},ie=function(e){var t=v(e,7),n=t[0],r=t[1],i=t[4],a=void 0===i?"":i,c=t[6],u=void 0===c?{}:c,l=(null==u?void 0:u._subtype)||"",s=v(l.split("/"),2),f=s[0],d=s[1],h=void 0===d?"profile":d;if("profile"===h&&r){var p=ce(f,h),y=fe(null==p?void 0:p.label),b=JSON.parse(r),g={contentId:n,head:b,lastEditTime:a};if("members"===f&&"profile"===h){var m,w;g.title=o([null==b?void 0:b.first_name,null==b?void 0:b.last_name]),g.subtitle=o([null==b||null===(m=b.position_title)||void 0===m?void 0:m[1],null==b||null===(w=b.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,S=b[k],j=b[P];S=Array.isArray(S)?S[1]:S,(j=Array.isArray(j)?j[1]:j)&&"object"===O(j)&&(j=[k]in j?j[k]:Object.values(j)[0]),g.title=S,g.subtitle=j}return[g,l,y]}return null},ae=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=ie(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},oe=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]:"",c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[],u=ce(e,t);return j.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,b=h._avatar,g=void 0===b?"":b,m=f(h,l),w={contentId:i,ownerId:s,handle:d,head:{},rawHead:h};if(c.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 S=null==u?void 0:u.titleFieldName,j=null==u?void 0:u.captionFieldName,_=m[S],x=m[j];_=Array.isArray(_)?_[1]:_,(x=Array.isArray(x)?x[1]:x)&&"object"===O(x)&&(x=[S]in x?x[S]: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})),u.hasBanner&&(w.banner=y),u.hasAvatar&&(w.avatar=g),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=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},ue=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],c=i[1],u=ce(o,c).filterableFieldNames;null!=u&&u.length&&u.forEach((function(e){var t=e.name,n=e.label,i=e.byProfile,a=fe(n);if(i){var o=v(i.split("/"),2),c=o[0],u=o[1],l=ce(c,u).titleFieldName;r[a]=[t,1,l]}else r[a]=t}))}a.push(b(b({},n),{},{histograms:r}))})),a}}return[]},le=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";function i(e){if("object"===O(e))return!0;try{return JSON.parse(e),!0}catch(e){return!1}}var a=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 i=e.split("."),a=i[i.length-1],o=(null==t?void 0:t[a])||"";return Array.isArray(o)&&(o=o.slice(1).filter((function(e){return e&&isNaN(e)})).join(n)),"string"==typeof o&&/^\{.*\}$/g.test(o)&&(o=JSON.parse(o)),"object"!==O(o)||Array.isArray(o)||!("en"in o)&&!("fr"in o)?o:fe(o,fe(o,"",uniweb.language()),r)}));return n?i.join(n):(null==i?void 0:i[0])||""},o=ce(e,t),c=o.titleFieldName,u=o.captionFieldName,l=o.categoryFieldName,s=o.captionGlue,f=void 0===s?null:s,d=a(c,n),h="";if(u){var p,v=null==n?void 0:n[u];Array.isArray(v)&&i(null==v?void 0:v[1])?("string"==typeof(null==v?void 0:v[1])&&(v[1]=JSON.parse(v[1])),h="category"===u?v[1].title:(null===(p=v[1])||void 0===p?void 0:p[c])||""):h=a(u,n,f)}var y=l?a(l,n):"";return{titleField:d,captionField:h,categoryField:y}};function se(e){return e.trim().replace(/\s|'/g,"-").normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function fe(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],c=a||uniweb.language(),u=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[c])||(null==e?void 0:e[u])||i:(null==e?void 0:e[c])||i;if("string"==typeof e){if(!e.startsWith("{")&&!e.startsWith('"'))return e;try{var l=JSON.parse(e);return"object"===O(l)?o?(null==l?void 0:l[c])||(null==l?void 0:l[u])||i:(null==l?void 0:l[c])||i:l}catch(t){return e}}return i}function de(){var e=location.protocol+"//"+location.host;return!uniweb.activeUserId()||e===uniweb.getPublicDomain()}function he(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 j.get(r).then((function(e){var t=e.data,r=t.search_queries,a=void 0===r?[]:r,o=t.selected_items,c=void 0===o?[]:o,u={},l=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)}),j.get("profiles.php",{params:i}).then((function(e){return e.data.map((function(e){return b(b({},e),{},{profile_type:n})}))}))}));c.forEach((function(e){var t=e.profile_type,n=e.profile_id;u[t]||(u[t]=[]),u[t].push(n)}));var s=Object.keys(u),f=[].concat(m(l),m(s.map((function(e){var t=u[e],n=v(e.split("/"),2),r=n[0],i=n[1];return j.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 b(b({},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 j.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],c=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[c]=i)}))})),[].concat(t,r)}))}return i}))}))}var pe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"profile",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e,i=ce(r,t);return n?null!=i&&i.label_plural?fe(i.label_plural):"":null!=i&&i.label?fe(i.label):""},ve=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"profile",n=e,r=ce(n,t);return(null==r?void 0:r.icon)||null},ye=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"profile",r=e,i=ce(r,n),a=(null==i?void 0:i.filterableFieldNames)||[],o=a.find((function(e){return e.name===t||fe(e.label)===t}));return(null==o?void 0:o.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 ge(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,c=o.banner,u=o.avatar;n=c?Object.values(c)[0]:"",r=u?Object.values(u)[0]:""}return b(b({section_id:i},a),{},{_banner:n,_avatar:r})}function me(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 we(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:()=>u,dP:()=>l,eT:()=>c}),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 c=t[t.length-2];o=null==i?void 0:i[c]}r.push(a(a({},null==i?void 0:i[n]),{},{parentInfo:o}))})),r},u=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,c=!(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:c}))}else for(var u=0,l=null;u=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:()=>x,ZZ:()=>O,fZ:()=>_});var r=n(8053),i=["itemId","_primaryItem"],a=["@"];function o(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=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}var g=function(e){return!e.length||!structuredClone(e).filter((function(e){e.itemId,e._primaryItem;var t=b(e,i);if(!Object.keys(t).length)return!1;var n=!1;return Object.values(t).forEach((function(e){e.value&&("localstr"===e.type?Object.values(e.value).filter(Boolean).length&&(n=!0):n=!0)})),n})).length},m=function(e,t){for(var n=t._attributes_,r={},i=0,a=Object.entries(e);i2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0;if(null===n)return{value:null};var c={};switch(e){case"profile":if(!Array.isArray(n))return null;var s=d(n,7),f=s[0],h=s[1],p=s[2],v=s[3],y=s[5],g=s[6];if(!h)return null;var m=n[n.length-1],w=uniweb.config.data.profileTypes,k="string"==typeof h?JSON.parse(h):h,O=null;try{O=m&&"string"==typeof m?JSON.parse(m):m||null}catch(e){}if(!t&&null!=g&&g._subtype){var P,S=(0,r.WD)(n),j="";return{contentId:f,value:j=null===(P=S[0])||void 0===P?void 0:P.title,rawValue:["".concat(g._subtype,"|").concat(f),j,O,p,v]}}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,C=k._avatar,T=void 0===C?"":C,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:f,title:D,subtitle:[F,N].filter(Boolean).join(", "),value:D,rawValue:[f,D,O,p,v],version:T,bannerVersion:L,position:F,unit:N,head:k,handle:y};case"disciplines/profile":var M,R=k.name,B=k.parent_discipline,U=void 0===B?[]:B,G=k._banner,W=Object.values((null==i?void 0:i.status)||{});W=W.length?W[0]:"Connected";var z=(null==U?void 0:U[1])||"";return z&&"string"==typeof z&&(z=JSON.parse(z)),{contentId:f,title:R,subtitle:z&&(null===(M=z)||void 0===M?void 0:M.name)||"",value:"Connected"===W?R:"".concat(R," (").concat(W,")"),rawValue:[f,R,O,p,v],version:G,parent_discipline_name:(null==U?void 0:U[1])||"",head:k,handle:y};case"project/profile":var H,$=k.project_name,q=k.category,V=k._banner;return{contentId:f,title:$,subtitle:q&&(null===(H=q[1])||void 0===H?void 0:H.title)||"",value:$,rawValue:[f,$,O,p,v],version:V||"",head:k,handle:y};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 ce=(0,r.NC)(te,"",o),ue={contentId:f,title:ce,subtitle:(0,r.NC)(ne,"",o),value:ce,rawValue:[f,ce,O,p,v],head:k,handle:y};return null!=Q&&Q.hasBanner&&null!=Q&&Q.hasAvatar?(ue.version=oe,ue.bannerVersion=ie):null!=Q&&Q.hasBanner?ue.version=ie:null!=Q&&Q.hasAvatar&&(ue.version=oe),ue}case"systable":case"lov":case"reftable":if(!Array.isArray(n))return{value:"_invalid_"};var le=l(n),se=le[0],fe=le[1],de=void 0===fe?null:fe,he=le.slice(2),pe={value_id:se};return de&&(pe.value=de),he&&(pe.other_values=he.filter(Boolean)),pe;case"bilingual":return n.english&&(c.en=n.english),n.french&&(c.fr=n.french),{value:c};case"localstr":try{c=JSON.parse(n)}catch(e){var ve;u(ve={},uniweb.language(),n),u(ve,"@",{}),c=ve}var ye=c,be=ye["@"],ge=void 0===be?{}:be,me=b(ye,a);return{value:me,activeValue:me[uniweb.language()]||Object.values(me).filter(Boolean)[0]||"",activeLang:uniweb.language(),metadata:ge};case"address":return{value:JSON.parse(n)};default:return{value:n}}},P=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,c={},u=0,l=Object.entries(t);u3&&void 0!==arguments[3]?arguments[3]:{skip:[],keep:[],ignoreEmpty:!1},a=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,u=t.name,l=t.sectionPath,s=t.label,f=t.max_item_count,h=t.section_id,p=t.fields,v=t.has_fields,y=t.disabled,b=t.items,O=t.description,_=t.constraints,x=void 0===_?{}:_,I=t.subsections,E=void 0===I?[]:I,A=t.source_id,L=i.skip,C=i.keep,T=i.ignoreEmpty,D=[],N=[],F=[],M=!1;if(-1!==C.indexOf(u)&&(M=!0),"1"===y)return null;if(("all"===L||-1!==L.indexOf(u))&&!M)return null;if(S(p),j(E),"1"===v)b&&b.forEach((function(e){var t=e.id,r=e.values,i=e.attributes,a={};i&&(!0===i.primary?a._primaryItem=!0:n&&(a._attributes=m(i,n)));var u=c(c({itemId:t},P(p,r,E,null,null==a?void 0:a._attributes,o)),a);D.push(u)})),N=k(p,E),F=w(p,E);else if(null!=b&&b[0])for(var R=b[0],B=R.values,U=R.id,G=0,W=Object.entries(p);G2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=[],a={},o=e.sections,c=e.format,u=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=_(e,c,u,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),c=n(52979),u=n(83893),l=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 b=c(e.baseURL,e.url);function g(){if(p){var r="getAllResponseHeaders"in p?u(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(b,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,"onloadend"in p?p.onloadend=g:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(g)},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||l(b))&&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 c(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 u=c(n(39292));u.Axios=a,u.create=function(e){return c(o(u.defaults,e))},u.Cancel=n(33682),u.CancelToken=n(80876),u.isCancel=n(76921),u.all=function(e){return Promise.all(e)},u.spread=n(84857),u.isAxiosError=n(34093),e.exports=u,e.exports.default=u},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),c=n(24638),u=n(23182),l=u.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=c(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&&u.assertOptions(t,{silentJSONParsing:l.transitional(l.boolean,"1.0.0"),forcedJSONParsing:l.transitional(l.boolean,"1.0.0"),clarifyTimeoutError:l.transitional(l.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=c(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(c(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(c(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 c(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return c(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 c(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(c(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"],c=["validateStatus"];function u(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 l(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=u(void 0,e[i])):n[i]=u(e[i],t[i])}r.forEach(i,(function(e){r.isUndefined(t[e])||(n[e]=u(void 0,t[e]))})),r.forEach(a,l),r.forEach(o,(function(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=u(void 0,e[i])):n[i]=u(void 0,t[i])})),r.forEach(c,(function(r){r in t?n[r]=u(e[r],t[r]):r in e&&(n[r]=u(void 0,e[r]))}));var s=i.concat(a).concat(o).concat(c),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===s.indexOf(e)}));return r.forEach(f,l),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 c(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(u=n(91058)),u),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)?(c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(c(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){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(o)})),e.exports=l},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 c=e.indexOf("#");-1!==c&&(e=e.slice(0,c)),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 c=[];c.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),r.isString(i)&&c.push("path="+i),r.isString(a)&&c.push("domain="+a),!0===o&&c.push("secure"),document.cookie=c.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 c(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 c=e[a],u=void 0===c||o(c,a,e);if(!0!==u)throw new TypeError("option "+a+" must be "+u)}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 c(e){return null!==e&&"object"==typeof e}function u(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(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,c,u,l,s){"object"==typeof c&&(u=c.depth,l=c.prototype,s=c.includeNonEnumerable,c=c.circular);var f=[],d=[],h="undefined"!=typeof Buffer;return void 0===c&&(c=!0),void 0===u&&(u=1/0),function a(u,p){if(null===u)return null;if(0===p)return u;var v,y;if("object"!=typeof u)return u;if(e(u,t))v=new t;else if(e(u,n))v=new n;else if(e(u,r))v=new r((function(e,t){u.then((function(t){e(a(t,p-1))}),(function(e){t(a(e,p-1))}))}));else if(i.__isArray(u))v=[];else if(i.__isRegExp(u))v=new RegExp(u.source,o(u)),u.lastIndex&&(v.lastIndex=u.lastIndex);else if(i.__isDate(u))v=new Date(u.getTime());else{if(h&&Buffer.isBuffer(u))return v=Buffer.allocUnsafe?Buffer.allocUnsafe(u.length):new Buffer(u.length),u.copy(v),v;e(u,Error)?v=Object.create(u):void 0===l?(y=Object.getPrototypeOf(u),v=Object.create(y)):(v=Object.create(l),y=l)}if(c){var b=f.indexOf(u);if(-1!=b)return d[b];f.push(u),d.push(v)}for(var g in e(u,t)&&u.forEach((function(e,t){var n=a(t,p-1),r=a(e,p-1);v.set(n,r)})),e(u,n)&&u.forEach((function(e){var t=a(e,p-1);v.add(t)})),u){var m;y&&(m=Object.getOwnPropertyDescriptor(y,g)),m&&null==m.set||(v[g]=a(u[g],p-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(u);for(g=0;g=t?e:""+Array(t+1-r.length).join(n)+e},b={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 c=t.name;m[c]=t,i=c}return!r&&i&&(g=i),i||!r&&g},O=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new S(n)},P=b;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 S=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 b=f[v.l];c&&(y=c(""+y)),l="string"==typeof b?b.replace("%d",y):b(y,r,v.l,s);break}}if(r)return l;var g=s?f.future:f.past;return"function"==typeof g?g(l):g.replace("%s",l)},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 c=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),c.call(this,e)};var u=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 u.call(this)};var l=o.utcOffset;o.utcOffset=function(r,i){var a=this.$utils().u;if(a(r))return this.$u?0:a(this.$offset)?l.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,c=this;if(i)return c.$offset=o,c.$u=0===r,c;if(0!==r){var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(c=this.local().add(o+u,e)).$offset=o,c.$x.$localOffset=u}else c=this.utc();return c};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=l(n(49253)),i=l(n(14522)),a=["eventCategory","eventAction","eventLabel","eventValue","hitType"],o=["title","location"],c=["page","hitType"],u=["action","category","label","value","nonInteraction","transport"];function l(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,c=void 0===o||o,u=n.nonce,l=n.testMode,s=void 0!==l&&l;if(t._testMode=s,s||t._loadGA(t._currentMeasurementId,u),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),c);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)}}})),g(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()")})),g(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)))})),g(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&&b(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 c in e)if("default"!==c&&Object.prototype.hasOwnProperty.call(e,c)){var u=o?Object.getOwnPropertyDescriptor(e,c):null;u&&(u.get||u.set)?Object.defineProperty(i,c,u):i[c]=e[c]}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"}]}')}},c={};function u(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,u),n.loaded=!0,n.exports}u.m=o,u.c=c,u.amdO={},u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,u.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);u.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,u.d(i,a),i},u.d=(e,t)=>{for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.f={},u.e=e=>Promise.all(Object.keys(u.f).reduce(((t,n)=>(u.f[n](e,t),t)),[])),u.u=e=>(({67103:"spa",67770:"routes",74641:"site"}[e]||e)+"."+{11:"17a8139e838416e75e6a",212:"a2adcd28135b1177bcb9",277:"1882c3cb7012bd4d07f5",333:"5b594491be411d5cc94e",356:"c366352af3dccb698a19",586:"271c3a57c6efb9a16c2b",774:"757a08c836ba9b840a21",1100:"74b4a1eee38f27b1ac0a",1202:"bd3404304deba93d6c73",1253:"71536b7fbb0126681cda",1286:"0f0244e3fcd3348e8013",1317:"f9ac090b53756a95523e",1332:"1a88a705f03a8c9c4f1f",1344:"3350b321e5ff972bd531",1347:"a2973447a304d82ba975",1363:"695a99e812a90ad791b8",1616:"e851c56f1b64d387fdf8",1628:"a40a827a921ae5545091",1649:"9730596a2b4869981a96",1823:"d38b1b75f4c111eefc4a",1899:"045296f473eab0e1361c",1997:"c8c54c6f2bbfc46ada47",2011:"d0e4ded403d7767fbb05",2117:"5b0b7ed514bfc53b619d",2126:"a418c55b67de13e14bcf",2129:"285d61931ff67717cc34",2397:"0c7e1be63bc677425ba1",2420:"b8a29ee36328797c5c12",2507:"2c693996a4f263341366",2527:"b7e6f61980d9603bfda1",2558:"1e2561658583ba9ee471",2582:"3d610217183e576cab17",2859:"8f1f85101d6743a859f8",3049:"4ab512896124c2bdec8d",3225:"f7b00d43987acd989b14",3272:"f59b3f9a61b1545c6f1b",3273:"0be35905c808cb44323b",3401:"bffb1b7c6d6939e7c3ad",3765:"c0f214f196755aad23aa",3805:"99f7de8e0d89cca5ebab",3919:"9ae01bfa95063c47eb8a",4044:"a3a60e0796da0312eee1",4106:"55ea213d03bf98dc319a",4140:"22339ab60a55d8e818bc",4265:"c30938639298cb6f4f09",4291:"c0f7ed26d92184ef0e84",4398:"4907f276fa25405c260b",4484:"f7f6952bc5248f266aaf",4681:"227f99ca1666de53995f",4766:"85d6efe40027364b9f70",4979:"70ee6aa7485cb1f91cb0",5073:"468b408bc383f99f2d74",5187:"f558f8994da72621a1fc",5227:"6aac63afd7f61ae1eaef",5282:"296c2ae78d33240d4301",5303:"cf944590a7c25a3ff4e8",5469:"a00c57268e61819dd895",5475:"092aa1c48f2c7376ef1d",5485:"1f38181e5c508007250c",5894:"dfd7852946e2ba8b1e35",5925:"49360e3f467527e34718",6061:"53a15ae373eb0105f8d3",6101:"bdd992f4b8fa783f9f2b",6122:"029a84d03a5c38ab237a",6226:"7fc4da9800215cbc9845",6257:"49c77cc91839847279a4",6370:"5fb0915299c0f65e2a7c",6397:"6596717d2dcf0694433d",6428:"950da6fa82cc78eaaa92",6504:"e167da97f5100206f838",6517:"f2f56c0da5a7b75cf916",6808:"9bbb266996661dbe3bdb",6896:"0efcb4ae867dcf86d121",6914:"bdf6766e40986418710d",6919:"c85570c6dafbe60f35df",7010:"d76bf8383eba5551f512",7089:"1d38b152a50178e267e3",7217:"9c861253ff42713cf77c",7462:"847d759ccd0089bbb9ee",7501:"18efec525345ef4a0aaf",7505:"32a00e7dd4e8286c540a",7687:"629edb48cadab915e280",7866:"3d9353ceb5b9094fabf9",7899:"8d2321e8fee3a64dcf4b",7930:"fa7d9c393e62d0884f12",8165:"483bdd07f619d3941d92",8289:"feb108ac51ad969c1e1b",8366:"bd426547d0400a67d6ae",8430:"952e9d5d26dc8cf06caf",8483:"002475bea900278b1efe",8572:"e3ea9a6815f72e4a3254",8808:"220a63942e524e639093",8817:"d9844038e4a1918c6ec7",8888:"41f8acbfbe114f6ec169",9089:"b6bad9bf88a39286ddaa",9105:"fc13a65f622e939eabe2",9196:"4752d1d013e7ad9c3384",9219:"ae67dd1b7e801fa08189",9426:"07bf870e8267f35709cb",9546:"477013e502d20bde8df1",9811:"5edbfc8c794565c54736",9882:"043bbbbacde11c3a1a97",10131:"2a7d0026b42d67ccbb39",10156:"1db58acb2250f7a85520",10232:"c6acad276c578bff4d73",10578:"9c0f7f5dd35d0b6380c8",10661:"8e8db1c5c2c75daa64b2",10835:"8534970d2195ec2fdd19",10850:"a0a55f8bc7eb4c786c50",10900:"98ba984ef69e34db19c5",11081:"2d6c289edab285f9f20f",11129:"67a358b76364d78b3d1c",11205:"32933ed5ff63aa11af23",11248:"cedf3e61cddbc4b825c6",11281:"57eeaeabe01616dcc519",11411:"a26f991d6ec613edaca0",11570:"ecd3d4f9926fabe336b5",11617:"de333cbc7204cadb77f5",11700:"24f3bf0d740a024944b3",11784:"3f04b8841afa65e152dc",12008:"7cb76b21e8dc283e5b2d",12196:"dfdea1fa400b6fa41c18",12338:"5219b0547f25077a9d3c",12443:"9609494a4e6c650aa9f1",12460:"e76b83ce9c56c998b196",12780:"211416bfcbdae98e910b",12873:"d1db944f18ecd0d22778",13007:"ff95b82c6253885e7cf8",13040:"b3675164adde429966d0",13114:"89ec93a6dce3ceb67796",13179:"26d6f45f158d65b23b75",13309:"9d406c4ba27fd8a7711c",13375:"f390491fafa985a00a76",13410:"7fccf93d659949513d2a",13454:"40e8b62f089d26b7b8c9",13519:"b94111377a9ab2bbb238",13613:"0f9fa44b01a6fd747419",13644:"b14be8bb6201947fa9c9",13696:"5f8ce8b353032bab7dcf",13786:"30c990460cf38efa2e17",13861:"cf39c50eab5c97e3dab6",13900:"59da9f144f1fd6839b6f",13940:"e85bc0c177a9f4d29665",14091:"546e106f309ac1f55292",14206:"86291b75141c746b7166",14224:"01c7002923e99e47a613",14334:"dc29b1bd5e5841be85f4",14367:"ef53e3441b400bc9a855",14394:"45d30a553b9a4c69a3ca",14622:"e7e08462168c1e71da18",14809:"945495876775bb494691",15002:"c56bd864924e7734693f",15068:"bb6a1c06eb7c7219660d",15201:"d96825dcb2787674f3fe",15205:"e324821718b8959bf8fe",15459:"af68c78ae937b0105d0f",15495:"604102262e2efa15ebdf",15526:"17f5e96d720e94326843",15752:"1dc35bc53207a6473142",15754:"ffeb49b04dd83a9f5b4f",15991:"3a9b70d80c33ad5df816",16377:"f5e9fd23b822a0c0d60d",16704:"d5c0f0b3cb126eb119c7",16812:"3125a71ab2daf7ad869b",16909:"3001e5bd98371b5f0187",16982:"3e4ea7a25f745c0d2f9c",17055:"f43ed8cdeb26c885aa46",17071:"3cf10023be83619299a1",17098:"aca3cdfac4a078789f90",17160:"7d015f9de10a23a732bf",17293:"501c2cbb622cdd2b14d1",17307:"02747e28eb221a1f9aed",17357:"133e5835b8fe61b3bfe7",17423:"332dcf3214c283834006",17435:"2eee6269a81712f04efe",17448:"e9715167a3e1cdf1d1ea",17484:"335d73e576584604a4cd",17547:"5b6a8523de92938e50ac",17564:"cd09c23c7026411bf5b1",17710:"9c540257829c6f497135",17737:"c6526a19a8f6a67cd85b",17834:"6e86e86a07810a21ff64",17966:"fddb99b58a6a9483c8be",18064:"689fadde0c4c006e2e1a",18185:"84c50de62657ad3d9a15",18307:"9c8efc582d445da713c2",18677:"ad852b1ccb22ab9059c1",18754:"20d2f97d77bdc9b61662",18755:"e2194b0f16bee6afd26b",18767:"d6d4a47b218a7ce52600",18888:"a5832766fd258945e92e",18958:"cc7c465038bbd0b375c4",19029:"fe0d24189169ece553e7",19053:"41c3527a37cb5514780b",19152:"4f46279fecaa79c70730",19366:"4ff94461d4d8be14ab30",19520:"4bde3495aac032b416aa",19631:"8e6f03359508b9561738",19638:"623eb84775a32a1ad828",19950:"0e0674c0325bf7015ee1",20054:"ca6801f5211872392284",20134:"b210a87643299292fe46",20273:"1281d6d86fa0093d28c4",20404:"a098282a9d8ec5781a0d",20417:"d1db1f1324afb67ab7f5",20488:"225f427625ec8f53b292",20625:"b40a0abafb6c804fef19",20646:"e59868c39670724944a5",20756:"09a544b29044494b6715",20785:"8479632b0c5489d54d35",20943:"588be936ae78ca223a51",20969:"1997ec57b9c3d7e21937",20983:"092db578c81499d39f22",21062:"f7d9e350a005a03bacc9",21094:"d371434bd84f52c9436e",21130:"711fa587d672e728a211",21144:"a8b91ee6c86597088a3f",21187:"186dc55fa43a3feb30c2",21322:"9a12eeba41085058a52a",21377:"88d8958ea682a1035a59",21469:"c4e780dd019b7f0b4b9b",21490:"339786299fb4b7fd4521",21613:"937e20a78cf5cd68076c",21734:"6adf3cb6efca76db3b9f",21752:"4fcf555b000ab0855e15",21835:"136d5196ff7a4b7d9e33",22063:"cbfe966311cb8312e78f",22180:"340d5cea05cb6c61eec7",22190:"f35d53eb50f5a196b8ab",22247:"dad0c438671cc34e0961",22542:"ff5b7f4b315f282d76b5",22570:"70addef70f65a37d8ee5",22686:"e4b9e6d69affffd39100",22692:"aeb2ff88abb00293c2a3",22918:"7e9833e24f4374659469",23010:"2f2458682a496ffbd40e",23102:"dfae6aa2591e1fc9388e",23121:"ee4982ea60b5f02fb148",23142:"945c574b10eff2b232ec",23291:"769dc0d3a61f2432475a",23427:"021d8b0979a70a31995d",23533:"8e2c525bdf643f6d43c9",23635:"8dc7b60331bbb736373e",23681:"9883a7b83235f72d4ae0",23695:"7a57354867763c616b49",23706:"e9354af8998db64529a5",23772:"9b3cd24a8a440ad70512",23775:"eeeb3ecc484aba98a423",23842:"a878b4dcd6d53afc9ce1",23885:"cd6299ff4812ee3cffcf",23921:"63151f232f6301f9eb37",24184:"86a220299094e38cef32",24239:"b3a36bd98162a127dcb6",24400:"abc0a57da32560c2f26a",24433:"623d773e1301b30fc1bd",24545:"f531c5ae425445e6e886",24643:"4828eecd905b2fbd97a9",24661:"4d56e55d970b56d5996e",24738:"696e08003d6d87368798",24745:"948e7afe8264f3546ae7",24786:"5cb1cde964103aceed31",24901:"4037e2f41f066a61543a",25110:"3db244144ac18f5e6d9b",25168:"c337cb5708f224d6ce6e",25304:"9cf142f342a3e031c0ce",25428:"a9fa173acc9d0afbae43",25473:"28c62a5d54022929c41e",25502:"b040bb6684a715c88f08",25652:"40f34a6907828b1ca35c",25844:"a84a23f3778c3745c36f",25863:"959933eb660ba44a3d7f",25956:"3c50dae4dddc11060462",25962:"dd426f480e4d8aaaa195",26031:"f4ee4114da860e3aa255",26050:"6ad9b4bc7ecd5442674b",26080:"147c1a1cd3472312f5de",26105:"75d42dc74574e7881b0a",26179:"ff6245951d5bcaf18fd5",26180:"92b3f0bf0ecc2f5abcdc",26288:"12d75b0f5f59b7d7bc9d",26397:"a2f809a837fc7b097566",26420:"a45e6efd02df2f36b1c2",26523:"4e53130c3e3aa248141e",26743:"bbf8da8fe3b9bb899d56",26849:"8a5c0e2823fce4006beb",26861:"c5d1a8f455b5c96cbaeb",26969:"efa2aa730b493059e775",26980:"dea024ec7213d12fc970",26983:"9ec6c8d4c3327669ecb9",26993:"59bd311c21ab83699276",27018:"9d3aeae0622a3d0b9f06",27108:"ebc73854fe3d45aadc05",27417:"693dfebc1f4bd141cb01",27444:"fbe4eb66d43d7f682460",27468:"6a55b948731ba40fbb16",27503:"1b2e17d1c9e59f95104e",27605:"c59f1b3f1319ccf06f42",27805:"ec866d8e7696c12401b3",27852:"fd4c31f5e7af103bcd6f",28023:"cd5393507b481dbad9b6",28063:"1acb61d6a428a41741f2",28216:"c9ec4b6e3eb6a57a601d",28227:"ad34f2d93145c571dc1e",28318:"f4ab917977befbe360f7",28335:"fb48a88474b390f0cd5d",28414:"9cb75cc54537559a2c57",28435:"813daf8b13adea485c5b",28445:"33ebd812a2401b91744c",28453:"47c5837b7ab05ed8930d",28476:"86987141810e43fc8a6c",28583:"177aeee76f6b328a3a63",28644:"d6f4d1a5da2b39b65f50",28645:"e1c25a79771118f19dcc",28656:"3677dedd76c6e3b1f2c3",28687:"f356ce979736767a2105",28900:"9ae6eee22a8ba6088820",28926:"55fbdc5d49836d52179c",28939:"10b3def5b00f9f93f9e6",28992:"ec0508a5ad4b877b2b4d",29063:"5c1fe7eb08312d821f84",29106:"7b8e1d93864b417962bb",29198:"805cd8592f038f1eb327",29269:"8962f2574faf4c7ce1a9",29458:"eb4f1f8cf0dc0a5b68da",29750:"c32adc24523ca1c70916",29988:"31926420165083156b21",30077:"123382ec001c11189fc6",30107:"05fa502f9649a15f0b5c",30133:"39dc63856fb1714ad9e6",30257:"6e929de8208b5f45df67",30312:"2c13bfecfe56cdf583de",30409:"0cc03dcd1817dee39387",30446:"2d1991e415b30477838f",30648:"74f10f815bcbefb508b5",30734:"287901fef87c258ade33",30800:"c7521e9eb1b5320c111f",31052:"10a99c5679e5ab9397fb",31150:"13208f3e492425db0d6d",31229:"c0a85e0a0ee3b8a03552",31367:"cea9e448b9add8b16e9c",31681:"54c5456d6081d186760d",31722:"41767dcfabf0ddc978cc",31788:"e646de3d6e226b45d28e",31815:"4b864f6ed955134a419b",31990:"cfe1131dab8ee9b49d6d",32158:"b3ad8599b3378a47f9a3",32194:"8c75aeb114ce5a1faac7",32254:"b596feaa4c78997df5af",32292:"282939246dd3dda4cb4e",32458:"24c5085f532c1bbb1af4",32669:"028e1d77ba0da5d2f4f9",32777:"81fdac0c6806bfcf56de",32826:"5408d9739c800caef952",32925:"5bb2e8261f301e5a0541",33091:"3acbb8f73ab1c1dd8afd",33217:"8fe09f43d2274b642530",33363:"510f24df8468ed63785c",33370:"7b902e87ef05af8f6c6a",33393:"da065b280bd9a53f3a1e",33396:"bf16958490ddff534b58",33516:"647ec1d879cda34a2a42",33527:"9b4dee6578aa689b6ad4",33701:"29e353753ed3756b4b30",33778:"d9a4a2fd4fa79fe1b18f",33901:"c98989a142313681686c",34034:"7ae0bdb42f38e1231b57",34124:"703a950528debd5a524f",34272:"21fb1ca522c5f41ac693",34279:"7c1ef6af0ae749876b31",34280:"4d29f076b1886fcd957c",34415:"b208c0e3595824d6c8fb",34428:"9a6c8646716be1d946dc",34456:"ca6bf4caeb238b5d72c8",34560:"28bdbc00e3d88e3aa04b",34624:"b9646f1c0858dfaa94a2",34627:"e3cb5a611825f45a6207",34828:"a16b910eb64f4425a13a",34891:"919049cb2fce6e425726",34900:"bacb461cf3348db32764",35188:"659a77391eabe0021757",35200:"d735efcd1348c6fd58c2",35293:"7235abe7b6612008ca81",35377:"c4bb485618ef91cc8e03",35546:"70ba80a169dd88d0cea6",35666:"e88f4bc24f0121586189",35695:"854859139d3e4e810f16",36009:"c32d9ce2fde45b7764f4",36034:"275c58b5301a48a1683a",36224:"b9761af4e2e9d9489baf",36273:"2274671701fa0aab3e22",36334:"269892f29c8c5fde569e",36441:"6e10c85d8e4fe9baca00",36452:"2b2fb703fe524e211e63",36465:"7733ff38e0ad3326554e",36466:"0cd8c66bcdbcc1548183",36477:"cc92648ff0bc63bba31c",36633:"a8350ae44ceabb78e4ec",36730:"df8a235e50fba38eca5e",36881:"4b756875135aa0f6fae5",36954:"d563717a4903adf0d616",37008:"cf7e7fb3a672437768e7",37043:"c40d93a60ca349cc2fcc",37050:"c0a7c092e03413c97a4d",37508:"ec2677f80ceea80cccc8",37557:"703645adc967e19c2ea7",37585:"17600fb8130baa0a4e58",37851:"3b7772f8879deb26fc78",37932:"41b7f6678d244b643ba8",38095:"07c98464ac149aed66de",38251:"b64cda65d32560770b03",38298:"2918da78ea37b0cf44e5",38620:"fa77e6f68b99a123c257",39084:"8d13cd8231d5863b9f9f",39270:"bb30571be2a3420b7c24",39427:"ab67785e0c36d9e3da3a",39486:"ccfa809eacf855499baa",39673:"ecd0f597203ba11101e6",39725:"0eb36699a6b357b7a2c5",39760:"e344346fbafa118050ac",39868:"7d8f268f066eb750dd18",39884:"aca6a2dc02ee49ff6e42",39918:"3460665acb84f2ef687b",40131:"0365bede63d62af42ac1",40310:"4a0d2c6ed3e847cd696e",40437:"5564cc75fe8f92bb11d1",40474:"dd635703f62f71a22d3f",40482:"c0dd22ced704b5259f76",40637:"0b49dd3eccfdd87782cc",40674:"468046c1761cb5057e66",41004:"63d2c7835c3bd95e75cf",41068:"e1ec4af8bee767c9fd97",41386:"800354faa18111688825",41424:"39a8c2ab2c548c43d0cd",41523:"bba41aeecd9aed11c9ed",41529:"d0610ee1b9bae688bf4f",41531:"23d554ba960fdd898544",41572:"db46b772cec1c4541927",41664:"72395facbe4098c999bf",41718:"44b2d9405984562117c2",41723:"54094d4816103e6790d9",41773:"a8af4b9b544b43b642a0",41813:"02e4860949bb3c89935e",41889:"e24e44f04c5253deb334",42077:"5bbc14bfaec5c1443d06",42206:"d3551dc204d73a91bf64",42211:"da2f4c8489df3b818498",42321:"44f1e9aaa48e0356cbfd",42396:"1369d5eed19d8cc9465f",42454:"812945bbfd10d29092fe",42550:"397d1f798b402920ddff",42627:"a4154bc191f177812146",42661:"02fdfe320e243a8572dc",42773:"6a6bfae1261ab1fc25ab",42889:"c6d0a9a238bef3adc066",42941:"cd41fbae608c80103b7d",43103:"0dcf9397e05a04f58f9d",43160:"d3c01bbe3f0b7924eb51",43263:"6e2d07fae9edc5bd0435",43305:"186fe2cd0748f0ec2575",43329:"017a6955a3daa1de5fc6",43361:"bdf812a5d83bc8ffbed1",43472:"fa62e6114ccd1eb3ed62",43623:"fd05b2b4072c00094bde",43817:"47ed2533b95f98116da5",44043:"f056fd3099f819dd99fb",44273:"2b96b5030bb98cc0344f",44318:"8c9f418e365565c6b634",44366:"bfd8d6920f5c79796648",44369:"3e35473d0c7710622e0c",44390:"b97246fa8bc39e611e5b",44391:"8d8db0aec1079bd926ca",44588:"a9d7d80bcbb6e8d0f5e4",44792:"6fd79689d62f13f679dd",44958:"5cbcbcd33d6d3a117421",45029:"df6d7a8cb5ff390ed0f7",45159:"a291489cc4bdc397d2f5",45197:"9a965a719e287523dc3d",45222:"24d6324986fa49c2fc34",45247:"3bf2b2f4666c37e30d8a",45349:"b134543e5627c2405ccf",45402:"6f23cdcd0844a7d552ab",45418:"0ad10d5fbd284c73501a",45638:"ffe3c495d382b1ab423e",45686:"6eda3f43d53b0fbd05cb",45735:"73351b52178f443a9417",45793:"f7cd562f733dd8e29811",45795:"f144713fcc33d5a2ed67",45891:"f13e9e41acf04573b812",45946:"ba6db401b57bbf3cb4f0",45962:"fc454bf66369b4df637f",46011:"4045a30a47acf41b9892",46107:"86b2a8f174cabb65b646",46139:"772d59432849389dd124",46200:"bfd084506a9bc63d8d8b",46296:"7ad0d0599b7e87ddaa88",46344:"bb1064e51a0852c3d429",46446:"0cc85d79af52a9134900",46624:"227b6cb9e840d90ad258",46653:"88b272ffcd2815526311",46672:"d39f46102b8cf882ab96",46767:"d97510ef8fa456644268",46789:"a7857045446ffdbf8713",46794:"ce6c9e441e57c16a10b2",46811:"038d8c777c0a5a6c8b1c",47012:"a332176bce7f805c3609",47097:"6d53906f99589c502ed3",47189:"cf06ee5d57eacde31888",47367:"0c00c2b671b5a977fa8f",47552:"8fb0247437b89017c238",47601:"f2e63163ad5bea5efa0a",47626:"e2ff87a8658ab5ca4f57",47749:"3664554096f88c4758d2",47942:"4c1a0f315c848ca839df",48135:"a1c63b379cd0c7fb0d86",48457:"a800d0577859137e57ce",48577:"31411e83e474244d40a8",48596:"3b591ddedb0c15a49a90",48653:"f40866a0f935bf4c42d5",48741:"f497f889bb1f1c786c60",48828:"b56b7be45dd9419eccbb",48857:"c7ed7bb04f741e48c124",49158:"593d6c7a119ffe1c8f9b",49189:"2fdde217bfdd2ddca34f",49354:"11d2cf34de5af994b783",49546:"5830ea9dd81f96ffa9f2",49623:"f00f3ac7c31e00959c0c",49631:"30fe9e16025cf29fa74a",49776:"c6bb1c77f14e701bd65b",50308:"c5f2012a1582424d77e5",50488:"a814cd4e5e0752930fa2",50875:"98b530f927c1d898e69e",50967:"d11f10141e8313fa01bc",51106:"3db1c86467a429208df0",51177:"8acb6338fd650c1ef7f4",51193:"37106480cb471b3194ce",51464:"ccc7b797d371508197fe",51536:"721deb2a1d269239ac38",51867:"a7655ba05275ee876726",51962:"2dd699ad01404affb3fd",52070:"1548b5017f4eb4fa065f",52083:"a858df0c1a1981381da5",52134:"2e025787919a6824a68e",52140:"ef205d1ae5401d4d7265",52153:"8b2b8aa2bfbcc521d546",52604:"f7f3248975154eddbd9a",52678:"473cf3872ea1a3df09cb",52684:"71261a5f6d80891f101d",52894:"8c6d6230527356a77477",52976:"0e4d2765fc74bc8edc1f",52981:"fecdf1fe0d06d8a84f6c",53012:"1c9aaf5ff43f4ac687f9",53022:"46f14cae76383f6e3a1b",53040:"36dfdd4bd59c699363ed",53082:"9fd179e1945177450532",53423:"dcf31a50fbede6cc1468",53480:"862839367fc5ecdb30ea",53493:"36084235397d1be79487",53519:"8cc05abd58885f6a3892",53606:"fc10d612f37155774a25",53630:"64f87885e0f117d98300",53649:"f149e1ac219eb4981e63",53651:"60719144e6b06d0f2cd4",53671:"156c32aa90eced7a03cd",53739:"e0b1472ad4dd3cb90830",53780:"61a94800b71ebe38d530",53818:"d070c764c94df0bd1ff5",53921:"9c204af362425913854f",54207:"a0bccc531e43548b4a42",54222:"be6f5e11cc0292835300",54233:"9a0ef6a9611a7b1cfb3b",54354:"2751e0bf1c8df29f31d5",54497:"4fabfd8fd8320bdfe1a4",54551:"5b0a62e7c915f9ac3f2e",54686:"2dcbe4a3fb6c16da7679",54771:"e3265033acadbe8b95b7",54958:"f12c9983722c2d7cb056",54970:"0b321c8491bbb78cfe0a",54974:"8abff557fabdaa44deb4",55099:"a211e107b4c802d7cd4b",55144:"6b6a26e5bf99a5ffa591",55283:"dce0932f5b422d37c485",55422:"1b8920532fdecfa33836",55447:"2077b45e5caf239a3c65",55544:"6708c169bd6006846c69",55663:"b43b1bab0ef5c6998f9c",55886:"9f2fec1025d0fde5d44a",55947:"ac9729a2d4a3ff667d07",55989:"ade23d6d2ee6b278b95e",56052:"44deab60064a992512c7",56060:"7a50a14293f4780ef85f",56139:"adbd56ad8cc2de6270a1",56143:"856c4ec03469065e8f53",56216:"992362f6bca5b6ac3d93",56228:"e0abfe548365b8077b00",56235:"e8725ce753303331c0ba",56310:"5ece2848a224e379e8af",56386:"691c4667f33ca7c90a31",56501:"259813e588bd615b6a83",57148:"0a181ad0ddcc53e00a6d",57247:"41c3ad4c510d3de08e83",57302:"7e6ec74682fdd2075872",57329:"68454bedb11f268062f3",57418:"f61c0f081ee7e4017d94",57503:"ae33155f62de8ff8c818",57620:"769f301be46a6e04d908",57650:"791993f58870032a0fe7",57653:"98f0f74477e8a812b8f2",57747:"104013dfec9b3dad9a9a",57843:"dcafb6c864cd86ea1429",57910:"6e2803bb9f7b42cccd24",57997:"d465723d3cb884888169",58087:"d06b0e5896094b2291d1",58170:"b321b26ad885ad69104e",58254:"380c41ed4e5a99fc10e5",58255:"d87b0675216597b1c8ff",58319:"4a2f095abd5b77e85623",58416:"c8167b3f99c160a00fbd",58572:"fe1377ded62c0a3a3260",58583:"c48d15c9d2fa55a87028",58719:"d08aac747170f4044421",58852:"8b81dda310329ca86527",58919:"85dc251cadfab924f37b",59035:"dfc7b11d81b71cdefb85",59036:"8a4065991d68bef7ce58",59049:"ccc800617c02f3254822",59082:"a40cfe51ba8652cdb423",59134:"4d00493c137c05242f81",59305:"ac38705372d446887917",59349:"ecdd636ce09ad1dffbbe",59465:"4ca9784fe30aea610b23",59546:"744c6b00d42e274db6f3",59631:"b7cf6a271621a63c7770",59666:"0d3dff78862669f876bb",59809:"1b47f414d52488082613",59837:"02bcaad0eaf6fa3c4647",59864:"4014d637f33128deae62",59890:"1801cf76a3b6094fc0a9",60016:"5bb897617a07069d1970",60287:"648d611181f26f81bdfb",60288:"edfb573b8b479d9352c6",60575:"3897d8bda6bc9a2b11e7",60647:"8577b75a0b0ec3baaaa2",60700:"4bf062a14f4c3a7b2f84",60823:"b2ec88f9ffff401d3123",61009:"abfa10849bb301e26cd4",61198:"bbe1c13edff6ae8fc78d",61396:"4b4a1ad921c12dcf3db7",61446:"ac92b3c4a0eb99fa6512",61462:"fa3528273ebc2ba31643",61658:"cab9ce140a19d1b2f71a",61968:"f629bb69cdcd16d63a83",62008:"2fd25c619b9e2c035b24",62030:"1a80508328d8f7ac96b7",62050:"bfa6b00505f3a12627ae",62196:"e5ff75dc74250d08e1c0",62454:"3a345b31f6316dea35e8",62826:"9b0f6d073c57bbe4d2da",62990:"25917c601395c369f438",63033:"196339c9137c6d09bccf",63320:"29c48e4211cd9b82041c",63484:"40225af4ca31efeeb3a4",63493:"482aaf9ce3582a1731e9",63634:"da2e9749837a40a0decf",63667:"6861ff82c1134d5dee15",63805:"151a1c9e158f50951e1a",63865:"461081bfd949d1c2267d",63995:"babf86b521e3e9c403f8",64049:"fb6eb9021a21c5b963c6",64300:"cea9622286976d28edc4",64486:"34078c3fe914c3cd87b4",64642:"0659d2eb41bd6f9cd942",64649:"553c76e151442a876580",64701:"99d9fdfc24c5e8a0c8c8",64781:"a3f50087b9c3f1af21e5",64795:"524494807c7ddc49aea0",64800:"1486be80c9d8fcee5f31",65088:"ad4744e8dda6b1dedff4",65127:"94e6441cf63b2b61b9f1",65234:"0f7229b58f8b07834edb",65304:"3afe80a0ac4b98a5377c",65305:"f82f35197196deb183f1",65503:"a78abb204371642c1096",65575:"30d668785fb8f1b81904",65622:"5987ff4fe317e823b2ee",65642:"907f4760c2ac7b6f98bf",65677:"19d6392ab9c04279b27f",65784:"a4268c0aece54bc86a2a",65789:"1e973d42454e6a4be504",65966:"9a1d2c952a44901a23f7",65974:"bad23695108e34c45a1e",66240:"357b5da47757e11a18af",66276:"edb7e9338a122793b350",66313:"fcf63a56e41bca4ff4a6",66446:"011fced733ed751b6712",66454:"ae876224dc8f43bc949e",66530:"18ebf8a0c9bddc943fba",66589:"d84f7e210d6f6fb0afd7",66676:"5156b0fc0cf340649574",66686:"fa3211d32ec5a7e2d865",66793:"1dff96c77dba5c4bcf15",66865:"d4c7703fb7ade105aa1a",66909:"7c54a8acfb92ff001ecf",66942:"ef75f84ac0e2792a0989",67063:"d2ff4851312ac29bda16",67103:"f25dbed6172371fdf2b5",67123:"5b7ce47624c2f442fc35",67153:"05ab58b95ef255974eae",67458:"082ae3348f03bbc7bfc7",67491:"ebd2347a2c4892dd4555",67563:"738fdeab02a21f277cb7",67587:"bb22d84e80b35aebcb1f",67598:"de1194770460daec7236",67658:"0a1b029f0c252910b515",67666:"a0285cd8251791b84b6e",67770:"a40e10986e4c6d210d98",68163:"a67cff72db9f513cf11c",68205:"56c0568a742c843c8c09",68432:"9a5170ff66a5fa2b74f8",68466:"66ab06a9b84f2edee767",68485:"9ccec85632582d9f65a0",68588:"4caefa9a2153ac44bf63",68593:"bb2316fa7dee54d0a259",68599:"5e9971dfc7ce2f424940",69086:"b691ef818bb3d5c6cd4a",69090:"e78752422201d06dc513",69214:"38b5c487091649faeaa0",69529:"b524fa5fc3892d388add",69536:"e338b186cdf2870c486d",69576:"72eacac7e71561e08993",69723:"bc7094fd78486eb8f13f",69804:"63098bfa329bea7fad5b",70075:"a402a0f8afa19893f89c",70251:"e49185c3b15a58afaa5c",70382:"4a21fd3593c1872d1897",70491:"61efacb6d49718075668",70715:"ca52d39d20836f61ea7c",70726:"d733f34b806f37339221",70828:"40abad4dfe5df037c5cb",70849:"9e9919613a183149bf30",70859:"acdedda241f17ca73503",70897:"26a842421d09c8d271e3",71077:"c940f7c0fb05bd8adea8",71265:"04ded0012617b0208ad6",71331:"f6020035fab90d41bd93",71585:"4fa3bbc4d18edfc07baf",71607:"b4ec5205caa7e5a6c79d",71660:"c74f76ff64f6ea27335b",72157:"c2016f458971d6774aeb",72248:"9217586ddae356406dd6",72260:"91704028c4dcebd4df55",72337:"ec1e08ef703d94b4c621",72374:"376096c090d3c4740bbb",72408:"0b84e7574c020b6b9516",72711:"9c6af2188541be1c4fda",72874:"1fab6e5767fc0ad90ec9",72910:"61d3d50127a886cb11c5",72918:"85886692d8a064e61b1e",73082:"a36f36bf0224f8b701b8",73145:"03aaf18bb8c6077705be",73238:"6593e643fb7a234b28e3",73245:"d9115da03cd5fed5e925",73294:"f734dfd97068d63e2c21",73439:"3348bd06ce6d062259b1",73698:"2d6309c9709ed5a3f6c9",73735:"4e913311724aa52f9d39",73788:"157eb97a99c53bb7290f",73921:"fd982caa13495abea141",74373:"a4e0f641843fb7fe5ccc",74378:"7c32fae262e1b4b778af",74577:"9a4a8cf0f592526a4edc",74641:"1c78166299a87818f2cf",74646:"8544762ddd1adc5887bd",74662:"24be3b6899e4d71d7d2b",74765:"5b1d97ef28c9f223b25e",74844:"9f163c7f1f7bdc5977b7",74858:"413c3d48442e34a8433a",75709:"3d5c6ed07a4c0105bc25",75720:"9fa8cf60824f605ca270",75727:"4da14fda99a4012e7eef",75735:"96493c6327b29edb98ab",75771:"bc81988cfbe140876611",75893:"dd64c31ef328e4af2cb5",75948:"80303f82386c97fddb30",76006:"60a53e57725689352cce",76096:"ab14179c88cfc63c48de",76125:"48604d8b27d5d163c2c3",76220:"b33a8004b3daf7e1a67f",76261:"8495da9f253b5e11325c",76376:"78b4e183a80876a2fe23",76541:"1a3249287fc8a5f71885",76600:"cdb044c21e2313740914",76608:"0464d950da1e6d6d6b8a",76622:"2a3d75f5ee74025917b4",76726:"a0cec4fb383bc0dc671d",76754:"d37c7f3e2eb5d1f7dbf5",76902:"b3f40a3464a888298c50",76953:"7d9c43630aacf323032a",77011:"43cd715fc5c67c194ff7",77625:"85cb37be2c0ea160cc9d",77645:"b8960b622df163d8bc1f",77754:"61374fae741f73f8bbff",77812:"4e2c0426245e10a864d2",77828:"9be1d31a1593429976dd",78139:"a0b0362d2e91a128915e",78229:"3cdce61e1b0370e65bc4",78357:"23b7030d328ec4601303",78833:"9dd4fe14707d7840e65e",78970:"60ba52ce367206a0387b",79013:"f0b7652d608f635a9e22",79130:"83bf94e7026e9c1d25ca",79289:"f5986238fe2871fd0696",79539:"d131abeba6f1bdd2ab05",79580:"3fb21375448a45146354",79590:"aade5d589407227d3d72",79675:"c844fcd1cdff3f7951d6",79754:"be3ac90e19b4456ad0f7",79837:"16850ec09c97b49dadbc",79844:"bbbd036e4890d69a77cc",79861:"cdf3bd7362e818153049",79896:"2fbd911cce18cda4550a",79967:"b1b2b0bef347e08b8497",80459:"cfcee6bd2654f99e6a06",80511:"da4f3888efb30ab41e38",80517:"f659b3bb7b64e972c525",80668:"6f830289121bc2fe0cf3",80797:"14432a661b24106613a8",80824:"a6021f055667fb41b97e",80895:"118a535b24f0eb602abf",80977:"0f5c40b24257f421561b",80992:"a9129c155fb33d487f86",81142:"5484245824d6f2f7112c",81172:"bf992bef426a42fe9ca0",81313:"cd364126e903c45f538a",81562:"6d6a6dd27814203e8005",81701:"e8735cb7c3aba92937a6",81749:"595745f2f173c6b26d44",81767:"b2acd38b3c291c3bab01",81769:"5045f5a4d49e661ccfe2",81820:"c513d2d205e3b0ab6931",81890:"127106e41655cf8501f0",82088:"2050d535065ac278c3e6",82096:"ab976e96e4ff1bf1d993",82146:"b58585941ab2b8bf32cc",82453:"1d3e711b54c0319f76a4",82460:"8fb7852cd6d411cc0174",82516:"9f8768460cef65ee9195",82571:"c1066fd374e496bf64c6",82579:"6b8d00e11bb6ea0c9694",82657:"d566a116eaa23e93814b",83007:"34466df2c859a0b1d2d6",83086:"08a484e1ebb9e7161a60",83167:"0936ac98bd213ebdf5d2",83174:"42dbc31e870b3ec947e2",83232:"82f252192f2c3b3eb736",83258:"70bfb409ff99f8372aaf",83347:"986217914203ab0debb5",83534:"bcd75fa720ff2f7055df",83691:"b5d2beeabd392814905b",83799:"adbb863a02504c08c364",83917:"3bc052b69071bd734a9b",84066:"a467331ce43e186eea27",84127:"f8bf495e7545ba96b4ad",84128:"0d7f3d786e825ffdeb55",84198:"1113658df48c85f6639c",84226:"7068d0f6014cc54744b6",84325:"b601570c7647c931ca0e",84370:"4293c73bfad0279e6c54",84490:"963a471fd3e319170074",84508:"ee7238627b7efd79a2ae",84522:"81c4553935d4a9dab15a",84690:"afd532c06c0880ffd10e",84759:"df17957835aaebfec77b",85104:"86cfb87d62d9de9fabb4",85107:"b91ec6774e077dbeb492",85134:"5b8bc41b33c9a61fa569",85195:"c0b079352e84d1b76c09",85222:"230b15742c1d953174fd",85259:"ea6877661cb243e7009b",85388:"5da00dd655acfd6e9ec2",85400:"7469579c59b7c6286991",85669:"e63ee8ff4123f9ee7410",85813:"41f0ce838ce2e8fc5d3a",85818:"9bc1b3ba9b458bb284ba",85872:"7bafa8a2faf2e7a53b79",86019:"7574ac94481d935503e2",86023:"d64ca3676a31612f02ad",86251:"9828f1672fdf6d2d1411",86259:"2a83e05013f869acd9db",86380:"23565772f13e658ec13e",86532:"5b49983c9abf46b1cad1",86577:"50d984fd78df3681f018",86664:"be4e0898d0865bc2d6a2",86809:"4ae754e7fb6033e1fabe",87256:"3383ae29b1203480744e",87563:"5e71350ae97d1beb0923",87594:"c3ac9afe69b81d279c9e",87717:"184e3493696259e460b0",88033:"70b2f5cdc91c795ce879",88124:"ec0e38a2bb1ff28e7ae6",88155:"383936cbf3565b8027ac",88198:"0e370da29703256b532d",88380:"aa515bf7eebeff67539e",88662:"61c733121a79d8e51525",88943:"cf490589eff51ed1c6a4",89369:"32f991ca1b7f45f0eb36",89551:"8a396bb1faebde005a7f",89596:"8e16ebb5ed579ee99019",89679:"8376cc76e560cd875cb9",89717:"63385919af8fa14bd1e8",89968:"e03fc8b81f0854c5bd1c",90069:"75cd2d4312e82f639339",90105:"1099e73c93e09cbd224d",90205:"deb32818481991e25a1c",90331:"6afe477b4480cf2ae7a3",90349:"cba3e40f26a863730b20",90458:"e92de588d9dcda3ee70e",90517:"39d56cb82f4f51e41a9e",90519:"8753560cf001be0f0026",90565:"04f4c4aea234a956ff6d",90661:"062a93ecf9befe822cd4",90871:"61cf4239ae7c39d265b7",90873:"31a21748a332dc3c02db",91063:"fb953a3fb7b3f66e7904",91064:"a1b21ae20edf5d73e2c6",91324:"ef56807af5f052f235be",91817:"7384596365a79a68e699",92094:"941e93b89a129fc83e67",92102:"d34dcfaee60132b44919",92191:"2f10aba6d0f3e80aad8c",92214:"46609164598123360918",92374:"5587b5c3920a4ea3c43c",92467:"2426e1908a70f430a838",92642:"a1ffce997df7d1d8a8cc",92958:"b880aa0b788bfbd79136",92975:"59614986825db87355c5",93163:"abefafa09dfbed2f5f27",93176:"8c2fd45e7ed84f75786a",93406:"0ffdc17216624ba371d8",93464:"e7f2674cddbcffe68499",93696:"9d40f26e0f9680d6fe7c",93745:"fff4a717b78f6beaa8c4",93760:"98a4e1b9bdece5b7695b",93961:"577548bc2601c244fc8c",93973:"b9b3651b9f9bcc84c9dd",94126:"c02fcea4e3266a63fda2",94346:"78904607ee5bedf34998",94524:"6dc4e73f0a0f942b3a51",94531:"67bf605caff66f8bf63c",94586:"ab2910937a7b9f8f72e4",94782:"e71388c477a31ed2b427",94962:"91e5c33b492e4b52ab8e",95113:"26ed21b37255ca520a8a",95363:"be92b13c171766ef3454",95366:"db342ec25185e084e195",95454:"e8ed9e1ecf02f0d4bbf5",95772:"da869b57d4e0034e8ce7",96094:"6a900ce8829dcc89b450",96122:"370dd84cafdd1f518db2",96198:"cf6342a5fb9b72f7fa5d",96209:"8096b82c2831cb1f7eae",96278:"fb20ba9182373ed96d17",96432:"54a152300fb76cc307ab",96469:"633c52979aa9803c08ae",96481:"ca917757e460c6ee0880",96550:"32d13eef8e081b44e0e0",96569:"454acbf1479d0a850897",96851:"48aeb6a30c5ca83275ee",96899:"8d4a9a26cb31700f799a",96941:"e287ad22a1b318855658",97163:"ca6c10198aadccd95636",97186:"2ada918cd2c54a451120",97613:"0f91343c16be2b2cbaf4",97657:"81d44dfdeb007af565df",97709:"c65d806b5853a9c8cffc",97746:"41a5b1ce4e3d80f0eaec",97758:"5a35fbe9f77b0c8adc8d",97793:"2681e05dc03b8a7f8f6f",97964:"7df9ff4a8b94b168a172",97966:"6d90bf061d032004b187",98112:"077629a1a8ff2a337398",98277:"46e94ed9e04a9a9070d9",98280:"db8a4a2ad83c04dc4b3c",98304:"e1dff1868363bc9b25b1",98387:"dbd67b7a1a91a5d7a38c",98664:"638412924d8c8ec8d85b",98767:"4d194476134aee3f601e",98783:"6ed0e5491a9c1ae49764",98826:"d466c6bc41ebcef7ea46",98918:"a20d0ebfb96d34585b47",98921:"4ca5497ddea18b17da2d",99003:"37c357ce2d8e41169078",99008:"f04cc5b9a1cd86a1db37",99193:"7e0a0ef1e92b3e98c388",99201:"e055c8e0561dd73d2096",99206:"f0061b3fa2e39ec2a07d",99404:"7a6b5116d1134b16b315",99440:"4da4c7633bbb3fcf0604",99495:"16276b8e3f8a1373e838",99533:"dd66d2e0b225eb9a887b",99629:"ecb04125c0065b45a9f8",99661:"98ca820c8524fafe534c",99679:"d40405885c3bac87eff8",99741:"cf6e68d152a174fc9b2b",99794:"e3ed20e5cbc97228bcad",99807:"ede5ee7409c8a4cc5ba0",99872:"ae8cc2e29a1fd9260885",99897:"baf0ba130966935244cf",99981:"63d155fb983214784b43"}[e]+".js"),u.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="uniweb-builder:",u.l=(e,t,i,a)=>{if(n[e])n[e].push(t);else{var o,c;if(void 0!==i)for(var l=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),c&&document.head.appendChild(o)}},u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i={20983:[20983],70828:[70828]},a={20983:["default","./widgets",16700],70828:["default","./widgets",96790]},u.f.remotes=(e,t)=>{u.o(i,e)&&i[e].forEach((e=>{var n=u.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]),u.m[e]=()=>{throw t},r.p=0},o=(e,n,a,o,c,u)=>{try{var l=e(n,a);if(!l||!l.then)return c(l,o,u);var s=l.then((e=>c(e,o)),i);if(!u)return s;t.push(r.p=s)}catch(e){i(e)}},c=(e,t,i)=>o(t.get,r[1],n,0,l,i),l=t=>{r.p=1,u.m[e]=e=>{e.exports=t()}};o(u,r[2],0,0,((e,t,n)=>e?o(u.I,r[0],0,e,c,n):i()),1)}}))},(()=>{u.S={};var e={},t={};u.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];u.o(u.S,n)||(u.S[n]={});var a=u.S[n],o="uniweb-builder",c=(e,t,n,r)=>{var i=a[e]=a[e]||{},c=i[t];(!c||!c.loaded&&(!r!=!c.eager?r:o>c.from))&&(i[t]={get:n,from:o,eager:!!r})},l=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=u(e);if(!i)return;var a=e=>e&&e.init&&e.init(u.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&&(c("@twind/react","0.0.4",(()=>Promise.all([u.e(11129),u.e(34560),u.e(42889)]).then((()=>()=>u(42889))))),c("react-dom","18.2.0",(()=>Promise.all([u.e(83258),u.e(11129)]).then((()=>()=>u(83258))))),c("react-router-dom","6.4.3",(()=>Promise.all([u.e(79967),u.e(11129)]).then((()=>()=>u(79967))))),c("react","18.2.0",(()=>u.e(13900).then((()=>()=>u(13900))))),c("twind","0.16.19",(()=>u.e(25110).then((()=>()=>u(25110))))),l(16700),l(96790)),s.length?e[n]=Promise.all(s).then((()=>e[n]=1)):e[n]=1}}})(),u.p="https://app-assets-ca-central-1-pro.uniweb.app/uniweb/6877c2b06e1c9/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,c);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,c=1,u=!0;;c++,o++){var l,s,f=c=r.length||"o"==(s=(typeof(l=r[o]))[0]))return!u||("u"==f?c>i&&!a:""==f!=a);if("u"==s){if(!u||"u"!=f)return!1}else if(u)if(f==s)if(c<=i){if(l!=t[c])return!1}else{if(a?l>t[c]:l{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],c=(typeof o)[0];if(a!=c)return"o"==a&&"n"==c||"s"==c||"u"==a;if("o"!=a&&"u"!=a&&i!=o)return i{var u=r(e,o);return n(c,u)||"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,u,c)),a(e[o][u])},a=e=>(e.loaded=1,e.get()),o=(e=>function(t,n,r,i){var a=u.I(t);return a&&a.then?a.then(e.bind(e,t,u.S[t],n,r,i)):e(t,u.S[t],n,r,i)})(((e,t,n,r,a)=>t&&u.o(t,n)?i(t,0,n,r):a())),c={},l={11129:()=>o("default","react",[1,18,2,0],(()=>u.e(13900).then((()=>()=>u(13900))))),4291:()=>o("default","react-router-dom",[1,6,4,2],(()=>u.e(79967).then((()=>()=>u(79967))))),62050:()=>o("default","react-dom",[1,18,2,0],(()=>u.e(83258).then((()=>()=>u(83258))))),34560:()=>o("default","twind",[2,0,16,17],(()=>u.e(25110).then((()=>()=>u(25110))))),35666:()=>o("default","@twind/react",[3,0,0,4],(()=>u.e(26179).then((()=>()=>u(42889)))))},s={4291:[4291],11129:[11129],34560:[34560],35666:[35666],62050:[62050]};u.f.consumes=(e,t)=>{u.o(s,e)&&s[e].forEach((e=>{if(u.o(c,e))return t.push(c[e]);var n=t=>{c[e]=0,u.m[e]=n=>{delete u.c[e],n.exports=t()}},r=t=>{delete c[e],u.m[e]=n=>{throw delete u.c[e],t}};try{var i=l[e]();i.then?t.push(c[e]=i.then(n).catch(r)):n(i)}catch(e){r(e)}}))}})(),(()=>{var e={40179:0};u.f.j=(t,n)=>{var r=u.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else if(/^(11129|20983|34560|35666|4291|62050|70828)$/.test(t))e[t]=0;else{var i=new Promise(((n,i)=>r=e[t]=[n,i]));n.push(r[2]=i);var a=u.p+u.u(t),o=new Error;u.l(a,(n=>{if(u.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,c]=n,l=0;if(a.some((t=>0!==e[t]))){for(r in o)u.o(o,r)&&(u.m[r]=o[r]);c&&c(u)}for(t&&t(n);l