@gkd-kit/inspect 0.0.1728482042396 → 0.0.1729692768932

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/assets/{ActionCard.vue_vue_type_script_setup_true_lang-Cq8KGn5Z.js → ActionCard.vue_vue_type_script_setup_true_lang-DAWLUyKw.js} +2 -2
  2. package/dist/assets/{ActionCard.vue_vue_type_script_setup_true_lang-Cq8KGn5Z.js.map → ActionCard.vue_vue_type_script_setup_true_lang-DAWLUyKw.js.map} +1 -1
  3. package/dist/assets/{DevicePage-6VV4qweq.js → DevicePage-tRz2IA8K.js} +2 -2
  4. package/dist/assets/{DevicePage-6VV4qweq.js.map → DevicePage-tRz2IA8K.js.map} +1 -1
  5. package/dist/assets/{HomePage-CISsYbai.js → HomePage-DvhjaXqH.js} +2 -2
  6. package/dist/assets/{HomePage-CISsYbai.js.map → HomePage-DvhjaXqH.js.map} +1 -1
  7. package/dist/assets/{ImportPage-C0MjdXRR.js → ImportPage-Gwj1_Wz3.js} +2 -2
  8. package/dist/assets/{ImportPage-C0MjdXRR.js.map → ImportPage-Gwj1_Wz3.js.map} +1 -1
  9. package/dist/assets/{PreviewSharePage-Bt7cRsKN.js → PreviewSharePage-Hyw0Tb6U.js} +2 -2
  10. package/dist/assets/{PreviewSharePage-Bt7cRsKN.js.map → PreviewSharePage-Hyw0Tb6U.js.map} +1 -1
  11. package/dist/assets/{SelectorPage-CqKBKxFx.js → SelectorPage-D1_qZf8a.js} +2 -2
  12. package/dist/assets/SelectorPage-D1_qZf8a.js.map +1 -0
  13. package/dist/assets/{SnapshotPage-DmUnH0UH.js → SnapshotPage-CJ6fnVIZ.js} +28 -28
  14. package/dist/assets/SnapshotPage-CJ6fnVIZ.js.map +1 -0
  15. package/dist/assets/{TrackGraph-splH1Tu4.js → TrackGraph-D0s0XMN9.js} +2 -2
  16. package/dist/assets/{TrackGraph-splH1Tu4.js.map → TrackGraph-D0s0XMN9.js.map} +1 -1
  17. package/dist/assets/{_404Page-4LcsRMcS.js → _404Page-WDc2H4Hg.js} +2 -2
  18. package/dist/assets/{_404Page-4LcsRMcS.js.map → _404Page-WDc2H4Hg.js.map} +1 -1
  19. package/dist/assets/{dayjs.min-BGYZIb5x.js → dayjs.min-CkIlo5Nq.js} +10 -10
  20. package/dist/assets/{dayjs.min-BGYZIb5x.js.map → dayjs.min-CkIlo5Nq.js.map} +1 -1
  21. package/dist/assets/{error-DT8Xtqva.js → error-KopW7vt9.js} +2 -2
  22. package/dist/assets/{error-DT8Xtqva.js.map → error-KopW7vt9.js.map} +1 -1
  23. package/dist/assets/{export-DB8HS-FM.js → export-Buob1Zpw.js} +2 -2
  24. package/dist/assets/{export-DB8HS-FM.js.map → export-Buob1Zpw.js.map} +1 -1
  25. package/dist/assets/{fetch-KNoISS-x.js → fetch-2UM4nFb0.js} +2 -2
  26. package/dist/assets/{fetch-KNoISS-x.js.map → fetch-2UM4nFb0.js.map} +1 -1
  27. package/dist/assets/{import-CebuCb71.js → import-ChO_D4YK.js} +2 -2
  28. package/dist/assets/{import-CebuCb71.js.map → import-ChO_D4YK.js.map} +1 -1
  29. package/dist/assets/{index-COG9e1B7.js → index-B5vK2Zkg.js} +2 -2
  30. package/dist/assets/{index-COG9e1B7.js.map → index-B5vK2Zkg.js.map} +1 -1
  31. package/dist/assets/{index-CLeFhDja.js → index-BhADOIu0.js} +2 -2
  32. package/dist/assets/{index-CLeFhDja.js.map → index-BhADOIu0.js.map} +1 -1
  33. package/dist/assets/{index-KktKH_r0.js → index-CO1qYhnZ.js} +3 -3
  34. package/dist/assets/{index-KktKH_r0.js.map → index-CO1qYhnZ.js.map} +1 -1
  35. package/dist/assets/{table-DBSs4lCt.js → table-4d-AVR8Z.js} +2 -2
  36. package/dist/assets/{table-DBSs4lCt.js.map → table-4d-AVR8Z.js.map} +1 -1
  37. package/dist/index.html +3 -3
  38. package/package.json +1 -1
  39. package/dist/assets/SelectorPage-CqKBKxFx.js.map +0 -1
  40. package/dist/assets/SnapshotPage-DmUnH0UH.js.map +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1728482042396/files/dist/assets/HomePage-CISsYbai.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1728482042396/files/dist/assets/ActionCard.vue_vue_type_script_setup_true_lang-Cq8KGn5Z.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1728482042396/files/dist/assets/fetch-KNoISS-x.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1728482042396/files/dist/assets/index-COG9e1B7.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1728482042396/files/dist/assets/export-DB8HS-FM.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1728482042396/files/dist/assets/index-CE_5kTG8.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1728482042396/files/dist/assets/dayjs.min-BGYZIb5x.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1728482042396/files/dist/assets/import-CebuCb71.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1728482042396/files/dist/assets/table-DBSs4lCt.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1728482042396/files/dist/assets/SnapshotPage-DmUnH0UH.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1728482042396/files/dist/assets/index-CLeFhDja.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1728482042396/files/dist/assets/error-DT8Xtqva.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1728482042396/files/dist/assets/ImportPage-C0MjdXRR.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1728482042396/files/dist/assets/DevicePage-6VV4qweq.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1728482042396/files/dist/assets/PreviewSharePage-Bt7cRsKN.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1729692768932/files/dist/assets/HomePage-DvhjaXqH.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1729692768932/files/dist/assets/ActionCard.vue_vue_type_script_setup_true_lang-DAWLUyKw.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1729692768932/files/dist/assets/fetch-2UM4nFb0.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1729692768932/files/dist/assets/index-B5vK2Zkg.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1729692768932/files/dist/assets/export-Buob1Zpw.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1729692768932/files/dist/assets/index-CE_5kTG8.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1729692768932/files/dist/assets/dayjs.min-CkIlo5Nq.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1729692768932/files/dist/assets/import-ChO_D4YK.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1729692768932/files/dist/assets/table-4d-AVR8Z.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1729692768932/files/dist/assets/SnapshotPage-CJ6fnVIZ.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1729692768932/files/dist/assets/index-BhADOIu0.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1729692768932/files/dist/assets/error-KopW7vt9.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1729692768932/files/dist/assets/ImportPage-Gwj1_Wz3.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1729692768932/files/dist/assets/DevicePage-tRz2IA8K.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1729692768932/files/dist/assets/PreviewSharePage-Hyw0Tb6U.js"])))=>i.map(i=>d[i]);
