(self.webpackChunkhomify_de=self.webpackChunkhomify_de||[]).push([[770],{94257:function(o,e){var a;(function(){var t,r,i,s,n,m,d={}.hasOwnProperty,f=[].slice;return(r=function(o,e,a){var t;return t=new Error(o,e,a),Object.setPrototypeOf?Object.setPrototypeOf(t,Object.getPrototypeOf(this)):t.__proto__=this.__proto__,Error.captureStackTrace&&Error.captureStackTrace(t,r),t}).prototype=Object.create(Error.prototype,{constructor:{value:Error,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(r,Error):r.__proto__=Error,t={GROUP:1,CAT:2,SYMBOL:3,OR:4,STAR:5,LITERAL:6,SLASH:7,DOT:8},s=/[^a-zA-Z0-9\-\._~!\$&'\(\)\*\+,;=:@]/g,i=["anchor","trailing_slash","subdomain","host","port","protocol"],n={configuration:{prefix:"",default_url_options:{},special_options_key:"_options",serializer:null},default_serializer:function(o,e){var a,t,r,i,s,n,m;if(null==e&&(e=null),null==o)return"";if(!e&&"object"!==this.get_object_type(o))throw new Error("Url parameters should be a javascript hash");switch(m=[],this.get_object_type(o)){case"array":for(t=r=0,s=o.length;ro&&void 0===a||null!=a&&"object"===this.get_object_type(a)&&!this.looks_like_serialized_model(a)?(delete(t=e.pop()||{})[this.configuration.special_options_key],t):{}},looks_like_serialized_model:function(o){return!o[this.configuration.special_options_key]&&("id"in o||"to_param"in o)},path_identifier:function(o){var e;if(0===o)return"0";if(!o)return"";if(e=o,"object"===this.get_object_type(o)){if("to_param"in o){if(null==o.to_param)throw new r("Route parameter missing: to_param");e=o.to_param}else if("id"in o){if(null==o.id)throw new r("Route parameter missing: id");e=o.id}else e=o;"function"===this.get_object_type(e)&&(e=e.call(o))}return e.toString()},clone:function(o){var e,a,t;if(null==o||"object"!==this.get_object_type(o))return o;for(t in a=o.constructor(),o)d.call(o,t)&&(e=o[t],a[t]=e);return a},merge:function(){var o,e;if(o=function(o,e){return e(o),o},(null!=(e=1<=arguments.length?f.call(arguments,0):[])?e.length:void 0)>0)return o({},(function(o){var a,t,r,i,s,n;for(i=[],a=0,r=e.length;ao.length)throw new Error("Too many parameters provided for path");for(n in k=t.length>e.length,_={},f)d.call(f,n)&&(k=!0,this.indexOf(o,n)>=0&&(_[n]=p));for(n in f=this.merge(this.configuration.default_url_options,a,f),(h={}).url_parameters=P={},f)d.call(f,n)&&(p=f[n],this.indexOf(i,n)>=0?h[n]=p:P[n]=p);for(r=0,s=0,m=(l=k?o:e).length;s=0},build_path_spec:function(o,e){var a,r,i;switch(null==e&&(e=!1),i=o[0],a=o[1],r=o[2],i){case t.GROUP:return"("+this.build_path_spec(a)+")";case t.CAT:return""+this.build_path_spec(a)+this.build_path_spec(r);case t.STAR:return this.build_path_spec(a,!0);case t.SYMBOL:return!0===e?("*"===a[0]?"":"*")+a:":"+a;case t.SLASH:case t.DOT:case t.LITERAL:return a;default:throw new Error("Unknown Rails node type")}},visit_globbing:function(o,e,a){var t,r;return o[0],t=o[1],o[2],r=e[t],delete e[t],null==r?this.visit(o,e,a):(r=function(){return"array"===this.get_object_type(r)?r.join("/"):r}.call(this),encodeURI(this.path_identifier(r)))},get_prefix:function(){var o;return""!==(o=this.configuration.prefix)&&(o=o.match("/$")?o:o+"/"),o},route:function(o,e,a,t){var r,i,s,m,d,f,u,_;for(_=[],m=[],r=0,i=o.length;r