SafetyScreen-ui/node_modules/vue-meta/dist/vue-meta.min.js

11 lines
15 KiB
JavaScript
Raw Normal View History

2025-03-29 19:33:58 +08:00
/**
* vue-meta v2.4.0
* (c) 2020
* - Declan de Wet
* - Sébastien Chopin (@Atinux)
* - Pim (@pimlie)
* - All the amazing contributors
* @license MIT
*/
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n=n||self).VueMeta=t()}(this,(function(){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function t(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=new Array(t);e<t;e++)r[e]=n[e];return r}function e(n,e){var r;if("undefined"==typeof Symbol||null==n[Symbol.iterator]){if(Array.isArray(n)||(r=function(n,e){if(n){if("string"==typeof n)return t(n,e);var r=Object.prototype.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(n,e):void 0}}(n))||e&&n&&"number"==typeof n.length){r&&(n=r);var i=0,o=function(){};return{s:o,n:function(){return i>=n.length?{done:!0}:{done:!1,value:n[i++]}},e:function(n){throw n},f:o}}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 u,a=!0,f=!1;return{s:function(){r=n[Symbol.iterator]()},n:function(){var n=r.next();return a=n.done,n},e:function(n){f=!0,u=n},f:function(){try{a||null==r.return||r.return()}finally{if(f)throw u}}}}function r(n){return Array.isArray(n)}function i(n){return void 0===n}function o(t){return"object"===n(t)}function u(t){return"object"===n(t)&&null!==t}function a(n){return"function"==typeof n}var f=(function(){try{return!i(window)}catch(n){return!1}}()?window:global).console||{};function c(n){f&&f.warn&&f.warn(n)}var s=function(n){return c("".concat(n," is not supported in browser builds"))},d={title:void 0,titleChunk:"",titleTemplate:"%s",htmlAttrs:{},bodyAttrs:{},headAttrs:{},base:[],link:[],meta:[],style:[],script:[],noscript:[],__dangerouslyDisableSanitizers:[],__dangerouslyDisableSanitizersByTagID:{}},l="metaInfo",v="data-vue-meta",m="data-vue-meta-server-rendered",y="vmid",h="content",p="template",b=!0,g=10,w="ssr",A=Object.keys(d),j=[A[12],A[13]],I=[A[1],A[2],"changed"].concat(j),O=[A[3],A[4],A[5]],T=["link","style","script"],N=["once","skip","template"],S=["body","pbody"],k=["allowfullscreen","amp","amp-boilerplate","async","autofocus","autoplay","checked","compact","controls","declare","default","defaultchecked","defaultmuted","defaultselected","defer","disabled","enabled","formnovalidate","hidden","indeterminate","inert","ismap","itemscope","loop","multiple","muted","nohref","noresize","noshade","novalidate","nowrap","open","pauseonexit","readonly","required","reversed","scoped","seamless","selected","sortable","truespeed","typemustmatch","visible"],M=null;function D(n,t,e){var r=n.t;t._vueMeta.i||!t._vueMeta.o&&"watcher"!==e||(t._vueMeta.i=null),t._vueMeta.i&&!t._vueMeta.u&&function(n,t){if(!(t=void 0===t?10:t))return void n();clearTimeout(M),M=setTimeout((function(){n()}),t)}((function(){t.$meta().refresh()}),r)}function K(n,t,e){if(!Array.prototype.findIndex){for(var r=0;r<n.length;r++)if(t.call(e,n[r],r,n))return r;return-1}return n.findIndex(t,e)}function _(n){return Array.from?Array.from(n):Array.prototype.slice.call(n)}function x(n,t){if(!Array.prototype.includes){for(var e in n)if(n[e]===t)return!0;return!1}return n.includes(t)}var V=function(n,t){return(t||document).querySelectorAll(n)};function z(n,t){return n[t]||(n[t]=document.getElementsByTagName(t)[0]),n[t]}function C(n,t,e){var r=t.l,i=t.v,o=t.type,u=t.m;e=e||{};var a=["".concat(o,"[").concat(i,'="').concat(r,'"]'),"".concat(o,"[data-").concat(u,"]")].map((function(n){for(var t in e){var r=e[t],i=r&&!0!==r?'="'.concat(r,'"'):"";n+="[data-".concat(t).concat(i,"]")}return n}));return _(V(a.join(", "),n))}function E(n,t){n.removeAttribute(t)}function J(n){return(n=n||this)&&(!0===n._vueMeta||o(n._vueMeta))}function R(n,t){return n._vueMeta.u=!0,function(){return W(n,t)}}function W(n,t){if(n._vueMeta.u=!1,t||void 0===t)return n.$