PageSourceSearch

https://www.tet.lv/dist/components-web/connect/index.39abbb2ec68e732f66fe.js?fe389c

js tet.lv collected 2026-10-01 10:31:13 UTC 23,300 bytes, 2 lines download raw bytes

1/*! For license information please see index.39abbb2ec68e732f66fe.js.LICENSE.txt */
2(()=>{"use strict";var t={1600(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,i(r.key),r)}}function i(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}n.d(e,{E:()=>u});var u=function(){return t=function t(){var e,n,r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,r={},(n=i(n="callbacks"))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r},e=[{key:"registerEvent",value:function(t,e){void 0===this.callbacks[t]&&(this.callbacks[t]=[]),this.callbacks[t].push(e)}},{key:"unregisterEvent",value:function(t,e){var n=this.callbacks[t].findIndex(function(t){return t===e});n>=0&&this.callbacks[t].splice(n,1)}},{key:"emit",value:function(t){var e,n=new CustomEvent(t,{detail:arguments.length>1&&void 0!==arguments[1]?arguments[1]:null});null===(e=this.callbacks[t])||void 0===e||e.forEach(function(t){t(n)})}}],e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}()},4677(t,e,n){n.d(e,{q:()=>s});var r=n(8089);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,i){var a=r&&r.prototype instanceof l?r:l,f=Object.create(a.prototype);return u(f,"_invoke",function(n,r,o){var i,u,a,l=0,f=o||[],s=!1,p={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(e,n){return i=e,u=0,a=t,p.n=n,c}};function y(n,r){for(u=n,a=r,e=0;!s&&l&&!o&&e<f.length;e++){var o,i=f[e],y=p.p,m=i[2];n>3?(o=m===r)&&(a=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=t):i[0]<=y&&((o=n<2&&y<i[1])?(u=0,p.v=r,p.n=i[1]):y<m&&(o=n<3||i[0]>r||r>m)&&(i[4]=n,i[5]=r,p.n=m,u=0))}if(o||n>1)return c;throw s=!0,r}return function(o,f,m){if(l>1)throw TypeError("Generator is already running");for(s&&1===f&&y(f,m),u=f,a=m;(e=u<2?t:a)||!s;){i||(u?u<3?(u>1&&(p.n=-1),y(u,a)):p.n=a:p.v=a);try{if(l=2,i){if(u||(o="next"),e=i[o]){if(!(e=e.call(i,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,u<2&&(u=0)}else 1===u&&(e=i.return)&&e.call(i),u<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=t}else if((e=(s=p.n<0)?a:n.call(r,p))!==c)break}catch(e){i=t,u=1,a=e}finally{l=1}}return{value:e,done:s}}}(n,o,i),!0),f}var c={};function l(){}function f(){}function s(){}e=Object.getPrototypeOf;var p=[][r]?e(e([][r]())):(u(e={},r,function(){return this}),e),y=s.prototype=l.prototype=Object.create(p);function m(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,u(t,o,"GeneratorFunction")),t.prototype=Object.create(y),t}return f.prototype=s,u(y,"constructor",s),u(s,"constructor",f),f.displayName="GeneratorFunction",u(s,o,"GeneratorFunction"),u(y),u(y,o,"Generator"),u(y,r,function(){return this}),u(y,"toString",function(){return"[object Generator]"}),(i=function(){return{w:a,m}})()}function u(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}u=function(t,e,n,r){function i(e,n){u(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},u(t,e,n,r)}function a(t,e,n,r,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,f(r.key),r)}}function l(t,e,n){return(e=f(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"==o(e)?e:e+""}var s=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return e=t,n=[{key:"htmlStringToElement",value:function(e){var n=e.html;return t.htmlStringToElement({html:n})}},{key:"htmlToScriptElement",value:function(e){var n=e.html;return t.htmlToScriptElement({html:n})}},{key:"htmlStringArrayToScriptElements",value:function(e){var n=e.strings;return t.htmlStringArrayToScriptElements({strings:n})}},{key:"getScriptsFromHtml",value:function(e){var n=e.html;return t.getScriptsFromHtml({html:n})}},{key:"getLanguageFromHtmlTag",value:function(){return"RU"===window.location.href.split("/")[3].toUpperCase()?"RU":"LV"}}],o=[{key:"htmlToScriptElement",value:function(t){var e,n=t.html,r=t.noscript;return e=void 0!==r&&r?document.createElement("noscript"):document.createElement("script"),n=(n=n.replace(/<script>|<\/script>|<noscript>|<\/noscript>/g,"")).trim(),e.innerHTML=n,e}},{key:"htmlStringToElement",value:function(t){var e=t.html,n=document.createElement("template");return e=e.trim(),n.innerHTML=e,n.content.firstChild}},{key:"remToPx",value:function(t){return t*parseFloat(getComputedStyle(document.documentElement).fontSize)}},{key:"injectStyles",value:function(e,n,o){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=[];(a=i?(0,r.Do)(n,e):e.querySelector(n)).length?a.forEach(function(e){t.injectStylesInElement(e,o)}):u<t.MAX_INJECTION_TRIES&&setTimeout(function(){return t.injectStyles(e,n,o,i,++u)},t.INJECTION_TRY_TIMEOUT)}},{key:"injectStylesInElement",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;e.shadowRoot?n.forEach(function(t){var n=document.createElement("link");n.href=t,n.rel="stylesheet",n.type="text/css",e.shadowRoot.appendChild(n)}):r<t.MAX_INJECTION_TRIES&&setTimeout(function(){return t.injectStylesInElement(e,n,++r)},t.INJECTION_TRY_TIMEOUT)}},{key:"getScriptsFromHtml",value:function(t){for(var e,n=t.html,r=[];null!=(e=this.scriptRegex.exec(n));)r.push(e[0]);return r}},{key:"htmlStringArrayToScriptElements",value:function(t){var e=this;return t.strings.map(function(t){return e.htmlToScriptElement({html:t})})}},{key:"isInIframe",value:function(){try{return window.self!==window.top}catch(t){return!0}}},{key:"awaitHydration",value:(u=i().m(function t(e){return i().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,new Promise(function(t){if(e.classList.contains("hydrated"))t();else{var n=new MutationObserver(function(){e.classList.contains("hydrated")&&(n.disconnect(),t())});n.observe(e,{attributes:!0,attributeFilter:["class"]})}});case 1:return t.a(2)}},t)}),l=function(){var t=this,e=arguments;return new Promise(function(n,r){var o=u.apply(t,e);function i(t){a(o,n,r,i,c,"next",t)}function c(t){a(o,n,r,i,c,"throw",t)}i(void 0)})},function(t){return l.apply(this,arguments)})}],n&&c(e.prototype,n),o&&c(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,o,u,l}();if(l(s,"MAX_INJECTION_TRIES",30),l(s,"INJECTION_TRY_TIMEOUT",100),l(s,"scriptRegex",/<script>(.|\n|\r)*?<\/script>/g),!window.HTMLUtilities){window.HTMLUtilities=s,document.defaultQuerySelector=document.querySelector,document.defaultQuerySelectorAll=document.querySelectorAll,document.querySelectorAllDeep=function(t){document.querySelectorAll=document.defaultQuerySelectorAll;var e=(0,r.Do)(t,document);return document.querySelectorAll=document.querySelectorAllDeep,e},document.querySelectorDeep=function(t){document.querySelector=document.defaultQuerySelector;var e=(0,r.qi)(t,document);return document.querySelector=document.querySelectorDeep,e},document.querySelector=document.querySelectorDeep,document.querySelectorAll=document.querySelectorAllDeep}},5087(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",u=n.toStringTag||"@@toStringTag";function a(n,r,o,u){var a=r&&r.prototype instanceof l?r:l,f=Object.create(a.prototype);return i(f,"_invoke",function(n,r,o){var i,u,a,l=0,f=o||[],s=!1,p={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(e,n){return i=e,u=0,a=t,p.n=n,c}};function y(n,r){for(u=n,a=r,e=0;!s&&l&&!o&&e<f.length;e++){var o,i=f[e],y=p.p,m=i[2];n>3?(o=m===r)&&(a=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=t):i[0]<=y&&((o=n<2&&y<i[1])?(u=0,p.v=r,p.n=i[1]):y<m&&(o=n<3||i[0]>r||r>m)&&(i[4]=n,i[5]=r,p.n=m,u=0))}if(o||n>1)return c;throw s=!0,r}return function(o,f,m){if(l>1)throw TypeError("Generator is already running");
2for(s&&1===f&&y(f,m),u=f,a=m;(e=u<2?t:a)||!s;){i||(u?u<3?(u>1&&(p.n=-1),y(u,a)):p.n=a:p.v=a);try{if(l=2,i){if(u||(o="next"),e=i[o]){if(!(e=e.call(i,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,u<2&&(u=0)}else 1===u&&(e=i.return)&&e.call(i),u<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=t}else if((e=(s=p.n<0)?a:n.call(r,p))!==c)break}catch(e){i=t,u=1,a=e}finally{l=1}}return{value:e,done:s}}}(n,o,u),!0),f}var c={};function l(){}function f(){}function s(){}e=Object.getPrototypeOf;var p=[][r]?e(e([][r]())):(i(e={},r,function(){return this}),e),y=s.prototype=l.prototype=Object.create(p);function m(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,i(t,u,"GeneratorFunction")),t.prototype=Object.create(y),t}return f.prototype=s,i(y,"constructor",s),i(s,"constructor",f),f.displayName="GeneratorFunction",i(s,u,"GeneratorFunction"),i(y),i(y,u,"Generator"),i(y,r,function(){return this}),i(y,"toString",function(){return"[object Generator]"}),(o=function(){return{w:a,m}})()}function i(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}i=function(t,e,n,r){function u(e,n){i(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(u("next",0),u("throw",1),u("return",2))},i(t,e,n,r)}function u(t,e,n,r,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)}function a(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(t){u(i,r,o,a,c,"next",t)}function c(t){u(i,r,o,a,c,"throw",t)}a(void 0)})}}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function l(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}n.d(e,{_:()=>f});var f=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return e=t,n=[{key:"sendPostRequest",value:(s=a(o().m(function e(n){return o().w(function(e){for(;;)if(0===e.n)return e.a(2,t.post(n))},e)})),function(t){return s.apply(this,arguments)})},{key:"sendGetRequest",value:(f=a(o().m(function e(n){return o().w(function(e){for(;;)if(0===e.n)return e.a(2,t.get(n))},e)})),function(t){return f.apply(this,arguments)})}],r=[{key:"formDataFromJson",value:function(t){var e=t.json,n=new FormData;for(var r in e)n.append(r,e[r]);return n}},{key:"post",value:(l=a(o().m(function e(n){var r,i;return o().w(function(e){for(;;)if(0===e.n)return n.url instanceof URL&&(n.url=n.url.toString()),r=n.useFormData?t.formDataFromJson({json:n.data}):JSON.stringify(n.data),i={method:"POST",body:r,headers:{"Content-Type":n.useFormData?"multipart/form-data":"application/json"}},n.abortSignal&&(i.signal=n.abortSignal),e.a(2,t.sendRequest({url:n.url,options:i}))},e)})),function(t){return l.apply(this,arguments)})},{key:"get",value:(u=a(o().m(function e(n){var r,i,u,a,c=arguments;return o().w(function(e){for(;;)if(0===e.n)return r=c.length>1&&void 0!==c[1]?c[1]:null,n.url instanceof URL&&(n.url=n.url.toString()),i=n.url,i+=n.url.includes("?")?"&":"?",n.format&&(i+="format="+n.format),n.data&&Object.keys(n.data).forEach(function(t){i+="&".concat(t,"=").concat(n.data[t])}),u={},n.abortSignal&&(u.signal=n.abortSignal),a=null!=r?r:n.format,e.a(2,t.sendRequest({url:i,options:u,format:a}))},e)})),function(t){return u.apply(this,arguments)})},{key:"sendRequest",value:(i=a(o().m(function t(e){var n,r;return o().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,fetch(e.url,e.options);case 1:n=t.v,"POST"===e.options.method&&void 0===e.format&&(e.format="json"),r=e.format,t.n="json"===r?2:"raw"===r?3:4;break;case 2:return t.a(2,n.json());case 3:return t.a(2,n);case 4:return t.a(2,n.text());case 5:return t.a(2)}},t)})),function(t){return i.apply(this,arguments)})},{key:"setQueryParam",value:function(t,e,n){var r=t;r.includes("http")||(r=window.location.protocol+"//"+window.location.host+("/"===r[0]?"":"/")+r);var o=new URL(r),i=new URLSearchParams(o.search);return n?i.set(e,n):i.delete(e),o.search=i,o.toString()}}],n&&c(e.prototype,n),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r,i,u,l,f,s}();window.RequestUtilities=f},4609(t,e,n){function r(t){function e(){r&&(u.length>0&&/^[~+>]$/.test(u[u.length-1])&&u.push(" "),u.push(r))}var n,r,o,i,u=[],a=[0],c=0,l=/(?:[^\\]|(?:^|[^\\])(?:\\\\)+)$/,f=/^\s+$/,s=[/\s+|\/\*|["'>~+[(]/g,/\s+|\/\*|["'[\]()]/g,/\s+|\/\*|["'[\]()]/g,null,/\*\//g];for(t=t.trim();;){if(r="",(o=s[a[a.length-1]]).lastIndex=c,!(n=o.exec(t))){r=t.substr(c),e();break}if((i=c)<(c=o.lastIndex)-n[0].length&&(r=t.substring(i,c-n[0].length)),a[a.length-1]<3){if(e(),"["===n[0])a.push(1);else if("("===n[0])a.push(2);else if(/^["']$/.test(n[0]))a.push(3),s[3]=new RegExp(n[0],"g");else if("/*"===n[0])a.push(4);else if(/^[\])]$/.test(n[0])&&a.length>0)a.pop();else if(/^(?:\s+|[~+>])$/.test(n[0])&&(u.length>0&&!f.test(u[u.length-1])&&0===a[a.length-1]&&u.push(" "),1===a[a.length-1]&&5===u.length&&"="===u[2].charAt(u[2].length-1)&&(u[4]=" "+u[4]),f.test(n[0])))continue;u.push(n[0])}else u[u.length-1]+=r,l.test(u[u.length-1])&&(4===a[a.length-1]&&(u.length<2||f.test(u[u.length-2])?u.pop():u[u.length-1]=" ",n[0]=""),a.pop()),u[u.length-1]+=n[0]}return u.join("").trim()}n.d(e,{P:()=>r})},8089(t,e,n){n.d(e,{Do:()=>o,qi:()=>i});var r=n(4609);function o(t,e=document,n=null){return u(t,!0,e,n)}function i(t,e=document,n=null){return u(t,!1,e,n)}function u(t,e,n,o=null){t=(0,r.P)(t);let i=n.querySelector(t);if(document.head.createShadowRoot||document.head.attachShadow){if(!e&&i)return i;return a(t,",").reduce((t,r)=>{if(!e&&t)return t;const i=a(r.replace(/^\s+/g,"").replace(/\s*([>+~]+)\s*/g,"$1")," ").filter(t=>!!t).map(t=>a(t,">")),u=i.length-1,f=function(t=null,e,n=null){let r=[];if(n)r=n;else{const t=function(e){for(let n=0;n<e.length;n++){const o=e[n];
2r.push(o),o.shadowRoot&&t(o.shadowRoot.querySelectorAll("*"))}};e.shadowRoot&&t(e.shadowRoot.querySelectorAll("*")),t(e.querySelectorAll("*"))}return t?r.filter(e=>e.matches(t)):r}(i[u][i[u].length-1],n,o),s=function(t,e,n){return r=>{let o=e,i=r,u=!1;for(;i&&!c(i);){let e=!0;if(1===t[o].length)e=i.matches(t[o]);else{const r=[].concat(t[o]).reverse();let u=i;for(const t of r){if(!u||!u.matches(t)){e=!1;break}u=l(u,n)}}if(e&&0===o){u=!0;break}e&&o--,i=l(i,n)}return u}}(i,u,n);return e?t=t.concat(f.filter(s)):(t=f.find(s))||null},e?[]:null)}return e?n.querySelectorAll(t):i}function a(t,e){return t.match(/\\?.|^$/g).reduce((t,n)=>('"'!==n||t.sQuote?"'"!==n||t.quote?t.quote||t.sQuote||n!==e?t.a[t.a.length-1]+=n:t.a.push(""):(t.sQuote^=1,t.a[t.a.length-1]+=n):(t.quote^=1,t.a[t.a.length-1]+=n),t),{a:[""]}).a}function c(t){return t.nodeType===Node.DOCUMENT_FRAGMENT_NODE||t.nodeType===Node.DOCUMENT_NODE}function l(t,e){const n=t.parentNode;return n&&n.host&&11===n.nodeType?n.host:n===e?null:n}}};const e={};function n(r){const o=e[r];if(void 0!==o)return o.exports;const i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.d=(t,e)=>{if(Array.isArray(e))for(var r=0;r<e.length;){var o=e[r++],i=e[r++];n.o(t,o)?0===i&&r++:0===i?Object.defineProperty(t,o,{enumerable:!0,value:e[r++]}):Object.defineProperty(t,o,{enumerable:!0,get:i})}else for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r,o=n(1600),i=n(5087),u=n(4677);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function c(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof a?r:a,f=Object.create(c.prototype);return l(f,"_invoke",function(n,r,o){var i,a,c,l=0,f=o||[],s=!1,p={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(e,n){return i=e,a=0,c=t,p.n=n,u}};function y(n,r){for(a=n,c=r,e=0;!s&&l&&!o&&e<f.length;e++){var o,i=f[e],y=p.p,m=i[2];n>3?(o=m===r)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=y&&((o=n<2&&y<i[1])?(a=0,p.v=r,p.n=i[1]):y<m&&(o=n<3||i[0]>r||r>m)&&(i[4]=n,i[5]=r,p.n=m,a=0))}if(o||n>1)return u;throw s=!0,r}return function(o,f,m){if(l>1)throw TypeError("Generator is already running");for(s&&1===f&&y(f,m),a=f,c=m;(e=a<2?t:c)||!s;){i||(a?a<3?(a>1&&(p.n=-1),y(a,c)):p.n=c:p.v=c);try{if(l=2,i){if(a||(o="next"),e=i[o]){if(!(e=e.call(i,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,a<2&&(a=0)}else 1===a&&(e=i.return)&&e.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((e=(s=p.n<0)?c:n.call(r,p))!==u)break}catch(e){i=t,a=1,c=e}finally{l=1}}return{value:e,done:s}}}(n,o,i),!0),f}var u={};function a(){}function f(){}function s(){}e=Object.getPrototypeOf;var p=[][r]?e(e([][r]())):(l(e={},r,function(){return this}),e),y=s.prototype=a.prototype=Object.create(p);function m(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,l(t,o,"GeneratorFunction")),t.prototype=Object.create(y),t}return f.prototype=s,l(y,"constructor",s),l(s,"constructor",f),f.displayName="GeneratorFunction",l(s,o,"GeneratorFunction"),l(y),l(y,o,"Generator"),l(y,r,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),(c=function(){return{w:i,m}})()}function l(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}l=function(t,e,n,r){function i(e,n){l(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},l(t,e,n,r)}function f(t,e,n,r,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)}function s(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function u(t){f(i,r,o,u,a,"next",t)}function a(t){f(i,r,o,u,a,"throw",t)}u(void 0)})}}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,m(r.key),r)}}function y(t,e,n){return(e=m(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"==a(e)?e:e+""}var v=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return e=t,n=null,r=[{key:"init",value:function(e){t.config=e,t.getUserData()}},{key:"redirectToAutoLogin",value:function(){t.config.autoLoginURL&&(window.location.href=t.config.autoLoginURL)}},{key:"getUserData",value:(l=s(c().m(function e(){var n,r;return c().w(function(e){for(;;)switch(e.n){case 0:if(!u.q.isInIframe()){e.n=1;break}return e.a(2,null);case 1:return e.n=2,i._.post({url:this.config.userDataURL,useFormData:!1});case 2:if(!(n=e.v).success){e.n=4;break}if(r=n.data,t.user={fullName:r.fullName,initials:r.initials,token:r.token,personalCode:r.personalCode},""!==r.token){e.n=4;break}return e.n=3,t.autoLoginCheck();case 3:if(!e.v){e.n=4;break}t.redirectToAutoLogin();case 4:return t.eventManager.emit(t.USER_DATA_UPDATE_EVENT_NAME,t.user),e.a(2,t.user)}},e,this)})),function(){return l.apply(this,arguments)})},{key:"autoLoginCheck",value:(a=s(c().m(function e(){var n;return c().w(function(e){for(;;)switch(e.n){case 0:n=u.q.htmlStringToElement({html:'\n        <iframe\n          id="connect_session_iframe"\n          src="'.concat(t.config.prefetchURL,'"\n          title="Connect checker"\n          class="hidden"\n        ></iframe>')});case 1:if(document.body){e.n=3;break}return e.n=2,new Promise(function(t){return requestAnimationFrame(t)});case 2:e.n=1;break;case 3:return document.body.append(n),e.a(2,new Promise(function(t){n.addEventListener("load",function(){t("connect-session-exists"===n.contentWindow.location.href.split("/").pop().split(".")[0])})}))}},e)})),function(){return a.apply(this,arguments)})},{key:"logout",value:(o=s(c().m(function e(){return c().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,i._.post({url:t.config.logoutURL,data:y({format:"json"},t.sessionToken,1)});case 1:e.v.success&&(docCookies.removeItem("connect_access_token","/"),window.location.reload());case 2:return e.a(2)}},e)})),function(){return o.apply(this,arguments)})},{key:"addEventListener",value:function(e,n){t.eventManager.registerEvent(e,n),e===t.USER_DATA_UPDATE_EVENT_NAME&&t.hasUserData()&&n(new CustomEvent(e,{detail:t.user}))}},{key:"removeEventListener",value:function(e,n){t.eventManager.unregisterEvent(e,n)}},{key:"hasUserData",value:function(){return""!==t.user.fullName&&""!==t.user.initials}}],n&&p(e.prototype,n),r&&p(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r,o,a,l}();r=v,y(v,"USER_DATA_UPDATE_EVENT_NAME","userDataUpdate"),y(v,"eventManager",new o.E),y(v,"config",{}),y(v,"user",{fullName:"",initials:"",token:"",personalCode:""}),void 0!==window.Connect?Object.getOwnPropertyNames(r.prototype.constructor).forEach(function(t){["object","function"].includes(a(window.Connect[t]))&&"prototype"!==t&&Object.defineProperty(r,t,{value:window.Connect[t],writable:!0})}):window.Connect=r})();

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