index-legacy.dd465861.js 3.8 KB

1
  1. !function(){function n(n,t){var o="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!o){if(Array.isArray(n)||(o=function(n,t){if(!n)return;if("string"==typeof n)return e(n,t);var o=Object.prototype.toString.call(n).slice(8,-1);"Object"===o&&n.constructor&&(o=n.constructor.name);if("Map"===o||"Set"===o)return Array.from(n);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return e(n,t)}(n))||t&&n&&"number"==typeof n.length){o&&(n=o);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,f=!1;return{s:function(){o=o.call(n)},n:function(){var n=o.next();return u=n.done,n},e:function(n){f=!0,a=n},f:function(){try{u||null==o.return||o.return()}finally{if(f)throw a}}}}function e(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,o=new Array(e);t<e;t++)o[t]=n[t];return o}System.register(["./index-legacy.db49cff7.js","./ResizeObserver.es-legacy.42c87f31.js"],(function(e){"use strict";var t,o,r,i,a,u,f;return{setters:[function(n){t=n.i,o=n.a,r=n.n,i=n.t},function(n){a=n.$,u=n.U,f=n.aL}],execute:function(){function l(n){var e,t=f(n);return null!=(e=null==t?void 0:t.$el)?e:t}e({a:c,b:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.window,t=void 0===e?v:e;if(!t)return{x:u(0),y:u(0)};var o=u(t.pageXOffset),r=u(t.pageYOffset);return c("scroll",(function(){o.value=t.pageXOffset,r.value=t.pageYOffset}),{capture:!1,passive:!0}),{x:o,y:r}},c:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.window,t=void 0===e?v:e,o=null==t?void 0:t.navigator,r=Boolean(o&&"connection"in o),i=u(!0),a=u(!1),f=u(void 0),l=u(void 0),d=u(void 0),s=u(void 0),p=u(void 0),w=u(void 0),y=u("unknown"),g=r&&o.connection;function b(){o&&(i.value=o.onLine,f.value=i.value?void 0:Date.now(),l.value=i.value?Date.now():void 0,g&&(d.value=g.downlink,s.value=g.downlinkMax,w.value=g.effectiveType,p.value=g.rtt,a.value=g.saveData,y.value=g.type))}t&&(c(t,"offline",(function(){i.value=!1,f.value=Date.now()})),c(t,"online",(function(){i.value=!0,l.value=Date.now()})));g&&c(g,"change",b,!1);return b(),{isSupported:r,isOnline:i,saveData:a,offlineAt:f,onlineAt:l,downlink:d,downlinkMax:s,effectiveType:w,rtt:p,type:y}},u:function(n,e){var t,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=o,u=r.window,f=void 0===u?v:u,c=h(r,["window"]),d=f&&"ResizeObserver"in f,s=function(){t&&(t.disconnect(),t=void 0)},p=a((function(){return l(n)}),(function(n){s(),d&&f&&n&&(t=new ResizeObserver(e)).observe(n,c)}),{immediate:!0,flush:"post"}),w=function(){s(),p()};return i(w),{isSupported:d,stop:w}}});var v=t?window:void 0;function c(){for(var n,e,t,u,f=arguments.length,c=new Array(f),d=0;d<f;d++)c[d]=arguments[d];if(o(c[0])?(e=c[0],t=c[1],u=c[2],n=v):(n=c[0],e=c[1],t=c[2],u=c[3]),!n)return r;var s=r,p=a((function(){return l(n)}),(function(n){s(),n&&(n.addEventListener(e,t,u),s=function(){n.removeEventListener(e,t,u),s=r})}),{immediate:!0,flush:"post"}),w=function(){p(),s()};return i(w),w}t&&window.document,t&&window.navigator,t&&window.location;var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s="__vueuse_ssr_handlers__";d[s]=d[s]||{},d[s];var p,w,y=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,h=function(e,t){var o={};for(var r in e)g.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(null!=e&&y){var i,a=n(y(e));try{for(a.s();!(i=a.n()).done;){r=i.value;t.indexOf(r)<0&&b.call(e,r)&&(o[r]=e[r])}}catch(u){a.e(u)}finally{a.f()}}return o};(w=p||(p={})).UP="UP",w.RIGHT="RIGHT",w.DOWN="DOWN",w.LEFT="LEFT",w.NONE="NONE"}}}))}();