PageSourceSearch

https://ntfy.cz/wp-content/themes/ntfy/dist/4179-144ed58b350ddce9cb24.js

js ntfy.cz collected 2026-10-06 13:22:33 UTC 15,179 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkntfy=self.webpackChunkntfy||[]).push([[4179],{4179:function(n,t,e){e.r(t),e.d(t,{default:function(){return w}});var r=e(9766),o=e(9335),u=e(3515),i=e(5107);function c(n){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},c(n)}function f(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&s(n,t)}function s(n,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,t){return n.__proto__=t,n},s(n,t)}function a(n){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(n){return!1}}();return function(){var e,r=h(n);if(t){var o=h(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return l(this,e)}}function l(n,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(n)}function h(n){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},h(n)}function m(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function d(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function p(n,t,e){return t&&d(n.prototype,t),e&&d(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}var y=function(){function n(){m(this,n),this.setCookie=u.Z,this.getCookie=i.Z}return p(n,[{key:"setTemplate",value:function(n){this.template=n,this.cookieName=this.template.dataset.cookieName}},{key:"toShow",value:function(){return this.template.dataset.callbackBeforeShow&&"function"==typeof window[this.template.dataset.callbackBeforeShow]?window[this.template.dataset.callbackBeforeShow](this):!this.getCookie(this.cookieName)}}]),n}(),b=function(n){f(e,n);var t=a(e);function e(){return m(this,e),t.apply(this,arguments)}return p(e,[{key:"attach",value:function(){var n=(0,r.Dx)(this.template.innerHTML),t=this;return(0,r.R3)(document.body,n),setTimeout((function(){o.default.modal(n).show(),t.setCookie(t.cookieName,1,30)}),1e3),!1}}]),e}(y),v=function(n){f(e,n);var t=a(e);function e(){return m(this,e),t.apply(this,arguments)}return p(e,[{key:"attach",value:function(){this.isShown=!1;var n,t=(0,r.Dx)(this.template.innerHTML),e=this;(0,r.R3)(document.body,t);var u=["mousedown","mousemove","keypress","scroll","touchstart"],i=function r(){clearTimeout(n),n=setTimeout((function(){u.forEach((function(n){document.removeEventListener(n,r,!0)})),e.isShown||(o.default.modal(t).show(),e.isShown=!0,e.setCookie(e.cookieName,1,30))}),6e4)};u.forEach((function(n){document.addEventListener(n,i,!0)}));var c=0,f=function n(r){e.isShown?document.removeEventListener("mousemove",n):(r.clientY<10&&c>r.clientY&&(o.default.modal(t).show(),e.isShown=!0,e.setCookie(e.cookieName,1,30),document.removeEventListener("mousemove",n)),c=r.clientY)};return setTimeout((function(){document.addEventListener("mousemove",f)}),3e4),!1}}]),e}(y);function w(){var n=document.getElementsByClassName("modal-popup-template");if(0!==n.length)for(var t={"on-exit":function(){return new v},"on-visit":function(){return new b}},e=0;e<n.length;e++){var r=t[n[e].dataset.strategy]();if(r.setTemplate(n[e]),r.toShow()){r.attach();break}}}},5107:function(n,t,e){function r(n){for(var t=n+"=",e=decodeURIComponent(document.cookie).split(";"),r=0;r<e.length;r++){for(var o=e[r];" "==o.charAt(0);)o=o.substring(1);if(0==o.indexOf(t))return o.substring(t.length,o.length)}return""}e.d(t,{Z:function(){return r}})},3515:function(n,t,e){function r(n,t,e){var r=new Date;r.setTime(r.getTime()+24*e*60*60*1e3);var o="expires="+r.toUTCString();document.cookie=n+"="+t+";"+o+";path=/"}e.d(t,{Z:function(){return r}})},6693:function(n,t,e){e.d(t,{Lj:function(){return o},B$:function(){return u},uV:function(){return i}
1,aT:function(){return c}});var r=e(2014);function o(n,t,e){if((0,r.Kn)(t))for(const e in t)o(n,e,t[e]);else{if((0,r.o8)(e))return(0,r.zs)(n)?.getAttribute(t);for(const u of(0,r.as)(n))(0,r.mf)(e)&&(e=e.call(u,o(u,t))),null===e?i(u,t):u.setAttribute(t,e)}}function u(n,t){return(0,r.as)(n).some((n=>n.hasAttribute(t)))}function i(n,t){const e=(0,r.as)(n);for(const n of t.split(" "))for(const t of e)t.removeAttribute(n)}function c(n,t){for(const e of[t,`data-${t}`])if(u(n,e))return o(n,e)}},9766:function(n,t,e){e.d(t,{Cd:function(){return c},YR:function(){return f},cS:function(){return s},dy:function(){return a},Ce:function(){return l},R3:function(){return h},bb:function(){return m},e4:function(){return d},Od:function(){return y},Lm:function(){return b},nv:function(){return v},Wg:function(){return w},Dx:function(){return O},nn:function(){return j},$:function(){return C},$$:function(){return S}});var r=e(1010),o=e(1875),u=e(3852),i=e(2014);function c(n){"loading"===document.readyState?(0,r.IH)(document,"DOMContentLoaded",n):n()}function f(n,t){return n?.tagName?.toLowerCase()===t.toLowerCase()}function s(n){return(n=C(n)).innerHTML="",n}function a(n,t){return(0,i.o8)(t)?C(n).innerHTML:h(s(n),t)}const l=p("prepend"),h=p("append"),m=p("before"),d=p("after");function p(n){return function(t,e){const r=(0,i.as)((0,i.HD)(e)?O(e):e);return C(t)?.[n](...r),E(r)}}function y(n){(0,i.as)(n).forEach((n=>n.remove()))}function b(n,t){for(t=(0,i.zs)(m(n,t));t.firstChild;)t=t.firstChild;return h(t,n),t}function v(n,t){return(0,i.as)((0,i.as)(n).map((n=>n.hasChildNodes()?b((0,i.as)(n.childNodes),t):h(n,t))))}function w(n){(0,i.as)(n).map(o.qm).filter(((n,t,e)=>e.indexOf(n)===t)).forEach((n=>n.replaceWith(...n.childNodes)))}const g=/^\s*<(\w+|!)[^>]*>/,k=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function O(n){const t=k.exec(n);if(t)return document.createElement(t[1]);const e=document.createElement("div");return g.test(n)?e.insertAdjacentHTML("beforeend",n.trim()):e.textContent=n,E(e.childNodes)}function E(n){return n.length>1?n:n[0]}function j(n,t){if((0,i.kK)(n))for(t(n),n=n.firstElementChild;n;){const e=n.nextElementSibling;j(n,t),n=e}}function C(n,t){return x(n)?(0,i.zs)(O(n)):(0,u.sE)(n,t)}function S(n,t){return x(n)?(0,i.as)(O(n)):(0,u.Oq)(n,t)}function x(n){return(0,i.HD)(n)&&(0,i.Ny)(n.trim(),"<")}},1010:function(n,t,e){e.d(t,{on:function(){return i},S1:function(){return c},IH:function(){return f},X$:function(){return s},yM:function(){return a},RD:function(){return d},T:function(){return p},sT:function(){return y}});var r=e(3852),o=e(1875),u=e(2014);function i(...n){let[t,e,i,f,s=!1]=l(n);f.length>1&&(f=function(n){return t=>(0,u.kJ)(t.detail)?n(t,...t.detail):n(t)}(f)),s?.self&&(f=function(n){return function(t){if(t.target===t.currentTarget||t.target===t.current)return n.call(null,t)}}(f)),i&&(f=function(n,t){return e=>{const u=">"===n[0]?(0,r.Oq)(n,e.currentTarget).reverse().filter((n=>(0,o.uh)(e.target,n)))[0]:(0,o.oq)(e.target,n);u&&(e.current=u,t.call(this,e))}}(i,f));for(const n of e)for(const e of t)e.addEventListener(n,f,s);return()=>c(t,e,f,s)}function c(...n){let[t,e,,r,o=!1]=l(n);for(const n of e)for(const e of t)e.removeEventListener(n,r,o)}function f(...n){const[t,e,r,o,u=!1,c]=l(n),f=i(t,e,r,(n=>{const t=!c||c(n);t&&(f(),o(n,t))}),u);return f}function s(n,t,e){return d(n).every((n=>n.dispatchEvent(a(t,!0,!0,e))))}function a(n,t=!0,e=!1,r){return(0,u.HD)(n)&&(n=new CustomEvent(n,{bubbles:t,cancelable:e,detail:r})),n}function l(n){return n[0]=d(n[0]),(0,u.HD)(n[1])&&(n[1]=n[1].split(" ")),(0,u.mf)(n[2])&&n.splice(2,0,!1),n}function h(n){return n&&"addEventListener"in n}function m(n){return h(n)?n:(0,u.zs)(n)}function d(n){return(0,u.kJ)(n)?n.map(m).filter(Boolean):(0,u.HD)(n)?(0,r.Oq)(n):h(n)?[n]:(0,u.as)(n)}function p(n){return"touch"===n.pointerType||!!n.touches}function y(n){const{clientX:t,clientY:e}=n.touches?.[0]||n.changedTouches?.[0]||n;return{x:t,y:e}}},1875:function(n,t,e){e.d(t,{OC:function(){return u},pn:function(){return i},di:function(){return c},u7:function(){return f},vb:function(){return s},EB:function(){return a},qm:function(){return l},hX:function(){return h},wB:function(){return m},oq:function(){return d},uh:function(){return p},wV:function(){return y},pI:function(){return b},Kz:function(){return v}});var r=e(2014);const o={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};function u(n){return(0,r.as)(n).some((n=>o[n.tagName.toLowerCase()]))}function i(n){return(0,r.as)(n).some((n=>n.offsetWidth||n.offsetHeight||n.getClientRects().length))}const c="input,select,textarea,button";function f(n){return(0,r.as)(n).some((n=>m(n,c)))}const s=`${c},a[href],[tabindex]`;function a(n){return m(n,s)}function l(n){return(0,r.zs)(n)?.parentElement}function h(n,t){return(0,r.as)(n).filter((n=>m(n,t)))}function m(n,t){return(0,r.as)(n).some((n=>n.matches(t)))}function d(n,t){return(0,r.kK)(n)?n.closest((0,r.Ny)(t,">")?t.slice(1):t):(0,r.as)(n).map((n=>
1d(n,t))).filter(Boolean)}function p(n,t){return(0,r.HD)(t)?!!d(n,t):(0,r.zs)(t).contains((0,r.zs)(n))}function y(n,t){const e=[];for(;n=l(n);)t&&!m(n,t)||e.push(n);return e}function b(n,t){const e=(n=(0,r.zs)(n))?(0,r.as)(n.children):[];return t?h(e,t):e}function v(n,t){return t?(0,r.as)(n).indexOf((0,r.zs)(t)):b(l(n)).indexOf(n)}},2014:function(n,t,e){e.d(t,{RI:function(){return u},rs:function(){return c},_A:function(){return s},Ps:function(){return a},Ny:function(){return h},pn:function(){return m},q9:function(){return d},cx:function(){return p},kJ:function(){return y},qo:function(){return b},f0:function(){return v},mf:function(){return w},Kn:function(){return g},PO:function(){return k},FJ:function(){return O},qk:function(){return E},UG:function(){return j},kK:function(){return C},jn:function(){return x},HD:function(){return T},hj:function(){return H},kE:function(){return N},xb:function(){return L},o8:function(){return $},sw:function(){return D},He:function(){return q},f_:function(){return P},zs:function(){return R},as:function(){return B},bc:function(){return M},Xy:function(){return z},LF:function(){return A},Z$:function(){return _},S6:function(){return K},MR:function(){return Z},uw:function(){return I},uZ:function(){return Y},ZT:function(){return U},qb:function(){return W},qr:function(){return F},Db:function(){return V},rw:function(){return G},HP:function(){return Q},BH:function(){return nn}});const{hasOwnProperty:r,toString:o}=Object.prototype;function u(n,t){return r.call(n,t)}const i=/\B([A-Z])/g,c=Q((n=>n.replace(i,"-$1").toLowerCase())),f=/-(\w)/g,s=Q((n=>n.replace(f,l))),a=Q((n=>n.length?l(0,n.charAt(0))+n.slice(1):""));function l(n,t){return t?t.toUpperCase():""}function h(n,t){return n?.startsWith?.(t)}function m(n,t){return n?.endsWith?.(t)}function d(n,t){return n?.includes?.(t)}function p(n,t){return n?.findIndex?.(t)}const{isArray:y,from:b}=Array,{assign:v}=Object;function w(n){return"function"==typeof n}function g(n){return null!==n&&"object"==typeof n}function k(n){return"[object Object]"===o.call(n)}function O(n){return g(n)&&n===n.window}function E(n){return 9===S(n)}function j(n){return S(n)>=1}function C(n){return 1===S(n)}
1function S(n){return!O(n)&&g(n)&&n.nodeType}function x(n){return"boolean"==typeof n}function T(n){return"string"==typeof n}function H(n){return"number"==typeof n}function N(n){return H(n)||T(n)&&!isNaN(n-parseFloat(n))}function L(n){return!(y(n)?n.length:g(n)&&Object.keys(n).length)}function $(n){return void 0===n}function D(n){return x(n)?n:"true"===n||"1"===n||""===n||"false"!==n&&"0"!==n&&n}function q(n){const t=Number(n);return!isNaN(t)&&t}function P(n){return parseFloat(n)||0}function R(n){return B(n)[0]}function B(n){return n&&(j(n)?[n]:Array.from(n).filter(j))||[]}function M(n){return O(n)?n:(E(n=R(n))?n:n?.ownerDocument)?.defaultView||window}function z(n,t){return n===t||g(n)&&g(t)&&Object.keys(n).length===Object.keys(t).length&&K(n,((n,e)=>n===t[e]))}function A(n,t,e){return n.replace(new RegExp(`${t}|${e}`,"g"),(n=>n===t?e:t))}function _(n){return n[n.length-1]}function K(n,t){for(const e in n)if(!1===t(n[e],e))return!1;return!0}function Z(n,t){return n.slice().sort((({[t]:n=0},{[t]:e=0})=>n>e?1:e>n?-1:0))}function I(n,t){const e=new Set;return n.filter((({[t]:n})=>!e.has(n)&&e.add(n)))}function Y(n,t=0,e=1){return Math.min(Math.max(q(n)||0,t),e)}function U(){}function W(...n){return[["bottom","top"],["right","left"]].every((([t,e])=>Math.min(...n.map((({[t]:n})=>n)))-Math.max(...n.map((({[e]:n})=>n)))>0))}function F(n,t){return n.x<=t.right&&n.x>=t.left&&n.y<=t.bottom&&n.y>=t.top}function J(n,t,e){const r="width"===t?"height":"width";return{[r]:n[t]?Math.round(e*n[r]/n[t]):n[r],[t]:e}}function X(n,t){n={...n};for(const e in n)n=n[e]>t[e]?J(n,e,t[e]):n;return n}const V={ratio:J,contain:X,cover:function(n,t){n=X(n,t);for(const e in n)n=n[e]<t[e]?J(n,e,t[e]):n;return n}};function G(n,t,e=0,r=!1){t=B(t);const{length:o}=t;return o?(n=N(n)?q(n):"next"===n?e+1:"previous"===n?e-1:t.indexOf(R(n)),r?Y(n,0,o-1):(n%=o)<0?n+o:n):-1}function Q(n){const t=Object.create(null);return e=>t[e]||(t[e]=n(e))}class nn{constructor(){this.promise=new Promise(((n,t)=>{this.reject=t,this.resolve=n}))}}},3852:function(n,t,e){e.d(t,{IO:function(){return i},Kt:function(){return c},sE:function(){return f},Oq:function(){return s},YU:function(){return w}});var r=e(6693),o=e(1875),u=e(2014);function i(n,t){return f(n,h(n,t))}function c(n,t){return s(n,h(n,t))}function f(n,t){return(0,u.zs)(p(n,t,"querySelector"))}function s(n,t){return(0,u.as)(p(n,t,"querySelectorAll"))}const a=/(^|[^\\],)\s*[!>+~-]/,l=(0,u.HP)((n=>n.match(a)));function h(n,t=document){return(0,u.HD)(n)&&l(n)||(0,u.qk)(t)?t:t.ownerDocument}const m=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,d=(0,u.HP)((n=>n.replace(m,"$1 *")));function p(n,t=document,e){if(!n||!(0,u.HD)(n))return n;if(n=d(n),l(n)){const e=b(n);n="";for(let r of e){let u=t;if("!"===r[0]){const n=r.substr(1).trim().split(" ");if(u=(0,o.oq)((0,o.qm)(t),n[0]),r=n.slice(1).join(" ").trim(),!r.length&&1===e.length)return u}if("-"===r[0]){const n=r.substr(1).trim().split(" "),e=(u||t).previousElementSibling;u=(0,o.wB)(e,r.substr(1))?e:null,r=n.slice(1).join(" ")}u&&(n+=`${n?",":""}${v(u)} ${r}`)}t=document}try{return t[e](n)}catch(n){return null}}const y=/.*?[^\\](?:,|$)/g,b=(0,u.HP)((n=>n.match(y).map((n=>n.replace(/,$/,"").trim()))));function v(n){const t=[];for(;n.parentNode;){const e=(0,r.Lj)(n,"id");if(e){t.unshift(`#${w(e)}`);break}{let{tagName:e}=n;"HTML"!==e&&(e+=`:nth-child(${(0,o.Kz)(n)+1})`),t.unshift(e),n=n.parentNode}}return t.join(" > ")}function w(n){return(0,u.HD)(n)?CSS.escape(n):""}}}]);

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.