2
2
  (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();/**
3
3
  * @vue/shared v3.5.11
4
4
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
@@ -561,7 +561,7 @@ ${t}
561
561
  Version 1.10.0
562
562
  https://localforage.github.io/localForage
563
563
  (c) 2013-2017 Mozilla, Apache License 2.0
564
- */(function(e,t){(function(n){e.exports=n()})(function(){return function n(r,o,i){function s(c,f){if(!o[c]){if(!r[c]){var u=typeof Vo=="function"&&Vo;if(!f&&u)return u(c,!0);if(a)return a(c,!0);var d=new Error("Cannot find module '"+c+"'");throw d.code="MODULE_NOT_FOUND",d}var p=o[c]={exports:{}};r[c][0].call(p.exports,function(v){var y=r[c][1][v];return s(y||v)},p,p.exports,n,r,o,i)}return o[c].exports}for(var a=typeof Vo=="function"&&Vo,l=0;l<i.length;l++)s(i[l]);return s}({1:[function(n,r,o){(function(i){var s=i.MutationObserver||i.WebKitMutationObserver,a;if(s){var l=0,c=new s(v),f=i.document.createTextNode("");c.observe(f,{characterData:!0}),a=function(){f.data=l=++l%2}}else if(!i.setImmediate&&typeof i.MessageChannel<"u"){var u=new i.MessageChannel;u.port1.onmessage=v,a=function(){u.port2.postMessage(0)}}else"document"in i&&"onreadystatechange"in i.document.createElement("script")?a=function(){var S=i.document.createElement("script");S.onreadystatechange=function(){v(),S.onreadystatechange=null,S.parentNode.removeChild(S),S=null},i.document.documentElement.appendChild(S)}:a=function(){setTimeout(v,0)};var d,p=[];function v(){d=!0;for(var S,w,E=p.length;E;){for(w=p,p=[],S=-1;++S<E;)w[S]();E=p.length}d=!1}r.exports=y;function y(S){p.push(S)===1&&!d&&a()}}).call(this,typeof Wo<"u"?Wo:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(n,r,o){var i=n(1);function s(){}var a={},l=["REJECTED"],c=["FULFILLED"],f=["PENDING"];r.exports=u;function u(T){if(typeof T!="function")throw new TypeError("resolver must be a function");this.state=f,this.queue=[],this.outcome=void 0,T!==s&&y(this,T)}u.prototype.catch=function(T){return this.then(null,T)},u.prototype.then=function(T,P){if(typeof T!="function"&&this.state===c||typeof P!="function"&&this.state===l)return this;var b=new this.constructor(s);if(this.state!==f){var O=this.state===c?T:P;p(b,O,this.outcome)}else this.queue.push(new d(b,T,P));return b};function d(T,P,b){this.promise=T,typeof P=="function"&&(this.onFulfilled=P,this.callFulfilled=this.otherCallFulfilled),typeof b=="function"&&(this.onRejected=b,this.callRejected=this.otherCallRejected)}d.prototype.callFulfilled=function(T){a.resolve(this.promise,T)},d.prototype.otherCallFulfilled=function(T){p(this.promise,this.onFulfilled,T)},d.prototype.callRejected=function(T){a.reject(this.promise,T)},d.prototype.otherCallRejected=function(T){p(this.promise,this.onRejected,T)};function p(T,P,b){i(function(){var O;try{O=P(b)}catch(A){return a.reject(T,A)}O===T?a.reject(T,new TypeError("Cannot resolve promise with itself")):a.resolve(T,O)})}a.resolve=function(T,P){var b=S(v,P);if(b.status==="error")return a.reject(T,b.value);var O=b.value;if(O)y(T,O);else{T.state=c,T.outcome=P;for(var A=-1,G=T.queue.length;++A<G;)T.queue[A].callFulfilled(P)}return T},a.reject=function(T,P){T.state=l,T.outcome=P;for(var b=-1,O=T.queue.length;++b<O;)T.queue[b].callRejected(P);return T};function v(T){var P=T&&T.then;if(T&&(typeof T=="object"||typeof T=="function")&&typeof P=="function")return function(){P.apply(T,arguments)}}function y(T,P){var b=!1;function O(D){b||(b=!0,a.reject(T,D))}function A(D){b||(b=!0,a.resolve(T,D))}function G(){P(A,O)}var Z=S(G);Z.status==="error"&&O(Z.value)}function S(T,P){var b={};try{b.value=T(P),b.status="success"}catch(O){b.status="error",b.value=O}return b}u.resolve=w;function w(T){return T instanceof this?T:a.resolve(new this(s),T)}u.reject=E;function E(T){var P=new this(s);return a.reject(P,T)}u.all=z;function z(T){var P=this;if(Object.prototype.toString.call(T)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=T.length,O=!1;if(!b)return this.resolve([]);for(var A=new Array(b),G=0,Z=-1,D=new this(s);++Z<b;)ie(T[Z],Z);return D;function ie(fe,Se){P.resolve(fe).then(de,function(te){O||(O=!0,a.reject(D,te))});function de(te){A[Se]=te,++G===b&&!O&&(O=!0,a.resolve(D,A))}}}u.race=k;function k(T){var P=this;if(Object.prototype.toString.call(T)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=T.length,O=!1;if(!b)return this.resolve([]);for(var A=-1,G=new this(s);++A<b;)Z(T[A]);return G;function Z(D){P.resolve(D).then(function(ie){O||(O=!0,a.resolve(G,ie))},function(ie){O||(O=!0,a.reject(G,ie))})}}},{1:1}],3:[function(n,r,o){(function(i){typeof i.Promise!="function"&&(i.Promise=n(2))}).call(this,typeof Wo<"u"?Wo:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(n,r,o){var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h};function s(h,C){if(!(h instanceof C))throw new TypeError("Cannot call a class as a function")}function a(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var l=a();function c(){try{if(!l||!l.open)return!1;var h=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),C=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!h||C)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function f(h,C){h=h||[],C=C||{};try{return new Blob(h,C)}catch(_){if(_.name!=="TypeError")throw _;for(var g=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,R=new g,$=0;$<h.length;$+=1)R.append(h[$]);return R.getBlob(C.type)}}typeof Promise>"u"&&n(3);var u=Promise;function d(h,C){C&&h.then(function(g){C(null,g)},function(g){C(g)})}function p(h,C,g){typeof C=="function"&&h.then(C),typeof g=="function"&&h.catch(g)}function v(h){return typeof h!="string"&&(console.warn(h+" used as a key, but it is not a string."),h=String(h)),h}function y(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var S="local-forage-detect-blob-support",w=void 0,E={},z=Object.prototype.toString,k="readonly",T="readwrite";function P(h){for(var C=h.length,g=new ArrayBuffer(C),R=new Uint8Array(g),$=0;$<C;$++)R[$]=h.charCodeAt($);return g}function b(h){return new u(function(C){var g=h.transaction(S,T),R=f([""]);g.objectStore(S).put(R,"key"),g.onabort=function($){$.preventDefault(),$.stopPropagation(),C(!1)},g.oncomplete=function(){var $=navigator.userAgent.match(/Chrome\/(\d+)/),_=navigator.userAgent.match(/Edge\//);C(_||!$||parseInt($[1],10)>=43)}}).catch(function(){return!1})}function O(h){return typeof w=="boolean"?u.resolve(w):b(h).then(function(C){return w=C,w})}function A(h){var C=E[h.name],g={};g.promise=new u(function(R,$){g.resolve=R,g.reject=$}),C.deferredOperations.push(g),C.dbReady?C.dbReady=C.dbReady.then(function(){return g.promise}):C.dbReady=g.promise}function G(h){var C=E[h.name],g=C.deferredOperations.pop();if(g)return g.resolve(),g.promise}function Z(h,C){var g=E[h.name],R=g.deferredOperations.pop();if(R)return R.reject(C),R.promise}function D(h,C){return new u(function(g,R){if(E[h.name]=E[h.name]||ze(),h.db)if(C)A(h),h.db.close();else return g(h.db);var $=[h.name];C&&$.push(h.version);var _=l.open.apply(l,$);C&&(_.onupgradeneeded=function(L){var q=_.result;try{q.createObjectStore(h.storeName),L.oldVersion<=1&&q.createObjectStore(S)}catch(Y){if(Y.name==="ConstraintError")console.warn('The database "'+h.name+'" has been upgraded from version '+L.oldVersion+" to version "+L.newVersion+', but the storage "'+h.storeName+'" already exists.');else throw Y}}),_.onerror=function(L){L.preventDefault(),R(_.error)},_.onsuccess=function(){var L=_.result;L.onversionchange=function(q){q.target.close()},g(L),G(h)}})}function ie(h){return D(h,!1)}function fe(h){return D(h,!0)}function Se(h,C){if(!h.db)return!0;var g=!h.db.objectStoreNames.contains(h.storeName),R=h.version<h.db.version,$=h.version>h.db.version;if(R&&(h.version!==C&&console.warn('The database "'+h.name+`" can't be downgraded from version `+h.db.version+" to version "+h.version+"."),h.version=h.db.version),$||g){if(g){var _=h.db.version+1;_>h.version&&(h.version=_)}return!0}return!1}function de(h){return new u(function(C,g){var R=new FileReader;R.onerror=g,R.onloadend=function($){var _=btoa($.target.result||"");C({__local_forage_encoded_blob:!0,data:_,type:h.type})},R.readAsBinaryString(h)})}function te(h){var C=P(atob(h.data));return f([C],{type:h.type})}function he(h){return h&&h.__local_forage_encoded_blob}function Me(h){var C=this,g=C._initReady().then(function(){var R=E[C._dbInfo.name];if(R&&R.dbReady)return R.dbReady});return p(g,h,h),g}function ke(h){A(h);for(var C=E[h.name],g=C.forages,R=0;R<g.length;R++){var $=g[R];$._dbInfo.db&&($._dbInfo.db.close(),$._dbInfo.db=null)}return h.db=null,ie(h).then(function(_){return h.db=_,Se(h)?fe(h):_}).then(function(_){h.db=C.db=_;for(var L=0;L<g.length;L++)g[L]._dbInfo.db=_}).catch(function(_){throw Z(h,_),_})}function $e(h,C,g,R){R===void 0&&(R=1);try{var $=h.db.transaction(h.storeName,C);g(null,$)}catch(_){if(R>0&&(!h.db||_.name==="InvalidStateError"||_.name==="NotFoundError"))return u.resolve().then(function(){if(!h.db||_.name==="NotFoundError"&&!h.db.objectStoreNames.contains(h.storeName)&&h.version<=h.db.version)return h.db&&(h.version=h.db.version+1),fe(h)}).then(function(){return ke(h).then(function(){$e(h,C,g,R-1)})}).catch(g);g(_)}}function ze(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function ot(h){var C=this,g={db:null};if(h)for(var R in h)g[R]=h[R];var $=E[g.name];$||($=ze(),E[g.name]=$),$.forages.push(C),C._initReady||(C._initReady=C.ready,C.ready=Me);var _=[];function L(){return u.resolve()}for(var q=0;q<$.forages.length;q++){var Y=$.forages[q];Y!==C&&_.push(Y._initReady().catch(L))}var X=$.forages.slice(0);return u.all(_).then(function(){return g.db=$.db,ie(g)}).then(function(Q){return g.db=Q,Se(g,C._defaultConfig.version)?fe(g):Q}).then(function(Q){g.db=$.db=Q,C._dbInfo=g;for(var ue=0;ue<X.length;ue++){var Pe=X[ue];Pe!==C&&(Pe._dbInfo.db=g.db,Pe._dbInfo.version=g.version)}})}function it(h,C){var g=this;h=v(h);var R=new u(function($,_){g.ready().then(function(){$e(g._dbInfo,k,function(L,q){if(L)return _(L);try{var Y=q.objectStore(g._dbInfo.storeName),X=Y.get(h);X.onsuccess=function(){var Q=X.result;Q===void 0&&(Q=null),he(Q)&&(Q=te(Q)),$(Q)},X.onerror=function(){_(X.error)}}catch(Q){_(Q)}})}).catch(_)});return d(R,C),R}function At(h,C){var g=this,R=new u(function($,_){g.ready().then(function(){$e(g._dbInfo,k,function(L,q){if(L)return _(L);try{var Y=q.objectStore(g._dbInfo.storeName),X=Y.openCursor(),Q=1;X.onsuccess=function(){var ue=X.result;if(ue){var Pe=ue.value;he(Pe)&&(Pe=te(Pe));var De=h(Pe,ue.key,Q++);De!==void 0?$(De):ue.continue()}else $()},X.onerror=function(){_(X.error)}}catch(ue){_(ue)}})}).catch(_)});return d(R,C),R}function xe(h,C,g){var R=this;h=v(h);var $=new u(function(_,L){var q;R.ready().then(function(){return q=R._dbInfo,z.call(C)==="[object Blob]"?O(q.db).then(function(Y){return Y?C:de(C)}):C}).then(function(Y){$e(R._dbInfo,T,function(X,Q){if(X)return L(X);try{var ue=Q.objectStore(R._dbInfo.storeName);Y===null&&(Y=void 0);var Pe=ue.put(Y,h);Q.oncomplete=function(){Y===void 0&&(Y=null),_(Y)},Q.onabort=Q.onerror=function(){var De=Pe.error?Pe.error:Pe.transaction.error;L(De)}}catch(De){L(De)}})}).catch(L)});return d($,g),$}function B(h,C){var g=this;h=v(h);var R=new u(function($,_){g.ready().then(function(){$e(g._dbInfo,T,function(L,q){if(L)return _(L);try{var Y=q.objectStore(g._dbInfo.storeName),X=Y.delete(h);q.oncomplete=function(){$()},q.onerror=function(){_(X.error)},q.onabort=function(){var Q=X.error?X.error:X.transaction.error;_(Q)}}catch(Q){_(Q)}})}).catch(_)});return d(R,C),R}function ne(h){var C=this,g=new u(function(R,$){C.ready().then(function(){$e(C._dbInfo,T,function(_,L){if(_)return $(_);try{var q=L.objectStore(C._dbInfo.storeName),Y=q.clear();L.oncomplete=function(){R()},L.onabort=L.onerror=function(){var X=Y.error?Y.error:Y.transaction.error;$(X)}}catch(X){$(X)}})}).catch($)});return d(g,h),g}function H(h){var C=this,g=new u(function(R,$){C.ready().then(function(){$e(C._dbInfo,k,function(_,L){if(_)return $(_);try{var q=L.objectStore(C._dbInfo.storeName),Y=q.count();Y.onsuccess=function(){R(Y.result)},Y.onerror=function(){$(Y.error)}}catch(X){$(X)}})}).catch($)});return d(g,h),g}function se(h,C){var g=this,R=new u(function($,_){if(h<0){$(null);return}g.ready().then(function(){$e(g._dbInfo,k,function(L,q){if(L)return _(L);try{var Y=q.objectStore(g._dbInfo.storeName),X=!1,Q=Y.openKeyCursor();Q.onsuccess=function(){var ue=Q.result;if(!ue){$(null);return}h===0||X?$(ue.key):(X=!0,ue.advance(h))},Q.onerror=function(){_(Q.error)}}catch(ue){_(ue)}})}).catch(_)});return d(R,C),R}function Re(h){var C=this,g=new u(function(R,$){C.ready().then(function(){$e(C._dbInfo,k,function(_,L){if(_)return $(_);try{var q=L.objectStore(C._dbInfo.storeName),Y=q.openKeyCursor(),X=[];Y.onsuccess=function(){var Q=Y.result;if(!Q){R(X);return}X.push(Q.key),Q.continue()},Y.onerror=function(){$(Y.error)}}catch(Q){$(Q)}})}).catch($)});return d(g,h),g}function Fe(h,C){C=y.apply(this,arguments);var g=this.config();h=typeof h!="function"&&h||{},h.name||(h.name=h.name||g.name,h.storeName=h.storeName||g.storeName);var R=this,$;if(!h.name)$=u.reject("Invalid arguments");else{var _=h.name===g.name&&R._dbInfo.db,L=_?u.resolve(R._dbInfo.db):ie(h).then(function(q){var Y=E[h.name],X=Y.forages;Y.db=q;for(var Q=0;Q<X.length;Q++)X[Q]._dbInfo.db=q;return q});h.storeName?$=L.then(function(q){if(q.objectStoreNames.contains(h.storeName)){var Y=q.version+1;A(h);var X=E[h.name],Q=X.forages;q.close();for(var ue=0;ue<Q.length;ue++){var Pe=Q[ue];Pe._dbInfo.db=null,Pe._dbInfo.version=Y}var De=new u(function(He,tt){var et=l.open(h.name,Y);et.onerror=function(zt){var Rr=et.result;Rr.close(),tt(zt)},et.onupgradeneeded=function(){var zt=et.result;zt.deleteObjectStore(h.storeName)},et.onsuccess=function(){var zt=et.result;zt.close(),He(zt)}});return De.then(function(He){X.db=He;for(var tt=0;tt<Q.length;tt++){var et=Q[tt];et._dbInfo.db=He,G(et._dbInfo)}}).catch(function(He){throw(Z(h,He)||u.resolve()).catch(function(){}),He})}}):$=L.then(function(q){A(h);var Y=E[h.name],X=Y.forages;q.close();for(var Q=0;Q<X.length;Q++){var ue=X[Q];ue._dbInfo.db=null}var Pe=new u(function(De,He){var tt=l.deleteDatabase(h.name);tt.onerror=function(){var et=tt.result;et&&et.close(),He(tt.error)},tt.onblocked=function(){console.warn('dropInstance blocked for database "'+h.name+'" until all open connections are closed')},tt.onsuccess=function(){var et=tt.result;et&&et.close(),De(et)}});return Pe.then(function(De){Y.db=De;for(var He=0;He<X.length;He++){var tt=X[He];G(tt._dbInfo)}}).catch(function(De){throw(Z(h,De)||u.resolve()).catch(function(){}),De})})}return d($,C),$}var m={_driver:"asyncStorage",_initStorage:ot,_support:c(),iterate:At,getItem:it,setItem:xe,removeItem:B,clear:ne,length:H,key:se,keys:Re,dropInstance:Fe};function x(){return typeof openDatabase=="function"}var I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",N="~~local_forage_type~",M=/^~~local_forage_type~([^~]+)~/,W="__lfsc__:",ee=W.length,j="arbf",V="blob",U="si08",pe="ui08",re="uic8",ae="si16",ve="si32",Te="ur16",Ae="ui32",Oe="fl32",at="fl64",Ze=ee+j.length,lt=Object.prototype.toString;function st(h){var C=h.length*.75,g=h.length,R,$=0,_,L,q,Y;h[h.length-1]==="="&&(C--,h[h.length-2]==="="&&C--);var X=new ArrayBuffer(C),Q=new Uint8Array(X);for(R=0;R<g;R+=4)_=I.indexOf(h[R]),L=I.indexOf(h[R+1]),q=I.indexOf(h[R+2]),Y=I.indexOf(h[R+3]),Q[$++]=_<<2|L>>4,Q[$++]=(L&15)<<4|q>>2,Q[$++]=(q&3)<<6|Y&63;return X}function pt(h){var C=new Uint8Array(h),g="",R;for(R=0;R<C.length;R+=3)g+=I[C[R]>>2],g+=I[(C[R]&3)<<4|C[R+1]>>4],g+=I[(C[R+1]&15)<<2|C[R+2]>>6],g+=I[C[R+2]&63];return C.length%3===2?g=g.substring(0,g.length-1)+"=":C.length%3===1&&(g=g.substring(0,g.length-2)+"=="),g}function _r(h,C){var g="";if(h&&(g=lt.call(h)),h&&(g==="[object ArrayBuffer]"||h.buffer&&lt.call(h.buffer)==="[object ArrayBuffer]")){var R,$=W;h instanceof ArrayBuffer?(R=h,$+=j):(R=h.buffer,g==="[object Int8Array]"?$+=U:g==="[object Uint8Array]"?$+=pe:g==="[object Uint8ClampedArray]"?$+=re:g==="[object Int16Array]"?$+=ae:g==="[object Uint16Array]"?$+=Te:g==="[object Int32Array]"?$+=ve:g==="[object Uint32Array]"?$+=Ae:g==="[object Float32Array]"?$+=Oe:g==="[object Float64Array]"?$+=at:C(new Error("Failed to get type for BinaryArray"))),C($+pt(R))}else if(g==="[object Blob]"){var _=new FileReader;_.onload=function(){var L=N+h.type+"~"+pt(this.result);C(W+V+L)},_.readAsArrayBuffer(h)}else try{C(JSON.stringify(h))}catch(L){console.error("Couldn't convert value into a JSON string: ",h),C(null,L)}}function K(h){if(h.substring(0,ee)!==W)return JSON.parse(h);var C=h.substring(Ze),g=h.substring(ee,Ze),R;if(g===V&&M.test(C)){var $=C.match(M);R=$[1],C=C.substring($[0].length)}var _=st(C);switch(g){case j:return _;case V:return f([_],{type:R});case U:return new Int8Array(_);case pe:return new Uint8Array(_);case re:return new Uint8ClampedArray(_);case ae:return new Int16Array(_);case Te:return new Uint16Array(_);case ve:return new Int32Array(_);case Ae:return new Uint32Array(_);case Oe:return new Float32Array(_);case at:return new Float64Array(_);default:throw new Error("Unkown type: "+g)}}var oe={serialize:_r,deserialize:K,stringToBuffer:st,bufferToString:pt};function me(h,C,g,R){h.executeSql("CREATE TABLE IF NOT EXISTS "+C.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],g,R)}function We(h){var C=this,g={db:null};if(h)for(var R in h)g[R]=typeof h[R]!="string"?h[R].toString():h[R];var $=new u(function(_,L){try{g.db=openDatabase(g.name,String(g.version),g.description,g.size)}catch(q){return L(q)}g.db.transaction(function(q){me(q,g,function(){C._dbInfo=g,_()},function(Y,X){L(X)})},L)});return g.serializer=oe,$}function je(h,C,g,R,$,_){h.executeSql(g,R,$,function(L,q){q.code===q.SYNTAX_ERR?L.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[C.storeName],function(Y,X){X.rows.length?_(Y,q):me(Y,C,function(){Y.executeSql(g,R,$,_)},_)},_):_(L,q)},_)}function gt(h,C){var g=this;h=v(h);var R=new u(function($,_){g.ready().then(function(){var L=g._dbInfo;L.db.transaction(function(q){je(q,L,"SELECT * FROM "+L.storeName+" WHERE key = ? LIMIT 1",[h],function(Y,X){var Q=X.rows.length?X.rows.item(0).value:null;Q&&(Q=L.serializer.deserialize(Q)),$(Q)},function(Y,X){_(X)})})}).catch(_)});return d(R,C),R}function $t(h,C){var g=this,R=new u(function($,_){g.ready().then(function(){var L=g._dbInfo;L.db.transaction(function(q){je(q,L,"SELECT * FROM "+L.storeName,[],function(Y,X){for(var Q=X.rows,ue=Q.length,Pe=0;Pe<ue;Pe++){var De=Q.item(Pe),He=De.value;if(He&&(He=L.serializer.deserialize(He)),He=h(He,De.key,Pe+1),He!==void 0){$(He);return}}$()},function(Y,X){_(X)})})}).catch(_)});return d(R,C),R}function Ve(h,C,g,R){var $=this;h=v(h);var _=new u(function(L,q){$.ready().then(function(){C===void 0&&(C=null);var Y=C,X=$._dbInfo;X.serializer.serialize(C,function(Q,ue){ue?q(ue):X.db.transaction(function(Pe){je(Pe,X,"INSERT OR REPLACE INTO "+X.storeName+" (key, value) VALUES (?, ?)",[h,Q],function(){L(Y)},function(De,He){q(He)})},function(Pe){if(Pe.code===Pe.QUOTA_ERR){if(R>0){L(Ve.apply($,[h,Y,g,R-1]));return}q(Pe)}})})}).catch(q)});return d(_,g),_}function Et(h,C,g){return Ve.apply(this,[h,C,g,1])}function Gt(h,C){var g=this;h=v(h);var R=new u(function($,_){g.ready().then(function(){var L=g._dbInfo;L.db.transaction(function(q){je(q,L,"DELETE FROM "+L.storeName+" WHERE key = ?",[h],function(){$()},function(Y,X){_(X)})})}).catch(_)});return d(R,C),R}function zi(h){var C=this,g=new u(function(R,$){C.ready().then(function(){var _=C._dbInfo;_.db.transaction(function(L){je(L,_,"DELETE FROM "+_.storeName,[],function(){R()},function(q,Y){$(Y)})})}).catch($)});return d(g,h),g}function Wd(h){var C=this,g=new u(function(R,$){C.ready().then(function(){var _=C._dbInfo;_.db.transaction(function(L){je(L,_,"SELECT COUNT(key) as c FROM "+_.storeName,[],function(q,Y){var X=Y.rows.item(0).c;R(X)},function(q,Y){$(Y)})})}).catch($)});return d(g,h),g}function Vd(h,C){var g=this,R=new u(function($,_){g.ready().then(function(){var L=g._dbInfo;L.db.transaction(function(q){je(q,L,"SELECT key FROM "+L.storeName+" WHERE id = ? LIMIT 1",[h+1],function(Y,X){var Q=X.rows.length?X.rows.item(0).key:null;$(Q)},function(Y,X){_(X)})})}).catch(_)});return d(R,C),R}function Ud(h){var C=this,g=new u(function(R,$){C.ready().then(function(){var _=C._dbInfo;_.db.transaction(function(L){je(L,_,"SELECT key FROM "+_.storeName,[],function(q,Y){for(var X=[],Q=0;Q<Y.rows.length;Q++)X.push(Y.rows.item(Q).key);R(X)},function(q,Y){$(Y)})})}).catch($)});return d(g,h),g}function Kd(h){return new u(function(C,g){h.transaction(function(R){R.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function($,_){for(var L=[],q=0;q<_.rows.length;q++)L.push(_.rows.item(q).name);C({db:h,storeNames:L})},function($,_){g(_)})},function(R){g(R)})})}function Gd(h,C){C=y.apply(this,arguments);var g=this.config();h=typeof h!="function"&&h||{},h.name||(h.name=h.name||g.name,h.storeName=h.storeName||g.storeName);var R=this,$;return h.name?$=new u(function(_){var L;h.name===g.name?L=R._dbInfo.db:L=openDatabase(h.name,"","",0),h.storeName?_({db:L,storeNames:[h.storeName]}):_(Kd(L))}).then(function(_){return new u(function(L,q){_.db.transaction(function(Y){function X(De){return new u(function(He,tt){Y.executeSql("DROP TABLE IF EXISTS "+De,[],function(){He()},function(et,zt){tt(zt)})})}for(var Q=[],ue=0,Pe=_.storeNames.length;ue<Pe;ue++)Q.push(X(_.storeNames[ue]));u.all(Q).then(function(){L()}).catch(function(De){q(De)})},function(Y){q(Y)})})}):$=u.reject("Invalid arguments"),d($,C),$}var qd={_driver:"webSQLStorage",_initStorage:We,_support:x(),iterate:$t,getItem:gt,setItem:Et,removeItem:Gt,clear:zi,length:Wd,key:Vd,keys:Ud,dropInstance:Gd};function Yd(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function Oa(h,C){var g=h.name+"/";return h.storeName!==C.storeName&&(g+=h.storeName+"/"),g}function Xd(){var h="_localforage_support_test";try{return localStorage.setItem(h,!0),localStorage.removeItem(h),!1}catch{return!0}}function Zd(){return!Xd()||localStorage.length>0}function Qd(h){var C=this,g={};if(h)for(var R in h)g[R]=h[R];return g.keyPrefix=Oa(h,C._defaultConfig),Zd()?(C._dbInfo=g,g.serializer=oe,u.resolve()):u.reject()}function Jd(h){var C=this,g=C.ready().then(function(){for(var R=C._dbInfo.keyPrefix,$=localStorage.length-1;$>=0;$--){var _=localStorage.key($);_.indexOf(R)===0&&localStorage.removeItem(_)}});return d(g,h),g}function eh(h,C){var g=this;h=v(h);var R=g.ready().then(function(){var $=g._dbInfo,_=localStorage.getItem($.keyPrefix+h);return _&&(_=$.serializer.deserialize(_)),_});return d(R,C),R}function th(h,C){var g=this,R=g.ready().then(function(){for(var $=g._dbInfo,_=$.keyPrefix,L=_.length,q=localStorage.length,Y=1,X=0;X<q;X++){var Q=localStorage.key(X);if(Q.indexOf(_)===0){var ue=localStorage.getItem(Q);if(ue&&(ue=$.serializer.deserialize(ue)),ue=h(ue,Q.substring(L),Y++),ue!==void 0)return ue}}});return d(R,C),R}function nh(h,C){var g=this,R=g.ready().then(function(){var $=g._dbInfo,_;try{_=localStorage.key(h)}catch{_=null}return _&&(_=_.substring($.keyPrefix.length)),_});return d(R,C),R}function rh(h){var C=this,g=C.ready().then(function(){for(var R=C._dbInfo,$=localStorage.length,_=[],L=0;L<$;L++){var q=localStorage.key(L);q.indexOf(R.keyPrefix)===0&&_.push(q.substring(R.keyPrefix.length))}return _});return d(g,h),g}function oh(h){var C=this,g=C.keys().then(function(R){return R.length});return d(g,h),g}function ih(h,C){var g=this;h=v(h);var R=g.ready().then(function(){var $=g._dbInfo;localStorage.removeItem($.keyPrefix+h)});return d(R,C),R}function sh(h,C,g){var R=this;h=v(h);var $=R.ready().then(function(){C===void 0&&(C=null);var _=C;return new u(function(L,q){var Y=R._dbInfo;Y.serializer.serialize(C,function(X,Q){if(Q)q(Q);else try{localStorage.setItem(Y.keyPrefix+h,X),L(_)}catch(ue){(ue.name==="QuotaExceededError"||ue.name==="NS_ERROR_DOM_QUOTA_REACHED")&&q(ue),q(ue)}})})});return d($,g),$}function ah(h,C){if(C=y.apply(this,arguments),h=typeof h!="function"&&h||{},!h.name){var g=this.config();h.name=h.name||g.name,h.storeName=h.storeName||g.storeName}var R=this,$;return h.name?$=new u(function(_){h.storeName?_(Oa(h,R._defaultConfig)):_(h.name+"/")}).then(function(_){for(var L=localStorage.length-1;L>=0;L--){var q=localStorage.key(L);q.indexOf(_)===0&&localStorage.removeItem(q)}}):$=u.reject("Invalid arguments"),d($,C),$}var lh={_driver:"localStorageWrapper",_initStorage:Qd,_support:Yd(),iterate:th,getItem:eh,setItem:sh,removeItem:ih,clear:Jd,length:oh,key:nh,keys:rh,dropInstance:ah},ch=function(C,g){return C===g||typeof C=="number"&&typeof g=="number"&&isNaN(C)&&isNaN(g)},uh=function(C,g){for(var R=C.length,$=0;$<R;){if(ch(C[$],g))return!0;$++}return!1},Ia=Array.isArray||function(h){return Object.prototype.toString.call(h)==="[object Array]"},Er={},ka={},Kn={INDEXEDDB:m,WEBSQL:qd,LOCALSTORAGE:lh},fh=[Kn.INDEXEDDB._driver,Kn.WEBSQL._driver,Kn.LOCALSTORAGE._driver],Eo=["dropInstance"],Bi=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Eo),dh={description:"",driver:fh.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function hh(h,C){h[C]=function(){var g=arguments;return h.ready().then(function(){return h[C].apply(h,g)})}}function Mi(){for(var h=1;h<arguments.length;h++){var C=arguments[h];if(C)for(var g in C)C.hasOwnProperty(g)&&(Ia(C[g])?arguments[0][g]=C[g].slice():arguments[0][g]=C[g])}return arguments[0]}var ph=function(){function h(C){s(this,h);for(var g in Kn)if(Kn.hasOwnProperty(g)){var R=Kn[g],$=R._driver;this[g]=$,Er[$]||this.defineDriver(R)}this._defaultConfig=Mi({},dh),this._config=Mi({},this._defaultConfig,C),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return h.prototype.config=function(g){if((typeof g>"u"?"undefined":i(g))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var R in g){if(R==="storeName"&&(g[R]=g[R].replace(/\W/g,"_")),R==="version"&&typeof g[R]!="number")return new Error("Database version must be a number.");this._config[R]=g[R]}return"driver"in g&&g.driver?this.setDriver(this._config.driver):!0}else return typeof g=="string"?this._config[g]:this._config},h.prototype.defineDriver=function(g,R,$){var _=new u(function(L,q){try{var Y=g._driver,X=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!g._driver){q(X);return}for(var Q=Bi.concat("_initStorage"),ue=0,Pe=Q.length;ue<Pe;ue++){var De=Q[ue],He=!uh(Eo,De);if((He||g[De])&&typeof g[De]!="function"){q(X);return}}var tt=function(){for(var Rr=function(mh){return function(){var bh=new Error("Method "+mh+" is not implemented by the current driver"),Aa=u.reject(bh);return d(Aa,arguments[arguments.length-1]),Aa}},Di=0,vh=Eo.length;Di<vh;Di++){var Li=Eo[Di];g[Li]||(g[Li]=Rr(Li))}};tt();var et=function(Rr){Er[Y]&&console.info("Redefining LocalForage driver: "+Y),Er[Y]=g,ka[Y]=Rr,L()};"_support"in g?g._support&&typeof g._support=="function"?g._support().then(et,q):et(!!g._support):et(!0)}catch(zt){q(zt)}});return p(_,R,$),_},h.prototype.driver=function(){return this._driver||null},h.prototype.getDriver=function(g,R,$){var _=Er[g]?u.resolve(Er[g]):u.reject(new Error("Driver not found."));return p(_,R,$),_},h.prototype.getSerializer=function(g){var R=u.resolve(oe);return p(R,g),R},h.prototype.ready=function(g){var R=this,$=R._driverSet.then(function(){return R._ready===null&&(R._ready=R._initDriver()),R._ready});return p($,g,g),$},h.prototype.setDriver=function(g,R,$){var _=this;Ia(g)||(g=[g]);var L=this._getSupportedDrivers(g);function q(){_._config.driver=_.driver()}function Y(ue){return _._extend(ue),q(),_._ready=_._initStorage(_._config),_._ready}function X(ue){return function(){var Pe=0;function De(){for(;Pe<ue.length;){var He=ue[Pe];return Pe++,_._dbInfo=null,_._ready=null,_.getDriver(He).then(Y).catch(De)}q();var tt=new Error("No available storage method found.");return _._driverSet=u.reject(tt),_._driverSet}return De()}}var Q=this._driverSet!==null?this._driverSet.catch(function(){return u.resolve()}):u.resolve();return this._driverSet=Q.then(function(){var ue=L[0];return _._dbInfo=null,_._ready=null,_.getDriver(ue).then(function(Pe){_._driver=Pe._driver,q(),_._wrapLibraryMethodsWithReady(),_._initDriver=X(L)})}).catch(function(){q();var ue=new Error("No available storage method found.");return _._driverSet=u.reject(ue),_._driverSet}),p(this._driverSet,R,$),this._driverSet},h.prototype.supports=function(g){return!!ka[g]},h.prototype._extend=function(g){Mi(this,g)},h.prototype._getSupportedDrivers=function(g){for(var R=[],$=0,_=g.length;$<_;$++){var L=g[$];this.supports(L)&&R.push(L)}return R},h.prototype._wrapLibraryMethodsWithReady=function(){for(var g=0,R=Bi.length;g<R;g++)hh(this,Bi[g])},h.prototype.createInstance=function(g){return new h(g)},h}(),gh=new ph;r.exports=gh},{3:3}]},{},[4])(4)})})(Md);var Aw=Md.exports;const fi=kw(Aw),zw=new Set([location.origin,"https://cdn.jsdelivr.net","https://fastly.jsdelivr.net","https://raw.githubusercontent.com","https://gist.githubusercontent.com","https://raw.gitmirror.com","https://registry.npmmirror.com","https://detect.gkd.li"]),xC=e=>(e=new URL(e),e.hostname=="127.0.0.1"||e.hostname=="localhost"||location.protocol=="http:"&&e.protocol=="http:"&&e.hostname.split(".").every(t=>Number.isSafeInteger(parseInt(t)))?!0:zw.has(e.origin)),Bw=[/^https:\/\/f\.gkd\.li\/(\d+)$/,/^https:\/\/github\.com\/gkd-kit\/inspect\/files\/(\d+)\/file\.zip$/,/^https:\/\/github\.com\/user-attachments\/files\/(\d+)\/file\.zip$/,/^https:\/\/i\.gkd\.li\/i\/(\d+)$/,/^https:\/\/i\.gkd\.li\/import\/(\d+)$/],Dd=e=>{var t;if(typeof e=="string"){if(e.startsWith(location.origin)){const n=+new URL(e).pathname.substring(1);if(Number.isSafeInteger(n)&&n>0)return n}for(const n of Bw){const r=(t=e.match(n))==null?void 0:t[1];if(r)return+r}}},wC=e=>location.origin+`/i/${e}`,Mw=e=>`https://github.com/user-attachments/files/${e}/file.zip`,Dw=/^https:\/\/github\.com\/gkd-kit\/inspect\/assets\/([0-9]+)\/([0-9a-z-]+)$/,Nc="https://github.com/user-attachments/assets/",CC=e=>{if(e.startsWith(Nc))return"https://e.gkd.li/"+e.substring(Nc.length);const{1:t,2:n}=e.match(Dw)||[];return t&&n?`https://m.gkd.li/${t}/${n}`:(console.error(`github url ${e} should come from gkd-kit/inspect files/assets`),e)},SC=e=>{try{return new URL(e)}catch{}},Ai=(e={})=>{var l;(l=e.driver)!=null||(e.driver=fi.INDEXEDDB);const t=fi.createInstance(e);return{keys:async()=>t.keys(),hasItem:async c=>{const f=c.toString();return t.keys().then(u=>u.includes(f))},getItem:async c=>t.getItem(c.toString()),setItem:async(c,f)=>t.setItem(c.toString(),f),removeItem:async c=>t.removeItem(c.toString()),getAllItems:async()=>Promise.all((await t.keys()).map(c=>t.getItem(c)))}},$a=[],So=(e,t,n)=>{const r=fo(t);let o=!1;Ft(r,async()=>{o&&await fi.setItem(e,Ie(r))});const i=fi.getItem(e).then(s=>{s&&(n&&(s=n(s)),Object.assign(r,s)),o=!0});return $a.push(i),r},_o=Ai({name:"snapshot",version:1}),Lw=_o.setItem;_o.setItem=async(e,t)=>{const n={...t,nodes:[]};return await Ld.setItem(e,n),Lw(e,t)};const Fw=_o.removeItem;_o.removeItem=async e=>{await Promise.all([Fw(e),Ld.removeItem(e),Fd.removeItem(e),Fs[e]&&delete Fs[e]])};const Ld=Ai({name:"shallowSnapshot",version:1}),Fd=Ai({name:"screenshot",version:1}),_C=async(e,t)=>{Object.entries(di).forEach(([n,r])=>{r==e.id&&delete di[n]}),jc[e.id]&&delete jc[e.id],hi[e.id]&&delete hi[e.id],Fs[e.id]=Date.now(),await Promise.all([_o.setItem(e.id,e),Fd.setItem(e.id,t)])};Ai({name:"cache",version:1});const Hd=e=>typeof e=="number"?!0:e?Array.prototype.every.call(e,t=>"0"<=t&&t<="9"):!1,di=So("url",{},e=>(Object.keys(e).forEach(t=>{if(Hd(t))return;const n=Dd(t);n&&(e[n]=e[t]),delete e[t]}),e)),Fs=So("importTime",{}),jc=So("githubJpg",{}),hi=So("githubZip",{},e=>(Object.entries(e).forEach(([t,n])=>{const r=n;if(Hd(r))return;const o=Dd(r);o?e[t]=+o:delete e[t]}),e)),Wc=So("settings",{autoUploadImport:!1,ignoreUploadWarn:!1,ignoreWasmWarn:!1}),Vc="snapshots-cache-version",fs="v2";localStorage.getItem(Vc)!==fs&&(localStorage.setItem(Vc,fs),Promise.all($a).then(async()=>{(await(await fetch(`https://registry.npmmirror.com/@gkd-kit/assets/latest/files/assets/snapshots-${fs}.json`)).json()).forEach(n=>{hi[n.id]||(hi[n.id]=n.import_id),di[n.import_id]||(di[n.import_id]=n.id)})}));const Qn=Zs({networkErrorDlgVisible:!1,githubErrorDlgVisible:!1,wasmErrorDlgVisible:!1,wasmSupported:void 0}),Hw=Xe({__name:"ErrorDlg",setup(e){return(t,n)=>{const r=O1,o=p1;return no(),ag(nt,null,[Ye(r,{show:ft(Qn).githubErrorDlgVisible,"onUpdate:show":n[0]||(n[0]=i=>ft(Qn).githubErrorDlgVisible=i),preset:"dialog",title:"生成分享链接失败",type:"success"},{default:tr(()=>n[4]||(n[4]=[mt("div",null,"生成分享链接需要以下条件",-1),mt("div",null,[Ht(" 在当前浏览器登录 "),mt("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer"}," github.com ")],-1)])),_:1},8,["show"]),Ye(r,{show:ft(Qn).networkErrorDlgVisible,"onUpdate:show":n[1]||(n[1]=i=>ft(Qn).networkErrorDlgVisible=i),preset:"dialog",title:"访问其它域名资源失败",type:"success"},{default:tr(()=>n[5]||(n[5]=[mt("div",null,"访问其它域名资源需要以下条件",-1),mt("div",null,[Ht(" 1. 安装脚本管理器, 如 "),mt("a",{href:"https://violentmonkey.github.io/",target:"_blank",rel:"noopener noreferrer"}," Violentmonkey ")],-1),mt("div",null,[Ht(" 2. 安装油猴脚本 "),mt("a",{href:"https://github.com/gkd-kit/network-extension",target:"_blank",rel:"noopener noreferrer"}," network-extension ")],-1),mt("div",null,"3. 在当前网站启用上述油猴脚本的API注入功能",-1),mt("div",null,[Ht(" 4. 如果是分享链接则需要在当前浏览器登录 "),mt("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer"}," github.com ")],-1)])),_:1},8,["show"]),Ye(r,{show:ft(Qn).wasmErrorDlgVisible,"onUpdate:show":n[3]||(n[3]=i=>ft(Qn).wasmErrorDlgVisible=i),preset:"dialog",title:"浏览器不支持或版本过低",type:"warning",positiveText:"确定"},{default:tr(()=>[n[7]||(n[7]=mt("div",null,[Ht(" 选择器的正则表达式一致性需要使用 "),mt("a",{href:"https://developer.chrome.com/blog/wasmgc?hl=zh-cn",target:"_blank",rel:"noopener noreferrer"},"WASM(GC)")],-1)),n[8]||(n[8]=mt("div",{"mt-10px":""},"请使用 Chrome119/Edge119/Firefox120 或最新版本",-1)),Ye(o,{class:"mt-10px",checked:ft(Wc).ignoreWasmWarn,"onUpdate:checked":n[2]||(n[2]=i=>ft(Wc).ignoreWasmWarn=i)},{default:tr(()=>n[6]||(n[6]=[Ht(" 不关注一致性, 不再提醒 ")])),_:1},8,["checked"])]),_:1},8,["show"])],64)}}}),Nw=Xe({__name:"App",setup(e){return(t,n)=>{const r=v1;return no(),ti(r,{locale:ft(Ny),"date-locale":ft(Ex),abstract:""},{default:tr(()=>[Ye(Hw),Ye(ft(Bd))]),_:1},8,["locale","date-locale"])}}}),jw="modulepreload",Ww=function(e,t){return new URL(e,t).href},Uc={},mn=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){const s=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=Promise.allSettled(n.map(c=>{if(c=Ww(c,r),c in Uc)return;Uc[c]=!0;const f=c.endsWith(".css"),u=f?'[rel="stylesheet"]':"";if(!!r)for(let v=s.length-1;v>=0;v--){const y=s[v];if(y.href===c&&(!f||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${u}`))return;const p=document.createElement("link");if(p.rel=f?"stylesheet":jw,f||(p.as="script"),p.crossOrigin="",p.href=c,l&&p.setAttribute("nonce",l),document.head.appendChild(p),f)return new Promise((v,y)=>{p.addEventListener("load",v),p.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return o.then(s=>{for(const a of s||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})},Kc=(e,t)=>{try{return new URL(e,t)}catch{}},Gc=e=>{var n;const t=(n=String(e.params.github_asset_id).match(/^\d+/))==null?void 0:n[0];return t?{path:"/i",query:{...e.query,url:Mw(t)}}:{path:"/404"}},Nd=Ow({history:aw("/"),routes:[{path:"/",component:()=>mn(()=>import("./HomePage-CISsYbai.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)},{path:"/snapshot/:snapshotId",name:"snapshot",component:()=>mn(()=>import("./SnapshotPage-DmUnH0UH.js"),__vite__mapDeps([9,1,2,3,4,5,6,10,11]),import.meta.url)},{path:"/i",component:()=>mn(()=>import("./ImportPage-C0MjdXRR.js"),__vite__mapDeps([12,2,4,5,7]),import.meta.url)},{path:"/i/:github_asset_id",redirect:Gc},{path:"/import",redirect(e){return{path:"/i",query:e.query}}},{path:"/import/:github_asset_id",redirect:Gc},{path:"/device",component:()=>mn(()=>import("./DevicePage-6VV4qweq.js"),__vite__mapDeps([13,2,11,8,3,6,5,10]),import.meta.url),beforeEnter(e,t,n){const r=Kc(String(e.query.url));if(r){localStorage.setItem("device_link",r.origin);const o={...e.query};return delete o.url,n({...e,query:o})}n()}},{path:"/s",component:()=>mn(()=>import("./PreviewSharePage-Bt7cRsKN.js"),__vite__mapDeps([14,2,10,3]),import.meta.url),beforeEnter(e,t,n){return e.query.url&&Kc(String(e.query.url))?n():n({path:"/404"})}},{path:"/s/:github_asset_id",component:()=>mn(()=>import("./PreviewSharePage-Bt7cRsKN.js"),__vite__mapDeps([14,2,10,3]),import.meta.url),beforeEnter(e,t,n){var o;const r=(o=String(e.params.github_asset_id).match(/^\d+/))==null?void 0:o[0];return r?e.params.github_asset_id===r?n():n("/s/"+r):n({path:"/404"})}},{path:"/selector",component:()=>mn(()=>import("./SelectorPage-CqKBKxFx.js"),[],import.meta.url)},{path:"/:pathMatch(.*)*",component:()=>mn(()=>import("./_404Page-4LcsRMcS.js"),[],import.meta.url)}]}),Vw={hash:"9554a037d26bd646b5912b5708a3dc2ca15557d2",date:"2024-10-09T21:53:25+08:00",message:"feat: eslint v9",refs:"grafted, HEAD -> main, origin/main",body:"",author_name:"lisonge",author_email:"i@songe.li"},Uw=`GIT commit
564
+ */(function(e,t){(function(n){e.exports=n()})(function(){return function n(r,o,i){function s(c,f){if(!o[c]){if(!r[c]){var u=typeof Vo=="function"&&Vo;if(!f&&u)return u(c,!0);if(a)return a(c,!0);var d=new Error("Cannot find module '"+c+"'");throw d.code="MODULE_NOT_FOUND",d}var p=o[c]={exports:{}};r[c][0].call(p.exports,function(v){var y=r[c][1][v];return s(y||v)},p,p.exports,n,r,o,i)}return o[c].exports}for(var a=typeof Vo=="function"&&Vo,l=0;l<i.length;l++)s(i[l]);return s}({1:[function(n,r,o){(function(i){var s=i.MutationObserver||i.WebKitMutationObserver,a;if(s){var l=0,c=new s(v),f=i.document.createTextNode("");c.observe(f,{characterData:!0}),a=function(){f.data=l=++l%2}}else if(!i.setImmediate&&typeof i.MessageChannel<"u"){var u=new i.MessageChannel;u.port1.onmessage=v,a=function(){u.port2.postMessage(0)}}else"document"in i&&"onreadystatechange"in i.document.createElement("script")?a=function(){var S=i.document.createElement("script");S.onreadystatechange=function(){v(),S.onreadystatechange=null,S.parentNode.removeChild(S),S=null},i.document.documentElement.appendChild(S)}:a=function(){setTimeout(v,0)};var d,p=[];function v(){d=!0;for(var S,w,E=p.length;E;){for(w=p,p=[],S=-1;++S<E;)w[S]();E=p.length}d=!1}r.exports=y;function y(S){p.push(S)===1&&!d&&a()}}).call(this,typeof Wo<"u"?Wo:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(n,r,o){var i=n(1);function s(){}var a={},l=["REJECTED"],c=["FULFILLED"],f=["PENDING"];r.exports=u;function u(T){if(typeof T!="function")throw new TypeError("resolver must be a function");this.state=f,this.queue=[],this.outcome=void 0,T!==s&&y(this,T)}u.prototype.catch=function(T){return this.then(null,T)},u.prototype.then=function(T,P){if(typeof T!="function"&&this.state===c||typeof P!="function"&&this.state===l)return this;var b=new this.constructor(s);if(this.state!==f){var O=this.state===c?T:P;p(b,O,this.outcome)}else this.queue.push(new d(b,T,P));return b};function d(T,P,b){this.promise=T,typeof P=="function"&&(this.onFulfilled=P,this.callFulfilled=this.otherCallFulfilled),typeof b=="function"&&(this.onRejected=b,this.callRejected=this.otherCallRejected)}d.prototype.callFulfilled=function(T){a.resolve(this.promise,T)},d.prototype.otherCallFulfilled=function(T){p(this.promise,this.onFulfilled,T)},d.prototype.callRejected=function(T){a.reject(this.promise,T)},d.prototype.otherCallRejected=function(T){p(this.promise,this.onRejected,T)};function p(T,P,b){i(function(){var O;try{O=P(b)}catch(A){return a.reject(T,A)}O===T?a.reject(T,new TypeError("Cannot resolve promise with itself")):a.resolve(T,O)})}a.resolve=function(T,P){var b=S(v,P);if(b.status==="error")return a.reject(T,b.value);var O=b.value;if(O)y(T,O);else{T.state=c,T.outcome=P;for(var A=-1,G=T.queue.length;++A<G;)T.queue[A].callFulfilled(P)}return T},a.reject=function(T,P){T.state=l,T.outcome=P;for(var b=-1,O=T.queue.length;++b<O;)T.queue[b].callRejected(P);return T};function v(T){var P=T&&T.then;if(T&&(typeof T=="object"||typeof T=="function")&&typeof P=="function")return function(){P.apply(T,arguments)}}function y(T,P){var b=!1;function O(D){b||(b=!0,a.reject(T,D))}function A(D){b||(b=!0,a.resolve(T,D))}function G(){P(A,O)}var Z=S(G);Z.status==="error"&&O(Z.value)}function S(T,P){var b={};try{b.value=T(P),b.status="success"}catch(O){b.status="error",b.value=O}return b}u.resolve=w;function w(T){return T instanceof this?T:a.resolve(new this(s),T)}u.reject=E;function E(T){var P=new this(s);return a.reject(P,T)}u.all=z;function z(T){var P=this;if(Object.prototype.toString.call(T)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=T.length,O=!1;if(!b)return this.resolve([]);for(var A=new Array(b),G=0,Z=-1,D=new this(s);++Z<b;)ie(T[Z],Z);return D;function ie(fe,Se){P.resolve(fe).then(de,function(te){O||(O=!0,a.reject(D,te))});function de(te){A[Se]=te,++G===b&&!O&&(O=!0,a.resolve(D,A))}}}u.race=k;function k(T){var P=this;if(Object.prototype.toString.call(T)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=T.length,O=!1;if(!b)return this.resolve([]);for(var A=-1,G=new this(s);++A<b;)Z(T[A]);return G;function Z(D){P.resolve(D).then(function(ie){O||(O=!0,a.resolve(G,ie))},function(ie){O||(O=!0,a.reject(G,ie))})}}},{1:1}],3:[function(n,r,o){(function(i){typeof i.Promise!="function"&&(i.Promise=n(2))}).call(this,typeof Wo<"u"?Wo:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(n,r,o){var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h};function s(h,C){if(!(h instanceof C))throw new TypeError("Cannot call a class as a function")}function a(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var l=a();function c(){try{if(!l||!l.open)return!1;var h=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),C=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!h||C)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function f(h,C){h=h||[],C=C||{};try{return new Blob(h,C)}catch(_){if(_.name!=="TypeError")throw _;for(var g=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,R=new g,$=0;$<h.length;$+=1)R.append(h[$]);return R.getBlob(C.type)}}typeof Promise>"u"&&n(3);var u=Promise;function d(h,C){C&&h.then(function(g){C(null,g)},function(g){C(g)})}function p(h,C,g){typeof C=="function"&&h.then(C),typeof g=="function"&&h.catch(g)}function v(h){return typeof h!="string"&&(console.warn(h+" used as a key, but it is not a string."),h=String(h)),h}function y(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var S="local-forage-detect-blob-support",w=void 0,E={},z=Object.prototype.toString,k="readonly",T="readwrite";function P(h){for(var C=h.length,g=new ArrayBuffer(C),R=new Uint8Array(g),$=0;$<C;$++)R[$]=h.charCodeAt($);return g}function b(h){return new u(function(C){var g=h.transaction(S,T),R=f([""]);g.objectStore(S).put(R,"key"),g.onabort=function($){$.preventDefault(),$.stopPropagation(),C(!1)},g.oncomplete=function(){var $=navigator.userAgent.match(/Chrome\/(\d+)/),_=navigator.userAgent.match(/Edge\//);C(_||!$||parseInt($[1],10)>=43)}}).catch(function(){return!1})}function O(h){return typeof w=="boolean"?u.resolve(w):b(h).then(function(C){return w=C,w})}function A(h){var C=E[h.name],g={};g.promise=new u(function(R,$){g.resolve=R,g.reject=$}),C.deferredOperations.push(g),C.dbReady?C.dbReady=C.dbReady.then(function(){return g.promise}):C.dbReady=g.promise}function G(h){var C=E[h.name],g=C.deferredOperations.pop();if(g)return g.resolve(),g.promise}function Z(h,C){var g=E[h.name],R=g.deferredOperations.pop();if(R)return R.reject(C),R.promise}function D(h,C){return new u(function(g,R){if(E[h.name]=E[h.name]||ze(),h.db)if(C)A(h),h.db.close();else return g(h.db);var $=[h.name];C&&$.push(h.version);var _=l.open.apply(l,$);C&&(_.onupgradeneeded=function(L){var q=_.result;try{q.createObjectStore(h.storeName),L.oldVersion<=1&&q.createObjectStore(S)}catch(Y){if(Y.name==="ConstraintError")console.warn('The database "'+h.name+'" has been upgraded from version '+L.oldVersion+" to version "+L.newVersion+', but the storage "'+h.storeName+'" already exists.');else throw Y}}),_.onerror=function(L){L.preventDefault(),R(_.error)},_.onsuccess=function(){var L=_.result;L.onversionchange=function(q){q.target.close()},g(L),G(h)}})}function ie(h){return D(h,!1)}function fe(h){return D(h,!0)}function Se(h,C){if(!h.db)return!0;var g=!h.db.objectStoreNames.contains(h.storeName),R=h.version<h.db.version,$=h.version>h.db.version;if(R&&(h.version!==C&&console.warn('The database "'+h.name+`" can't be downgraded from version `+h.db.version+" to version "+h.version+"."),h.version=h.db.version),$||g){if(g){var _=h.db.version+1;_>h.version&&(h.version=_)}return!0}return!1}function de(h){return new u(function(C,g){var R=new FileReader;R.onerror=g,R.onloadend=function($){var _=btoa($.target.result||"");C({__local_forage_encoded_blob:!0,data:_,type:h.type})},R.readAsBinaryString(h)})}function te(h){var C=P(atob(h.data));return f([C],{type:h.type})}function he(h){return h&&h.__local_forage_encoded_blob}function Me(h){var C=this,g=C._initReady().then(function(){var R=E[C._dbInfo.name];if(R&&R.dbReady)return R.dbReady});return p(g,h,h),g}function ke(h){A(h);for(var C=E[h.name],g=C.forages,R=0;R<g.length;R++){var $=g[R];$._dbInfo.db&&($._dbInfo.db.close(),$._dbInfo.db=null)}return h.db=null,ie(h).then(function(_){return h.db=_,Se(h)?fe(h):_}).then(function(_){h.db=C.db=_;for(var L=0;L<g.length;L++)g[L]._dbInfo.db=_}).catch(function(_){throw Z(h,_),_})}function $e(h,C,g,R){R===void 0&&(R=1);try{var $=h.db.transaction(h.storeName,C);g(null,$)}catch(_){if(R>0&&(!h.db||_.name==="InvalidStateError"||_.name==="NotFoundError"))return u.resolve().then(function(){if(!h.db||_.name==="NotFoundError"&&!h.db.objectStoreNames.contains(h.storeName)&&h.version<=h.db.version)return h.db&&(h.version=h.db.version+1),fe(h)}).then(function(){return ke(h).then(function(){$e(h,C,g,R-1)})}).catch(g);g(_)}}function ze(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function ot(h){var C=this,g={db:null};if(h)for(var R in h)g[R]=h[R];var $=E[g.name];$||($=ze(),E[g.name]=$),$.forages.push(C),C._initReady||(C._initReady=C.ready,C.ready=Me);var _=[];function L(){return u.resolve()}for(var q=0;q<$.forages.length;q++){var Y=$.forages[q];Y!==C&&_.push(Y._initReady().catch(L))}var X=$.forages.slice(0);return u.all(_).then(function(){return g.db=$.db,ie(g)}).then(function(Q){return g.db=Q,Se(g,C._defaultConfig.version)?fe(g):Q}).then(function(Q){g.db=$.db=Q,C._dbInfo=g;for(var ue=0;ue<X.length;ue++){var Pe=X[ue];Pe!==C&&(Pe._dbInfo.db=g.db,Pe._dbInfo.version=g.version)}})}function it(h,C){var g=this;h=v(h);var R=new u(function($,_){g.ready().then(function(){$e(g._dbInfo,k,function(L,q){if(L)return _(L);try{var Y=q.objectStore(g._dbInfo.storeName),X=Y.get(h);X.onsuccess=function(){var Q=X.result;Q===void 0&&(Q=null),he(Q)&&(Q=te(Q)),$(Q)},X.onerror=function(){_(X.error)}}catch(Q){_(Q)}})}).catch(_)});return d(R,C),R}function At(h,C){var g=this,R=new u(function($,_){g.ready().then(function(){$e(g._dbInfo,k,function(L,q){if(L)return _(L);try{var Y=q.objectStore(g._dbInfo.storeName),X=Y.openCursor(),Q=1;X.onsuccess=function(){var ue=X.result;if(ue){var Pe=ue.value;he(Pe)&&(Pe=te(Pe));var De=h(Pe,ue.key,Q++);De!==void 0?$(De):ue.continue()}else $()},X.onerror=function(){_(X.error)}}catch(ue){_(ue)}})}).catch(_)});return d(R,C),R}function xe(h,C,g){var R=this;h=v(h);var $=new u(function(_,L){var q;R.ready().then(function(){return q=R._dbInfo,z.call(C)==="[object Blob]"?O(q.db).then(function(Y){return Y?C:de(C)}):C}).then(function(Y){$e(R._dbInfo,T,function(X,Q){if(X)return L(X);try{var ue=Q.objectStore(R._dbInfo.storeName);Y===null&&(Y=void 0);var Pe=ue.put(Y,h);Q.oncomplete=function(){Y===void 0&&(Y=null),_(Y)},Q.onabort=Q.onerror=function(){var De=Pe.error?Pe.error:Pe.transaction.error;L(De)}}catch(De){L(De)}})}).catch(L)});return d($,g),$}function B(h,C){var g=this;h=v(h);var R=new u(function($,_){g.ready().then(function(){$e(g._dbInfo,T,function(L,q){if(L)return _(L);try{var Y=q.objectStore(g._dbInfo.storeName),X=Y.delete(h);q.oncomplete=function(){$()},q.onerror=function(){_(X.error)},q.onabort=function(){var Q=X.error?X.error:X.transaction.error;_(Q)}}catch(Q){_(Q)}})}).catch(_)});return d(R,C),R}function ne(h){var C=this,g=new u(function(R,$){C.ready().then(function(){$e(C._dbInfo,T,function(_,L){if(_)return $(_);try{var q=L.objectStore(C._dbInfo.storeName),Y=q.clear();L.oncomplete=function(){R()},L.onabort=L.onerror=function(){var X=Y.error?Y.error:Y.transaction.error;$(X)}}catch(X){$(X)}})}).catch($)});return d(g,h),g}function H(h){var C=this,g=new u(function(R,$){C.ready().then(function(){$e(C._dbInfo,k,function(_,L){if(_)return $(_);try{var q=L.objectStore(C._dbInfo.storeName),Y=q.count();Y.onsuccess=function(){R(Y.result)},Y.onerror=function(){$(Y.error)}}catch(X){$(X)}})}).catch($)});return d(g,h),g}function se(h,C){var g=this,R=new u(function($,_){if(h<0){$(null);return}g.ready().then(function(){$e(g._dbInfo,k,function(L,q){if(L)return _(L);try{var Y=q.objectStore(g._dbInfo.storeName),X=!1,Q=Y.openKeyCursor();Q.onsuccess=function(){var ue=Q.result;if(!ue){$(null);return}h===0||X?$(ue.key):(X=!0,ue.advance(h))},Q.onerror=function(){_(Q.error)}}catch(ue){_(ue)}})}).catch(_)});return d(R,C),R}function Re(h){var C=this,g=new u(function(R,$){C.ready().then(function(){$e(C._dbInfo,k,function(_,L){if(_)return $(_);try{var q=L.objectStore(C._dbInfo.storeName),Y=q.openKeyCursor(),X=[];Y.onsuccess=function(){var Q=Y.result;if(!Q){R(X);return}X.push(Q.key),Q.continue()},Y.onerror=function(){$(Y.error)}}catch(Q){$(Q)}})}).catch($)});return d(g,h),g}function Fe(h,C){C=y.apply(this,arguments);var g=this.config();h=typeof h!="function"&&h||{},h.name||(h.name=h.name||g.name,h.storeName=h.storeName||g.storeName);var R=this,$;if(!h.name)$=u.reject("Invalid arguments");else{var _=h.name===g.name&&R._dbInfo.db,L=_?u.resolve(R._dbInfo.db):ie(h).then(function(q){var Y=E[h.name],X=Y.forages;Y.db=q;for(var Q=0;Q<X.length;Q++)X[Q]._dbInfo.db=q;return q});h.storeName?$=L.then(function(q){if(q.objectStoreNames.contains(h.storeName)){var Y=q.version+1;A(h);var X=E[h.name],Q=X.forages;q.close();for(var ue=0;ue<Q.length;ue++){var Pe=Q[ue];Pe._dbInfo.db=null,Pe._dbInfo.version=Y}var De=new u(function(He,tt){var et=l.open(h.name,Y);et.onerror=function(zt){var Rr=et.result;Rr.close(),tt(zt)},et.onupgradeneeded=function(){var zt=et.result;zt.deleteObjectStore(h.storeName)},et.onsuccess=function(){var zt=et.result;zt.close(),He(zt)}});return De.then(function(He){X.db=He;for(var tt=0;tt<Q.length;tt++){var et=Q[tt];et._dbInfo.db=He,G(et._dbInfo)}}).catch(function(He){throw(Z(h,He)||u.resolve()).catch(function(){}),He})}}):$=L.then(function(q){A(h);var Y=E[h.name],X=Y.forages;q.close();for(var Q=0;Q<X.length;Q++){var ue=X[Q];ue._dbInfo.db=null}var Pe=new u(function(De,He){var tt=l.deleteDatabase(h.name);tt.onerror=function(){var et=tt.result;et&&et.close(),He(tt.error)},tt.onblocked=function(){console.warn('dropInstance blocked for database "'+h.name+'" until all open connections are closed')},tt.onsuccess=function(){var et=tt.result;et&&et.close(),De(et)}});return Pe.then(function(De){Y.db=De;for(var He=0;He<X.length;He++){var tt=X[He];G(tt._dbInfo)}}).catch(function(De){throw(Z(h,De)||u.resolve()).catch(function(){}),De})})}return d($,C),$}var m={_driver:"asyncStorage",_initStorage:ot,_support:c(),iterate:At,getItem:it,setItem:xe,removeItem:B,clear:ne,length:H,key:se,keys:Re,dropInstance:Fe};function x(){return typeof openDatabase=="function"}var I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",N="~~local_forage_type~",M=/^~~local_forage_type~([^~]+)~/,W="__lfsc__:",ee=W.length,j="arbf",V="blob",U="si08",pe="ui08",re="uic8",ae="si16",ve="si32",Te="ur16",Ae="ui32",Oe="fl32",at="fl64",Ze=ee+j.length,lt=Object.prototype.toString;function st(h){var C=h.length*.75,g=h.length,R,$=0,_,L,q,Y;h[h.length-1]==="="&&(C--,h[h.length-2]==="="&&C--);var X=new ArrayBuffer(C),Q=new Uint8Array(X);for(R=0;R<g;R+=4)_=I.indexOf(h[R]),L=I.indexOf(h[R+1]),q=I.indexOf(h[R+2]),Y=I.indexOf(h[R+3]),Q[$++]=_<<2|L>>4,Q[$++]=(L&15)<<4|q>>2,Q[$++]=(q&3)<<6|Y&63;return X}function pt(h){var C=new Uint8Array(h),g="",R;for(R=0;R<C.length;R+=3)g+=I[C[R]>>2],g+=I[(C[R]&3)<<4|C[R+1]>>4],g+=I[(C[R+1]&15)<<2|C[R+2]>>6],g+=I[C[R+2]&63];return C.length%3===2?g=g.substring(0,g.length-1)+"=":C.length%3===1&&(g=g.substring(0,g.length-2)+"=="),g}function _r(h,C){var g="";if(h&&(g=lt.call(h)),h&&(g==="[object ArrayBuffer]"||h.buffer&&lt.call(h.buffer)==="[object ArrayBuffer]")){var R,$=W;h instanceof ArrayBuffer?(R=h,$+=j):(R=h.buffer,g==="[object Int8Array]"?$+=U:g==="[object Uint8Array]"?$+=pe:g==="[object Uint8ClampedArray]"?$+=re:g==="[object Int16Array]"?$+=ae:g==="[object Uint16Array]"?$+=Te:g==="[object Int32Array]"?$+=ve:g==="[object Uint32Array]"?$+=Ae:g==="[object Float32Array]"?$+=Oe:g==="[object Float64Array]"?$+=at:C(new Error("Failed to get type for BinaryArray"))),C($+pt(R))}else if(g==="[object Blob]"){var _=new FileReader;_.onload=function(){var L=N+h.type+"~"+pt(this.result);C(W+V+L)},_.readAsArrayBuffer(h)}else try{C(JSON.stringify(h))}catch(L){console.error("Couldn't convert value into a JSON string: ",h),C(null,L)}}function K(h){if(h.substring(0,ee)!==W)return JSON.parse(h);var C=h.substring(Ze),g=h.substring(ee,Ze),R;if(g===V&&M.test(C)){var $=C.match(M);R=$[1],C=C.substring($[0].length)}var _=st(C);switch(g){case j:return _;case V:return f([_],{type:R});case U:return new Int8Array(_);case pe:return new Uint8Array(_);case re:return new Uint8ClampedArray(_);case ae:return new Int16Array(_);case Te:return new Uint16Array(_);case ve:return new Int32Array(_);case Ae:return new Uint32Array(_);case Oe:return new Float32Array(_);case at:return new Float64Array(_);default:throw new Error("Unkown type: "+g)}}var oe={serialize:_r,deserialize:K,stringToBuffer:st,bufferToString:pt};function me(h,C,g,R){h.executeSql("CREATE TABLE IF NOT EXISTS "+C.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],g,R)}function We(h){var C=this,g={db:null};if(h)for(var R in h)g[R]=typeof h[R]!="string"?h[R].toString():h[R];var $=new u(function(_,L){try{g.db=openDatabase(g.name,String(g.version),g.description,g.size)}catch(q){return L(q)}g.db.transaction(function(q){me(q,g,function(){C._dbInfo=g,_()},function(Y,X){L(X)})},L)});return g.serializer=oe,$}function je(h,C,g,R,$,_){h.executeSql(g,R,$,function(L,q){q.code===q.SYNTAX_ERR?L.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[C.storeName],function(Y,X){X.rows.length?_(Y,q):me(Y,C,function(){Y.executeSql(g,R,$,_)},_)},_):_(L,q)},_)}function gt(h,C){var g=this;h=v(h);var R=new u(function($,_){g.ready().then(function(){var L=g._dbInfo;L.db.transaction(function(q){je(q,L,"SELECT * FROM "+L.storeName+" WHERE key = ? LIMIT 1",[h],function(Y,X){var Q=X.rows.length?X.rows.item(0).value:null;Q&&(Q=L.serializer.deserialize(Q)),$(Q)},function(Y,X){_(X)})})}).catch(_)});return d(R,C),R}function $t(h,C){var g=this,R=new u(function($,_){g.ready().then(function(){var L=g._dbInfo;L.db.transaction(function(q){je(q,L,"SELECT * FROM "+L.storeName,[],function(Y,X){for(var Q=X.rows,ue=Q.length,Pe=0;Pe<ue;Pe++){var De=Q.item(Pe),He=De.value;if(He&&(He=L.serializer.deserialize(He)),He=h(He,De.key,Pe+1),He!==void 0){$(He);return}}$()},function(Y,X){_(X)})})}).catch(_)});return d(R,C),R}function Ve(h,C,g,R){var $=this;h=v(h);var _=new u(function(L,q){$.ready().then(function(){C===void 0&&(C=null);var Y=C,X=$._dbInfo;X.serializer.serialize(C,function(Q,ue){ue?q(ue):X.db.transaction(function(Pe){je(Pe,X,"INSERT OR REPLACE INTO "+X.storeName+" (key, value) VALUES (?, ?)",[h,Q],function(){L(Y)},function(De,He){q(He)})},function(Pe){if(Pe.code===Pe.QUOTA_ERR){if(R>0){L(Ve.apply($,[h,Y,g,R-1]));return}q(Pe)}})})}).catch(q)});return d(_,g),_}function Et(h,C,g){return Ve.apply(this,[h,C,g,1])}function Gt(h,C){var g=this;h=v(h);var R=new u(function($,_){g.ready().then(function(){var L=g._dbInfo;L.db.transaction(function(q){je(q,L,"DELETE FROM "+L.storeName+" WHERE key = ?",[h],function(){$()},function(Y,X){_(X)})})}).catch(_)});return d(R,C),R}function zi(h){var C=this,g=new u(function(R,$){C.ready().then(function(){var _=C._dbInfo;_.db.transaction(function(L){je(L,_,"DELETE FROM "+_.storeName,[],function(){R()},function(q,Y){$(Y)})})}).catch($)});return d(g,h),g}function Wd(h){var C=this,g=new u(function(R,$){C.ready().then(function(){var _=C._dbInfo;_.db.transaction(function(L){je(L,_,"SELECT COUNT(key) as c FROM "+_.storeName,[],function(q,Y){var X=Y.rows.item(0).c;R(X)},function(q,Y){$(Y)})})}).catch($)});return d(g,h),g}function Vd(h,C){var g=this,R=new u(function($,_){g.ready().then(function(){var L=g._dbInfo;L.db.transaction(function(q){je(q,L,"SELECT key FROM "+L.storeName+" WHERE id = ? LIMIT 1",[h+1],function(Y,X){var Q=X.rows.length?X.rows.item(0).key:null;$(Q)},function(Y,X){_(X)})})}).catch(_)});return d(R,C),R}function Ud(h){var C=this,g=new u(function(R,$){C.ready().then(function(){var _=C._dbInfo;_.db.transaction(function(L){je(L,_,"SELECT key FROM "+_.storeName,[],function(q,Y){for(var X=[],Q=0;Q<Y.rows.length;Q++)X.push(Y.rows.item(Q).key);R(X)},function(q,Y){$(Y)})})}).catch($)});return d(g,h),g}function Kd(h){return new u(function(C,g){h.transaction(function(R){R.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function($,_){for(var L=[],q=0;q<_.rows.length;q++)L.push(_.rows.item(q).name);C({db:h,storeNames:L})},function($,_){g(_)})},function(R){g(R)})})}function Gd(h,C){C=y.apply(this,arguments);var g=this.config();h=typeof h!="function"&&h||{},h.name||(h.name=h.name||g.name,h.storeName=h.storeName||g.storeName);var R=this,$;return h.name?$=new u(function(_){var L;h.name===g.name?L=R._dbInfo.db:L=openDatabase(h.name,"","",0),h.storeName?_({db:L,storeNames:[h.storeName]}):_(Kd(L))}).then(function(_){return new u(function(L,q){_.db.transaction(function(Y){function X(De){return new u(function(He,tt){Y.executeSql("DROP TABLE IF EXISTS "+De,[],function(){He()},function(et,zt){tt(zt)})})}for(var Q=[],ue=0,Pe=_.storeNames.length;ue<Pe;ue++)Q.push(X(_.storeNames[ue]));u.all(Q).then(function(){L()}).catch(function(De){q(De)})},function(Y){q(Y)})})}):$=u.reject("Invalid arguments"),d($,C),$}var qd={_driver:"webSQLStorage",_initStorage:We,_support:x(),iterate:$t,getItem:gt,setItem:Et,removeItem:Gt,clear:zi,length:Wd,key:Vd,keys:Ud,dropInstance:Gd};function Yd(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function Oa(h,C){var g=h.name+"/";return h.storeName!==C.storeName&&(g+=h.storeName+"/"),g}function Xd(){var h="_localforage_support_test";try{return localStorage.setItem(h,!0),localStorage.removeItem(h),!1}catch{return!0}}function Zd(){return!Xd()||localStorage.length>0}function Qd(h){var C=this,g={};if(h)for(var R in h)g[R]=h[R];return g.keyPrefix=Oa(h,C._defaultConfig),Zd()?(C._dbInfo=g,g.serializer=oe,u.resolve()):u.reject()}function Jd(h){var C=this,g=C.ready().then(function(){for(var R=C._dbInfo.keyPrefix,$=localStorage.length-1;$>=0;$--){var _=localStorage.key($);_.indexOf(R)===0&&localStorage.removeItem(_)}});return d(g,h),g}function eh(h,C){var g=this;h=v(h);var R=g.ready().then(function(){var $=g._dbInfo,_=localStorage.getItem($.keyPrefix+h);return _&&(_=$.serializer.deserialize(_)),_});return d(R,C),R}function th(h,C){var g=this,R=g.ready().then(function(){for(var $=g._dbInfo,_=$.keyPrefix,L=_.length,q=localStorage.length,Y=1,X=0;X<q;X++){var Q=localStorage.key(X);if(Q.indexOf(_)===0){var ue=localStorage.getItem(Q);if(ue&&(ue=$.serializer.deserialize(ue)),ue=h(ue,Q.substring(L),Y++),ue!==void 0)return ue}}});return d(R,C),R}function nh(h,C){var g=this,R=g.ready().then(function(){var $=g._dbInfo,_;try{_=localStorage.key(h)}catch{_=null}return _&&(_=_.substring($.keyPrefix.length)),_});return d(R,C),R}function rh(h){var C=this,g=C.ready().then(function(){for(var R=C._dbInfo,$=localStorage.length,_=[],L=0;L<$;L++){var q=localStorage.key(L);q.indexOf(R.keyPrefix)===0&&_.push(q.substring(R.keyPrefix.length))}return _});return d(g,h),g}function oh(h){var C=this,g=C.keys().then(function(R){return R.length});return d(g,h),g}function ih(h,C){var g=this;h=v(h);var R=g.ready().then(function(){var $=g._dbInfo;localStorage.removeItem($.keyPrefix+h)});return d(R,C),R}function sh(h,C,g){var R=this;h=v(h);var $=R.ready().then(function(){C===void 0&&(C=null);var _=C;return new u(function(L,q){var Y=R._dbInfo;Y.serializer.serialize(C,function(X,Q){if(Q)q(Q);else try{localStorage.setItem(Y.keyPrefix+h,X),L(_)}catch(ue){(ue.name==="QuotaExceededError"||ue.name==="NS_ERROR_DOM_QUOTA_REACHED")&&q(ue),q(ue)}})})});return d($,g),$}function ah(h,C){if(C=y.apply(this,arguments),h=typeof h!="function"&&h||{},!h.name){var g=this.config();h.name=h.name||g.name,h.storeName=h.storeName||g.storeName}var R=this,$;return h.name?$=new u(function(_){h.storeName?_(Oa(h,R._defaultConfig)):_(h.name+"/")}).then(function(_){for(var L=localStorage.length-1;L>=0;L--){var q=localStorage.key(L);q.indexOf(_)===0&&localStorage.removeItem(q)}}):$=u.reject("Invalid arguments"),d($,C),$}var lh={_driver:"localStorageWrapper",_initStorage:Qd,_support:Yd(),iterate:th,getItem:eh,setItem:sh,removeItem:ih,clear:Jd,length:oh,key:nh,keys:rh,dropInstance:ah},ch=function(C,g){return C===g||typeof C=="number"&&typeof g=="number"&&isNaN(C)&&isNaN(g)},uh=function(C,g){for(var R=C.length,$=0;$<R;){if(ch(C[$],g))return!0;$++}return!1},Ia=Array.isArray||function(h){return Object.prototype.toString.call(h)==="[object Array]"},Er={},ka={},Kn={INDEXEDDB:m,WEBSQL:qd,LOCALSTORAGE:lh},fh=[Kn.INDEXEDDB._driver,Kn.WEBSQL._driver,Kn.LOCALSTORAGE._driver],Eo=["dropInstance"],Bi=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Eo),dh={description:"",driver:fh.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function hh(h,C){h[C]=function(){var g=arguments;return h.ready().then(function(){return h[C].apply(h,g)})}}function Mi(){for(var h=1;h<arguments.length;h++){var C=arguments[h];if(C)for(var g in C)C.hasOwnProperty(g)&&(Ia(C[g])?arguments[0][g]=C[g].slice():arguments[0][g]=C[g])}return arguments[0]}var ph=function(){function h(C){s(this,h);for(var g in Kn)if(Kn.hasOwnProperty(g)){var R=Kn[g],$=R._driver;this[g]=$,Er[$]||this.defineDriver(R)}this._defaultConfig=Mi({},dh),this._config=Mi({},this._defaultConfig,C),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return h.prototype.config=function(g){if((typeof g>"u"?"undefined":i(g))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var R in g){if(R==="storeName"&&(g[R]=g[R].replace(/\W/g,"_")),R==="version"&&typeof g[R]!="number")return new Error("Database version must be a number.");this._config[R]=g[R]}return"driver"in g&&g.driver?this.setDriver(this._config.driver):!0}else return typeof g=="string"?this._config[g]:this._config},h.prototype.defineDriver=function(g,R,$){var _=new u(function(L,q){try{var Y=g._driver,X=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!g._driver){q(X);return}for(var Q=Bi.concat("_initStorage"),ue=0,Pe=Q.length;ue<Pe;ue++){var De=Q[ue],He=!uh(Eo,De);if((He||g[De])&&typeof g[De]!="function"){q(X);return}}var tt=function(){for(var Rr=function(mh){return function(){var bh=new Error("Method "+mh+" is not implemented by the current driver"),Aa=u.reject(bh);return d(Aa,arguments[arguments.length-1]),Aa}},Di=0,vh=Eo.length;Di<vh;Di++){var Li=Eo[Di];g[Li]||(g[Li]=Rr(Li))}};tt();var et=function(Rr){Er[Y]&&console.info("Redefining LocalForage driver: "+Y),Er[Y]=g,ka[Y]=Rr,L()};"_support"in g?g._support&&typeof g._support=="function"?g._support().then(et,q):et(!!g._support):et(!0)}catch(zt){q(zt)}});return p(_,R,$),_},h.prototype.driver=function(){return this._driver||null},h.prototype.getDriver=function(g,R,$){var _=Er[g]?u.resolve(Er[g]):u.reject(new Error("Driver not found."));return p(_,R,$),_},h.prototype.getSerializer=function(g){var R=u.resolve(oe);return p(R,g),R},h.prototype.ready=function(g){var R=this,$=R._driverSet.then(function(){return R._ready===null&&(R._ready=R._initDriver()),R._ready});return p($,g,g),$},h.prototype.setDriver=function(g,R,$){var _=this;Ia(g)||(g=[g]);var L=this._getSupportedDrivers(g);function q(){_._config.driver=_.driver()}function Y(ue){return _._extend(ue),q(),_._ready=_._initStorage(_._config),_._ready}function X(ue){return function(){var Pe=0;function De(){for(;Pe<ue.length;){var He=ue[Pe];return Pe++,_._dbInfo=null,_._ready=null,_.getDriver(He).then(Y).catch(De)}q();var tt=new Error("No available storage method found.");return _._driverSet=u.reject(tt),_._driverSet}return De()}}var Q=this._driverSet!==null?this._driverSet.catch(function(){return u.resolve()}):u.resolve();return this._driverSet=Q.then(function(){var ue=L[0];return _._dbInfo=null,_._ready=null,_.getDriver(ue).then(function(Pe){_._driver=Pe._driver,q(),_._wrapLibraryMethodsWithReady(),_._initDriver=X(L)})}).catch(function(){q();var ue=new Error("No available storage method found.");return _._driverSet=u.reject(ue),_._driverSet}),p(this._driverSet,R,$),this._driverSet},h.prototype.supports=function(g){return!!ka[g]},h.prototype._extend=function(g){Mi(this,g)},h.prototype._getSupportedDrivers=function(g){for(var R=[],$=0,_=g.length;$<_;$++){var L=g[$];this.supports(L)&&R.push(L)}return R},h.prototype._wrapLibraryMethodsWithReady=function(){for(var g=0,R=Bi.length;g<R;g++)hh(this,Bi[g])},h.prototype.createInstance=function(g){return new h(g)},h}(),gh=new ph;r.exports=gh},{3:3}]},{},[4])(4)})})(Md);var Aw=Md.exports;const fi=kw(Aw),zw=new Set([location.origin,"https://cdn.jsdelivr.net","https://fastly.jsdelivr.net","https://raw.githubusercontent.com","https://gist.githubusercontent.com","https://raw.gitmirror.com","https://registry.npmmirror.com","https://detect.gkd.li"]),xC=e=>(e=new URL(e),e.hostname=="127.0.0.1"||e.hostname=="localhost"||location.protocol=="http:"&&e.protocol=="http:"&&e.hostname.split(".").every(t=>Number.isSafeInteger(parseInt(t)))?!0:zw.has(e.origin)),Bw=[/^https:\/\/f\.gkd\.li\/(\d+)$/,/^https:\/\/github\.com\/gkd-kit\/inspect\/files\/(\d+)\/file\.zip$/,/^https:\/\/github\.com\/user-attachments\/files\/(\d+)\/file\.zip$/,/^https:\/\/i\.gkd\.li\/i\/(\d+)$/,/^https:\/\/i\.gkd\.li\/import\/(\d+)$/],Dd=e=>{var t;if(typeof e=="string"){if(e.startsWith(location.origin)){const n=+new URL(e).pathname.substring(1);if(Number.isSafeInteger(n)&&n>0)return n}for(const n of Bw){const r=(t=e.match(n))==null?void 0:t[1];if(r)return+r}}},wC=e=>location.origin+`/i/${e}`,Mw=e=>`https://github.com/user-attachments/files/${e}/file.zip`,Dw=/^https:\/\/github\.com\/gkd-kit\/inspect\/assets\/([0-9]+)\/([0-9a-z-]+)$/,Nc="https://github.com/user-attachments/assets/",CC=e=>{if(e.startsWith(Nc))return"https://e.gkd.li/"+e.substring(Nc.length);const{1:t,2:n}=e.match(Dw)||[];return t&&n?`https://m.gkd.li/${t}/${n}`:(console.error(`github url ${e} should come from gkd-kit/inspect files/assets`),e)},SC=e=>{try{return new URL(e)}catch{}},Ai=(e={})=>{var l;(l=e.driver)!=null||(e.driver=fi.INDEXEDDB);const t=fi.createInstance(e);return{keys:async()=>t.keys(),hasItem:async c=>{const f=c.toString();return t.keys().then(u=>u.includes(f))},getItem:async c=>t.getItem(c.toString()),setItem:async(c,f)=>t.setItem(c.toString(),f),removeItem:async c=>t.removeItem(c.toString()),getAllItems:async()=>Promise.all((await t.keys()).map(c=>t.getItem(c)))}},$a=[],So=(e,t,n)=>{const r=fo(t);let o=!1;Ft(r,async()=>{o&&await fi.setItem(e,Ie(r))});const i=fi.getItem(e).then(s=>{s&&(n&&(s=n(s)),Object.assign(r,s)),o=!0});return $a.push(i),r},_o=Ai({name:"snapshot",version:1}),Lw=_o.setItem;_o.setItem=async(e,t)=>{const n={...t,nodes:[]};return await Ld.setItem(e,n),Lw(e,t)};const Fw=_o.removeItem;_o.removeItem=async e=>{await Promise.all([Fw(e),Ld.removeItem(e),Fd.removeItem(e),Fs[e]&&delete Fs[e]])};const Ld=Ai({name:"shallowSnapshot",version:1}),Fd=Ai({name:"screenshot",version:1}),_C=async(e,t)=>{Object.entries(di).forEach(([n,r])=>{r==e.id&&delete di[n]}),jc[e.id]&&delete jc[e.id],hi[e.id]&&delete hi[e.id],Fs[e.id]=Date.now(),await Promise.all([_o.setItem(e.id,e),Fd.setItem(e.id,t)])};Ai({name:"cache",version:1});const Hd=e=>typeof e=="number"?!0:e?Array.prototype.every.call(e,t=>"0"<=t&&t<="9"):!1,di=So("url",{},e=>(Object.keys(e).forEach(t=>{if(Hd(t))return;const n=Dd(t);n&&(e[n]=e[t]),delete e[t]}),e)),Fs=So("importTime",{}),jc=So("githubJpg",{}),hi=So("githubZip",{},e=>(Object.entries(e).forEach(([t,n])=>{const r=n;if(Hd(r))return;const o=Dd(r);o?e[t]=+o:delete e[t]}),e)),Wc=So("settings",{autoUploadImport:!1,ignoreUploadWarn:!1,ignoreWasmWarn:!1}),Vc="snapshots-cache-version",fs="v2";localStorage.getItem(Vc)!==fs&&(localStorage.setItem(Vc,fs),Promise.all($a).then(async()=>{(await(await fetch(`https://registry.npmmirror.com/@gkd-kit/assets/latest/files/assets/snapshots-${fs}.json`)).json()).forEach(n=>{hi[n.id]||(hi[n.id]=n.import_id),di[n.import_id]||(di[n.import_id]=n.id)})}));const Qn=Zs({networkErrorDlgVisible:!1,githubErrorDlgVisible:!1,wasmErrorDlgVisible:!1,wasmSupported:void 0}),Hw=Xe({__name:"ErrorDlg",setup(e){return(t,n)=>{const r=O1,o=p1;return no(),ag(nt,null,[Ye(r,{show:ft(Qn).githubErrorDlgVisible,"onUpdate:show":n[0]||(n[0]=i=>ft(Qn).githubErrorDlgVisible=i),preset:"dialog",title:"生成分享链接失败",type:"success"},{default:tr(()=>n[4]||(n[4]=[mt("div",null,"生成分享链接需要以下条件",-1),mt("div",null,[Ht(" 在当前浏览器登录 "),mt("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer"}," github.com ")],-1)])),_:1},8,["show"]),Ye(r,{show:ft(Qn).networkErrorDlgVisible,"onUpdate:show":n[1]||(n[1]=i=>ft(Qn).networkErrorDlgVisible=i),preset:"dialog",title:"访问其它域名资源失败",type:"success"},{default:tr(()=>n[5]||(n[5]=[mt("div",null,"访问其它域名资源需要以下条件",-1),mt("div",null,[Ht(" 1. 安装脚本管理器, 如 "),mt("a",{href:"https://violentmonkey.github.io/",target:"_blank",rel:"noopener noreferrer"}," Violentmonkey ")],-1),mt("div",null,[Ht(" 2. 安装油猴脚本 "),mt("a",{href:"https://github.com/gkd-kit/network-extension",target:"_blank",rel:"noopener noreferrer"}," network-extension ")],-1),mt("div",null,"3. 在当前网站启用上述油猴脚本的API注入功能",-1),mt("div",null,[Ht(" 4. 如果是分享链接则需要在当前浏览器登录 "),mt("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer"}," github.com ")],-1)])),_:1},8,["show"]),Ye(r,{show:ft(Qn).wasmErrorDlgVisible,"onUpdate:show":n[3]||(n[3]=i=>ft(Qn).wasmErrorDlgVisible=i),preset:"dialog",title:"浏览器不支持或版本过低",type:"warning",positiveText:"确定"},{default:tr(()=>[n[7]||(n[7]=mt("div",null,[Ht(" 选择器的正则表达式一致性需要使用 "),mt("a",{href:"https://developer.chrome.com/blog/wasmgc?hl=zh-cn",target:"_blank",rel:"noopener noreferrer"},"WASM(GC)")],-1)),n[8]||(n[8]=mt("div",{"mt-10px":""},"请使用 Chrome119/Edge119/Firefox120 或最新版本",-1)),Ye(o,{class:"mt-10px",checked:ft(Wc).ignoreWasmWarn,"onUpdate:checked":n[2]||(n[2]=i=>ft(Wc).ignoreWasmWarn=i)},{default:tr(()=>n[6]||(n[6]=[Ht(" 不关注一致性, 不再提醒 ")])),_:1},8,["checked"])]),_:1},8,["show"])],64)}}}),Nw=Xe({__name:"App",setup(e){return(t,n)=>{const r=v1;return no(),ti(r,{locale:ft(Ny),"date-locale":ft(Ex),abstract:""},{default:tr(()=>[Ye(Hw),Ye(ft(Bd))]),_:1},8,["locale","date-locale"])}}}),jw="modulepreload",Ww=function(e,t){return new URL(e,t).href},Uc={},mn=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){const s=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=Promise.allSettled(n.map(c=>{if(c=Ww(c,r),c in Uc)return;Uc[c]=!0;const f=c.endsWith(".css"),u=f?'[rel="stylesheet"]':"";if(!!r)for(let v=s.length-1;v>=0;v--){const y=s[v];if(y.href===c&&(!f||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${u}`))return;const p=document.createElement("link");if(p.rel=f?"stylesheet":jw,f||(p.as="script"),p.crossOrigin="",p.href=c,l&&p.setAttribute("nonce",l),document.head.appendChild(p),f)return new Promise((v,y)=>{p.addEventListener("load",v),p.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return o.then(s=>{for(const a of s||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})},Kc=(e,t)=>{try{return new URL(e,t)}catch{}},Gc=e=>{var n;const t=(n=String(e.params.github_asset_id).match(/^\d+/))==null?void 0:n[0];return t?{path:"/i",query:{...e.query,url:Mw(t)}}:{path:"/404"}},Nd=Ow({history:aw("/"),routes:[{path:"/",component:()=>mn(()=>import("./HomePage-DvhjaXqH.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)},{path:"/snapshot/:snapshotId",name:"snapshot",component:()=>mn(()=>import("./SnapshotPage-CJ6fnVIZ.js"),__vite__mapDeps([9,1,2,3,4,5,6,10,11]),import.meta.url)},{path:"/i",component:()=>mn(()=>import("./ImportPage-Gwj1_Wz3.js"),__vite__mapDeps([12,2,4,5,7]),import.meta.url)},{path:"/i/:github_asset_id",redirect:Gc},{path:"/import",redirect(e){return{path:"/i",query:e.query}}},{path:"/import/:github_asset_id",redirect:Gc},{path:"/device",component:()=>mn(()=>import("./DevicePage-tRz2IA8K.js"),__vite__mapDeps([13,2,11,8,3,6,5,10]),import.meta.url),beforeEnter(e,t,n){const r=Kc(String(e.query.url));if(r){localStorage.setItem("device_link",r.origin);const o={...e.query};return delete o.url,n({...e,query:o})}n()}},{path:"/s",component:()=>mn(()=>import("./PreviewSharePage-Hyw0Tb6U.js"),__vite__mapDeps([14,2,10,3]),import.meta.url),beforeEnter(e,t,n){return e.query.url&&Kc(String(e.query.url))?n():n({path:"/404"})}},{path:"/s/:github_asset_id",component:()=>mn(()=>import("./PreviewSharePage-Hyw0Tb6U.js"),__vite__mapDeps([14,2,10,3]),import.meta.url),beforeEnter(e,t,n){var o;const r=(o=String(e.params.github_asset_id).match(/^\d+/))==null?void 0:o[0];return r?e.params.github_asset_id===r?n():n("/s/"+r):n({path:"/404"})}},{path:"/selector",component:()=>mn(()=>import("./SelectorPage-D1_qZf8a.js"),[],import.meta.url)},{path:"/:pathMatch(.*)*",component:()=>mn(()=>import("./_404Page-WDc2H4Hg.js"),[],import.meta.url)}]}),Vw={hash:"b94c0d48da8918e02ca6034d8e41e9ebca5fe857",date:"2024-10-23T22:06:30+08:00",message:"fix: multi focus node",refs:"grafted, HEAD -> main, origin/main",body:"",author_name:"二刺螈",author_email:"i@songe.li"},Uw=`GIT commit
565
565
  `+Object.entries(Vw).filter(([e,t])=>String(t||"").trim()).map(([e,t])=>e+": "+t).join(`
566
566
  `),Kw=document.querySelector("#app");let qc=!1;Nd.beforeEach(async(e,t,n)=>{qc||(await Promise.all($a).catch(console.error),qc=!0),n()});const jd=Qg(Nw);jd.use(Nd);jd.mount(Kw);console.log(Uw);export{p1 as $,ta as A,la as B,no as C,ag as D,Ye as E,tr as F,ft as G,ut as H,nt as I,mC as J,mt as K,Ht as L,kh as M,Sa as N,Qw as O,Sc as P,Wn as Q,Zs as R,fo as S,Ft as T,Ld as U,Kc as V,_o as W,CC as X,eC as Y,Wc as Z,O1 as _,we as a,It as a$,Oi as a0,jt as a1,Yx as a2,wo as a3,oC as a4,Bv as a5,gs as a6,ul as a7,Ox as a8,vf as a9,i1 as aA,Qn as aB,hi as aC,bC as aD,Jw as aE,jc as aF,wC as aG,Yw as aH,Fd as aI,mn as aJ,yd as aK,$x as aL,pa as aM,Es as aN,Dd as aO,SC as aP,di as aQ,Mw as aR,_C as aS,Wo as aT,Vo as aU,kw as aV,Ef as aW,jn as aX,Kt as aY,_t as aZ,an as a_,si as aa,Ke as ab,cv as ac,iC as ad,hd as ae,sC as af,ha as ag,fC as ah,l1 as ai,vd as aj,ga as ak,Cf as al,qn as am,yo as an,rC as ao,da as ap,Sl as aq,hC as ar,Jr as as,Lu as at,ti as au,Ip as av,Vs as aw,Us as ax,xp as ay,Xw as az,ce as b,Si as b$,Ri as b0,Kl as b1,fr as b2,Wx as b3,bd as b4,El as b5,pd as b6,_l as b7,$f as b8,Xv as b9,Ca as bA,d0 as bB,ai as bC,jm as bD,yr as bE,j0 as bF,Qm as bG,xo as bH,ed as bI,dr as bJ,Ti as bK,gc as bL,Xf as bM,xr as bN,Qf as bO,br as bP,Vn as bQ,Kf as bR,Uf as bS,Is as bT,Vf as bU,zy as bV,Wm as bW,lC as bX,Pm as bY,uv as bZ,ln as b_,fa as ba,cC as bb,dC as bc,ua as bd,pC as be,Yv as bf,ii as bg,Kv as bh,qv as bi,Gl as bj,cn as bk,lo as bl,Fs as bm,Rf as bn,vo as bo,zl as bp,uC as bq,Pv as br,Jv as bs,om as bt,zu as bu,Bu as bv,xa as bw,mr as bx,h0 as by,Gf as bz,Dr as c,Rs as c0,nC as c1,ct as c2,sp as c3,Ie as c4,Ar as c5,Vy as c6,zr as c7,ss as c8,Co as c9,qx as ca,zh as cb,qw as cc,wr as cd,Ea as ce,C1 as cf,y1 as cg,Wv as ch,Nv as ci,S1 as cj,gC as ck,vC as cl,md as cm,bc as cn,Px as co,Tx as cp,$1 as cq,Qg as cr,v1 as cs,Kw as ct,xC as cu,yC as cv,Sr as d,J as e,_e as f,Ps as g,Xe as h,ui as i,kt as j,ba as k,Pf as l,le as m,Ee as n,wl as o,tC as p,Cr as q,be as r,fv as s,Wt as t,Un as u,F as v,Dt as w,Mx as x,Qe as y,Zw as z};
567
- //# sourceMappingURL=index-KktKH_r0.js.map
567
+ //# sourceMappingURL=index-CO1qYhnZ.js.map