Commit 213f3378 by ramdayalmunda

initial commit

parents
var getUserDetails = null
!function () {
var tutorShotId = null
var imageNumber = 0;
var recording = false;
var loggedIn = false;
var userDetails = {}
console.log('background.js registered', chrome)
function onMessage(request, sender, sendResponse) {
if (request.action === 'login') {
console.log('B: to logged in', request.userDetails)
userDetails = request.userDetails
// check if credentials changed.
if (request.userDetails.email != userDetails.email) {
imageNumber = 0
}
loggedIn = true
sendResponse({ message: "Logged In", success: true })
return
}
if (request.action === 'checkStatus') {
sendResponse({ userDetails, loggedIn, recording })
return
}
if (loggedIn && request.action === 'startRecording') {
imageNumber = 0
recording = true;
tutorShotId = request.tutorShotId
sendResponse({ userDetails, loggedIn, recording });
return
}
if (loggedIn && request.action === 'stopRecording') {
recording = false;
tutorShotId = null
sendResponse({ userDetails, loggedIn, recording });
return
}
if (request.action === 'captureSS') {
if (!loggedIn) {
console.log('not logged in for SS');
return;
}
if (!recording) {
console.log('recording not started for SS');
return;
}
if (!tutorShotId){
console.log('how to set not created');
return
}
chrome.tabs.query({ active: true, currentWindow: true }, function (tabs) {
if (tabs && tabs.length) { // if any tab is active
var activeTab = tabs[0]
chrome.tabs.captureVisibleTab({ format: "png" }, function (dataUrl) {
let message = {
...userDetails,
tutorShotOid: tutorShotId,
action: 'SSCaptured',
dataUrl: dataUrl, imageNumber: imageNumber++,
...request.captureInfo ? request.captureInfo : {}
}
console.log('SS captured', message)
// to send message to the content instance of the
chrome.tabs.sendMessage(activeTab.id, message);
})
}
})
return
}
}
chrome.runtime.onMessage.addListener(onMessage)
getUserDetails = function () {
let dataSet = {
userDetails: JSON.parse(JSON.stringify(userDetails)),
recording: JSON.parse(JSON.stringify(recording)),
loggedIn: JSON.parse(JSON.stringify(loggedIn)),
tutorShotId: JSON.parse(JSON.stringify(tutorShotId)),
imageNumber: JSON.parse(JSON.stringify(imageNumber)),
}
return dataSet
}
}()
var loggedIn = false;
!function () {
let origin = "http://localhost:3039"
if (window.origin == origin) login()
}()
function login() {
let userDetails = {
uid: localStorage.getItem('userId'),
name: localStorage.getItem('name'),
email: localStorage.getItem('email')
}
if (userDetails?.uid || userDetails?.email) { // can login
console.log('logged in', userDetails)
chrome.runtime.sendMessage({ action: "login", userDetails })
}
}
var recording = false;
const api = axios.create({
baseURL: "http://localhost:3039/api",
headers: {
'Access-Control-Allow-Origin': '*', // Replace '*' with the origin you need
'Content-Type': 'application/json',
},
});
window.addEventListener('mousedown', function (e) {
if (e.button === 0) { // only left click allowed
console.log('click received')
let captureInfo = {
targetDimensions: e.target.getBoundingClientRect(), // this is for the backdrop
dimensions: { // this is for the main image
height: document.body.clientHeight,
width: document.body.clientWidth,
},
tagName: e.target.tagName,
outerText: e.target.outerText,
interText: e.target.interText,
url: location.href,
origin: location.origin,
}
chrome.runtime.sendMessage({ action: "captureSS", captureInfo })
}
})
// content.js
chrome.runtime.onMessage.addListener(function (message, sender, sendResponse) {
if (message.action == 'SSCaptured') {
console.log('SSCaptured', message)
api.post("/tutor-shot/screen-shot", message).then(res => {
console.log('response', res)
}).catch(err => {
console.log('err', err)
})
}
if (message.action == 'tabChanged') {
console.log('tabChanged', message)
}
});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).axios=t()}(this,(function(){"use strict";function e(t){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(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(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)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){return function(){return e.apply(t,arguments)}}var s,u=Object.prototype.toString,c=Object.getPrototypeOf,f=(s=Object.create(null),function(e){var t=u.call(e);return s[t]||(s[t]=t.slice(8,-1).toLowerCase())}),l=function(e){return e=e.toLowerCase(),function(t){return f(t)===e}},d=function(t){return function(n){return e(n)===t}},p=Array.isArray,h=d("undefined");var m=l("ArrayBuffer");var y=d("string"),v=d("function"),b=d("number"),g=function(t){return null!==t&&"object"===e(t)},w=function(e){if("object"!==f(e))return!1;var t=c(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},E=l("Date"),O=l("File"),S=l("Blob"),R=l("FileList"),A=l("URLSearchParams");function T(t,n){var r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=i.allOwnKeys,s=void 0!==a&&a;if(null!=t)if("object"!==e(t)&&(t=[t]),p(t))for(r=0,o=t.length;r<o;r++)n.call(null,t[r],r,t);else{var u,c=s?Object.getOwnPropertyNames(t):Object.keys(t),f=c.length;for(r=0;r<f;r++)u=c[r],n.call(null,t[u],u,t)}}function j(e,t){t=t.toLowerCase();for(var n,r=Object.keys(e),o=r.length;o-- >0;)if(t===(n=r[o]).toLowerCase())return n;return null}var N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,C=function(e){return!h(e)&&e!==N};var x,P=(x="undefined"!=typeof Uint8Array&&c(Uint8Array),function(e){return x&&e instanceof x}),k=l("HTMLFormElement"),U=function(e){var t=Object.prototype.hasOwnProperty;return function(e,n){return t.call(e,n)}}(),_=l("RegExp"),F=function(e,t){var n=Object.getOwnPropertyDescriptors(e),r={};T(n,(function(n,o){!1!==t(n,o,e)&&(r[o]=n)})),Object.defineProperties(e,r)},B="abcdefghijklmnopqrstuvwxyz",L="0123456789",D={DIGIT:L,ALPHA:B,ALPHA_DIGIT:B+B.toUpperCase()+L};var I=l("AsyncFunction"),q={isArray:p,isArrayBuffer:m,isBuffer:function(e){return null!==e&&!h(e)&&null!==e.constructor&&!h(e.constructor)&&v(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:function(e){var t;return e&&("function"==typeof FormData&&e instanceof FormData||v(e.append)&&("formdata"===(t=f(e))||"object"===t&&v(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&m(e.buffer)},isString:y,isNumber:b,isBoolean:function(e){return!0===e||!1===e},isObject:g,isPlainObject:w,isUndefined:h,isDate:E,isFile:O,isBlob:S,isRegExp:_,isFunction:v,isStream:function(e){return g(e)&&v(e.pipe)},isURLSearchParams:A,isTypedArray:P,isFileList:R,forEach:T,merge:function e(){for(var t=C(this)&&this||{},n=t.caseless,r={},o=function(t,o){var i=n&&j(r,o)||o;w(r[i])&&w(t)?r[i]=e(r[i],t):w(t)?r[i]=e({},t):p(t)?r[i]=t.slice():r[i]=t},i=0,a=arguments.length;i<a;i++)arguments[i]&&T(arguments[i],o);return r},extend:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.allOwnKeys;return T(t,(function(t,r){n&&v(t)?e[r]=a(t,n):e[r]=t}),{allOwnKeys:o}),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n,r){var o,i,a,s={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&c(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:f,kindOfTest:l,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;if(p(e))return e;var t=e.length;if(!b(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},forEachEntry:function(e,t){for(var n,r=(e&&e[Symbol.iterator]).call(e);(n=r.next())&&!n.done;){var o=n.value;t.call(e,o[0],o[1])}},matchAll:function(e,t){for(var n,r=[];null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:k,hasOwnProperty:U,hasOwnProp:U,reduceDescriptors:F,freezeMethods:function(e){F(e,(function(t,n){if(v(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;var r=e[n];v(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=function(){throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:function(e,t){var n={},r=function(e){e.forEach((function(e){n[e]=!0}))};return p(e)?r(e):r(String(e).split(t)),n},toCamelCase:function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))},noop:function(){},toFiniteNumber:function(e,t){return e=+e,Number.isFinite(e)?e:t},findKey:j,global:N,isContextDefined:C,ALPHABET:D,generateString:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D.ALPHA_DIGIT,n="",r=t.length;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&v(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:function(e){var t=new Array(10);return function e(n,r){if(g(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[r]=n;var o=p(n)?[]:{};return T(n,(function(t,n){var i=e(t,r+1);!h(i)&&(o[n]=i)})),t[r]=void 0,o}}return n}(e,0)},isAsyncFn:I,isThenable:function(e){return e&&(g(e)||v(e))&&v(e.then)&&v(e.catch)}};function M(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}q.inherits(M,Error,{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:q.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var z=M.prototype,H={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((function(e){H[e]={value:e}})),Object.defineProperties(M,H),Object.defineProperty(z,"isAxiosError",{value:!0}),M.from=function(e,t,n,r,o,i){var a=Object.create(z);return q.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(function(e){return"isAxiosError"!==e})),M.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function J(e){return q.isPlainObject(e)||q.isArray(e)}function W(e){return q.endsWith(e,"[]")?e.slice(0,-2):e}function K(e,t,n){return e?e.concat(t).map((function(e,t){return e=W(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}var V=q.toFlatObject(q,{},null,(function(e){return/^is[A-Z]/.test(e)}));function G(t,n,r){if(!q.isObject(t))throw new TypeError("target must be an object");n=n||new FormData;var o=(r=q.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!q.isUndefined(t[e])}))).metaTokens,i=r.visitor||f,a=r.dots,s=r.indexes,u=(r.Blob||"undefined"!=typeof Blob&&Blob)&&q.isSpecCompliantForm(n);if(!q.isFunction(i))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(q.isDate(e))return e.toISOString();if(!u&&q.isBlob(e))throw new M("Blob is not supported. Use a Buffer instead.");return q.isArrayBuffer(e)||q.isTypedArray(e)?u&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function f(t,r,i){var u=t;if(t&&!i&&"object"===e(t))if(q.endsWith(r,"{}"))r=o?r:r.slice(0,-2),t=JSON.stringify(t);else if(q.isArray(t)&&function(e){return q.isArray(e)&&!e.some(J)}(t)||(q.isFileList(t)||q.endsWith(r,"[]"))&&(u=q.toArray(t)))return r=W(r),u.forEach((function(e,t){!q.isUndefined(e)&&null!==e&&n.append(!0===s?K([r],t,a):null===s?r:r+"[]",c(e))})),!1;return!!J(t)||(n.append(K(i,r,a),c(t)),!1)}var l=[],d=Object.assign(V,{defaultVisitor:f,convertValue:c,isVisitable:J});if(!q.isObject(t))throw new TypeError("data must be an object");return function e(t,r){if(!q.isUndefined(t)){if(-1!==l.indexOf(t))throw Error("Circular reference detected in "+r.join("."));l.push(t),q.forEach(t,(function(t,o){!0===(!(q.isUndefined(t)||null===t)&&i.call(n,t,q.isString(o)?o.trim():o,r,d))&&e(t,r?r.concat(o):[o])})),l.pop()}}(t),n}function $(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function X(e,t){this._pairs=[],e&&G(e,this,t)}var Q=X.prototype;function Z(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Y(e,t,n){if(!t)return e;var r,o=n&&n.encode||Z,i=n&&n.serialize;if(r=i?i(t,n):q.isURLSearchParams(t)?t.toString():new X(t,n).toString(o)){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}Q.append=function(e,t){this._pairs.push([e,t])},Q.toString=function(e){var t=e?function(t){return e.call(this,t,$)}:$;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ee,te=function(){function e(){t(this,e),this.handlers=[]}return r(e,[{key:"use",value: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}},{key:"eject",value:function(e){this.handlers[e]&&(this.handlers[e]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(e){q.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}]),e}(),ne={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},re={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:X,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:("undefined"==typeof navigator||"ReactNative"!==(ee=navigator.product)&&"NativeScript"!==ee&&"NS"!==ee)&&"undefined"!=typeof window&&"undefined"!=typeof document,isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]};function oe(e){function t(e,n,r,o){var i=e[o++],a=Number.isFinite(+i),s=o>=e.length;return i=!i&&q.isArray(r)?r.length:i,s?(q.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&q.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&q.isArray(r[i])&&(r[i]=function(e){var t,n,r={},o=Object.keys(e),i=o.length;for(t=0;t<i;t++)r[n=o[t]]=e[n];return r}(r[i])),!a)}if(q.isFormData(e)&&q.isFunction(e.entries)){var n={};return q.forEachEntry(e,(function(e,r){t(function(e){return q.matchAll(/\w+|\[(\w*)]/g,e).map((function(e){return"[]"===e[0]?"":e[1]||e[0]}))}(e),r,n,0)})),n}return null}var ie={"Content-Type":void 0};var ae={transitional:ne,adapter:["xhr","http"],transformRequest:[function(e,t){var n,r=t.getContentType()||"",o=r.indexOf("application/json")>-1,i=q.isObject(e);if(i&&q.isHTMLForm(e)&&(e=new FormData(e)),q.isFormData(e))return o&&o?JSON.stringify(oe(e)):e;if(q.isArrayBuffer(e)||q.isBuffer(e)||q.isStream(e)||q.isFile(e)||q.isBlob(e))return e;if(q.isArrayBufferView(e))return e.buffer;if(q.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return G(e,new re.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return re.isNode&&q.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((n=q.isFileList(e))||r.indexOf("multipart/form-data")>-1){var a=this.env&&this.env.FormData;return G(n?{"files[]":e}:e,a&&new a,this.formSerializer)}}return i||o?(t.setContentType("application/json",!1),function(e,t,n){if(q.isString(e))try{return(t||JSON.parse)(e),q.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||ae.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&q.isString(e)&&(n&&!this.responseType||r)){var o=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw M.from(e,M.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:re.classes.FormData,Blob:re.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};q.forEach(["delete","get","head"],(function(e){ae.headers[e]={}})),q.forEach(["post","put","patch"],(function(e){ae.headers[e]=q.merge(ie)}));var se=ae,ue=q.toObjectSet(["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"]),ce=Symbol("internals");function fe(e){return e&&String(e).trim().toLowerCase()}function le(e){return!1===e||null==e?e:q.isArray(e)?e.map(le):String(e)}function de(e,t,n,r,o){return q.isFunction(r)?r.call(this,t,n):(o&&(t=n),q.isString(t)?q.isString(r)?-1!==t.indexOf(r):q.isRegExp(r)?r.test(t):void 0:void 0)}var pe=function(e,n){function i(e){t(this,i),e&&this.set(e)}return r(i,[{key:"set",value:function(e,t,n){var r=this;function o(e,t,n){var o=fe(t);if(!o)throw new Error("header name must be a non-empty string");var i=q.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=le(e))}var i,a,s,u,c,f=function(e,t){return q.forEach(e,(function(e,n){return o(e,n,t)}))};return q.isPlainObject(e)||e instanceof this.constructor?f(e,t):q.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?f((c={},(i=e)&&i.split("\n").forEach((function(e){u=e.indexOf(":"),a=e.substring(0,u).trim().toLowerCase(),s=e.substring(u+1).trim(),!a||c[a]&&ue[a]||("set-cookie"===a?c[a]?c[a].push(s):c[a]=[s]:c[a]=c[a]?c[a]+", "+s:s)})),c),t):null!=e&&o(t,e,n),this}},{key:"get",value:function(e,t){if(e=fe(e)){var n=q.findKey(this,e);if(n){var r=this[n];if(!t)return r;if(!0===t)return function(e){for(var t,n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;t=r.exec(e);)n[t[1]]=t[2];return n}(r);if(q.isFunction(t))return t.call(this,r,n);if(q.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,t){if(e=fe(e)){var n=q.findKey(this,e);return!(!n||void 0===this[n]||t&&!de(0,this[n],n,t))}return!1}},{key:"delete",value:function(e,t){var n=this,r=!1;function o(e){if(e=fe(e)){var o=q.findKey(n,e);!o||t&&!de(0,n[o],o,t)||(delete n[o],r=!0)}}return q.isArray(e)?e.forEach(o):o(e),r}},{key:"clear",value:function(e){for(var t=Object.keys(this),n=t.length,r=!1;n--;){var o=t[n];e&&!de(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}},{key:"normalize",value:function(e){var t=this,n={};return q.forEach(this,(function(r,o){var i=q.findKey(n,o);if(i)return t[i]=le(r),void delete t[o];var a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))}(o):String(o).trim();a!==o&&delete t[o],t[a]=le(r),n[a]=!0})),this}},{key:"concat",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=this.constructor).concat.apply(e,[this].concat(n))}},{key:"toJSON",value:function(e){var t=Object.create(null);return q.forEach(this,(function(n,r){null!=n&&!1!==n&&(t[r]=e&&q.isArray(n)?n.join(", "):n)})),t}},{key:Symbol.iterator,value:function(){return Object.entries(this.toJSON())[Symbol.iterator]()}},{key:"toString",value:function(){return Object.entries(this.toJSON()).map((function(e){var t=o(e,2);return t[0]+": "+t[1]})).join("\n")}},{key:Symbol.toStringTag,get:function(){return"AxiosHeaders"}}],[{key:"from",value:function(e){return e instanceof this?e:new this(e)}},{key:"concat",value:function(e){for(var t=new this(e),n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.forEach((function(e){return t.set(e)})),t}},{key:"accessor",value:function(e){var t=(this[ce]=this[ce]={accessors:{}}).accessors,n=this.prototype;function r(e){var r=fe(e);t[r]||(!function(e,t){var n=q.toCamelCase(" "+t);["get","set","has"].forEach((function(r){Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return q.isArray(e)?e.forEach(r):r(e),this}}]),i}();pe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),q.freezeMethods(pe.prototype),q.freezeMethods(pe);var he=pe;function me(e,t){var n=this||se,r=t||n,o=he.from(r.headers),i=r.data;return q.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function ye(e){return!(!e||!e.__CANCEL__)}function ve(e,t,n){M.call(this,null==e?"canceled":e,M.ERR_CANCELED,t,n),this.name="CanceledError"}q.inherits(ve,M,{__CANCEL__:!0});var be=re.isStandardBrowserEnv?{write:function(e,t,n,r,o,i){var a=[];a.push(e+"="+encodeURIComponent(t)),q.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),q.isString(r)&&a.push("path="+r),q.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.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(){}};function ge(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var we=re.isStandardBrowserEnv?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(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=r(window.location.href),function(t){var n=q.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0};function Ee(e,t){var n=0,r=function(e,t){e=e||10;var n,r=new Array(e),o=new Array(e),i=0,a=0;return t=void 0!==t?t:1e3,function(s){var u=Date.now(),c=o[a];n||(n=u),r[i]=s,o[i]=u;for(var f=a,l=0;f!==i;)l+=r[f++],f%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),!(u-n<t)){var d=c&&u-c;return d?Math.round(1e3*l/d):void 0}}}(50,250);return function(o){var i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-n,u=r(s);n=i;var c={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:u||void 0,estimated:u&&a&&i<=a?(a-i)/u:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}var Oe={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){var r,o=e.data,i=he.from(e.headers).normalize(),a=e.responseType;function s(){e.cancelToken&&e.cancelToken.unsubscribe(r),e.signal&&e.signal.removeEventListener("abort",r)}q.isFormData(o)&&(re.isStandardBrowserEnv||re.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));var u=new XMLHttpRequest;if(e.auth){var c=e.auth.username||"",f=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(c+":"+f))}var l=ge(e.baseURL,e.url);function d(){if(u){var r=he.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new M("Request failed with status code "+n.status,[M.ERR_BAD_REQUEST,M.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),s()}),(function(e){n(e),s()}),{data:a&&"text"!==a&&"json"!==a?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:e,request:u}),u=null}}if(u.open(e.method.toUpperCase(),Y(l,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(d)},u.onabort=function(){u&&(n(new M("Request aborted",M.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new M("Network Error",M.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||ne;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new M(t,r.clarifyTimeoutError?M.ETIMEDOUT:M.ECONNABORTED,e,u)),u=null},re.isStandardBrowserEnv){var p=(e.withCredentials||we(l))&&e.xsrfCookieName&&be.read(e.xsrfCookieName);p&&i.set(e.xsrfHeaderName,p)}void 0===o&&i.setContentType(null),"setRequestHeader"in u&&q.forEach(i.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),q.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),a&&"json"!==a&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",Ee(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",Ee(e.onUploadProgress)),(e.cancelToken||e.signal)&&(r=function(t){u&&(n(!t||t.type?new ve(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(r),e.signal&&(e.signal.aborted?r():e.signal.addEventListener("abort",r)));var h,m=(h=/^([-+\w]{1,25})(:?\/\/|:)/.exec(l))&&h[1]||"";m&&-1===re.protocols.indexOf(m)?n(new M("Unsupported protocol "+m+":",M.ERR_BAD_REQUEST,e)):u.send(o||null)}))}};q.forEach(Oe,(function(e,t){if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));var Se=function(e){for(var t,n,r=(e=q.isArray(e)?e:[e]).length,o=0;o<r&&(t=e[o],!(n=q.isString(t)?Oe[t.toLowerCase()]:t));o++);if(!n){if(!1===n)throw new M("Adapter ".concat(t," is not supported by the environment"),"ERR_NOT_SUPPORT");throw new Error(q.hasOwnProp(Oe,t)?"Adapter '".concat(t,"' is not available in the build"):"Unknown adapter '".concat(t,"'"))}if(!q.isFunction(n))throw new TypeError("adapter is not a function");return n};function Re(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ve(null,e)}function Ae(e){return Re(e),e.headers=he.from(e.headers),e.data=me.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Se(e.adapter||se.adapter)(e).then((function(t){return Re(e),t.data=me.call(e,e.transformResponse,t),t.headers=he.from(t.headers),t}),(function(t){return ye(t)||(Re(e),t&&t.response&&(t.response.data=me.call(e,e.transformResponse,t.response),t.response.headers=he.from(t.response.headers))),Promise.reject(t)}))}var Te=function(e){return e instanceof he?e.toJSON():e};function je(e,t){t=t||{};var n={};function r(e,t,n){return q.isPlainObject(e)&&q.isPlainObject(t)?q.merge.call({caseless:n},e,t):q.isPlainObject(t)?q.merge({},t):q.isArray(t)?t.slice():t}function o(e,t,n){return q.isUndefined(t)?q.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!q.isUndefined(t))return r(void 0,t)}function a(e,t){return q.isUndefined(t)?q.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}var u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:function(e,t){return o(Te(e),Te(t),!0)}};return q.forEach(Object.keys(Object.assign({},e,t)),(function(r){var i=u[r]||o,a=i(e[r],t[r],r);q.isUndefined(a)&&i!==s||(n[r]=a)})),n}var Ne="1.4.0",Ce={};["object","boolean","number","function","string","symbol"].forEach((function(t,n){Ce[t]=function(r){return e(r)===t||"a"+(n<1?"n ":" ")+t}}));var xe={};Ce.transitional=function(e,t,n){function r(e,t){return"[Axios v1.4.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,o,i){if(!1===e)throw new M(r(o," has been removed"+(t?" in "+t:"")),M.ERR_DEPRECATED);return t&&!xe[o]&&(xe[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var Pe={assertOptions:function(t,n,r){if("object"!==e(t))throw new M("options must be an object",M.ERR_BAD_OPTION_VALUE);for(var o=Object.keys(t),i=o.length;i-- >0;){var a=o[i],s=n[a];if(s){var u=t[a],c=void 0===u||s(u,a,t);if(!0!==c)throw new M("option "+a+" must be "+c,M.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new M("Unknown option "+a,M.ERR_BAD_OPTION)}},validators:Ce},ke=Pe.validators,Ue=function(){function e(n){t(this,e),this.defaults=n,this.interceptors={request:new te,response:new te}}return r(e,[{key:"request",value:function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{};var n,r=t=je(this.defaults,t),o=r.transitional,i=r.paramsSerializer,a=r.headers;void 0!==o&&Pe.assertOptions(o,{silentJSONParsing:ke.transitional(ke.boolean),forcedJSONParsing:ke.transitional(ke.boolean),clarifyTimeoutError:ke.transitional(ke.boolean)},!1),null!=i&&(q.isFunction(i)?t.paramsSerializer={serialize:i}:Pe.assertOptions(i,{encode:ke.function,serialize:ke.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase(),(n=a&&q.merge(a.common,a[t.method]))&&q.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete a[e]})),t.headers=he.concat(n,a);var s=[],u=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(u=u&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));var c,f=[];this.interceptors.response.forEach((function(e){f.push(e.fulfilled,e.rejected)}));var l,d=0;if(!u){var p=[Ae.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,f),l=p.length,c=Promise.resolve(t);d<l;)c=c.then(p[d++],p[d++]);return c}l=s.length;var h=t;for(d=0;d<l;){var m=s[d++],y=s[d++];try{h=m(h)}catch(e){y.call(this,e);break}}try{c=Ae.call(this,h)}catch(e){return Promise.reject(e)}for(d=0,l=f.length;d<l;)c=c.then(f[d++],f[d++]);return c}},{key:"getUri",value:function(e){return Y(ge((e=je(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}]),e}();q.forEach(["delete","get","head","options"],(function(e){Ue.prototype[e]=function(t,n){return this.request(je(n||{},{method:e,url:t,data:(n||{}).data}))}})),q.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(je(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Ue.prototype[e]=t(),Ue.prototype[e+"Form"]=t(!0)}));var _e=Ue,Fe=function(){function e(n){if(t(this,e),"function"!=typeof n)throw new TypeError("executor must be a function.");var r;this.promise=new Promise((function(e){r=e}));var o=this;this.promise.then((function(e){if(o._listeners){for(var t=o._listeners.length;t-- >0;)o._listeners[t](e);o._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){o.subscribe(e),t=e})).then(e);return n.cancel=function(){o.unsubscribe(t)},n},n((function(e,t,n){o.reason||(o.reason=new ve(e,t,n),r(o.reason))}))}return r(e,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}},{key:"unsubscribe",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}}],[{key:"source",value:function(){var t;return{token:new e((function(e){t=e})),cancel:t}}}]),e}();var Be={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Be).forEach((function(e){var t=o(e,2),n=t[0],r=t[1];Be[r]=n}));var Le=Be;var De=function e(t){var n=new _e(t),r=a(_e.prototype.request,n);return q.extend(r,_e.prototype,n,{allOwnKeys:!0}),q.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(je(t,n))},r}(se);return De.Axios=_e,De.CanceledError=ve,De.CancelToken=Fe,De.isCancel=ye,De.VERSION=Ne,De.toFormData=G,De.AxiosError=M,De.Cancel=De.CanceledError,De.all=function(e){return Promise.all(e)},De.spread=function(e){return function(t){return e.apply(null,t)}},De.isAxiosError=function(e){return q.isObject(e)&&!0===e.isAxiosError},De.mergeConfig=je,De.AxiosHeaders=he,De.formToJSON=function(e){return oe(q.isHTMLForm(e)?new FormData(e):e)},De.HttpStatusCode=Le,De.default=De,De}));
//# sourceMappingURL=axios.min.js.map
{
"manifest_version": 3,
"name": "Click Capturer",
"version": "1.0",
"description": "A basic Chrome extension",
"permissions": [
"activeTab",
"scripting"
],
"host_permissions": [
"<all_urls>"
],
"background": {
"service_worker": "background.js"
},
"content_scripts": [
{
"matches": ["<all_urls>"],
"js": [
"js/axios.min.js",
"content.js"
]
}
],
"action": {
"default_popup": "popup.html",
"default_icon": {
"16": "images/icon-16.png",
"48": "images/icon-48.png"
}
},
"icons": {
"16": "images/icon-16.png",
"48": "images/icon-48.png"
}
}
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>Tutor Shot</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<script src="./js/axios.min.js"></script>
</head>
<body>
<div style="width: 20rem;border-radius: 1rem;background-color: #fff;
box-shadow: 0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05);">
<div style="padding: 1rem 1.5rem;">
<div style="display:flex;flex-direction: column;align-items: center;">
<svg viewBox="0 0 30 40" width="110px" height="160px" version="1.1" id="svg5461" xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
<defs id="defs5458">
<linearGradient xlink:href="#linearGradient1573644" id="linearGradient5351" gradientUnits="userSpaceOnUse" gradientTransform="matrix(1.5890274,0,0,1.5890274,725.32826,-1.310955)" x1="-450.62503" y1="18.672832" x2="-437.73059" y2="18.672832" />
<linearGradient id="linearGradient1573644">
<stop id="stop1573640" offset="0" style="stop-color:#f36418;stop-opacity:1" />
<stop id="stop1573642" offset="1" style="stop-color:#fb8c07;stop-opacity:1" />
</linearGradient>
</defs>
<g id="layer1" transform="translate(-6.0990157,-7.462857)">
<path id="path5333" style="color:#000000;fill:url(#linearGradient5351);fill-opacity:1;stroke-width:1.58903;-inkscape-stroke:none"
d="m 16.943319,11.525141 c -2.226434,0.01511 -3.491888,1.258411 -4.288118,2.054655 -0.502053,0.502049 -0.784106,0.821137 -1.312568,0.962732 -0.528495,0.141614 -0.96624,-0.04044 -1.210792,-0.209289 -0.01589,0.08464 -0.02336,0.170306 -0.02384,0.256315 0.223179,1.057417 0.878669,1.500126 1.872764,1.499649 0.994096,-4.97e-4 2.778685,-0.536919 3.655589,-1.810742 0.0785,-0.136201 0.122197,-0.307075 0.0064,-0.482657 -0.303807,-0.442302 -0.759651,-0.575676 -0.759651,-0.575676 0.225626,-0.01975 0.865543,-0.01123 1.296043,0.404627 0.20813,0.184736 0.413433,0.397287 0.589116,1.203028 0.175714,0.805732 0.812644,1.235773 1.658817,1.236099 0.956658,7e-6 2.039135,-0.5748 1.916669,-2.040702 -0.122514,-1.465681 -1.172925,-2.512562 -3.399279,-2.498039 z m 3.492809,4.8457 c -1.436274,0.0089 -2.882607,0.379148 -4.196129,1.134813 -3.502741,2.01511 -5.115317,6.223153 -3.854535,10.062435 1.229462,3.74394 4.834314,5.871477 8.770001,5.871477 h 10.35647 c 0.956388,0 1.706361,0.724654 1.706361,1.681034 0,0.956377 -0.749973,1.705838 -1.706361,1.705838 h -3.22358 v 1.317751 h 3.22358 c 1.663696,0 3.023585,-1.359892 3.023585,-3.023589 0,-1.663699 -1.359889,-3.023071 -3.023585,-3.023071 h -9.029934 -0.09868 c -0.07309,0.0083 -1.296551,0 -1.296551,0 h -1.188052 c -2.845805,-0.233142 -5.339752,-2.139819 -6.259036,-4.939234 -1.068383,-3.253352 0.286947,-6.799917 3.255091,-8.507491 2.968144,-1.707575 6.718853,-1.099591 8.994276,1.459343 2.27544,2.558934 2.439666,6.354074 0.396876,9.102287 l 1.058848,0.785482 c 2.410714,-3.24317 2.213436,-7.743369 -0.471798,-10.763168 -1.342617,-1.5099 -3.123885,-2.44725 -5.008996,-2.75332 -0.471289,-0.07651 -0.949062,-0.113536 -1.42782,-0.110581 z m -8.116816,20.416325 c -1.663695,0 -3.0241094,1.359371 -3.0241094,3.02307 0,1.663697 1.3604144,3.023589 3.0241094,3.023589 h 3.223056 v -1.317232 h -3.223056 c -0.956387,0 -1.706361,-0.74998 -1.706361,-1.706357 0,-0.95638 0.749974,-1.681034 1.706361,-1.681034 h 1.367867 v -1.342036 z" />
<path id="path5335" style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:2.9876"
d="m 20.84028,20.613476 a 4.2555884,4.2555884 0 0 0 -0.10805,0.0047 4.2555884,
4.2555884 0 0 0 -0.145644,0.0052 4.2555884,4.2555884 0 0 0 -0.126019,0.01182 4.2555884,
4.2555884 0 0 0 -0.153445,0.0156 4.2555884,4.2555884 0 0 0 -0.116799,0.01915 4.2555884,
4.2555884 0 0 0 -0.156992,0.02738 4.2555884,4.2555884 0 0 0 -0.02388,0.0035 4.2555884,
4.2555884 0 0 0 -0.191274,0.04445 4.2555884,4.2555884 0 0 0 -0.0047,0.001 4.2555884,
4.2555884 0 0 0 -0.08275,0.02222 4.2555884,4.2555884 0 0 0 -0.164322,0.04908 4.2555884,
4.2555884 0 0 0 -0.07802,0.02584 4.2555884,4.2555884 0 0 0 -0.04871,0.01608 2.1474465,
2.1474465 0 0 1 5.2e-4,0.0021 4.2555884,4.2555884 0 0 0 -2.708349,3.009119 2.1474465,
2.1474465 0 0 1 -0.0024,-0.001 4.2555884,4.2555884 0 0 0 -0.01655,0.0801 4.2555884,
4.2555884 0 0 0 -0.01655,0.06254 4.2555884,4.2555884 0 0 0 -0.0095,0.05736 4.2555884,
4.2555884 0 0 0 -0.02388,0.13952 4.2555884,4.2555884 0 0 0 -0.01891,0.133845 4.2555884,
4.2555884 0 0 0 -0.01419,0.132285 4.2555884,4.2555884 0 0 0 -0.01182,0.147274 4.2555884,
4.2555884 0 0 0 -0.0047,0.111621 4.2555884,4.2555884 0 0 0 -0.0024,0.163305 4.2555884,
4.2555884 0 0 0 0.0024,0.108523 4.2555884,4.2555884 0 0 0 0.0071,0.155029 4.2555884,
4.2555884 0 0 0 0.01655,0.159168 4.2555884,4.2555884 0 0 0 0.01182,0.100768 4.2555884,
4.2555884 0 0 0 0.03003,0.187586 4.2555884,4.2555884 0 0 0 0.01419,0.08164 4.2555884,
4.2555884 0 0 0 0.0071,0.03565 4.2555884, 4.2555884 0 0 0 0.0253,0.103345 4.2555884,
4.2555884 0 0 0 0.03665,0.150892 4.2555884,4.2555884 0 0 0 0.04185,0.139 4.2555884,
4.2555884 0 0 0 0.03145,0.104385 4.2555884,4.2555884 0 0 0 0.07329,0.19896 4.2555884,
4.2555884 0 0 0 0.02388,0.06254 4.2555884,4.2555884 0 0 0 0.07329,0.165362 4.2555884,
4.2555884 0 0 0 0.04658,0.09871 4.2555884,4.2555884 0 0 0 0.0584,0.112141 4.2555884,
4.2555884 0 0 0 0.07589,0.14056 4.2555884,4.2555884 0 0 0 0.09292,0.149875 4.2555884,
4.2555884 0 0 0 0.04185,0.06615 4.2555884,4.2555884 0 0 0 0.110651,0.158127 4.2555884,
4.2555884 0 0 0 0.06005,0.08164 4.2555884,4.2555884 0 0 0 0.0993,0.121952 4.2555884,
4.2555884 0 0 0 0.07542,0.09044 4.2555884,4.2555884 0 0 0 0.107105,0.116278 4.2555884,
4.2555884 0 0 0 0.08724,0.09096 4.2555884,4.2555884 0 0 0 0.09103,0.08734 4.2555884,
4.2555884 0 0 0 0.116326,0.106963 4.2555884,4.2555884 0 0 0 0.09103,0.07545 4.2555884,
4.2555884 0 0 0 0.121527,0.09871 4.2555884,4.2555884 0 0 0 0.09363,0.06821 4.2555884,
4.2555884 0 0 0 0.135477,0.09611 4.2555884,4.2555884 0 0 0 0.126019,0.07906 4.2555884,
4.2555884 0 0 0 0.0993,0.06098 4.2555884,4.2555884 0 0 0 0.169996,0.09148 4.2555884,
4.2555884 0 0 0 0.0714,0.03823 4.2555884,4.2555884 0 0 0 0.141624,0.06563 4.2555884,
4.2555884 0 0 0 0.134295,0.05892 4.2555884, 4.2555884 0 0 0 0.07897,0.031 4.2555884,
4.2555884 0 0 0 0.170469,0.06355 4.2555884,4.2555884 0 0 0 0.169996,0.05168 4.2555884,
4.2555884 0 0 0 0.08417,0.02532 4.2555884,4.2555884 0 0 0 0.179926,0.04341 4.2555884,
4.2555884 0 0 0 0.07637,0.01868 4.2555884,4.2555884 0 0 0 0.01891,0.0035 4.2555884,
4.2555884 0 0 0 0.174251,0.02998 4.2555884,4.2555884 0 0 0 0.101903,0.0149 4.2555884,
4.2555884 0 0 0 0.162667,0.0175 4.2555884,4.2555884 0 0 0 0.118926,0.01088 4.2555884,
4.2555884 0 0 0 0.145643,0.0052 4.2555884,4.2555884 0 0 0 0.134295,0.0035 4.2555884,
4.2555884 0 0 0 0.133821,-0.0035 4.2555884,4.2555884 0 0 0 0.146825,-0.0052 4.2555884,
4.2555884 0 0 0 0.122946,-0.01088 4.2555884,4.2555884 0 0 0 0.156046,-0.01655 4.2555884,
4.2555884 0 0 0 0.111597,-0.01797 4.2555884,4.2555884 0 0 0 0.165504,-0.02842 4.2555884,
4.2555884 0 0 0 0.01891,-0.0031 4.2555884,4.2555884 0 0 0 0.207825,-0.04859 4.2555884,
4.2555884 0 0 0 0.01182,-0.0026 4.2555884,4.2555884 0 0 0 0.01891,-0.0057 4.2555884,
4.2555884 0 0 0 0.238751,-0.07079 4.2555884,4.2555884 0 0 0 0.0095,-0.0026 4.2555884,
4.2555884 0 0 0 0.01182,-0.0047 4.2555884,4.2555884 0 0 0 0.245466,-0.09096 4.2555884,
4.2555884 0 0 0 0.0047,-0.0016 4.2555884,4.2555884 0 0 0 0.0047,-0.0021 4.2555884,
4.2555884 0 0 0 0.224376,-0.09973 4.2555884,4.2555884 0 0 0 0.0024,-10e-4 4.2555884,
4.2555884 0 0 0 0.04492,-0.02175 4.2555884,4.2555884 0 0 0 0.205697,-0.108003 4.2555884,
4.2555884 0 0 0 0.01891,-0.0099 4.2555884,4.2555884 0 0 0 0.01655,-0.0092 4.2555884,
4.2555884 0 0 0 0.207825,-0.127131 4.2555884,4.2555884 0 0 0 0.01419,-0.0087 4.2555884,
4.2555884 0 0 0 0.01891,-0.01348 4.2555884,4.2555884 0 0 0 0.208298,-0.148315 4.2555884,
4.2555884 0 0 0 0.216101,-0.175174 4.2555884,4.2555884 0 0 0 0.200496,-0.18501 4.2555884,
4.2555884 0 0 0 0.0047,-0.0035 4.2555884,4.2555884 0 0 0 10e-4,-0.001 4.2555884,
4.2555884 0 0 0 0.190566,-0.199999 4.2555884,4.2555884 0 0 0 0,-5.15e-4 4.2555884,
4.2555884 0 0 0 0.159593,-0.191725 4.2555884,4.2555884 0 0 0 0.03925,-0.05116 4.2555884,
4.2555884 0 0 0 0.139496,-0.192244 4.2555884,4.2555884 0 0 0 0.0047,-0.0047 4.2555884,
4.2555884 0 0 0 0.0047,-0.0052 4.2555884,4.2555884 0 0 0 0.144697,-0.230996 4.2555884,
4.2555884 0 0 0 0.0047,-0.0087 4.2555884,4.2555884 0 0 0 0.120818,-0.222721 4.2555884,
4.2555884 0 0 0 0.0071,-0.01229 4.2555884,4.2555884 0 0 0 0.0071,-0.01395 4.2555884,
4.2555884 0 0 0 0.10805,-0.236174 4.2555884,4.2555884 0 0 0 0.0021,-0.0035 4.2555884,
4.2555884 0 0 0 0.0071,-0.01702 4.2555884,4.2555884 0 0 0 0.08795,-0.230475 4.2555884,
4.2555884 0 0 0 0.0047,-0.01182 4.2555884,4.2555884 0 0 0 0.0021,-0.0057 4.2555884,4.2555884 0 0 0 0.07235,-0.236151 4.2555884,4.2555884 0 0 0 0.01182,-0.04237 4.2555884,4.2555884 0 0 0 0.0021,-0.0073 4.2555884,4.2555884 0 0 0 0.05675,-0.240813 4.2555884,4.2555884 0 0 0 0.001,-0.0047 4.2555884,4.2555884 0 0 0 0.0071,-0.02998 4.2555884,4.2555884 0 0 0 0.0021,-0.01182 4.2555884,4.2555884 0 0 0 0.0021,-0.01229 4.2555884,4.2555884 0 0 0 0.0021,-0.0083 4.2555884,4.2555884 0 0 0 0.01182,-0.05994 4.2555884,4.2555884 0 0 0 0,-5.16e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.15e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.15e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0.0047,-0.02532 4.2555884,4.2555884 0 0 0 0.0021,-0.01655 4.2555884,4.2555884 0 0 0 0.0095,-0.06355 4.2555884,4.2555884 0 0 0 0.0021,-0.02057 4.2555884,4.2555884 0 0 0 0.0071,-0.04185 4.2555884,4.2555884 0 0 0 0.0016,-0.0149 4.2555884,4.2555884 0 0 0 10e-4,-0.0066 4.2555884,4.2555884 0 0 0 0.0024,-0.02057 4.2555884,4.2555884 0 0 0 0.0047,-0.04185 4.2555884,4.2555884 0 0 0 0.0021,-0.02428 4.2555884,4.2555884 0 0 0 0.0021,-0.01868 4.2555884,4.2555884 0 0 0 0.0071,-0.06355 4.2555884,4.2555884 0 0 0 5.2e-4,-0.01135 4.2555884,4.2555884 0 0 0 0.001,-0.0092 4.2555884,4.2555884 0 0 0 0.0021,-0.02057 4.2555884,4.2555884 0 0 0 0.0021,-0.03721 4.2555884,4.2555884 0 0 0 0.0021,-0.02636 4.2555884,4.2555884 0 0 0 0,-5.16e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0.0021,-0.04807 4.2555884,4.2555884 0 0 0 0.0021,-0.03617 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.15e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.15e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.15e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.16e-4 4.2555884,4.2555884 0 0 0 0,-5.17e-4 4.2555884,4.2555884 0 0 0 0,-5.16e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.17e-4 4.2555884,4.2555884 0 0 0 0,-5.16e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.15e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.15e-4 4.2555884,4.2555884 0 0 0 0.001,-0.03152 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.15e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.15e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.16e-4 4.2555884,4.2555884 0 0 0 0,-5.17e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.16e-4 4.2555884,4.2555884 0 0 0 0,-5.17e-4 4.2555884,4.2555884 0 0 0 0,-5.16e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.15e-4 4.2555884,4.2555884 0 0 0 4.96e-4,-0.01608 4.2555884,4.2555884 0 0 0 10e-4,-0.03979 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.15e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.16e-4 4.2555884,4.2555884 0 0 0 0,-5.17e-4 4.2555884,4.2555884 0 0 0 0,-5.16e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0.001,-0.06254 4.2555884,4.2555884 0 0 0 0,-5.16e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.15e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.15e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.15e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.15e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.16e-4 4.2555884,4.2555884 0 0 0 0,-5.17e-4 4.2555884,4.2555884 0 0 0 0,-5.16e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.17e-4 4.2555884,4.2555884 0 0 0 0,-5.16e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.15e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.15e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.15e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.15e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.16e-4 4.2555884,4.2555884 0 0 0 0,-5.17e-4 4.2555884,4.2555884 0 0 0 0,-5.16e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.17e-4 4.2555884,4.2555884 0 0 0 0,-5.16e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.15e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.15e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.15e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.16e-4 4.2555884,4.2555884 0 0 0 0,-5.17e-4 4.2555884,4.2555884 0 0 0 0,-5.16e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.17e-4 4.2555884,4.2555884 0 0 0 0,-5.16e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.15e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.15e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.15e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.15e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.16e-4 4.2555884,4.2555884 0 0 0 0,-5.17e-4 4.2555884,4.2555884 0 0 0 0,-5.16e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.17e-4 4.2555884,4.2555884 0 0 0 0,-5.16e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.15e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.15e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.15e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.16e-4 4.2555884,4.2555884 0 0 0 0,-5.17e-4 4.2555884,4.2555884 0 0 0 0,-5.16e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.17e-4 4.2555884,4.2555884 0 0 0 0,-5.16e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.15e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.15e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 -0.001,-0.04289 4.2555884,4.2555884 0 0 0 -10e-4,-0.03617 4.2555884,4.2555884 0 0 0 0,-5.16e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.15e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.15e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.15e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 0,-5.16e-4 4.2555884,4.2555884 0 0 0 0,-5.17e-4 4.2555884,4.2555884 0 0 0 0,-5.16e-4 4.2555884,4.2555884 0 0 0 0,-5.18e-4 4.2555884,4.2555884 0 0 0 -0.0015,-0.06355 4.2555884,4.2555884 0 0 0 -0.001,-0.02428 4.2555884,4.2555884 0 0 0 -0.001,-0.01797 4.2555884,4.2555884 0 0 0 -0.0021,-0.04289 4.2555884,4.2555884 0 0 0 -0.0024,-0.04185 4.2555884,4.2555884 0 0 0 -0.0047,-0.06511 4.2555884,4.2555884 0 0 0 -0.0021,-0.0201 4.2555884,4.2555884 0 0 0 -0.0047,-0.04135 4.2555884,4.2555884 0 0 0 -0.0047,-0.04289 4.2555884,4.2555884 0 0 0 -0.001,-0.0083 4.2555884,4.2555884 0 0 0 -0.01182,-0.09353 4.2555884,4.2555884 0 0 0 -0.0071,-0.04547 4.2555884,4.2555884 0 0 0 -0.0071,-0.04237 4.2555884,4.2555884 0 0 0 -0.001,-0.0057 4.2555884,4.2555884 0 0 0 -0.0021,-0.0156 4.2555884,4.2555884 0 0 0 -0.001,-0.004 4.2555884,4.2555884 0 0 0 -0.0047,-0.03721 4.2555884,4.2555884 0 0 0 -0.0071,-0.03565 4.2555884,4.2555884 0 0 0 -0.0047,-0.02738 4.2555884,4.2555884 0 0 0 -10e-4,-0.004 4.2555884,4.2555884 0 0 0 -0.0021,-0.01655 4.2555884,4.2555884 0 0 0 -0.0047,-0.02428 4.2555884,4.2555884 0 0 0 -0.0024,-0.0175 4.2555884,4.2555884 0 0 0 -0.001,-0.0026 4.2555884,4.2555884 0 0 0 -0.03215,-0.142617 2.1474465,2.1474465 0 0 1 -0.0015,0.001 4.2555884,4.2555884 0 0 0 -0.542615,-1.274342 1.143485,1.143485 0 0 1 -1.103295,0.84491 1.143485,1.143485 0 0 1 -1.143583,-1.1436 1.143485,1.143485 0 0 1 0.807705,-1.092955 4.2555884,4.2555884 0 0 0 -0.728122,-0.34365 2.1474465,2.1474465 0 0 1 10e-4,-0.0015 4.2555884,4.2555884 0 0 0 -0.048,-0.01561 4.2555884,4.2555884 0 0 0 -0.07897,-0.02636 4.2555884,4.2555884 0 0 0 -0.171651,-0.05116 4.2555884,4.2555884 0 0 0 -0.07069,-0.01962 4.2555884,4.2555884 0 0 0 -0.0071,-0.0015 4.2555884,4.2555884 0 0 0 -0.192693,-0.04497 4.2555884,4.2555884 0 0 0 -0.01891,-0.0031 4.2555884,4.2555884 0 0 0 -0.165504,-0.02842 4.2555884,4.2555884 0 0 0 -0.111596,-0.01797 4.2555884,4.2555884 0 0 0 -0.153446,-0.01561 4.2555884,4.2555884 0 0 0 -0.126019,-0.01182 4.2555884,4.2555884 0 0 0 -0.145643,-0.0052 4.2555884,4.2555884 0 0 0 -0.133822,-0.0035 4.2555884,4.2555884 0 0 0 -0.02743,-0.001 z m -7.934932,13.159919 v 0.88625 h 1.320861 v 3.453019 h 1.016477 v -3.453019 h 1.326535 v -0.88625 z m 8.722469,0.409278 -0.967369,0.105426 v 0.762227 h -0.52039 v 0.775149 h 0.52039 v 1.159102 c 0,0.417401 0.09718,0.720951 0.291452,0.911055 0.194349,0.185979 0.458989,0.279051 0.793756,0.279051 0.301666,0 0.572122,-0.05998 0.811819,-0.179831 l -0.229341,-0.731221 c -0.115616,0.05786 -0.233596,0.08682 -0.353468,0.08682 -0.107578,0 -0.191748,-0.02896 -0.253741,-0.08682 -0.06195,-0.06199 -0.09292,-0.155077 -0.09292,-0.279051 v -1.159103 h 0.762239 v -0.775148 h -0.762239 z m 2.819994,0.799435 c -0.325782,0.004 -0.613215,0.07251 -0.861447,0.204634 -0.252086,0.132237 -0.446009,0.318407 -0.582407,0.558104 -0.136423,0.239699 -0.204516,0.518424 -0.204516,0.836642 0,0.318219 0.06833,0.596944 0.204516,0.836643 0.136422,0.239694 0.330321,0.427926 0.582407,0.564306 0.256223,0.132237 0.554083,0.198439 0.892963,0.198439 0.338881,0 0.63622,-0.0662 0.892444,-0.198439 0.256246,-0.136375 0.452747,-0.324612 0.589122,-0.564306 0.136422,-0.239699 0.204515,-0.518424 0.204515,-0.836643 0,-0.318218 -0.06833,-0.596943 -0.204515,-0.836642 -0.136423,-0.239697 -0.332876,-0.425858 -0.589122,-0.558104 -0.256224,-0.136375 -0.553563,-0.204634 -0.892444,-0.204634 -0.0095,0 -0.02128,-1.35e-4 -0.03145,0 z m 4.017318,0 c -0.347132,0 -0.61967,0.150987 -0.818038,0.452686 l -0.07448,-0.384475 h -0.849578 v 3.062345 H 27.69662 V 36.6249 c 0,-0.256223 0.06005,-0.450662 0.179926,-0.582909 0.119872,-0.132237 0.282752,-0.197918 0.489395,-0.197918 0.08252,0 0.161248,0.01182 0.235724,0.03669 0.07448,0.0248 0.155101,0.0641 0.241848,0.117815 l 0.409291,-0.712616 c -0.103322,-0.09918 -0.225321,-0.173661 -0.365881,-0.223241 -0.140442,-0.05372 -0.281167,-0.08062 -0.42168,-0.08062 z m -11.945512,0.06821 v 1.729611 c 0,0.438067 0.111597,0.780914 0.334862,1.028879 0.223193,0.24796 0.522566,0.372069 0.898637,0.372069 0.198368,0 0.380399,-0.03516 0.545713,-0.105426 0.169523,-0.07438 0.31214,-0.179879 0.427874,-0.316261 l 0.06195,0.353466 h 0.842839 v -3.062345 h -0.973067 v 1.605587 c 0,0.206643 -0.05793,0.376251 -0.173542,0.508498 -0.111597,0.128123 -0.260503,0.192244 -0.446482,0.192244 -0.169286,0 -0.303841,-0.05585 -0.403072,-0.167418 -0.09505,-0.111574 -0.14257,-0.266719 -0.14257,-0.465089 v -1.673801 z m 7.940063,0.756544 c 0.0071,-1.4e-4 0.01419,0 0.01891,0 0.214919,0 0.38865,0.07187 0.520911,0.216526 0.132167,0.14465 0.197896,0.330806 0.197896,0.558106 0,0.227308 -0.06573,0.413462 -0.197896,0.558105 -0.132166,0.14465 -0.305992,0.217046 -0.520911,0.217046 -0.210662,0 -0.382455,-0.0724 -0.514692,-0.217046 -0.132167,-0.14465 -0.198368,-0.330804 -0.198368,-0.558105 0,-0.227307 0.0662,-0.413461 0.198368,-0.558106 0.128147,-0.140111 0.293272,-0.212152 0.495045,-0.216526 z m -6.432159,3.256133 c -0.351269,0 -0.661021,0.05585 -0.929657,0.167419 -0.268613,0.111573 -0.477479,0.268785 -0.626314,0.471288 -0.148953,0.202506 -0.223193,0.435722 -0.223193,0.700218 0,0.392605 0.136422,0.694602 0.409267,0.905369 0.276887,0.21078 0.710767,0.349354 1.301733,0.41548 0.305828,0.03305 0.529163,0.08838 0.669723,0.166922 0.140442,0.07852 0.210899,0.188154 0.210899,0.328662 0,0.148788 -0.07661,0.266676 -0.229341,0.353466 -0.148717,0.08679 -0.351482,0.130228 -0.607706,0.130228 -0.512446,0 -0.960796,-0.15101 -1.345143,-0.452685 l -0.522448,-0.395327 -0.0047,1.133265 c 0.239696,0.19423 0.523086,0.344716 0.849554,0.452168 0.330629,0.107459 0.673482,0.161224 1.028865,0.161224 h 5.2e-4 c 0.359545,0 0.677596,-0.05585 0.954484,-0.167419 0.276864,-0.11571 0.492042,-0.27654 0.64492,-0.483176 0.152973,-0.210781 0.229341,-0.452778 0.229341,-0.725537 0,-0.392606 -0.144697,-0.700291 -0.434092,-0.923456 -0.289277,-0.227308 -0.727271,-0.374159 -1.314123,-0.440285 -0.305804,-0.03719 -0.525002,-0.09304 -0.657334,-0.167419 -0.12791,-0.07438 -0.191747,-0.179879 -0.191747,-0.316261 0,-0.140513 0.07377,-0.251686 0.22272,-0.334346 0.152973,-0.08263 0.35562,-0.124033 0.607706,-0.124033 0.409125,0 0.783022,0.11739 1.121902,0.352951 l 0.477478,-0.712619 C 19.451898,39.402053 19.1974,39.280013 18.9081,39.193223 c -0.285163,-0.0868 -0.578365,-0.130228 -0.880054,-0.130228 z m 2.354905,0.09921 v 4.33927 h 0.973067 v -1.611777 c 0,-0.206643 0.05793,-0.373665 0.173542,-0.501779 0.119872,-0.128123 0.274973,-0.192244 0.465089,-0.192244 0.173543,0 0.30805,0.05585 0.403073,0.167442 0.0993,0.111574 0.148716,0.266201 0.148716,0.464572 v 1.673797 h 0.973068 v -1.72961 c 0,-0.429799 -0.111597,-0.77058 -0.334862,-1.022676 -0.218937,-0.252095 -0.516371,-0.37827 -0.892443,-0.37827 -0.388484,0 -0.700813,0.134436 -0.936372,0.403075 v -1.611789 z m 8.814962,0.409278 -0.966873,0.105426 v 0.762227 h -0.520887 v 0.775149 h 0.520887 v 1.1591 c 0,0.417405 0.09718,0.721468 0.291452,0.911573 0.194349,0.185979 0.458493,0.278536 0.793236,0.278536 0.301689,0 0.572666,-0.05998 0.812363,-0.179832 L 29.898225,42.65244 c -0.115616,0.05786 -0.233597,0.08682 -0.353469,0.08682 -0.107577,0 -0.19222,-0.02896 -0.25426,-0.08682 -0.06195,-0.06199 -0.09292,-0.155077 -0.09292,-0.279054 v -1.1591 h 0.762736 v -0.775148 h -0.762736 z m -3.477303,0.799435 c -0.338881,0 -0.63674,0.06826 -0.892963,0.204634 -0.25211,0.132237 -0.446033,0.318407 -0.582408,0.558104 -0.136422,0.239697 -0.204515,0.518424 -0.204515,0.836642 0,0.318219 0.06833,0.597462 0.204515,0.837158 0.136422,0.239697 0.330298,0.427411 0.582408,0.563791 0.256223,0.132237 0.554082,0.198439 0.892963,0.198439 0.338857,0 0.63622,-0.0662 0.892443,-0.198439 0.256223,-0.136375 0.452723,-0.324094 0.589122,-0.563791 0.136422,-0.239696 0.204515,-0.518939 0.204515,-0.837158 0,-0.318218 -0.06833,-0.596945 -0.204515,-0.836642 -0.136422,-0.239697 -0.332899,-0.425857 -0.589122,-0.558104 -0.256223,-0.136375 -0.553586,-0.204634 -0.892443,-0.204634 z m -0.01891,0.824755 c 0.0071,-1.42e-4 0.01419,0 0.01891,0 0.214918,0 0.38813,0.0724 0.520367,0.217046 0.132167,0.14465 0.198368,0.330288 0.198368,0.557589 0,0.227307 -0.0662,0.413461 -0.198368,0.558104 -0.132167,0.14465 -0.305472,0.217046 -0.520367,0.217046 -0.210663,0 -0.382456,-0.0724 -0.514693,-0.217046 -0.132166,-0.14465 -0.198368,-0.330806 -0.198368,-0.558104 0,-0.227308 0.0662,-0.412944 0.198368,-0.557589 0.128147,-0.140134 0.293249,-0.212672 0.495045,-0.217046 z" />
</g>
</svg>
<div style="font-size: 18px; font-weight: 600; font-family: 'popins',sans-serif;">
Welcome to Tutor Shot!
</div>
</div>
<p style="color: #252525;font-size: 1rem; text-align: center;">
Sign in to your BeGenieUs account to start using this extention.
</p>
</div>
<div style="padding: 1.5rem;padding-top:0px;display: flex; align-items: center; justify-content: center;">
<button id="login-btn" type="button" style="background-color: #f36418;background-image: linear-gradient(150deg,#f36418 19%, #fc9c2a 75%);border: none;cursor: pointer;border-radius: 8px;font-size: 14px;font-weight: 600;height: 40px;padding: 8px 16px;align-items: center;justify-content: center;color: #fff;display: flex; text-decoration: none;">Login to Tutor Shot
</button>
</div>
<div id="user-details">
<div style=" background-color: #fff4e3;border-bottom:1px solid #f0f0f0;padding:16px;display:flex;">
<div style="display: flex; justify-content:space-between;align-items: center; width: 100%;">
<div style="display: flex;align-items: center;flex: 1;">
<img src="./images/photo.jpg" alt=""style="border: 2px solid #fff;;border-radius: 50%;
height: 32px;margin-right: 8px;max-width: 50px;overflow: hidden;width: 32px;">
<div href="" style="text-decoration: none;color: #1c1c1c;font-size: 12px;line-height: 14px;display: flex;flex-direction: column;">
<span style="max-width: 265px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;font-weight: bold;" id="user-name">
User Name
</span>
<span style="max-width: 265px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;" id="user-email">
useremail@email.com
</span>
</div>
</div>
<div style="display: flex;align-items: center;">
<button id="my-captures-btn" type="button" style="background-color: #f36418;background-image: linear-gradient(150deg,#f36418 19%, #fc9c2a 75%);border: none;cursor: pointer;border-radius:6px;font-size: 14px;font-weight: 600;height:30px;padding: 8px 12px;align-items: center;justify-content: center;color: #fff;display: flex; text-decoration: none;">My Captures
</button>
</div>
</div>
</div>
<p style="padding:20px;color: #252525;font-size: 1rem; text-align: center;margin: 0;">
Click the Start button to save Screens. See your recent saves here.
</p>
<div style="display:flex;padding: 30px;padding-top: 0;">
<button id="start-btn" type="button" style="background-color: #f36418;background-image: linear-gradient(150deg,#f36418 19%, #fc9c2a 75%);border: none;cursor: pointer;border-radius: 8px;font-size: 14px;font-weight: 600;height: 40px;padding: 8px 16px;align-items: center;justify-content: center;color: #fff;text-decoration: none;flex:1;margin: 0.25rem;display: flex; ">
Start
</button>
<button id="stop-btn" type="button" class="btn btn-default" data-bs-dismiss="modal" style="background-color: #eeeeee;color: #1e3039;border: none;cursor: pointer;font-size: 14px;font-weight: 600;height: 40px;padding: 8px 16px;align-items: center;justify-content: center;border-radius: 8px;margin: .25rem;text-align: center;text-decoration: none;line-height: 1.5;flex:1;display: flex; ">
Stop
</button>
</div>
</div>
</div>
<script src="popup.js"></script>
</body>
</html>
\ No newline at end of file
!function () {
console.log('popup', chrome);
const api = axios.create({
baseURL: "http://localhost:3039/api", // the base URL for nodeserver is okay but NGINX is giving error
headers: {
'Access-Control-Allow-Origin': '*', // Replace '*' with the origin you need
'Content-Type': 'application/json',
},
});
console.log('api',api)
let origin = "http://localhost:3039"
let recording = false;
let loggedIn = false;
let startBtn = document.getElementById('start-btn')
let stopBtn = document.getElementById('stop-btn');
let userDetailsDiv = document.getElementById('user-details')
let userName = document.getElementById('user-name')
let userEmail = document.getElementById('user-email')
let myCapturesBtn = document.getElementById('my-captures-btn')
myCapturesBtn.addEventListener('click',(e)=>{ window.open(origin+'/tutor-shot-list') })
let userDetails = {};
let inProgress = false;
let loginBtn = document.getElementById('login-btn')
loginBtn.addEventListener('click', () => { window.open(origin) })
startBtn.addEventListener('click', async function () {
if (inProgress){
console.log('something in progress');
return
}
inProgress = true
try{
console.log('apis', api)
let { data } = await api.post('/tutor-shot', { title: "Some random title" }, { headers: { userId: userDetails.uid } } )
console.log('creating reponse',data)
if (data.success){
chrome.runtime.sendMessage({ action: "startRecording", tutorShotId:data.tutorShot._id }, async function (response) {
recording = response.recording
console.log('to start. we need api', api)
modifyPopupUI()
inProgress = false
})
}
}catch(err){
console.log('error while starting to record', err)
inProgress = false
}
})
stopBtn.addEventListener('click', function () {
if (inProgress){
console.log('something in progress');
return
}
inProgress = true
chrome.runtime.sendMessage({ action: "stopRecording" }, function (response) {
recording = response.recording
modifyPopupUI()
inProgress = false
})
})
function modifyPopupUI() {
console.log('modify ui', userDetails)
loginBtn.style.display = loggedIn ? 'none' : ''
startBtn.style.display = loggedIn ? (recording ? 'none' : '') : 'none'
stopBtn.style.display = loggedIn ? (!recording ? 'none' : '') : 'none'
if (userDetails.email && userDetails.uid){
userDetailsDiv.style.display = 'block'
userEmail.innerHTML = userDetails.email
userName.innerHTML = userDetails.name
}else{
userDetailsDiv.style.display = 'none'
userEmail.innerHTML = ""
userName.innerHTML = ""
}
}
function domLoadHandler() {
chrome.runtime.sendMessage({ action: "checkStatus" }, function (response) {
userDetails = response.userDetails;
loggedIn = response.loggedIn,
recording = response.recording
modifyPopupUI()
})
}
// this code should run everytime the popup is opened
document.addEventListener("DOMContentLoaded", domLoadHandler);
}()
1. Clone the repository on your local system
2. Open your chrome browser and visit `chrome://extensions/`
3. Enable "Developer Mode"
4. Click on Load Unpacked and select this repository folder.
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment