vue/packages/vue-server-renderer/build.prod.js

1 line
82 KiB
JavaScript
Raw Normal View History

2021-04-08 00:25:57 +08:00
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("stream");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=t(require("he")),n=Object.freeze({});function i(e){return null==e}function o(e){return null!=e}function a(e){return!0===e}function s(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function c(e){return null!==e&&"object"==typeof e}var u=Object.prototype.toString;function l(e){return"[object Object]"===u.call(e)}function f(e){return null==e?"":Array.isArray(e)||l(e)&&e.toString===u?JSON.stringify(e,null,2):String(e)}function p(e){var t=parseFloat(e);return isNaN(t)?e:t}function d(e,t){for(var r=Object.create(null),n=e.split(","),i=0;i<n.length;i++)r[n[i]]=!0;return t?function(e){return r[e.toLowerCase()]}:function(e){return r[e]}}var v=d("slot,component",!0),h=d("key,ref,slot,slot-scope,is");var m=Object.prototype.hasOwnProperty;function y(e,t){return m.call(e,t)}function g(e){var t=Object.create(null);return function(r){return t[r]||(t[r]=e(r))}}var b=/-(\w)/g,_=g((function(e){return e.replace(b,(function(e,t){return t?t.toUpperCase():""}))})),x=g((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),w=/\B([A-Z])/g,$=g((function(e){return e.replace(w,"-$1").toLowerCase()}));function S(e,t){for(var r in t)e[r]=t[r];return e}function k(e){for(var t={},r=0;r<e.length;r++)e[r]&&S(t,e[r]);return t}function O(e,t,r){}var A=function(e,t,r){return!1},C=function(e){return e};function T(e,t){if(e===t)return!0;var r=c(e),n=c(t);if(!r||!n)return!r&&!n&&String(e)===String(t);try{var i=Array.isArray(e),o=Array.isArray(t);if(i&&o)return e.length===t.length&&e.every((function(e,r){return T(e,t[r])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||o)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(r){return T(e[r],t[r])}))}catch(e){return!1}}function j(e,t){for(var r=0;r<e.length;r++)if(T(e[r],t))return r;return-1}var F=d("accept,accept-charset,accesskey,action,align,alt,async,autocomplete,autofocus,autoplay,autosave,bgcolor,border,buffered,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,data,datetime,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,for,form,formaction,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,ismap,itemprop,keytype,kind,label,lang,language,list,loop,low,manifest,max,maxlength,media,method,GET,POST,min,multiple,email,file,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,seamless,selected,shape,size,type,text,password,sizes,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,usemap,value,width,wrap"),P={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},N={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function E(e){return e.replace(/[<>"&]/g,I)}function I(e){return N[e]||e}var M={"animation-iteration-count":!0,"border-image-outset":!0,"border-image-slice":!0,"border-image-width":!0,"box-flex":!0,"box-flex-group":!0,"box-ordinal-group":!0,"column-count":!0,columns:!0,flex:!0,"flex-grow":!0,"flex-positive":!0,"flex-shrink":!0,"flex-negative":!0,"flex-order":!0,"grid-row":!0,"grid-row-end":!0,"grid-row-span":!0,"grid-row-start":!0,"grid-column":!0,"grid-column-end":!0,"grid-column-span":!0,"grid-column-start":!0,"font-weight":!0,"line-clamp":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,"tab-size":!0,widows:!0,"z-index":!0,zoom:!0,"fill-opacity":!0,"flood-opacity":!0,"stop-opacity":!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,"stroke-miterlimit":!0,"stroke-opacity":!0,"stroke-width":!0},R=d("input,textarea,option,select,progress"),D=d("contenteditable,draggable,spellcheck"),z=d("events,caret,typing,plaintext-only"),L=function(e,t){return B(t)||"false"===t?"false":"contenteditable"===e&&z(t)?t:"true"},q=d("allowfullscreen,async,autofocus,autopl