PageSourceSearch

https://www.socotec.fr/themes/custom/app_theme/assets/main.js?tlwsue

js socotec.fr collected 2026-09-25 22:50:46 UTC 15,397 bytes, 9 lines download raw bytes

vendor: 4,564 bytes, lines 1-9
1!function(){var t={3641:function(t,e,n){
2/*!
3 * @overview es6-promise - a tiny implementation of Promises/A+.
4 * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
5 * @license   Licensed under MIT license
6 *            See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
7 * @version   v4.2.8+1e68dce6
8 */
9t.exports=function(){"use strict";function t(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}function e(t){return"function"==typeof t}var r=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},o=0,i=void 0,a=void 0,s=function(t,e){w[o]=t,w[o+1]=e,2===(o+=2)&&(a?a(A):T())};function u(t){a=t}function c(t){s=t}var l="undefined"!=typeof window?window:void 0,f=l||{},d=f.MutationObserver||f.WebKitMutationObserver,h="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),v="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function p(){return function(){return process.nextTick(A)}}function m(){return void 0!==i?function(){i(A)}:y()}function b(){var t=0,e=new d(A),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function g(){var t=new MessageChannel;return t.port1.onmessage=A,function(){return t.port2.postMessage(0)}}function y(){var t=setTimeout;return function(){return t(A,1)}}var w=new Array(1e3);function A(){for(var t=0;t<o;t+=2)(0,w[t])(w[t+1]),w[t]=void 0,w[t+1]=void 0;o=0}function _(){try{var t=Function("return this")().require("vertx");return i=t.runOnLoop||t.runOnContext,m()}catch(t){return y()}}var T=void 0;function x(t,e){var n=this,r=new this.constructor(S);void 0===r[M]&&q(r);var o=n._state;if(o){var i=arguments[o-1];s((function(){return U(o,r,i,n._result)}))}else R(n,r,t,e);return r}function z(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(S);return D(n,t),n}T=h?p():d?b():v?g():void 0===l?_():y();var M=Math.random().toString(36).substring(2);function S(){}var P=void 0,C=1,B=2;function j(){return new TypeError("You cannot resolve a promise with itself")}function $(){return new TypeError("A promises callback cannot return that same promise.")}function k(t,e,n,r){try{t.call(e,n,r)}catch(t){return t}}function E(t,e,n){s((function(t){var r=!1,o=k(n,e,(function(n){r||(r=!0,e!==n?D(t,n):I(t,n))}),(function(e){r||(r=!0,N(t,e))}),"Settle: "+(t._label||" unknown promise"));!r&&o&&(r=!0,N(t,o))}),t)}function L(t,e){e._state===C?I(t,e._result):e._state===B?N(t,e._result):R(e,void 0,(function(e){return D(t,e)}),(function(e){return N(t,e)}))}function O(t,n,r){n.constructor===t.constructor&&r===x&&n.constructor.resolve===z?L(t,n):void 0===r?I(t,n):e(r)?E(t,n,r):I(t,n)}function D(e,n){if(e===n)N(e,j());else if(t(n)){var r=void 0;try{r=n.then}catch(t){return void N(e,t)}O(e,n,r)}else I(e,n)}function F(t){t._onerror&&t._onerror(t._result),Q(t)}function I(t,e){t._state===P&&(t._result=e,t._state=C,0!==t._subscribers.length&&s(Q,t))}function N(t,e){t._state===P&&(t._state=B,t._result=e,s(F,t))}function R(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+C]=n,o[i+B]=r,0===i&&t._state&&s(Q,t)}function Q(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r=void 0,o=void 0,i=t._result,a=0;a<e.length;a+=3)r=e[a],o=e[a+n],r?U(n,r,o,i):o(i);t._subscribers.length=0}}function U(t,n,r,o){var i=e(r),a=void 0,s=void 0,u=!0;if(i){try{a=r(o)}catch(t){u=!1,s=t}if(n===a)return void N(n,$())}else a=o;n._state!==P||(i&&u?D(n,a):!1===u?N(n,s):t===C?I(n,a):t===B&&N(n,a))}function W(t,e){try{e((function(e){D(t,e)}),(function(e){N(t,e)}))}catch(e){N(t,e)}}var Y=0;function G(){return Y++}function q(t){t[M]=Y++,t._state=void 0,t._result=void 0,t._subscribers=[]}function H(){return new Error("Array Methods must be provided an Array")}var K=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(S),this.promise[M]||q(this.promise),r(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?I(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&I(this.promise,this._result))):N(this.promise,H())}return t.prototype._enumerate=function(t){for(var e=0;this._state===P&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===z){var o=void 0,i=void 0,a=!1;try{o=t.then}catch(t){a=!0,i=t}
vendor: 1,130 bytes, line 9
9if(o===x&&t._state!==P)this._settledAt(t._state,e,t._result);else if("function"!=typeof o)this._remaining--,this._result[e]=t;else if(n===et){var s=new n(S);a?N(s,i):O(s,t,o),this._willSettleAt(s,e)}else this._willSettleAt(new n((function(e){return e(t)})),e)}else this._willSettleAt(r(t),e)},t.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===P&&(this._remaining--,t===B?N(r,n):this._result[e]=n),0===this._remaining&&I(r,this._result)},t.prototype._willSettleAt=function(t,e){var n=this;R(t,void 0,(function(t){return n._settledAt(C,e,t)}),(function(t){return n._settledAt(B,e,t)}))},t}();function Z(t){return new K(this,t).promise}function J(t){var e=this;return r(t)?new e((function(n,r){for(var o=t.length,i=0;i<o;i++)e.resolve(t[i]).then(n,r)})):new e((function(t,e){return e(new TypeError("You must pass an array to race."))}))}function V(t){var e=new this(S);return N(e,t),e}function X(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function tt(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object c
9onstructor cannot be called as a function.")}var et=function(){function t(e){this[M]=G(),this._result=this._state=void 0,this._subscribers=[],S!==e&&("function"!=typeof e&&X(),this instanceof t?W(this,e):tt())}return t.prototype.catch=function(t){return this.then(null,t)},t.prototype.finally=function(t){var n=this,r=n.constructor;return e(t)?n.then((function(e){return r.resolve(t()).then((function(){return e}))}),(function(e){return r.resolve(t()).then((function(){throw e}))})):n.then(t,t)},t}();function nt(){var t=void 0;if(void 0!==n.g)t=n.g;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var r=null;try{r=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===r&&!e.cast)return}t.Promise=et}return et.prototype.then=x,et.all=Z,et.race=J,et.resolve=z,et.reject=V,et._setScheduler=u,et._setAsap=c,et._asap=s,et.polyfill=nt,et.Promise=et,et}()},9017:function(){!function(t,e){"use strict";var n=t.jQuery||t.Zepto,r=0,o=!1;function i(r,i,a,s,u){var c=0,l=-1,f=-1,d=!1,h="afterLoad",v="load",p="error",m="img",b="src",g="srcset",y="sizes",w="background-image";function A(){var e,o,c,h;d=t.devicePixelRatio>1,a=_(a),i.delay>=0&&setTimeout((function(){T(!0)}),i.delay),(i.delay<0||i.combined)&&(s.e=(e=i.throttle,o=function(t){"resize"===t.type&&(l=f=-1),T(t.all)},h=0,function(t,n){var a=+new Date-h;function s(){h=+new Date,o.call(r,t)}c&&clearTimeout(c),a>e||!i.enableThrottle||n?s():c=setTimeout(s,e-a)}),s.a=function(t){t=_(t),a.push.apply(a,t)},s.g=function(){return a=n(a).filter((function(){return!n(this).data(i.loadedName)}))},s.f=function(t){for(var e=0;e<t.length;e++){var n=a.filter((function(){return this===t[e]}));n.length&&T(!1,n)}},T(),n(i.appendScroll).on("scroll."+u+" resize."+u,s.e))}function _(t){var o=i.defaultImage,a=i.placeholder,s=i.imageBase,u=i.srcsetAttribute,c=i.loaderAttribute,l=i._f||{};t=n(t).filter((function(){var t=n(this),r=M(this);return!t.data(i.handledName)&&(t.attr(i.attribute)||t.attr(u)||t.attr(c)||l[r]!==e)})).data("plugin_"+i.name,r);for(var f=0,d=t.length;f<d;f++){var h=n(t[f]),v=M(t[f]),p=h.attr(i.imageBaseAttribute)||s;v===m&&p&&h.attr(u)&&h.attr(u,S(h.attr(u),p)),l[v]===e||h.attr(c)||h.attr(c,l[v]),v===m&&o&&!h.attr(b)?h.attr(b,o):v===m||!a||h.
9css(w)&&"none"!==h.css(w)||h.css(w,"url('"+a+"')")}return t}function T(t,e){if(a.length){for(var o=e||a,s=!1,u=i.imageBase||"",c=i.srcsetAttribute,l=i.handledName,f=0;f<o.length;f++)if(t||e||z(o[f])){var d=n(o[f]),h=M(o[f]),v=d.attr(i.attribute),p=d.attr(i.imageBaseAttribute)||u,y=d.attr(i.loaderAttribute);d.data(l)||i.visibleOnly&&!d.is(":visible")||!((v||d.attr(c))&&(h===m&&(p+v!==d.attr(b)||d.attr(c)!==d.attr(g))||h!==m&&p+v!==d.css(w))||y)||(s=!0,d.data(l,!0),x(d,h,p,y))}s&&(a=n(a).filter((function(){return!n(this).data(l)})))}else i.autoDestroy&&r.destroy()}function x(t,e,r,o){++c;var a=function(){C("onError",t),P(),a=n.noop};C("beforeLoad",t);var s=i.attribute,u=i.srcsetAttribute,l=i.sizesAttribute,f=i.retinaAttribute,A=i.removeAttribute,_=i.loadedName,T=t.attr(f);if(o){var x=function(){A&&t.removeAttr(i.loaderAttribute),t.data(_,!0),C(h,t),setTimeout(P,1),x=n.noop};t.off(p).one(p,a).one(v,x),C(o,t,(function(e){e?(t.off(v),x()):(t.off(p),a())}))||t.trigger(p)}else{var z=n(new Image);z.one(p,a).one(v,(function(){t.hide(),e===m?t.attr(y,z.attr(y)).attr(g,z.attr(g)).attr(b,z.attr(b)):t.css(w,"url('"+z.attr(b)+"')"),t[i.effect](i.effectTime),A&&(t.removeAttr(s+" "+u+" "+f+" "+i.imageBaseAttribute),l!==y&&t.removeAttr(l)),t.data(_,!0),C(h,t),z.remove(),P()}));var M=(d&&T?T:t.attr(s))||"";z.attr(y,t.attr(l)).attr(g,t.attr(u)).attr(b,M?r+M:null),z.complete&&z.trigger(v)}}function z(e){var r=e.getBoundingClientRect(),o=i.scrollDirection,a=i.threshold,s=(f>=0?f:f=n(t).height())+a>r.top&&-a<r.bottom,u=(l>=0?l:l=n(t).width())+a>r.left&&-a<r.right;return"vertical"===o?s:("horizontal"===o||s)&&u}function M(t){return t.tagName.toLowerCase()}function S(t,e){if(e){var n=t.split(",");t="";for(var r=0,o=n.length;r<o;r++)t+=e+n[r].trim()+(r!==o-1?",":"")}return t}function P(){--c,a.length||c||C("onFinishedAll")}function C(t,e,n){return!!(t=i[t])&&(t.apply(r,[].slice.call(arguments,1)),!0)}"event"===i.bind||o?A():n(t).on("load."+u,A)}function a(o,a){var s=this,u=n.extend({},s.config,a),c={},l=u.name+"-"+ ++r;return s.config=function(t,n){return n===e?u[t]:(u[t]=n,s)},s.addItems=function(t){return c.a&&c.a("string"===n.type(t)?n(t):t),s},s.getItems=function(){return c.g?c.g():{}},s.update=function(t){return c.e&&c.e({},!t),s},s.force=function(t){return c.f&&c.f("string"===n.type(t)?n(t):t),s},s.loadAll=function(){return c.e&&c.e({all:!0},!0),s},s.destroy=function(){return n(u.appendScroll).off("."+l,c.e),n(t).off("."+l),c={},e},i(s,u,o,c,l),u.chainable?o:s}n.fn.Lazy=n.fn.lazy=function(t){return new a(this,t)},n.Lazy=n.lazy=function(t,r,o){if(n.isFunction(r)&&(o=r,r=[]),n.isFunction(o)){t=n.isArray(t)?t:[t],r=n.isArray(r)?r:[r];for(var i=a.prototype.config,s=i._f||(i._f={}),u=0,c=t.length;u<c;u++)(i[t[u]]===e||n.isFunction(i[t[u]]))&&(i[t[u]]=o);for(var l=0,f=r.length;l<f;l++)s[r[l]]=t[0]}},a.prototype.config={name:"lazy",chainable:!0,autoDestroy:!0,bind:"load",threshold:500,visibleOnly:!1,appendScroll:t,scrollDirection:"both",imageBase:null,defaultImage:"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",placeholder:null,delay:-1,combined:!1,attribute:"data-src",srcsetAttribute:"data-srcset",sizesAttribute:"data-sizes",retinaAttribute:"data-retina",loaderAttribute:"data-loader",imageBaseAttribute:"data-imagebase",removeAttribute:!0,handledName:"handled",loadedName:"loaded",effect:"show",effectTime:0,enableThrottle:!0,throttle:250,beforeLoad:e,afterLoad:e,onError:e,onFinishedAll:e},n(t).on("load",(function(){o=!0}))}(window)}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),function(){"use strict";var t=/iPhone/i,e=/iPod/i,r=/iPad/i,o=/\biOS-universal(?:.+)Mac\b/i,i=/\bAndroid(?:.+)Mobile\b/i,a=/Android/i,s=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,u=/Silk/i,c=/Windows Phone/i,l=/\bWindows(?:.+)ARM\b/i,f=/BlackBerry/i,d=/BB10/i,h=/Opera Mini/i,v=/\b(CriOS|Chrome)(?:.+)Mobile/i,p=/Mobile(?:.+)Firefox\b/i,m=function(t){return void 0!==t&&"MacIntel"===t.platform&&"number"==typeof t.maxTouchPoints&&t.maxTouchPoints>1&&"undefined"==typeof MSStream};function b(n){var b={userAgent:"",platform:"",maxTouchPoints:0};n||"undefined"==typeof navigator?"string"==typeof n?b.userAgent=n:n&&n.userAgent&&(b={userAgent:n.userAgent,platform:n.platform,maxTouchPoints:n.maxTouchPoints||0}):b={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};var g=b.userAgent,y=g.split("[FBAN");void 0!==y[1]&&(g=y[0]),void 0!==(y=g.split("Twitter"))[1]&&(g=y[0]);var w=function(t){return function(e){return e.test(t)}}(g),A={apple:{phone:w(t)&&!w(c),ipod:w(e),tablet:!w(t)&&(w(r)||m(b))&&!w(c),universal:w(o),device:(w(t)||w(e)||w(r)||w(o)||m(b))&&!w(c)},amazon:{phone:w(s),tablet:!w(s)&&w(u),device:w(s)||w(u)}
9,android:{phone:!w(c)&&w(s)||!w(c)&&w(i),tablet:!w(c)&&!w(s)&&!w(i)&&(w(u)||w(a)),device:!w(c)&&(w(s)||w(u)||w(i)||w(a))||w(/\bokhttp\b/i)},windows:{phone:w(c),tablet:w(l),device:w(c)||w(l)},other:{blackberry:w(f),blackberry10:w(d),opera:w(h),firefox:w(p),chrome:w(v),device:w(f)||w(d)||w(h)||w(p)||w(v)},any:!1,phone:!1,tablet:!1};return A.any=A.apple.device||A.android.device||A.windows.device||A.other.device,A.phone=A.apple.phone||A.android.phone||A.windows.phone,A.tablet=A.apple.tablet||A.android.tablet||A.windows.tablet,A}n(9017);window.$||(window.$=window.jQuery=jQuery);var g=window.navigator.userAgent,y=(n(3641).Promise,!window.matchMedia("(min-width: 1025px)").matches||b(g).phone);y?$("html").addClass("isMobile"):$("html").removeClass("isMobile"),$(window).on("resize",(function(){(y=!window.matchMedia("(min-width: 1025px)").matches||b(g).phone)?$("html").addClass("isMobile"):$("html").removeClass("isMobile")})),$(window).resize(),$((function(){function t(t,e,n){var r=new Date;r.setTime(r.getTime()+24*n*60*60*1e3);var o="expires="+r.toUTCString();document.cookie=t+"="+e+";"+o+";path=/"}function e(t){for(var e=t+"=",n=decodeURIComponent(document.cookie).split(";"),r=0;r<n.length;r++){for(var o=n[r];" "==o.charAt(0);)o=o.substring(1);if(0==o.indexOf(e))return o.substring(e.length,o.length)}return""}$(window).on("load",(function(){$("#rexx-page").length?(t("tarteaucitron","!analytics=false!marketo=false!googlemaps=false!googletagmanager=false!recaptcha=false!vimeo=false!youtube=false!zendesk_chatbot=false",1/86400),t("tarteaucitron_version",1,1/86400)):e("tarteaucitron")?e("tarteaucitron_version")?e("tarteaucitron_version")<1&&"trustcommander"!=window.cmp&&(t("tarteaucitron_version",1,183),t("tarteaucitron","",-1)):"trustcommander"!=window.cmp&&(t("tarteaucitron_version",1,183),t("tarteaucitron","",-1)):"trustcommander"!=window.cmp&&t("tarteaucitron_version",1,183)}))})),$(document).ready((function(){var t=/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor);window.location.hash&&t&&setTimeout((function(){var t=window.location.hash;window.location.hash="",window.location.hash=t}),300)})),function(t,e){e.behaviors.lazyLoadBehavior={attach:function(e,n){t("div.lazy").Lazy(),t("img.lazy").Lazy()}}}(jQuery,Drupal),$(document).ready((function(){$("div.lazy").Lazy(),$("img.lazy").Lazy()}))}()}();

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.