@kvass/widgets 1.7.9 → 1.7.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,2 +1,15 @@
1
- const f="Cancel",m="Confirm",u=`
2
- Font associated with selected theme template`,g="Body font",h="Heading font",p="Preview",y="Preview not available",S="Back",k="Highlighted icons",I="Icon | Icons",T="Search in English for icon you are looking for, for example 'Helicopter'.",F="Hits",b="No icons to match your search.",w="Load all elements",$="Main title",W="Secondary title",v="Select",P="Select icon",H={cancel:f,confirm:m,"fa-pro-brands":"Brands icons","fa-pro-duotone":"Duotone icons","fa-pro-light":"Light icons","fa-pro-regular":"Regular icons","fa-pro-solid":"Solid icons",fontAssociatedWithSelectedThemeTemplate:u,fontForBody:g,fontForHeading:h,fontPreview:p,fontPreviewDisabled:y,goBack:S,highlightedIcons:k,icon:I,iconSelectWidgetHelpText:T,iconsSelectWidgetIconsFound:F,iconsSelectWidgetNoIconsMatchYourSearch:b,loadAllElements:w,primaryTitle:$,secondaryTitle:W,select:v,selectIcon:P},x="Avbryt",E="Bekreft",A="Font tilknyttet valgt tema mal",B="Skrifttype for mengdetekst",N="Skrifttype for tittel",D="Forhåndsvisning",L="Forhåndsvisning ikke tilgjengelig",M="Gå tilbake",j="Fremhevede ikoner",C="Ikon | Ikoner",V="Søk på engelsk etter ikonet du leter etter. Eks. 'Helicopter'",Y="treff",R="Ingen ikoner passer søket ditt.",q="Last inn alle",G="Hovedtittel",J="Sekundærtittel",O="Velg",U="Velg ikon",_={cancel:x,confirm:E,"fa-pro-brands":"Merkevare ikoner","fa-pro-duotone":"Duofargede ikoner","fa-pro-light":"Tynne ikoner","fa-pro-regular":"Normale ikoner","fa-pro-solid":"Ikoner med heldekkende farge",fontAssociatedWithSelectedThemeTemplate:A,fontForBody:B,fontForHeading:N,fontPreview:D,fontPreviewDisabled:L,goBack:M,highlightedIcons:j,icon:C,iconSelectWidgetHelpText:V,iconsSelectWidgetIconsFound:Y,iconsSelectWidgetNoIconsMatchYourSearch:R,loadAllElements:q,primaryTitle:G,secondaryTitle:J,select:O,selectIcon:U};function X(t,e,n={}){let{group:c=1}=n,o=t.match(e);if(o)return o[c]}function z(t){return new Promise((e,n)=>{setTimeout(e,t)})}async function Z(t,e={}){let{interval:n=200,limit:c=50}=e,o=0,r;for(;o<c&&(o++,!(r=t()));)await z(n);if(o>=c)throw new Error("Could not resolve");return r}function ee(t){if(document.querySelector(`script[src="${t}"]`))return;let e=document.createElement("script");e.type="text/javascript",e.src=t,document.body.appendChild(e)}function te(t,e=1){const n={en:H,nb:_},c=document.documentElement.getAttribute("lang")||"nb";let o=n[c]?.[t]||t;return o.includes("|")&&(o=o.split("|")[e-1]),o}function ne(t){return{validator(e,n){return t instanceof Array?e instanceof Array?e.every(c=>t.includes(c)):t.includes(e):t(e,n)}}}const K=t=>{if(typeof t!="string")return t;try{return JSON.parse(t)}catch{return{}}},oe=(t={},e={})=>n=>K(t)[n]||e[n]||n,l=(t,e={})=>n=>{switch(t){case"currency":const{locale:c,...o}=e;return new Intl.NumberFormat(c,{style:"currency",maximumFractionDigits:0,...o}).format(n);case"number":return new Intl.NumberFormat(e.locale).format(n);case"year":case"years":return[n,new Intl.RelativeTimeFormat(e.locale).formatToParts(n,"year").at(-1).value].join(" ");case"percent":const{maximumFractionDigits:r=0}=e;return[Number(n).toFixed(r),"%"].join("");default:return n}},ce=(t={})=>{const{locale:e,currency:n}=t,c=/(.{1})\d{3}(\D)\d$/,o=l("number",{locale:e})(1000.1);let[r,d,Q]=c.exec(o);const i=l("currency",{locale:e,currency:n})(1000.1),s=i.replace(/[\d\s\,\.]/g,""),a={mask:Number,thousandsSeparator:d};return i.match(/^\d/)?{suffix:s,mask:a}:{symbol:s,mask:a}};export{X as E,ee as L,ne as P,te as T,Z as W,oe as a,l as f,ce as g};
1
+ const Pe="Cancel",Me="Confirm",Re=`
2
+ Font associated with selected theme template`,We="Body font",Ne="Heading font",He="Preview",Ye="Preview not available",$e="Back",ze="Highlighted icons",qe="Icon | Icons",Ke="Search in English for icon you are looking for, for example 'Helicopter'.",Ve="Hits",Xe="No icons to match your search.",Ge="Load all elements",Je="Main title",Qe="Secondary title",Ze="Select",et="Select icon",tt={cancel:Pe,confirm:Me,"fa-pro-brands":"Brands icons","fa-pro-duotone":"Duotone icons","fa-pro-light":"Light icons","fa-pro-regular":"Regular icons","fa-pro-solid":"Solid icons",fontAssociatedWithSelectedThemeTemplate:Re,fontForBody:We,fontForHeading:Ne,fontPreview:He,fontPreviewDisabled:Ye,goBack:$e,highlightedIcons:ze,icon:qe,iconSelectWidgetHelpText:Ke,iconsSelectWidgetIconsFound:Ve,iconsSelectWidgetNoIconsMatchYourSearch:Xe,loadAllElements:Ge,primaryTitle:Je,secondaryTitle:Qe,select:Ze,selectIcon:et},rt="Avbryt",nt="Bekreft",ot="Font tilknyttet valgt tema mal",it="Skrifttype for mengdetekst",at="Skrifttype for tittel",st="Forhåndsvisning",ut="Forhåndsvisning ikke tilgjengelig",ft="Gå tilbake",ct="Fremhevede ikoner",lt="Ikon | Ikoner",ht="Søk på engelsk etter ikonet du leter etter. Eks. 'Helicopter'",dt="treff",gt="Ingen ikoner passer søket ditt.",pt="Last inn alle",mt="Hovedtittel",yt="Sekundærtittel",wt="Velg",bt="Velg ikon",vt={cancel:rt,confirm:nt,"fa-pro-brands":"Merkevare ikoner","fa-pro-duotone":"Duofargede ikoner","fa-pro-light":"Tynne ikoner","fa-pro-regular":"Normale ikoner","fa-pro-solid":"Ikoner med heldekkende farge",fontAssociatedWithSelectedThemeTemplate:ot,fontForBody:it,fontForHeading:at,fontPreview:st,fontPreviewDisabled:ut,goBack:ft,highlightedIcons:ct,icon:lt,iconSelectWidgetHelpText:ht,iconsSelectWidgetIconsFound:dt,iconsSelectWidgetNoIconsMatchYourSearch:gt,loadAllElements:pt,primaryTitle:mt,secondaryTitle:yt,select:wt,selectIcon:bt};function Et(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function he(s){throw new Error('Could not dynamically require "'+s+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Te={exports:{}};(function(s,a){(function(o){s.exports=o()})(function(){return function o(u,l,d){function U(x,F){if(!l[x]){if(!u[x]){var P=typeof he=="function"&&he;if(!F&&P)return P(x,!0);if(j)return j(x,!0);throw new Error("Cannot find module '"+x+"'")}F=l[x]={exports:{}},u[x][0].call(F.exports,function(R){var W=u[x][1][R];return U(W||R)},F,F.exports,o,u,l,d)}return l[x].exports}for(var j=typeof he=="function"&&he,S=0;S<d.length;S++)U(d[S]);return U}({1:[function(o,u,l){(function(d,U,j,S,x,F,P,R,W){var y=o("crypto");function T(c,m){m=_(c,m);var r;return(r=m.algorithm!=="passthrough"?y.createHash(m.algorithm):new k).write===void 0&&(r.write=r.update,r.end=r.update),v(m,r).dispatch(c),r.update||r.end(""),r.digest?r.digest(m.encoding==="buffer"?void 0:m.encoding):(c=r.read(),m.encoding!=="buffer"?c.toString(m.encoding):c)}(l=u.exports=T).sha1=function(c){return T(c)},l.keys=function(c){return T(c,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},l.MD5=function(c){return T(c,{algorithm:"md5",encoding:"hex"})},l.keysMD5=function(c){return T(c,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var g=y.getHashes?y.getHashes().slice():["sha1","md5"],E=(g.push("passthrough"),["buffer","hex","binary","base64"]);function _(c,m){var r={};if(r.algorithm=(m=m||{}).algorithm||"sha1",r.encoding=m.encoding||"hex",r.excludeValues=!!m.excludeValues,r.algorithm=r.algorithm.toLowerCase(),r.encoding=r.encoding.toLowerCase(),r.ignoreUnknown=m.ignoreUnknown===!0,r.respectType=m.respectType!==!1,r.respectFunctionNames=m.respectFunctionNames!==!1,r.respectFunctionProperties=m.respectFunctionProperties!==!1,r.unorderedArrays=m.unorderedArrays===!0,r.unorderedSets=m.unorderedSets!==!1,r.unorderedObjects=m.unorderedObjects!==!1,r.replacer=m.replacer||void 0,r.excludeKeys=m.excludeKeys||void 0,c===void 0)throw new Error("Object argument required.");for(var i=0;i<g.length;++i)g[i].toLowerCase()===r.algorithm.toLowerCase()&&(r.algorithm=g[i]);if(g.indexOf(r.algorithm)===-1)throw new Error('Algorithm "'+r.algorithm+'" not supported. supported values: '+g.join(", "));if(E.indexOf(r.encoding)===-1&&r.algorithm!=="passthrough")throw new Error('Encoding "'+r.encoding+'" not supported. supported values: '+E.join(", "));return r}function I(c){if(typeof c=="function")return/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(c))!=null}function v(c,m,r){r=r||[];function i(t){return m.update?m.update(t,"utf8"):m.write(t,"utf8")}return{dispatch:function(t){return this["_"+((t=c.replacer?c.replacer(t):t)===null?"null":typeof t)](t)},_object:function(t){var h,p=Object.prototype.toString.call(t),O=/\[object (.*)\]/i.exec(p);if(O=(O=O?O[1]:"unknown:["+p+"]").toLowerCase(),0<=(p=r.indexOf(t)))return this.dispatch("[CIRCULAR:"+p+"]");if(r.push(t),j!==void 0&&j.isBuffer&&j.isBuffer(t))return i("buffer:"),i(t);if(O==="object"||O==="function"||O==="asyncfunction")return p=Object.keys(t),c.unorderedObjects&&(p=p.sort()),c.respectType===!1||I(t)||p.splice(0,0,"prototype","__proto__","constructor"),c.excludeKeys&&(p=p.filter(function(C){return!c.excludeKeys(C)})),i("object:"+p.length+":"),h=this,p.forEach(function(C){h.dispatch(C),i(":"),c.excludeValues||h.dispatch(t[C]),i(",")});if(!this["_"+O]){if(c.ignoreUnknown)return i("["+O+"]");throw new Error('Unknown object type "'+O+'"')}this["_"+O](t)},_array:function(t,C){C=C!==void 0?C:c.unorderedArrays!==!1;var p=this;if(i("array:"+t.length+":"),!C||t.length<=1)return t.forEach(function(D){return p.dispatch(D)});var O=[],C=t.map(function(D){var L=new k,N=r.slice();return v(c,L,N).dispatch(D),O=O.concat(N.slice(r.length)),L.read().toString()});return r=r.concat(O),C.sort(),this._array(C,!1)},_date:function(t){return i("date:"+t.toJSON())},_symbol:function(t){return i("symbol:"+t.toString())},_error:function(t){return i("error:"+t.toString())},_boolean:function(t){return i("bool:"+t.toString())},_string:function(t){i("string:"+t.length+":"),i(t.toString())},_function:function(t){i("fn:"),I(t)?this.dispatch("[native]"):this.dispatch(t.toString()),c.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(t.name)),c.respectFunctionProperties&&this._object(t)},_number:function(t){return i("number:"+t.toString())},_xml:function(t){return i("xml:"+t.toString())},_null:function(){return i("Null")},_undefined:function(){return i("Undefined")},_regexp:function(t){return i("regex:"+t.toString())},_uint8array:function(t){return i("uint8array:"),this.dispatch(Array.prototype.slice.call(t))},_uint8clampedarray:function(t){return i("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(t))},_int8array:function(t){return i("int8array:"),this.dispatch(Array.prototype.slice.call(t))},_uint16array:function(t){return i("uint16array:"),this.dispatch(Array.prototype.slice.call(t))},_int16array:function(t){return i("int16array:"),this.dispatch(Array.prototype.slice.call(t))},_uint32array:function(t){return i("uint32array:"),this.dispatch(Array.prototype.slice.call(t))},_int32array:function(t){return i("int32array:"),this.dispatch(Array.prototype.slice.call(t))},_float32array:function(t){return i("float32array:"),this.dispatch(Array.prototype.slice.call(t))},_float64array:function(t){return i("float64array:"),this.dispatch(Array.prototype.slice.call(t))},_arraybuffer:function(t){return i("arraybuffer:"),this.dispatch(new Uint8Array(t))},_url:function(t){return i("url:"+t.toString())},_map:function(t){return i("map:"),t=Array.from(t),this._array(t,c.unorderedSets!==!1)},_set:function(t){return i("set:"),t=Array.from(t),this._array(t,c.unorderedSets!==!1)},_file:function(t){return i("file:"),this.dispatch([t.name,t.size,t.type,t.lastModfied])},_blob:function(){if(c.ignoreUnknown)return i("[blob]");throw Error(`Hashing Blob objects is currently not supported
3
+ (see https://github.com/puleos/object-hash/issues/26)
4
+ Use "options.replacer" or "options.ignoreUnknown"
5
+ `)},_domwindow:function(){return i("domwindow")},_bigint:function(t){return i("bigint:"+t.toString())},_process:function(){return i("process")},_timer:function(){return i("timer")},_pipe:function(){return i("pipe")},_tcp:function(){return i("tcp")},_udp:function(){return i("udp")},_tty:function(){return i("tty")},_statwatcher:function(){return i("statwatcher")},_securecontext:function(){return i("securecontext")},_connection:function(){return i("connection")},_zlib:function(){return i("zlib")},_context:function(){return i("context")},_nodescript:function(){return i("nodescript")},_httpparser:function(){return i("httpparser")},_dataview:function(){return i("dataview")},_signal:function(){return i("signal")},_fsevent:function(){return i("fsevent")},_tlswrap:function(){return i("tlswrap")}}}function k(){return{buf:"",write:function(c){this.buf+=c},end:function(c){this.buf+=c},read:function(){return this.buf}}}l.writeToStream=function(c,m,r){return r===void 0&&(r=m,m={}),v(m=_(c,m),r).dispatch(c)}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(o,u,l){(function(d,U,j,S,x,F,P,R,W){(function(y){var T=typeof Uint8Array<"u"?Uint8Array:Array,g=43,E=47,_=48,I=97,v=65,k=45,c=95;function m(r){return r=r.charCodeAt(0),r===g||r===k?62:r===E||r===c?63:r<_?-1:r<_+10?r-_+26+26:r<v+26?r-v:r<I+26?r-I+26:void 0}y.toByteArray=function(r){var i,t;if(0<r.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var h=r.length,h=r.charAt(h-2)==="="?2:r.charAt(h-1)==="="?1:0,p=new T(3*r.length/4-h),O=0<h?r.length-4:r.length,C=0;function D(L){p[C++]=L}for(i=0;i<O;i+=4,0)D((16711680&(t=m(r.charAt(i))<<18|m(r.charAt(i+1))<<12|m(r.charAt(i+2))<<6|m(r.charAt(i+3))))>>16),D((65280&t)>>8),D(255&t);return h==2?D(255&(t=m(r.charAt(i))<<2|m(r.charAt(i+1))>>4)):h==1&&(D((t=m(r.charAt(i))<<10|m(r.charAt(i+1))<<4|m(r.charAt(i+2))>>2)>>8&255),D(255&t)),p},y.fromByteArray=function(r){var i,t,h,p,O=r.length%3,C="";function D(L){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(L)}for(i=0,h=r.length-O;i<h;i+=3)t=(r[i]<<16)+(r[i+1]<<8)+r[i+2],C+=D((p=t)>>18&63)+D(p>>12&63)+D(p>>6&63)+D(63&p);switch(O){case 1:C=(C+=D((t=r[r.length-1])>>2))+D(t<<4&63)+"==";break;case 2:C=(C=(C+=D((t=(r[r.length-2]<<8)+r[r.length-1])>>10))+D(t>>4&63))+D(t<<2&63)+"="}return C}})(l===void 0?this.base64js={}:l)}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(o,u,l){(function(d,U,g,S,x,F,P,R,W){var y=o("base64-js"),T=o("ieee754");function g(e,n,f){if(!(this instanceof g))return new g(e,n,f);var w,b,B,M,Y=typeof e;if(n==="base64"&&Y=="string")for(e=(M=e).trim?M.trim():M.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if(Y=="number")w=X(e);else if(Y=="string")w=g.byteLength(e,n);else{if(Y!="object")throw new Error("First argument needs to be a number, array or string.");w=X(e.length)}if(g._useTypedArrays?b=g._augment(new Uint8Array(w)):((b=this).length=w,b._isBuffer=!0),g._useTypedArrays&&typeof e.byteLength=="number")b._set(e);else if(z(M=e)||g.isBuffer(M)||M&&typeof M=="object"&&typeof M.length=="number")for(B=0;B<w;B++)g.isBuffer(e)?b[B]=e.readUInt8(B):b[B]=e[B];else if(Y=="string")b.write(e,0,n);else if(Y=="number"&&!g._useTypedArrays&&!f)for(B=0;B<w;B++)b[B]=0;return b}function E(e,n,f,w){return g._charsWritten=ee(function(b){for(var B=[],M=0;M<b.length;M++)B.push(255&b.charCodeAt(M));return B}(n),e,f,w)}function _(e,n,f,w){return g._charsWritten=ee(function(b){for(var B,M,Y=[],$=0;$<b.length;$++)M=b.charCodeAt($),B=M>>8,M=M%256,Y.push(M),Y.push(B);return Y}(n),e,f,w)}function I(e,n,f){var w="";f=Math.min(e.length,f);for(var b=n;b<f;b++)w+=String.fromCharCode(e[b]);return w}function v(e,n,f,B){B||(A(typeof f=="boolean","missing or invalid endian"),A(n!=null,"missing offset"),A(n+1<e.length,"Trying to read beyond buffer length"));var b,B=e.length;if(!(B<=n))return f?(b=e[n],n+1<B&&(b|=e[n+1]<<8)):(b=e[n]<<8,n+1<B&&(b|=e[n+1])),b}function k(e,n,f,B){B||(A(typeof f=="boolean","missing or invalid endian"),A(n!=null,"missing offset"),A(n+3<e.length,"Trying to read beyond buffer length"));var b,B=e.length;if(!(B<=n))return f?(n+2<B&&(b=e[n+2]<<16),n+1<B&&(b|=e[n+1]<<8),b|=e[n],n+3<B&&(b+=e[n+3]<<24>>>0)):(n+1<B&&(b=e[n+1]<<16),n+2<B&&(b|=e[n+2]<<8),n+3<B&&(b|=e[n+3]),b+=e[n]<<24>>>0),b}function c(e,n,f,w){if(w||(A(typeof f=="boolean","missing or invalid endian"),A(n!=null,"missing offset"),A(n+1<e.length,"Trying to read beyond buffer length")),!(e.length<=n))return w=v(e,n,f,!0),32768&w?-1*(65535-w+1):w}function m(e,n,f,w){if(w||(A(typeof f=="boolean","missing or invalid endian"),A(n!=null,"missing offset"),A(n+3<e.length,"Trying to read beyond buffer length")),!(e.length<=n))return w=k(e,n,f,!0),2147483648&w?-1*(4294967295-w+1):w}function r(e,n,f,w){return w||(A(typeof f=="boolean","missing or invalid endian"),A(n+3<e.length,"Trying to read beyond buffer length")),T.read(e,n,f,23,4)}function i(e,n,f,w){return w||(A(typeof f=="boolean","missing or invalid endian"),A(n+7<e.length,"Trying to read beyond buffer length")),T.read(e,n,f,52,8)}function t(e,n,f,w,b){if(b||(A(n!=null,"missing value"),A(typeof w=="boolean","missing or invalid endian"),A(f!=null,"missing offset"),A(f+1<e.length,"trying to write beyond buffer length"),ae(n,65535)),b=e.length,!(b<=f))for(var B=0,M=Math.min(b-f,2);B<M;B++)e[f+B]=(n&255<<8*(w?B:1-B))>>>8*(w?B:1-B)}function h(e,n,f,w,b){if(b||(A(n!=null,"missing value"),A(typeof w=="boolean","missing or invalid endian"),A(f!=null,"missing offset"),A(f+3<e.length,"trying to write beyond buffer length"),ae(n,4294967295)),b=e.length,!(b<=f))for(var B=0,M=Math.min(b-f,4);B<M;B++)e[f+B]=n>>>8*(w?B:3-B)&255}function p(e,n,f,w,b){b||(A(n!=null,"missing value"),A(typeof w=="boolean","missing or invalid endian"),A(f!=null,"missing offset"),A(f+1<e.length,"Trying to write beyond buffer length"),re(n,32767,-32768)),e.length<=f||t(e,0<=n?n:65535+n+1,f,w,b)}function O(e,n,f,w,b){b||(A(n!=null,"missing value"),A(typeof w=="boolean","missing or invalid endian"),A(f!=null,"missing offset"),A(f+3<e.length,"Trying to write beyond buffer length"),re(n,2147483647,-2147483648)),e.length<=f||h(e,0<=n?n:4294967295+n+1,f,w,b)}function C(e,n,f,w,b){b||(A(n!=null,"missing value"),A(typeof w=="boolean","missing or invalid endian"),A(f!=null,"missing offset"),A(f+3<e.length,"Trying to write beyond buffer length"),se(n,34028234663852886e22,-34028234663852886e22)),e.length<=f||T.write(e,n,f,w,23,4)}function D(e,n,f,w,b){b||(A(n!=null,"missing value"),A(typeof w=="boolean","missing or invalid endian"),A(f!=null,"missing offset"),A(f+7<e.length,"Trying to write beyond buffer length"),se(n,17976931348623157e292,-17976931348623157e292)),e.length<=f||T.write(e,n,f,w,52,8)}l.Buffer=g,l.SlowBuffer=g,l.INSPECT_MAX_BYTES=50,g.poolSize=8192,g._useTypedArrays=function(){try{var e=new ArrayBuffer(0),n=new Uint8Array(e);return n.foo=function(){return 42},n.foo()===42&&typeof n.subarray=="function"}catch{return!1}}(),g.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.isBuffer=function(e){return!(e==null||!e._isBuffer)},g.byteLength=function(e,n){var f;switch(e+="",n||"utf8"){case"hex":f=e.length/2;break;case"utf8":case"utf-8":f=Z(e).length;break;case"ascii":case"binary":case"raw":f=e.length;break;case"base64":f=le(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":f=2*e.length;break;default:throw new Error("Unknown encoding")}return f},g.concat=function(e,n){if(A(z(e),`Usage: Buffer.concat(list, [totalLength])
6
+ list should be an Array.`),e.length===0)return new g(0);if(e.length===1)return e[0];if(typeof n!="number")for(b=n=0;b<e.length;b++)n+=e[b].length;for(var f=new g(n),w=0,b=0;b<e.length;b++){var B=e[b];B.copy(f,w),w+=B.length}return f},g.prototype.write=function(e,n,f,w){isFinite(n)?isFinite(f)||(w=f,f=void 0):($=w,w=n,n=f,f=$),n=Number(n)||0;var b,B,M,Y,$=this.length-n;switch((!f||$<(f=Number(f)))&&(f=$),w=String(w||"utf8").toLowerCase()){case"hex":b=function(J,K,Q,G){Q=Number(Q)||0;var V=J.length-Q;(!G||V<(G=Number(G)))&&(G=V),A((V=K.length)%2==0,"Invalid hex string"),V/2<G&&(G=V/2);for(var ue=0;ue<G;ue++){var ve=parseInt(K.substr(2*ue,2),16);A(!isNaN(ve),"Invalid hex string"),J[Q+ue]=ve}return g._charsWritten=2*ue,ue}(this,e,n,f);break;case"utf8":case"utf-8":B=this,M=n,Y=f,b=g._charsWritten=ee(Z(e),B,M,Y);break;case"ascii":case"binary":b=E(this,e,n,f);break;case"base64":B=this,M=n,Y=f,b=g._charsWritten=ee(le(e),B,M,Y);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":b=_(this,e,n,f);break;default:throw new Error("Unknown encoding")}return b},g.prototype.toString=function(e,n,f){var w,b,B,M,Y=this;if(e=String(e||"utf8").toLowerCase(),n=Number(n)||0,(f=f!==void 0?Number(f):Y.length)===n)return"";switch(e){case"hex":w=function($,J,K){var Q=$.length;(!J||J<0)&&(J=0),(!K||K<0||Q<K)&&(K=Q);for(var G="",V=J;V<K;V++)G+=H($[V]);return G}(Y,n,f);break;case"utf8":case"utf-8":w=function($,J,K){var Q="",G="";K=Math.min($.length,K);for(var V=J;V<K;V++)$[V]<=127?(Q+=fe(G)+String.fromCharCode($[V]),G=""):G+="%"+$[V].toString(16);return Q+fe(G)}(Y,n,f);break;case"ascii":case"binary":w=I(Y,n,f);break;case"base64":b=Y,M=f,w=(B=n)===0&&M===b.length?y.fromByteArray(b):y.fromByteArray(b.slice(B,M));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":w=function($,J,K){for(var Q=$.slice(J,K),G="",V=0;V<Q.length;V+=2)G+=String.fromCharCode(Q[V]+256*Q[V+1]);return G}(Y,n,f);break;default:throw new Error("Unknown encoding")}return w},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},g.prototype.copy=function(e,n,f,w){if(n=n||0,(w=w||w===0?w:this.length)!==(f=f||0)&&e.length!==0&&this.length!==0){A(f<=w,"sourceEnd < sourceStart"),A(0<=n&&n<e.length,"targetStart out of bounds"),A(0<=f&&f<this.length,"sourceStart out of bounds"),A(0<=w&&w<=this.length,"sourceEnd out of bounds"),w>this.length&&(w=this.length);var b=(w=e.length-n<w-f?e.length-n+f:w)-f;if(b<100||!g._useTypedArrays)for(var B=0;B<b;B++)e[B+n]=this[B+f];else e._set(this.subarray(f,f+b),n)}},g.prototype.slice=function(e,n){var f=this.length;if(e=N(e,f,0),n=N(n,f,f),g._useTypedArrays)return g._augment(this.subarray(e,n));for(var w=n-e,b=new g(w,void 0,!0),B=0;B<w;B++)b[B]=this[B+e];return b},g.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},g.prototype.set=function(e,n){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,n)},g.prototype.readUInt8=function(e,n){if(n||(A(e!=null,"missing offset"),A(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return this[e]},g.prototype.readUInt16LE=function(e,n){return v(this,e,!0,n)},g.prototype.readUInt16BE=function(e,n){return v(this,e,!1,n)},g.prototype.readUInt32LE=function(e,n){return k(this,e,!0,n)},g.prototype.readUInt32BE=function(e,n){return k(this,e,!1,n)},g.prototype.readInt8=function(e,n){if(n||(A(e!=null,"missing offset"),A(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},g.prototype.readInt16LE=function(e,n){return c(this,e,!0,n)},g.prototype.readInt16BE=function(e,n){return c(this,e,!1,n)},g.prototype.readInt32LE=function(e,n){return m(this,e,!0,n)},g.prototype.readInt32BE=function(e,n){return m(this,e,!1,n)},g.prototype.readFloatLE=function(e,n){return r(this,e,!0,n)},g.prototype.readFloatBE=function(e,n){return r(this,e,!1,n)},g.prototype.readDoubleLE=function(e,n){return i(this,e,!0,n)},g.prototype.readDoubleBE=function(e,n){return i(this,e,!1,n)},g.prototype.writeUInt8=function(e,n,f){f||(A(e!=null,"missing value"),A(n!=null,"missing offset"),A(n<this.length,"trying to write beyond buffer length"),ae(e,255)),n>=this.length||(this[n]=e)},g.prototype.writeUInt16LE=function(e,n,f){t(this,e,n,!0,f)},g.prototype.writeUInt16BE=function(e,n,f){t(this,e,n,!1,f)},g.prototype.writeUInt32LE=function(e,n,f){h(this,e,n,!0,f)},g.prototype.writeUInt32BE=function(e,n,f){h(this,e,n,!1,f)},g.prototype.writeInt8=function(e,n,f){f||(A(e!=null,"missing value"),A(n!=null,"missing offset"),A(n<this.length,"Trying to write beyond buffer length"),re(e,127,-128)),n>=this.length||(0<=e?this.writeUInt8(e,n,f):this.writeUInt8(255+e+1,n,f))},g.prototype.writeInt16LE=function(e,n,f){p(this,e,n,!0,f)},g.prototype.writeInt16BE=function(e,n,f){p(this,e,n,!1,f)},g.prototype.writeInt32LE=function(e,n,f){O(this,e,n,!0,f)},g.prototype.writeInt32BE=function(e,n,f){O(this,e,n,!1,f)},g.prototype.writeFloatLE=function(e,n,f){C(this,e,n,!0,f)},g.prototype.writeFloatBE=function(e,n,f){C(this,e,n,!1,f)},g.prototype.writeDoubleLE=function(e,n,f){D(this,e,n,!0,f)},g.prototype.writeDoubleBE=function(e,n,f){D(this,e,n,!1,f)},g.prototype.fill=function(e,n,f){if(n=n||0,f=f||this.length,A(typeof(e=typeof(e=e||0)=="string"?e.charCodeAt(0):e)=="number"&&!isNaN(e),"value is not a number"),A(n<=f,"end < start"),f!==n&&this.length!==0){A(0<=n&&n<this.length,"start out of bounds"),A(0<=f&&f<=this.length,"end out of bounds");for(var w=n;w<f;w++)this[w]=e}},g.prototype.inspect=function(){for(var e=[],n=this.length,f=0;f<n;f++)if(e[f]=H(this[f]),f===l.INSPECT_MAX_BYTES){e[f+1]="...";break}return"<Buffer "+e.join(" ")+">"},g.prototype.toArrayBuffer=function(){if(typeof Uint8Array>"u")throw new Error("Buffer.toArrayBuffer not supported in this browser");if(g._useTypedArrays)return new g(this).buffer;for(var e=new Uint8Array(this.length),n=0,f=e.length;n<f;n+=1)e[n]=this[n];return e.buffer};var L=g.prototype;function N(e,n,f){return typeof e!="number"?f:n<=(e=~~e)?n:0<=e||0<=(e+=n)?e:0}function X(e){return(e=~~Math.ceil(+e))<0?0:e}function z(e){return(Array.isArray||function(n){return Object.prototype.toString.call(n)==="[object Array]"})(e)}function H(e){return e<16?"0"+e.toString(16):e.toString(16)}function Z(e){for(var n=[],f=0;f<e.length;f++){var w=e.charCodeAt(f);if(w<=127)n.push(e.charCodeAt(f));else for(var b=f,B=(55296<=w&&w<=57343&&f++,encodeURIComponent(e.slice(b,f+1)).substr(1).split("%")),M=0;M<B.length;M++)n.push(parseInt(B[M],16))}return n}function le(e){return y.toByteArray(e)}function ee(e,n,f,w){for(var b=0;b<w&&!(b+f>=n.length||b>=e.length);b++)n[b+f]=e[b];return b}function fe(e){try{return decodeURIComponent(e)}catch{return"�"}}function ae(e,n){A(typeof e=="number","cannot write a non-number as a number"),A(0<=e,"specified a negative value for writing an unsigned value"),A(e<=n,"value is larger than maximum value for type"),A(Math.floor(e)===e,"value has a fractional component")}function re(e,n,f){A(typeof e=="number","cannot write a non-number as a number"),A(e<=n,"value larger than maximum allowed value"),A(f<=e,"value smaller than minimum allowed value"),A(Math.floor(e)===e,"value has a fractional component")}function se(e,n,f){A(typeof e=="number","cannot write a non-number as a number"),A(e<=n,"value larger than maximum allowed value"),A(f<=e,"value smaller than minimum allowed value")}function A(e,n){if(!e)throw new Error(n||"Failed assertion")}g._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=L.get,e.set=L.set,e.write=L.write,e.toString=L.toString,e.toLocaleString=L.toString,e.toJSON=L.toJSON,e.copy=L.copy,e.slice=L.slice,e.readUInt8=L.readUInt8,e.readUInt16LE=L.readUInt16LE,e.readUInt16BE=L.readUInt16BE,e.readUInt32LE=L.readUInt32LE,e.readUInt32BE=L.readUInt32BE,e.readInt8=L.readInt8,e.readInt16LE=L.readInt16LE,e.readInt16BE=L.readInt16BE,e.readInt32LE=L.readInt32LE,e.readInt32BE=L.readInt32BE,e.readFloatLE=L.readFloatLE,e.readFloatBE=L.readFloatBE,e.readDoubleLE=L.readDoubleLE,e.readDoubleBE=L.readDoubleBE,e.writeUInt8=L.writeUInt8,e.writeUInt16LE=L.writeUInt16LE,e.writeUInt16BE=L.writeUInt16BE,e.writeUInt32LE=L.writeUInt32LE,e.writeUInt32BE=L.writeUInt32BE,e.writeInt8=L.writeInt8,e.writeInt16LE=L.writeInt16LE,e.writeInt16BE=L.writeInt16BE,e.writeInt32LE=L.writeInt32LE,e.writeInt32BE=L.writeInt32BE,e.writeFloatLE=L.writeFloatLE,e.writeFloatBE=L.writeFloatBE,e.writeDoubleLE=L.writeDoubleLE,e.writeDoubleBE=L.writeDoubleBE,e.fill=L.fill,e.inspect=L.inspect,e.toArrayBuffer=L.toArrayBuffer,e}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(o,u,l){(function(d,U,y,S,x,F,P,R,W){var y=o("buffer").Buffer,T=4,g=new y(T);g.fill(0),u.exports={hash:function(E,_,I,v){for(var k=_(function(t,h){t.length%T!=0&&(p=t.length+(T-t.length%T),t=y.concat([t,g],p));for(var p,O=[],C=h?t.readInt32BE:t.readInt32LE,D=0;D<t.length;D+=T)O.push(C.call(t,D));return O}(E=y.isBuffer(E)?E:new y(E),v),8*E.length),_=v,c=new y(I),m=_?c.writeInt32BE:c.writeInt32LE,r=0;r<k.length;r++)m.call(c,k[r],4*r,!0);return c}}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],5:[function(o,u,l){(function(d,U,y,S,x,F,P,R,W){var y=o("buffer").Buffer,T=o("./sha"),g=o("./sha256"),E=o("./rng"),_={sha1:T,sha256:g,md5:o("./md5")},I=64,v=new y(I);function k(t,h){var p=_[t=t||"sha1"],O=[];return p||c("algorithm:",t,"is not yet supported"),{update:function(C){return y.isBuffer(C)||(C=new y(C)),O.push(C),C.length,this},digest:function(C){var D=y.concat(O),D=h?function(L,N,X){y.isBuffer(N)||(N=new y(N)),y.isBuffer(X)||(X=new y(X)),N.length>I?N=L(N):N.length<I&&(N=y.concat([N,v],I));for(var z=new y(I),H=new y(I),Z=0;Z<I;Z++)z[Z]=54^N[Z],H[Z]=92^N[Z];return X=L(y.concat([z,X])),L(y.concat([H,X]))}(p,h,D):p(D);return O=null,C?D.toString(C):D}}}function c(){var t=[].slice.call(arguments).join(" ");throw new Error([t,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
7
+ `))}v.fill(0),l.createHash=function(t){return k(t)},l.createHmac=k,l.randomBytes=function(t,h){if(!h||!h.call)return new y(E(t));try{h.call(this,void 0,new y(E(t)))}catch(p){h(p)}};var m,r=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],i=function(t){l[t]=function(){c("sorry,",t,"is not implemented yet")}};for(m in r)i(r[m])}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(o,u,l){(function(d,U,j,S,x,F,P,R,W){var y=o("./helpers");function T(c,m){c[m>>5]|=128<<m%32,c[14+(m+64>>>9<<4)]=m;for(var r=1732584193,i=-271733879,t=-1732584194,h=271733878,p=0;p<c.length;p+=16){var O=r,C=i,D=t,L=h,r=E(r,i,t,h,c[p+0],7,-680876936),h=E(h,r,i,t,c[p+1],12,-389564586),t=E(t,h,r,i,c[p+2],17,606105819),i=E(i,t,h,r,c[p+3],22,-1044525330);r=E(r,i,t,h,c[p+4],7,-176418897),h=E(h,r,i,t,c[p+5],12,1200080426),t=E(t,h,r,i,c[p+6],17,-1473231341),i=E(i,t,h,r,c[p+7],22,-45705983),r=E(r,i,t,h,c[p+8],7,1770035416),h=E(h,r,i,t,c[p+9],12,-1958414417),t=E(t,h,r,i,c[p+10],17,-42063),i=E(i,t,h,r,c[p+11],22,-1990404162),r=E(r,i,t,h,c[p+12],7,1804603682),h=E(h,r,i,t,c[p+13],12,-40341101),t=E(t,h,r,i,c[p+14],17,-1502002290),r=_(r,i=E(i,t,h,r,c[p+15],22,1236535329),t,h,c[p+1],5,-165796510),h=_(h,r,i,t,c[p+6],9,-1069501632),t=_(t,h,r,i,c[p+11],14,643717713),i=_(i,t,h,r,c[p+0],20,-373897302),r=_(r,i,t,h,c[p+5],5,-701558691),h=_(h,r,i,t,c[p+10],9,38016083),t=_(t,h,r,i,c[p+15],14,-660478335),i=_(i,t,h,r,c[p+4],20,-405537848),r=_(r,i,t,h,c[p+9],5,568446438),h=_(h,r,i,t,c[p+14],9,-1019803690),t=_(t,h,r,i,c[p+3],14,-187363961),i=_(i,t,h,r,c[p+8],20,1163531501),r=_(r,i,t,h,c[p+13],5,-1444681467),h=_(h,r,i,t,c[p+2],9,-51403784),t=_(t,h,r,i,c[p+7],14,1735328473),r=I(r,i=_(i,t,h,r,c[p+12],20,-1926607734),t,h,c[p+5],4,-378558),h=I(h,r,i,t,c[p+8],11,-2022574463),t=I(t,h,r,i,c[p+11],16,1839030562),i=I(i,t,h,r,c[p+14],23,-35309556),r=I(r,i,t,h,c[p+1],4,-1530992060),h=I(h,r,i,t,c[p+4],11,1272893353),t=I(t,h,r,i,c[p+7],16,-155497632),i=I(i,t,h,r,c[p+10],23,-1094730640),r=I(r,i,t,h,c[p+13],4,681279174),h=I(h,r,i,t,c[p+0],11,-358537222),t=I(t,h,r,i,c[p+3],16,-722521979),i=I(i,t,h,r,c[p+6],23,76029189),r=I(r,i,t,h,c[p+9],4,-640364487),h=I(h,r,i,t,c[p+12],11,-421815835),t=I(t,h,r,i,c[p+15],16,530742520),r=v(r,i=I(i,t,h,r,c[p+2],23,-995338651),t,h,c[p+0],6,-198630844),h=v(h,r,i,t,c[p+7],10,1126891415),t=v(t,h,r,i,c[p+14],15,-1416354905),i=v(i,t,h,r,c[p+5],21,-57434055),r=v(r,i,t,h,c[p+12],6,1700485571),h=v(h,r,i,t,c[p+3],10,-1894986606),t=v(t,h,r,i,c[p+10],15,-1051523),i=v(i,t,h,r,c[p+1],21,-2054922799),r=v(r,i,t,h,c[p+8],6,1873313359),h=v(h,r,i,t,c[p+15],10,-30611744),t=v(t,h,r,i,c[p+6],15,-1560198380),i=v(i,t,h,r,c[p+13],21,1309151649),r=v(r,i,t,h,c[p+4],6,-145523070),h=v(h,r,i,t,c[p+11],10,-1120210379),t=v(t,h,r,i,c[p+2],15,718787259),i=v(i,t,h,r,c[p+9],21,-343485551),r=k(r,O),i=k(i,C),t=k(t,D),h=k(h,L)}return Array(r,i,t,h)}function g(c,m,r,i,t,h){return k((m=k(k(m,c),k(i,h)))<<t|m>>>32-t,r)}function E(c,m,r,i,t,h,p){return g(m&r|~m&i,c,m,t,h,p)}function _(c,m,r,i,t,h,p){return g(m&i|r&~i,c,m,t,h,p)}function I(c,m,r,i,t,h,p){return g(m^r^i,c,m,t,h,p)}function v(c,m,r,i,t,h,p){return g(r^(m|~i),c,m,t,h,p)}function k(c,m){var r=(65535&c)+(65535&m);return(c>>16)+(m>>16)+(r>>16)<<16|65535&r}u.exports=function(c){return y.hash(c,T,16)}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(o,u,l){(function(d,U,j,S,x,F,P,R,W){u.exports=function(y){for(var T,g=new Array(y),E=0;E<y;E++)!(3&E)&&(T=4294967296*Math.random()),g[E]=T>>>((3&E)<<3)&255;return g}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(o,u,l){(function(d,U,j,S,x,F,P,R,W){var y=o("./helpers");function T(_,I){_[I>>5]|=128<<24-I%32,_[15+(I+64>>9<<4)]=I;for(var v,k,c,m=Array(80),r=1732584193,i=-271733879,t=-1732584194,h=271733878,p=-1009589776,O=0;O<_.length;O+=16){for(var C=r,D=i,L=t,N=h,X=p,z=0;z<80;z++){m[z]=z<16?_[O+z]:E(m[z-3]^m[z-8]^m[z-14]^m[z-16],1);var H=g(g(E(r,5),(H=i,k=t,c=h,(v=z)<20?H&k|~H&c:!(v<40)&&v<60?H&k|H&c|k&c:H^k^c)),g(g(p,m[z]),(v=z)<20?1518500249:v<40?1859775393:v<60?-1894007588:-899497514)),p=h,h=t,t=E(i,30),i=r,r=H}r=g(r,C),i=g(i,D),t=g(t,L),h=g(h,N),p=g(p,X)}return Array(r,i,t,h,p)}function g(_,I){var v=(65535&_)+(65535&I);return(_>>16)+(I>>16)+(v>>16)<<16|65535&v}function E(_,I){return _<<I|_>>>32-I}u.exports=function(_){return y.hash(_,T,20,!0)}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(o,u,l){(function(d,U,j,S,x,F,P,R,W){function y(I,v){var k=(65535&I)+(65535&v);return(I>>16)+(v>>16)+(k>>16)<<16|65535&k}function T(I,v){var k,c=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),m=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),r=new Array(64);I[v>>5]|=128<<24-v%32,I[15+(v+64>>9<<4)]=v;for(var i,t,h=0;h<I.length;h+=16){for(var p=m[0],O=m[1],C=m[2],D=m[3],L=m[4],N=m[5],X=m[6],z=m[7],H=0;H<64;H++)r[H]=H<16?I[H+h]:y(y(y((t=r[H-2],E(t,17)^E(t,19)^_(t,10)),r[H-7]),(t=r[H-15],E(t,7)^E(t,18)^_(t,3))),r[H-16]),k=y(y(y(y(z,E(t=L,6)^E(t,11)^E(t,25)),L&N^~L&X),c[H]),r[H]),i=y(E(i=p,2)^E(i,13)^E(i,22),p&O^p&C^O&C),z=X,X=N,N=L,L=y(D,k),D=C,C=O,O=p,p=y(k,i);m[0]=y(p,m[0]),m[1]=y(O,m[1]),m[2]=y(C,m[2]),m[3]=y(D,m[3]),m[4]=y(L,m[4]),m[5]=y(N,m[5]),m[6]=y(X,m[6]),m[7]=y(z,m[7])}return m}var g=o("./helpers"),E=function(I,v){return I>>>v|I<<32-v},_=function(I,v){return I>>>v};u.exports=function(I){return g.hash(I,T,32,!0)}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(o,u,l){(function(d,U,j,S,x,F,P,R,W){l.read=function(y,T,g,E,h){var I,v,k=8*h-E-1,c=(1<<k)-1,m=c>>1,r=-7,i=g?h-1:0,t=g?-1:1,h=y[T+i];for(i+=t,I=h&(1<<-r)-1,h>>=-r,r+=k;0<r;I=256*I+y[T+i],i+=t,r-=8);for(v=I&(1<<-r)-1,I>>=-r,r+=E;0<r;v=256*v+y[T+i],i+=t,r-=8);if(I===0)I=1-m;else{if(I===c)return v?NaN:1/0*(h?-1:1);v+=Math.pow(2,E),I-=m}return(h?-1:1)*v*Math.pow(2,I-E)},l.write=function(y,T,g,E,_,p){var v,k,c=8*p-_-1,m=(1<<c)-1,r=m>>1,i=_===23?Math.pow(2,-24)-Math.pow(2,-77):0,t=E?0:p-1,h=E?1:-1,p=T<0||T===0&&1/T<0?1:0;for(T=Math.abs(T),isNaN(T)||T===1/0?(k=isNaN(T)?1:0,v=m):(v=Math.floor(Math.log(T)/Math.LN2),T*(E=Math.pow(2,-v))<1&&(v--,E*=2),2<=(T+=1<=v+r?i/E:i*Math.pow(2,1-r))*E&&(v++,E/=2),m<=v+r?(k=0,v=m):1<=v+r?(k=(T*E-1)*Math.pow(2,_),v+=r):(k=T*Math.pow(2,r-1)*Math.pow(2,_),v=0));8<=_;y[g+t]=255&k,t+=h,k/=256,_-=8);for(v=v<<_|k,c+=_;0<c;y[g+t]=255&v,t+=h,v/=256,c-=8);y[g+t-h]|=128*p}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/ieee754")},{buffer:3,lYpoI2:11}],11:[function(o,u,l){(function(d,U,j,S,x,F,P,R,W){var y,T,g;function E(){}(d=u.exports={}).nextTick=(T=typeof window<"u"&&window.setImmediate,g=typeof window<"u"&&window.postMessage&&window.addEventListener,T?function(_){return window.setImmediate(_)}:g?(y=[],window.addEventListener("message",function(_){var I=_.source;I!==window&&I!==null||_.data!=="process-tick"||(_.stopPropagation(),0<y.length&&y.shift()())},!0),function(_){y.push(_),window.postMessage("process-tick","*")}):function(_){setTimeout(_,0)}),d.title="browser",d.browser=!0,d.env={},d.argv=[],d.on=E,d.addListener=E,d.once=E,d.off=E,d.removeListener=E,d.removeAllListeners=E,d.emit=E,d.binding=function(_){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(_){throw new Error("process.chdir is not supported")}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:11}]},{},[1])(1)})})(Te);var It=Te.exports;const Ee=Et(It);function q(s){return s!=null&&typeof s=="object"&&s["@@functional/placeholder"]===!0}function ie(s){return function a(o){return arguments.length===0||q(o)?a:s.apply(this,arguments)}}function oe(s){return function a(o,u){switch(arguments.length){case 0:return a;case 1:return q(o)?a:ie(function(l){return s(o,l)});default:return q(o)&&q(u)?a:q(o)?ie(function(l){return s(l,u)}):q(u)?ie(function(l){return s(o,l)}):s(o,u)}}}function Le(s){return function a(o,u,l){switch(arguments.length){case 0:return a;case 1:return q(o)?a:oe(function(d,U){return s(o,d,U)});case 2:return q(o)&&q(u)?a:q(o)?oe(function(d,U){return s(d,u,U)}):q(u)?oe(function(d,U){return s(o,d,U)}):ie(function(d){return s(o,u,d)});default:return q(o)&&q(u)&&q(l)?a:q(o)&&q(u)?oe(function(d,U){return s(d,U,l)}):q(o)&&q(l)?oe(function(d,U){return s(d,u,U)}):q(u)&&q(l)?oe(function(d,U){return s(o,d,U)}):q(o)?ie(function(d){return s(d,u,l)}):q(u)?ie(function(d){return s(o,d,l)}):q(l)?ie(function(d){return s(o,u,d)}):s(o,u,l)}}}function de(s,a){return Object.prototype.hasOwnProperty.call(a,s)}function Ie(s){return Object.prototype.toString.call(s)==="[object Object]"}var Bt=Le(function(a,o,u){var l={},d;for(d in o)de(d,o)&&(l[d]=de(d,u)?a(d,o[d],u[d]):o[d]);for(d in u)de(d,u)&&!de(d,l)&&(l[d]=u[d]);return l}),At=Le(function s(a,o,u){return Bt(function(l,d,U){return Ie(d)&&Ie(U)?s(a,d,U):a(l,d,U)},o,u)}),_t=oe(function(a,o){return At(function(u,l,d){return d},a,o)});let xt={headers:{Accept:"application/json","Content-Type":"application/json"},credentials:"include"};async function St(s,a={}){const{baseURL:o="",...u}=a;return fetch(`${o}${s}`,_t(xt,u)).then(l=>{if(!l.ok)throw l;return l})}/*!
8
+ * Compressor.js v1.2.1
9
+ * https://fengyuanchen.github.io/compressorjs
10
+ *
11
+ * Copyright 2018-present Chen Fengyuan
12
+ * Released under the MIT license
13
+ *
14
+ * Date: 2023-02-28T14:09:41.732Z
15
+ */function Be(s,a){var o=Object.keys(s);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(s);a&&(u=u.filter(function(l){return Object.getOwnPropertyDescriptor(s,l).enumerable})),o.push.apply(o,u)}return o}function ge(s){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Be(Object(o),!0).forEach(function(u){Tt(s,u,o[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(o)):Be(Object(o)).forEach(function(u){Object.defineProperty(s,u,Object.getOwnPropertyDescriptor(o,u))})}return s}function Ut(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}function Ae(s,a){for(var o=0;o<a.length;o++){var u=a[o];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,ke(u.key),u)}}function jt(s,a,o){return a&&Ae(s.prototype,a),o&&Ae(s,o),Object.defineProperty(s,"prototype",{writable:!1}),s}function Tt(s,a,o){return a=ke(a),a in s?Object.defineProperty(s,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):s[a]=o,s}function pe(){return pe=Object.assign?Object.assign.bind():function(s){for(var a=1;a<arguments.length;a++){var o=arguments[a];for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(s[u]=o[u])}return s},pe.apply(this,arguments)}function Lt(s,a){if(typeof s!="object"||s===null)return s;var o=s[Symbol.toPrimitive];if(o!==void 0){var u=o.call(s,a);if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(s)}function ke(s){var a=Lt(s,"string");return typeof a=="symbol"?a:String(a)}var Fe={exports:{}};(function(s){typeof window>"u"||function(a){var o=a.HTMLCanvasElement&&a.HTMLCanvasElement.prototype,u=a.Blob&&function(){try{return!!new Blob}catch{return!1}}(),l=u&&a.Uint8Array&&function(){try{return new Blob([new Uint8Array(100)]).size===100}catch{return!1}}(),d=a.BlobBuilder||a.WebKitBlobBuilder||a.MozBlobBuilder||a.MSBlobBuilder,U=/^data:((.*?)(;charset=.*?)?)(;base64)?,/,j=(u||d)&&a.atob&&a.ArrayBuffer&&a.Uint8Array&&function(S){var x,F,P,R,W,y,T,g,E;if(x=S.match(U),!x)throw new Error("invalid data URI");for(F=x[2]?x[1]:"text/plain"+(x[3]||";charset=US-ASCII"),P=!!x[4],R=S.slice(x[0].length),P?W=atob(R):W=decodeURIComponent(R),y=new ArrayBuffer(W.length),T=new Uint8Array(y),g=0;g<W.length;g+=1)T[g]=W.charCodeAt(g);return u?new Blob([l?T:y],{type:F}):(E=new d,E.append(y),E.getBlob(F))};a.HTMLCanvasElement&&!o.toBlob&&(o.mozGetAsFile?o.toBlob=function(S,x,F){var P=this;setTimeout(function(){F&&o.toDataURL&&j?S(j(P.toDataURL(x,F))):S(P.mozGetAsFile("blob",x))})}:o.toDataURL&&j&&(o.msToBlob?o.toBlob=function(S,x,F){var P=this;setTimeout(function(){(x&&x!=="image/png"||F)&&o.toDataURL&&j?S(j(P.toDataURL(x,F))):S(P.msToBlob(x))})}:o.toBlob=function(S,x,F){var P=this;setTimeout(function(){S(j(P.toDataURL(x,F)))})})),s.exports?s.exports=j:a.dataURLtoBlob=j}(window)})(Fe);var _e=Fe.exports,kt=function(a){return typeof Blob>"u"?!1:a instanceof Blob||Object.prototype.toString.call(a)==="[object Blob]"},xe={strict:!0,checkOrientation:!0,retainExif:!1,maxWidth:1/0,maxHeight:1/0,minWidth:0,minHeight:0,width:void 0,height:void 0,resize:"none",quality:.8,mimeType:"auto",convertTypes:["image/png"],convertSize:5e6,beforeDraw:null,drew:null,success:null,error:null},Ft=typeof window<"u"&&typeof window.document<"u",te=Ft?window:{},me=function(a){return a>0&&a<1/0},Ct=Array.prototype.slice;function be(s){return Array.from?Array.from(s):Ct.call(s)}var Ot=/^image\/.+$/;function we(s){return Ot.test(s)}function Dt(s){var a=we(s)?s.substr(6):"";return a==="jpeg"&&(a="jpg"),".".concat(a)}var Ce=String.fromCharCode;function Pt(s,a,o){var u="",l;for(o+=a,l=a;l<o;l+=1)u+=Ce(s.getUint8(l));return u}var Mt=te.btoa;function Se(s,a){for(var o=[],u=8192,l=new Uint8Array(s);l.length>0;)o.push(Ce.apply(null,be(l.subarray(0,u)))),l=l.subarray(u);return"data:".concat(a,";base64,").concat(Mt(o.join("")))}function Rt(s){var a=new DataView(s),o;try{var u,l,d;if(a.getUint8(0)===255&&a.getUint8(1)===216)for(var U=a.byteLength,j=2;j+1<U;){if(a.getUint8(j)===255&&a.getUint8(j+1)===225){l=j;break}j+=1}if(l){var S=l+4,x=l+10;if(Pt(a,S,4)==="Exif"){var F=a.getUint16(x);if(u=F===18761,(u||F===19789)&&a.getUint16(x+2,u)===42){var P=a.getUint32(x+4,u);P>=8&&(d=x+P)}}}if(d){var R=a.getUint16(d,u),W,y;for(y=0;y<R;y+=1)if(W=d+y*12+2,a.getUint16(W,u)===274){W+=8,o=a.getUint16(W,u),a.setUint16(W,1,u);break}}}catch{o=1}return o}function Wt(s){var a=0,o=1,u=1;switch(s){case 2:o=-1;break;case 3:a=-180;break;case 4:u=-1;break;case 5:a=90,u=-1;break;case 6:a=90;break;case 7:a=90,o=-1;break;case 8:a=-90;break}return{rotate:a,scaleX:o,scaleY:u}}var Nt=/\.\d*(?:0|9){12}\d*$/;function Ue(s){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return Nt.test(s)?Math.round(s*a)/a:s}function ce(s){var a=s.aspectRatio,o=s.height,u=s.width,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none",d=me(u),U=me(o);if(d&&U){var j=o*a;(l==="contain"||l==="none")&&j>u||l==="cover"&&j<u?o=u/a:u=o*a}else d?o=u/a:U&&(u=o*a);return{width:u,height:o}}function Ht(s){for(var a=be(new Uint8Array(s)),o=a.length,u=[],l=0;l+3<o;){var d=a[l],U=a[l+1];if(d===255&&U===218)break;if(d===255&&U===216)l+=2;else{var j=a[l+2]*256+a[l+3],S=l+j+2,x=a.slice(l,S);u.push(x),l=S}}return u.reduce(function(F,P){return P[0]===255&&P[1]===225?F.concat(P):F},[])}function Yt(s,a){var o=be(new Uint8Array(s));if(o[2]!==255||o[3]!==224)return s;var u=o[4]*256+o[5],l=[255,216].concat(a,o.slice(4+u));return new Uint8Array(l)}var $t=te.ArrayBuffer,ye=te.FileReader,ne=te.URL||te.webkitURL,zt=/\.\w+$/,qt=te.Compressor,Kt=function(){function s(a,o){Ut(this,s),this.file=a,this.exif=[],this.image=new Image,this.options=ge(ge({},xe),o),this.aborted=!1,this.result=null,this.init()}return jt(s,[{key:"init",value:function(){var o=this,u=this.file,l=this.options;if(!kt(u)){this.fail(new Error("The first argument must be a File or Blob object."));return}var d=u.type;if(!we(d)){this.fail(new Error("The first argument must be an image File or Blob object."));return}if(!ne||!ye){this.fail(new Error("The current browser does not support image compression."));return}$t||(l.checkOrientation=!1,l.retainExif=!1);var U=d==="image/jpeg",j=U&&l.checkOrientation,S=U&&l.retainExif;if(ne&&!j&&!S)this.load({url:ne.createObjectURL(u)});else{var x=new ye;this.reader=x,x.onload=function(F){var P=F.target,R=P.result,W={},y=1;j&&(y=Rt(R),y>1&&pe(W,Wt(y))),S&&(o.exif=Ht(R)),j||S?!ne||y>1?W.url=Se(R,d):W.url=ne.createObjectURL(u):W.url=R,o.load(W)},x.onabort=function(){o.fail(new Error("Aborted to read the image with FileReader."))},x.onerror=function(){o.fail(new Error("Failed to read the image with FileReader."))},x.onloadend=function(){o.reader=null},j||S?x.readAsArrayBuffer(u):x.readAsDataURL(u)}}},{key:"load",value:function(o){var u=this,l=this.file,d=this.image;d.onload=function(){u.draw(ge(ge({},o),{},{naturalWidth:d.naturalWidth,naturalHeight:d.naturalHeight}))},d.onabort=function(){u.fail(new Error("Aborted to load the image."))},d.onerror=function(){u.fail(new Error("Failed to load the image."))},te.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(te.navigator.userAgent)&&(d.crossOrigin="anonymous"),d.alt=l.name,d.src=o.url}},{key:"draw",value:function(o){var u=this,l=o.naturalWidth,d=o.naturalHeight,U=o.rotate,j=U===void 0?0:U,S=o.scaleX,x=S===void 0?1:S,F=o.scaleY,P=F===void 0?1:F,R=this.file,W=this.image,y=this.options,T=document.createElement("canvas"),g=T.getContext("2d"),E=Math.abs(j)%180===90,_=(y.resize==="contain"||y.resize==="cover")&&me(y.width)&&me(y.height),I=Math.max(y.maxWidth,0)||1/0,v=Math.max(y.maxHeight,0)||1/0,k=Math.max(y.minWidth,0)||0,c=Math.max(y.minHeight,0)||0,m=l/d,r=y.width,i=y.height;if(E){var t=[v,I];I=t[0],v=t[1];var h=[c,k];k=h[0],c=h[1];var p=[i,r];r=p[0],i=p[1]}_&&(m=r/i);var O=ce({aspectRatio:m,width:I,height:v},"contain");I=O.width,v=O.height;var C=ce({aspectRatio:m,width:k,height:c},"cover");if(k=C.width,c=C.height,_){var D=ce({aspectRatio:m,width:r,height:i},y.resize);r=D.width,i=D.height}else{var L=ce({aspectRatio:m,width:r,height:i}),N=L.width;r=N===void 0?l:N;var X=L.height;i=X===void 0?d:X}r=Math.floor(Ue(Math.min(Math.max(r,k),I))),i=Math.floor(Ue(Math.min(Math.max(i,c),v)));var z=-r/2,H=-i/2,Z=r,le=i,ee=[];if(_){var fe=0,ae=0,re=l,se=d,A=ce({aspectRatio:m,width:l,height:d},{contain:"cover",cover:"contain"}[y.resize]);re=A.width,se=A.height,fe=(l-re)/2,ae=(d-se)/2,ee.push(fe,ae,re,se)}if(ee.push(z,H,Z,le),E){var e=[i,r];r=e[0],i=e[1]}T.width=r,T.height=i,we(y.mimeType)||(y.mimeType=R.type);var n="transparent";R.size>y.convertSize&&y.convertTypes.indexOf(y.mimeType)>=0&&(y.mimeType="image/jpeg");var f=y.mimeType==="image/jpeg";if(f&&(n="#fff"),g.fillStyle=n,g.fillRect(0,0,r,i),y.beforeDraw&&y.beforeDraw.call(this,g,T),!this.aborted&&(g.save(),g.translate(r/2,i/2),g.rotate(j*Math.PI/180),g.scale(x,P),g.drawImage.apply(g,[W].concat(ee)),g.restore(),y.drew&&y.drew.call(this,g,T),!this.aborted)){var w=function(B){if(!u.aborted){var M=function(K){return u.done({naturalWidth:l,naturalHeight:d,result:K})};if(B&&f&&y.retainExif&&u.exif&&u.exif.length>0){var Y=function(K){return M(_e(Se(Yt(K,u.exif),y.mimeType)))};if(B.arrayBuffer)B.arrayBuffer().then(Y).catch(function(){u.fail(new Error("Failed to read the compressed image with Blob.arrayBuffer()."))});else{var $=new ye;u.reader=$,$.onload=function(J){var K=J.target;Y(K.result)},$.onabort=function(){u.fail(new Error("Aborted to read the compressed image with FileReader."))},$.onerror=function(){u.fail(new Error("Failed to read the compressed image with FileReader."))},$.onloadend=function(){u.reader=null},$.readAsArrayBuffer(B)}}else M(B)}};T.toBlob?T.toBlob(w,y.mimeType,y.quality):w(_e(T.toDataURL(y.mimeType,y.quality)))}}},{key:"done",value:function(o){var u=o.naturalWidth,l=o.naturalHeight,d=o.result,U=this.file,j=this.image,S=this.options;if(ne&&j.src.indexOf("blob:")===0&&ne.revokeObjectURL(j.src),d)if(S.strict&&!S.retainExif&&d.size>U.size&&S.mimeType===U.type&&!(S.width>u||S.height>l||S.minWidth>u||S.minHeight>l||S.maxWidth<u||S.maxHeight<l))d=U;else{var x=new Date;d.lastModified=x.getTime(),d.lastModifiedDate=x,d.name=U.name,d.name&&d.type!==U.type&&(d.name=d.name.replace(zt,Dt(d.type)))}else d=U;this.result=d,S.success&&S.success.call(this,d)}},{key:"fail",value:function(o){var u=this.options;if(u.error)u.error.call(this,o);else throw o}},{key:"abort",value:function(){this.aborted||(this.aborted=!0,this.reader?this.reader.abort():this.image.complete?this.fail(new Error("The compression process has been aborted.")):(this.image.onload=null,this.image.onabort()))}}],[{key:"noConflict",value:function(){return window.Compressor=qt,s}},{key:"setDefaults",value:function(o){pe(xe,o)}}]),s}();const Vt={default:{maxWidth:1920},logo:{maxWidth:500,quality:.9},gallery:{maxWidth:2560}},Oe=s=>s instanceof Array?s:[s];function Xt(s,a){return new Promise((o,u)=>{if(!a)return o(s);new Kt(s,{success:l=>o(l),error:l=>u(l),...a})})}function Gt(s={}){let{acl:a="public-read",url:o,...u}=s;return o||(o="/api/file/sign?acl="+a),St(o,u).then(l=>l.json())}function Jt({file:s,url:a,onProgress:o}){return new Promise((u,l)=>{let d=new URLSearchParams(a),U=new XMLHttpRequest;U.upload.addEventListener("progress",o),U.addEventListener("error",l),U.addEventListener("load",function(){u(this)}),U.open("PUT",a),d.get("x-amz-acl")&&U.setRequestHeader("x-amz-acl",d.get("x-amz-acl")),U.send(s)})}function Qt(s){return new Promise(a=>{let o=new FileReader;o.onload=function(u){a(u.target.result)},o.readAsDataURL(s)})}function Zt(s){return s.type.startsWith("image/")?Qt(s).then(a=>new Promise((o,u)=>{let l=new Image;l.onload=()=>o([l.naturalWidth,l.naturalHeight]),l.onerror=d=>u(d),l.src=a})):Promise.resolve()}async function er(s,a){switch(typeof a){case"function":return a(s);case"string":const o=new FormData;return o.append("file",s),window.fetch(a,{method:"POST",credentials:"include",body:o}).then(u=>u.json()).then(Oe).then(u=>u.map(({data:l,name:d,type:U})=>new File([new Uint8Array(l.data)],d,{type:U})));default:return s}}async function tr(s,a,o){let{compression:u,transform:l=F=>F,rename:d,convert:U,...j}=o;const S=await er(s,U).then(Oe),x=await Promise.all(S.map(async F=>{typeof u=="string"&&(u=Vt[u]);let[P,R]=await Promise.all([Gt(j||{}),u?Xt(F,u):Promise.resolve(F)]),W;try{W=await Zt(R)}catch{}return await Jt({file:R,url:P.uploadUrl,onProgress(y){a(Math.floor(y.loaded/y.total*100))}}),l({name:d||R.name,size:R.size,url:P.url,type:R.type,dimensions:W})}));return x.length===1?x[0]:x}function ir(s,a,o={}){let{group:u=1}=o,l=s.match(a);if(l)return l[u]}function rr(s){return new Promise((a,o)=>{setTimeout(a,s)})}async function ar(s,a={}){let{interval:o=200,limit:u=50}=a,l=0,d;for(;l<u&&(l++,!(d=s()));)await rr(o);if(l>=u)throw new Error("Could not resolve");return d}function sr(s,a={type:"text/javascript"}){if(!document||document.querySelector(`script[src="${s}"]`))return;let{type:o}=a,u=document.createElement("script");u.type=o,u.src=s,document.body.appendChild(u)}function ur(s,a=1){const o={en:tt,nb:vt},u=document.documentElement.getAttribute("lang")||"nb";let l=o[u]?.[s]||s;return l.includes("|")&&(l=l.split("|")[a-1]),l}function fr(s){return{validator(a,o){return s instanceof Array?a instanceof Array?a.every(u=>s.includes(u)):s.includes(a):s(a,o)}}}function nr(s){return Object.prototype.toString.call(s)==="[object Object]"}function De(s,a,o={}){if(!a||!nr(a))return s;let{ignoreMissing:u=!1}=o,l={},d=(j,S)=>j.length===S.length&&Ee(j.slice())===Ee(S.slice()),U=function(j,S,x){let F=Object.prototype.toString.call(j),P=Object.prototype.toString.call(S);if(F!==P){l[x]=S;return}if(F==="[object Object]"){let R=De(j,S,o);Object.keys(R).length&&(l[x]=R);return}if(F==="[object Array]"){d(j,S)||(l[x]=S);return}if(F==="[object Function]"){j.toString()!==S.toString()&&(l[x]=S);return}j!==S&&(l[x]=S)};for(let j in s)Object.hasOwn(s,j)&&U(s[j],a[j],j);if(!u)for(let j in a)Object.hasOwn(a,j)&&!(j in s)&&(l[j]=a[j]);return l}function cr(...s){return!!Object.keys(De(...s)).length}const lr=function(){return JSON.parse(JSON.stringify.apply(this,arguments))};function hr(s,a,o){return tr(s,a,o)}function dr(s,a=document.documentElement.getAttribute("lang")||"nb"){return!s&&s!==0?"-":s.toLocaleString(a,{style:"currency",currency:"NOK",minimumFractionDigits:0})}const or=s=>{if(typeof s!="string")return s;try{return JSON.parse(s)}catch{return{}}},gr=(s={},a={})=>o=>or(s)[o]||a[o]||o,je=(s,a={})=>o=>{switch(s){case"currency":const{locale:u,...l}=a;return new Intl.NumberFormat(u,{style:"currency",maximumFractionDigits:0,...l}).format(o);case"number":return new Intl.NumberFormat(a.locale).format(o);case"year":case"years":return[o,new Intl.RelativeTimeFormat(a.locale).formatToParts(o,"year").at(-1).value].join(" ");case"percent":const{maximumFractionDigits:d=0}=a;return[Number(o).toFixed(d),"%"].join("");default:return o}},pr=(s={})=>{const{locale:a,currency:o}=s,u=/(.{1})\d{3}(\D)\d$/,l=je("number",{locale:a})(1000.1);let[d,U,j]=u.exec(l);const S=je("currency",{locale:a,currency:o})(1000.1),x=S.replace(/[\d\s\,\.]/g,""),F={mask:Number,thousandsSeparator:U};return S.match(/^\d/)?{suffix:x,mask:F}:{symbol:x,mask:F}};export{lr as C,De as D,ir as E,sr as L,fr as P,ur as T,ar as W,pr as a,gr as b,je as f,Et as g,cr as h,dr as t,hr as u};
package/dist/index2.js CHANGED
@@ -1 +1 @@
1
- import{r as d,E as g,P as h,v,J as y,i as x,W as T}from"./_plugin-vue_export-helper.js";function W(r,n){let e,t,o;const u=d(!0),a=()=>{u.value=!0,o()};g(r,a,{flush:"sync"});const c=typeof n=="function"?n:n.get,s=typeof n=="function"?void 0:n.set,i=h((l,f)=>(t=l,o=f,{get(){return u.value&&(e=c(),u.value=!1),t(),e},set(b){s?.(b)}}));return Object.isExtensible(i)&&(i.trigger=a),i}function m(r){return typeof r=="function"?r():v(r)}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const p=()=>{};function C(r,n){function e(...t){return new Promise((o,u)=>{Promise.resolve(r(()=>n.apply(this,t),{fn:n,thisArg:this,args:t})).then(o).catch(u)})}return e}function P(r,n={}){let e,t,o=p;const u=c=>{clearTimeout(c),o(),o=p};return c=>{const s=m(r),i=m(n.maxWait);return e&&u(e),s<=0||i!==void 0&&i<=0?(t&&(u(t),t=null),Promise.resolve(c())):new Promise((l,f)=>{o=n.rejectOnCancel?f:l,i&&!t&&(t=setTimeout(()=>{e&&u(e),t=null,l(c())},i)),e=setTimeout(()=>{t&&u(t),t=null,l(c())},s)})}}function w(r,n=200,e={}){return C(P(n,e),r)}function j(r,n=200,e={}){const t=d(r.value),o=w(()=>{t.value=r.value},n,e);return g(r,()=>o()),t}function D(r){const n=T(),e=W(()=>null,()=>n.proxy.$el);return y(e.trigger),x(e.trigger),e}export{j as r,D as u};
1
+ import{r as d,E as g,R as h,v,P as y,i as x,S as T}from"./_plugin-vue_export-helper.js";function C(r,n){let e,t,o;const u=d(!0),a=()=>{u.value=!0,o()};g(r,a,{flush:"sync"});const c=typeof n=="function"?n:n.get,s=typeof n=="function"?void 0:n.set,i=h((l,f)=>(t=l,o=f,{get(){return u.value&&(e=c(),u.value=!1),t(),e},set(b){s?.(b)}}));return Object.isExtensible(i)&&(i.trigger=a),i}function m(r){return typeof r=="function"?r():v(r)}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const p=()=>{};function P(r,n){function e(...t){return new Promise((o,u)=>{Promise.resolve(r(()=>n.apply(this,t),{fn:n,thisArg:this,args:t})).then(o).catch(u)})}return e}function W(r,n={}){let e,t,o=p;const u=c=>{clearTimeout(c),o(),o=p};return c=>{const s=m(r),i=m(n.maxWait);return e&&u(e),s<=0||i!==void 0&&i<=0?(t&&(u(t),t=null),Promise.resolve(c())):new Promise((l,f)=>{o=n.rejectOnCancel?f:l,i&&!t&&(t=setTimeout(()=>{e&&u(e),t=null,l(c())},i)),e=setTimeout(()=>{t&&u(t),t=null,l(c())},s)})}}function w(r,n=200,e={}){return P(W(n,e),r)}function j(r,n=200,e={}){const t=d(r.value),o=w(()=>{t.value=r.value},n,e);return g(r,()=>o()),t}function D(r){const n=T(),e=C(()=>null,()=>n.proxy.$el);return y(e.trigger),x(e.trigger),e}export{j as r,D as u};