1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[26],{8645:(e,t,s)=>{s.r(t),s.d(t,{PreferencesWeb:()=>PreferencesWeb});var r=s(5629);class PreferencesWeb extends r.E_{constructor(){super(...arguments),this.group="CapacitorStorage"}async configure({group:e}){"string"==typeof e&&(this.group=e)}async get(e){return{value:this.impl.getItem(this.applyPrefix(e.key))}}async set(e){this.impl.setItem(this.applyPrefix(e.key),e.value)}async remove(e){this.impl.removeItem(this.applyPrefix(e.key))}async keys(){return{keys:this.rawKeys().map((e=>e.substring(this.prefix.length)))}}async clear(){for(const e of this.rawKeys())this.impl.removeItem(e)}async migrate(){var e;const t=[],s=[],r="_cap_",i=Object.keys(this.impl).filter((e=>0===e.indexOf(r)));for(const a of i){const r=a.substring(5),i=null!==(e=this.impl.getItem(a))&&void 0!==e?e:"",{value:n}=await this.get({key:r});"string"==typeof n?s.push(r):(await this.set({key:r,value:i}),t.push(r))}return{migrated:t,existing:s}}async removeOld(){const e=Object.keys(this.impl).filter((e=>0===e.indexOf("_cap_")));for(const t of e)this.impl.removeItem(t)}get impl(){return window.localStorage}get prefix(){return"NativeStorage"===this.group?"":`${this.group}.`}rawKeys(){return Object.keys(this.impl).filter((e=>0===e.indexOf(this.prefix)))}applyPrefix(e){return this.prefix+e}}}}]);
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.