substackcdn.com
Open in
urlscan Pro
2600:9000:206f:6a00:4:b4b9:d3c0:93a1
Public Scan
URL:
https://substackcdn.com/bundle/assets/mousetrap-90c37229.js
Submission: On May 07 via api from LU — Scanned from DE
Submission: On May 07 via api from LU — Scanned from DE
Form analysis
0 forms found in the DOMText Content
import{c9 as W}from"./tracking-ee50644e.js";(function(){try{var y=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},k=new Error().stack;k&&(y._sentryDebugIds=y._sentryDebugIds||{},y._sentryDebugIds[k]="af84f1da-a65d-4272-8629-e3371d64e719",y._sentryDebugIdIdentifier="sentry-dbid-af84f1da-a65d-4272-8629-e3371d64e719")}catch(b){}})();var R={exports:{}};(function(y){(function(k,b,K){if(!k)return;for(var v={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},P={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},T={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},q={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},M,c=1;c<20;++c)v[111+c]="f"+c;for(c=0;c<=9;++c)v[c+96]=c.toString();function E(e,r,n){if(e.addEventListener){e.addEventListener(r,n,!1);return}e.attachEvent("on"+r,n)}function I(e){if(e.type=="keypress"){var r=String.fromCharCode(e.which);return e.shiftKey||(r=r.toLowerCase()),r}return v[e.which]?v[e.which]:P[e.which]?P[e.which]:String.fromCharCode(e.which).toLowerCase()}function B(e,r){return e.sort().join(",")===r.sort().join(",")}function N(e){var r=[];return e.shiftKey&&r.push("shift"),e.altKey&&r.push("alt"),e.ctrlKey&&r.push("ctrl"),e.metaKey&&r.push("meta"),r}function V(e){if(e.preventDefault){e.preventDefault();return}e.returnValue=!1}function H(e){if(e.stopPropagation){e.stopPropagation();return}e.cancelBubble=!0}function S(e){return e=="shift"||e=="ctrl"||e=="alt"||e=="meta"}function U(){if(!M){M={};for(var e in v)e>95&&e<112||v.hasOwnProperty(e)&&(M[v[e]]=e)}return M}function X(e,r,n){return n||(n=U()[e]?"keydown":"keypress"),n=="keypress"&&r.length&&(n="keydown"),n}function Y(e){return e==="+"?["+"]:(e=e.replace(/\+{2}/g,"+plus"),e.split("+"))}function D(e,r){var n,o,h,g=[];for(n=Y(e),h=0;h<n.length;++h)o=n[h],q[o]&&(o=q[o]),r&&r!="keypress"&&T[o]&&(o=T[o],g.push("shift")),S(o)&&g.push(o);return r=X(o,g,r),{key:o,modifiers:g,action:r}}function L(e,r){return e===null||e===b?!1:e===r?!0:L(e.parentNode,r)}function l(e){var r=this;if(e=e||b,!(r instanceof l))return new l(e);r.target=e,r._callbacks={},r._directMap={};var n={},o,h=!1,g=!1,C=!1;function m(t){t=t||{};var f=!1,s;for(s in n){if(t[s]){f=!0;continue}n[s]=0}f||(C=!1)}function F(t,f,s,i,u,d){var a,p,w=[],_=s.type;if(!r._callbacks[t])return[];for(_=="keyup"&&S(t)&&(f=[t]),a=0;a<r._callbacks[t].length;++a)if(p=r._callbacks[t][a],!(!i&&p.seq&&n[p.seq]!=p.level)&&_==p.action&&(_=="keypress"&&!s.metaKey&&!s.ctrlKey||B(f,p.modifiers))){var J=!i&&p.combo==u,Q=i&&p.seq==i&&p.level==d;(J||Q)&&r._callbacks[t].splice(a,1),w.push(p)}return w}function x(t,f,s,i){r.stopCallback(f,f.target||f.srcElement,s,i)||t(f,s)===!1&&(V(f),H(f))}r._handleKey=function(t,f,s){var i=F(t,f,s),u,d={},a=0,p=!1;for(u=0;u<i.length;++u)i[u].seq&&(a=Math.max(a,i[u].level));for(u=0;u<i.length;++u){if(i[u].seq){if(i[u].level!=a)continue;p=!0,d[i[u].seq]=1,x(i[u].callback,s,i[u].combo,i[u].seq);continue}p||x(i[u].callback,s,i[u].combo)}var w=s.type=="keypress"&&g;s.type==C&&!S(t)&&!w&&m(d),g=p&&s.type=="keydown"};function A(t){typeof t.which!="number"&&(t.which=t.keyCode);var f=I(t);if(f){if(t.type=="keyup"&&h===f){h=!1;return}r.handleKey(f,N(t),t)}}function z(){clearTimeout(o),o=setTimeout(m,1e3)}function G(t,f,s,i){n[t]=0;function u(_){return function(){C=_,++n[t],z()}}function d(_){x(s,_,t),i!=="keyup"&&(h=I(_)),setTimeout(m,10)}for(var a=0;a<f.length;++a){var p=a+1===f.length,w=p?d:u(i||D(f[a+1]).action);O(f[a],w,i,t,a)}}function O(t,f,s,i,u){r._directMap[t+":"+s]=f,t=t.replace(/\s+/g," ");var d=t.split(" "),a;if(d.length>1){G(t,d,f,s);return}a=D(t,s),r._callbacks[a.key]=r._callbacks[a.key]||[],F(a.key,a.modifiers,{type:a.action},i,t,u),r._callbacks[a.key][i?"unshift":"push"]({callback:f,modifiers:a.modifiers,action:a.action,seq:i,level:u,combo:t})}r._bindMultiple=function(t,f,s){for(var i=0;i<t.length;++i)O(t[i],f,s)},E(e,"keypress",A),E(e,"keydown",A),E(e,"keyup",A)}l.prototype.bind=function(e,r,n){var o=this;return e=e instanceof Array?e:[e],o._bindMultiple.call(o,e,r,n),o},l.prototype.unbind=function(e,r){var n=this;return n.bind.call(n,e,function(){},r)},l.prototype.trigger=function(e,r){var n=this;return n._directMap[e+":"+r]&&n._directMap[e+":"+r]({},e),n},l.prototype.reset=function(){var e=this;return e._callbacks={},e._directMap={},e},l.prototype.stopCallback=function(e,r){var n=this;return(" "+r.className+" ").indexOf(" mousetrap ")>-1||L(r,n.target)?!1:r.tagName=="INPUT"||r.tagName=="SELECT"||r.tagName=="TEXTAREA"||r.isContentEditable},l.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},l.addKeycodes=function(e){for(var r in e)e.hasOwnProperty(r)&&(v[r]=e[r]);M=null},l.init=function(){var e=l(b);for(var r in e)r.charAt(0)!=="_"&&(l[r]=function(n){return function(){return e[n].apply(e,arguments)}}(r))},l.init(),k.Mousetrap=l,y.exports&&(y.exports=l),typeof K=="function"&&K.amd&&K(function(){return l})})(typeof window!="undefined"?window:null,typeof window!="undefined"?document:null)})(R);var Z=R.exports;const $=W(Z);export{$ as M};