Urban Web Hosting

June 21, 2021


Urban Web Hosting 6]+r[128|63&f]:f<55296||f>=57344?i+=r[224|f>>12]+r[128|f>>6&63]+r[128|63&f]:(f=65536+((1023&f)>18]+r[128|f>>12&63]+r[128|f>>6&63]+r[128|63&f])}return i},isBuffer:function(t){return!(!t||”object”!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return”[object RegExp]”===Object.prototype.toString.call(t)},maybeMap:function(t,r){if(e(t)){for(var n=[],o=0;o0&&/([[^[]]*])/.exec(o),f=u?o.slice(0,u.index):o,s=[];if(f){if(!r.plainObjects&&m.call(Object.prototype,f)&&!r.allowPrototypes)return;s.push(f)}for(var a=0;r.depth>0&&null!==(u=i.exec(o))&&a=0;–i){var u,f=t[i];if(“[]”===f&&r.parseArrays)u=[].concat(o);else{u=r.plainObjects?Object.create(null):{};var s=”[“===f.charAt(0)&&”]”===f.charAt(f.length-1)?f.slice(1,-1):f,a=parseInt(s,10);r.parseArrays||””!==s?!isNaN(a)&&f!==s&&String(a)===s&&a>=0&&r.parseArrays&&a<=r.arrayLimit?(u=[])[a]=o:u[s]=o:u={0:o}}o=u}return o}(s,e,r,n)}},S=function(t,e){var r=function(t){if(!t)return w;if(null!=t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");return{allowDots:void 0===t.allowDots?w.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:w.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:w.arrayLimit,charset:void 0===t.charset?w.charset:t.charset,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:w.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:w.comma,decoder:"function"==typeof t.decoder?t.decoder:w.decoder,delimiter:"string"==typeof t.delimiter||o.isRegExp(t.delimiter)?t.delimiter:w.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:w.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:w.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:w.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:w.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:w.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var n="string"==typeof t?function(t,e){var r,n={},i=(e.ignoreQueryPrefix?t.replace(/^?/,""):t).split(e.delimiter,Infinity===e.parameterLimit?void 0:e.parameterLimit),u=-1,f=e.charset;if(e.charsetSentinel)for(r=0;r-1&&(a=g(a)?[a]:a),n[s]=m.call(n,s)?o.combine(n[s],a):a}return n}(t,r):t,i=r.plainObjects?Object.create(null):{},u=Object.keys(n),f=0;f({name:t.replace(/{|??}/g,””),required:!/?}$/.test(t)})))?t:[]}matchesUrl(t){if(!this.definition.methods.includes(“GET”))return!1;const e=this.template.replace(//{[^}?]*?}/g,”(/[^/?]+)?”).replace(/{[^}]+}/g,”[^/?]+”).replace(/^w+:///,””);return new RegExp(“^”+e+”$”).test(t.replace(//+$/,””).split(“?”).shift())}compile(t){return this.parameterSegments.length?this.template.replace(/{([^}?]+)??}/g,(e,r)=>{var n;if([null,void 0].includes(t[r])&&this.parameterSegments.find(({name:t})=>t===r).required)throw new Error(“Ziggy error: ‘”+r+”‘ parameter is required for route ‘”+this.name+”‘.”);return encodeURIComponent(null!=(n=t[r])?n:””)}).replace(//+$/,””):this.template}}class N extends String{constructor(t,e,r=!0,n){var o;if(super(),this.t=null!=(o=null!=n?n:Ziggy)?o:null===globalThis||void 0===globalThis?void 0:globalThis.Ziggy,this.t={…this.t,absolute:r},t){if(!this.t.routes[t])throw new Error(“Ziggy error: route ‘”+t+”‘ is not in the route list.”);this.i=new T(t,this.t.routes[t],this.t),this.u=this.l(e)}}toString(){const t=Object.keys(this.u).filter(t=>!this.i.parameterSegments.some(({name:e})=>e===t)).filter(t=>”_query”!==t).reduce((t,e)=>({…t,[e]:this.u[e]}),{});return this.i.compile(this.u)+function(t,e){var r,n=t,o=function(t){if(!t)return b;if(null!=t.encoder&&”function”!=typeof t.encoder)throw new TypeError(“Encoder has to be a function.”);var e=t.charset||b.charset;if(void 0!==t.charset&&”utf-8″!==t.charset&&”iso-8859-1″!==t.charset)throw new TypeError(“The charset option must be either utf-8, iso-8859-1, or undefined”);var r=s.default;if(void 0!==t.format){if(!a.call(s.formatters,t.format))throw new TypeError(“Unknown format option provided.”);r=t.format}var n=s.formatters[r],o=b.filter;return(“function”==typeof t.filter||l(t.filter))&&(o=t.filter),{addQueryPrefix:”boolean”==typeof t.addQueryPrefix?t.addQueryPrefix:b.addQueryPrefix,allowDots:void 0===t.allowDots?b.allowDots:!!t.allowDots,charset:e,charsetSentinel:”boolean”==typeof t.charsetSentinel?t.charsetSentinel:b.charsetSentinel,delimiter:void 0===t.delimiter?b.delimiter:t.delimiter,encode:”boolean”==typeof t.encode?t.encode:b.encode,encoder:”function”==typeof t.encoder?t.encoder:b.encoder,encodeValuesOnly:”boolean”==typeof t.encodeValuesOnly?t.encodeValuesOnly:b.encodeValuesOnly,filter:o,formatter:n,serializeDate:”function”==typeof t.serializeDate?t.serializeDate:b.serializeDate,skipNulls:”boolean”==typeof t.skipNulls?t.skipNulls:b.skipNulls,sort:”function”==typeof t.sort?t.sort:null,strictNullHandling:”boolean”==typeof t.strictNullHandling?t.strictNullHandling:b.strictNullHandling}}(e);”function”==typeof o.filter?n=(0,o.filter)(“”,n):l(o.filter)&&(r=o.filter);var i=[];if(“object”!=typeof n||null===n)return””;var u=c[e&&e.arrayFormat in c?e.arrayFormat:e&&”indices”in e?e.indices?”indices”:”repeat”:”indices”];r||(r=Object.keys(n)),o.sort&&r.sort(o.sort);for(var f=0;f0?h+y:””}({…t,…this.u._query},{addQueryPrefix:!0,arrayFormat:”indices”,encodeValuesOnly:!0,skipNulls:!0,encoder:(t,e)=>”boolean”==typeof t?Number(t):e(t)})}current(t,e){const r=this.t.absolute?window.location.host+window.location.pathname:window.location.pathname.replace(this.t.url.replace(/^w*://[^/]+/,””),””).replace(/^/+/,”/”),[n,o]=Object.entries(this.t.routes).find(([e,n])=>new T(t,n,this.t).matchesUrl(r))||[void 0,void 0];if(!t)return n;const i=new RegExp(“^”+t.replace(“.”,”\.”).replace(“*”,”.*”)+”$”).test(n);if([null,void 0].includes(e)||!i)return i;const u=new T(n,o,this.t);e=this.l(e,u);const f=this.p(o);return!(!Object.values(e).every(t=>!t)||Object.values(f).length)||Object.entries(e).every(([t,e])=>f[t]==e)}get params(){return this.p(this.t.routes[this.current()])}has(t){return Object.keys(this.t.routes).includes(t)}l(t={},e=this.i){t=[“string”,”number”].includes(typeof t)?[t]:t;const r=e.parameterSegments.filter(({name:t})=>!this.t.defaults[t]);return Array.isArray(t)?t=t.reduce((t,e,n)=>r[n]?{…t,[r[n].name]:e}:{…t,[e]:””},{}):1!==r.length||t[r[0].name]||!t.hasOwnProperty(Object.values(e.bindings)[0])&&!t.hasOwnProperty(“id”)||(t={[r[0].name]:t}),{…this.h(e),…this.v(t,e.bindings)}}h(t){return t.parameterSegments.filter(({name:t})=>this.t.defaults[t]).reduce((t,{name:e},r)=>({…t,[e]:this.t.defaults[e]}),{})}v(t,e={}){return Object.entries(t).reduce((t,[r,n])=>{if(!n||”object”!=typeof n||Array.isArray(n)||”_query”===r)return{…t,[r]:n};if(!n.hasOwnProperty(e[r])){if(!n.hasOwnProperty(“id”))throw new Error(“Ziggy error: object passed as ‘”+r+”‘ parameter is missing route model binding key ‘”+e[r]+”‘.”);e[r]=”id”}return{…t,[r]:n[e[r]]}},{})}p(t){var e;let r=window.location.pathname.replace(this.t.url.replace(/^w*://[^/]+/,””),””).replace(/^/+/,””);const n=(t,e=””,r)=>{const[n,o]=[t,e].map(t=>t.split(r));return o.reduce((t,e,r)=>/^{[^}?]+??}$/.test(e)&&n[r]?{…t,[e.replace(/^{|??}$/g,””)]:n[r]}:t,{})};return{…n(window.location.host,t.domain,”.”),…n(r,t.uri,”/”),…S(null===(e=window.location.search)||void 0===e?void 0:e.replace(/^?/,””))}}valueOf(){return this.toString()}check(t){return this.has(t)}}return function(t,e,r,n){const o=new N(t,e,r,n);return t?o.toString():o}}); ]]>

Source