UNPKG

bt-tools

Version:
1 lines 20.2 kB
!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports.BtTools=r():t.BtTools=r()}(self,function(){return(()=>{var e={3099:t=>{t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},9670:(t,r,e)=>{var n=e(111);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},8533:(t,r,e)=>{"use strict";var n=e(2092).forEach,e=e(9341)("forEach");t.exports=e?[].forEach:function(t){return n(this,t,1<arguments.length?arguments[1]:void 0)}},1318:(t,r,e)=>{var a=e(5656),f=e(7466),s=e(1400),e=function(u){return function(t,r,e){var n,o=a(t),i=f(o.length),c=s(e,i);if(u&&r!=r){for(;c<i;)if((n=o[c++])!=n)return!0}else for(;c<i;c++)if((u||c in o)&&o[c]===r)return u||c||0;return!u&&-1}};t.exports={includes:e(!0),indexOf:e(!1)}},2092:(t,r,e)=>{var O=e(9974),S=e(8361),w=e(7908),x=e(7466),j=e(5417),P=[].push,e=function(p){var y=1==p,v=2==p,g=3==p,h=4==p,b=6==p,d=7==p,m=5==p||b;return function(t,r,e,n){for(var o,i,c=w(t),u=S(c),a=O(r,e,3),f=x(u.length),s=0,n=n||j,l=y?n(t,f):v||d?n(t,0):void 0;s<f;s++)if((m||s in u)&&(i=a(o=u[s],s,c),p))if(y)l[s]=i;else if(i)switch(p){case 3:return!0;case 5:return o;case 6:return s;case 2:P.call(l,o)}else switch(p){case 4:return!1;case 7:P.call(l,o)}return b?-1:g||h?h:l}};t.exports={forEach:e(0),map:e(1),filter:e(2),some:e(3),every:e(4),find:e(5),findIndex:e(6),filterOut:e(7)}},1194:(t,r,e)=>{var n=e(7293),o=e(5112),i=e(7392),c=o("species");t.exports=function(r){return 51<=i||!n(function(){var t=[];return(t.constructor={})[c]=function(){return{foo:1}},1!==t[r](Boolean).foo})}},9341:(t,r,e)=>{"use strict";var n=e(7293);t.exports=function(t,r){var e=[][t];return!!e&&n(function(){e.call(null,r||function(){throw 1},1)})}},5417:(t,r,e)=>{var n=e(111),o=e(3157),i=e(5112)("species");t.exports=function(t,r){var e;return new(void 0===(e=o(t)&&("function"==typeof(e=t.constructor)&&(e===Array||o(e.prototype))||n(e)&&null===(e=e[i]))?void 0:e)?Array:e)(0===r?0:r)}},4326:t=>{var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},9920:(t,r,e)=>{var u=e(6656),a=e(3887),f=e(1236),s=e(3070);t.exports=function(t,r){for(var e=a(r),n=s.f,o=f.f,i=0;i<e.length;i++){var c=e[i];u(t,c)||n(t,c,o(r,c))}}},8880:(t,r,e)=>{var n=e(9781),o=e(3070),i=e(9114);t.exports=n?function(t,r,e){return o.f(t,r,i(1,e))}:function(t,r,e){return t[r]=e,t}},9114:t=>{t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},6135:(t,r,e)=>{"use strict";var n=e(7593),o=e(3070),i=e(9114);t.exports=function(t,r,e){r=n(r);r in t?o.f(t,r,i(0,e)):t[r]=e}},7235:(t,r,e)=>{var n=e(857),o=e(6656),i=e(6061),c=e(3070).f;t.exports=function(t){var r=n.Symbol||(n.Symbol={});o(r,t)||c(r,t,{value:i.f(t)})}},9781:(t,r,e)=>{e=e(7293);t.exports=!e(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},317:(t,r,e)=>{var n=e(7854),e=e(111),o=n.document,i=e(o)&&e(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},8324:t=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8113:(t,r,e)=>{e=e(5005);t.exports=e("navigator","userAgent")||""},7392:(t,r,e)=>{var n,o,i=e(7854),e=e(8113),i=i.process,i=i&&i.versions,i=i&&i.v8;i?o=(n=i.split("."))[0]<4?1:n[0]+n[1]:e&&(!(n=e.match(/Edge\/(\d+)/))||74<=n[1])&&(n=e.match(/Chrome\/(\d+)/))&&(o=n[1]),t.exports=o&&+o},748:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:(t,r,e)=>{var f=e(7854),s=e(1236).f,l=e(8880),p=e(1320),y=e(3505),v=e(9920),g=e(4705);t.exports=function(t,r){var e,n,o,i=t.target,c=t.global,u=t.stat,a=c?f:u?f[i]||y(i,{}):(f[i]||{}).prototype;if(a)for(e in r){if(n=r[e],o=t.noTargetGet?(o=s(a,e))&&o.value:a[e],!g(c?e:i+(u?".":"#")+e,t.forced)&&void 0!==o){if(typeof n==typeof o)continue;v(n,o)}(t.sham||o&&o.sham)&&l(n,"sham",!0),p(a,e,n,t)}}},7293:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},9974:(t,r,e)=>{var i=e(3099);t.exports=function(n,o,t){if(i(n),void 0===o)return n;switch(t){case 0:return function(){return n.call(o)};case 1:return function(t){return n.call(o,t)};case 2:return function(t,r){return n.call(o,t,r)};case 3:return function(t,r,e){return n.call(o,t,r,e)}}return function(){return n.apply(o,arguments)}}},5005:(t,r,e)=>{function n(t){return"function"==typeof t?t:void 0}var o=e(857),i=e(7854);t.exports=function(t,r){return arguments.length<2?n(o[t])||n(i[t]):o[t]&&o[t][r]||i[t]&&i[t][r]}},7854:(t,r,e)=>{function n(t){return t&&t.Math==Math&&t}t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e.g&&e.g)||function(){return this}()||Function("return this")()},6656:(t,r,e)=>{var n=e(7908),o={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,r){return o.call(n(t),r)}},3501:t=>{t.exports={}},490:(t,r,e)=>{e=e(5005);t.exports=e("document","documentElement")},4664:(t,r,e)=>{var n=e(9781),o=e(7293),i=e(317);t.exports=!n&&!o(function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},8361:(t,r,e)=>{var n=e(7293),o=e(4326),i="".split;t.exports=n(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},2788:(t,r,e)=>{var e=e(5465),n=Function.toString;"function"!=typeof e.inspectSource&&(e.inspectSource=function(t){return n.call(t)}),t.exports=e.inspectSource},9909:(t,r,e)=>{var n,o,i,c,u,a,f,s,l=e(8536),p=e(7854),y=e(111),v=e(8880),g=e(6656),h=e(5465),b=e(6200),e=e(3501),d="Object already initialized",p=p.WeakMap;f=l||h.state?(n=h.state||(h.state=new p),o=n.get,i=n.has,c=n.set,u=function(t,r){if(i.call(n,t))throw new TypeError(d);return r.facade=t,c.call(n,t,r),r},a=function(t){return o.call(n,t)||{}},function(t){return i.call(n,t)}):(e[s=b("state")]=!0,u=function(t,r){if(g(t,s))throw new TypeError(d);return r.facade=t,v(t,s,r),r},a=function(t){return g(t,s)?t[s]:{}},function(t){return g(t,s)}),t.exports={set:u,get:a,has:f,enforce:function(t){return f(t)?a(t):u(t,{})},getterFor:function(e){return function(t){var r;if(!y(t)||(r=a(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},3157:(t,r,e)=>{var n=e(4326);t.exports=Array.isArray||function(t){return"Array"==n(t)}},4705:(t,r,e)=>{var n=e(7293),o=/#|\.prototype\./,e=function(t,r){t=c[i(t)];return t==a||t!=u&&("function"==typeof r?n(r):!!r)},i=e.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=e.data={},u=e.NATIVE="N",a=e.POLYFILL="P";t.exports=e},111:t=>{t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},1913:t=>{t.exports=!1},133:(t,r,e)=>{var n=e(7392),e=e(7293);t.exports=!!Object.getOwnPropertySymbols&&!e(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41})},8536:(t,r,e)=>{var n=e(7854),e=e(2788),n=n.WeakMap;t.exports="function"==typeof n&&/native code/.test(e(n))},30:(t,r,e)=>{function n(){}function o(t){return"<script>"+t+"</"+y+">"}var i,c=e(9670),u=e(6048),a=e(748),f=e(3501),s=e(490),l=e(317),e=e(6200),p="prototype",y="script",v=e("IE_PROTO"),g=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t;g=i?function(t){t.write(o("")),t.close();var r=t.parentWindow.Object;return t=null,r}(i):((t=l("iframe")).style.display="none",s.appendChild(t),t.src=String("javascript:"),(t=t.contentWindow.document).open(),t.write(o("document.F=Object")),t.close(),t.F);for(var r=a.length;r--;)delete g[p][a[r]];return g()};f[v]=!0,t.exports=Object.create||function(t,r){var e;return null!==t?(n[p]=c(t),e=new n,n[p]=null,e[v]=t):e=g(),void 0===r?e:u(e,r)}},6048:(t,r,e)=>{var n=e(9781),c=e(3070),u=e(9670),a=e(1956);t.exports=n?Object.defineProperties:function(t,r){u(t);for(var e,n=a(r),o=n.length,i=0;i<o;)c.f(t,e=n[i++],r[e]);return t}},3070:(t,r,e)=>{var n=e(9781),o=e(4664),i=e(9670),c=e(7593),u=Object.defineProperty;r.f=n?u:function(t,r,e){if(i(t),r=c(r,!0),i(e),o)try{return u(t,r,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},1236:(t,r,e)=>{var n=e(9781),o=e(5296),i=e(9114),c=e(5656),u=e(7593),a=e(6656),f=e(4664),s=Object.getOwnPropertyDescriptor;r.f=n?s:function(t,r){if(t=c(t),r=u(r,!0),f)try{return s(t,r)}catch(t){}if(a(t,r))return i(!o.f.call(t,r),t[r])}},1156:(t,r,e)=>{var n=e(5656),o=e(8006).f,i={}.toString,c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return c&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return c.slice()}}(t):o(n(t))}},8006:(t,r,e)=>{var n=e(6324),o=e(748).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},5181:(t,r)=>{r.f=Object.getOwnPropertySymbols},6324:(t,r,e)=>{var c=e(6656),u=e(5656),a=e(1318).indexOf,f=e(3501);t.exports=function(t,r){var e,n=u(t),o=0,i=[];for(e in n)!c(f,e)&&c(n,e)&&i.push(e);for(;r.length>o;)c(n,e=r[o++])&&(~a(i,e)||i.push(e));return i}},1956:(t,r,e)=>{var n=e(6324),o=e(748);t.exports=Object.keys||function(t){return n(t,o)}},5296:(t,r)=>{"use strict";var e={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!e.call({1:2},1);r.f=o?function(t){t=n(this,t);return!!t&&t.enumerable}:e},3887:(t,r,e)=>{var n=e(5005),o=e(8006),i=e(5181),c=e(9670);t.exports=n("Reflect","ownKeys")||function(t){var r=o.f(c(t)),e=i.f;return e?r.concat(e(t)):r}},857:(t,r,e)=>{e=e(7854);t.exports=e},1320:(t,r,e)=>{var u=e(7854),a=e(8880),f=e(6656),s=e(3505),n=e(2788),e=e(9909),o=e.get,l=e.enforce,p=String(String).split("String");(t.exports=function(t,r,e,n){var o=!!n&&!!n.unsafe,i=!!n&&!!n.enumerable,c=!!n&&!!n.noTargetGet;"function"==typeof e&&("string"!=typeof r||f(e,"name")||a(e,"name",r),(n=l(e)).source||(n.source=p.join("string"==typeof r?r:""))),t!==u?(o?!c&&t[r]&&(i=!0):delete t[r],i?t[r]=e:a(t,r,e)):i?t[r]=e:s(r,e)})(Function.prototype,"toString",function(){return"function"==typeof this&&o(this).source||n(this)})},4488:t=>{t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},3505:(t,r,e)=>{var n=e(7854),o=e(8880);t.exports=function(r,e){try{o(n,r,e)}catch(t){n[r]=e}return e}},8003:(t,r,e)=>{var n=e(3070).f,o=e(6656),i=e(5112)("toStringTag");t.exports=function(t,r,e){t&&!o(t=e?t:t.prototype,i)&&n(t,i,{configurable:!0,value:r})}},6200:(t,r,e)=>{var n=e(2309),o=e(9711),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},5465:(t,r,e)=>{var n=e(7854),o=e(3505),e="__core-js_shared__",e=n[e]||o(e,{});t.exports=e},2309:(t,r,e)=>{var n=e(1913),o=e(5465);(t.exports=function(t,r){return o[t]||(o[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.15.2",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},1400:(t,r,e)=>{var n=e(9958),o=Math.max,i=Math.min;t.exports=function(t,r){t=n(t);return t<0?o(t+r,0):i(t,r)}},5656:(t,r,e)=>{var n=e(8361),o=e(4488);t.exports=function(t){return n(o(t))}},9958:t=>{var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(0<t?e:r)(t)}},7466:(t,r,e)=>{var n=e(9958),o=Math.min;t.exports=function(t){return 0<t?o(n(t),9007199254740991):0}},7908:(t,r,e)=>{var n=e(4488);t.exports=function(t){return Object(n(t))}},7593:(t,r,e)=>{var o=e(111);t.exports=function(t,r){if(!o(t))return t;var e,n;if(r&&"function"==typeof(e=t.toString)&&!o(n=e.call(t)))return n;if("function"==typeof(e=t.valueOf)&&!o(n=e.call(t)))return n;if(!r&&"function"==typeof(e=t.toString)&&!o(n=e.call(t)))return n;throw TypeError("Can't convert object to primitive value")}},9711:t=>{var r=0,e=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++r+e).toString(36)}},3307:(t,r,e)=>{e=e(133);t.exports=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},6061:(t,r,e)=>{e=e(5112);r.f=e},5112:(t,r,e)=>{var n=e(7854),o=e(2309),i=e(6656),c=e(9711),u=e(133),e=e(3307),a=o("wks"),f=n.Symbol,s=e?f:f&&f.withoutSetter||c;t.exports=function(t){return i(a,t)&&(u||"string"==typeof a[t])||(u&&i(f,t)?a[t]=f[t]:a[t]=s("Symbol."+t)),a[t]}},7327:(t,r,e)=>{"use strict";var n=e(2109),o=e(2092).filter;n({target:"Array",proto:!0,forced:!e(1194)("filter")},{filter:function(t){return o(this,t,1<arguments.length?arguments[1]:void 0)}})},9554:(t,r,e)=>{"use strict";var n=e(2109),e=e(8533);n({target:"Array",proto:!0,forced:[].forEach!=e},{forEach:e})},3843:(t,r,e)=>{e(2109)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},3710:(t,r,e)=>{var n=e(1320),o=Date.prototype,i="Invalid Date",e="toString",c=o[e],u=o.getTime;new Date(NaN)+""!=i&&n(o,e,function(){var t=u.call(this);return t==t?c.call(this):i})},3321:(t,r,e)=>{var n=e(2109),o=e(9781);n({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:e(6048)})},9070:(t,r,e)=>{var n=e(2109),o=e(9781);n({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:e(3070).f})},5003:(t,r,e)=>{var n=e(2109),o=e(7293),i=e(5656),c=e(1236).f,e=e(9781),o=o(function(){c(1)});n({target:"Object",stat:!0,forced:!e||o,sham:!e},{getOwnPropertyDescriptor:function(t,r){return c(i(t),r)}})},9337:(t,r,e)=>{var n=e(2109),o=e(9781),a=e(3887),f=e(5656),s=e(1236),l=e(6135);n({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var r,e,n=f(t),o=s.f,i=a(n),c={},u=0;i.length>u;)void 0!==(e=o(n,r=i[u++]))&&l(c,r,e);return c}})},7941:(t,r,e)=>{var n=e(2109),o=e(7908),i=e(1956);n({target:"Object",stat:!0,forced:e(7293)(function(){i(1)})},{keys:function(t){return i(o(t))}})},2526:(t,r,e)=>{"use strict";function n(t,r){var e=$[t]=S(K[B]);return H(e,{type:z,tag:t,description:r}),f||(e.description=r),e}function o(r,t){h(r);var e=d(t),t=w(e).concat(at(e));return R(t,function(t){f&&!ut.call(e,t)||ct(r,t,e[t])}),r}var i=e(2109),c=e(7854),u=e(5005),a=e(1913),f=e(9781),s=e(133),l=e(3307),p=e(7293),y=e(6656),v=e(3157),g=e(111),h=e(9670),b=e(7908),d=e(5656),m=e(7593),O=e(9114),S=e(30),w=e(1956),x=e(8006),j=e(1156),P=e(5181),T=e(1236),E=e(3070),L=e(5296),D=e(8880),M=e(1320),k=e(2309),N=e(6200),A=e(3501),C=e(9711),I=e(5112),F=e(6061),_=e(7235),G=e(8003),V=e(9909),R=e(2092).forEach,W=N("hidden"),z="Symbol",B="prototype",N=I("toPrimitive"),H=V.set,J=V.getterFor(z),q=Object[B],K=c.Symbol,Q=u("JSON","stringify"),X=T.f,Y=E.f,U=j.f,Z=L.f,$=k("symbols"),tt=k("op-symbols"),rt=k("string-to-symbol-registry"),et=k("symbol-to-string-registry"),k=k("wks"),c=c.QObject,nt=!c||!c[B]||!c[B].findChild,ot=f&&p(function(){return 7!=S(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a})?function(t,r,e){var n=X(q,r);n&&delete q[r],Y(t,r,e),n&&t!==q&&Y(q,r,n)}:Y,it=l?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof K},ct=function(t,r,e){t===q&&ct(tt,r,e),h(t);r=m(r,!0);return h(e),y($,r)?(e.enumerable?(y(t,W)&&t[W][r]&&(t[W][r]=!1),e=S(e,{enumerable:O(0,!1)})):(y(t,W)||Y(t,W,O(1,{})),t[W][r]=!0),ot(t,r,e)):Y(t,r,e)},ut=function(t){var r=m(t,!0),t=Z.call(this,r);return!(this===q&&y($,r)&&!y(tt,r))&&(!(t||!y(this,r)||!y($,r)||y(this,W)&&this[W][r])||t)},c=function(t,r){var e=d(t),t=m(r,!0);if(e!==q||!y($,t)||y(tt,t)){r=X(e,t);return!r||!y($,t)||y(e,W)&&e[W][t]||(r.enumerable=!0),r}},l=function(t){var t=U(d(t)),r=[];return R(t,function(t){y($,t)||y(A,t)||r.push(t)}),r},at=function(t){var r=t===q,t=U(r?tt:d(t)),e=[];return R(t,function(t){!y($,t)||r&&!y(q,t)||e.push($[t])}),e};s||(M((K=function(){if(this instanceof K)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,r=C(t),e=function(t){this===q&&e.call(tt,t),y(this,W)&&y(this[W],r)&&(this[W][r]=!1),ot(this,r,O(1,t))};return f&&nt&&ot(q,r,{configurable:!0,set:e}),n(r,t)})[B],"toString",function(){return J(this).tag}),M(K,"withoutSetter",function(t){return n(C(t),t)}),L.f=ut,E.f=ct,T.f=c,x.f=j.f=l,P.f=at,F.f=function(t){return n(I(t),t)},f&&(Y(K[B],"description",{configurable:!0,get:function(){return J(this).description}}),a||M(q,"propertyIsEnumerable",ut,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!s,sham:!s},{Symbol:K}),R(w(k),function(t){_(t)}),i({target:z,stat:!0,forced:!s},{for:function(t){var r=String(t);if(y(rt,r))return rt[r];t=K(r);return rt[r]=t,et[t]=r,t},keyFor:function(t){if(!it(t))throw TypeError(t+" is not a symbol");if(y(et,t))return et[t]},useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),i({target:"Object",stat:!0,forced:!s,sham:!f},{create:function(t,r){return void 0===r?S(t):o(S(t),r)},defineProperty:ct,defineProperties:o,getOwnPropertyDescriptor:c}),i({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:l,getOwnPropertySymbols:at}),i({target:"Object",stat:!0,forced:p(function(){P.f(1)})},{getOwnPropertySymbols:function(t){return P.f(b(t))}}),Q&&i({target:"JSON",stat:!0,forced:!s||p(function(){var t=K();return"[null]"!=Q([t])||"{}"!=Q({a:t})||"{}"!=Q(Object(t))})},{stringify:function(t,r,e){for(var n,o=[t],i=1;i<arguments.length;)o.push(arguments[i++]);if((g(n=r)||void 0!==t)&&!it(t))return v(r)||(r=function(t,r){if("function"==typeof n&&(r=n.call(this,t,r)),!it(r))return r}),o[1]=r,Q.apply(null,o)}}),K[B][N]||D(K[B],N,K[B].valueOf),G(K,z),A[W]=!0},4747:(t,r,e)=>{var n,o=e(7854),i=e(8324),c=e(8533),u=e(8880);for(n in i){var a=o[n],a=a&&a.prototype;if(a&&a.forEach!==c)try{u(a,"forEach",c)}catch(t){a.forEach=c}}}},n={};function u(t){var r=n[t];if(void 0!==r)return r.exports;r=n[t]={exports:{}};return e[t](r,r.exports,u),r.exports}u.d=(t,r)=>{for(var e in r)u.o(r,e)&&!u.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:r[e]})},u.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),u.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r),u.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var a={};return(()=>{"use strict";u.r(a),u.d(a,{default:()=>t});u(7941),u(2526),u(7327),u(5003),u(9554),u(4747),u(9337),u(3321),u(9070);function o(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}u(3843),u(3710);var i={expire:2592e5};function r(r,t){var e,n=Object.keys(r);return Object.getOwnPropertySymbols&&(e=Object.getOwnPropertySymbols(r),t&&(e=e.filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})),n.push.apply(n,e)),n}function c(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?r(Object(o),!0).forEach(function(t){var r,e;r=n,t=o[e=t],e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(o,t))})}return n}const t=new(function(){function t(){!function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=i}var r,e,n;return r=t,(e=[{key:"set",value:function(t,r,e){e&&(this.options=c(c({},this.options),{},{expire:e}));r={data:r,expire:Date.now()};"0"===String(e)&&delete r.expire;try{localStorage.setItem(t,JSON.stringify(r)),console.info("[存storage]-[key]-[value]>>>:",t,r)}catch(t){console.info("[存storage]:失败")}}},{key:"get",value:function(t){if(r=localStorage.getItem(t)){var r,e=((r=JSON.parse(r))||{}).expire;return e&&e+this.options.expire<Date.now()?(console.info("[数据已过期]>>"),void this.clear(t)):r}}},{key:"clear",value:function(t){if(t)try{localStorage.removeItem(t),console.info("[移除storage]")}catch(t){console.info("[移除error]>>",t)}}}])&&o(r.prototype,e),n&&o(r,n),t}())})(),a})()});