PageSourceSearch

https://www.orange.pl/static/fe/marketing/_next/static/chunks/1_ko9aeoon3v1.js

js orange.pl collected 2026-09-24 08:43:47 UTC 146,553 bytes, 5 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,544932,433411,e=>{"use strict";e.s(["getAdditionalTypes",0,function(e,t){let r=[];return t&&r.push("counter"),"IMAGE"===e&&r.push("image"),"VIDEO"===e&&r.push("video"),0===r.length?null:r}],544932);var t,r,i=e.i(843476),n=e.i(271645),o=e.i(709922);class s{constructor(e){this._process=e,this._active=!1,this._current=null,this._last=null}start(){this._active=!0,this.flush()}clear(){this._current&&(this._current.next=null,this._last=this._current)}enqueue(e){let t={value:e,next:null};if(this._current){this._last.next=t,this._last=t;return}this._current=t,this._last=t,this._active&&this.flush()}flush(){for(;this._current;){let e=this._current;this._process(e.value),this._current=e.next}this._last=null}}let a="xstate.init",l="xstate.stop";function c(e,t){return{type:`xstate.done.state.${e}`,output:t}}function d(e,t){return{type:`xstate.error.actor.${e}`,error:t,actorId:e}}function u(e){return{type:a,input:e}}function p(e){setTimeout(()=>{throw e})}let f="function"==typeof Symbol&&Symbol.observable||"@@observable";function h(e){if(v(e))return e;let t=[],r="";for(let i=0;i<e.length;i++){switch(e.charCodeAt(i)){case 92:r+=e[i+1],i++;continue;case 46:t.push(r),r="";
1continue}r+=e[i]}return t.push(r),t}function y(e){var t;return(t=e)&&"object"==typeof t&&"machine"in t&&"value"in t?e.value:"string"!=typeof e?e:function(e){if(1===e.length)return e[0];let t={},r=t;for(let t=0;t<e.length-1;t++)if(t===e.length-2)r[e[t]]=e[t+1];else{let i=r;r={},i[e[t]]=r}return t}(h(e))}function m(e,t){let r={},i=Object.keys(e);for(let n=0;n<i.length;n++){let o=i[n];r[o]=t(e[o],o,e,n)}return r}function g(e){var t;return void 0===e?[]:v(t=e)?t:[t]}function x(e,t,r,i){return"function"==typeof e?e({context:t,event:r,self:i}):e}function v(e){return Array.isArray(e)}function b(e){var t;return(v(t=e)?t:[t]).map(e=>void 0===e||"string"==typeof e?{target:e}:e)}function j(e){if(void 0!==e&&""!==e)return g(e)}function w(e,t,r){let i="object"==typeof e,n=i?e:void 0;return{next:(i?e.next:e)?.bind(n),error:(i?e.error:t)?.bind(n),complete:(i?e.complete:r)?.bind(n)}}function S(e,t){let r=t.match(/^xstate\.invoke\.(\d+)\.(.*)/);if(!r)return e.implementations.actors[t];let[,i,n]=r,o=e.getStateNodeById(n).config.invoke;return(Array.isArray(o)?o[i]:o).src}function N(e,t){return`${e.sessionId}.${t}`}let _=0,k=!1,I=((t={})[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped",t),A={clock:{setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e)},logger:console.log.bind(console),devTools:!1};class O{constructor(e,t){this.logic=e,this._snapshot=void 0,this.clock=void 0,this.options=void 0,this.id=void 0,this.mailbox=new s(this._process.bind(this)),this.observers=new Set,this.eventListeners=new Map,this.logger=void 0,this._processingStatus=I.NotStarted,this._parent=void 0,this._syncSnapshot=void 0,this.ref=void 0,this._actorScope=void 0,this.systemId=void 0,this.sessionId=void 0,this.system=void 0,this._doneEvent=void 0,this.src=void 0,this._deferred=[];const r={...A,...t},{clock:i,logger:n,parent:o,syncSnapshot:a,id:l,systemId:c,inspect:d}=r;this.system=o?o.system:function(e,t){let r=new Map,i=new Map,n=new WeakMap,o=new Set,s={},{clock:a,logger:l}=t,c={schedule:(e,t,r,i,n=Math.random().toString(36).slice(2))=>{let o={source:e,target:t,event:r,delay:i,id:n,startedAt:Date.now()},l=N(e,n);d._snapshot._scheduledEvents[l]=o;let c=a.setTimeout(()=>{delete s[l],delete d._snapshot._scheduledEvents[l],d._relay(e,t,r)},i);s[l]=c},cancel:(e,t)=>{let r=N(e,t),i=s[r];delete s[r],delete d._snapshot._scheduledEvents[r],void 0!==i&&a.clearTimeout(i)},cancelAll:e=>{for(let t in d._snapshot._scheduledEvents){let r=d._snapshot._scheduledEvents[t];r.source===e&&c.cancel(e,r.id)}}},d={_snapshot:{_scheduledEvents:(t?.snapshot&&t.snapshot.scheduler)??{}},_bookId:()=>`x:${_++}`,_register:(e,t)=>(r.set(e,t),e),_unregister:e=>{r.delete(e.sessionId);let t=n.get(e);void 0!==t&&(i.delete(t),n.delete(e))},get:e=>i.get(e),getAll:()=>Object.fromEntries(i.entries()),_set:(e,t)=>{let r=i.get(e);if(r&&r!==t)throw Error(`Actor with system ID '${e}' already exists.`);i.set(e,t),n.set(t,e)},inspect:e=>{let t=w(e);return o.add(t),{unsubscribe(){o.delete(t)}}},_sendInspectionEvent:t=>{if(!o.size)return;let r={...t,rootId:e.sessionId};o.forEach(e=>e.next?.(r))},_relay:(e,t,r)=>{d._sendInspectionEvent({type:"@xstate.event",sourceRef:e,actorRef:t,event:r}),t._send(r)},scheduler:c,getSnapshot:()=>({_scheduledEvents:{...d._snapshot._scheduledEvents}}),start:()=>{let e=d._snapshot._scheduledEvents;for(let t in d._snapshot._scheduledEvents={},e){let{source:r,target:i,event:n,delay:o,id:s}=e[t];c.schedule(r,i,n,o,s)}},_clock:a,_logger:l};return d}(this,{clock:i,logger:n}),d&&!o&&this.system.inspect(w(d)),this.sessionId=this.system._bookId(),this.id=l??this.sessionId,this.logger=t?.logger??this.system._logger,this.clock=t?.clock??this.system._clock,this._parent=o,this._syncSnapshot=a,this.options=r,this.src=r.src??e,this.ref=this,this._actorScope={self:this,id:this.id,sessionId:this.sessionId,logger:this.logger,defer:e=>{this._deferred.push(e)},system:this.system,stopChild:e=>{if(e._parent!==this)throw Error(`Cannot stop child actor ${e.id} of ${this.id} because it is not a child`);e._stop()},emit:e=>{let t=this.eventListeners.get(e.type),r=this.eventListeners.get("*");if(t||r)for(let i of[...t?t.values():[],...r?r.values():[]])try{i(e)}catch(e){p(e)}},actionExecutor:e=>{let t=()=>{if(this._actorScope.system._sendInspectionEvent({type:"@xstate.action",actorRef:this,action:{type:e.type,params:e.params}}),!e.exec)return;let t=k;try{k=!0,e.exec(e.info,e.params)}finally{k=t}};this._processingStatus===I.Running?t():this._deferred.push(t)}},this.send=this.send.bind(this),this.system._sendInspectionEvent({type:"@xstate.actor",actorRef:this}),c&&(this.systemId=c,this.system._set(c,this)),this._initState(t?.snapshot??t?.state),c&&"active"!==this._snapshot.status&&this.system._unregister(this)}_initState(e){try{this._snapshot=e?this.logic.restoreSnapshot?this.logic.restoreSnapshot(e,this._actorScope):e:this.logic.getInitialSnapshot(this._actorScope,this.options?.input)}catch(e){this._snapshot={status:"error",output:void 0,error:e}}}update(e,t){let r;for(this._snapshot=e;r=this._deferred.shift();)try{r()}catch(t){this._deferred.length=0,this._snapshot={...e,status:"error",error:t}}switch(this._snapshot.status){case"active":for(let t of this.observers)try{t.next?.(e)}catch(e){p(e)}break;case"done":var i;for(let t of this.observers)try{t.next?.(e)}catch(e){p(e)}this._stopProcedure(),this._complete(),this._doneEvent=(i=this.id,{type:`xstate.done.actor.${i}`,output:this._snapshot.output,actorId:i}),this._parent&&this.system._relay(this,this._parent,this._doneEvent);break;case"error":this._error(this._snapshot.error)}this.system._sendInspectionEvent({type:"@xstate.snapshot",actorRef:this,event:t,snapshot:e})}subscribe(e,t,r){let i=w(e,t,r);if(this._processingStatus!==I.Stopped)this.observers.add(i);else switch(this._snapshot.status){case"done":try{i.complete?.()}catch(e){p(e)}break;case"error":{let e=this._snapshot.error;if(i.error)try{i.error(e)}catch(e){p(e)}else p(e)}}return{unsubscribe:()=>{this.observers.delete(i)}}}on(e,t){let r=this.eventListeners.get(e);r||(r=new Set,this.eventListeners.set(e,r));let i=t.bind(void 0);return r.add(i),{unsubscribe:()=>{r.delete(i)}}}select(e,t=Object.is){return{subscribe:r=>{let i=w(r),n=e(this.getSnapshot());return this.subscribe(r=>{let o=e(r);t(n,o)||(n=o,i.next?.(o))})},get:()=>e(this.getSnapshot())}}
1start(){if(this._processingStatus===I.Running)return this;this._syncSnapshot&&this.subscribe({next:e=>{"active"===e.status&&this.system._relay(this,this._parent,{type:`xstate.snapshot.${this.id}`,snapshot:e})},error:()=>{}}),this.system._register(this.sessionId,this),this.systemId&&this.system._set(this.systemId,this),this._processingStatus=I.Running;let e=u(this.options.input);switch(this.system._sendInspectionEvent({type:"@xstate.event",sourceRef:this._parent,actorRef:this,event:e}),this._snapshot.status){case"done":return this.update(this._snapshot,e),this;case"error":return this._error(this._snapshot.error),this}if(this._parent||this.system.start(),this.logic.start)try{this.logic.start(this._snapshot,this._actorScope)}catch(e){return this._snapshot={...this._snapshot,status:"error",error:e},this._error(e),this}return this.update(this._snapshot,e),this.options.devTools&&this.attachDevTools(),this.mailbox.start(),this}_process(e){let t,r;try{t=this.logic.transition(this._snapshot,e,this._actorScope)}catch(e){r={err:e}}if(r){let{err:e}=r;this._snapshot={...this._snapshot,status:"error",error:e},this._error(e);return}this.update(t,e),e.type===l&&(this._stopProcedure(),this._complete())}_stop(){return this._processingStatus===I.Stopped||((this.mailbox.clear(),this._processingStatus===I.NotStarted)?this._processingStatus=I.Stopped:this.mailbox.enqueue({type:l})),this}stop(){if(this._parent)throw Error("A non-root actor cannot be stopped directly.");return this._stop()}_complete(){for(let e of this.observers)try{e.complete?.()}catch(e){p(e)}this.observers.clear(),this.eventListeners.clear()}_reportError(e){if(!this.observers.size){this._parent||p(e),this.eventListeners.clear();return}let t=!1;for(let r of this.observers){let i=r.error;t||=!i;try{i?.(e)}catch(e){p(e)}}this.observers.clear(),this.eventListeners.clear(),t&&p(e)}_error(e){this._stopProcedure(),this._reportError(e),this._parent&&this.system._relay(this,this._parent,d(this.id,e))}_stopProcedure(){return this._processingStatus!==I.Running||(this.system.scheduler.cancelAll(this),this.mailbox.clear(),this.mailbox=new s(this._process.bind(this)),this._processingStatus=I.Stopped,this.system._unregister(this)),this}_send(e){this._processingStatus!==I.Stopped&&this.mailbox.enqueue(e)}send(e){this.system._relay(void 0,this,e)}attachDevTools(){let{devTools:t}=this.options;t&&("function"==typeof t?t:t=>{if("u"<typeof window)return;let r=function(){let t="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:e.g;if(t.__xstate__)return t.__xstate__}();r&&r.register(t)})(this)}toJSON(){return{xstate$$type:1,id:this.id}}getPersistedSnapshot(e){return this.logic.getPersistedSnapshot(this._snapshot,e)}[f](){return this}getSnapshot(){return this._snapshot}}function E(e,...[t]){return new O(e,t)}function T(e,t,r,i,{sendId:n}){return[t,{sendId:"function"==typeof n?n(r,i):n},void 0]}function L(e,t){e.defer(()=>{e.system.scheduler.cancel(e.self,t.sendId)})}function P(e){function t(e,t){}return t.type="xstate.cancel",t.sendId=e,t.resolve=T,t.execute=L,t}function C(e,t,r,i,{id:n,systemId:o,src:s,input:a,syncSnapshot:l}){let c,d,u="string"==typeof s?S(t.machine,s):s,p="function"==typeof n?n(r):n;return u&&(d="function"==typeof a?a({context:t.context,event:r.event,self:e.self}):a,c=E(u,{id:p,src:s,parent:e.self,syncSnapshot:l,systemId:o,input:d})),[ew(t,{children:{...t.children,[p]:c}}),{id:n,systemId:o,actorRef:c,src:s,input:d},void 0]}function M(e,{actorRef:t}){t&&e.defer(()=>{t._processingStatus!==I.Stopped&&t.start()})}function R(...[e,{id:t,systemId:r,input:i,syncSnapshot:n=!1}={}]){function o(e,t){}return o.type="xstate.spawnChild",o.id=t,o.systemId=r,o.src=e,o.input=i,o.syncSnapshot=n,o.resolve=C,o.execute=M,o}function D(e,t,r,i,{actorRef:n}){let o="function"==typeof n?n(r,i):n,s="string"==typeof o?t.children[o]:o,a=t.children;return s&&(a={...a},delete a[s.id]),[ew(t,{children:a}),s,void 0]}function B(e,t){if(t){if(!function e(t,r){let i=r.getSnapshot();if(i&&"children"in i)for(let r of Object.values(i.children))e(t,r);t.system._unregister(r)}(e,t),t._processingStatus!==I.Running)return void e.stopChild(t);e.defer(()=>{e.stopChild(t)})}}function F(e){function t(e,t){}return t.type="xstate.stopChild",t.actorRef=e,t.resolve=D,t.execute=B,t}function z(e,{context:t,event:r},{guards:i}){return i.every(i=>$(i,t,r,e))}
1function $(e,t,r,i){let{machine:n}=i,o="function"==typeof e,s=o?e:n.implementations.guards["string"==typeof e?e:e.type];if(!o&&!s)throw Error(`Guard '${"string"==typeof e?e:e.type}' is not implemented.'.`);if("function"!=typeof s)return $(s,t,r,i);let a={context:t,event:r},l=o||"string"==typeof e?void 0:"params"in e?"function"==typeof e.params?e.params({context:t,event:r}):e.params:void 0;return"check"in s?s.check(i,a,s):s(a,l)}function W(e){return"atomic"===e.type||"final"===e.type}function V(e){return Object.values(e.states).filter(e=>"history"!==e.type)}function U(e,t){let r=[];if(t===e)return r;let i=e.parent;for(;i&&i!==t;)r.push(i),i=i.parent;return r}function H(e){let t=new Set(e),r=G(t);for(let e of t)if("compound"!==e.type||r.get(e)&&r.get(e).length){if("parallel"===e.type){for(let r of V(e))if("history"!==r.type&&!t.has(r))for(let e of Z(r))t.add(e)}}else Z(e).forEach(e=>t.add(e));for(let e of t){let r=e.parent;for(;r;)t.add(r),r=r.parent}return t}function G(e){let t=new Map;for(let r of e)t.has(r)||t.set(r,[]),r.parent&&(t.has(r.parent)||t.set(r.parent,[]),t.get(r.parent).push(r));return t}function K(e,t){return function e(t,r){let i=r.get(t);if(!i)return{};if("compound"===t.type){let e=i[0];if(!e)return{};if(W(e))return e.key}let n={};for(let t of i)n[t.key]=e(t,r);return n}(e,G(H(t)))}function q(e,t){return"compound"===t.type?V(t).some(t=>"final"===t.type&&e.has(t)):"parallel"===t.type?V(t).every(t=>q(e,t)):"final"===t.type}let J=e=>"#"===e[0];function Q(e,t,r){let i=j(r.target),n=r.reenter??!1,o=function(e,t){if(void 0!==t)return t.map(t=>{if("string"!=typeof t)return t;if(J(t))return e.machine.getStateNodeById(t);let r="."===t[0];if(r&&!e.parent)return er(e,t.slice(1));let i=r?e.key+t:t;if(e.parent)try{return er(e.parent,i)}catch(t){throw Error(`Invalid transition definition for state node '${e.id}':
2${t.message}`)}throw Error(`Invalid target: "${t}" is not a valid target from the root node. Did you mean ".${t}"?`)})}(e,i),s={...r,actions:g(r.actions),guard:r.guard,target:o,source:e,reenter
2:n,eventType:t,toJSON:()=>({...s,source:`#${e.id}`,target:o?o.map(e=>`#${e.id}`):void 0})};return s}function Y(e){let t=j(e.config.target);return t?{target:t.map(t=>"string"==typeof t?er(e.parent,t):t)}:"parallel"===e.parent.type?{target:[e.parent]}:e.parent.initial}function X(e){return"history"===e.type}function Z(e){let t=ee(e);for(let r of t)for(let i of U(r,e))t.add(i);return t}function ee(e){let t=new Set;return!function e(r){if(!t.has(r)){if(t.add(r),"compound"===r.type)e(r.initial.target[0]);else if("parallel"===r.type)for(let t of V(r))e(t)}}(e),t}function et(e,t){if(J(t))return e.machine.getStateNodeById(t);if(!e.states)throw Error(`Unable to retrieve child state '${t}' from '${e.id}'; no child states exist.`);let r=e.states[t];if(!r)throw Error(`Child state '${t}' does not exist on '${e.id}'`);return r}function er(e,t){if("string"==typeof t&&J(t))try{return e.machine.getStateNodeById(t)}catch{}let r=h(t).slice(),i=e;for(;r.length;){let e=r.shift();if(!e.length)break;i=et(i,e)}return i}function ei(e,t){if("string"==typeof t){let r=e.states[t];if(!r)throw Error(`State '${t}' does not exist on '${e.id}'`);return[e,r]}let r=Object.keys(t),i=r.map(t=>et(e,t)).filter(Boolean);return[e.machine.root,e].concat(i,r.reduce((r,i)=>{let n=et(e,i);if(!n)return r;let o=ei(n,t[i]);return r.concat(o)},[]))}function en(e,t){let r=e;for(;r.parent&&r.parent!==t;)r=r.parent;return r.parent===t}function eo(e,t,r){let i=new Set;for(let n of e){let e=!1,o=new Set;for(let s of i)if(function(e,t){let r=new Set(e),i=new Set(t);for(let e of r)if(i.has(e))return!0;for(let e of i)if(r.has(e))return!0;return!1}(el([n],t,r),el([s],t,r)))if(en(n.source,s.source))o.add(s);else{e=!0;break}if(!e){for(let e of o)i.delete(e);i.add(n)}}return Array.from(i)}function es(e,t){if(!e.target)return[];let r=new Set;for(let i of e.target)if(X(i))if(t[i.id])for(let e of t[i.id])r.add(e);else for(let e of es(Y(i),t))r.add(e);else r.add(i);return[...r]}function ea(e,t){let r=es(e,t);if(!r)return;if(!e.reenter&&r.every(t=>t===e.source||en(t,e.source)))return e.source;let i=function(e){let[t,...r]=e;for(let e of U(t,void 0))if(r.every(t=>en(t,e)))return e}(r.concat(e.source));return i||(e.reenter?void 0:e.source.machine.root)}function el(e,t,r){let i=new Set;for(let n of e)if(n.target?.length){let e=ea(n,r);for(let r of(n.reenter&&n.source===e&&i.add(e),t))en(r,e)&&i.add(r)}return[...i]}function ec(e,t,r,i,n,o){let s=[];if(!e.length)return[t,s];let a=r.actionExecutor;r.actionExecutor=e=>{s.push(e),a(e)};try{let a=new Set(t._nodes),l=t.historyValue,d=eo(e,a,l),u=t;n||([u,l]=function(e,t,r,i,n,o,s,a){let l,c=e,d=el(i,n,o);for(let e of(d.sort((e,t)=>t.order-e.order),d))for(let t of function(e){return Object.keys(e.states).map(t=>e.states[t]).filter(e=>"history"===e.type)}(e)){let r;r="deep"===t.history?t=>W(t)&&en(t,e):t=>t.parent===e,(l??={...o})[t.id]=Array.from(n).filter(r)}for(let e of d)c=ep(c,t,r,[...e.exit,...e.invoke.map(e=>F(e.id))],s,void 0),n.delete(e);return[c,l||o]}(u,i,r,d,a,l,o,r.actionExecutor)),u=ep(u,i,r,d.flatMap(e=>e.actions),o,void 0),u=function(e,t,r,i,n,o,s,a){let l=e,d=new Set,u=new Set;(function(e,t,r,i){for(let n of e){let e=ea(n,t);for(let o of n.target||[])!X(o)&&(n.source!==o||n.source!==e||n.reenter)&&(i.add(o),r.add(o)),ed(o,t,r,i);for(let o of es(n,t)){let s=U(o,e);e?.type==="parallel"&&s.push(e),eu(i,t,r,s,!n.source.parent&&n.reenter?void 0:e)}}})(i,s,u,d),a&&u.add(e.machine.root);let p=new Set;for(let e of[...d].sort((e,t)=>e.order-t.order)){n.add(e);let i=[];for(let t of(i.push(...e.entry),e.invoke))i.push(R(t.src,{...t,syncSnapshot:!!t.onSnapshot}));if(u.has(e)){let t=e.initial.actions;i.push(...t)}if(l=ep(l,t,r,i,o,e.invoke.map(e=>e.id)),"final"===e.type){let i=e.parent,s=i?.type==="parallel"?i:i?.parent,a=s||e;for(i?.type==="compound"&&o.push(c(i.id,void 0!==e.output?x(e.output,l.context,t,r.self):void 0));s?.type==="parallel"&&!p.has(s)&&q(n,s);)p.add(s),o.push(c(s.id)),a=s,s=s.parent;if(s)continue;l=ew(l,{status:"done",output:function(e,t,r,i,n){if(void 0===i.output)return;let o=c(n.id,void 0!==n.output&&n.parent?x(n.output,e.context,t,r.self):void 0);return x(i.output,e.context,o,r.self)}(l,t,r,l.machine.root,a)})}}return l}(u,i,r,d,a,o,l,n);let p=[...a];"done"===u.status&&(u=ep(u,i,r,p.sort((e,t)=>
2t.order-e.order).flatMap(e=>e.exit),o,void 0));try{if(l===t.historyValue&&function(e,t){if(e.length!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}(t._nodes,a))return[u,s];return[ew(u,{_nodes:p,historyValue:l}),s]}catch(e){throw e}}finally{r.actionExecutor=a}}function ed(e,t,r,i){var n,o,s,a;if(X(e))if(t[e.id]){let s=t[e.id];for(let e of s)i.add(e),ed(e,t,r,i);for(let a of s){n=a,o=e.parent,eu(i,t,r,U(n,o))}}else{let n=Y(e);for(let o of n.target)i.add(o),n===e.parent?.initial&&r.add(e.parent),ed(o,t,r,i);for(let o of n.target){s=o,a=e.parent,eu(i,t,r,U(s,a))}}else if("compound"===e.type){let[n]=e.initial.target;X(n)||(i.add(n),r.add(n)),ed(n,t,r,i),eu(i,t,r,U(n,e))}else if("parallel"===e.type)for(let n of V(e).filter(e=>!X(e)))[...i].some(e=>en(e,n))||(X(n)||(i.add(n),r.add(n)),ed(n,t,r,i))}function eu(e,t,r,i,n){for(let o of i)if((!n||en(o,n))&&e.add(o),"parallel"===o.type)for(let i of V(o).filter(e=>!X(e)))[...e].some(e=>en(e,i))||(e.add(i),ed(i,t,r,e))}function ep(e,t,r,i,n,o){let s=o?[]:void 0,a=function e(t,r,i,n,o,s){let{machine:a}=t,l=t;for(let t of n){var c;let n="function"==typeof t,d=n?t:(c="string"==typeof t?t:t.type,a.implementations.actions[c]),u={context:l.context,event:r,self:i.self,system:i.system},p=n||"string"==typeof t?void 0:"params"in t?"function"==typeof t.params?t.params({context:l.context,event:r}):t.params:void 0;if(!d||!("resolve"in d)){i.actionExecutor({type:"string"==typeof t?t:"object"==typeof t?t.type:t.name||"(anonymous)",info:u,params:p,exec:d});continue}let[f,h,y]=d.resolve(i,l,u,p,d,o);l=f,"retryResolve"in d&&s?.push([d,h]),"execute"in d&&i.actionExecutor({type:d.type,info:u,params:h,exec:d.execute.bind(null,i,h)}),y&&(l=e(l,r,i,y,o,s))}return l}(e,t,r,i,{internalQueue:n,deferredActorIds:o},s);return s?.forEach(([e,t])=>{e.retryResolve(r,a,t)}),a}function ef(e,t,r,i){let n=e,o=[];function s(e,t,i){r.system._sendInspectionEvent({type:"@xstate.microstep",actorRef:r.self,event:t,snapshot:e[0],_transitions:i}),o.push(e)}if(t.type===l)return s([n=ew(eh(n,t,r),{status:"stopped"}),[]],t,[]),{snapshot:n,microsteps:o};let c=t;if(c.type!==a){let t=c,a=t.type.startsWith("xstate.error.actor"),l=ey(t,n);if(a&&!l.length)return s([n=ew(e,{status:"error",error:t.error}),[]],t,[]),{snapshot:n,microsteps:o};let d=ec(l,e,r,c,!1,i);n=d[0],s(d,t,l)}let d=!0,u=e.machine.options?.maxIterations??1/0,p=0;for(;"active"===n.status;){if(++p>u)throw Error(`Infinite loop detected: the machine has processed more than ${u} microsteps without reaching a stable state. This usually happens when there's a cycle of transitions (e.g., eventless transitions or raised events causing state A -> B -> C -> A).`);let e=d?function(e,t){let r=new Set;for(let i of e._nodes.filter(W))e:for(let n of[i].concat(U(i,void 0)))if(n.always){for(let i of n.always)if(void 0===i.guard||$(i.guard,e.context,t,e)){r.add(i);break e}}return eo(Array.from(r),new Set(e._nodes),e.historyValue)}(n,c):[],t=e.length?n:void 0;if(!e.length){if(!i.length)break;e=ey(c=i.shift(),n)}let o=ec(e,n,r,c,!1,i);d=(n=o[0])!==t,s(o,c,e)}return"active"!==n.status&&eh(n,c,r),{snapshot:n,microsteps:o}}function eh(e,t,r){return ep(e,t,r,Object.values(e.children).map(e=>F(e)),[],void 0)}function ey(e,t){return t.machine.getTransitionData(t,e)}let em=function(e){return function e(t,r){let i=y(t),n=y(r);return"string"==typeof n?"string"==typeof i&&n===i:"string"==typeof i?i in n:Object.keys(i).every(t=>t in n&&e(i[t],n[t]))}(e,this.value)},eg=function(e){return this.tags.has(e)},ex=function(e){let t=this.machine.getTransitionData(this,e);return!!t?.length&&t.some(e=>void 0!==e.target||e.actions.length)},ev=function(){let{_nodes:e,tags:t,machine:r,getMeta:i,toJSON:n,can:o,hasTag:s,matches:a,...l}=this;return{...l,tags:Array.from(t)}},eb=function(){return this._nodes.reduce((e,t)=>(void 0!==t.meta&&(e[t.id]=t.meta),e),{})};function ej(e,t){return{status:e.status,output:e.output,error:e.error,machine:t,context:e.context,_nodes:e._nodes,value:K(t.root,e._nodes),tags:new Set(e._nodes.flatMap(e=>e.tags)),children:e.children,historyValue:e.historyValue||{},matches:em,hasTag:eg,can:ex,getMeta:eb,toJSON:ev}}function ew(e,t={}){return ej({...e,...t},e.machine)}function eS(e,t,r,i,{event:n,id:o,delay:s},{internalQueue:a}){let l,c=t.machine.implementations.delays;if("string"==typeof n)throw Error(`Only event objects may be used with raise; use raise({ type: "${n}" }) instead`);let d="function"==typeof n?n(r,i):n;if("string"==typeof s){let e=c&&c[s];l="function"==typeof e?e(r,i):e}else l="function"==typeof s?s(r,i):s;return"number"!=typeof l&&a.push(d),[t,{event:d,id:o,delay:l},void 0]}function eN(e,t){let{event:r,delay:i,id:n}=t;if("number"==typeof i)return void e.defer(()=>{let t=e.self;e.system.scheduler.schedule(t,t,r,i,n)})}function e_(e,t){function r(e,t){}return r.type="xstate.raise",r.event=e,r.id=t?.id,r.delay=t?.delay,r.resolve=eS,r.execute=eN,r}e.i(430224);var ek=e.i(802239);let eI=(e,t)=>{t(e);let r=e.getSnapshot().children;
2r&&Object.values(r).forEach(e=>{eI(e,t)})};var eA=e.i(225913),eO=e.i(224283),eE=e.i(734516),eT=e.i(109695),eL=e.i(417044);function eP({isActive:e,kind:t,onBlur:r,onClick:n,onFocus:o}){let{icon:s,label:a}=function(e,t){if("play"===t)return{icon:e?"pause":"play",label:e?"Aby zatrzymać film wcisnij enter lub spację":"Aby uruchomić film wciśnij enter lub spację"};if("replay"===t)return{icon:"play",label:"Aby uruchomić film ponownie wciśnij enter lub spację"};if("mute"===t)return{icon:e?"mute":"volume-status",label:e?"Aby przywrócić głośność kliknij enter lub spację":"Aby wyciszyć kliknij enter lub spację"};throw Error(`Unknown control ${t}`)}(e,t);return(0,i.jsx)(eL.IconButton,{onPress:n,onFocus:o,onBlur:r,"aria-label":a,variant:"tertiary",size:"sm",className:(0,eT.cn)("bg-brand-bold/40 text-light","outline-hidden focus-visible:outline focus-visible:outline-offset-4 focus-visible:outline-brand","hover:bg-light-100/40","active:hover:bg-brand-bold/80"),icon:s})}function eC(e,t,r,i,{assignment:n}){if(!t.context)throw Error("Cannot assign to undefined `context`. Ensure that `context` is defined in the machine config.");let o={},s={context:t.context,event:r.event,spawn:function(e,{machine:t,context:r},i,n){return(o,s)=>{let a=((o,s)=>{if("string"!=typeof o)return E(o,{id:s?.id,parent:e.self,syncSnapshot:s?.syncSnapshot,input:s?.input,src:o,systemId:s?.systemId});{let a=S(t,o);if(!a)throw Error(`Actor logic '${o}' not implemented in machine '${t.id}'`);let l=E(a,{id:s?.id,parent:e.self,syncSnapshot:s?.syncSnapshot,input:"function"==typeof s?.input?s.input({context:r,event:i,self:e.self}):s?.input,src:o,systemId:s?.systemId});return n[l.id]=l,l}})(o,s);return n[a.id]=a,e.defer(()=>{a._processingStatus!==I.Stopped&&a.start()}),a}}(e,t,r.event,o),self:e.self,system:e.system},a={};if("function"==typeof n)a=n(s,i);else for(let e of Object.keys(n)){let t=n[e];a[e]="function"==typeof t?t(s,i):t}let l=Object.assign({},t.context,a);return[ew(t,{context:l,children:Object.keys(o).length?{...t.children,...o}:t.children}),void 0,void 0]}function eM(e){function t(e,t){}return t.type="xstate.assign",t.assignment=e,t.resolve=eC,t}let eR=new WeakMap;function eD(e,t,r){let i=eR.get(e);return i?t in i||(i[t]=r()):(i={[t]:r()},eR.set(e,i)),i[t]}let eB={},eF=e=>"string"==typeof e?{type:e}:"function"==typeof e?"resolve"in e?{type:e.type}:{type:e.name}:e;class ez{constructor(e,t){if(this.config=e,this.key=void 0,this.id=void 0,this.type=void 0,this.path=void 0,this.states=void 0,this.history=void 0,this.entry=void 0,this.exit=void 0,this.parent=void 0,this.machine=void 0,this.meta=void 0,this.output=void 0,this.order=-1,this.description=void 0,this.tags=[],this.transitions=void 0,this.always=void 0,this.parent=t._parent,this.key=t._key,this.machine=t._machine,this.path=this.parent?this.parent.path.concat(this.key):[],this.id=this.config.id||[this.machine.id,...this.path].join("."),this.type=this.config.type||(this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.description=this.config.description,this.order=this.machine.idMap.size,this.machine.idMap.set(this.id,this),this.states=this.config.states?m(this.config.states,(e,t)=>new ez(e,{_parent:this,_key:t,_machine:this.machine})):eB,"compound"===this.type&&!this.config.initial)throw Error(`No initial state specified for compound state node "#${this.id}". Try adding { initial: "${Object.keys(this.states)[0]}" } to the state config.`);this.history=!0===this.config.history?"shallow":this.config.history||!1,this.entry=g(this.config.entry).slice(),this.exit=g(this.config.exit).slice(),this.meta=this.config.meta,this.output="final"!==this.type&&this.parent?void 0:this.config.output,this.tags=g(e.tags).slice()}_initialize(){this.transitions=function(e){let t=new Map;if(e.config.on)for(let r of Object.keys(e.config.on)){if(""===r)throw Error('Null events ("") cannot be specified as a transition key. Use `always: { ... }` instead.');let i=e.config.on[r];t.set(r,b(i).map(t=>Q(e,r,t)))}if(e.config.onDone){let r=`xstate.done.state.${e.id}`;t.set(r,b(e.config.onDone).map(t=>Q(e,r,t)))}for(let r of e.invoke){if(r.onDone){let i=`xstate.done.actor.${r.id}`;t.set(i,b(r.onDone).map(t=>Q(e,i,t)))}if(r.onError){let i=`xstate.error.actor.${r.id}`;t.set(i,b(r.onError).map(t=>Q(e,i,t)))}if(r.onSnapshot){let i=`xstate.snapshot.${r.id}`;t.set(i,b(r.onSnapshot).map(t=>Q(e,i,t)))}}for(let r of e.after){let e=t.get(r.eventType);e||(e=[],t.set(r.eventType,e)),e.push(r)}return t}(this),this.config.always&&(this.always=b(this.config.always).map(e=>
2Q(this,"",e))),Object.keys(this.states).forEach(e=>{this.states[e]._initialize()})}get definition(){return{id:this.id,key:this.key,version:this.machine.version,type:this.type,initial:this.initial?{target:this.initial.target,source:this,actions:this.initial.actions.map(eF),eventType:null,reenter:!1,toJSON:()=>({target:this.initial.target.map(e=>`#${e.id}`),source:`#${this.id}`,actions:this.initial.actions.map(eF),eventType:null})}:void 0,history:this.history,states:m(this.states,e=>e.definition),on:this.on,transitions:[...this.transitions.values()].flat().map(e=>({...e,actions:e.actions.map(eF)})),entry:this.entry.map(eF),exit:this.exit.map(eF),meta:this.meta,order:this.order||-1,output:this.output,invoke:this.invoke,description:this.description,tags:this.tags}}toJSON(){return this.definition}get invoke(){return eD(this,"invoke",()=>g(this.config.invoke).map((e,t)=>{var r,i;let{src:n,systemId:o}=e,s=e.id??(r=this.id,`${t}.${r}`),a="string"==typeof n?n:`xstate.invoke.${i=this.id,`${t}.${i}`}`;return{...e,src:a,id:s,systemId:o,toJSON(){let{onDone:t,onError:r,...i}=e;return{...i,type:"xstate.invoke",src:a,id:s}}}}))}get on(){return eD(this,"on",()=>[...this.transitions].flatMap(([e,t])=>t.map(t=>[e,t])).reduce((e,[t,r])=>(e[t]=e[t]||[],e[t].push(r),e),{}))}get after(){return eD(this,"delayedTransitions",()=>{var e;let t;return e=this,(t=e.config.after)?Object.keys(t).flatMap(r=>{var i;let n,o,s=t[r],a=Number.isNaN(+r)?r:+r,l=(i=e.id,o=(n={type:`xstate.after.${a}.${i}`}).type,e.entry.push(e_(n,{id:o,delay:a})),e.exit.push(P(o)),o);return g("string"==typeof s?{target:s}:s).map(e=>({...e,event:l,delay:a}))}).map(t=>{let{delay:r}=t;return{...Q(e,t.event,t),delay:r}}):[]})}get initial(){return eD(this,"initial",()=>(function(e,t){let r="string"==typeof t?e.states[t]:t?e.states[t.target]:void 0;if(!r&&t)throw Error(`Initial state node "${t}" not found on parent state node #${e.id}`);let i={source:e,actions:t&&"string"!=typeof t?g(t.actions):[],eventType:null,reenter:!1,target:r?[r]:[],toJSON:()=>({...i,source:`#${e.id}`,target:r?[`#${r.id}`]:[]})};return i})(this,this.config.initial))}next(e,t){let r,i=t.type,n=[];for(let o of eD(this,`candidates-${i}`,()=>{var e;let t,r;return e=this,t=e.transitions.get(i),r=[...e.transitions.keys()].filter(e=>e!==i&&function(e,t){if(t===e||"*"===t)return!0;if(!t.endsWith(".*"))return!1;let r=t.split("."),i=e.split(".");for(let e=0;e<r.length;e++){let t=r[e],n=i[e];if("*"===t)return e===r.length-1;if(t!==n)return!1}return!0}(i,e)).sort((e,t)=>t.length-e.length).flatMap(t=>e.transitions.get(t)),t?[...t,...r]:r})){let{guard:s}=o,a=e.context,l=!1;try{l=!s||$(s,a,t,e)}catch(t){let e="string"==typeof s?s:"object"==typeof s?s.type:void 0;throw Error(`Unable to evaluate guard ${e?`'${e}' `:""}in transition for event '${i}' in state node '${this.id}':
3${t.message}`)}if(l){n.push(...o.actions),r=o;break}}return r?[r]:void 0}get events(){return eD(this,"events",()=>{let{states:e}=this,t=new Set(this.ownEvents);if(e)for(let r of Object.keys(e)){let i=e[r];if(i.states)for(let e of i.events)t.add(`${e}`)}return Array.from(t)})}get ownEvents(){return Array.from(new Set(Object.keys(Object.fromEntries(this.transitions)).filter(e=>this.transitions.get(e).some(e=>!(!e.target&&!e.actions.length&&!e.reenter)))))}}class e${constructor(e,t){this.config=e,this.version=void 0,this.schemas=void 0,this.implementations=void 0,this.options=void 0,this.__xstatenode=!0,this.idMap=new Map,this.root=void 0,this.id=void 0,this.states=void 0,this.events=void 0,this.id=e.id||"(machine)",this.implementations={actors:t?.actors??{},actions:t?.actions??{},delays:t?.delays??{},guards:t?.guards??{}},this.version=this.config.version,this.schemas=this.config.schemas,this.options={maxIterations:1/0,...this.config.options},this.transition=this.transition.bind(this),this.getInitialSnapshot=this.getInitialSnapshot.bind(this),this.getPersistedSnapshot=this.getPersistedSnapshot.bind(this),this.restoreSnapshot=this.restoreSnapshot.bind(this),this.start=this.start.bind(this),this.root=new ez(e,{_key:this.id,_machine:this}),this.root._initialize(),function(e){let t=[],r=i=>
3{Object.values(i).forEach(i=>{if(i.config.route&&i.config.id){let r=i.config.id,n=i.config.route.guard,o=({event:e})=>e.to===`#${r}`,s={...i.config.route,guard:n?function(e){function t(e,t){return!1}return t.check=z,t.guards=e,t}([o,n]):o,target:`#${r}`};t.push(Q(e,"xstate.route",s))}i.states&&r(i.states)})};r(e.states),t.length>0&&e.transitions.set("xstate.route",t)}(this.root),this.states=this.root.states,this.events=this.root.events}provide(e){let{actions:t,guards:r,actors:i,delays:n}=this.implementations;return new e$(this.config,{actions:{...t,...e.actions},guards:{...r,...e.guards},actors:{...i,...e.actors},delays:{...n,...e.delays}})}resolveState(e){var t;let r,i=(r=H(ei(t=this.root,e.value)),K(t,[...r])),n=H(ei(this.root,i));return ej({_nodes:[...n],context:e.context||{},children:{},status:q(n,this.root)?"done":e.status||"active",output:e.output,error:e.error,historyValue:e.historyValue},this)}transition(e,t,r){return ef(e,t,r,[]).snapshot}microstep(e,t,r){return ef(e,t,r,[]).microsteps.map(([e])=>e)}getTransitionData(e,t){return function e(t,r,i,n){if("string"==typeof r){let e;return(e=et(t,r).next(i,n))&&e.length?e:t.next(i,n)}if(1===Object.keys(r).length){let o,s;return(s=e(et(t,(o=Object.keys(r))[0]),r[o[0]],i,n))&&s.length?s:t.next(i,n)}let o=[];for(let s of Object.keys(r)){let a=r[s];if(!a)continue;let l=e(et(t,s),a,i,n);l&&o.push(...l)}return o.length?o:t.next(i,n)}(this.root,e.value,e,t)||[]}_getPreInitialState(e,t,r){let{context:i}=this.config,n=ej({context:"function"!=typeof i&&i?i:{},_nodes:[this.root],children:{},status:"active"},this);return"function"==typeof i?ep(n,t,e,[eM(({spawn:e,event:t,self:r})=>i({spawn:e,input:t.input,self:r}))],r,void 0):n}getInitialSnapshot(e,t){let r=u(t),i=[],n=ej({context:"function"!=typeof this.config.context&&this.config.context?this.config.context:{},_nodes:[this.root],children:{},status:"active"},this);try{var o,s;n=this._getPreInitialState(e,r,i);let[t]=(o=this.root,s=n,ec([{target:[...ee(o)],source:o,reenter:!0,actions:[],eventType:null,toJSON:null}],s,e,r,!0,i)),{snapshot:a}=ef(t,r,e,i);return a}catch(e){return ew(n,{status:"error",error:e})}}start(e){Object.values(e.children).forEach(e=>{"active"===e.getSnapshot().status&&e.start()})}getStateNodeById(e){let t=h(e),r=t.slice(1),i=J(t[0])?t[0].slice(1):t[0],n=this.idMap.get(i);if(!n)throw Error(`Child state node '#${i}' does not exist on machine '${this.id}'`);return er(n,r)}get definition(){return this.root.definition}toJSON(){return this.definition}getPersistedSnapshot(e,t){return function(e,t){let{_nodes:r,tags:i,machine:n,children:o,context:s,can:a,hasTag:l,matches:c,getMeta:d,toJSON:u,...p}=e,f={};for(let e in o){let r=o[e];f[e]={snapshot:r.getPersistedSnapshot(t),src:r.src,systemId:r.systemId,syncSnapshot:r._syncSnapshot}}return{...p,context:function e(t){let r;for(let i in t){let n=t[i];if(n&&"object"==typeof n)if("sessionId"in n&&"send"in n&&"ref"in n)(r??=Array.isArray(t)?t.slice():{...t})[i]={xstate$$type:1,id:n.id};else{let o=e(n);o!==n&&((r??=Array.isArray(t)?t.slice():{...t})[i]=o)}}return r??t}(s),children:f,historyValue:function(e){if("object"!=typeof e||null===e)return{};let t={};for(let r in e){let i=e[r];Array.isArray(i)&&(t[r]=i.map(e=>({id:e.id})))}return t}(p.historyValue)}}(e,t)}restoreSnapshot(e,t){let r={},i=e.children;
3Object.keys(i).forEach(e=>{let n=i[e],o=n.snapshot,s=n.src,a="string"==typeof s?S(this,s):s;if(!a)return;let l=E(a,{id:e,parent:t.self,syncSnapshot:n.syncSnapshot,snapshot:o,src:s,systemId:n.systemId});r[e]=l});let n=function(e,t){if(!t||"object"!=typeof t)return{};let r={};for(let i in t)for(let n of t[i]){let t=function(e,t){if(t instanceof ez)return t;try{return e.machine.getStateNodeById(t.id)}catch{}}(e,n);t&&(r[i]??=[],r[i].push(t))}return r}(this.root,e.historyValue),o=ej({...e,children:r,_nodes:Array.from(H(ei(this.root,e.value))),historyValue:n},this),s=new Set;return!function e(t,r){if(!s.has(t))for(let i in s.add(t),t){let n=t[i];if(n&&"object"==typeof n){if("xstate$$type"in n&&1===n.xstate$$type){t[i]=r[n.id];continue}e(n,r)}}}(o.context,r),o}}function eW(e,t,r,i,{event:n}){return[t,{event:"function"==typeof n?n(r,i):n},void 0]}function eV(e,{event:t}){e.defer(()=>e.emit(t))}function eU(e){function t(e,t){}return t.type="xstate.emit",t.event=e,t.resolve=eW,t.execute=eV,t}let eH=((r={}).Parent="#_parent",r.Internal="#_internal",r);function eG(e,t,r,i,{to:n,event:o,id:s,delay:a},l){let c,d,u=t.machine.implementations.delays;if("string"==typeof o)throw Error(`Only event objects may be used with sendTo; use sendTo({ type: "${o}" }) instead`);let p="function"==typeof o?o(r,i):o;if("string"==typeof a){let e=u&&u[a];c="function"==typeof e?e(r,i):e}else c="function"==typeof a?a(r,i):a;let f="function"==typeof n?n(r,i):n;if("string"==typeof f){if(!(d=f===eH.Parent?e.self._parent:f===eH.Internal?e.self:f.startsWith("#_")?t.children[f.slice(2)]:l.deferredActorIds?.includes(f)?f:t.children[f]))throw Error(`Unable to send event to actor '${f}' from machine '${t.machine.id}'.`)}else d=f||e.self;return[t,{to:d,targetId:"string"==typeof f?f:void 0,event:p,id:s,delay:c},void 0]}function eK(e,t,r){"string"==typeof r.to&&(r.to=t.children[r.to])}function eq(e,t){e.defer(()=>{let{to:r,event:i,delay:n,id:o}=t;"number"==typeof n?e.system.scheduler.schedule(e.self,r,i,n,o):e.system._relay(e.self,r,"xstate.error"===i.type?d(e.self.id,i.data):i)})}function eJ(e,t,r){function i(e,t){}return i.type="xstate.sendTo",i.to=e,i.event=t,i.id=r?.id,i.delay=r?.delay,i.resolve=eG,i.retryResolve=eK,i.execute=eq,i}function eQ(e,t,r,i,{collect:n}){let o=[],s=function(e){o.push(e)};return s.assign=(...e)=>{o.push(eM(...e))},s.cancel=(...e)=>{o.push(P(...e))},s.raise=(...e)=>{o.push(e_(...e))},s.sendTo=(...e)=>{o.push(eJ(...e))},s.sendParent=(...e)=>{o.push(function(e,t){return eJ(eH.Parent,e,t)}(...e))},s.spawnChild=(...e)=>{o.push(R(...e))},s.stopChild=(...e)=>{o.push(F(...e))},s.emit=(...e)=>{o.push(eU(...e))},n({context:r.context,event:r.event,enqueue:s,check:e=>$(e,t.context,r.event,t),self:e.self,system:e.system},i),[t,void 0,o]}function eY(e){function t(e,t){}return t.type="xstate.enqueueActions",t.collect=e,t.resolve=eQ,t}function eX(e,t,r,i,{value:n,label:o}){return[t,{value:"function"==typeof n?n(r,i):n,label:o},void 0]}function eZ({logger:e},{value:t,label:r}){r?e(r,t):e(t)}function e0(e=({context:e,event:t})=>({context:e,event:t}),t){function r(e,t){}return r.type="xstate.log",r.value=e,r.label=t,r.resolve=eX,r.execute=eZ,r}let e1=(function e({schemas:t,actors:r,actions:i,guards:n,delays:o}){return{assign:eM,sendTo:eJ,raise:e_,log:e0,cancel:P,stopChild:F,enqueueActions:eY,emit:eU,spawnChild:R,createStateConfig:e=>e,createAction:e=>e,createMachine:e=>new e$({...e,schemas:t},{actors:r,actions:i,guards:n,delays:o}),extend:s=>e({schemas:t,actors:r,actions:{...i,...s.actions},guards:{...n,...s.guards},delays:{...o,...s.delays}})}})({types:{context:{},events:{},input:{}}}).createMachine({id:"videoPlayer",context:({input:e})=>({isMuted:e.isMuted,isControlsVisible:e.isControlsVisible}),type:"parallel",states:{playback:{initial:"idle",states:{idle:{on:{LOAD:"videoLoading"}},videoLoading:{on:{READY:"videoReady",ERROR:"videoLoadingError"}},videoLoadingError:{on:{LOAD:"videoLoading"}},videoReady:{on:{PLAY:"videoPlaying"}},videoPlaying:{on:{PAUSE:"videoPaused",END:"videoEnded",LOAD:"videoLoading"}},videoPaused:{on:{PLAY:"videoPlaying"}},videoEnded:{on:{PLAY:"videoPlaying"}}}},sound:{initial:"initial",states:{initial:{always:[{target:"muted",guard:({context:e})=>e.isMuted}
3,{target:"unmuted"}]},muted:{entry:eM({isMuted:!0}),on:{TOGGLE_MUTE:"unmuted"}},unmuted:{entry:eM({isMuted:!1}),on:{TOGGLE_MUTE:"muted"}}}},controls:{initial:"initial",states:{initial:{always:[{target:"visible",guard:({context:e})=>e.isControlsVisible},{target:"hidden"}]},visible:{entry:eM({isControlsVisible:!0}),after:{3e3:"hidden"}},hidden:{entry:eM({isControlsVisible:!1})}},on:{INTERACTION:".visible"}}}});var e2=e.i(665682);function e4({title:e,posterSrc:t,sources:r}){return(0,i.jsx)(e2.StructuredData,{data:{"@context":"https://schema.org","@type":"VideoObject",name:e,thumbnailUrl:t,contentUrl:r}},`${e}-video`)}e.s(["VideoPlayer",0,function({autoplay:e=!1,className:t,defaultMuted:r=!0,onMute:s,onPause:a,onPlay:l,posterSrc:c,ref:d,sources:u,subtitlesSrc:p,title:f}){let h=(0,n.useRef)(null),[y,m]=function(e,...[t]){return function(e,...[t]){let r=function(e,...[t]){let[[r,i],s]=(0,n.useState)(()=>{let r=E(e,t);return[e.config,r]});if(e.config!==r){let r=E(e,{...t,snapshot:i.getPersistedSnapshot({__unsafeAllowInlineActors:!0})});s([e.config,r]),i=r}return(0,o.default)(()=>{i.logic.implementations=e.implementations}),i}(e,t),i=(0,n.useCallback)(()=>r.getSnapshot(),[r]),s=(0,n.useCallback)(e=>{let{unsubscribe:t}=r.subscribe(e);return t},[r]),a=(0,ek.useSyncExternalStore)(s,i,i);return(0,n.useEffect)(()=>(r.start(),()=>{let e,t;e=[],eI(r,t=>{e.push([t,t.getSnapshot()]),t.observers=new Set}),t=r.system.getSnapshot?.(),r.stop(),r.system._snapshot=t,e.forEach(([e,t])=>{e._processingStatus=0,e._snapshot=t})}),[r]),[a,r.send,r]}(e,t)}(e1,{input:{isMuted:r,isControlsVisible:!0}}),g=(0,eO.default)((0,n.useCallback)(()=>{m({type:"INTERACTION"})},[m]),100),x=(0,n.useCallback)(()=>{m({type:"LOAD"})},[m]),v=(0,n.useCallback)(()=>{m({type:"ERROR"})},[m]),b=(0,n.useCallback)(()=>{m({type:"READY"})},[m]),j=(0,n.useCallback)(()=>{m({type:"END"})},[m]),w=(0,n.useCallback)(()=>{m({type:"PAUSE"});let e=h.current;e&&(e.pause(),a?.(e.currentTime,e.duration))},[m,a]),S=(0,n.useCallback)(()=>{m({type:"PLAY"});let e=h.current;if(e)try{e.play(),l?.(e.currentTime,e.duration)}catch(e){console.error("Error playing video:",e),w()}},[m,l,w]),N=(0,n.useCallback)(()=>{y.matches({playback:"videoPlaying"})?w():S()},[y,w,S]),_=(0,n.useCallback)(()=>{m({type:"TOGGLE_MUTE"}),s?.(y.context.isMuted)},[m,s,y.context.isMuted]);(0,n.useEffect)(()=>{h.current&&(h.current.muted=y.context.isMuted)},[y.context.isMuted]),(0,n.useImperativeHandle)(d,()=>({play:S,pause:w,toggle:N,toggleMute:_,isMuted:()=>y.context.isMuted,isPlaying:()=>y.matches({playback:"videoPlaying"})}));let k=e?"auto":c?"none":"metadata",I=u.map(e=>{let[t,r=""]=e.split("#"),i=t.lastIndexOf("."),n=i>=0?t.substring(0,i):t,o=i>=0?t.substring(i+1):"",s=r?r.split("&"):[];for(let e of["t=0.1"])s.map(e=>e.split("=")[0]).includes(e.split("=")[0])||s.push(e);return{url:`${n}${o?`.${o}`:""}${s.length>0?`#${s.join("&")}`:""}`,type:o}}).filter(({type:e})=>["mp4","webm"].includes(e));return 0===I.length?null:(0,i.jsxs)("div",{onMouseMove:g,onMouseOut:g,onBlur:g,onTouchStart:g,className:(0,eT.cn)("group/video relative aspect-video rounded-sm outline-hidden",t),children:[(0,i.jsx)(e4,{title:f,posterSrc:c,sources:u}),(0,i.jsxs)("video",{playsInline:!0,ref:h,title:f,poster:c,autoPlay:e,muted:r,preload:k,onWaiting:x,onLoadedMetadata:x,onCanPlay:b,onPlaying:S,onPause:w,onEnded:j,onError:v,className:"absolute top-0 left-0 size-full object-cover opacity-100 transition-opacity duration-500",children:[I.map(({url:e,type:t})=>(0,i.jsx)("source",{src:e,type:`video/${t}`},e)),p&&(0,i.jsx)("track",{label:"pl",kind:"subtitles",srcLang:"pl",src:p,default:!0}),"Twoja przeglądarka nie wspiera formatu video"]}),(0,i.jsx)("div",{className:(0,eA.cx)("absolute top-1/2 left-1/2 -translate-1/2 transform transition",{"opacity-0":y.matches({playback:"videoPlaying",controls:"hidden"}),"opacity-100":y.matches({controls:"visible"})}),children:y.matches({playback:"videoLoading"})?(0,i.jsx)("div",{className:"flex size-8 items-center justify-center rounded-sm bg-brand-bold/40 text-light",children:(0,i.jsx)(eE.Loader,{type:"spinner",variant:"light"})}):(0,i.jsx)(eP,{onBlur:g,onClick:N,onFocus:g,isActive:y.matches({playback:"videoPlaying"}),kind:y.matches({playback:"videoEnded"})?"replay":"play"})}),(0,i.jsx)("div",{className:(0,eA.cx)("absolute top-2 right-2 transition",{"opacity-0":y.matches({playback:"videoPlaying",controls:"hidden"}),"opacity-100":y.matches({controls:"visible"})}),children:(0,i.jsx)(eP,{onBlur:g,onClick:_,onFocus:g,isActive:y.context.
3isMuted,kind:"mute"})})]})}],433411)},222462,e=>{"use strict";let t,r,i;var n=e.i(843476),o=e.i(271645);function s(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}var a=Symbol.for("react.lazy"),l=o[" use ".trim().toString()];function c(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===a&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var d=((i=o.forwardRef((e,t)=>{let{children:r,...i}=e;if(c(r)&&"function"==typeof l&&(r=l(r._payload)),o.isValidElement(r)){var n;let e,a,l=(n=r,(a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?n.ref:(a=(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?n.props.ref:n.props.ref||n.ref),c=function(e,t){let r={...t};for(let i in t){let n=e[i],o=t[i];/^on[A-Z]/.test(i)?n&&o?r[i]=(...e)=>{let t=o(...e);return n(...e),t}:n&&(r[i]=n):"style"===i?r[i]={...n,...o}:"className"===i&&(r[i]=[n,o].filter(Boolean).join(" "))}return{...e,...r}}(i,r.props);return r.type!==o.Fragment&&(c.ref=t?function(...e){return t=>{let r=!1,i=e.map(e=>{let i=s(e,t);return r||"function"!=typeof i||(r=!0),i});if(r)return()=>{for(let t=0;t<i.length;t++){let r=i[t];"function"==typeof r?r():s(e[t],null)}}}}(t,l):l),o.cloneElement(r,c)}return o.Children.count(r)>1?o.Children.only(null):null})).displayName="Slot.SlotClone",t=i,(r=o.forwardRef((e,r)=>{let{children:i,...s}=e;c(i)&&"function"==typeof l&&(i=l(i._payload));let a=o.Children.toArray(i),d=a.find(p);if(d){let e=d.props.children,i=a.map(t=>
3t!==d?t:o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null);return(0,n.jsx)(t,{...s,ref:r,children:o.isValidElement(e)?o.cloneElement(e,void 0,i):null})}return(0,n.jsx)(t,{...s,ref:r,children:i})})).displayName="Slot.Slot",r),u=Symbol("radix.slottable");function p(e){return o.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===u}var f=e.i(3429);e.s(["TrackLinkClicks",0,function({asChild:e=!0,children:t,dataLayer:r}){let{track:i}=(0,f.useAnalytics)();return(0,n.jsx)(e?d:"a",{onClick:()=>{i({type:"link_followed",link:r?.link??"",text:r?.name??""})},children:t})}],222462)},274698,e=>{"use strict";e.s(["normalizeActionsForAnalytics",0,function(e){let t=[],r=[],i=[];if(e){for(let n of e)t.push(n.text),r.push(n.type),"LINK"===n.type?i.push(n.href):i.push("null");return{buttonText:t.join(", "),buttonType:r.join(", "),link:i.join(", ")}}}])},177517,764774,904864,e=>{"use strict";var t=e.i(843476),r=e.i(225913),i=e.i(271645),n=e.i(848124),o=e.i(417317),s=e.i(274698),a=e.i(368540),l=e.i(714587),c=e.i(109695),d=e.i(441639),u=e.i(673902);function p({action:e,dataLayerItem:r,buttonVariant:i="primary",className:n}){return(0,t.jsx)(u.ActionHandler,{action:e,dataLayer:r,allow:["LINK","CMB_ACTION"],children:({text:e,...r})=>"LINK"===r.actionType?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.Link,{...r.triggerProps,"aria-hidden":!0,className:"absolute inset-0 size-full",tabIndex:-1,children:" "}),(0,t.jsx)("div",{className:"px-4",children:(0,t.jsx)(d.Link,{...r.triggerProps,small:!0,variant:i,className:n,children:e})})]}):"CMB_ACTION"===r.actionType?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{...r.triggerProps,"aria-hidden":!0,tabIndex:-1,className:(0,c.cn)("absolute inset-0 size-full",n,r.triggerProps.className),children:" "}),(0,t.jsx)("div",{className:"px-4",children:(0,t.jsx)(l.Button,{...r.triggerProps,size:"sm",variant:i,className:(0,c.cn)(n,r.triggerProps.className),children:e})})]}):void 0})}var f=e.i(437202),h=e.i(216556);function y({title:e,description:r,stickers:i}){return(0,t.jsxs)("div",{className:"flex w-[257px] flex-col gap-2 p-4 pb-0",children:[i&&i.length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-2 overflow-hidden",children:i.map(({text:e,icon:r})=>(0,t.jsx)("div",{className:"w-fit",children:(0,t.jsx)(f.Sticker,{type:"other",prefixIcon:r,children:e})},e))}),(0,t.jsx)("h3",{className:"text-lg font-700 dark:text-light",dangerouslySetInnerHTML:{__html:(0,h.sanitize)(e)}}),r&&(0,t.jsx)("p",{className:"text-sm text-bold-light dark:text-bold-light-inverse",dangerouslySetInnerHTML:{__html:(0,h.sanitize)(r)}})]})}var m=e.i(377644);e.s(["BannerCard",0,function({action:e,dataLayer:a,description:l,stickers:c,title:d,image:u,variant:f,buttonPosition:h}){let g="BOTTOM"===h,x=(0,s.normalizeActionsForAnalytics)(e&&[e]),v=i.default.useMemo(()=>({...a,name:d,description:l,stickers:c?.map(({text:e})=>e||""),additionalFields:["image"]}),[a,d,c,l]),b={className:(0,r.cx)("relative w-65.25 gap-3 overflow-hidden rounded-lg border-2 border-divide dark:border-bold",g?"dark:bg-bold-100":"dark:bg-bold-90"),dataLayer:{...v,...x}};return g?(0,t.jsxs)(o.CarouselItem,{...b,children:[(0,t.jsx)("div",{children:(0,t.jsx)(m.CardBackground,{...u,className:"w-full"})}),(0,t.jsx)("div",{className:"relative h-111.5",children:(0,t.jsx)(y,{title:d,description:l,stickers:c})}),(0,t.jsx)("div",{children:e&&(0,t.jsx)(p,{action:e,dataLayerItem:v,buttonVariant:"tertiary",className:"absolute bottom-4 left-4"})})]}):(0,t.jsxs)(o.CarouselItem,{...b,children:[(0,t.jsx)(y,{title:d,description:l,stickers:c}),(0,t.jsx)("div",{className:"w-full",children:e&&(0,t.jsx)(p,{action:e,dataLayerItem:v,buttonVariant:"BOLD"===f?"tertiary":"secondary"})}),(0,t.jsx)("div",{className:"w-full pt-2",children:(0,t.jsx)(n.ResponsiveImage,{...u,width:"full",aspectRatio:"1.0118",rounded:"lg",className:"rounded-t-lg block"})})]})}],177517);var g=e.i(728141);e.s(["SimpleBannerCard",0,function({action:e,dataLayer:n,title:a,background:l,buttonPosition:c}){let d=(0,s.normalizeActionsForAnalytics)(e&&[e]),u=i.default.useMemo(()=>({...n,name:a}),[n,a]);return(0,t.jsxs)(o.CarouselItem,{className:(0,r.cx)("relative row-span-3 w-65.25 gap-3 overflow-hidden rounded-lg border-2 border-divide bg-light-90 dark:border-bold","BOTTOM"===c?"dark:bg-bold-100":"dark:bg-bold-90"),children:[n&&(0,t.jsx)("div",{className:"absolute inset-0 -z-1 size-full",children:(0,t.jsx)(g.PromoView,{fullView:!0,...u,...d})}),(0,t.jsxs)("div",{className:"row-span-full min-h-111.5",children:[l&&(0,t.jsx)(m.CardBackgroun
3d,{...l,position:"center",className:"size-full"}),(0,t.jsx)("div",{className:"absolute inset-0 size-full",children:(0,t.jsxs)("div",{className:"flex h-full flex-col justify-center gap-6 py-4",children:[(0,t.jsx)("h3",{className:"px-4 text-2xl font-700 text-bold dark:text-light",children:a}),(0,t.jsx)(p,{action:e,dataLayerItem:u,buttonVariant:"primary"})]})})]})]})}],764774);var x=e.i(673664),v=e.i(355750),b=e.i(694892),j=e.i(744183),w=e.i(314097),S=e.i(225297),N=e.i(901222),_=e.i(34265),k=e.i(834368);let I="x-ignore-default-timeout";function A(e){let t=[];for(let[r,i]of Object.entries(e))!function e(t,r,i){if(null!=t)if(Array.isArray(t))t.forEach((t,n)=>{e(t,`${r}[${n}]`,i)});else if("object"==typeof t)for(let[n,o]of Object.entries(t))e(o,`${r}[${n}]`,i);else i.push(`${encodeURIComponent(r)}=${encodeURIComponent(String(t))}`)}(i,r,t);return t.join("&")}let{client:O,bffApi:E}=function({url:e,id:t}){let r=(0,j.default)({baseUrl:e,querySerializer:A,fetch:e=>{let t=e.headers.has(I),r=(0,k.env)("OMNIFRONTEND_IGNORE_DEFAULT_TIMEOUT")?.toLowerCase()==="true",i=t||r?void 0:(0,_.createTimeoutSignal)(6e4);return t&&e.headers.delete(I),fetch(e,{signal:(0,b.mergeSignals)(e.signal,i)})}});r.use({async onRequest({request:e,id:t,params:r,schemaPath:i}){},async onResponse({request:e,response:t,id:r,params:i,schemaPath:n}){},async onError({error:e,request:r,id:i,options:n,params:o,schemaPath:s}){"AbortError"!==(0,N.asError)(e).name&&(0,S.log)({data:{event:"onError",url:r.url,method:r.method,error:(0,N.asError)(e).message,id:i,options:n,params:o,schemaPath:s},level:"ERROR",from:`bff.${t}.client`})}});let i=(0,w.default)(r);return{client:r,bffApi:i}}({url:"/marketing/api/bff",id:"marketing"});var T=e.i(358376),L=e.i(966868),P=e.i(356239),C=e.i(172381),M=e.i(76791),R=e.i(356778),D=e.i(129924),B=e.i(698917);function F({item:e,outOfStock:r=!1,variant:i,dataLayer:s,isB2B:l=!1}){let u="BOLD"===i,p=u?"bold":"default",f=l?" + VAT":"";return(0,t.jsxs)(o.CarouselItem,{className:"relative flex w-74 flex-col gap-3 overflow-hidden",children:[s&&(0,t.jsx)("div",{className:"absolute inset-0 -z-1 size-full",children:(0,t.jsx)(g.PromoView,{fullView:!0,...s})}),(0,t.jsxs)("section",{"data-variant":i,className:(0,c.cn)("flex h-full flex-col",e.sticker&&"rounded-lg bg-bold-100 dark:bg-light-90"),children:[(0,t.jsx)("div",{className:(0,c.cn)("flex min-h-8 items-center justify-center text-center",e.sticker&&"text-light dark:text-bold"),children:e.sticker}),(0,t.jsxs)("div",{className:(0,c.cn)("flex flex-1 flex-col rounded-lg border-2 p-4","border-divide bg-light-100 dark:border-bold-80 dark:bg-bold-90"),children:[(0,t.jsxs)("div",{className:(0,c.cn)("relative w-full rounded-md","bg-light-100 dark:bg-bold-90"),children:[e.image&&(0,t.jsx)(n.ResponsiveImage,{...e.image,alt:"device image",className:(0,c.cn)("mx-auto size-48",r&&"opacity-60 grayscale")}),e.energyClasses&&e.energyClasses.length>0&&(0,t.jsx)("div",{className:"absolute -right-2 bottom-2 flex flex-col gap-1",children:e.energyClasses.map(e=>(0,t.jsx)(B.EnergyLabel,{energyClass:e},e))})]}),(0,t.jsxs)("div",{className:(0,c.cn)("mb-3 flex flex-col gap-3 border-b-2 pt-4 pb-3","border-b-divide dark:border-b-divide-dark"),children:[e.deviceName&&(0,t.jsx)("div",{className:(0,c.cn)("text-xl","text-bold dark:text-light"),children:e.deviceName}),r&&(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(P.Icon,{name:"alert-info",className:"size-5 shrink-0 text-info"}),(0,t.jsx)("span",{className:"text-sm font-400 text-bold dark:text-light",children:"Produkt tymczasowo niedostępny"})]})]}),e.pricing&&(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-2",children:[(0,t.jsxs)(C.DeviceCardPricing,{startingPrice:null==e.pricing.startingPrice?void 0:`${(0,D.formatPrice)(e.pricing.startingPrice)}${f}`,startingPriceDescription:"płatne na start",colorScheme:p,children:[e.pricing.steps.map((e,r)=>(0,t.jsx)(M.PriceStep,{promoPrice:`${(0,D.formatPrice)(e.promoPrice)}${f}`,basePrice:null==e.basePrice?void 0:`${(0,D.formatPrice)(e.basePrice)}${f}`,description:e.installmentCount?`x ${e.installmentCount} rat 0%`:void 0,colorScheme:p,className:"w-full"},r)),e.pricing.summary&&(0,t.jsx)(R.PriceSummary,{title:"Razem za urządzenie",price:`${(0,D.formatPrice)(e.pricing.summary.price)}${f}`,basePrice:null==e.pricing.summary.basePrice?void 0:`${(0,D.formatPrice)(e.pricing.summary.basePrice)}${f}`,stickerLabel:e.pricing.summary.stickerLabel,colorScheme:p,className:"w-full"})]}
3),e.pricing.lowestPriceLabel&&(0,t.jsx)("div",{className:(0,c.cn)("text-2xs font-400","text-bold-light dark:text-bold-light-inverse"),children:e.pricing.lowestPriceLabel}),e.pricing.promotionEnd&&(0,t.jsxs)("div",{className:(0,c.cn)("text-2xs font-400","text-bold-light dark:text-bold-light-inverse"),children:["Promocja do ",e.pricing.promotionEnd]})]}),(0,t.jsx)(a.Link,{href:e.variantUrl??"/","aria-hidden":!0,className:"absolute inset-0 size-full",tabIndex:-1,children:" "}),(0,t.jsx)(d.Link,{href:e.variantUrl??"/",className:"mt-4 w-full",variant:u?"tertiary":"secondary",small:!0,children:"Szczegóły"})]})]})]})}var z=e.i(427720);function $({itemsLength:e}){return(0,t.jsx)(t.Fragment,{children:Array.from({length:e}).map((e,r)=>(0,t.jsx)(o.CarouselItem,{className:"relative flex w-74 flex-col gap-3 overflow-hidden",children:(0,t.jsxs)("section",{className:"rounded-lg border-divide bg-light-100 dark:border-bold-80 dark:bg-bold-90",children:[(0,t.jsx)(z.SkeletonLine,{height:"h-52"}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 p-4",children:[(0,t.jsx)(z.SkeletonLine,{height:"h-8"}),(0,t.jsx)("div",{className:"border-2 border-divide dark:border-divide-dark"}),(0,t.jsx)(z.SkeletonLine,{height:"h-40.5"}),(0,t.jsx)(z.SkeletonLine,{height:"h-8"})]})]})},r))})}function W({items:e,variant:r}){let i=(0,L.useMarket)(),n=(0,T.isB2B)(i),{data:o}=E.useQuery("post","/get-products",{body:{devices:e,market:i}});return o?(0,t.jsx)(t.Fragment,{children:o.devices.map((e,i)=>(0,t.jsx)(F,{item:e,outOfStock:!e.inStock,variant:r,dataLayer:{id:e.baseProductId,index:i},isB2B:n},e.baseProductId))}):(0,t.jsx)($,{itemsLength:e.length})}e.s(["DeviceCardsWrapper",0,function({items:e,variant:r}){let{reset:i}=(0,x.useQueryErrorResetBoundary)();return 0===e.length?null:(0,t.jsx)(v.ErrorBoundary,{onReset:i,fallbackRender:({resetErrorBoundary:e})=>(0,t.jsxs)("div",{className:"flex size-full flex-col items-center justify-center gap-4 text-center",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"mb-2 text-xl font-700 text-bold dark:text-bold-inverse",children:"Coś poszło nie tak..."}),(0,t.jsx)("p",{className:"text-sm text-bold-light dark:text-bold-light-inverse",children:"Odśwież, by załadować treści."})]}),(0,t.jsx)(l.Button,{variant:"tertiary",onPress:e,children:"Odśwież"})]}),children:(0,t.jsx)(W,{items:e,variant:r})})}],904864)},377644,e=>{"use strict";var t=e.i(843476),r=e.i(301085);e.s(["CardBackground",0,function({children:e,className:i,position:n="bottom",size:o="cover",...s}){return(0,t.jsx)(r.ResponsiveImageBackground,{...s,position:n,size:o,className:i,children:e})}])},753561,e=>{"use strict";var t=e.i(843476),r=e.i(714587),i=e.i(168239),n=e.i(109695),o=e.i(441639),s=e.i(776904),a=e.i(216556),l=e.i(12889),c=e.i(673902),d=e.i(177517),u=e.i(764774),p=e.i(904864),f=e.i(301085);function h({leftColumn:e,rightColumn:r,background:i}){return(0,t.jsxs)("div",{className:"relative w-full overflow-hidden rounded-lg border-2 border-divide dark:border-bold-80",children:[i&&(0,t.jsx)(f.ResponsiveImageBackground,{...i,alt:i.alt??"Tło sekcji z banerami promocyjnymi",overlay:!0,repeat:!1,position:"bottom-left",size:"contain",className:"absolute inset-0 pointer-events-none"}),(0,t.jsxs)("div",{className:"relative z-10 flex flex-col gap-4 p-4 md:pt-10 md:pb-6 lg:flex-row",children:[e&&(0,t.jsx)("div",{className:"flex flex-1 min-w-83 flex-col items-start gap-4 px-4 md:pl-6 md:pr-0",children:e}),r&&(0,t.jsx)("div",{className:"flex w-full flex-col items-start gap-4 md:pr-6 lg:w-157.5",children:r})]})]})}e.s(["BannerCardsPromo",0,function({id:e,index:f,title:y,description:m,countdown:g,actions:x,background:v,group:b,variant:j="LIGHT"}){return(0,t.jsx)(l.AnalyticsProvider,{indexParent:f,fromId:e,headline:y,children:(0,t.jsx)("section",{className:"px-5 lg:px-0 py-4 dark:bg-bold-100","data-variant":j,"data-test-id":"banner-cards-promo",children:(0,t.jsx)("div",{className:"mx-auto max-w-308",children:(0,t.jsx)(h,{background:v,leftColumn:(m||g)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("h2",{className:"text-xl font-700 md:text-4xl dark:text-light",dangerouslySetInnerHTML:{__html:(0,a.sanitize)(y)}}),m&&(0,t.jsx)("h4",{className:"text-base font-600 text-bold-light dark:text-light",dangerouslySetInnerHTML:{__html:(0,a.sanitize)(m)}})]}),g&&(0,t.jsx)(i.Countdown,{to:g.to,title:g.text,type:"BLOCK",variant:"BOLD"===j?"bold":"light",position:"LEFT"}),x&&x.length>0&&(0,t.jsx)("div",{className:"flex flex-col gap-2 md:flex-row w-full",children:x.map(e=>(0,t.jsx)(c.ActionHandler,{action:e,allow:["LINK","CMB_ACTION"],children:({actionType:e,text:i,triggerProps:s})=>"LINK"===e?(0,t.jsx)(o.Link,{...s,className:"md:w-auto",variant:"BOLD"===j?"tert
3iary":"secondary",small:!0,children:i}):(0,t.jsx)(r.Button,{...s,fullWidth:!0,className:(0,n.cn)("md:w-auto",s.className),variant:"BOLD"===j?"tertiary":"secondary",size:"sm",children:i})},e.id))})]}),rightColumn:(0,t.jsxs)(s.Carousel,{className:"w-full",withArrows:!1,slideWidth:"auto",paginationSpace:"md",paginationWithOutline:!0,rowMinHeight:330,slideSpace:16,innerPadding:24,justifyContent:b.items.length>1?"start":"center",breakpoints:{sm:{showShadows:!1,slideSpace:8,innerPadding:8},lg:{withArrows:!0,innerPadding:0,slidesToScroll:2},xl:{withArrows:!0,innerPadding:0,slidesToScroll:2}},children:["DEVICE_CARDS"===b.type&&(0,t.jsx)(p.DeviceCardsWrapper,{items:b.items,variant:j}),"CONTENT_CARDS"===b.type&&b.items.map((e,r)=>{let i={...e.dataLayer,id:e.id,index:r};return"DEFAULT"===e.cardType?(0,t.jsx)(d.BannerCard,{...e,variant:j||"LIGHT",buttonPosition:"TOP",dataLayer:i},e.id):"SIMPLE"===e.cardType?(0,t.jsx)(u.SimpleBannerCard,{...e,buttonPosition:"TOP",dataLayer:i},e.id):null})]})})})})})}],753561)},52351,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(332622),n=e.i(531742),o=e.i(818698),s=e.i(109695),a=e.i(301085),l=e.i(568147),c=e.i(776904),d=e.i(4763),u=e.i(216556),p=e.i(12889),f=e.i(177517),h=e.i(764774),y=e.i(904864);e.s(["BannerCards",0,function({id:e,index:m,items:g,title:x,titleSize:v="DEFAULT",subTitle:b,titleAlignment:j,variant:w="LIGHT",buttonPosition:S="TOP",spacing:N,background:_,group:k}){let I=k||{type:"CONTENT_CARDS",items:g,buttonPosition:S},A="FILTERS"===I.type?I.items:[],[O,E]=r.default.useState(A[0]?.id??null),T=r.default.useMemo(()=>O&&A.find(e=>e.id===O&&e.group.type)||null,[A,O]),L="CONTENT_CARDS"===I.type&&"BOTTOM"===I.buttonPosition||T?.group.type==="CONTENT_CARDS"&&"BOTTOM"===T.group.buttonPosition?"BOTTOM":"TOP",P=r.default.useMemo(()=>"FILTERS"!==I.type?I:T&&"FILTERS"!==T.group.type?T.group:null,[T,I]),C="BOLD"===w&&"BOTTOM"===L?"to-bold-90":void 0;return(0,t.jsx)(p.AnalyticsProvider,{indexParent:m,fromId:e,headline:x,children:(0,t.jsx)("section",{className:"BOTTOM"===L?"dark:bg-bold-90":"dark:bg-bold-100","data-variant":w,children:(0,t.jsx)("div",{className:"mx-auto max-w-7xl",children:(0,t.jsxs)("div",{className:(0,s.cn)("relative w-full overflow-hidden",!_&&("BOTTOM"===L?"bg-light-100 dark:bg-bold-90":"bg-light-100 dark:bg-bold-100")),children:[_&&(0,t.jsx)("div",{className:"absolute inset-0 size-full overflow-hidden",children:(0,t.jsx)(a.ResponsiveImageBackground,{..._,position:"top-right"})}),(0,t.jsxs)("div",{className:(0,s.cn)("relative flex flex-col py-3 lg:py-4","SM"===N&&"gap-24","MD"===N&&"gap-40","LG"===N&&"gap-71.5",!N&&"gap-4"),children:[(x||b)&&(0,t.jsxs)("div",{className:"flex flex-col px-5 md:px-6",children:[x&&(0,t.jsx)("h2",{className:(0,s.cn)("font-700 dark:text-light","CENTER"===j&&"text-center","DEFAULT"===v?"text-xl":"text-2xl"),dangerouslySetInnerHTML:{__html:(0,u.sanitize)(x)}}),b&&(0,t.jsx)("h4",{className:(0,s.cn)("text-sm font-600 text-bold-light dark:text-light","CENTER"===j&&"text-center"),dangerouslySetInnerHTML:{__html:(0,u.sanitize)(b)}})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[A.length>0&&(0,t.jsx)("div",{className:"flex justify-center max-md:[--inner-padding:20px]",children:(0,t.jsx)(d.CarouselProvider,{children:(0,t.jsx)(l.BasicCarousel,{dragFree:!0,children:(0,t.jsx)(n.ChipGroup,{selectedKeys:O?[O]:[],onValueChange:e=>{null!==e&&E(String(e))},disallowEmptySelection:!0,"aria-label":"Filtry kart",children:(0,t.jsx)(o.ChipList,{className:"flex-nowrap gap-2",children:A.map(e=>(0,t.jsx)(i.Chip,{id:e.id,textValue:e.name,variant:"BOLD"===w?"bold":"light",className:"shrink-0 text-center md:first-of-type:ml-4 md:last-of-type:mr-4",children:(0,t.jsx)("span",{className:"text-nowrap",children:e.name})},e.id))})})})})}),T?.description&&(0,t.jsx)("p",{className:"prose text-center font-700 md:px-5 dark:prose-invert prose-a:text-bold-light dark:prose-a:text-bold-light-inverse",dangerouslySetInnerHTML:{__html:(0,u.sanitize)(T.description)}}),(0,t.jsxs)(c.Carousel,{className:"m-auto max-w-full",withArrows:!1,showShadows:!0,slideWidth:"auto",paginationSpace:"md",slideSpace:16,rowMinHeight:370,breakpoints:{sm:{showShadows:!1,slideSpace:8,innerPadding:20},lg:{withArrows:!0},xl:{withArrows:!0}},innerPadding:24,shadowClassName:C,children:[P?.type==="DEVICE_CARDS"&&(0,t.jsx)(y.DeviceCardsWrapper,{items:P.items,variant:w},O),P?.type==="CONTENT_CARDS"&&P.items.map((e,r)=>{let i=O?`${e.id}_${O}`:e.id,n={...e.dataLayer,id:e.id,index:r};return"DEFAULT"===e.cardType?(0,t.jsx)(f.BannerCard,{...e,variant:w||"LIGHT",buttonPosition:L,dataLayer:n},i):"SIMPLE"===e.cardType?(0,t.jsx)(h.SimpleBannerCard,{...e,buttonPosition:L,dataLayer:n},e.id):null})]})]})]})]})})})})}])},465459,e=>{"use strict";var t=e.i(843476),r=e.i(714587),i=e.i(109695),n=e.i(441639),o=e.i(673902);e.s(["ActionHandlerWrapper",0,function({actions:e,dataLayer:s}){return(0,t.jsx)("div",{className:"flex flex-col gap-2 lg:flex-row",children:e.map((e,a)=>{let l=0===a;return(0,t.jsx)(o.ActionHandler,{action:e,allow:["LINK","CMB_ACTION"],dataLayer:s,children:({actionType:e,text:o,triggerProps:s})=>"LINK"===e?(0,t.jsx)(n.Link,{...s,className:"w-full lg:w-auto",variant:l?"primary":"tertiary",children:o}):(0,t.jsx)(r.Button,{...s,className:(0,i.cn)("w-full lg:w-auto",s.className),variant:l?"primary":"tertiary",children:o})},e.id)})})}])},130475,e=>{"use strict";var t=e.i(843476),r=e.i(714587),i=e.i(441639),n=e.i(12889),o=e.i(673902),s=e.i(143997);function a({action:e,isFirst:n}){return(0,t.jsx)(o.ActionHandler,{action:e,allow:["LINK","CMB_ACTION"],children:({actionType:e,text:o,triggerProps:s})=>"LINK"===e?(0,t.jsx)(i.Link,{...s,variant:n?"primary":"secondary",children:o}):(0,t.jsx)(r.Button,{...s,variant:n?"primary":"secondary",children:o})},e.id)}e.s(["ActionsPrompt",0,function({actions:e,actionsDesktop:r,dataLayer:i,fromId:o,id:l,index:c,info:d,title:u}){return(0,t.jsx)(n.AnalyticsProvider,{componentId:l,dataLayer:i,fromId:o,headline:u,indexParent:c,children:(0,t.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-3 lg:gap-6",children:[(0,t.jsx)("h2",{className:"text-lg font-700 lg:text-xl",children:u}),(d?.text||d?.items)&&(0,t.jsx)(s.InfoSection,{text:d.text,items:d.items??[]})]}),e&&(0,t.jsx)("div",{className:"flex flex-col gap-2 lg:hidden",children:e.map((e,r)=>(0,t.jsx)(a,{action:e,isFirst:0===r},e.id))}),r&&(0,t.jsx)("div",{className:"hidden flex-row gap-2 lg:flex",children:r.map((e,r)=>(0,t.jsx)(a,{action:e,isFirst:0===r},e.id))})]})})}])},285575,e=>{"use strict";var t=e.i(843476),r=e.i(265815),i=e.i(143997),n=e.i(269176),o=e.i(557508),s=e.i(996545),a=e.i(488519);e.s(["WWTContent",0,function({offerConfig:e,loggedIn:l,loggedOut:c}){let{isLoggedIn:d}=(0,r.useCustomerData)(),{title:u,buttonText:p,description:f,info:h}=d?l:c;return(0,t.jsx)(o.WWTProvider,{offerConfig:e,content:{title:u,description:f,buttonText:p},children:(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,t.jsx)("h2",{className:"text-lg font-700 lg:text-xl",children:u}),(h?.text||h?.items)&&(0,t.jsx)(i.InfoSection,{text:h.text,items:h.items??[]}),(0,t.jsxs)("div",{className:"flex flex-col gap-4 lg:flex-row",children:[(0,t.jsx)("div",{className:"w-full",children:(0,t.jsx)(s.WWTFormLogic,{})}),(0,t.jsx)("div",{className:"flex shrink-0 flex-col justify-center lg:h-14",children:(0,t.jsx)(n.WWTSubmitButton,{label:p})})]})]}),(0,t.jsx)(a.WWTInfoBanner,{})]})})}])},143997,e=>{"use strict";var t=e.i(843476),r=e.i(647130),i=e.i(143007);e.s(["InfoSection",0,function({text:e,items:n}){return(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[e&&(0,t.jsx)("span",{className:"text-lg",children:e}),n&&(0,t.jsx)(r.List,{className:"flex flex-col gap-2 md:flex-row",type:"brand",children:n.map(e=>(0,t.jsx)(i.ListItem,{fontWeight:"600",title:e},e))})]})}])},229455,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(168239),n=e.i(216556),o=e.i(728141),s=e.i(274698),a=e.i(377644),l=e.i(368540),c=e.i(714587),d=e.i(109695),u=e.i(441639),p=e.i(673902);function f({action:e,dataLayer:r}){return(0,t.jsx)(p.ActionHandler,{action:e,dataLayer:r,allow:["LINK","CMB_ACTION"],children:({text:e,actionType:r,triggerProps:i})=>"LINK"===r?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.Link,{...i,"aria-hidden":!0,
3className:"absolute inset-0 z-10 block size-full",tabIndex:-1,children:" "}),(0,t.jsx)(u.Link,{...i,small:!0,variant:"tertiary",suffixIcon:"arrow-right",className:"z-10 pl-4",children:e})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{...i,"aria-hidden":!0,className:(0,d.cn)(i.className,"absolute inset-0 z-10 block size-full"),tabIndex:-1,children:" "}),(0,t.jsx)(c.Button,{...i,size:"sm",variant:"tertiary",suffixIcon:"arrow-right",className:(0,d.cn)(i.className,"z-10 pl-4"),children:e})]})})}e.s(["OfferTeasersItem",0,function({action:e,bottom:l,image:c,title:d,dataLayer:u,isBoldVariant:p}){let h=(0,s.normalizeActionsForAnalytics)(e&&[e]),y=r.default.useMemo(()=>({...u,name:d,additionalFields:[l?.elementType==="COUNTDOWN"?"counter":l?.elementType==="STATIC"?"text":null]}),[u,d,l]);return(0,t.jsxs)("li",{className:"relative flex h-44 w-full flex-col items-start justify-between overflow-hidden rounded-lg bg-light-100 p-4 md:max-w-[390px] lg:h-64 lg:flex-1 dark:bg-bold-90",children:[(0,t.jsx)(o.PromoView,{...y,...h,fullView:!0}),(0,t.jsx)(a.CardBackground,{...c,position:"bottom-right",size:"contain"}),(0,t.jsxs)("div",{className:"relative flex flex-col gap-3",children:[(0,t.jsx)("h3",{className:"relative col-span-1 row-span-1 text-md font-600 lg:col-auto lg:row-auto",dangerouslySetInnerHTML:{__html:(0,n.sanitize)(d)}}),l&&("STATIC"===l.elementType?(0,t.jsx)("p",{className:"relative z-10 text-sm text-bold-light dark:text-bold-light-inverse",children:l.text}):l.countdown.to&&(0,t.jsx)("div",{className:"mb-7 lg:mb-auto",children:(0,t.jsx)(i.Countdown,{type:"TEXT",title:l.countdown.text,to:l.countdown.to,variant:p?"bold":"light"})}))]}),e&&(0,t.jsx)(f,{action:e,dataLayer:y})]})}],229455)},184358,356783,e=>{"use strict";var t=e.i(843476),r=e.i(618566),i=e.i(12889),n=e.i(465476),o=e.i(650282),s=e.i(922064),a=e.i(838370),l=e.i(271645),c=e.i(3429),d=e.i(714587),u=e.i(441639),p=e.i(673902),f=e.i(683678),h=e.i(591154),y=e.i(265815),m=e.i(557508),g=e.i(728141),x=e.i(143997),v=e.i(269176),b=e.i(996545),j=e.i(488519);function w({buttonText:e,description:r,info:i,title:n}){let{isFormPending:o}=(0,m.useWWT)();return(0,t.jsxs)(f.Dialog,{busy:o,title:n,"data-test-id":"wwt-container",children:[(0,t.jsx)(f.DialogContent,{children:(0,t.jsxs)(g.PromoView,{className:"flex flex-col gap-4",description:r,name:n,children:[(0,t.jsxs)("div",{className:"flex flex-col gap-3 md:gap-6",children:[(i?.text||i?.items)&&(0,t.jsx)(x.InfoSection,{text:i.text,items:i.items??[]}),(0,t.jsxs)("div",{className:"flex flex-col gap-4 lg:flex-row",children:[(0,t.jsx)("div",{className:"w-full",children:(0,t.jsx)(b.WWTFormLogic,{})}),(0,t.jsx)("div",{className:"flex h-14 shrink-0 flex-col justify-center max-lg:hidden",children:(0,t.jsx)(v.WWTSubmitButton,{label:e})})]})]}),(0,t.jsx)(j.WWTInfoBanner,{})]})}),(0,t.jsx)(f.DialogBottom,{className:"lg:hidden",children:(0,t.jsx)(v.WWTSubmitButton,{label:e})})]})}function S({children:e,wwt:r,offerLabel:i,offerConfig:n}){let{isLoggedIn:o}=(0,y.useCustomerData)(),{track:s}=(0,c.useAnalytics)(),a=o?r.loggedIn:r.loggedOut,l=a.buttonText,d=i?`${l}: ${i}`:l;return(0,t.jsxs)(f.DialogTrigger,{onOpenChange:e=>{e&&s({type:"process_action_clicked",label:d,buttonText:l,step:r.dataLayer?.step})},children:[(0,t.jsx)(h.Modal,{width:"large",children:(0,t.jsx)(m.WWTProvider,{offerConfig:n,content:{title:a.title,description:a.description,buttonText:l},children:(0,t.jsx)(w,{buttonText:l,description:a.description,info:a.info,title:a.title})})}),e]})}function N({wwtAction:e,actions:r,offerLabel:i}){let{track:n}=(0,c.useAnalytics)(),o=l.default.useCallback(e=>{n({type:"process_action_clicked",label:e})},[n]);return(0,t.jsx)("div",{className:"flex w-full flex-col gap-2",children:r.map((r,n)=>(0,t.jsx)(p.ActionHandler,{action:r,children:({text:r,actionType:s,triggerProps:a})=>{let l=0===n;return"DIALOG_WWT"===s?e&&a.offerConfig?(0,t.jsx)(S,{offerLabel:i,wwt:e.wwt,offerConfig:a.offerConfig,children:(0,t.jsx)(d.Button,{fullWidth:!0,variant:l?"primary":"tertiary","data-test-id":"offer-action-wwt-trigger-button",children:r??"Sprawdź dostępność"})}):null:"LINK"===s?(0,t.jsx)(u.Link,{...a,fullWidth:!0,variant:l?"primary":"secondary","data-test-id":"offer-action-link-trigger-button",children:r}):"CMB_ACTION"===s?(0,t.jsx)(d.Button,{...a,fullWidth:!0,onPress:()=>{o(r),a.onClick()},variant:l?"primary":"tertiary","data-test-id":"offer-action-cmb-trigger-button",children:r}):(0,t.jsx)(d.Button,{...a,onPress:()=>{o(r),a.onClick()},fullWidth:!0,variant:l?"primary":"tertiary","data-test-id":"offer-action-dialog-trigger-button",children:r})}},r.id))})}e.s(["WWTFormDialog",0,S],356783);var _=e.i(216556);function k({prices:e}){return(0,t.jsx)(t.Fragment,{children:e.map(({prefix:e,amount:r,suffix:i,description:n,notice:o})=>(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsxs)("div",{children:[e&&(0,t.jsx)("span",{className:"text-md font-700 text-bold-light",dangerouslySetInnerHTML:{__html:(0,_.sanitize)(e)}}),(0,t.jsx)("span",{className:"mx-1 text-3xl text-accent",children:r}),i&&(0,t.jsx)("span",{className:"inline-block text-md font-700 whitespace-nowrap text-bold-light",children:i})]}),n&&(0,t.jsx)("div",{className:"text-xs font-700 text-bold-light",children:n}),o&&(0,t.jsx)("div",{className:"text-xs text-bold-light",children:o})]},r))})}e.s(["Offers",0,function({description:e,filterMessages:l,filters:c,offers:d,title:u,wwtAction:p,id:f,index:h}){let y=(0,r.useSearchParams)().get("offerTable[filters]");return(0,t.jsx)(i.AnalyticsProvider,{componentId:f,indexParent:h,children:(0,t.jsx)("section",{className:"mx-auto max-w-screen-xl",children:(0,t.jsx)(a.OffersContainer,{description:e,filterMessages:l,filters:c,filtersFromUrl:y??void 0,offers:d,title:u,children:({filteredOffers:e,defaultOfferIndex:r})=>(0,t.jsx)(s.OffersCarousel,{startIndex:r,numberOfSlides:e.length,children:e.map(e=>(0,t.jsx)(o.OfferDishItem,{promotionName:e.heroText,heading:e.descriptions,stickers:e.stickers,averagePrice:e.averagePrice,priceSection:(0,t.jsx)(k,{prices:e.prices}),actionSection:e.actions&&e.actions.length>0&&(0,t.jsx)(N,{wwtAction:p,actions:e.actions,offerLabel:(0,n.generateOfferName)(e.descriptions)})},e.id))})})})})}],184358)},680950,e=>{"use strict";var t=e.i(843476),r=e.i(225913),i=e.i(271645),n=e.i(714587),o=e.i(109695),s=e.i(441639),a=e.i(301085),l=e.i(216556),c=e.i(12889),d=e.i(728141),u=e.i(673902);function p(e){return e.filter(e=>"FILTER_BOX"===e.type||"FILTER_TAG"===e.type)}function f(e){return e.find(e=>!0===e.isDefault)??e[0]}function h(e,t){let r,i=p(e);if(0===i.length)return[];let n=t&&function e(t,r,i=[]){for(let n of t){if("POSTER"===n.type)continue;let t=[...i,n.id];if(n.id===r)return{filter:n,path:t};let o=e(n.items,r,t);if(o)return o}return null}(e,t)||{filter:r=f(i),path:[r.id]},o=[],s=i;for(let e of n.path){let t=s.find(t=>
3t.id===e);if(o.push({filters:s,activeFilter:t??null,type:s[0].type,levelKey:`row-${o.length}`}),!t)break;s=p(t.items)}for(;s.length>0;){let e=f(s);o.push({filters:s,activeFilter:e,type:s[0]?.type,levelKey:`row-${o.length}`}),s=p(e.items)}return o}var y=e.i(776904),m=e.i(417317);function g({posters:e,postersView:c,selectedFilterId:d,variant:p}){let f=i.default.useMemo(()=>e.findIndex(e=>e.isDefault),[e]),h="FULL"===c;return(0,t.jsx)("div",{className:(0,r.cx)("flex justify-center max-md:-mx-4"),children:(0,t.jsx)(y.Carousel,{withPagination:!1,showShadows:!0,withArrows:!0,slideSpace:16,innerPadding:16,paginationSpace:"none",slideWidth:h?"11/12":"auto",startIndex:f,active:e.length>1,justifyContent:1===e.length?"center":void 0,breakpoints:{sm:{showShadows:!1,withArrows:!1,slideSpace:12,innerPadding:20,slideWidth:"auto"},md:h?{align:"center",containScroll:!1}:void 0},className:(0,r.cx)("max-w-full",h&&"md:w-full"),children:e.map(({id:e,background:i,title:c,description:f,actions:y})=>{let g=c||f||y&&y.length>0;return(0,t.jsx)(m.CarouselItem,{children:(0,t.jsxs)("div",{className:(0,r.cx)("relative h-92.5 w-74 shrink-0 items-center overflow-hidden rounded-lg bg-light-100 p-4 dark:bg-pressed",h&&"md:w-full md:max-w-281"),children:[(0,t.jsx)(a.ResponsiveImageBackground,{position:"bottom",size:"cover",...i}),g&&(0,t.jsxs)("div",{className:"relative flex size-full flex-col gap-4 text-center md:items-center md:justify-center",children:[c&&(0,t.jsx)("h3",{className:"text-md font-700 text-bold dark:text-bold-inverse",dangerouslySetInnerHTML:{__html:(0,l.sanitize)(c)}}),f&&(0,t.jsx)("p",{className:"text-xs text-bold-light dark:text-bold-inverse",dangerouslySetInnerHTML:{__html:(0,l.sanitize)(f)}}),y&&(0,t.jsx)("div",{className:"flex w-full flex-col flex-nowrap items-center justify-center gap-2 md:flex-row md:px-5",children:y.map((e,r)=>{let i=0===r?"primary":"BOLD"===p?"tertiary":"secondary";return(0,t.jsx)(u.ActionHandler,{action:e,allow:["LINK","CMB_ACTION","DIALOG_FEATURES"],children:({text:e,...r})=>"LINK"===r.actionType?(0,t.jsx)(s.Link,{...r.triggerProps,small:!0,className:"w-full md:w-auto",variant:i,children:e}):(0,t.jsx)(n.Button,{...r.triggerProps,size:"sm",className:(0,o.cn)("w-full md:w-auto","CMB_ACTION"===r.actionType&&r.triggerProps.className),variant:i,children:e})},e.id)})})]})]})},`${d}_${e}`)})})})}var x=e.i(522176),v=e.i(332622),b=e.i(531742),j=e.i(818698),w=e.i(568147),S=e.i(4763),N=e.i(714559);function _({filterLevels:e,variant:r,onFilterChange:i}){return(0,t.jsx)(t.Fragment,{children:e.map(e=>(0,t.jsx)("div",{className:"flex justify-center max-md:-mx-4 max-md:[--inner-padding:20px]",children:(0,t.jsx)(S.CarouselProvider,{children:(0,t.jsx)(w.BasicCarousel,{dragFree:!0,children:"FILTER_TAG"===e.type?(0,t.jsx)(b.ChipGroup,{selectedKeys:e.activeFilter?[e.activeFilter.id]:[],onValueChange:e=>{null!==e&&i(String(e))},disallowEmptySelection:!0,"aria-label":"Filtry kolekcji",children:(0,t.jsx)(j.ChipList,{className:"flex-nowrap gap-2",children:e.filters.map(e=>"FILTER_TAG"===e.type?(0,t.jsx)(v.Chip,{variant:"BOLD"===r?"bold":"light",id:e.id,textValue:e.name,className:"shrink-0 text-center md:first-of-type:ml-4 md:last-of-type:mr-4",children:(0,t.jsxs)("span",{className:"text-nowrap",children:[" ",e.name]})},e.id):null)})}):(0,t.jsx)(x.RadioGroup,{value:e.activeFilter?.id,onChange:i,className:"flex flex-nowrap gap-2",children:e.filters.map(e=>"FILTER_BOX"===e.type?(0,t.jsx)(N.LogoTile,{value:e.id,logoImage:e.image,highlightedIcon:e.highlightedIcon,className:"w-screen max-w-38 min-w-28.75 md:first-of-type:ml-2 md:last-of-type:mr-2"},e.id):null)})})})},e.levelKey))})}e.s(["PostersCollection",0,function({variant:e="LIGHT",index:p,id:f,title:y,description:m,defaultFilterId:x,items:v,background:b,postersView:j}){let[w,S]=i.default.useState(()=>{let e=h(v,x??null).findLast(e=>e.activeFilter);return e?.activeFilter?.id??null}),{filterLevels:N,activeFilter:k}=i.default.useMemo(()=>{let e=h(v,w),t=e.findLast(e=>e.activeFilter);return{filterLevels:e,activeFilter:t?.activeFilter||null}},[v,w]),I=i.default.useMemo(()=>(k?.items||v).filter(e=>"POSTER"===e.type)||[],[k,v]);return(0,t.jsx)(c.AnalyticsProvider,{componentId:f,headline:y,indexParent:p,dataLayer:{additionalFields:["image"],name:m,description:k?.type==="FILTER_TAG"?k.name:void 0,step:"SG_POSTERS_COLLECTION"},children:(0,t.jsx)("div",{"data-variant":e,className:"bg-light-100 dar
3k:bg-bold-100",children:(0,t.jsx)(d.PromoView,{className:"mx-auto grid max-w-screen-xl grid-cols-2 md:grid-cols-6 md:p-6 lg:grid-cols-12",children:(0,t.jsxs)("div",{className:(0,r.cx)("relative col-span-2 px-4 py-6 md:col-span-6 md:px-0 md:pt-8 md:pb-4 lg:col-span-12","border-divide md:rounded-lg md:border-2 dark:border-bold",!b&&"bg-light-100 dark:bg-bold-100"),children:[b&&(0,t.jsx)("div",{className:"absolute inset-0 size-full overflow-hidden md:rounded-md",children:(0,t.jsx)(a.ResponsiveImageBackground,{...b,position:"top-center"})}),(0,t.jsxs)("div",{className:"relative flex flex-col gap-4 md:gap-6",children:[(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1 text-center",children:[(0,t.jsx)("h2",{className:"text-2xl font-700 text-bold md:px-5 md:text-4xl dark:text-light",dangerouslySetInnerHTML:{__html:(0,l.sanitize)(y)}}),m&&(0,t.jsx)("p",{className:"prose prose-sm md:max-w-150 dark:prose-invert prose-a:text-bold-light dark:prose-a:text-bold-light-inverse",dangerouslySetInnerHTML:{__html:(0,l.sanitize)(m)}})]}),N.length>0&&(0,t.jsx)(_,{filterLevels:N,onFilterChange:S,variant:e}),(0,t.jsx)(g,{variant:e,posters:I,postersView:k?.postersView??j,selectedFilterId:w||""}),k?.description&&(0,t.jsx)("p",{className:"prose text-center font-700 md:px-5 dark:prose-invert prose-a:text-bold-light dark:prose-a:text-bold-light-inverse",dangerouslySetInnerHTML:{__html:(0,l.sanitize)(k?.description)}}),k&&k.actions.length>0&&(0,t.jsx)("div",{className:"flex w-full flex-nowrap items-center justify-center gap-2 md:px-5",children:k.actions.map((r,i)=>{let a=i===k.actions.length-1&&k.actions.length>1?"primary":"BOLD"===e?"tertiary":"secondary";return(0,t.jsx)(u.ActionHandler,{action:r,allow:["LINK","CMB_ACTION","DIALOG_FEATURES"],children:({text:e,...r})=>"LINK"===r.actionType?(0,t.jsx)(s.Link,{...r.triggerProps,small:!0,variant:a,className:"w-full md:w-auto",children:e}):(0,t.jsx)(n.Button,{...r.triggerProps,size:"sm",className:(0,o.cn)("w-full md:w-auto","CMB_ACTION"===r.actionType&&r.triggerProps.className),variant:a,children:e})},r.id)})})]})]})})})})}],680950)},782389,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(781626);let n=r.createContext(null);e.s(["SeoProvider",0,function({children:e,...o}){let s=r.useRef(null),[a,l]=r.useState(!1),c=`seo-full-text-${r.useId()}`,d=r.useCallback(e=>{l(e),e||(0,i.scrollToSection)(s.current)},[]),u=r.useMemo(()=>({containerId:c,isFullTextVisible:a,setIsFullTextVisible:d}),[c,a,d]);return(0,t.jsx)(n.Provider,{value:u,children:(0,t.jsx)("section",{ref:s,...o,children:e})})},"useSeo",0,function(){let e=r.useContext(n);if(!e)throw Error("useSeoContext: Please provide SeoProvider value.");return e}])},46798,e=>{"use strict";var t=e.i(843476),r=e.i(782389);e.s(["SeoTextWrapper",0,function({children:e,className:i,isFullTextContainer:n}){let{isFullTextVisible:o,containerId:s}=(0,r.useSeo)();return(0,t.jsx)("div",{id:n?s:void 0,"data-visible":o,className:i,children:e})}])},593331,e=>{"use strict";var t=e.i(843476),r=e.i(714587),i=e.i(782389);e.s(["SeoToggleButton",0,function({isBoldVariant:e}){let{isFullTextVisible:n,containerId:o,setIsFullTextVisible:s}=(0,i.useSeo)();return(0,t.jsx)(r.Button,{size:"sm",onPress:()=>{s(!n)},type:"button","aria-controls":o,"aria-expanded":n,variant:e?"tertiary":"secondary",className:"h-8",children:n?"Mniej":"Więcej"})}])},772746,e=>{"use strict";var t=e.i(843476),r=e.i(225913),i=e.i(271645),n=e.i(368540),o=e.i(168239),s=e.i(714587),a=e.i(109695),l=e.i(301085),c=e.i(441639),d=e.i(417317),u=e.i(216556),p=e.i(544932),f=e.i(728141),h=e.i(673902),y=e.i(274698),m=e.i(437202);function g({text:e,icon:r}){return(0,t.jsx)("div",{className:"overflow-hidden",children:(0,t.jsx)("div",{className:"w-fit",children:(0,t.jsx)(m.Sticker,{type:"hero",prefixIcon:r,children:e})})})}var x=e.i(433411),v=e.i(4763);function b({index:e,...r}){let n=(0,i.useRef)(null),{inViewSlides:o}=(0,v.useCarouselContext)();return(0,i.useEffect)(()=>{o.includes(e)||n.current?.pause()},[o,e]),(0,t.jsx)(x.VideoPlayer,{...r,ref:n,className:"size-full"})}let j=["LINK","CMB_ACTION"];e.s(["HeroBannerItem",0,function({index:e,title:m,description:x,legalText:v,actions:w,sticker:S,countdown:N,media:_,dataLayer:k,isBoldVariant:I,bgVariant:A="HALF",contentPosition:O="RIGHT"}){let E=(0,y.normalizeActionsForAnalytics)(w),T=w?.filter(e=>{var t;return t=e.type,j.includes(t)})??[],L=T[0],P=!!L,C=T.length>0,M=T.length>1?"primary":"tertiary",R="FULL"===A,D=i.default.useMemo(()=>({...k,description:x,name:m,stickers:S?.text?[S.text]:void 0,additionalFields:(0,p.getAdditionalTypes)(_.type,!!N)}),[k,m,_.type,N,S,x]),B=P&&(0,t.jsx)(h.ActionHandler,{action:L,dataLayer:D,allow:j,children:({triggerProps:e,actionType:r})=>"LINK"===r?(0,t.jsx)(n.Link,{...e,className:"absolute inset-0 z-10 size-full","aria-hidden":!0,tabIndex:-1,
3children:" "}):(0,t.jsx)("button",{...e,className:(0,a.cn)("className"in e?e.className:void 0,"absolute inset-0 z-10 size-full"),"aria-hidden":!0,tabIndex:-1,children:" "})}),F=({action:e,index:r})=>(0,t.jsx)(h.ActionHandler,{action:e,dataLayer:D,allow:j,children:({text:e,triggerProps:i,actionType:n})=>{let o=0===r?"primary":"tertiary",l=0===r?M:"tertiary",d="className"in i?i.className:void 0;return"LINK"===n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.Link,{...i,variant:o,className:"z-20 hidden md:block",children:e}),(0,t.jsx)(c.Link,{...i,variant:l,fullWidth:!0,small:!0,className:"z-10 text-center whitespace-nowrap md:hidden",children:e})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.Button,{...i,variant:o,className:(0,a.cn)(d,"z-20 hidden md:block"),children:e}),(0,t.jsx)(s.Button,{...i,variant:l,fullWidth:!0,size:"sm",className:(0,a.cn)(d,"z-20 text-center whitespace-nowrap md:hidden"),children:e})]})}}),z=S&&(0,t.jsx)("div",{className:"absolute top-4 left-4 z-10 md:hidden",children:(0,t.jsx)(g,{text:S.text,icon:S.icon})}),$=S&&(0,t.jsx)("div",{className:"hidden md:block",children:(0,t.jsx)(g,{text:S.text,icon:S.icon})}),W=(0,t.jsxs)("div",{className:(0,r.cx)("flex flex-col gap-1 overflow-hidden md:max-h-none md:gap-3",P?"max-h-[11rem]":"max-h-[14rem]"),children:[$,(0,t.jsx)("p",{className:"text-xl font-700 md:text-3xl",dangerouslySetInnerHTML:{__html:(0,u.sanitize)(m)}}),x&&(0,t.jsx)("p",{className:(0,r.cx)("text-sm font-700 md:text-md",!I&&"text-bold-light"),dangerouslySetInnerHTML:{__html:(0,u.sanitize)(x)}}),N&&(0,t.jsx)(o.Countdown,{type:"BLOCK",title:N.text,to:N.to,variant:I?"bold":"light"})]}),V=(v||C)&&(0,t.jsxs)("div",{className:(0,r.cx)("flex flex-col-reverse gap-2 ",R?"md:flex-col":"md:flex-row md:items-center md:gap-5"),children:[(0,t.jsx)("div",{className:"flex flex-col gap-2 md:flex-row md:items-center",children:C&&T.map((e,r)=>(0,t.jsx)(F,{action:e,index:r},r))}),v&&(0,t.jsx)("div",{className:(0,r.cx)("prose prose-2xs",I&&"prose-invert"),dangerouslySetInnerHTML:{__html:(0,u.sanitize)(v)}})]}),U=(0,t.jsx)(t.Fragment,{children:k&&(0,t.jsx)("div",{className:"absolute inset-0 -z-1 size-full",children:(0,t.jsx)(f.PromoView,{fullView:!0,...D,...E})})}),H=(0,r.cx)("h-full max-h-[39.5rem] w-[324px] md:max-h-none md:w-full","relative overflow-hidden rounded-lg border-2","border-divide bg-light-100 text-bold","dark:border-bold dark:bg-bold-90 dark:text-light"),G=(0,r.cx)("h-full max-h-[39.5rem] w-[324px] md:max-h-none md:w-full","relative overflow-hidden rounded-lg border-2","border-divide bg-light-100 text-bold","dark:border-bold dark:bg-bold-90 dark:text-light","flex flex-col gap-2","RIGHT"===O?"md:flex-row":"md:flex-row-reverse");return R?(0,t.jsxs)(d.CarouselItem,{children:[U,(0,t.jsxs)("div",{className:H,children:[B,(0,t.jsxs)("div",{className:"flex flex-col gap-2 md:hidden",children:[(0,t.jsxs)("div",{className:"h-[336px] w-[320px]",children:[z,_?.type==="IMAGE"&&(0,t.jsx)(l.ResponsiveImageBackground,{className:"h-[336px] w-[320px] bg-cover",..._.data}),_?.type==="VIDEO"&&(0,t.jsx)(b,{index:e,..._.data})]}),(0,t.jsxs)("div",{className:(0,r.cx)("flex flex-1 flex-col justify-between gap-1","relative h-full px-4 pb-4"),children:[W,V]})]}),(0,t.jsxs)("div",{className:"hidden md:block",children:[_?.type==="IMAGE"&&(0,t.jsx)(l.ResponsiveImageBackground,{className:"absolute inset-0 size-full bg-cover",..._.data}),_?.type==="VIDEO"&&(0,t.jsx)("div",{className:"absolute inset-0 size-full",children:(0,t.jsx)(b,{index:e,..._.data})}),(0,t.jsxs)("div",{className:"relative flex min-h-[484px] flex-col justify-center gap-5 p-8",children:[$,(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)("p",{className:"text-xl font-700 md:text-3xl",dangerouslySetInnerHTML:{__html:(0,u.sanitize)(m)}}),x&&(0,t.jsx)("p",{className:(0,r.cx)("text-sm font-700 md:text-md",!I&&"text-bold-light"),dangerouslySetInnerHTML:{__html:(0,u.sanitize)(x)}}),N&&(0,t.jsx)(o.Countdown,{type:"BLOCK",title:N.text,to:N.to,variant:I?"bold":"light"})]}),V]})]})]})]}):(0,t.jsxs)(d.CarouselItem,{children:[U,(0,t.jsxs)("div",{className:G,children:[_?.type!=="VIDEO"&&B,(0,t.jsxs)("div",{className:"h-[336px] w-[320px] md:h-[372px] md:w-[338px] relative",children:[z,_?.type==="IMAGE"&&(0,t.jsx)(l.ResponsiveImageBackgroun
3d,{className:"h-[336px] w-[320px] bg-cover md:h-[372px] md:w-[338px]",..._.data}),_?.type==="VIDEO"&&(0,t.jsx)(b,{index:e,..._.data})]}),(0,t.jsxs)("div",{className:(0,r.cx)("flex flex-1 flex-col justify-between gap-1 md:justify-normal md:gap-5 md:self-center","relative h-full px-4 pb-4 md:h-auto md:pt-4 md:pr-8"),children:[_?.type==="VIDEO"&&B,W,V]})]})]})}],772746)},928250,e=>{"use strict";var t=e.i(843476),r=e.i(225913),i=e.i(271645),n=e.i(12889),o=e.i(356239),s=e.i(368540),a=e.i(216556),l=e.i(728141),c=e.i(673902),d=e.i(274698);function u({action:e,icon:n,text:p,dataLayer:f}){let h=(0,d.normalizeActionsForAnalytics)([e]),y=i.default.useMemo(()=>({...f,name:p}),[f,p]);return(0,t.jsx)(l.PromoView,{className:"h-full",...y,...h,children:(0,t.jsx)(c.ActionHandler,{action:e,dataLayer:y,allow:["LINK"],children:({triggerProps:e})=>(0,t.jsxs)(s.Link,{...e,className:(0,r.cx)("relative h-full px-1 py-3 lg:px-3 lg:py-4.5","flex flex-col items-center gap-2 lg:flex-row lg:gap-4","dark:lg:bg-bold-90 dark:lg:text-bold-inverse","border-divide lg:rounded-lg lg:border-2 dark:lg:border-bold","before:pointer-events-none before:absolute before:-inset-0.5 before:box-content before:size-full before:border-2 before:border-transparent before:content-[''] lg:before:content-none","group-first-of-type:before:rounded-l-lg group-last-of-type:before:rounded-r-lg lg:group-last-of-type:border-2","after:pointer-events-none after:absolute after:top-0 after:right-0 after:h-full after:border-r-2 after:border-divide after:content-[''] after:group-last-of-type:border-r-0 lg:after:content-none","hover:after:content-none","focus-visible:after:right-[-2px] hover:focus-visible:after:right-[-2px]","transition-all before:transition-all","hover:border-active hover:before:border-brand active:border-bold active:text-bold active:hover:border-bold active:hover:before:border-bold","dark:lg:hover:border-bold-80 dark:lg:hover:bg-bold-80 dark:lg:active:border-divide dark:lg:active:bg-light-90 dark:lg:active:text-bold dark:lg:active:hover:border-divide dark:lg:active:hover:bg-light-90 dark:lg:active:hover:text-bold","handle-focus-visible"),children:[(0,t.jsx)("span",{children:(0,t.jsx)(o.Icon,{name:n,className:"size-6 shrink-0"})}),(0,t.jsx)("span",{className:"max-h-[2lh] overflow-hidden text-center text-xs font-700 lg:text-sm",dangerouslySetInnerHTML:{__html:(0,a.sanitize)(p)}})]})})})}var p=e.i(441639),f=e.i(265815);function h({icon:e,loggedIn:n,loggedOut:a,shortcutsLength:u,isBoldVariant:y}){let{isLoggedIn:m,name:g,partyType:x}=(0,f.useCustomerData)(),v=m?n.text:a.text,b=m?n.action:a.action,j=(0,d.normalizeActionsForAnalytics)([b]),w=i.default.useMemo(()=>({name:"Cześć!",id:b?.id,index:u}),[b,u]),S=u>3?3:u;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.PromoView,{...w,...j,index:S,className:"group h-full flex-1 lg:hidden lg:flex-none lg:basis-full",children:(0,t.jsx)(c.ActionHandler,{action:b,dataLayer:{...w,index:S},allow:["LINK"],children:({text:i,triggerProps:n})=>(0,t.jsxs)(s.Link,{...n,className:(0,r.cx)("relative h-full px-1 py-3","flex flex-col items-center gap-2 text-center","after:pointer-events-none after:absolute after:-inset-0.5 after:box-content after:size-full after:rounded-r-lg after:border-2 after:border-transparent after:content-['']","transition-all after:transition-all","hover:after:border-brand active:border-bold active:hover:border-bold active:hover:after:border-bold","handle-focus-visible"),children:[(0,t.jsx)("span",{children:(0,t.jsx)(o.Icon,{name:e,className:"size-6 shrink-0"})}),(0,t.jsx)("span",{className:"text-xs font-700",children:i})]})})}),(0,t.jsxs)(l.PromoView,{...w,...j,className:"hidden basis-full flex-row items-center justify-between rounded-lg bg-ghost px-4 py-2.5 lg:flex dark:bg-bold-90 dark:text-bold-inverse",children:[(0,t.jsxs)("span",{className:(0,r.cx)("text-xs",!m&&"font-700"),
3children:[m&&(0,t.jsx)("span",{className:"block font-700 capitalize",children:"INDIVIDUAL"===x&&g?`Cześć ${g.toLowerCase()}!`:"Cześć!"}),(0,t.jsx)("span",{className:"text-bold-light dark:text-bold-light-inverse",children:v})]}),(0,t.jsx)(c.ActionHandler,{action:b,dataLayer:w,allow:["LINK"],children:({text:e,triggerProps:r})=>(0,t.jsx)(p.Link,{...r,className:"shrink-0 whitespace-nowrap",small:!0,variant:y?"tertiary":"secondary",children:e})})]})]})}e.s(["Shortcuts",0,function({loginBox:e,shortcuts:o,title:s,index:a,id:l,isBoldVariant:c}){let d=e?4:5,p=i.default.useMemo(()=>o.slice(0,d),[o,d]);return(0,t.jsx)(n.AnalyticsProvider,{indexParent:a,fromId:l,headline:s,children:(0,t.jsxs)("div",{className:"relative bottom-[-1px] rounded-t-2xl px-5 py-3 lg:bottom-0 lg:col-start-1 lg:col-end-3 lg:rounded-t-none lg:p-0 dark:bg-light-100 dark:lg:bg-bold-100",children:[s&&(0,t.jsx)("p",{className:"mb-3 text-center text-lg font-700 lg:mb-1.5 lg:text-left dark:lg:text-bold-inverse",children:s}),(0,t.jsxs)("ul",{className:(0,r.cx)("flex lg:flex-wrap lg:gap-2","rounded-lg border-2 border-divide","lg:rounded-none lg:border-0 lg:border-none"),children:[p.map(({id:i,dataLayer:n,...o},s)=>(0,t.jsx)("li",{className:(0,r.cx)("group flex-1 lg:flex-none lg:basis-full",!e&&s===d-2&&"[&>*>a]:after:border-r-0",s>=d-1&&"hidden lg:block"),children:(0,t.jsx)(u,{...o,dataLayer:{...n,index:s,id:i}})},i)),e&&(0,t.jsx)("li",{className:"flex-1",children:(0,t.jsx)(h,{...e,shortcutsLength:p.length,isBoldVariant:c})})]})]})})}],928250)},880110,558558,e=>{"use strict";var t=e.i(843476),r=e.i(225913),i=e.i(271645),n=e.i(356239),o=e.i(714587);let s=(0,r.cva)("",{variants:{variant:{BRAND_LIGHT:"bg-brand-light",LIGHT_90:"bg-light-90",PRODUCT_LOVE_LIGHT:"bg-product-love-light",PRODUCT_MV_LIGHT:"bg-product-mv-light",PRODUCT_NET_LIGHT:"bg-product-net-light",BOLD_100:"bg-bold-100"}}});e.s(["bgVariant",0,s],558558);var a=e.i(441639),l=e.i(647130),c=e.i(143007),d=e.i(301085),u=e.i(728141),p=e.i(673902),f=e.i(274698);function h({action:e,bullets:n,dataLayer:s,id:y,image:m,title:g,variant:x}){let v=n&&n.length>0?n[0]:void 0,b=(0,f.normalizeActionsForAnalytics)(e&&[e]),j=i.default.useMemo(()=>({description:v,id:y,index:0,name:g,...s}),[s,y,v,g]);return(0,t.jsx)(u.PromoView,{...j,...b,className:(0,r.cx)("col-span-12  overflow-hidden lg:h-[390px]","rounded-lg border-2 border-divide bg-light-100 dark:border-bold dark:bg-bold-90"),children:(0,t.jsxs)("div",{className:"relative col-span-12  grid h-full grid-flow-row gap-y-6  pb-[382px] lg:grid-cols-12 lg:gap-y-4 lg:pb-0",children:[(0,t.jsxs)("div",{className:"relative z-10 col-span-full grid gap-y-4 px-4 pt-8 lg:col-span-6 lg:gap-y-0",children:[(0,t.jsx)("div",{className:"col-span-full self-end text-2xl",children:g}),n&&n.length>0&&(0,t.jsx)(l.List,{type:"brand",className:"col-span-full self-center",children:n.map((e,r)=>(0,t.jsx)(c.ListItem,{title:e},r))}),e&&(0,t.jsx)("div",{className:"col-span-full self-start lg:pb-10",children:(0,t.jsx)(p.ActionHandler,{action:e,dataLayer:j,allow:["LINK","CMB_ACTION","DIALOG_FEATURES"],children:({text:e,...r})=>"LINK"===r.actionType?(0,t.jsx)(a.Link,{...r.triggerProps,variant:"BOLD"===x?"tertiary":"secondary",children:e}):(0,t.jsx)(o.Button,{...r.triggerProps,variant:"BOLD"===x?"tertiary":"secondary",children:e})})})]}),(0,t.jsx)(d.ResponsiveImageBackground,{overlay:!1,repeat:!1,position:"bottom-center",className:(0,r.cx)("bg-[size:100%_auto] lg:bg-[size:auto_100%]","absolute bottom-0 left-1/2 h-full w-[650px] -translate-x-1/2 lg:h-[394px] lg:w-full"),...m})]})})}var y=e.i(216556);function m({action:e,dataLayer:n,id:s,image:l,index:c,isHidden:h,title:g,subtitle:x,variant:v}){let b=(0,f.normalizeActionsForAnalytics)(e&&[e]),j=i.default.useMemo(()=>({id:s,index:c+1,name:g,...n}),[n,s,c,g]);return(0,t.jsx)(u.PromoView,{...j,...b,className:(0,r.cx)(0!==c&&h&&"hidden","col-span-4 grid-flow-row lg:grid"),children:(0,t.jsx)("div",{className:(0,r.cx)("relative h-[256px] overflow-hidden rounded-lg border-2","border-divide bg-light-100 dark:border-bold  dark:bg-bold-90 "),children:(0,t.jsxs)("div",{className:"z-10 col-span-12 grid h-full grid-cols-12 py-4 pl-4",children:[(0,t.jsxs)("div",{className:"col-span-7 grid h-full gap-3",children:[(0,t.jsxs)("div",{className:"relative z-10 mb-auto flex flex-col gap-2",children:[(0,t.jsx)("span",{className:"text-lg font-700 dark:text-bold-inverse",dangerouslySetInnerHTML:{__html:(0,y.sanitize)(g)}}),x&&(0,t.jsx)("span",{className:"mb-auto text-sm dark:text-bold-light-inverse",dangerouslySetInnerHTML:{__html:(0,y.sanitize)(x)}})]}),(0,t.jsx)("div",{className:"w-[168px] shrink-0"}),e&&(0,t.jsx)("div",{className:"absolute bottom-4 left-4 z-10",children:(0,t.jsx)(p.ActionHandler,{action:e,dataLayer:j,allow:["LINK","CMB_ACTION","DIALOG_FEATURES"],children:({text:e,...r})=>"LINK"===r.actionType?(0,t.jsx)(a.Link,{...r.triggerProps,variant:"BOLD"===v?"tertiary":"secondary",children:e}):(0,t.jsx)(o.Button,{...r.triggerProps,variant:"BOLD"===v?"tertiary":"secondary",children:e})})})]}
3),(0,t.jsx)(d.ResponsiveImageBackground,{...l,overlay:!1,position:"bottom-right",repeat:!1,className:"absolute right-0 bottom-0 h-[260px] w-full bg-[size:auto_100%]"})]})})})}e.s(["WhyOrangeView",0,function({backgroundVariant:e,items:a,title:l,variant:c="LIGHT",titleAlignment:d="CENTER"}){let[u,p]=i.default.useState(!0),f=i.default.useCallback(()=>{p(e=>!e)},[]),y=a.at(0);return(0,t.jsx)("section",{className:s({variant:"BOLD"===c?"BOLD_100":e}),"data-test-id":"why-orange","data-variant":c,children:(0,t.jsx)("div",{className:"mx-auto max-w-screen-xl dark:text-bold-inverse",children:(0,t.jsxs)("div",{className:"grid grid-cols-12 gap-y-8 px-5 py-4 pt-6 sm:p-6 sm:pb-8 lg:pt-10",children:[(0,t.jsx)("h2",{className:(0,r.cx)("col-span-12 text-2xl sm:col-span-8 sm:col-start-3 sm:text-center lg:col-span-full dark:text-bold-inverse","LEFT"===d&&"lg:text-left","CENTER"===d&&"lg:text-center"),children:l}),(0,t.jsxs)("div",{className:"col-span-12 grid grid-flow-row gap-y-4 sm:col-span-8 sm:col-start-3 lg:col-span-full lg:col-start-1",children:[y&&(0,t.jsx)(h,{...y,variant:c}),(0,t.jsxs)("div",{className:"col-span-12 grid gap-y-4 lg:grid-flow-row",children:[(0,t.jsx)("div",{className:"col-span-12 grid grid-flow-row gap-y-2 lg:grid-flow-col lg:gap-x-4 lg:gap-y-0",children:a.slice(1).map((e,r)=>(0,t.jsx)(m,{...e,index:r,isHidden:u,variant:c},e.id))}),a.length>1&&(0,t.jsx)("div",{className:"col-span-12 grid justify-center lg:hidden",children:(0,t.jsx)(o.Button,{variant:"tertiary",size:"sm",onPress:f,children:(0,t.jsxs)("div",{className:"flex flex-row items-center gap-1",children:[u?"Zobacz więcej":"Zwiń",(0,t.jsx)(n.Icon,{name:u?"arrow-down":"arrow-up"})]})})})]})]})]})})})}],880110)},269176,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(3429),n=e.i(714587),o=e.i(557508);e.s(["WWTSubmitButton",0,function({label:e}){let{formId:s,isFormPending:a}=(0,o.useWWT)(),{track:l}=(0,i.useAnalytics)(),c=(0,r.useCallback)(()=>{l({type:"process_form_interaction",label:e})},[e,l]);return(0,t.jsx)(n.Button,{variant:"primary",type:a?"button":"submit",form:s,isLoading:a,className:"w-full md:w-auto",onPress:c,"data-test-id":"wwt-submit-button",children:e})}])},996545,359467,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(3429),n=e.i(557508),o=e.i(644169);function s({address:e,offerConfig:{withNetflix:t,withTv:r,...i}}){let n=[];t&&n.push("OTT_NETFLIX"),r&&n.push("TV");let a={...i,...e&&{city:e.city,cityId:e.cityId,street:e.isStreetRequired?e.street:void 0,streetId:e.isStreetRequired?e.streetId:void 0,streetNumber:e.houseNumber,apartmentNumber:e.flatNumber},...n.length>0&&{selectedAdditionalProductTypes:n.join(",")}};return`/zobacz/kup?${o.default.stringify(a,{filter:(e,t)=>t??void 0})}`}e.s(["prepareRedirectUrl",0,s],359467);var a=e.i(630788);e.s(["WWTFormLogic",0,function(){let{offerConfig:e}=(0,n.useWWT)(),{track:o}=(0,i.useAnalytics)(),l=r.useCallback(()=>{o({type:"process_form_interaction",label:"start"})},[o]),c=r.useCallback(e=>{let t=Object.keys(e).join(",");o({type:"process_form_interaction",label:`error - ${t}`})},[o]),d=r.useCallback(t=>{o({type:"process_form_interaction",label:"success"}),window.location.assign(s({address:t,offerConfig:e}))},[o,e]);return(0,t.jsx)(a.WWTForm,{onProcessStart:l,onSubmitError:c,onSubmitSuccess:d})}],996545)},194803,e=>{"use strict";var t=e.i(843476),r=e.i(225913),i=e.i(12889),n=e.i(544932),o=e.i(265815),s=e.i(557508),a=e.i(728141),l=e.i(269176),c=e.i(488519),d=e.i(996545);function u({hasMedia:e}){let{content:i}=(0,s.useWWT)(),{title:n,description:o,buttonText:p}=i;return(0,t.jsxs)(a.PromoView,{className:"flex flex-col gap-3",description:o,name:n,children:[(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsx)("h2",{className:(0,r.cx)("w-full text-bold md:text-2xl",{"text-xl font-700 text-center":!e,"text-sm lg:font-700 md:text-center":e}),children:n}),(0,t.jsxs)("div",{className:"flex flex-col gap-4 lg:flex-row",children:[(0,t.jsx)("div",{className:"w-full",children:(0,t.jsx)(d.WWTFormLogic,{})}),(0,t.jsx)("div",{className:"flex shrink-0 flex-col justify-center lg:h-14",children:(0,t.jsx)(l.WWTSubmitButton,{label:p})})]})]}),(0,t.jsx)(c.WWTInfoBanner,{isCentered:!0})]})}var p=e.i(271645),f=e.i(714587),h=e.i(848124),y=e.i(437202),m=e.i(433411),g=e.i(781626);function x({children:e,title:i,media:n,sticker:o}){let s=p.default.useRef(null),[a,l]=p.default.useState(!n),c=p.default.useCallback(e=>{l(()=>{let t=!e;return t||(0,g.scrollToSection)(s.current),t})},[]);return(0,t.jsxs)("div",{className:"w-full",ref:s,children:[n&&(0,t.jsxs)("div",{className:"flex flex-col gap-2 rounded-t-lg bg-bold-90 p-4 md:hidden",children:[o&&(0,t.jsx)(y.Sticker,{type:"other",prefixIcon:o.icon,children:o.text}),(0,t.jsxs)("div",{children:["VIDEO"===n.type&&(0,t.jsx)(m.VideoPlayer,{className:"overflow-hidden rounded-sm",...n.data}),"IMAGE"===n.type&&(0,t.jsx)(h.ResponsiveImage,{...n.data,width:"full",height:"full",rounded:!0})]}),(0,t.jsx)("div",{children:(0,t.jsx)("p",{className:"text-xl font-700 text-light",children:i})})]}),(0,t.jsxs)("div",{className:n?(0,r.cx)("rounded-b-lg border-2 border-t-0 p-4 md:border-0 md:bg-transparent md:p-0",a?"border-divide":"border-bold bg-bold-90 pt-0"):"px-4 md:px-0",children:[(0,t.jsx)("div",{className:(0,r.cx)("md:block",a?"block":"hidden",n&&"pb-3 md:pb-0"),children:e}),n&&(0,t.jsx)(f.Button,{className:"min-h-[50px] w-full md:hidden",variant:a?"secondary":"tertiary",onPress:()=>c(a),suffixIcon:a?"arrow-up":"arrow-down",children:a?"Zwiń":"Sprawdź"})]})]})}var v=e.i(441639),b=e.i(222462),j=e.i(359467);function w({hasMedia:e}){let{offerConfig:i,content:n}=(0,s.useWWT)(),{title:o,description:l,buttonText:c}=n,d=(0,j.prepareRedirectUrl)({offerConfig:i});return(0,t.jsxs)(a.PromoView,{className:"flex flex-col gap-3",buttonText:c,description:l,name:o,link:c,children:[(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("h2",{className:(0,r.cx)("w-full text-bold md:text-2xl",{"text-xl font-700 text-center":!e,"text-sm lg:font-700 md:text-center":e}),children:o}),l&&(0,t.jsx)("p",{className:(0,r.cx)("text-bold-light",e?"md:text-center":"text-center"),children:l})]}),(0,t.jsx)("div",{className:"mx-auto w-full md:w-auto",children:(0,t.jsx)(b.TrackLinkClicks,{dataLayer:{buttonText:c,description:l,name:o,link:d},children:(0,t.jsx)(v.Link,{variant:"primary",href:d,className:"w-full md:w-auto",children:c})})})]})}e.s(["WWT",0,function({loggedIn:e,loggedOut:a,media:l,offerConfig:c,sticker:d,id:p,index:f}){let{isLoggedIn:h}=(0,o.useCustomerData)(),y=h?e.mobileTitle:a.mobileTitle,m=h?{title:e.title,de
3scription:e.description,buttonText:e.buttonText}:{title:a.title,description:a.description,buttonText:a.buttonText};return(0,t.jsx)(i.AnalyticsProvider,{componentId:p,indexParent:f,dataLayer:{process:c.process,product:c.factory,stickers:d?.text?[d.text]:void 0,additionalFields:(0,n.getAdditionalTypes)(l?.type,!1),buttonText:h?e.buttonText:a.buttonText,step:"SG_WWT"},children:(0,t.jsx)(s.WWTProvider,{offerConfig:c,content:m,children:(0,t.jsx)("section",{className:"mx-auto grid max-w-screen-xl grid-cols-2 gap-4 px-2 py-3 md:grid-cols-6 md:px-6 lg:grid-cols-12 lg:py-4",children:(0,t.jsx)("div",{className:"col-span-2 rounded-lg bg-light-90 md:col-span-6 lg:col-span-12",children:(0,t.jsx)("div",{className:(0,r.cx)("md:px-20 lg:px-8",l?"md:py-8":"py-8"),children:(0,t.jsxs)(x,{media:l,sticker:d,title:y,children:[h&&(0,t.jsx)(w,{hasMedia:!!l}),!h&&(0,t.jsx)(u,{hasMedia:!!l})]})})})})})})}],194803)},781626,e=>{"use strict";var t=e.i(272188);e.s(["scrollToSection",0,function(e){requestAnimationFrame(()=>{e&&(0,t.default)(e,{block:"center",scrollMode:"if-needed"})})}])},8224,(e,t,r)=>{"use strict";t.exports=TypeError},52493,(e,t,r)=>{var i="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=i&&n&&"function"==typeof n.get?n.get:null,s=i&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=a&&l&&"function"==typeof l.get?l.get:null,d=a&&Set.prototype.forEach,u="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,y=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,x=String.prototype.slice,v=String.prototype.replace,b=String.prototype.toUpperCase,j=String.prototype.toLowerCase,w=RegExp.prototype.test,S=Array.prototype.concat,N=Array.prototype.join,_=Array.prototype.slice,k=Math.floor,I="function"==typeof BigInt?BigInt.prototype.valueOf:null,A=Object.getOwnPropertySymbols,O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,E="function"==typeof Symbol&&"object"==typeof Symbol.iterator,T="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===E?"object":"symbol")?Symbol.toStringTag:null,L=Object.prototype.propertyIsEnumerable,P=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function C(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||w.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var i=e<0?-k(-e):k(e);if(i!==e){var n=String(i),o=x.call(t,n.length+1);return v.call(n,r,"$&_")+"."+v.call(v.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,r,"$&_")}var M={},R=M.custom,D=U(R)?R:null,B={__proto__:null,double:'"',single:"'"},F={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function z(e,t,r){var i=B[r.quoteStyle||t];return i+e+i}function $(e){return!T||!("object"==typeof e&&(T in e||void 0!==e[T]))}function W(e){return"[object Array]"===K(e)&&$(e)}function V(e){return"[object RegExp]"===K(e)&&$(e)}function U(e){if(E)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}t.exports=function t(r,i,n,a){var l,y,b,w,k,A=i||{};if(G(A,"quoteStyle")&&!G(B,A.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(G(A,"maxStringLength")&&("number"==typeof A.maxStringLength?A.maxStringLength<0&&A.maxStringLength!==1/0:null!==A.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var R=!G(A,"customInspect")||A.customInspect;if("boolean"!=typeof R&&"symbol"!==R)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
3if(G(A,"indent")&&null!==A.indent&&"	"!==A.indent&&!(parseInt(A.indent,10)===A.indent&&A.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(G(A,"numericSeparator")&&"boolean"!=typeof A.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var H=A.numericSeparator;if(void 0===r)return"undefined";if(null===r)return"null";if("boolean"==typeof r)return r?"true":"false";if("string"==typeof r)return function e(t,r){if(t.length>r.maxStringLength){var i=t.length-r.maxStringLength;return e(x.call(t,0,r.maxStringLength),r)+("... "+i)+" more character"+(i>1?"s":"")}var n=F[r.quoteStyle||"single"];return n.lastIndex=0,z(v.call(v.call(t,n,"\\$1"),/[\x00-\x1f]/g,J),"single",r)}(r,A);if("number"==typeof r){if(0===r)return 1/0/r>0?"0":"-0";var et=String(r);return H?C(r,et):et}if("bigint"==typeof r){var er=String(r)+"n";return H?C(r,er):er}var ei=void 0===A.depth?5:A.depth;if(void 0===n&&(n=0),n>=ei&&ei>0&&"object"==typeof r)return W(r)?"[Array]":"[Object]";var en=function(e,t){var r;if("	"===e.indent)r="	";else{if("number"!=typeof e.indent||!(e.indent>0))return null;r=N.call(Array(e.indent+1)," ")}return{base:r,prev:N.call(Array(t+1),r)}}(A,n);if(void 0===a)a=[];else if(q(a,r)>=0)return"[Circular]";function eo(e,r,i){if(r&&(a=_.call(a)).push(r),i){var o={depth:A.depth};return G(A,"quoteStyle")&&(o.quoteStyle=A.quoteStyle),t(e,o,n+1,a)}return t(e,A,n+1,a)}if("function"==typeof r&&!V(r)){var es=function(e){if(e.name)return e.name;var t=g.call(m.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(r),ea=ee(r,eo);return"[Function"+(es?": "+es:" (anonymous)")+"]"+(ea.length>0?" { "+N.call(ea,", ")+" }":"")}if(U(r)){var el=E?v.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):O.call(r);return"object"!=typeof r||E?el:Q(el)}if((ec=r)&&"object"==typeof ec&&("u">typeof HTMLElement&&ec instanceof HTMLElement||"string"==typeof ec.nodeName&&"function"==typeof ec.getAttribute)){for(var ec,ed,eu="<"+j.call(String(r.nodeName)),ep=r.attributes||[],ef=0;ef<ep.length;ef++){eu+=" "+ep[ef].name+"="+z((ed=ep[ef].value,v.call(String(ed),/"/g,"&quot;")),"double",A)}return eu+=">",r.childNodes&&r.childNodes.length&&(eu+="..."),eu+="</"+j.call(String(r.nodeName))+">"}if(W(r)){if(0===r.length)return"[]";var eh=ee(r,eo);return en&&!function(e){for(var t=0;t<e.length;t++)if(q(e[t],"\n")>=0)return!1;return!0}(eh)?"["+Z(eh,en)+"]":"[ "+N.call(eh,", ")+" ]"}if("[object Error]"===K(l=r)&&$(l)){var ey=ee(r,eo);return"cause"in Error.prototype||!("cause"in r)||L.call(r,"cause")?0===ey.length?"["+String(r)+"]":"{ ["+String(r)+"] "+N.call(ey,", ")+" }":"{ ["+String(r)+"] "+N.call(S.call("[cause]: "+eo(r.cause),ey),", ")+" }"}if("object"==typeof r&&R){if(D&&"function"==typeof r[D]&&M)return M(r,{depth:ei-n});else if("symbol"!==R&&"function"==typeof r.inspect)return r.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(r)){var em=[];return s&&s.call(r,function(e,t){em.push(eo(t,r,!0)+" => "+eo(e,r))}),X("Map",o.call(r),em,en)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(r)){var eg=[];return d&&d.call(r,function(e){eg.push(eo(e,r))}),X("Set",c.call(r),eg,en)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e,u);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(r))return Y("WeakMap");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{u.call(e,u)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(r))return Y("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(r))return Y("WeakRef");if("[object Number]"===K(y=r)&&$(y))return Q(eo(Number(r)));if(function(e){if(!e||"object"!=typeof e||!I)return!1;try{return I.call(e),!0}catch(e){}return!1}(r))return Q(eo(I.call(r)));if("[object Boolean]"===K(b=r)&&$(b))return Q(h.call(r));if("[object String]"===K(w=r)&&$(w))return Q(eo(String(r)));if("u">typeof window&&r===window)return"{ [object Window] }";if("u">typeof globalThis&&r===globalThis||r===e.g)return"{ [object globalThis] }";if(!("[object Date]"===K(k=r)&&$(k))&&!V(r)){var ex=ee(r,eo),ev=P?P(r)===Object.prototype:r instanceof Object||r.constructor===Object,eb=r instanceof Object?"":"null prototype",ej=!ev&&T&&Object(r)===r&&T in r?x.call(K(r),8,-1):eb?"Object":"",ew=(ev||"function"!=typeof r.constructor?"":r.constructor.name?r.constructor.name+" ":"")+(ej||eb?"["+N.call(S.call([],ej||[],eb||[]),": ")+"] ":"");return 0===ex.length?ew+"{}":en?ew+"{"+Z(ex,en)+"}":ew+"{ "+N.call(ex,", ")+" }"}return String(r)};var H=Object.prototype.hasOwnProperty||function(e){return e in this};function G(e,t){return H.call(e,t)}
3function K(e){return y.call(e)}function q(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return -1}function J(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+b.call(t.toString(16))}function Q(e){return"Object("+e+")"}function Y(e){return e+" { ? }"}function X(e,t,r,i){return e+" ("+t+") {"+(i?Z(r,i):N.call(r,", "))+"}"}function Z(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+N.call(e,","+r)+"\n"+t.prev}function ee(e,t){var r,i=W(e),n=[];if(i){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=G(e,o)?t(e[o],e):""}var s="function"==typeof A?A(e):[];if(E){r={};for(var a=0;a<s.length;a++)r["$"+s[a]]=s[a]}for(var l in e)if(G(e,l)&&(!i||String(Number(l))!==l||!(l<e.length)))if(E&&r["$"+l]instanceof Symbol)continue;else w.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e));if("function"==typeof A)for(var c=0;c<s.length;c++)L.call(e,s[c])&&n.push("["+t(s[c])+"]: "+t(e[s[c]],e));return n}},491455,(e,t,r)=>{"use strict";var i=e.r(52493),n=e.r(8224),o=function(e,t,r){for(var i,n=e;null!=(i=n.next);n=i)if(i.key===t)return n.next=i.next,r||(i.next=e.next,e.next=i),i},s=function(e,t){if(e){var r=o(e,t);return r&&r.value}},a=function(e,t,r){var i=o(e,t);i?i.value=r:e.next={key:t,next:e.next,value:r}},l=function(e,t){if(e)return o(e,t,!0)};t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+i(e))},delete:function(t){var r=l(e,t);return r&&e&&!e.next&&(e=void 0),!!r},get:function(t){return s(e,t)},has:function(t){var r;return!!(r=e)&&!!o(r,t)},set:function(t,r){e||(e={next:void 0}),a(e,t,r)}};return t}},608435,(e,t,r)=>{"use strict";t.exports=Object},639857,(e,t,r)=>{"use strict";t.exports=Error},974660,(e,t,r)=>{"use strict";t.exports=EvalError},930575,(e,t,r)=>{"use strict";t.exports=RangeError},265756,(e,t,r)=>{"use strict";t.exports=ReferenceError},143e3,(e,t,r)=>{"use strict";t.exports=SyntaxError},420570,(e,t,r)=>{"use strict";t.exports=URIError},860410,(e,t,r)=>{"use strict";t.exports=Math.abs},692069,(e,t,r)=>{"use strict";t.exports=Math.floor},400315,(e,t,r)=>{"use strict";t.exports=Math.max},869897,(e,t,r)=>{"use strict";t.exports=Math.min},755752,(e,t,r)=>{"use strict";t.exports=Math.pow}
3,156056,(e,t,r)=>{"use strict";t.exports=Math.round},280407,(e,t,r)=>{"use strict";t.exports=Number.isNaN||function(e){return e!=e}},159532,(e,t,r)=>{"use strict";var i=e.r(280407);t.exports=function(e){return i(e)||0===e?e:e<0?-1:1}},267359,(e,t,r)=>{"use strict";t.exports=Object.getOwnPropertyDescriptor},593892,(e,t,r)=>{"use strict";var i=e.r(267359);if(i)try{i([],"length")}catch(e){i=null}t.exports=i},123775,(e,t,r)=>{"use strict";var i=Object.defineProperty||!1;if(i)try{i({},"a",{value:1})}catch(e){i=!1}t.exports=i},651739,(e,t,r)=>{"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var i in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},130949,(e,t,r)=>{"use strict";var i="u">typeof Symbol&&Symbol,n=e.r(651739);t.exports=function(){return"function"==typeof i&&"function"==typeof Symbol&&"symbol"==typeof i("foo")&&"symbol"==typeof Symbol("bar")&&n()}},675672,(e,t,r)=>{"use strict";t.exports="u">typeof Reflect&&Reflect.getPrototypeOf||null},343264,(e,t,r)=>{"use strict";t.exports=e.r(608435).getPrototypeOf||null},277018,(e,t,r)=>{"use strict";var i=Object.prototype.toString,n=Math.max,o=function(e,t){for(var r=[],i=0;i<e.length;i+=1)r[i]=e[i];for(var n=0;n<t.length;n+=1)r[n+e.length]=t[n];return r},s=function(e,t){for(var r=[],i=t||0,n=0;i<e.length;i+=1,n+=1)r[n]=e[i];return r},a=function(e,t){for(var r="",i=0;i<e.length;i+=1)r+=e[i],i+1<e.length&&(r+=t);return r};t.exports=function(e){var t,r=this;if("function"!=typeof r||"[object Function]"!==i.apply(r))throw TypeError("Function.prototype.bind called on incompatible "+r);for(var l=s(arguments,1),c=n(0,r.length-l.length),d=[],u=0;u<c;u++)d[u]="$"+u;if(t=Function("binder","return function ("+a(d,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof t){var i=r.apply(this,o(l,arguments));return Object(i)===i?i:this}return r.apply(e,o(l,arguments))}),r.prototype){var p=function(){};p.prototype=r.prototype,t.prototype=new p,p.prototype=null}return t}},932672,(e,t,r)=>{"use strict";var i=e.r(277018);t.exports=Function.prototype.bind||i},600358,(e,t,r)=>{"use strict";t.exports=Function.prototype.call},102215,(e,t,r)=>{"use strict";t.exports=Function.prototype.apply},130637,(e,t,r)=>{"use strict";t.exports="u">typeof Reflect&&Reflect&&Reflect.apply},256450,(e,t,r)=>{"use strict";var i=e.r(932672),n=e.r(102215),o=e.r(600358);t.exports=e.r(130637)||i.call(o,n)},943569,(e,t,r)=>{"use strict";var i=e.r(932672),n=e.r(8224),o=e.r(600358),s=e.r(256450);t.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new n("a function is required");return s(i,o,e)}},190482,(e,t,r)=>{"use strict";var i,n=e.r(943569),o=e.r(593892);try{i=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var s=!!i&&o&&o(Object.prototype,"__proto__"),a=Object,l=a.getPrototypeOf;t.exports=s&&"function"==typeof s.get?n([s.get]):"function"==typeof l&&function(e){return l(null==e?e:a(e))}},942527,(e,t,r)=>{"use strict";var i=e.r(675672),n=e.r(343264),o=e.r(190482);t.exports=i?function(e){return i(e)}:n?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return n(e)}:o?function(e){return o(e)}:null},705843,(e,t,r)=>{"use strict";var i=Function.prototype.call,n=Object.prototype.hasOwnProperty;t.exports=e.r(932672).call(i,n)},578586,(e,t,r)=>{"use strict";var i=e.r(608435),n=e.r(639857),o=e.r(974660),s=e.r(930575),a=e.r(265756),l=e.r(143e3),c=e.r(8224),d=e.r(420570),u=e.r(860410),p=e.r(692069),f=e.r(400315),h=e.r(869897),y=e.r(755752),m=e.r(156056),g=e.r(159532),x=Function,v=function(e){try{return x('"use strict"; return ('+e+").constructor;")()}catch(e){}},b=e.r(593892),j=e.r(123775),w=function(){throw new c},S=b?function(){try{return arguments.callee,w}catch(e){try{return b(arguments,"callee").get}catch(e){return w}}}():w,N=e.r(130949)(),_=e.r(942527),k=e.r(343264),I=e.r(675672),A=e.r(102215),O=e.r(600358),E={},T="u">typeof Uint8Array&&_?_(Uint8Array):void 0,L={__proto__:null,"%AggregateError%":"u"<typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"u"<typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":N&&_?_([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":E,"%AsyncGenerator%":E,"%AsyncGeneratorFunction%":E,"%AsyncIteratorPrototype%":E,"%Atomics%":"u"<typeof Atomics?void 0:Atomics,"%BigInt%":"u"<typeof BigInt?void 0:BigInt,"%BigInt64Array%":"u"<typeof BigInt64Array?void 0:BigInt64Array,"%BigUint64Array%":"u"<typeof BigUint64Array?void 0:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"u"<typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":o,"%Float16Array%":"u"<typeof Float16Array?void 0:Float16Array,"%Float32Array%":"u"<typeof Float32Array?void 0:Float32Array,"%Float64Array%":"u"<typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"u"<typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":x,"%GeneratorFunction%":E,"%Int8Array%":"u"<typeof Int8Array?void 0:Int8Array,"%Int16Array%":"u"<typeof Int16Array?void 0:Int16Array,"%Int32Array%":"u"<typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
3IteratorPrototype%":N&&_?_(_([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"u"<typeof Map?void 0:Map,"%MapIteratorPrototype%":"u">typeof Map&&N&&_?_(new Map()[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"<typeof Promise?void 0:Promise,"%Proxy%":"u"<typeof Proxy?void 0:Proxy,"%RangeError%":s,"%ReferenceError%":a,"%Reflect%":"u"<typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"u"<typeof Set?void 0:Set,"%SetIteratorPrototype%":"u">typeof Set&&N&&_?_(new Set()[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":N&&_?_(""[Symbol.iterator]()):void 0,"%Symbol%":N?Symbol:void 0,"%SyntaxError%":l,"%ThrowTypeError%":S,"%TypedArray%":T,"%TypeError%":c,"%Uint8Array%":"u"<typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"u"<typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"u"<typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"u"<typeof Uint32Array?void 0:Uint32Array,"%URIError%":d,"%WeakMap%":"u"<typeof WeakMap?void 0:WeakMap,"%WeakRef%":"u"<typeof WeakRef?void 0:WeakRef,"%WeakSet%":"u"<typeof WeakSet?void 0:WeakSet,"%Function.prototype.call%":O,"%Function.prototype.apply%":A,"%Object.defineProperty%":j,"%Object.getPrototypeOf%":k,"%Math.abs%":u,"%Math.floor%":p,"%Math.max%":f,"%Math.min%":h,"%Math.pow%":y,"%Math.round%":m,"%Math.sign%":g,"%Reflect.getPrototypeOf%":I};if(_)try{null.error}catch(e){var P=_(_(e));L["%Error.prototype%"]=P}var C=function e(t){var r;if("%AsyncFunction%"===t)r=v("async function () {}");else if("%GeneratorFunction%"===t)r=v("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=v("async function* () {}");else if("%AsyncGenerator%"===t){var i=e("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if("%AsyncIteratorPrototype%"===t){var n=e("%AsyncGenerator%");n&&_&&(r=_(n.prototype))}return L[t]=r,r},M={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},R=e.r(932672),D=e.r(705843),B=R.call(O,Array.prototype.concat),F=R.call(A,Array.prototype.splice),z=R.call(O,String.prototype.replace),$=R.c
3all(O,String.prototype.slice),W=R.call(O,RegExp.prototype.exec),V=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,U=/\\(\\)?/g,H=function(e){var t=$(e,0,1),r=$(e,-1);if("%"===t&&"%"!==r)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var i=[];return z(e,V,function(e,t,r,n){i[i.length]=r?z(n,U,"$1"):t||e}),i},G=function(e,t){var r,i=e;if(D(M,i)&&(i="%"+(r=M[i])[0]+"%"),D(L,i)){var n=L[i];if(n===E&&(n=C(i)),void 0===n&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:i,value:n}}throw new l("intrinsic "+e+" does not exist!")};t.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===W(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=H(e),i=r.length>0?r[0]:"",n=G("%"+i+"%",t),o=n.name,s=n.value,a=!1,d=n.alias;d&&(i=d[0],F(r,B([0,1],d)));for(var u=1,p=!0;u<r.length;u+=1){var f=r[u],h=$(f,0,1),y=$(f,-1);if(('"'===h||"'"===h||"`"===h||'"'===y||"'"===y||"`"===y)&&h!==y)throw new l("property names with quotes must have matching quotes");if("constructor"!==f&&p||(a=!0),i+="."+f,D(L,o="%"+i+"%"))s=L[o];else if(null!=s){if(!(f in s)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(b&&u+1>=r.length){var m=b(s,f);s=(p=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:s[f]}else p=D(s,f),s=s[f];p&&!a&&(L[o]=s)}}return s}},325887,(e,t,r)=>{"use strict";var i=e.r(578586),n=e.r(943569),o=n([i("%String.prototype.indexOf%")]);t.exports=function(e,t){var r=i(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?n([r]):r}},274923,(e,t,r)=>{"use strict";var i=e.r(578586),n=e.r(325887),o=e.r(52493),s=e.r(8224),a=i("%Map%",!0),l=n("Map.prototype.get",!0),c=n("Map.prototype.set",!0),d=n("Map.prototype.has",!0),u=n("Map.prototype.delete",!0),p=n("Map.prototype.size",!0);t.exports=!!a&&function(){var e,t={assert:function(e){if(!t.has(e))throw new s("Side channel does not contain "+o(e))},delete:function(t){if(e){var r=u(e,t);return 0===p(e)&&(e=void 0),r}return!1},get:function(t){if(e)return l(e,t)},has:function(t){return!!e&&d(e,t)},set:function(t,r){e||(e=new a),c(e,t,r)}};return t}},34711,(e,t,r)=>{"use strict";var i=e.r(578586),n=e.r(325887),o=e.r(52493),s=e.r(274923),a=e.r(8224),l=i("%WeakMap%",!0),c=n("WeakMap.prototype.get",!0),d=n("WeakMap.prototype.set",!0),u=n("WeakMap.prototype.has",!0),p=n("WeakMap.prototype.delete",!0);t.exports=l?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+o(e))},delete:function(r){if(l&&r&&("object"==typeof r||"function"==typeof r)){if(e)return p(e,r)}else if(s&&t)return t.delete(r);return!1},get:function(r){return l&&r&&("object"==typeof r||"function"==typeof r)&&e?c(e,r):t&&t.get(r)},has:function(r){return l&&r&&("object"==typeof r||"function"==typeof r)&&e?u(e,r):!!t&&t.has(r)},set:function(r,i){l&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new l),d(e,r,i)):s&&(t||(t=s()),t.set(r,i))}};return r}:s},189196,(e,t,r)=>{"use strict";var i=e.r(8224),n=e.r(52493),o=e.r(491455),s=e.r(274923),a=e.r(34711)||s||o;t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new i("Side channel does not contain "+(e&&Object(e)===e?"the given object key":n(e)))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=a()),e.set(t,r)}};return t}},762541,(e,t,r)=>{"use strict";var i=String.prototype.replace,n=/%20/g,o="RFC3986";t.exports={default:o,formatters:{RFC1738:function(e){return i.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:o}},451113,(e,t,r)=>{"use strict";var i=e.r(762541),n=e.r(189196),o=e.r(123775),s=Object.prototype.hasOwnProperty,a=Array.isArray,l=n(),c=function(e,t){return l.set(e,t),e},d=function(e){return l.has(e)},u=function(e){return l.get(e)},p=function(e,t){l.set(e,t)},f=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),h=function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(a(r)){for(var i=[],n=0;n<r.length;++n)void 0!==r[n]&&(i[i.length]=r[n]);t.obj[t.prop]=i}}},y=function(e,t){for(var r=t&&t.plainObjects?{__proto__:null}:{},i=0;i<e.length;++i)void 0!==e[i]&&(r[i]=e[i]);return r},m=function(e,t,r){"__proto__"===t&&o?o(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r};t.exports={arrayToObject:y,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return m(e,r,t[r]),e},e)},combine:function(e,t,r,i,n){if(d(e)){if(n)throw RangeError("Array limit exceeded. Only "+r+" element"+(1===r?"":"s")+" allowed in an array.");var o=u(e)+1;return e[o]=t,p(e,o),e}var s=[].concat(e,t);if(s.length>r){if(n)throw RangeError("Array limit exceeded. Only "+r+" element"+(1===r?"":"s")+" allowed in an array.");return c(y(s,{plainObjects:i}),s.length-1)}return s},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=n(),i=0;i<t.length;++i)for(var o=t[i],s=o.obj[o.prop],a=Object.keys(s),l=0;l<a.length;++l){var c=a[l],d=s[c];"object"!=typeof d||null===d||r.has(d)||(t[t.length]={obj:s,prop:c},r.set(d,!0))}return h(t),e},decode:function(e,t,r){var i=e.replace(/\+/g," ");
3if("iso-8859-1"===r)return i.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(i)}catch(e){return i}},encode:function(e,t,r,n,o){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===r)return escape(s).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var a="",l=0;l<s.length;l+=1024){var c=s.length>=1024?s.slice(l,l+1024):s;if(l+1024<s.length){var d=c.charCodeAt(c.length-1);d>=55296&&d<=56319&&(c=c.slice(0,-1),l-=1)}for(var u=[],p=0;p<c.length;++p){var h=c.charCodeAt(p);if(45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||o===i.RFC1738&&(40===h||41===h)){u[u.length]=c.charAt(p);continue}if(h<128){u[u.length]=f[h];continue}if(h<2048){u[u.length]=f[192|h>>6]+f[128|63&h];continue}if(h<55296||h>=57344){u[u.length]=f[224|h>>12]+f[128|h>>6&63]+f[128|63&h];continue}p+=1,h=65536+((1023&h)<<10|1023&c.charCodeAt(p)),u[u.length]=f[240|h>>18]+f[128|h>>12&63]+f[128|h>>6&63]+f[128|63&h]}a+=u.join("")}return a},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:d,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:c,maybeMap:function(e,t){if(a(e)){for(var r=[],i=0;i<e.length;i+=1)r[r.length]=t(e[i]);return r}return t(e)},merge:function e(t,r,i){if(!r)return t;if("object"!=typeof r&&"function"!=typeof r){if(a(t)){var n=t.length;if(i&&"number"==typeof i.arrayLimit&&n>=i.arrayLimit){if(i.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+i.arrayLimit+" element"+(1===i.arrayLimit?"":"s")+" allowed in an array.");return c(y(t.concat(r),i),n)}t[n]=r}else if(!t||"object"!=typeof t)return[t,r];else if(d(t)){var o=u(t)+1;t[o]=r,p(t,o)}else{if(i&&i.strictMerge)return[t,r];(i&&(i.plainObjects||i.allowPrototypes)||!s.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t){if(d(r)){for(var l=Object.keys(r),f=i&&i.plainObjects?{__proto__:null,0:t}:{0:t},h=0;h<l.length;h++)f[parseInt(l[h],10)+1]=r[l[h]];return c(f,u(r)+1)}var g=[t].concat(r);if(i&&"number"==typeof i.arrayLimit&&g.length>i.arrayLimit){if(i.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+i.arrayLimit+" element"+(1===i.arrayLimit?"":"s")+" allowed in an array.");return c(y(g,i),g.length-1)}return g}var x=t;if(a(t)&&!a(r)&&(x=y(t,i)),a(t)&&a(r)){if(r.forEach(function(r,n){if(s.call(t,n)){var o=t[n];o&&"object"==typeof o&&r&&"object"==typeof r?t[n]=e(o,r,i):t[t.length]=r}else t[n]=r}),i&&"number"==typeof i.arrayLimit&&t.length>i.arrayLimit){if(i.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+i.arrayLimit+" element"+(1===i.arrayLimit?"":"s")+" allowed in an array.");return c(y(t,i),t.length-1)}return t}return Object.keys(r).reduce(function(t,n){var o=r[n];if(s.call(t,n)?m(t,n,e(t[n],o,i)):m(t,n,o),d(r)&&!d(t)&&c(t,u(r)),d(t)){var a=parseInt(n,10);String(a)===n&&a>=0&&a>u(t)&&p(t,a)}return t},x)}}},160573,(e,t,r)=>{"use strict";var i=e.r(189196),n=e.r(451113),o=e.r(762541),s=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,d=function(e,t){c.apply(e,l(t)?t:[t])},u=Date.prototype.toISOString,p=o.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:n.encode,encodeValuesOnly:!1,filter:void 0,format:p,formatter:o.formatters[p],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},h={},y=function e(t,r,o,s,a,c,u,p,y,m,g,x,v,b,j,w,S,N){for(var _,k,I=t,A=N,O=0,E=!1;void 0!==(A=A.get(h))&&!E;){var T=A.get(t);if(O+=1,void 0!==T)if(T===O)throw RangeError("Cyclic object value");else E=!0;void 0===A.get(h)&&(O=0)}if("function"==typeof m?I=m(r,I):I instanceof Date?I=v(I):"comma"===o&&l(I)&&(I=n.maybeMap(I,function(e){return e instanceof Date?v(e):e}
3)),null===I){if(c)return j(y&&!w?y(r,f.encoder,S,"key",b):r);I=""}if("string"==typeof(_=I)||"number"==typeof _||"boolean"==typeof _||"symbol"==typeof _||"bigint"==typeof _||n.isBuffer(I))return y?[j(w?r:y(r,f.encoder,S,"key",b))+"="+j(y(I,f.encoder,S,"value",b))]:[j(r)+"="+j(String(I))];var L=[];if(void 0===I)return L;if("comma"===o&&l(I))w&&y&&(I=n.maybeMap(I,function(e){return null==e?e:y(e)})),k=[{value:I.length>0?I.join(",")||null:void 0}];else if(l(m))k=m;else{var P=Object.keys(I);k=g?P.sort(g):P}var C=p?String(r).replace(/\./g,"%2E"):String(r),M=s&&l(I)&&1===I.length?C+"[]":C;if(a&&l(I)&&0===I.length)return M+"[]";for(var R=0;R<k.length;++R){var D=k[R],B="object"==typeof D&&D&&void 0!==D.value?D.value:I[D];if(!u||null!==B){var F=x&&p?String(D).replace(/\./g,"%2E"):String(D),z=l(I)?"function"==typeof o?o(M,F):M:M+(x?"."+F:"["+F+"]");N.set(t,O);var $=i();$.set(h,N),d(L,e(B,z,o,s,a,c,u,p,"comma"===o&&w&&l(I)?null:y,m,g,x,v,b,j,w,S,$))}}return L},m=function(e){if(!e)return f;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t,r=e.charset||f.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var i=o.default;if(void 0!==e.format){if(!s.call(o.formatters,e.format))throw TypeError("Unknown format option provided.");i=e.format}var n=o.formatters[i],c=f.filter;if(("function"==typeof e.filter||l(e.filter))&&(c=e.filter),t=e.arrayFormat in a?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":f.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var d=void 0===e.allowDots?!0===e.encodeDotInKeys||f.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:d,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:t,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:f.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:c,format:i,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}};t.exports=function(e,t){var r,n=e,o=m(t);"function"==typeof o.filter?n=(0,o.filter)("",n):l(o.filter)&&(r=o.filter);var s=[];if("object"!=typeof n||null===n)return"";var c=a[o.arrayFormat],u="comma"===c&&o.commaRoundTrip;r||(r=Object.keys(n)),o.sort&&r.sort(o.sort);for(var p=i(),f=0;f<r.length;++f){var h=r[f];if(null!=h){var g=n[h];o.skipNulls&&null===g||d(s,y(g,h,c,u,o.allowEmptyArrays,o.strictNullHandling,o.skipNulls,o.encodeDotInKeys,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,p))}}var x=s.join(o.delimiter),v=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?v+="utf8=%26%2310003%3B"+o.delimiter:v+="utf8=%E2%9C%93"+o.delimiter),x.length>0?v+x:""}},205544,(e,t,r)=>{"use strict";var i=e.r(451113),n=Object.prototype.hasOwnProperty,o=Array.isArray,s={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:i.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},a=function(e,t,r,i){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1){if(i&&t.throwOnLimitExceeded)for(var n=0,o=e.indexOf(",");o>-1;){if((n+=1)>=t.arrayLimit)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");o=e.indexOf(",",o+1)}return e.split(",")}if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},l=function(e,t){var r={__proto__:null},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;l=l.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var c=t.parameterLimit===1/0?void 0:t.parameterLimit,d=l.split(t.delimiter,t.throwOnLimitExceeded&&void 0!==c?c+1:c);if(t.throwOnLimitExceeded&&void 0!==c&&d.length>c)throw RangeError("Parameter limit exceeded. Only "+c+" parameter"+(1===c?"":"s")+" allowed.");var u=-1,p=t.charset;if(t.charsetSentinel)for(f=0;f<d.length;++f)0===d[f].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[f]?p="utf-8":"utf8=%26%2310003%3B"===d[f]&&(p="iso-8859-1"),u=f,f=d.length);for(f=0;f<d.length;++f)if(f!==u){var f,h,y,m=d[f],g=m.indexOf("]="),x=-1===g?m.indexOf("="):g+1;if(-1===x?(h=t.decoder(m,s.decoder,p,"key"),y=t.strictNullHandling?null:""):null!==(h=t.decoder(m.slice(0,x),s.decoder,p,"key"))&&(y=i.maybeMap(a(m.slice(x+1),t,o(r[h])?r[h].length:0,-1===m.indexOf("[]=")),function(e){return t.decoder(e,s.decoder,p,"value")})),y&&t.interpretNumericEntities&&"iso-8859-1"===p&&(y=String(y).replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),m.indexOf("[]=")>-1&&(y=o(y)?[y]:y),t.comma&&o(y)&&y.length>t.arrayLimit&&(y=i.combine([],y,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded)),null!==h){var v=n.call(r,h);v&&("combine"===t.duplicates||m.indexOf("[]=")>-1)?r[h]=i.combine(r[h],y,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded):v&&"last"!==t.duplicates||(r[h]=y)}}return r},c=function(e,t,r,n){var o=0;if(e.length>0&&"[]"===e[e.length-1]){var s=e.slice(0,-1).join("");o=Array.isArray(t)&&t[s]?t[s].length:0}for(var l=n?t:a(t,r,o),c=e.length-1;c>=0;--c){var d,u=e[c];if("[]"===u&&r.parseArrays)d=i.isOverflow(l)?l:r.allowEmptyArrays&&(""===l||r.strictNullHandling&&null===l)?[]:i.combine([],l,r.arrayLimit,r.plainObjects,r.throwOnLimitExceeded);else{d=r.plainObjects?{__proto__:null}:{};var p="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,f=r.decodeDotInKeys?p.replace(/%2E/g,"."):p,h=parseInt(f,10),y=!isNaN(h)&&u!==f&&String(h)===f&&h>=0&&r.parseArrays;if(r.parseArrays||""!==f)if(y&&h<r.arrayLimit)(d=[])[h]=l;else if(y&&r.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");else y?(d[h]=l,i.markOverflow(d,h)):"__proto__"!==f&&(d[f]=l);else d={0:l}}l=d}return l},d=function(e,t){var r=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&n.call(Object.prototype,r)&&!t.allowPrototypes)return;return[r]}var i=[],o=r.indexOf("["),s=o>=0?r.slice(0,o):r;if(s){if(!t.plainObjects&&n.call(Object.prototype,s)&&!t.allowPrototypes)return;i[i.length]=s}for(var a=r.length,l=o,c=0;l>=0&&c<t.depth;){for(var d=1,u=l+1,p=-1;u<a&&p<0;){var f=r.charCodeAt(u);91===f?d+=1:93===f&&0==(d-=1)&&(p=u),u+=1}if(p<0)return i[i.length]="["+r.slice(l)+"]",i;var h=r.slice(l,p+1),y=h.slice(1,-1);if(!t.plainObjects&&n.call(Object.prototype,y)&&!t.allowPrototypes)return;
3i[i.length]=h,c+=1,l=r.indexOf("[",p+1)}if(l>=0){if(!0===t.strictDepth)throw RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");i[i.length]="["+r.slice(l)+"]"}return i},u=function(e,t,r,i){if(e){var n=d(e,r);if(n)return c(n,t,r,i)}},p=function(e){if(!e)return s;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?s.charset:e.charset,r=void 0===e.duplicates?s.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||s.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:s.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:s.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:s.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:s.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:s.decoder,delimiter:"string"==typeof e.delimiter||i.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:s.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:s.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:s.strictDepth,strictMerge:"boolean"==typeof e.strictMerge?!!e.strictMerge:s.strictMerge,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}};t.exports=function(e,t){var r=p(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var n="string"==typeof e?l(e,r):e,o=r.plainObjects?{__proto__:null}:{},s=Object.keys(n),a=0;a<s.length;++a){var c=s[a],d=u(c,n[c],r,"string"==typeof e);
3o=i.merge(o,d,r)}return!0===r.allowSparse?o:i.compact(o)}},644169,(e,t,r)=>{"use strict";var i=e.r(160573),n=e.r(205544);t.exports={formats:e.r(762541),parse:n,stringify:i}},224283,(e,t,r)=>{var i=e.r(374009),n=e.r(12447);t.exports=function(e,t,r){var o=!0,s=!0;if("function"!=typeof e)throw TypeError("Expected a function");return n(r)&&(o="leading"in r?!!r.leading:o,s="trailing"in r?!!r.trailing:s),i(e,t,{leading:o,maxWait:t,trailing:s})}}]);
4
5//# sourceMappingURL=3yq0xhqxz89sa.js.map

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.