{"version":3,"sources":["jsdelivr-header.js","/npm/@jasperj1/pointer.js@1.0.2/dist/Desktop/pointer/cursor/simple-cursor.js","/npm/@jasperj1/pointer.js@1.0.2/dist/Desktop/pointer/cursor/rim-cursor.js","/npm/@jasperj1/pointer.js@1.0.2/dist/Desktop/pointer/cursor/chrome-cursor.js","/npm/@jasperj1/pointer.js@1.0.2/dist/Desktop/pointer/cursor/pen-cursor.js","/npm/@jasperj1/pointer.js@1.0.2/dist/Desktop/pointer/cursor/snow-cursor.js","/npm/@jasperj1/pointer.js@1.0.2/dist/Desktop/pointer/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,SAAS,oCAAe,GAEpB,MAAM,EAAQ,EAAK,aAAa,SAC1B,EAAQ,SAAS,cAAc,SAOrC,EAAM,YALI,oEAMV,SAAS,KAAK,YAAY,GAe1B,MAAM,EAAO,IAAI,KAAM,CAXZ,yIAIS,iGAOiB,CAAE,KAAM,kBAEvC,EAAO,OAAO,IAAI,gBAAiB,GAGzC,EAAK,MAAM,OAAS,OAAO,kBAM3B,EAAK,iBAAiB,cAAc,KAChC,IAAI,gBAAgB,EAAK,G,KAIjC,yCAAe,oCC1Cf,SAAS,iCAAY,GAClB,MAAM,EAAc,EAAK,aAAa,eAChC,EAAe,EAAK,aAAa,eACjC,EAAQ,SAAS,cAAc,SAQrC,EAAM,YALI,4DAMV,SAAS,KAAK,YAAY,GAmBvB,MAAM,EAAO,IAAI,KAAM,CAfhB,0HAIO,8FAEsD,2IAS/B,CAAE,KAAM,kBAEvC,EAAM,OAAO,IAAI,gBAAiB,GAExC,EAAK,MAAM,OAAS,OAAO,mB,KAKjC,yCAAe,iCCxCf,SAAS,oCAAe,GACpB,MAAM,EAAc,EAAK,aAAa,eAChC,EAAc,EAAK,aAAa,eAChC,EAAQ,SAAS,cAAc,SAOrC,EAAM,YALI,oEAMV,SAAS,KAAK,YAAY,GAe1B,MAAM,EAAO,IAAI,KAAM,CAZZ,yIAIS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,OAAS,GACnB,iCAAW,SAAS,IAChB,yCAAY,EAAK","file":"/npm/@jasperj1/pointer.js@1.0.2/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@jasperj1/pointer.js@1.0.2/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","function simple_cursor (node) {\n    // If some rubbish string is added in the cursor-color attribute, the default color will be black.\n    const color = node.getAttribute('color');\n    const style = document.createElement('style');\n\n    let css = `\n    .simple_cursor > * {\n        cursor: inherit;\n    }\n    `;\n    style.textContent = css;\n    document.head.appendChild(style);\n\n    // TODO - Use TypeScript type system for the color paramater.\n    function getSVG () {\n        return `\n            <svg xmlns=\"http://www.w3.org/2000/svg\"\n                height=\"16\"\n                width=\"16\"\n                fill=\"${color}\"\n            >\n                <circle cx=\"6\" cy=\"6\" r=\"5\" ></circle>\n            </svg>`;\n    }\n\n\n    const blob = new Blob( [ getSVG() ], { type: 'image/svg+xml' } );\n\n    const urli = window.URL.createObjectURL( blob );\n\n    // The center will be chosen as the center of actual svg element from the top-left corner\n    node.style.cursor = `url(${urli}) 8 8, pointer`;\n\n\n    //Browsers will release object URLs automatically when the document is unloaded; \n    //however, for optimal performance and memory usage, if there are safe times when you can explicitly \n    //unload them, you should do so.\n    node.addEventListener('mouseleave', () => {\n        URL.revokeObjectURL(urli);     \n    });   \n}\n\nexport default simple_cursor;\n","function rim_cursor (node) {\n   const inner_color = node.getAttribute('inner_color');\n   const outer_color =  node.getAttribute('outer_color');\n   const style = document.createElement('style');\n   \n\n   let css = `\n   .rim_cursor > * {\n      cursor: inherit;\n   }\n   `;\n   style.textContent = css;\n   document.head.appendChild(style);\n      \n   // TODO - Use TypeScript type system for the color paramater.\n   function getSVG () {\n      return `\n         <svg xmlns=\"http://www.w3.org/2000/svg\"\n            height=\"30\"\n            width=\"30\"\n            fill=\"${inner_color}\"\n            >\n            <circle class=\"outer-circle\" cx=\"15\" cy=\"15\" r=\"12\" stroke=\"${outer_color}\"\n               stroke-width=\"2\" fill=\"transparent\"></circle>\n            <circle cx=\"15\" cy=\"15\" r=\"3\" ></circle>\n         </svg>`;\n      }\n\n      //Browsers will release object URLs automatically when the document is unloaded; \n      //however, for optimal performance and memory usage, if there are safe times when you can explicitly \n      //unload them, you should do so.\n      const blob = new Blob( [ getSVG() ], { type: 'image/svg+xml' } );\n\n      const uri = window.URL.createObjectURL( blob );\n\n      node.style.cursor = `url(${uri}) 15 15, pointer`;\n\n      // TODO: Revoke Object URL\n}\n\nexport default rim_cursor;","function chrome_cursor (node) {\n    const outer_color = node.getAttribute('outer_color');\n    const inner_color = node.getAttribute('inner_color');\n    const style = document.createElement('style');\n\n    let css = `\n    .chrome_cursor > * {\n        cursor: inherit;\n    }\n    `;\n    style.textContent = css;\n    document.head.appendChild(style);\n\n    function getSVG () {\n        return `\n            <svg xmlns=\"http://www.w3.org/2000/svg\"\n                height=\"30\"\n                width=\"30\"\n                fill=\"${inner_color}\"\n                >\n                <circle class=\"outer-circle\" cx=\"15\" cy=\"15\" r=\"12\" stroke=\"${outer_color}\"\n                stroke-width=\"2\" fill-opacity=\"0.6\"></circle>\n            </svg>`;\n    }\n\n\n    const blob = new Blob( [ getSVG() ], { type: 'image/svg+xml' } );\n\n    const urli = window.URL.createObjectURL( blob );\n\n    // The center will be chosen as the center of actual svg element from the top-left corner\n    node.style.cursor = `url(${urli}) 15 15, pointer`;\n\n\n    //Browsers will release object URLs automatically when the document is unloaded; \n    //however, for optimal performance and memory usage, if there are safe times when you can explicitly \n    //unload them, you should do so.\n    node.addEventListener('mouseleave', () => {\n        URL.revokeObjectURL(urli);     \n    });\n}\n\nexport default chrome_cursor;","function pen_cursor (node) {\n    const color = node.getAttribute('color');\n    const style = document.createElement('style');\n\n    let css = `\n    .pen_cursor > * {\n        cursor: inherit;\n    }\n    `;\n    style.textContent = css;\n    document.head.appendChild(style);\n\n    function getSVG () {\n        return `<svg xmlns=\"http://www.w3.org/2000/svg\"\n           viewBox=\"0 0 512 512\"\n           height=\"16px\"\n           width=\"16px\"\n           fill=\"${color}\"\n          >\n          <path d=\"M290.74 93.24l128.02 128.02-277.99 277.99-114.14 \n          12.6C11.35 513.54-1.56 500.62.14 485.34l12.7-114.22 \n          277.9-277.88zm207.2-19.06l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91\n          0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.76 18.75-49.16 0-67.91z\"/>\n        </svg>`;\n    }\n\n    const blob = new Blob( [ getSVG(color) ], { type: 'image/svg+xml' } );\n\n    const urli = window.URL.createObjectURL( blob );\n\n    // The center will be chosen as the center of actual svg element from the top-left corner\n    node.style.cursor = `url(${urli}) 0 15, pointer`;\n\n\n    //Browsers will release object URLs automatically when the document is unloaded; \n    //however, for optimal performance and memory usage, if there are safe times when you can explicitly \n    //unload them, you should do so.\n    node.addEventListener('mouseleave', () => {\n        URL.revokeObjectURL(urli);     \n    });\n}\n\nexport default pen_cursor;","function snow_cursor (node) {\n    // If some rubbish string is added in the cursor-color attribute, the default color will be black.\n    const color = node.getAttribute('color');\n    const style = document.createElement('style');\n\n    let css = `\n    .snow_cursor > * {\n        cursor: inherit;\n    }\n    `;\n    style.textContent = css;\n    document.head.appendChild(style);\n\n\n    // TODO - Use TypeScript type system for the color paramater.\n    function getSVG () {\n        return `\n            <svg xmlns=\"http://www.w3.org/2000/svg\"\n                height=\"30\"\n                width=\"30\"\n                fill=\"${color}\"\n            >\n             <circle cx=\"15\" cy=\"15\" r=\"5\" stroke=\"${color}\"\n               stroke-width=\"20\" opacity=\"0.4\"></circle>\n             <circle cx=\"15\" cy=\"15\" r=\"5\" ></circle>\n            </svg>`;\n    }\n\n\n    const blob = new Blob( [ getSVG() ], { type: 'image/svg+xml' } );\n\n    const urli = window.URL.createObjectURL( blob );\n\n    // The center will be chosen as the center of actual svg element from the top-left corner\n    node.style.cursor = `url(${urli}) 15 15, pointer`;\n\n\n    //Browsers will release object URLs automatically when the document is unloaded; \n    //however, for optimal performance and memory usage, if there are safe times when you can explicitly \n    //unload them, you should do so.\n    node.addEventListener('mouseleave', () => {\n        URL.revokeObjectURL(urli);     \n    });\n    \n}\n\nexport default snow_cursor;\n","import simple_cursor from './cursor/simple-cursor';\nimport rim_cursor from './cursor/rim-cursor';\nimport chrome_cursor from './cursor/chrome-cursor';\nimport pen_cursor from './cursor/pen-cursor';\nimport snow_cursor from './cursor/snow-cursor';\n\n\nconst simpleCursor = document.querySelectorAll('.simple_cursor');\nconst rimCursor = document.querySelectorAll('.rim_cursor');\nconst chromeCursor = document.querySelectorAll('.chrome_cursor');\nconst penCursor = document.querySelectorAll('.pen_cursor');\nconst snowCursor = document.querySelectorAll('.snow_cursor');\n\nif(simpleCursor.length > 0) {\n    simpleCursor.forEach((item)=>{\n        simple_cursor(item);\n    });\n}\n\nif(rimCursor.length > 0) {\n    rimCursor.forEach((item)=>{\n        rim_cursor(item);\n    });\n}\n\nif(chromeCursor.length > 0) {\n    chromeCursor.forEach((item)=>{\n        chrome_cursor(item);\n    });\n}\n\nif(penCursor.length > 0) {\n    penCursor.forEach((item)=>{\n        pen_cursor(item);\n    });\n}\n\nif(snowCursor.length > 0) {\n    snowCursor.forEach((item)=>{\n        snow_cursor(item);\n    });\n}\n"]}