{"version":3,"sources":["jsdelivr-header.js","/npm/@capacitor/geolocation@8.1.0/dist/esm/index.js","/npm/@capacitor/geolocation@8.1.0/dist/esm/web.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,uFCJK,MAAC,YAAc,oBAAe,cAAe,CAC9C,IAAK,IAAM,QAAA,UAAA,MAAA,kBAAA,GAAA,IAAgB,MAAM,GAAM,IAAI,EAAE,mBAEjD,wBCJO,MAAM,uBAAuB,eAChC,wBAAM,CAAmB,GACrB,OAAO,IAAI,SAAQ,CAAC,EAAS,KACzB,UAAU,YAAY,oBAAoB,IACtC,EAAQ,EAAI,IACZ,IACA,EAAO,EAAI,GACZ,OAAO,OAAO,CAAE,oBAAoB,EAAO,QAAS,IAAO,WAAY,GAAK,GAAS,GAEhG,CACA,mBAAM,CAAc,EAAS,GAMzB,MAAO,GALI,UAAU,YAAY,eAAe,IAC5C,EAAS,EAAI,IACb,IACA,EAAS,KAAM,EAAI,GACpB,OAAO,OAAO,CAAE,oBAAoB,EAAO,QAAS,IAAO,WAAY,EAAG,sBAAuB,KAAQ,KAEhH,CACA,gBAAM,CAAW,GACb,UAAU,YAAY,WAAW,SAAS,EAAQ,GAAI,IAC1D,CACA,sBAAM,GACF,GAAyB,oBAAd,YAA8B,UAAU,YAC/C,MAAM,KAAK,YAAY,iDAE3B,MAAM,QAAmB,UAAU,YAAY,MAAM,CACjD,KAAM,gBAEV,MAAO,CAAE,SAAU,EAAW,MAAO,eAAgB,EAAW,MACpE,CACA,wBAAM,GACF,MAAM,KAAK,cAAc,0BAC7B,EAEgB,IAAI,e","file":"/npm/@capacitor/geolocation@8.1.0/dist/plugin.cjs.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@capacitor/geolocation@8.1.0/dist/plugin.cjs.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","import { registerPlugin } from '@capacitor/core';\nimport { exposeSynapse } from '@capacitor/synapse';\nconst Geolocation = registerPlugin('Geolocation', {\n    web: () => import('./web').then((m) => new m.GeolocationWeb()),\n});\nexposeSynapse();\nexport * from './definitions';\nexport { Geolocation };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class GeolocationWeb extends WebPlugin {\n    async getCurrentPosition(options) {\n        return new Promise((resolve, reject) => {\n            navigator.geolocation.getCurrentPosition((pos) => {\n                resolve(pos);\n            }, (err) => {\n                reject(err);\n            }, Object.assign({ enableHighAccuracy: false, timeout: 10000, maximumAge: 0 }, options));\n        });\n    }\n    async watchPosition(options, callback) {\n        const id = navigator.geolocation.watchPosition((pos) => {\n            callback(pos);\n        }, (err) => {\n            callback(null, err);\n        }, Object.assign({ enableHighAccuracy: false, timeout: 10000, maximumAge: 0, minimumUpdateInterval: 5000 }, options));\n        return `${id}`;\n    }\n    async clearWatch(options) {\n        navigator.geolocation.clearWatch(parseInt(options.id, 10));\n    }\n    async checkPermissions() {\n        if (typeof navigator === 'undefined' || !navigator.permissions) {\n            throw this.unavailable('Permissions API not available in this browser');\n        }\n        const permission = await navigator.permissions.query({\n            name: 'geolocation',\n        });\n        return { location: permission.state, coarseLocation: permission.state };\n    }\n    async requestPermissions() {\n        throw this.unimplemented('Not implemented on web.');\n    }\n}\nconst Geolocation = new GeolocationWeb();\nexport { Geolocation };\n//# sourceMappingURL=web.js.map"]}