PageSourceSearch

https://www.etmall.com.tw/Resource/Bundle/dayjs-duration.js?v=a89e93f2ccf4c2a8d180

js etmall.com.tw collected 2026-09-24 09:49:54 UTC 3,610 bytes, 1 lines download raw bytes

1(self.webpackChunkComponents=self.webpackChunkComponents||[]).push([[7343],{43522:function(M){(function(l,d){M.exports=d()})(this,function(){"use strict";var l,d,k=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,h={years:31536e6,months:2592e6,days:864e5,hours:36e5,minutes:6e4,seconds:1e3,milliseconds:1,weeks:6048e5},f=function(o){return o instanceof m},c=function(o,t,s){return new m(o,s,t.$l)},a=function(o){return d.p(o)+"s"},m=function(){function o(s,n,e){var i=this;if(this.$d={},this.$l=e,n)return c(s*h[a(n)],this);if(typeof s=="number")return this.$ms=s,this.parseFromMilliseconds(),this;if(typeof s=="object")return Object.keys(s).forEach(function(u){i.$d[a(u)]=s[u]}),this.calMilliseconds(),this;if(typeof s=="string"){var r=s.match(k);if(r)return this.$d.years=r[2],this.$d.months=r[3],this.$d.weeks=r[4],this.$d.days=r[5],this.$d.hours=r[6],this.$d.minutes=r[7],this.$d.seconds=r[8],this.calMilliseconds(),this}return this}var t=o.prototype;return t.calMilliseconds=function(){var s=this;this.$ms=Object.keys(this.$d).reduce(function(n,e){return n+(s.$d[e]||0)*h[e]},0)},t.parseFromMilliseconds=function(){var s=this.$ms;this.$d.years=Math.floor(s/31536e6),s%=31536e6,this.$d.months=Math.floor(s/2592e6),s%=2592e6,this.$d.days=Math.floor(s/864e5),s%=864e5,this.$d.hours=Math.floor(s/36e5),s%=36e5,this.$d.minutes=Math.floor(s/6e4),s%=6e4,this.$d.seconds=Math.floor(s/1e3),s%=1e3,this.$d.milliseconds=s},t.toISOString=function(){var s=this.$d.years?this.$d.years+"Y":"",n=this.$d.months?this.$d.months+"M":"",e=+this.$d.days||0;this.$d.weeks&&(e+=7*this.$d.weeks);var i=e?e+"D":"",r=this.$d.hours?this.$d.hours+"H":"",u=this.$d.minutes?this.$d.minutes+"M":"",$=this.$d.seconds||0;this.$d.milliseconds&&($+=this.$d.milliseconds/1e3);var y=$?$+"S":"",p="P"+s+n+i+(r||u||y?"T":"")+r+u+y;return p==="P"?"P0D":p},t.toJSON=function(){return this.toISOString()},t.as=function(s){return this.$ms/h[a(s)]},t.get=function(s){var n=this.$ms,e=a(s);return e==="milliseconds"?n%=1e3:n=e==="weeks"?Math.floor(n/h[e]):this.$d[e],n},t.add=function(s,n,e){var i;return i=n?s*h[a(n)]:f(s)?s.$ms:c(s,this).$ms,c(this.$ms+i*(e?-1:1),this)},t.subtract=function(s,n){return this.add(s,n,!0)},t.locale=function(s){var n=this.clone();return n.$l=s,n},t.clone=function(){return c(this.$ms,this)},t.humanize=function(s){return l().add(this.$ms,"ms").locale(this.$l).fromNow(!s)},t.milliseconds=function(){return this.get("milliseconds")},t.asMilliseconds=function(){return this.as("milliseconds")},t.seconds=function(){return this.get("seconds")},t.asSeconds=function(){return this.as("seconds")},t.minutes=function(){return this.get("minutes")},t.asMinutes=function(){return this.as("minutes")},t.hours=function(){return this.get("hours")},t.asHours=function(){return this.as("hours")},t.days=function(){return this.get("days")},t.asDays=function(){return this.as("days")},t.weeks=function(){return this.get("weeks")},t.asWeeks=function(){return this.as("weeks")},t.months=function(){return this.get("months")},t.asMonths=function(){return this.as("months")},t.years=function(){return this.get("years")},t.asYears=function(){return this.as("years")},o}();return function(o,t,s){l=s,d=s().$utils(),s.duration=function(i,r){var u=s.locale();return c(i,{$l:u},r)},s.isDuration=f;var n=t.prototype.add,e=t.prototype.subtract;t.prototype.add=function(i,r){return f(i)&&(i=i.asMilliseconds()),n.bind(this)(i,r)},t.prototype.subtract=function(i,r){return f(i)&&(i=i.asMilliseconds()),e.bind(this)(i,r)}}})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.